nonblocking: provide O_NONBLOCK for mingw
[pspp] / ChangeLog
1 2011-04-08  Eric Blake  <eblake@redhat.com>
2
3         nonblocking: provide O_NONBLOCK for mingw
4         * modules/nonblocking (Depends-on): Add open.
5         (configure.ac): Set new witness macro.
6         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
7         * modules/fcntl-h (Makefile.am): Substitute it.
8         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9         nonblocking module is in use.
10         * lib/nonblocking.c: Adjust portability test.
11         * lib/open.c (open): Don't let native open see gnulib flag.
12         * tests/test-fcntl-h.c (main): Enhance test.
13         * tests/test-open.h (test_open): Likewise.
14         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
15
16         careadlink: fix compilation error on mingw
17         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18         within struct allocator.
19
20 2011-04-06  Eric Blake  <eblake@redhat.com>
21
22         binary-io: relicense under LGPLv2+
23         * modules/binary-io (License): Relax to LGPLv2+.
24         Requested for libvirt, and required by pipe2.
25
26 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
27
28         verify: use _Static_assert if available
29         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
30         (verify_true, verify): Use it if available.  This generates better
31         diagnostics with GCC 4.6.0 and later.
32
33 2011-04-05  Bruno Haible  <bruno@clisp.org>
34
35         Remove leftover generated .h files after config.status changed.
36
37         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
38         GL_GENERATE_ALLOCA_H.
39         * modules/alloca-opt (Makefile.am): Remove alloca.h if
40         GL_GENERATE_ALLOCA_H evaluates to false.
41
42         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
43         GL_GENERATE_ARGZ_H.
44         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
45         evaluates to false.
46
47         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
48         GL_GENERATE_BYTESWAP_H.
49         * modules/byteswap (Makefile.am): Remove byteswap.h if
50         GL_GENERATE_BYTESWAP_H evaluates to false.
51
52         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
53         GL_GENERATE_ERRNO_H.
54         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
55         evaluates to false.
56
57         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
58         GL_GENERATE_FLOAT_H.
59         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
60         evaluates to false.
61
62         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
63         GL_GENERATE_FNMATCH_H.
64         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
65         GL_GENERATE_FNMATCH_H evaluates to false.
66
67         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
68         GL_GENERATE_GLOB_H.
69         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
70         evaluates to false.
71
72         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
73         automake conditional GL_GENERATE_ICONV_H.
74         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
75         evaluates to false.
76
77         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
78         GL_GENERATE_NETINET_IN_H.
79         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
80         GL_GENERATE_NETINET_IN_H evaluates to false.
81
82         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
83         conditional GL_GENERATE_PTHREAD_H.
84         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
85         * modules/pthread (Makefile.am): Remove pthread.h if
86         GL_GENERATE_PTHREAD_H evaluates to false.
87
88         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
89         GL_GENERATE_SCHED_H.
90         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
91         evaluates to false.
92
93         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
94         conditional GL_GENERATE_SELINUX_CONTEXT_H.
95         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
96         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
97
98         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
99         GL_GENERATE_STDARG_H.
100         * modules/stdarg (Makefile.am): Remove stdarg.h if
101         GL_GENERATE_STDARG_H evaluates to false.
102
103         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
104         GL_GENERATE_STDBOOL_H.
105         * modules/stdbool (Makefile.am): Remove stdbool.h if
106         GL_GENERATE_STDBOOL_H evaluates to false.
107
108         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
109         conditional GL_GENERATE_STDDEF_H.
110         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
111         * modules/stddef (Makefile.am): Remove stddef.h if
112         GL_GENERATE_STDDEF_H evaluates to false.
113
114         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
115         GL_GENERATE_STDINT_H.
116         * modules/stdint (Makefile.am): Remove stdint.h if
117         GL_GENERATE_STDINT_H evaluates to false.
118
119         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
120         GL_GENERATE_SYSEXITS_H.
121         * modules/sysexits (Makefile.am): Remove sysexits.h if
122         GL_GENERATE_SYSEXITS_H evaluates to false.
123
124         Reported by Karl Berry and Ralf Wildenhues.
125
126 2011-04-05  Bruno Haible  <bruno@clisp.org>
127
128         Ensure to rebuild generated .h files when config.status has changed.
129         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
130         config.status.
131         * modules/ctype (Makefile.am): Likewise.
132         * modules/dirent (Makefile.am): Likewise.
133         * modules/errno (Makefile.am): Likewise.
134         * modules/fcntl-h (Makefile.am): Likewise.
135         * modules/float (Makefile.am): Likewise.
136         * modules/getopt-posix (Makefile.am): Likewise.
137         * modules/glob (Makefile.am): Likewise.
138         * modules/iconv-h (Makefile.am): Likewise.
139         * modules/inttypes (Makefile.am): Likewise.
140         * modules/langinfo (Makefile.am): Likewise.
141         * modules/locale (Makefile.am): Likewise.
142         * modules/math (Makefile.am): Likewise.
143         * modules/netdb (Makefile.am): Likewise.
144         * modules/netinet_in (Makefile.am): Likewise.
145         * modules/poll-h (Makefile.am): Likewise.
146         * modules/pthread (Makefile.am): Likewise.
147         * modules/pty (Makefile.am): Likewise.
148         * modules/sched (Makefile.am): Likewise.
149         * modules/search (Makefile.am): Likewise.
150         * modules/selinux-h (Makefile.am): Likewise.
151         * modules/signal (Makefile.am): Likewise.
152         * modules/spawn (Makefile.am): Likewise.
153         * modules/stdarg (Makefile.am): Likewise.
154         * modules/stdbool (Makefile.am): Likewise.
155         * modules/stddef (Makefile.am): Likewise.
156         * modules/stdint (Makefile.am): Likewise.
157         * modules/stdio (Makefile.am): Likewise.
158         * modules/stdlib (Makefile.am): Likewise.
159         * modules/string (Makefile.am): Likewise.
160         * modules/strings (Makefile.am): Likewise.
161         * modules/sys_file (Makefile.am): Likewise.
162         * modules/sys_ioctl (Makefile.am): Likewise.
163         * modules/sys_select (Makefile.am): Likewise.
164         * modules/sys_socket (Makefile.am): Likewise.
165         * modules/sys_stat (Makefile.am): Likewise.
166         * modules/sys_time (Makefile.am): Likewise.
167         * modules/sys_times (Makefile.am): Likewise.
168         * modules/sys_utsname (Makefile.am): Likewise.
169         * modules/sys_wait (Makefile.am): Likewise.
170         * modules/sysexits (Makefile.am): Likewise.
171         * modules/termios (Makefile.am): Likewise.
172         * modules/time (Makefile.am): Likewise.
173         * modules/unistd (Makefile.am): Likewise.
174         * modules/wchar (Makefile.am): Likewise.
175         * modules/wctype-h (Makefile.am): Likewise.
176         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
177
178 2011-04-05  Bruno Haible  <bruno@clisp.org>
179
180         pipe2: Relicense under LGPLv2+.
181         * modules/pipe2 (License): Change to LGPLv2+.
182         Requested by Eric Blake, for libvirt.
183
184 2011-04-05  Bruce Korb  <bkorb@gnu.org>
185
186         bootstrap: compute gnulib_extra_files after updating build_aux
187         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
188         change build_aux or also supply gnulib_extra_files.  Handle correctly.
189
190 2011-04-05  Eric Blake  <eblake@redhat.com>
191
192         bootstrap: preserve git whitelist item sorting
193         * build-aux/bootstrap (sort_patterns): New function.
194         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
195
196 2011-04-05  Simon Josefsson  <simon@josefsson.org>
197
198         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
199         sc_space_tab check.
200
201 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
202
203         areadlink, areadlinkat: rewrite in terms of careadlinkat
204         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
205         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
206         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
207         (malloc, realloc): Remove #undefs.
208         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
209         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
210         readlink, ssize_t, stdint, unistd.
211         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
212         areadlink, stdint.
213
214         careadlinkat: new module
215         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
216         * modules/careadlinkat: New files, written by me with
217         a review and feedback from Ben Pfaff in
218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
219
220 2011-04-01  Bruno Haible  <bruno@clisp.org>
221
222         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
223         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
224         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
225         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
226         Reported by Bruce Korb <bruce.korb@gmail.com>.
227
228 2011-04-01  Bruno Haible  <bruno@clisp.org>
229
230         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
231         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
232         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
233         * modules/wcpcpy (Depends-on): Add extensions.
234         * modules/wcpncpy (Depends-on): Likewise.
235         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
236         systems.
237         * doc/posix-functions/wcpncpy.texi: Likewise.
238         * doc/posix-functions/wcwidth.texi: Likewise.
239
240 2011-03-31  Eric Blake  <eblake@redhat.com>
241
242         nonblocking: fix mingw test failures
243         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
244         non-blocking flag on regular file.
245         (get_nonblocking_flag): Set errno on invalid fd.
246         * tests/test-nonblocking.c (main): Avoid test failure on
247         directories if fchdir is not active.
248         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
249
250 2011-03-31  Bruno Haible  <bruno@clisp.org>
251
252         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
253         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
254         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
255         Reported by Simon Josefsson <simon@josefsson.org>.
256
257 2011-03-31  Bruno Haible  <bruno@clisp.org>
258         and Eric Blake  <eblake@redhat.com>
259
260         nonblocking: new module
261         * modules/nonblocking: New module.
262         * modules/nonblocking-tests: Likewise.
263         * lib/nonblocking.h: New file.
264         * lib/nonblocking.c: Likewise.
265         * tests/test-nonblocking.c: New test.
266         * lib/ioctl.c (ioctl) [mingw]: Update comment.
267
268 2011-03-30  Bruno Haible  <bruno@clisp.org>
269
270         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
271         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
272         instead of 'printf' format for GCC >= 4.4.
273         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
274         (fprintf, printf, vfprintf, vprintf): Declare with
275         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
276         the system's vfprintf() function.
277         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
278
279 2011-03-30  Eric Blake  <eblake@redhat.com>
280
281         passfd: fix scoping bug
282         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
283         before sendmsg/recvmsg.
284
285         passfd: standardize coding conventions
286         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
287         can be learned at compile time.
288         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
289         ifdefs.
290         (sendfd, recvfd): Follow gnulib code conventions.
291
292         passfd: fix incorrect sendmsg arguments
293         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
294         incorrect msg_controllen value.
295         * modules/passfd-tests (Depends-on): Check for alarm.
296         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
297         Reported by Bastien ROUCARIES.
298
299 2011-03-30  Bruno Haible  <bruno@clisp.org>
300
301         c-strcasestr: Relicense under LGPLv2+.
302         * modules/c-strcasestr (License): Change to LGPLv2+.
303         Requested by Eric Blake, for libvirt.
304
305 2011-03-30  Simon Josefsson  <simon@josefsson.org>
306
307         * users.txt: Add libidn2.  Fix libtasn1 link.
308
309 2011-03-30  Jim Meyering  <meyering@redhat.com>
310
311         tests: readlink* ("",... fails with EINVAL on newer kernels
312         readlink and readlinkat have typically failed with ENOENT for
313         the invalid, empty file name,  "".  However, with the advent
314         of linux-2.6.39, they fail with EINVAL.
315         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
316         when operating on the empty file name.
317         * tests/test-readlink.h (test_readlink): Likewise.
318
319 2011-03-29  Bruno Haible  <bruno@clisp.org>
320
321         Relicense some modules under LGPLv2+, for libidn2.
322         * modules/array-mergesort (License): Change to LGPLv2+.
323         * modules/c-strcaseeq (License): Likewise.
324         * modules/striconveh (License): Likewise.
325         * modules/striconveha (License): Likewise.
326         * modules/uniconv/base (License): Likewise.
327         * modules/uniconv/u8-conv-from-enc (License): Likewise.
328         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
329         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
330         * modules/unictype/base (License): Likewise.
331         * modules/unictype/bidiclass-of (License): Likewise.
332         * modules/unictype/category-M (License): Likewise.
333         * modules/unictype/category-none (License): Likewise.
334         * modules/unictype/category-of (License): Likewise.
335         * modules/unictype/category-test (License): Likewise.
336         * modules/unictype/category-test-withtable (License): Likewise.
337         * modules/unictype/combining-class (License): Likewise.
338         * modules/unictype/joiningtype-of (License): Likewise.
339         * modules/unictype/scripts (License): Likewise.
340         * modules/uninorm/base (License): Likewise.
341         * modules/uninorm/canonical-decomposition (License): Likewise.
342         * modules/uninorm/composition (License): Likewise.
343         * modules/uninorm/decompose-internal (License): Likewise.
344         * modules/uninorm/decomposition-table (License): Likewise.
345         * modules/uninorm/nfc (License): Likewise.
346         * modules/uninorm/nfd (License): Likewise.
347         * modules/uninorm/u32-normalize (License): Likewise.
348         * modules/unistr/base (License): Likewise.
349         * modules/unistr/u32-cpy (License): Likewise.
350         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
351         * modules/unistr/u32-to-u8 (License): Likewise.
352         * modules/unistr/u32-uctomb (License): Likewise.
353         * modules/unistr/u8-check (License): Likewise.
354         * modules/unistr/u8-mblen (License): Likewise.
355         * modules/unistr/u8-mbtouc (License): Likewise.
356         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
357         * modules/unistr/u8-mbtoucr (License): Likewise.
358         * modules/unistr/u8-prev (License): Likewise.
359         * modules/unistr/u8-strlen (License): Likewise.
360         * modules/unistr/u8-to-u32 (License): Likewise.
361         * modules/unistr/u8-uctomb (License): Likewise.
362         * modules/unitypes (License): Likewise.
363         Requested by Simon Josefsson.
364
365 2011-03-29  Simon Josefsson  <simon@josefsson.org>
366
367         lib-symbol-visibility: Add a notice.
368         * modules/lib-symbol-visibility (Notice): New field.
369
370 2011-03-29  Bruno Haible  <bruno@clisp.org>
371
372         getaddrinfo: Doc fix.
373         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
374         section "fixed in Gnulib".
375
376 2011-03-28  Simon Josefsson  <simon@josefsson.org>
377
378         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
379         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
380
381 2011-03-26  Bruno Haible  <bruno@clisp.org>
382
383         unictype/property-byname: Reduce the number of load-time relocations.
384         * lib/unictype/pr_byname.c: Include <stdlib.h>.
385         (UC_PROPERTY_INDEX_*): New enumeration values.
386         (uc_property_byname): Convert an index from the lookup table to an
387         uc_property_t.
388         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
389         values.
390
391 2011-03-26  Bruno Haible  <bruno@clisp.org>
392
393         unictype/property-byname: Allow omitted word separators and aliases.
394         * lib/unictype/pr_byname.gperf: Add property names without word
395         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
396         for 'space'.
397
398 2011-03-26  Bruno Haible  <bruno@clisp.org>
399
400         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
401         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
402         also hyphens to space.
403         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
404         without spaces.
405         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
406
407 2011-03-26  Bruno Haible  <bruno@clisp.org>
408
409         unictype/joiningtype-byname: Recognize long names as well.
410         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
411         a long name.
412         * lib/unictype/joiningtype_byname.c: Include <string.h>,
413         unictype/joiningtype_byname.h.
414         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
415         * lib/unictype/joiningtype_byname.gperf: New file.
416         * modules/unictype/joiningtype-byname (Files): Add
417         lib/unictype/joiningtype_byname.gperf.
418         (Depends-on): Add gperf.
419         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
420         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
421         long names.
422
423         Tests for module 'unictype/joiningtype-longname'.
424         * modules/unictype/joiningtype-longname-tests: New file.
425         * tests/unictype/test-joiningtype_longname.c: New file.
426
427         New module 'unictype/joiningtype-longname'.
428         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
429         * lib/unictype/joiningtype_longname.c: New file.
430         * modules/unictype/joiningtype-longname: New file.
431         * modules/unictype/joiningtype-all (Depends-on): Add
432         unictype/joiningtype-longname.
433
434 2011-03-26  Bruno Haible  <bruno@clisp.org>
435
436         unictype/bidiclass-byname: Recognize long names as well.
437         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
438         name.
439         * lib/unictype/bidi_byname.c: Include <string.h>,
440         unictype/bidi_byname.h.
441         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
442         * lib/unictype/bidi_byname.gperf: New file.
443         * modules/unictype/bidiclass-byname (Files): Add
444         lib/unictype/bidi_byname.gperf.
445         (Depends-on): Add gperf.
446         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
447         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
448         long names.
449
450         Tests for module 'unictype/bidiclass-longname'.
451         * modules/unictype/bidiclass-longname-tests: New file.
452         * tests/unictype/test-bidi_longname.c: New file.
453
454         New module 'unictype/bidiclass-longname'.
455         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
456         * lib/unictype/bidi_longname.c: New file.
457         * modules/unictype/bidiclass-longname: New file.
458         * modules/unictype/bidiclass-all (Depends-on): Add
459         unictype/bidiclass-longname.
460
461 2011-03-26  Bruno Haible  <bruno@clisp.org>
462
463         unictype/bidi*: Rename modules.
464         * modules/unictype/bidiclass-all: Renamed from
465         modules/unictype/bidicategory-all.
466         * modules/unictype/bidiclass-name: Renamed from
467         modules/unictype/bidiclass-name.
468         (Description): Update.
469         * modules/unictype/bidiclass-name-tests: Renamed from
470         modules/unictype/bidicategory-name-tests.
471         * modules/unictype/bidiclass-byname: Renamed from
472         modules/unictype/bidicategory-byname.
473         (Description): Update.
474         * modules/unictype/bidiclass-byname-tests: Renamed from
475         modules/unictype/bidicategory-byname-tests.
476         * modules/unictype/bidiclass-of: Renamed from
477         modules/unictype/bidicategory-of.
478         (Description): Update.
479         * modules/unictype/bidiclass-of-tests: Renamed from
480         modules/unictype/bidicategory-of-tests.
481         * modules/unictype/bidiclass-test: Renamed from
482         modules/unictype/bidicategory-test.
483         (Description): Update.
484         * modules/unictype/bidiclass-test-tests: Renamed from
485         modules/unictype/bidicategory-test-tests.
486         * modules/unictype/bidicategory-all: New file, a simple redirection.
487         * modules/unictype/bidicategory-name: Likewise.
488         * modules/unictype/bidicategory-byname: Likewise.
489         * modules/unictype/bidicategory-of: Likewise.
490         * modules/unictype/bidicategory-test: Likewise.
491         * modules/unictype/property-bidi-* (Dependencies): Update.
492         * lib/unictype/bidi_*.c: Update comment.
493
494 2011-03-26  Bruno Haible  <bruno@clisp.org>
495
496         unictype/bidi*: Rename functions, part 2.
497         * modules/unictype/bidicategory-name (configure.ac): Update required
498         libunistring version.
499         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
500
501 2011-03-25  Bruno Haible  <bruno@clisp.org>
502
503         New module 'unictype/combining-class-all'.
504         * modules/unictype/combining-class-all: New file.
505
506         Tests for module 'unictype/combining-class-byname'.
507         * modules/unictype/combining-class-byname-tests: New file.
508         * tests/unictype/test-combiningclass_byname.c: New file.
509
510         New module 'unictype/combining-class-byname'.
511         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
512         * lib/unictype/combiningclass_byname.c: New file.
513         * lib/unictype/combiningclass_byname.gperf: New file.
514         * modules/unictype/combining-class-byname: New file.
515
516         Tests for module 'unictype/combining-class-longname'.
517         * modules/unictype/combining-class-longname-tests: New file.
518         * tests/unictype/test-combiningclass_longname.c: New file.
519
520         New module 'unictype/combining-class-longname'.
521         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
522         * lib/unictype/combiningclass_longname.c: New file.
523         * modules/unictype/combining-class-longname: New file.
524
525         Tests for module 'unictype/combining-class-name'.
526         * modules/unictype/combining-class-name-tests: New file.
527         * tests/unictype/test-combiningclass_name.c: New file.
528
529         New module 'unictype/combining-class-name'.
530         * lib/unictype.in.h (uc_combining_class_name): New declaration.
531         * lib/unictype/combiningclass_name.c: New file.
532         * modules/unictype/combining-class-name: New file.
533
534 2011-03-25  Bruno Haible  <bruno@clisp.org>
535
536         unictype/combining-class: Rename source files.
537         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
538         of unictype/combining.h.
539         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
540         Update.
541         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
542         * modules/unictype/combining-class (Description): Fix.
543         (Files, Makefile.am): Update.
544         * tests/unictype/test-combiningclass.c: Renamed from
545         tests/unictype/test-combining.c.
546         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
547
548 2011-03-25  Bruno Haible  <bruno@clisp.org>
549
550         unictype: Update list of canonical combining classes.
551         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
552
553 2011-03-25  Bruno Haible  <bruno@clisp.org>
554
555         unictype/category-byname: Recognize long names as well.
556         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
557         a long name.
558         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
559         unictype/categ_byname.h.
560         (UC_CATEGORY_INDEX_*): New enumeration values.
561         (uc_general_category_byname): Use uc_general_category_lookup and
562         convert from index to value.
563         * lib/unictype/categ_byname.gperf: New file.
564         * modules/unictype/category-byname (Files): Add
565         lib/unictype/categ_byname.gperf.
566         (Depends-on): Add gperf.
567         (Makefile.am): Add rule for generating unictype/categ_byname.h.
568         * tests/unictype/test-categ_byname.c (main): Test the recognition of
569         long names.
570
571         Tests for module 'unictype/category-longname'.
572         * modules/unictype/category-longname-tests: New file.
573         * tests/unictype/test-categ_longname.c: New file.
574
575         New module 'unictype/category-longname'.
576         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
577         * lib/unictype/categ_longname.c: New file.
578         * modules/unictype/category-longname: New file.
579         * modules/unictype/category-all (Depends-on): Add it.
580
581 2011-03-25  Bruno Haible  <bruno@clisp.org>
582
583         Tests for module 'unictype/category-LC'.
584         * modules/unictype/category-LC-tests: New file.
585         * tests/unictype/test-categ_LC.c: New file, automatically generated.
586
587         New module 'unictype/category-LC'.
588         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
589         (UC_CATEGORY_LC): New declaration.
590         (UC_CASED_LETTER): New macro.
591         * lib/gen-uni-tables.c (is_category_LC): New function.
592         (output_categories): Also handle category LC.
593         (UC_CATEGORY_MASK_LC): New enumeration value.
594         (general_category_byname): Also handle category LC.
595         * lib/unictype/categ_LC.c: New file.
596         * lib/unictype/categ_LC.h: New file, automatically generated.
597         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
598         category LC.
599         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
600         * modules/unictype/category-LC: New file.
601         * modules/unictype/category-byname (Depends-on): Add
602         unictype/category-LC.
603         * modules/unictype/category-all (Depends-on): Likewise.
604
605 2011-03-25  Eric Blake  <eblake@redhat.com>
606
607         xmalloc: revert yesterday's regression
608         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
609         realloc's underlying behavior (allowing allocation of zero-size
610         objects, especially if malloc-gnu is also in use).
611
612 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
613
614         maint.mk: add missing version to VC-tag
615         * top/maint.mk: git tag was missing actual tag name; add it.
616
617         valgrind: do leak checking, and exit with code 1 on error (not 0)
618         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
619         to VALGRIND.
620
621 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
622
623         posix-modules: say what it does.
624         * posix-modules: Add a line to the --help output saying what it does.
625
626 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
627
628         xmalloc: Do not leak if underlying realloc is C99 compatible.
629         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
630         This avoids a leak on C99-based systems.  See
631         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
632
633 2011-03-24  Eric Blake  <eblake@redhat.com>
634
635         realloc: document portability problem
636         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
637         passing 0 size to realloc.
638
639 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
640
641         doc: update users.txt
642         * users.txt: Add cvsps, tmpwatch
643
644 2011-03-23  Matt Rice  <ratmice@gmail.com>
645
646         doc: update users.txt
647         * users.txt: Add gdb.
648
649 2011-03-23  Jim Meyering  <meyering@redhat.com>
650
651         doc: update users.txt
652         Looking through matches up to the following URL (there are still
653         several more pages), I found several projects that use gnulib:
654         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
655         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
656         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
657
658 2011-03-22  Bruno Haible  <bruno@clisp.org>
659
660         unictype/bidi*: Rename functions.
661         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
662         uc_bidi_class, uc_is_bidi_class): New declarations.
663         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
664         uc_bidi_category_byname.
665         (uc_bidi_category_byname): New function.
666         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
667         u_bidi_category_name.
668         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
669         (uc_bidi_category_name): New function.
670         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
671         uc_bidi_category.
672         (uc_bidi_category): New function.
673         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
674         uc_is_bidi_category. Invoke uc_bidi_class.
675         (uc_is_bidi_category): New function.
676         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
677         instead of uc_bidi_category_byname.
678         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
679         instead of uc_bidi_category_name.
680         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
681         uc_bidi_category.
682         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
683         instead of uc_is_bidi_category.
684
685 2011-03-21  Bruno Haible  <bruno@clisp.org>
686
687         New module 'unictype/joininggroup-all'.
688         * modules/unictype/joininggroup-all: New file.
689
690         Tests for module 'unictype/joininggroup-of'.
691         * modules/unictype/joininggroup-of-tests: New file.
692         * tests/unictype/test-joininggroup_of.c: New file.
693         * tests/unictype/test-joininggroup_of.h: New file, automatically
694         generated by gen-uni-tables.
695
696         New module 'unictype/joininggroup-of'.
697         * modules/unictype/joininggroup-of: New file.
698         * lib/unictype/joininggroup_of.c: New file.
699         * lib/unictype/joininggroup_of.h: New file, automatically generated by
700         gen-uni-tables.
701
702         Tests for module 'unictype/joininggroup-byname'.
703         * modules/unictype/joininggroup-byname-tests: New file.
704         * tests/unictype/test-joininggroup_byname.c: New file.
705
706         New module 'unictype/joininggroup-byname'.
707         * modules/unictype/joininggroup-byname: New file.
708         * lib/unictype/joininggroup_byname.c: New file.
709         * lib/unictype/joininggroup_byname.gperf: New file.
710
711         Tests for module 'unictype/joininggroup-name'.
712         * modules/unictype/joininggroup-name-tests: New file.
713         * tests/unictype/test-joininggroup_name.c: New file.
714
715         New module 'unictype/joininggroup-name'.
716         * modules/unictype/joininggroup-name: New file.
717         * lib/unictype/joininggroup_name.c: New file.
718         * lib/unictype/joininggroup_name.h: New file.
719
720         New module 'unictype/joiningtype-all'.
721         * modules/unictype/joiningtype-all: New file.
722
723         Tests for module 'unictype/joiningtype-of'.
724         * modules/unictype/joiningtype-of-tests: New file.
725         * tests/unictype/test-joiningtype_of.c: New file.
726         * tests/unictype/test-joiningtype_of.h: New file, automatically
727         generated by gen-uni-tables.
728
729         New module 'unictype/joiningtype-of'.
730         * modules/unictype/joiningtype-of: New file.
731         * lib/unictype/joiningtype_of.c: New file.
732         * lib/unictype/joiningtype_of.h: New file, automatically generated by
733         gen-uni-tables.
734
735         Tests for module 'unictype/joiningtype-byname'.
736         * modules/unictype/joiningtype-byname-tests: New file.
737         * tests/unictype/test-joiningtype_byname.c: New file.
738
739         New module 'unictype/joiningtype-byname'.
740         * modules/unictype/joiningtype-byname: New file.
741         * lib/unictype/joiningtype_byname.c: New file.
742
743         Tests for module 'unictype/joiningtype-name'.
744         * modules/unictype/joiningtype-name-tests: New file.
745         * tests/unictype/test-joiningtype_name.c: New file.
746
747         New module 'unictype/joiningtype-name'.
748         * modules/unictype/joiningtype-name: New file.
749         * lib/unictype/joiningtype_name.c: New file.
750
751         unictype: Add support for Arabic shaping properties.
752         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
753         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
754         declarations.
755         (UC_JOINING_GROUP_*): New enumeration values.
756         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
757         declarations.
758         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
759         (unicode_joining_type): New variable.
760         (UC_JOINING_GROUP_*): New enumeration values.
761         (unicode_joining_group): New variable.
762         (fill_arabicshaping, joining_type_as_c_identifier,
763         output_joining_type_test, output_joining_type,
764         joining_group_as_c_identifier, output_joining_group_test,
765         output_joining_group): New functions.
766         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
767         fill_arabicshaping and output_joining_type_test, output_joining_type,
768         output_joining_group_test, output_joining_group.
769         Reported by Simon Josefsson.
770
771 2011-03-21  Jim Meyering  <meyering@redhat.com>
772
773         strftime: fix a bug in yesterday's change
774         * lib/strftime.c (add): Accommodate width's initial value of -1.
775         Otherwise, nstrftime would copy uninitialized data into
776         the result buffer.
777
778 2011-03-21  Jim Meyering  <meyering@redhat.com>
779
780         tests: add strftime-tests module
781         * tests/test-strftime.c: New file.
782         * modules/strftime-tests: New module.
783
784 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
785
786         strftime: don't assume a byte count fits in 'int'
787         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
788         found this problem by static analysis, using gcc -Wstrict-overflow
789         (GCC 4.5.2, x86-64).  This reported an optimization that depended
790         on an integer overflow having undefined behavior, but it turns out
791         that the argument is a size, which might not fit in 'int' anyway,
792
793 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
794
795         stdio: don't require ignore_value around fwrite
796
797         This patch works around libc bug 11959
798         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
799         Without this patch, applications must often write
800         ignore_value (fwrite (...)) even though the ignore_value is
801         not helpful here.  It's common to write many objects, using
802         fwrite/printf/etc., and then use ferror to detect output error.
803
804         I considered making this patch optional, but decided against it,
805         because libc is obviously being inconsistent here: there is no
806         reason libc should insist that user code must inspect fwrite
807         return's value without also insisting that it inspect printf's,
808         putchar's, etc.  If user code wants to have a strict style where
809         all these functions' values are checked (so that ferror need not
810         be checked), we could add support for that style in a new gnulib
811         module, but in the meantime it's better to be consistent and to
812         support common usage.
813
814         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
815         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
816         that we are compiling in checking mode, and if not C++, and
817         if not already wrapping fwrite for some other reason.
818         (fwrite): #define to rpl_fwrite if the latter is defined.
819
820 2011-03-20  Bruno Haible  <bruno@clisp.org>
821
822         verror: Fix compilation error introduced on 2011-02-13.
823         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
824         instead of __attribute__.
825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
826
827 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
828             Bruno Haible  <bruno@clisp.org>
829
830         socklen: do not depend on sys_socket
831         While trying to modify Emacs to use gnulib's socklen module,
832         I discovered a circular dependency: socklen depends on sys_socket
833         and vice versa.  Emacs can use socklen, but it does not need
834         sys_socket because it has its own substitute for sys/socket.h.
835         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
836         gl_TYPE_SOCKLEN_T.
837         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
838         gl_PREREQ_SYS_H_SOCKET.
839         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
840         gl_PREREQ_SYS_H_SOCKET.
841         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
842         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
843         * modules/socklen (Depends-on): Do not depend on sys_socket.
844         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
845
846 2011-03-20  Jim Meyering  <meyering@redhat.com>
847
848         maint.mk: sort file names *after* new transformation
849         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
850         prefix would have led to an unwarranted failure in GNU parted.
851         Sort after that transformation.
852
853 2011-03-19  Jim Meyering  <meyering@redhat.com>
854
855         maint.mk: fix po-file syntax-check rule
856         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
857         Patch by Bruno Haible.
858
859 2011-03-19  Bruno Haible  <bruno@clisp.org>
860
861         socklen: Update comment.
862         * m4/socklen.m4: Update comment about platforms.
863
864 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
865             Bruno Haible  <bruno@clisp.org>
866
867         inet_ntop, inet_pton: Simplify.
868         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
869         documented to provide socklen_t and we already depend on sys_socket.
870         * modules/inet_pton (Depends-on): Likewise.
871         * lib/arpa_inet.in.h: Adjust comment.
872
873 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
874             Bruno Haible  <bruno@clisp.org>
875
876         netdb: Simplify.
877         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
878         documented to provide socklen_t and we already depend on sys_socket.
879         * lib/netdb.in.h: Adjust comment.
880
881 2011-03-19  Bruno Haible  <bruno@clisp.org>
882
883         sys_socket, netdb: Document problem with socklen_t.
884         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
885         platforms.
886         * doc/posix-headers/netdb.texi: Likewise.
887
888 2011-03-18  Eric Blake  <eblake@redhat.com>
889
890         maint.mk: let po check work in VPATH build
891         * top/maint.mk (po_file): Allow cfg.mk override.
892         (sc_po_check): Allow VPATH use.
893         Reported by Jiri Denemark.
894
895 2011-03-16  Jim Meyering  <meyering@redhat.com>
896
897         maint.mk: allow fine-grained syntax-check exclusion via Make variables
898         Before, you would have had to create one .x-sc_ file per rule in order
899         to exempt offending files.  Now, you may instead use a Make variable --
900         usually defined in cfg.mk -- whose name identifies the affected rule.
901         * top/maint.mk (_sc_excl): Define.
902         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
903         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
904
905 2011-03-13  Bruno Haible  <bruno@clisp.org>
906
907         ignore-value tests: Avoid warnings.
908         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
909         empty for gcc < 3.4.
910
911 2011-03-13  Bruno Haible  <bruno@clisp.org>
912
913         passfd: Fix link error on Solaris.
914         * modules/passfd (Description): Correct.
915         (Depends-on): Add socketlib.
916         (Link): New section.
917         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
918
919 2011-03-13  Bruno Haible  <bruno@clisp.org>
920
921         passfd: Fix link error on AIX 5.2.
922         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
923
924 2011-03-13  Bruno Haible  <bruno@clisp.org>
925
926         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
927         * lib/sys_socket.in.h: Include <stddef.h>.
928         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
929         CMSG_FIRSTHDR. Remove unused variable.
930
931 2011-03-13  Bruno Haible  <bruno@clisp.org>
932
933         passfd: Fix compilation error on OpenBSD.
934         * lib/passfd.c: Include <sys/uio.h>.
935
936 2011-03-13  Bruno Haible  <bruno@clisp.org>
937
938         passfd test: Fix warnings.
939         * tests/test-passfd.c: Include <sys/wait.h>.
940         (main): Fix typo.
941
942 2011-03-13  Bruno Haible  <bruno@clisp.org>
943
944         passfd module, part 4, tweaks.
945         * tests/test-passfd.c: Reorder includes.
946         (main): Fix perror and printf calls.
947
948 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
949
950         passfd module, part 4.
951         * modules/passfd-tests: New file.
952         * tests/test-passfd.c: New file.
953
954 2011-03-13  Jim Meyering  <meyering@redhat.com>
955
956         Makefile: rely on GNU make; derive syntax-check rule names
957         Rather than requiring that each sc_ rule be listed as a dependent
958         of "check", use features of GNU make to derive the list.
959         * Makefile (syntax-check-rules): Define.
960         (check): Depend on the new variable, not the hard-coded list.
961
962 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
963             Bruno Haible  <bruno@clisp.org>
964
965         passfd module, part 3.
966         * lib/passfd.h (recvfd): Add a flags argument.
967         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
968         (recvfd): Add a flags argument.
969         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
970         exists.
971         * modules/passfd (Depends-on): Add cloexec.
972         Suggested by Eric Blake.
973
974 2011-03-13  Bruno Haible  <bruno@clisp.org>
975
976         passfd module, part 2, tweaks.
977         * modules/passfd (Files): Reorder.
978         (Depends-on): Remove errno.
979         (Include): Remove <sys/socket.h>, <sys/un.h>.
980         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
981         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
982         specification header. Include <sys/socket.h> always. Don't include
983         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
984         (sendfd): Clarify that it sets errno when it fails.
985         (recvfd): Fix specification.
986
987 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
988
989         passfd module, part 2.
990         * modules/passfd: New file.
991         * lib/passfd.h: New file.
992         * lib/passfd.c: New file.
993
994 2011-03-12  Bruno Haible  <bruno@clisp.org>
995
996         wcswidth, mbswidth: Avoid integer overflow.
997         * lib/wcswidth.c: Include <limits.h>.
998         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
999         * lib/mbswidth.c: Include <limits.h>.
1000         (mbsnwidth): Avoid 'int' overflow.
1001         Reported by Jim Meyering.
1002
1003 2011-03-12  Bruno Haible  <bruno@clisp.org>
1004
1005         futimens, utimensat: Avoid endless recursion on Solaris 10.
1006         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
1007         Solaris.
1008         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
1009         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
1010
1011 2011-03-11  Jim Meyering  <meyering@redhat.com>
1012
1013         maint.mk: relax a regexp to accommodate other formatting styles
1014         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
1015         between "ngettext" and the following "(".
1016
1017 2011-03-11  Pádraig Brady <P@draigBrady.com>
1018
1019         maint.mk: suppress a false positive warning
1020         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
1021         diagnostics are marked with ngettext.
1022
1023 2011-03-10  Eric Blake  <eblake@redhat.com>
1024
1025         wchar: add explicit dependencies, for Tru64
1026         * modules/mbmemcasecoll (Depends-on): Add wchar.
1027         * modules/mbtowc (Depends-on): Likewise.
1028         * modules/vasnprintf (Depends-on): Likewise.
1029         * modules/unistdio/u-printf-args (Depends-on): Likewise.
1030         * modules/wctomb (Depends-on): Likewise.
1031         Reported by Peter O'Gorman.
1032
1033 2011-03-08  Bruno Haible  <bruno@clisp.org>
1034
1035         passfd module, part 1, tweaks.
1036         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
1037         Improve indentation. Improve AC_MSG_CHECKING messages.
1038         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
1039         gl_SOCKET_FAMILIES.
1040
1041 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1042
1043         passfd module, part 1.
1044         * m4/afunix.m4: New file.
1045         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
1046         sockets.
1047
1048 2011-03-08  Bruno Haible  <bruno@clisp.org>
1049
1050         regex-quote: New API.
1051         * lib/regex-quote.h: Include <stdbool.h>.
1052         (struct regex_quote_spec): New type.
1053         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1054         New declarations.
1055         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1056         'const struct regex_quote_spec *' argument.
1057         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
1058         (pcre_special): New constant.
1059         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1060         New functions.
1061         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1062         'const struct regex_quote_spec *' argument.
1063         * modules/regex-quote (Depends-on): Add stdbool.
1064         * tests/test-regex-quote.c (check): Update for new API. Add test for
1065         anchored results.
1066         * NEWS: Mention the API change.
1067         Reported by Reuben Thomas and Eric Blake.
1068
1069 2011-03-06  Bruno Haible  <bruno@clisp.org>
1070
1071         regex-quote: Fix creation of POSIX extended regular expressions.
1072         * lib/regex-quote.c (ere_special): Add grouping and alternation
1073         operators.
1074
1075 2011-03-05  Bruno Haible  <bruno@clisp.org>
1076
1077         doc: Improve doc regarding autopoint vs. gnulib.
1078         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
1079         disable autopoint while running autoreconf.
1080         Suggested by Ralf Wildenhues.
1081
1082 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1083
1084         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
1085         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
1086
1087 2011-03-03  Bruce Korb  <bkorb@gnu.org>
1088
1089         parse-duration: remove xalloc.h dependency
1090         * lib/parse-duration.c (parse_period): handle NULL return from
1091         strdup instead of calling xstrdup().
1092         * modules/parse-duration: remove "xalloc" dependency
1093
1094 2011-03-03  Matthew Booth  <mbooth@redhat.com>
1095
1096         bootstrap: honor m4_base when running aclocal
1097         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
1098
1099 2011-03-02  Jim Meyering  <meyering@redhat.com>
1100
1101         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
1102         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
1103         on request from Matt Booth.
1104
1105 2011-03-01  Eric Blake  <eblake@redhat.com>
1106
1107         test-link: work on Hurd
1108         * tests/test-link.h (test_link): Hurd rejects linking directories
1109         with EISDIR instead of the POSIX-mandated EPERM.
1110
1111 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
1112
1113         stdio: simplify by moving files to printf-posix, sigpipe
1114         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
1115         since this symbol is needed only if printf is replaced.
1116         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
1117         Require gl_ASM_SYMBOL_PREFIX.
1118         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
1119         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
1120         (Depends-on): Add 'raise'.
1121         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
1122         * modules/stdio (Files): Remove lib/stdio-write.c,
1123         m4/asm-underscore.m4.
1124         (Depends-on): Remove 'raise'.
1125
1126         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
1127         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
1128         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
1129         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
1130
1131 2011-02-28  Bruno Haible  <bruno@clisp.org>
1132
1133         localcharset: Assume ANSI C behaviour of free().
1134         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
1135         calling free().
1136         Suggested by Simon Josefsson <simon@josefsson.org>.
1137
1138 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
1139             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
1140             Bruno Haible  <bruno@clisp.org>  (tiny change)
1141
1142         On Cygwin, use /proc file system instead of win32 API.
1143         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
1144         Win32 file names.
1145         (DllMain): Simplify by removing Cygwin specific code.
1146         (find_shared_library_fullname): Use Linux specific implementation also
1147         for Cygwin.
1148         (get_shared_library_fullname): Update accordingly.
1149         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
1150         Win32 file names.
1151         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
1152         Cygwin specific code.
1153
1154 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
1155             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
1156
1157         Fix OpenMP flag detection for various Fortran compilers.
1158         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
1159         OpenMP-conditional compilation construct, to force compile
1160         failure with missing OpenMP flag.
1161         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
1162
1163 2011-02-25  Eric Blake  <eblake@redhat.com>
1164
1165         strstr: expand test coverage
1166         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
1167         compilation.
1168         * tests/test-memmem.c (main): Duplicate tests.
1169         * tests/test-strcasestr.c (main): Likewise.
1170         * tests/test-c-strcasestr.c (main): Likewise.
1171
1172 2011-02-25  Jim Meyering  <meyering@redhat.com>
1173
1174         maint.mk: detect missing-NL-at-EOF, too
1175         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
1176         it also detects when a file lacks a newline at EOF.
1177         (require_exactly_one_NL_at_EOF_): Renamed from
1178         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
1179         since people may well have .x-sc_... file names tied to the
1180         existing name.  Suggested by Eric Blake.
1181
1182 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1183
1184         dirname: move m4/dos.m4 functionality into lib/dosname.h
1185
1186         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
1187         extracts symbols from it, puts them into config.h; but it's much
1188         easier to use the symbols directly.  filename.h already does this,
1189         but it disagrees with dos.m4 in some respects.  This patch
1190         introduces a different include file dosname.h that packages up
1191         dos.m4, and then later we can work on merging filename.h and
1192         dosname.h.  Applications that need only the easy-to-configure
1193         symbols should consider including dosname.h rather than dirname.h.
1194         * NEWS: Mention incompatible changes.
1195         * m4/dos.m4: Remove.
1196         * lib/dosname.h, modules/dosname: New files.
1197         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
1198         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
1199         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
1200         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
1201         Include dosname.h, not dirname.h.
1202         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
1203         Include dosname.h, for definitions of symbols like ISSLASH
1204         that used to be in config.h.
1205         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
1206         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1207         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1208         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1209         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
1210         * modules/rmdir (Files): Likewise.
1211         * modules/stat (Files): Likewise.
1212         * modules/unlink (Files): Likewise.
1213         * modules/dirname-lgpl (Depends-on): Add dosname.
1214         * modules/lstat (Depends-on): Likewise.
1215         * modules/openat (Depends-on): Likewise.
1216         * modules/rmdir (Depends-on): Likewise.
1217         * modules/savewd (Depends-on): Likewise.
1218         * modules/stat (Depends-on): Likewise.
1219         * modules/unlink (Depends-on): Likewise.
1220         * modules/openat (Depends-on): Remove dirname-lgpl.
1221         * modules/savewd (Depends-on): Likewise.
1222         * tests/test-dirname.c: Do not use removed symbols like
1223         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
1224         the remaining symbols, e.g., ISSLASH ('\\').
1225
1226 2011-02-25  Eric Blake  <eblake@redhat.com>
1227
1228         strstr: revert patches that introduced bug and pessimization
1229         * lib/str-two-way.h: Add another reference.
1230         (two_way_short_needle, two_way_long_needle): Revert changes from
1231         2011-02-24; they pessimize search speed.
1232         (critical_factorization): Partially revert changes from
1233         2010-06-22; they violate the requirement that the left half of the
1234         needle be smaller than the period of the needle.
1235
1236 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1237
1238         filenamecat: remove unnecessary dependency on dirname-lgpl
1239         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
1240         is no direct dependency, just an indirect one via filenamecat-lgpl.
1241
1242         remove: remove unnecessary use of m4/dos.m4
1243         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
1244         * modules/remove (FILES): Remove m4/dos.m4.
1245
1246         * lib/openat-proc.c: Don't include dirname.h; not needed.
1247
1248         backupfile: remove unnecessary use of m4/dos.m4
1249         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
1250         of its symbols are used by the backupfile code.  backupfile.c does
1251         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
1252         for the rare case of programs that want all their backup file
1253         names to live within 8+3 limits, and dos.m4 doesn't address that.
1254         * modules/backupfile (Files): Remove m4/dos.m4.
1255
1256 2011-02-24  Jim Meyering  <meyering@redhat.com>
1257
1258         strstr: fix a bug whereby strstr would mistakenly return NULL
1259         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
1260         in period calculation.
1261         (two_way_long_needle): Likewise.
1262         The original problem was reported by Mike Stump in
1263         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
1264         Ralf Wildenhues provided the short needle and haystack.
1265         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
1266         Add a more involved test to trigger the bug in two_way_long_needle.
1267
1268 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1269
1270         gnulib-tool: remove use of bold display in help screen
1271         * gnulib-tool (func_usage): Do not use bold display anymore in the
1272         help screen.  That was just meant to be a temporary emphasis for a
1273         backward-incompatible change.
1274
1275 2011-02-23  Bruno Haible  <bruno@clisp.org>
1276
1277         Fix misindentation of preprocessor directives.
1278         * lib/argp-namefrob.h: Reindent preprocessor directives.
1279         * lib/getopt_int.h (struct _getopt_data): Likewise.
1280         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
1281         * lib/vasnprintf.c (decode_long_double): Likewise.
1282         * tests/test-argmatch.c: Insert blank lines, for clarity.
1283         * tests/test-exclude.c: Likewise.
1284
1285 2011-02-22  Bruno Haible  <bruno@clisp.org>
1286
1287         ioctl: Fix for MacOS X in 64-bit mode.
1288         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
1289         value.
1290         Suggested by Eric Blake.
1291         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
1292
1293 2011-02-22  Jim Meyering  <meyering@redhat.com>
1294
1295         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
1296         * Makefile (sc_cpp_indent_check): Don't limit the check to files
1297         in lib/.
1298
1299 2011-02-22  Eric Blake  <eblake@redhat.com>
1300
1301         maint: avoid any CDPATH issue
1302         * Makefile (sc_cpp_indent_check): Anchor cd argument.
1303
1304         maint: adjust cpp indentation for my modules, as well
1305         * Makefile (sc_cpp_indent_check): Add my name.
1306         * lib/fbufmode.c: Filter through cppi.
1307         * lib/fpurge.c: Likewise.
1308         * lib/freadable.c: Likewise.
1309         * lib/freading.c: Likewise.
1310         * lib/fwritable.c: Likewise.
1311         * lib/fwriting.c: Likewise.
1312         * lib/sigaction.c: Likewise.
1313
1314 2011-02-22  Jim Meyering  <meyering@redhat.com>
1315
1316         maint: adjust cpp indentation to reflect nesting depth
1317         I.e., in a block of code that begins with an unnested "#if",
1318         put one space between the "#" in column 1 and following token.
1319         For example,
1320         -#include <sys/vfs.h>
1321         +# include <sys/vfs.h>
1322         Do this only in .c files that are part of a module I maintain.
1323         * lib/linkat.c: Filter through cppi.
1324         * lib/nanosleep.c: Likewise.
1325         * lib/openat.c: Likewise.
1326         * lib/openat-die.c: Likewise.
1327         * lib/dup3.c: Likewise.
1328         * lib/fchownat.c: Likewise.
1329         * lib/flock.c: Likewise.
1330         * lib/fsync.c: Likewise.
1331         * lib/fts.c: Likewise.
1332         * lib/getpass.c: Likewise.
1333         * lib/gettimeofday.c: Likewise.
1334         * lib/userspec.c: Likewise.
1335         * Makefile (sc_cpp_indent_check): New rule, to check this.
1336
1337 2011-02-22  Bruno Haible  <bruno@clisp.org>
1338
1339         New module 'wctomb'.
1340         * lib/stdlib.in.h (wctomb): New declaration.
1341         * lib/wctomb.c: New file.
1342         * lib/wctomb-impl.h: New file.
1343         * m4/wctomb.m4: New file.
1344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
1345         REPLACE_WCTOMB.
1346         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
1347         REPLACE_WCTOMB.
1348         * modules/wctomb: New file.
1349         * tests/test-stdlib-c++.cc: Test signature of wctomb.
1350         * doc/posix-functions/wctomb.texi: Mention the new module.
1351         * modules/wctob (Depends-on): Add wctomb.
1352
1353 2011-02-22  Bruno Haible  <bruno@clisp.org>
1354
1355         New module 'mbtowc'.
1356         * lib/stdlib.in.h (mbtowc): New declaration.
1357         * lib/mbtowc.c: New file.
1358         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
1359         * m4/mbtowc.m4: New file.
1360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
1361         REPLACE_MBTOWC.
1362         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
1363         REPLACE_MBTOWC.
1364         * modules/mbtowc: New file.
1365         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
1366         * doc/posix-functions/mbtowc.texi: Mention the new module.
1367         * modules/btowc (Depends-on): Add mbtowc.
1368
1369 2011-02-22  Bruno Haible  <bruno@clisp.org>
1370
1371         wcrtomb: Add more tests for native Windows platforms.
1372         * tests/test-wcrtomb-w32-1.sh: New file.
1373         * tests/test-wcrtomb-w32-2.sh: New file.
1374         * tests/test-wcrtomb-w32-3.sh: New file.
1375         * tests/test-wcrtomb-w32-4.sh: New file.
1376         * tests/test-wcrtomb-w32-5.sh: New file.
1377         * tests/test-wcrtomb-w32.c: New file.
1378         * modules/wcrtomb-tests (Files): Add them.
1379         (Makefile.am): Arrange to run these tests.
1380         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
1381         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
1382
1383 2011-02-20  Bruno Haible  <bruno@clisp.org>
1384
1385         wcrtomb: Enhance test.
1386         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
1387
1388 2011-02-20  Bruno Haible  <bruno@clisp.org>
1389
1390         mbrtowc: Tiny optimization.
1391         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
1392
1393 2011-02-20  Jim Meyering  <meyering@redhat.com>
1394
1395         test-exclude.c: remove unmatched #endif
1396         * tests/test-exclude.c: Remove stray #endif, left over from
1397         the change of a week ago.
1398
1399 2011-02-19  Jim Meyering  <meyering@redhat.com>
1400
1401         git-version-gen: skip "-dirty" check when appropriate
1402         * build-aux/git-version-gen: Don't run any git commands when the
1403         version string comes from .tarball-version.  Prior to this, we
1404         would run git update-index --refresh even from a just-unpacked
1405         tarball directory, and that could affect a .git/ directory in a
1406         parent of the build directory.  Reported by Mike Frysinger.
1407
1408 2011-02-19  Bruno Haible  <bruno@clisp.org>
1409
1410         unictype/property-byname: Reduce the size of the 'data' segment.
1411         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
1412
1413 2011-02-19  Bruno Haible  <bruno@clisp.org>
1414
1415         unictype/scripts: Reduce the size of the 'data' segment.
1416         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
1417         '%pic'.
1418         * lib/unictype/scripts_byname.gperf: Regenerated.
1419
1420 2011-02-19  Bruno Haible  <bruno@clisp.org>
1421
1422         stdint: Update documentation.
1423         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
1424
1425 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1426
1427         stdint: omit redundant check for wchar.h
1428         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
1429         always tests whether wchar.h exists, so remove the now-redundant test.
1430
1431 2011-02-18  Bruno Haible  <bruno@clisp.org>
1432
1433         stdint: Cut dependency to module 'wchar'.
1434         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
1435         include the necessary prerequisites.
1436         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
1437         * modules/stdint (Depends-on): Remove wchar.
1438         (Makefile.am): Substitute HAVE_WCHAR_H.
1439         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
1440
1441 2011-02-18  Eric Blake  <eblake@redhat.com>
1442
1443         longlong: skip, rather than fail, on cross-compilation
1444         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
1445         when cross-compiling; regression from 2011-02-16.
1446
1447 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1448
1449         * NEWS: Mention 2011-02-08 change to stdlib.
1450
1451 2011-02-17  Bruno Haible  <bruno@clisp.org>
1452
1453         getloadavg: Add comments about platforms.
1454         * m4/getloadavg.m4: Add comment.
1455         * lib/getloadavg.c: Likewise.
1456
1457 2011-02-17  Bruno Haible  <bruno@clisp.org>
1458
1459         getloadavg: Fix link error on Solaris 2.6.
1460         * modules/getloadavg (Link): New section.
1461         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
1462         linking test-getloadavg.
1463         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
1464         getloadavg.
1465
1466 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1467
1468         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
1469         It was 'int', but this doesn't match the IRIX 6.5 manual.
1470         Suggested by Bruno Haible in
1471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
1472
1473 2011-02-17  Bruno Haible  <bruno@clisp.org>
1474
1475         havelib: Fix comments.
1476         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
1477         change.
1478
1479 2011-02-17  Bruno Haible  <bruno@clisp.org>
1480
1481         havelib: Update config.rpath.
1482         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
1483
1484 2011-02-17  Bruno Haible  <bruno@clisp.org>
1485
1486         getloadavg test: Add some plausibility checks.
1487         * tests/test-getloadavg.c (check_avg): Print a warning when the value
1488         is improbable.
1489
1490 2011-02-16  Eric Blake  <eblake@redhat.com>
1491
1492         maintainer-makefile: make syntax-check a no-op from tarballs
1493         * top/maint.mk (no-vc-detected): New rule.
1494         (local-checks-available): Use it to avoid hanging if someone tries
1495         'make syntax-check' from a tarball.  Also append to any non-syntax
1496         checks already defined in cfg.mk.
1497
1498 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
1499
1500         longlong: tune, particularly for common case of c99
1501
1502         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
1503         or running anything if c99, or if unsigned long long int does not
1504         work.  In either case, we know the answer without further tests.
1505         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
1506         it at most once, and use its results for both long long int and
1507         unsigned long long int.  This is more likely to be efficient in
1508         the common case where the program wants to check for both long
1509         long int and unsigned long long int.
1510         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
1511         since the answer is already known.
1512
1513 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
1514
1515         getloadavg: set errno
1516         * lib/getloadavg.c: Set errno when returning -1.  If no other
1517         error number looks appropriate, set it to ENOSYS if the getloadavg
1518         looks like it can't possibly ever work, ENOTSUP otherwise.
1519         Suggested by Bruno Haible in
1520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
1521
1522         getloadavg: trim unused parts and speed up 'configure'
1523         * NEWS: Document this.
1524         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
1525         always compiled if getloadavg is absent.
1526         Move test code to ...
1527         * tests/test-getloadavg.c: New file, containing previous
1528         contents of test from lib/getloadavg.c.  It also contains
1529         suggestions by Bruno Haible in
1530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
1531         * modules/getloadavg-tests: New file.
1532         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
1533         Do tests in the same order as they're needed for getloadavg.c.
1534         Omit setgid-related tests that generate symbols KMEM_GROUP,
1535         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
1536         Do only the tests that are needed to see whether the system has
1537         getloadavg, moving the other tests into ...
1538         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
1539         NLIST_NAME_UNION; nobody should be using it.  Do not define
1540         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
1541         relevant, as the user of this module shouldn't care how getloadavg
1542         is implemented.
1543
1544         getloadavg: omit unused var
1545         * lib/getloadavg.c (getloadavg): Omit unused local variable.
1546
1547 2011-02-15  Jim Meyering  <meyering@redhat.com>
1548
1549         doc: update users.txt
1550         * users.txt: Update iwhd's URL.
1551
1552 2011-02-13  Bruno Haible  <bruno@clisp.org>
1553
1554         Consistent macro naming for macros that use GCC __attribute__.
1555         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
1556         _ATTRIBUTE_NONNULL_.
1557         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
1558         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
1559         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
1560         ATTRIBUTE_DEPRECATED.
1561         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
1562         ATTRIBUTE_NORETURN.
1563         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1564         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1565         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1566         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1567         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
1568         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
1569         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
1570         ATTRIBUTE_SENTINEL.
1571         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
1572         ATTRIBUTE_RETURN_CHECK.
1573         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
1574         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
1575         ATTRIBUTE_NORETURN.
1576         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
1577         Reported by Paul Eggert.
1578
1579 2011-02-13  Bruno Haible  <bruno@clisp.org>
1580
1581         Don't interfere with a program's definition of __attribute__.
1582         * lib/argp.h (__attribute__): Remove definition.
1583         (_GL_ATTRIBUTE_FORMAT): New macro.
1584         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
1585         * lib/argp-fmtstream.h (__attribute__): Remove definition.
1586         (_GL_ATTRIBUTE_FORMAT): New macro.
1587         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
1588         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
1589         GCC 3 or newer.
1590         * lib/error.h (__attribute__): Remove definition.
1591         (_GL_ATTRIBUTE_FORMAT): New macro.
1592         (error, error_at_line): Use it.
1593         * lib/hash.h (__attribute__): Remove definition.
1594         (ATTRIBUTE_WUR): Update definition. Define always.
1595         * lib/openat.h (__attribute__): Remove definition.
1596         (ATTRIBUTE_NORETURN): Update definition. Define always.
1597         * lib/sigpipe-die.h (__attribute__): Remove definition.
1598         (ATTRIBUTE_NORETURN): Update definition. Define always.
1599         * lib/vasnprintf.h (__attribute__): Remove definition.
1600         (_GL_ATTRIBUTE_FORMAT): New macro.
1601         (asnprintf, vasnprintf): Use it.
1602         * lib/xalloc.h (__attribute__): Remove definition.
1603         (ATTRIBUTE_NORETURN): Update definition. Define always.
1604         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
1605         * lib/xmemdup0.h (__attribute__): Remove definition.
1606         (ATTRIBUTE_NORETURN): Update definition. Define always.
1607         * lib/xprintf.h (__attribute__): Remove definition.
1608         (_GL_ATTRIBUTE_FORMAT): New macro.
1609         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
1610         * lib/xstrtol.h (__attribute__): Remove definition.
1611         (ATTRIBUTE_NORETURN): Update definition. Define always.
1612         * lib/xvasprintf.h (__attribute__): Remove definition.
1613         (_GL_ATTRIBUTE_FORMAT): New macro.
1614         (xasprintf, xvasprintf): Use it.
1615         * tests/test-argmatch.c (__attribute__): Remove definition.
1616         (ATTRIBUTE_NORETURN): Update definition. Define always.
1617         * tests/test-exclude.c (__attribute__): Remove definition.
1618         (ATTRIBUTE_NORETURN): Update definition. Define always.
1619         Reported by Paul Eggert.
1620
1621 2011-02-13  Bruno Haible  <bruno@clisp.org>
1622
1623         mbrtowc: Add more tests for native Windows platforms.
1624         * tests/test-mbrtowc-w32-1.sh: New file.
1625         * tests/test-mbrtowc-w32-2.sh: New file.
1626         * tests/test-mbrtowc-w32-3.sh: New file.
1627         * tests/test-mbrtowc-w32-4.sh: New file.
1628         * tests/test-mbrtowc-w32-5.sh: New file.
1629         * tests/test-mbrtowc-w32.c: New file.
1630         * modules/mbrtowc-tests (Files): Add them.
1631         (Makefile.am): Arrange to run these tests.
1632         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
1633         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
1634
1635 2011-02-13  Bruno Haible  <bruno@clisp.org>
1636
1637         mbrtowc: Work around native Windows bug.
1638         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
1639         guess when no suitable locale for testing was found.
1640         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
1641
1642 2011-02-13  Bruno Haible  <bruno@clisp.org>
1643
1644         mbsinit: Work around mingw bug.
1645         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
1646         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
1647         Windows.
1648         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
1649
1650 2011-02-13  Bruno Haible  <bruno@clisp.org>
1651
1652         mbsinit: Don't crash for a NULL argument.
1653         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
1654         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
1655
1656 2011-02-13  Bruno Haible  <bruno@clisp.org>
1657
1658         Don't interfere with a program's definition of __attribute__.
1659         * lib/stdio.in.h (__attribute__): Remove definition.
1660         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
1661         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
1662         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
1663         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
1664         * lib/string.in.h (__attribute__): Remove definition.
1665         Reported by Paul Eggert.
1666
1667 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1668
1669         stdlib: don't get in the way of non-GCC __attribute__
1670         See thread starting at
1671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
1672         Revert previous stdlib change, installing the following instead:
1673         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
1674         to get in the way of a non-GCC compiler that supports __attribute__.
1675         (_GL_ATTRIBUTE_RETURN): New macro.
1676         (_Exit): Use it instead of __attribute__.
1677
1678 2011-02-12  Bruno Haible  <bruno@clisp.org>
1679
1680         quotearg test: Avoid test failure on mingw.
1681         * tests/test-quotearg.sh: Convert the locale identifier from native
1682         Windows syntax to Unix syntax.
1683
1684 2011-02-12  Bruno Haible  <bruno@clisp.org>
1685
1686         setlocale: Prefer gnulib's override over libintl's override.
1687         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
1688         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
1689         GNULIB_defined_setlocale is set.
1690
1691 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1692
1693         stdlib: support non-GCC __attribute__
1694
1695         Fix a serious and tricky problem encountered when attempting to
1696         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
1697         5.5, but it crashed due to memory corruption on Solaris 10 with
1698         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
1699         bits that are otherwise zero.  This tagging is optional inside
1700         Emacs but is preferred and is used when __attribute__ ((__aligned
1701         (8))) works, as it does with both recent-enough GCC and with Sun C
1702         5.11.  However, Sun C 5.11 is not GCC and does not #define
1703         __GNUC__ and __GNUC_MINOR__.
1704
1705         When I added the getloadavg module to Emacs, it brought in
1706         stdlib.in.h, which contained this fragment:
1707
1708            #ifndef __attribute__
1709            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
1710            #  define __attribute__(Spec)   /* empty */
1711            # endif
1712            #endif
1713
1714         When files that include <stdlib.h> were compiled with Sun C 5.11,
1715         the above code disabled __attribute__ ((__aligned (8))), which
1716         caused variables to not be properly aligned, which eventually led
1717         to the pointer corruption mentioned above.  (This was a bit hard
1718         to diagnose, unfortunately.)
1719
1720         Several "#define __attribute__(X) /* empty */" code snippets need
1721         to be eradicated from Gnulib to work with non-GCC compilers that
1722         support __attribute__.  The Autoconf way to do this is to test for
1723         each kind of attribute that we want support for, and selectively
1724         enable that in source code.
1725
1726         Fix this problem just for stdlib.h, by adding a test for the
1727         __noreturn__ attribute, and change stdlib.in.h to use that test
1728         when needed.  This technique can be easily generalized to the
1729         other *.in.h files and attributes, and a similar technique can be
1730         used for *.h and *.c files.  This patch is enough to solve the
1731         problem for Emacs + getloadavg, and I thought I'd publish it for
1732         feedback before undertaking further, similar fixes in other
1733         modules.
1734
1735         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
1736         because it's not needed for stdlib.h.  It merely substitutes the
1737         value directly into stdlib.h.  We may well need to #define it, or
1738         similar symbols, for other modules, but it's nice to also have an
1739         option to not #define it for applications like Emacs that do not
1740         need it.
1741
1742         * lib/stdlib.in.h (__attribute__): Do not #define.
1743         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
1744         be defined only if the _Exit module is also used.
1745         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
1746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
1747         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
1748         platforms.
1749         * modules/_Exit (Files): Add m4/attribute.m4.
1750         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
1751         * m4/attribute.m4: New file.
1752
1753 2011-02-12  Bruno Haible  <bruno@clisp.org>
1754
1755         wcsrtombs: Work around bug on native Windows.
1756         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
1757         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
1758         instead of len.
1759         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
1760
1761 2011-02-12  Bruno Haible  <bruno@clisp.org>
1762
1763         mbsrtowcs: Work around bug on native Windows.
1764         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
1765         against mingw bug.
1766         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
1767
1768 2011-02-12  Bruno Haible  <bruno@clisp.org>
1769
1770         Avoid setlocale bugs in tests.
1771         * modules/btowc (Dependencies): Add setlocale.
1772         * modules/c-strcase (Dependencies): Likewise.
1773         * modules/mbmemcasecmp (Dependencies): Likewise.
1774         * modules/mbmemcasecoll (Dependencies): Likewise.
1775         * modules/mbrtowc (Dependencies): Likewise.
1776         * modules/mbscasecmp (Dependencies): Likewise.
1777         * modules/mbscasestr (Dependencies): Likewise.
1778         * modules/mbschr (Dependencies): Likewise.
1779         * modules/mbscspn (Dependencies): Likewise.
1780         * modules/mbsinit (Dependencies): Likewise.
1781         * modules/mbsncasecmp (Dependencies): Likewise.
1782         * modules/mbsnrtowcs (Dependencies): Likewise.
1783         * modules/mbspbrk (Dependencies): Likewise.
1784         * modules/mbspcasecmp (Dependencies): Likewise.
1785         * modules/mbsrchr (Dependencies): Likewise.
1786         * modules/mbsrtowcs (Dependencies): Likewise.
1787         * modules/mbsspn (Dependencies): Likewise.
1788         * modules/mbsstr (Dependencies): Likewise.
1789         * modules/nl_langinfo (Dependencies): Likewise.
1790         * modules/quotearg (Dependencies): Likewise.
1791         * modules/unicase/locale-language (Dependencies): Likewise.
1792         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
1793         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
1794         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
1795         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
1796         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
1797         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
1798         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
1799         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
1800         * modules/vasnprintf-posix (Dependencies): Likewise.
1801         * modules/wcrtomb (Dependencies): Likewise.
1802         * modules/wcsnrtombs (Dependencies): Likewise.
1803         * modules/wcsrtombs (Dependencies): Likewise.
1804
1805 2011-02-12  Bruno Haible  <bruno@clisp.org>
1806
1807         setlocale: Workaround native Windows bug.
1808         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
1809         succeeds but sets LC_CTYPE to "C", report a failure.
1810         * tests/test-setlocale2.sh: New file.
1811         * tests/test-setlocale2.c: New file.
1812         * modules/setlocale-tests (Files): Add the new files.
1813         (Makefile.am): Enable test-setlocale2.sh test.
1814         * doc/posix-functions/setlocale.texi: Mention workaround.
1815
1816 2011-02-11  Bruno Haible  <bruno@clisp.org>
1817
1818         Tests for module 'setlocale'.
1819         * modules/setlocale-tests: New file.
1820         * tests/test-setlocale1.sh: New file.
1821         * tests/test-setlocale1.c: New file.
1822
1823         New module 'setlocale'.
1824         * lib/locale.in.h (setlocale): New declaration.
1825         * lib/setlocale.c: New file, based on
1826         gettext/gettext-runtime/intl/setlocale.c.
1827         * m4/setlocale.m4: New file.
1828         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
1829         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
1830         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
1831         REPLACE_SETLOCALE.
1832         * modules/setlocale: New file.
1833         * tests/test-locale-c++.cc: Test the declaration of setlocale.
1834         * doc/posix-functions/setlocale.texi: Mention the new module.
1835
1836 2011-02-11  Bruno Haible  <bruno@clisp.org>
1837
1838         Prepare for locale dependent tests on mingw.
1839         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
1840         because it has the wrong locale encoding.
1841         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
1842         French_France.1252 instead of "fr".
1843         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
1844         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
1845         because it has the wrong locale encoding.
1846         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
1847         native Windows, try Turkish_Turkey.65001.
1848         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
1849         Chinese_China.54936.
1850
1851         Prepare for locale dependent tests on mingw.
1852         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
1853         differently.
1854         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1855         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1856         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1857         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1858
1859 2011-02-11  Eric Blake  <eblake@redhat.com>
1860
1861         strptime: avoid compiler warnings
1862         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
1863         compiler warnings about dead code.
1864         Reported by Daniel P. Berrange.
1865
1866 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
1867
1868         doc: update users.txt
1869         * users.txt: Add rcs.
1870
1871 2011-02-10  John W. Eaton  <jwe@gnu.org>
1872
1873         doc: update users.txt
1874         * users.txt: Add octave.
1875
1876 2011-02-10  Jim Meyering  <meyering@redhat.com>
1877
1878         doc: update users.txt
1879         * users.txt: Add iwhd.
1880
1881 2011-02-09  Bruno Haible  <bruno@clisp.org>
1882
1883         gnulib-tool: Make copyright notice adjustment more robust.
1884         * gnulib-tool (func_import): In sed_transform_main_lib_file,
1885         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
1886         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
1887         License".
1888         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
1889
1890 2011-02-06  Bruno Haible  <bruno@clisp.org>
1891
1892         New module 'towctrans'.
1893         * modules/towctrans: New file.
1894         * lib/wctype.in.h (towctrans): New declaration.
1895         * lib/towctrans.c: New file.
1896         * lib/towctrans-impl.h: New file.
1897         * m4/towctrans.m4: New file.
1898         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
1899         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
1900         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
1901         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
1902         * doc/posix-functions/towctrans.texi: Mention the new module.
1903
1904 2011-02-06  Bruno Haible  <bruno@clisp.org>
1905
1906         New module 'wctrans'.
1907         * modules/wctrans: New file.
1908         * lib/wctype.in.h (wctrans): New declaration.
1909         * lib/wctrans.c: New file.
1910         * lib/wctrans-impl.h: New file.
1911         * m4/wctrans.m4: New file.
1912         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
1913         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
1914         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
1915         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
1916         * doc/posix-functions/wctrans.texi: Mention the new module.
1917
1918 2011-02-06  Bruno Haible  <bruno@clisp.org>
1919
1920         New module 'iswctype'.
1921         * modules/iswctype: New file.
1922         * lib/wctype.in.h (iswctype): New declaration.
1923         * lib/iswctype.c: New file.
1924         * lib/iswctype-impl.h: New file.
1925         * m4/iswctype.m4: New file.
1926         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
1927         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
1928         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
1929         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
1930         * doc/posix-functions/iswctype.texi: Mention the new module and the
1931         HP-UX 11.00 problem.
1932
1933 2011-02-06  Bruno Haible  <bruno@clisp.org>
1934
1935         New module 'wctype'.
1936         * modules/wctype: Change to represent the wctype() substitute.
1937         * lib/wctype.in.h (wctype): New declaration.
1938         * lib/wctype.c: New file.
1939         * lib/wctype-impl.h: New file.
1940         * m4/wctype.m4: New file.
1941         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
1942         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
1943         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
1944         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
1945         * doc/posix-functions/wctype.texi: Mention the new module and the
1946         HP-UX 11.00 problem.
1947
1948 2011-02-06  Bruno Haible  <bruno@clisp.org>
1949
1950         wctype-h: Ensure wctype_t and wctrans_t are defined.
1951         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
1952         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1953         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1954         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
1955         HAVE_WCTRANS_T.
1956         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
1957
1958 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1959
1960         flock: fix license typo
1961
1962         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
1963         omitted.
1964
1965 2011-02-08  Bruno Haible  <bruno@clisp.org>
1966
1967         Split large sed scripts, for HP-UX sed.
1968         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
1969         to avoid HP-UX limit of 99 commands, in the near future.
1970         * modules/stdlib (Makefile.am): Likewise.
1971         * modules/unistd (Makefile.am): Likewise.
1972         * modules/wchar (Makefile.am): Likewise.
1973         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1974         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
1975         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
1976
1977 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1978             Bruno Haible  <bruno@clisp.org>
1979
1980         stdlib: improve random_r modularization
1981         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
1982         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
1983         you also need the random_r module to get this material right.
1984         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
1985         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
1986         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
1987
1988 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1989
1990         stdlib: don't depend on stdint
1991         * lib/stdlib.in.h: Don't include <stdint.h> merely because
1992         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
1993         be independent of whether stdint.h is needed.
1994         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
1995         here, instead of ...
1996         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
1997         struct random_data should be using the random_r module, not just
1998         the stdlib module (which wouldn't make sense: what package needs
1999         just struct random_data without also needing random_r?).
2000         * modules/stdlib (Depends-on): Remove stdint.
2001
2002         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
2003         See the thread rooted at
2004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
2005         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
2006         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
2007         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
2008         __VMS)); previously it was always included (via fcntl--.h).
2009         (getloadavg): Do not use c_strtod.  Instead, approximate it by
2010         hand; this is good enough for load averages.  Also, do not use
2011         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
2012         flags directly if available and don't bother otherwise.  (Packages
2013         that need the extra reliability should use the modules that define
2014         these flags on older platforms that lack them.)
2015         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
2016         fcntl-safer.
2017
2018 2011-02-08  Jim Meyering  <meyering@redhat.com>
2019
2020         di-set.h, ino-map.h: add multiple-inclusion guard
2021         Technically, the guard is required only for ino-map.h, due to its
2022         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
2023         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
2024         * lib/ino-map.h: Likewise.
2025
2026 2011-02-06  Bruno Haible  <bruno@clisp.org>
2027
2028         iswblank: Ensure declaration on glibc systems.
2029         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
2030         * modules/iswblank (Dependencies): Add 'extensions'.
2031         * doc/posix-functions/iswblank.texi: Document the glibc problem.
2032
2033 2011-02-06  Bruno Haible  <bruno@clisp.org>
2034
2035         New module 'iswblank'.
2036         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
2037         * modules/iswblank: New file.
2038         * modules/wctype-h (Files): Remove lib/iswblank.c.
2039         (Makefile.am): Substitute GNULIB_ISWBLANK.
2040         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
2041         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
2042         (gl_WCTYPE_H_DEFAULTS): New macro.
2043         (gl_WCTYPE_H): Require it. Remove iswblank related code.
2044         * modules/iswblank-tests: New file.
2045         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
2046         * tests/test-wctype-h.c (main): Remove iswblank tests.
2047         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
2048         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
2049         of 'wctype-h'.
2050         * NEWS: Mention the change.
2051         * modules/mbchar (Depends-on): Add iswblank.
2052
2053 2011-02-08  Bruno Haible  <bruno@clisp.org>
2054
2055         di-set tests: Refactor.
2056         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
2057         unnecessary includes.
2058         (ASSERT): Remove macro.
2059         (main): Make C90 compliant by avoiding variable declaration after
2060         statement.
2061         * modules/di-set-tests (Files): Add tests/macros.h.
2062
2063 2011-02-08  Bruno Haible  <bruno@clisp.org>
2064
2065         ino-map tests: Refactor.
2066         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
2067         unnecessary includes.
2068         (ASSERT): Remove macro.
2069         (main): Make C90 compliant by avoiding variable declaration after
2070         statement.
2071         * modules/ino-map-tests (Files): Add tests/macros.h.
2072
2073 2011-02-08  Jim Meyering  <meyering@redhat.com>
2074
2075         di-set: add "const" to a cast
2076         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
2077         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
2078
2079 2011-02-06  Bruno Haible  <bruno@clisp.org>
2080
2081         Rename module 'wctype' to 'wctype-h'.
2082         * modules/wctype-h: Renamed from modules/wctype.
2083         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
2084         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
2085         (Files, Depends-on, Makefile.am): Update.
2086         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
2087         (Files, Makefile.am): Update.
2088         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
2089         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
2090         * doc/posix-headers/wctype.texi: Update.
2091         * doc/posix-functions/iswalnum.texi: Update.
2092         * doc/posix-functions/iswalpha.texi: Update.
2093         * doc/posix-functions/iswblank.texi: Update.
2094         * doc/posix-functions/iswcntrl.texi: Update.
2095         * doc/posix-functions/iswdigit.texi: Update.
2096         * doc/posix-functions/iswgraph.texi: Update.
2097         * doc/posix-functions/iswlower.texi: Update.
2098         * doc/posix-functions/iswprint.texi: Update.
2099         * doc/posix-functions/iswpunct.texi: Update.
2100         * doc/posix-functions/iswspace.texi: Update.
2101         * doc/posix-functions/iswupper.texi: Update.
2102         * doc/posix-functions/iswxdigit.texi: Update.
2103         * doc/posix-functions/towlower.texi: Update.
2104         * doc/posix-functions/towupper.texi: Update.
2105         * NEWS: Mention the change.
2106         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
2107         * modules/mbchar (Dependencies): Likewise.
2108         * modules/mbswidth (Dependencies): Likewise.
2109         * modules/quotearg (Dependencies): Likewise.
2110         * modules/regex (Dependencies): Likewise.
2111         * modules/wcscasecmp (Dependencies): Likewise.
2112         * modules/wcsncasecmp (Dependencies): Likewise.
2113         * modules/wcwidth (Dependencies): Likewise.
2114
2115 2011-02-06  Bruno Haible  <bruno@clisp.org>
2116
2117         New module 'wcswidth'.
2118         * modules/wcswidth: New file.
2119         * lib/wchar.in.h (wcswidth): New declaration.
2120         * lib/wcswidth.c: New file.
2121         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
2122         * m4/wcswidth.m4: New file.
2123         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
2124         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
2125         REPLACE_WCSWIDTH.
2126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
2127         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
2128         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
2129         * doc/posix-functions/wcswidth.texi: Mention the new module.
2130
2131 2011-02-06  Bruno Haible  <bruno@clisp.org>
2132
2133         New module 'wcstok'.
2134         * modules/wcstok: New file.
2135         * lib/wchar.in.h (wcstok): New declaration.
2136         * lib/wcstok.c: New file.
2137         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
2138         * m4/wcstok.m4: New file.
2139         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
2140         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
2141         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
2142         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
2143         * doc/posix-functions/wcstok.texi: Mention the new module.
2144
2145 2011-02-06  Bruno Haible  <bruno@clisp.org>
2146
2147         New module 'wcsstr'.
2148         * modules/wcsstr: New file.
2149         * lib/wchar.in.h (wcsstr): New declaration.
2150         * lib/wcsstr.c: New file.
2151         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
2152         * m4/wcsstr.m4: New file.
2153         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
2154         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
2155         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
2156         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
2157         * doc/posix-functions/wcsstr.texi: Mention the new module.
2158
2159 2011-02-06  Bruno Haible  <bruno@clisp.org>
2160
2161         New module 'wcspbrk'.
2162         * modules/wcspbrk: New file.
2163         * lib/wchar.in.h (wcspbrk): New declaration.
2164         * lib/wcspbrk.c: New file.
2165         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
2166         * m4/wcspbrk.m4: New file.
2167         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
2168         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
2169         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
2170         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
2171         * doc/posix-functions/wcspbrk.texi: Mention the new module.
2172
2173 2011-02-06  Bruno Haible  <bruno@clisp.org>
2174
2175         New module 'wcsspn'.
2176         * modules/wcsspn: New file.
2177         * lib/wchar.in.h (wcsspn): New declaration.
2178         * lib/wcsspn.c: New file.
2179         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
2180         * m4/wcsspn.m4: New file.
2181         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
2182         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
2183         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
2184         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
2185         * doc/posix-functions/wcsspn.texi: Mention the new module.
2186
2187 2011-02-06  Bruno Haible  <bruno@clisp.org>
2188
2189         New module 'wcscspn'.
2190         * modules/wcscspn: New file.
2191         * lib/wchar.in.h (wcscspn): New declaration.
2192         * lib/wcscspn.c: New file.
2193         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
2194         * m4/wcscspn.m4: New file.
2195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
2196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
2197         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
2198         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
2199         * doc/posix-functions/wcscspn.texi: Mention the new module.
2200
2201 2011-02-06  Bruno Haible  <bruno@clisp.org>
2202
2203         New module 'wcsrchr'.
2204         * modules/wcsrchr: New file.
2205         * lib/wchar.in.h (wcsrchr): New declaration.
2206         * lib/wcsrchr.c: New file.
2207         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
2208         * m4/wcsrchr.m4: New file.
2209         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
2210         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
2211         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
2212         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
2213         * doc/posix-functions/wcsrchr.texi: Mention the new module.
2214
2215 2011-02-06  Bruno Haible  <bruno@clisp.org>
2216
2217         New module 'wcschr'.
2218         * modules/wcschr: New file.
2219         * lib/wchar.in.h (wcschr): New declaration.
2220         * lib/wcschr.c: New file.
2221         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
2222         * m4/wcschr.m4: New file.
2223         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
2224         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
2225         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
2226         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
2227         * doc/posix-functions/wcschr.texi: Mention the new module.
2228
2229 2011-02-06  Bruno Haible  <bruno@clisp.org>
2230
2231         New module 'wcsdup'.
2232         * modules/wcsdup: New file.
2233         * lib/wchar.in.h (wcsdup): New declaration.
2234         * lib/wcsdup.c: New file.
2235         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
2236         * m4/wcsdup.m4: New file.
2237         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
2238         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
2239         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
2240         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
2241         * doc/posix-functions/wcsdup.texi: Mention the new module.
2242
2243 2011-02-06  Bruno Haible  <bruno@clisp.org>
2244
2245         New module 'wcsxfrm'.
2246         * modules/wcsxfrm: New file.
2247         * lib/wchar.in.h (wcsxfrm): New declaration.
2248         * lib/wcsxfrm.c: New file.
2249         * lib/wcsxfrm-impl.h: New file.
2250         * m4/wcsxfrm.m4: New file.
2251         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
2252         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
2253         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
2254         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
2255         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
2256
2257 2011-02-06  Bruno Haible  <bruno@clisp.org>
2258
2259         New module 'wcscoll'.
2260         * modules/wcscoll: New file.
2261         * lib/wchar.in.h (wcscoll): New declaration.
2262         * lib/wcscoll.c: New file.
2263         * lib/wcscoll-impl.h: New file.
2264         * m4/wcscoll.m4: New file.
2265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
2266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
2267         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
2268         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
2269         * doc/posix-functions/wcscoll.texi: Mention the new module.
2270
2271 2011-02-06  Bruno Haible  <bruno@clisp.org>
2272
2273         New module 'wcsncasecmp'.
2274         * modules/wcsncasecmp: New file.
2275         * lib/wchar.in.h (wcsncasecmp): New declaration.
2276         * lib/wcsncasecmp.c: New file.
2277         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
2278         * m4/wcsncasecmp.m4: New file.
2279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
2280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
2281         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
2282         HAVE_WCSNCASECMP.
2283         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
2284         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
2285
2286 2011-02-06  Bruno Haible  <bruno@clisp.org>
2287
2288         New module 'wcscasecmp'.
2289         * modules/wcscasecmp: New file.
2290         * lib/wchar.in.h (wcscasecmp): New declaration.
2291         * lib/wcscasecmp.c: New file.
2292         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
2293         * m4/wcscasecmp.m4: New file.
2294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
2295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
2296         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
2297         HAVE_WCSCASECMP.
2298         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
2299         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
2300
2301 2011-02-05  Bruno Haible  <bruno@clisp.org>
2302
2303         New module 'wcsncmp'.
2304         * modules/wcsncmp: New file.
2305         * lib/wchar.in.h (wcsncmp): New declaration.
2306         * lib/wcsncmp.c: New file.
2307         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
2308         * m4/wcsncmp.m4: New file.
2309         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
2310         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
2311         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
2312         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
2313         * doc/posix-functions/wcsncmp.texi: Mention the new module.
2314
2315 2011-02-05  Bruno Haible  <bruno@clisp.org>
2316
2317         New module 'wcscmp'.
2318         * modules/wcscmp: New file.
2319         * lib/wchar.in.h (wcscmp): New declaration.
2320         * lib/wcscmp.c: New file.
2321         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
2322         * m4/wcscmp.m4: New file.
2323         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
2324         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
2325         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
2326         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
2327         * doc/posix-functions/wcscmp.texi: Mention the new module.
2328
2329 2011-02-05  Bruno Haible  <bruno@clisp.org>
2330
2331         New module 'wcsncat'.
2332         * modules/wcsncat: New file.
2333         * lib/wchar.in.h (wcsncat): New declaration.
2334         * lib/wcsncat.c: New file.
2335         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
2336         * m4/wcsncat.m4: New file.
2337         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
2338         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
2339         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
2340         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
2341         * doc/posix-functions/wcsncat.texi: Mention the new module.
2342
2343 2011-02-05  Bruno Haible  <bruno@clisp.org>
2344
2345         New module 'wcscat'.
2346         * modules/wcscat: New file.
2347         * lib/wchar.in.h (wcscat): New declaration.
2348         * lib/wcscat.c: New file.
2349         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
2350         * m4/wcscat.m4: New file.
2351         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
2352         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
2353         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
2354         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
2355         * doc/posix-functions/wcscat.texi: Mention the new module.
2356
2357 2011-02-05  Bruno Haible  <bruno@clisp.org>
2358
2359         New module 'wcpncpy'.
2360         * modules/wcpncpy: New file.
2361         * lib/wchar.in.h (wcpncpy): New declaration.
2362         * lib/wcpncpy.c: New file.
2363         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
2364         * m4/wcpncpy.m4: New file.
2365         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
2366         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
2367         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
2368         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
2369         * doc/posix-functions/wcpncpy.texi: Mention the new module.
2370
2371 2011-02-05  Bruno Haible  <bruno@clisp.org>
2372
2373         New module 'wcsncpy'.
2374         * modules/wcsncpy: New file.
2375         * lib/wchar.in.h (wcsncpy): New declaration.
2376         * lib/wcsncpy.c: New file.
2377         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
2378         * m4/wcsncpy.m4: New file.
2379         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
2380         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
2381         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
2382         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
2383         * doc/posix-functions/wcsncpy.texi: Mention the new module.
2384
2385 2011-02-05  Bruno Haible  <bruno@clisp.org>
2386
2387         New module 'wcpcpy'.
2388         * modules/wcpcpy: New file.
2389         * lib/wchar.in.h (wcpcpy): New declaration.
2390         * lib/wcpcpy.c: New file.
2391         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
2392         * m4/wcpcpy.m4: New file.
2393         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
2394         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
2395         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
2396         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
2397         * doc/posix-functions/wcpcpy.texi: Mention the new module.
2398
2399 2011-02-05  Bruno Haible  <bruno@clisp.org>
2400
2401         New module 'wcscpy'.
2402         * modules/wcscpy: New file.
2403         * lib/wchar.in.h (wcscpy): New declaration.
2404         * lib/wcscpy.c: New file.
2405         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
2406         * m4/wcscpy.m4: New file.
2407         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
2408         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
2409         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
2410         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
2411         * doc/posix-functions/wcscpy.texi: Mention the new module.
2412
2413 2011-02-05  Bruno Haible  <bruno@clisp.org>
2414
2415         New module 'wcsnlen'.
2416         * modules/wcsnlen: New file.
2417         * lib/wchar.in.h (wcsnlen): New declaration.
2418         * lib/wcsnlen.c: New file.
2419         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
2420         * m4/wcsnlen.m4: New file.
2421         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
2422         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
2423         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
2424         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
2425         * doc/posix-functions/wcsnlen.texi: Mention the new module.
2426
2427 2011-02-05  Bruno Haible  <bruno@clisp.org>
2428
2429         New module 'wcslen'.
2430         * modules/wcslen: New file.
2431         * lib/wchar.in.h (wcslen): New declaration.
2432         * lib/wcslen.c: New file.
2433         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
2434         * m4/wcslen.m4: New file.
2435         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
2436         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
2437         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
2438         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
2439         * doc/posix-functions/wcslen.texi: Mention the new module.
2440
2441 2011-02-05  Bruno Haible  <bruno@clisp.org>
2442
2443         New module 'wmemset'.
2444         * modules/wmemset: New file.
2445         * lib/wchar.in.h (wmemset): New declaration.
2446         * lib/wmemset.c: New file.
2447         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
2448         * m4/wmemset.m4: New file.
2449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
2450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
2451         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
2452         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
2453         * doc/posix-functions/wmemset.texi: Mention the new module.
2454
2455 2011-02-05  Bruno Haible  <bruno@clisp.org>
2456
2457         New module 'wmemmove'.
2458         * modules/wmemmove: New file.
2459         * lib/wchar.in.h (wmemmove): New declaration.
2460         * lib/wmemmove.c: New file.
2461         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
2462         * m4/wmemmove.m4: New file.
2463         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
2464         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
2465         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
2466         HAVE_WMEMMOVE.
2467         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
2468         * doc/posix-functions/wmemmove.texi: Mention the new module.
2469
2470 2011-02-05  Bruno Haible  <bruno@clisp.org>
2471
2472         New module 'wmemcpy'.
2473         * modules/wmemcpy: New file.
2474         * lib/wchar.in.h (wmemcpy): New declaration.
2475         * lib/wmemcpy.c: New file.
2476         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
2477         * m4/wmemcpy.m4: New file.
2478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
2479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
2480         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
2481         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
2482         * doc/posix-functions/wmemcpy.texi: Mention the new module.
2483
2484 2011-02-05  Bruno Haible  <bruno@clisp.org>
2485
2486         New module 'wmemcmp'.
2487         * modules/wmemcmp: New file.
2488         * lib/wchar.in.h (wmemcmp): New declaration.
2489         * lib/wmemcmp.c: New file.
2490         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
2491         * m4/wmemcmp.m4: New file.
2492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
2493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
2494         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
2495         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
2496         * doc/posix-functions/wmemcmp.texi: Mention the new module.
2497
2498 2011-02-07  Jim Meyering  <meyering@redhat.com>
2499
2500         di-set, ino-map: new modules, from coreutils
2501         * lib/di-set.c: New file.
2502         * lib/di-set.h: Likewise.
2503         * lib/ino-map.c: Likewise.
2504         * lib/ino-map.h: Likewise.
2505         * modules/di-set: Likewise.
2506         * modules/di-set-tests: Likewise.
2507         * modules/ino-map: Likewise.
2508         * modules/ino-map-tests: Likewise.
2509         * tests/test-di-set.c: Likewise.
2510         * tests/test-ino-map.c: Likewise.
2511
2512 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
2513
2514         getloadavg: merge minor changes from Emacs
2515
2516         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
2517         (getloadavg): Use memset, not bzero.
2518
2519         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
2520         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
2521         clash (bug#86).
2522
2523 2010-11-14  Bruno Haible  <bruno@clisp.org>
2524
2525         Allow multiple gnulib generated replacements to coexist.
2526         * lib/getopt.in.h (struct option): Avoid identical redefinition.
2527         * lib/inttypes.in.h (imaxdiv_t): Likewise.
2528         * lib/langinfo.in.h (nl_item): Likewise.
2529         * lib/math.in.h (_NaN, NAN): Likewise.
2530         * lib/netdb.in.h (struct addrinfo): Likewise.
2531         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
2532         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
2533         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
2534         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
2535         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
2536         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
2537         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
2538         pthread_mutexattr_init, pthread_mutexattr_settype,
2539         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
2540         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
2541         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
2542         pthread_spin_trylock, pthread_spin_unlock): Likewise.
2543         * lib/sched.in.h (struct sched_param): Likewise.
2544         * lib/se-selinux.in.h (security_class_t, security_context_t,
2545         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
2546         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
2547         lsetfilecon, fsetfilecon, security_check_context,
2548         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
2549         Likewise.
2550         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
2551         Likewise.
2552         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
2553         _gl_function_taking_int_returning_void_t, union sigval,
2554         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
2555         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
2556         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2557         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
2558         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
2559         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
2560         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
2561         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
2562         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
2563         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
2564         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
2565         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
2566         socklen_t, rpl_fd_isset): Likewise.
2567         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
2568         * lib/sys_time.in.h (struct timeval): Likewise.
2569         * lib/sys_times.in.h (struct tms): Likewise.
2570         * lib/sys_utsname.in.h (struct utsname):
2571         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
2572         * lib/unistd.in.h (getpagesize): Likewise.
2573         * lib/wchar.in.h (mbstate_t): Likewise.
2574         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
2575         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
2576         towlower, towupper): Likewise.
2577         Reported by Sam Steingold <sds@gnu.org>.
2578
2579 2011-02-05  Eric Blake  <eblake@redhat.com>
2580
2581         unsetenv: work around Haiku issues
2582         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
2583         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
2584
2585 2010-12-30  Bruce Korb  <bkorb@gnu.org>
2586
2587         libposix: avoid calling error() within libposix
2588         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
2589         is defined.
2590
2591 2011-02-05  Eric Blake  <eblake@redhat.com>
2592
2593         strerror_r-posix: port to cygwin
2594         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
2595         implementation.
2596         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
2597         * tests/test-strerror_r.c (main): Fix test.
2598         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2599         issue.
2600
2601 2011-02-05  Bruno Haible  <bruno@clisp.org>
2602
2603         New module 'wmemchr'.
2604         * modules/wmemchr: New file.
2605         * lib/wchar.in.h (wmemchr): New declaration.
2606         * lib/wmemchr.c: New file.
2607         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
2608         * m4/wmemchr.m4: New file.
2609         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
2610         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
2611         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
2612         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
2613         * doc/posix-functions/wmemchr.texi: Mention the new module.
2614
2615 2011-02-04  Eric Blake  <eblake@redhat.com>
2616
2617         fdopendir: detect FreeBSD bug
2618         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
2619         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
2620
2621 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2622
2623         stdbool: do not define HAVE_STDBOOL_H
2624         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
2625         AC_HEADER_STDBOOL.  All uses changed.  Do not define
2626         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
2627         imported from the latest Autoconf git.  It was motivated by Emacs,
2628         which uses gnulib but does not need HAVE_STDBOOL_H.
2629
2630 2011-02-04  Bruno Haible  <bruno@clisp.org>
2631
2632         wcsnrtombs: Prepare for new module wwcsnrtombs.
2633         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
2634         * lib/wcsnrtombs.c: Include it.
2635         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
2636
2637         wcsrtombs: Prepare for new module wwcsrtombs.
2638         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
2639         * lib/wcsrtombs.c: Include it.
2640         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
2641
2642         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
2643         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
2644         * lib/mbsnrtowcs.c: Include it.
2645         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
2646
2647         mbsrtowcs: Prepare for new module mbsrtowwcs.
2648         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
2649         * lib/mbsrtowcs.c: Include it.
2650         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
2651
2652 2011-02-04  Bruno Haible  <bruno@clisp.org>
2653
2654         vasnprintf: Reduce use of malloc for small format strings.
2655         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
2656         (arguments): Add room for the first 7 arguments.
2657         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
2658         (char_directives, u8_directives, u16_directives, u32_directives): Add
2659         room for the first 7 directives.
2660         * lib/printf-parse.c: Include <string.h>.
2661         (PRINTF_PARSE): Change memory handling code so that it uses the first
2662         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
2663         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
2664         Reported by Pádraig Brady <P@draigbrady.com>.
2665
2666 2011-01-31  Eric Blake  <eblake@redhat.com>
2667
2668         dup2: work around Haiku bug
2669         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
2670         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
2671         * doc/posix-functions/dup2.texi (dup2): Document the bug.
2672         * tests/test-dup2.c (main): Enhance test.
2673
2674 2011-01-31  Simon Josefsson  <simon@josefsson.org>
2675
2676         doc: off_t is not available in eglibc 2.11.2 stdio.h.
2677         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
2678         declared by eglibc 2.11.2.
2679         * lib/stdio.in.h: Likewise.
2680
2681 2011-01-31  Eric Blake  <eblake@redhat.com>
2682
2683         ignore-value: add missing test dependency
2684         * tests/test-ignore-value.c: Revert previous change; stdio.h
2685         provides off_t.
2686         * modules/ignore-value-tests (Depends-on): Add missing dependency.
2687
2688 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2689
2690         mktime: clarify long_int width checking
2691         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
2692         the top level, to make it clearer that the assumption about
2693         long_int width is being checked.  See
2694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
2695
2696 2011-01-30  Simon Josefsson  <simon@josefsson.org>
2697
2698         ignore-value: Fix self-test.
2699         * tests/test-ignore-value.c: Include sys/types.h for off_t.
2700
2701 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2702
2703         TYPE_MAXIMUM: avoid theoretically undefined behavior
2704         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
2705         negative number, which the C Standard says has undefined behavior.
2706         In practice this is not a problem, but might as well do it by the book.
2707         Reported by Rich Felker and Eric Blake; see
2708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
2709         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
2710         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2711         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2712         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
2713         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2714         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
2715
2716         mktime: #undef mktime before #defining it
2717         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
2718
2719         mktime: systematically normalize tm_isdst comparisons
2720         * lib/mktime.c (isdst_differ): New function.
2721         (__mktime_internal): Use it systematically for all isdst comparisons.
2722         This completes the fix for libc BZ #6723, and removes the need for
2723         normalizing tm_isdst.  See
2724         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
2725         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
2726
2727         mktime: fix some integer overflow issues and sidestep the rest
2728
2729         This was prompted by a bug report by Benjamin Lindner for MinGW
2730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
2731         His bug is due to signed integer overflow (0 - INT_MIN), and I
2732         I scanned through mktime.c looking for other integer overflow
2733         problems, fixing all the bugs I found.
2734
2735         Although the C Standard says the resulting code is still not safe
2736         in the presence of integer overflow, in practice it should be good
2737         enough for all real-world two's-complement implementations, except
2738         for debugging environments that deliberately trap on integer
2739         overflow (e.g., gcc -ftrapv).
2740
2741         * lib/mktime.c (WRAPV): New macro.
2742         (SHR): Also check that long_int and time_t shift right in the
2743         usual way, before using the fast-but-unportable method.
2744         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
2745         used.  The code already assumed two's complement, so there's
2746         no need to test for alternatives.  All uses removed.
2747         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
2748         the C standard.  Problem reported by Rich Felker in
2749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
2750         (twos_complement_arithmetic): Also check long_int and time_t.
2751         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
2752         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
2753         (__mktime_internal): Avoid integer overflow with unary subtraction
2754         in two instances where -1 - X is an adequate replacement for -X,
2755         since the calculations are approximate.
2756
2757 2011-01-29  Eric Blake  <eblake@redhat.com>
2758
2759         mktime: avoid infinite loop
2760         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
2761         type; behavior is still undefined but portable to all known targets.
2762         Reported by Rich Felker.
2763
2764 2011-01-29  Simon Josefsson  <simon@josefsson.org>
2765
2766         rename, unlink, same-inode: Relicense.
2767         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
2768         * modules/unlink (License): Likewise.
2769         * modules/same-inode (License): Likewise.
2770
2771 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2772
2773         mktime: avoid problems on NetBSD 5 / i386
2774         * lib/mktime.c (long_int): New type.  This works around a problem
2775         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
2776         but time_t is 64 bits, and where I expect the existing code is
2777         wrong in some cases.
2778         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
2779         (ydhms_diff): Bring back the compile-time check for wide-enough
2780         year and yday.
2781
2782         mktime: fix misspelling in comment
2783         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
2784         This merges all recent glibc changes of importance.
2785
2786 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2787
2788         move-if-change: cope with concurrent mv of identical file.
2789         * build-aux/move-if-change (CMPPROG): Accept environment
2790         variable as an override for `cmp'.
2791         (usage): Document CMPPROG.
2792         Adjust comparison to drop stdout.  Cope with failure of mv if
2793         the target file exists and is identical to the source, for
2794         parallel builds.
2795         Report from H.J. Lu against binutils in PR binutils/12283.
2796
2797 2011-01-28  Bruce Korb  <bkorb@gnu.org>
2798
2799         * users.txt: Mention sharutils.
2800
2801 2011-01-28  Simon Josefsson  <simon@josefsson.org>
2802
2803         * users.txt: Mention OATH Toolkit.
2804
2805 2011-01-27  Bruno Haible  <bruno@clisp.org>
2806
2807         Prepare for supporting FreeBSD 10.
2808         * build-aux/config.libpath: Remove handling of freebsd1*.
2809
2810 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
2811
2812         Prepare for supporting FreeBSD 10.
2813         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
2814         match FreeBSD 10.0.
2815
2816 2011-01-27  Bruno Haible  <bruno@clisp.org>
2817
2818         vma-iter, get-rusage-as: Add OpenBSD support.
2819         * modules/vma-iter (configure.ac): Test for mquery.
2820         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
2821         * lib/vma-iter.c: Include <sys/mman.h>.
2822         (vma_iterate): Add an implementation based on mquery().
2823         * lib/resource-ext.h (get_rusage_as): Update comments.
2824         * lib/get-rusage-as.c: Likewise.
2825         * lib/get-rusage-data.c: Likewise.
2826
2827 2011-01-26  Karl Berry  <karl@gnu.org>
2828
2829         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
2830         variables to make it easier to override the makeinfo program used.
2831
2832 2011-01-26  Eric Blake  <eblake@redhat.com>
2833
2834         fcntl: work around Haiku F_DUPFD bugs
2835         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
2836         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
2837         cloexec bit on duplication.
2838         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
2839
2840 2011-01-26  Bruno Haible  <bruno@clisp.org>
2841
2842         Enable memory leak tests on AIX.
2843         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
2844         * tests/test-fprintf-posix3.c (main): Likewise.
2845
2846 2011-01-26  Bruno Haible  <bruno@clisp.org>
2847
2848         Tests for module 'get-rusage-data'.
2849         * modules/get-rusage-data-tests: New file.
2850         * tests/test-get-rusage-data.c: New file.
2851
2852         New module 'get-rusage-data'.
2853         * lib/resource-ext.h (get_rusage_data): New declaration.
2854         * lib/get-rusage-data.c: New file.
2855         * modules/get-rusage-data: New file.
2856
2857 2011-01-25  Bruno Haible  <bruno@clisp.org>
2858
2859         get-rusage-as: Allow for easier testing.
2860         * lib/resource-ext.h (get_rusage_as): Add comment.
2861         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
2862         (main): New function for interactive testing.
2863
2864 2011-01-25  Bruno Haible  <bruno@clisp.org>
2865
2866         vma-iter: Treat Haiku like BeOS.
2867         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
2868         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
2869
2870 2011-01-25  Eric Blake  <eblake@redhat.com>
2871
2872         c-stack: fix regression on cygwin when libsigsegv is present
2873         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
2874
2875 2011-01-24  Bruno Haible  <bruno@clisp.org>
2876
2877         vma-iter: Avoid empty intervals.
2878         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
2879         on an empty interval.
2880
2881 2011-01-24  Jim Meyering  <meyering@redhat.com>
2882
2883         u64: remove unnecessary #include
2884         * lib/u64.h: Don't include <stddef.h>.  It was not used.
2885
2886 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2887
2888         Allow the user to avoid the HAVE_RAW_DECL_* macros.
2889         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
2890
2891 2011-01-23  Bruno Haible  <bruno@clisp.org>
2892
2893         New module 'vma-iter'.
2894         * lib/vma-iter.h: New file.
2895         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
2896         * modules/vma-iter: New file.
2897         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
2898         for get_rusage_as_via_iterator.
2899         (vma_iterate_callback): New function.
2900         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
2901         * modules/get-rusage-as (Depends-on): Add vma-iter.
2902
2903 2011-01-23  Bruno Haible  <bruno@clisp.org>
2904
2905         uninorm: Tweak includes.
2906         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
2907         Reported by Jim Meyering.
2908
2909 2011-01-23  Bruno Haible  <bruno@clisp.org>
2910
2911         get-rusage-as: Improve on NetBSD.
2912         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
2913         /proc, like on FreeBSD.
2914
2915 2011-01-23  Jim Meyering  <meyering@redhat.com>
2916
2917         xreadlink.h: remove unnecessary #include
2918         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
2919
2920         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
2921         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
2922
2923 2011-01-23  Bruno Haible  <bruno@clisp.org>
2924
2925         get-rusage-as: Fix bug.
2926         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
2927         original limit when aborting the first loop.
2928
2929 2011-01-23  Bruno Haible  <bruno@clisp.org>
2930
2931         wctype: Ensure valid C syntax.
2932         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
2933         unconditionally, instead of gl_NEXT_HEADERS conditionally.
2934
2935 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2936
2937         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
2938         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
2939         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
2940         as they are needed only for configure's test case.
2941         This removes two unnecessary symbols from config.h.
2942
2943         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
2944         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
2945         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
2946         AC_CHECK_HEADERS_ONCE on a header that we also invoke
2947         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
2948         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
2949         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
2950         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2951         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2952         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2953         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2954         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2955         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2956         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2957         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2958         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2959         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2960         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2961
2962 2011-01-21  Eric Blake  <eblake@redhat.com>
2963
2964         maintainer-makefile: work with older git for submodule check
2965         * top/maint.mk (public-submodule-commit): Rewrite to avoid
2966         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
2967         Reported by Matthias Bolte.
2968
2969         bootstrap: minor portability fixes
2970         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
2971         (usage): Omit leading capital and trailing . on help phrases, per
2972         GNU Coding Standards.
2973         (check_versions, top level): Prefix messages with script name.
2974
2975 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
2976
2977         bootstrap: support --no-git option
2978         * build-aux/bootstrap: Add --no-git option, to be used when
2979         --gnulib-srcdir points to the exact desired checkout.
2980
2981 2011-01-21  Eric Blake  <eblake@redhat.com>
2982
2983         strerror_r-posix: work with glibc 2.13
2984         * lib/strerror_r.c (strerror_r): Fix return type.
2985
2986 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2987             Bruno Haible  <bruno@clisp.org>
2988
2989         uN_strstr: New unit tests.
2990         * modules/unistr/u8-strstr-tests: New file.
2991         * modules/unistr/u16-strstr-tests: New file.
2992         * modules/unistr/u32-strstr-tests: New file.
2993         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
2994         * tests/unistr/test-u8-strstr.c: New file.
2995         * tests/unistr/test-u16-strstr.c: New file.
2996         * tests/unistr/test-u32-strstr.c: New file.
2997
2998 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2999             Bruno Haible  <bruno@clisp.org>
3000
3001         Make uN_strstr functions O(n) worst-case.
3002         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
3003         16-bit and 32-bit unit cases, use the unibyte algorithm from
3004         lib/mbsstr.c.
3005         * lib/unistr/u8-strstr.c: Include <string.h>.
3006         (UNIT_IS_UINT8_T): New macro.
3007         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
3008         (U_STRLEN, U_STRNLEN): New macros.
3009         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
3010         (U_STRLEN, U_STRNLEN): New macros.
3011         * modules/unistr/u8-strstr (Depends-on): Add strstr.
3012         (configure.ac): Update required libunistring version.
3013         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
3014         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
3015         malloca.
3016         (configure.ac): Update required libunistring version.
3017         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
3018         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
3019         malloca.
3020         (configure.ac): Update required libunistring version.
3021
3022 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3023             Bruno Haible  <bruno@clisp.org>
3024
3025         Prepare for faster uN_strstr functions.
3026         * lib/str-kmp.h: Support definable UNITs.
3027         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
3028         needle_len argument.
3029         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
3030         * lib/mbscasestr.c (mbscasestr): Likewise.
3031
3032 2011-01-21  Pádraig Brady <P@draigBrady.com>
3033
3034         malloca-tests: make faster by unsetting MALLOC_PERTURB_
3035         * tests/test-malloca.c (main): Unset the environment variable
3036         to greatly speed up the test.
3037         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
3038         * modules/malloca-tests: Depend on unsetenv.
3039
3040 2011-01-21  Pádraig Brady <P@draigBrady.com>
3041
3042         ignore-value: remove stdint dependency
3043         * lib/ignore-value.h: Remove <stdint.h>
3044         * modules/ignore-value: Remove stdint dependency.
3045
3046 2011-01-21  Jim Meyering  <meyering@redhat.com>
3047
3048         maint.mk: adjust variable name to be consistent with other gl_ vars
3049         * top/maint.mk (gl_public_submodule_commit): Rename the variable
3050         to be lower case.
3051
3052 2011-01-20  Jim Meyering  <meyering@redhat.com>
3053
3054         maint.mk: make "check" depend on public-submodule-commit by default
3055         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
3056
3057 2011-01-20  Bruno Haible  <bruno@clisp.org>
3058
3059         mbfile, mbiter: Complete change from 2008-12-21.
3060         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
3061         * m4/mbiter.m4 (gl_MBITER): Likewise.
3062
3063 2011-01-20  Jim Meyering  <meyering@redhat.com>
3064
3065         init.sh: insert space between each function name and "()"
3066         * tests/init.sh: Make it a little easier to see that a function's
3067         name is "warn_", and not "warn" when looking at the first part of
3068         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
3069
3070 2011-01-20  Jim Meyering  <meyering@redhat.com>
3071
3072         mountlist: clean up code formatting
3073         * lib/mountlist.c (read_file_system_list): Split a long line,
3074         correct bracing style, use NULL in place of "(struct statfs *)0",
3075         don't parenthesize return value, add spaces around "=" and after
3076         ";-in-for-stmt".
3077
3078 2011-01-14  Markus Duft <mduft@gentoo.org>
3079
3080         mountlist: add support for Interix
3081         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
3082         Apply statvfs to all entries of /dev/fs.
3083         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
3084         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
3085
3086 2011-01-20  Jim Meyering  <meyering@redhat.com>
3087
3088         maint.mk: improve the public-submodule-commit rule
3089         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
3090         to suppress printing of its commands... unless V=1.
3091         Add git submodule's --quiet option to suppress printing of e.g.,
3092         "Entering gnulib" output.
3093         "cd" into $(srcdir) before running git submodule.
3094
3095 2011-01-20  Bruno Haible  <bruno@clisp.org>
3096
3097         include_next: Fix bug introduced on 2011-01-18.
3098         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
3099         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
3100         ac_cv_header_... variable if the second argument is not 'check'.
3101         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
3102         gl_NEXT_HEADERS_INTERNAL.
3103
3104 2011-01-20  Bruno Haible  <bruno@clisp.org>
3105
3106         Allow the user to avoid the GNULIB_TEST_* macros.
3107         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
3108         Suggested by Paul Eggert.
3109
3110 2011-01-14  Jim Meyering  <meyering@redhat.com>
3111
3112         bootstrap: avoid failure when there is no .gitmodules file
3113         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
3114         has been assigned to, even when its value is the empty string.
3115         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
3116         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
3117         Reported by John W. Eaton <jwe@gnu.org>.
3118
3119 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
3120
3121         assume <ctype.h>, ..., <time.h> exist
3122         For years gnulib has been assuming the existence of the headers
3123         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
3124         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
3125         them, since they don't appear to be needed.
3126         * README (Portability guidelines): Document this.
3127         * lib/flock.c: Assume <fcntl.h> exists.
3128         * lib/regex_internal.h: Assume <locale.h> exists.
3129         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
3130         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
3131         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
3132         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
3133         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
3134         * m4/regex.m4 (gl_REGEX): Likewise.
3135         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
3136         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
3137         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
3138         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
3139         * tests/test-argp.c: Likewise.
3140         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
3141
3142         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
3143         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
3144         AA_APPLE_UNIVERSAL_BUILD.  See
3145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
3146         * NEWS: Document this.
3147
3148 2011-01-19  Eric Blake  <eblake@redhat.com>
3149
3150         c-stack: assume stack overflow if SA_SIGINFO unsupported
3151         * lib/c-stack.c (SIGACTION_WORKS): Rename...
3152         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
3153         sigaction will work.
3154         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
3155         behavior match Linux.
3156         * tests/test-c-stack.c (main): Prefer NULL for pointers.
3157
3158         stdbool-tests: accomodate Haiku
3159         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
3160
3161         binary-io: fix O_TEXT on Haiku
3162         * modules/binary-io (Depends-on): Add fcntl-h.
3163         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
3164         than blindly undefining O_TEXT.
3165         Reported by Scott McCreary.
3166
3167 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3168
3169         include_next: do not check for standard headers like stddef.h
3170
3171         I found this problem when modifying Emacs to use gnulib.
3172         I noticed that it added HAVE_STDDEF_H to config.h, even though
3173         gnulib always assumes <stddef.h> exists as per README and this
3174         symbol is unnecessary.
3175         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
3176         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
3177         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
3178         faster for headers like stddef.h that are known to exist.
3179         (gl_CHECK_NEXT_HEADERS): Use it.
3180         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
3181         rather than gl_CHECK_NEXT_HEADERS.
3182         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
3183         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
3184
3185 2011-01-18  Eric Blake  <eblake@redhat.com>
3186
3187         ansi-c++-opt: skip C++ dependency style if C++ is unused
3188         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
3189         tests when we know C++ compilation is not desired.
3190         Reported by Scott McCreary.
3191
3192 2011-01-18  Bruno Haible  <bruno@clisp.org>
3193
3194         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
3195         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
3196         (main): Perform test also when getrlimit and setrlimit don't exist or
3197         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
3198         limiting the address space size using setrlimit, compare the address
3199         space size before and after the the test.
3200         * tests/test-dprintf-posix2.c: Likewise.
3201         * tests/test-fprintf-posix3.sh: Update skip messages.
3202         * tests/test-dprintf-posix2.sh: Likewise.
3203         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
3204         * modules/dprintf-posix-tests (Depends-on): Likewise.
3205         Reported by Bruce Korb <bkorb@gnu.org> and
3206         Gary V. Vaughan <gary@gnu.org>.
3207
3208 2011-01-18  Bruno Haible  <bruno@clisp.org>
3209
3210         get-rusage-as: Improvement for Cygwin.
3211         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
3212         areas that are merely reserved.
3213
3214 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3215
3216         strftime: remove dependencies on multibyte modules
3217
3218         strftime depended on mbrlen, mbsinit, and wchar, but these modules
3219         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
3220         only if __osf__ is defined, and I suspect OSF doesn't need these
3221         other modules.  If my guess is wrong, we'll need to come up with a
3222         variant of strftime that doesn't need the multibyte modules.
3223
3224         I discovered this problem when attempting modify Emacs to use the
3225         strftime module.  With the previous gnulib, this caused Emacs to
3226         need 31 new files, ranging from lib/config.charset to
3227         m4/wint_t.m4.  This was overkill and I expect would be offputting
3228         to the Emacs maintainers.  After this change, only 6 new files are
3229         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
3230         stdbool.m4, and tm_gmtoff.m4.
3231
3232         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
3233         Suggested by Bruno Haible in
3234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
3235         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
3236         and do not check for wchar.h.
3237         * modules/strftime (Files): Remove m4/mbstate_t.m4.
3238         (Depends-on): Remove mbrlen, mbsinit, wchar.
3239
3240 2011-01-18  Bruno Haible  <bruno@clisp.org>
3241
3242         Tests for module 'get-rusage-as'.
3243         * modules/get-rusage-as-tests: New file.
3244         * tests/test-get-rusage-as.c: New file.
3245
3246         New module 'get-rusage-as'.
3247         * modules/get-rusage-as: New file.
3248         * lib/resource-ext.h: New file.
3249         * lib/get-rusage-as.c: New file.
3250
3251 2011-01-17  Eric Blake  <eblake@redhat.com>
3252
3253         sigaction: relax license from LGPLv3+ to LGPLv2+
3254         * modules/sigaction (License): Relax to LGPLv2+.
3255
3256 2011-01-14  Bruno Haible  <bruno@clisp.org>
3257
3258         filemode: Make function declarations usable in C++ mode.
3259         * lib/filemode.h: Enclose function declarations in extern "C" block.
3260         Reported by John W. Eaton <jwe@gnu.org>.
3261
3262 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
3263
3264         save-cwd: no longer include "xgetcwd.h"
3265         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
3266         This avoids a compilation failure in projects that use save-cwd
3267         without also using the xgetcwd module.
3268
3269 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3270
3271         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
3272         This is so that a program like Emacs, which needs only dtoastr,
3273         does not have to bother with distributing and compiling ftoastr
3274         and ldtoastr.
3275         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
3276         * modules/dtoastr, modules/ldtoastr: New files.
3277         * modules/ftoastr: Now works just for 'float'.
3278         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
3279         (Makefile.am): Remove ftoastr.h (not needed and no effect),
3280         dtoastr.c, ldtoastr.c.
3281
3282 2011-01-11  Jim Meyering  <meyering@redhat.com>
3283
3284         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
3285         There is no need to work around the lack of the fchdir function,
3286         since gnulib can now provide a replacement when required.
3287         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
3288         * modules/save-cwd (Depends-on): Add fchdir.
3289
3290 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3291
3292         openat, save-cwd: avoid xmalloc
3293
3294         This removes a direct (but undocumented) dependency of openat on
3295         xalloc, along with an indirect dependency via save-cwd.  It also
3296         removes a dependency of save-cwd on xgetcwd, and thereby
3297         indirectly on xalloc.  This change causes the openat substitute
3298         to fall back on save_cwd when memory is tight, and for save_cwd to
3299         fail instead of dying when memory is tight, but that's good enough.
3300         Problem and initial idea for fix reported by Bastien Roucaries in
3301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
3302
3303         * lib/openat-proc.c: Include stdlib.h (for malloc), not
3304         xalloc.h (for xmalloc).
3305         (openat_proc_name): Use malloc, not xmalloc.
3306         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
3307         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
3308
3309         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
3310         This avoids heap allocation for file names whose lengths are in
3311         the range 512..1023, with the upper bound increasing to at most
3312         4031 depending on the platform's PATH_MAX.  (We do not want
3313         pathmax.h here as it might supply a non-constant PATH_MAX.)
3314         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
3315         Perhaps they should be moved to malloca.h?
3316         (OPENAT_BUFFER_SIZE): Use them.
3317
3318 2011-01-10  Bruno Haible  <bruno@clisp.org>
3319
3320         doc: Update users.txt.
3321         * users.txt: Add recutils.
3322
3323 2011-01-09  Karl Berry  <karl@gnu.org>
3324
3325         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
3326
3327         * doc/configmake.texi: New file.
3328         * doc/gnulib.texi: Include it.
3329         * modules/configmake: Move documentation from here.
3330
3331 2011-01-09  Bruno Haible  <bruno@clisp.org>
3332
3333         Update to Unicode 6.0.0.
3334         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
3335         (get_lbp): Update for Unicode 6.0.0.
3336         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
3337         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
3338         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
3339         U+11001, U+11038..U+11046. Remove U+06DE.
3340         (uc_width): Fix bounds of planes.
3341         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3342         lib/uniwidth/width.c.
3343         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
3344         trailing whitespace removed.
3345         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
3346         without comments, but with the original copyright notice.
3347         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
3348         * lib/unicase/ignorable.h: Likewise.
3349         * lib/unicase/tocasefold.h: Likewise.
3350         * lib/unicase/tolower.h: Likewise.
3351         * lib/unicase/totitle.h: Likewise.
3352         * lib/unicase/toupper.h: Likewise.
3353         * lib/unictype/bidi_of.h: Likewise.
3354         * lib/unictype/blocks.h: Likewise.
3355         * lib/unictype/categ_C.h: Likewise.
3356         * lib/unictype/categ_Cn.h: Likewise.
3357         * lib/unictype/categ_L.h: Likewise.
3358         * lib/unictype/categ_Ll.h: Likewise.
3359         * lib/unictype/categ_Lm.h: Likewise.
3360         * lib/unictype/categ_Lo.h: Likewise.
3361         * lib/unictype/categ_Lu.h: Likewise.
3362         * lib/unictype/categ_M.h: Likewise.
3363         * lib/unictype/categ_Mc.h: Likewise.
3364         * lib/unictype/categ_Me.h: Likewise.
3365         * lib/unictype/categ_Mn.h: Likewise.
3366         * lib/unictype/categ_N.h: Likewise.
3367         * lib/unictype/categ_Nd.h: Likewise.
3368         * lib/unictype/categ_No.h: Likewise.
3369         * lib/unictype/categ_P.h: Likewise.
3370         * lib/unictype/categ_Po.h: Likewise.
3371         * lib/unictype/categ_S.h: Likewise.
3372         * lib/unictype/categ_Sc.h: Likewise.
3373         * lib/unictype/categ_Sk.h: Likewise.
3374         * lib/unictype/categ_Sm.h: Likewise.
3375         * lib/unictype/categ_So.h: Likewise.
3376         * lib/unictype/categ_of.h: Likewise.
3377         * lib/unictype/combining.h: Likewise.
3378         * lib/unictype/ctype_alnum.h: Likewise.
3379         * lib/unictype/ctype_alpha.h: Likewise.
3380         * lib/unictype/ctype_graph.h: Likewise.
3381         * lib/unictype/ctype_lower.h: Likewise.
3382         * lib/unictype/ctype_print.h: Likewise.
3383         * lib/unictype/ctype_punct.h: Likewise.
3384         * lib/unictype/ctype_upper.h: Likewise.
3385         * lib/unictype/decdigit.h: Likewise.
3386         * lib/unictype/digit.h: Likewise.
3387         * lib/unictype/numeric.h: Likewise.
3388         * lib/unictype/pr_alphabetic.h: Likewise.
3389         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3390         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3391         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3392         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3393         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3394         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3395         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3396         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3397         * lib/unictype/pr_case_ignorable.h: Likewise.
3398         * lib/unictype/pr_cased.h: Likewise.
3399         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
3400         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
3401         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
3402         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
3403         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
3404         * lib/unictype/pr_combining.h: Likewise.
3405         * lib/unictype/pr_composite.h: Likewise.
3406         * lib/unictype/pr_currency_symbol.h: Likewise.
3407         * lib/unictype/pr_decimal_digit.h: Likewise.
3408         * lib/unictype/pr_deprecated.h: Likewise.
3409         * lib/unictype/pr_format_control.h: Likewise.
3410         * lib/unictype/pr_grapheme_base.h: Likewise.
3411         * lib/unictype/pr_grapheme_extend.h: Likewise.
3412         * lib/unictype/pr_grapheme_link.h: Likewise.
3413         * lib/unictype/pr_id_continue.h: Likewise.
3414         * lib/unictype/pr_id_start.h: Likewise.
3415         * lib/unictype/pr_ideographic.h: Likewise.
3416         * lib/unictype/pr_lowercase.h: Likewise.
3417         * lib/unictype/pr_math.h: Likewise.
3418         * lib/unictype/pr_numeric.h: Likewise.
3419         * lib/unictype/pr_other_alphabetic.h: Likewise.
3420         * lib/unictype/pr_other_id_continue.h: Likewise.
3421         * lib/unictype/pr_other_math.h: Likewise.
3422         * lib/unictype/pr_punctuation.h: Likewise.
3423         * lib/unictype/pr_sentence_terminal.h: Likewise.
3424         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3425         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3426         * lib/unictype/pr_unified_ideograph.h: Likewise.
3427         * lib/unictype/pr_uppercase.h: Likewise.
3428         * lib/unictype/pr_xid_continue.h: Likewise.
3429         * lib/unictype/pr_xid_start.h: Likewise.
3430         * lib/unictype/scripts.h: Likewise.
3431         * lib/unictype/scripts_byname.gperf: Likewise.
3432         * lib/unictype/sy_java_ident.h: Likewise.
3433         * lib/unigbrk/gbrkprop.h: Likewise.
3434         * lib/unilbrk/lbrkprop1.h: Likewise.
3435         * lib/unilbrk/lbrkprop2.h: Likewise.
3436         * lib/uninorm/decomposition-table2.h: Likewise.
3437         * lib/uniwbrk/wbrkprop.h: Likewise.
3438         * tests/unicase/test-cased.c: Likewise.
3439         * tests/unicase/test-ignorable.c: Likewise.
3440         * tests/unicase/test-uc_tolower.c: Likewise.
3441         * tests/unicase/test-uc_totitle.c: Likewise.
3442         * tests/unicase/test-uc_toupper.c: Likewise.
3443         * tests/unictype/test-categ_C.c: Likewise.
3444         * tests/unictype/test-categ_Cn.c: Likewise.
3445         * tests/unictype/test-categ_L.c: Likewise.
3446         * tests/unictype/test-categ_Ll.c: Likewise.
3447         * tests/unictype/test-categ_Lm.c: Likewise.
3448         * tests/unictype/test-categ_Lo.c: Likewise.
3449         * tests/unictype/test-categ_Lu.c: Likewise.
3450         * tests/unictype/test-categ_M.c: Likewise.
3451         * tests/unictype/test-categ_Mc.c: Likewise.
3452         * tests/unictype/test-categ_Me.c: Likewise.
3453         * tests/unictype/test-categ_Mn.c: Likewise.
3454         * tests/unictype/test-categ_N.c: Likewise.
3455         * tests/unictype/test-categ_Nd.c: Likewise.
3456         * tests/unictype/test-categ_No.c: Likewise.
3457         * tests/unictype/test-categ_P.c: Likewise.
3458         * tests/unictype/test-categ_Po.c: Likewise.
3459         * tests/unictype/test-categ_S.c: Likewise.
3460         * tests/unictype/test-categ_Sc.c: Likewise.
3461         * tests/unictype/test-categ_Sk.c: Likewise.
3462         * tests/unictype/test-categ_Sm.c: Likewise.
3463         * tests/unictype/test-categ_So.c: Likewise.
3464         * tests/unictype/test-ctype_alnum.c: Likewise.
3465         * tests/unictype/test-ctype_alpha.c: Likewise.
3466         * tests/unictype/test-ctype_graph.c: Likewise.
3467         * tests/unictype/test-ctype_lower.c: Likewise.
3468         * tests/unictype/test-ctype_print.c: Likewise.
3469         * tests/unictype/test-ctype_punct.c: Likewise.
3470         * tests/unictype/test-ctype_upper.c: Likewise.
3471         * tests/unictype/test-decdigit.h: Likewise.
3472         * tests/unictype/test-digit.h: Likewise.
3473         * tests/unictype/test-numeric.h: Likewise.
3474         * tests/unictype/test-pr_alphabetic.c: Likewise.
3475         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3476         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
3477         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
3478         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3479         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3480         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3481         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3482         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3483         * tests/unictype/test-pr_case_ignorable.c: Likewise.
3484         * tests/unictype/test-pr_cased.c: Likewise.
3485         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
3486         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
3487         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
3488         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
3489         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
3490         * tests/unictype/test-pr_combining.c: Likewise.
3491         * tests/unictype/test-pr_composite.c: Likewise.
3492         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3493         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3494         * tests/unictype/test-pr_deprecated.c: Likewise.
3495         * tests/unictype/test-pr_format_control.c: Likewise.
3496         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3497         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3498         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3499         * tests/unictype/test-pr_id_continue.c: Likewise.
3500         * tests/unictype/test-pr_id_start.c: Likewise.
3501         * tests/unictype/test-pr_ideographic.c: Likewise.
3502         * tests/unictype/test-pr_lowercase.c: Likewise.
3503         * tests/unictype/test-pr_math.c: Likewise.
3504         * tests/unictype/test-pr_numeric.c: Likewise.
3505         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3506         * tests/unictype/test-pr_other_id_continue.c: Likewise.
3507         * tests/unictype/test-pr_other_math.c: Likewise.
3508         * tests/unictype/test-pr_punctuation.c: Likewise.
3509         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3510         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3511         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3512         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3513         * tests/unictype/test-pr_uppercase.c: Likewise.
3514         * tests/unictype/test-pr_xid_continue.c: Likewise.
3515         * tests/unictype/test-pr_xid_start.c: Likewise.
3516         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3517         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3518         changes.
3519         * lib/unictype/categ_Cc.h: Likewise.
3520         * lib/unictype/categ_Cf.h: Likewise.
3521         * lib/unictype/categ_Co.h: Likewise.
3522         * lib/unictype/categ_Cs.h: Likewise.
3523         * lib/unictype/categ_Lt.h: Likewise.
3524         * lib/unictype/categ_Nl.h: Likewise.
3525         * lib/unictype/categ_Pc.h: Likewise.
3526         * lib/unictype/categ_Pd.h: Likewise.
3527         * lib/unictype/categ_Pe.h: Likewise.
3528         * lib/unictype/categ_Pf.h: Likewise.
3529         * lib/unictype/categ_Pi.h: Likewise.
3530         * lib/unictype/categ_Ps.h: Likewise.
3531         * lib/unictype/categ_Z.h: Likewise.
3532         * lib/unictype/categ_Zl.h: Likewise.
3533         * lib/unictype/categ_Zp.h: Likewise.
3534         * lib/unictype/categ_Zs.h: Likewise.
3535         * lib/unictype/ctype_blank.h: Likewise.
3536         * lib/unictype/ctype_cntrl.h: Likewise.
3537         * lib/unictype/ctype_digit.h: Likewise.
3538         * lib/unictype/ctype_space.h: Likewise.
3539         * lib/unictype/ctype_xdigit.h: Likewise.
3540         * lib/unictype/mirror.h: Likewise.
3541         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3542         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3543         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3544         * lib/unictype/pr_bidi_control.h: Likewise.
3545         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3546         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3547         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3548         * lib/unictype/pr_bidi_pdf.h: Likewise.
3549         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3550         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3551         * lib/unictype/pr_dash.h: Likewise.
3552         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3553         * lib/unictype/pr_diacritic.h: Likewise.
3554         * lib/unictype/pr_extender.h: Likewise.
3555         * lib/unictype/pr_hex_digit.h: Likewise.
3556         * lib/unictype/pr_hyphen.h: Likewise.
3557         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3558         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3559         * lib/unictype/pr_ignorable_control.h: Likewise.
3560         * lib/unictype/pr_iso_control.h: Likewise.
3561         * lib/unictype/pr_join_control.h: Likewise.
3562         * lib/unictype/pr_left_of_pair.h: Likewise.
3563         * lib/unictype/pr_line_separator.h: Likewise.
3564         * lib/unictype/pr_logical_order_exception.h: Likewise.
3565         * lib/unictype/pr_non_break.h: Likewise.
3566         * lib/unictype/pr_not_a_character.h: Likewise.
3567         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3568         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3569         * lib/unictype/pr_other_id_start.h: Likewise.
3570         * lib/unictype/pr_other_lowercase.h: Likewise.
3571         * lib/unictype/pr_other_uppercase.h: Likewise.
3572         * lib/unictype/pr_paired_punctuation.h: Likewise.
3573         * lib/unictype/pr_paragraph_separator.h: Likewise.
3574         * lib/unictype/pr_pattern_syntax.h: Likewise.
3575         * lib/unictype/pr_pattern_white_space.h: Likewise.
3576         * lib/unictype/pr_private_use.h: Likewise.
3577         * lib/unictype/pr_quotation_mark.h: Likewise.
3578         * lib/unictype/pr_radical.h: Likewise.
3579         * lib/unictype/pr_soft_dotted.h: Likewise.
3580         * lib/unictype/pr_space.h: Likewise.
3581         * lib/unictype/pr_titlecase.h: Likewise.
3582         * lib/unictype/pr_variation_selector.h: Likewise.
3583         * lib/unictype/pr_white_space.h: Likewise.
3584         * lib/unictype/pr_zero_width.h: Likewise.
3585         * lib/unictype/sy_c_ident.h: Likewise.
3586         * lib/unictype/sy_c_whitespace.h: Likewise.
3587         * lib/unictype/sy_java_whitespace.h: Likewise.
3588         * lib/uninorm/composition-table.gperf: Likewise.
3589         * lib/uninorm/decomposition-table1.h: Likewise.
3590         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
3591         LB8.
3592         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3593         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3594         * modules/unictype/*: Bump version number of expected libunistring
3595         version.
3596
3597 2011-01-09  Bruno Haible  <bruno@clisp.org>
3598
3599         Update to Unicode 5.2.0.
3600         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
3601         trailing whitespace removed.
3602
3603 2011-01-09  Bruno Haible  <bruno@clisp.org>
3604
3605         New Unicode character properties, from Unicode 5.2.0.
3606         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
3607         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
3608         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
3609         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
3610         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
3611         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
3612         uc_is_property_cased, uc_is_property_case_ignorable,
3613         uc_is_property_changes_when_lowercased,
3614         uc_is_property_changes_when_uppercased,
3615         uc_is_property_changes_when_titlecased,
3616         uc_is_property_changes_when_casefolded,
3617         uc_is_property_changes_when_casemapped): New declarations.
3618         * lib/unictype/pr_byname.gperf: Add the new properties.
3619         * modules/unictype/property-byname (Depends-on): Depend on the new
3620         properties modules.
3621         * modules/unictype/property-all (Depends-on): Likewise.
3622         * MODULES.html.sh (Unicode string functions): Add
3623         unictype/property-case-ignorable, unictype/property-cased,
3624         unictype/property-changes-when-casefolded,
3625         unictype/property-changes-when-casemapped,
3626         unictype/property-changes-when-lowercased,
3627         unictype/property-changes-when-titlecased,
3628         unictype/property-changes-when-uppercased.
3629
3630         New module 'unictype/property-changes-when-casemapped'.
3631         * modules/unictype/property-changes-when-casemapped: New file.
3632         * lib/unictype/pr_changes_when_casemapped.c: New file.
3633         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
3634         generated by gen-uni-tables.
3635         * modules/unictype/property-changes-when-casemapped-tests: New file.
3636         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
3637         automatically generated by gen-uni-tables.
3638
3639         New module 'unictype/property-changes-when-casefolded'.
3640         * modules/unictype/property-changes-when-casefolded: New file.
3641         * lib/unictype/pr_changes_when_casefolded.c: New file.
3642         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
3643         generated by gen-uni-tables.
3644         * modules/unictype/property-changes-when-casefolded-tests: New file.
3645         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
3646         automatically generated by gen-uni-tables.
3647
3648         New module 'unictype/property-changes-when-titlecased'.
3649         * modules/unictype/property-changes-when-titlecased: New file.
3650         * lib/unictype/pr_changes_when_titlecased.c: New file.
3651         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
3652         generated by gen-uni-tables.
3653         * modules/unictype/property-changes-when-titlecased-tests: New file.
3654         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
3655         automatically generated by gen-uni-tables.
3656
3657         New module 'unictype/property-changes-when-uppercased'.
3658         * modules/unictype/property-changes-when-uppercased: New file.
3659         * lib/unictype/pr_changes_when_uppercased.c: New file.
3660         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
3661         generated by gen-uni-tables.
3662         * modules/unictype/property-changes-when-uppercased-tests: New file.
3663         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
3664         automatically generated by gen-uni-tables.
3665
3666         New module 'unictype/property-changes-when-lowercased'.
3667         * modules/unictype/property-changes-when-lowercased: New file.
3668         * lib/unictype/pr_changes_when_lowercased.c: New file.
3669         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
3670         generated by gen-uni-tables.
3671         * modules/unictype/property-changes-when-lowercased-tests: New file.
3672         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
3673         automatically generated by gen-uni-tables.
3674
3675         New module 'unictype/property-case-ignorable'.
3676         * modules/unictype/property-case-ignorable: New file.
3677         * lib/unictype/pr_case_ignorable.c: New file.
3678         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
3679         by gen-uni-tables.
3680         * modules/unictype/property-case-ignorable-tests: New file.
3681         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
3682         generated by gen-uni-tables.
3683
3684         New module 'unictype/property-cased'.
3685         * modules/unictype/property-cased: New file.
3686         * lib/unictype/pr_cased.c: New file.
3687         * lib/unictype/pr_cased.h: New file, automatically generated by
3688         gen-uni-tables.
3689         * modules/unictype/property-cased-tests: New file.
3690         * tests/unictype/test-pr_cased.c: New file, automatically generated by
3691         gen-uni-tables.
3692
3693 2011-01-09  Bruno Haible  <bruno@clisp.org>
3694
3695         Update to Unicode 5.2.0.
3696         * lib/gen-uni-tables.c (output_predicate, output_category,
3697         output_combclass, output_bidi_category, output_decimal_digit_test,
3698         output_decimal_digit, output_digit_test, output_digit,
3699         output_numeric_test, output_numeric, output_mirror, output_scripts,
3700         output_scripts_byname, output_blocks, output_ident_category): Fix
3701         comment header.
3702         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
3703         get_wbp.
3704         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
3705         items.
3706         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
3707         Changes_When_Lowercased, Changes_When_Uppercased,
3708         Changes_When_Titlecased, Changes_When_Casefolded,
3709         Changes_When_Casemapped.
3710         (is_property_alphabetic, is_property_default_ignorable_code_point):
3711         Update for Unicode 5.2.0.
3712         (is_property_cased, is_property_case_ignorable,
3713         is_property_changes_when_lowercased,
3714         is_property_changes_when_uppercased,
3715         is_property_changes_when_titlecased,
3716         is_property_changes_when_casefolded,
3717         is_property_changes_when_casemapped): New functions.
3718         (output_properties): Output also the properties cased, case_ignorable,
3719         changes_when_lowercased, changes_when_uppercased,
3720         changes_when_titlecased, changes_when_casefolded,
3721         changes_when_casemapped.
3722         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
3723         Unicode TR#11 revision 17 -> 19.
3724         (LBP_CP): New enumeration value.
3725         (LBP_*): Adjust values accordingly.
3726         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3727         TR#14 revision 22 -> 24.
3728         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
3729         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
3730         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3731         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
3732         is_WBP_MIDLETTER.
3733         (output_composition_tables): Allow for 24 bits instead of 16 bits in
3734         the code1 and code2 of each composition rule.
3735         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
3736         * lib/unicase/ignorable.h: Likewise.
3737         * lib/unicase/tocasefold.h: Likewise.
3738         * lib/unicase/tolower.h: Likewise.
3739         * lib/unicase/totitle.h: Likewise.
3740         * lib/unicase/toupper.h: Likewise.
3741         * lib/unictype/bidi_of.h: Likewise.
3742         * lib/unictype/blocks.h: Likewise.
3743         * lib/unictype/categ_C.h: Likewise.
3744         * lib/unictype/categ_Cf.h: Likewise.
3745         * lib/unictype/categ_Cn.h: Likewise.
3746         * lib/unictype/categ_L.h: Likewise.
3747         * lib/unictype/categ_Ll.h: Likewise.
3748         * lib/unictype/categ_Lm.h: Likewise.
3749         * lib/unictype/categ_Lo.h: Likewise.
3750         * lib/unictype/categ_Lu.h: Likewise.
3751         * lib/unictype/categ_M.h: Likewise.
3752         * lib/unictype/categ_Mc.h: Likewise.
3753         * lib/unictype/categ_Mn.h: Likewise.
3754         * lib/unictype/categ_N.h: Likewise.
3755         * lib/unictype/categ_Nd.h: Likewise.
3756         * lib/unictype/categ_Nl.h: Likewise.
3757         * lib/unictype/categ_No.h: Likewise.
3758         * lib/unictype/categ_P.h: Likewise.
3759         * lib/unictype/categ_Pd.h: Likewise.
3760         * lib/unictype/categ_Po.h: Likewise.
3761         * lib/unictype/categ_S.h: Likewise.
3762         * lib/unictype/categ_Sc.h: Likewise.
3763         * lib/unictype/categ_So.h: Likewise.
3764         * lib/unictype/categ_of.h: Likewise.
3765         * lib/unictype/combining.h: Likewise.
3766         * lib/unictype/ctype_alnum.h: Likewise.
3767         * lib/unictype/ctype_alpha.h: Likewise.
3768         * lib/unictype/ctype_graph.h: Likewise.
3769         * lib/unictype/ctype_lower.h: Likewise.
3770         * lib/unictype/ctype_print.h: Likewise.
3771         * lib/unictype/ctype_punct.h: Likewise.
3772         * lib/unictype/ctype_upper.h: Likewise.
3773         * lib/unictype/decdigit.h: Likewise.
3774         * lib/unictype/digit.h: Likewise.
3775         * lib/unictype/numeric.h: Likewise.
3776         * lib/unictype/pr_alphabetic.h: Likewise.
3777         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3778         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3779         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3780         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3781         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3782         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3783         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3784         * lib/unictype/pr_combining.h: Likewise.
3785         * lib/unictype/pr_composite.h: Likewise.
3786         * lib/unictype/pr_currency_symbol.h: Likewise.
3787         * lib/unictype/pr_dash.h: Likewise.
3788         * lib/unictype/pr_decimal_digit.h: Likewise.
3789         * lib/unictype/pr_deprecated.h: Likewise.
3790         * lib/unictype/pr_diacritic.h: Likewise.
3791         * lib/unictype/pr_extender.h: Likewise.
3792         * lib/unictype/pr_grapheme_base.h: Likewise.
3793         * lib/unictype/pr_grapheme_extend.h: Likewise.
3794         * lib/unictype/pr_grapheme_link.h: Likewise.
3795         * lib/unictype/pr_id_continue.h: Likewise.
3796         * lib/unictype/pr_id_start.h: Likewise.
3797         * lib/unictype/pr_ideographic.h: Likewise.
3798         * lib/unictype/pr_ignorable_control.h: Likewise.
3799         * lib/unictype/pr_logical_order_exception.h: Likewise.
3800         * lib/unictype/pr_lowercase.h: Likewise.
3801         * lib/unictype/pr_numeric.h: Likewise.
3802         * lib/unictype/pr_other_alphabetic.h: Likewise.
3803         * lib/unictype/pr_punctuation.h: Likewise.
3804         * lib/unictype/pr_sentence_terminal.h: Likewise.
3805         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3806         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3807         * lib/unictype/pr_unified_ideograph.h: Likewise.
3808         * lib/unictype/pr_uppercase.h: Likewise.
3809         * lib/unictype/pr_xid_continue.h: Likewise.
3810         * lib/unictype/pr_xid_start.h: Likewise.
3811         * lib/unictype/pr_zero_width.h: Likewise.
3812         * lib/unictype/scripts.h: Likewise.
3813         * lib/unictype/scripts_byname.gperf: Likewise.
3814         * lib/unictype/sy_java_ident.h: Likewise.
3815         * lib/unigbrk/gbrkprop.h: Likewise.
3816         * lib/unilbrk/lbrkprop1.h: Likewise.
3817         * lib/unilbrk/lbrkprop2.h: Likewise.
3818         * lib/unilbrk/lbrktables.h: Likewise.
3819         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
3820         LBP_CP. Implement rule LB30.
3821         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
3822         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
3823         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
3824         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
3825         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
3826         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
3827         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
3828         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
3829         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
3830         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
3831         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
3832         bits instead of 16 bits in the code1 and code2 of each composition
3833         rule.
3834         (uc_composition): Update for Unicode 5.2.0.
3835         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
3836         * lib/uninorm/decomposition-table2.h: Likewise.
3837         * lib/uniwbrk/wbrkprop.h: Likewise.
3838         * tests/unicase/test-cased.c: Likewise.
3839         * tests/unicase/test-ignorable.c: Likewise.
3840         * tests/unicase/test-uc_tolower.c: Likewise.
3841         * tests/unicase/test-uc_totitle.c: Likewise.
3842         * tests/unicase/test-uc_toupper.c: Likewise.
3843         * tests/unictype/test-categ_C.c: Likewise.
3844         * tests/unictype/test-categ_Cf.c: Likewise.
3845         * tests/unictype/test-categ_Cn.c: Likewise.
3846         * tests/unictype/test-categ_L.c: Likewise.
3847         * tests/unictype/test-categ_Ll.c: Likewise.
3848         * tests/unictype/test-categ_Lm.c: Likewise.
3849         * tests/unictype/test-categ_Lo.c: Likewise.
3850         * tests/unictype/test-categ_Lu.c: Likewise.
3851         * tests/unictype/test-categ_M.c: Likewise.
3852         * tests/unictype/test-categ_Mc.c: Likewise.
3853         * tests/unictype/test-categ_Mn.c: Likewise.
3854         * tests/unictype/test-categ_N.c: Likewise.
3855         * tests/unictype/test-categ_Nd.c: Likewise.
3856         * tests/unictype/test-categ_Nl.c: Likewise.
3857         * tests/unictype/test-categ_No.c: Likewise.
3858         * tests/unictype/test-categ_P.c: Likewise.
3859         * tests/unictype/test-categ_Pd.c: Likewise.
3860         * tests/unictype/test-categ_Po.c: Likewise.
3861         * tests/unictype/test-categ_S.c: Likewise.
3862         * tests/unictype/test-categ_Sc.c: Likewise.
3863         * tests/unictype/test-categ_So.c: Likewise.
3864         * tests/unictype/test-ctype_alnum.c: Likewise.
3865         * tests/unictype/test-ctype_alpha.c: Likewise.
3866         * tests/unictype/test-ctype_graph.c: Likewise.
3867         * tests/unictype/test-ctype_lower.c: Likewise.
3868         * tests/unictype/test-ctype_print.c: Likewise.
3869         * tests/unictype/test-ctype_punct.c: Likewise.
3870         * tests/unictype/test-ctype_upper.c: Likewise.
3871         * tests/unictype/test-decdigit.h: Likewise.
3872         * tests/unictype/test-digit.h: Likewise.
3873         * tests/unictype/test-numeric.h: Likewise.
3874         * tests/unictype/test-pr_alphabetic.c: Likewise.
3875         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3876         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3877         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
3878         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3879         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3880         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3881         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3882         * tests/unictype/test-pr_combining.c: Likewise.
3883         * tests/unictype/test-pr_composite.c: Likewise.
3884         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3885         * tests/unictype/test-pr_dash.c: Likewise.
3886         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3887         * tests/unictype/test-pr_deprecated.c: Likewise.
3888         * tests/unictype/test-pr_diacritic.c: Likewise.
3889         * tests/unictype/test-pr_extender.c: Likewise.
3890         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3891         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3892         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3893         * tests/unictype/test-pr_id_continue.c: Likewise.
3894         * tests/unictype/test-pr_id_start.c: Likewise.
3895         * tests/unictype/test-pr_ideographic.c: Likewise.
3896         * tests/unictype/test-pr_ignorable_control.c: Likewise.
3897         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
3898         * tests/unictype/test-pr_lowercase.c: Likewise.
3899         * tests/unictype/test-pr_numeric.c: Likewise.
3900         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3901         * tests/unictype/test-pr_punctuation.c: Likewise.
3902         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3903         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3904         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3905         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3906         * tests/unictype/test-pr_uppercase.c: Likewise.
3907         * tests/unictype/test-pr_xid_continue.c: Likewise.
3908         * tests/unictype/test-pr_xid_start.c: Likewise.
3909         * tests/unictype/test-pr_zero_width.c: Likewise.
3910         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3911         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
3912         changed behaviour: line breaking is now disallowed between a letter
3913         or '=' and '('.
3914         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3915         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3916         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3917         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
3918         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3919         lib/uniwidth/width.c.
3920         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
3921         without comments, but with the original copyright notice.
3922         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3923         changes.
3924         * lib/unictype/categ_Cc.h: Likewise.
3925         * lib/unictype/categ_Co.h: Likewise.
3926         * lib/unictype/categ_Cs.h: Likewise.
3927         * lib/unictype/categ_Lt.h: Likewise.
3928         * lib/unictype/categ_Me.h: Likewise.
3929         * lib/unictype/categ_Pc.h: Likewise.
3930         * lib/unictype/categ_Pe.h: Likewise.
3931         * lib/unictype/categ_Pf.h: Likewise.
3932         * lib/unictype/categ_Pi.h: Likewise.
3933         * lib/unictype/categ_Ps.h: Likewise.
3934         * lib/unictype/categ_Sk.h: Likewise.
3935         * lib/unictype/categ_Sm.h: Likewise.
3936         * lib/unictype/categ_Z.h: Likewise.
3937         * lib/unictype/categ_Zl.h: Likewise.
3938         * lib/unictype/categ_Zp.h: Likewise.
3939         * lib/unictype/categ_Zs.h: Likewise.
3940         * lib/unictype/ctype_blank.h: Likewise.
3941         * lib/unictype/ctype_cntrl.h: Likewise.
3942         * lib/unictype/ctype_digit.h: Likewise.
3943         * lib/unictype/ctype_space.h: Likewise.
3944         * lib/unictype/ctype_xdigit.h: Likewise.
3945         * lib/unictype/mirror.h: Likewise.
3946         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3947         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3948         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3949         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3950         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3951         * lib/unictype/pr_bidi_control.h: Likewise.
3952         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3953         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3954         * lib/unictype/pr_bidi_pdf.h: Likewise.
3955         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3956         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3957         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3958         * lib/unictype/pr_format_control.h: Likewise.
3959         * lib/unictype/pr_hex_digit.h: Likewise.
3960         * lib/unictype/pr_hyphen.h: Likewise.
3961         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3962         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3963         * lib/unictype/pr_iso_control.h: Likewise.
3964         * lib/unictype/pr_join_control.h: Likewise.
3965         * lib/unictype/pr_left_of_pair.h: Likewise.
3966         * lib/unictype/pr_line_separator.h: Likewise.
3967         * lib/unictype/pr_math.h: Likewise.
3968         * lib/unictype/pr_non_break.h: Likewise.
3969         * lib/unictype/pr_not_a_character.h: Likewise.
3970         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3971         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3972         * lib/unictype/pr_other_id_continue.h: Likewise.
3973         * lib/unictype/pr_other_id_start.h: Likewise.
3974         * lib/unictype/pr_other_lowercase.h: Likewise.
3975         * lib/unictype/pr_other_math.h: Likewise.
3976         * lib/unictype/pr_other_uppercase.h: Likewise.
3977         * lib/unictype/pr_paired_punctuation.h: Likewise.
3978         * lib/unictype/pr_paragraph_separator.h: Likewise.
3979         * lib/unictype/pr_pattern_syntax.h: Likewise.
3980         * lib/unictype/pr_pattern_white_space.h: Likewise.
3981         * lib/unictype/pr_private_use.h: Likewise.
3982         * lib/unictype/pr_quotation_mark.h: Likewise.
3983         * lib/unictype/pr_radical.h: Likewise.
3984         * lib/unictype/pr_soft_dotted.h: Likewise.
3985         * lib/unictype/pr_space.h: Likewise.
3986         * lib/unictype/pr_titlecase.h: Likewise.
3987         * lib/unictype/pr_variation_selector.h: Likewise.
3988         * lib/unictype/pr_white_space.h: Likewise.
3989         * lib/unictype/sy_c_ident.h: Likewise.
3990         * lib/unictype/sy_c_whitespace.h: Likewise.
3991         * lib/unictype/sy_java_whitespace.h: Likewise.
3992         * modules/uni*/*: Bump version number of expected libunistring version.
3993         Reported by Simon Josefsson.
3994
3995 2011-01-09  Karl Heuer  <kwzh@gnu.org>
3996
3997         useless-if-before-free: fix typo in --help and make the internal,
3998         automatic version date update process work once again.
3999         --help output contained a NUL character instead of the
4000         backslash-zero that was intended.  Also, the "must lie within
4001         the first 8 lines" line is on line 9, and hence not getting
4002         automatically updated.
4003         * build-aux/useless-if-before-free: Fix the former by adding a
4004         backslash, and the latter by condensing the three lines of what-it-does
4005         to a single line, leaving one line of slack for the future.
4006
4007 2011-01-09  Bruno Haible  <bruno@clisp.org>
4008
4009         uniwidth/width: Fix width of U+1D173..U+1D17A.
4010         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
4011         symbolic_width, output_width_property_test): New functions.
4012         (main): Invoke output_nonspacing_property, output_width_property_test.
4013         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
4014         U+1D173..U+1D17A.
4015         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
4016         1.
4017         * modules/uniwidth/*: Bump version number of expected libunistring
4018         version.
4019         * modules/unilbrk/*: Likewise.
4020
4021 2011-01-08  Bruno Haible  <bruno@clisp.org>
4022
4023         uninorm tests: Preserve copyright of Unicode data file.
4024         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
4025         Mention modifications.
4026
4027 2011-01-08  Bruno Haible  <bruno@clisp.org>
4028
4029         gen-uni-tables: Prepare for Unicode 5.2.0.
4030         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
4031         (debug_output_lbp, output_lbp): Update.
4032
4033 2011-01-08  Bruno Haible  <bruno@clisp.org>
4034
4035         unilbrk: Clarify gen-uni-tables.c code.
4036         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
4037         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
4038         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
4039
4040 2011-01-07  Bruno Haible  <bruno@clisp.org>
4041
4042         strtod: Restore errno when successfully parsing Infinity or NaN.
4043         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
4044         restore the original errno.
4045
4046 2011-01-07  Bruno Haible  <bruno@clisp.org>
4047
4048         remove test: Avoid failure on HP-UX 11.
4049         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
4050
4051 2011-01-07  Bruno Haible  <bruno@clisp.org>
4052
4053         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
4054         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
4055         error code.
4056
4057 2011-01-07  Pádraig Brady <P@draigBrady.com>
4058
4059         ignore-value: fixup comments, and add Eric Blake
4060         as an author since he rewrote the macros.
4061         * lib/ignore-value.h (ignore_value):  State that
4062         we now support aggregates.  Also specify exactly
4063         when the GCC warn_unused_result feature was added.
4064
4065 2011-01-06  Eric Blake  <eblake@redhat.com>
4066
4067         ignore-value: support aggregate types
4068         * lib/ignore-value.h (ignore_value): Provide separate gcc
4069         definition.
4070         * modules/ignore-value-tests: New test module.
4071         * tests/test-ignore-value.c: New test.
4072
4073         maint.mk: improve sc_prohibit_strcmp regex
4074         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
4075         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
4076         definition of STRNEQ.
4077
4078         signal: work around Haiku issue with SIGBUS
4079         * lib/siglist.h: Add comment.
4080         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
4081         strsignal's favoring of SIGSEGV.
4082         * tests/test-signal.c (main): Avoid test failure.
4083         * doc/posix-headers/signal.texi (signal.h): Document the issue.
4084         Reported by Scott McCreary.
4085
4086         maint.mk: add pre-release check to ensure submodule commits are public
4087         * top/maint.mk (public-submodule-commit): New rule.
4088         (submodule-checks): New variable.
4089         (alpha beta stable): Depend on the variable.
4090
4091 2011-01-05  Pádraig Brady <P@draigBrady.com>
4092         and Jim Meyering  <meyering@redhat.com>
4093
4094         ignore-value: make ignore_value more generic; deprecate ignore_ptr
4095         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
4096         (ATTRIBUTE_DEPRECATED): Define.
4097         (_ignore_case): New function.
4098         (ignore_value): New macro, to replace the old function.
4099         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
4100         * modules/ignore-value (Depends-on): Add stdint.
4101
4102 2011-01-04  Eric Blake  <eblake@redhat.com>
4103
4104         doc: regenerate INSTALL
4105         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
4106         @firstparagraphindent support, now that autoconf dropped it.
4107         (INSTALL_PRELUDE): Reinstate old macro.
4108         * doc/install.texi: Resync from autoconf.
4109         * doc/INSTALL: Reflect recent autoconf update.
4110         * doc/INSTALL.ISO: Likewise.
4111         * doc/INSTALL.UTF-8: Likewise.
4112         Reported by Karl Berry.
4113
4114 2011-01-04  Bruce Korb  <address@hidden>
4115
4116         git-version-gen: avoid a sub-shell
4117         * build-aux/git-version-gen: Redirect stderr in `...` via
4118         "exec 2>...", rather than via an added sub-shell.
4119
4120 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
4121
4122         git-version-gen: use (...) rather than sh -c '...'
4123         * build-aux/git-version-gen: Rather than hard-coding a shell's name
4124         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
4125
4126 2011-01-03  Jim Meyering  <meyering@redhat.com>
4127
4128         git-version-gen: convert leading TABs to spaces
4129         * build-aux/git-version-gen: Expand leading TABs.
4130
4131         git-version-gen: handle failed "git rev-list"
4132         * build-aux/git-version-gen: Rather than leaking a "fatal" error
4133         from git and proceeding as if it had succeeded but printed no SHA1
4134         checksums, suppress the diagnostic and handle the failure.
4135         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
4136
4137         git-version-gen: include command name in one more diagnostic
4138         * build-aux/git-version-gen: When the required .tarball-version file
4139         was missing or unreadable, you might see the diagnostic from "cat",
4140         but no trace of the name of the invoking script.  Now, you still see
4141         the diagnostic from cat, but also get one from "git-version-gen: ".
4142         Inspired by a patch from Bruce Korb.
4143
4144         update-copyright: adjust test to match changed code
4145         * tests/test-update-copyright.sh: Change test's expected output
4146         to match new actual output.
4147
4148 2011-01-02  Bruno Haible  <bruno@clisp.org>
4149
4150         getlogin_r: Avoid test failure on HP-UX 11.
4151         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
4152         ERANGE when the second argument is zero.
4153         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
4154         portability problem.
4155
4156 2011-01-02  Bruce Korb  <bkorb@gnu.org>
4157
4158         * build-aux/update-copyright: doc Simon's changes
4159
4160 2011-01-02  Simon Josefsson  <simon@josefsson.org>
4161
4162         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
4163         environment variable.
4164
4165 2011-01-02  Bruno Haible  <bruno@clisp.org>
4166
4167         unigbrk: Avoid gcc warnings.
4168         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
4169         unused variable.
4170         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
4171         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
4172         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
4173         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
4174         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
4175         Change type of first argument to 'const char *'.
4176         (main): Remove unused variable.
4177         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
4178         type of first argument to 'const char *'.
4179         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
4180         Likewise.
4181         (main): Change type of variable 's'.
4182         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
4183         to 'int'.
4184
4185 2011-01-02  Bruno Haible  <bruno@clisp.org>
4186
4187         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
4188         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
4189         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
4190         bug.
4191         * lib/pwrite.c: Undo 2010-12-31 patch.
4192         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
4193
4194 2011-01-02  Bruno Haible  <bruno@clisp.org>
4195
4196         pread: Fix test whether it works.
4197         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
4198
4199 2011-01-02  Bruno Haible  <bruno@clisp.org>
4200
4201         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
4202         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
4203         ends in "6". Don't require a specific month name. Try also the locale
4204         names found on HP-UX 11 and Solaris 7.
4205
4206 2011-01-02  Bruno Haible  <bruno@clisp.org>
4207
4208         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
4209         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
4210         C linkage.
4211         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
4212
4213 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4214
4215         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
4216         for consistency, since the "cluster" term is not used elsewhere.
4217         * lib/unigbrk.in.h: Update name.
4218         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
4219         * lib/unigbrk/u16-grapheme-next.c: Update name.
4220         * lib/unigbrk/u16-grapheme-prev.c: Update name.
4221         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
4222         * lib/unigbrk/u32-grapheme-next.c: Update name.
4223         * lib/unigbrk/u32-grapheme-prev.c: Update name.
4224         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
4225         * lib/unigbrk/u8-grapheme-next.c: Update name.
4226         * lib/unigbrk/u8-grapheme-prev.c: Update name.
4227         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
4228         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
4229         Suggested by Bruno Haible.
4230
4231 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4232
4233         Remove module 'u8-grapheme-len' as too redundant with
4234         'u8-grapheme-next'.
4235         * modules/unigbrk/u8-grapheme-len: Delete file.
4236         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
4237         * lib/unigbrk.in.h: Remove prototype for deleted function.
4238         * lib/unigbrk/u8-grapheme-len.c: Delete file.
4239         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
4240
4241         Remove module 'u16-grapheme-len' as too redundant with
4242         'u16-grapheme-next'.
4243         * modules/unigbrk/u16-grapheme-len: Delete file.
4244         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
4245         * lib/unigbrk.in.h: Remove prototype for deleted function.
4246         * lib/unigbrk/u16-grapheme-len.c: Delete file.
4247         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
4248
4249         Remove module 'u32-grapheme-len' as too redundant with
4250         'u32-grapheme-next'.
4251         * modules/unigbrk/u32-grapheme-len: Delete file.
4252         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
4253         * lib/unigbrk.in.h: Remove prototype for deleted function.
4254         * lib/unigbrk/u32-grapheme-len.c: Delete file.
4255         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
4256
4257         Suggested by Bruno Haible.
4258
4259 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4260
4261         * unigbrk.in.h: Fix typo: "ben" => "been".
4262         Reported by Bruno Haible.
4263
4264 2011-01-01  Jim Meyering  <meyering@redhat.com>
4265
4266         maint: update almost all copyright ranges to include 2011
4267         Run the new "make update-copyright" rule.
4268
4269 2011-01-01  Jim Meyering  <meyering@redhat.com>
4270
4271         maint: update-copyright: exempt doc/INSTALL*
4272         * Makefile (update-copyright): Also exclude doc/INSTALL*,
4273         since they are generated.  Suggested by Bruno Haible.
4274
4275 2011-01-01  Jim Meyering  <meyering@redhat.com>
4276
4277         maint: refine the update-copyright rule
4278         * Makefile (update-copyright): Also exclude any file that includes
4279         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
4280         code that merely generates the comment.
4281
4282 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4283
4284         New module 'u8-grapheme-len'.
4285         * modules/unigbrk/u8-grapheme-len: New file.
4286         * modules/unigbrk/u8-grapheme-len-tests: New file.
4287         * lib/unigbrk.in.h: Add prototype for new function.
4288         * lib/unigbrk/u8-grapheme-len.c: New file.
4289         * tests/unigbrk/test-u8-grapheme-len.c: New file.
4290
4291         New module 'u16-grapheme-len'.
4292         * modules/unigbrk/u16-grapheme-len: New file.
4293         * modules/unigbrk/u16-grapheme-len-tests: New file.
4294         * lib/unigbrk.in.h: Add prototype for new function.
4295         * lib/unigbrk/u16-grapheme-len.c: New file.
4296         * tests/unigbrk/test-u16-grapheme-len.c: New file.
4297
4298         New module 'u32-grapheme-len'.
4299         * modules/unigbrk/u32-grapheme-len: New file.
4300         * modules/unigbrk/u32-grapheme-len-tests: New file.
4301         * lib/unigbrk.in.h: Add prototype for new function.
4302         * lib/unigbrk/u32-grapheme-len.c: New file.
4303         * tests/unigbrk/test-u32-grapheme-len.c: New file.
4304
4305         New module 'u8-grapheme-next'.
4306         * modules/unigbrk/u8-grapheme-next: New file.
4307         * modules/unigbrk/u8-grapheme-next-tests: New file.
4308         * lib/unigbrk.in.h: Add prototype for new function.
4309         * lib/unigbrk/u8-grapheme-next.c: New file.
4310         * tests/unigbrk/test-u8-grapheme-next.c: New file.
4311
4312         New module 'u16-grapheme-next'.
4313         * modules/unigbrk/u16-grapheme-next: New file.
4314         * modules/unigbrk/u16-grapheme-next-tests: New file.
4315         * lib/unigbrk.in.h: Add prototype for new function.
4316         * lib/unigbrk/u16-grapheme-next.c: New file.
4317         * tests/unigbrk/test-u16-grapheme-next.c: New file.
4318
4319         New module 'u32-grapheme-next'.
4320         * modules/unigbrk/u32-grapheme-next: New file.
4321         * modules/unigbrk/u32-grapheme-next-tests: New file.
4322         * lib/unigbrk.in.h: Add prototype for new function.
4323         * lib/unigbrk/u32-grapheme-next.c: New file.
4324         * tests/unigbrk/test-u32-grapheme-next.c: New file.
4325
4326         New module 'u8-grapheme-prev'.
4327         * modules/unigbrk/u8-grapheme-prev: New file.
4328         * modules/unigbrk/u8-grapheme-prev-tests: New file.
4329         * lib/unigbrk.in.h: Add prototype for new function.
4330         * lib/unigbrk/u8-grapheme-prev.c: New file.
4331         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
4332
4333         New module 'u16-grapheme-prev'.
4334         * modules/unigbrk/u16-grapheme-prev: New file.
4335         * modules/unigbrk/u16-grapheme-prev-tests: New file.
4336         * lib/unigbrk.in.h: Add prototype for new function.
4337         * lib/unigbrk/u16-grapheme-prev.c: New file.
4338         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
4339
4340         New module 'u32-grapheme-prev'.
4341         * modules/unigbrk/u32-grapheme-prev: New file.
4342         * modules/unigbrk/u32-grapheme-prev-tests: New file.
4343         * lib/unigbrk.in.h: Add prototype for new function.
4344         * lib/unigbrk/u32-grapheme-prev.c: New file.
4345         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
4346
4347         New module 'u8-grapheme-breaks'.
4348         * modules/unigbrk/u8-grapheme-breaks: New file.
4349         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
4350         * lib/unigbrk.in.h: Add prototype for new function.
4351         * lib/unigbrk/u8-grapheme-breaks.c: New file.
4352         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
4353
4354         New module 'u16-grapheme-breaks'.
4355         * modules/unigbrk/u16-grapheme-breaks: New file.
4356         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
4357         * lib/unigbrk.in.h: Add prototype for new function.
4358         * lib/unigbrk/u16-grapheme-breaks.c: New file.
4359         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
4360
4361         New module 'u32-grapheme-breaks'.
4362         * modules/unigbrk/u32-grapheme-breaks: New file.
4363         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
4364         * lib/unigbrk.in.h: Add prototype for new function.
4365         * lib/unigbrk/u32-grapheme-breaks.c: New file.
4366         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
4367
4368         New module 'ulc-grapheme-breaks'.
4369         * modules/unigbrk/ulc-grapheme-breaks: New file.
4370         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
4371         * m4/locale-ar.m4: New file.
4372         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
4373         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
4374         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
4375
4376 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4377
4378         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
4379         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
4380         modified how this file was generated before I initially submitted
4381         the module, but failed to regenerate it.  This meant that several
4382         of the level2 entries were wrong.
4383         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
4384         Remove the division-by-2 that is folded into the table now that
4385         gbrkprop.h has been regenerated properly.  Now -1 entries are
4386         handled correctly.
4387
4388         New module 'unigbrk/uc-gbrk-prop-tests'.
4389         * modules/unigbrk/uc-gbrk-prop-tests: New file.
4390         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
4391         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
4392         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
4393
4394 2011-01-01  Bruno Haible  <bruno@clisp.org>
4395
4396         Avoid use of hexadecimal escapes.
4397         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
4398         instead of hexadecimal escapes.
4399
4400 2011-01-01  Jim Meyering  <meyering@redhat.com>
4401
4402         maint: new rule to update copyright year ranges
4403         * Makefile (update-copyright): New rule.
4404
4405         maint: indent with TABs in Makefile
4406         * Makefile: Expand leading sequences of spaces to TABs
4407
4408         version-etc: update the copyright year it reports
4409         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
4410
4411 2010-12-31  Bruno Haible  <bruno@clisp.org>
4412
4413         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
4414         * lib/isfinite.c (zerof, zerod, zerol): New variables.
4415         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
4416         zero.
4417
4418 2010-12-31  Bruno Haible  <bruno@clisp.org>
4419
4420         pwrite: Work around HP-UX 11.11 bug.
4421         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
4422         works and set REPLACE_PWRITE if not.
4423         * lib/pwrite.c (pwrite): Add an implementation that uses the system
4424         function.
4425         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
4426
4427 2010-12-31  Bruno Haible  <bruno@clisp.org>
4428
4429         pread: Work around HP-UX 11 bugs.
4430         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
4431         and set REPLACE_PREAD if not.
4432         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
4433
4434 2010-12-31  Eric Blake  <eblake@redhat.com>
4435
4436         nl_langinfo: fix YESEXPR on Irix 6.5
4437         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
4438         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
4439         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
4440         it.
4441
4442 2010-12-31  Bruno Haible  <bruno@clisp.org>
4443
4444         iconv: Document HP-UX 11 bug.
4445         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
4446
4447 2010-12-31  Bruno Haible  <bruno@clisp.org>
4448
4449         ldexpl: Fix link error on HP-UX 11.
4450         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
4451         LDEXPL_LIBM, using $ISNANL_LIBM.
4452
4453 2010-12-31  Eric Blake  <eblake@redhat.com>
4454
4455         ftello: avoid compilation failure with SunStudio c89
4456         * lib/ftello.c (ftello): Use lseek, not llseek.
4457
4458         tests: avoid failing coreutils tests on cygwin
4459         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
4460         (create_exe_shims_): Return 0 when skipping.
4461
4462 2010-12-31  Bruno Haible  <bruno@clisp.org>
4463
4464         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
4465         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
4466
4467 2010-12-31  Bruno Haible  <bruno@clisp.org>
4468
4469         waitpid: Fix link error in C++ mode.
4470         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
4471
4472 2010-12-31  Bruno Haible  <bruno@clisp.org>
4473
4474         isnan: Use GCC built-ins when possible.
4475         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
4476         __builtin_isnan.
4477         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
4478         (isnan): Define using GCC built-ins for GCC >= 4.0.
4479
4480 2010-12-31  Bruno Haible  <bruno@clisp.org>
4481
4482         isnand: Fix mistake.
4483         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
4484         __builtin_isnand.
4485
4486 2010-12-31  Bruno Haible  <bruno@clisp.org>
4487
4488         open: Avoid C++ error on HP-UX 11.
4489         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
4490
4491 2010-12-31  Bruno Haible  <bruno@clisp.org>
4492
4493         time_r: Add missing declarations on HP-UX 11.
4494         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
4495         instead of HAVE_LOCALTIME_R.
4496         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
4497         HAVE_LOCALTIME_R always.
4498         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
4499         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
4500         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
4501         HAVE_LOCALTIME_R.
4502         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
4503         * doc/posix-functions/localtime_r.texi: Likewise.
4504
4505 2010-12-29  Eric Blake  <eblake@redhat.com>
4506
4507         mountlist: tweak previous commit
4508         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
4509         Reported by Paul Eggert.
4510
4511         mountlist: fix local drive detection on cygwin
4512         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
4513         that works for cygwin.
4514
4515 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4516
4517         ftoastr, snprintf: ftoastr + snprintf module
4518         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
4519         since the snprintf module now should be good enough here.
4520         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
4521         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
4522         and gl_MODULE_INDICATOR([snprintf]), but the former enables
4523         GNULIB_SNPRINTF only for the test directory, and the latter
4524         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
4525         seems to suffice by itself.
4526
4527 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
4528
4529         alloca: one step towards thread-safety
4530         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
4531         need for a static variable.  All callers changed.  This does not
4532         make the alloca replacement thread-safe, but it's one step.
4533
4534         tests: minor indenting change
4535         * tests/init.sh: Sync from coreutils housekeeping patch
4536         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
4537         to keep lines within 80 columns.
4538
4539 2010-12-28  Jim Meyering  <meyering@redhat.com>
4540
4541         regex: don't infloop on persistent failing calloc
4542         * lib/regexec.c (build_trtable): Return failure indication upon
4543         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
4544         In glibc, this was fixed for version 2.13:
4545         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
4546
4547 2010-12-28  Bruno Haible  <bruno@clisp.org>
4548             Paul Eggert <eggert@cs.ucla.edu>
4549
4550         linkat: Make implementation robust against system behaviour variations.
4551         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
4552         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
4553         way, and to -2 if it needs a generic runtime test.
4554         * lib/linkat.c (solaris_optimized_link_immediate,
4555         solaris_optimized_link_follow): New functions.
4556         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
4557         (check_same_link): Use it.
4558
4559 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
4560
4561         New module 'unigbrk/base'.
4562         * modules/unigbrk/base: New file.
4563         * lib/unigbrk.in.h: New file.
4564
4565         New module 'unigbrk/uc-gbrk-prop'.
4566         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
4567         * modules/unigbrk/uc-gbrk-prop: New file.
4568         * lib/unigbrk/gbrkprop.h: New file.
4569         * lib/unigbrk/uc-gbrk-prop.c: New file.
4570
4571         New module 'unigbrk/uc-is-grapheme-break'.
4572         * modules/unigbrk/uc-is-grapheme-break: New file.
4573         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
4574         * lib/unigbrk/uc-is-grapheme-break.c: New file.
4575         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
4576         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
4577         * tests/unigbrk/GraphemeBreakTest.txt: New file.
4578
4579         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
4580
4581 2010-12-27  Bruno Haible  <bruno@clisp.org>
4582
4583         linkat test: Avoid failure on Solaris 11 2010-11.
4584         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
4585
4586 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4587
4588         utimens: work around glibc rounding bug on more platforms
4589         * lib/utimens.c (fdutimens): Work around rounding bug even if
4590         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
4591         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
4592
4593 2010-12-27  Bruno Haible  <bruno@clisp.org>
4594
4595         select tests: Improve comments.
4596         * tests/test-select.c (do_select): Add comments.
4597
4598 2010-12-27  Bruno Haible  <bruno@clisp.org>
4599
4600         select tests: Safer way of handling timeout.
4601         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
4602         at every invocation.
4603
4604 2010-12-27  Bruno Haible  <bruno@clisp.org>
4605
4606         select tests: Use 'bool' where appropriate.
4607         * tests/test-select.c (connect_to_socket): Change argument type to
4608         'bool'.
4609
4610 2010-12-27  Bruno Haible  <bruno@clisp.org>
4611
4612         select tests: Use existing modules.
4613         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
4614         (configure.ac): Don't test for unistd.h.
4615         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
4616         declared in <unistd.h>.
4617
4618 2010-12-27  Bruno Haible  <bruno@clisp.org>
4619
4620         mbrtowc: Work around a Solaris 7 bug.
4621         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
4622         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
4623         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
4624         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
4625         MBRTOWC_NULL_ARG1_BUG.
4626         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
4627         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
4628         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
4629         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
4630
4631 2010-12-27  Jim Meyering  <meyering@redhat.com>
4632
4633         read-file.c: tweak syntax
4634         * lib/read-file.c (fread_file): Remove space after "*" in function
4635         definitions.
4636
4637 2010-12-27  Bruno Haible  <bruno@clisp.org>
4638
4639         times test: Avoid gcc warnings on OSF/1.
4640         * tests/test-times.c (main): Cast printf arguments from clock_t to
4641         'long int'.
4642
4643 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4644
4645         utimens: work around glibc rounding bug on older Linux kernels
4646         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
4647         on Linux with a glibc whose utimes might not work, then work
4648         around a longstanding glibc bug involving rounding rather than
4649         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
4650         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4651
4652 2010-12-26  Bruno Haible  <bruno@clisp.org>
4653
4654         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
4655         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
4656         _GL_CXXALIAS_SYS.
4657         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4658
4659 2010-12-26  Bruno Haible  <bruno@clisp.org>
4660
4661         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
4662         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
4663         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
4664         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
4665         looking for the declaration.
4666         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
4667         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
4668         problem.
4669         * doc/posix-functions/inet_pton.texi: Likewise.
4670
4671 2010-12-26  Bruno Haible  <bruno@clisp.org>
4672
4673         arpa_inet: Use the common idioms with C++ support.
4674         * lib/arpa_inet.in.h: Include c++defs.h.
4675         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
4676         support.
4677         * modules/arpa_inet (Depends-on): Add c++defs.
4678         (Makefile.am): Substitute the contents of c++defs.h.
4679         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
4680         * modules/arpa_inet-c++-tests: New file.
4681         * tests/test-arpa_inet-c++.cc: New file.
4682
4683 2010-12-25  Bruno Haible  <bruno@clisp.org>
4684
4685         Fix more C++ link errors on Solaris 8.
4686         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
4687         $(LIB_EACCESS).
4688         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
4689         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
4690         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
4691         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
4692         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
4693
4694 2010-12-25  Bruno Haible  <bruno@clisp.org>
4695
4696         printf-posix: Fix link error when a non-GCC compiler is used.
4697         * lib/stdio.in.h (printf): When not using GCC, override printf
4698         correctly.
4699         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4700
4701 2010-12-25  Bruno Haible  <bruno@clisp.org>
4702
4703         strerror_r-posix: Update doc.
4704         * doc/posix-functions/strerror_r.texi: Update doc about the return
4705         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
4706
4707 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4708
4709         utimens: simplify the logic of the previous change
4710         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
4711         This should not affect whether the test succeeds or fails.
4712
4713         utimens: configure better on hosts with NFS clock skew
4714         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
4715         uses the clock of the local host.  It might use the clock of the
4716         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
4717         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4718
4719 2010-12-25  Bruno Haible  <bruno@clisp.org>
4720
4721         ptsname test: Avoid failure on Solaris.
4722         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
4723         open a pseudo-terminal; don't use BSD-style ptys.
4724         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
4725
4726 2010-12-25  Bruno Haible  <bruno@clisp.org>
4727
4728         ptsname: Avoid ERANGE failure on some systems.
4729         * lib/ptsname.c (buffer): Increase size.
4730
4731 2010-12-25  Bruno Haible  <bruno@clisp.org>
4732
4733         rename, renameat: Avoid test failures at NFS mounted locations.
4734         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
4735         so that subsequent mkdir calls succeed.
4736
4737 2010-12-25  Bruno Haible  <bruno@clisp.org>
4738
4739         iswblank: Fix C++ link error on Solaris 8.
4740         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
4741         _GL_FUNCDECL_SYS.
4742
4743 2010-12-25  Bruno Haible  <bruno@clisp.org>
4744
4745         unistd: Fix C++ link error on Solaris 8.
4746         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
4747
4748 2010-12-25  Bruno Haible  <bruno@clisp.org>
4749
4750         readlink doc: Mention an old glibc bug.
4751         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
4752
4753 2010-12-25  Bruno Haible  <bruno@clisp.org>
4754
4755         fcntl-h: Fix for use of C++ on glibc systems.
4756         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4757         also on glibc systems in C++ mode.
4758         Reported by Gary V. Vaughan <gary@gnu.org>.
4759
4760 2010-12-25  Bruno Haible  <bruno@clisp.org>
4761
4762         roundl-ieee: Make it work on OSF/1 5.1 with cc.
4763         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
4764
4765 2010-12-25  Bruno Haible  <bruno@clisp.org>
4766
4767         truncl-ieee: Make it work on OSF/1 5.1 with cc.
4768         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
4769         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
4770         test whether truncl works according to ISO C 99 with IEC 60559.
4771         * m4/truncl-ieee.m4: New file.
4772         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
4773         m4/signbit.m4.
4774         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
4775
4776 2010-12-25  Bruno Haible  <bruno@clisp.org>
4777
4778         ceill-ieee: Make it work on OSF/1 5.1 with cc.
4779         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
4780         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
4781         test whether ceill works according to ISO C 99 with IEC 60559.
4782         * m4/ceill-ieee.m4: New file.
4783         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
4784         m4/signbit.m4.
4785         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
4786
4787 2010-12-25  Bruno Haible  <bruno@clisp.org>
4788
4789         Ensure all prerequisites of <wchar.h> are included.
4790         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
4791         before <wchar.h>.
4792         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
4793         gl_MBRLEN_NUL_RETVAL): Likewise.
4794         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
4795         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
4796         AC_FUNC_MBRTOWC): Likewise.
4797         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4798         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4799         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4800         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
4801         Likewise.
4802         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4803         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
4804         (gl_WCHAR_H): Improve comments.
4805         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4806
4807 2010-12-25  Bruno Haible  <bruno@clisp.org>
4808
4809         strtok_r: Fix C syntax error in autoconf macro.
4810         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
4811         characters in test program.
4812
4813 2010-12-24  Bruno Haible  <bruno@clisp.org>
4814
4815         ceil, trunc, round: Fix gcc warnings.
4816         * lib/ceil.c (MIN): Undefine before redefining.
4817         * lib/trunc.c (MIN): Likewise.
4818         * lib/round.c (MIN): Likewise.
4819         Include <math.h> first.
4820
4821 2010-12-24  Bruno Haible  <bruno@clisp.org>
4822
4823         select tests: Avoid failures on OSF/1 5.1.
4824         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
4825         failure of closing the last socket; it may fail with ECONNRESET.
4826
4827 2010-12-24  Eric Blake  <eblake@redhat.com>
4828
4829         stdint: avoid HP-UX 10.20 preprocessor bug
4830         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
4831         than #if.
4832         * tests/test-floor2.c (main): Likewise.
4833         Reported by Peter O'Gorman.
4834
4835         pipe: make obsoletion transition easier
4836         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
4837         * modules/pipe (Files): Include revived file.
4838         (Include): Drop reference, to mirror getdate's behavior.
4839
4840 2010-12-24  Bruno Haible  <bruno@clisp.org>
4841
4842         sys_socket: Hide mismatch of declarations on NonStop Kernel.
4843         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
4844         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
4845         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4846
4847 2010-12-24  Bruno Haible  <bruno@clisp.org>
4848
4849         gethostname: Ensure declaration on NonStop Kernel.
4850         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
4851         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4852
4853 2010-12-24  Bruno Haible  <bruno@clisp.org>
4854
4855         sys_select: Ensure all necessary types on NonStop Kernel.
4856         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
4857         include <sys/time.h>.
4858         * doc/posix-headers/sys_select.texi: Mention that it's missing on
4859         NonStop Kernel.
4860         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4861
4862 2010-12-24  Bruno Haible  <bruno@clisp.org>
4863
4864         sys_select: Remove unneeded include.
4865         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
4866         have <sys/select.h>.
4867
4868 2010-12-24  Bruno Haible  <bruno@clisp.org>
4869
4870         gethostname: Provide a fallback for HOST_NAME_MAX.
4871         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
4872         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
4873         instead.
4874         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4875
4876 2010-12-24  Bruno Haible  <bruno@clisp.org>
4877
4878         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
4879         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
4880         (SA_RESTART): Likewise.
4881         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4882
4883 2010-12-24  Bruno Haible  <bruno@clisp.org>
4884
4885         signal: Define NSIG.
4886         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
4887         * tests/test-signal.c (nsig): New variable.
4888         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4889
4890 2010-12-24  Bruno Haible  <bruno@clisp.org>
4891
4892         rename, renameat: Avoid test failures on OSF/1 5.1.
4893         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
4894         alternative error codes.
4895         * tests/test-renameat.c (main): Likewise.
4896
4897 2010-12-24  Bruno Haible  <bruno@clisp.org>
4898
4899         *printf: Detect large precisions bug on Solaris 10/SPARC.
4900         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
4901         by Paul Eggert.
4902         * tests/test-snprintf-posix.h (test_function): Add this test code here
4903         too.
4904         * tests/test-sprintf-posix.h (test_function): Likewise.
4905         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4906         * tests/test-vasprintf-posix.c (test_function): Likewise.
4907         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
4908         around by gnulib.
4909         * doc/posix-functions/printf.texi: Likewise.
4910         * doc/posix-functions/snprintf.texi: Likewise.
4911         * doc/posix-functions/sprintf.texi: Likewise.
4912         * doc/posix-functions/vfprintf.texi: Likewise.
4913         * doc/posix-functions/vprintf.texi: Likewise.
4914         * doc/posix-functions/vsnprintf.texi: Likewise.
4915         * doc/posix-functions/vsprintf.texi: Likewise.
4916         * doc/posix-functions/dprintf.texi: Undo last commit.
4917         * doc/posix-functions/vdprintf.texi: Likewise.
4918
4919 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
4920
4921         tests: port test-fdutimensat.c to Solaris 8
4922         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
4923         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
4924         On Solaris 8, it fails with errno == ENOSYS, because there is no
4925         futimens (so it can't use the fd), and there is no lutimens (so it
4926         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
4927
4928         vsnprintf: make more consistent with snprintf; doc fixes
4929
4930         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
4931         the byte count return problem was promoted from the snprintf-posix
4932         to the snprintf module.
4933         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4934         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
4935         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
4936         * tests/test-snprintf.c (main): Check the byte count returned.
4937         * tests/test-vsnprintf.c (main): Likewise.
4938
4939 2010-12-23  Eric Blake  <eblake@redhat.com>
4940
4941         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
4942         * modules/sigpipe (License): Relax license.
4943
4944 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4945
4946         doc: document Solaris printf bug with large float precisions
4947         * doc/posix-functions/dprintf.texi (dprintf):
4948         * doc/posix-functions/fprintf.texi (fprintf):
4949         * doc/posix-functions/printf.texi (printf):
4950         * doc/posix-functions/snprintf.texi (snprintf):
4951         * doc/posix-functions/sprintf.texi (sprintf):
4952         * doc/posix-functions/vdprintf.texi (vdprintf):
4953         * doc/posix-functions/vfprintf.texi (vfprintf):
4954         * doc/posix-functions/vprintf.texi (vprintf):
4955         * doc/posix-functions/vsnprintf.texi (vsnprintf):
4956         * doc/posix-functions/vsprintf.texi (vsprintf):
4957         Mention that these functions mishandle large floating point
4958         precisions on Solaris 10.  The same bug is also present in Solaris
4959         8, and I assume earlier.  This causes "cd gnulib-tests; make
4960         check" to fail on Solaris 8 (and I assume, later) when building
4961         the latest coreutils, in test-vasprintf-posix's call to
4962         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
4963         the wide flavors (e.g., wprintf) so this patch just updates the
4964         documentation for the narrow ones.
4965
4966         test-posixtm.c: add two tests
4967         * tests/test-posixtm.c: Add two tests, to highlight the
4968         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
4969         around this bug; this is merely to document it.
4970
4971 2010-12-22  Bruno Haible  <bruno@clisp.org>
4972
4973         getlogin_r: Work around portability problem on OSF/1.
4974         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
4975         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
4976         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
4977         test for a truncated result.
4978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
4979         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
4980         * modules/getlogin_r (Depends-on): Add memchr.
4981         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
4982
4983 2010-12-22  Bruno Haible  <bruno@clisp.org>
4984
4985         ptsname: Avoid test failure on OSF/1 5.1.
4986         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
4987         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
4988         (same_slave): New function.
4989         (main): Use it to compare ptsname's result with the expected file name.
4990
4991 2010-12-22  Bruno Haible  <bruno@clisp.org>
4992
4993         Port extended stdio modules to HP NonStop Kernel.
4994         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
4995         macros.
4996         * lib/fbufmode.c: Update comments.
4997         * lib/fflush.c: Likewise.
4998         * lib/fpurge.c: Likewise.
4999         * lib/freadable.c: Likewise.
5000         * lib/freadahead.c: Likewise.
5001         * lib/freading.c: Likewise.
5002         * lib/freadptr.c: Likewise.
5003         * lib/freadseek.c: Likewise.
5004         * lib/fseeko.c: Likewise.
5005         * lib/fseterr.c: Likewise.
5006         * lib/fwritable.c: Likewise.
5007         * lib/fwriting.c: Likewise.
5008         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5009
5010 2010-12-22  Bruno Haible  <bruno@clisp.org>
5011
5012         ttyname_r: Work around bug on OSF/1 5.1.
5013         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
5014         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
5015         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
5016         present.
5017         * lib/ttyname_r.c (ttyname_r): Update comments.
5018
5019 2010-12-22  Bruno Haible  <bruno@clisp.org>
5020
5021         round: Implement result sign according to IEEE 754.
5022         * lib/round.c (MIN, MINUS_ZERO): New macros.
5023         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
5024         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
5025         * tests/test-round-ieee.c (main): Likewise.
5026         * tests/test-roundl-ieee.c (main): Likewise.
5027
5028         trunc: Implement result sign according to IEEE 754.
5029         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
5030         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
5031         * tests/test-trunc2.c: Include minus-zero.h.
5032         (MINUS_ZERO): New macro.
5033         (trunc_reference): Keep in sync with lib/trunc.c.
5034         * tests/test-truncf2.c: Include minus-zero.h.
5035         (MINUS_ZERO): New macro.
5036         (truncf_reference): Keep in sync with lib/trunc.c.
5037         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
5038         * tests/test-trunc-ieee.c (main): Likewise.
5039         * tests/test-truncl-ieee.c (main): Likewise.
5040
5041         ceil: Implement result sign according to IEEE 754.
5042         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
5043         (FUNC): Return -0.0 for -1 < x < 0.
5044         * tests/test-ceil2.c: Include minus-zero.h.
5045         (MINUS_ZERO): New macro.
5046         (ceil_reference): Keep in sync with lib/ceil.c.
5047         * tests/test-ceilf2.c: Include minus-zero.h.
5048         (MINUS_ZERO): New macro.
5049         (ceilf_reference): Keep in sync with lib/ceil.c.
5050         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
5051         * tests/test-ceil-ieee.c (main): Likewise.
5052         * tests/test-ceill-ieee.c (main): Likewise.
5053
5054         floor: Implement result sign according to IEEE 754.
5055         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
5056         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
5057         * tests/test-floorf2.c (floorf_reference): Likewise.
5058         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
5059         * tests/test-floor-ieee.c (main): Likewise.
5060         * tests/test-floorl-ieee.c (main): Likewise.
5061
5062 2010-12-22  Bruno Haible  <bruno@clisp.org>
5063
5064         getaddrinfo: Update doc.
5065         * doc/posix-functions/gai_strerror.texi: Return type is also different
5066         on AIX and HP-UX.
5067
5068 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5069
5070         getaddrinfo, inet_ntop: Update doc for Solaris.
5071         * doc/posix-functions/gai_strerror.texi: Return type is also an
5072         issue on Solaris 9 and earlier.
5073         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
5074         on Solaris 10 and earlier.
5075
5076 2010-12-21  Bruno Haible  <bruno@clisp.org>
5077
5078         New module 'roundl-ieee'.
5079         * modules/roundl-ieee: New file.
5080         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
5081         test whether roundl works according to ISO C 99 with IEC 60559.
5082         * m4/roundl-ieee.m4: New file.
5083         * modules/roundl-ieee-tests: New file.
5084         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
5085         * tests/test-roundl.c (main): Remove signbit tests.
5086         * modules/roundl-tests (Depends-on): Remove signbit.
5087         * doc/posix-functions/roundl.texi: Mention the new module.
5088
5089 2010-12-21  Bruno Haible  <bruno@clisp.org>
5090
5091         New module 'truncl-ieee'.
5092         * modules/truncl-ieee: New file.
5093         * modules/truncl-ieee-tests: New file.
5094         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
5095         * tests/test-truncl.c (main): Remove signbit tests.
5096         * modules/truncl-tests (Depends-on): Remove signbit.
5097         * doc/posix-functions/truncl.texi: Mention the new module.
5098
5099 2010-12-21  Bruno Haible  <bruno@clisp.org>
5100
5101         New module 'ceill-ieee'.
5102         * modules/ceill-ieee: New file.
5103         * modules/ceill-ieee-tests: New file.
5104         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
5105         * tests/test-ceill.c (main): Remove signbit tests.
5106         * modules/ceill-tests (Depends-on): Remove signbit.
5107         * doc/posix-functions/ceill.texi: Mention the new module.
5108
5109 2010-12-21  Bruno Haible  <bruno@clisp.org>
5110
5111         New module 'floorl-ieee'.
5112         * modules/floorl-ieee: New file.
5113         * modules/floorl-ieee-tests: New file.
5114         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
5115         * tests/test-floorl.c (main): Remove signbit tests.
5116         * modules/floorl-tests (Depends-on): Remove signbit.
5117         * doc/posix-functions/floorl.texi: Mention the new module.
5118
5119 2010-12-21  Bruno Haible  <bruno@clisp.org>
5120
5121         New module 'round-ieee'.
5122         * modules/round-ieee: New file.
5123         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
5124         whether round works according to ISO C 99 with IEC 60559.
5125         * m4/round-ieee.m4: New file.
5126         * modules/round-ieee-tests: New file.
5127         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
5128         * tests/test-round1.c (main): Remove signbit tests.
5129         * modules/round-tests (Depends-on): Remove 'signbit'.
5130         * doc/posix-functions/round.texi: Mention the new module.
5131
5132 2010-12-21  Bruno Haible  <bruno@clisp.org>
5133
5134         New module 'trunc-ieee'.
5135         * modules/trunc-ieee: New file.
5136         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
5137         whether trunc works according to ISO C 99 with IEC 60559.
5138         * m4/trunc-ieee.m4: New file.
5139         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
5140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
5141         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
5142         * modules/trunc-ieee-tests: New file.
5143         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
5144         * tests/test-trunc1.c (main): Remove signbit tests.
5145         * modules/trunc-tests (Depends-on): Remove 'signbit'.
5146         * doc/posix-functions/trunc.texi: Mention the new module.
5147
5148 2010-12-21  Bruno Haible  <bruno@clisp.org>
5149
5150         New module 'ceil-ieee'.
5151         * modules/ceil-ieee: New file.
5152         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
5153         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
5154         ISO C 99 with IEC 60559.
5155         * m4/ceil-ieee.m4: New file.
5156         * modules/ceil (Files): Add lib/ceil.c.
5157         (Depends-on): Add 'float'.
5158         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5159         * lib/math.in.h (ceil): New declaration.
5160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
5161         REPLACE_CEIL.
5162         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
5163         * modules/ceil-ieee-tests: New file.
5164         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
5165         * tests/test-math-c++.cc: Check the signature of 'ceil'.
5166         * doc/posix-functions/ceil.texi: Mention the new module.
5167
5168 2010-12-21  Bruno Haible  <bruno@clisp.org>
5169
5170         New module 'floor-ieee'.
5171         * modules/floor-ieee: New file.
5172         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
5173         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
5174         ISO C 99 with IEC 60559.
5175         * m4/floor-ieee.m4: New file.
5176         * modules/floor (Files): Add lib/floor.c.
5177         (Depends-on): Add 'float'.
5178         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5179         * lib/math.in.h (floor): New declaration.
5180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
5181         REPLACE_FLOOR.
5182         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
5183         * modules/floor-ieee-tests: New file.
5184         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
5185         * tests/test-math-c++.cc: Check the signature of 'floor'.
5186         * doc/posix-functions/floor.texi: Mention the new module.
5187
5188 2010-12-21  Bruno Haible  <bruno@clisp.org>
5189
5190         New module 'roundf-ieee'.
5191         * modules/roundf-ieee: New file.
5192         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
5193         test whether roundf works according to ISO C 99 with IEC 60559.
5194         * m4/roundf-ieee.m4: New file.
5195         * modules/roundf-ieee-tests: New file.
5196         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
5197         * tests/test-roundf1.c (main): Remove signbit tests.
5198         * modules/roundf-tests (Depends-on): Remove 'signbit'.
5199         * doc/posix-functions/roundf.texi: Mention the new module.
5200
5201 2010-12-21  Bruno Haible  <bruno@clisp.org>
5202
5203         New module 'truncf-ieee'.
5204         * modules/truncf-ieee: New file.
5205         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
5206         test whether truncf works according to ISO C 99 with IEC 60559.
5207         * m4/truncf-ieee.m4: New file.
5208         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
5209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
5210         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
5211         * modules/truncf-ieee-tests: New file.
5212         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
5213         * tests/test-truncf1.c (main): Remove signbit tests.
5214         * modules/truncf-tests (Depends-on): Remove 'signbit'.
5215         * doc/posix-functions/truncf.texi: Mention the new module.
5216
5217 2010-12-21  Bruno Haible  <bruno@clisp.org>
5218
5219         New module 'ceilf-ieee'.
5220         * modules/ceilf-ieee: New file.
5221         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
5222         test whether ceilf works according to ISO C 99 with IEC 60559.
5223         * m4/ceilf-ieee.m4: New file.
5224         * modules/ceilf-ieee-tests: New file.
5225         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
5226         * tests/test-ceilf1.c (main): Remove signbit tests.
5227         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
5228         * doc/posix-functions/ceilf.texi: Mention the new module.
5229
5230 2010-12-21  Bruno Haible  <bruno@clisp.org>
5231
5232         New module 'floorf-ieee'.
5233         * modules/floorf-ieee: New file.
5234         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
5235         test whether floorf works according to ISO C 99 with IEC 60559.
5236         * m4/floorf-ieee.m4: New file.
5237         * modules/floorf-ieee-tests: New file.
5238         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
5239         * tests/test-floorf1.c (main): Remove signbit tests.
5240         * modules/floorf-tests (Depends-on): Remove 'signbit'.
5241         * doc/posix-functions/floorf.texi: Mention the new module.
5242
5243 2010-12-21  Bruno Haible  <bruno@clisp.org>
5244
5245         Support for minus zero in autoconf macros.
5246         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
5247         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
5248         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
5249         * tests/minus-zero.h: Update comments.
5250
5251 2010-12-21  Bruno Haible  <bruno@clisp.org>
5252
5253         Tests for module 'ceil'.
5254         * modules/ceil-tests: New file.
5255         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
5256         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
5257
5258 2010-12-21  Bruno Haible  <bruno@clisp.org>
5259
5260         Tests for module 'floor'.
5261         * modules/floor-tests: New file.
5262         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
5263         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
5264
5265 2010-12-21  Bruno Haible  <bruno@clisp.org>
5266
5267         math: Fix indentation.
5268         * lib/math.in.h (floorf): Fix indentation.
5269
5270 2010-12-21  Bruno Haible  <bruno@clisp.org>
5271
5272         Fix cross-compilation guesses on Solaris.
5273         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
5274         not match "solaris2.10".
5275         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5276         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
5277         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
5278
5279 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
5280
5281         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
5282         This fixes a problem observed with the latest coreutils snapshot
5283         that caused a test to fail on Solaris 8.  src/csplit.c's call
5284         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
5285         earlier, instead of returning the number of bytes that would have
5286         been generated; this causes csplit to incorrectly report memory
5287         exhaustion.
5288         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
5289         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
5290         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
5291         comments to match.
5292         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
5293         Fix typo in matching older versions of Solaris: "solaris2.10"
5294         is matched by the shell pattern "solaris2.[0-9]*".  This matters
5295         only for guessing while cross-compiling.
5296         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
5297
5298 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
5299
5300         ftoastr: fix comment again
5301         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5302         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
5303         Also, simplify example a bit by using flags = 0.
5304
5305 2010-12-20  Bruno Haible  <bruno@clisp.org>
5306
5307         round*, trunc*: Update documentation regarding glibc.
5308         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
5309         * doc/posix-functions/round.texi: Likewise.
5310         * doc/posix-functions/roundl.texi: Likewise.
5311         * doc/posix-functions/truncf.texi: Likewise.
5312         * doc/posix-functions/trunc.texi: Likewise.
5313         * doc/posix-functions/truncl.texi: Likewise.
5314
5315 2010-12-20  Bruno Haible  <bruno@clisp.org>
5316
5317         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
5318         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
5319         * doc/posix-functions/round.texi: Likewise.
5320         * doc/posix-functions/roundl.texi: Likewise.
5321
5322 2010-12-20  Bruno Haible  <bruno@clisp.org>
5323
5324         ttyname_r: Add missing declaration on HP-UX 11.
5325         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
5326         HAVE_TTYNAME_R.
5327         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
5328         declared. Set HAVE_TTYNAME_R always.
5329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5330         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
5331         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
5332         HAVE_TTYNAME_R.
5333         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
5334
5335 2010-12-20  Bruno Haible  <bruno@clisp.org>
5336
5337         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
5338         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
5339         * doc/posix-functions/getlogin_r.texi: Likewise.
5340         * tests/test-getlogin.c: Include <errno.h>.
5341         (main): Avoid test failure on HP-UX 11.11.
5342         * tests/test-getlogin_r.c (main): Likewise.
5343
5344 2010-12-20  Bruno Haible  <bruno@clisp.org>
5345
5346         getlogin_r: Add missing declaration on HP-UX 11.
5347         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
5348         declared also when it exists as a function.
5349         * doc/posix-functions/getlogin_r.texi: Document this workaround.
5350
5351 2010-12-20  Bruno Haible  <bruno@clisp.org>
5352
5353         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
5354         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
5355         through wcrtomb.
5356
5357 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5358
5359         ftoastr: fix comment
5360         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5361         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
5362
5363 2010-12-19  Bruno Haible  <bruno@clisp.org>
5364
5365         isnan: Ensure it is a macro.
5366         * lib/math.in.h (isnan): Define as a macro if not already a macro.
5367         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
5368         Solaris.
5369
5370 2010-12-19  Bruno Haible  <bruno@clisp.org>
5371
5372         ldexpl test: Fix link error on OSF/1 5.1.
5373         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
5374
5375 2010-12-19  Bruno Haible  <bruno@clisp.org>
5376
5377         wctype: Make it work in C++ mode on OSF/1 5.1.
5378         * lib/wctype.in.h (iswblank): Declare but not define here.
5379         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
5380         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
5381         * modules/wctype (Files): Add lib/iswblank.c.
5382
5383 2010-12-19  Bruno Haible  <bruno@clisp.org>
5384
5385         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
5386         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
5387         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
5388
5389 2010-12-19  Bruno Haible  <bruno@clisp.org>
5390
5391         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
5392         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
5393         _POSIX_PII_SOCKET.
5394         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
5395         * doc/posix-functions/recvfrom.texi: Likewise.
5396         * doc/posix-functions/send.texi: Likewise.
5397         * doc/posix-functions/sendto.texi: Likewise.
5398
5399 2010-12-19  Bruno Haible  <bruno@clisp.org>
5400
5401         tcgetsid: Add missing declaration on OSF/1 5.1.
5402         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
5403         HAVE_TCGETSID.
5404         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
5405         Don't set HAVE_TCGETSID.
5406         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
5407         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
5408         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
5409         HAVE_TCGETSID.
5410         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
5411
5412 2010-12-19  Bruno Haible  <bruno@clisp.org>
5413
5414         stdio: Fix problem with popen() declaration on OSF/1 5.1.
5415         * lib/stdio.in.h: During the include_next statement, let recursive
5416         includes of this file include only the system header file.
5417
5418 2010-12-19  Bruno Haible  <bruno@clisp.org>
5419
5420         iconv_open: Fix regression from 2010-12-04.
5421         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
5422         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
5423
5424 2010-12-19  Bruno Haible  <bruno@clisp.org>
5425
5426         stdbool test: Avoid a gcc warning.
5427         * tests/test-stdbool.c (main): Fail if e1 is false.
5428         Reported by Jim Meyering.
5429
5430 2010-12-19  Jim Meyering  <meyering@redhat.com>
5431
5432         setenv: restore to working order
5433         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
5434         mistakenly removed.
5435         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
5436         HAVE_SETENV.
5437         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
5438         HAVE_SETENV.
5439
5440 2010-12-19  Bruno Haible  <bruno@clisp.org>
5441
5442         Document some different function declarations on OSF/1 5.1.
5443         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
5444         * doc/posix-functions/inet_ntop.texi: Likewise.
5445         * doc/posix-functions/gethostname.texi: Likewise.
5446         * lib/unistd.in.h (gethostname): Update comment.
5447
5448 2010-12-19  Bruno Haible  <bruno@clisp.org>
5449
5450         doc: Mention vasprintf-posix module.
5451         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
5452         the 'vasprintf-posix' module.
5453         * doc/glibc-functions/vasprintf.texi: Likewise.
5454
5455 2010-12-19  Bruno Haible  <bruno@clisp.org>
5456
5457         unsetenv: Add missing declaration on OSF/1 5.1.
5458         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
5459         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
5460         Don't set HAVE_UNSETENV. In the test program, set _BSD.
5461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
5462         not HAVE_UNSETENV.
5463         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
5464         HAVE_UNSETENV.
5465         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
5466
5467 2010-12-19  Bruno Haible  <bruno@clisp.org>
5468
5469         setenv: Add missing declaration on OSF/1 5.1.
5470         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
5471         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
5472         declared. Don't set HAVE_SETENV.
5473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
5474         not HAVE_SETENV.
5475         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
5476         HAVE_SETENV.
5477         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
5478
5479 2010-12-19  Bruno Haible  <bruno@clisp.org>
5480
5481         nl_langinfo tests: Avoid gcc warning.
5482         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
5483
5484 2010-12-19  Bruno Haible  <bruno@clisp.org>
5485
5486         mknod: Avoid error in C++ mode on OSF/1 with GCC.
5487         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
5488         _GL_CXXALIAS_SYS.
5489
5490 2010-12-19  Bruno Haible  <bruno@clisp.org>
5491
5492         stdbool: Relax test.
5493         * tests/test-stdbool.c (e): Don't require that casts from a variable's
5494         address to 'bool' work in static initializer, for compilers other than
5495         GCC.
5496
5497 2010-12-19  Bruno Haible  <bruno@clisp.org>
5498
5499         ftello: Add missing declaration on OSF/1 5.1.
5500         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
5501         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
5502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
5503         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
5504         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
5505
5506 2010-12-19  Bruno Haible  <bruno@clisp.org>
5507
5508         fseeko: Add missing declaration on OSF/1 5.1.
5509         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
5510         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
5511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
5512         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
5513         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
5514
5515 2010-12-19  Bruno Haible  <bruno@clisp.org>
5516
5517         fchdir: Add missing declaration on OSF/1 5.1.
5518         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
5519         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
5520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
5521         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
5522         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
5523
5524 2010-12-19  Bruno Haible  <bruno@clisp.org>
5525
5526         relocatable-prog-wrapper: Separate from relocatable-prog.
5527         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
5528         uninstall-relocwrapper rule here.
5529         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
5530         Reported by Ian Beckwith <ianb@erislabs.net>.
5531
5532 2010-12-19  Bruno Haible  <bruno@clisp.org>
5533
5534         unistr/u8-mbsnlen: Add missing dependency.
5535         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
5536         Reported by Ian Beckwith <ianb@erislabs.net>.
5537
5538 2010-12-19  Bruno Haible  <bruno@clisp.org>
5539
5540         iconv: Make it possible again to use this module without 'iconv-h'.
5541         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
5542         if it is not defined.
5543         Reported by Ian Beckwith <ianb@erislabs.net>.
5544
5545 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5546
5547         acl: port to Solaris 8 when copying from tmpfs to ufs
5548         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
5549         error number.  Problem observed on Solaris 8 with latest
5550         coreutils, with "mv A B", where A is on a tmpfs file system and B
5551         is on a ufs file system.  This caused coreutils' mv/part-symlink
5552         test to fail.
5553
5554         tests: set fail=0 at start
5555         * tests/init.sh (setup_): Move fail=0 initialization here ...
5556         (mktempd_): ... from here, so that tests can rely on fail being
5557         set to 0 initially.  This fixes a problem in coreutils; see:
5558         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
5559
5560 2010-12-18  Bruno Haible  <bruno@clisp.org>
5561
5562         memmem-simple: Stylistic changes.
5563         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
5564         Fix preprocessor directive indentation.
5565
5566 2010-12-15  Pádraig Brady <P@draigBrady.com>
5567
5568         memmem, memmem-simple: reorganize and expand empty needle check
5569         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
5570         functional checks to memmem-simple so that one has a fully functional
5571         memmem by using just this module.
5572         Restrict the performance only check to the memmem module.
5573         Also expand the empty needle check to ensure the correct
5574         pointer is returned, not just a non NULL pointer.
5575         * doc/glibc-functions/memmem.texi: Rearrange the portability
5576         documentation to correlate with the rearranged checks.
5577         Clarify exactly how the memmem and memmem-simple modules
5578         relate to each other.
5579
5580 2010-12-15  Pádraig Brady <P@draigBrady.com>
5581             Bruno Haible  <bruno@clisp.org>
5582
5583         Improve cross-compilation guesses for uClibc.
5584         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
5585         that uClibc does not have the glibc bug.
5586         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
5587         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
5588
5589 2010-12-14  Eric Blake  <eblake@redhat.com>
5590
5591         configmake: provide fallbacks for oldest supported autotools
5592         * m4/configmake.m4: New file.
5593         * modules/configmake (Files): Ship it.
5594         (configure.ac): Use it to guarantee fallbacks.
5595
5596 2010-12-13  Pádraig Brady <P@draigBrady.com>
5597
5598         read-file: Improve handling of large files
5599         * lib/read-file.c (fread_file): Minimize realloc()s
5600         for regular files, and better manage sizes around SIZE_MAX.
5601
5602 2010-12-13  Eric Blake  <eblake@redhat.com>
5603
5604         cloexec, fcntl: relax license
5605         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
5606         consent from all contributors.
5607         * modules/fcntl (License): Likewise.
5608
5609 2010-12-10  Bruno Haible  <bruno@clisp.org>
5610
5611         Tests for module 'pipe-posix'.
5612         * modules/pipe-posix-tests: New file.
5613         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
5614
5615 2010-12-10  Bruno Haible  <bruno@clisp.org>
5616
5617         pipe-posix: Make it work in C++ mode.
5618         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
5619         (pipe): Use common idiom, not a macro definition.
5620         * lib/pipe.c: New file.
5621         * m4/pipe.m4: New file.
5622         * modules/pipe-posix (Description): Enhance.
5623         (Files): Add lib/pipe.c, m4/pipe.m4.
5624         (configure.ac): Invoke gl_FUNC_PIPE.
5625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
5626         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
5627         * tests/test-unistd-c++.cc: Check the signature of pipe.
5628
5629 2010-12-10  Bruno Haible  <bruno@clisp.org>
5630
5631         Rename module 'pipe' to 'spawn-pipe'.
5632         * modules/spawn-pipe: New file, renamed from modules/pipe.
5633         (Files, configure.ac, Makefile.am): Update.
5634         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
5635         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
5636         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
5637         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
5638         "spawn-pipe.h" instead of "pipe.h".
5639         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
5640         to gl_SPAWN_PIPE.
5641         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
5642         (Files, Makefile.am): Update.
5643         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
5644         Update.
5645         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
5646         Include "spawn-pipe.h" instead of "pipe.h".
5647         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
5648         * lib/javacomp.c: Likewise.
5649         * lib/javaversion.c: Likewise.
5650         * lib/pipe-filter-gi.c: Likewise.
5651         * lib/pipe-filter-ii.c: Likewise.
5652         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
5653         * modules/javacomp (Depends-on): Likewise.
5654         * modules/javaversion (Depends-on): Likewise.
5655         * modules/pipe-filter-gi (Depends-on): Likewise.
5656         * modules/pipe-filter-ii (Depends-on): Likewise.
5657         * MODULES.html.sh (Executing programs): Update.
5658         * NEWS: Mention the change.
5659
5660 2010-12-10  Eric Blake  <eblake@redhat.com>
5661
5662         pipe-posix: new module
5663         * modules/pipe-posix: New file.
5664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
5665         (gl_UNISTD_H): Check for declaration.
5666         * modules/unistd (Makefile.am): Substitute it.
5667         * lib/unistd.in.h (pipe): Provide it for mingw.
5668         * doc/posix-functions/pipe.texi (pipe): Update documentation.
5669         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
5670
5671 2010-12-07  Bruno Haible  <bruno@clisp.org>
5672
5673         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
5674         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
5675         u8_strcmp_gnu.
5676         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
5677
5678 2010-12-06  Bruno Haible  <bruno@clisp.org>
5679
5680         Update internal documentation.
5681         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
5682
5683 2010-12-04  Bruno Haible  <bruno@clisp.org>
5684
5685         Put more information about failed tests into the test return codes.
5686         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
5687         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
5688         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
5689         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5690         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
5691         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5692         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5693         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5694         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
5695         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5696         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
5697         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5698         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5699         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5700         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
5701         returns a bit mask.
5702         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
5703         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
5704         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
5705         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
5706         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5707         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5708         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5709         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5710         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5711         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5712         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
5713         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5714         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5715         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5716         * m4/link.m4 (gl_FUNC_LINK): Likewise.
5717         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
5718         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
5719         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
5720         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5721         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
5722         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5723         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
5724         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
5725         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5726         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5727         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
5728         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
5729         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5730         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5731         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
5732         gl_PRINTF_PRECISION): Likewise.
5733         * m4/regex.m4 (gl_REGEX): Likewise.
5734         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
5735         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5736         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
5737         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5738         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5739         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5740         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5741         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
5742         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5743         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5744         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
5745         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
5746         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5747         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5748         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5749         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5750         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
5751         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5752         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5753         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
5754         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
5755         enumerated value.
5756         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
5757
5758 2010-12-04  Bruno Haible  <bruno@clisp.org>
5759
5760         Update for Solaris 11 2010-11.
5761         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
5762         Express, released in November 2010.
5763
5764 2010-12-04  Bruno Haible  <bruno@clisp.org>
5765
5766         nproc: Relax license.
5767         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
5768         and Paul Eggert.
5769         Requested by Ludovic Courtès <ludo@gnu.org>.
5770
5771 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
5772
5773         utimecmp: fine-grained src to nearby coarse-grained dest
5774
5775         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
5776         and the source is on a file system with higher-resolution time
5777         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
5778         not work, and the time stamps are close together, the algorithm to
5779         determine the exact resolution from the read-back mtime was buggy:
5780         it had a "!=" where it should have had an "==".  This bug has been
5781         in the code ever since it was introduced to gnulib.
5782         Problem reported by Dan Jacobson in
5783         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
5784
5785 2010-11-30  Bruno Haible  <bruno@clisp.org>
5786
5787         strerror_r-posix: Fix autoconf test.
5788         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
5789
5790 2010-11-28  Bruno Haible  <bruno@clisp.org>
5791             Paul Eggert  <eggert@cs.ucla.edu>
5792
5793         Tests for module 'getdomainname'.
5794         * modules/getdomainname-tests: New file.
5795         * tests/test-getdomainname.c: New file, based on
5796         tests/test-gethostname.c.
5797
5798 2010-11-28  Bruno Haible  <bruno@clisp.org>
5799             Paul Eggert  <eggert@cs.ucla.edu>
5800
5801         getdomainname: Use the system function when possible.
5802         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
5803         (getdomainname): Replace if needed. Provide the declaration if it is
5804         missing. Don't use _GL_CXXALIAS_SYS_CAST.
5805         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
5806         (getdomainname): When the system has getdomainname, call the system
5807         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
5808         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
5809         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
5810         found in libnsl. Look for the declaration also in <netdb.h>. Replace
5811         the function if its second argument is of type 'int' or if it is found
5812         in libnsl.
5813         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
5814         <sys/systeminfo.h> and sysinfo().
5815         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
5816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5817         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
5818         HAVE_GETDOMAINNAME.
5819         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
5820         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
5821         * doc/glibc-functions/getdomainname.texi: Document the problems with
5822         the getdomainname declaration.
5823
5824 2010-11-28  Bruno Haible  <bruno@clisp.org>
5825
5826         sys_socket: Ensure ss_family field on AIX.
5827         * lib/sys_socket.in.h (ss_family): New macro definition.
5828         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
5829         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
5830         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
5831         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5832         * modules/sys_socket (Makefile.am): Substitute
5833         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5834         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
5835
5836 2010-11-27  Bruno Haible  <bruno@clisp.org>
5837
5838         readline: Improve configure output.
5839         * m4/readline.m4 (gl_FUNC_READLINE): Make the
5840         "checking for readline..." result understandable.
5841
5842 2010-11-27  Bruno Haible  <bruno@clisp.org>
5843
5844         *printf-posix: Detect a bug on Solaris 10/x86.
5845         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
5846         for floating-point output.
5847         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
5848         directive.
5849         * tests/test-snprintf-posix.h (test_function): Likewise.
5850         * tests/test-sprintf-posix.h (test_function): Likewise.
5851         * tests/test-vasprintf-posix.c (test_function): Likewise.
5852         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
5853         * doc/posix-functions/printf.texi: Likewise.
5854         * doc/posix-functions/snprintf.texi: Likewise.
5855         * doc/posix-functions/sprintf.texi: Likewise.
5856         * doc/posix-functions/vfprintf.texi: Likewise.
5857         * doc/posix-functions/vprintf.texi: Likewise.
5858         * doc/posix-functions/vsnprintf.texi: Likewise.
5859         * doc/posix-functions/vsprintf.texi: Likewise.
5860         * doc/glibc-functions/obstack_printf.texi: Likewise.
5861         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5862
5863 2010-11-27  Bruno Haible  <bruno@clisp.org>
5864
5865         Fix link error when module libunistring-optional is in use.
5866         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
5867         * modules/striconveha-tests (Makefile.am): Likewise.
5868
5869 2010-11-27  Bruno Haible  <bruno@clisp.org>
5870
5871         regex: Mention link dependencies.
5872         * modules/regex (Link): New section.
5873         * modules/rpmatch (Link): Likewise.
5874         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
5875
5876 2010-11-27  Bruno Haible  <bruno@clisp.org>
5877
5878         ftoastr: Fix compilation error on Solaris.
5879         * lib/ftoastr.c: Include <config.h>.
5880
5881 2010-11-27  Bruno Haible  <bruno@clisp.org>
5882
5883         getloadavg: Update documentation.
5884         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
5885
5886 2010-11-27  Bruno Haible  <bruno@clisp.org>
5887
5888         sys_socket: Fix test whether the functions are declared.
5889         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
5890         not <sys/select.h>.
5891
5892 2010-11-27  Bruno Haible  <bruno@clisp.org>
5893
5894         getpass: Make sure to get system declaration on some platforms.
5895         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
5896         gl_USE_SYSTEM_EXTENSIONS.
5897         * modules/getpass (Depends-on): Add extensions.
5898
5899 2010-11-26  Bruno Haible  <bruno@clisp.org>
5900
5901         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
5902         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
5903         'iconv' module is present.
5904         (ICONV_CONST): New macro.
5905         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
5906         ICONV_CONST.
5907         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
5908         set ICONV_CONST.
5909         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
5910         here.
5911         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
5912         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
5913         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
5914         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
5915         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
5916         present.
5917
5918 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
5919
5920         ftoastr: comment fix
5921         * lib/ftoastr.c: "little" -> "little or no" in comment
5922
5923 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
5924
5925         stdint: port to GCC 4.3 + OSX + Octave
5926         On this platform, stdint.h is buggy and defines int64_t to long
5927         long int.  The replacement defined it to long int, causing
5928         problems with C++ style name mangling.  Instead, trust the system
5929         definition if INT64_MAX is defined, and likewise for the unsigned
5930         variant.   Problem reported by Jarno Rajahalme in
5931         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
5932         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
5933         and don't mess with int64_t and INT64_MAX in this case.
5934         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
5935
5936 2010-11-24  Bruno Haible  <bruno@clisp.org>
5937
5938         doc: Corrections regarding MacOS X 10.4 and 10.5.
5939         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
5940         MacOS X.
5941         Reported by Simon Josefsson.
5942
5943 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
5944
5945         Uninstall ".bin" files installed by relocwrapper.
5946         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
5947         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
5948         unless it is already there.
5949
5950 2010-11-21  Bruno Haible  <bruno@clisp.org>
5951
5952         Update for NetBSD 5.0.
5953         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5954         NetBSD; the test fails on NetBSD 5.0.
5955         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5956         about NetBSD.
5957
5958 2010-11-21  Bruno Haible  <bruno@clisp.org>
5959
5960         Update for HP-UX 11.23 and HP-UX 11.31.
5961         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
5962         HP-UX.
5963
5964 2010-11-21  Bruno Haible  <bruno@clisp.org>
5965
5966         Update for MacOS X 10.5.
5967         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5968         MacOS X; the test fails on MacOS X 10.5.8.
5969         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5970         about MacOS X.
5971
5972 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
5973
5974         bootstrap: add bootstrap_sync option.
5975         See discussion at
5976         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
5977         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
5978         * build-aux/bootstrap: Accept --bootstrap-sync to update
5979         bootstrap if it is not identical to the local gnulib's
5980         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
5981         enable this by default.  Accept --no-bootstrap-sync to disable
5982         it.
5983
5984 2010-11-20  Bruno Haible  <bruno@clisp.org>
5985
5986         Ensure that <features.h> is included before __GLIBC__ is tested.
5987         * lib/printf-parse.h: Include <features.h>.
5988         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
5989         Reported by Mike Frysinger <vapier@gentoo.org>.
5990
5991         Ensure that <features.h> is included before __GLIBC__ is tested.
5992         * lib/wchar.in.h: Include <features.h>.
5993         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
5994         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
5995         Reported by Mike Frysinger <vapier@gentoo.org>.
5996
5997         Ensure that <features.h> is included before __GLIBC__ is tested.
5998         * lib/arpa_inet.in.h: Include <features.h>.
5999         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
6000         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
6001         Reported by Mike Frysinger <vapier@gentoo.org>.
6002
6003         Ensure that <features.h> is included before __GLIBC__ is tested.
6004         * build-aux/link-warning.h: Include <features.h>.
6005         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
6006         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
6007         Reported by Mike Frysinger <vapier@gentoo.org>.
6008
6009         Ensure that <features.h> is included before __GLIBC__ is tested.
6010         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
6011         Reported by Mike Frysinger <vapier@gentoo.org>.
6012
6013 2010-11-20  Bruno Haible  <bruno@clisp.org>
6014
6015         memmem: Fix autoconf test.
6016         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
6017
6018 2010-11-20  Bruno Haible  <bruno@clisp.org>
6019
6020         Port to uClibc.
6021         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
6022         * lib/fcntl.in.h: Likewise.
6023         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
6024         * lib/mbrtowc.c (mbrtowc): Likewise.
6025         * lib/relocatable.c (find_shared_library_fullname): Likewise.
6026         * lib/strerror_r.c: Likewise.
6027         * lib/unistr/u8-strnlen.c: Likewise.
6028         * lib/vasnprintf.c (decimal_point_char): Likewise.
6029         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6030         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6031         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
6032         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6033         * tests/test-sigaction.c (handler, main): Likewise.
6034         * lib/freading.h: Treat uClibc like a non-glibc platform.
6035         * lib/freading.c: Likewise.
6036         * lib/gettext.h: Likewise.
6037         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
6038         Likewise.
6039         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
6040         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6041         * lib/propername.c (proper_name_utf8): Likewise.
6042         * lib/spawn.in.h: Likewise.
6043         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
6044         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
6045         mem_cd_iconveh_internal): Likewise.
6046         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
6047         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6048         strstr, strcasestr): Likewise.
6049         * lib/unicodeio.c (unicode_to_mb): Likewise.
6050         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
6051         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
6052         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
6053         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
6054         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
6055         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
6056         * lib/unistr/u8-stpncpy.c: Likewise.
6057         * lib/vasnprintf.c (VASNPRINTF): Likewise.
6058         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
6059         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6060         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6061         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6062         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
6063         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
6064         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
6065         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6066         Likewise.
6067         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6068         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6069         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6070         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6071         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6072         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6073         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6074         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6075         * tests/test-getopt.h (OPTIND_MIN): Likewise.
6076         * tests/test-striconveha.c (main): Likewise.
6077         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6078         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
6079         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
6080         * doc/posix-functions/getline.texi: Likewise.
6081         Reported by Mike Frysinger <vapier@gentoo.org>.
6082
6083 2010-11-20  Bruno Haible  <bruno@clisp.org>
6084
6085         nproc: Fix condition.
6086         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
6087         HAVE_PTHREAD_AFFINITY_NP.
6088
6089 2010-11-20  Bruno Haible  <bruno@clisp.org>
6090
6091         Fix a comment.
6092         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
6093
6094 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
6095
6096         ftoastr: don't assume snprintf
6097         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
6098         Implement a subset of snprintf here, by using sprintf safely.
6099         * modules/ftoastr (Depends-on): Remove snprintf.
6100
6101 2010-11-19  Jim Meyering  <meyering@redhat.com>
6102
6103         test-rename.h: fix compilation failure
6104         * tests/test-rename.h (test_rename): Add omitted "}".
6105
6106 2010-11-17  Jim Meyering  <meyering@redhat.com>
6107
6108         maint.mk: add a URL discussing the no-@acronym policy
6109         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
6110
6111 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6112
6113         ftoastr: depend on snprintf, improve comments
6114         * lib/ftoastr.c: Also mention Loitsch's draft.
6115         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
6116         needed in the current implementation, but it might simplify
6117         speeding up the code later.
6118         * modules/ftoastr: Depend on snprintf; this improves portability.
6119         Suggested by Bruno Haible in the same email.
6120
6121         ftoastr: port to hosts lacking strtof and strtold
6122         Problem reported by Bruno Haible in
6123         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
6124         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
6125         environment and strtold (and presumably strtof) are not available.
6126         * modules/ftoastr (Files): Add m4/c-strtod.m4.
6127         (configure.ac): Require gl_C99_STRTOLD.
6128
6129 2010-11-18  Bruno Haible  <bruno@clisp.org>
6130
6131         c-strtold: Avoid link error on AIX 7.
6132         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
6133         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
6134         (gl_C_STRTOLD): Test whether strtold_l exists.
6135         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6136
6137 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6138
6139         intprops: new macro INT_BITS_STRLEN_BOUND
6140         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
6141         ftoastr.h.  This exposes an internal of intprops.h that was formerly
6142         not exposed.  Also, it uses a slightly tighter bound than before;
6143         though this makes no practical difference, we might as well be as
6144         tight as we easily can.
6145
6146         ftoastr: new module, for lossless conversion of floats to short strings
6147         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
6148         * modules/ftoastr: New files.
6149
6150 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6151
6152         bootstrap: port to Solaris sed
6153         * build-aux/bootstrap (get_version): Port to Solaris sed.
6154         See Ralf Wildenhues's note in
6155         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
6156
6157 2010-11-14  Jim Meyering  <meyering@redhat.com>
6158
6159         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
6160         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
6161         and move definition closer to sole use.
6162
6163 2010-11-13  Jim Meyering  <meyering@redhat.com>
6164
6165         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
6166         Now we require at least autoconf-2.59, which means the work-around
6167         is no longer needed.
6168         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
6169         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6170         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6171         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6172         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6173
6174 2010-11-13  Bruno Haible  <bruno@clisp.org>
6175
6176         rename, renameat: Avoid test failures at NFS mounted locations.
6177         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
6178         functions.
6179         (test_rename): Use assert_nonexistent.
6180         * tests/test-rename.c: Include <dirent.h>.
6181         * tests/test-renameat.c: Likewise.
6182         Reported by Gary V. Vaughan <gary@gnu.org>.
6183
6184         rename, renameat: Document Linux bug with NFS
6185         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
6186         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
6187         * doc/posix-functions/renameat.texi: Likewise.
6188         Suggested by Eric Blake.
6189
6190 2010-11-13  Bruno Haible  <bruno@clisp.org>
6191
6192         rename test: Add comments.
6193         * tests/test-rename.h (test_rename): Add structure and comments.
6194
6195 2010-11-13  Eric Blake  <eblake@redhat.com>
6196
6197         maintainer-makefile: cover a few more files
6198         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
6199         scripts generated within C files, for libvirt.
6200
6201 2010-11-13  Bruno Haible  <bruno@clisp.org>
6202
6203         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
6204         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
6205         character, return the number of bytes that belong together, not always
6206         1.
6207         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
6208         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
6209         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
6210         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
6211         number of bytes of an invalid character.
6212         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
6213         (main): Invoke it.
6214         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
6215         results.
6216         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
6217         malformed byte sequences.
6218         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
6219         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
6220         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
6221         Reported by Ben Pfaff and Paolo Bonzini.
6222
6223 2010-11-13  Bruno Haible  <bruno@clisp.org>
6224
6225         openat: Work around glibc bug with fchownat() and empty file names.
6226         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
6227         (gl_FUNC_FCHOWNAT): Invoke it.
6228         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
6229         * doc/posix-functions/fchownat.texi: Document the glibc bug.
6230         Reported by Gary V. Vaughan <gary@gnu.org>.
6231
6232 2010-11-13  Bruno Haible  <bruno@clisp.org>
6233
6234         openat: Ensure autoconf macro ordering.
6235         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
6236         gl_USE_SYSTEM_EXTENSIONS.
6237         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
6238
6239 2010-11-13  Bruno Haible  <bruno@clisp.org>
6240
6241         Update comments.
6242         * lib/unistr/u8-check.c: Update file name in comments.
6243         * lib/unistr/u8-mblen.c: Likewise.
6244         * lib/unistr/u8-prev.c: Likewise.
6245         * lib/unistr/u8-strmblen.c: Likewise.
6246         * lib/unistr/u8-strmbtouc.c: Likewise.
6247
6248 2010-11-13  Jim Meyering  <meyering@redhat.com>
6249
6250         tests: avoid test failure on Solaris 10 due to lack of PATH export
6251         * tests/test-update-copyright.sh: Don't forget to export PATH.
6252
6253         init.sh: ensure that IFS is defined, just in case...
6254         * tests/init.sh (setup_): Ensure that IFS is defined,
6255         so that saving and restoring it works as expected.  This
6256         appears to be useful at least for an old version of dash
6257         from a long time ago (RH 6).  See here for details:
6258         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
6259
6260         maint.mk: tighten "test a == b" check
6261         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
6262         test to files that contain something like #!/bin/sh.
6263         Without this, coreutils would get two false positives in
6264         the comments of C source files.
6265
6266 2010-11-12  Eric Blake  <eblake@redhat.com>
6267
6268         bootstrap: fix typo in previous attempt
6269         * build-aux/bootstrap (buildreq): Correct the grouping.
6270         Reported by Paul Eggert.
6271
6272         maintainer-makefile: prohibit test x == x
6273         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
6274         Based on a report by Matthias Bolte.
6275
6276         bootstrap: allow FreeBSD gzip
6277         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
6278         which has no '.' and goes to stderr.
6279         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
6280         Reported by Matthias Bolte.
6281
6282         maintainer-makefile: check for i18n setup
6283         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
6284         will likely work.
6285
6286 2010-11-12  Bruno Haible  <bruno@clisp.org>
6287
6288         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
6289         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
6290         * lib/nanosleep.c (nanosleep): Likewise.
6291
6292 2010-11-11  Bruno Haible  <bruno@clisp.org>
6293
6294         fcntl-h: Fix for use of C++ on glibc systems.
6295         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6296         also on glibc systems in C++ mode.
6297         Reported by Gary V. Vaughan <gary@gnu.org>.
6298
6299 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6300
6301         mknod: avoid false failure with dash
6302         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
6303
6304 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
6305
6306         unlink: Fix "is it should" typo in diagnostic.
6307         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
6308         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
6309
6310 2010-11-11  Bruno Haible  <bruno@clisp.org>
6311
6312         Tests for module 'strerror_r-posix'.
6313         * modules/strerror_r-posix-tests: New file.
6314         * tests/test-strerror_r.c: New file.
6315         * tests/test-string-c++.cc: Check the signature of strerror_r.
6316
6317         New module 'strerror_r-posix'.
6318         * lib/string.in.h (strerror_r): New declaration.
6319         * lib/strerror_r.c: New file.
6320         * m4/strerror_r.m4: New file.
6321         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
6322         of strerror_r.
6323         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
6324         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6325         * modules/strerror_r-posix: New file.
6326         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
6327         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6328         * doc/posix-functions/strerror_r.texi: Mention the new module and the
6329         portability problems.
6330
6331 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
6332
6333         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
6334         line is also considered for output. Quoted function name in shell
6335         command, so temporary files for functions like MyClass::operator()
6336         are removed correctly without errors.
6337
6338 2010-11-09  Bruno Haible  <bruno@clisp.org>
6339
6340         * doc/posix-functions/strerror.texi: List more failing platforms.
6341
6342         * doc/posix-functions/strerror.texi: Add a comment.
6343
6344 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6345
6346         fdopendir: fix bug on MacOS X when low on file descriptors
6347
6348         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
6349         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
6350         All callers changed.
6351         (fdopendir): Invoke save_cwd at the top level, not after using
6352         multiple dup() calls to use up file descriptors.  Then retry
6353         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
6354         less than the maximum number of open file descriptors, because
6355         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
6356         on Mac OS X 10.6.4 for tar 1.24
6357         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
6358         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
6359         and for tar 1.25
6360         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
6361
6362 2010-11-07  Bruno Haible  <bruno@clisp.org>
6363
6364         vasnprintf: Support I flag on glibc systems.
6365         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
6366         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
6367         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
6368         snprintf function.
6369         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
6370         glibc systems.
6371         * tests/test-vasnprintf-posix3.c: New file.
6372         * modules/vasnprintf-posix-tests (Files): Add it.
6373         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
6374
6375 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6376
6377         [html] Fix copy/paste bug: Use unique name for compiler warnings.
6378         * MODULES.html.sh: For compiler warnings, use name
6379         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
6380
6381 2010-11-05  Eric Blake  <eblake@redhat.com>
6382
6383         ceil, floor: avoid spurious failure with icc
6384         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
6385         [denormals-as-zero] when optimizing without -mieee-fp option.
6386         * tests/test-floorf2.c (floorf_reference): Likewise.
6387         * tests/test-ceilf1.c (dummy): New function.
6388         (main): Use it to outsmart icc's optimization.
6389         * tests/test-floorf1.c (dummy, main): Likewise.
6390
6391         tests: require working signbit
6392         * modules/ceilf-tests (Depends-on): Add signbit.
6393         * modules/ceill-tests (Depends-on): Likewise.
6394         * modules/floorf-tests (Depends-on): Likewise.
6395         * modules/floorl-tests (Depends-on): Likewise.
6396         * modules/round-tests (Depends-on): Likewise.
6397         * modules/roundf-tests (Depends-on): Likewise.
6398         * modules/roundl-tests (Depends-on): Likewise.
6399         * modules/trunc-tests (Depends-on): Likewise.
6400         * modules/truncf-tests (Depends-on): Likewise.
6401         * modules/truncl-tests (Depends-on): Likewise.
6402
6403         strtod: work around icc bug
6404         * lib/strtod.c (minus_zero): Define to working value.
6405         (strtod): Use it to avoid icc bug.
6406
6407         copysign: enhance tests
6408         * modules/copysign-tests (Files): Add minus-zero.h.
6409         * tests/test-copysign.c (main): Also test zeros.
6410
6411 2010-11-04  Eric Blake  <eblake@redhat.com>
6412
6413         ceil, floor, round, trunc: enhance tests of -0
6414         * tests/test-ceilf1.c (main): Ensure correct sign of result.
6415         * tests/test-ceill.c (main): Likewise.
6416         * tests/test-floorf1.c (main): Likewise.
6417         * tests/test-floorl.c (main): Likewise.
6418         * tests/test-round1.c (main): Likewise.
6419         * tests/test-roundf1.c (main): Likewise.
6420         * tests/test-roundl.c (main): Likewise.
6421         * tests/test-trunc1.c (main): Likewise.
6422         * tests/test-truncf1.c (main): Likewise.
6423         * tests/test-truncl.c (main): Likewise.
6424
6425 2010-11-04  Eric Blake  <eblake@redhat.com>
6426
6427         frexp, tests: work around ICC bug with -zero
6428         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
6429         works with more compilers.
6430         * tests/minus-zero.h: New file.
6431         * modules/ceilf-tests (Files): Include it.
6432         * modules/ceill-tests (Files): Likewise.
6433         * modules/floorf-tests (Files): Likewise.
6434         * modules/floorl-tests (Files): Likewise.
6435         * modules/frexp-nolibm-tests (Files): Likewise.
6436         * modules/frexp-tests (Files): Likewise.
6437         * modules/frexpl-nolibm-tests (Files): Likewise.
6438         * modules/frexpl-tests (Files): Likewise.
6439         * modules/isnan-tests (Files): Likewise.
6440         * modules/isnand-nolibm-tests (Files): Likewise.
6441         * modules/isnand-tests (Files): Likewise.
6442         * modules/isnanf-nolibm-tests (Files): Likewise.
6443         * modules/isnanf-tests (Files): Likewise.
6444         * modules/isnanl-nolibm-tests (Files): Likewise.
6445         * modules/isnanl-tests (Files): Likewise.
6446         * modules/round-tests (Files): Likewise.
6447         * modules/roundf-tests (Files): Likewise.
6448         * modules/roundl-tests (Files): Likewise.
6449         * modules/ldexpl-tests (Files): Likewise.
6450         * modules/signbit-tests (Files): Likewise.
6451         * modules/snprintf-posix-tests (Files): Likewise.
6452         * modules/sprintf-posix-tests (Files): Likewise.
6453         * modules/strtod-tests (Files): Likewise.
6454         * modules/trunc-tests (Files): Likewise.
6455         * modules/truncf-tests (Files): Likewise.
6456         * modules/truncl-tests (Files): Likewise.
6457         * modules/vsnprintf-posix-tests (Files): Likewise.
6458         * modules/vsprintf-posix-tests (Files): Likewise.
6459         * modules/vasnprintf-posix-tests (Files): Likewise.
6460         * modules/vasprintf-posix-tests (Files): Likewise.
6461         * tests/test-ceilf1.c (main): Use it.
6462         * tests/test-ceill.c (main): Likewise.
6463         * tests/test-floorf1.c (main): Likewise.
6464         * tests/test-floorl.c (main): Likewise.
6465         * tests/test-frexp.c (main): Likewise.
6466         * tests/test-frexpl.c (main): Likewise.
6467         * tests/test-isnan.c (main): Likewise.
6468         * tests/test-isnand.h (main): Likewise.
6469         * tests/test-isnanf.h (main): Likewise.
6470         * tests/test-isnanl.h (main): Likewise.
6471         * tests/test-ldexpl.c (main): Likewise.
6472         * tests/test-round.c (main): Likewise.
6473         * tests/test-roundf.c (main): Likewise.
6474         * tests/test-roundl.c (main): Likewise.
6475         * tests/test-signbit.c (test_signbitf, test_signbitd)
6476         (test_signbitl): Likewise.
6477         * tests/test-snprintf-posix.h (test_function): Likewise.
6478         * tests/test-sprintf-posix.h (test_function): Likewise.
6479         * tests/test-strtod.c (main): Likewise.
6480         * tests/test-trunc1.c (main): Likewise.
6481         * tests/test-truncf1.c (main): Likewise.
6482         * tests/test-truncl.c (main): Likewise.
6483
6484         isnanl: work around icc bug
6485         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
6486
6487 2010-11-03  Eric Blake  <eblake@redhat.com>
6488
6489         tests: fix compiler warnings
6490         * tests/test-getopt.h (test_getopt): Fix condition.
6491         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6492         * tests/test-pipe2.c (main): Likewise.
6493         * tests/test-quotearg-simple.c (main): Avoid icc warning.
6494
6495         utimens: fix broken m4 test
6496         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
6497
6498 2010-10-28  Bruno Haible  <bruno@clisp.org>
6499
6500         posix_spawn*, getdtablesize: Relax license.
6501         * modules/posix_spawn (License): Change to LGPLv2+.
6502         * modules/posix_spawnp (License): Likewise.
6503         * modules/posix_spawn-internal (License): Likewise.
6504         * modules/posix_spawnattr_init (License): Likewise.
6505         * modules/posix_spawnattr_getflags (License): Likewise.
6506         * modules/posix_spawnattr_setflags (License): Likewise.
6507         * modules/posix_spawnattr_getpgroup (License): Likewise.
6508         * modules/posix_spawnattr_setpgroup (License): Likewise.
6509         * modules/posix_spawnattr_getschedparam (License): Likewise.
6510         * modules/posix_spawnattr_setschedparam (License): Likewise.
6511         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
6512         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
6513         * modules/posix_spawnattr_getsigdefault (License): Likewise.
6514         * modules/posix_spawnattr_setsigdefault (License): Likewise.
6515         * modules/posix_spawnattr_getsigmask (License): Likewise.
6516         * modules/posix_spawnattr_setsigmask (License): Likewise.
6517         * modules/posix_spawnattr_destroy (License): Likewise.
6518         * modules/posix_spawn_file_actions_init (License): Likewise.
6519         * modules/posix_spawn_file_actions_addclose (License): Likewise.
6520         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
6521         * modules/posix_spawn_file_actions_addopen (License): Likewise.
6522         * modules/posix_spawn_file_actions_destroy (License): Likewise.
6523         * modules/getdtablesize (License): Likewise.
6524         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
6525
6526 2010-10-26  Bruno Haible  <bruno@clisp.org>
6527
6528         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
6529         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
6530         Cygwin and mingw.
6531         Suggested by Eric Blake.
6532
6533 2010-10-26  Bruno Haible  <bruno@clisp.org>
6534
6535         stdio: Work around compilation error due to renameat() on Solaris 10.
6536         * lib/stdio.in.h: Include <unistd.h> on Solaris.
6537         * lib/renameat.c: Don't include <unistd.h> here.
6538         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
6539         Reported by Paul Eggert and Eric Blake.
6540
6541 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6542
6543         renameat: port to Solaris 10, which declares renameat in unistd.h
6544
6545         * lib/renameat.c: Include unistd.h before stdio.h, because
6546         Solaris 10 declares renameat in unistd.h.  Problem encountered
6547         when building GNU tar 1.24 on Solaris 10.
6548
6549 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6550
6551         fdopendir: fix C89 compilation
6552         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
6553         compilers.
6554
6555 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
6556
6557         inttostr: simplify by removing unnecessary redundancy
6558         * lib/anytostr.c: Don't include verify.h.
6559         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
6560         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
6561         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
6562         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
6563         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
6564         Likewise.
6565         * modules/inttostr (Depends-on): Remove 'verify'.
6566
6567 2010-10-23  Bruno Haible  <bruno@clisp.org>
6568
6569         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
6570         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
6571         Reported by Eric Blake.
6572
6573 2010-10-23  Bruno Haible  <bruno@clisp.org>
6574
6575         Tests: Fix LOCALE_JA on MirBSD 10.
6576         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
6577         to an UTF-8 locale.
6578         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
6579         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6580         Reported by Eric Blake.
6581
6582 2010-10-21  Bruno Haible  <bruno@clisp.org>
6583
6584         nl_langinfo test: Avoid test failure on NetBSD 5.
6585         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
6586         Reported by Eric Blake.
6587
6588 2010-10-21  Eric Blake  <eblake@redhat.com>
6589
6590         c-stack: work around libsigsegv 2.8 bug
6591         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
6592         overflow on at least PowerPC64.
6593
6594 2010-10-17  Bruno Haible  <bruno@clisp.org>
6595
6596         userspec: Drop redundant file.
6597         * modules/userspec (Files): Remove lib/inttostr.h.
6598
6599 2010-10-17  Bruno Haible  <bruno@clisp.org>
6600
6601         nl_langinfo tests: Silence some warnings.
6602         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
6603         Reported by Jim Meyering.
6604
6605 2010-10-17  Bruno Haible  <bruno@clisp.org>
6606
6607         Make use of GCC's attribute __alloc_size__.
6608         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
6609         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
6610         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
6611         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
6612         __alloc_size__.
6613         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
6614         Suggested by Jim Meyering.
6615
6616 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
6617
6618         bootstrap: anchor .gitignore entries.
6619         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
6620         with...
6621         (insert_vc_ignore): ... this new function, which prepends `/' to
6622         all .gitignore entries before passing them to
6623         insert_sorted_if_absent.
6624
6625 2010-10-16  Bruno Haible  <bruno@clisp.org>
6626
6627         nextafter: Fix configure check.
6628         * modules/nextafter (configure.ac): Correct expected prototype.
6629
6630 2010-10-16  Bruno Haible  <bruno@clisp.org>
6631
6632         termios: Update documentation.
6633         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
6634
6635 2010-10-16  Bruno Haible  <bruno@clisp.org>
6636
6637         tests: Make them compile with TinyCC.
6638         * tests/test-strstr.c (main): Remove parentheses around array
6639         initializer.
6640
6641 2010-10-15  Eric Blake  <eblake@redhat.com>
6642
6643         ignore-value: make header idempotent
6644         * lib/ignore-value.h: Add double-inclusion guards.
6645         Reported by Stefan Berger.
6646
6647 2010-10-15  Jim Meyering  <meyering@redhat.com>
6648
6649         GNUmakefile: handle "stable" target, not "major"
6650         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
6651         lists in maint.mk and announce-gen.  Without this, "make stable"
6652         would fail to ensure that $(VERSION) is up to date.
6653
6654 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
6655
6656         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
6657         & co.
6658
6659 2010-10-14  Bruno Haible  <bruno@clisp.org>
6660
6661         vasnprintf: Don't set errno to 0.
6662         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
6663         block that sets it to 0.
6664         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6665
6666 2010-10-14  Bruno Haible  <bruno@clisp.org>
6667
6668         socketlib: Fix.
6669         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
6670         gl_PREREQ_SYS_H_WINSOCK2.
6671         Reported by Ian Beckwith <ianb@erislabs.net>.
6672
6673 2010-10-13  Jim Meyering  <meyering@redhat.com>
6674
6675         test-select-stdin.c: avoid warn_unused_result warnings
6676         * tests/test-select-stdin.c: Include "macros.h".
6677         ASSERT that read and fflush succeed.
6678
6679 2010-10-13  Jim Meyering  <meyering@redhat.com>
6680
6681         git-version-gen: do require git-VC'd files in cwd
6682         * build-aux/git-version-gen: Reject a git version string
6683         if there are no commits associated with the current directory.
6684         This avoids an unlikely false-positive (unrelated dir whose parent
6685         repository also contains a tag matching v*), as pointed out
6686         by Giuseppe Scrivano in
6687         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
6688
6689 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
6690
6691         argv-iter: omit nonconforming declaration
6692         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
6693         enum arg_iter_err declaration, which doesn't conform to C99.
6694         Solaris 10 cc warns about this.
6695
6696 2010-10-13  Eric Blake  <eblake@redhat.com>
6697
6698         termios: fix compilation on mingw
6699         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
6700         (gl_TERMIOS_H): Adjust it on mingw.
6701         * modules/termios (Makefile.am): Substitute new key.
6702         * lib/termios.in.h (includes): Make include_next conditional.
6703         * doc/posix-headers/termios.texi (termios.h): Update
6704         documentation.
6705         Reported by Daniel P. Berrange.
6706
6707 2010-10-13  Jim Meyering  <meyering@redhat.com>
6708
6709         git-version-gen: don't require that .git/ be in the current dir
6710         * build-aux/git-version-gen: Adjust this script so that it works
6711         when run from any working directory beneath the top-level .git/-
6712         containing directory.  Inspired by a patch from Giuseppe Scrivano,
6713         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
6714
6715         test-select: avoid warn_unused_result warnings
6716         * tests/test-select.c: Include "macros.h".
6717         ASSERT that each call to read, write, and pipe succeeds.
6718         While not technically required, also check each "close".
6719         * modules/select-tests (Files): Add tests/macros.h.
6720
6721         test-symlinkat: remove declaration of unused local
6722         * tests/test-symlinkat.c (main): Remove unused local, "buf".
6723
6724         test-inttostr: avoid shadowing warnings
6725         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
6726         and use malloc rather than the stack for the same reason as
6727         mentioned in the comment justifying the other allocation.
6728
6729 2010-10-11  Bruno Haible  <bruno@clisp.org>
6730
6731         stdlib: Allow multiple gnulib generated replacements to coexist.
6732         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
6733         Reported by Sam Steingold <sds@gnu.org>.
6734
6735 2010-10-11  Jim Meyering  <meyering@redhat.com>
6736
6737         fix a documentation typo
6738         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
6739
6740 2010-10-11  Eric Blake  <eblake@redhat.com>
6741
6742         futimens: work around Solaris 11 bug
6743         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
6744         * tests/test-futimens.h (test_futimens): Enhance, rather than
6745         weaken test.
6746         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6747
6748 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6749
6750         Indentation.
6751         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
6752         higher-level operators more to the left.
6753
6754 2010-10-11  Jim Meyering  <meyering@redhat.com>
6755
6756         test-futimens: avoid unwarranted test failure on Solaris 5.11
6757         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
6758         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
6759         because it tries to dereference the NULL name argument.
6760
6761 2010-10-11  Bruno Haible  <bruno@clisp.org>
6762
6763         Indentation.
6764         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
6765         indentation.
6766
6767 2010-10-11  Jim Meyering  <meyering@redhat.com>
6768
6769         spawn.in.h: make indentation consistent with parentheses
6770         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
6771         Make indentation consistent with parentheses.
6772
6773 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
6774
6775         Fix mismatched parens in previous commit
6776         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
6777         parens.
6778
6779 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
6780
6781         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
6782
6783         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
6784         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
6785         * lib/malloca.c: Include "verify.h".
6786         (verify1): Remove, replacing with a verify call.
6787         * lib/relocwrapper.c (verify1): Likewise.
6788         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
6789         Likewise.
6790         * modules/malloca (Depends-on): Add 'verify'.
6791         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
6792         * modules/vasnprintf (Depends-on): Add 'verify'.
6793         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6794         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6795         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6796         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6797         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6798         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6799         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6800
6801         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
6802
6803         Formerly the style was sometimes 2*X - 1, because the C standard
6804         was wrongly thought to disallow ?: in integral constant expressions.
6805         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
6806         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
6807         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6808         * lib/stdint.in.h (_verify_intmax_size): Likewise.
6809         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
6810         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
6811         verify that time_t cannot be floating.
6812
6813 2010-10-08  Eric Blake  <eblake@redhat.com>
6814
6815         time: enforce recent POSIX ruling that time_t is integral
6816         * lib/time.in.h (__time_t_must_be_integral): Detect any
6817         problematic systems, allowing the rest of gnulib to assume POSIX.
6818
6819 2010-10-08  Jim Meyering  <meyering@redhat.com>
6820
6821         fdopendir: fix a bug on systems lacking openat and /proc support
6822         OpenBSD 4.7 is one such system.  The most noticeable effect was
6823         failure of any application making nontrivial use of fts: rm, du,
6824         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
6825           ./rm: traversal failed: `a': Bad file descriptor
6826         Debugging that, you see that even though FD 6 was closed just
6827         prior to the opendir call in fd_clone_opendir, its resulting
6828         dir->dd_fd was 8, rather than the expected value of 6:
6829
6830         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
6831         93                close (fd);
6832         (gdb) n
6833         94                dir = fd_clone_opendir (dupfd);
6834         (gdb) n
6835         95                saved_errno = errno;
6836         (gdb) p dir->dd_fd
6837         $11 = 8
6838
6839         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
6840         The problem is that on OpenBSD, fd_clone_opendir has to resort
6841         to using the old-style save/restore CWD mechanism, due to its
6842         lack of openat/proc support, and *that* would steal the FD (6)
6843         that opendir was supposed to use.
6844
6845         The fix is to squirrel away the desired FD so that save_cwd uses a
6846         different one, and then free the dest FD right before calling opendir.
6847         That guarantees opendir will use the required file descriptor.
6848
6849         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
6850
6851 2010-10-08  Bruno Haible  <bruno@clisp.org>
6852
6853         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
6854         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
6855
6856 2010-10-08  Bruno Haible  <bruno@clisp.org>
6857
6858         nanosleep: Make replacement POSIX compliant.
6859         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
6860         is out of range.
6861         Reported by Jim Meyering.
6862
6863 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6864
6865         bootstrap: add hook for altering gnulib.mk, for Bison
6866         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
6867         the Bison bootstrapping process can rewrite file names and variables
6868         in this file before later parts of 'bootstrap' use the file.
6869         Bison wants to include lib/gnulib.mk from the top-level makefile,
6870         so it needs the file names in this file to be relative to the top
6871         level, not relative to lib; plus it needs variable names to be
6872         rewritten.
6873         (slurp): Use the new function.
6874
6875         bootstrap: reformat for readability
6876         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
6877
6878 2010-10-08  Eric Blake  <eblake@redhat.com>
6879
6880         docs: update cygwin progress
6881         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
6882         1.7.7.
6883         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
6884         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
6885         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
6886         * doc/posix-functions/carg.texi (carg): Likewise.
6887         * doc/posix-functions/cargf.texi (cargf): Likewise.
6888         * doc/posix-functions/casin.texi (casin): Likewise.
6889         * doc/posix-functions/casinf.texi (casinf): Likewise.
6890         * doc/posix-functions/casinh.texi (casinh): Likewise.
6891         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
6892         * doc/posix-functions/catan.texi (catan): Likewise.
6893         * doc/posix-functions/catanf.texi (catanf): Likewise.
6894         * doc/posix-functions/catanh.texi (catanh): Likewise.
6895         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
6896         * doc/posix-functions/ccos.texi (ccos): Likewise.
6897         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
6898         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
6899         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
6900         * doc/posix-functions/cexp.texi (cexp): Likewise.
6901         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
6902         * doc/posix-functions/cimag.texi (cimag): Likewise.
6903         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
6904         * doc/posix-functions/clog.texi (clog): Likewise.
6905         * doc/posix-functions/clogf.texi (clogf): Likewise.
6906         * doc/posix-functions/conj.texi (conj): Likewise.
6907         * doc/posix-functions/conjf.texi (conjf): Likewise.
6908         * doc/posix-functions/cpow.texi (cpow): Likewise.
6909         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
6910         * doc/posix-functions/cproj.texi (cproj): Likewise.
6911         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
6912         * doc/posix-functions/creal.texi (creal): Likewise.
6913         * doc/posix-functions/crealf.texi (crealf): Likewise.
6914         * doc/posix-functions/csin.texi (csin): Likewise.
6915         * doc/posix-functions/csinf.texi (csinf): Likewise.
6916         * doc/posix-functions/csinh.texi (csinh): Likewise.
6917         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
6918         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
6919         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
6920         * doc/posix-functions/ctan.texi (ctan): Likewise.
6921         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
6922         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
6923         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
6924         * doc/posix-headers/complex.texi (complex.h): Likewise.
6925
6926 2010-10-07  Jim Meyering  <meyering@redhat.com>
6927
6928         parse-datetime: avoid compilation failure on OpenBSD 4.7
6929         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
6930         This works around a compilation failure on OpenBSD 4.7:
6931         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
6932
6933 2010-10-07  Eric Blake  <eblake@redhat.com>
6934
6935         docs: update cygwin progress
6936         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
6937         1.7.6.
6938         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6939         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
6940         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
6941         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
6942         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
6943         Likewise.
6944         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
6945         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
6946         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
6947         Likewise.
6948         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
6949         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
6950         Likewise.
6951         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
6952         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
6953         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
6954         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
6955         Likewise.
6956         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
6957         Likewise.
6958         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
6959
6960         docs: update parse-datetime history
6961         * doc/parse-datetime.texi (Authors of parse_datetime): Better
6962         documentation of this function's history and alternatives.
6963
6964         cygwin: use more robust version check
6965         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
6966         exclude an eventual cygwin 1.9.1.
6967         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6968         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6969         (gl_FUNC_STRCASESTR): Likewise.
6970         Reported by Bruno Haible.
6971
6972 2010-10-06  Bruno Haible  <bruno@clisp.org>
6973
6974         string, sys_select: Avoid #including large headers unless necessary.
6975         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
6976         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
6977         OSF/1, BeOS, Haiku.
6978         Reported by Jim Meyering.
6979
6980 2010-10-05  Eric Blake  <eblake@redhat.com>
6981
6982         memmem, strstr, strcasestr: fix bug with long periodic needle
6983         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
6984         periodic needle having false positive.
6985         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
6986         and cygwin 1.7.7.
6987         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
6988         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6989         (gl_FUNC_STRCASESTR): Likewise.
6990         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6991         * tests/test-memmem.c (main): Expose the bug.
6992         * tests/test-strcasestr.c (main): Likewise.
6993         * tests/test-strstr.c (main): Likewise.
6994         * tests/test-c-strcasestr.c (main): Likewise.
6995         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
6996         * doc/posix-functions/strstr.texi (strstr): Likewise.
6997         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
6998         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
6999
7000 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7001
7002         parse-datetime: do some more renaming
7003         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
7004         parse_datetime, not get_date.  Mention the renaming.
7005         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
7006         in comments.
7007         * m4/bison.m4: Likewise.
7008
7009 2010-10-05  Eric Blake  <eblake@redhat.com>
7010
7011         parse-datetime: better name than get_date
7012         * NEWS: Reword the deprecation notice.
7013         * modules/get_date: Rename to modules/parse-datetime.
7014         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
7015         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
7016         * lib/get_date.y: Rename to lib/parse-datetime.y.
7017         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
7018         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
7019         * doc/getdate.texi: Provide fallback wrapper.
7020         * lib/getdate.h: Move guts, and wrap...
7021         * lib/parse-datetime.h: ...new file.
7022         * lib/parse-datetime.y (get_date): Rename...
7023         (parse_datetime): ...to this.
7024         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
7025         (gl_PARSE_DATETIME): ...to this.
7026         * doc/posix-functions/getdate.texi (get_date): Provide fallback
7027         documentation.
7028         * modules/getdate (Files): Provide fallback docs and header.
7029         (Notice, Depends-on): Update references.
7030         * tests/test-parse-datetime.c: Likewise.
7031         * DEPENDENCIES: Likewise.
7032         * MODULES.html.sh (Date and time <time.h>): Likewise.
7033         * doc/parse-datetime.texi (Date input formats)
7034         (Authors of parse_datetime): Likewise.
7035         * modules/parse-datetime (Files, configure.ac, Makefile.am)
7036         (Include): Likewise.
7037         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
7038         * gnulib-tool: Likewise.
7039         * m4/bison.m4 (gl_BISON): Likewise.
7040         Suggested by Bruno Haible.
7041
7042 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7043
7044         more ports to Solaris tr, which needs [] around ranges
7045         * gnulib-tool: Solaris tr needs [] around ranges.
7046         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7047         * tests/test-pipe-filter-gi1.c (main): Likewise.
7048         * tests/test-pipe-filter-ii1.c (main): Likewise.
7049
7050 2010-10-05  Eric Blake  <eblake@redhat.com>
7051
7052         bootstrap: fix Solaris regression
7053         * build-aux/bootstrap (check_versions): Solaris tr still needs []
7054         around ranges.
7055         Reported by Pádraig Brady.
7056
7057         bootstrap: work with pkg-config
7058         * build-aux/bootstrap (check_versions): Also transliterate - in
7059         prerequisite name.
7060         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
7061         prerequisites that were already found, to avoid confusion.
7062         Reported by Justin Clift.
7063
7064         faccessat: remove unused wrappers
7065         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
7066         presence of these wrappers dragged in -lgen on Solaris.
7067         Reported by Clemens Brogi; fix suggested by Paul Eggert.
7068
7069 2010-10-05  Jim Meyering  <meyering@redhat.com>
7070
7071         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
7072         * Makefile (sc_pragma_columns): New syntax-check rule.
7073
7074 2010-10-04  Bruno Haible  <bruno@clisp.org>
7075
7076         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
7077         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
7078         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
7079         Reported by Bruce Korb and Eric Blake.
7080
7081 2010-10-04  Bruno Haible  <bruno@clisp.org>
7082
7083         threadlib: Make option --with-libpth-prefix work.
7084         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
7085         use $LIBPTH, not just -lpth.
7086
7087 2010-10-04  Bruno Haible  <bruno@clisp.org>
7088
7089         Avoid line length limitation from HP NonStop system header files.
7090         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
7091         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
7092         * lib/ctype.in.h: Likewise.
7093         * lib/dirent.in.h: Likewise.
7094         * lib/errno.in.h: Likewise.
7095         * lib/fcntl.in.h: Likewise.
7096         * lib/float.in.h: Likewise.
7097         * lib/getopt.in.h: Likewise.
7098         * lib/iconv.in.h: Likewise.
7099         * lib/inttypes.in.h: Likewise.
7100         * lib/langinfo.in.h: Likewise.
7101         * lib/locale.in.h: Likewise.
7102         * lib/math.in.h: Likewise.
7103         * lib/netdb.in.h: Likewise.
7104         * lib/netinet_in.in.h: Likewise.
7105         * lib/poll.in.h: Likewise.
7106         * lib/pthread.in.h: Likewise.
7107         * lib/pty.in.h: Likewise.
7108         * lib/sched.in.h: Likewise.
7109         * lib/se-selinux.in.h: Likewise.
7110         * lib/search.in.h: Likewise.
7111         * lib/signal.in.h: Likewise.
7112         * lib/spawn.in.h: Likewise.
7113         * lib/stdarg.in.h: Likewise.
7114         * lib/stddef.in.h: Likewise.
7115         * lib/stdint.in.h: Likewise.
7116         * lib/stdio.in.h: Likewise.
7117         * lib/stdlib.in.h: Likewise.
7118         * lib/string.in.h: Likewise.
7119         * lib/strings.in.h: Likewise.
7120         * lib/sys_file.in.h: Likewise.
7121         * lib/sys_ioctl.in.h: Likewise.
7122         * lib/sys_select.in.h: Likewise.
7123         * lib/sys_socket.in.h: Likewise.
7124         * lib/sys_stat.in.h: Likewise.
7125         * lib/sys_time.in.h: Likewise.
7126         * lib/sys_times.in.h: Likewise.
7127         * lib/sys_utsname.in.h: Likewise.
7128         * lib/sys_wait.in.h: Likewise.
7129         * lib/sysexits.in.h: Likewise.
7130         * lib/termios.in.h: Likewise.
7131         * lib/time.in.h: Likewise.
7132         * lib/unistd.in.h: Likewise.
7133         * lib/wchar.in.h: Likewise.
7134         * lib/wctype.in.h: Likewise.
7135         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
7136         * modules/ctype (Makefile.am): Likewise.
7137         * modules/dirent (Makefile.am): Likewise.
7138         * modules/errno (Makefile.am): Likewise.
7139         * modules/fcntl-h (Makefile.am): Likewise.
7140         * modules/float (Makefile.am): Likewise.
7141         * modules/getopt-posix (Makefile.am): Likewise.
7142         * modules/iconv-h (Makefile.am): Likewise.
7143         * modules/inttypes (Makefile.am): Likewise.
7144         * modules/langinfo (Makefile.am): Likewise.
7145         * modules/locale (Makefile.am): Likewise.
7146         * modules/math (Makefile.am): Likewise.
7147         * modules/netdb (Makefile.am): Likewise.
7148         * modules/netinet_in (Makefile.am): Likewise.
7149         * modules/poll-h (Makefile.am): Likewise.
7150         * modules/pthread (Makefile.am): Likewise.
7151         * modules/pty (Makefile.am): Likewise.
7152         * modules/sched (Makefile.am): Likewise.
7153         * modules/search (Makefile.am): Likewise.
7154         * modules/selinux-h (Makefile.am): Likewise.
7155         * modules/signal (Makefile.am): Likewise.
7156         * modules/spawn (Makefile.am): Likewise.
7157         * modules/stdarg (Makefile.am): Likewise.
7158         * modules/stddef (Makefile.am): Likewise.
7159         * modules/stdint (Makefile.am): Likewise.
7160         * modules/stdio (Makefile.am): Likewise.
7161         * modules/stdlib (Makefile.am): Likewise.
7162         * modules/string (Makefile.am): Likewise.
7163         * modules/strings (Makefile.am): Likewise.
7164         * modules/sys_file (Makefile.am): Likewise.
7165         * modules/sys_ioctl (Makefile.am): Likewise.
7166         * modules/sys_select (Makefile.am): Likewise.
7167         * modules/sys_socket (Makefile.am): Likewise.
7168         * modules/sys_stat (Makefile.am): Likewise.
7169         * modules/sys_time (Makefile.am): Likewise.
7170         * modules/sys_times (Makefile.am): Likewise.
7171         * modules/sys_utsname (Makefile.am): Likewise.
7172         * modules/sys_wait (Makefile.am): Likewise.
7173         * modules/sysexits (Makefile.am): Likewise.
7174         * modules/termios (Makefile.am): Likewise.
7175         * modules/time (Makefile.am): Likewise.
7176         * modules/unistd (Makefile.am): Likewise.
7177         * modules/wchar (Makefile.am): Likewise.
7178         * modules/wctype (Makefile.am): Likewise.
7179
7180 2010-10-04  Bruno Haible  <bruno@clisp.org>
7181
7182         read-file tests: Avoid a test failure on NonStop Kernel.
7183         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
7184         a regular file.
7185         Reported by Joachim Schmitz <schmitz@hp.com>.
7186
7187 2010-10-03  Bruno Haible  <bruno@clisp.org>
7188
7189         gnulib-tool: Fixes for --create-testdir with --libtool.
7190         * gnulib-tool (func_get_automake_snippet): Don't augment
7191         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
7192         an executable.
7193         (func_create_testdir): Handle module 'alloca' like func_import.
7194         Reported by Bruce Korb <bruce.korb@gmail.com>.
7195
7196 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
7197
7198         Avoid some lines longer than 80 characters.
7199         * lib/stdint.in.h: Break long comment lines.
7200         * lib/math.in.h: Likewise.
7201         (_GL_NUM_UINT_WORDS): New macro, for readability.
7202         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
7203         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
7204         * lib/stdlib.in.h: Likewise.
7205         * lib/spawn.in.h: Likewise.
7206         * lib/sys_socket.in.h: Update an URL.
7207         * lib/sys_stat.in.h: Break long line.
7208
7209 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
7210
7211         Improve pmccabe2html.
7212         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
7213         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
7214         when the sources change. Remove the line in the HTML about "Used
7215         ranges" (which implied that there might be other unused ranges),
7216         rename "Resume" to "Summary" (easier to understand for more users).
7217         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
7218         styles, and some unnecessary blank lines.
7219
7220 2010-10-03  Bruno Haible  <bruno@clisp.org>
7221             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7222
7223         acl: Add support for ACLs on NonStop Kernel.
7224         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
7225         Check whether the function aclsort() exists.
7226         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
7227         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
7228         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7229         (acl_nontrivial [HAVE_ACLSORT]: New function.
7230         (file_has_acl): Implement for NonStop Kernel.
7231         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7232         (qset_acl): Implement for NonStop Kernel.
7233         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
7234         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7235         (main): Implement for NonStop Kernel.
7236         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
7237         Kernel. Handle this flavor.
7238         * tests/test-set-mode-acl.sh: Likewise.
7239         * tests/test-copy-acl.sh: Likewise.
7240         * tests/test-copy-file.sh: Likewise.
7241
7242 2010-10-03  Bruno Haible  <bruno@clisp.org>
7243
7244         Info about ACLs on NonStop Kernel.
7245         * doc/acl-resources.txt: Add info about NonStop Kernel.
7246         References by Joachim Schmitz <schmitz@hp.com>.
7247
7248 2010-10-02  Bruno Haible  <bruno@clisp.org>
7249
7250         Define missing EDQUOT on NonStop Kernel.
7251         * lib/errno.in.h (EDQUOT): Assign a value if missing.
7252         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
7253         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
7254         missing.
7255         * doc/posix-headers/errno.texi: Mention the NSK bug.
7256         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
7257         Reported by Joachim Schmitz <schmitz@hp.com>.
7258
7259 2010-10-02  Bruno Haible  <bruno@clisp.org>
7260
7261         Update doc for POSIX:2008.
7262         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
7263         Update URL of POSIX specification.
7264
7265 2010-10-02  Bruno Haible  <bruno@clisp.org>
7266
7267         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
7268         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
7269         from gnulib, not from Automake.
7270
7271 2010-10-02  Bruno Haible  <bruno@clisp.org>
7272
7273         New module 'system-posix'.
7274         * modules/system-posix: New file.
7275         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
7276         module is present.
7277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7278         GNULIB_SYSTEM_POSIX.
7279         * modules/stdlib (Depends-on): Remove sys_wait.
7280         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
7281         * doc/posix-functions/system.texi: Mention the new module.
7282         * doc/posix-headers/stdlib.texi: Likewise.
7283         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
7284         define test_sys_wait_macros to a no-op.
7285         Reported by Sam Steingold <sds@gnu.org>.
7286
7287 2010-09-30  Bruno Haible  <bruno@clisp.org>
7288
7289         More renaming from 'getdate' to 'get_date'.
7290         * doc/get_date.texi: Renamed from doc/getdate.texi.
7291         * modules/get_date (Files): Update.
7292         * MODULES.html.sh (Date and time <time.h>): Update.
7293         * DEPENDENCIES: Update.
7294         * gnulib-tool: Update comment.
7295         * m4/bison.m4 (gl_BISON): Likewise.
7296         * m4/get_date.m4 (gl_GET_DATE): Likewise.
7297
7298 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
7299
7300         bootstrap: support ACLOCAL_FLAGS during aclocal
7301         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
7302         can add additional -I dir for third-party .m4 files.
7303
7304 2010-09-30  Eric Blake  <eblake@redhat.com>
7305
7306         bootstrap: use glibtoolize on MacOS
7307         * build-aux/bootstrap (check_versions): Convert libtool into
7308         libtoolize.
7309         (tool search): Move libtool check earlier, and look for
7310         glibtoolize for MacOS.
7311         (gnulib_tool_options): Auto-add --libtool when appropriate.
7312         Reported by Justin Clift.
7313
7314         poll: fix typo that broke test on MacOS
7315         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
7316         Reported by Justin Clift.
7317
7318         getdate: rename to get_date
7319         Note: getdate.h is not renamed, to minimize client impact.
7320         * modules/getdate: Mark obsolete.  Move old contents...
7321         * modules/get_date: ...to new module name.
7322         * modules/getdate-tests: Move...
7323         * modules/get_date-tests: ...here.
7324         * m4/getdate.m4: Move...
7325         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
7326         * lib/getdate.y: Move...
7327         * lib/get_date.y: ...here.
7328         * tests/test-getdate.c: Move...
7329         * tests/test-get_date.c: ...here.
7330         * doc/posix-functions/getdate.texi (getdate): Update name.
7331         * NEWS: Mention the change.
7332
7333 2010-09-29  Bruno Haible  <bruno@clisp.org>
7334
7335         Separate the module 'waitpid' from the module 'sys_wait'.
7336         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
7337         present.
7338         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
7339         gl_MODULE_INDICATOR_FOR_TESTS.
7340         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
7341         * modules/sys_wait (Depends-on): Remove waitpid.
7342         (Makefile.am): Substitute GNULIB_WAITPID.
7343         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
7344         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
7345         signature only if the 'waitpid' module is present.
7346         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
7347         * NEWS: Mention the change.
7348         * modules/grantpt (Depends-on): Add waitpid.
7349         * modules/wait-process (Depends-on): Likewise.
7350
7351 2010-09-29  Bruno Haible  <bruno@clisp.org>
7352
7353         More tests for module 'sys_wait'.
7354         * modules/sys_wait-c++-tests: New file.
7355         * tests/test-sys_wait-c++.cc: New file.
7356         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
7357         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7358
7359 2010-09-29  Bruno Haible  <bruno@clisp.org>
7360
7361         New module 'waitpid'.
7362         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
7363         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
7364         Don't include <process.h>.
7365         (waitpid): Declare only, using modern idiom.
7366         * m4/waitpid.m4: New file.
7367         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
7368         * modules/waitpid: New file.
7369         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
7370         (Makefile.am): Update.
7371         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7372
7373 2010-09-28  Bruno Haible  <bruno@clisp.org>
7374
7375         poll: Assume ANSI C.
7376         * lib/poll.c (poll): Use an ANSI C declaration.
7377
7378 2010-09-28  Bruno Haible  <bruno@clisp.org>
7379
7380         poll-h: Create poll.h on all platforms.
7381         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
7382         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
7383         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
7384         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
7385         (gl_REPLACE_POLL_H): Don't set POLL_H.
7386         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
7387         * modules/poll-h (Depends-on): Add include_next.
7388         (Makefile.am): Create poll.h unconditionally. Substitute also
7389         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
7390
7391 2010-09-28  Bruno Haible  <bruno@clisp.org>
7392
7393         Tests for module 'poll-h'.
7394         * modules/poll-h-c++-tests: New file.
7395         * tests/test-poll-h-c++.cc: New file.
7396
7397         Tests for module 'poll-h'.
7398         * modules/poll-h-tests: New file.
7399         * tests/test-poll-h.c: New file.
7400
7401 2010-09-28  Bruno Haible  <bruno@clisp.org>
7402
7403         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
7404         * modules/poll-h (Depends-on): Add 'extensions'.
7405
7406 2010-09-28  Bruno Haible  <bruno@clisp.org>
7407
7408         New module 'poll-h'.
7409         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
7410         (poll): Use modern idiom.
7411         * modules/poll-h: New file.
7412         * modules/poll (Files): Remove lib/poll.in.h.
7413         (Depends-on): Add poll-h.
7414         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
7415         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
7416         * m4/poll_h.m4: New file.
7417         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
7418         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
7419         and invoke gl_REPLACE_POLL_H.
7420         * lib/poll.c: Use common idiom.
7421         * tests/test-poll.c: Likewise.
7422         * doc/posix-headers/poll.texi: Mention the poll-h module.
7423         Suggested by Eric Blake.
7424
7425 2010-09-26  Bruno Haible  <bruno@clisp.org>
7426
7427         sys_wait: Implement WSTOPSIG.
7428         * lib/sys_wait.in.h (WSTOPSIG): New macro.
7429         Reported by Simon Josefsson.
7430
7431 2010-09-26  Simon Josefsson  <simon@josefsson.org>
7432
7433         stdlib, sys_wait: Avoid compilation error on mingw.
7434         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
7435
7436 2010-09-26  Bruno Haible  <bruno@clisp.org>
7437
7438         stdlib tests: Avoid code duplication.
7439         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
7440         * modules/sys_wait-tests (Files): Likewise.
7441         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
7442         * tests/test-stdlib.c: Include test-sys_wait.h.
7443         (main): Invoke test_sys_wait_macros.
7444         * tests/test-sys_wait.c: Include test-sys_wait.h.
7445         (main): Invoke test_sys_wait_macros.
7446
7447 2010-09-25  Simon Josefsson  <simon@josefsson.org>
7448
7449         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
7450         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
7451         sure Windows sockets are working before calling getaddrinfo.
7452         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
7453         * doc/gnulib.texi (Windows sockets): Fix typo.
7454
7455 2010-09-25  Bruno Haible  <bruno@clisp.org>
7456
7457         Tests for module 'regex-quote'.
7458         * modules/regex-quote-tests: New file.
7459         * tests/test-regex-quote.c: New file.
7460
7461         New module 'regex-quote'.
7462         * lib/regex-quote.h: New file.
7463         * lib/regex-quote.c: New file.
7464         * modules/regex-quote: New file.
7465         Suggested by Reuben Thomas <rrt@sc3d.org>.
7466
7467 2010-09-24  Bruno Haible  <bruno@clisp.org>
7468
7469         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
7470         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
7471
7472 2010-09-23  Bruno Haible  <bruno@clisp.org>
7473
7474         setenv: Relax license.
7475         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
7476         Blake.
7477         Requested by Eric Blake.
7478
7479 2010-09-22  Bruno Haible  <bruno@clisp.org>
7480
7481         termios: Relax license.
7482         * modules/termios (License): Change to LGPLv2+.
7483         Requested by Eric Blake.
7484
7485 2010-09-22  Bruno Haible  <bruno@clisp.org>
7486
7487         threadlib: Allow the package to change the default to 'no'.
7488         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
7489         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
7490         Reported by Paul Eggert.
7491
7492 2010-09-22  Pádraig Brady  <P@draigbrady.com>
7493             Bruno Haible  <bruno@clisp.org>
7494
7495         Fix endless loop in mbmemcasecoll.
7496         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
7497         byte.
7498         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
7499
7500 2010-09-22  Bruno Haible  <bruno@clisp.org>
7501
7502         Tests for module 'memcoll'.
7503         * modules/memcoll-tests: New file.
7504         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
7505
7506         memcoll, xmemcoll: Clarify size vs. length.
7507         * modules/memcoll.c (memcoll0): Clarify specification.
7508         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
7509         passed to collate_error.
7510
7511 2010-09-22  Bruno Haible  <bruno@clisp.org>
7512
7513         Tests for module 'memcasecmp'.
7514         * modules/memcasecmp-tests: New file.
7515         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
7516
7517 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7518
7519         * lib/pthread.in.h: Add split double-inclusion guard, and include
7520         system <pthread.h> if there is one.  Use @@-style as in other
7521         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
7522         pthread.h doesn't.
7523         (pthread_mutexattr_destroy, pthread_mutexattr_init):
7524         (pthread_mutexattr_settype, pthread_mutex_trylock):
7525         New static inline functions, if there's no system <pthread.h>.
7526         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
7527         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
7528         Approximate with mutexes if the system lacks spinlocks, as in
7529         MacOS.
7530         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
7531         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
7532         @@-style.  Check for spinlocks separately.
7533         (gl_PTHREAD_DEFAULTS): New macro.
7534         * modules/pthread: Redo to use a more typical style for in.h files.
7535
7536 2010-09-21  Eric Blake  <eblake@redhat.com>
7537
7538         net_if: enhance tests
7539         * tests/test-net_if.c (main): Move signature checks earlier.
7540         Print failures to stderr.
7541         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
7542         Document the bug that we do not yet fix.
7543
7544 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7545
7546         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
7547         about gnulib, not GSS.
7548
7549 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7550
7551         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
7552         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
7553         for Emacs.
7554         * build-aux/pmccabe2html: Make Makefile.am example code more
7555         cut-and-paste friendly.
7556
7557 2010-09-21  Simon Josefsson  <simon@josefsson.org>
7558
7559         * tests/test-net_if.c: New file.
7560         * modules/net_if-tests: New file.
7561
7562 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
7563
7564         pthread: add pthread_spin_destroy
7565         * lib/pthread.in.h (pthread_spin_destroy): New function.
7566
7567 2010-09-19  Bruno Haible  <bruno@clisp.org>
7568
7569         gnulib-tool: Fix --help output.
7570         * gnulib-tool (func_usage): Fix help message.
7571         Reported by Reuben Thomas <rrt@sc3d.org>.
7572
7573 2010-09-18  Jim Meyering  <meyering@redhat.com>
7574
7575         maint.mk: avoid unexpanded \n in two diagnostics
7576         * top/maint.mk (sc_prohibit_always_true_header_tests):
7577         Don't use a literal \n in a halt=... assignment.  It would not be
7578         expanded, and the two \n bytes would appear in the diagnostic output
7579         rather than the desired newline.  Use halt=$$(printf ... instead.
7580         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7581
7582 2010-09-18  Bruno Haible  <bruno@clisp.org>
7583
7584         netinet_in: Doc tweak.
7585         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
7586         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7587
7588 2010-09-18  Jim Meyering  <meyering@redhat.com>
7589
7590         init.sh: correct an outdated comment
7591         * tests/init.sh (create_exe_shims_):  s/function/alias/
7592
7593         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
7594         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
7595         a file named "*.exe" is removed between the glob expansion and the
7596         processing of that oddly named file.
7597
7598 2010-09-17  Eric Blake  <eblake@redhat.com>
7599
7600         mirbsd: add some more support
7601         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
7602         in BSD family.
7603         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
7604         devices as OpenBSD.
7605         * m4/host-os.m4 (mirbsd): Add MirBSD.
7606
7607         tests: fix unportable assumption on sys/wait.h
7608         * tests/test-sys_wait.c (main): Relax test.
7609         * tests/test-stdlib.c (main): Likewise.
7610
7611         init.sh: accomodate directory with no .exes
7612         * tests/init.sh: Accomodate directory containing only scripts.
7613
7614         tests: avoid compiler warning
7615         * tests/test-stdlib.c (main): Use the variable.
7616
7617         fdutimens, fdutimensat: update signature, again
7618         * lib/utimens.h (gl_futimens): Delete, and move signature...
7619         (fdutimens): ...here.
7620         (fdutimensat): Rearrange signature.
7621         (lutimensat): Rename variable for clarity.
7622         * lib/fdutimensat.c (fdutimensat): Update signature.
7623         * lib/utimens.c (fdutimens): Likewise.
7624         (gl_futimens): Delete.
7625         (utimens, lutimens): Update callers.
7626         * lib/futimens.c (futimens): Likewise.
7627         * tests/test-fdutimensat.c: Likewise.
7628         * tests/test-utimens.c: Likewise.
7629         * tests/test-futimens.h: Update comment.
7630         * NEWS: Mention this.
7631         Suggested by Paul Eggert.
7632
7633 2010-09-17  Bruno Haible  <bruno@clisp.org>
7634
7635         Take over the maintenance of some older macros from Autoconf.
7636         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
7637         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
7638         GNU Autoconf.
7639         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
7640         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
7641
7642 2010-09-17  Eric Blake  <eblake@redhat.com>
7643
7644         fdutimensat: drop atflag validation
7645         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
7646         with valid fd, to close a race scenario where futimens is
7647         unsupported and FILE was replaced by a symlink.
7648         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
7649         accordingly.
7650         Suggested by Paul Eggert.
7651
7652 2010-09-16  Bruno Haible  <bruno@clisp.org>
7653
7654         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
7655         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
7656
7657 2010-09-16  Bruno Haible  <bruno@clisp.org>
7658
7659         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
7660         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
7661         login_tty exists.
7662         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7663
7664 2010-09-16  Bruno Haible  <bruno@clisp.org>
7665
7666         login_tty: Make the replacement code work on BSD systems.
7667         * lib/login_tty.c: Include <sys/ioctl.h>.
7668         (login_tty): Use ioctl TIOCSCTTY when available.
7669         * modules/login_tty (Depends-on): Add sys_ioctl.
7670         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7671
7672 2010-09-16  Bruno Haible  <bruno@clisp.org>
7673
7674         login_tty: Stricter unit test.
7675         * modules/login_tty-tests (Depends-on): Add tcgetsid.
7676         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
7677         and tcgetsid() after login_tty.
7678         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7679
7680 2010-09-16  Bruno Haible  <bruno@clisp.org>
7681
7682         New module 'tcgetsid'.
7683         * lib/tcgetsid.c: New file.
7684         * m4/tcgetsid.m4: New file.
7685         * modules/tcgetsid: New file.
7686         * modules/termios (Depends-on): Add c++defs, warn-on-use.
7687         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
7688         GNULIB_TCGETSID, HAVE_TCGETSID.
7689         * lib/termios.in.h: Include <sys/types.h>.
7690         (tcgetsid): New declaration.
7691         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
7692         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
7693         * doc/posix-functions/tcgetsid.texi: Mention the new module.
7694         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
7695
7696 2010-09-16  Bruno Haible  <bruno@clisp.org>
7697
7698         Tests for module 'termios'.
7699         * modules/termios-c++-tests: New file.
7700         * modules/termios-tests: New file.
7701         * tests/test-termios-c++.cc: New file.
7702         * tests/test-termios.c: New file.
7703
7704         New module 'termios'.
7705         * modules/termios: New file.
7706         * lib/termios.in.h: New file.
7707         * m4/termios_h.m4: New file.
7708         * doc/posix-headers/termios.texi: Mention the new module.
7709
7710 2010-09-16  Eric Blake  <eblake@redhat.com>
7711
7712         fdutimensat: add an atflag parameter
7713         * lib/fdutimensat.c (fdutimensat): Add new parameter.
7714         * lib/utimens.h (fdutimensat): Update prototype.
7715         * tests/test-fdutimensat.c: Adjust test to match.
7716         * NEWS: Document the change.
7717         Suggested by Paul Eggert.
7718
7719 2010-09-16  Bruno Haible  <bruno@clisp.org>
7720
7721         Fix typos in comments.
7722         * lib/striconveh.h: Fix typo in comment.
7723         * lib/login_tty.c (login_tty): Likewise.
7724
7725 2010-09-15  Bruno Haible  <bruno@clisp.org>
7726
7727         stdlib: clarify MirBSD WEXITSTATUS bug
7728         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
7729         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7730
7731 2010-09-15  Eric Blake  <eblake@redhat.com>
7732
7733         stdlib: work around MirBSD WEXITSTATUS bug
7734         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
7735         * modules/stdlib (Depends-on): Add sys_wait.
7736         * tests/test-sys_wait.c (main): Enhance test.
7737         * tests/test-stdlib.c (main): Likewise.
7738         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
7739
7740         docs: mention MacOS issue with WEXITSTATUS(constant)
7741         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
7742         issue.
7743         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7744
7745         strnlen: add tests
7746         * modules/strnlen-tests: New file.
7747         * tests/test-strnlen.c: Likewise.
7748
7749 2010-09-14  Bruno Haible  <bruno@clisp.org>
7750
7751         unistr/base: Avoid link errors when module 'libunistring' is also used.
7752         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
7753         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
7754         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
7755         Declare also when HAVE_LIBUNISTRING is set.
7756         Reported by Pádraig Brady <P@draigbrady.com>.
7757
7758 2010-09-14  Eric Blake  <eblake@redhat.com>
7759
7760         test-rawmemchr: make more robust
7761         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
7762         (Depends-on, configure.ac): Add needed prerequisites to use it.
7763         * modules/memchr-tests (Files, Depends-on, configure.ac):
7764         Likewise, to avoid implicit reliance on memchr module prereqs.
7765         * tests/test-memchr.c (main): Ensure proper masking.
7766         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
7767         reads.
7768
7769         memchr: detect glibc Alpha bug
7770         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
7771         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
7772         Alpha.
7773         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
7774         * tests/test-memchr.c (main): Enhance test.
7775         Reported by Nelson H. F. Beebe.
7776
7777 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7778
7779         fts, getcwd, glob: audit for dirfd returning -1
7780         * lib/fts.c (opendir): Remove #define; no longer used.
7781         (opendirat): New arg PDIR_FD.  All callers changed.
7782         (fts_build, _opendir2): Use new opendirat to avoid the need for
7783         dirfd, or for checking whether dirfd returns a negative value.
7784         Don't use opendir; always use openat followed by fdopendir.
7785         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
7786         it.
7787         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
7788         returns -1 here.
7789         * modules/fts (Depends-on): Remove dirfd.
7790         * modules/getcwd (Depends-on): Likewise.
7791
7792 2010-09-13  Eric Blake  <eblake@redhat.com>
7793
7794         float: fix broken MirBSD header
7795         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
7796         * doc/posix-headers/float.texi (float.h): Document it.
7797
7798 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7799
7800         fts: use O_NOFOLLOW to avoid race condition when opening a directory
7801         * lib/fts.c (opendirat): New arg extra_flags.
7802         (__opendir2): Use it to avoid following symlinks when opening
7803         a directory, if symlinks are not supposed to be followed.  See
7804         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
7805
7806         fdopendir: preserve argument fd before returning
7807         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
7808         (fdopendir_with_dup, fd_clone_opendir): New static functions.
7809         (fdopendir): Use them, arranging for FD to be open to the same
7810         directory that it was when it started.  (It might be temporarily
7811         closed while fdopendir is running, so this not thread- or
7812         signal-safe.)  Be careful to do the right thing even when file
7813         descriptors are scarce and dup fails with errno == EMFILE.  See
7814         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
7815
7816 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
7817
7818         regex: Pass the system regex if its only problem is 32-bit regoff_t.
7819         * NEWS: Document change.
7820         * m4/regex.m4: Disable test for regoff_t size.
7821
7822 2010-09-13  Jim Meyering  <meyering@redhat.com>
7823
7824         fts: don't operate on an invalid file descriptor after failed dup
7825         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
7826         negative file descriptor.
7827
7828 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
7829
7830         savedir: add streamsavedir, deprecate fdsavedir
7831         * NEWS: Mention deprecation of fdsavedir.
7832         * lib/savedir.c (streamsavedir): New extern function, whose name
7833         ends in "savedir" to be consistent with the others.  This differs
7834         from savedirstream in that it doesn't close its argument.  The
7835         next version of GNU tar will use this instead of fdsavedir, to
7836         avoid some race conditions and conserve file descriptors.
7837         (savedirstream): Reimplement as a wrapper around streamsavedir.
7838         (fdsavedir): Add a comment deprecating this function.  As far as
7839         I know, only GNU tar used it, and GNU tar doesn't need it any more.
7840         * lib/savedir.h (streamsavedir): New decl.
7841         (fdsavedir): Add a comment deprecating this.
7842
7843 2010-09-10  Bruno Haible  <bruno@clisp.org>
7844
7845         langinfo: Fix last commit.
7846         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
7847         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
7848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7849
7850 2010-09-10  Bruno Haible  <bruno@clisp.org>
7851
7852         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
7853         * lib/progreloc.c (O_EXEC): Define fallback.
7854
7855 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
7856
7857         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
7858         * NEWS: Document recent changes to fcntl-h.
7859         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
7860         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
7861         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
7862         Similarly for O_SEARCH; this last was already true, but not documented.
7863         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
7864         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
7865         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
7866         Likewise.
7867         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
7868         is zero, not whether it is defined.
7869         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
7870         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
7871         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
7872
7873 2010-09-10  Bruno Haible  <bruno@clisp.org>
7874
7875         langinfo, nl_langinfo: Fix for IRIX 5.3.
7876         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
7877         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
7878         HAVE_LANGINFO_YESEXPR.
7879         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
7880         HAVE_LANGINFO_YESEXPR.
7881         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
7882         HAVE_LANGINFO_T_FMT_AMPM is 0.
7883         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
7884         HAVE_LANGINFO_YESEXPR is 0.
7885         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
7886         NOEXPR.
7887         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
7888         * doc/posix-functions/nl_langinfo.texi: Likewise.
7889         Reported by Eric Blake.
7890
7891 2010-09-10  Bruno Haible  <bruno@clisp.org>
7892
7893         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
7894         * doc/glibc-functions/login_tty.texi: Mention the include file problem
7895         on FreeBSD 8.0 and OpenBSD 4.6.
7896         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
7897         * m4/pty_h.m4 (gl_PTY_H): Likewise.
7898         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
7899         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
7900         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
7901         ac_includes_default.
7902         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7903
7904 2010-09-09  Eric Blake  <eblake@redhat.com>
7905
7906         strsignal: work around NetBSD bug
7907         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
7908         * lib/string.in.h (includes): Likewise.
7909         * doc/posix-functions/strsignal.texi (strsignal): Document the
7910         bug.
7911         Reported by Nelson H. F. Beebe.
7912
7913         gnulib-tool: work with NetBSD /bin/sh
7914         * gnulib-tool (func_cache_var, func_cache_lookup_module)
7915         (func_get_description, func_get_comment, func_get_status)
7916         (func_get_notice, func_get_applicability, func_get_filelist)
7917         (func_get_dependencies, func_get_autoconf_early_snippet)
7918         (func_get_autoconf_snippet, func_get_automake_snippet)
7919         (func_get_include_directive, func_get_link_directive)
7920         (func_get_license, func_get_maintainer, func_import): Avoid
7921         shell syntax errors from parsing syntax extensions.
7922
7923 2010-09-09  Bruno Haible  <bruno@clisp.org>
7924
7925         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7926         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
7927         a reliable way to determine whether the 'alias' command works.
7928
7929 2010-09-08  Jim Meyering  <meyering@redhat.com>
7930
7931         init.sh: penalize a set-x-impaired shell; don't disqualify it
7932         * tests/init.sh: Too many shells corrupt application stderr when
7933         you set -x, so we can't afford to disqualify them, since at least
7934         on Irix-6.5, that would disqualify all bourne shells.
7935         Instead, use a two-pass approach.
7936         On the first pass, try to find a shell that meets the stricter
7937         condition that set -x does not corrupt stderr.
7938         If no shell meets the stricter condition, retest each candidate
7939         shell, but without that extra condition.  Finally, when
7940         VERBOSE=yes is requested and set -x might cause trouble, simply
7941         issue a warning and refrain from enabling debug output.
7942
7943 2010-09-08  Eric Blake  <eblake@redhat.com>
7944
7945         unsetenv: fix OpenBSD bug
7946         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
7947         * doc/posix-functions/unsetenv.texi (unsetenv): Update
7948         documentation.
7949         Reported by Jim Meyering.
7950
7951         strtod: work around IRIX 6.5 bug
7952         * lib/strtod.c (strtod): Reparse number on shorter string if
7953         exponent parse was invalid.
7954         * tests/test-strtod.c (main): Add check for "0x1p 2".
7955         Reported by Tom G. Christensen.
7956
7957         getopt: optimize previous patch
7958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
7959         empty variable.  Speed up awk script.
7960         Reported by Paolo Bonzini.
7961
7962 2010-09-08  Jim Meyering  <meyering@redhat.com>
7963
7964         test.sh: disqualify shells for which set -x corrupts stderr
7965         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
7966         and OpenBSD 4.7.  They make it so with "set -x", environment settings
7967         appear in stderr output.  For example, this command:
7968             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
7969         prints "P=1" on those two systems:
7970
7971 2010-09-08  Bruno Haible  <bruno@clisp.org>
7972
7973         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7974         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
7975         commands, because some shells ignore redirections when there is an
7976         error in the command lookup.
7977         Reported by Eric Blake.
7978
7979 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
7980
7981         * lib/regex.h: Fix a mention of `regex_compile' (should be
7982         `re_compile_pattern').
7983         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
7984         (re_set_registers): Correct name of parameter in comment.
7985
7986         * doc/regex.texi: Add documentation for missing syntax flags.
7987         Remove commented-out documentation of defunct syntax option
7988         RE_NO_EMPTY_ALTS.
7989         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
7990         Add documentation of re_set_registers.
7991         Document trick to re-use a pattern buffer by setting fastmap manually.
7992         Update documentation of struct re_pattern_buffer per public members.
7993         Uncomment documentation of equivalence class operators and
7994         collating symbol operators, since they are now implemented,
7995         Explain leftmost-longest matching in relation to alternatives.
7996         Tidy documentation of substring matching.
7997         Remove POSIX documentation, which is done better in
7998         glibc, and refer the reader there. Keep BSD API documentation, as
7999         that is not readily available elsewhere.
8000
8001 2010-09-07  Eric Blake  <eblake@redhat.com>
8002
8003         getopt: handle POSIXLY_CORRECT set but not exported
8004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
8005         export state of POSIXLY_CORRECT, due to bash set -o posix.
8006         Reported by Dustin J. Mitchell.
8007
8008 2010-09-05  Bruno Haible  <bruno@clisp.org>
8009
8010         gnulib-tool: Highlight the changed options.
8011         * gnulib-tool (func_usage): Display the --import, --add-import,
8012         --remove-import explanations in bold font.
8013
8014 2010-09-06  Karl Berry  <karl@gnu.org>
8015
8016         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
8017
8018 2010-09-05  Bruno Haible  <bruno@clisp.org>
8019
8020         uniwidth/width: Update comment.
8021         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
8022         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
8023
8024 2010-09-05  Bruno Haible  <bruno@clisp.org>
8025
8026         isinf, isnan: Relax license.
8027         * modules/isinf (License): Change from GPL to LGPL, with consent from
8028         Ben Pfaff.
8029         * modules/isnan (License): Likewise.
8030         Requested by Ludovic Courtès.
8031
8032 2010-09-04  Bruno Haible  <bruno@clisp.org>
8033
8034         gnulib-tool: Help migration from --import to --add-import or --update.
8035         * gnulib-tool: Emit a verbose error message when --import is used
8036         without any module name.
8037
8038 2010-09-04  Bruno Haible  <bruno@clisp.org>
8039
8040         Update doc about gnulib-tool.
8041         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
8042         'gnulib-tool --update' in more detail.
8043         Reported by Eric Blake.
8044
8045 2010-09-04  Bruno Haible  <bruno@clisp.org>
8046
8047         gnulib-tool: Change --import. New options --add/remove-import.
8048         * gnulib-tool: New options --add-import, --remove-import.
8049         (func_usage): Document them.
8050         (have_associative): Define always.
8051         (func_import): In import mode, don't merge the specified settings with
8052         the cached settings. Implement remove-import mode.
8053         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
8054         Explain when to use them versus --import.
8055         (Simple update): Use --add-import instead of --import.
8056         * NEWS: Mention the change.
8057
8058 2010-09-04  Bruno Haible  <bruno@clisp.org>
8059
8060         * doc/gnulib-tool.texi (Initial import): Update paragraph about
8061         separate gnulib.mk.
8062
8063 2010-09-04  Bruno Haible  <bruno@clisp.org>
8064
8065         gnulib-tool: Don't talk about CVS any more.
8066         * gnulib-tool (func_usage, func_import): Write "version control"
8067         instead of CVS.
8068
8069 2010-09-04  Jim Meyering  <meyering@redhat.com>
8070
8071         maint.mk: avoid obscure sc_copyright_check failure in coreutils
8072         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
8073         false positives (whose names may be ill-chosen) when searching
8074         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
8075         would cause a false-positive.
8076
8077         avoid coreutils "make distcheck" failure
8078         Coreutils tests with an absolute build directory name that contains
8079         a space.  Not quoting this directory name caused a failure.
8080         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
8081         * tests/test-vc-list-files-cvs.sh: Likewise.
8082
8083 2010-09-04  Bruno Haible  <bruno@clisp.org>
8084
8085         gnulib-tool: Avoid error when run in a package without Makefile.am.
8086         * gnulib-tool: When collecting the m4dirs in a package that does not
8087         have a Makefile.am, eliminate those directories that contain no
8088         gnulib-cache.m4. Fix expression that counts these directories.
8089
8090 2010-09-04  Bruno Haible  <bruno@clisp.org>
8091
8092         update-copyright test: Improve output when perl is missing or too old.
8093         * tests/test-update-copyright.sh: Move test of Perl version down after
8094         the test whether Perl exists. Provide an explanation relating Perl's
8095         error message to Automake's SKIP: message.
8096
8097 2010-09-04  Bruno Haible  <bruno@clisp.org>
8098
8099         Don't augment PATH in TESTS_ENVIRONMENT.
8100         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
8101         set abs_aux_dir instead of augmenting PATH.
8102         * modules/vc-list-files-tests (Makefile.am): Likewise.
8103         * tests/test-update-copyright.sh: Augment PATH here.
8104         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
8105         path_prepend_.
8106         * tests/test-vc-list-files-git.sh: Likewise.
8107
8108 2010-09-04  Jim Meyering  <meyering@redhat.com>
8109
8110         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
8111         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
8112
8113 2010-09-04  Bruno Haible  <bruno@clisp.org>
8114
8115         strdup: Fix compilation error in C++ mode.
8116         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
8117         the macro.
8118
8119 2010-09-04  Bruno Haible  <bruno@clisp.org>
8120
8121         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
8122         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
8123         macro into a function.
8124         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8125
8126 2010-09-04  Bruno Haible  <bruno@clisp.org>
8127
8128         Set PATH_SEPARATOR the same way autoconf does.
8129         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
8130         the value of PATH_SEPARATOR the same way autoconf-generated configure
8131         scripts do.
8132         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
8133         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
8134
8135 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8136
8137         Set PATH_SEPARATOR the same way autoconf does.
8138         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
8139         the same way autoconf-generated configure scripts do.
8140         * posix-modules: Likewise.
8141
8142 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8143
8144         hash: fix safe_hasher const typo
8145         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
8146         const; otherwise, there is a type error later.
8147
8148 2010-09-02  Jim Meyering  <meyering@redhat.com>
8149
8150         test-update-copyright.sh: require perl 5.8.0
8151         * tests/test-update-copyright.sh: Require 5.8.0,
8152         which Tom G. Christensen has confirmed is adequate,
8153         while 5.6.1 is not.
8154
8155 2010-09-02  Eric Blake  <eblake@redhat.com>
8156
8157         tests: init.sh improvements for re-exec'ing with zsh
8158         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
8159         -vx through shell re-exec.
8160         Reported by Tom G. Christensen.
8161
8162         wctype: fix typo in previous commit
8163         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
8164         Reported by Ludovic Courtès.
8165
8166 2010-09-02  Jim Meyering  <meyering@redhat.com>
8167
8168         test-update-copyright.sh: skip test if Perl is too old
8169         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
8170         Reported by Tom G. Christensen.
8171
8172 2010-09-02  Bruno Haible  <bruno@clisp.org>
8173
8174         wctype: Avoid compilation error on IRIX 6.5.30.
8175         * lib/wctype.in.h (iswblank): Declare with a replacement if
8176         REPLACE_ISWBLANK is set.
8177         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
8178         declared. Set REPLACE_ISWBLANK.
8179         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
8180         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
8181         * doc/posix-headers/wctype.texi: Likewise.
8182         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8183
8184 2010-09-01  Bruno Haible  <bruno@clisp.org>
8185
8186         New module 'socketlib'.
8187         * modules/socketlib: New file.
8188         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
8189         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
8190         * modules/sockets (Depends-on): Add socketlib.
8191         Suggested by Sam Steingold <sds@gnu.org>.
8192
8193 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8194
8195         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
8196
8197         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
8198         when one needs search access to a directory but not read access.
8199         On systems where it is available, it works in some cases where
8200         O_RDONLY does not, namely on directories that are searchable but
8201         not readable, and which need only to be searchable.  If O_SEARCH
8202         is not available, fall back to the traditional method of using
8203         O_RDONLY.
8204
8205         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
8206         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
8207         when opening a directory that needs only to be searchable.
8208         * lib/chdir-safer.c (chdir_no_follow): Likewise.
8209         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
8210         * lib/openat-proc.c (openat_proc_name): Likewise.
8211         * lib/openat.c (openat_needs_fchdir): Likewise.
8212         * lib/save-cwd.c (save_cwd): Likewise.
8213         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
8214
8215 2010-08-28  Bruno Haible  <bruno@clisp.org>
8216
8217         New module 'host-cpu-c-abi'.
8218         * modules/host-cpu-c-abi: New file.
8219         * m4/host-cpu-c-abi.m4: New file, based on part of
8220         clisp/src/m4/general.m4.
8221         Requested by Sam Steingold <sds@gnu.org>.
8222
8223 2010-08-31  Eric Blake  <eblake@redhat.com>
8224         and Jim Meyering  <meyering@redhat.com>
8225
8226         hash: factor, and guard against misbehaving hasher function
8227         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
8228         of table->hasher's return value.  Also protect against a hash value
8229         so large that adding it to table->bucket results in a NULL pointer.
8230         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
8231         Use it in place of open-coded check-and-abort.
8232
8233 2010-08-30  Bruno Haible  <bruno@clisp.org>
8234
8235         hash: silence spurious clang warning
8236         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
8237         Reported by Eric Blake.
8238
8239 2010-08-30  Eric Blake  <eblake@redhat.com>
8240
8241         strstr, memmem, strcasestr: avoid leaked shell message
8242         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
8243         FreeBSD.
8244         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8245         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8246
8247         tests: silence clang warning
8248         * tests/test-malloca.c (do_allocation): Avoid dead store.
8249
8250 2010-08-29  Bruno Haible  <bruno@clisp.org>
8251
8252         gettext: Fix recent mistake.
8253         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
8254
8255 2010-08-29  Bruno Haible  <bruno@clisp.org>
8256
8257         selinux-h: Offer a --without-selinux option.
8258         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
8259         --without-selinux was specified, skip all tests and define
8260         HAVE_SELINUX_SELINUX_H to 0.
8261         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
8262         set LIB_SELINUX to empty.
8263         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
8264         gl_LIBSELINUX. If --without-selinux was specified, replace
8265         selinux/context.h.
8266         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
8267
8268 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8269             Bruno Haible  <bruno@clisp.org>
8270
8271         Make the module 'realloc-gnu' work again on AIX and OSF/1.
8272         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
8273         of HAVE_REALLOC.
8274         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
8275         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
8276         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
8277         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8278
8279 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8280             Bruno Haible  <bruno@clisp.org>
8281
8282         Make the module 'calloc-gnu' work again on AIX and OSF/1.
8283         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
8284         HAVE_CALLOC.
8285         * lib/xmalloc.c: Update accordingly.
8286         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
8287         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
8288         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
8289
8290 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8291             Bruno Haible  <bruno@clisp.org>
8292
8293         Make the module 'malloc-gnu' work again on AIX and OSF/1.
8294         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
8295         HAVE_MALLOC.
8296         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
8297         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
8298         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8299
8300 2010-08-29  Bruno Haible  <bruno@clisp.org>
8301
8302         Update modules list.
8303         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
8304         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
8305         (String handling <string.h>): Add astrxfrm.
8306         (File system functions): Add readlinkat.
8307
8308 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8309
8310         Tests for module 'realloc-gnu'.
8311         * modules/realloc-gnu-tests: New file.
8312         * tests/test-realloc-gnu.c: New file.
8313
8314         Tests for module 'calloc-gnu'.
8315         * modules/calloc-gnu-tests: New file.
8316         * tests/test-calloc-gnu.c: New file.
8317
8318         Tests for module 'malloc-gnu'.
8319         * modules/malloc-gnu-tests: New file.
8320         * tests/test-malloc-gnu.c: New file.
8321
8322 2010-08-28  Bruno Haible  <bruno@clisp.org>
8323
8324         Rename module 'realloc' -> 'realloc-gnu'.
8325         * modules/realloc-gnu: New file, copied from modules/realloc.
8326         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
8327         obsolete.
8328         * modules/mgetgroups (Depends-on): Update.
8329         * doc/posix-functions/realloc.texi: Update.
8330         * NEWS: Mention the change.
8331
8332         Rename module 'calloc' -> 'calloc-gnu'.
8333         * modules/calloc-gnu: New file, copied from modules/calloc.
8334         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
8335         obsolete.
8336         * doc/posix-functions/calloc.texi: Update.
8337         * NEWS: Mention the change.
8338
8339         Rename module 'malloc' -> 'malloc-gnu'.
8340         * modules/malloc-gnu: New file, copied from modules/malloc.
8341         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
8342         obsolete.
8343         * modules/argp (Depends-on): Update.
8344         * modules/regex (Depends-on): Update.
8345         * doc/posix-functions/malloc.texi: Update.
8346         * NEWS: Mention the change.
8347
8348 2010-08-28  Eric Blake  <eblake@redhat.com>
8349
8350         pread, pwrite: add missing dependency
8351         * modules/pread (Depends-on): Add extensions.
8352         * modules/pwrite (Depends-on): Likewise.
8353
8354 2010-08-28  Bruno Haible  <bruno@clisp.org>
8355
8356         unistr/u*-strchr: Fix tests dependencies.
8357         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
8358         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
8359         Reported by Ian Beckwith <ianb@erislabs.net>.
8360
8361 2010-08-28  Bruno Haible  <bruno@clisp.org>
8362
8363         read-file: Don't occupy too much unused memory.
8364         * lib/read-file.c (fread_file): Shrink the buffer at the end.
8365
8366 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
8367             Eric Blake  <eblake@redhat.com>
8368             Bruno Haible  <bruno@clisp.org>
8369
8370         read-file: Avoid memory reallocations with regular files.
8371         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
8372         (fread_file): With regular files, use the remaining length as the
8373         initial buffer size.  Check against overflow.
8374         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
8375         sys_stat.
8376
8377 2010-08-28  Bruno Haible  <bruno@clisp.org>
8378
8379         ftello: Relax license.
8380         * modules/ftello (License): Relax to LGPLv2+.
8381         Reported by Eric Blake.
8382
8383 2010-08-28  Bruno Haible  <bruno@clisp.org>
8384
8385         Avoid relocwrapper link errors due to gnulib replacement functions.
8386         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
8387         function.
8388         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8389
8390 2010-08-28  Bruno Haible  <bruno@clisp.org>
8391
8392         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
8393         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
8394         defined.
8395         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
8396         Suggested by Eric Blake.
8397
8398 2010-08-28  Bruno Haible  <bruno@clisp.org>
8399
8400         sys_socket, netdb: Ensure socklen_t gets defined.
8401         * modules/sys_socket (Depends-on): Add socklen.
8402         * modules/netdb (Depends-on): Likewise.
8403         * modules/getaddrinfo (Depends-on): Remove socklen.
8404         * modules/getsockopt (Depends-on): Likewise.
8405         * modules/setsockopt (Depends-on): Likewise.
8406         * tests/test-sys_socket.c: Check that socklen_t is defined.
8407         * tests/test-netdb.c: Likewise.
8408         * m4/socklen.m4: Update comments.
8409         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8410
8411 2010-08-27  Eric Blake  <eblake@redhat.com>
8412
8413         login_tty: add missing dependency
8414         * modules/login_tty (Depends-on): Add pty.
8415
8416 2010-08-26  Eric Blake  <eblake@redhat.com>
8417
8418         lib-symbol-versions: fix m4 quoting
8419         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
8420         format for AC_LINK_IFELSE.
8421
8422         glob: fix compile test
8423         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
8424
8425         btowc: fix missing file
8426         * modules/btowc (Files): Also ship locale-fr.m4.
8427
8428         lseek: fix link test
8429         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
8430         AC_LINK_IFELSE.
8431
8432         include_next: silence autoconf 2.68 warning
8433         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
8434         AC_COMPILE_IFELSE as special.
8435         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
8436         autoconf < 2.68.
8437
8438         acl: fix compilation test
8439         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
8440         AC_COMPILE_IFELSE.
8441
8442 2010-08-26  Bruno Haible  <bruno@clisp.org>
8443
8444         Modernize AC_TRY_RUN invocations.
8445         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
8446         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8447         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
8448         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
8449         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
8450         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8451         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8452         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8453         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8454         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8455         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8456         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8457         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8458         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8459         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8460         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8461         gl_MBRLEN_NUL_RETVAL): Likewise.
8462         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8463         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
8464         Likewise.
8465         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8466         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8467         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8468         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8469         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
8470         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
8471         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
8472         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
8473         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
8474         Likewise.
8475         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
8476         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
8477         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8478         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8479         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8480         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8481         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8482         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
8483         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8484         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8485
8486 2010-08-26  Bruno Haible  <bruno@clisp.org>
8487
8488         Modernize AC_TRY_LINK invocations.
8489         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
8490         AC_TRY_LINK.
8491         * m4/argp.m4 (gl_ARGP): Likewise.
8492         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8493         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8494         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
8495         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8496         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8497         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
8498         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8499         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8500         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8501         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
8502         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8503         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
8504         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
8505         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8506         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
8507         * m4/hostent.m4 (gl_HOSTENT): Likewise.
8508         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8509         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
8510         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
8511         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
8512         Likewise.
8513         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
8514         Likewise.
8515         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
8516         Likewise.
8517         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
8518         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
8519         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
8520         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8521         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8522         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
8523         * m4/servent.m4 (gl_SERVENT): Likewise.
8524         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8525         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8526         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8527         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8528         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8529         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8530         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8531         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8532         * modules/tsearch-tests (configure.ac): Likewise.
8533
8534 2010-08-26  Bruno Haible  <bruno@clisp.org>
8535
8536         Modernize AC_TRY_COMPILE invocations.
8537         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
8538         AC_TRY_COMPILE.
8539         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
8540         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
8541         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
8542         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
8543         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
8544         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
8545         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8546         * m4/lock.m4 (gl_LOCK): Likewise.
8547         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
8548         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8549         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
8550         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
8551         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
8552         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
8553         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
8554         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
8555         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
8556         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
8557         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
8558         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8559         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
8560         extraneous semicolon.
8561
8562 2010-08-26  Jim Meyering  <meyering@redhat.com>
8563
8564         stat-time: relax license LGPL
8565         * modules/stat-time (License): Change from GPL to LGPL,
8566         with consent from all contributors, for use in libguile.
8567         Requested by Ludovic Courtès.
8568
8569 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
8570
8571         poll: return immediately on POLLHUP.
8572         * lib/poll.c (poll): Always set timeout before wait_timeout is
8573         computed.
8574
8575 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8576
8577         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
8578         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
8579         rmdir ("dir/.//"), unlinkat.
8580
8581 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8582
8583         stdbool: avoid spurious failure with modern xlc
8584         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8585
8586 2010-08-24  Bruno Haible  <bruno@clisp.org>
8587
8588         getloadavg: simplify code
8589         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
8590         gl_have_func. Update comments.
8591
8592 2010-08-24  Eric Blake  <eblake@redhat.com>
8593
8594         getloadavg: don't define SVR4 on cygwin
8595         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
8596         only define SVR4 when -lkvm is required.
8597         Reported by Yaakov Selkowitz.
8598
8599 2010-08-24  Bruno Haible  <bruno@clisp.org>
8600
8601         priv-set: fix comment
8602         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
8603
8604 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
8605
8606         priv-set: fix comments
8607         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
8608         to match code, as suggested by David Bartley in:
8609         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
8610
8611 2010-08-23  Eric Blake  <eblake@redhat.com>
8612
8613         stdbool: avoid rejecting clang
8614         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8615         * tests/test-stdbool.c: Enable more tests if using the system
8616         <stdbool.h> instead of the gnulib replacement.
8617         (main): Move xlc bug test to a runtime test for all compilers.
8618         Reported by Anders Kaseorg.
8619
8620         argz: fix shell quoting issue
8621         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
8622         Reported by Charles Wilson.
8623
8624 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
8625             Erik Faye-Lund <kusmabite@gmail.com>
8626
8627         poll, select: handle ERROR_BROKEN_PIPE.
8628         * lib/poll.c (win32_compute_revents): Return POLLHUP when
8629         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8630         * lib/select.c (win32_compute_revents): Do not mark a pipe
8631         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8632
8633 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
8634
8635         fts: allow compilation with C++
8636         * lib/fts_.h: Specify extern "C" linkage with C++.
8637
8638 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8639
8640         Fix gnulib-tool sed script de-commentation for AIX sed.
8641         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
8642         sed.
8643
8644 2010-08-17  Eric Blake  <eblake@redhat.com>
8645
8646         test-stddef: test for (some) offsetof bugs
8647         * tests/test-stddef.c: Enhance test to ensure correct type of
8648         offsetof.
8649         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
8650         that we are not fixing at this time.
8651
8652 2010-08-15  Bruno Haible  <bruno@clisp.org>
8653
8654         stpncpy: Allow stpncpy to be defined as a macro.
8655         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
8656         if it's already correctly declared.
8657         * lib/string.in.h (stpncpy): Undefine before redefining.
8658         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
8659
8660 2010-08-14  Bruno Haible  <bruno@clisp.org>
8661
8662         Rename module 'memxfrm' to 'amemxfrm'.
8663         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
8664         (amemxfrm): Renamed from memxfrm.
8665         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
8666         (amemxfrm): Renamed from memxfrm.
8667         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
8668         * NEWS: Mention the change.
8669         * MODULES.html.sh (String handling <string.h>): Update.
8670         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
8671         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
8672         * lib/unicase/u16-casexfrm.c: Likewise.
8673         * lib/unicase/u32-casexfrm.c: Likewise.
8674         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
8675         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
8676         * lib/uninorm/u16-normxfrm.c: Likewise.
8677         * lib/uninorm/u32-normxfrm.c: Likewise.
8678         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
8679         memxfrm.
8680         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
8681         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
8682         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
8683         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
8684         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
8685         Suggested by Paul Eggert.
8686
8687 2010-08-14  Bruno Haible  <bruno@clisp.org>
8688
8689         Tests for module 'astrxfrm'.
8690         * modules/astrxfrm-tests: New file.
8691         * tests/test-astrxfrm.c: New file.
8692
8693         New module 'astrxfrm'.
8694         * lib/astrxfrm.h: New file.
8695         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
8696         * modules/astrxfrm: New file.
8697
8698 2010-08-14  Reuben Thomas <rrt@sc3d.org>
8699
8700         regex: Tweak doc.
8701         * doc/regex.texi (Overview): Don't mention regex.c.
8702         (GNU Regular Expression Compiling): Likewise.
8703         (Match-end-of-line Operator): Mention 'not_eol'.
8704
8705 2010-08-14  Brian Gough  <bjg@gnu.org>
8706             Bruno Haible  <bruno@clisp.org>
8707
8708         git-merge-changelog: add doc relating to use with bzr and hg.
8709         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
8710
8711 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
8712
8713         pthread: fix pthread.h creation for srcdir != builddir
8714         * modules/pthread (Makefile.am): Fix the rule to work also in a
8715         non-srcdir build.
8716
8717 2010-08-13  Karl Berry  <karl@gnu.org>
8718
8719         * doc/regex.texi (Predefined Syntaxes): @smallexample.
8720         * doc/posix-*/*: force line break before @url of POSIX
8721         specifications.
8722         Suggested by Werner Lemberg.
8723
8724 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8725
8726         strtod: fix const diagnostic
8727         * lib/strtod.c (strtod): Don't assign const char * to char *,
8728         as this elicits a warning from GCC when warnings are enabled.
8729
8730 2010-08-10  Pádraig Brady <P@draigbrady.com>
8731         and Eric Blake  <eblake@redhat.com>
8732
8733         copy-acl: ignore ENOTSUP on HP-UX
8734         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
8735         so that it is available for HP-UX.
8736         * lib/copy-acl.c (qcopy_acl): Use it.
8737         Reported by Patrick M. Callahan.
8738
8739 2010-08-10  Eric Blake  <eblake@redhat.com>
8740
8741         open, chown: relax license
8742         * modules/open (License): Change to LGPLv2+, with consent by all
8743         authors, for use in augeas.
8744         * modules/chown (License): Likewise.
8745         * modules/lchown (Likewise): Likewise.
8746         Requested by Adam Stokes.
8747
8748 2010-08-09  Karl Berry  <karl@gnu.org>
8749
8750         * build-aux/ar-lib: new file, import from Automake.
8751         * config/srclist.txt: autocheck for updates.
8752
8753 2010-08-09  Eric Blake  <eblake@redhat.com>
8754
8755         readlinkat: adjust client modules
8756         * modules/areadlinkat (Depends-on): Use readlinkat, not
8757         symlinkat.
8758         * modules/areadlinkat-with-size (Depends-on): Likewise.
8759
8760         mknod: be more vocal about danger of running tests as root
8761         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
8762         root, since that is just asking for problems.
8763         Suggested by Bruno Haible, based on a report by Rainer Tammer.
8764
8765         readlinkat: split into its own module
8766         * modules/symlinkat: Split readlinkat...
8767         * modules/readlinkat: ...into separate module.
8768         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
8769         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
8770         * lib/symlinkat.c (readlinkat): Move...
8771         * lib/readlinkat.c: ...into new file.
8772         * modules/symlinkat-tests: Split readlinkat test...
8773         * modules/readlinkat-tests: ...into separate module.
8774         * tests/test-symlinkat.c: Split...
8775         * tests/test-readlinkat.c: ...into new file.
8776         * NEWS: Document the split.
8777         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8778         * lib/unistd.in.h (readlinkat): Likewise.
8779         Suggested by Bruno Haible.
8780
8781 2010-08-08  Bruno Haible  <bruno@clisp.org>
8782
8783         memxfrm: Speed up.
8784         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
8785         that usually only one call to strxfrm is necessary for each string
8786         part.
8787         Reported by Paul Eggert <eggert@cs.ucla.edu>.
8788
8789 2010-08-07  Karl Berry  <karl@gnu.org>
8790
8791         * doc/posix-headers/limits.texi,
8792         * doc/posix-functions/malloc.texi,
8793         * doc/posix-functions/strsignal.texi: missing @item.
8794         * doc/ld-version-script.texi: spurious leading i.
8795         * doc/regex.texi (Interval Operators): no commas inside @var.
8796
8797 2010-08-01  Bruno Haible  <bruno@clisp.org>
8798
8799         Integrate the regex documentation.
8800         * doc/gnulib.texi: Define 'cn' index.
8801         (Regular expressions): New a chapter that includes regex.texi and
8802         regexprops-generic.texi.
8803         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
8804         syntax.
8805
8806         Whitespace cleanup.
8807         * doc/regex.texi: Remove trailing spaces.
8808
8809         Add regex documentation.
8810         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
8811         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
8812         Written by Kathy A. Hargreaves and Karl Berry.
8813
8814 2010-08-01  Bruno Haible  <bruno@clisp.org>
8815
8816         link: Update documentation.
8817         * doc/posix-functions/link.texi: Update regarding Solaris.
8818
8819 2010-07-31  Bruno Haible  <bruno@clisp.org>
8820
8821         Update modules list.
8822         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
8823         (String handling <string.h>): Add memcmp2, memxfrm.
8824         (Container data structures): Add xlist, xsublist, xoset.
8825         (Core language properties): Add alignof, unused-parameter.
8826         (Process control, Numeric conversion functions <stdlib.h>): Renamed
8827         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
8828         (Unibyte characters <ctype.h>): New section.
8829         (String handling <string.h>): New section.
8830         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
8831         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
8832         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
8833         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
8834         tan, tanh, tanl, y0, y1, yn.
8835         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
8836         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
8837         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
8838         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
8839         unlockpt, vdprintf, vdprintf-posix.
8840         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
8841         (File system functions): Add concat-filename, sys_file, sys_ioctl,
8842         xconcat-filename.
8843         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
8844         getdtablesize, pipe2, pipe2-safer.
8845         (Security): New section.
8846         (Networking functions): Add accept4.
8847         (Signal handling): Add sigpipe.
8848         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
8849         mbmemcasecoll.
8850         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
8851         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
8852         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
8853         pipe-filter-ii.
8854         (Misc): Add argp-version-etc, login_tty, parse-duration.
8855
8856 2010-07-31  Bruno Haible  <bruno@clisp.org>
8857
8858         Improve doc in MODULES.html.
8859         * modules/linkat (Description): Add the word "function".
8860         * modules/mkfifo (Description): Likewise.
8861         * modules/mknod (Description): Likewise.
8862         * modules/remove (Description): Likewise.
8863         * modules/renameat (Description): Likewise.
8864         * modules/stat (Description): Likewise.
8865         * modules/symlink (Description): Likewise.
8866         * modules/unlink (Description): Likewise.
8867
8868 2010-07-31  Bruno Haible  <bruno@clisp.org>
8869
8870         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
8871         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
8872         option --enable/disable-c++ instead of --enable/disable-cxx.
8873         * NEWS: Mention the change.
8874
8875 2010-07-31  Bruno Haible  <bruno@clisp.org>
8876
8877         readlink, areadlink: Relax test a bit.
8878         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
8879         alternative to ENOTDIR.
8880         * tests/test-areadlink.h (test_areadlink): Likewise.
8881         Reported by Rainer Tammer.
8882
8883 2010-07-31  Bruno Haible  <bruno@clisp.org>
8884
8885         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
8886         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
8887         character, perform the search using U_STRCHR.
8888         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
8889         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
8890         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
8891         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
8892         Suggested by Paolo Bonzini.
8893
8894 2010-07-31  Bruno Haible  <bruno@clisp.org>
8895
8896         unistr/u*-strstr: Fix dependencies.
8897         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
8898         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
8899         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
8900
8901 2010-07-31  Bruno Haible  <bruno@clisp.org>
8902
8903         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
8904         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
8905         the beginning of the loop.
8906         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
8907         cases in 'switch' statement.
8908
8909         unistr/u8-strchr: Fix several bugs.
8910         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
8911         the string. When not found, return NULL, not a pointer near the end.
8912
8913         More tests for unistr/u8-strchr.
8914         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
8915         that the function does not read past the first occurrence of the byte
8916         being searched.
8917         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
8918         * tests/unistr/test-u16-strchr.c (main): New function.
8919         * tests/unistr/test-u32-strchr.c (main): New function.
8920
8921 2010-07-31  Bruno Haible  <bruno@clisp.org>
8922
8923         posix-modules: Ignore backup files of documentation files.
8924         * posix-modules: grep only through files named *.texi.
8925
8926 2010-07-31  Bruno Haible  <bruno@clisp.org>
8927
8928         symlinkat: Fix documentation.
8929         * doc/posix-functions/readlinkat.texi: Fix module name.
8930
8931 2010-07-31  Bruno Haible  <bruno@clisp.org>
8932
8933         fchownat: Replace also when chown has the trailing slash bug.
8934         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
8935         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
8936         introduced on 2010-04-10.
8937         Reported by Rainer Tammer.
8938
8939 2010-07-31  Bruno Haible  <bruno@clisp.org>
8940
8941         linkat: Work around AIX 7.1 bug.
8942         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
8943         whether linkat handles trailing slash correctly. If not, replace linkat
8944         and define LINKAT_TRAILING_SLASH_BUG.
8945         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
8946         check whether (fd1,file1) points to a directory if file1 or file2 ends
8947         in a slash. Code taken from lib/link.c.
8948         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
8949         Reported by Rainer Tammer.
8950
8951 2010-07-31  Bruno Haible  <bruno@clisp.org>
8952
8953         Correctly determine whether pow is available in libc on AIX 7 with xlc.
8954         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
8955         This disables an xlc optimization that was causing wrong test results.
8956         Reported by Rainer Tammer.
8957
8958 2010-07-31  Bruno Haible  <bruno@clisp.org>
8959
8960         iconv: Work around AIX 6.1..7.1 bug.
8961         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
8962         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
8963         cross-compiling, guess no on all versions of AIX.
8964         Reported by Rainer Tammer.
8965
8966 2010-07-31  Bruno Haible  <bruno@clisp.org>
8967
8968         readlink: Relax test a bit.
8969         * tests/test-readlink.h (test_readlink): Allow different errno value
8970         when readlink is called with a file name that ends in / and refers to
8971         a file.
8972         Suggested by Eric Blake.
8973         Reported by Rainer Tammer.
8974
8975 2010-07-31  Bruno Haible  <bruno@clisp.org>
8976
8977         copysign: Does not require -lm on glibc systems.
8978         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
8979         gl_COMMON_DOUBLE_MATHFUNC.
8980         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
8981
8982 2010-07-31  Bruno Haible  <bruno@clisp.org>
8983
8984         duplocale: Work around AIX 7.1 bug.
8985         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
8986         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
8987         * lib/duplocale.c (rpl_duplocale): Update comment.
8988         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
8989         Reported by Rainer Tammer.
8990
8991 2010-07-30  Bruno Haible  <bruno@clisp.org>
8992
8993         dirfd: Avoid link error on AIX 7.1.
8994         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
8995         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
8996         exist, set REPLACE_DIRFD.
8997         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
8998         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
8999         * doc/posix-functions/dirfd.texi: Update.
9000         Reported by Rainer Tammer.
9001
9002 2010-07-30  Eric Blake  <eblake@redhat.com>
9003
9004         strtod: next round of AIX fixes
9005         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
9006         exponent.
9007         * tests/test-strtod.c (main): Enhance tests.
9008         * doc/posix-functions/strtod.texi (strtod): Document next bug.
9009         Reported by Rainer Tammer.
9010
9011         futimens: fix configure check
9012         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
9013         Reported by Bruno Haible.
9014
9015 2010-07-30  Bruno Haible  <bruno@clisp.org>
9016
9017         getline: Update regarding AIX.
9018         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
9019         Reported by Rainer Tammer.
9020
9021 2010-07-30  Bruno Haible  <bruno@clisp.org>
9022
9023         wcwidth: Drop replacement on AIX 7.
9024         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
9025         AIX 7.
9026         Reported by Rainer Tammer.
9027
9028 2010-07-30  Bruno Haible  <bruno@clisp.org>
9029
9030         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
9031         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
9032         a 'char *'.
9033         Reported by Rainer Tammer.
9034
9035 2010-07-30  Bruno Haible  <bruno@clisp.org>
9036
9037         unlink: Update regarding AIX.
9038         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
9039         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
9040         Reported by Rainer Tammer.
9041
9042 2010-07-30  Bruno Haible  <bruno@clisp.org>
9043
9044         symlink: Update regarding AIX.
9045         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
9046         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
9047         Reported by Rainer Tammer.
9048
9049 2010-07-30  Bruno Haible  <bruno@clisp.org>
9050
9051         strndup: Update regarding AIX.
9052         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
9053         AIX 7.
9054         Reported by Rainer Tammer.
9055
9056 2010-07-30  Bruno Haible  <bruno@clisp.org>
9057
9058         stat: Update regarding AIX.
9059         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
9060         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
9061         Reported by Rainer Tammer.
9062
9063 2010-07-30  Bruno Haible  <bruno@clisp.org>
9064
9065         truncl: Fix autoconf test.
9066         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
9067         whether truncl works.
9068         Reported by Rainer Tammer.
9069
9070 2010-07-30  Bruno Haible  <bruno@clisp.org>
9071
9072         round: Update regarding AIX.
9073         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
9074         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
9075         Reported by Rainer Tammer.
9076
9077 2010-07-30  Bruno Haible  <bruno@clisp.org>
9078
9079         rename: Update regarding AIX.
9080         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
9081         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
9082         Reported by Rainer Tammer.
9083
9084 2010-07-30  Bruno Haible  <bruno@clisp.org>
9085
9086         printf.m4: Update regarding AIX.
9087         * m4/printf.m4: Update comments regarding AIX.
9088         Reported by Rainer Tammer.
9089
9090 2010-07-30  Bruno Haible  <bruno@clisp.org>
9091
9092         iconv: Update regarding AIX.
9093         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
9094         AIX 7.
9095         Reported by Rainer Tammer.
9096
9097 2010-07-30  Bruno Haible  <bruno@clisp.org>
9098
9099         getopt: Update regarding AIX.
9100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
9101         no on AIX.
9102         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
9103         Reported by Rainer Tammer.
9104
9105 2010-07-30  Bruno Haible  <bruno@clisp.org>
9106
9107         ldexpl; Update regarding AIX.
9108         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
9109         on AIX 7.
9110         Reported by Rainer Tammer.
9111
9112 2010-07-30  Bruno Haible  <bruno@clisp.org>
9113
9114         frexpl: Update regarding AIX.
9115         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
9116         on AIX 7.
9117         Reported by Rainer Tammer.
9118
9119 2010-07-30  Bruno Haible  <bruno@clisp.org>
9120
9121         open, fopen: Update regarding AIX.
9122         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
9123         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9124         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
9125         * doc/posix-functions/fopen.texi: Likewise.
9126         Reported by Rainer Tammer.
9127
9128 2010-07-30  Bruno Haible  <bruno@clisp.org>
9129
9130         chown: Update doc regarding AIX.
9131         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
9132         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
9133         Reported by Rainer Tammer.
9134
9135 2010-07-30  Eric Blake  <eblake@redhat.com>
9136
9137         strtod: fix bug in replacement function on AIX
9138         * lib/strtod.c (strtod): Special case broken "0x" parse in
9139         underlying strtod.
9140         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
9141         * doc/posix-functions/strtod.texi (strtod): Likewise.
9142         Reported by Rainer Tammer.
9143
9144 2010-07-30  Bruno Haible  <bruno@clisp.org>
9145
9146         mbrlen: Fix cross-compilation guess for AIX.
9147         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
9148         guess. Leftover from 2008-12-22.
9149
9150 2010-07-30  Bruno Haible  <bruno@clisp.org>
9151
9152         mbrtowc: Fix cross-compilation guess for AIX.
9153         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
9154         guess. Leftover from 2008-12-21.
9155
9156 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
9157
9158         init.sh: work around trap limitation of some shells
9159         * tests/init.sh (setup_): Move exit trap outside of shell function.
9160
9161 2010-07-29  Eric Blake  <eblake@redhat.com>
9162
9163         strtod: aid debugging
9164         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
9165         understanding why strtod is rejected.
9166
9167 2010-07-28  Bruno Haible  <bruno@clisp.org>
9168
9169         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
9170         * lib/unistr/u8-chr.c: Include <string.h>.
9171         * tests/unistr/test-u8-chr.c: Likewise.
9172         * tests/unistr/test-u16-chr.c: Likewise.
9173         * tests/unistr/test-u32-chr.c: Likewise.
9174         * tests/unistr/test-u8-strchr.c: Likewise.
9175         * tests/unistr/test-u16-strchr.c: Likewise.
9176         * tests/unistr/test-u32-strchr.c: Likewise.
9177         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
9178         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
9179         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
9180         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
9181
9182 2010-07-28  Bruno Haible  <bruno@clisp.org>
9183
9184         Use spaces for indentation, not tabs.
9185         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
9186
9187 2010-07-27  Bruno Haible  <bruno@clisp.org>
9188
9189         mbspcasecmp: Fix function specification.
9190         * lib/string.in.h (mbspcasecmp): Fix specification comment.
9191         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
9192         Reported by Eric Blake <eblake@redhat.com>.
9193
9194 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
9195
9196         timespec: use cast and not conditional, as truncation isn't possible
9197         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
9198         instead of a conditional.  Comment about the situation in more detail.
9199         This undoes most of the 2009-10-29 patch.
9200
9201 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
9202
9203         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
9204         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
9205         * lib/unistr/u8-strchr.c: Likewise.
9206         * modules/unistr/u8-chr: Depend on memchr.
9207
9208         unistr/u*-strchr: add tests
9209         * modules/unistr/u8-strchr-tests: New file.
9210         * modules/unistr/u16-strchr-tests: New file.
9211         * modules/unistr/u32-strchr-tests: New file.
9212         * tests/unistr/test-strchr.h: New file.
9213         * tests/unistr/test-u8-strchr.c: New file.
9214         * tests/unistr/test-u16-strchr.c: New file.
9215         * tests/unistr/test-u32-strchr.c: New file.
9216
9217         unistr/u*-chr: test multibyte sequences more
9218         * tests/unistr/test-chr.h: Do complete testing of the characters in the
9219         test vector.
9220         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
9221         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
9222         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
9223
9224         unistr/u*-chr: test multibyte sequences
9225         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
9226
9227         unistr/u*-chr: prepare for multibyte tests
9228         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
9229         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
9230         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
9231         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
9232         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
9233         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
9234
9235 2010-07-18  Bruno Haible  <bruno@clisp.org>
9236
9237         unistr/u8-strchr: Optimize non-ASCII argument case.
9238         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
9239         because the first byte often matches anyway.
9240         Reported by Pádraig Brady <P@draigbrady.com>.
9241
9242 2010-07-15  Karl Berry  <karl@gnu.org>
9243
9244         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
9245
9246 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
9247
9248         getcwd: on Solaris, work better if ancestors are inaccessible
9249         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
9250         buffer and size, try again with a large buffer.  This works better
9251         on Solaris, since its getcwd succeeds even if the path to the root
9252         is inaccessible, and this is helpful in common cases such as .zfs
9253         hidden directories.  Problem reported by J Chapman Flack in
9254         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
9255         Use system getcwd if it's declared, not merely if it's partly
9256         working; use the partly-working test only to avoid needless effort
9257         if the system getcwd fails.
9258         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
9259         comment that was already obsolete and is now even more obsolete.
9260         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
9261         now might call strdup.
9262
9263 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
9264
9265         pthread: Add enough so that coreutils/src/sort.c compiles.
9266         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
9267         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
9268         gnulib. Include <sched.h> and <time.h>, as per POSIX.
9269         Include <sys/types.h>, in case it defines pthread_t.
9270         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
9271         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
9272         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
9273         (pthread_rwlockattr_t, pthread_spinlock_t):
9274         New typedefs, if HAVE_PTHREAD_T is not defined.
9275         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
9276         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
9277         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
9278         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
9279         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
9280         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
9281         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
9282         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
9283         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
9284         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
9285         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
9286         New macros.
9287         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
9288         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
9289         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
9290         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
9291         (pthread_spin_unlock): New dummy functions.
9292         (pthread_create): Return EAGAIN; don't set errno.
9293         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
9294         require AC_C_INLINE.
9295         * modules/pthread (Depends-on): Add sched, time.
9296         (pthread.h): Use AM_V_GEN.
9297
9298 2010-07-13  Bruno Haible  <bruno@clisp.org>
9299
9300         striconveh: Don't malloc memory if the result buffer is sufficient.
9301         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
9302         buffer if its size is sufficient.
9303         Reported by Ludovic Courtès <ludo@gnu.org>.
9304
9305 2010-07-13  Bruno Haible  <bruno@clisp.org>
9306
9307         strtod: Add safety check.
9308         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
9309
9310 2010-07-12  Bruno Haible  <bruno@clisp.org>
9311
9312         Unify tests that set gl_cv_func_ldexpl_no_libm.
9313         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
9314         gl_FUNC_LDEXPL.
9315         (gl_FUNC_LDEXPL): Invoke it.
9316         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9317
9318 2010-07-12  Bruno Haible  <bruno@clisp.org>
9319
9320         Unify tests that set gl_cv_func_ldexp_no_libm.
9321         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
9322         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
9323         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
9324         (configure.ac): Simply invoke gl_FUNC_LDEXP.
9325         * modules/strtod (Files): Add m4/ldexp.m4.
9326
9327 2010-07-12  Bruno Haible  <bruno@clisp.org>
9328
9329         Unify tests that set gl_cv_func_frexpl_no_libm.
9330         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
9331         gl_FUNC_FREXPL_NO_LIBM.
9332         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
9333         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9334
9335 2010-07-12  Bruno Haible  <bruno@clisp.org>
9336
9337         Unify tests that set gl_cv_func_frexp_no_libm.
9338         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
9339         gl_FUNC_FREXP_NO_LIBM.
9340         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
9341         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9342
9343 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9344
9345         memcoll: clarify sizes versus lengths, document better, and tweak perf
9346         * lib/memcoll.c (strcoll_loop, memcoll0):
9347         Improve quality of descriptive comments.  Name variables
9348         consistently as to whether they are lengths (which do not include
9349         terminating null) versus sizes (which do).
9350         * lib/xmemcoll.c (xmemcoll0): Likewise.
9351         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
9352         returned when s1size == 0; this is easier to compile and saves
9353         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
9354
9355 2010-07-12  Bruno Haible  <bruno@clisp.org>
9356
9357         Tests for module '_Exit'.
9358         * modules/_Exit-tests: New file.
9359         * tests/test-_Exit.sh: New file.
9360         * tests/test-_Exit.c: New file.
9361
9362         New module '_Exit'.
9363         * lib/stdlib.in.h (__attribute__): New macro.
9364         (_Exit): New declaration.
9365         * lib/_Exit.c: New file.
9366         * m4/_Exit.m4: New file.
9367         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
9368         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
9369         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
9370         * modules/_Exit: New file.
9371         * tests/test-stdlib-c++.cc (_Exit): Check signature.
9372         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
9373
9374 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9375
9376         strtod: make it more-accurate typically, and don't require libm
9377         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
9378         Include limits.h.  Don't include string.h.
9379         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
9380         (locale_isspace): New function, so that no casts are needed to
9381         check whether *s is a space.
9382         (ldexp): Provide an unused dummy if not available.
9383         (scale_radix_exp, parse_number, underlying_strtod): New functions.
9384         (strtod): Use them.  This implementation prefers to use the
9385         underlying strtod if available, falling back on our own code
9386         only to fix known bugs.  This is more likely to produce an
9387         accurate result.  Also, it avoids the use of libm functions.
9388         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
9389         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
9390         was absent, but it caused a test failure with coreutils.
9391         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
9392         with libm.
9393         * modules/strtod (Makefile.am, Link): libm is no longer needed.
9394         * modules/strtod-tests (Makefile.am): Likewise.
9395
9396 2010-07-11  Pádraig Brady  <P@draigBrady.com>
9397             Bruno Haible  <bruno@clisp.org>
9398
9399         unistr/u8-strchr: Optimize ASCII argument case.
9400         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
9401
9402 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
9403
9404         (x)memcoll: minor tweaks
9405         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
9406         is after the type that it qualifies.
9407         (memcoll0): Likewise.
9408         * lib/memcoll.h (memcoll0): Likewise.
9409         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
9410         * lib/xmemcoll.h (xmemcoll0): Likewise.
9411         * lib/memcoll.c (memcoll0): Correct the comment.  This function
9412         differs from memcoll in that the NUL byte is part of the argument.
9413         Omit the abort-checks, as performance is a real issue here.  Plus,
9414         the checks were wrong anyway (an off-by-one error).  Omit local
9415         variable 'diff', as it's a bit clearer that way.
9416         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
9417         no longer needed.
9418
9419 2010-07-08  Chen Guo <chenguo4@yahoo.com>
9420
9421         (x)memcoll: speedup when input is known to be NUL delimited
9422         * lib/memcoll.c: Include stdlib.
9423         (memcoll0) New function.
9424         (strcoll_loop) New function, refactored for use in both memcoll
9425         and memcoll0.
9426         * lib/memcoll.h: Add prototype for memcoll0.
9427         * lib/xmemcoll.c: (xmemcoll0) New function.
9428         (collate_error) New function, refactored for use in both xmemcoll
9429         and xmemcoll0.
9430         * lib/xmemcoll.h: Add prototype for xmemcoll0.
9431         * m4/memcoll.m4: add inline invocation.
9432
9433 2010-07-06  Pádraig Brady  <P@draigBrady.com>
9434
9435         * build-aux/bootstrap: Remove any local translations
9436         from the translation project synchronization directory,
9437         so that local only translations are not distributed.
9438
9439 2010-07-04  Bruno Haible  <bruno@clisp.org>
9440
9441         fsusage: Clarify which code applies to which platforms.
9442         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
9443         platform.
9444         * lib/fsusage.c (get_fs_usage): Likewise.
9445
9446 2010-07-04  Bruno Haible  <bruno@clisp.org>
9447
9448         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
9449         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
9450         Reported by Martin Lambers <marlam@marlam.de>.
9451
9452 2010-07-04  Jim Meyering  <meyering@redhat.com>
9453
9454         hash: once again explicitly disallow insertion of NULL
9455         * lib/hash.c (hash_insert0): Reinstate just-removed test:
9456         inserting a NULL pointer cannot work with these functions.
9457         Add a comment with details.
9458         This reverts part of the 2010-07-01 commit, 5bef1a35
9459         "hash: extend module to deal with non-pointer keys".
9460
9461 2010-07-01  Bruno Haible  <bruno@clisp.org>
9462
9463         stdbool: Update doc.
9464         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
9465         Info from Christian Weisgerber <naddy@mips.inka.de>.
9466
9467 2010-07-01  Jim Meyering  <meyering@redhat.com>
9468
9469         hash: extend module to deal with non-pointer keys
9470         * lib/hash.c (hash_insert0): New interface, much like hash_insert
9471         but that allows insertion of non-pointer entries.
9472         Do not disallow an ENTRY value of NULL.
9473         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
9474         * lib/hash.h (hash_insert0): Declare.
9475
9476 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9477
9478         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
9479         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
9480         not present (i.e. with autoconf 2.59 and when using gettextize, not
9481         gnulib), require AC_GNU_SOURCE instead.
9482
9483 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
9484
9485         idpriv-drop: Fix tests.
9486         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
9487         not to the test-idpriv-droptemp program.
9488
9489 2010-06-29  Bruno Haible  <bruno@clisp.org>
9490
9491         string: Fix syntax error with g++ 2.96.
9492         * lib/string.in.h (__pure__): Remove definition.
9493         (_GL_ATTRIBUTE_PURE): New macro.
9494         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
9495         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
9496         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9497
9498 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
9499
9500         unitypes: Fix bug introduced on 2010-05-18.
9501         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
9502
9503 2010-06-22  Eric Blake  <eblake@redhat.com>
9504
9505         memmem: slight optimization
9506         * lib/str-two-way.h (critical_factorization): Update comments.
9507         Reduce work during factorization phase.
9508         Reported by Carlos Bueno <carlos@bueno.org>.
9509
9510 2010-06-21  Bruno Haible  <bruno@clisp.org>
9511
9512         Fix HAVE_CALLOC_POSIX misnomer.
9513         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
9514         !HAVE_CALLOC_POSIX.
9515         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
9516         HAVE_CALLOC_POSIX.
9517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
9518         instead of HAVE_CALLOC_POSIX.
9519         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
9520         HAVE_CALLOC_POSIX.
9521
9522         Use modern idiom for calloc() replacement.
9523         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
9524         AC_FUNC_CALLOC.
9525         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
9526         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
9527         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9528         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
9529         (gl_REPLACE_CALLOC): New macro.
9530
9531 2010-06-21  Bruno Haible  <bruno@clisp.org>
9532
9533         Fix HAVE_REALLOC_POSIX misnomer.
9534         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
9535         !HAVE_REALLOC_POSIX.
9536         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
9537         HAVE_REALLOC_POSIX.
9538         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
9539         instead of HAVE_REALLOC_POSIX.
9540         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
9541         HAVE_REALLOC_POSIX.
9542
9543         Use modern idiom for realloc() replacement.
9544         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
9545         AC_FUNC_REALLOC.
9546         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
9547         Autoconf's AC_FUNC_REALLOC.
9548         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9549         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
9550         (gl_REPLACE_REALLOC): New macro.
9551         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9552
9553 2010-06-21  Bruno Haible  <bruno@clisp.org>
9554
9555         Fix HAVE_MALLOC_POSIX misnomer.
9556         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
9557         !HAVE_MALLOC_POSIX.
9558         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
9559         HAVE_MALLOC_POSIX.
9560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
9561         instead of HAVE_MALLOC_POSIX.
9562         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
9563         HAVE_MALLOC_POSIX.
9564
9565         Use modern idiom for malloc() replacement.
9566         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
9567         AC_FUNC_MALLOC.
9568         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
9569         Autoconf's AC_FUNC_MALLOC.
9570         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9571         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
9572         (gl_REPLACE_MALLOC): New macro.
9573         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9574
9575 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
9576
9577         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
9578         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
9579         This macro takes 3 arguments, not 4.
9580
9581 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
9582
9583         ipv6: fix detection under mingw
9584         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
9585         in6_addr.
9586
9587 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
9588
9589         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
9590         that strtod() works when cross-compiling to a glibc version known
9591         to work.
9592
9593 2010-06-15  Bruno Haible  <bruno@clisp.org>
9594
9595         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
9596
9597 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
9598
9599         select: Correct timeout.
9600         * lib/select.c (rpl_select): Compute wait_timeout correctly.
9601
9602 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9603
9604         git-version-gen: init shell var to avoid env var influence
9605         * build-aux/git-version-gen (v): Init shell var to empty.
9606
9607 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
9608
9609         priv-set: Don't assume that priv.h exists merely because getppriv does.
9610         See Jan Andersen's bug report about AIX 5L in
9611         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
9612         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
9613         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
9614         * lib/priv-set.h: Likewise.
9615         * tests/test-priv-set.c: Likewise.
9616
9617 2010-06-13  Bruno Haible  <bruno@clisp.org>
9618
9619         relocatable: Make it easier to test whether to install wrappers.
9620         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
9621         RELOCATABLE_VIA_WRAPPER.
9622
9623 2010-06-13  Bruno Haible  <bruno@clisp.org>
9624
9625         gnulib-tool: Display specified modules and dependencies differently.
9626         * gnulib-tool (func_show_module_list): New function.
9627         (func_import, func_create_testdir): Invoke it.
9628         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9629
9630 2010-06-13  Bruno Haible  <bruno@clisp.org>
9631
9632         gnulib-tool: Align code of func_import and func_create_testdir.
9633         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
9634         specified_modules.
9635
9636 2010-06-12  Jim Meyering  <meyering@redhat.com>
9637
9638         test-inttostr: avoid spurious failure on Solaris 9
9639         * tests/test-inttostr.c (main): Skip the test when snprintf fails
9640         to accept "%ju".  Reported by Bruno Haible.
9641
9642 2010-06-11  Jim Meyering  <meyering@redhat.com>
9643
9644         test-sys_socket: mark variables as used more readably
9645         * tests/test-sys_socket.c (main): Mark otherwise unused variables
9646         as "used" explicitly via (void) statement casts.  This is more
9647         readable than using them in an artificial return expression.
9648         Suggestion from Bruno Haible.
9649
9650 2010-06-11  Bruno Haible  <bruno@clisp.org>
9651
9652         Avoid some more warnings from "gcc -Wwrite-strings".
9653         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
9654         to 'const char *'.
9655         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
9656         * tests/test-c-strcasestr.c (main): Likewise.
9657         * tests/test-mbscasestr1.c (main): Likewise.
9658         * tests/test-mbscasestr2.c (main): Likewise.
9659         * tests/test-memmem.c (main): Likewise.
9660         * tests/test-strstr.c (main): Likewise.
9661         * tests/test-strcasestr.c (main): Likewise.
9662
9663 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9664
9665         init.sh: change framework_failure_ to fail with status 99, not 1
9666         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
9667         automake's parallel-tests rule that this is an unexpected failure,
9668         even if the test is listed in XFAIL_TESTS.
9669
9670 2010-06-11  Jim Meyering  <meyering@redhat.com>
9671
9672         test-inttostr: avoid warnings about 4-6KB literal strings
9673         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
9674         Include "macros.h", for its definition of ASSERT.
9675         (CK): s/assert/ASSERT/
9676         * modules/inttostr-tests (Files): Add macros.h.
9677
9678         init.sh: don't use $ME_ or skip_ before they are defined
9679         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
9680         their first uses.  Also hoist their companions: warn_, fail_,
9681         framework_failure_, $stderr_fileno.  Prompted by a patch from
9682         Stefano Lattarini.
9683
9684         test-sys_socket: avoid set-but-not-used warnings from gcc
9685         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
9686         avoid warning about set-but-not-used variables.
9687
9688         test-xvasprintf: avoid 'const' discard warnings
9689         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
9690         "const" when assigning from literal strings.
9691         (test_xasprintf): Add "void" in function argument list to placate
9692         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
9693
9694         tests: avoid compilation warnings in argmatch and exclude tests...
9695         in packages that define ARGMATCH_DIE_DECL, like coreutils.
9696         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
9697         Since it always exits, declare with the "noreturn" attribute.
9698         * tests/test-argmatch.c: Likewise.
9699
9700         tests: avoid 'const' discard warnings in mbsstr tests
9701         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
9702         * tests/test-mbsstr2.c (main): Likewise.
9703
9704         test-verify: avoid warning from gcc's -Wmissing-declarations
9705         * tests/test-verify.c (function): Declare to be static.
9706
9707         test-inttostr.c: include <string.h> for use of strcmp
9708         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
9709
9710         test-linkat: avoid failed assertion on "other" architectures
9711         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
9712         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
9713         sparc: https://bugs.launchpad.net/bugs/591968
9714
9715 2010-06-11  Jim Meyering  <meyering@redhat.com>
9716
9717         printf.m4: avoid autoconf's "Expanded Before Required" warning
9718         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
9719         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
9720         autoconf warning.
9721
9722 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
9723
9724         Replacement header templates are now named with ".in", not "_".
9725         * doc/gnulib-intro.texi: Correct.
9726
9727 2010-06-10  Jim Meyering  <meyering@redhat.com>
9728
9729         inttostr-tests: depend on snprintf, not snprintf-posix
9730         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
9731         snprintf-posix, to avoid this aclocal failure:
9732           missing file gnulib-tests/vasnprintf.c
9733           configure.ac:45: error: expected source file, required through \
9734           AC_LIBSOURCES, not found
9735
9736 2010-06-10  Jim Meyering  <meyering@redhat.com>
9737
9738         inttostr: add a new function, inttostr, and tests
9739         The namesake function was not available.  The existence of the
9740         template file, inttostr.c makes its addition nontrivial.
9741         * lib/anytostr.c: Rename from inttostr.c.
9742         (anytostr): Rename from inttostr.
9743         * lib/inttostr.c: New file.
9744         * modules/inttostr (Files): Add anytostr.c.
9745         (Makefile.am): Set lib_SOURCES instead of ...
9746         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
9747         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
9748         * lib/offtostr.c: Likewise.
9749         * lib/uinttostr.c: Likewise.
9750         * lib/umaxtostr.c: Likewise.
9751         * modules/inttostr-tests: New file.
9752         * tests/test-inttostr.c: New file.  Test these functions.
9753
9754 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
9755             Bruno Haible  <bruno@clisp.org>
9756
9757         Add "Extending Gnulib" chapter to manual.
9758         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
9759         chapter.
9760         (Extending Gnulib): New chapter.
9761         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
9762         chapter.
9763
9764 2010-06-09  Bruno Haible  <bruno@clisp.org>
9765
9766         Avoid relocwrapper link errors due to gnulib replacement functions.
9767         * lib/areadlink.c: Use the system's malloc, realloc functions.
9768         (areadlink): Set errno to ENOMEM explicitly.
9769         * modules/areadlink (Depends-on): Remove malloc-posix.
9770         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9771
9772 2010-06-09  Bruno Haible  <bruno@clisp.org>
9773
9774         Avoid relocwrapper link errors due to gnulib replacement functions.
9775         * lib/canonicalize-lgpl.c: Use the system's malloc function.
9776         * lib/malloca.c: Likewise.
9777         * lib/relocatable.c: Likewise.
9778         * lib/progreloc.c: Use the system's malloc, sprintf functions.
9779         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
9780         * lib/setenv.c: Use the system's malloc, realloc functions.
9781         * lib/strerror.c: Use the system's sprintf function.
9782         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9783
9784 2010-06-04  Bruno Haible  <bruno@clisp.org>
9785
9786         Prefer documented low-level autoconf macro names.
9787         * m4/lib-link.m4: Use m4_translit instead of translit.
9788         * m4/environ.m4: Likewise.
9789         * m4/mathfunc.m4: Likewise.
9790         * m4/onceonly.m4: Likewise.
9791         * m4/stdint.m4: Likewise.
9792         Suggested by Eric Blake.
9793
9794 2010-06-04  Martin Lambers  <marlam@marlam.de>
9795             Bruno Haible  <bruno@clisp.org>
9796
9797         havelib: Allow library names with '+' characters.
9798         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9799         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
9800
9801 2010-06-09  Bruno Haible  <bruno@clisp.org>
9802
9803         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
9804         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
9805         realloc failed.
9806
9807 2010-06-08  Peter Simons  <simons@cryp.to>
9808
9809         maint.mk: make the news-check rule more configurable
9810         * top/maint.mk (news-check-lines-spec) New variable.
9811         (news-check): Use "sed -n 1,10p" in place of "head".
9812
9813 2010-06-07  Jim Meyering  <meyering@redhat.com>
9814
9815         do-release-commit-and-tag: fix typo in --help
9816         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
9817
9818         regex: avoid new dead-code warning with gcc-4.6.0
9819         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
9820         if-block containing a while-loop.  It's been unused for at least
9821         5 years.
9822
9823 2010-06-05  Bruno Haible  <bruno@clisp.org>
9824
9825         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
9826         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
9827
9828 2010-06-04  Bruno Haible  <bruno@clisp.org>
9829
9830         Update to GNU gettext 0.18.1.
9831         * modules/gettext (configure.ac): Require gettext infrastructure from
9832         version 0.18.1.
9833
9834 2010-06-03  Bruno Haible  <bruno@clisp.org>
9835
9836         Don't use AC_LIBOBJ with file names in subdirectories.
9837         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
9838         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
9839         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
9840         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
9841         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
9842         gl_LIBUNISTRING_LIBSOURCE.
9843         (Makefile.am): Augment lib_SOURCES here, conditionally.
9844         * NEWS: Drop requirement for Automake option 'subdir-objects'.
9845
9846 2010-06-03  Bruno Haible  <bruno@clisp.org>
9847
9848         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
9849         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
9850         expansion does not end with a newline.
9851         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
9852         unnecessary newline.
9853
9854 2010-06-03  Bruno Haible  <bruno@clisp.org>
9855
9856         Reduce dependencies.
9857         * tests/test-quotearg.h: New file, extracted from
9858         tests/test-quotearg.c.
9859         * tests/test-quotearg-simple.c: New file, extracted from
9860         tests/test-quotearg.c.
9861         * tests/test-quotearg.c: Don't include <ctype.h>.
9862         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
9863         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
9864         use_quote_double_quotes, use_quotearg_colon): Moved to
9865         tests/test-quotearg.h.
9866         (results_g, flag_results, custom_quotes, custom_results): Moved
9867         to tests/test-quotearg-simple.c.
9868         (main): Moved the part that does not depend on gettext to
9869         tests/test-quotearg-simple.c. Return 77 if the test cannot be
9870         performed.
9871         * modules/quotearg-simple: New file.
9872         * modules/quotearg-simple-tests: New file.
9873         * modules/quotearg (Depends-on): Add quotearg-simple.
9874         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
9875         (Files): Add tests/test-quotearg.h.
9876         Reported by Paolo Bonzini.
9877
9878 2010-06-03  Bruno Haible  <bruno@clisp.org>
9879
9880         Reduce dependencies.
9881         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
9882
9883 2010-06-03  Bruno Haible  <bruno@clisp.org>
9884
9885         time: Undefine more broken macros.
9886         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
9887         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
9888         Reported by Eric Blake.
9889
9890 2010-06-03  Bruno Haible  <bruno@clisp.org>
9891
9892         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
9893         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
9894         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
9895         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
9896         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
9897         Reported by Ludovic Courtès <ludo@gnu.org>.
9898
9899 2010-06-02  Eric Blake  <eblake@redhat.com>
9900
9901         time: work with mingw + pthreads-win32 library
9902         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
9903         if timespec is defined only in pthread.h.
9904         * modules/time (Makefile.am): Substitute it.
9905         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
9906         <pthread.h>, when needed.
9907         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
9908         from the library.
9909
9910 2010-05-31  Bruno Haible  <bruno@clisp.org>
9911
9912         Avoid expanding two macros in the wrong order.
9913         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
9914         gl_LIBUNISTRING if it is defined.
9915         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
9916         autoconf >= 2.64.
9917         Reported by Ludovic Courtès <ludo@gnu.org>.
9918
9919 2010-05-27  Jim Meyering  <meyering@redhat.com>
9920
9921         maint.mk: also prohibit "#undef" of always-defined symbols
9922         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
9923         Allow more than one space before the symbol name.
9924         (sc_prohibit_always-defined_macros): Use grep's -E, now that
9925         the regexp uses alternation.
9926
9927 2010-05-26  Eric Blake  <eblake@redhat.com>
9928
9929         maint.mk: avoid echo -e
9930         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
9931         Convert all uses of echo -* to printf.
9932         Reported by Matthias Bolte.
9933
9934 2010-05-25  Bruno Haible  <bruno@clisp.org>
9935
9936         Update to GNU gettext 0.18, part 2.
9937         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
9938         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
9939
9940 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9941
9942         Add missing include in test-pwrite.c.
9943         * tests/test-pwrite.c: Include string.h, for strcmp.
9944
9945 2010-05-24  Bruno Haible  <bruno@clisp.org>
9946
9947         * NEWS: Mention requirement for Automake option 'subdir-objects'.
9948
9949 2010-05-24  Bruno Haible  <bruno@clisp.org>
9950
9951         Don't use conversion with transliteration in u{8,16,32}_strcoll.
9952         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
9953         iconveh_error argument.
9954         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
9955         U_STRCONV_TO_LOCALE.
9956         * lib/unistr/u16-strcoll.c: Likewise.
9957         * lib/unistr/u32-strcoll.c: Likewise.
9958         * modules/unistr/u8-strcoll (Depends-on): Add
9959         uniconv/u8-strconv-to-enc, localcharset. Remove
9960         uniconv/u8-strconv-to-locale.
9961         (configure.ac): Bump version number.
9962         * modules/unistr/u16-strcoll (Depends-on): Add
9963         uniconv/u16-strconv-to-enc, localcharset. Remove
9964         uniconv/u16-strconv-to-locale.
9965         (configure.ac): Bump version number.
9966         * modules/unistr/u32-strcoll (Depends-on): Add
9967         uniconv/u32-strconv-to-enc, localcharset. Remove
9968         uniconv/u32-strconv-to-locale.
9969         (configure.ac): Bump version number.
9970
9971 2010-05-24  Bruno Haible  <bruno@clisp.org>
9972
9973         Avoid a test failure on NetBSD 5.0.
9974         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
9975         an iconv() bug.
9976
9977 2010-05-24  Bruno Haible  <bruno@clisp.org>
9978
9979         Adjust #include directive style.
9980         * modules/regex (Includes): Recommend to write <regex.h>.
9981
9982 2010-05-24  Bruno Haible  <bruno@clisp.org>
9983
9984         regex: Don't require alloca.
9985         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
9986         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
9987         only inside if (0).
9988
9989 2010-05-23  Jim Meyering  <meyering@redhat.com>
9990
9991         test-renameat.c: include <sys/stat.h>
9992         * tests/test-renameat.c: Include <sys/stat.h>; required for
9993         definition of S_IS* macros.
9994
9995 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
9996
9997         Update maintainer documentation for 'relocatable-prog' module.
9998         * doc/relocatable-maint.texi: Update.
9999         Comments by Bruno Haible.
10000
10001 2010-05-23  Bruno Haible  <bruno@clisp.org>
10002
10003         git-merge-changelog: Enable --split-merged-entry by default.
10004         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
10005         (usage): Don't mention this option any more.
10006         Reported by Ralf Wildenhues.
10007
10008 2010-05-23  Jim Meyering  <meyering@redhat.com>
10009
10010         test-pwrite: do not leave behind a test file named "out"
10011         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
10012         The trivial-looking use of init.sh is really necessary.
10013         It ensures that the temporary file, "out", is created in
10014         a temporary directory, and removed upon termination.
10015         * tests/test-pwrite.sh: Re-add file.
10016         * modules/pwrite-tests: Reference it.
10017
10018 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10019
10020         Fix output redirection buglet in init.sh.
10021         * tests/init.sh: Fix redirection of stderr.
10022
10023 2010-05-20  Simon Josefsson  <simon@josefsson.org>
10024
10025         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
10026
10027 2010-05-17  Simon Josefsson  <simon@josefsson.org>
10028
10029         * modules/valgrind-tests: New file.
10030         * m4/valgrind-tests.m4: New file.
10031         * doc/valgrind-tests.texi: New file.
10032         * doc/gnulib.texi (Running self-tests under valgrind): New
10033         section.
10034
10035 2010-05-19  Bruno Haible  <bruno@clisp.org>
10036
10037         Clean up dead code in recent commit.
10038         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
10039         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
10040         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
10041         Suggested by Paolo Bonzini.
10042
10043 2010-05-19  Bruno Haible  <bruno@clisp.org>
10044
10045         Avoid valgrind error reports from libunistring.
10046         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
10047         * modules/libunistring (Files): Add it.
10048         * modules/libunistring-optional (Files): Likewise.
10049
10050 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
10051             Bruno Haible  <bruno@clisp.org>
10052
10053         New module 'libunistring-optional'.
10054         * modules/libunistring-optional: New file.
10055         * m4/libunistring-base.m4: New file.
10056         * m4/libunistring-optional.m4: New file.
10057         * lib/unicase.in.h: Renamed from lib/unicase.h.
10058         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
10059         * lib/unictype.in.h: Renamed from lib/unictype.h.
10060         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
10061         * lib/uniname.in.h: Renamed from lib/uniname.h.
10062         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
10063         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
10064         * lib/unistr.in.h: Renamed from lib/unistr.h.
10065         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
10066         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
10067         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
10068         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
10069         gl_LIBUNISTRING. If the library was found, determine the installed
10070         version and set LIBUNISTRING_VERSION.
10071         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
10072         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
10073         handle a configuration option --with-included-libunistring.
10074         * modules/libunistring (Files): Add m4/absolute-header.m4.
10075         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
10076         Add m4/libunistring-base.m4.
10077         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10078         (Makefile.am): Build unicase.h from unicase.in.h.
10079         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
10080         Add m4/libunistring-base.m4.
10081         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10082         (Makefile.am): Build uniconv.h from uniconv.in.h.
10083         * modules/unictype/base (Files): Use unictype.in.h instead of
10084         unictype.h. Add m4/libunistring-base.m4.
10085         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10086         (Makefile.am): Build unictype.h from unictype.in.h.
10087         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
10088         Add m4/libunistring-base.m4.
10089         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10090         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
10091         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
10092         Add m4/libunistring-base.m4.
10093         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10094         (Makefile.am): Build uniname.h from uniname.in.h.
10095         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
10096         Add m4/libunistring-base.m4.
10097         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10098         (Makefile.am): Build uninorm.h from uninorm.in.h.
10099         * modules/unistdio/base (Files): Use unistdio.in.h instead of
10100         unistdio.h. Add m4/libunistring-base.m4.
10101         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10102         (Makefile.am): Build unistdio.h from unistdio.in.h.
10103         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
10104         Add m4/libunistring-base.m4.
10105         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10106         (Makefile.am): Build unistr.h from unistr.in.h.
10107         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
10108         Add m4/libunistring-base.m4.
10109         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10110         (Makefile.am): Build unitypes.h from unitypes.in.h.
10111         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
10112         Add m4/libunistring-base.m4.
10113         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10114         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
10115         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
10116         uniwidth.h. Add m4/libunistring-base.m4.
10117         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10118         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
10119         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
10120         instead of augmenting lib_SOURCES.
10121         * modules/unicase/empty-suffix-context: Likewise.
10122         * modules/unicase/locale-language: Likewise.
10123         * modules/unicase/tolower: Likewise.
10124         * modules/unicase/totitle: Likewise.
10125         * modules/unicase/toupper: Likewise.
10126         * modules/unicase/u8-casecmp: Likewise.
10127         * modules/unicase/u8-casecoll: Likewise.
10128         * modules/unicase/u8-casefold: Likewise.
10129         * modules/unicase/u8-casexfrm: Likewise.
10130         * modules/unicase/u8-ct-casefold: Likewise.
10131         * modules/unicase/u8-ct-tolower: Likewise.
10132         * modules/unicase/u8-ct-totitle: Likewise.
10133         * modules/unicase/u8-ct-toupper: Likewise.
10134         * modules/unicase/u8-is-cased: Likewise.
10135         * modules/unicase/u8-is-casefolded: Likewise.
10136         * modules/unicase/u8-is-lowercase: Likewise.
10137         * modules/unicase/u8-is-titlecase: Likewise.
10138         * modules/unicase/u8-is-uppercase: Likewise.
10139         * modules/unicase/u8-prefix-context: Likewise.
10140         * modules/unicase/u8-suffix-context: Likewise.
10141         * modules/unicase/u8-tolower: Likewise.
10142         * modules/unicase/u8-totitle: Likewise.
10143         * modules/unicase/u8-toupper: Likewise.
10144         * modules/unicase/u16-casecmp: Likewise.
10145         * modules/unicase/u16-casecoll: Likewise.
10146         * modules/unicase/u16-casefold: Likewise.
10147         * modules/unicase/u16-casexfrm: Likewise.
10148         * modules/unicase/u16-ct-casefold: Likewise.
10149         * modules/unicase/u16-ct-tolower: Likewise.
10150         * modules/unicase/u16-ct-totitle: Likewise.
10151         * modules/unicase/u16-ct-toupper: Likewise.
10152         * modules/unicase/u16-is-cased: Likewise.
10153         * modules/unicase/u16-is-casefolded: Likewise.
10154         * modules/unicase/u16-is-lowercase: Likewise.
10155         * modules/unicase/u16-is-titlecase: Likewise.
10156         * modules/unicase/u16-is-uppercase: Likewise.
10157         * modules/unicase/u16-prefix-context: Likewise.
10158         * modules/unicase/u16-suffix-context: Likewise.
10159         * modules/unicase/u16-tolower: Likewise.
10160         * modules/unicase/u16-totitle: Likewise.
10161         * modules/unicase/u16-toupper: Likewise.
10162         * modules/unicase/u32-casecmp: Likewise.
10163         * modules/unicase/u32-casecoll: Likewise.
10164         * modules/unicase/u32-casefold: Likewise.
10165         * modules/unicase/u32-casexfrm: Likewise.
10166         * modules/unicase/u32-ct-casefold: Likewise.
10167         * modules/unicase/u32-ct-tolower: Likewise.
10168         * modules/unicase/u32-ct-totitle: Likewise.
10169         * modules/unicase/u32-ct-toupper: Likewise.
10170         * modules/unicase/u32-is-cased: Likewise.
10171         * modules/unicase/u32-is-casefolded: Likewise.
10172         * modules/unicase/u32-is-lowercase: Likewise.
10173         * modules/unicase/u32-is-titlecase: Likewise.
10174         * modules/unicase/u32-is-uppercase: Likewise.
10175         * modules/unicase/u32-prefix-context: Likewise.
10176         * modules/unicase/u32-suffix-context: Likewise.
10177         * modules/unicase/u32-tolower: Likewise.
10178         * modules/unicase/u32-totitle: Likewise.
10179         * modules/unicase/u32-toupper: Likewise.
10180         * modules/unicase/ulc-casecmp: Likewise.
10181         * modules/unicase/ulc-casecoll: Likewise.
10182         * modules/unicase/ulc-casexfrm: Likewise.
10183         * modules/uniconv/u8-conv-from-enc: Likewise.
10184         * modules/uniconv/u8-conv-to-enc: Likewise.
10185         * modules/uniconv/u8-strconv-from-enc: Likewise.
10186         * modules/uniconv/u8-strconv-from-locale: Likewise.
10187         * modules/uniconv/u8-strconv-to-enc: Likewise.
10188         * modules/uniconv/u8-strconv-to-locale: Likewise.
10189         * modules/uniconv/u16-conv-from-enc: Likewise.
10190         * modules/uniconv/u16-conv-to-enc: Likewise.
10191         * modules/uniconv/u16-strconv-from-enc: Likewise.
10192         * modules/uniconv/u16-strconv-from-locale: Likewise.
10193         * modules/uniconv/u16-strconv-to-enc: Likewise.
10194         * modules/uniconv/u16-strconv-to-locale: Likewise.
10195         * modules/uniconv/u32-conv-from-enc: Likewise.
10196         * modules/uniconv/u32-conv-to-enc: Likewise.
10197         * modules/uniconv/u32-strconv-from-enc: Likewise.
10198         * modules/uniconv/u32-strconv-from-locale: Likewise.
10199         * modules/uniconv/u32-strconv-to-enc: Likewise.
10200         * modules/uniconv/u32-strconv-to-locale: Likewise.
10201         * modules/unictype/bidicategory-byname: Likewise.
10202         * modules/unictype/bidicategory-name: Likewise.
10203         * modules/unictype/bidicategory-of: Likewise.
10204         * modules/unictype/bidicategory-test: Likewise.
10205         * modules/unictype/block-list: Likewise.
10206         * modules/unictype/block-test: Likewise.
10207         * modules/unictype/category-C: Likewise.
10208         * modules/unictype/category-Cc: Likewise.
10209         * modules/unictype/category-Cf: Likewise.
10210         * modules/unictype/category-Cn: Likewise.
10211         * modules/unictype/category-Co: Likewise.
10212         * modules/unictype/category-Cs: Likewise.
10213         * modules/unictype/category-L: Likewise.
10214         * modules/unictype/category-Ll: Likewise.
10215         * modules/unictype/category-Lm: Likewise.
10216         * modules/unictype/category-Lo: Likewise.
10217         * modules/unictype/category-Lt: Likewise.
10218         * modules/unictype/category-Lu: Likewise.
10219         * modules/unictype/category-M: Likewise.
10220         * modules/unictype/category-Mc: Likewise.
10221         * modules/unictype/category-Me: Likewise.
10222         * modules/unictype/category-Mn: Likewise.
10223         * modules/unictype/category-N: Likewise.
10224         * modules/unictype/category-Nd: Likewise.
10225         * modules/unictype/category-Nl: Likewise.
10226         * modules/unictype/category-No: Likewise.
10227         * modules/unictype/category-P: Likewise.
10228         * modules/unictype/category-Pc: Likewise.
10229         * modules/unictype/category-Pd: Likewise.
10230         * modules/unictype/category-Pe: Likewise.
10231         * modules/unictype/category-Pf: Likewise.
10232         * modules/unictype/category-Pi: Likewise.
10233         * modules/unictype/category-Po: Likewise.
10234         * modules/unictype/category-Ps: Likewise.
10235         * modules/unictype/category-S: Likewise.
10236         * modules/unictype/category-Sc: Likewise.
10237         * modules/unictype/category-Sk: Likewise.
10238         * modules/unictype/category-Sm: Likewise.
10239         * modules/unictype/category-So: Likewise.
10240         * modules/unictype/category-Z: Likewise.
10241         * modules/unictype/category-Zl: Likewise.
10242         * modules/unictype/category-Zp: Likewise.
10243         * modules/unictype/category-Zs: Likewise.
10244         * modules/unictype/category-and: Likewise.
10245         * modules/unictype/category-and-not: Likewise.
10246         * modules/unictype/category-byname: Likewise.
10247         * modules/unictype/category-name: Likewise.
10248         * modules/unictype/category-none: Likewise.
10249         * modules/unictype/category-of: Likewise.
10250         * modules/unictype/category-or: Likewise.
10251         * modules/unictype/category-test: Likewise.
10252         * modules/unictype/combining-class: Likewise.
10253         * modules/unictype/ctype-alnum: Likewise.
10254         * modules/unictype/ctype-alpha: Likewise.
10255         * modules/unictype/ctype-blank: Likewise.
10256         * modules/unictype/ctype-cntrl: Likewise.
10257         * modules/unictype/ctype-digit: Likewise.
10258         * modules/unictype/ctype-graph: Likewise.
10259         * modules/unictype/ctype-lower: Likewise.
10260         * modules/unictype/ctype-print: Likewise.
10261         * modules/unictype/ctype-punct: Likewise.
10262         * modules/unictype/ctype-space: Likewise.
10263         * modules/unictype/ctype-upper: Likewise.
10264         * modules/unictype/ctype-xdigit: Likewise.
10265         * modules/unictype/decimal-digit: Likewise.
10266         * modules/unictype/digit: Likewise.
10267         * modules/unictype/mirror: Likewise.
10268         * modules/unictype/numeric: Likewise.
10269         * modules/unictype/property-alphabetic: Likewise.
10270         * modules/unictype/property-ascii-hex-digit: Likewise.
10271         * modules/unictype/property-bidi-arabic-digit: Likewise.
10272         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
10273         * modules/unictype/property-bidi-block-separator: Likewise.
10274         * modules/unictype/property-bidi-boundary-neutral: Likewise.
10275         * modules/unictype/property-bidi-common-separator: Likewise.
10276         * modules/unictype/property-bidi-control: Likewise.
10277         * modules/unictype/property-bidi-embedding-or-override: Likewise.
10278         * modules/unictype/property-bidi-eur-num-separator: Likewise.
10279         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
10280         * modules/unictype/property-bidi-european-digit: Likewise.
10281         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
10282         * modules/unictype/property-bidi-left-to-right: Likewise.
10283         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
10284         * modules/unictype/property-bidi-other-neutral: Likewise.
10285         * modules/unictype/property-bidi-pdf: Likewise.
10286         * modules/unictype/property-bidi-segment-separator: Likewise.
10287         * modules/unictype/property-bidi-whitespace: Likewise.
10288         * modules/unictype/property-byname: Likewise.
10289         * modules/unictype/property-combining: Likewise.
10290         * modules/unictype/property-composite: Likewise.
10291         * modules/unictype/property-currency-symbol: Likewise.
10292         * modules/unictype/property-dash: Likewise.
10293         * modules/unictype/property-decimal-digit: Likewise.
10294         * modules/unictype/property-default-ignorable-code-point: Likewise.
10295         * modules/unictype/property-deprecated: Likewise.
10296         * modules/unictype/property-diacritic: Likewise.
10297         * modules/unictype/property-extender: Likewise.
10298         * modules/unictype/property-format-control: Likewise.
10299         * modules/unictype/property-grapheme-base: Likewise.
10300         * modules/unictype/property-grapheme-extend: Likewise.
10301         * modules/unictype/property-grapheme-link: Likewise.
10302         * modules/unictype/property-hex-digit: Likewise.
10303         * modules/unictype/property-hyphen: Likewise.
10304         * modules/unictype/property-id-continue: Likewise.
10305         * modules/unictype/property-id-start: Likewise.
10306         * modules/unictype/property-ideographic: Likewise.
10307         * modules/unictype/property-ids-binary-operator: Likewise.
10308         * modules/unictype/property-ids-trinary-operator: Likewise.
10309         * modules/unictype/property-ignorable-control: Likewise.
10310         * modules/unictype/property-iso-control: Likewise.
10311         * modules/unictype/property-join-control: Likewise.
10312         * modules/unictype/property-left-of-pair: Likewise.
10313         * modules/unictype/property-line-separator: Likewise.
10314         * modules/unictype/property-logical-order-exception: Likewise.
10315         * modules/unictype/property-lowercase: Likewise.
10316         * modules/unictype/property-math: Likewise.
10317         * modules/unictype/property-non-break: Likewise.
10318         * modules/unictype/property-not-a-character: Likewise.
10319         * modules/unictype/property-numeric: Likewise.
10320         * modules/unictype/property-other-alphabetic: Likewise.
10321         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
10322         * modules/unictype/property-other-grapheme-extend: Likewise.
10323         * modules/unictype/property-other-id-continue: Likewise.
10324         * modules/unictype/property-other-id-start: Likewise.
10325         * modules/unictype/property-other-lowercase: Likewise.
10326         * modules/unictype/property-other-math: Likewise.
10327         * modules/unictype/property-other-uppercase: Likewise.
10328         * modules/unictype/property-paired-punctuation: Likewise.
10329         * modules/unictype/property-paragraph-separator: Likewise.
10330         * modules/unictype/property-pattern-syntax: Likewise.
10331         * modules/unictype/property-pattern-white-space: Likewise.
10332         * modules/unictype/property-private-use: Likewise.
10333         * modules/unictype/property-punctuation: Likewise.
10334         * modules/unictype/property-quotation-mark: Likewise.
10335         * modules/unictype/property-radical: Likewise.
10336         * modules/unictype/property-sentence-terminal: Likewise.
10337         * modules/unictype/property-soft-dotted: Likewise.
10338         * modules/unictype/property-space: Likewise.
10339         * modules/unictype/property-terminal-punctuation: Likewise.
10340         * modules/unictype/property-test: Likewise.
10341         * modules/unictype/property-titlecase: Likewise.
10342         * modules/unictype/property-unassigned-code-value: Likewise.
10343         * modules/unictype/property-unified-ideograph: Likewise.
10344         * modules/unictype/property-uppercase: Likewise.
10345         * modules/unictype/property-variation-selector: Likewise.
10346         * modules/unictype/property-white-space: Likewise.
10347         * modules/unictype/property-xid-continue: Likewise.
10348         * modules/unictype/property-xid-start: Likewise.
10349         * modules/unictype/property-zero-width: Likewise.
10350         * modules/unictype/scripts: Likewise.
10351         * modules/unictype/syntax-c-ident: Likewise.
10352         * modules/unictype/syntax-c-whitespace: Likewise.
10353         * modules/unictype/syntax-java-ident: Likewise.
10354         * modules/unictype/syntax-java-whitespace: Likewise.
10355         * modules/unilbrk/u8-possible-linebreaks: Likewise.
10356         * modules/unilbrk/u8-width-linebreaks: Likewise.
10357         * modules/unilbrk/u16-possible-linebreaks: Likewise.
10358         * modules/unilbrk/u16-width-linebreaks: Likewise.
10359         * modules/unilbrk/u32-possible-linebreaks: Likewise.
10360         * modules/unilbrk/u32-width-linebreaks: Likewise.
10361         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
10362         * modules/unilbrk/ulc-width-linebreaks: Likewise.
10363         * modules/uniname/uniname: Likewise.
10364         * modules/uninorm/canonical-decomposition: Likewise.
10365         * modules/uninorm/composition: Likewise.
10366         * modules/uninorm/decomposing-form: Likewise.
10367         * modules/uninorm/decomposition: Likewise.
10368         * modules/uninorm/filter: Likewise.
10369         * modules/uninorm/nfc: Likewise.
10370         * modules/uninorm/nfd: Likewise.
10371         * modules/uninorm/nfkc: Likewise.
10372         * modules/uninorm/nfkd: Likewise.
10373         * modules/uninorm/u8-normalize: Likewise.
10374         * modules/uninorm/u8-normcmp: Likewise.
10375         * modules/uninorm/u8-normcoll: Likewise.
10376         * modules/uninorm/u8-normxfrm: Likewise.
10377         * modules/uninorm/u16-normalize: Likewise.
10378         * modules/uninorm/u16-normcmp: Likewise.
10379         * modules/uninorm/u16-normcoll: Likewise.
10380         * modules/uninorm/u16-normxfrm: Likewise.
10381         * modules/uninorm/u32-normalize: Likewise.
10382         * modules/uninorm/u32-normcmp: Likewise.
10383         * modules/uninorm/u32-normcoll: Likewise.
10384         * modules/uninorm/u32-normxfrm: Likewise.
10385         * modules/unistdio/u8-asnprintf: Likewise.
10386         * modules/unistdio/u8-asprintf: Likewise.
10387         * modules/unistdio/u8-snprintf: Likewise.
10388         * modules/unistdio/u8-sprintf: Likewise.
10389         * modules/unistdio/u8-u8-asnprintf: Likewise.
10390         * modules/unistdio/u8-u8-asprintf: Likewise.
10391         * modules/unistdio/u8-u8-snprintf: Likewise.
10392         * modules/unistdio/u8-u8-sprintf: Likewise.
10393         * modules/unistdio/u8-u8-vasnprintf: Likewise.
10394         * modules/unistdio/u8-u8-vasprintf: Likewise.
10395         * modules/unistdio/u8-u8-vsnprintf: Likewise.
10396         * modules/unistdio/u8-u8-vsprintf: Likewise.
10397         * modules/unistdio/u8-vasnprintf: Likewise.
10398         * modules/unistdio/u8-vasprintf: Likewise.
10399         * modules/unistdio/u8-vsnprintf: Likewise.
10400         * modules/unistdio/u8-vsprintf: Likewise.
10401         * modules/unistdio/u16-asnprintf: Likewise.
10402         * modules/unistdio/u16-asprintf: Likewise.
10403         * modules/unistdio/u16-snprintf: Likewise.
10404         * modules/unistdio/u16-sprintf: Likewise.
10405         * modules/unistdio/u16-u16-asnprintf: Likewise.
10406         * modules/unistdio/u16-u16-asprintf: Likewise.
10407         * modules/unistdio/u16-u16-snprintf: Likewise.
10408         * modules/unistdio/u16-u16-sprintf: Likewise.
10409         * modules/unistdio/u16-u16-vasnprintf: Likewise.
10410         * modules/unistdio/u16-u16-vasprintf: Likewise.
10411         * modules/unistdio/u16-u16-vsnprintf: Likewise.
10412         * modules/unistdio/u16-u16-vsprintf: Likewise.
10413         * modules/unistdio/u16-vasnprintf: Likewise.
10414         * modules/unistdio/u16-vasprintf: Likewise.
10415         * modules/unistdio/u16-vsnprintf: Likewise.
10416         * modules/unistdio/u16-vsprintf: Likewise.
10417         * modules/unistdio/u32-asnprintf: Likewise.
10418         * modules/unistdio/u32-asprintf: Likewise.
10419         * modules/unistdio/u32-snprintf: Likewise.
10420         * modules/unistdio/u32-sprintf: Likewise.
10421         * modules/unistdio/u32-u32-asnprintf: Likewise.
10422         * modules/unistdio/u32-u32-asprintf: Likewise.
10423         * modules/unistdio/u32-u32-snprintf: Likewise.
10424         * modules/unistdio/u32-u32-sprintf: Likewise.
10425         * modules/unistdio/u32-u32-vasnprintf: Likewise.
10426         * modules/unistdio/u32-u32-vasprintf: Likewise.
10427         * modules/unistdio/u32-u32-vsnprintf: Likewise.
10428         * modules/unistdio/u32-u32-vsprintf: Likewise.
10429         * modules/unistdio/u32-vasnprintf: Likewise.
10430         * modules/unistdio/u32-vasprintf: Likewise.
10431         * modules/unistdio/u32-vsnprintf: Likewise.
10432         * modules/unistdio/u32-vsprintf: Likewise.
10433         * modules/unistdio/ulc-asnprintf: Likewise.
10434         * modules/unistdio/ulc-asprintf: Likewise.
10435         * modules/unistdio/ulc-fprintf: Likewise.
10436         * modules/unistdio/ulc-snprintf: Likewise.
10437         * modules/unistdio/ulc-sprintf: Likewise.
10438         * modules/unistdio/ulc-vasnprintf: Likewise.
10439         * modules/unistdio/ulc-vasprintf: Likewise.
10440         * modules/unistdio/ulc-vfprintf: Likewise.
10441         * modules/unistdio/ulc-vsnprintf: Likewise.
10442         * modules/unistdio/ulc-vsprintf: Likewise.
10443         * modules/unistr/u8-check: Likewise.
10444         * modules/unistr/u8-chr: Likewise.
10445         * modules/unistr/u8-cmp: Likewise.
10446         * modules/unistr/u8-cmp2: Likewise.
10447         * modules/unistr/u8-cpy: Likewise.
10448         * modules/unistr/u8-cpy-alloc: Likewise.
10449         * modules/unistr/u8-endswith: Likewise.
10450         * modules/unistr/u8-mblen: Likewise.
10451         * modules/unistr/u8-mbsnlen: Likewise.
10452         * modules/unistr/u8-mbtouc: Likewise.
10453         * modules/unistr/u8-mbtouc-unsafe: Likewise.
10454         * modules/unistr/u8-mbtoucr: Likewise.
10455         * modules/unistr/u8-move: Likewise.
10456         * modules/unistr/u8-next: Likewise.
10457         * modules/unistr/u8-prev: Likewise.
10458         * modules/unistr/u8-set: Likewise.
10459         * modules/unistr/u8-startswith: Likewise.
10460         * modules/unistr/u8-stpcpy: Likewise.
10461         * modules/unistr/u8-stpncpy: Likewise.
10462         * modules/unistr/u8-strcat: Likewise.
10463         * modules/unistr/u8-strchr: Likewise.
10464         * modules/unistr/u8-strcmp: Likewise.
10465         * modules/unistr/u8-strcoll: Likewise.
10466         * modules/unistr/u8-strcpy: Likewise.
10467         * modules/unistr/u8-strcspn: Likewise.
10468         * modules/unistr/u8-strdup: Likewise.
10469         * modules/unistr/u8-strlen: Likewise.
10470         * modules/unistr/u8-strmblen: Likewise.
10471         * modules/unistr/u8-strmbtouc: Likewise.
10472         * modules/unistr/u8-strncat: Likewise.
10473         * modules/unistr/u8-strncmp: Likewise.
10474         * modules/unistr/u8-strncpy: Likewise.
10475         * modules/unistr/u8-strnlen: Likewise.
10476         * modules/unistr/u8-strpbrk: Likewise.
10477         * modules/unistr/u8-strrchr: Likewise.
10478         * modules/unistr/u8-strspn: Likewise.
10479         * modules/unistr/u8-strstr: Likewise.
10480         * modules/unistr/u8-strtok: Likewise.
10481         * modules/unistr/u8-to-u16: Likewise.
10482         * modules/unistr/u8-to-u32: Likewise.
10483         * modules/unistr/u8-uctomb: Likewise.
10484         * modules/unistr/u16-check: Likewise.
10485         * modules/unistr/u16-chr: Likewise.
10486         * modules/unistr/u16-cmp: Likewise.
10487         * modules/unistr/u16-cmp2: Likewise.
10488         * modules/unistr/u16-cpy: Likewise.
10489         * modules/unistr/u16-cpy-alloc: Likewise.
10490         * modules/unistr/u16-endswith: Likewise.
10491         * modules/unistr/u16-mblen: Likewise.
10492         * modules/unistr/u16-mbsnlen: Likewise.
10493         * modules/unistr/u16-mbtouc: Likewise.
10494         * modules/unistr/u16-mbtouc-unsafe: Likewise.
10495         * modules/unistr/u16-mbtoucr: Likewise.
10496         * modules/unistr/u16-move: Likewise.
10497         * modules/unistr/u16-next: Likewise.
10498         * modules/unistr/u16-prev: Likewise.
10499         * modules/unistr/u16-set: Likewise.
10500         * modules/unistr/u16-startswith: Likewise.
10501         * modules/unistr/u16-stpcpy: Likewise.
10502         * modules/unistr/u16-stpncpy: Likewise.
10503         * modules/unistr/u16-strcat: Likewise.
10504         * modules/unistr/u16-strchr: Likewise.
10505         * modules/unistr/u16-strcmp: Likewise.
10506         * modules/unistr/u16-strcoll: Likewise.
10507         * modules/unistr/u16-strcpy: Likewise.
10508         * modules/unistr/u16-strcspn: Likewise.
10509         * modules/unistr/u16-strdup: Likewise.
10510         * modules/unistr/u16-strlen: Likewise.
10511         * modules/unistr/u16-strmblen: Likewise.
10512         * modules/unistr/u16-strmbtouc: Likewise.
10513         * modules/unistr/u16-strncat: Likewise.
10514         * modules/unistr/u16-strncmp: Likewise.
10515         * modules/unistr/u16-strncpy: Likewise.
10516         * modules/unistr/u16-strnlen: Likewise.
10517         * modules/unistr/u16-strpbrk: Likewise.
10518         * modules/unistr/u16-strrchr: Likewise.
10519         * modules/unistr/u16-strspn: Likewise.
10520         * modules/unistr/u16-strstr: Likewise.
10521         * modules/unistr/u16-strtok: Likewise.
10522         * modules/unistr/u16-to-u32: Likewise.
10523         * modules/unistr/u16-to-u8: Likewise.
10524         * modules/unistr/u16-uctomb: Likewise.
10525         * modules/unistr/u32-check: Likewise.
10526         * modules/unistr/u32-chr: Likewise.
10527         * modules/unistr/u32-cmp: Likewise.
10528         * modules/unistr/u32-cmp2: Likewise.
10529         * modules/unistr/u32-cpy: Likewise.
10530         * modules/unistr/u32-cpy-alloc: Likewise.
10531         * modules/unistr/u32-endswith: Likewise.
10532         * modules/unistr/u32-mblen: Likewise.
10533         * modules/unistr/u32-mbsnlen: Likewise.
10534         * modules/unistr/u32-mbtouc: Likewise.
10535         * modules/unistr/u32-mbtouc-unsafe: Likewise.
10536         * modules/unistr/u32-mbtoucr: Likewise.
10537         * modules/unistr/u32-move: Likewise.
10538         * modules/unistr/u32-next: Likewise.
10539         * modules/unistr/u32-prev: Likewise.
10540         * modules/unistr/u32-set: Likewise.
10541         * modules/unistr/u32-startswith: Likewise.
10542         * modules/unistr/u32-stpcpy: Likewise.
10543         * modules/unistr/u32-stpncpy: Likewise.
10544         * modules/unistr/u32-strcat: Likewise.
10545         * modules/unistr/u32-strchr: Likewise.
10546         * modules/unistr/u32-strcmp: Likewise.
10547         * modules/unistr/u32-strcoll: Likewise.
10548         * modules/unistr/u32-strcpy: Likewise.
10549         * modules/unistr/u32-strcspn: Likewise.
10550         * modules/unistr/u32-strdup: Likewise.
10551         * modules/unistr/u32-strlen: Likewise.
10552         * modules/unistr/u32-strmblen: Likewise.
10553         * modules/unistr/u32-strmbtouc: Likewise.
10554         * modules/unistr/u32-strncat: Likewise.
10555         * modules/unistr/u32-strncmp: Likewise.
10556         * modules/unistr/u32-strncpy: Likewise.
10557         * modules/unistr/u32-strnlen: Likewise.
10558         * modules/unistr/u32-strpbrk: Likewise.
10559         * modules/unistr/u32-strrchr: Likewise.
10560         * modules/unistr/u32-strspn: Likewise.
10561         * modules/unistr/u32-strstr: Likewise.
10562         * modules/unistr/u32-strtok: Likewise.
10563         * modules/unistr/u32-to-u16: Likewise.
10564         * modules/unistr/u32-to-u8: Likewise.
10565         * modules/unistr/u32-uctomb: Likewise.
10566         * modules/uniwbrk/u8-wordbreaks: Likewise.
10567         * modules/uniwbrk/u16-wordbreaks: Likewise.
10568         * modules/uniwbrk/u32-wordbreaks: Likewise.
10569         * modules/uniwbrk/ulc-wordbreaks: Likewise.
10570         * modules/uniwbrk/wordbreak-property: Likewise.
10571         * modules/uniwidth/u8-strwidth: Likewise.
10572         * modules/uniwidth/u8-width: Likewise.
10573         * modules/uniwidth/u16-strwidth: Likewise.
10574         * modules/uniwidth/u16-width: Likewise.
10575         * modules/uniwidth/u32-strwidth: Likewise.
10576         * modules/uniwidth/u32-width: Likewise.
10577         * modules/uniwidth/width: Likewise.
10578         * modules/unicase/cased-tests (Makefile.am): Link all test programs
10579         with $(LIBUNISTRING).
10580         * modules/unicase/ignorable-tests: Likewise.
10581         * modules/unicase/locale-language-tests: Likewise.
10582         * modules/unicase/tolower-tests: Likewise.
10583         * modules/unicase/totitle-tests: Likewise.
10584         * modules/unicase/toupper-tests: Likewise.
10585         * modules/unicase/u8-casecmp-tests: Likewise.
10586         * modules/unicase/u8-casecoll-tests: Likewise.
10587         * modules/unicase/u8-casefold-tests: Likewise.
10588         * modules/unicase/u8-is-cased-tests: Likewise.
10589         * modules/unicase/u8-is-casefolded-tests: Likewise.
10590         * modules/unicase/u8-is-lowercase-tests: Likewise.
10591         * modules/unicase/u8-is-titlecase-tests: Likewise.
10592         * modules/unicase/u8-is-uppercase-tests: Likewise.
10593         * modules/unicase/u8-tolower-tests: Likewise.
10594         * modules/unicase/u8-totitle-tests: Likewise.
10595         * modules/unicase/u8-toupper-tests: Likewise.
10596         * modules/unicase/u16-casecmp-tests: Likewise.
10597         * modules/unicase/u16-casecoll-tests: Likewise.
10598         * modules/unicase/u16-casefold-tests: Likewise.
10599         * modules/unicase/u16-is-cased-tests: Likewise.
10600         * modules/unicase/u16-is-casefolded-tests: Likewise.
10601         * modules/unicase/u16-is-lowercase-tests: Likewise.
10602         * modules/unicase/u16-is-titlecase-tests: Likewise.
10603         * modules/unicase/u16-is-uppercase-tests: Likewise.
10604         * modules/unicase/u16-tolower-tests: Likewise.
10605         * modules/unicase/u16-totitle-tests: Likewise.
10606         * modules/unicase/u16-toupper-tests: Likewise.
10607         * modules/unicase/u32-casecmp-tests: Likewise.
10608         * modules/unicase/u32-casecoll-tests: Likewise.
10609         * modules/unicase/u32-casefold-tests: Likewise.
10610         * modules/unicase/u32-is-cased-tests: Likewise.
10611         * modules/unicase/u32-is-casefolded-tests: Likewise.
10612         * modules/unicase/u32-is-lowercase-tests: Likewise.
10613         * modules/unicase/u32-is-titlecase-tests: Likewise.
10614         * modules/unicase/u32-is-uppercase-tests: Likewise.
10615         * modules/unicase/u32-tolower-tests: Likewise.
10616         * modules/unicase/u32-totitle-tests: Likewise.
10617         * modules/unicase/u32-toupper-tests: Likewise.
10618         * modules/unicase/ulc-casecmp-tests: Likewise.
10619         * modules/unicase/ulc-casecoll-tests: Likewise.
10620         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
10621         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
10622         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
10623         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
10624         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
10625         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
10626         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
10627         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
10628         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
10629         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
10630         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
10631         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
10632         * modules/unictype/bidicategory-byname-tests: Likewise.
10633         * modules/unictype/bidicategory-name-tests: Likewise.
10634         * modules/unictype/bidicategory-of-tests: Likewise.
10635         * modules/unictype/bidicategory-test-tests: Likewise.
10636         * modules/unictype/block-list-tests: Likewise.
10637         * modules/unictype/block-of-tests: Likewise.
10638         * modules/unictype/block-test-tests: Likewise.
10639         * modules/unictype/category-C-tests: Likewise.
10640         * modules/unictype/category-Cc-tests: Likewise.
10641         * modules/unictype/category-Cf-tests: Likewise.
10642         * modules/unictype/category-Cn-tests: Likewise.
10643         * modules/unictype/category-Co-tests: Likewise.
10644         * modules/unictype/category-Cs-tests: Likewise.
10645         * modules/unictype/category-L-tests: Likewise.
10646         * modules/unictype/category-Ll-tests: Likewise.
10647         * modules/unictype/category-Lm-tests: Likewise.
10648         * modules/unictype/category-Lo-tests: Likewise.
10649         * modules/unictype/category-Lt-tests: Likewise.
10650         * modules/unictype/category-Lu-tests: Likewise.
10651         * modules/unictype/category-M-tests: Likewise.
10652         * modules/unictype/category-Mc-tests: Likewise.
10653         * modules/unictype/category-Me-tests: Likewise.
10654         * modules/unictype/category-Mn-tests: Likewise.
10655         * modules/unictype/category-N-tests: Likewise.
10656         * modules/unictype/category-Nd-tests: Likewise.
10657         * modules/unictype/category-Nl-tests: Likewise.
10658         * modules/unictype/category-No-tests: Likewise.
10659         * modules/unictype/category-P-tests: Likewise.
10660         * modules/unictype/category-Pc-tests: Likewise.
10661         * modules/unictype/category-Pd-tests: Likewise.
10662         * modules/unictype/category-Pe-tests: Likewise.
10663         * modules/unictype/category-Pf-tests: Likewise.
10664         * modules/unictype/category-Pi-tests: Likewise.
10665         * modules/unictype/category-Po-tests: Likewise.
10666         * modules/unictype/category-Ps-tests: Likewise.
10667         * modules/unictype/category-S-tests: Likewise.
10668         * modules/unictype/category-Sc-tests: Likewise.
10669         * modules/unictype/category-Sk-tests: Likewise.
10670         * modules/unictype/category-Sm-tests: Likewise.
10671         * modules/unictype/category-So-tests: Likewise.
10672         * modules/unictype/category-Z-tests: Likewise.
10673         * modules/unictype/category-Zl-tests: Likewise.
10674         * modules/unictype/category-Zp-tests: Likewise.
10675         * modules/unictype/category-Zs-tests: Likewise.
10676         * modules/unictype/category-and-not-tests: Likewise.
10677         * modules/unictype/category-and-tests: Likewise.
10678         * modules/unictype/category-byname-tests: Likewise.
10679         * modules/unictype/category-name-tests: Likewise.
10680         * modules/unictype/category-none-tests: Likewise.
10681         * modules/unictype/category-of-tests: Likewise.
10682         * modules/unictype/category-or-tests: Likewise.
10683         * modules/unictype/category-test-withtable-tests: Likewise.
10684         * modules/unictype/combining-class-tests: Likewise.
10685         * modules/unictype/ctype-alnum-tests: Likewise.
10686         * modules/unictype/ctype-alpha-tests: Likewise.
10687         * modules/unictype/ctype-blank-tests: Likewise.
10688         * modules/unictype/ctype-cntrl-tests: Likewise.
10689         * modules/unictype/ctype-digit-tests: Likewise.
10690         * modules/unictype/ctype-graph-tests: Likewise.
10691         * modules/unictype/ctype-lower-tests: Likewise.
10692         * modules/unictype/ctype-print-tests: Likewise.
10693         * modules/unictype/ctype-punct-tests: Likewise.
10694         * modules/unictype/ctype-space-tests: Likewise.
10695         * modules/unictype/ctype-upper-tests: Likewise.
10696         * modules/unictype/ctype-xdigit-tests: Likewise.
10697         * modules/unictype/decimal-digit-tests: Likewise.
10698         * modules/unictype/digit-tests: Likewise.
10699         * modules/unictype/mirror-tests: Likewise.
10700         * modules/unictype/numeric-tests: Likewise.
10701         * modules/unictype/property-alphabetic-tests: Likewise.
10702         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
10703         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
10704         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
10705         * modules/unictype/property-bidi-block-separator-tests: Likewise.
10706         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
10707         * modules/unictype/property-bidi-common-separator-tests: Likewise.
10708         * modules/unictype/property-bidi-control-tests: Likewise.
10709         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
10710         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
10711         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
10712         * modules/unictype/property-bidi-european-digit-tests: Likewise.
10713         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
10714         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
10715         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
10716         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
10717         * modules/unictype/property-bidi-pdf-tests: Likewise.
10718         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
10719         * modules/unictype/property-bidi-whitespace-tests: Likewise.
10720         * modules/unictype/property-byname-tests: Likewise.
10721         * modules/unictype/property-combining-tests: Likewise.
10722         * modules/unictype/property-composite-tests: Likewise.
10723         * modules/unictype/property-currency-symbol-tests: Likewise.
10724         * modules/unictype/property-dash-tests: Likewise.
10725         * modules/unictype/property-decimal-digit-tests: Likewise.
10726         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
10727         * modules/unictype/property-deprecated-tests: Likewise.
10728         * modules/unictype/property-diacritic-tests: Likewise.
10729         * modules/unictype/property-extender-tests: Likewise.
10730         * modules/unictype/property-format-control-tests: Likewise.
10731         * modules/unictype/property-grapheme-base-tests: Likewise.
10732         * modules/unictype/property-grapheme-extend-tests: Likewise.
10733         * modules/unictype/property-grapheme-link-tests: Likewise.
10734         * modules/unictype/property-hex-digit-tests: Likewise.
10735         * modules/unictype/property-hyphen-tests: Likewise.
10736         * modules/unictype/property-id-continue-tests: Likewise.
10737         * modules/unictype/property-id-start-tests: Likewise.
10738         * modules/unictype/property-ideographic-tests: Likewise.
10739         * modules/unictype/property-ids-binary-operator-tests: Likewise.
10740         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
10741         * modules/unictype/property-ignorable-control-tests: Likewise.
10742         * modules/unictype/property-iso-control-tests: Likewise.
10743         * modules/unictype/property-join-control-tests: Likewise.
10744         * modules/unictype/property-left-of-pair-tests: Likewise.
10745         * modules/unictype/property-line-separator-tests: Likewise.
10746         * modules/unictype/property-logical-order-exception-tests: Likewise.
10747         * modules/unictype/property-lowercase-tests: Likewise.
10748         * modules/unictype/property-math-tests: Likewise.
10749         * modules/unictype/property-non-break-tests: Likewise.
10750         * modules/unictype/property-not-a-character-tests: Likewise.
10751         * modules/unictype/property-numeric-tests: Likewise.
10752         * modules/unictype/property-other-alphabetic-tests: Likewise.
10753         * modules/unictype/property-other-default-ignorable-code-point-tests:
10754         Likewise.
10755         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
10756         * modules/unictype/property-other-id-continue-tests: Likewise.
10757         * modules/unictype/property-other-id-start-tests: Likewise.
10758         * modules/unictype/property-other-lowercase-tests: Likewise.
10759         * modules/unictype/property-other-math-tests: Likewise.
10760         * modules/unictype/property-other-uppercase-tests: Likewise.
10761         * modules/unictype/property-paired-punctuation-tests: Likewise.
10762         * modules/unictype/property-paragraph-separator-tests: Likewise.
10763         * modules/unictype/property-pattern-syntax-tests: Likewise.
10764         * modules/unictype/property-pattern-white-space-tests: Likewise.
10765         * modules/unictype/property-private-use-tests: Likewise.
10766         * modules/unictype/property-punctuation-tests: Likewise.
10767         * modules/unictype/property-quotation-mark-tests: Likewise.
10768         * modules/unictype/property-radical-tests: Likewise.
10769         * modules/unictype/property-sentence-terminal-tests: Likewise.
10770         * modules/unictype/property-soft-dotted-tests: Likewise.
10771         * modules/unictype/property-space-tests: Likewise.
10772         * modules/unictype/property-terminal-punctuation-tests: Likewise.
10773         * modules/unictype/property-test-tests: Likewise.
10774         * modules/unictype/property-titlecase-tests: Likewise.
10775         * modules/unictype/property-unassigned-code-value-tests: Likewise.
10776         * modules/unictype/property-unified-ideograph-tests: Likewise.
10777         * modules/unictype/property-uppercase-tests: Likewise.
10778         * modules/unictype/property-variation-selector-tests: Likewise.
10779         * modules/unictype/property-white-space-tests: Likewise.
10780         * modules/unictype/property-xid-continue-tests: Likewise.
10781         * modules/unictype/property-xid-start-tests: Likewise.
10782         * modules/unictype/property-zero-width-tests: Likewise.
10783         * modules/unictype/scripts-tests: Likewise.
10784         * modules/unictype/syntax-c-ident-tests: Likewise.
10785         * modules/unictype/syntax-c-whitespace-tests: Likewise.
10786         * modules/unictype/syntax-java-ident-tests: Likewise.
10787         * modules/unictype/syntax-java-whitespace-tests: Likewise.
10788         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
10789         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
10790         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
10791         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
10792         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
10793         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
10794         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
10795         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
10796         * modules/uniname/uniname-tests: Likewise.
10797         * modules/uninorm/canonical-decomposition-tests: Likewise.
10798         * modules/uninorm/compat-decomposition-tests: Likewise.
10799         * modules/uninorm/composition-tests: Likewise.
10800         * modules/uninorm/decomposing-form-tests: Likewise.
10801         * modules/uninorm/decomposition-tests: Likewise.
10802         * modules/uninorm/filter-tests: Likewise.
10803         * modules/uninorm/nfc-tests: Likewise.
10804         * modules/uninorm/nfd-tests: Likewise.
10805         * modules/uninorm/nfkc-tests: Likewise.
10806         * modules/uninorm/nfkd-tests: Likewise.
10807         * modules/uninorm/u8-normcmp-tests: Likewise.
10808         * modules/uninorm/u8-normcoll-tests: Likewise.
10809         * modules/uninorm/u16-normcmp-tests: Likewise.
10810         * modules/uninorm/u16-normcoll-tests: Likewise.
10811         * modules/uninorm/u32-normcmp-tests: Likewise.
10812         * modules/uninorm/u32-normcoll-tests: Likewise.
10813         * modules/unistdio/u8-asnprintf-tests: Likewise.
10814         * modules/unistdio/u8-vasnprintf-tests: Likewise.
10815         * modules/unistdio/u8-vasprintf-tests: Likewise.
10816         * modules/unistdio/u8-vsnprintf-tests: Likewise.
10817         * modules/unistdio/u8-vsprintf-tests: Likewise.
10818         * modules/unistdio/u16-asnprintf-tests: Likewise.
10819         * modules/unistdio/u16-vasnprintf-tests: Likewise.
10820         * modules/unistdio/u16-vasprintf-tests: Likewise.
10821         * modules/unistdio/u16-vsnprintf-tests: Likewise.
10822         * modules/unistdio/u16-vsprintf-tests: Likewise.
10823         * modules/unistdio/u32-asnprintf-tests: Likewise.
10824         * modules/unistdio/u32-vasnprintf-tests: Likewise.
10825         * modules/unistdio/u32-vasprintf-tests: Likewise.
10826         * modules/unistdio/u32-vsnprintf-tests: Likewise.
10827         * modules/unistdio/u32-vsprintf-tests: Likewise.
10828         * modules/unistdio/ulc-asnprintf-tests: Likewise.
10829         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
10830         * modules/unistdio/ulc-vasprintf-tests: Likewise.
10831         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
10832         * modules/unistdio/ulc-vsprintf-tests: Likewise.
10833         * modules/unistr/u8-check-tests: Likewise.
10834         * modules/unistr/u8-chr-tests: Likewise.
10835         * modules/unistr/u8-cmp-tests: Likewise.
10836         * modules/unistr/u8-cmp2-tests: Likewise.
10837         * modules/unistr/u8-cpy-alloc-tests: Likewise.
10838         * modules/unistr/u8-cpy-tests: Likewise.
10839         * modules/unistr/u8-mblen-tests: Likewise.
10840         * modules/unistr/u8-mbsnlen-tests: Likewise.
10841         * modules/unistr/u8-mbtouc-tests: Likewise.
10842         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
10843         * modules/unistr/u8-mbtoucr-tests: Likewise.
10844         * modules/unistr/u8-move-tests: Likewise.
10845         * modules/unistr/u8-next-tests: Likewise.
10846         * modules/unistr/u8-prev-tests: Likewise.
10847         * modules/unistr/u8-set-tests: Likewise.
10848         * modules/unistr/u8-stpcpy-tests: Likewise.
10849         * modules/unistr/u8-stpncpy-tests: Likewise.
10850         * modules/unistr/u8-strcat-tests: Likewise.
10851         * modules/unistr/u8-strcmp-tests: Likewise.
10852         * modules/unistr/u8-strcoll-tests: Likewise.
10853         * modules/unistr/u8-strcpy-tests: Likewise.
10854         * modules/unistr/u8-strdup-tests: Likewise.
10855         * modules/unistr/u8-strlen-tests: Likewise.
10856         * modules/unistr/u8-strmblen-tests: Likewise.
10857         * modules/unistr/u8-strmbtouc-tests: Likewise.
10858         * modules/unistr/u8-strncat-tests: Likewise.
10859         * modules/unistr/u8-strncmp-tests: Likewise.
10860         * modules/unistr/u8-strncpy-tests: Likewise.
10861         * modules/unistr/u8-strnlen-tests: Likewise.
10862         * modules/unistr/u8-to-u16-tests: Likewise.
10863         * modules/unistr/u8-to-u32-tests: Likewise.
10864         * modules/unistr/u8-uctomb-tests: Likewise.
10865         * modules/unistr/u16-check-tests: Likewise.
10866         * modules/unistr/u16-chr-tests: Likewise.
10867         * modules/unistr/u16-cmp-tests: Likewise.
10868         * modules/unistr/u16-cmp2-tests: Likewise.
10869         * modules/unistr/u16-cpy-alloc-tests: Likewise.
10870         * modules/unistr/u16-cpy-tests: Likewise.
10871         * modules/unistr/u16-mblen-tests: Likewise.
10872         * modules/unistr/u16-mbsnlen-tests: Likewise.
10873         * modules/unistr/u16-mbtouc-tests: Likewise.
10874         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
10875         * modules/unistr/u16-mbtoucr-tests: Likewise.
10876         * modules/unistr/u16-move-tests: Likewise.
10877         * modules/unistr/u16-next-tests: Likewise.
10878         * modules/unistr/u16-prev-tests: Likewise.
10879         * modules/unistr/u16-set-tests: Likewise.
10880         * modules/unistr/u16-stpcpy-tests: Likewise.
10881         * modules/unistr/u16-stpncpy-tests: Likewise.
10882         * modules/unistr/u16-strcat-tests: Likewise.
10883         * modules/unistr/u16-strcmp-tests: Likewise.
10884         * modules/unistr/u16-strcoll-tests: Likewise.
10885         * modules/unistr/u16-strcpy-tests: Likewise.
10886         * modules/unistr/u16-strdup-tests: Likewise.
10887         * modules/unistr/u16-strlen-tests: Likewise.
10888         * modules/unistr/u16-strmblen-tests: Likewise.
10889         * modules/unistr/u16-strmbtouc-tests: Likewise.
10890         * modules/unistr/u16-strncat-tests: Likewise.
10891         * modules/unistr/u16-strncmp-tests: Likewise.
10892         * modules/unistr/u16-strncpy-tests: Likewise.
10893         * modules/unistr/u16-strnlen-tests: Likewise.
10894         * modules/unistr/u16-to-u32-tests: Likewise.
10895         * modules/unistr/u16-to-u8-tests: Likewise.
10896         * modules/unistr/u16-uctomb-tests: Likewise.
10897         * modules/unistr/u32-check-tests: Likewise.
10898         * modules/unistr/u32-chr-tests: Likewise.
10899         * modules/unistr/u32-cmp-tests: Likewise.
10900         * modules/unistr/u32-cmp2-tests: Likewise.
10901         * modules/unistr/u32-cpy-alloc-tests: Likewise.
10902         * modules/unistr/u32-cpy-tests: Likewise.
10903         * modules/unistr/u32-mblen-tests: Likewise.
10904         * modules/unistr/u32-mbsnlen-tests: Likewise.
10905         * modules/unistr/u32-mbtouc-tests: Likewise.
10906         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
10907         * modules/unistr/u32-mbtoucr-tests: Likewise.
10908         * modules/unistr/u32-move-tests: Likewise.
10909         * modules/unistr/u32-next-tests: Likewise.
10910         * modules/unistr/u32-prev-tests: Likewise.
10911         * modules/unistr/u32-set-tests: Likewise.
10912         * modules/unistr/u32-stpcpy-tests: Likewise.
10913         * modules/unistr/u32-stpncpy-tests: Likewise.
10914         * modules/unistr/u32-strcat-tests: Likewise.
10915         * modules/unistr/u32-strcmp-tests: Likewise.
10916         * modules/unistr/u32-strcoll-tests: Likewise.
10917         * modules/unistr/u32-strcpy-tests: Likewise.
10918         * modules/unistr/u32-strdup-tests: Likewise.
10919         * modules/unistr/u32-strlen-tests: Likewise.
10920         * modules/unistr/u32-strmblen-tests: Likewise.
10921         * modules/unistr/u32-strmbtouc-tests: Likewise.
10922         * modules/unistr/u32-strncat-tests: Likewise.
10923         * modules/unistr/u32-strncmp-tests: Likewise.
10924         * modules/unistr/u32-strncpy-tests: Likewise.
10925         * modules/unistr/u32-strnlen-tests: Likewise.
10926         * modules/unistr/u32-to-u16-tests: Likewise.
10927         * modules/unistr/u32-to-u8-tests: Likewise.
10928         * modules/unistr/u32-uctomb-tests: Likewise.
10929         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
10930         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
10931         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
10932         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
10933         * modules/uniwidth/u8-strwidth-tests: Likewise.
10934         * modules/uniwidth/u8-width-tests: Likewise.
10935         * modules/uniwidth/u16-strwidth-tests: Likewise.
10936         * modules/uniwidth/u16-width-tests: Likewise.
10937         * modules/uniwidth/u32-strwidth-tests: Likewise.
10938         * modules/uniwidth/u32-width-tests: Likewise.
10939         * modules/uniwidth/width-tests: Likewise.
10940
10941 2010-05-18  Richard Jones  <rjones@redhat.com>
10942
10943         doc: users.txt: list hivex
10944         * users.txt: Add hivex.
10945
10946 2010-05-18  Richard Jones  <rjones@redhat.com>
10947
10948         doc: users.txt: list febootstrap
10949         * users.txt: Add febootstrap.
10950
10951 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
10952
10953         bootstrap: fix an error when gnulib is not used as a git submodule
10954         * build-aux/bootstrap (gnulib_path): If its length is zero then
10955         assign "gnulib" to it.
10956         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
10957
10958 2010-05-16  Bruno Haible  <bruno@clisp.org>
10959
10960         Avoid autoconf warnings about AM_ICONV.
10961         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
10962         2.64.
10963
10964 2010-05-16  Bruno Haible  <bruno@clisp.org>
10965
10966         absolute-header: Make the macro usable in more situations.
10967         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
10968         from gl_ABSOLUTE_HEADER.
10969         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
10970
10971 2010-05-16  James Youngman  <jay@gnu.org>
10972
10973         doc: update users.txt
10974         * users.txt: Add CSSC.
10975
10976 2010-05-16  Jim Meyering  <meyering@redhat.com>
10977
10978         init.sh: fix an error in the previous change; add more comments
10979         * tests/init.sh: Compare exit code in loop against 9, not 2.
10980         Patch by Bruno Haible.
10981         Make the two tests more similar by adding an empty "then" clause.
10982         Add comments.
10983
10984         init.sh: avoid unnecessary shell re-exec
10985         * tests/init.sh: Improve the re-exec-required check to first test the
10986         current shell.  If it passes the test, do not search for a shell that
10987         does pass, and do not re-exec.  This test is particularly contorted to
10988         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
10989         of $(...) evokes a syntax error and causes immediate shell exit with
10990         status 2.  Bruno Haible reported that the re-exec made it impossible
10991         to single-step through any init.sh-using script.
10992
10993 2010-05-16  Bruno Haible  <bruno@clisp.org>
10994
10995         Fix collision between gnulib's and libintl's printf replacements.
10996         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
10997         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
10998         (printf): When using GNU C, map the __printf__ function to rpl_printf
10999         via __asm__. When not using GNU C, define rpl_printf instead of
11000         __printf__.
11001         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
11002         commit.
11003         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
11004         commit.
11005         * m4/asm-underscore.m4: New file.
11006         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
11007         * modules/stdio (Files): Add m4/asm-underscore.m4.
11008         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
11009         Reported by Ben Pfaff.
11010
11011 2010-05-16  Bruno Haible  <bruno@clisp.org>
11012
11013         verify: Avoid skipping the test on openSUSE 11.0.
11014         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
11015
11016 2010-05-13  Bruno Haible  <bruno@clisp.org>
11017
11018         Avoid useless warnings from G++.
11019         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
11020         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
11021         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11022
11023 2010-05-11  Jim Meyering  <meyering@redhat.com>
11024
11025         maint.mk: tweak preceding change
11026         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
11027         regexps tighter by anchoring at EOL, and make the new group "shy"
11028         for slightly decreased overhead.
11029
11030 2010-05-11  Eric Blake  <eblake@redhat.com>
11031
11032         maint.mk: gnulib doesn't guarantee NSIG
11033         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
11034
11035 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11036
11037         test-pwrite.c: Remove unused variable declaration.
11038         * tests/test-pwrite.c (main): Remove read_buf declaration.
11039
11040         Remove useless test-pwrite.sh file.
11041         * tests/test-pwrite.sh: Delete file.
11042         * modules/pwrite-tests: Remove references.
11043         Reported by Bruno Haible.
11044
11045 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11046
11047         init.sh: fix a typo
11048         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
11049
11050 2010-05-10  Jim Meyering  <meyering@redhat.com>
11051
11052         maint.mk: avoid using a temporary file in the always-defined-macros check
11053         * top/maint.mk (.re-defmac): Remove rule.
11054         (gl_trap_): Remove definition.
11055         (sc_prohibit_always-defined_macros): Rewrite not to create and
11056         depend on a temporary file.  Instead, depend on GNU grep's ability
11057         to read a list of regular expressions from stdin when given "-f -".
11058
11059 2010-05-09  Bruno Haible  <bruno@clisp.org>
11060
11061         Update to GNU gettext 0.18, part 1.
11062         * m4/gettext.m4: Update to GNU gettext 0.18.
11063         * m4/intl.m4: Likewise.
11064         * m4/po.m4: Likewise.
11065         * modules/gettext (Files): Add m4/fcntl-o.m4.
11066         (configure.ac): Require gettext infrastructure from version 0.18.
11067
11068 2010-05-09  Jim Meyering  <meyering@redhat.com>
11069
11070         init.sh: enable MALLOC_PERTURB_
11071         * tests/init.sh: Enable glibc's malloc-perturbing option.
11072
11073         maint.mk: improve sc_cross_check_PATH_usage_in_tests
11074         With my recent change in init.sh from the two-line form:
11075             -#   : ${srcdir=.}
11076             -#   . "$srcdir/init.sh"; path_prepend_ .
11077             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
11078         I noticed that using the one-line form would cause this test
11079         to fail with a false-positive, or to stop working altogether,
11080         depending on whether help-version changed or all the tests did.
11081         * top/maint.mk (_hv_regex): Remove this definition.
11082         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
11083         (_hv_regex_strong): Use a stronger regex to check for conformance.
11084         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
11085         Give a separate diagnostic for lack of conforming use.
11086
11087         maint.mk: prohibit definition of symbols defined by gnulib
11088         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
11089         definition of symbols defined by gnulib.
11090
11091 2010-05-09  Bruno Haible  <bruno@clisp.org>
11092
11093         acl: Avoid test failure on Cygwin-hosted mingw.
11094         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
11095
11096 2010-05-09  Bruno Haible  <bruno@clisp.org>
11097
11098         error: Use system's fcntl function.
11099         * lib/error.c (fcntl): Undefine.
11100
11101 2010-05-09  Jim Meyering  <meyering@redhat.com>
11102
11103         verify: adjust formatting to be more consistent
11104         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
11105         argument-list '('s, and after one comma.
11106
11107 2010-05-09  Bruno Haible  <bruno@clisp.org>
11108
11109         error: More reliable output on mingw.
11110         * lib/error.c: Include <windows.h>.
11111         (is_open): New function.
11112         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
11113         defined.
11114
11115 2010-05-09  Bruno Haible  <bruno@clisp.org>
11116
11117         vasnprintf: Fix syntax errors in libintl build on mingw.
11118         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
11119         pad_ourselves and prec_ourselves after use.
11120
11121 2010-05-08  Bruno Haible  <bruno@clisp.org>
11122
11123         * lib/config.charset: Update comments for Cygwin 1.7.
11124         * lib/localcharset.c: Likewise.
11125
11126 2010-05-07  Jim Meyering  <meyering@redhat.com>
11127
11128         init.sh: improve comments
11129         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
11130         . "${srcdir=.}/init.sh"; path_prepend_ .
11131         Add a note about path_prepend_ and the alternative of using
11132         TESTS_ENVIRONMENT.
11133
11134 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11135
11136         exclude: Unescape hashed patterns in wildcard mode.
11137         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
11138         to the hash list.
11139         * tests/test-exclude8.sh: New test case.
11140         * modules/exclude-tests: Add new test.
11141
11142 2010-05-05  Eric Blake  <eblake@redhat.com>
11143
11144         verify: automate tests
11145         * modules/verify-tests: New module.
11146         * tests/test-verify.sh: New file.
11147         * tests/test-verify.c: Guard each negative test with a unique id.
11148         Also avoid warning about unused left hand of comma expressions.
11149
11150 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11151
11152         Further improvements to verify.h, suggested by Eric Blake.
11153         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
11154         the GL_* versions, to avoid collision with OpenGL.
11155         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
11156         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
11157         than testing merely whether it's defined.
11158
11159         Modify verify.h to pacify gcc -Wredundant_decls.
11160         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
11161         These use the prefix "GL_" since they're likely to be useful elsewhere.
11162         We may need to break them out into a different .h file.
11163         (__COUNTER__): Define to 0 if the compiler doesn't support it.
11164         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
11165         of verify_function__.
11166
11167 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11168
11169         Tests for module pwrite.
11170         * modules/pwrite-tests: New file.
11171         * tests/test-pwrite.sh: New file.
11172         * tests/test-pwrite.c: New file.
11173
11174         New module pwrite.
11175         * lib/unistd.in.h (pwrite): New declaration.
11176         * lib/pwrite.c: New file, from glibc with modifications.
11177         * m4/pwrite.m4: New file.
11178         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
11179         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
11180         REPLACE_PWRITE.
11181         * modules/pwrite: New file.
11182         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
11183         REPLACE_PWRITE.
11184         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
11185         * doc/posix-functions/pwrite.texi: Mention the new module.
11186
11187 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11188
11189         pread: Update documentation.
11190         * doc/posix-functions/pread.texi: Mention the 'pread' module.
11191
11192 2010-05-04  Eric Blake  <eblake@redhat.com>
11193
11194         docs: update cygwin progress
11195         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
11196         this bug.
11197         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
11198         Added in cygwin 1.7.2.
11199         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
11200         Likewise.
11201         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
11202         Likewise.
11203         * doc/glibc-functions/dup3.texi (dup3): Likewise.
11204         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11205         * doc/glibc-functions/accept4.texi (accept4): Likewise.
11206         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
11207         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
11208         Mention nproc module.
11209         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
11210         bug in cygwin 1.7.5 addition.
11211         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
11212         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
11213         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
11214         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
11215         1.7.5.
11216         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
11217         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
11218         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
11219         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
11220         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
11221         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
11222         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
11223         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
11224         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
11225         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
11226         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
11227         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
11228         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
11229         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
11230         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
11231         Likewise.
11232         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
11233         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
11234         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
11235         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
11236         Likewise.
11237         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
11238         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
11239         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
11240         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
11241         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
11242         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
11243         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
11244         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
11245         Likewise.
11246         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
11247         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
11248         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
11249         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
11250         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
11251         Likewise.
11252         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
11253         Likewise.
11254         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
11255         Likewise.
11256         * doc/glibc-functions/xdrrec_endofrecord.texi
11257         (xdrrec_endofrecord): Likewise.
11258         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
11259         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
11260         Likewise.
11261         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
11262         Likewise.
11263
11264 2010-05-04  Jim Meyering  <meyering@redhat.com>
11265
11266         gendocs.sh: make its "-s FILE" option more useful
11267         * build-aux/gendocs.sh: When honoring the -s FILE option, update
11268         $PACKAGE to reflect the probably-different basename of "FILE".
11269
11270 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11271
11272         bootstrap: don't ignore download_po_files failure
11273         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
11274         failure.
11275
11276 2010-05-03  Jim Meyering  <meyering@redhat.com>
11277
11278         maint.mk: allow to pass options to gendocs.sh
11279         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
11280         (gendocs_options_): New overridable variable.
11281
11282         gnu-web-doc-update: don't ignore configure or build failure
11283         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
11284
11285         announce-gen: backslash-escape '@'s in --help output
11286         * build-aux/announce-gen: Fix syntax errors.
11287
11288         maint.mk, announce-gen: allow project-specific announcement mail headers
11289         * top/maint.mk (translation_project_): Define default.
11290         (announcement_Cc_, announcement_mail_headers_): Likewise.
11291         (announcement): Invoke announce-gen with new --mail-headers option.
11292         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
11293
11294         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
11295         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
11296         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
11297         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
11298         line in the "err2" output file when running "make check" in verbose
11299         mode (i.e., with set -x enabled).
11300
11301 2010-05-03  Bruno Haible  <bruno@clisp.org>
11302
11303         wctob: Fix for weird platforms.
11304         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
11305         argument value.
11306
11307 2010-05-03  Jim Meyering  <meyering@redhat.com>
11308
11309         maint.mk: prohibit unwarranted use of <strings.h>
11310         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
11311         strings.h in a file that does not also use strcasecmp, strncasecmp,
11312         ffs or ffsll.
11313
11314         maint.mk: remove obsolete comments
11315         * top/maint.mk: Remove stale, commented-out rules.
11316
11317 2010-05-02  Bruno Haible  <bruno@clisp.org>
11318
11319         wcwidth: Declare also when it's aliased.
11320         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
11321         macro.
11322
11323 2010-05-02  Bruno Haible  <bruno@clisp.org>
11324
11325         Fix regression from 2010-04-25.
11326         * gnulib-tool (func_modules_transitive_closure): Check the status of
11327         all modules, not only of the tests that are of the form foo-tests where
11328         foo is a module.
11329
11330 2010-05-02  Bruno Haible  <bruno@clisp.org>
11331
11332         wctob: Work around nasty Cygwin 1.7.2 bug.
11333         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
11334         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
11335
11336 2010-05-01  Bruno Haible  <bruno@clisp.org>
11337
11338         fpurge: Sharper test.
11339         * tests/test-fpurge.c (main): Add one more ftell check.
11340         * modules/fpurge-tests (Depends-on): Add ftell.
11341         Suggested by Eric Blake.
11342
11343 2010-05-01  Bruno Haible  <bruno@clisp.org>
11344
11345         ftello: Another test.
11346         * tests/test-ftello3.c: New file.
11347         * modules/ftello-tests (Files): Add it.
11348         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11349         MOSTLYCLEANFILES.
11350
11351         ftell: Another test.
11352         * tests/test-ftell3.c: New file.
11353         * modules/ftell-tests (Files): Add it.
11354         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11355         MOSTLYCLEANFILES.
11356
11357 2010-05-01  Bruno Haible  <bruno@clisp.org>
11358
11359         ftell, ftello: Work around Solaris bug.
11360         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
11361         * lib/ftello.c: Include stdio-impl.h.
11362         (ftello): On Solaris, when _IOWRT is set, compute the result without
11363         looking at _IOREAD.
11364         * modules/ftello (Files): Add lib/stdio-impl.h.
11365         * doc/posix-functions/ftell.texi: Mention Solaris bug.
11366         * doc/posix-functions/ftello.texi: Likewise.
11367         Reported by Eric Blake.
11368
11369 2010-05-01  Bruno Haible  <bruno@clisp.org>
11370
11371         freading: Adapt to special meaning of _IOREAD flag on Solaris.
11372         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
11373         the _IOWRT flag is also set.
11374
11375 2010-05-01  Bruno Haible  <bruno@clisp.org>
11376
11377         Fix doc about a HP-UX stdio bug.
11378         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
11379         * doc/posix-functions/ftello.texi: Likewise.
11380
11381 2010-05-01  Bruno Haible  <bruno@clisp.org>
11382
11383         lseek test: Fix failure on Solaris.
11384         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
11385         output.
11386
11387 2010-04-30  Jim Meyering  <meyering@redhat.com>
11388
11389         bootstrap: don't ignore failure to generate po*/Makevars
11390         * build-aux/bootstrap (with_gettext): Don't ignore failure
11391         to create po/Makevars or runtime-po/Makevars.
11392
11393 2010-04-29  Eric Blake  <eblake@redhat.com>
11394
11395         headers: relax license to LGPLv2+
11396         * modules/fcntl-h (License): Relax license.
11397         * modules/getopt-posix (License): Likewise.
11398         * modules/locale (License): Likewise.
11399         * modules/math (License): Likewise.
11400         * modules/pty (License): Likewise.
11401         * modules/sched (License): Likewise.
11402         * modules/search (License): Likewise.
11403         * modules/spawn (License): Likewise.
11404         * modules/stdarg (License): Likewise.
11405         * modules/sysexits (License): Likewise.
11406
11407 2010-04-29  Jim Meyering  <meyering@redhat.com>
11408
11409         inttypes: relax license to LGPLv2+
11410         * modules/inttypes (License): Relax license.
11411
11412 2010-04-29  Simon Josefsson  <simon@josefsson.org>
11413
11414         * top/maint.mk (indent): Run twice to produce idempotent results.
11415
11416 2010-04-28  Bruno Haible  <bruno@clisp.org>
11417
11418         getdate: Generate getdate.c in the source directory.
11419         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
11420         MOSTLYCLEANFILES.
11421         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
11422
11423 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
11424
11425         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
11426         is not declared as a const *; avoid warnings in that case.
11427
11428 2010-04-28  Eric Blake  <eblake@redhat.com>
11429
11430         canonicalize-lgpl: avoid compiler warning
11431         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
11432         declaration' / 'extraneous semicolon' warning with some compilers.
11433         Reported by Andreas Gruenbacher.
11434
11435 2010-04-28  Jim Meyering  <meyering@redhat.com>
11436
11437         init.sh: ensure a more reliable exit status when exiting via trap
11438         * tests/init.sh (setup_): Don't rely on $? in signal handler.
11439         Inspired by patches from Dmitry V. Levin.
11440         Also trap on signal 3 (SIGQUIT).
11441
11442 2010-04-27  Bruno Haible  <bruno@clisp.org>
11443
11444         Update doc about utimes().
11445         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
11446         'utimens' module.
11447         Reported by Andreas Gruenbacher <agruen@suse.de>.
11448
11449 2010-04-27  Eric Blake  <eblake@redhat.com>
11450
11451         full-read, full-write: relax license
11452         * modules/full-read (License): Drop to LGPLv2+.
11453         * modules/full-write (License): Likewise.
11454         * modules/safe-read (License): Likewise.
11455         * modules/safe-write (License): Likewise.
11456
11457         pthread: mention library for linking
11458         * modules/pthread (Link): Mention $(LIB_PTHREAD).
11459
11460 2010-04-27  Jim Meyering  <meyering@redhat.com>
11461
11462         maint.mk: fix a bug introduced in last change
11463         * top/maint.mk (gl_assured_headers_): Now that all names are on
11464         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
11465         is not anchored to end of word, it should be adequate.
11466
11467         maint.mk: avoid side-effect in latest syntax-check
11468         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
11469         to run commands via $(shell...), and hence to incur cost only when
11470         the new rule is actually run.
11471
11472         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
11473         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
11474         and use that to create a regexp used to detect all #if HAVE_..._H uses.
11475         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
11476         (gl_assured_headers_, az_, AZ_): Define.
11477         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
11478
11479 2010-04-26  Jim Meyering  <jim@meyering.net>
11480             Bruno Haible  <bruno@clisp.org>
11481
11482         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
11483         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
11484         Prompted by an exchange with Gilles Espinasse.
11485
11486 2010-04-26  Jim Meyering  <meyering@redhat.com>
11487
11488         git-version-gen: aesthetic tweak
11489         * build-aux/git-version-gen: Use "$nl" rather than a literal,
11490         so that the command remains on a single line.
11491
11492 2010-04-26  Eric Blake  <eblake@redhat.com>
11493
11494         git-version-gen: allow use on EBCDIC hosts
11495         * build-aux/git-version-gen (dirty): Use literal rather than tying
11496         ourselves to ascii.
11497         Reported by Steve Goetze.
11498
11499 2010-04-25  Bruno Haible  <bruno@clisp.org>
11500
11501         netdb: Add support for GNULIB_POSIXCHECK.
11502         * lib/netdb.in.h: Include warn-on-use.h.
11503         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
11504         functions are used when GNULIB_POSIXCHECK is defined and the
11505         getaddrinfo module is not in use.
11506         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
11507         freeaddrinfo, gai_strerror, getnameinfo are declared.
11508         * modules/netdb (Depends-on): Add warn-on-use.
11509         (Makefile.am): Include warn-on-use.h in netdb.h.
11510
11511 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
11512
11513         build: avoid "make check" failure without .git/ directory
11514         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
11515         there is no .git/ directory.
11516
11517 2010-04-25  Bruno Haible  <bruno@clisp.org>
11518
11519         ptsname: Fix misuse of ttyname_r.
11520         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
11521         of errno.
11522
11523 2010-04-25  Bruno Haible  <bruno@clisp.org>
11524
11525         ttyname_r: Make it work on Solaris 10.
11526         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
11527         if the system function has the POSIX declaration. Test whether the
11528         function fails if the buffer is less than 128 bytes large.
11529         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
11530         system's ttyname_r function. Provide a reasonably large buffer.
11531         * modules/ttyname_r (Depends-on): Add extensions.
11532         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
11533
11534 2010-04-25  Bruno Haible  <bruno@clisp.org>
11535
11536         Use the 'extensions' module for some more functions on Solaris.
11537         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
11538         module.
11539         * doc/posix-functions/ctime_r.texi: Likewise.
11540         * doc/posix-functions/getgrgid_r.texi: Likewise.
11541         * doc/posix-functions/getgrnam_r.texi: Likewise.
11542         * doc/posix-functions/getpwnam_r.texi: Likewise.
11543         * doc/posix-functions/getpwuid_r.texi: Likewise.
11544         * doc/posix-functions/readdir_r.texi: Likewise.
11545         * doc/posix-functions/sigwait.texi: Likewise.
11546         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
11547         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
11548
11549 2010-04-25  Bruno Haible  <bruno@clisp.org>
11550
11551         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
11552         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
11553         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
11554         * lib/ttyname_r.c: Include <limits.h>.
11555         (ttyname_r): Define using the system's ttyname_r function, if it exists
11556         and not on Solaris.
11557         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
11558         set.
11559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
11560         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
11561         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
11562         Reported by Simon Josefsson.
11563
11564 2010-04-25  Bruno Haible  <bruno@clisp.org>
11565
11566         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
11567         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
11568         * doc/posix-functions/ctime_r.texi: Likewise.
11569         * doc/posix-functions/getgrgid_r.texi: Likewise.
11570         * doc/posix-functions/getgrnam_r.texi: Likewise.
11571         * doc/posix-functions/getlogin_r.texi: Likewise.
11572         * doc/posix-functions/getpwnam_r.texi: Likewise.
11573         * doc/posix-functions/getpwuid_r.texi: Likewise.
11574         * doc/posix-functions/readdir_r.texi: Likewise.
11575         * doc/posix-functions/sigwait.texi: Likewise.
11576         * doc/posix-functions/ttyname_r.texi: Likewise.
11577         Reported by Simon Josefsson.
11578
11579 2010-04-25  Bruno Haible  <bruno@clisp.org>
11580
11581         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
11582         * gnulib-tool (func_usage): Document that --with-*-tests options apply
11583         also to --create-testdir.
11584         (func_acceptable): Don't consider the status of *-tests modules here.
11585         (func_modules_transitive_closure): Consider it here, before including a
11586         test module.
11587         (func_import, func_create_testdir): Set inc_all_direct_tests,
11588         inc_all_indirect_tests.
11589         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
11590         --create-testdir and --create-megatestdir.
11591
11592 2010-04-25  Bruno Haible  <bruno@clisp.org>
11593
11594         gnulib-tool: Add --without-*-tests options.
11595         * gnulib-tool (func_usage): Document the --without-*-tests options.
11596         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
11597         excl_unportable_tests): New variables.
11598         Fail if they are specified with --import or --update.
11599         (func_acceptable): Respect the excl_*_tests variables.
11600         (func_import): Set the excl_*_tests variables to empty.
11601
11602 2010-04-25  Simon Josefsson  <simon@josefsson.org>
11603             Bruno Haible  <bruno@clisp.org>
11604
11605         Work around a MacOS X 10.4 bug with openpty.
11606         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
11607         * tests/test-openpty.c (main): Close the master side explicitly.
11608
11609 2010-04-25  Bruno Haible  <bruno@clisp.org>
11610
11611         strnlen: Fix a C++ test error on MacOS X and Solaris.
11612         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
11613         the function is not declared.
11614         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
11615         Simon Josefsson.
11616
11617 2010-04-24  Bruno Haible  <bruno@clisp.org>
11618
11619         Avoid a gcc warning.
11620         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
11621         of correct type for %08lx directive.
11622         Reported by Eric Blake.
11623
11624 2010-04-24  Bruno Haible  <bruno@clisp.org>
11625
11626         vasnprintf: Correct errno value in case of out-of-memory.
11627         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
11628         or sprintf. Use the errno value from SNPRINTF or sprintf.
11629         Reported by Ian Beckwith <ianb@erislabs.net>.
11630
11631 2010-04-24  Bruno Haible  <bruno@clisp.org>
11632
11633         ansi-c++-opt: Find correct compiler when cross-compiling.
11634         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
11635         AC_CHECK_PROGS.
11636         Reported by Simon Josefsson.
11637
11638 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
11639
11640         vc-list-files: Add support for subversion
11641         * build-aux/vc-list-files: Use "svn list" to generate the list of
11642         files controlled by subversion.
11643
11644 2010-04-23  Jim Meyering  <meyering@redhat.com>
11645
11646         vc-list-files tests: convert to use init.sh
11647         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
11648         path_prepend_.
11649         Use Exit, not exit.
11650         Use skip_ rather than open coding it.
11651         Remove trap set-up and compare definitions.
11652         * tests/test-vc-list-files-git.sh: Likewise.
11653         * modules/vc-list-files-tests (Files): Add tests/init.sh.
11654
11655 2010-04-22  Simon Josefsson  <simon@josefsson.org>
11656
11657         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
11658         backup files.
11659
11660 2010-04-21  Simon Josefsson  <simon@josefsson.org>
11661
11662         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
11663
11664 2010-04-20  Eric Blake  <eblake@redhat.com>
11665
11666         tests: be robust to ignored SIGPIPE
11667         * tests/test-select-in.sh: Consume all output.
11668         * tests/test-lseek.sh: Check correct exit status, while avoiding
11669         EPIPE.
11670
11671 2010-04-20  Simon Josefsson  <simon@josefsson.org>
11672             Bruno Haible  <bruno@clisp.org>
11673
11674         visibility: Don't use -fvisibility if it leads to a warning.
11675         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
11676         yes, don't pretend that visibility works if it leads to a warning.
11677         Reported by Mike Gran <spk121@yahoo.com>.
11678
11679 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
11680
11681         * build-aux/bootstrap: Use "git -h" for testing for supported options
11682         instead of "git --help".  The short-form option only shows a summary,
11683         and doesn't layout the full man page.  Grep for the full option name
11684         in the summary, too.
11685
11686 2010-04-19  Bruno Haible  <bruno@clisp.org>
11687
11688         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
11689         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
11690         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
11691         mention of RELOCATABLE_STRIP.
11692         Reported by Sylvain Beucler <beuc@beuc.net>.
11693
11694 2010-04-19  Bruno Haible  <bruno@clisp.org>
11695
11696         * lib/diffseq.h: Fix typo in comment.
11697         Reported by Eric Blake.
11698
11699 2010-04-19  Bruno Haible  <bruno@clisp.org>
11700
11701         ioctl: Move autoconf macro to a .m4 file.
11702         * m4/ioctl.m4: New file, extracted from modules/ioctl.
11703         * modules/ioctl (Files): Add it.
11704         (configure.ac): Simply invoke gl_FUNC_IOCTL.
11705         Reported by Ian Beckwith <ianb@erislabs.net>.
11706
11707 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
11708             Bruno Haible  <bruno@clisp.org>
11709
11710         diffseq: Accommodate use-case with abstract arrays.
11711         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
11712         is not defined.
11713         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
11714         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
11715
11716 2010-04-18  Bruno Haible  <bruno@clisp.org>
11717
11718         * doc/posix-headers/stdbool.texi: More precise wording.
11719
11720 2010-04-17  Jim Meyering  <meyering@redhat.com>
11721
11722         maint.mk: use gnu-style indentation in an embedded perl script
11723         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
11724         Rename variable: s/two/last_two_bytes/
11725
11726 2010-04-16  Eric Blake  <eblake@redhat.com>
11727
11728         test-stdbool: skip test that fails with Solaris CC
11729         * tests/test-stdbool.c (f): Skip test that causes compilation
11730         error under buggy C++ compiler.
11731         * lib/stdbool.in.h: Document the limitation.
11732         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
11733
11734         setenv: allow compilation with C++
11735         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
11736         register keyword.
11737
11738         stdint: allow test to pass with C++
11739         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
11740
11741         getopt: allow compilation with C++
11742         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
11743         struct.
11744         * lib/getopt.c (_getopt_internal_r): Use correct type.
11745         Reported by Dagobert Michelson, via Joel E. Denny.
11746
11747 2010-04-16  Bruno Haible  <bruno@clisp.org>
11748
11749         Override netdb.h always.
11750         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
11751         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
11752         Reported by Ludovic Courtès <ludo@gnu.org>.
11753
11754 2010-04-15  Bruno Haible  <bruno@clisp.org>
11755
11756         openpty: Fix mistake from 2010-03-21.
11757         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
11758         Reported by Simon Josefsson.
11759
11760 2010-04-15  Eric Blake  <eblake@redhat.com>
11761
11762         test-forkpty: fix expected signature
11763         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
11764         Reported by Simon Josefsson.
11765
11766 2010-04-15  Jim Meyering  <meyering@redhat.com>
11767
11768         maint.mk: texinfo_suffix_re_: correct the default regexp
11769         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
11770
11771         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
11772         make it configurable via texinfo_suffix_re_.
11773
11774 2010-04-14  Eric Blake  <eblake@redhat.com>
11775
11776         strtok_r: relax license to LGPLv2+
11777         * modules/strtok_r (License): Relax license.
11778         Reported by Matthias Bolte.
11779
11780 2010-04-14  Simon Josefsson  <simon@josefsson.org>
11781
11782         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
11783         version 1.4.4 by default instead of requiring the libgcrypt
11784         version used during build.  This makes it possible to use the
11785         application with older but still binary compatible libgcrypt
11786         versions.
11787
11788 2010-04-13  Eric Blake  <eblake@redhat.com>
11789
11790         getopt-gnu: match recent glibc fixes and posix ruling
11791         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
11792         '+' handling, when requesting extensions.
11793         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
11794         'W;' handling.
11795         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
11796         * doc/posix-functions/getopt.texi (getopt): Document this.
11797         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11798         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11799         Likewise.
11800
11801         getopt: merge bug fixes from glibc
11802         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
11803         diagnostics.  Honor '+:' correctly.  Reject ';'.
11804
11805         getopt-posix: detect MacOS bug
11806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
11807         optind when missing a required argument.
11808         * doc/posix-functions/getopt.texi (getopt): Document the bug.
11809         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11810         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11811         Likewise.
11812
11813         getopt-posix: avoid spurious failure on Solaris
11814         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
11815         an indicator that setting optind=1 is sufficient for reset.
11816
11817         getopt-posix: avoid spurious failure on FreeBSD
11818         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
11819         in POSIX mode, since the m4 test uses it.
11820
11821         gnulib-tool: silence warning on BSD sh
11822         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
11823
11824 2010-04-13  Jim Meyering  <meyering@redhat.com>
11825
11826         doc: users.txt: GNU patch now uses gnulib
11827         * users.txt: Add patch.
11828
11829 2010-04-12  Jim Meyering  <meyering@redhat.com>
11830
11831         maint.mk: generate more concise timing data for syntax-check rules
11832         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
11833         " done" from each line that reports a syntax-check test duration.
11834
11835 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
11836
11837         git-version-gen: use "git update-index..." rather than "git status"
11838         * build-aux/git-version-gen: Use git update-index --refresh, not
11839         "git status".  With some versions of git, "git status" would fail
11840         to update the index and result in an unwarranted "-dirty" suffix.
11841
11842 2010-04-11  Jim Meyering  <meyering@redhat.com>
11843
11844         openat: correct formatting (no semantic change)
11845         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
11846         Suggested by Bruno Haible.
11847
11848 2010-04-11  Bruno Haible  <bruno@clisp.org>
11849
11850         Stricter declaration checking in testdirs.
11851         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11852         If for_tests is true, augment AM_CPPFLAGS to define
11853         GNULIB_STRICT_CHECKING.
11854         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
11855         GNULIB_STRICT_CHECKING is defined, verify that the function is
11856         declared.
11857
11858 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
11859             Bruno Haible  <bruno@clisp.org>
11860
11861         libunistring: Improve configure output.
11862         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
11863         Don't say "consider installing GNU libunistring" when checking again
11864         with libiconv.
11865
11866 2010-04-11  Bruno Haible  <bruno@clisp.org>
11867
11868         libunistring: Correct value of $LTLIBUNISTRING.
11869         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
11870         correct the value of $LTLIBUNISTRING.
11871
11872 2010-04-11  Bruno Haible  <bruno@clisp.org>
11873
11874         havelib: Add static libraries to LIBS in the right order.
11875         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
11876         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
11877
11878 2010-04-11  Bruno Haible  <bruno@clisp.org>
11879
11880         libunistring: Detect libunistring also when it depends on libiconv.
11881         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
11882         the second AC_LIB_HAVE_LINKFLAGS invocation.
11883
11884 2010-04-11  James Youngman  <jay@gnu.org>
11885
11886         close-stream: declare local scalars to be "const"
11887         * lib/close-stream.c (close_stream): Make boolean variables const
11888         to document the fact that we set but do not change them.
11889
11890 2010-04-11  Bruno Haible  <bruno@clisp.org>
11891
11892         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
11893
11894 2010-04-11  Jim Meyering  <meyering@redhat.com>
11895
11896         maint.mk: don't include dist-check.mk
11897         * top/maint.mk: Remove bogus include directive.
11898
11899         maint.mk: improve empty-line-at-EOF check
11900         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
11901         solution, rather than tail+Perl-based one.  The latter would read
11902         a few kilobytes from the end of each file, and did not handle empty
11903         files properly.
11904
11905         maint.mk: print the elapsed time for each syntax-check rule
11906         * top/maint.mk (sc_m_rules_): Save start time in a file.
11907         (sc_z_rules_): New rules: remove temp file and print elapsed time.
11908         (local-check): Interpose the .z rules
11909
11910 2010-04-11  Jim Meyering  <meyering@redhat.com>
11911
11912         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
11913         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
11914         empty file with one that ends in an empty line.
11915
11916 2010-04-10  Bruno Haible  <bruno@clisp.org>
11917
11918         mkdir: Make it work on mingw64.
11919         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
11920         * lib/mkdir.c: Update comment.
11921         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
11922
11923 2010-04-10  Bruno Haible  <bruno@clisp.org>
11924
11925         Don't override improved macro from newer autoconf.
11926         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
11927         autoconf >= 2.62.
11928         Reported by Joel E. Denny <jdenny@clemson.edu>.
11929
11930 2010-04-10  Jim Meyering  <meyering@redhat.com>
11931
11932         maint.mk: new syntax-check rule: prohibit empty lines at end of file
11933         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
11934
11935         maint.mk: correct a diagnostic
11936         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
11937         in diagnostic; now use $prohibit.
11938
11939 2010-04-10  Bruno Haible  <address@hidden>
11940
11941         fchownat: Fix a C++ test error on Solaris 8.
11942         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
11943         the function does not exist.
11944
11945 2010-04-10  Bruno Haible  <bruno@clisp.org>
11946
11947         vasnprintf: Add more tests.
11948         * tests/test-vasnprintf-posix.c: Include <errno.h>.
11949         (test_function): Test converting an invalid wide string.
11950
11951         vasnprintf: Correct handling of unconvertible wide string arguments.
11952         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
11953         VASNPRINTF.
11954         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
11955         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
11956         smaller than the expected maximum need for the directive. Set errno to
11957         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
11958         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
11959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
11960         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
11961         * modules/vasnprintf (Files): Add m4/printf.m4.
11962         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11963
11964 2010-04-10  Bruno Haible  <bruno@clisp.org>
11965
11966         vasnprintf: Fix crash in %ls directive.
11967         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
11968         string is passed as argument to %ls, with no precision and no width.
11969         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11970
11971 2010-04-10  Bruno Haible  <bruno@clisp.org>
11972
11973         vasnprintf: Fix multiple test failures on mingw.
11974         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
11975         _snprintf, or snwprintf, not _snwprintf.
11976
11977 2010-04-10  Bruno Haible  <bruno@clisp.org>
11978
11979         write: Fix a C++ test error on mingw.
11980         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
11981
11982 2010-04-10  Bruno Haible  <bruno@clisp.org>
11983
11984         vasnprintf test: Reduce code duplication.
11985         * tests/test-vasnprintf.c (test_function): New function, extracted from
11986         test_vasnprintf.
11987         (test_vasnprintf, test_asnprintf): Invoke it.
11988
11989 2010-04-10  Bruno Haible  <bruno@clisp.org>
11990
11991         strnlen: Fix warning in C++ mode on MacOS X.
11992         * lib/string.in.h (strnlen): Use the modern idiom.
11993         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
11994         defining strnlen as a macro already in <config.h>.
11995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11996         REPLACE_STRNLEN.
11997         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
11998         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11999
12000 2010-04-08  James Youngman  <jay@gnu.org>
12001
12002         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
12003         the example.
12004
12005 2010-04-09  Jim Meyering  <meyering@redhat.com>
12006
12007         maint.mk: print better diagnostic when there is no $(_hv_file)
12008         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
12009         announce that when $(_hv_file) (aka help-version) does not exist.
12010
12011         init.sh: run tr in the "C" locale to avoid multibyte interpretation
12012         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
12013         not try to interpret its random input bytes.  Jarno Rajahalme reported
12014         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
12015         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
12016         (mktempd_): Likewise, just in case.
12017
12018         ftruncate: add two years to projected module removal date: 2012
12019         * m4/ftruncate.m4: Adjust comments.
12020
12021         ftruncate: mark module as obsolete; even MinGW provides it, now
12022         * modules/ftruncate (Status): Obsolete.
12023         (Notice): Say that.
12024         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
12025         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
12026
12027 2010-04-08  Bruno Haible  <bruno@clisp.org>
12028
12029         Fix side effects from tests-related modules.
12030         * modules/dprintf-posix (Comment): New section.
12031         * modules/fprintf-posix (Comment): Likewise.
12032         * modules/obstack-printf-posix (Comment): Likewise.
12033         * modules/printf-posix (Comment): Likewise.
12034         * modules/snprintf-posix (Comment): Likewise.
12035         * modules/sprintf-posix (Comment): Likewise.
12036         * modules/vasnprintf-posix (Comment): Likewise.
12037         * modules/vasprintf-posix (Comment): Likewise.
12038         * modules/vdprintf-posix (Comment): Likewise.
12039         * modules/vfprintf-posix (Comment): Likewise.
12040         * modules/vprintf-posix (Comment): Likewise.
12041         * modules/vsnprintf-posix (Comment): Likewise.
12042         * modules/vsprintf-posix (Comment): Likewise.
12043         * modules/xprintf-posix (Comment): Likewise.
12044         * modules/xvasprintf-posix (Comment): Likewise.
12045         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
12046         * modules/floorf-tests (Depends-on): Likewise.
12047         * modules/round-tests (Depends-on): Likewise.
12048         * modules/roundf-tests (Depends-on): Likewise.
12049         * modules/trunc-tests (Depends-on): Likewise.
12050         * modules/truncf-tests (Depends-on): Likewise.
12051         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
12052         'fprintf-posix' module is not present.
12053         * tests/test-floorf2.c (check): Likewise.
12054         * tests/test-trunc2.c (check): Likewise.
12055         * tests/test-truncf2.c (check): Likewise.
12056         * tests/test-round2.c (equal): Likewise.
12057         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12058
12059 2010-04-07  Karl Berry  <karl@gnu.org>
12060
12061         * config/srclist.txt,
12062         * config/srclistvars.sh,
12063         * config/srclist-update: doc fixes.
12064
12065 2010-04-07  Jim Meyering  <meyering@redhat.com>
12066
12067         maint.mk: add a PATH crosschecking syntax-check rule
12068         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
12069         Useful if you use a test like the one in help-version (coreutils,
12070         diffutils, grep, gzip) that ensures $(VERSION) matches what is
12071         printed by prog --version.
12072
12073 2010-04-06  Bruno Haible  <bruno@clisp.org>
12074
12075         Fix link error on mingw.
12076         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
12077         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
12078
12079 2010-04-06  Bruno Haible  <bruno@clisp.org>
12080
12081         Assume rmdir exists.
12082         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
12083
12084 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
12085
12086         doc: update users.txt
12087         * users.txt: Add gcal.
12088
12089 2010-04-06  Jim Meyering  <meyering@redhat.com>
12090
12091         init.sh: simply unset TMPDIR rather than risking env -i
12092         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
12093         although it probably works fine on all Unix-based systems, some
12094         systems (Cygwin?) cannot tolerate a totally cleared environment.
12095         Suggestion from Eric Blake.
12096
12097 2010-04-06  Jim Meyering  <meyering@redhat.com>
12098
12099         init.sh: portability fix: use env's POSIX-specified -i option not -u
12100         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
12101         than unportable env -u.  Solaris 5.11's env lacks support for -u.
12102
12103 2010-04-05  Bruno Haible  <bruno@clisp.org>
12104
12105         btowc: Work around Cygwin 1.7.2 bug.
12106         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
12107         does not map NUL to 0.
12108         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
12109
12110 2010-04-05  Bruno Haible  <bruno@clisp.org>
12111
12112         Make the multithread modules work on Cygwin 1.7.2.
12113         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
12114         imported symbols can be declared weak, so that it returns "no" on
12115         Cygwin 1.7.2.
12116
12117 2010-04-05  Bruno Haible  <bruno@clisp.org>
12118
12119         Use the module 'strncat'.
12120         * modules/unistr/u8-strncat (Depends-on): Add strncat.
12121
12122         Tests for module 'strncat'.
12123         * modules/strncat-tests: New file.
12124         * tests/test-strncat.c: New file.
12125
12126         New module 'strncat'.
12127         * lib/string.in.h (strncat): New declaration.
12128         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
12129         * m4/strncat.m4: New file, based on m4/memchr.m4.
12130         * modules/strncat: New file.
12131         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
12132         is declared.
12133         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
12134         REPLACE_STRNCAT.
12135         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
12136         REPLACE_STRNCAT.
12137         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
12138         module.
12139         * tests/test-string-c++.cc: Check signature of strncat.
12140
12141 2010-04-05  Jim Meyering  <meyering@redhat.com>
12142
12143         xstrtoumax-tests: convert to use init.sh
12144         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
12145         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12146         Use Exit, not exit.
12147         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12148
12149         xstrtoimax-tests: convert to use init.sh
12150         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
12151         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12152         Use Exit, not exit.
12153         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12154
12155 2010-04-05  Bruno Haible  <bruno@clisp.org>
12156
12157         sys_socket: Avoid #define replacements in C++ mode.
12158         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
12159         warning to the function if possible, rather than #defining the symbol
12160         to a dysfunctional alias.
12161
12162 2010-04-05  Bruno Haible  <bruno@clisp.org>
12163
12164         fseeko: Fix C++ test error on mingw.
12165         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
12166         gl_FUNC_FSEEKO.
12167         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
12168         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
12169         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
12170         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
12171
12172 2010-04-05  Bruno Haible  <bruno@clisp.org>
12173
12174         duplocale: Improve test output.
12175         * tests/test-duplocale.c (main): Print reason for skipped test.
12176
12177 2010-04-05  Bruno Haible  <bruno@clisp.org>
12178
12179         Assume rmdir exists.
12180         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
12181         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
12182
12183 2010-04-05  Bruno Haible  <bruno@clisp.org>
12184
12185         Fix link error on Solaris 8 with cc.
12186         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
12187
12188 2010-04-05  Bruno Haible  <bruno@clisp.org>
12189
12190         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12191         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
12192
12193 2010-04-05  Bruno Haible  <bruno@clisp.org>
12194
12195         vasprintf: Update documentation.
12196         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
12197
12198 2010-04-05  Bruno Haible  <bruno@clisp.org>
12199
12200         ptsname: Improve test.
12201         * tests/test-ptsname.c (main): Also try the various master names of BSD
12202         systems.
12203
12204 2010-04-05  Bruno Haible  <bruno@clisp.org>
12205
12206         memchr: Avoid a possible C++ test error.
12207         * lib/string.in.h (memchr): Provide declaration if function is missing.
12208         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
12209         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
12210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
12211         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
12212
12213 2010-04-05  Bruno Haible  <bruno@clisp.org>
12214
12215         strtok_r: Improve idiom.
12216         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
12217         AC_LIBOBJ is used.
12218
12219 2010-04-05  Bruno Haible  <bruno@clisp.org>
12220
12221         strdup: Improve idiom.
12222         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
12223         AC_LIBOBJ is used.
12224         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
12225         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
12226         when AC_LIBOBJ is used.
12227
12228 2010-04-05  Bruno Haible  <bruno@clisp.org>
12229
12230         mbsinit, mbrtowc, wcrtomb: Improve idioms.
12231         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
12232         don't set REPLACE_MBSINIT to 1.
12233         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
12234         don't set REPLACE_MBRTOWC to 1.
12235         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
12236         exist, don't set REPLACE_MBSRTOWCS to 1.
12237         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
12238         exist, don't set REPLACE_MBSNRTOWCS to 1.
12239         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
12240         don't set REPLACE_WCRTOMB to 1.
12241         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
12242         exist, don't set REPLACE_WCSRTOMBS to 1.
12243         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
12244         exist, don't set REPLACE_WCSNRTOMBS to 1.
12245
12246 2010-04-05  Bruno Haible  <bruno@clisp.org>
12247
12248         ldexpl: Improve idiom.
12249         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
12250         make sure to set HAVE_DECL_LDEXPL to 0.
12251
12252 2010-04-05  Jim Meyering  <meyering@redhat.com>
12253
12254         xstrtol-tests: convert to use init.sh
12255         * modules/xstrtol-tests (Files): Add tests/init.sh.
12256         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12257         Use Exit, not exit.
12258         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12259
12260         atexit-tests: convert to use init.sh
12261         * modules/atexit-tests (Files): Add tests/init.sh.
12262         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12263         Use Exit, not exit.
12264         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12265
12266         init.sh: fix typo
12267         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
12268
12269         init.sh: make it easier for a test script to write to the tty, ...
12270         when using automake's parallel-tests mode.
12271         * tests/init.sh (stderr_fileno_): Define overridable variable.
12272         (warn_): New function, to use it.
12273         (fail_, skip_, framework_failure_): Use warn_.
12274
12275 2010-04-04  Bruno Haible  <bruno@clisp.org>
12276
12277         btowc: Avoid warning.
12278         * lib/btowc.c: Include <stdlib.h>.
12279         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
12280
12281 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12282             Bruno Haible  <bruno@clisp.org>
12283
12284         wchar: Port to NetBSD 1.5.
12285         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
12286         * lib/wctype.in.h (WEOF): Likewise.
12287
12288 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12289             Bruno Haible  <bruno@clisp.org>
12290
12291         Port extended stdio to NetBSD 1.5.
12292         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
12293         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
12294         older.
12295
12296 2010-04-04  Bruno Haible  <bruno@clisp.org>
12297
12298         string: Remove unused substitution.
12299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
12300         HAVE_DECL_STRERROR.
12301         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
12302
12303 2010-04-04  Bruno Haible  <bruno@clisp.org>
12304
12305         strtod: Avoid a possible C++ test error.
12306         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
12307         set REPLACE_STRTOD.
12308
12309 2010-04-04  Bruno Haible  <bruno@clisp.org>
12310
12311         strerror: Update documentation.
12312         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
12313
12314 2010-04-04  Bruno Haible  <bruno@clisp.org>
12315
12316         stdio: Fix some C++ test errors on Solaris 8 with GCC.
12317         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
12318         _GL_CXXALIAS_SYS_CAST.
12319
12320 2010-04-04  Bruno Haible  <bruno@clisp.org>
12321
12322         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12323         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
12324         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
12325         REPLACE_FREXPL to 1.
12326         * doc/posix-functions/frexpl.texi: Update documentation.
12327
12328 2010-04-04  Bruno Haible  <bruno@clisp.org>
12329
12330         math: Fix some C++ test errors on Solaris 8 and Cygwin.
12331         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
12332
12333 2010-04-04  Bruno Haible  <bruno@clisp.org>
12334
12335         Implement nanosleep for native Windows.
12336         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
12337
12338 2010-04-04  Bruno Haible  <bruno@clisp.org>
12339
12340         math: Fix some C++ test errors on Solaris 8.
12341         * lib/math.in.h (truncf, trunc): Use simpler idiom.
12342
12343 2010-04-04  Bruno Haible  <bruno@clisp.org>
12344
12345         math: Fix some C++ test errors on Cygwin.
12346         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
12347         truncl): Provide declaration if the system does not have it.
12348         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
12349         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
12350         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
12351         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
12352         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
12353         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
12354         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
12355         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
12356         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
12357         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
12358         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
12359         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
12360         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
12361         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
12362         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
12363         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
12364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
12365         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12366         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12367         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
12368         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12369         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12370
12371 2010-04-04  Bruno Haible  <bruno@clisp.org>
12372
12373         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
12374         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12375         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12376         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12377         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12378         * m4/isinf.m4 (gl_ISINF): Likewise.
12379         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12380
12381 2010-04-04  Bruno Haible  <bruno@clisp.org>
12382
12383         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
12384         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12385
12386 2010-04-04  Bruno Haible  <bruno@clisp.org>
12387
12388         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
12389         * modules/tmpfile (configure.ac): Update.
12390
12391         tmpfile: Fix C++ test error on mingw.
12392         * lib/stdio.in.h (tmpfile): New declaration.
12393         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
12394         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
12395         * modules/tmpfile (Depends-on): Add stdio.
12396         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12397         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
12398         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
12399         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
12400         REPLACE_TMPFILE.
12401         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
12402
12403 2010-04-04  Bruno Haible  <bruno@clisp.org>
12404
12405         ioctl: Fix C++ test error on mingw.
12406         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
12407         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
12408         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
12409
12410 2010-04-03  Bruno Haible  <bruno@clisp.org>
12411
12412         wcwidth: Fix C++ test error on mingw.
12413         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
12414         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
12415         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
12416
12417 2010-04-03  Bruno Haible  <bruno@clisp.org>
12418
12419         nanosleep: Fix C++ test error on mingw.
12420         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
12421         * lib/time.in.h (nanosleep): Use modern idiom.
12422         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
12423         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
12424         REPLACE_NANOSLEEP to 1.
12425         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
12426         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
12427
12428 2010-04-03  Bruno Haible  <bruno@clisp.org>
12429
12430         strptime: Fix C++ test error on mingw.
12431         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
12432         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
12433         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
12434         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
12435         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
12436         not REPLACE_STRPTIME.
12437         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
12438         REPLACE_STRPTIME.
12439
12440 2010-04-03  Bruno Haible  <bruno@clisp.org>
12441
12442         timegm: Fix C++ test error on mingw.
12443         * lib/time.in.h (timegm): Use modern idiom.
12444         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
12445         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
12446         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
12447         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
12448
12449 2010-04-03  Bruno Haible  <bruno@clisp.org>
12450
12451         timegm: Assume declaration if function exists.
12452         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
12453         if it exists. Don't clobber ac_cv_func_timegm.
12454
12455 2010-04-03  Bruno Haible  <bruno@clisp.org>
12456
12457         time_r: Fix C++ test error on mingw.
12458         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
12459         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
12460         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
12461         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
12462         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
12463
12464 2010-04-03  Bruno Haible  <bruno@clisp.org>
12465
12466         time_r: Minor updates.
12467         * modules/time_r (Description): Mention the provided functions.
12468         * lib/time_r.c: Don't include <string.h>.
12469         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
12470         * doc/posix-functions/localtime_r.texi: Likewise.
12471
12472 2010-04-03  Bruno Haible  <bruno@clisp.org>
12473
12474         time: Fix regression introduced on 2010-03-08.
12475         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
12476         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
12477
12478 2010-04-03  Jim Meyering  <meyering@redhat.com>
12479
12480         maint.mk: don't silently disable project-specific syntax-check rules
12481         * top/maint.mk (_prohibit_regexp): Define, to help people realize
12482         that they need to convert their project-specific syntax-check rules
12483         to use the new _sc_search_regexp.
12484
12485 2010-04-03  Bruno Haible  <bruno@clisp.org>
12486
12487         fchdir: Fix regression introduced on 2010-03-08.
12488         * lib/unistd.in.h (fchdir): Fix declaration.
12489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
12490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
12491         REPLACE_FCHDIR.
12492         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
12493         REPLACE_FCHDIR.
12494
12495 2010-04-03  Bruno Haible  <bruno@clisp.org>
12496
12497         getpagesize: Fix C++ test error on mingw.
12498         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
12499         system does not declare the function.
12500         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
12501         declared.
12502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12503         HAVE_DECL_GETPAGESIZE.
12504         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
12505
12506 2010-04-03  Bruno Haible  <bruno@clisp.org>
12507
12508         stdio: Make C++ tests work on mingw.
12509         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
12510         does not declare the function.
12511
12512 2010-04-03  Bruno Haible  <bruno@clisp.org>
12513
12514         ftello: Fix C++ test error on mingw.
12515         * lib/stdio.in.h (ftello): Use modern idiom.
12516         * lib/ftello.c (ftello): Renamed from rpl_ftello.
12517         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
12518         is missing and that it needs to be replaced.
12519         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
12520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
12521         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
12522
12523 2010-04-03  Bruno Haible  <bruno@clisp.org>
12524
12525         fseeko: Fix C++ test error on mingw.
12526         * lib/stdio.in.h (fseeko): Use modern idiom.
12527         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
12528         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
12529         is missing and that it needs to be replaced.
12530         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
12531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
12532         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
12533
12534 2010-04-03  Bruno Haible  <bruno@clisp.org>
12535
12536         mkstemp: Fix C++ test error on mingw.
12537         * lib/stdlib.in.h (mkstemp): Use modern idiom.
12538         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
12539         function is missing and that it needs to be replaced.
12540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
12541         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
12542
12543 2010-04-03  Bruno Haible  <bruno@clisp.org>
12544
12545         stpncpy: Fix C++ test error on mingw.
12546         * lib/string.in.h (stpncpy): Use modern idiom.
12547         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
12548         function is missing and that it needs to be replaced.
12549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12550         REPLACE_STPNCPY.
12551         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
12552
12553 2010-04-03  Bruno Haible  <bruno@clisp.org>
12554
12555         sys_stat: Fix C++ test error on mingw.
12556         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
12557         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
12558
12559 2010-04-03  Bruno Haible  <bruno@clisp.org>
12560
12561         pty: Update doc.
12562         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
12563
12564 2010-04-03  Bruno Haible  <bruno@clisp.org>
12565
12566         unistd: Fix C++ test error on mingw.
12567         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
12568
12569 2010-04-03  Bruno Haible  <bruno@clisp.org>
12570
12571         Update doc regarding mingw.
12572         * doc/glibc-functions/openpty.texi: Update regarding mingw.
12573         * doc/glibc-functions/login_tty.texi: Likewise.
12574         * doc/glibc-functions/forkpty.texi: Likewise.
12575
12576 2010-04-03  Bruno Haible  <bruno@clisp.org>
12577
12578         stdlib: Avoid compilation failure of c-strtold on mingw.
12579         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
12580
12581 2010-04-03  Bruno Haible  <bruno@clisp.org>
12582
12583         locale: Make C++ tests work on Cygwin and mingw.
12584         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
12585         cannot provide the function.
12586         Reported by Simon Josefsson.
12587
12588 2010-04-03  Bruno Haible  <bruno@clisp.org>
12589
12590         localename: Port to MacOS X 10.6.
12591         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
12592         memory layout of the locales in MacOS X 10.6 as well.
12593         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
12594
12595 2010-04-02  Bruno Haible  <bruno@clisp.org>
12596
12597         gnulib-tool: Ensure that long-running tests are executed last.
12598         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
12599         running tests after the one for the other tests.
12600
12601 2010-04-02  Bruno Haible  <bruno@clisp.org>
12602
12603         gnulib-tool: Ensure the tests in the main directory are executed first.
12604         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
12605         start with the current directory.
12606
12607 2010-04-02  Bruno Haible  <bruno@clisp.org>
12608
12609         Tests for module 'havelib', moved here from GNU gettext.
12610         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
12611         modifications.
12612         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
12613         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
12614         with modifications.
12615         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
12616         modifications.
12617         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
12618         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
12619         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
12620         with modifications.
12621         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
12622         with modifications.
12623         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
12624         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
12625         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
12626         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
12627         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
12628         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
12629         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
12630         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
12631         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
12632         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
12633         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
12634         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
12635         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
12636         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
12637         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
12638         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
12639         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
12640         with modifications.
12641         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
12642         with modifications.
12643         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
12644         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
12645         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
12646         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
12647         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
12648         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
12649         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
12650         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
12651         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
12652         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
12653         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
12654         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
12655         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
12656         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
12657         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
12658         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
12659         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
12660         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
12661         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
12662         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
12663         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
12664         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
12665         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
12666         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
12667         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
12668         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
12669         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
12670         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
12671         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
12672         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
12673         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
12674         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
12675         * tests/havelib/rpathx/rpathx.c: New file, from
12676         gettext/autoconf-lib-link.
12677         * tests/havelib/rpathx/Makefile.am: New file, from
12678         gettext/autoconf-lib-link.
12679         * tests/havelib/rpathx/configure.ac: New file, from
12680         gettext/autoconf-lib-link with modifications.
12681         * tests/havelib/rpathy/rpathy.c: New file, from
12682         gettext/autoconf-lib-link.
12683         * tests/havelib/rpathy/Makefile.am: New file, from
12684         gettext/autoconf-lib-link.
12685         * tests/havelib/rpathy/configure.ac: New file, from
12686         gettext/autoconf-lib-link with modifications.
12687         * tests/havelib/rpathz/rpathz.c: New file, from
12688         gettext/autoconf-lib-link.
12689         * tests/havelib/rpathz/Makefile.am: New file, from
12690         gettext/autoconf-lib-link.
12691         * tests/havelib/rpathz/configure.ac: New file, from
12692         gettext/autoconf-lib-link with modifications.
12693         * tests/havelib/rpathlx/usex.c: New file, from
12694         gettext/autoconf-lib-link.
12695         * tests/havelib/rpathlx/Makefile.am: New file, from
12696         gettext/autoconf-lib-link.
12697         * tests/havelib/rpathlx/configure.ac: New file, from
12698         gettext/autoconf-lib-link with modifications.
12699         * tests/havelib/rpathly/usey.c: New file, from
12700         gettext/autoconf-lib-link.
12701         * tests/havelib/rpathly/Makefile.am: New file, from
12702         gettext/autoconf-lib-link.
12703         * tests/havelib/rpathly/configure.ac: New file, from
12704         gettext/autoconf-lib-link with modifications.
12705         * tests/havelib/rpathlz/usez.c: New file, from
12706         gettext/autoconf-lib-link.
12707         * tests/havelib/rpathlz/Makefile.am: New file, from
12708         gettext/autoconf-lib-link.
12709         * tests/havelib/rpathlz/configure.ac: New file, from
12710         gettext/autoconf-lib-link with modifications.
12711         * tests/havelib/rpathlyx/usey.c: New file, from
12712         gettext/autoconf-lib-link.
12713         * tests/havelib/rpathlyx/Makefile.am: New file, from
12714         gettext/autoconf-lib-link.
12715         * tests/havelib/rpathlyx/configure.ac: New file, from
12716         gettext/autoconf-lib-link with modifications.
12717         * tests/havelib/rpathlzyx/usez.c: New file, from
12718         gettext/autoconf-lib-link.
12719         * tests/havelib/rpathlzyx/Makefile.am: New file, from
12720         gettext/autoconf-lib-link.
12721         * tests/havelib/rpathlzyx/configure.ac: New file, from
12722         gettext/autoconf-lib-link with modifications.
12723         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
12724         with modifications.
12725
12726 2010-04-02  Bruno Haible  <bruno@clisp.org>
12727
12728         gnulib-tool: Create distributed built sources also for the tests.
12729         * gnulib-tool (func_create_testdir): Also generate distributed built
12730         sources in the tests directory.
12731
12732 2010-04-02  Bruno Haible  <bruno@clisp.org>
12733
12734         gnulib-tool: Obey user's environment variables.
12735         * gnulib-tool (func_create_testdir): When creating built sources,
12736         respect the environment variables for autoconf, automake, etc. given by
12737         the user.
12738
12739 2010-04-02  Bruno Haible  <bruno@clisp.org>
12740
12741         gnulib-tool: Provide the value of --m4-base to modules.
12742         * gnulib-tool (func_import, func_create_testdir): Emit a definition
12743         of gl_m4_base.
12744
12745 2010-04-02  Eric Blake  <eblake@redhat.com>
12746
12747         maint.mk: fix some fallout
12748         * NEWS: Document the incompatible change, and its effect on cfg.mk.
12749         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
12750
12751 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12752
12753         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
12754         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
12755         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
12756         (sc_cast_of_x_alloc_return_value): Likewise.
12757         (sc_cast_of_alloca_return_value): Likewise.
12758         (sc_space_tab): Likewise.
12759         (sc_prohibit_atoi_atof): Likewise.
12760         (sc_prohibit_magic_number_exit): Likewise.
12761         (sc_error_exit_success): Likewise.
12762         (sc_file_system): Likewise.
12763         (sc_prohibit_have_config_h): Likewise.
12764         (sc_require_config_h): Likewise.
12765         (sc_prohibit_HAVE_MBRTOWC): Likewise.
12766         (sc_obsolete_symbols): Likewise.
12767         (sc_changelog): Likewise.
12768         (sc_program_name): Likewise.
12769         (sc_the_the): Likewise.
12770         (sc_trailing_blank): Likewise.
12771         (sc_two_space_separator_in_usage): Likewise.
12772         (sc_useless_cpp_parens): Likewise.
12773         (sc_GPL_version): Likewise.
12774         (sc_GFDL_version): Likewise.
12775         (sc_texinfo_acronym): Likewise.
12776         (sc_prohibit_cvs_keyword): Likewise.
12777         (sc_prohibit_stat_st_blocks): Likewise.
12778         (sc_prohibit_S_IS_definition): Likewise.
12779         (sc_redundant_const): Likewise.
12780         (sc_makefile_TAB_only_indentation): Likewise.
12781         (sc_m4_quote_check): Likewise.
12782         (sc_makefile_path_separator_check): Likewise.
12783         (sc_copyright_check): Likewise.
12784         (sc_Wundef_boolean): Likewise.
12785         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12786
12787         maint.mk: match 0 or more whitespace-before-function-call '('
12788         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
12789         that have zero or two-and-more spaces between the function name
12790         and the open parenthesis.
12791         (sc_error_message_warn_fatal): Likewise.
12792         (sc_error_message_uppercase): Likewise.
12793         (sc_error_message_period): Likewise.
12794
12795 2010-03-31  Eric Blake  <eblake@redhat.com>
12796
12797         maint.mk: check for [ as well as test
12798         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
12799         Based on a libvirt report by Matthias Bolte.
12800
12801         gnumakefile: don't squelch _version output
12802         * top/GNUmakefile (_version): Create one-shot dependency rather
12803         than using $(shell) when version must be regenerated.
12804         (_autoreconf): Run verbosely, by default.
12805
12806         sys_time: avoid compiler warnings
12807         * lib/sys_time.in.h (includes): Ensure gcc pragma is
12808         unconditional, fixing regression from 2010-03-29.
12809         Reported by Simon Josefsson.
12810
12811 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12812
12813         maint.mk: s/_header_without_use/_sc_header_without_use/
12814         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
12815         (sc_prohibit_assert_without_use): Use the new name.
12816         (sc_prohibit_close_stream_without_use): Likewise.
12817         (sc_prohibit_getopt_without_use): Likewise.
12818         (sc_prohibit_quotearg_without_use): Likewise.
12819         (sc_prohibit_quote_without_use): Likewise.
12820         (sc_prohibit_long_options_without_use): Likewise.
12821         (sc_prohibit_inttostr_without_use): Likewise.
12822         (sc_prohibit_ignore_value_without_use): Likewise.
12823         (sc_prohibit_error_without_use): Likewise.
12824         (sc_prohibit_xalloc_without_use): Likewise.
12825         (sc_prohibit_hash_without_use): Likewise.
12826         (sc_prohibit_hash_pjw_without_use): Likewise.
12827         (sc_prohibit_safe_read_without_use): Likewise.
12828         (sc_prohibit_argmatch_without_use): Likewise.
12829         (sc_prohibit_canonicalize_without_use): Likewise.
12830         (sc_prohibit_root_dev_ino_without_use): Likewise.
12831         (sc_prohibit_openat_without_use): Likewise.
12832         (sc_prohibit_c_ctype_without_use): Likewise.
12833         (sc_prohibit_signal_without_use): Likewise.
12834         (sc_prohibit_intprops_without_use): Likewise.
12835
12836 2010-03-30  Eric Blake  <eblake@redhat.com>
12837
12838         maint: improve module indicators
12839         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
12840         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
12841         columns, and avoid extra macro expansion.
12842
12843         fdopendir: work around FreeBSD bug
12844         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12845         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
12846         * modules/dirent (Makefile.am): Substitute it.
12847         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
12848         declaration.
12849         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
12850         fix.
12851         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12852
12853 2010-03-29  Bruno Haible  <bruno@clisp.org>
12854
12855         Emit #pragma system_header after the inclusion guard, not before.
12856         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
12857         guard that spans the entire file, not before. This enables an
12858         optimization in GCC's preprocessor.
12859         * lib/ctype.in.h: Likewise.
12860         * lib/dirent.in.h: Likewise.
12861         * lib/errno.in.h: Likewise.
12862         * lib/float.in.h: Likewise.
12863         * lib/getopt.in.h: Likewise.
12864         * lib/iconv.in.h: Likewise.
12865         * lib/langinfo.in.h: Likewise.
12866         * lib/locale.in.h: Likewise.
12867         * lib/math.in.h: Likewise.
12868         * lib/netdb.in.h: Likewise.
12869         * lib/netinet_in.in.h: Likewise.
12870         * lib/pty.in.h: Likewise.
12871         * lib/sched.in.h: Likewise.
12872         * lib/se-selinux.in.h: Likewise.
12873         * lib/search.in.h: Likewise.
12874         * lib/spawn.in.h: Likewise.
12875         * lib/stdarg.in.h: Likewise.
12876         * lib/stdint.in.h: Likewise.
12877         * lib/string.in.h: Likewise.
12878         * lib/strings.in.h: Likewise.
12879         * lib/sys_file.in.h: Likewise.
12880         * lib/sys_ioctl.in.h: Likewise.
12881         * lib/sys_time.in.h: Likewise.
12882         * lib/sys_times.in.h: Likewise.
12883         * lib/sys_utsname.in.h: Likewise.
12884         * lib/sys_wait.in.h: Likewise.
12885         * lib/sysexits.in.h: Likewise.
12886         * lib/wctype.in.h: Likewise.
12887
12888 2010-03-28  James Youngman  <jay@gnu.org>
12889
12890         save-cwd: don't leak a file descriptor when the caller execs.
12891         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
12892         saved file descriptor.
12893         * modules/save-cwd (Depends-on): Depend on cloexec.
12894
12895 2010-03-29  Bruno Haible  <bruno@clisp.org>
12896
12897         Remove vestiges of fts-lgpl module.
12898         * lib/fts_.h: Assume GNULIB_FTS is 1.
12899         * lib/fts.c: Likewise.
12900         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12901
12902 2010-03-28  Bruno Haible  <bruno@clisp.org>
12903
12904         Fix definition of tests witness macro.
12905         * gnulib-tool (func_import): Fix definition of witness macro.
12906
12907 2010-03-28  Bruno Haible  <bruno@clisp.org>
12908
12909         Fix ioctl's protoype on glibc systems.
12910         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
12911         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
12912         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
12913         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
12914         signature. If not, arrange to replace the ioctl function.
12915         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12916         REPLACE_IOCTL.
12917         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
12918         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
12919         Reported by Ludovic Courtès <ludo@gnu.org>.
12920
12921 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
12922
12923         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
12924         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
12925         made it so grep -r --include=GLOB* ... did not work.
12926
12927 2010-03-26  Jim Meyering  <meyering@redhat.com>
12928             Eric Blake  <eblake@redhat.com>
12929
12930         maint.mk: prohibit use of test's -o and -a operators
12931         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
12932
12933 2010-03-28  Bruno Haible  <bruno@clisp.org>
12934
12935         Remove unused GNULIB_XYZ macro definitions.
12936         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
12937         invocation.
12938
12939 2010-03-28  Bruno Haible  <bruno@clisp.org>
12940
12941         Mark privileged tests modules.
12942         * modules/idpriv-drop-tests (Status): New section.
12943         * modules/idpriv-droptemp-tests (Status): New section.
12944
12945 2010-03-28  Bruno Haible  <bruno@clisp.org>
12946
12947         Split C++ tests into separate tests modules.
12948         * modules/dirent-c++-tests: New file, extracted from
12949         modules/dirent-tests.
12950         * modules/dirent-tests: Depend on it.
12951         * modules/fcntl-h-c++-tests: New file, extracted from
12952         modules/fcntl-h-tests.
12953         * modules/fcntl-h-tests: Depend on it.
12954         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
12955         * modules/glob-tests: Depend on it.
12956         * modules/iconv-h-c++-tests: New file, extracted from
12957         modules/iconv-h-tests.
12958         * modules/iconv-h-tests: Depend on it.
12959         * modules/langinfo-c++-tests: New file, extracted from
12960         modules/langinfo-tests.
12961         * modules/langinfo-tests: Depend on it.
12962         * modules/locale-c++-tests: New file, extracted from
12963         modules/locale-tests.
12964         * modules/locale-tests: Depend on it.
12965         * modules/math-c++-tests: New file, extracted from modules/math-tests.
12966         * modules/math-tests: Depend on it.
12967         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
12968         * modules/pty-tests: Depend on it.
12969         * modules/search-c++-tests: New file, extracted from
12970         modules/search-tests.
12971         * modules/search-tests: Depend on it.
12972         * modules/signal-c++-tests: New file, extracted from
12973         modules/signal-tests.
12974         * modules/signal-tests: Depend on it.
12975         * modules/spawn-c++-tests: New file, extracted from
12976         modules/spawn-tests.
12977         * modules/spawn-tests: Depend on it.
12978         * modules/stdio-c++-tests: New file, extracted from
12979         modules/stdio-tests.
12980         * modules/stdio-tests: Depend on it.
12981         * modules/stdlib-c++-tests: New file, extracted from
12982         modules/stdlib-tests.
12983         * modules/stdlib-tests: Depend on it.
12984         * modules/string-c++-tests: New file, extracted from
12985         modules/string-tests.
12986         * modules/string-tests: Depend on it.
12987         * modules/sys_ioctl-c++-tests: New file, extracted from
12988         modules/sys_ioctl-tests.
12989         * modules/sys_ioctl-tests: Depend on it.
12990         * modules/sys_select-c++-tests: New file, extracted from
12991         modules/sys_select-tests.
12992         * modules/sys_select-tests: Depend on it.
12993         * modules/sys_socket-c++-tests: New file, extracted from
12994         modules/sys_socket-tests.
12995         * modules/sys_socket-tests: Depend on it.
12996         * modules/sys_stat-c++-tests: New file, extracted from
12997         modules/sys_stat-tests.
12998         * modules/sys_stat-tests: Depend on it.
12999         * modules/sys_time-c++-tests: New file, extracted from
13000         modules/sys_time-tests.
13001         * modules/sys_time-tests: Depend on it.
13002         * modules/time-c++-tests: New file, extracted from modules/time-tests.
13003         * modules/time-tests: Depend on it.
13004         * modules/unistd-c++-tests: New file, extracted from
13005         modules/unistd-tests.
13006         * modules/unistd-tests: Depend on it.
13007         * modules/wchar-c++-tests: New file, extracted from
13008         modules/wchar-tests.
13009         * modules/wchar-tests: Depend on it.
13010         * modules/wctype-c++-tests: New file, extracted from
13011         modules/wctype-tests.
13012         * modules/wctype-tests: Depend on it.
13013         Reported by Simon Josefsson.
13014
13015 2010-03-28  Bruno Haible  <bruno@clisp.org>
13016
13017         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
13018         * gnulib-tool (func_exists_module): New function, extracted from
13019         func_verify_module.
13020         (func_verify_module): Use it.
13021         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
13022         'foo' only if 'foo' exists.
13023         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
13024         module.
13025
13026 2010-03-28  Bruno Haible  <bruno@clisp.org>
13027
13028         gnulib-tool: Add support for special categories of tests.
13029         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
13030         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
13031         (func_usage): Document them.
13032         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
13033         inc_unportable_tests, inc_all_tests): New variables.
13034         (func_acceptable): Consider these variables.
13035         (func_modules_transitive_closure): Make it work when the 'Status' field
13036         consists of multiple words.
13037         (func_import): Store and restore the values of inc_cxx_tests,
13038         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
13039         inc_all_tests in gnulib-comp.m4.
13040         (func_create_testdir): Set inc_all_tests to true.
13041         * doc/gnulib.texi (Extra tests modules): New section.
13042         Suggested by Jim Meyering.
13043
13044 2010-03-28  Bruno Haible  <bruno@clisp.org>
13045
13046         ansi-c++-opt: Allow turning off the C++ build by default.
13047         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
13048         gl_CXX_CHOICE_DEFAULT_NO is defined.
13049         Requested by Eric Blake.
13050
13051 2010-03-28  Bruno Haible  <bruno@clisp.org>
13052
13053         unistd: Avoid #define replacements in C++ mode.
13054         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13055         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13056         setsockopt, shutdown, select): In C++, attach a warning to the function
13057         if possible, rather than #defining the symbol to a dysfunctional alias.
13058         Reported by John W. Eaton <jwe@gnu.org>.
13059
13060 2010-03-28  Bruno Haible  <bruno@clisp.org>
13061
13062         Fix link errors on mingw.
13063         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
13064         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
13065         $(LIBSOCKET).
13066         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
13067         $(LIBSOCKET).
13068
13069 2010-03-28  Bruno Haible  <bruno@clisp.org>
13070             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13071
13072         lib-ignore: Determine different options for different compilers.
13073         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
13074         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
13075         Add comments.
13076         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
13077         * NEWS: Mention the change.
13078
13079 2010-03-27  Bruno Haible  <bruno@clisp.org>
13080
13081         Remove unused GNULIB_XYZ macro definitions.
13082         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13083         * modules/fseek (configure.ac): Likewise.
13084         * modules/ioctl (configure.ac): Likewise.
13085         * modules/open (configure.ac): Likewise.
13086         * modules/stdlib-safer (configure.ac): Likewise.
13087
13088 2010-03-27  Bruno Haible  <bruno@clisp.org>
13089
13090         Add a remark about certain modules.
13091         * modules/malloc (Comment): New section.
13092         * modules/realloc (Comment): Likewise.
13093         * modules/sigpipe (Comment): Likewise.
13094
13095 2010-03-27  Bruno Haible  <bruno@clisp.org>
13096
13097         Resolve conflict between the two kinds of module indicators.
13098         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
13099         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
13100         * modules/canonicalize (configure.ac): Invoke
13101         gl_MODULE_INDICATOR_FOR_TESTS.
13102         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
13103         GNULIB_XYZ.
13104         * tests/test-dirent-c++.cc: Likewise.
13105         * tests/test-dirent-safer.c: Likewise.
13106         * tests/test-dup2.c: Likewise.
13107         * tests/test-fchdir.c: Likewise.
13108         * tests/test-fcntl-h-c++.cc: Likewise.
13109         * tests/test-getopt.c: Likewise.
13110         * tests/test-getopt.h: Likewise.
13111         * tests/test-langinfo-c++.cc: Likewise.
13112         * tests/test-locale-c++.cc: Likewise.
13113         * tests/test-math-c++.cc: Likewise.
13114         * tests/test-pty-c++.cc: Likewise.
13115         * tests/test-search-c++.cc: Likewise.
13116         * tests/test-signal-c++.cc: Likewise.
13117         * tests/test-spawn-c++.cc: Likewise.
13118         * tests/test-stdio-c++.cc: Likewise.
13119         * tests/test-stdlib-c++.cc: Likewise.
13120         * tests/test-string-c++.cc: Likewise.
13121         * tests/test-sys_ioctl-c++.cc: Likewise.
13122         * tests/test-sys_select-c++.cc: Likewise.
13123         * tests/test-sys_socket-c++.cc: Likewise.
13124         * tests/test-sys_stat-c++.cc: Likewise.
13125         * tests/test-sys_time-c++.cc: Likewise.
13126         * tests/test-time-c++.cc: Likewise.
13127         * tests/test-unistd-c++.cc: Likewise.
13128         * tests/test-wchar-c++.cc: Likewise.
13129         * tests/uninorm/test-u8-nfc.c: Likewise.
13130         * tests/uninorm/test-u8-nfd.c: Likewise.
13131         * tests/uninorm/test-u8-nfkc.c: Likewise.
13132         * tests/uninorm/test-u8-nfkd.c: Likewise.
13133         * tests/uninorm/test-u16-nfc.c: Likewise.
13134         * tests/uninorm/test-u16-nfd.c: Likewise.
13135         * tests/uninorm/test-u16-nfkc.c: Likewise.
13136         * tests/uninorm/test-u16-nfkd.c: Likewise.
13137         * tests/uninorm/test-u32-nfc.c: Likewise.
13138         * tests/uninorm/test-u32-nfc-big.c: Likewise.
13139         * tests/uninorm/test-u32-nfd.c: Likewise.
13140         * tests/uninorm/test-u32-nfd-big.c: Likewise.
13141         * tests/uninorm/test-u32-nfkc.c: Likewise.
13142         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
13143         * tests/uninorm/test-u32-nfkd.c: Likewise.
13144         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
13145         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13146
13147 2010-03-27  Bruno Haible  <bruno@clisp.org>
13148
13149         Distinguish two kinds of module indicators.
13150         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
13151         gl_MODULE_INDICATOR.
13152         (gl_MODULE_INDICATOR): New macro.
13153         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13154         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
13155         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13156         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13157         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13158         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13159         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13160         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13161         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13162         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13163         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13164         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13166         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13167         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13168         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13169         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13170         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13171         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13172         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13173         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13174         * modules/cloexec (configure.ac): Likewise.
13175         * modules/getopt-gnu (configure.ac): Likewise.
13176         * modules/uninorm/u8-normalize (configure.ac): Likewise.
13177         * modules/uninorm/u16-normalize (configure.ac): Likewise.
13178         * modules/uninorm/u32-normalize (configure.ac): Likewise.
13179         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
13180
13181 2010-03-27  Bruno Haible  <bruno@clisp.org>
13182
13183         New module description field 'Comment'.
13184         * gnulib-tool: New option --extract-comment.
13185         (func_usage): Document it.
13186         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
13187         (func_get_comment): New function.
13188         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
13189
13190 2010-03-27  Bruno Haible  <bruno@clisp.org>
13191
13192         Addendum to 2010-02-07 commit.
13193         * gnulib-tool (func_usage): Document --extract-applicability option.
13194
13195 2010-03-27  Bruno Haible  <bruno@clisp.org>
13196
13197         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
13198         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
13199         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
13200         rather than link errors.
13201
13202 2010-03-27  Bruno Haible  <bruno@clisp.org>
13203
13204         Avoid side effects from tests-related modules on the compilation of lib.
13205         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
13206         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
13207         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
13208         parameter. Emit into AM_CPPFLAGS a definition of the designated C
13209         macro.
13210         (func_import): Define a witness macro. Assign it a value that depends
13211         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
13212         tests-related modules.
13213         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
13214         Reported by Jim Meyering.
13215
13216 2010-03-27  Bruno Haible  <bruno@clisp.org>
13217
13218         Factorize common .m4 code.
13219         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
13220         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
13221         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
13222         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
13223         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13224         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
13225         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
13226         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13227         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13228         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13229         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
13230         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13231         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13232         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13233         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13234         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
13235         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13236         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13237         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13238         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
13239         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
13240         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13241         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13242         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13243         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13244         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13245         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
13246         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
13247         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
13248         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13249         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13250         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13251
13252 2010-03-27  Bruno Haible  <bruno@clisp.org>
13253
13254         Fix a compilation error on Cygwin with g++ >= 4.3.
13255         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
13256         if it is undefined or if we alias it to chmod.
13257         (lstat): Don't warn about the use of this function if it is undefined
13258         or if we alias it to stat.
13259         Reported by Simon Josefsson.
13260
13261 2010-03-27  Bruno Haible  <bruno@clisp.org>
13262
13263         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
13264         * modules/getlogin (configure.ac): Update.
13265
13266         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
13267         * modules/getlogin_r (configure.ac): Update.
13268
13269         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
13270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
13271         * modules/inet_ntop (configure.ac): Update.
13272
13273         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
13274         * modules/inet_pton (configure.ac): Update.
13275
13276         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
13277         * modules/mbslen (configure.ac): Update.
13278
13279         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
13280         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
13281         * modules/forkpty (configure.ac): Update.
13282         * modules/openpty (configure.ac): Update.
13283
13284 2010-03-26  Simon Josefsson  <simon@josefsson.org>
13285
13286         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
13287         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
13288
13289 2010-03-25  Eric Blake  <eblake@redhat.com>
13290
13291         maint: use pragma consistently across replacement headers
13292         * lib/ctype.in.h (system_header): Hoist for consistent placement.
13293         * lib/dirent.in.h (system_header): Likewise.
13294         * lib/errno.in.h (system_header): Likewise.
13295         * lib/float.in.h (system_header): Likewise.
13296         * lib/getopt.in.h (system_header): Likewise.
13297         * lib/iconv.in.h (system_header): Likewise.
13298         * lib/inttypes.in.h (system_header): Likewise.
13299         * lib/langinfo.in.h (system_header): Likewise.
13300         * lib/locale.in.h (system_header): Likewise.
13301         * lib/math.in.h (system_header): Likewise.
13302         * lib/netdb.in.h (system_header): Likewise.
13303         * lib/netinet_in.in.h (system_header): Likewise.
13304         * lib/pty.in.h (system_header): Likewise.
13305         * lib/sched.in.h (system_header): Likewise.
13306         * lib/se-selinux.in.h (system_header): Likewise.
13307         * lib/search.in.h (system_header): Likewise.
13308         * lib/spawn.in.h (system_header): Likewise.
13309         * lib/stdarg.in.h (system_header): Likewise.
13310         * lib/stdint.in.h (system_header): Likewise.
13311         * lib/string.in.h (system_header): Likewise.
13312         * lib/strings.in.h (system_header): Likewise.
13313         * lib/sys_file.in.h (system_header): Likewise.
13314         * lib/sys_ioctl.in.h (system_header): Likewise.
13315         * lib/sys_socket.in.h (system_header): Likewise.
13316         * lib/sys_times.in.h (system_header): Likewise.
13317         * lib/sys_utsname.in.h (system_header): Likewise.
13318         * lib/sys_wait.in.h (system_header): Likewise.
13319         * lib/sysexits.in.h (system_header): Likewise.
13320         * lib/unistd.in.h (system_header): Likewise.
13321         * lib/wctype.in.h (system_header): Likewise.
13322
13323         arpa/inet: fix mingw compilation warning
13324         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
13325         Reported by Matthew Bolte.
13326
13327 2010-03-25  Bruno Haible  <bruno@clisp.org>
13328
13329         Avoid collision between gnulib wrapper and libintl wrapper.
13330         * lib/printf.c (printf): Don't define if a printf wrapper is already
13331         defined in intl/printf.c.
13332         Reported by Michel Boaventura <michel@michelboaventura.com>.
13333
13334 2010-03-25  Bruno Haible  <bruno@clisp.org>
13335
13336         Use ANSI C.
13337         * lib/readutmp.h (getutent): Provide ANSI C prototype.
13338
13339 2010-03-25  Bruno Haible  <bruno@clisp.org>
13340
13341         Minor formatting changes.
13342         * lib/acosl.c: Insert space before function argument list.
13343         * lib/argz.c: Likewise.
13344         * lib/asinl.c: Likewise.
13345         * lib/expl.c: Likewise.
13346         * lib/gen-uni-tables.c: Likewise.
13347         * lib/gettext.h: Likewise.
13348         * lib/glthread/lock.h: Likewise.
13349         * lib/tanl.c: Likewise.
13350         * lib/uniname/uniname.c: Likewise.
13351         * tests/test-idpriv-drop.c: Likewise.
13352         * tests/test-idpriv-droptemp.c: Likewise.
13353         * tests/test-lock.c: Likewise.
13354         * tests/test-tls.c: Likewise.
13355         * lib/argp-help.c: Insert space before function-like macro argument
13356         list.
13357         * lib/memcmp.c: Likewise.
13358         * tests/test-base64.c: Likewise.
13359         * lib/localename.c: Insert space before sizeof's argument list.
13360         * lib/safe-alloc.h: Likewise.
13361         * lib/file-set.h: Insert space before macro argument list.
13362         * tests/test-argp.c: Likewise.
13363         * lib/argp-namefrob.h: Insert space before function parameter list.
13364         * lib/getaddrinfo.c: Likewise.
13365         * lib/netdb.in.h: Likewise.
13366         * lib/parse-duration.h: Likewise.
13367         * lib/parse-duration.c: Likewise.
13368         * lib/poll.c: Likewise.
13369         * lib/select.c: Likewise.
13370         * lib/trim.h: Likewise.
13371         * tests/test-usleep.c: Likewise.
13372         * lib/ldexpl.c: Insert space before function parameter list and before
13373         function argument list.
13374         * lib/logl.c: Likewise.
13375         * lib/sqrtl.c: Likewise.
13376         * lib/trim.c: Likewise.
13377         * lib/cosl.c: Use GNU style indentation. Insert space before function
13378         argument list.
13379         * lib/sinl.c: Likewise.
13380         * lib/tsearch.c: Insert space after 'for'.
13381         Reported by Jim Meyering.
13382
13383 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
13384
13385         * maint.mk (sc_Wundef_boolean): Check for the presence of the
13386         config header before grepping, as it's not present before
13387         autoreconf/configure are run.  Reported by Simon Josefsson.
13388
13389 2010-03-23  Bruno Haible  <bruno@clisp.org>
13390
13391         pt_chown: Make it work with automake < 1.11.
13392         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
13393         Reported by Simon Josefsson.
13394
13395 2010-03-23  Bruno Haible  <bruno@clisp.org>
13396
13397         pt_chown: Don't depend on GPLed modules.
13398         * lib/pt_chown.c: Don't include idpriv.h.
13399         (main): Don't drop privileges.
13400         * modules/pt_chown (Depends-on): Remove idpriv-drop.
13401         Reported by Simon Josefsson.
13402
13403 2010-03-24  Simon Josefsson  <simon@josefsson.org>
13404
13405         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
13406         suggestions from karl@freefriends.org (Karl Berry).
13407
13408 2010-03-22  Eric Blake  <eblake@redhat.com>
13409
13410         gethostname: further tweaks
13411         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
13412         are overriding gethostname.
13413         Suggested by Bruno Haible.
13414
13415 2010-03-21  Bruno Haible  <bruno@clisp.org>
13416
13417         Fix comments.
13418         * lib/forkpty.c (rpl_forkpty): Fix comment.
13419         * lib/openpty.c (rpl_openpty): Likewise.
13420         Reported by Eric Blake.
13421
13422 2010-03-22  Eric Blake  <eblake@redhat.com>
13423
13424         gethostname: fix build on mingw
13425         * lib/unistd.in.h (includes): Work around fact that mingw
13426         <winsock2.h> re-includes <unistd.h>, by avoiding any
13427         redeclarations if we are being included by <winsock2.h>.
13428         Reported by Matthias Bolte.
13429
13430 2010-03-21  Bruno Haible  <bruno@clisp.org>
13431
13432         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13433         * lib/forkpty.c (forkpty): New replacement function, from glibc with
13434         modifications.
13435         * lib/pty.in.h (forkpty): Update declaration. Add comments.
13436         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
13437         provide the replacement.
13438         * modules/forkpty (Depends-on): Add openpty, login_tty.
13439         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
13440         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
13441         * doc/glibc-functions/forkpty.texi: More supported platforms.
13442         * config/srclist.txt: Add forkpty.c (commented).
13443
13444 2010-03-21  Bruno Haible  <bruno@clisp.org>
13445
13446         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
13447         (Makefile.am): Verify that PTY_LIB is defined.
13448
13449         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
13450
13451 2010-03-21  Bruno Haible  <bruno@clisp.org>
13452
13453         Tests for module 'login_tty'.
13454         * modules/login_tty-tests: New file.
13455         * tests/test-login_tty.c: New file.
13456
13457         New module 'login_tty'.
13458         * lib/login_tty.c: New file.
13459         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
13460         * modules/login_tty: New file.
13461         * doc/glibc-functions/login_tty.texi: Mention the new module.
13462
13463 2010-03-21  Bruno Haible  <bruno@clisp.org>
13464
13465         login_tty: Documentation.
13466         * doc/glibc-functions/login_tty.texi: New file.
13467         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
13468
13469 2010-03-21  Bruno Haible  <bruno@clisp.org>
13470
13471         pty: Consistent macro naming.
13472         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
13473         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
13474         * modules/pty (configure.ac): Update.
13475
13476 2010-03-21  Bruno Haible  <bruno@clisp.org>
13477
13478         Tests for openpty: Make stricter.
13479         * tests/test-openpty.c (main): Add test of canonical processing and
13480         erase.
13481         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
13482
13483         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13484         * lib/openpty.c (openpty): New replacement function.
13485         * lib/pty.in.h: Include <termios.h>.
13486         (openpty): Update declaration. Add comments.
13487         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
13488         is not declared, arrange to provide the replacement. Check for _getpty
13489         and posix_openpt.
13490         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
13491         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
13492         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
13493         * modules/pty-tests (test_pty_c___LDADD): New variable.
13494         * doc/glibc-functions/openpty.texi: More supported platforms.
13495
13496 2010-03-21  Bruno Haible  <bruno@clisp.org>
13497
13498         setenv: Tweaks.
13499         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
13500         the test program.
13501         * doc/posix-functions/setenv.texi: Update platforms list.
13502
13503 2010-03-21  Bruno Haible  <bruno@clisp.org>
13504
13505         New module 'unlockpt'.
13506         * lib/unlockpt.c: New file, from glibc with modifications.
13507         * m4/unlockpt.m4: New file.
13508         * modules/unlockpt: New file.
13509         * lib/stdlib.in.h (unlockpt): New declaration.
13510         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
13511         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
13512         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
13513         HAVE_UNLOCKPT.
13514         * doc/posix-functions/unlockpt.texi: Mention the new module.
13515         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
13516         * config/srclist.txt: Add unlockpt.c (commented).
13517
13518 2010-03-21  Jim Meyering  <meyering@redhat.com>
13519
13520         maint.mk: prohibit inclusion of "intprops.h" without use
13521         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
13522
13523 2010-03-21  Bruno Haible  <bruno@clisp.org>
13524
13525         New module 'grantpt'.
13526         * lib/grantpt.c: New file, from glibc with modifications.
13527         * m4/grantpt.m4: New file.
13528         * modules/grantpt: New file.
13529         * lib/stdlib.in.h (grantpt): New declaration.
13530         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
13531         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
13532         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
13533         HAVE_GRANTPT.
13534         * doc/posix-functions/grantpt.texi: Mention the new module.
13535         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
13536         * config/srclist.txt: Add grantpt.c (commented).
13537
13538 2010-03-21  Bruno Haible  <bruno@clisp.org>
13539
13540         New module 'pt_chown'.
13541         * lib/pt_chown.c: New file, from glibc with modifications.
13542         * lib/pty-private.h: New file, from glibc with modifications.
13543         * modules/pt_chown: New file.
13544         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
13545
13546 2010-03-21  Bruno Haible  <bruno@clisp.org>
13547
13548         Tests for module 'ptsname'.
13549         * modules/ptsname-tests: New file.
13550         * tests/test-ptsname.c: New file.
13551
13552         New module 'ptsname'.
13553         * lib/ptsname.c: New file, from glibc with modifications.
13554         * m4/ptsname.m4: New file.
13555         * modules/ptsname: New file.
13556         * lib/stdlib.in.h (ptsname): New declaration.
13557         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
13558         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
13559         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
13560         HAVE_PTSNAME.
13561         * doc/posix-functions/ptsname.texi: Mention the new module.
13562         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
13563         * config/srclist.txt: Add ptsname.c (commented).
13564
13565 2010-03-21  Bruno Haible  <bruno@clisp.org>
13566
13567         Tests for module 'ttyname_r'.
13568         * modules/ttyname_r-tests: New file.
13569         * tests/test-ttyname_r.c: New file.
13570
13571         New module 'ttyname_r'.
13572         * lib/ttyname_r.c: New file.
13573         * m4/ttyname_r.m4: New file.
13574         * modules/ttyname_r: New file.
13575         * lib/unistd.in.h (ttyname_r): New declaration.
13576         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
13577         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
13578         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
13579         HAVE_TTYNAME_R.
13580         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
13581         * doc/posix-functions/ttyname_r.texi: Mention the new module.
13582
13583 2010-03-20  Bruno Haible  <bruno@clisp.org>
13584
13585         signal: Undefine macro definitions in C++ mode.
13586         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
13587         sigfillset): Undefine macro definitions from the system header in C++
13588         mode.
13589         Reported by John W. Eaton <jwe@gnu.org>.
13590
13591 2010-03-20  Bruno Haible  <bruno@clisp.org>
13592
13593         Ensure no #include statements inside extern "C" { ... }.
13594         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
13595         contain #include statements.
13596         * lib/time.in.h: Likewise.
13597
13598 2010-03-20  Bruno Haible  <bruno@clisp.org>
13599
13600         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
13601         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
13602         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
13603         Reported by John W. Eaton <jwe@gnu.org>.
13604
13605 2010-03-20  Bruno Haible  <bruno@clisp.org>
13606
13607         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
13608         Reported by Jim Meyering.
13609
13610 2010-03-20  Bruno Haible  <bruno@clisp.org>
13611
13612         pipe: Set errno upon failure.
13613         * lib/pipe.h: Specify that when -1 is returned, errno is set.
13614         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
13615         errno value in error message.
13616
13617 2010-03-20  Bruno Haible  <bruno@clisp.org>
13618             Jim Meyering  <meyering@redhat.com>
13619
13620         lchown: Avoid "unused variable" warning.
13621         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
13622
13623 2010-03-20  Bruno Haible  <bruno@clisp.org>
13624
13625         Work around unlink() bug on MacOS X 10.5.6.
13626         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
13627         attempting to unlink a parent directory.
13628         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
13629         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
13630         activate for the replacement function.
13631         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
13632
13633 2010-03-20  Bruno Haible  <bruno@clisp.org>
13634
13635         Fix link errors on Solaris 8.
13636         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
13637         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
13638
13639 2010-03-19  Jim Meyering  <meyering@redhat.com>
13640
13641         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
13642         The _LIBC implementation of build_range_exp correctly honors the
13643         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
13644         However, the non-_LIBC implementation would ignore that syntax-bit
13645         flag and return REG_ERANGE unconditionally.
13646         This change makes it honor that flag.
13647         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
13648         Make two pointer parameters "const".
13649         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
13650         (parse_bracket_exp): Update caller.
13651
13652         regex.m4: correct the reversed range endpoint ([b-a]) test
13653         * m4/regex.m4: When requiring that [b-a] evoke failure,
13654         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
13655         test pass once again for x86-based systems.
13656
13657 2010-03-19  Bruno Haible  <bruno@clisp.org>
13658
13659         scandir: Fix link error on Solaris 8.
13660         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
13661         macros.
13662
13663 2010-03-19  Bruno Haible  <bruno@clisp.org>
13664
13665         getusershell: Fix documentation.
13666         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
13667         module.
13668         * doc/glibc-functions/setusershell.texi: Likewise.
13669
13670         getusershell: Provide declaration, missing on Solaris 9.
13671         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
13672         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
13673         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
13674         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
13675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13676         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
13677         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
13678         HAVE_GETUSERSHELL.
13679         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
13680
13681 2010-03-19  Bruno Haible  <bruno@clisp.org>
13682
13683         wctype: Provide iswblank function.
13684         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
13685         exists and is fine.
13686         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
13687         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
13688         * tests/test-wctype.c (main): Re-enable the iswblank tests.
13689         * doc/posix-functions/iswblank.texi: Update.
13690
13691 2010-03-19  Bruno Haible  <bruno@clisp.org>
13692
13693         Tests of module 'pty' in C++ mode.
13694         * modules/pty-tests: New file.
13695         * tests/test-pty-c++.cc: New file.
13696         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13697
13698 2010-03-19  Eric Blake  <eblake@redhat.com>
13699
13700         logb: fix documentation
13701         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
13702         1.5 declaration bug.
13703
13704         forkpty, openpty: prefer glibc's const-safe prototype
13705         * lib/forkpty.c (rpl_forkpty): New file.
13706         * lib/openpty.c (rpl_openpty): Likewise.
13707         * modules/forkpty (Files): Distribute it.
13708         * modules/openpty (Files): Likewise.
13709         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
13710         check...
13711         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
13712         replacement for for non-const BSD signature.
13713         * modules/pty (Makefile.am): Substitute witnesses.
13714         * lib/pty.in.h (forkpty, openpty): Declare replacements.
13715         * tests/test-forkpty.c: Update signature check.
13716         * tests/test-openpty.c: Likewise.
13717         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
13718         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13719
13720         forkpty, openpty: split functions into new modules
13721         * modules/pty (Makefile.am): Substitute new witnesses.
13722         (Libraries): Move library detection...
13723         * modules/forkpty: ...into new module.
13724         * modules/openpty: Another new module.
13725         * modules/pty-tests: Rename and split...
13726         * modules/forkpty-tests: ...to this...
13727         * modules/openpty-tests: ...and this.
13728         * tests/test-pty.c: Rename and split...
13729         * tests/test-forkpty.c: ...to this...
13730         * tests/test-openpty.c: ...and this.
13731         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
13732         (gl_PTY): Split library searching...
13733         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
13734         (gl_FORKPTY, gl_OPENPTY): New macros.
13735         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
13736         * NEWS: Mention the split.
13737         * MODULES.html.sh (Misc): Document the modules.
13738         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
13739         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13740
13741         pty: improve replacement header
13742         * lib/pty.in.h: New file.
13743         * modules/pty (Files): Ship it.
13744         (Makefile.am): Always build replacement.
13745         * m4/pty.m4: Rename...
13746         * m4/pty_h.m4: ...to this.
13747         (gl_PTY): Modernize setting of witness macros; update check of
13748         forkpty to take proper advantage of cache.
13749         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
13750
13751         getopt: avoid compiler warning
13752         * lib/getopt.c (attribute_hidden): Remove unused macro.
13753
13754 2010-03-18  Bruno Haible  <bruno@clisp.org>
13755
13756         Fix link errors on Solaris 8.
13757         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
13758         * modules/search-tests (test_search_c___LDADD): Likewise.
13759         * modules/signal-tests (test_signal_c___LDADD): Likewise.
13760         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
13761         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
13762         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
13763         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
13764         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
13765         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
13766
13767 2010-03-18  Bruno Haible  <bruno@clisp.org>
13768
13769         Fix bug introduced on 2010-03-14.
13770         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
13771         (gl_SPAWN_H): Require it.
13772         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
13773         Reported by Simon Josefsson.
13774
13775 2010-03-18  Bruno Haible  <bruno@clisp.org>
13776
13777         Fix typo introduced on 2009-12-31.
13778         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
13779         posix_spawn_file_actions_adddup2.
13780
13781 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
13782         and Eric Blake  <eblake@redhat.com>
13783
13784         test-vc-list-files-git: make more robust
13785         * tests/test-vc-list-files-git.sh: Unset problematic environment
13786         variables.  Chain commands together.
13787
13788 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
13789
13790         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
13791         `AC_CHECK_DECL' invocation.
13792
13793 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
13794
13795         * lib/inttostr.c (inttostr): Make sure the invocation of verify
13796         appears before executable statements. Suggested by Petr Sumbera
13797         <Petr.Sumbera@Sun.COM>.
13798
13799 2010-03-14  Bruno Haible  <bruno@clisp.org>
13800
13801         * tests/test-flock.c (test_exclusive): Comment out a test that causes
13802         portability problems. Instead use a simpler test.
13803         (main): Check that invalid arguments are rejected only on Linux.
13804
13805 2010-03-14  Bruno Haible  <bruno@clisp.org>
13806
13807         Fix bug introduced on 2009-12-31.
13808         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13809         gl_PREREQ_SYS_H_WINSOCK2 always.
13810         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
13811         SYS_SOCKET_H variable.
13812         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
13813         Update comments.
13814         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
13815         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13816         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13817         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13818         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13819
13820 2010-03-14  Bruno Haible  <bruno@clisp.org>
13821
13822         Fix values returned by sinl, cosl.
13823         * lib/trigl.h: Add specification comments.
13824         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
13825         that combines the values from the precomputed table with the values of
13826         the Chebyshev polynomials.
13827
13828 2010-03-14  Bruno Haible  <bruno@clisp.org>
13829
13830         Fix compilation error when modules 'posix_spawn[p]' are not used.
13831         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
13832         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
13833
13834 2010-03-14  Bruno Haible  <bruno@clisp.org>
13835
13836         Fix compilation error on mingw when module 'time_r' is not used.
13837         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
13838         is 1.
13839         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
13840         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13841         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
13842         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
13843
13844 2010-03-14  Bruno Haible  <bruno@clisp.org>
13845
13846         Fix compilation error with Sun C.
13847         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
13848         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
13849         instead of GCC specific ULONG_LONG_MAX.
13850         * lib/xstrtoll.c: Likewise.
13851         * lib/xstrtoull.c: Likewise.
13852
13853 2010-03-13  Bruno Haible  <bruno@clisp.org>
13854
13855         Allow the user to disable C++ code and tests.
13856         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
13857         (gl_PROG_ANSI_CXX): Require it.
13858
13859 2010-03-13  Bruno Haible  <bruno@clisp.org>
13860
13861         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
13862         cases.
13863
13864 2010-03-13  Bruno Haible  <bruno@clisp.org>
13865
13866         Test that gnulib does not break the standard C++ headers.
13867         * tests/test-locale-c++2.cc: New file.
13868         * modules/locale-tests (Files): Add it.
13869         (Makefile.am): Compile it for test-locale-c++.
13870         * tests/test-math-c++2.cc: New file.
13871         * modules/math-tests (Files): Add it.
13872         (Makefile.am): Compile it for test-math-c++.
13873         * tests/test-signal-c++2.cc: New file.
13874         * modules/signal-tests (Files): Add it.
13875         (Makefile.am): Compile it for test-signal-c++.
13876         * tests/test-stdio-c++2.cc: New file.
13877         * modules/stdio-tests (Files): Add it.
13878         (Makefile.am): Compile it for test-stdio-c++.
13879         * tests/test-stdlib-c++2.cc: New file.
13880         * modules/stdlib-tests (Files): Add it.
13881         (Makefile.am): Compile it for test-stdlib-c++.
13882         * tests/test-string-c++2.cc: New file.
13883         * modules/string-tests (Files): Add it.
13884         (Makefile.am): Compile it for test-string-c++.
13885         * tests/test-time-c++2.cc: New file.
13886         * modules/time-tests (Files): Add it.
13887         (Makefile.am): Compile it for test-time-c++.
13888         Reported by John W. Eaton <jwe@gnu.org>.
13889
13890 2010-03-13  Bruno Haible  <bruno@clisp.org>
13891
13892         * gnulib-tool (func_usage): Clarify which options are available for
13893         --create-testdir and --create-megatestdir.
13894
13895 2010-03-13  Bruno Haible  <bruno@clisp.org>
13896
13897         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
13898         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
13899         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
13900         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13901         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
13902         when appropriate.
13903         Reported by Jim Meyering.
13904
13905 2010-03-12  Simon Josefsson  <simon@josefsson.org>
13906
13907         * gnulib-tool (func_import): Explain origin of code.
13908
13909 2010-03-12  Bruno Haible  <bruno@clisp.org>
13910
13911         Fix problem with automake's definition of CXXLINK.
13912         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
13913         Reported by Simon Josefsson and Ludovic Courtès.
13914
13915 2010-03-12  Bruno Haible  <bruno@clisp.org>
13916
13917         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
13918         stable releases.
13919
13920 2010-03-11  Bruno Haible  <bruno@clisp.org>
13921
13922         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
13923         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
13924         whether the system provides one variant or multiple variants of the
13925         function.
13926         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
13927         C++ compilers.
13928         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
13929         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
13930         Reported by Jim Meyering.
13931
13932 2010-03-09  Simon Josefsson  <simon@josefsson.org>
13933
13934         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
13935
13936 2010-03-08  Bruno Haible  <bruno@clisp.org>
13937
13938         gnulib-tool: Add support for --libtool in --create-testdir.
13939         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
13940         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
13941
13942 2010-03-08  Eric Blake  <eblake@redhat.com>
13943
13944         gnulib-tool.texi: mention possibility of git submodule
13945         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
13946         submodules.
13947         * doc/.gitignore: Ignore another generated file.
13948
13949 2010-03-08  Karl Berry  <karl@gnu.org>
13950
13951         * doc/gnulib-tool.texi (VCS Issues): Mention third option
13952         of committing gnulib files while skipping others.
13953
13954 2010-03-07  Bruno Haible  <bruno@clisp.org>
13955
13956         Tests of module 'wctype' in C++ mode.
13957         * tests/test-wctype-c++.cc: New file.
13958         * modules/wctype-tests (Files): Add it and tests/signature.h.
13959         (Depends-on): Add ansi-c++-opt.
13960         (Makefile.am): Arrange to compile and run test-wctype-c++.
13961
13962         Tests of module 'wchar' in C++ mode.
13963         * tests/test-wchar-c++.cc: New file.
13964         * modules/wchar-tests (Files): Add it and tests/signature.h.
13965         (Depends-on): Add ansi-c++-opt.
13966         (Makefile.am): Arrange to compile and run test-wchar-c++.
13967         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
13968         gl_MODULE_INDICATOR.
13969
13970         Tests of module 'unistd' in C++ mode.
13971         * tests/test-unistd-c++.cc: New file.
13972         * modules/unistd-tests (Files): Add it and tests/signature.h.
13973         (Depends-on): Add ansi-c++-opt.
13974         (Makefile.am): Arrange to compile and run test-unistd-c++.
13975         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
13976         gl_MODULE_INDICATOR.
13977
13978         Tests of module 'time' in C++ mode.
13979         * tests/test-time-c++.cc: New file.
13980         * modules/time-tests (Files): Add it and tests/signature.h.
13981         (Depends-on): Add ansi-c++-opt.
13982         (Makefile.am): Arrange to compile and run test-time-c++.
13983         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13984
13985         Tests of module 'sys_time' in C++ mode.
13986         * tests/test-sys_time-c++.cc: New file.
13987         * modules/sys_time-tests (Files): Add it and tests/signature.h.
13988         (Depends-on): Add ansi-c++-opt.
13989         (Makefile.am): Arrange to compile and run test-sys_time-c++.
13990         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
13991         gl_MODULE_INDICATOR.
13992
13993         Tests of module 'sys_stat' in C++ mode.
13994         * tests/test-sys_stat-c++.cc: New file.
13995         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
13996         (Depends-on): Add ansi-c++-opt.
13997         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
13998         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
13999         gl_MODULE_INDICATOR.
14000
14001         Tests of module 'sys_socket' in C++ mode.
14002         * tests/test-sys_socket-c++.cc: New file.
14003         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
14004         (Depends-on): Add ansi-c++-opt.
14005         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
14006         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
14007         gl_MODULE_INDICATOR.
14008
14009         Tests of module 'sys_select' in C++ mode.
14010         * tests/test-sys_select-c++.cc: New file.
14011         * modules/sys_select-tests (Files): Add it and tests/signature.h.
14012         (Depends-on): Add ansi-c++-opt.
14013         (Makefile.am): Arrange to compile and run test-sys_select-c++.
14014         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
14015         gl_MODULE_INDICATOR.
14016
14017         Tests of module 'sys_ioctl' in C++ mode.
14018         * tests/test-sys_ioctl-c++.cc: New file.
14019         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
14020         (Depends-on): Add ansi-c++-opt.
14021         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
14022         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
14023         gl_MODULE_INDICATOR.
14024
14025         Tests of module 'string' in C++ mode.
14026         * tests/test-string-c++.cc: New file.
14027         * modules/string-tests (Files): Add it and tests/signature.h.
14028         (Depends-on): Add ansi-c++-opt.
14029         (Makefile.am): Arrange to compile and run test-string-c++.
14030         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
14031         gl_MODULE_INDICATOR.
14032
14033         Tests of module 'stdlib' in C++ mode.
14034         * tests/test-stdlib-c++.cc: New file.
14035         * modules/stdlib-tests (Files): Add it and tests/signature.h.
14036         (Depends-on): Add ansi-c++-opt.
14037         (Makefile.am): Arrange to compile and run test-stdlib-c++.
14038         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
14039         gl_MODULE_INDICATOR.
14040
14041         Tests of module 'stdio' in C++ mode.
14042         * tests/test-stdio-c++.cc: New file.
14043         * modules/stdio-tests (Files): Add it and tests/signature.h.
14044         (Depends-on): Add ansi-c++-opt.
14045         (Makefile.am): Arrange to compile and run test-stdio-c++.
14046         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
14047         gl_MODULE_INDICATOR.
14048
14049         Tests of module 'spawn' in C++ mode.
14050         * tests/test-spawn-c++.cc: New file.
14051         * modules/spawn-tests (Files): Add it and tests/signature.h.
14052         (Depends-on): Add ansi-c++-opt.
14053         (Makefile.am): Arrange to compile and run test-spawn-c++.
14054         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
14055         gl_MODULE_INDICATOR.
14056
14057         Tests of module 'signal' in C++ mode.
14058         * tests/test-signal-c++.cc: New file.
14059         * modules/signal-tests (Files): Add it and tests/signature.h.
14060         (Depends-on): Add ansi-c++-opt.
14061         (Makefile.am): Arrange to compile and run test-signal-c++.
14062         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
14063         gl_MODULE_INDICATOR.
14064
14065         Tests of module 'search' in C++ mode.
14066         * tests/test-search-c++.cc: New file.
14067         * modules/search-tests (Files): Add it and tests/signature.h.
14068         (Depends-on): Add ansi-c++-opt.
14069         (Makefile.am): Arrange to compile and run test-search-c++.
14070         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
14071         gl_MODULE_INDICATOR.
14072
14073         Tests of module 'math' in C++ mode.
14074         * tests/test-math-c++.cc: New file.
14075         * modules/math-tests (Files): Add it and tests/signature.h.
14076         (Depends-on): Add ansi-c++-opt.
14077         (Makefile.am): Arrange to compile and run test-math-c++.
14078         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14079
14080         Tests of module 'locale' in C++ mode.
14081         * tests/test-locale-c++.cc: New file.
14082         * modules/locale-tests (Files): Add it and tests/signature.h.
14083         (Depends-on): Add ansi-c++-opt.
14084         (Makefile.am): Arrange to compile and run test-locale-c++.
14085         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
14086         gl_MODULE_INDICATOR.
14087
14088         Tests of module 'langinfo' in C++ mode.
14089         * tests/test-langinfo-c++.cc: New file.
14090         * modules/langinfo-tests (Files): Add it and tests/signature.h.
14091         (Depends-on): Add ansi-c++-opt.
14092         (Makefile.am): Arrange to compile and run test-langinfo-c++.
14093         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
14094         gl_MODULE_INDICATOR.
14095
14096         Tests of module 'iconv-h' in C++ mode.
14097         * tests/test-iconv-h-c++.cc: New file.
14098         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
14099         (Depends-on): Add ansi-c++-opt.
14100         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
14101
14102         Tests of module 'glob' in C++ mode.
14103         * tests/test-glob-c++.cc: New file.
14104         * modules/glob-tests (Files): Add it.
14105         (Depends-on): Add ansi-c++-opt.
14106         (Makefile.am): Arrange to compile and run test-glob-c++.
14107
14108         Tests of module 'fcntl-h' in C++ mode.
14109         * tests/test-fcntl-h-c++.cc: New file.
14110         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
14111         (Depends-on): Add ansi-c++-opt.
14112         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
14113         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
14114         gl_MODULE_INDICATOR.
14115
14116         Tests of module 'dirent' in C++ mode.
14117         * tests/test-dirent-c++.cc: New file.
14118         * modules/dirent-tests (Files): Add it and tests/signature.h.
14119         (Depends-on): Add ansi-c++-opt.
14120         (Makefile.am): Arrange to compile and run test-dirent-c++.
14121         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14122         gl_MODULE_INDICATOR.
14123
14124         New module 'ansi-c++-opt'.
14125         * modules/ansi-c++-opt: New file.
14126         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
14127
14128         Document C++ namespace mode.
14129         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
14130
14131         wctype: Avoid #define replacements in C++ mode.
14132         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
14133         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
14134         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
14135         In C++, define a namespaced alias symbol.
14136         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
14137         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
14138         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
14139         rule.
14140
14141         wchar: Avoid #define replacements in C++ mode.
14142         * lib/wchar.in.h: Include c++defs.h.
14143         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
14144         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
14145         symbol.
14146         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
14147         * modules/wchar (Depends-on): Add c++defs.
14148         (Makefile.am): Update wchar.h rule.
14149
14150         unistd: Avoid #define replacements in C++ mode.
14151         * lib/unistd.in.h: Include c++defs.h.
14152         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
14153         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
14154         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
14155         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
14156         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
14157         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
14158         symbol.
14159         (environ): Update.
14160         * modules/unistd (Depends-on): Add c++defs.
14161         (Makefile.am): Update unistd.h rule.
14162
14163         time: Avoid #define replacements in C++ mode.
14164         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
14165         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
14166         define a namespaced alias symbol.
14167         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
14168         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
14169         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
14170         * modules/time (Depends-on): Add c++defs, warn-on-use.
14171         (Makefile.am): Update time.h rule.
14172         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14173         * modules/nanosleep (configure.ac): Likewise.
14174         * modules/strptime (configure.ac): Likewise.
14175         * modules/timegm (configure.ac): Likewise.
14176
14177         sys_time: Avoid #define replacements in C++ mode.
14178         * lib/sys_time.in.h: Include c++defs.h.
14179         (gettimeofday): In C++, define a namespaced alias symbol.
14180         * modules/sys_time (Depends-on): Add c++defs.
14181         (Makefile.am): Update sys/time.h rule.
14182
14183         sys_stat: Avoid #define replacements in C++ mode.
14184         * lib/sys_stat.in.h: Include c++defs.h.
14185         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
14186         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
14187         namespaced alias symbol.
14188         In C++, define a namespaced alias symbol.
14189         * modules/sys_stat (Depends-on): Add c++defs.
14190         (Makefile.am): Update sys/stat.h rule.
14191
14192         sys_socket: Avoid #define replacements in C++ mode.
14193         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
14194         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
14195         definitions also when the system has a <sys/socket.h>.
14196         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14197         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
14198         In C++, define a namespaced alias symbol.
14199         * modules/sys_socket (Depends-on): Add c++defs.
14200         (Makefile.am): Update sys/socket.h rule.
14201
14202         sys_select: Avoid #define replacements in C++ mode.
14203         * lib/sys_select.in.h: Include c++defs.h. Enable the function
14204         definitions also when the system has a <sys/select.h>.
14205         (select): In C++, define a namespaced alias symbol.
14206         * modules/sys_select (Depends-on): Add c++defs.
14207         (Makefile.am): Update sys/select.h rule.
14208
14209         sys_ioctl: Avoid #define replacements in C++ mode.
14210         * lib/sys_ioctl.in.h: Include c++defs.h.
14211         (ioctl): In C++, define a namespaced alias symbol.
14212         * modules/sys_ioctl (Depends-on): Add c++defs.
14213         (Makefile.am): Update sys/ioctl.h rule.
14214
14215         string: Avoid #define replacements in C++ mode.
14216         * lib/string.in.h: Include c++defs.h.
14217         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
14218         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14219         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14220         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
14221         strsignal, strverscmp): In C++, define a namespaced alias symbol.
14222         * modules/string (Depends-on): Add c++defs.
14223         (Makefile.am): Update string.h rule.
14224
14225         stdlib: Avoid #define replacements in C++ mode.
14226         * lib/stdlib.in.h: Include c++defs.h.
14227         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
14228         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
14229         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
14230         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
14231         symbol.
14232         * modules/stdlib (Depends-on): Add c++defs.
14233         (Makefile.am): Update stdlib.h rule.
14234
14235         stdio: Avoid #define replacements in C++ mode.
14236         * lib/stdio.in.h: Include c++defs.h.
14237         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
14238         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
14239         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
14240         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
14241         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
14242         namespaced alias symbol.
14243         * modules/stdio (Depends-on): Add c++defs.
14244         (Makefile.am): Update stdio.h rule.
14245
14246         spawn: Avoid #define replacements in C++ mode.
14247         * lib/spawn.in.h: Include c++defs.h.
14248         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14249         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14250         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14251         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14252         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14253         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14254         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14255         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14256         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14257         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14258         In C++, define a namespaced alias symbol.
14259         * modules/spawn (Depends-on): Add c++defs.
14260         (Makefile.am): Update spawn.h rule.
14261
14262         signal: Avoid #define replacements in C++ mode.
14263         * lib/signal.in.h: Include c++defs.h.
14264         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14265         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
14266         namespaced alias symbol.
14267         * modules/signal (Depends-on): Add c++defs.
14268         (Makefile.am): Update signal.h rule.
14269
14270         search: Avoid #define replacements in C++ mode.
14271         * lib/search.in.h: Include c++defs.h.
14272         (_gl_search_compar_fn, _gl_search_action_fn): New types.
14273         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
14274         symbol.
14275         * modules/search (Depends-on): Add c++defs.
14276         (Makefile.am): Update search.h rule.
14277
14278         math: Avoid #define replacements in C++ mode.
14279         * lib/math.in.h: Include c++defs.h.
14280         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
14281         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
14282         trunc, truncl): In C++, define a namespaced alias symbol.
14283         * modules/math (Depends-on): Add c++defs.
14284         (Makefile.am): Update math.h rule.
14285
14286         locale: Avoid #define replacements in C++ mode.
14287         * lib/locale.in.h: Include c++defs.h.
14288         (duplocale): In C++, define a namespaced alias symbol.
14289         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
14290         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
14291         * modules/locale (Depends-on): Add c++defs.
14292         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
14293
14294         langinfo: Avoid #define replacements in C++ mode.
14295         * lib/langinfo.in.h: Include c++defs.h.
14296         (nl_langinfo): In C++, define a namespaced alias symbol.
14297         * modules/langinfo (Depends-on): Add c++defs.
14298         (Makefile.am): Update langinfo.h rule.
14299
14300         iconv-h: Avoid #define replacements in C++ mode.
14301         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
14302         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
14303         symbol.
14304         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
14305         whenever iconv is present.
14306         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
14307         (Makefile.am): Update iconv.h rule.
14308
14309         glob: Avoid #define replacements in C++ mode.
14310         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
14311         (_gl_glob_errfunc_fn): New type.
14312         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
14313         symbol.
14314         * modules/glob (Depends-on): Add c++defs, warn-on-use.
14315         (Makefile.am): Update glob.h rule.
14316
14317         fcntl-h: Avoid #define replacements in C++ mode.
14318         * lib/fcntl.in.h: Include c++defs.h.
14319         (fcntl, open, openat): In C++, define a namespaced alias symbol.
14320         * modules/fcntl-h (Depends-on): Add c++defs.
14321         (Makefile.am): Update fcntl.h rule.
14322
14323         dirent: Avoid #define replacements in C++ mode.
14324         * lib/dirent.in.h: Include c++defs.h.
14325         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
14326         namespaced alias symbol.
14327         (dirfd): Update declaration.
14328         * modules/dirent (Depends-on): Add c++defs.
14329         (Makefile.am): Update dirent.h rule.
14330
14331         ctype: Make it usable in C++ code.
14332         * lib/ctype.in.h: Include c++defs.h.
14333         (isblank): Declare as extern "C".
14334         * modules/ctype (Depends-on): Add c++defs.
14335         (Makefile.am): Update ctype.h rule.
14336
14337         New module 'c++defs'.
14338         * modules/c++defs: New file.
14339         * build-aux/c++defs.h: New file.
14340         Reported by John W. Eaton <jwe@gnu.org>.
14341
14342 2010-03-07  Bruno Haible  <bruno@clisp.org>
14343
14344         logb: Provide missing declaration for Cygwin.
14345         * lib/math.in.h (logb): New declaration.
14346         * m4/logb.m4: New file.
14347         * modules/logb (Files): Add m4/logb.m4.
14348         (Depends-on): Add math.
14349         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
14350         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
14351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
14352         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
14353         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
14354
14355 2010-03-07  Bruno Haible  <bruno@clisp.org>
14356
14357         Fix test-cond link error.
14358         * tests/test-cond.c: Include <stdio.h>.
14359
14360 2010-03-07  Bruno Haible  <bruno@clisp.org>
14361
14362         Fix test-dirent-safer link error.
14363         * modules/dirent-safer-tests (Makefile.am): Define
14364         test_dirent_safer_LDADD.
14365
14366 2010-03-07  Bruno Haible  <bruno@clisp.org>
14367
14368         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
14369         among default module list.
14370
14371 2010-03-07  Bruno Haible  <bruno@clisp.org>
14372
14373         Fix link error on platforms with GNU libiconv.
14374         * modules/unistr/u8-strcoll-tests (Makefile): Define
14375         test_u8_strcoll_LDADD.
14376         * modules/unistr/u16-strcoll-tests (Makefile): Define
14377         test_u16_strcoll_LDADD.
14378         * modules/unistr/u32-strcoll-tests (Makefile): Define
14379         test_u32_strcoll_LDADD.
14380
14381 2010-03-07  Bruno Haible  <bruno@clisp.org>
14382
14383         Use POSIX declarations for socket functions.
14384         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
14385         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
14386         rpl_sendto): Change declaration to match POSIX.
14387         * lib/connect.c (rpl_connect): Likewise.
14388         * lib/accept.c (rpl_accept): Likewise.
14389         * lib/bind.c (rpl_bind): Likewise.
14390         * lib/getpeername.c (rpl_getpeername): Likewise.
14391         * lib/getsockname.c (rpl_getsockname): Likewise.
14392         * lib/recv.c (rpl_recv): Likewise.
14393         * lib/send.c (rpl_send): Likewise.
14394         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14395         * lib/sendto.c (rpl_sendto): Likewise.
14396
14397 2010-03-06  Bruno Haible  <bruno@clisp.org>
14398
14399         Clarify access, euidaccess, faccessat.
14400         * doc/posix-functions/faccessat.texi: Mention security problem under
14401         "Other problems", not "Portability problems".
14402         * doc/posix-functions/access.texi: Likewise. Mention a related security
14403         problem.
14404         * doc/glibc-functions/euidaccess.texi: Mention security problems.
14405         * lib/euidaccess.c: Add comments about platforms.
14406         * lib/unistd.in.h (access, euidaccess): Add warnings.
14407
14408 2010-03-07  Bruno Haible  <bruno@clisp.org>
14409
14410         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
14411         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
14412         (POSIX_SPAWN_SETSCHEDULER): Likewise.
14413         (POSIX_SPAWN_USEVFORK): Define in a way that works when
14414         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14415         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
14416         declare when POSIX_SPAWN_SETSCHEDULER is zero.
14417         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
14418         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
14419         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
14420         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
14421         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
14422         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
14423         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
14424         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
14425         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
14426         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
14427         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
14428         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
14429         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
14430         Likewise.
14431         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
14432         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
14433         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
14434         Likewise.
14435         * tests/test-spawn.c (main): Make it work when
14436         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14437
14438 2010-03-07  Bruno Haible  <bruno@clisp.org>
14439
14440         Fix incorrect Makefile.am generation in German locale.
14441         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14442         Execute sed command with character range in C locale.
14443
14444 2010-03-06  Bruno Haible  <bruno@clisp.org>
14445
14446         Tests for module 'iconv-h'.
14447         * modules/iconv-h-tests: New file.
14448         * tests/test-iconv-h.c: New file.
14449
14450         New module 'iconv-h'.
14451         * modules/iconv-h: New file.
14452         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
14453         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
14454         (configure.ac): Remove gl_ICONV_H.
14455         (Makefile.am): Remove rule for iconv.h.
14456
14457 2010-03-06  Bruno Haible  <bruno@clisp.org>
14458
14459         More consistent naming of *.m4 files.
14460         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
14461         * modules/wctype (Files): Update.
14462
14463         More consistent naming of *.m4 files.
14464         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
14465         * modules/wchar (Files): Update.
14466
14467 2010-03-06  Jim Meyering  <meyering@redhat.com>
14468
14469         euidaccess: relax license to LGPLv2+
14470         * modules/euidaccess (License): Relax to LGPLv2+.
14471
14472 2010-03-06  Bruno Haible  <bruno@clisp.org>
14473
14474         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
14475         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
14476         (Makefile.am): Augment lib_SOURCES instead.
14477
14478 2010-03-04  Jim Meyering  <meyering@redhat.com>
14479
14480         utime: remove obsolete module
14481         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
14482         unnecessary for years, and has been marked as obsolete for 10 months.
14483         * modules/utime: Remove file.
14484         * lib/utime.c: Remove file.
14485         * m4/utime.m4: Remove file.
14486         * m4/utimes-null.m4: Remove file.
14487         * doc/posix-functions/utime.texi (utime): Remove reference to
14488         the module.  Move the sole "fixed by gnulib" item into the
14489         "problems not fixed by Gnulib" list.
14490         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
14491
14492 2010-03-05  Simon Josefsson  <simon@josefsson.org>
14493
14494         * modules/exit (License): Relax license to LGPLv2+.
14495         (Status): Mark as obsolete.
14496         * NEWS: Mention deprecated 'exit' module.
14497         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
14498         of now obsolete 'exit'.
14499
14500 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14501
14502         fts-lgpl: remove unused module
14503         * modules/fts-lgpl: Remove.
14504         * MODULES.html.sh (func_all_modules): Adjust.
14505         * check-module (find_included_lib_files): Adjust.
14506         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
14507
14508 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
14509
14510         copy-acl: enhance Solaris ACL error handling
14511         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
14512         * lib/set-mode-acl.c (qset_acl): Likewise.
14513
14514 2010-03-02  Bruno Haible  <bruno@clisp.org>
14515
14516         spawn: Don't override the system defined values on FreeBSD 8.
14517         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
14518         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
14519         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
14520         if HAVE_POSIX_SPAWN is 1.
14521         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
14522
14523 2010-03-01  Bruno Haible  <bruno@clisp.org>
14524
14525         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
14526         regarding Automake.
14527
14528 2010-02-25  Bruno Haible  <bruno@clisp.org>
14529
14530         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
14531         * gnulib-tool: Define 'echo' as a function only before the ksh alias
14532         setting, not afterwards.
14533         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
14534
14535 2010-02-24  Eric Blake  <eblake@redhat.com>
14536
14537         bootstrap, git-version-gen: use timestamp
14538         * build-aux/git-version-gen (scriptversion): Force UTC.
14539         * build-aux/bootstrap (scriptversion): New variable.
14540
14541         bootstrap: allow older git
14542         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
14543         older than 1.6.4.  Requested by the libvirt project.
14544
14545 2010-02-23  Eric Blake  <eblake@redhat.com>
14546
14547         warn-on-use: work with old autoconf
14548         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
14549         AS_VAR semantics of autoconf 2.60.
14550         Reported by Bruno Haible.
14551
14552         bootstrap: improve some comments
14553         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
14554         clarification comments.
14555
14556         gettimeofday: provide correct function
14557         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
14558         when replacement is declared, otherwise provide gettimeofday.
14559         Reported by Michael Goffioul.
14560
14561 2010-02-23  Jim Meyering  <meyering@redhat.com>
14562
14563         lib-ignore: relax license to "unlimited", not LGPLv2+
14564         * modules/lib-ignore (License): Relax to "unlimited".
14565
14566 2010-02-23  Jim Meyering  <meyering@redhat.com>
14567
14568         lib-ignore: relax license to LGPLv2+
14569         * modules/lib-ignore (License): Relax to LGPLv2+.
14570
14571 2010-02-22  Eric Blake  <eblake@redhat.com>
14572
14573         lseek: avoid bash 3.2 broken pipe bug
14574         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
14575         warning from bash 3.2.
14576         Reported by Ben Pfaff, with analysis from Bruno Haible.
14577
14578         bootstrap: support non-FSF copyright holder
14579         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
14580         bootstrap.conf override of COPYRIGHT_HOLDER.
14581         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
14582
14583         bootstrap: interoperate with gettext 0.14.1
14584         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
14585
14586         bootstrap: allow for alternate submodule location
14587         * build-aux/bootstrap (gnulib_path): New variable; use instead of
14588         hardcoding submodule location.
14589         (gnulib_mk): Allow direct use of Makefile.am.
14590
14591         bootstrap: use GNULIB_SRCDIR to reduce disk usage
14592         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
14593         rather than reconfiguring where the submodule points.
14594
14595         gettimeofday: restore support for platforms that lack function
14596         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
14597         replacement if function is missing.
14598         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
14599         * modules/sys_time (Makefile.am): Substitute it.
14600         * lib/sys_time.in.h (gettimeofday): Check it.
14601         Reported by Michael Goffioul.
14602
14603 2010-02-21  Bruno Haible  <bruno@clisp.org>
14604
14605         * lib/stdio.in.h (obstack_printf): Fix typo.
14606
14607 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
14608
14609         vc-list-files: use bzr ls's -R option
14610         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
14611         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
14612
14613 2010-02-21  Jim Meyering  <meyering@redhat.com>
14614
14615         init.sh: fix EXEEXT shims to work also for names like test-prog
14616         * tests/init.sh: Re-exec a better shell, when needed.
14617         If the current shell lacks support for posix $(...), an init.sh-using
14618         test will now try to find a shell that supports that.  If EXEEXT is
14619         nonempty, we also require support for hyphen-in-alias-name and shell
14620         substitutions like ${var#glob}.  Failure to find such a shell results
14621         in a skipped test.
14622
14623 2010-02-21  Bruno Haible  <bruno@clisp.org>
14624
14625         Really work around around "broken pipe" error message from bash 3.2.
14626         * gnulib-tool (func_reset_sigpipe): Remove function.
14627         (echo): In bash 3.2, define to a function that uses printf.
14628         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
14629
14630 2010-02-20  Bruno Haible  <bruno@clisp.org>
14631
14632         Restore support for automake 1.9.6 with autoconf 2.61.
14633         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
14634         Reported by James Youngman <jay@gnu.org>.
14635
14636 2010-02-20  Bruno Haible  <bruno@clisp.org>
14637
14638         Improve *printf warning condition.
14639         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
14640         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
14641         and the function is overridden due to SIGPIPE emulation.
14642
14643 2010-02-20  Bruno Haible  <bruno@clisp.org>
14644
14645         * lib/stdio.in.h: Tweak comments.
14646
14647 2010-02-19  Bruno Haible  <bruno@clisp.org>
14648
14649         Make it easier to find modules. New gnulib-tool option '--find'.
14650         * gnulib-tool: New option --find.
14651         (func_usage): Document it.
14652         (func_sanitize_modulelist): New function, extracted from
14653         func_all_modules.
14654         (func_all_modules): Invoke it.
14655         * doc/gnulib-tool.texi (Which modules?): New node.
14656
14657 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
14658
14659         * lib/sys_select.in.h: Provide select replacement even if
14660         sys/select.h exists on a system, for Interix.
14661
14662 2010-02-18  Jim Meyering  <meyering@redhat.com>
14663
14664         init.sh: don't use $(...) just yet
14665         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
14666         to accommodate e.g., Solaris' /bin/sh.
14667
14668 2010-02-17  Bruno Haible  <bruno@clisp.org>
14669
14670         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
14671         Reported by Ludovic Courtès <ludo@gnu.org>.
14672
14673 2010-02-16  Simon Josefsson  <simon@josefsson.org>
14674
14675         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
14676         linking with -lintl.
14677
14678 2010-02-17  Simon Josefsson  <simon@josefsson.org>
14679
14680         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
14681         if not provided by the system's netdb.h.  Reported by
14682         ludo@gnu.org (Ludovic Courtès).
14683
14684 2010-02-15  Jim Meyering  <meyering@redhat.com>
14685
14686         init.sh: improve portability and efficiency
14687         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
14688         "dummy" in a for loop.
14689         Use '!', not '^' to select the complement of a character set used
14690         in a "case" statement.
14691         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
14692         Suggestions from Eric Blake.
14693
14694         init.sh: automatically accommodate programs with the .exe suffix
14695         Automatically arrange for an invocation of "prog" to execute the
14696         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
14697         may use the simpler "prog", yet still work when built on a system
14698         that requires specifying the added suffix.
14699         Do this by constructing a function named "prog" that invokes
14700         "prog.exe" for each .exe file in selected directories.
14701         * tests/init.sh (find_exe_basenames_): New function.
14702         (create_exe_shim_functions_): New function.
14703         (path_prepend_): Use it.
14704
14705         maint.mk: mark syntax-check sc_*.m rules as .PHONY
14706         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
14707         "make -t syntax-check" doesn't create a ton of sc_*.m files.
14708
14709 2010-02-14  Jim Meyering  <meyering@redhat.com>
14710
14711         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
14712         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
14713         (sc_prohibit_hash_pjw_without_use): New rule.
14714
14715         maint.mk: allow the default upload destination dir to be overridden
14716         * top/maint.mk (upload_dest_dir_): Define with a default that
14717         preserves the status quo.
14718         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
14719         Reported by Peter Simons.
14720
14721         maint.mk: prohibit inclusion of "hash.h" without_use
14722         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
14723
14724 2010-02-10  Jim Meyering  <meyering@redhat.com>
14725
14726         maint.mk: prohibit inclusion of "ignore-value.h" without_use
14727         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
14728
14729 2010-02-09  Eric Blake  <ebb9@byu.net>
14730         and Bruno Haible  <bruno@clisp.org>
14731
14732         obstack-printf-posix: ensure declaration
14733         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
14734         extracted from gl_FUNC_OBSTACK_PRINTF.
14735         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
14736         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
14737         Likewise.
14738         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
14739         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
14740         0.
14741
14742 2010-02-08  Bruno Haible  <bruno@clisp.org>
14743
14744         gnulib-tool: Fix typo in 2010-02-07 commit.
14745         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
14746         Reported by Eric Blake.
14747
14748 2010-02-07  Bruno Haible  <bruno@clisp.org>
14749
14750         gnulib-tool: Fix up caching patches.
14751         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
14752         option --no-cache. Use associative arrays when supported by the shell.
14753         (sed_comments): New variable.
14754         (modcache): Renamed from do_cache.
14755         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
14756         abbreviate unnecessarily.
14757         (have_associative): New variable.
14758         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
14759         way also for ksh and zsh.
14760         (func_init_sed_convert_to_cache_statements): New function, extracted
14761         from func_cache_lookup_module. Add support for associative arrays.
14762         Don't set the c_MODULE_cached variable here. Ignore all lines before
14763         the first field header. Remove only the final newline, not all trailing
14764         newlines. Support empty fields correctly. Limit the use of 'eval' to
14765         assignments.
14766         (func_get_description, func_get_status, func_get_notice,
14767         func_get_applicability, func_get_filelist, func_get_dependencies,
14768         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
14769         func_get_automake_snippet, func_get_include_directive,
14770         func_get_link_directive, func_get_license, func_get_maintainer):
14771         Update documentation. List the unoptimized code first. Add support for
14772         associative arrays. Limit the use of 'eval' to assignments.
14773         (func_get_applicability): Undo stylistic pessimisations.
14774         (func_get_automake_snippet, func_get_include_directive): Reduce code
14775         duplication.
14776         (func_modules_transitive_closure, func_modules_add_dummy,
14777         func_modules_notice, func_modules_to_filelist, func_add_file,
14778         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
14779         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
14780         func_create_testdir, func_create_megatestdir): Update documentation.
14781
14782 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14783
14784         * gnulib-tool (func_cache_lookup_module): Store the module name
14785         belonging to the cache variable; error out if two different
14786         module names map to the same cache variable name.
14787
14788 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14789
14790         gnulib-tool: Make caching optional.
14791         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
14792         Update matching short versions of --no-changelog.
14793         (func_usage): Update.
14794         (sed_extract_cache_prog): Renamed from ...
14795         (sed_extract_prog): ... this; revert to old extraction script.
14796         (func_get_description, func_get_status)
14797         (func_get_notice, func_get_applicability, func_get_filelist)
14798         (func_get_dependencies, func_get_autoconf_early_snippet)
14799         (func_get_autoconf_snippet, func_get_automake_snippet)
14800         (func_get_include_directive, func_get_link_directive)
14801         (func_get_license, func_get_maintainer): If $do_cache is false,
14802         use old, non-caching extraction scripts.
14803         Suggestion by Bruno Haible.
14804
14805 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14806
14807         gnulib-tool: cache module metainformation.
14808         * gnulib-tool (sed_extract_prog): Match newline before each
14809         header, and rewrite header to a shell variable suffix.
14810         (func_cache_var, func_cache_lookup_module): New functions,
14811         to turn a module name into a cache variable prefix, and to
14812         look up and cache module metainformation.
14813         (func_get_description, func_get_status)
14814         (func_get_notice, func_get_applicability, func_get_filelist)
14815         (func_get_dependencies, func_get_autoconf_early_snippet)
14816         (func_get_autoconf_snippet, func_get_automake_snippet)
14817         (func_get_include_directive, func_get_link_directive)
14818         (func_get_license, func_get_maintainer): Use
14819         func_cache_lookup_module.
14820
14821 2010-02-07  Bruno Haible  <bruno@clisp.org>
14822
14823         fnctl: Fix missing dependency.
14824         * modules/fcntl (Depends-on): Add getdtablesize.
14825         Reported by John W. Eaton <jwe@gnu.org>.
14826
14827 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14828
14829         Argp: fix recognition of short alias options.
14830
14831         * lib/argp-parse.c (convert_options): Fix improper use of
14832         `|' between character values.
14833         * tests/test-argp.c (group1_option): New alias option
14834         --read (-r).
14835         (group1_parser): Special handling for 'r'.
14836         (test15): New test case.
14837         (test_fun): Add test15.
14838         * tests/test-argp-2.sh: Update expected --help and --usage
14839         outputs.
14840
14841 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14842
14843         * tests/test-argp.c: Fix indentation.
14844
14845 2010-02-04  Eric Blake  <ebb9@byu.net>
14846
14847         gettimeofday: expose type of second argument
14848         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
14849         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
14850         * tests/test-gettimeofday.c: Use it to silence warning.
14851         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
14852         the issue.
14853
14854 2010-02-03  Jim Meyering  <meyering@redhat.com>
14855
14856         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
14857         * lib/regcomp.c (TYPE_SIGNED): Define.
14858         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
14859
14860         regcomp.c: avoid a new -Wshadow warning
14861         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
14862
14863 2010-02-01  Jim Meyering  <meyering@redhat.com>
14864
14865         removing useless parentheses in cpp #define directives
14866         For motivation, see commit c0221df4, "define STREQ(a,b)
14867         consistently, removing useless parentheses"
14868         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
14869         * lib/mountlist.c (MNT_IGNORE): Likewise.
14870         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
14871
14872 2010-02-01  Eric Blake  <ebb9@byu.net>
14873
14874         sys_time: use link-warning
14875         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
14876         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
14877         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
14878         * modules/sys_time (Depends-on): Add warn-on-use.
14879         (Makefile.am): Always build replacement.
14880         (configure.ac): Update substitutions.
14881         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
14882         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
14883         bother with SYS_TIME_H.
14884         * modules/gettimeofday (configure.ac): Declare indicator.
14885         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
14886         in use.
14887
14888         closein-tests: silence compiler warning
14889         * tests/test-closein.c (main): Ignore fread result.
14890         * modules/closein-tests (Depends-on): Add ignore-value.
14891
14892         tests: silence warning about system return
14893         * tests/test-areadlink-with-size.c (main): Ignore system result.
14894         * tests/test-areadlink.c (main): Likewise.
14895         * tests/test-areadlinkat-with-size.c (main): Likewise.
14896         * tests/test-areadlinkat.c (main): Likewise.
14897         * tests/test-canonicalize-lgpl.c (main): Likewise.
14898         * tests/test-canonicalize.c (main): Likewise.
14899         * tests/test-chown.c (main): Likewise.
14900         * tests/test-fchownat.c (main): Likewise.
14901         * tests/test-fdutimensat.c (main): Likewise.
14902         * tests/test-fstatat.c (main): Likewise.
14903         * tests/test-futimens.c (main): Likewise.
14904         * tests/test-lchown.c (main): Likewise.
14905         * tests/test-link.c (main): Likewise.
14906         * tests/test-linkat.c (main): Likewise.
14907         * tests/test-lstat.c (main): Likewise.
14908         * tests/test-mkdir.c (main): Likewise.
14909         * tests/test-mkdirat.c (main): Likewise.
14910         * tests/test-mkfifo.c (main): Likewise.
14911         * tests/test-mkfifoat.c (main): Likewise.
14912         * tests/test-mknod.c (main): Likewise.
14913         * tests/test-readlink.c (main): Likewise.
14914         * tests/test-remove.c (main): Likewise.
14915         * tests/test-rename.c (main): Likewise.
14916         * tests/test-renameat.c (main): Likewise.
14917         * tests/test-rmdir.c (main): Likewise.
14918         * tests/test-symlink.c (main): Likewise.
14919         * tests/test-symlinkat.c (main): Likewise.
14920         * tests/test-unlink.c (main): Likewise.
14921         * tests/test-unlinkat.c (main): Likewise.
14922         * tests/test-utimens.c (main): Likewise.
14923         * tests/test-utimensat.c (main): Likewise.
14924         * modules/areadlink-tests (Depends-on): Add ignore-value.
14925         * modules/areadlink-with-size-tests (Depends-on): Likewise.
14926         * modules/areadlinkat-tests (Depends-on): Likewise.
14927         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
14928         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14929         * modules/canonicalize-tests (Depends-on): Likewise.
14930         * modules/chown-tests (Depends-on): Likewise.
14931         * modules/fdutimensat-tests (Depends-on): Likewise.
14932         * modules/futimens-tests (Depends-on): Likewise.
14933         * modules/lchown-tests (Depends-on): Likewise.
14934         * modules/link-tests (Depends-on): Likewise.
14935         * modules/linkat-tests (Depends-on): Likewise.
14936         * modules/lstat-tests (Depends-on): Likewise.
14937         * modules/mkdir-tests (Depends-on): Likewise.
14938         * modules/mkfifo-tests (Depends-on): Likewise.
14939         * modules/mkfifoat-tests (Depends-on): Likewise.
14940         * modules/mknod-tests (Depends-on): Likewise.
14941         * modules/openat-tests (Depends-on): Likewise.
14942         * modules/readlink-tests (Depends-on): Likewise.
14943         * modules/remove-tests (Depends-on): Likewise.
14944         * modules/rename-tests (Depends-on): Likewise.
14945         * modules/renameat-tests (Depends-on): Likewise.
14946         * modules/rmdir-tests (Depends-on): Likewise.
14947         * modules/symlink-tests (Depends-on): Likewise.
14948         * modules/symlinkat-tests (Depends-on): Likewise.
14949         * modules/unlink-tests (Depends-on): Likewise.
14950         * modules/utimens-tests (Depends-on): Likewise.
14951         * modules/utimensat-tests (Depends-on): Likewise.
14952
14953 2010-01-31  Bruno Haible  <bruno@clisp.org>
14954
14955         Perform the same test for many <math.h> functions.
14956         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
14957         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
14958         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
14959         of gl_MATHFUNC.
14960         * modules/acos (configure.ac): Likewise.
14961         * modules/asin (configure.ac): Likewise.
14962         * modules/atan (configure.ac): Likewise.
14963         * modules/atan2 (configure.ac): Likewise.
14964         * modules/cbrt (configure.ac): Likewise.
14965         * modules/copysign (configure.ac): Likewise.
14966         * modules/cos (configure.ac): Likewise.
14967         * modules/cosh (configure.ac): Likewise.
14968         * modules/erf (configure.ac): Likewise.
14969         * modules/erfc (configure.ac): Likewise.
14970         * modules/exp (configure.ac): Likewise.
14971         * modules/fmod (configure.ac): Likewise.
14972         * modules/hypot (configure.ac): Likewise.
14973         * modules/j0 (configure.ac): Likewise.
14974         * modules/j1 (configure.ac): Likewise.
14975         * modules/jn (configure.ac): Likewise.
14976         * modules/lgamma (configure.ac): Likewise.
14977         * modules/log (configure.ac): Likewise.
14978         * modules/log10 (configure.ac): Likewise.
14979         * modules/log1p (configure.ac): Likewise.
14980         * modules/pow (configure.ac): Likewise.
14981         * modules/remainder (configure.ac): Likewise.
14982         * modules/sin (configure.ac): Likewise.
14983         * modules/sinh (configure.ac): Likewise.
14984         * modules/tan (configure.ac): Likewise.
14985         * modules/tanh (configure.ac): Likewise.
14986         * modules/y0 (configure.ac): Likewise.
14987         * modules/y1 (configure.ac): Likewise.
14988         * modules/yn (configure.ac): Likewise.
14989         Suggested by Paolo Bonzini.
14990
14991 2010-01-31  Bruno Haible  <bruno@clisp.org>
14992
14993         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
14994
14995 2010-01-31  Bruno Haible  <bruno@clisp.org>
14996
14997         Work around getdelim() bug on FreeBSD 8.0.
14998         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
14999         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
15000         not work.
15001         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
15002         is 1.
15003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
15004         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
15005         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
15006         a non-zero size.
15007         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
15008
15009 2010-01-31  Bruno Haible  <bruno@clisp.org>
15010
15011         Work around getline() bug on FreeBSD 8.0.
15012         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
15013         and a non-zero size.
15014         * tests/test-getline.c (main): Likewise.
15015         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
15016         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
15017
15018 2010-01-28  Eric Blake  <ebb9@byu.net>
15019
15020         regex: fix build failure
15021         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
15022         platforms.
15023
15024 2010-01-28  Jim Meyering  <meyering@redhat.com>
15025
15026         regex: do not ignore memory allocation failure
15027         * lib/regex_internal.c (create_cd_newstate): Detect
15028         re_node_set_init_copy failure.   Extracted from glibc commit
15029         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15030
15031         regex: sync more white-space changes from libc
15032         * lib/regex_internal.c: White-space only changes.
15033         * lib/regexec.c: Likewise.
15034
15035         regex: add many uses of __attribute_warn_unused_result__
15036         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
15037         * lib/regexec.c: Likewise.
15038         Extracted from a messy glibc commit.
15039
15040         regcomp.c: spelling and merge-artifact from glibc
15041         * lib/regcomp.c: Merge remainder of glibc's
15042         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15043
15044         regcomp.c: sync white-space changes from glibc
15045         * lib/regcomp.c: Merge to accommodate white space
15046         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15047
15048         regcomp.c: do not ignore internal return values
15049         * lib/regcomp.c: Do not ignore internal return values.
15050         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
15051         but without its white-space changes and spelling fixes.
15052
15053         regex_internal.h: define __attribute_warn_unused_result__
15054         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
15055
15056         maint: add a syntax-check rule to check for vulnerable Makefile.in
15057         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
15058
15059 2010-01-27  Jim Meyering  <meyering@redhat.com>
15060
15061         ncftpput-ftp: clean up spaces
15062         * build-aux/ncftpput-ftp: Make Copyright line consistent.
15063         Remove trailing blanks.
15064
15065 2010-01-27  Simon Josefsson  <simon@josefsson.org>
15066
15067         * build-aux/git-version-gen: Fix copyright statement.
15068         * build-aux/gnupload: Likewise.
15069         * tests/test-arcfour.c: Likewise.
15070         * tests/test-arctwo.c: Likewise.
15071         * tests/test-count-one-bits.c: Likewise.
15072         * tests/test-crc.c: Likewise.
15073         * tests/test-des.c: Likewise.
15074         * tests/test-gc-arcfour.c: Likewise.
15075         * tests/test-gc-arctwo.c: Likewise.
15076         * tests/test-gc-des.c: Likewise.
15077         * tests/test-gc-hmac-md5.c: Likewise.
15078         * tests/test-gc-hmac-sha1.c: Likewise.
15079         * tests/test-gc-md2.c: Likewise.
15080         * tests/test-gc-md4.c: Likewise.
15081         * tests/test-gc-md5.c: Likewise.
15082         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15083         * tests/test-gc-rijndael.c: Likewise.
15084         * tests/test-gc-sha1.c: Likewise.
15085         * tests/test-gc.c: Likewise.
15086         * tests/test-gethostname.c: Likewise.
15087         * tests/test-gettimeofday.c: Likewise.
15088         * tests/test-hash.c: Likewise.
15089         * tests/test-hmac-md5.c: Likewise.
15090         * tests/test-hmac-sha1.c: Likewise.
15091         * tests/test-md2.c: Likewise.
15092         * tests/test-md4.c: Likewise.
15093         * tests/test-md5.c: Likewise.
15094         * tests/test-memchr.c: Likewise.
15095         * tests/test-memchr2.c: Likewise.
15096         * tests/test-memcmp.c: Likewise.
15097         * tests/test-memmem.c: Likewise.
15098         * tests/test-memrchr.c: Likewise.
15099         * tests/test-rawmemchr.c: Likewise.
15100         * tests/test-read-file.c: Likewise.
15101         * tests/test-rijndael.c: Likewise.
15102         * tests/test-sockets.c: Likewise.
15103         * tests/test-strchrnul.c: Likewise.
15104         * tests/test-strstr.c: Likewise.
15105         * tests/test-strtod.c: Likewise.
15106         * build-aux/ncftpput-ftp: Likewise.
15107
15108 2010-01-26  Eric Blake  <ebb9@byu.net>
15109
15110         ignore-value: update recommended header name
15111         * modules/ignore-value (Include): Only use <> for headers that
15112         exist in glibc.
15113
15114 2010-01-26  Jim Meyering  <meyering@redhat.com>
15115
15116         test-userspec.c: avoid compiler warnings
15117         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
15118         and "initialization discards qualifiers..." warnings.
15119         Put the first "uid" in its own scope, and make char* members "const".
15120
15121 2010-01-25  Bruno Haible  <bruno@clisp.org>
15122
15123         gnulib-tool: Make warning diagnostics consistent.
15124         * gnulib-tool (func_warning): New function.
15125         Use it everywhere where gnulib-tool produces output to stderr and it is
15126         not a fatal error.
15127
15128 2010-01-25  Bruno Haible  <bruno@clisp.org>
15129
15130         Fix test dependencies.
15131         * modules/xstrtol-tests (Depends-on): Add inttypes.
15132         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
15133
15134 2010-01-25 Pádraig Brady <P@draigBrady.com>
15135
15136         syntax-check: detect incorrect boolean macro values in config.h
15137         * modules/maintainer-makefile (configure.ac): Parameterize the location
15138         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
15139         The logic is from Eric Blake and the location indicated by Jim Meyering.
15140         Note the more natural CONFIG_HEADER name is prohibited by automake
15141         for backwards compatibility reasons.
15142         * top/maint.mk (sc_Wundef_boolean): New rule.
15143
15144 2010-01-25  Jim Meyering  <meyering@redhat.com>
15145
15146         bootstrap: detect MacOS 10.6's shasum, too
15147         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
15148         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
15149
15150 2010-01-23  Jim Meyering  <meyering@redhat.com>
15151
15152         xstrtoll: new module
15153         * modules/xstrtoll: New file.
15154         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
15155         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
15156         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
15157         ./configure fails if you use this module and lack "long long".
15158         * modules/xstrtoll-tests: New module.
15159         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
15160         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
15161         new init.sh-based test framework.
15162
15163 2010-01-24  Bruno Haible  <bruno@clisp.org>
15164
15165         Tests for module 'yn'.
15166         * modules/yn-tests: New file.
15167         * tests/test-yn.c: New file.
15168
15169         Tests for module 'y1'.
15170         * modules/y1-tests: New file.
15171         * tests/test-y1.c: New file.
15172
15173         Tests for module 'y0'.
15174         * modules/y0-tests: New file.
15175         * tests/test-y0.c: New file.
15176
15177         Tests for module 'tanh'.
15178         * modules/tanh-tests: New file.
15179         * tests/test-tanh.c: New file.
15180
15181         Tests for module 'tan'.
15182         * modules/tan-tests: New file.
15183         * tests/test-tan.c: New file.
15184
15185         Tests for module 'sqrt'.
15186         * modules/sqrt-tests: New file.
15187         * tests/test-sqrt.c: New file.
15188
15189         Tests for module 'sinh'.
15190         * modules/sinh-tests: New file.
15191         * tests/test-sinh.c: New file.
15192
15193         Tests for module 'sin'.
15194         * modules/sin-tests: New file.
15195         * tests/test-sin.c: New file.
15196
15197         Tests for module 'rint'.
15198         * modules/rint-tests: New file.
15199         * tests/test-rint.c: New file.
15200
15201         Tests for module 'remainder'.
15202         * modules/remainder-tests: New file.
15203         * tests/test-remainder.c: New file.
15204
15205         Tests for module 'pow'.
15206         * modules/pow-tests: New file.
15207         * tests/test-pow.c: New file.
15208
15209         Tests for module 'nextafter'.
15210         * modules/nextafter-tests: New file.
15211         * tests/test-nextafter.c: New file.
15212
15213         Tests for module 'modf'.
15214         * modules/modf-tests: New file.
15215         * tests/test-modf.c: New file.
15216
15217         Tests for module 'logb'.
15218         * modules/logb-tests: New file.
15219         * tests/test-logb.c: New file.
15220
15221         Tests for module 'log1p'.
15222         * modules/log1p-tests: New file.
15223         * tests/test-log1p.c: New file.
15224
15225         Tests for module 'log10'.
15226         * modules/log10-tests: New file.
15227         * tests/test-log10.c: New file.
15228
15229         Tests for module 'log'.
15230         * modules/log-tests: New file.
15231         * tests/test-log.c: New file.
15232
15233         Tests for module 'lgamma'.
15234         * modules/lgamma-tests: New file.
15235         * tests/test-lgamma.c: New file.
15236
15237         Tests for module 'ldexp'.
15238         * modules/ldexp-tests: New file.
15239         * tests/test-ldexp.c: New file.
15240
15241         Tests for module 'jn'.
15242         * modules/jn-tests: New file.
15243         * tests/test-jn.c: New file.
15244
15245         Tests for module 'j1'.
15246         * modules/j1-tests: New file.
15247         * tests/test-j1.c: New file.
15248
15249         Tests for module 'j0'.
15250         * modules/j0-tests: New file.
15251         * tests/test-j0.c: New file.
15252
15253         Tests for module 'hypot'.
15254         * modules/hypot-tests: New file.
15255         * tests/test-hypot.c: New file.
15256
15257         Tests for module 'fmod'.
15258         * modules/fmod-tests: New file.
15259         * tests/test-fmod.c: New file.
15260
15261         Tests for module 'fabs'.
15262         * modules/fabs-tests: New file.
15263         * tests/test-fabs.c: New file.
15264
15265         Tests for module 'exp'.
15266         * modules/exp-tests: New file.
15267         * tests/test-exp.c: New file.
15268
15269         Tests for module 'erfc'.
15270         * modules/erfc-tests: New file.
15271         * tests/test-erfc.c: New file.
15272
15273         Tests for module 'erf'.
15274         * modules/erf-tests: New file.
15275         * tests/test-erf.c: New file.
15276
15277         Tests for module 'cosh'.
15278         * modules/cosh-tests: New file.
15279         * tests/test-cosh.c: New file.
15280
15281         Tests for module 'cos'.
15282         * modules/cos-tests: New file.
15283         * tests/test-cos.c: New file.
15284
15285         Tests for module 'copysign'.
15286         * modules/copysign-tests: New file.
15287         * tests/test-copysign.c: New file.
15288
15289         Tests for module 'cbrt'.
15290         * modules/cbrt-tests: New file.
15291         * tests/test-cbrt.c: New file.
15292
15293         Tests for module 'atan2'.
15294         * modules/atan2-tests: New file.
15295         * tests/test-atan2.c: New file.
15296
15297         Tests for module 'atan'.
15298         * modules/atan-tests: New file.
15299         * tests/test-atan.c: New file.
15300
15301         Tests for module 'asin'.
15302         * modules/asin-tests: New file.
15303         * tests/test-asin.c: New file.
15304
15305         Tests for module 'acos'.
15306         * modules/acos-tests: New file.
15307         * tests/test-acos.c: New file.
15308
15309 2010-01-24  Bruno Haible  <bruno@clisp.org>
15310
15311         Fix tests for common <math.h> functions.
15312         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
15313         code snippet that references the function pointer, rather than merely
15314         calling the function. Substitute the FUNC_LIBM variable.
15315         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
15316         * modules/acos (configure.ac): Likewise.
15317         * modules/asin (configure.ac): Likewise.
15318         * modules/atan (configure.ac): Likewise.
15319         * modules/atan2 (configure.ac): Likewise.
15320         * modules/cbrt (configure.ac): Likewise.
15321         * modules/copysign (configure.ac): Likewise.
15322         * modules/cos (configure.ac): Likewise.
15323         * modules/cosh (configure.ac): Likewise.
15324         * modules/erf (configure.ac): Likewise.
15325         * modules/erfc (configure.ac): Likewise.
15326         * modules/exp (configure.ac): Likewise.
15327         * modules/fabs (configure.ac): Likewise.
15328         * modules/fmod (configure.ac): Likewise.
15329         * modules/hypot (configure.ac): Likewise.
15330         * modules/j0 (configure.ac): Likewise.
15331         * modules/j1 (configure.ac): Likewise.
15332         * modules/jn (configure.ac): Likewise.
15333         * modules/ldexp (configure.ac): Likewise.
15334         * modules/lgamma (configure.ac): Likewise.
15335         * modules/log (configure.ac): Likewise.
15336         * modules/log10 (configure.ac): Likewise.
15337         * modules/log1p (configure.ac): Likewise.
15338         * modules/logb (configure.ac): Likewise.
15339         * modules/modf (configure.ac): Likewise.
15340         * modules/nextafter (configure.ac): Likewise.
15341         * modules/pow (configure.ac): Likewise.
15342         * modules/remainder (configure.ac): Likewise.
15343         * modules/rint (configure.ac): Likewise.
15344         * modules/sin (configure.ac): Likewise.
15345         * modules/sinh (configure.ac): Likewise.
15346         * modules/tan (configure.ac): Likewise.
15347         * modules/tanh (configure.ac): Likewise.
15348         * modules/y0 (configure.ac): Likewise.
15349         * modules/y1 (configure.ac): Likewise.
15350         * modules/yn (configure.ac): Likewise.
15351
15352 2010-01-24  Bruno Haible  <bruno@clisp.org>
15353
15354         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
15355         * tests/test-acosl.c (x): New variable.
15356         (main): Store argument in x and fetch it from x.
15357         * tests/test-asinl.c (x): New variable.
15358         (main): Store argument in x and fetch it from x.
15359         * tests/test-atanl.c (x): New variable.
15360         (main): Store argument in x and fetch it from x.
15361         * tests/test-cosl.c (x): New variable.
15362         (main): Store argument in x and fetch it from x.
15363         * tests/test-expl.c (x): New variable.
15364         (main): Store argument in x and fetch it from x.
15365         * tests/test-logl.c (x): New variable.
15366         (main): Store argument in x and fetch it from x.
15367         * tests/test-sinl.c (x): New variable.
15368         (main): Store argument in x and fetch it from x.
15369         * tests/test-sqrtl.c (x): New variable.
15370         (main): Store argument in x and fetch it from x.
15371         * tests/test-tanl.c (x): New variable.
15372         (main): Store argument in x and fetch it from x.
15373
15374 2010-01-24  Bruno Haible  <bruno@clisp.org>
15375
15376         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
15377         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
15378         assignments to the initial TESTS_ENVIRONMENT.
15379         * doc/gnulib.texi (Unit test modules): Document it.
15380         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
15381         TESTS_ENVIRONMENT.
15382         * modules/btowc-tests (Makefile.am): Likewise.
15383         * modules/c-stack-tests (Makefile.am): Likewise.
15384         * modules/c-strcase-tests (Makefile.am): Likewise.
15385         * modules/copy-file-tests (Makefile.am): Likewise.
15386         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
15387         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
15388         * modules/mbrtowc-tests (Makefile.am): Likewise.
15389         * modules/mbscasecmp-tests (Makefile.am): Likewise.
15390         * modules/mbscasestr-tests (Makefile.am): Likewise.
15391         * modules/mbschr-tests (Makefile.am): Likewise.
15392         * modules/mbscspn-tests (Makefile.am): Likewise.
15393         * modules/mbsinit-tests (Makefile.am): Likewise.
15394         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
15395         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
15396         * modules/mbspbrk-tests (Makefile.am): Likewise.
15397         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
15398         * modules/mbsrchr-tests (Makefile.am): Likewise.
15399         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
15400         * modules/mbsspn-tests (Makefile.am): Likewise.
15401         * modules/mbsstr-tests (Makefile.am): Likewise.
15402         * modules/nl_langinfo-tests (Makefile.am): Likewise.
15403         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
15404         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
15405         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
15406         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
15407         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
15408         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
15409         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
15410         * modules/wcrtomb-tests (Makefile.am): Likewise.
15411         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
15412         * modules/wcsrtombs-tests (Makefile.am): Likewise.
15413         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
15414         assignments from TESTS_ENVIRONMENT.
15415         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
15416         augmentation.
15417         * modules/argp-version-etc-tests (Makefile.am): Likewise.
15418         * modules/atexit-tests (Makefile.am): Likewise.
15419         * modules/binary-io-tests (Makefile.am): Likewise.
15420         * modules/closein-tests (Makefile.am): Likewise.
15421         * modules/dprintf-posix-tests (Makefile.am): Likewise.
15422         * modules/exclude-tests (Makefile.am): Likewise.
15423         * modules/fflush-tests (Makefile.am): Likewise.
15424         * modules/fpending-tests (Makefile.am): Likewise.
15425         * modules/fprintf-posix-tests (Makefile.am): Likewise.
15426         * modules/freadahead-tests (Makefile.am): Likewise.
15427         * modules/freadptr-tests (Makefile.am): Likewise.
15428         * modules/freadseek-tests (Makefile.am): Likewise.
15429         * modules/fseek-tests (Makefile.am): Likewise.
15430         * modules/fseeko-tests (Makefile.am): Likewise.
15431         * modules/ftell-tests (Makefile.am): Likewise.
15432         * modules/ftello-tests (Makefile.am): Likewise.
15433         * modules/idpriv-drop-tests (Makefile.am): Likewise.
15434         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
15435         * modules/lseek-tests (Makefile.am): Likewise.
15436         * modules/parse-duration-tests (Makefile.am): Likewise.
15437         * modules/perror-tests (Makefile.am): Likewise.
15438         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
15439         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
15440         * modules/pipe-tests (Makefile.am): Likewise.
15441         * modules/pread-tests (Makefile.am): Likewise.
15442         * modules/printf-posix-tests (Makefile.am): Likewise.
15443         * modules/select-tests (Makefile.am): Likewise.
15444         * modules/sigpipe-tests (Makefile.am): Likewise.
15445         * modules/tsearch-tests (Makefile.am): Likewise.
15446         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
15447         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
15448         * modules/uniname/uniname-tests (Makefile.am): Likewise.
15449         * modules/uniwidth/width-tests (Makefile.am): Likewise.
15450         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
15451         * modules/version-etc-tests (Makefile.am): Likewise.
15452         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
15453         * modules/vprintf-posix-tests (Makefile.am): Likewise.
15454         * modules/xalloc-die-tests (Makefile.am): Likewise.
15455         * modules/xprintf-posix-tests (Makefile.am): Likewise.
15456         * modules/xstrtoimax-tests (Makefile.am): Likewise.
15457         * modules/xstrtol-tests (Makefile.am): Likewise.
15458         * modules/xstrtoumax-tests (Makefile.am): Likewise.
15459         * modules/yesno-tests (Makefile.am): Likewise.
15460         Suggested by Jim Meyering.
15461
15462 2010-01-24  Bruno Haible  <bruno@clisp.org>
15463
15464         More documentation.
15465         * doc/gnulib.texi (Writing modules): New chapter.
15466         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
15467         the new chapter.
15468
15469 2010-01-24  Jim Meyering  <meyering@redhat.com>
15470
15471         maint.mk: do not prepend "./" after filtering
15472         * top/maint.mk (_prepend_srcdir_prefix): New variable
15473         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
15474         "./" when $(srcdir) is ".".
15475
15476         define STREQ(a,b) consistently, removing useless parentheses
15477         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
15478         since the only risk is that "a" or "b" contains an unparenthesized
15479         comma, but if either did that, STREQ would have 3 or more arguments.
15480         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
15481         * lib/fts.c (STREQ): Remove unnecessary parentheses.
15482         * lib/hash-triple.c (STREQ): Likewise.
15483         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
15484         * lib/getugroups.c (STREQ): Likewise.
15485
15486 2010-01-23  Jim Meyering  <meyering@redhat.com>
15487
15488         maint.mk: fix syntax-check in a non-srcdir build directory
15489         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
15490         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
15491
15492 2010-01-22  Jim Meyering  <meyering@redhat.com>
15493
15494         userspec: add unit tests
15495         * tests/test-userspec.c: New file.
15496         * modules/userspec-tests: Likewise.
15497
15498 2010-01-21  Jim Meyering  <meyering@redhat.com>
15499
15500         maint.mk: handle source file names containing "." robustly
15501         * top/maint.mk (_dot_escaped_srcdir): Define.
15502         (VC_LIST): Use it in LHS of sed substitution.
15503
15504 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
15505
15506         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
15507         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
15508         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
15509         from a non-srcdir build.
15510
15511 2010-01-20  Eric Blake  <ebb9@byu.net>
15512
15513         warn-on-use: use instead of link-warning
15514         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
15515         * modules/unistd (Depends-on, Makefile.am): Likewise.
15516         * modules/arpa_inet (Depends-on): Replace link-warning with
15517         warn-on-use.
15518         (Makefile.am): Update rules accordingly.
15519         * modules/ctype (Depends-on, Makefile.am): Likewise.
15520         * modules/dirent (Depends-on, Makefile.am): Likewise.
15521         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
15522         * modules/inttypes (Depends-on, Makefile.am): Likewise.
15523         * modules/langinfo (Depends-on, Makefile.am): Likewise.
15524         * modules/locale (Depends-on, Makefile.am): Likewise.
15525         * modules/math (Depends-on, Makefile.am): Likewise.
15526         * modules/search (Depends-on, Makefile.am): Likewise.
15527         * modules/signal (Depends-on, Makefile.am): Likewise.
15528         * modules/spawn (Depends-on, Makefile.am): Likewise.
15529         * modules/stdlib (Depends-on, Makefile.am): Likewise.
15530         * modules/string (Depends-on, Makefile.am): Likewise.
15531         * modules/strings (Depends-on, Makefile.am): Likewise.
15532         * modules/sys_file (Depends-on, Makefile.am): Likewise.
15533         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
15534         * modules/sys_select (Depends-on, Makefile.am): Likewise.
15535         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
15536         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
15537         * modules/sys_times (Depends-on, Makefile.am): Likewise.
15538         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
15539         * modules/wchar (Depends-on, Makefile.am): Likewise.
15540         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
15541         should be poisoned.
15542         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
15543         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
15544         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
15545         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15546         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15547         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15548         * m4/math_h.m4 (gl_MATH_H): Likewise.
15549         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15550         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15551         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15552         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15553         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
15554         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
15555         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15556         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
15557         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15560         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
15561         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15562         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15563         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15564         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15565         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
15566         GL_LINK_WARNING.
15567         * lib/ctype.in.h: Likewise.
15568         * lib/dirent.in.h: Likewise.
15569         * lib/fcntl.in.h: Likewise.
15570         * lib/inttypes.in.h: Likewise.
15571         * lib/langinfo.in.h: Likewise.
15572         * lib/locale.in.h: Likewise.
15573         * lib/math.in.h: Likewise.
15574         * lib/search.in.h: Likewise.
15575         * lib/signal.in.h: Likewise.
15576         * lib/spawn.in.h: Likewise.
15577         * lib/stdio.in.h: Likewise.
15578         * lib/stdlib.in.h: Likewise.
15579         * lib/string.in.h: Likewise.
15580         * lib/strings.in.h: Likewise.
15581         * lib/sys_file.in.h: Likewise.
15582         * lib/sys_ioctl.in.h: Likewise.
15583         * lib/sys_select.in.h: Likewise.
15584         * lib/sys_socket.in.h: Likewise.
15585         * lib/sys_stat.in.h: Likewise.
15586         * lib/sys_times.in.h: Likewise.
15587         * lib/sys_utsname.in.h: Likewise.
15588         * lib/unistd.in.h: Likewise.
15589         * lib/wchar.in.h: Likewise.
15590
15591 2010-01-20  Bruno Haible  <bruno@clisp.org>
15592
15593         Avoid duplicate -lm.
15594         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
15595         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
15596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
15597         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
15598         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
15599         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
15600         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
15601         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
15602         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
15603         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
15604         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
15605         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15606         Reported by Paolo Bonzini.
15607
15608 2010-01-19  Bruno Haible  <bruno@clisp.org>
15609
15610         langinfo, nl_langinfo: Relicense under LGPLv2+.
15611         * modules/langinfo (License): Change to LGPLv2+.
15612         * modules/nl_langinfo (License): Likewise.
15613         Patch by David Lutterkort <lutter@redhat.com>.
15614
15615 2010-01-19  Bruno Haible  <bruno@clisp.org>
15616
15617         Avoid compilation error with cc on OSF/1 5.1.
15618         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
15619         statement, not before.
15620         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15621
15622 2010-01-18  Bruno Haible  <bruno@clisp.org>
15623
15624         Avoid a link error due to the __printf__ symbol.
15625         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
15626         and 2.6.x.
15627         (__format__, __printf__): Remove definitions.
15628         * lib/argp-fmtstream.h: Likewise.
15629         * lib/argp.h: Likewise.
15630         * lib/error.h: Likewise.
15631         * lib/vasnprintf.h: Likewise.
15632         * lib/xprintf.h: Likewise.
15633         * lib/xvasprintf.h: Likewise.
15634         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15635
15636 2010-01-18  Bruno Haible  <bruno@clisp.org>
15637
15638         Tests for module 'tanl'.
15639         * modules/tanl-tests: New file.
15640         * tests/test-tanl.c: New file.
15641
15642         Tests for module 'sqrtl'.
15643         * modules/sqrtl-tests: New file.
15644         * tests/test-sqrtl.c: New file.
15645
15646         Tests for module 'sinl'.
15647         * modules/sinl-tests: New file.
15648         * tests/test-sinl.c: New file.
15649
15650         Tests for module 'logl'.
15651         * modules/logl-tests: New file.
15652         * tests/test-logl.c: New file.
15653
15654         Tests for module 'expl'.
15655         * modules/expl-tests: New file.
15656         * tests/test-expl.c: New file.
15657
15658         Tests for module 'cosl'.
15659         * modules/cosl-tests: New file.
15660         * tests/test-cosl.c: New file.
15661
15662         Tests for module 'atanl'.
15663         * modules/atanl-tests: New file.
15664         * tests/test-atanl.c: New file.
15665
15666         Tests for module 'asinl'.
15667         * modules/asinl-tests: New file.
15668         * tests/test-asinl.c: New file.
15669
15670         Tests for module 'acosl'.
15671         * modules/acosl-tests: New file.
15672         * tests/test-acosl.c: New file.
15673
15674         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15675         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
15676         tanl): Use the standard gnulib idiom.
15677         * lib/cosl.c: Don't include trigl.c and sincosl.c.
15678         * lib/sinl.c: Likewise.
15679         * lib/tanl.c: Don't include trigl.c.
15680         (kernel_tanl): Make static.
15681         * lib/sincosl.c: Include trigl.h first.
15682         * lib/trigl.c: Likewise.
15683         * m4/acosl.m4: New file.
15684         * m4/asinl.m4: New file.
15685         * m4/atanl.m4: New file.
15686         * m4/cosl.m4: New file.
15687         * m4/expl.m4: New file.
15688         * m4/logl.m4: New file.
15689         * m4/sinl.m4: New file.
15690         * m4/sqrtl.m4: New file.
15691         * m4/tanl.m4: New file.
15692         * m4/mathl.m4: Remove file.
15693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
15694         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15695         Don't initialize GNULIB_MATHL.
15696         * modules/acosl: New file.
15697         * modules/asinl: New file.
15698         * modules/atanl: New file.
15699         * modules/cosl: New file.
15700         * modules/expl: New file.
15701         * modules/logl: New file.
15702         * modules/sinl: New file.
15703         * modules/sqrtl: New file.
15704         * modules/tanl: New file.
15705         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
15706         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
15707         substitute GNULIB_MATHL.
15708         * modules/mathl: Rewritten.
15709         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
15710         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
15711         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
15712         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
15713         * doc/posix-functions/expl.texi: Mention the 'expl' module.
15714         * doc/posix-functions/logl.texi: Mention the 'logl' module.
15715         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
15716         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
15717         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
15718
15719 2010-01-18  Bruno Haible  <bruno@clisp.org>
15720
15721         sqrt: Make gl_FUNC_SQRT requirable.
15722         * m4/sqrt.m4: New file.
15723         * modules/sqrt (Files): Add it.
15724         (configure.ac): Invoke gl_FUNC_SQRT.
15725
15726 2010-01-18  Bruno Haible  <bruno@clisp.org>
15727
15728         New modules for common <math.h> functions.
15729         * m4/mathfunc.m4: New file.
15730         * modules/acos: New file.
15731         * modules/asin: New file.
15732         * modules/atan: New file.
15733         * modules/atan2: New file.
15734         * modules/cbrt: New file.
15735         * modules/copysign: New file.
15736         * modules/cos: New file.
15737         * modules/cosh: New file.
15738         * modules/erf: New file.
15739         * modules/erfc: New file.
15740         * modules/exp: New file.
15741         * modules/fabs: New file.
15742         * modules/fmod: New file.
15743         * modules/hypot: New file.
15744         * modules/j0: New file.
15745         * modules/j1: New file.
15746         * modules/jn: New file.
15747         * modules/ldexp: New file.
15748         * modules/lgamma: New file.
15749         * modules/log: New file.
15750         * modules/log10: New file.
15751         * modules/log1p: New file.
15752         * modules/logb: New file.
15753         * modules/modf: New file.
15754         * modules/nextafter: New file.
15755         * modules/pow: New file.
15756         * modules/remainder: New file.
15757         * modules/rint: New file.
15758         * modules/sin: New file.
15759         * modules/sinh: New file.
15760         * modules/sqrt: New file.
15761         * modules/tan: New file.
15762         * modules/tanh: New file.
15763         * modules/y0: New file.
15764         * modules/y1: New file.
15765         * modules/yn: New file.
15766         * doc/posix-functions/acos.texi: Mention the 'acos' module.
15767         * doc/posix-functions/asin.texi: Mention the 'asin' module.
15768         * doc/posix-functions/atan.texi: Mention the 'atan' module.
15769         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
15770         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
15771         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
15772         * doc/posix-functions/cos.texi: Mention the 'cos' module.
15773         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
15774         * doc/posix-functions/erf.texi: Mention the 'erf' module.
15775         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
15776         * doc/posix-functions/exp.texi: Mention the 'exp' module.
15777         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
15778         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
15779         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
15780         * doc/posix-functions/j0.texi: Mention the 'j0' module.
15781         * doc/posix-functions/j1.texi: Mention the 'j1' module.
15782         * doc/posix-functions/jn.texi: Mention the 'jn' module.
15783         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
15784         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
15785         * doc/posix-functions/log.texi: Mention the 'log' module.
15786         * doc/posix-functions/log10.texi: Mention the 'log10' module.
15787         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
15788         * doc/posix-functions/logb.texi: Mention the 'logb' module.
15789         * doc/posix-functions/modf.texi: Mention the 'modf' module.
15790         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
15791         * doc/posix-functions/pow.texi: Mention the 'pow' module.
15792         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
15793         * doc/posix-functions/rint.texi: Mention the 'rint' module.
15794         * doc/posix-functions/sin.texi: Mention the 'sin' module.
15795         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
15796         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
15797         * doc/posix-functions/tan.texi: Mention the 'tan' module.
15798         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
15799         * doc/posix-functions/y0.texi: Mention the 'y0' module.
15800         * doc/posix-functions/y1.texi: Mention the 'y1' module.
15801         * doc/posix-functions/yn.texi: Mention the 'yn' module.
15802
15803 2010-01-18  Jim Meyering  <meyering@redhat.com>
15804
15805         ignore-value: relax license to LGPLv2+
15806         * modules/ignore-value (License): Relax to LGPLv2+.
15807
15808         getdate: don't leak when TZ contains two or more '"'s
15809         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
15810         double quote in TZ after the first one.
15811
15812         readtokens: do not leak internal token_lengths buffer
15813         * lib/readtokens.c (readtokens): Free the local, lengths,
15814         when the supplied "token_lengths" parameter is NULL.
15815
15816 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15817
15818         Fix a couple of missing LIBTHREAD link failures on AIX.
15819         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
15820         $(LIBTHREAD).
15821         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
15822
15823         Link test-poll against INET_PTON_LIB.
15824         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
15825         for inet_pton on Solaris 10.
15826
15827 2010-01-17  Bruno Haible  <bruno@clisp.org>
15828
15829         unistdio/*-sprintf: Fix typo in module description.
15830         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
15831         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
15832         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
15833         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
15834         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
15835         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
15836         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
15837         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15838
15839 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15840
15841         gnulib-tool: fix filelist for AIX, HP-UX ksh.
15842         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
15843         variables in shell case patterns, for AIX and HP-UX ksh.
15844
15845         Split large sed scripts, for HP-UX sed.
15846         * modules/stdio: Split sed scripts around 50 sed commands,
15847         to avoid HP-UX limit of 99 commands, in the near future.
15848         * modules/string: Likewise.
15849         * modules/unistd: Likewise.
15850
15851         gnulib-tool: avoid writing in the current directory.
15852         * gnulib-tool (func_emit_lib_Makefile_am)
15853         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
15854         not in the current directory, so concurrent gnulib-tool
15855         instances do not interfere.
15856
15857 2010-01-16  Jim Meyering  <meyering@redhat.com>
15858
15859         doc: update users.txt
15860         * users.txt: Add grep.
15861         (diffutils, gzip): Update URLs.
15862
15863 2010-01-12  Bruno Haible  <bruno@clisp.org>
15864
15865         posix_spawn: Avoid test failure on Cygwin.
15866         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
15867         characters.
15868         Reported by Simon Josefsson.
15869
15870 2010-01-12  Bruno Haible  <bruno@clisp.org>
15871
15872         * tests/test-cond.c (main): When skipping the test, show the reason.
15873
15874 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15875
15876         * lib/striconv.c (str_cd_iconv): Avoid if before free.
15877
15878 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15879
15880         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
15881         VC_LIST_ALWAYS_EXCLUDE_REGEX.
15882
15883 2010-01-12  Eric Blake  <ebb9@byu.net>
15884
15885         build: guarantee AS_VAR_IF
15886         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
15887         (gl_AS_VAR_IF): Move...
15888         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
15889         Reported by Simon Josefsson.
15890
15891 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15892
15893         * lib/stdio.in.h: Fix typo.
15894
15895 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15896
15897         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
15898         libgpg-error.
15899
15900 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15901
15902         * tests/test-xalloc-die.sh: Use $EXEEXT.
15903
15904 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15905             Bruno Haible  <bruno@clisp.org>
15906
15907         getlogin, getlogin_r: Avoid test failure.
15908         * tests/test-getlogin.c: Include <stdio.h>.
15909         (main): Skip the test when the function fails because stdin is not a
15910         tty.
15911         * tests/test-getlogin_r.c: Include <stdio.h>.
15912         (main): Skip the test when the function fails because stdin is not a
15913         tty.
15914
15915 2010-01-11  Eric Blake  <ebb9@byu.net>
15916
15917         tests: avoid more large file warnings
15918         * tests/test-fflush.c: Avoid warning about ftell use.
15919         * tests/test-fseek.c: Avoid warning about fseek use.
15920
15921 2010-01-10  Bruno Haible  <bruno@clisp.org>
15922
15923         nproc: Work better on Linux when /proc and /sys are not mounted.
15924         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
15925         as lower bound when, on glibc/Linux systems,
15926         sysconf (_SC_NPROCESSORS_CONF) returns 1.
15927         Suggested by Pádraig Brady <P@draigbrady.com>.
15928         Reported by Dmitry V. Levin <ldv@altlinux.org>.
15929
15930         nproc: Refactor.
15931         * lib/nproc.c (num_processors_via_affinity_mask): New function,
15932         extracted from num_processors.
15933         (num_processors): Call it.
15934
15935 2010-01-11  Jim Meyering  <meyering@redhat.com>
15936
15937         utimecmp: avoid new warning from upcoming gcc-4.5.0
15938         * lib/utimecmp.c (BILLION): Define using #define rather than an
15939         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
15940
15941 2010-01-11  Eric Blake  <ebb9@byu.net>
15942
15943         math: add portability warnings for classification macros
15944         * modules/math (Depends-on): Add warn-on-use.
15945         (Makefile.am): Provide new substitutions.
15946         * m4/math_h.m4 (gl_MATH_H): Require inline.
15947         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
15948         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
15949         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
15950         implement warnings.
15951
15952         unistd: warn on use of environ without module
15953         * modules/unistd (Depends-on): Add warn-on-use.
15954         (Makefile.am): Provide new substitutions.
15955         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
15956         * lib/unistd.in.h (environ): Wrap with a warning helper function.
15957
15958         stdio: warn on suspicious uses
15959         * modules/stdio (Depends-on): Add warn-on-use.
15960         (Makefile.am): Provide new substitutions.
15961         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
15962         fseeko.
15963         * lib/stdio.in.h (gets): Always warn on use.
15964         (fseek, ftell): Adjust when warnings are issued, and honor
15965         _GL_NO_LARGE_FILES as a way to silence the warning.
15966         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
15967         any warning about large file offsets.
15968         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
15969         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
15970         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
15971         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
15972         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
15973         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
15974         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
15975         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
15976
15977         warn-on-use: new module
15978         * modules/warn-on-use: New file.
15979         * build-aux/warn-on-use.h: Likewise.
15980         * m4/warn-on-use.m4: Likewise.
15981         * MODULES.html.sh (Support for building): Mention it.
15982
15983 2010-01-10  Bruno Haible  <bruno@clisp.org>
15984
15985         Tests for module 'unistr/u32-strdup'.
15986         * modules/unistr/u32-strdup-tests: New file.
15987         * tests/unistr/test-u32-strdup.c: New file.
15988
15989         Tests for module 'unistr/u16-strdup'.
15990         * modules/unistr/u16-strdup-tests: New file.
15991         * tests/unistr/test-u16-strdup.c: New file.
15992
15993         Tests for module 'unistr/u8-strdup'.
15994         * modules/unistr/u8-strdup-tests: New file.
15995         * tests/unistr/test-u8-strdup.c: New file.
15996         * tests/unistr/test-strdup.h: New file.
15997
15998         Tests for module 'unistr/u32-strncmp'.
15999         * modules/unistr/u32-strncmp-tests: New file.
16000         * tests/unistr/test-u32-strncmp.c: New file.
16001
16002         Tests for module 'unistr/u16-strncmp'.
16003         * modules/unistr/u16-strncmp-tests: New file.
16004         * tests/unistr/test-u16-strncmp.c: New file.
16005
16006         Tests for module 'unistr/u8-strncmp'.
16007         * modules/unistr/u8-strncmp-tests: New file.
16008         * tests/unistr/test-u8-strncmp.c: New file.
16009         * tests/unistr/test-strncmp.h: New file.
16010
16011         Tests for module 'unistr/u32-strcoll'.
16012         * modules/unistr/u32-strcoll-tests: New file.
16013         * tests/unistr/test-u32-strcoll.c: New file.
16014
16015         Tests for module 'unistr/u16-strcoll'.
16016         * modules/unistr/u16-strcoll-tests: New file.
16017         * tests/unistr/test-u16-strcoll.c: New file.
16018
16019         Tests for module 'unistr/u8-strcoll'.
16020         * modules/unistr/u8-strcoll-tests: New file.
16021         * tests/unistr/test-u8-strcoll.c: New file.
16022
16023         Tests for module 'unistr/u32-strcmp'.
16024         * modules/unistr/u32-strcmp-tests: New file.
16025         * tests/unistr/test-u32-strcmp.c: New file.
16026         * tests/unistr/test-u32-strcmp.h: New file.
16027
16028         Tests for module 'unistr/u16-strcmp'.
16029         * modules/unistr/u16-strcmp-tests: New file.
16030         * tests/unistr/test-u16-strcmp.c: New file.
16031         * tests/unistr/test-u16-strcmp.h: New file.
16032
16033         Tests for module 'unistr/u8-strcmp'.
16034         * modules/unistr/u8-strcmp-tests: New file.
16035         * tests/unistr/test-u8-strcmp.c: New file.
16036         * tests/unistr/test-u8-strcmp.h: New file.
16037         * tests/unistr/test-strcmp.h: New file.
16038
16039         Tests for module 'unistr/u32-strncat'.
16040         * modules/unistr/u32-strncat-tests: New file.
16041         * tests/unistr/test-u32-strncat.c: New file.
16042
16043         Tests for module 'unistr/u16-strncat'.
16044         * modules/unistr/u16-strncat-tests: New file.
16045         * tests/unistr/test-u16-strncat.c: New file.
16046
16047         Tests for module 'unistr/u8-strncat'.
16048         * modules/unistr/u8-strncat-tests: New file.
16049         * tests/unistr/test-u8-strncat.c: New file.
16050         * tests/unistr/test-strncat.h: New file.
16051
16052         Tests for module 'unistr/u32-strcat'.
16053         * modules/unistr/u32-strcat-tests: New file.
16054         * tests/unistr/test-u32-strcat.c: New file.
16055
16056         Tests for module 'unistr/u16-strcat'.
16057         * modules/unistr/u16-strcat-tests: New file.
16058         * tests/unistr/test-u16-strcat.c: New file.
16059
16060         Tests for module 'unistr/u8-strcat'.
16061         * modules/unistr/u8-strcat-tests: New file.
16062         * tests/unistr/test-u8-strcat.c: New file.
16063         * tests/unistr/test-strcat.h: New file.
16064
16065         Tests for module 'unistr/u32-stpncpy'.
16066         * modules/unistr/u32-stpncpy-tests: New file.
16067         * tests/unistr/test-u32-stpncpy.c: New file.
16068
16069         Tests for module 'unistr/u16-stpncpy'.
16070         * modules/unistr/u16-stpncpy-tests: New file.
16071         * tests/unistr/test-u16-stpncpy.c: New file.
16072
16073         Tests for module 'unistr/u8-stpncpy'.
16074         * modules/unistr/u8-stpncpy-tests: New file.
16075         * tests/unistr/test-u8-stpncpy.c: New file.
16076         * tests/unistr/test-stpncpy.h: New file.
16077
16078         Tests for module 'unistr/u32-strncpy'.
16079         * modules/unistr/u32-strncpy-tests: New file.
16080         * tests/unistr/test-u32-strncpy.c: New file.
16081
16082         Tests for module 'unistr/u16-strncpy'.
16083         * modules/unistr/u16-strncpy-tests: New file.
16084         * tests/unistr/test-u16-strncpy.c: New file.
16085
16086         Tests for module 'unistr/u8-strncpy'.
16087         * modules/unistr/u8-strncpy-tests: New file.
16088         * tests/unistr/test-u8-strncpy.c: New file.
16089         * tests/unistr/test-strncpy.h: New file.
16090
16091         Tests for module 'unistr/u32-stpcpy'.
16092         * modules/unistr/u32-stpcpy-tests: New file.
16093         * tests/unistr/test-u32-stpcpy.c: New file.
16094
16095         Tests for module 'unistr/u16-stpcpy'.
16096         * modules/unistr/u16-stpcpy-tests: New file.
16097         * tests/unistr/test-u16-stpcpy.c: New file.
16098
16099         Tests for module 'unistr/u8-stpcpy'.
16100         * modules/unistr/u8-stpcpy-tests: New file.
16101         * tests/unistr/test-u8-stpcpy.c: New file.
16102         * tests/unistr/test-stpcpy.h: New file.
16103
16104         Tests for module 'unistr/u32-strcpy'.
16105         * modules/unistr/u32-strcpy-tests: New file.
16106         * tests/unistr/test-u32-strcpy.c: New file.
16107
16108         Tests for module 'unistr/u16-strcpy'.
16109         * modules/unistr/u16-strcpy-tests: New file.
16110         * tests/unistr/test-u16-strcpy.c: New file.
16111
16112         Tests for module 'unistr/u8-strcpy'.
16113         * modules/unistr/u8-strcpy-tests: New file.
16114         * tests/unistr/test-u8-strcpy.c: New file.
16115         * tests/unistr/test-strcpy.h: New file.
16116
16117         Tests for module 'unistr/u32-strnlen'.
16118         * modules/unistr/u32-strnlen-tests: New file.
16119         * tests/unistr/test-u32-strnlen.c: New file.
16120
16121         Tests for module 'unistr/u16-strnlen'.
16122         * modules/unistr/u16-strnlen-tests: New file.
16123         * tests/unistr/test-u16-strnlen.c: New file.
16124
16125         Tests for module 'unistr/u8-strnlen'.
16126         * modules/unistr/u8-strnlen-tests: New file.
16127         * tests/unistr/test-u8-strnlen.c: New file.
16128         * tests/unistr/test-strnlen.h: New file.
16129
16130         Tests for module 'unistr/u32-strlen'.
16131         * modules/unistr/u32-strlen-tests: New file.
16132         * tests/unistr/test-u32-strlen.c: New file.
16133
16134         Tests for module 'unistr/u16-strlen'.
16135         * modules/unistr/u16-strlen-tests: New file.
16136         * tests/unistr/test-u16-strlen.c: New file.
16137
16138         Tests for module 'unistr/u8-strlen'.
16139         * modules/unistr/u8-strlen-tests: New file.
16140         * tests/unistr/test-u8-strlen.c: New file.
16141
16142         Tests for module 'unistr/u32-prev'.
16143         * modules/unistr/u32-prev-tests: New file.
16144         * tests/unistr/test-u32-prev.c: New file.
16145
16146         Tests for module 'unistr/u16-prev'.
16147         * modules/unistr/u16-prev-tests: New file.
16148         * tests/unistr/test-u16-prev.c: New file.
16149
16150         Tests for module 'unistr/u8-prev'.
16151         * modules/unistr/u8-prev-tests: New file.
16152         * tests/unistr/test-u8-prev.c: New file.
16153
16154         Tests for module 'unistr/u32-next'.
16155         * modules/unistr/u32-next-tests: New file.
16156         * tests/unistr/test-u32-next.c: New file.
16157
16158         Tests for module 'unistr/u16-next'.
16159         * modules/unistr/u16-next-tests: New file.
16160         * tests/unistr/test-u16-next.c: New file.
16161
16162         Tests for module 'unistr/u8-next'.
16163         * modules/unistr/u8-next-tests: New file.
16164         * tests/unistr/test-u8-next.c: New file.
16165
16166         Tests for module 'unistr/u32-strmbtouc'.
16167         * modules/unistr/u32-strmbtouc-tests: New file.
16168         * tests/unistr/test-u32-strmbtouc.c: New file.
16169
16170         Tests for module 'unistr/u16-strmbtouc'.
16171         * modules/unistr/u16-strmbtouc-tests: New file.
16172         * tests/unistr/test-u16-strmbtouc.c: New file.
16173
16174         Tests for module 'unistr/u8-strmbtouc'.
16175         * modules/unistr/u8-strmbtouc-tests: New file.
16176         * tests/unistr/test-u8-strmbtouc.c: New file.
16177
16178         Tests for module 'unistr/u32-strmblen'.
16179         * modules/unistr/u32-strmblen-tests: New file.
16180         * tests/unistr/test-u32-strmblen.c: New file.
16181
16182         Tests for module 'unistr/u16-strmblen'.
16183         * modules/unistr/u16-strmblen-tests: New file.
16184         * tests/unistr/test-u16-strmblen.c: New file.
16185
16186         Tests for module 'unistr/u8-strmblen'.
16187         * modules/unistr/u8-strmblen-tests: New file.
16188         * tests/unistr/test-u8-strmblen.c: New file.
16189
16190         Tests for module 'unistr/u32-cpy-alloc'.
16191         * modules/unistr/u32-cpy-alloc-tests: New file.
16192         * tests/unistr/test-u32-cpy-alloc.c: New file.
16193
16194         Tests for module 'unistr/u16-cpy-alloc'.
16195         * modules/unistr/u16-cpy-alloc-tests: New file.
16196         * tests/unistr/test-u16-cpy-alloc.c: New file.
16197
16198         Tests for module 'unistr/u8-cpy-alloc'.
16199         * modules/unistr/u8-cpy-alloc-tests: New file.
16200         * tests/unistr/test-u8-cpy-alloc.c: New file.
16201         * tests/unistr/test-cpy-alloc.h: New file.
16202
16203         Tests for module 'unistr/u32-mbsnlen'.
16204         * modules/unistr/u32-mbsnlen-tests: New file.
16205         * tests/unistr/test-u32-mbsnlen.c: New file.
16206
16207         Tests for module 'unistr/u16-mbsnlen'.
16208         * modules/unistr/u16-mbsnlen-tests: New file.
16209         * tests/unistr/test-u16-mbsnlen.c: New file.
16210
16211         Tests for module 'unistr/u8-mbsnlen'.
16212         * modules/unistr/u8-mbsnlen-tests: New file.
16213         * tests/unistr/test-u8-mbsnlen.c: New file.
16214
16215         Tests for module 'unistr/u32-chr'.
16216         * modules/unistr/u32-chr-tests: New file.
16217         * tests/unistr/test-u32-chr.c: New file.
16218
16219         Tests for module 'unistr/u16-chr'.
16220         * modules/unistr/u16-chr-tests: New file.
16221         * tests/unistr/test-u16-chr.c: New file.
16222
16223         Tests for module 'unistr/u8-chr'.
16224         * modules/unistr/u8-chr-tests: New file.
16225         * tests/unistr/test-u8-chr.c: New file.
16226         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
16227
16228         Tests for module 'unistr/u32-cmp2'.
16229         * modules/unistr/u32-cmp2-tests: New file.
16230         * tests/unistr/test-u32-cmp2.c: New file.
16231
16232         Tests for module 'unistr/u16-cmp2'.
16233         * modules/unistr/u16-cmp2-tests: New file.
16234         * tests/unistr/test-u16-cmp2.c: New file.
16235
16236         Tests for module 'unistr/u8-cmp2'.
16237         * modules/unistr/u8-cmp2-tests: New file.
16238         * tests/unistr/test-u8-cmp2.c: New file.
16239         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
16240
16241         Tests for module 'unistr/u32-cmp'.
16242         * modules/unistr/u32-cmp-tests: New file.
16243         * tests/unistr/test-u32-cmp.c: New file.
16244
16245         Tests for module 'unistr/u16-cmp'.
16246         * modules/unistr/u16-cmp-tests: New file.
16247         * tests/unistr/test-u16-cmp.c: New file.
16248
16249         Tests for module 'unistr/u8-cmp'.
16250         * modules/unistr/u8-cmp-tests: New file.
16251         * tests/unistr/test-u8-cmp.c: New file.
16252         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
16253
16254         Tests for module 'unistr/u32-set'.
16255         * modules/unistr/u32-set-tests: New file.
16256         * tests/unistr/test-u32-set.c: New file.
16257
16258         Tests for module 'unistr/u16-set'.
16259         * modules/unistr/u16-set-tests: New file.
16260         * tests/unistr/test-u16-set.c: New file.
16261
16262         Tests for module 'unistr/u8-set'.
16263         * modules/unistr/u8-set-tests: New file.
16264         * tests/unistr/test-u8-set.c: New file.
16265         * tests/unistr/test-set.h: New file.
16266
16267         Tests for module 'unistr/u32-move'.
16268         * modules/unistr/u32-move-tests: New file.
16269         * tests/unistr/test-u32-move.c: New file.
16270
16271         Tests for module 'unistr/u16-move'.
16272         * modules/unistr/u16-move-tests: New file.
16273         * tests/unistr/test-u16-move.c: New file.
16274
16275         Tests for module 'unistr/u8-move'.
16276         * modules/unistr/u8-move-tests: New file.
16277         * tests/unistr/test-u8-move.c: New file.
16278         * tests/unistr/test-move.h: New file.
16279
16280         Tests for module 'unistr/u32-cpy'.
16281         * modules/unistr/u32-cpy-tests: New file.
16282         * tests/unistr/test-u32-cpy.c: New file.
16283
16284         Tests for module 'unistr/u16-cpy'.
16285         * modules/unistr/u16-cpy-tests: New file.
16286         * tests/unistr/test-u16-cpy.c: New file.
16287
16288         Tests for module 'unistr/u8-cpy'.
16289         * modules/unistr/u8-cpy-tests: New file.
16290         * tests/unistr/test-u8-cpy.c: New file.
16291         * tests/unistr/test-cpy.h: New file.
16292
16293 2010-01-09  Bruno Haible  <bruno@clisp.org>
16294
16295         Tests for module 'unistr/u32-uctomb'.
16296         * modules/unistr/u32-uctomb-tests: New file.
16297         * tests/unistr/test-u32-uctomb.c: New file.
16298
16299         Tests for module 'unistr/u16-uctomb'.
16300         * modules/unistr/u16-uctomb-tests: New file.
16301         * tests/unistr/test-u16-uctomb.c: New file.
16302
16303         Tests for module 'unistr/u8-uctomb'.
16304         * modules/unistr/u8-uctomb-tests: New file.
16305         * tests/unistr/test-u8-uctomb.c: New file.
16306
16307         Tests for module 'unistr/u32-mbtoucr'.
16308         * modules/unistr/u32-mbtoucr-tests: New file.
16309         * tests/unistr/test-u32-mbtoucr.c: New file.
16310
16311         Tests for module 'unistr/u16-mbtoucr'.
16312         * modules/unistr/u16-mbtoucr-tests: New file.
16313         * tests/unistr/test-u16-mbtoucr.c: New file.
16314
16315         Tests for module 'unistr/u8-mbtoucr'.
16316         * modules/unistr/u8-mbtoucr-tests: New file.
16317         * tests/unistr/test-u8-mbtoucr.c: New file.
16318
16319         Tests for module 'unistr/u32-mbtouc'.
16320         * modules/unistr/u32-mbtouc-tests: New file.
16321         * tests/unistr/test-u32-mbtouc.c: New file.
16322
16323         Tests for module 'unistr/u16-mbtouc'.
16324         * modules/unistr/u16-mbtouc-tests: New file.
16325         * tests/unistr/test-u16-mbtouc.c: New file.
16326
16327         Tests for module 'unistr/u8-mbtouc'.
16328         * modules/unistr/u8-mbtouc-tests: New file.
16329         * tests/unistr/test-u8-mbtouc.c: New file.
16330
16331         Tests for module 'unistr/u32-mbtouc-unsafe'.
16332         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
16333         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
16334         * tests/unistr/test-u32-mbtouc.h: New file.
16335
16336         Tests for module 'unistr/u16-mbtouc-unsafe'.
16337         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
16338         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
16339         * tests/unistr/test-u16-mbtouc.h: New file.
16340
16341         Tests for module 'unistr/u8-mbtouc-unsafe'.
16342         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
16343         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
16344         * tests/unistr/test-u8-mbtouc.h: New file.
16345
16346         Tests for module 'unistr/u32-mblen'.
16347         * modules/unistr/u32-mblen-tests: New file.
16348         * tests/unistr/test-u32-mblen.c: New file.
16349
16350         Tests for module 'unistr/u16-mblen'.
16351         * modules/unistr/u16-mblen-tests: New file.
16352         * tests/unistr/test-u16-mblen.c: New file.
16353
16354         Tests for module 'unistr/u8-mblen'.
16355         * modules/unistr/u8-mblen-tests: New file.
16356         * tests/unistr/test-u8-mblen.c: New file.
16357
16358         Tests for module 'unistr/u32-to-u16'.
16359         * modules/unistr/u32-to-u16-tests: New file.
16360         * tests/unistr/test-u32-to-u16.c: New file.
16361
16362         Tests for module 'unistr/u32-to-u8'.
16363         * modules/unistr/u32-to-u8-tests: New file.
16364         * tests/unistr/test-u32-to-u8.c: New file.
16365
16366         Tests for module 'unistr/u16-to-u32'.
16367         * modules/unistr/u16-to-u32-tests: New file.
16368         * tests/unistr/test-u16-to-u32.c: New file.
16369
16370         Tests for module 'unistr/u16-to-u8'.
16371         * modules/unistr/u16-to-u8-tests: New file.
16372         * tests/unistr/test-u16-to-u8.c: New file.
16373
16374         Tests for module 'unistr/u8-to-u32'.
16375         * modules/unistr/u8-to-u32-tests: New file.
16376         * tests/unistr/test-u8-to-u32.c: New file.
16377
16378         Tests for module 'unistr/u8-to-u16'.
16379         * modules/unistr/u8-to-u16-tests: New file.
16380         * tests/unistr/test-u8-to-u16.c: New file.
16381
16382         Tests for module 'unistr/u32-check'.
16383         * modules/unistr/u32-check-tests: New file.
16384         * tests/unistr/test-u32-check.c: New file.
16385
16386         Tests for module 'unistr/u16-check'.
16387         * modules/unistr/u16-check-tests: New file.
16388         * tests/unistr/test-u16-check.c: New file.
16389
16390         Tests for module 'unistr/u8-check'.
16391         * modules/unistr/u8-check-tests: New file.
16392         * tests/unistr/test-u8-check.c: New file.
16393
16394         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
16395         (category_equals): New function.
16396         (main): Add more tests.
16397         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
16398
16399         * tests/unictype/test-bidi_byname.c (main): Add more tests.
16400
16401 2010-01-10  Bruno Haible  <bruno@clisp.org>
16402
16403         unistr/u*-strcoll: Try harder to distinguish different strings.
16404         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
16405         compare s1 and s2 to see if they are different.
16406
16407 2010-01-10  Bruno Haible  <bruno@clisp.org>
16408
16409         unistr/u*-stpncpy: Fix the return value.
16410         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
16411         description of the return value consistent with stpncpy in glibc.
16412         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
16413         written non-NUL unit.
16414
16415 2010-01-10  Bruno Haible  <bruno@clisp.org>
16416
16417         unistr/u*-next: Add missing dependencies.
16418         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
16419         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
16420         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
16421
16422 2010-01-10  Bruno Haible  <bruno@clisp.org>
16423
16424         unistr/u8-mbsnlen: Fix return value for incomplete character.
16425         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
16426         u8_mblen.
16427         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
16428         Remove unistr/u8-mblen.
16429         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
16430         u16_mblen.
16431         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
16432         Remove unistr/u16-mblen.
16433
16434 2010-01-10  Bruno Haible  <bruno@clisp.org>
16435
16436         wchar: Fix compilation error when <wchar.h> is used from coreutils.
16437         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
16438         Reported by Brian Gough <bjg@gnu.org> and
16439         Chris Clayton <chris2553@googlemail.com> via
16440         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
16441
16442 2010-01-09  Bruno Haible  <bruno@clisp.org>
16443
16444         unistr/u16-to-u32: Reject invalid input.
16445         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
16446         u16_mbtouc.
16447         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
16448         Remove unistr/u16-mbtouc.
16449
16450         unistr/u16-to-u8: Reject invalid input.
16451         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
16452         u16_mbtouc.
16453         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
16454         Remove unistr/u16-mbtouc.
16455
16456         unistr/u8-to-u32: Reject invalid input.
16457         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
16458         u8_mbtouc.
16459         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
16460         Remove unistr/u8-mbtouc.
16461
16462         unistr/u8-to-u16: Reject invalid input.
16463         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
16464         u8_mbtouc.
16465         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
16466         Remove unistr/u8-mbtouc.
16467
16468 2010-01-09  Bruno Haible  <bruno@clisp.org>
16469
16470         Tests for module 'getlogin'.
16471         * modules/getlogin-tests: New file.
16472         * tests/test-getlogin.c: New file.
16473
16474         New module 'getlogin'.
16475         * lib/unistd.in.h (getlogin): New declaration.
16476         * lib/getlogin.c: New file.
16477         * m4/getlogin.m4: New file.
16478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
16479         HAVE_GETLOGIN.
16480         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
16481         HAVE_GETLOGIN.
16482         * modules/getlogin: New file.
16483         * doc/posix-functions/getlogin.texi: Mention the new module.
16484         Reported by John W. Eaton <jwe@gnu.org>.
16485
16486 2010-01-09  Bruno Haible  <bruno@clisp.org>
16487
16488         getlogin_r: Support for native Windows.
16489         * lib/getlogin_r.c: Include <windows.h>
16490         (getlogin_r): Implement for native Windows.
16491         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
16492         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
16493         via John W. Eaton <jwe@gnu.org>.
16494
16495 2010-01-09  Bruno Haible  <bruno@clisp.org>
16496
16497         getlogin_r: Small fixes.
16498         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
16499         succeeds.
16500         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
16501         before testing whether getlogin_r is declared. No need to set
16502         HAVE_DECL_GETLOGIN_R to 1.
16503         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
16504
16505 2010-01-09  Bruno Haible  <bruno@clisp.org>
16506
16507         * lib/unistd.in.h (getlogin_r): Add comment.
16508
16509 2010-01-09  Bruno Haible  <bruno@clisp.org>
16510
16511         Tests for module 'getlogin_r'.
16512         * modules/getlogin_r-tests: New file.
16513         * tests/test-getlogin_r.c: New file.
16514
16515 2010-01-09  Jim Meyering  <meyering@redhat.com>
16516
16517         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
16518         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
16519         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
16520
16521 2010-01-08  Simon Josefsson  <simon@josefsson.org>
16522
16523         * lib/dup2.c (rpl_dup2): Improve comment.
16524
16525 2010-01-08  Eric Blake  <ebb9@byu.net>
16526
16527         maint.mk: allow packages to add makefile @@ exceptions
16528         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
16529         (sc_makefile_check): Rename...
16530         (sc_makefile_at_at_check): ...to this, and use hook.
16531
16532         dup2: work around mingw bug
16533         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
16534         Reported by Simon Josefsson.
16535
16536 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
16537
16538         glob: Fix C++ compilation.
16539         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
16540         C++.
16541
16542 2010-01-07  Bruno Haible  <bruno@clisp.org>
16543
16544         Fix indentation of wctype.in.h, broken since 2007-01-06.
16545         * lib/wctype.in.h: Fix indentation of preprocessor directives.
16546
16547 2010-01-07  Bruno Haible  <bruno@clisp.org>
16548
16549         mbslen: Avoid collision with system function.
16550         * lib/string.in.h [MirBSD]: Include <wchar.h>.
16551         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
16552         * m4/mbslen.m4: New file.
16553         * modules/mbslen (Files): Add it.
16554         (configure.ac): Invoke gl_MBSLEN.
16555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
16556         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
16557         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
16558         via Ian Beckwith <ianb@erislabs.net>.
16559
16560 2010-01-07  Bruno Haible  <bruno@clisp.org>
16561
16562         dirent: Document the last fix.
16563         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
16564
16565 2010-01-07  Bruno Haible  <bruno@clisp.org>
16566
16567         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
16568         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
16569         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
16570         va_list are defined.
16571         * doc/posix-headers/stdio.texi: Document the bug of missing types.
16572         Reported by Eric Blake.
16573
16574 2010-01-07  Bruno Haible  <bruno@clisp.org>
16575
16576         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
16577         * modules/xlist (Depends-on): Add 'list',
16578         * modules/xoset (Depends-on): Add 'oset'.
16579         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16580
16581 2010-01-07  Bruno Haible  <bruno@clisp.org>
16582
16583         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
16584         * doc/posix-functions/strncasecmp.texi: Likewise.
16585
16586 2010-01-07  Bruno Haible  <bruno@clisp.org>
16587
16588         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
16589
16590 2010-01-07  John W. Eaton  <jwe@octave.org>
16591
16592         wctype: allow C++ use
16593         * lib/wctype.in.h: Add extern "C" block for C++.
16594
16595 2010-01-06  Eric Blake  <ebb9@byu.net>
16596
16597         maint.mk: detect incorrect GFDL usage
16598         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
16599
16600 2010-01-06  Jim Meyering  <meyering@redhat.com>
16601         and Eric Blake  <ebb9@byu.net>
16602
16603         maint.mk: ignore multi-line copyright in NEWS
16604         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
16605
16606 2010-01-06  Eric Blake  <ebb9@byu.net>
16607
16608         select: add missing dependency
16609         * modules/select-tests (Depends-on): Move sockets dependency...
16610         * modules/select (Depends-on): ...here.
16611         Reported by Ian Beckwith.
16612
16613         doc: regenerate INSTALL
16614         * doc/INSTALL: Reflect recent autoconf update.
16615         * doc/INSTALL.ISO: Likewise.
16616         * doc/INSTALL.UTF-8: Likewise.
16617
16618         pread: fix compilation on glibc
16619         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
16620         Reported by Ralf Wildenhues.
16621
16622         dirent: fix test failure
16623         * lib/dirent.in.h (includes): Guarantee ino_t.
16624         Reported by Ralf Wildenhues.
16625
16626 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
16627
16628         linkat, renameat: avoid bad free
16629         * lib/at-func2.c (at_func2): Fix typo.
16630         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
16631
16632 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16633
16634         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
16635         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
16636         to avoid failure of symlink test later.
16637
16638 2010-01-06  Eric Blake  <ebb9@byu.net>
16639
16640         stdio, unistd: guarantee ssize_t
16641         * lib/unistd.in.h (includes): Ensure that types required by POSIX
16642         2008 are exposed when needed.
16643         * lib/stdio.in.h (includes): Likewise.
16644         Reported by Ralf Wildenhues.
16645
16646 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
16647
16648         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
16649         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
16650         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
16651
16652 2010-01-06  Jim Meyering  <meyering@redhat.com>
16653
16654         readtokens: this module *does* require xalloc.h
16655         It uses only functions that were omitted by the old syntax-check rule.
16656         * lib/readtokens.c: Include "xalloc.h" once again.
16657         * modules/readtokens (Depends-on): Add xalloc.
16658         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
16659
16660 2010-01-05  Eric Blake  <ebb9@byu.net>
16661
16662         maint: support 'make announcement' from a VPATH build
16663         * top/maint.mk (announcement): Look for correct NEWS file.
16664
16665 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
16666
16667         utimens (fdutimens): ignore a negative FD, per contract
16668         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
16669         when we have a valid file descriptor.  Otherwise, using a brand
16670         new glibc (with just-patched futimens that now fails with EBADF)
16671         would cause this function to fail with ENOSYS.
16672         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
16673         See also http://bugzilla.redhat.com/552320.
16674
16675 2010-01-05  Eric Blake  <ebb9@byu.net>
16676
16677         strcase: document what it provides
16678         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
16679         gnulib module.
16680         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
16681         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
16682
16683 2010-01-05  Jim Meyering  <meyering@redhat.com>
16684
16685         maint: remove useless inclusions of "xalloc.h"
16686         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
16687         * lib/readtokens.c: Likewise.
16688         * lib/same.c: Likewise.
16689         * modules/getloadavg (Depends-on): Remove xalloc.
16690         * modules/readtokens: Likewise.
16691         * modules/same: Likewise.
16692
16693         maint.mk: include 4 more function names in alloca.h-checking regexp
16694         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
16695         regexp.  Before, we would give a false-positive (saying alloca.h
16696         is included unnecessarily) when the only uses involved omitted symbols.
16697
16698         xalloc.h: use consistent formatting
16699         * lib/xalloc.h: Move declarations to start in the first column.
16700
16701 2010-01-05  Eric Blake  <ebb9@byu.net>
16702
16703         mkdir: avoid xalloc
16704         * lib/mkdir.c (includes): Drop unused header.
16705         Reported by John W. Eaton.
16706
16707 2010-01-04  Jim Meyering  <meyering@redhat.com>
16708
16709         nl_langinfo: avoid configure-time syntax error
16710         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
16711         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
16712         the empty string.  Don't let that provoke a shell syntax error.
16713
16714         regcomp, regexec, fnmatch: avoid array bounds read error
16715         * lib/regcomp.c (build_equiv_class): From glibc:
16716         Use only the low 24 bits of a findidx return value as an index
16717         into the weights array.  Patch by Ulrich Drepper:
16718         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
16719         * lib/regexec.c (check_node_accept_bytes): Likewise.
16720         * lib/fnmatch_loop.c (FCT): Likewise.
16721
16722         regcomp: skip collseq lookup when there are no rules
16723         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
16724         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
16725
16726         regcomp: recognize ill-formed { } expressions
16727         * lib/regcomp.c (parse_dup_op): From glibc:
16728         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
16729
16730         regcomp: fix typo in comment
16731         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
16732         s/satisfy/satisfies/.
16733
16734         regcomp: sync from glibc: remove dead store
16735         * lib/regcomp.c (duplicate_node_closure): Remove useless
16736         search_duplicated_node call and dead store.
16737
16738         regcomp: sync from glibc; always use nl_langinfo
16739         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
16740         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
16741         * modules/regex (Depends-on): Add nl_langinfo.
16742
16743 2010-01-04  Eric Blake  <ebb9@byu.net>
16744
16745         fdopendir: fix configure test
16746         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
16747
16748 2010-01-01  Bruno Haible  <bruno@clisp.org>
16749
16750         wchar: Remove unused configure check.
16751         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
16752
16753 2010-01-01  Eric Blake  <ebb9@byu.net>
16754
16755         headers: make check of system header explicit
16756         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
16757         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
16758         ourselves.
16759         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16760         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16761         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
16762         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
16763         internals.
16764         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
16765         missing.
16766         Suggested by Bruno Haible.
16767
16768 2010-01-01  Jim Meyering  <meyering@redhat.com>
16769
16770         ChangeLog: tweak to eliminate unnecessary copyright line
16771         * ChangeLog: Remove a copyright line that was mistakenly updated
16772         by today's update-copyright run.  Reported by Eric Blake.
16773
16774         test-update-copyright: don't let envvar setting cause test failure
16775         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
16776
16777 2010-01-01  Bruno Haible  <bruno@clisp.org>
16778
16779         localename: Avoid gcc warning.
16780         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
16781         function if it is not used.
16782
16783 2010-01-01  Jim Meyering  <meyering@redhat.com>
16784
16785         update nearly all FSF copyright year lists to include 2010
16786         Use the same procedure as for 2009, outlined in
16787         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
16788
16789         version-etc: set COPYRIGHT_YEAR to 2010
16790         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
16791
16792 2009-12-31  Eric Blake  <ebb9@byu.net>
16793
16794         doc: correct availability of cygwin 1.5.x getopt
16795         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
16796         variables.
16797         * doc/posix-functions/opterr.texi (opterr): Likewise.
16798         * doc/posix-functions/optind.texi (optind): Likewise.
16799         * doc/posix-functions/optopt.texi (optopt): Likewise.
16800         * doc/posix-functions/tzname.texi (tzname): Likewise.
16801
16802         openat: update maintainer
16803         * modules/openat (Maintainer): Add myself.
16804
16805         utimens: avoid shadowing warning
16806         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
16807         buffers into one, to avoid shadowing, as well as avoiding a
16808         redundant stat.
16809         Reported by Jim Meyering.
16810
16811         test-dup2: avoid compiler warning
16812         * tests/test-dup2.c (is_inheritable): Only define if used.
16813
16814 2010-01-01  Bruno Haible  <bruno@clisp.org>
16815
16816         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
16817         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
16818         defined, use wctomb instead of wcrtomb.
16819
16820 2010-01-01  Bruno Haible  <bruno@clisp.org>
16821
16822         iconv: Reject native Solaris iconv.
16823         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
16824         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
16825
16826 2009-12-31  Bruno Haible  <bruno@clisp.org>
16827
16828         * tests/test-signal.c (main): Remove test of 'SIG'.
16829
16830 2009-12-31  Bruno Haible  <bruno@clisp.org>
16831
16832         spawn: Fix incomplete fix.
16833         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16834         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16835         warnings for GNULIB_POSIXCHECK again.
16836         Reported by Eric Blake.
16837
16838 2009-12-31  Bruno Haible  <bruno@clisp.org>
16839
16840         Avoid namespace pollution on glibc systems.
16841         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
16842         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
16843         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
16844         glibc systems.
16845
16846 2009-12-31  Bruno Haible  <bruno@clisp.org>
16847
16848         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
16849         (gl_REPLACE_WCHAR_H): Turn into a no-op.
16850         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
16851         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16852         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16853         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16854         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16855
16856 2009-12-31  Bruno Haible  <bruno@clisp.org>
16857
16858         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16859         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
16860         afterwards.
16861
16862 2009-12-31  Bruno Haible  <bruno@clisp.org>
16863
16864         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
16865         SYS_UTSNAME_H.
16866
16867 2009-12-31  Bruno Haible  <bruno@clisp.org>
16868
16869         spawn: Fix misapplied patch.
16870         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16871         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16872         warnings for GNULIB_POSIXCHECK.
16873
16874 2009-12-31  Bruno Haible  <bruno@clisp.org>
16875
16876         times: Update after sys_times changed.
16877         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
16878         * modules/times (Files): Add it.
16879         (configure.ac): Invoke gl_FUNC_TIMES.
16880
16881 2009-12-31  Bruno Haible  <bruno@clisp.org>
16882
16883         Use AC_C_INLINE where necessary.
16884         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
16885         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
16886         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
16887         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
16888         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16889         * m4/mbiter.m4 (gl_MBITER): Likewise.
16890         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16891         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16892         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
16893         * modules/u64 (configure.ac): Likewise.
16894
16895 2009-12-31  Bruno Haible  <bruno@clisp.org>
16896
16897         Use AC_C_INLINE instead of module 'inline' where possible.
16898         * modules/inline (Description): Clarify purpose.
16899         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
16900         * modules/count-one-bits (Depends-on): Remove inline.
16901         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
16902         * modules/openat (Depends-on): Remove inline.
16903         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
16904         instead of depending on module 'inline'.
16905         * modules/filevercmp (Depends-on, configure.ac): Likewise.
16906         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
16907         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
16908         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
16909         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
16910         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
16911         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
16912         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
16913         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
16914         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
16915         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
16916         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
16917         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
16918         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
16919         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
16920         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
16921         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
16922         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
16923         Likewise.
16924         * modules/unictype/property-ascii-hex-digit (Depends-on,
16925         configure.ac): Likewise.
16926         * modules/unictype/property-bidi-arabic-digit (Depends-on,
16927         configure.ac): Likewise.
16928         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
16929         configure.ac): Likewise.
16930         * modules/unictype/property-bidi-block-separator (Depends-on,
16931         configure.ac): Likewise.
16932         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
16933         configure.ac): Likewise.
16934         * modules/unictype/property-bidi-common-separator (Depends-on,
16935         configure.ac): Likewise.
16936         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
16937         Likewise.
16938         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
16939         configure.ac): Likewise.
16940         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
16941         configure.ac): Likewise.
16942         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
16943         configure.ac): Likewise.
16944         * modules/unictype/property-bidi-european-digit (Depends-on,
16945         configure.ac): Likewise.
16946         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
16947         configure.ac): Likewise.
16948         * modules/unictype/property-bidi-left-to-right (Depends-on,
16949         configure.ac): Likewise.
16950         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
16951         configure.ac): Likewise.
16952         * modules/unictype/property-bidi-other-neutral (Depends-on,
16953         configure.ac): Likewise.
16954         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
16955         Likewise.
16956         * modules/unictype/property-bidi-segment-separator (Depends-on,
16957         configure.ac): Likewise.
16958         * modules/unictype/property-bidi-whitespace (Depends-on,
16959         configure.ac): Likewise.
16960         * modules/unictype/property-combining (Depends-on, configure.ac):
16961         Likewise.
16962         * modules/unictype/property-composite (Depends-on, configure.ac):
16963         Likewise.
16964         * modules/unictype/property-currency-symbol (Depends-on,
16965         configure.ac): Likewise.
16966         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
16967         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
16968         Likewise.
16969         * modules/unictype/property-default-ignorable-code-point (Depends-on,
16970         configure.ac): Likewise.
16971         * modules/unictype/property-deprecated (Depends-on, configure.ac):
16972         Likewise.
16973         * modules/unictype/property-diacritic (Depends-on, configure.ac):
16974         Likewise.
16975         * modules/unictype/property-extender (Depends-on, configure.ac):
16976         Likewise.
16977         * modules/unictype/property-format-control (Depends-on, configure.ac):
16978         Likewise.
16979         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
16980         Likewise.
16981         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
16982         Likewise.
16983         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
16984         Likewise.
16985         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
16986         Likewise.
16987         * modules/unictype/property-hyphen (Depends-on, configure.ac):
16988         Likewise.
16989         * modules/unictype/property-id-continue (Depends-on, configure.ac):
16990         Likewise.
16991         * modules/unictype/property-id-start (Depends-on, configure.ac):
16992         Likewise.
16993         * modules/unictype/property-ideographic (Depends-on, configure.ac):
16994         Likewise.
16995         * modules/unictype/property-ids-binary-operator (Depends-on,
16996         configure.ac): Likewise.
16997         * modules/unictype/property-ids-trinary-operator (Depends-on,
16998         configure.ac): Likewise.
16999         * modules/unictype/property-ignorable-control (Depends-on,
17000         configure.ac): Likewise.
17001         * modules/unictype/property-iso-control (Depends-on, configure.ac):
17002         Likewise.
17003         * modules/unictype/property-join-control (Depends-on, configure.ac):
17004         Likewise.
17005         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
17006         Likewise.
17007         * modules/unictype/property-line-separator (Depends-on, configure.ac):
17008         Likewise.
17009         * modules/unictype/property-logical-order-exception (Depends-on,
17010         configure.ac): Likewise.
17011         * modules/unictype/property-lowercase (Depends-on, configure.ac):
17012         Likewise.
17013         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
17014         * modules/unictype/property-non-break (Depends-on, configure.ac):
17015         Likewise.
17016         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
17017         Likewise.
17018         * modules/unictype/property-numeric (Depends-on, configure.ac):
17019         Likewise.
17020         * modules/unictype/property-other-alphabetic (Depends-on,
17021         configure.ac): Likewise.
17022         * modules/unictype/property-other-default-ignorable-code-point
17023         (Depends-on, configure.ac): Likewise.
17024         * modules/unictype/property-other-grapheme-extend (Depends-on,
17025         configure.ac): Likewise.
17026         * modules/unictype/property-other-id-continue (Depends-on,
17027         configure.ac): Likewise.
17028         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
17029         Likewise.
17030         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
17031         Likewise.
17032         * modules/unictype/property-other-math (Depends-on, configure.ac):
17033         Likewise.
17034         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
17035         Likewise.
17036         * modules/unictype/property-paired-punctuation (Depends-on,
17037         configure.ac): Likewise.
17038         * modules/unictype/property-paragraph-separator (Depends-on,
17039         configure.ac): Likewise.
17040         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
17041         Likewise.
17042         * modules/unictype/property-pattern-white-space (Depends-on,
17043         configure.ac): Likewise.
17044         * modules/unictype/property-private-use (Depends-on, configure.ac):
17045         Likewise.
17046         * modules/unictype/property-punctuation (Depends-on, configure.ac):
17047         Likewise.
17048         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
17049         Likewise.
17050         * modules/unictype/property-radical (Depends-on, configure.ac):
17051         Likewise.
17052         * modules/unictype/property-sentence-terminal (Depends-on,
17053         configure.ac): Likewise.
17054         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
17055         Likewise.
17056         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
17057         * modules/unictype/property-terminal-punctuation (Depends-on,
17058         configure.ac): Likewise.
17059         * modules/unictype/property-titlecase (Depends-on, configure.ac):
17060         Likewise.
17061         * modules/unictype/property-unassigned-code-value (Depends-on,
17062         configure.ac): Likewise.
17063         * modules/unictype/property-unified-ideograph (Depends-on,
17064         configure.ac): Likewise.
17065         * modules/unictype/property-uppercase (Depends-on, configure.ac):
17066         Likewise.
17067         * modules/unictype/property-variation-selector (Depends-on,
17068         configure.ac): Likewise.
17069         * modules/unictype/property-white-space (Depends-on, configure.ac):
17070         Likewise.
17071         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
17072         Likewise.
17073         * modules/unictype/property-xid-start (Depends-on, configure.ac):
17074         Likewise.
17075         * modules/unictype/property-zero-width (Depends-on, configure.ac):
17076         Likewise.
17077         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
17078         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
17079         Likewise.
17080
17081 2009-12-31  Bruno Haible  <bruno@clisp.org>
17082
17083         Remove unnecessary AC_C_INLINE invocation.
17084         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
17085         since 2009-08-21.
17086
17087 2009-12-31  Jim Meyering  <meyering@redhat.com>
17088
17089         maint.mk: don't require explicit gpg_key_ID in cfg.mk
17090         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
17091         With this change, we can all remove the gpg_key_ID = ... definition
17092         from our respective cfg.mk files.
17093
17094         maint.mk: create announcement template in ~/, not in /tmp
17095         * top/maint.mk (emit_upload_commands): Adjust.
17096         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
17097         Remove temporary file, .ci-msg.
17098
17099 2009-12-31  Eric Blake  <ebb9@byu.net>
17100
17101         link-warning: always build headers with link warnings
17102         * modules/arpa_inet (Makefile.am): Always build replacement
17103         header.
17104         * modules/ctype (Makefile.am): Likewise.
17105         * modules/dirent (Makefile.am): Likewise.
17106         * modules/inttypes (Makefile.am): Likewise.
17107         * modules/langinfo (Makefile.am): Likewise.
17108         * modules/locale (Makefile.am): Likewise.
17109         * modules/spawn (Makefile.am): Likewise.
17110         * modules/sys_file (Makefile.am): Likewise.
17111         * modules/sys_ioctl (Makefile.am): Likewise.
17112         * modules/sys_select (Makefile.am): Likewise.
17113         * modules/sys_socket (Makefile.am): Likewise.
17114         * modules/sys_times (Makefile.am): Likewise.
17115         * modules/sys_utsname (Makefile.am): Likewise.
17116         * modules/sys_wait (Makefile.am): Likewise.
17117         * modules/wchar (Makefile.am): Likewise.
17118         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
17119         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
17120         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
17121         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
17122         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
17123         Likewise.
17124         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17125         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17126         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
17127         Likewise.
17128         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
17129         Likewise.
17130         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17131         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
17132         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
17133         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17134         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17135         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17136         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17137         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
17138         (gl_WCHAR_H_DEFAULTS): Likewise.
17139
17140 2009-12-31  Eric Blake  <ebb9@byu.net>
17141
17142         signal, spawn: use link warnings
17143         * lib/signal.in.h (sigset_t): Make unconditional.
17144         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
17145         (sigpending, sigprocmask, sigaction): Add link warnings.
17146         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
17147         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
17148         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
17149         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
17150         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
17151         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
17152         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
17153         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
17154         (posix_spawn_file_actions_destroy)
17155         (posix_spawn_file_actions_addopen)
17156         (posix_spawn_file_actions_addclose)
17157         (posix_spawn_file_actions_adddup2): Likewise.
17158         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
17159         * tests/test-signal.c (main): Enhance test.
17160
17161         spawn: improve wrapper support
17162         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
17163         (gl_SPAWN_H_DEFAULTS): New defaults.
17164         * modules/spawn (Makefile.am): Substitute them.
17165         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
17166         Only declare if missing or broken.
17167
17168         sys_times, sys_utsname: use include_next
17169         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
17170         header.
17171         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
17172         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17173         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17174         * modules/sys_times (Depends-on): Add include_next.
17175         (Makefile.am): Substitute additional values.
17176         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17177         * lib/sys_times.in.h (includes): Include native header, if
17178         available.
17179         * lib/sys_utsname.in.h (includes): Likewise.
17180         * tests/test-sys_times.c (main): Enhance test.
17181
17182         fdutimensat: revert prior patch
17183         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
17184         utimens.h.
17185         Reported by Bruno Haible.
17186
17187 2009-12-30  Eric Blake  <ebb9@byu.net>
17188
17189         sys_wait: drop link-warning dependency
17190         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
17191         link-warning efforts.
17192         * lib/sys_wait.in.h: Likewise.
17193
17194         fdutimensat: remove bogus dependency
17195         * modules/fdutimensat (Depends-on): Drop inline.
17196
17197         unistd: fix typo
17198         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
17199
17200 2009-12-30  Bruno Haible  <bruno@clisp.org>
17201
17202         Fix compilation error with Solaris cc.
17203         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
17204         * lib/unicase/u16-is-invariant.c: Likewise.
17205         * lib/unicase/u32-is-invariant.c: Likewise.
17206         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17207
17208 2009-12-30  Bruno Haible  <bruno@clisp.org>
17209
17210         Fix test crash.
17211         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
17212         locales.
17213         Reported by Simon Josefsson <simon@josefsson.org>.
17214
17215 2009-12-30  Bruno Haible  <bruno@clisp.org>
17216
17217         Fix compilation error on most platforms.
17218         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
17219         Reported by Simon Josefsson <simon@josefsson.org>
17220         and Nelson H. F. Beebe <beebe@math.utah.edu>.
17221
17222 2009-12-30  Eric Blake  <ebb9@byu.net>
17223
17224         futimens, utimensat: work around ntfs-3g bug
17225         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
17226         a ctime bug is present, and expand workaround to cover ntfs-3g.
17227         * lib/utimens.c (fdutimens, lutimens): Likewise.
17228         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
17229         (validate_timespec): Adjust return value.
17230         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
17231         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17232         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
17233
17234 2009-12-29  Eric Blake  <ebb9@byu.net>
17235
17236         link-warning: make usage consistent
17237         * modules/ctype (Depends-on): Add link-warning.
17238         (Makefile.am): Update rules accordingly.
17239         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17240         * modules/locale (Depends-on, Makefile.am): Likewise.
17241         * modules/sys_file (Makefile.am): Likewise.
17242         * modules/getopt-posix (Makefile.am): Delete unused link warning
17243         efforts.
17244         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
17245         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
17246         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
17247         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
17248
17249         stdio: remove unused variables
17250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
17251         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
17252         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17253
17254         tests: test more substitute headers
17255         * modules/ctype-tests: New file.
17256         * modules/dirent-tests: Likewise.
17257         * modules/spawn-tests: Likewise.
17258         * modules/sys_file-tests: Likewise.
17259         * modules/sys_ioctl-tests: Likewise.
17260         * modules/sys_wait-tests: Likewise.
17261         * tests/test-ctype.c: Likewise.
17262         * tests/test-dirent.c: Likewise.
17263         * tests/test-spawn.c: Likewise.
17264         * tests/test-sys_file.c: Likewise.
17265         * tests/test-sys_ioctl.c: Likewise.
17266         * tests/test-sys_wait.c: Likewise.
17267         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
17268         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
17269         whether or not flock is in use.
17270
17271         tests: remove License section from module
17272         * modules/arpa_inet-tests: Remove unneeded section.
17273         * modules/byteswap-tests: Likewise.
17274         * modules/ceilf-tests: Likewise.
17275         * modules/ceill-tests: Likewise.
17276         * modules/crypto/des-tests: Likewise.
17277         * modules/crypto/gc-arcfour-tests: Likewise.
17278         * modules/crypto/gc-arctwo-tests: Likewise.
17279         * modules/crypto/gc-des-tests: Likewise.
17280         * modules/crypto/gc-hmac-md5-tests: Likewise.
17281         * modules/crypto/gc-hmac-sha1-tests: Likewise.
17282         * modules/crypto/gc-md2-tests: Likewise.
17283         * modules/crypto/gc-md4-tests: Likewise.
17284         * modules/crypto/gc-md5-tests: Likewise.
17285         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
17286         * modules/crypto/gc-rijndael-tests: Likewise.
17287         * modules/crypto/gc-sha1-tests: Likewise.
17288         * modules/crypto/gc-tests: Likewise.
17289         * modules/crypto/md2-tests: Likewise.
17290         * modules/crypto/md4-tests: Likewise.
17291         * modules/fcntl-h-tests: Likewise.
17292         * modules/floorf-tests: Likewise.
17293         * modules/floorl-tests: Likewise.
17294         * modules/frexp-nolibm-tests: Likewise.
17295         * modules/frexp-tests: Likewise.
17296         * modules/frexpl-nolibm-tests: Likewise.
17297         * modules/frexpl-tests: Likewise.
17298         * modules/getaddrinfo-tests: Likewise.
17299         * modules/inttypes-tests: Likewise.
17300         * modules/isfinite-tests: Likewise.
17301         * modules/isinf-tests: Likewise.
17302         * modules/ldexpl-tests: Likewise.
17303         * modules/locale-tests: Likewise.
17304         * modules/math-tests: Likewise.
17305         * modules/netdb-tests: Likewise.
17306         * modules/netinet_in-tests: Likewise.
17307         * modules/printf-frexp-tests: Likewise.
17308         * modules/printf-frexpl-tests: Likewise.
17309         * modules/priv-set-tests: Likewise.
17310         * modules/random_r-tests: Likewise.
17311         * modules/round-tests: Likewise.
17312         * modules/roundf-tests: Likewise.
17313         * modules/roundl-tests: Likewise.
17314         * modules/search-tests: Likewise.
17315         * modules/select-tests: Likewise.
17316         * modules/signal-tests: Likewise.
17317         * modules/stdbool-tests: Likewise.
17318         * modules/stddef-tests: Likewise.
17319         * modules/stdint-tests: Likewise.
17320         * modules/stdio-tests: Likewise.
17321         * modules/stdlib-tests: Likewise.
17322         * modules/string-tests: Likewise.
17323         * modules/strings-tests: Likewise.
17324         * modules/sys_select-tests: Likewise.
17325         * modules/sys_socket-tests: Likewise.
17326         * modules/sys_stat-tests: Likewise.
17327         * modules/sys_time-tests: Likewise.
17328         * modules/sys_utsname-tests: Likewise.
17329         * modules/sysexits-tests: Likewise.
17330         * modules/time-tests: Likewise.
17331         * modules/trunc-tests: Likewise.
17332         * modules/truncf-tests: Likewise.
17333         * modules/truncl-tests: Likewise.
17334         * modules/tsearch-tests: Likewise.
17335         * modules/unistd-tests: Likewise.
17336         * modules/wchar-tests: Likewise.
17337         * modules/wctype-tests: Likewise.
17338
17339         tests: fix license on several tests
17340         * tests/test-des.c: Update to GPLv3+.
17341         * tests/test-flock.c: Likewise.
17342         * tests/test-fsync.c: Likewise.
17343         * tests/test-futimens.h: Likewise.
17344         * tests/test-gc-arcfour.c: Likewise.
17345         * tests/test-gc-arctwo.c: Likewise.
17346         * tests/test-gc-des.c: Likewise.
17347         * tests/test-gc-hmac-md5.c: Likewise.
17348         * tests/test-gc-hmac-sha1.c: Likewise.
17349         * tests/test-gc-md2.c: Likewise.
17350         * tests/test-gc-md4.c: Likewise.
17351         * tests/test-gc-md5.c: Likewise.
17352         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17353         * tests/test-gc-rijndael.c: Likewise.
17354         * tests/test-gc-sha1.c: Likewise.
17355         * tests/test-gc.c: Likewise.
17356         * tests/test-getcwd.c: Likewise.
17357         * tests/test-link.c: Likewise.
17358         * tests/test-link.h: Likewise.
17359         * tests/test-lutimens.h: Likewise.
17360         * tests/test-md2.c: Likewise.
17361         * tests/test-md4.c: Likewise.
17362         * tests/test-mkdir.h: Likewise.
17363         * tests/test-rename.c: Likewise.
17364         * tests/test-rename.h: Likewise.
17365         * tests/test-safe-alloc.c: Likewise.
17366         * tests/test-utimens-common.h: Likewise.
17367         * tests/test-utimens.h: Likewise.
17368
17369         maint: sync license texts
17370         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
17371         * doc/gpl-3.0.texi: Revert copyright year update.
17372         * doc/lgpl-3.0.texi: Likewise.
17373
17374 2009-12-29  Jim Meyering  <meyering@redhat.com>
17375
17376         update nearly all FSF copyright year lists to include 2009
17377         The files named by the following are exempted:
17378             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
17379               test -f "$dst" && { echo "$dst"; continue; }
17380               test -d "$dst" || continue
17381               echo "$dst"/$(basename "$src")
17382             done > exempt
17383             git ls-files tests/unictype >> exempt
17384         In the remaining files, convert to all-interval notation if
17385         - there is already at least one year interval like 2000-2003
17386         - the file is maintained by me
17387         - the file is in lib/uni*/, where that style already prevails
17388         Otherwise, use update-copyright's default.
17389
17390 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17391         and Eric Blake  <ebb9@byu.net>
17392
17393         tests: don't require debug system() to pass
17394         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
17395         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17396         * tests/test-unlink.h (test_unlink_func): Likewise.
17397         * tests/test-fstatat.c (main): ...into callers.
17398         * tests/test-lstat.c (main): Likewise.
17399         * tests/test-rmdir.c (main): Likewise.
17400         * tests/test-unlink.c (main): Likewise.
17401         * tests/test-unlinkat.c (main): Likewise.
17402         * tests/test-areadlink-with-size.c (main): Don't require a
17403         debug-only system call to pass, aiding cross-testing to mingw.
17404         * tests/test-areadlink.c (main): Likewise.
17405         * tests/test-areadlinkat-with-size.c (main): Likewise.
17406         * tests/test-areadlinkat.c (main): Likewise.
17407         * tests/test-canonicalize-lgpl.c (main): Likewise.
17408         * tests/test-canonicalize.c (main): Likewise.
17409         * tests/test-chown.c (main): Likewise.
17410         * tests/test-fchownat.c (main): Likewise.
17411         * tests/test-lchown.c (main): Likewise.
17412         * tests/test-fdutimensat.c (main): Likewise.
17413         * tests/test-futimens.c (main): Likewise.
17414         * tests/test-link.c (main): Likewise.
17415         * tests/test-linkat.c (main): Likewise.
17416         * tests/test-mkdir.c (main): Likewise.
17417         * tests/test-mkdirat.c (main): Likewise.
17418         * tests/test-mkfifo.c (main): Likewise.
17419         * tests/test-mkfifoat.c (main): Likewise.
17420         * tests/test-mknod.c (main): Likewise.
17421         * tests/test-readlink.c (main): Likewise.
17422         * tests/test-remove.c (main): Likewise.
17423         * tests/test-rename.c (main): Likewise.
17424         * tests/test-renameat.c (main): Likewise.
17425         * tests/test-symlink.c (main): Likewise.
17426         * tests/test-symlinkat.c (main): Likewise.
17427         * tests/test-utimens.c (main): Likewise.
17428         * tests/test-utimensat.c (main): Likewise.
17429
17430 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17431
17432         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
17433         on $(UNUSED_PARAMETER_H) to avoid build failure.
17434
17435 2009-12-28  Jim Meyering  <meyering@redhat.com>
17436
17437         update-copyright: you may specify a max. line length other than 72
17438         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17439
17440         maint: use consistent FSF copyright line syntax
17441         * lib/posixtm.c: Add missing comma in FSF copyright line.
17442         * lib/posixtm.h: Likewise.
17443         * lib/getugroups.c: Add missing ", Inc.".
17444
17445         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
17446         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
17447         FSF copyright line.  Remove trailing blanks.
17448
17449 2009-12-28  Eric Blake  <ebb9@byu.net>
17450
17451         test-dup2: reduce dependencies
17452         * modules/cloexec (Configure.ac): Set witness.
17453         * modules/dup2-tests (Depends-on): Drop cloexec.
17454         * tests/test-dup2.c (main): Skip portion of test if cloexec module
17455         not present.
17456         Suggested by Bruno Haible.
17457
17458 2009-12-26  Bruno Haible  <bruno@clisp.org>
17459
17460         Remove an unneeded dependency.
17461         * modules/fseterr (Depends-on): Remove dup2.
17462
17463 2009-12-26  Eric Blake  <ebb9@byu.net>
17464
17465         tests: use macros.h in more places
17466         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
17467         (ASSERT_STREAM): Provide default of stderr.
17468         * tests/test-dirent-safer.c: Include macros.h, using alternate
17469         stream for assertions.
17470         * tests/test-dup-safer.c: Likewise.
17471         * tests/test-freopen-safer.c: Likewise.
17472         * tests/test-getopt.c: Likewise.
17473         * tests/test-openat-safer.c: Likewise.
17474         * tests/test-pipe.c: Likewise.
17475         * tests/test-popen-safer.c: Likewise.
17476         * modules/dirent-safer-tests (Files): Include macros.h.
17477         * modules/unistd-safer-tests (Files): Likewise.
17478         * modules/freopen-safer-tests (Files): Likewise.
17479         * modules/getopt-posix-tests (Files): Likewise.
17480         * modules/openat-safer-tests (Files): Likewise.
17481         * modules/pipe-tests (Files): Likewise.
17482
17483 2009-12-26  Bruno Haible  <bruno@clisp.org>
17484
17485         javacomp: Portability fix.
17486         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
17487         that it also works on Solaris.
17488
17489 2009-12-26  Bruno Haible  <bruno@clisp.org>
17490
17491         localename: Fix storage allocation of gl_locale_name_thread's result.
17492         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
17493         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
17494         all platforms that have 'uselocale'.
17495         (gl_locale_name_thread_unsafe): New function, extracted from
17496         gl_locale_name_thread.
17497         (gl_locale_name_thread): Call struniq on all platforms that have
17498         'uselocale'.
17499         * tests/test-localename.c (test_locale_name_thread): Check that the
17500         resulting strings are permanently allocated.
17501         * modules/localename-tests (Depends-on): Add strdup.
17502
17503 2009-12-26  Bruno Haible  <bruno@clisp.org>
17504
17505         * tests/test-localename.c (categories): Fill in the strings.
17506
17507 2009-12-26  Jim Meyering  <meyering@redhat.com>
17508
17509         isdir: complete the removal of m4/isdir.m4
17510         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
17511
17512         isdir: clean up, since at least grep still uses it
17513         * lib/isdir.c: Include "isdir.h".
17514         (S_ISDIR): Remove now-unneeded definition.
17515         * modules/isdir (Files): Add lib/isdir.h.
17516         * lib/isdir.h: New file, with declaration.
17517         * m4/isdir.m4: Remove file -- unneeded.
17518
17519 2009-12-25  Bruno Haible  <bruno@clisp.org>
17520
17521         selinux-h: Make generated .h files standalone.
17522         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
17523         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
17524         * lib/se-selinux.in.h: Likewise.
17525         * modules/selinux-h (Depends-on): Add unused-parameter.
17526         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
17527         selinux/selinux.h and selinux/context.h.
17528         Suggested by Eric Blake.
17529
17530 2009-12-25  Bruno Haible  <bruno@clisp.org>
17531
17532         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
17533         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
17534         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
17535         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
17536         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
17537
17538 2009-12-24  Bruno Haible  <bruno@clisp.org>
17539
17540         openat: Fix warning.
17541         * lib/openat-proc.c: Include <unistd.h>.
17542
17543 2009-12-24  Bruno Haible  <bruno@clisp.org>
17544
17545         New module 'unused-parameter'.
17546         * build-aux/unused-parameter.h: New file, extracted from earlier
17547         gnulib-common.m4.
17548         * modules/unused-parameter: New file.
17549         * lib/unistr.h: Include unused-parameter.h.
17550         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
17551         _GL_UNUSED.
17552         * modules/unistr/base (Depends-on): Add unused-parameter.
17553
17554 2009-12-24  Bruno Haible  <bruno@clisp.org>
17555
17556         Add missing dependencies to 'extensions' module.
17557         * m4/extensions.m4: Add comment.
17558         * modules/accept4 (Depends-on): Add extensions.
17559         * modules/dup3 (Depends-on): Likewise.
17560         * modules/fcntl (Depends-on): Likewise.
17561         * modules/futimens (Depends-on): Likewise.
17562         * modules/mknod (Depends-on): Likewise.
17563         * modules/pipe2 (Depends-on): Likewise.
17564         * modules/stat-time (Depends-on): Likewise.
17565         * modules/strcasestr-simple (Depends-on): Likewise.
17566         * modules/strsignal (Depends-on): Likewise.
17567         * modules/utimensat (Depends-on): Likewise.
17568         * modules/localcharset (Depends-on): Likewise. Needed because of
17569         gl_FCNTL_O_FLAGS.
17570         * modules/wcrtomb (Depends-on): Likewise. Needed because of
17571         AC_TYPE_MBSTATE_T.
17572         * modules/wcsnrtombs (Depends-on): Likewise.
17573         * modules/wcsrtombs (Depends-on): Likewise.
17574
17575 2009-12-24  Bruno Haible  <bruno@clisp.org>
17576
17577         binary-io: Avoid gcc warning due to SET_BINARY.
17578         * lib/binary-io.h (SET_BINARY): Cast the result to void.
17579         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
17580
17581 2009-12-24  Bruno Haible  <bruno@clisp.org>
17582
17583         Avoid future namespace pollution on glibc systems.
17584         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
17585         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
17586         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
17587         glibc systems.
17588
17589 2009-12-24  Bruno Haible  <bruno@clisp.org>
17590
17591         Refactor common macros used in tests.
17592         * tests/macros.h: New file.
17593         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
17594         and/or <stdlib.h>, if appropriate.
17595         (ASSERT, SIZEOF): Remove macros.
17596         * tests/test-areadlink-with-size.c: Likewise.
17597         * tests/test-areadlinkat.c: Likewise.
17598         * tests/test-areadlinkat-with-size.c: Likewise.
17599         * tests/test-argmatch.c: Likewise.
17600         * tests/test-argv-iter.c: Likewise.
17601         * tests/test-array-mergesort.c: Likewise.
17602         * tests/test-array_list.c: Likewise.
17603         * tests/test-array_oset.c: Likewise.
17604         * tests/test-avltree_list.c: Likewise.
17605         * tests/test-avltree_oset.c: Likewise.
17606         * tests/test-avltreehash_list.c: Likewise.
17607         * tests/test-base64.c: Likewise.
17608         * tests/test-binary-io.c: Likewise.
17609         * tests/test-bitrotate.c: Likewise.
17610         * tests/test-btowc.c: Likewise.
17611         * tests/test-byteswap.c: Likewise.
17612         * tests/test-c-ctype.c: Likewise.
17613         * tests/test-c-stack.c: Likewise.
17614         * tests/test-c-strcasecmp.c: Likewise.
17615         * tests/test-c-strcasestr.c: Likewise.
17616         * tests/test-c-strncasecmp.c: Likewise.
17617         * tests/test-c-strstr.c: Likewise.
17618         * tests/test-canonicalize-lgpl.c: Likewise.
17619         * tests/test-canonicalize.c: Likewise.
17620         * tests/test-carray_list.c: Likewise.
17621         * tests/test-ceilf1.c: Likewise.
17622         * tests/test-ceilf2.c: Likewise.
17623         * tests/test-ceill.c: Likewise.
17624         * tests/test-chown.c: Likewise.
17625         * tests/test-cloexec.c: Likewise.
17626         * tests/test-copy-acl.c: Likewise.
17627         * tests/test-copy-file.c: Likewise.
17628         * tests/test-count-one-bits.c: Likewise.
17629         * tests/test-dprintf-posix.c: Likewise.
17630         * tests/test-dup2.c: Likewise.
17631         * tests/test-dup3.c: Likewise.
17632         * tests/test-duplocale.c: Likewise.
17633         * tests/test-fbufmode.c: Likewise.
17634         * tests/test-fchdir.c: Likewise.
17635         * tests/test-fchownat.c: Likewise.
17636         * tests/test-fcntl-safer.c: Likewise.
17637         * tests/test-fcntl.c: Likewise.
17638         * tests/test-fdopendir.c: Likewise.
17639         * tests/test-fdutimensat.c: Likewise.
17640         * tests/test-fflush2.c: Likewise.
17641         * tests/test-file-has-acl.c: Likewise.
17642         * tests/test-filevercmp.c: Likewise.
17643         * tests/test-flock.c: Likewise.
17644         * tests/test-floorf1.c: Likewise.
17645         * tests/test-floorf2.c: Likewise.
17646         * tests/test-floorl.c: Likewise.
17647         * tests/test-fnmatch.c: Likewise.
17648         * tests/test-fopen.h: Likewise.
17649         * tests/test-fpending.c: Likewise.
17650         * tests/test-fprintf-posix.c: Likewise.
17651         * tests/test-fpurge.c: Likewise.
17652         * tests/test-freadable.c: Likewise.
17653         * tests/test-freadahead.c: Likewise.
17654         * tests/test-freading.c: Likewise.
17655         * tests/test-freadptr.c: Likewise.
17656         * tests/test-freadptr2.c: Likewise.
17657         * tests/test-freadseek.c: Likewise.
17658         * tests/test-freopen.c: Likewise.
17659         * tests/test-frexp.c: Likewise.
17660         * tests/test-frexpl.c: Likewise.
17661         * tests/test-fseek.c: Likewise.
17662         * tests/test-fseeko.c: Likewise.
17663         * tests/test-fstatat.c: Likewise.
17664         * tests/test-fstrcmp.c: Likewise.
17665         * tests/test-fsync.c: Likewise.
17666         * tests/test-ftell.c: Likewise.
17667         * tests/test-ftello.c: Likewise.
17668         * tests/test-func.c: Likewise.
17669         * tests/test-futimens.c: Likewise.
17670         * tests/test-fwritable.c: Likewise.
17671         * tests/test-fwriting.c: Likewise.
17672         * tests/test-getcwd.c: Likewise.
17673         * tests/test-getdate.c: Likewise.
17674         * tests/test-getdelim.c: Likewise.
17675         * tests/test-getdtablesize.c: Likewise.
17676         * tests/test-getgroups.c: Likewise.
17677         * tests/test-getline.c: Likewise.
17678         * tests/test-getndelim2.c: Likewise.
17679         * tests/test-glob.c: Likewise.
17680         * tests/test-hash.c: Likewise.
17681         * tests/test-i-ring.c: Likewise.
17682         * tests/test-iconv-utf.c: Likewise.
17683         * tests/test-iconv.c: Likewise.
17684         * tests/test-idpriv-drop.c: Likewise.
17685         * tests/test-idpriv-droptemp.c: Likewise.
17686         * tests/test-inet_ntop.c: Likewise.
17687         * tests/test-inet_pton.c: Likewise.
17688         * tests/test-isblank.c: Likewise.
17689         * tests/test-isfinite.c: Likewise.
17690         * tests/test-isinf.c: Likewise.
17691         * tests/test-isnan.c: Likewise.
17692         * tests/test-isnand.h: Likewise.
17693         * tests/test-isnanf.h: Likewise.
17694         * tests/test-isnanl.h: Likewise.
17695         * tests/test-lchown.c: Likewise.
17696         * tests/test-ldexpl.c: Likewise.
17697         * tests/test-link.c: Likewise.
17698         * tests/test-linkat.c: Likewise.
17699         * tests/test-linked_list.c: Likewise.
17700         * tests/test-linkedhash_list.c: Likewise.
17701         * tests/test-localename.c: Likewise.
17702         * tests/test-lseek.c: Likewise.
17703         * tests/test-lstat.c: Likewise.
17704         * tests/test-mbmemcasecmp.c: Likewise.
17705         * tests/test-mbmemcasecoll.c: Likewise.
17706         * tests/test-mbrtowc.c: Likewise.
17707         * tests/test-mbscasecmp.c: Likewise.
17708         * tests/test-mbscasestr1.c: Likewise.
17709         * tests/test-mbscasestr2.c: Likewise.
17710         * tests/test-mbscasestr3.c: Likewise.
17711         * tests/test-mbscasestr4.c: Likewise.
17712         * tests/test-mbschr.c: Likewise.
17713         * tests/test-mbscspn.c: Likewise.
17714         * tests/test-mbsinit.c: Likewise.
17715         * tests/test-mbsncasecmp.c: Likewise.
17716         * tests/test-mbsnrtowcs.c: Likewise.
17717         * tests/test-mbspbrk.c: Likewise.
17718         * tests/test-mbspcasecmp.c: Likewise.
17719         * tests/test-mbsrchr.c: Likewise.
17720         * tests/test-mbsrtowcs.c: Likewise.
17721         * tests/test-mbsspn.c: Likewise.
17722         * tests/test-mbsstr1.c: Likewise.
17723         * tests/test-mbsstr2.c: Likewise.
17724         * tests/test-mbsstr3.c: Likewise.
17725         * tests/test-memchr.c: Likewise.
17726         * tests/test-memchr2.c: Likewise.
17727         * tests/test-memcmp.c: Likewise.
17728         * tests/test-memmem.c: Likewise.
17729         * tests/test-memrchr.c: Likewise.
17730         * tests/test-mkdir.c: Likewise.
17731         * tests/test-mkdirat.c: Likewise.
17732         * tests/test-mkfifo.c: Likewise.
17733         * tests/test-mkfifoat.c: Likewise.
17734         * tests/test-mknod.c: Likewise.
17735         * tests/test-nanosleep.c: Likewise.
17736         * tests/test-nl_langinfo.c: Likewise.
17737         * tests/test-obstack-printf.c: Likewise.
17738         * tests/test-open.c: Likewise.
17739         * tests/test-openat.c: Likewise.
17740         * tests/test-pipe-filter-gi1.c: Likewise.
17741         * tests/test-pipe-filter-gi2-main.c: Likewise.
17742         * tests/test-pipe-filter-ii1.c: Likewise.
17743         * tests/test-pipe-filter-ii2-main.c: Likewise.
17744         * tests/test-pipe2.c: Likewise.
17745         * tests/test-popen.h: Likewise.
17746         * tests/test-posixtm.c: Likewise.
17747         * tests/test-pread.c: Likewise.
17748         * tests/test-printf-frexp.c: Likewise.
17749         * tests/test-printf-frexpl.c: Likewise.
17750         * tests/test-printf-posix.c: Likewise.
17751         * tests/test-priv-set.c: Likewise.
17752         * tests/test-quotearg.c: Likewise.
17753         * tests/test-random_r.c: Likewise.
17754         * tests/test-rawmemchr.c: Likewise.
17755         * tests/test-rbtree_list.c: Likewise.
17756         * tests/test-rbtree_oset.c: Likewise.
17757         * tests/test-rbtreehash_list.c: Likewise.
17758         * tests/test-readlink.c: Likewise.
17759         * tests/test-remove.c: Likewise.
17760         * tests/test-rename.c: Likewise.
17761         * tests/test-renameat.c: Likewise.
17762         * tests/test-rmdir.c: Likewise.
17763         * tests/test-round1.c: Likewise.
17764         * tests/test-roundf1.c: Likewise.
17765         * tests/test-roundl.c: Likewise.
17766         * tests/test-safe-alloc.c: Likewise.
17767         * tests/test-sameacls.c: Likewise.
17768         * tests/test-set-mode-acl.c: Likewise.
17769         * tests/test-setenv.c: Likewise.
17770         * tests/test-sigaction.c: Likewise.
17771         * tests/test-signbit.c: Likewise.
17772         * tests/test-sleep.c: Likewise.
17773         * tests/test-snprintf-posix.c: Likewise.
17774         * tests/test-snprintf.c: Likewise.
17775         * tests/test-sprintf-posix.c: Likewise.
17776         * tests/test-stat-time.c: Likewise.
17777         * tests/test-stat.c: Likewise.
17778         * tests/test-strcasestr.c: Likewise.
17779         * tests/test-strchrnul.c: Likewise.
17780         * tests/test-strerror.c: Likewise.
17781         * tests/test-striconv.c: Likewise.
17782         * tests/test-striconveh.c: Likewise.
17783         * tests/test-striconveha.c: Likewise.
17784         * tests/test-strsignal.c: Likewise.
17785         * tests/test-strstr.c: Likewise.
17786         * tests/test-strtod.c: Likewise.
17787         * tests/test-strverscmp.c: Likewise.
17788         * tests/test-symlink.c: Likewise.
17789         * tests/test-symlinkat.c: Likewise.
17790         * tests/test-trunc1.c: Likewise.
17791         * tests/test-trunc2.c: Likewise.
17792         * tests/test-truncf1.c: Likewise.
17793         * tests/test-truncf2.c: Likewise.
17794         * tests/test-truncl.c: Likewise.
17795         * tests/test-uname.c: Likewise.
17796         * tests/test-unlink.c: Likewise.
17797         * tests/test-unlinkat.c: Likewise.
17798         * tests/test-unsetenv.c: Likewise.
17799         * tests/test-usleep.c: Likewise.
17800         * tests/test-utimens.c: Likewise.
17801         * tests/test-utimensat.c: Likewise.
17802         * tests/test-vasnprintf-posix.c: Likewise.
17803         * tests/test-vasnprintf-posix2.c: Likewise.
17804         * tests/test-vasnprintf.c: Likewise.
17805         * tests/test-vasprintf-posix.c: Likewise.
17806         * tests/test-vasprintf.c: Likewise.
17807         * tests/test-vdprintf-posix.c: Likewise.
17808         * tests/test-vfprintf-posix.c: Likewise.
17809         * tests/test-vprintf-posix.c: Likewise.
17810         * tests/test-vsnprintf-posix.c: Likewise.
17811         * tests/test-vsnprintf.c: Likewise.
17812         * tests/test-vsprintf-posix.c: Likewise.
17813         * tests/test-wcrtomb.c: Likewise.
17814         * tests/test-wcsnrtombs.c: Likewise.
17815         * tests/test-wcsrtombs.c: Likewise.
17816         * tests/test-wctype.c: Likewise.
17817         * tests/test-wcwidth.c: Likewise.
17818         * tests/test-xfprintf-posix.c: Likewise.
17819         * tests/test-xmemdup0.c: Likewise.
17820         * tests/test-xprintf-posix.c: Likewise.
17821         * tests/test-xvasprintf.c: Likewise.
17822         * tests/unicase/test-locale-language.c: Likewise.
17823         * tests/unicase/test-mapping-part1.h: Likewise.
17824         * tests/unicase/test-predicate-part1.h: Likewise.
17825         * tests/unicase/test-u8-casecmp.c: Likewise.
17826         * tests/unicase/test-u8-casecoll.c: Likewise.
17827         * tests/unicase/test-u8-casefold.c: Likewise.
17828         * tests/unicase/test-u8-is-cased.c: Likewise.
17829         * tests/unicase/test-u8-is-casefolded.c: Likewise.
17830         * tests/unicase/test-u8-is-lowercase.c: Likewise.
17831         * tests/unicase/test-u8-is-titlecase.c: Likewise.
17832         * tests/unicase/test-u8-is-uppercase.c: Likewise.
17833         * tests/unicase/test-u8-tolower.c: Likewise.
17834         * tests/unicase/test-u8-totitle.c: Likewise.
17835         * tests/unicase/test-u8-toupper.c: Likewise.
17836         * tests/unicase/test-u16-casecmp.c: Likewise.
17837         * tests/unicase/test-u16-casecoll.c: Likewise.
17838         * tests/unicase/test-u16-casefold.c: Likewise.
17839         * tests/unicase/test-u16-is-cased.c: Likewise.
17840         * tests/unicase/test-u16-is-casefolded.c: Likewise.
17841         * tests/unicase/test-u16-is-lowercase.c: Likewise.
17842         * tests/unicase/test-u16-is-titlecase.c: Likewise.
17843         * tests/unicase/test-u16-is-uppercase.c: Likewise.
17844         * tests/unicase/test-u16-tolower.c: Likewise.
17845         * tests/unicase/test-u16-totitle.c: Likewise.
17846         * tests/unicase/test-u16-toupper.c: Likewise.
17847         * tests/unicase/test-u32-casecmp.c: Likewise.
17848         * tests/unicase/test-u32-casecoll.c: Likewise.
17849         * tests/unicase/test-u32-casefold.c: Likewise.
17850         * tests/unicase/test-u32-is-cased.c: Likewise.
17851         * tests/unicase/test-u32-is-casefolded.c: Likewise.
17852         * tests/unicase/test-u32-is-lowercase.c: Likewise.
17853         * tests/unicase/test-u32-is-titlecase.c: Likewise.
17854         * tests/unicase/test-u32-is-uppercase.c: Likewise.
17855         * tests/unicase/test-u32-tolower.c: Likewise.
17856         * tests/unicase/test-u32-totitle.c: Likewise.
17857         * tests/unicase/test-u32-toupper.c: Likewise.
17858         * tests/unicase/test-ulc-casecmp.c: Likewise.
17859         * tests/unicase/test-ulc-casecoll.c: Likewise.
17860         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
17861         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
17862         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
17863         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
17864         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
17865         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
17866         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
17867         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
17868         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
17869         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
17870         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
17871         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
17872         * tests/unictype/test-bidi_byname.c: Likewise.
17873         * tests/unictype/test-bidi_name.c: Likewise.
17874         * tests/unictype/test-bidi_of.c: Likewise.
17875         * tests/unictype/test-bidi_test.c: Likewise.
17876         * tests/unictype/test-block_list.c: Likewise.
17877         * tests/unictype/test-block_of.c: Likewise.
17878         * tests/unictype/test-block_test.c: Likewise.
17879         * tests/unictype/test-categ_and.c: Likewise.
17880         * tests/unictype/test-categ_and_not.c: Likewise.
17881         * tests/unictype/test-categ_byname.c: Likewise.
17882         * tests/unictype/test-categ_name.c: Likewise.
17883         * tests/unictype/test-categ_none.c: Likewise.
17884         * tests/unictype/test-categ_of.c: Likewise.
17885         * tests/unictype/test-categ_or.c: Likewise.
17886         * tests/unictype/test-categ_test_withtable.c: Likewise.
17887         * tests/unictype/test-combining.c: Likewise.
17888         * tests/unictype/test-decdigit.c: Likewise.
17889         * tests/unictype/test-digit.c: Likewise.
17890         * tests/unictype/test-mirror.c: Likewise.
17891         * tests/unictype/test-numeric.c: Likewise.
17892         * tests/unictype/test-pr_byname.c: Likewise.
17893         * tests/unictype/test-pr_test.c: Likewise.
17894         * tests/unictype/test-predicate-part1.h: Likewise.
17895         * tests/unictype/test-scripts.c: Likewise.
17896         * tests/unictype/test-sy_c_ident.c: Likewise.
17897         * tests/unictype/test-sy_java_ident.c: Likewise.
17898         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
17899         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
17900         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
17901         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
17902         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
17903         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
17904         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
17905         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
17906         * tests/uninorm/test-canonical-decomposition.c: Likewise.
17907         * tests/uninorm/test-compat-decomposition.c: Likewise.
17908         * tests/uninorm/test-composition.c: Likewise.
17909         * tests/uninorm/test-decomposing-form.c: Likewise.
17910         * tests/uninorm/test-decomposition.c: Likewise.
17911         * tests/uninorm/test-u8-nfc.c: Likewise.
17912         * tests/uninorm/test-u8-nfd.c: Likewise.
17913         * tests/uninorm/test-u8-nfkc.c: Likewise.
17914         * tests/uninorm/test-u8-nfkd.c: Likewise.
17915         * tests/uninorm/test-u8-normcmp.c: Likewise.
17916         * tests/uninorm/test-u8-normcoll.c: Likewise.
17917         * tests/uninorm/test-u16-nfc.c: Likewise.
17918         * tests/uninorm/test-u16-nfd.c: Likewise.
17919         * tests/uninorm/test-u16-nfkc.c: Likewise.
17920         * tests/uninorm/test-u16-nfkd.c: Likewise.
17921         * tests/uninorm/test-u16-normcmp.c: Likewise.
17922         * tests/uninorm/test-u16-normcoll.c: Likewise.
17923         * tests/uninorm/test-u32-nfc.c: Likewise.
17924         * tests/uninorm/test-u32-nfd.c: Likewise.
17925         * tests/uninorm/test-u32-nfkc.c: Likewise.
17926         * tests/uninorm/test-u32-nfkd.c: Likewise.
17927         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17928         * tests/uninorm/test-u32-normcmp.c: Likewise.
17929         * tests/uninorm/test-u32-normcoll.c: Likewise.
17930         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
17931         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
17932         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
17933         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
17934         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
17935         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
17936         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
17937         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
17938         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
17939         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
17940         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
17941         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
17942         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
17943         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
17944         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
17945         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
17946         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
17947         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
17948         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
17949         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
17950         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
17951         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
17952         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
17953         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
17954         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
17955         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
17956         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
17957         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
17958         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
17959         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
17960         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
17961         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
17962         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
17963         * tests/uniwidth/test-u8-strwidth.c: Likewise.
17964         * tests/uniwidth/test-u8-width.c: Likewise.
17965         * tests/uniwidth/test-u16-strwidth.c: Likewise.
17966         * tests/uniwidth/test-u16-width.c: Likewise.
17967         * tests/uniwidth/test-u32-strwidth.c: Likewise.
17968         * tests/uniwidth/test-u32-width.c: Likewise.
17969         * tests/uniwidth/test-uc_width.c: Likewise.
17970         * tests/uniwidth/test-uc_width2.c: Likewise.
17971         * modules/acl-tests (Files): Add tests/macros.h.
17972         * modules/areadlink-tests (Files): Likewise.
17973         * modules/areadlink-with-size-tests (Files): Likewise.
17974         * modules/areadlinkat-tests (Files): Likewise.
17975         * modules/areadlinkat-with-size-tests (Files): Likewise.
17976         * modules/argmatch-tests (Files): Likewise.
17977         * modules/argv-iter-tests (Files): Likewise.
17978         * modules/array-list-tests (Files): Likewise.
17979         * modules/array-mergesort-tests (Files): Likewise.
17980         * modules/array-oset-tests (Files): Likewise.
17981         * modules/avltree-list-tests (Files): Likewise.
17982         * modules/avltree-oset-tests (Files): Likewise.
17983         * modules/avltreehash-list-tests (Files): Likewise.
17984         * modules/base64-tests (Files): Likewise.
17985         * modules/binary-io-tests (Files): Likewise.
17986         * modules/bitrotate-tests (Files): Likewise.
17987         * modules/btowc-tests (Files): Likewise.
17988         * modules/byteswap-tests (Files): Likewise.
17989         * modules/c-ctype-tests (Files): Likewise.
17990         * modules/c-stack-tests (Files): Likewise.
17991         * modules/c-strcase-tests (Files): Likewise.
17992         * modules/c-strcasestr-tests (Files): Likewise.
17993         * modules/c-strstr-tests (Files): Likewise.
17994         * modules/canonicalize-lgpl-tests (Files): Likewise.
17995         * modules/canonicalize-tests (Files): Likewise.
17996         * modules/carray-list-tests (Files): Likewise.
17997         * modules/ceilf-tests (Files): Likewise.
17998         * modules/ceill-tests (Files): Likewise.
17999         * modules/chown-tests (Files): Likewise.
18000         * modules/cloexec-tests (Files): Likewise.
18001         * modules/copy-file-tests (Files): Likewise.
18002         * modules/count-one-bits-tests (Files): Likewise.
18003         * modules/dprintf-posix-tests (Files): Likewise.
18004         * modules/dup2-tests (Files): Likewise.
18005         * modules/dup3-tests (Files): Likewise.
18006         * modules/duplocale-tests (Files): Likewise.
18007         * modules/fbufmode-tests (Files): Likewise.
18008         * modules/fchdir-tests (Files): Likewise.
18009         * modules/fcntl-safer-tests (Files): Likewise.
18010         * modules/fcntl-tests (Files): Likewise.
18011         * modules/fdopendir-tests (Files): Likewise.
18012         * modules/fdutimensat-tests (Files): Likewise.
18013         * modules/fflush-tests (Files): Likewise.
18014         * modules/filevercmp-tests (Files): Likewise.
18015         * modules/flock-tests (Files): Likewise.
18016         * modules/floorf-tests (Files): Likewise.
18017         * modules/floorl-tests (Files): Likewise.
18018         * modules/fnmatch-tests (Files): Likewise.
18019         * modules/fopen-safer-tests (Files): Likewise.
18020         * modules/fopen-tests (Files): Likewise.
18021         * modules/fpending-tests (Files): Likewise.
18022         * modules/fprintf-posix-tests (Files): Likewise.
18023         * modules/fpurge-tests (Files): Likewise.
18024         * modules/freadable-tests (Files): Likewise.
18025         * modules/freadahead-tests (Files): Likewise.
18026         * modules/freading-tests (Files): Likewise.
18027         * modules/freadptr-tests (Files): Likewise.
18028         * modules/freadseek-tests (Files): Likewise.
18029         * modules/freopen-tests (Files): Likewise.
18030         * modules/frexp-nolibm-tests (Files): Likewise.
18031         * modules/frexp-tests (Files): Likewise.
18032         * modules/frexpl-nolibm-tests (Files): Likewise.
18033         * modules/frexpl-tests (Files): Likewise.
18034         * modules/fseek-tests (Files): Likewise.
18035         * modules/fseeko-tests (Files): Likewise.
18036         * modules/fstrcmp-tests (Files): Likewise.
18037         * modules/fsync-tests (Files): Likewise.
18038         * modules/ftell-tests (Files): Likewise.
18039         * modules/ftello-tests (Files): Likewise.
18040         * modules/func-tests (Files): Likewise.
18041         * modules/futimens-tests (Files): Likewise.
18042         * modules/fwritable-tests (Files): Likewise.
18043         * modules/fwriting-tests (Files): Likewise.
18044         * modules/getcwd-tests (Files): Likewise.
18045         * modules/getdate-tests (Files): Likewise.
18046         * modules/getdelim-tests (Files): Likewise.
18047         * modules/getdtablesize-tests (Files): Likewise.
18048         * modules/getgroups-tests (Files): Likewise.
18049         * modules/getline-tests (Files): Likewise.
18050         * modules/getndelim2-tests (Files): Likewise.
18051         * modules/glob-tests (Files): Likewise.
18052         * modules/hash-tests (Files): Likewise.
18053         * modules/i-ring-tests (Files): Likewise.
18054         * modules/iconv-tests (Files): Likewise.
18055         * modules/iconv_open-utf-tests (Files): Likewise.
18056         * modules/idpriv-drop-tests (Files): Likewise.
18057         * modules/idpriv-droptemp-tests (Files): Likewise.
18058         * modules/inet_ntop-tests (Files): Likewise.
18059         * modules/inet_pton-tests (Files): Likewise.
18060         * modules/isblank-tests (Files): Likewise.
18061         * modules/isfinite-tests (Files): Likewise.
18062         * modules/isinf-tests (Files): Likewise.
18063         * modules/isnan-tests (Files): Likewise.
18064         * modules/isnand-nolibm-tests (Files): Likewise.
18065         * modules/isnand-tests (Files): Likewise.
18066         * modules/isnanf-nolibm-tests (Files): Likewise.
18067         * modules/isnanf-tests (Files): Likewise.
18068         * modules/isnanl-nolibm-tests (Files): Likewise.
18069         * modules/isnanl-tests (Files): Likewise.
18070         * modules/lchown-tests (Files): Likewise.
18071         * modules/ldexpl-tests (Files): Likewise.
18072         * modules/link-tests (Files): Likewise.
18073         * modules/linkat-tests (Files): Likewise.
18074         * modules/linked-list-tests (Files): Likewise.
18075         * modules/linkedhash-list-tests (Files): Likewise.
18076         * modules/localename-tests (Files): Likewise.
18077         * modules/lseek-tests (Files): Likewise.
18078         * modules/lstat-tests (Files): Likewise.
18079         * modules/mbmemcasecmp-tests (Files): Likewise.
18080         * modules/mbmemcasecoll-tests (Files): Likewise.
18081         * modules/mbrtowc-tests (Files): Likewise.
18082         * modules/mbscasecmp-tests (Files): Likewise.
18083         * modules/mbscasestr-tests (Files): Likewise.
18084         * modules/mbschr-tests (Files): Likewise.
18085         * modules/mbscspn-tests (Files): Likewise.
18086         * modules/mbsinit-tests (Files): Likewise.
18087         * modules/mbsncasecmp-tests (Files): Likewise.
18088         * modules/mbsnrtowcs-tests (Files): Likewise.
18089         * modules/mbspbrk-tests (Files): Likewise.
18090         * modules/mbspcasecmp-tests (Files): Likewise.
18091         * modules/mbsrchr-tests (Files): Likewise.
18092         * modules/mbsrtowcs-tests (Files): Likewise.
18093         * modules/mbsspn-tests (Files): Likewise.
18094         * modules/mbsstr-tests (Files): Likewise.
18095         * modules/memchr-tests (Files): Likewise.
18096         * modules/memchr2-tests (Files): Likewise.
18097         * modules/memcmp-tests (Files): Likewise.
18098         * modules/memmem-tests (Files): Likewise.
18099         * modules/memrchr-tests (Files): Likewise.
18100         * modules/mkdir-tests (Files): Likewise.
18101         * modules/mkfifo-tests (Files): Likewise.
18102         * modules/mkfifoat-tests (Files): Likewise.
18103         * modules/mknod-tests (Files): Likewise.
18104         * modules/nanosleep-tests (Files): Likewise.
18105         * modules/nl_langinfo-tests (Files): Likewise.
18106         * modules/obstack-printf-tests (Files): Likewise.
18107         * modules/open-tests (Files): Likewise.
18108         * modules/openat-tests (Files): Likewise.
18109         * modules/pipe-filter-gi-tests (Files): Likewise.
18110         * modules/pipe-filter-ii-tests (Files): Likewise.
18111         * modules/pipe2-tests (Files): Likewise.
18112         * modules/popen-safer-tests (Files): Likewise.
18113         * modules/popen-tests (Files): Likewise.
18114         * modules/posixtm-tests (Files): Likewise.
18115         * modules/pread-tests (Files): Likewise.
18116         * modules/printf-frexp-tests (Files): Likewise.
18117         * modules/printf-frexpl-tests (Files): Likewise.
18118         * modules/printf-posix-tests (Files): Likewise.
18119         * modules/priv-set-tests (Files): Likewise.
18120         * modules/quotearg-tests (Files): Likewise.
18121         * modules/random_r-tests (Files): Likewise.
18122         * modules/rawmemchr-tests (Files): Likewise.
18123         * modules/rbtree-list-tests (Files): Likewise.
18124         * modules/rbtree-oset-tests (Files): Likewise.
18125         * modules/rbtreehash-list-tests (Files): Likewise.
18126         * modules/readlink-tests (Files): Likewise.
18127         * modules/remove-tests (Files): Likewise.
18128         * modules/rename-tests (Files): Likewise.
18129         * modules/renameat-tests (Files): Likewise.
18130         * modules/rmdir-tests (Files): Likewise.
18131         * modules/round-tests (Files): Likewise.
18132         * modules/roundf-tests (Files): Likewise.
18133         * modules/roundl-tests (Files): Likewise.
18134         * modules/safe-alloc-tests (Files): Likewise.
18135         * modules/setenv-tests (Files): Likewise.
18136         * modules/sigaction-tests (Files): Likewise.
18137         * modules/signbit-tests (Files): Likewise.
18138         * modules/sleep-tests (Files): Likewise.
18139         * modules/snprintf-posix-tests (Files): Likewise.
18140         * modules/snprintf-tests (Files): Likewise.
18141         * modules/sprintf-posix-tests (Files): Likewise.
18142         * modules/stat-tests (Files): Likewise.
18143         * modules/stat-time-tests (Files): Likewise.
18144         * modules/strcasestr-tests (Files): Likewise.
18145         * modules/strchrnul-tests (Files): Likewise.
18146         * modules/strerror-tests (Files): Likewise.
18147         * modules/striconv-tests (Files): Likewise.
18148         * modules/striconveh-tests (Files): Likewise.
18149         * modules/striconveha-tests (Files): Likewise.
18150         * modules/strsignal-tests (Files): Likewise.
18151         * modules/strstr-tests (Files): Likewise.
18152         * modules/strtod-tests (Files): Likewise.
18153         * modules/strverscmp-tests (Files): Likewise.
18154         * modules/symlink-tests (Files): Likewise.
18155         * modules/symlinkat-tests (Files): Likewise.
18156         * modules/trunc-tests (Files): Likewise.
18157         * modules/truncf-tests (Files): Likewise.
18158         * modules/truncl-tests (Files): Likewise.
18159         * modules/uname-tests (Files): Likewise.
18160         * modules/unicase/cased-tests (Files): Likewise.
18161         * modules/unicase/ignorable-tests (Files): Likewise.
18162         * modules/unicase/locale-language-tests (Files): Likewise.
18163         * modules/unicase/tolower-tests (Files): Likewise.
18164         * modules/unicase/totitle-tests (Files): Likewise.
18165         * modules/unicase/toupper-tests (Files): Likewise.
18166         * modules/unicase/u8-casecmp-tests (Files): Likewise.
18167         * modules/unicase/u8-casecoll-tests (Files): Likewise.
18168         * modules/unicase/u8-casefold-tests (Files): Likewise.
18169         * modules/unicase/u8-is-cased-tests (Files): Likewise.
18170         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
18171         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
18172         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
18173         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
18174         * modules/unicase/u8-tolower-tests (Files): Likewise.
18175         * modules/unicase/u8-totitle-tests (Files): Likewise.
18176         * modules/unicase/u8-toupper-tests (Files): Likewise.
18177         * modules/unicase/u16-casecmp-tests (Files): Likewise.
18178         * modules/unicase/u16-casecoll-tests (Files): Likewise.
18179         * modules/unicase/u16-casefold-tests (Files): Likewise.
18180         * modules/unicase/u16-is-cased-tests (Files): Likewise.
18181         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
18182         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
18183         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
18184         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
18185         * modules/unicase/u16-tolower-tests (Files): Likewise.
18186         * modules/unicase/u16-totitle-tests (Files): Likewise.
18187         * modules/unicase/u16-toupper-tests (Files): Likewise.
18188         * modules/unicase/u32-casecmp-tests (Files): Likewise.
18189         * modules/unicase/u32-casecoll-tests (Files): Likewise.
18190         * modules/unicase/u32-casefold-tests (Files): Likewise.
18191         * modules/unicase/u32-is-cased-tests (Files): Likewise.
18192         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
18193         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
18194         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
18195         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
18196         * modules/unicase/u32-tolower-tests (Files): Likewise.
18197         * modules/unicase/u32-totitle-tests (Files): Likewise.
18198         * modules/unicase/u32-toupper-tests (Files): Likewise.
18199         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
18200         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
18201         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
18202         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
18203         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
18204         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
18205         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
18206         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
18207         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
18208         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
18209         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
18210         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
18211         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
18212         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
18213         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
18214         * modules/unictype/bidicategory-name-tests (Files): Likewise.
18215         * modules/unictype/bidicategory-of-tests (Files): Likewise.
18216         * modules/unictype/bidicategory-test-tests (Files): Likewise.
18217         * modules/unictype/block-list-tests (Files): Likewise.
18218         * modules/unictype/block-of-tests (Files): Likewise.
18219         * modules/unictype/block-test-tests (Files): Likewise.
18220         * modules/unictype/category-C-tests (Files): Likewise.
18221         * modules/unictype/category-Cc-tests (Files): Likewise.
18222         * modules/unictype/category-Cf-tests (Files): Likewise.
18223         * modules/unictype/category-Cn-tests (Files): Likewise.
18224         * modules/unictype/category-Co-tests (Files): Likewise.
18225         * modules/unictype/category-Cs-tests (Files): Likewise.
18226         * modules/unictype/category-L-tests (Files): Likewise.
18227         * modules/unictype/category-Ll-tests (Files): Likewise.
18228         * modules/unictype/category-Lm-tests (Files): Likewise.
18229         * modules/unictype/category-Lo-tests (Files): Likewise.
18230         * modules/unictype/category-Lt-tests (Files): Likewise.
18231         * modules/unictype/category-Lu-tests (Files): Likewise.
18232         * modules/unictype/category-M-tests (Files): Likewise.
18233         * modules/unictype/category-Mc-tests (Files): Likewise.
18234         * modules/unictype/category-Me-tests (Files): Likewise.
18235         * modules/unictype/category-Mn-tests (Files): Likewise.
18236         * modules/unictype/category-N-tests (Files): Likewise.
18237         * modules/unictype/category-Nd-tests (Files): Likewise.
18238         * modules/unictype/category-Nl-tests (Files): Likewise.
18239         * modules/unictype/category-No-tests (Files): Likewise.
18240         * modules/unictype/category-P-tests (Files): Likewise.
18241         * modules/unictype/category-Pc-tests (Files): Likewise.
18242         * modules/unictype/category-Pd-tests (Files): Likewise.
18243         * modules/unictype/category-Pe-tests (Files): Likewise.
18244         * modules/unictype/category-Pf-tests (Files): Likewise.
18245         * modules/unictype/category-Pi-tests (Files): Likewise.
18246         * modules/unictype/category-Po-tests (Files): Likewise.
18247         * modules/unictype/category-Ps-tests (Files): Likewise.
18248         * modules/unictype/category-S-tests (Files): Likewise.
18249         * modules/unictype/category-Sc-tests (Files): Likewise.
18250         * modules/unictype/category-Sk-tests (Files): Likewise.
18251         * modules/unictype/category-Sm-tests (Files): Likewise.
18252         * modules/unictype/category-So-tests (Files): Likewise.
18253         * modules/unictype/category-Z-tests (Files): Likewise.
18254         * modules/unictype/category-Zl-tests (Files): Likewise.
18255         * modules/unictype/category-Zp-tests (Files): Likewise.
18256         * modules/unictype/category-Zs-tests (Files): Likewise.
18257         * modules/unictype/category-and-not-tests (Files): Likewise.
18258         * modules/unictype/category-and-tests (Files): Likewise.
18259         * modules/unictype/category-byname-tests (Files): Likewise.
18260         * modules/unictype/category-name-tests (Files): Likewise.
18261         * modules/unictype/category-none-tests (Files): Likewise.
18262         * modules/unictype/category-of-tests (Files): Likewise.
18263         * modules/unictype/category-or-tests (Files): Likewise.
18264         * modules/unictype/category-test-withtable-tests (Files): Likewise.
18265         * modules/unictype/combining-class-tests (Files): Likewise.
18266         * modules/unictype/ctype-alnum-tests (Files): Likewise.
18267         * modules/unictype/ctype-alpha-tests (Files): Likewise.
18268         * modules/unictype/ctype-blank-tests (Files): Likewise.
18269         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
18270         * modules/unictype/ctype-digit-tests (Files): Likewise.
18271         * modules/unictype/ctype-graph-tests (Files): Likewise.
18272         * modules/unictype/ctype-lower-tests (Files): Likewise.
18273         * modules/unictype/ctype-print-tests (Files): Likewise.
18274         * modules/unictype/ctype-punct-tests (Files): Likewise.
18275         * modules/unictype/ctype-space-tests (Files): Likewise.
18276         * modules/unictype/ctype-upper-tests (Files): Likewise.
18277         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
18278         * modules/unictype/decimal-digit-tests (Files): Likewise.
18279         * modules/unictype/digit-tests (Files): Likewise.
18280         * modules/unictype/mirror-tests (Files): Likewise.
18281         * modules/unictype/numeric-tests (Files): Likewise.
18282         * modules/unictype/property-alphabetic-tests (Files): Likewise.
18283         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
18284         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
18285         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
18286         Likewise.
18287         * modules/unictype/property-bidi-block-separator-tests (Files):
18288         Likewise.
18289         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
18290         Likewise.
18291         * modules/unictype/property-bidi-common-separator-tests (Files):
18292         Likewise.
18293         * modules/unictype/property-bidi-control-tests (Files): Likewise.
18294         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
18295         Likewise.
18296         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
18297         Likewise.
18298         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
18299         Likewise.
18300         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
18301         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
18302         Likewise.
18303         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
18304         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
18305         Likewise.
18306         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
18307         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
18308         * modules/unictype/property-bidi-segment-separator-tests (Files):
18309         Likewise.
18310         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
18311         * modules/unictype/property-byname-tests (Files): Likewise.
18312         * modules/unictype/property-combining-tests (Files): Likewise.
18313         * modules/unictype/property-composite-tests (Files): Likewise.
18314         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
18315         * modules/unictype/property-dash-tests (Files): Likewise.
18316         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
18317         * modules/unictype/property-default-ignorable-code-point-tests (Files):
18318         Likewise.
18319         * modules/unictype/property-deprecated-tests (Files): Likewise.
18320         * modules/unictype/property-diacritic-tests (Files): Likewise.
18321         * modules/unictype/property-extender-tests (Files): Likewise.
18322         * modules/unictype/property-format-control-tests (Files): Likewise.
18323         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
18324         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
18325         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
18326         * modules/unictype/property-hex-digit-tests (Files): Likewise.
18327         * modules/unictype/property-hyphen-tests (Files): Likewise.
18328         * modules/unictype/property-id-continue-tests (Files): Likewise.
18329         * modules/unictype/property-id-start-tests (Files): Likewise.
18330         * modules/unictype/property-ideographic-tests (Files): Likewise.
18331         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
18332         * modules/unictype/property-ids-trinary-operator-tests (Files):
18333         Likewise.
18334         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
18335         * modules/unictype/property-iso-control-tests (Files): Likewise.
18336         * modules/unictype/property-join-control-tests (Files): Likewise.
18337         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
18338         * modules/unictype/property-line-separator-tests (Files): Likewise.
18339         * modules/unictype/property-logical-order-exception-tests (Files):
18340         Likewise.
18341         * modules/unictype/property-lowercase-tests (Files): Likewise.
18342         * modules/unictype/property-math-tests (Files): Likewise.
18343         * modules/unictype/property-non-break-tests (Files): Likewise.
18344         * modules/unictype/property-not-a-character-tests (Files): Likewise.
18345         * modules/unictype/property-numeric-tests (Files): Likewise.
18346         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
18347         * modules/unictype/property-other-default-ignorable-code-point-tests
18348         (Files): Likewise.
18349         * modules/unictype/property-other-grapheme-extend-tests (Files):
18350         Likewise.
18351         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
18352         * modules/unictype/property-other-id-start-tests (Files): Likewise.
18353         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
18354         * modules/unictype/property-other-math-tests (Files): Likewise.
18355         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
18356         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
18357         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
18358         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
18359         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
18360         * modules/unictype/property-private-use-tests (Files): Likewise.
18361         * modules/unictype/property-punctuation-tests (Files): Likewise.
18362         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
18363         * modules/unictype/property-radical-tests (Files): Likewise.
18364         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
18365         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
18366         * modules/unictype/property-space-tests (Files): Likewise.
18367         * modules/unictype/property-terminal-punctuation-tests (Files):
18368         Likewise.
18369         * modules/unictype/property-test-tests (Files): Likewise.
18370         * modules/unictype/property-titlecase-tests (Files): Likewise.
18371         * modules/unictype/property-unassigned-code-value-tests (Files):
18372         Likewise.
18373         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
18374         * modules/unictype/property-uppercase-tests (Files): Likewise.
18375         * modules/unictype/property-variation-selector-tests (Files): Likewise.
18376         * modules/unictype/property-white-space-tests (Files): Likewise.
18377         * modules/unictype/property-xid-continue-tests (Files): Likewise.
18378         * modules/unictype/property-xid-start-tests (Files): Likewise.
18379         * modules/unictype/property-zero-width-tests (Files): Likewise.
18380         * modules/unictype/scripts-tests (Files): Likewise.
18381         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
18382         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
18383         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
18384         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
18385         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
18386         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
18387         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
18388         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
18389         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
18390         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
18391         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
18392         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
18393         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
18394         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
18395         * modules/uninorm/composition-tests (Files): Likewise.
18396         * modules/uninorm/decomposing-form-tests (Files): Likewise.
18397         * modules/uninorm/decomposition-tests (Files): Likewise.
18398         * modules/uninorm/filter-tests (Files): Likewise.
18399         * modules/uninorm/nfc-tests (Files): Likewise.
18400         * modules/uninorm/nfd-tests (Files): Likewise.
18401         * modules/uninorm/nfkc-tests (Files): Likewise.
18402         * modules/uninorm/nfkd-tests (Files): Likewise.
18403         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
18404         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
18405         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
18406         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
18407         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
18408         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
18409         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
18410         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18411         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
18412         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
18413         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
18414         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
18415         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18416         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
18417         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
18418         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
18419         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
18420         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18421         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
18422         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
18423         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
18424         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
18425         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18426         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
18427         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
18428         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
18429         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
18430         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
18431         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
18432         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
18433         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
18434         * modules/uniwidth/u8-width-tests (Files): Likewise.
18435         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
18436         * modules/uniwidth/u16-width-tests (Files): Likewise.
18437         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
18438         * modules/uniwidth/u32-width-tests (Files): Likewise.
18439         * modules/uniwidth/width-tests (Files): Likewise.
18440         * modules/unlink-tests (Files): Likewise.
18441         * modules/unsetenv-tests (Files): Likewise.
18442         * modules/usleep-tests (Files): Likewise.
18443         * modules/utimens-tests (Files): Likewise.
18444         * modules/utimensat-tests (Files): Likewise.
18445         * modules/vasnprintf-posix-tests (Files): Likewise.
18446         * modules/vasnprintf-tests (Files): Likewise.
18447         * modules/vasprintf-posix-tests (Files): Likewise.
18448         * modules/vasprintf-tests (Files): Likewise.
18449         * modules/vdprintf-posix-tests (Files): Likewise.
18450         * modules/vfprintf-posix-tests (Files): Likewise.
18451         * modules/vprintf-posix-tests (Files): Likewise.
18452         * modules/vsnprintf-posix-tests (Files): Likewise.
18453         * modules/vsnprintf-tests (Files): Likewise.
18454         * modules/vsprintf-posix-tests (Files): Likewise.
18455         * modules/wcrtomb-tests (Files): Likewise.
18456         * modules/wcsnrtombs-tests (Files): Likewise.
18457         * modules/wcsrtombs-tests (Files): Likewise.
18458         * modules/wctype-tests (Files): Likewise.
18459         * modules/wcwidth-tests (Files): Likewise.
18460         * modules/xmemdup0-tests (Files): Likewise.
18461         * modules/xprintf-posix-tests (Files): Likewise.
18462         * modules/xvasprintf-tests (Files): Likewise.
18463
18464 2009-12-24  Eric Blake  <ebb9@byu.net>
18465
18466         test-nanosleep: fix typo
18467         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
18468         patch.
18469         Reported by Bruno Haible.
18470
18471 2009-12-24  Bruno Haible  <bruno@clisp.org>
18472
18473         Reduce namespace pollution on glibc systems.
18474         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
18475         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
18476         systems.
18477         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
18478         <getopt.h> on glibc systems.
18479         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
18480         systems.
18481         * lib/fcntl.c: Include <unistd.h> here instead.
18482
18483 2009-12-24  Bruno Haible  <bruno@clisp.org>
18484
18485         * lib/stdlib.in.h (includes): Fix typo in today's commit.
18486
18487 2009-12-24  Eric Blake  <ebb9@byu.net>
18488
18489         tests: add signature checks
18490         * tests/signature.h (SIGNATURE_CHECK): New file.
18491         * modules/atexit-tests (Files): Use it.
18492         * modules/btowc-tests (Files): Likewise.
18493         * modules/canonicalize-lgpl-tests (Files): Likewise.
18494         * modules/ceilf-tests (Files): Likewise.
18495         * modules/ceill-tests (Files): Likewise.
18496         * modules/chown-tests (Files): Likewise.
18497         * modules/dprintf-posix-tests (Files): Likewise.
18498         * modules/dup2-tests (Files): Likewise.
18499         * modules/dup3-tests (Files): Likewise.
18500         * modules/duplocale-tests (Files): Likewise.
18501         * modules/fchdir-tests (Files): Likewise.
18502         * modules/fcntl-tests (Files): Likewise.
18503         * modules/fdopendir-tests (Files): Likewise.
18504         * modules/fflush-tests (Files): Likewise.
18505         * modules/flock-tests (Files): Likewise.
18506         * modules/floorf-tests (Files): Likewise.
18507         * modules/floorl-tests (Files): Likewise.
18508         * modules/fnmatch-tests (Files): Likewise.
18509         * modules/fopen-tests (Files): Likewise.
18510         * modules/fprintf-posix-tests (Files): Likewise.
18511         * modules/freopen-tests (Files): Likewise.
18512         * modules/frexp-nolibm-tests (Files): Likewise.
18513         * modules/frexp-tests (Files): Likewise.
18514         * modules/frexpl-nolibm-tests (Files): Likewise.
18515         * modules/frexpl-tests (Files): Likewise.
18516         * modules/fseek-tests (Files): Likewise.
18517         * modules/fseeko-tests (Files): Likewise.
18518         * modules/fsync-tests (Files): Likewise.
18519         * modules/ftell-tests (Files): Likewise.
18520         * modules/ftello-tests (Files): Likewise.
18521         * modules/futimens-tests (Files): Likewise.
18522         * modules/getaddrinfo-tests (Files): Likewise.
18523         * modules/getcwd-tests (Files): Likewise.
18524         * modules/getdelim-tests (Files): Likewise.
18525         * modules/getdtablesize-tests (Files): Likewise.
18526         * modules/getgroups-tests (Files): Likewise.
18527         * modules/gethostname-tests (Files): Likewise.
18528         * modules/getline-tests (Files): Likewise.
18529         * modules/getopt-posix-tests (Files): Likewise.
18530         * modules/gettimeofday-tests (Files): Likewise.
18531         * modules/glob-tests (Files): Likewise.
18532         * modules/iconv-tests (Files): Likewise.
18533         * modules/inet_ntop-tests (Files): Likewise.
18534         * modules/inet_pton-tests (Files): Likewise.
18535         * modules/isblank-tests (Files): Likewise.
18536         * modules/lchown-tests (Files): Likewise.
18537         * modules/ldexpl-tests (Files): Likewise.
18538         * modules/link-tests (Files): Likewise.
18539         * modules/linkat-tests (Files): Likewise.
18540         * modules/lseek-tests (Files): Likewise.
18541         * modules/lstat-tests (Files): Likewise.
18542         * modules/mbrtowc-tests (Files): Likewise.
18543         * modules/mbsinit-tests (Files): Likewise.
18544         * modules/mbsnrtowcs-tests (Files): Likewise.
18545         * modules/mbsrtowcs-tests (Files): Likewise.
18546         * modules/memchr-tests (Files): Likewise.
18547         * modules/memcmp-tests (Files): Likewise.
18548         * modules/memmem-tests (Files): Likewise.
18549         * modules/memrchr-tests (Files): Likewise.
18550         * modules/mkdir-tests (Files): Likewise.
18551         * modules/mkfifo-tests (Files): Likewise.
18552         * modules/mkfifoat-tests (Files): Likewise.
18553         * modules/mknod-tests (Files): Likewise.
18554         * modules/nanosleep-tests (Files): Likewise.
18555         * modules/nl_langinfo-tests (Files): Likewise.
18556         * modules/obstack-printf-tests (Files): Likewise.
18557         * modules/open-tests (Files): Likewise.
18558         * modules/openat-tests (Files): Likewise.
18559         * modules/perror-tests (Files): Likewise.
18560         * modules/pipe2-tests (Files): Likewise.
18561         * modules/poll-tests (Files): Likewise.
18562         * modules/popen-tests (Files): Likewise.
18563         * modules/posix_spawn-tests (Files): Likewise.
18564         * modules/posix_spawnp-tests (Files): Likewise.
18565         * modules/pread-tests (Files): Likewise.
18566         * modules/printf-posix-tests (Files): Likewise.
18567         * modules/pty-tests (Files): Likewise.
18568         * modules/random_r-tests (Files): Likewise.
18569         * modules/rawmemchr-tests (Files): Likewise.
18570         * modules/readlink-tests (Files): Likewise.
18571         * modules/remove-tests (Files): Likewise.
18572         * modules/rename-tests (Files): Likewise.
18573         * modules/renameat-tests (Files): Likewise.
18574         * modules/rmdir-tests (Files): Likewise.
18575         * modules/round-tests (Files): Likewise.
18576         * modules/roundf-tests (Files): Likewise.
18577         * modules/roundl-tests (Files): Likewise.
18578         * modules/select-tests (Files): Likewise.
18579         * modules/setenv-tests (Files): Likewise.
18580         * modules/sigaction-tests (Files): Likewise.
18581         * modules/sleep-tests (Files): Likewise.
18582         * modules/snprintf-posix-tests (Files): Likewise.
18583         * modules/snprintf-tests (Files): Likewise.
18584         * modules/sprintf-posix-tests (Files): Likewise.
18585         * modules/stat-tests (Files): Likewise.
18586         * modules/strcasestr-tests (Files): Likewise.
18587         * modules/strchrnul-tests (Files): Likewise.
18588         * modules/strerror-tests (Files): Likewise.
18589         * modules/strsignal-tests (Files): Likewise.
18590         * modules/strstr-tests (Files): Likewise.
18591         * modules/strtod-tests (Files): Likewise.
18592         * modules/strverscmp-tests (Files): Likewise.
18593         * modules/symlink-tests (Files): Likewise.
18594         * modules/symlinkat-tests (Files): Likewise.
18595         * modules/times-tests (Files): Likewise.
18596         * modules/trunc-tests (Files): Likewise.
18597         * modules/truncf-tests (Files): Likewise.
18598         * modules/truncl-tests (Files): Likewise.
18599         * modules/tsearch-tests (Files): Likewise.
18600         * modules/uname-tests (Files): Likewise.
18601         * modules/unlink-tests (Files): Likewise.
18602         * modules/unsetenv-tests (Files): Likewise.
18603         * modules/usleep-tests (Files): Likewise.
18604         * modules/utimensat-tests (Files): Likewise.
18605         * modules/vasprintf-tests (Files): Likewise.
18606         * modules/vdprintf-posix-tests (Files): Likewise.
18607         * modules/vfprintf-posix-tests (Files): Likewise.
18608         * modules/vprintf-posix-tests (Files): Likewise.
18609         * modules/vsnprintf-posix-tests (Files): Likewise.
18610         * modules/vsnprintf-tests (Files): Likewise.
18611         * modules/vsprintf-posix-tests (Files): Likewise.
18612         * modules/wcrtomb-tests (Files): Likewise.
18613         * modules/wcsnrtombs-tests (Files): Likewise.
18614         * modules/wcsrtombs-tests (Files): Likewise.
18615         * modules/wcwidth-tests (Files): Likewise.
18616         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
18617         * tests/test-isinf.c (isinf): Likewise.
18618         * tests/test-isnan.c (isnan): Likewise.
18619         * tests/test-signbit.c (signbit): Likewise.
18620         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
18621         declaration, either as macro or with correct signature.
18622         (select): Ensure function under test is declared with correct
18623         signature in correct header.
18624         * tests/test-atexit.c (atexit): Likewise.
18625         * tests/test-btowc.c (btowc): Likewise.
18626         * tests/test-canonicalize-lgpl.c (realpath)
18627         (canonicalize_file_name): Likewise.
18628         * tests/test-ceilf1.c (ceilf): Likewise.
18629         * tests/test-ceill.c (ceill): Likewise.
18630         * tests/test-chown.c (chown): Likewise.
18631         * tests/test-dprintf-posix.c (dprintf): Likewise.
18632         * tests/test-dup2.c (dup2): Likewise.
18633         * tests/test-dup3.c (dup3): Likewise.
18634         * tests/test-duplocale.c (duplocale): Likewise.
18635         * tests/test-fchdir.c (fchdir): Likewise.
18636         * tests/test-fchownat.c (fchownat): Likewise.
18637         * tests/test-fcntl.c (fcntl): Likewise.
18638         * tests/test-fdopendir.c (fdopendir): Likewise.
18639         * tests/test-fflush.c (fflush): Likewise.
18640         * tests/test-flock.c (flock): Likewise.
18641         * tests/test-floorf1.c (floorf): Likewise.
18642         * tests/test-floorl.c (floorl): Likewise.
18643         * tests/test-fnmatch.c (fnmatch): Likewise.
18644         * tests/test-fopen.c (fopen): Likewise.
18645         * tests/test-fprintf-posix.c (fprintf): Likewise.
18646         * tests/test-freopen.c (freopen): Likewise.
18647         * tests/test-frexp.c (frexp): Likewise.
18648         * tests/test-frexpl.c (frexpl): Likewise.
18649         * tests/test-fseek.c (fseek): Likewise.
18650         * tests/test-fseeko.c (fseeko): Likewise.
18651         * tests/test-fstatat.c (fstatat): Likewise.
18652         * tests/test-fsync.c (fsync): Likewise.
18653         * tests/test-ftell.c (ftell): Likewise.
18654         * tests/test-ftello.c (ftello): Likewise.
18655         * tests/test-futimens.c (futimens): Likewise.
18656         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
18657         (gai_strerror): Likewise.
18658         * tests/test-getcwd.c (getcwd): Likewise.
18659         * tests/test-getdelim.c (getdelim): Likewise.
18660         * tests/test-getdtablesize.c (getdtablesize): Likewise.
18661         * tests/test-getgroups.c (getgroups): Likewise.
18662         * tests/test-gethostname.c (gethostname): Likewise.
18663         * tests/test-getline.c (getline): Likewise.
18664         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
18665         Likewise.
18666         * tests/test-gettimeofday.c (gettimeofday): Likewise.
18667         * tests/test-glob.c (glob, globfree): Likewise.
18668         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
18669         * tests/test-inet_ntop.c (inet_ntop): Likewise.
18670         * tests/test-inet_pton.c (inet_pton): Likewise.
18671         * tests/test-isblank.c (isblank): Likewise.
18672         * tests/test-lchown.c (lchown): Likewise.
18673         * tests/test-ldexpl.c (ldexpl): Likewise.
18674         * tests/test-link.c (link): Likewise.
18675         * tests/test-linkat.c (linkat): Likewise.
18676         * tests/test-lseek.c (lseek): Likewise.
18677         * tests/test-lstat.c (lstat): Likewise.
18678         * tests/test-mbrtowc.c (mbrtowc): Likewise.
18679         * tests/test-mbsinit.c (mbsinit): Likewise.
18680         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
18681         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
18682         * tests/test-memchr.c (memchr): Likewise.
18683         * tests/test-memcmp.c (memcmp): Likewise.
18684         * tests/test-memmem.c (memmem): Likewise.
18685         * tests/test-memrchr.c (memrchr): Likewise.
18686         * tests/test-mkdir.c (mkdir): Likewise.
18687         * tests/test-mkdirat.c (mkdirat): Likewise.
18688         * tests/test-mkfifo.c (mkfifo): Likewise.
18689         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
18690         * tests/test-mknod.c (mknod): Likewise.
18691         * tests/test-nanosleep.c (nanosleep): Likewise.
18692         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
18693         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
18694         Likewise.
18695         * tests/test-open.c (open): Likewise.
18696         * tests/test-openat.c (openat): Likewise.
18697         * tests/test-perror.c (perror): Likewise.
18698         * tests/test-pipe2.c (pipe2): Likewise.
18699         * tests/test-poll.c (poll): Likewise.
18700         * tests/test-popen.c (popen, pclose): Likewise.
18701         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
18702         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
18703         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
18704         (posix_spawn_file_actions_destroy)
18705         (posix_spawn_file_actions_addclose)
18706         (posix_spawn_file_actions_addopen)
18707         (posix_spawn_file_actions_adddup2): Likewise.
18708         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
18709         * tests/test-pread.c (pread): Likewise.
18710         * tests/test-printf-posix.c (printf): Likewise.
18711         * tests/test-pty.c (openpty, forkpty): Likewise.
18712         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
18713         (random_r): Likewise.
18714         * tests/test-rawmemchr.c (rawmemchr): Likewise.
18715         * tests/test-readlink.c (readlink): Likewise.
18716         * tests/test-remove.c (remove): Likewise.
18717         * tests/test-rename.c (rename): Likewise.
18718         * tests/test-renameat.c (renameat): Likewise.
18719         * tests/test-rmdir.c (rmdir): Likewise.
18720         * tests/test-round1.c (round): Likewise.
18721         * tests/test-roundf1.c (roundf): Likewise.
18722         * tests/test-roundl.c (roundl): Likewise.
18723         * tests/test-setenv.c (setenv): Likewise.
18724         * tests/test-sigaction.c (sigaction): Likewise.
18725         * tests/test-sleep.c (sleep): Likewise.
18726         * tests/test-snprintf.c (snprintf): Likewise.
18727         * tests/test-sprintf-posix.c (sprintf): Likewise.
18728         * tests/test-stat.c (stat): Likewise.
18729         * tests/test-stpncpy.c (stpncpy): Likewise.
18730         * tests/test-strcasestr.c (strcasestr): Likewise.
18731         * tests/test-strchrnul.c (strchrnul): Likewise.
18732         * tests/test-strerror.c (strerror): Likewise.
18733         * tests/test-strsignal.c (strsignal): Likewise.
18734         * tests/test-strstr.c (strstr): Likewise.
18735         * tests/test-strtod.c (strtod): Likewise.
18736         * tests/test-strverscmp.c (strverscmp): Likewise.
18737         * tests/test-symlink.c (symlink): Likewise.
18738         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
18739         * tests/test-times.c (times): Likewise.
18740         * tests/test-trunc1.c (trunc): Likewise.
18741         * tests/test-truncf1.c (truncf): Likewise.
18742         * tests/test-truncl.c (truncl): Likewise.
18743         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
18744         Likewise.
18745         * tests/test-uname.c (uname): Likewise.
18746         * tests/test-unlink.c (unlink): Likewise.
18747         * tests/test-unlinkat.c (unlinkat): Likewise.
18748         * tests/test-unsetenv.c (unsetenv): Likewise.
18749         * tests/test-usleep.c (usleep): Likewise.
18750         * tests/test-utimensat.c (utimensat): Likewise.
18751         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
18752         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
18753         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
18754         * tests/test-vprintf-posix.c (vprintf): Likewise.
18755         * tests/test-vsnprintf.c (vsnprintf): Likewise.
18756         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
18757         * tests/test-wcrtomb.c (wcrtomb): Likewise.
18758         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
18759         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
18760         * tests/test-wcwidth.c (wcwidth): Likewise.
18761
18762         build: pull in conditional headers during GNULIB_POSIXCHECK
18763         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
18764         definitions from any conditionally-included headers.
18765         * lib/stdlib.in.h (includes): Likewise.
18766         * lib/unistd.in.h (includes): Likewise.
18767
18768 2009-12-24  Bruno Haible  <bruno@clisp.org>
18769
18770         * tests/test-argv-iter.c: Include header file being tested immediately
18771         after config.h.
18772         * tests/test-base64.c: Likewise.
18773         * tests/test-flock.c: Likewise.
18774         * tests/test-fsync.c: Likewise.
18775         * tests/test-getdate.c: Likewise.
18776         * tests/test-getndelim2.c: Likewise.
18777         * tests/test-isfinite.c: Likewise.
18778         * tests/test-isinf.c: Likewise.
18779         * tests/test-strerror.c: Likewise.
18780         * tests/test-strsignal.c: Likewise.
18781
18782 2009-12-23  Eric Blake  <ebb9@byu.net>
18783
18784         unistd: work around cygwin bug
18785         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
18786         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
18787         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18788
18789 2009-12-23  Bruno Haible  <bruno@clisp.org>
18790
18791         localename: More tests.
18792         * tests/test-localename.c (SIZEOF): New macro.
18793         (categories): New variable.
18794         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
18795         test_locale_name_default): Add test w.r.t. thread locale.
18796         (test_locale_name_thread): New function.
18797         (main): Invoke it.
18798
18799         localename: Make aware of thread locale.
18800         * lib/localename.h (gl_locale_name_thread): New declaration.
18801         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
18802         behaviour with respect to thread locale.
18803         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
18804         <langinfo.h>, glthread/lock.h.
18805         (SIZE_BITS): New macro.
18806         (string_hash): New function.
18807         (struct hash_node): New type.
18808         (HASH_TABLE_SIZE): New macro.
18809         (struniq_hash_table, struniq_lock): New variables.
18810         (struniq): New function.
18811         (gl_locale_name_thread): New function.
18812         (gl_locale_name): Invoke it.
18813         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
18814         * modules/localename (Depends-on): Add lock.
18815         Reported by Mike Gran <spk121@yahoo.com>.
18816
18817 2009-12-23  Eric Blake  <ebb9@byu.net>
18818
18819         va-args: new module
18820         * modules/va-args: New file.
18821         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
18822         * MODULES.html.sh (Core language properties): Mention it.
18823
18824         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
18825         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
18826         named alias for __attribute__((__unused__)).
18827         * lib/chown.c: Update client.
18828         * lib/fchmodat.c: Likewise.
18829         * lib/fts.c: Likewise.
18830         * lib/getdate.y: Likewise.
18831         * lib/getgroups.c: Likewise.
18832         * lib/getopt.c: Likewise.
18833         * lib/getugroups.c: Likewise.
18834         * lib/mkdir.c: Likewise.
18835         * lib/mkfifo.c: Likewise.
18836         * lib/mkfifoat.c: Likewise.
18837         * lib/mknod.c: Likewise.
18838         * lib/mknodat.c: Likewise.
18839         * lib/readlink.c: Likewise.
18840         * lib/se-context.in.h: Likewise.
18841         * lib/se-selinux.in.h: Likewise.
18842         * lib/sockets.c: Likewise.
18843         * lib/symlink.c: Likewise.
18844         * lib/symlinkat.c: Likewise.
18845         * lib/unicodeio.c: Likewise.
18846         * lib/unistr.h: Likewise.
18847         * tests/test-areadlink.c: Likewise.
18848         * tests/test-areadlinkat.c: Likewise.
18849         * tests/test-filenamecat.c: Likewise.
18850         * tests/test-fseeko.c: Likewise.
18851         * tests/test-ftello.c: Likewise.
18852         * tests/test-getdate.c: Likewise.
18853         * tests/test-getgroups.c: Likewise.
18854         * tests/test-gethostname.c: Likewise.
18855         * tests/test-quotearg.c: Likewise.
18856         * tests/test-version-etc.c: Likewise.
18857         * tests/test-xalloc-die.c: Likewise.
18858         * tests/test-xfprintf-posix.c: Likewise.
18859         * tests/test-xprintf-posix.c: Likewise.
18860         * tests/test-xvasprintf.c: Likewise.
18861
18862         tests: avoid compiler warnings
18863         * tests/test-fcntl.c (main): Delete unused parameters.
18864         * tests/test-freopen-safer.c (main): Likewise.
18865         * tests/test-xalloc-die.c (main): Mark unused parameters.
18866         * tests/test-fseeko.c (main): Likewise.
18867         * tests/test-ftello.c (main): Likewise.
18868         * tests/test-nanosleep.c (main): Avoid declaration warning.
18869         * tests/test-sleep.c (main): Likewise.
18870         * tests/test-unsetenv.c (main): Silence warning about string
18871         literal.
18872         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18873
18874 2009-12-23  Bruno Haible  <bruno@clisp.org>
18875
18876         * tests/test-localename.c (test_locale_name): New function, extracted
18877         from main. Also test mixed situations.
18878         (test_locale_name_posix, test_locale_name_environ,
18879         test_locale_name_default): New functions.
18880         (main): Invoke them all.
18881         * modules/localename-tests (configure.ac): Test for newlocale.
18882
18883 2009-12-23  Bruno Haible  <bruno@clisp.org>
18884
18885         unistd: Ensure getcwd gets declared before being overridden.
18886         * lib/unistd.in.h: Conditionally include <io.h>.
18887
18888 2009-12-22  Bruno Haible  <bruno@clisp.org>
18889
18890         wchar: Diagnose broken combination of glibc and gcc versions and flags.
18891         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
18892         (gl_WCHAR_H): Invoke it.
18893         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
18894         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
18895         Reported by Karl Berry <karl@freefriends.org>.
18896
18897 2009-12-22  Eric Blake  <ebb9@byu.net>
18898
18899         math, unistd: avoid redundant includes
18900         * lib/math.in.h (isnan): No need to re-include <math.h>.
18901         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
18902
18903         getsubopt: work around cygwin bug
18904         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
18905         avoid conflicting with system getsubopt.
18906         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
18907         bug.
18908
18909         getopt: synchronize from glibc
18910         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
18911         parameter order.  Adjust all callers.
18912         (_getopt_internal_r, main): Adjust quoting in error messages.
18913         Drop considerations for outdated POSIX 1003.2 error message.
18914         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
18915         callers.
18916         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
18917
18918         test-getopt: test stderr behavior
18919         * modules/getopt-posix-tests (Depends-on): Add dup2.
18920         * tests/test-getopt.c (ASSERT): Avoid stderr.
18921         (main): Move stderr to a temporary file.
18922         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
18923         Instead, add parameter to inform caller if output occurred.
18924         (test_getopt): Adjust all existing tests to expect silence, and
18925         add new tests of leading ":".
18926         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18927         glibc shortcomings with leading "-:" or "+:" in optstring.
18928         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18929         Likewise.
18930         * doc/posix-functions/getopt.texi (getopt): Likewise.
18931
18932         test-getopt: enhance test
18933         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
18934         supports optind=0.
18935         * tests/test-getopt.c (OPTIND_MIN): Move...
18936         * tests/test-getopt.h (OPTIND_MIN): ...here.
18937         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
18938         Require that optind=0 works, since modern BSD supports it in
18939         addition to optreset, and since coreutils expects it.
18940         (test_getopt_long_only): New test.
18941         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18942         glibc shortcomings with 'W;', and enforcement of optind=0.
18943         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18944         Likewise.
18945
18946 2009-12-21  Bruno Haible  <bruno@clisp.org>
18947
18948         localename: Improvements for MacOS X and Cygwin.
18949         * lib/localename.h (gl_locale_name_environ): New declaration.
18950         * lib/localename.c (gl_locale_name_environ): New function, extracted from
18951         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
18952         (gl_locale_name_posix): Invoke it.
18953         (gl_locale_name_default): Add comments. Use Windows native API also on
18954         Cygwin.
18955
18956 2009-12-21  Bruno Haible  <bruno@clisp.org>
18957
18958         Update list of Win32 locale ids.
18959         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
18960         (LANG_SAMI): Renamed from LANG_SAAMI.
18961         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
18962         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
18963         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
18964         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
18965         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
18966         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
18967         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
18968         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
18969         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
18970         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
18971         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
18972         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
18973         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
18974         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
18975         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
18976         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
18977         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
18978         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
18979         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
18980         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
18981         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
18982         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
18983         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
18984         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
18985         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
18986         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
18987         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
18988         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
18989         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
18990         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
18991         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
18992         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
18993         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
18994         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
18995         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
18996         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
18997         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
18998         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
18999         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
19000         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
19001         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
19002         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
19003         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
19004         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
19005         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
19006         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
19007         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
19008         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
19009         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
19010         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
19011         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
19012         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
19013         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
19014         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
19015         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
19016         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
19017         Add more languages and countries for Sami, Sorbian. Add more countries
19018         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
19019         for Pashto. Change country for Syriac, Tswana.
19020
19021 2009-12-21  Eric Blake  <ebb9@byu.net>
19022
19023         test-utimens: avoid spurious failure
19024         * tests/test-chown.h (nap): Factor...
19025         * tests/nap.h: ...into new file.
19026         * tests/test-lchown.h (nap): Avoid duplication.
19027         * tests/test-utimens-common.h (nap): Use shared implementation,
19028         necessary on file systems with 1-second resolution.
19029         * modules/chown-tests (Files): Include new file.
19030         * modules/fdutimensat-tests (Files): Likewise.
19031         * modules/futimens-tests (Files): Likewise.
19032         * modules/lchown-tests (Files): Likewise.
19033         * modules/openat-tests (Files): Likewise.
19034         * modules/utimens-tests (Files): Likewise.
19035         * modules/utimensat-tests (Files): Likewise.
19036
19037 2009-12-19  Eric Blake  <ebb9@byu.net>
19038
19039         futimens, utimensat: work around Linux bug
19040         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
19041         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19042         * lib/utimensat.c (rpl_utimensat): Work around it.
19043         * lib/futimens.c (rpl_futimens): Adjust comment.
19044
19045         utimens: work around Linux ctime bug
19046         * lib/utimens.c (detect_ctime_bug): New helper function.
19047         (update_timespec): Differentiate between workaround needed for
19048         this bug vs. what is needed for systems that lack utimensat.
19049         (fdutimens, lutimens): Work around bug.
19050
19051         utimens: check for ctime update
19052         * tests/test-utimens-common.h (check_ctime): Define.
19053         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
19054         * tests/test-futimens.h (test_futimens): Likewise.
19055         * tests/test-lutimens.h (test_lutimens): Likewise.
19056         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19057         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19058
19059 2009-12-19  Bruno Haible  <bruno@clisp.org>
19060
19061         dprintf-posix: Check against memory leak fixed on 2009-12-15.
19062         * tests/test-dprintf-posix2.sh: New file.
19063         * tests/test-dprintf-posix2.c: New file.
19064         * modules/dprintf-posix-tests (Files): Add them.
19065         (configure.ac): Check for getrlimit and setrlimit.
19066         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19067
19068 2009-12-19  Bruno Haible  <bruno@clisp.org>
19069
19070         fprintf-posix: Check against memory leak fixed on 2009-12-15.
19071         * tests/test-fprintf-posix3.sh: New file.
19072         * tests/test-fprintf-posix3.c: New file.
19073         * modules/fprintf-posix-tests (Files): Add them.
19074         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19075
19076 2009-12-19  Eric Blake  <ebb9@byu.net>
19077
19078         dirfd: fix prototype
19079         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
19080         * lib/dirfd.c (dirfd): Likewise.
19081
19082         canonicalize: reduce memory usage
19083         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
19084         allocation to size.
19085         Reported by Solar Designer <solar@openwall.com>.
19086
19087 2009-12-19  Bruno Haible  <bruno@clisp.org>
19088
19089         New module attribute 'Applicability'.
19090         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
19091         * gnulib-tool: New option --extract-applicability.
19092         (func_usage): Document it.
19093         (sed_extract_prog): Recognize it.
19094         (func_get_applicability): New function.
19095         (func_import): Generalize handling of 'link-warning' module.
19096         * modules/link-warning (Applicability): New section.
19097         * modules/arg-nonnull (Applicability): New section.
19098         Repoted by Simon Josefsson <simon@josefsson.org>.
19099
19100 2009-12-19  Bruno Haible  <bruno@clisp.org>
19101
19102         fflush: tweak
19103         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
19104         * lib/fseeko.c (rpl_fseeko): Likewise.
19105
19106 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
19107
19108         * lib/gl_list.h: Fix typo in comment.
19109
19110 2009-12-16  Eric Blake  <ebb9@byu.net>
19111
19112         fcntl: use to simplify other modules
19113         * modules/cloexec (Depends-on): Add fcntl.
19114         * modules/fchdir (Depends-on): Likewise.
19115         * modules/fd-safer-flag (Depends-on): Likewise.
19116         * modules/unistd-safer (Depends-on): Likewise.
19117         * modules/dup3 (configure.ac): Set module indicator.
19118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
19119         missing.
19120         * lib/fchdir.c (_gl_register_dup): Fix comment.
19121         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
19122         * lib/dup-safer.c (dup_safer): Likewise.
19123         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
19124         * lib/dup3.c (dup3): Likewise.
19125         * tests/test-fchdir.c (main): Enhance test.
19126         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
19127
19128         fcntl: port portions of fcntl to mingw
19129         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
19130         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
19131         replacement for mingw.
19132         * modules/fcntl (Description): Update.
19133         (Depends-on): Add dup2.
19134         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
19135         * modules/fcntl-h (Makefile.am): Substitute it.
19136         * lib/fcntl.in.h (fcntl): Update declaration.
19137         (F_DUPFD, F_GETFD): New macros, when needed.
19138         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19139         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
19140         * tests/test-fcntl.c (check_flags, main): Enhance test for items
19141         we now guarantee.
19142
19143         fcntl: work around cygwin bug in F_DUPFD
19144         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
19145         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
19146         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
19147         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
19148         * doc/posix-functions/fcntl.texi (fcntl): Document it.
19149
19150         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
19151         * modules/fcntl (Files): List new files.
19152         (configure.ac): Run a test.
19153         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
19154         * lib/fcntl.c (rpl_fcntl): Likewise.
19155         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
19156         (gl_FCNTL_H): Always replace fcntl.h.
19157         * modules/fcntl-h (Makefile.am): Substitute witnesses.
19158         * lib/fcntl.in.h (fcntl): Declare replacement.
19159         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
19160         needed, plus a witness.
19161         * doc/posix-functions/fcntl.texi (fcntl): Document this.
19162         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
19163         * tests/test-fcntl.c: New file.
19164         * modules/fcntl-tests: Likewise.
19165
19166         binary-io: avoid potential compilation warning
19167         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
19168         directives.
19169
19170         fflush: avoid compilation error on NetBSD
19171         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
19172         between off_t and fpos_t, since the latter is sometimes a struct.
19173         * lib/fseeko.c (rpl_fseeko): Likewise.
19174         Reported by Alexander Nasonov <alnsn@yandex.ru>.
19175
19176 2009-12-15  Eric Blake  <ebb9@byu.net>
19177
19178         fcntl-h, stdio, sys_ioctl: fix declarations
19179         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
19180         function must not take arguments.
19181         * lib/sys_ioctl.in.h (ioctl): Likewise.
19182         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
19183         (open): Add a link warning.
19184
19185 2009-12-15  Jim Meyering  <meyering@redhat.com>
19186
19187         areadlink, areadlink-with-size: relax license to LGPLv2+
19188         * modules/areadlink (License): Relax to LGPLv2+.
19189         * modules/areadlink-with-size (License): Likewise.
19190
19191 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
19192             Bruno Haible  <bruno@clisp.org>
19193
19194         *printf: Fix memory leak.
19195         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
19196         * lib/vfprintf.c (vfprintf): Likewise.
19197         * lib/dprintf.c (dprintf): Likewise.
19198         * lib/vdprintf.c (vdprintf): Likewise.
19199
19200 2009-12-14  Eric Blake  <ebb9@byu.net>
19201
19202         accept4: adjust module dependencies
19203         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
19204
19205         utimens: one more try at avoiding compiler warning
19206         * lib/utimens.c (lutimens): Lower scope of result.
19207
19208 2009-12-13  Bruno Haible  <bruno@clisp.org>
19209
19210         Move the malloc checking from module 'list' to new module 'xlist'.
19211         * modules/xlist: New file.
19212         * lib/gl_xlist.h: New file.
19213         * lib/gl_xlist.c: New file.
19214         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
19215         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
19216         gl_list_add_last, gl_list_add_before, gl_list_add_after,
19217         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
19218         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
19219         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
19220         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
19221         gl_sortedlist_nx_add): New declarations.
19222         (struct gl_list_implementation): Rename and change methods accordingly.
19223         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
19224         (gl_list_nx_create): Renamed from gl_list_create.
19225         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19226         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19227         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19228         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19229         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19230         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19231         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19232         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19233         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
19234         gl_list_create_empty.
19235         (gl_list_nx_create): Renamed from gl_list_create.
19236         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19237         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19238         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19239         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19240         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19241         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19242         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19243         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19244         * lib/gl_array_list.c: Don't include xalloc.h.
19245         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
19246         NULL upon out-of-memory.
19247         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
19248         out-of-memory.
19249         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
19250         Change return type to 'int'.
19251         (gl_array_nx_set_at): Renamed from gl_array_set_at.
19252         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19253         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
19254         upon out-of-memory.
19255         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
19256         upon out-of-memory.
19257         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
19258         upon out-of-memory.
19259         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
19260         upon out-of-memory.
19261         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
19262         out-of-memory.
19263         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
19264         Update.
19265         (gl_array_list_implementation): Update.
19266         * lib/gl_carray_list.c: Don't include xalloc.h.
19267         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
19268         Return NULL upon out-of-memory.
19269         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
19270         out-of-memory.
19271         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
19272         Change return type to 'int'.
19273         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
19274         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19275         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
19276         upon out-of-memory.
19277         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
19278         upon out-of-memory.
19279         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
19280         out-of-memory.
19281         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
19282         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
19283         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
19284         Update.
19285         (gl_carray_list_implementation): Update.
19286         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
19287         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
19288         gl_linked_create_empty. Return NULL upon out-of-memory.
19289         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
19290         out-of-memory.
19291         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
19292         Change return type to 'int'. Return -1 upon out-of-memory.
19293         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
19294         out-of-memory.
19295         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
19296         upon out-of-memory.
19297         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
19298         upon out-of-memory.
19299         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
19300         NULL upon out-of-memory.
19301         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
19302         upon out-of-memory.
19303         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
19304         out-of-memory.
19305         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
19306         Update.
19307         * lib/gl_linked_list.c: Don't include xalloc.h.
19308         (gl_linked_list_implementation): Update.
19309         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
19310         (add_to_bucket): Change return type to 'int'.
19311         (gl_linkedhash_list_implementation): Update.
19312         * lib/gl_anytree_list1.h (free_subtree): New function.
19313         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
19314         gl_tree_create_empty. Return NULL upon out-of-memory.
19315         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
19316         Change return type to 'int'. Return -1 upon out-of-memory.
19317         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
19318         out-of-memory.
19319         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
19320         (gl_tree_remove_node): New function, moved here from
19321         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
19322         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
19323         Update.
19324         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
19325         malloc, not xmalloc. Return NULL upon out-of-memory.
19326         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19327         out-of-memory.
19328         (gl_tree_remove_node_from_tree): New function, extracted from
19329         gl_tree_remove_node.
19330         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19331         upon out-of-memory.
19332         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19333         out-of-memory.
19334         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19335         upon out-of-memory.
19336         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19337         upon out-of-memory.
19338         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19339         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
19340         not xmalloc. Return NULL upon out-of-memory.
19341         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19342         out-of-memory.
19343         (gl_tree_remove_node_from_tree): New function, extracted from
19344         gl_tree_remove_node.
19345         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19346         upon out-of-memory.
19347         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19348         out-of-memory.
19349         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19350         upon out-of-memory.
19351         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19352         upon out-of-memory.
19353         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19354         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
19355         gl_anytree_list1.h before gl_anyavltree_list2.h.
19356         (gl_avltree_list_implementation): Update.
19357         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
19358         gl_anytree_list1.h before gl_anyavltree_list2.h.
19359         (gl_rbtree_list_implementation): Update.
19360         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
19361         Change return type to 'int'. Return -1 upon out-of-memory. Use
19362         __builtin_expect.
19363         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
19364         (gl_avltreehash_list_implementation): Update.
19365         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
19366         (gl_rbtreehash_list_implementation): Update.
19367         * modules/array-list (Depends-on): Remove xalloc.
19368         * modules/carray-list (Depends-on): Likewise.
19369         * modules/linked-list (Depends-on): Likewise.
19370         * modules/linkedhash-list (Depends-on): Likewise.
19371         * modules/avltree-list (Depends-on): Likewise.
19372         * modules/rbtree-list (Depends-on): Likewise.
19373         * modules/avltreehash-list (Depends-on): Likewise.
19374         * modules/rbtreehash-list (Depends-on): Likewise.
19375
19376         * modules/xsublist: New file.
19377         * lib/gl_xsublist.h: New file.
19378         * lib/gl_xsublist.c: New file.
19379         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
19380         (gl_sublist_nx_create): New declaration.
19381         * lib/gl_sublist.c: Don't include xalloc.h.
19382         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
19383         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
19384         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
19385         Change return type to 'int'. Return -1 upon out-of-memory.
19386         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
19387         upon out-of-memory.
19388         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
19389         NULL upon out-of-memory.
19390         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
19391         upon out-of-memory.
19392         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
19393         NULL upon out-of-memory.
19394         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
19395         NULL upon out-of-memory.
19396         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
19397         upon out-of-memory.
19398         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
19399         (gl_sublist_list_implementation): Update.
19400         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
19401         upon out-of-memory.
19402         * modules/sublist (Depends-on): Remove xalloc.
19403
19404         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
19405         * tests/test-carray_list.c: Likewise.
19406         * tests/test-linked_list.c: Likewise.
19407         * tests/test-linkedhash_list.c: Likewise.
19408         * tests/test-avltree_list.c: Likewise.
19409         * tests/test-rbtree_list.c: Likewise.
19410         * tests/test-avltreehash_list.c: Likewise.
19411         * tests/test-rbtreehash_list.c: Likewise.
19412         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
19413         * modules/carray-list-tests (Makefile.am): Likewise.
19414         * modules/linked-list-tests (Makefile.am): Likewise.
19415         * modules/linkedhash-list-tests (Makefile.am): Likewise.
19416         * modules/avltree-list-tests (Makefile.am): Likewise.
19417         * modules/rbtree-list-tests (Makefile.am): Likewise.
19418         * modules/avltreehash-list-tests (Makefile.am): Likewise.
19419         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
19420
19421         * NEWS: Mention the changes.
19422
19423         * lib/clean-temp.c: Include gl_xlist.h.
19424         * modules/clean-temp (Depends-on): Add xlist.
19425
19426         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
19427         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
19428
19429         * tests/test-array_oset.c: Include gl_xlist.h.
19430         * modules/array-oset-tests (Depends-on): Add xlist.
19431
19432         Reported by José E. Marchesi <jemarch@gnu.org>.
19433
19434 2009-12-13  Bruno Haible  <bruno@clisp.org>
19435
19436         Move the malloc checking from module 'oset' to new module 'xoset'.
19437         * modules/xoset: New file.
19438         * lib/gl_xoset.h: New file.
19439         * lib/gl_xoset.c: New file.
19440         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
19441         declarations.
19442         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
19443         (struct gl_oset_implementation): Rename and change methods accordingly.
19444         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
19445         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19446         'int'. Mark as __warn_unused_result__.
19447         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
19448         gl_oset_create_empty.
19449         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19450         'int'.
19451         * lib/gl_array_oset.c: Don't include xalloc.h.
19452         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
19453         malloc, not xmalloc.
19454         (grow): Change return type to 'int'. Don't call xalloc_die.
19455         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
19456         to 'int'.
19457         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
19458         'int'.
19459         (gl_array_oset_implementation): Update.
19460         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
19461         gl_tree_create_empty.
19462         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
19463         'int'.
19464         * lib/gl_avltree_oset.c: Don't include xalloc.h.
19465         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19466         xmalloc.
19467         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19468         not xmalloc.
19469         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19470         xmalloc.
19471         (gl_avltree_oset_implementation): Update.
19472         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
19473         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19474         xmalloc.
19475         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19476         not xmalloc.
19477         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19478         xmalloc.
19479         (gl_rbtree_oset_implementation): Update.
19480         * modules/array-oset (Depends-on): Remove xalloc.
19481         * modules/avltree-oset (Depends-on): Likewise.
19482         * modules/rbtree-oset (Depends-on): Likewise.
19483         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
19484         * tests/test-avltree_oset.c: Likewise.
19485         * tests/test-rbtree_oset.c: Likewise.
19486         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19487         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
19488         * modules/rbtree-oset-tests (Makefile.am): Likewise.
19489         * NEWS: Mention the change.
19490
19491 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
19492
19493         maint.mk: allow a project to override release-prep commands
19494         * top/maint.mk (alpha, beta, stable): Move release-preparatory
19495         commands into a new rule.
19496         (release-prep): New rule.
19497         (release-prep-hook): New overridable variable.
19498
19499 2009-12-13  Bruno Haible  <bruno@clisp.org>
19500
19501         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
19502
19503 2009-12-13  Jim Meyering  <meyering@redhat.com>
19504
19505         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
19506         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
19507
19508 2009-12-12  Bruno Haible  <bruno@clisp.org>
19509
19510         duplocale: Tweak.
19511         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
19512
19513 2009-12-12  Karl Berry  <karl@gnu.org>
19514
19515         * config/srclist.txt (strtoll.c): tab changes, no more sync.
19516
19517 2009-12-12  Bruno Haible  <bruno@clisp.org>
19518
19519         * m4/po.m4: Undo incorrect untabification.
19520
19521 2009-12-12  Bruno Haible  <bruno@clisp.org>
19522
19523         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
19524         * modules/c-strtod (Depends-on): Add locale.
19525         * modules/c-strtold (Depends-on): Likewise.
19526
19527 2009-12-12  Bruno Haible  <bruno@clisp.org>
19528
19529         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
19530
19531 2009-12-11  Eric Blake  <ebb9@byu.net>
19532
19533         setenv: relax requirement in light of POSIX ruling
19534         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
19535         not NULL.
19536         * tests/test-setenv.c (main): Relax test.
19537         * tests/test-unsetenv.c (main): Likewise.
19538         * doc/posix-functions/setenv.texi (setenv): Document this.
19539         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
19540
19541 2009-12-11  Bruno Haible  <bruno@clisp.org>
19542
19543         New module 'fd-safer-flag'.
19544         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
19545         * lib/dup-safer.c (dup_safer_flag): Remove function.
19546         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
19547         * lib/fd-safer.c (fd_safer_flag): Remove function.
19548         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
19549         * modules/cloexec (configure.ac): Drop indicator macro.
19550         * modules/fd-safer-flag: New file.
19551         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
19552         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
19553         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
19554
19555 2009-12-11  Bruno Haible  <bruno@clisp.org>
19556
19557         Tests for module 'nl_langinfo'.
19558         * modules/nl_langinfo-tests: New file.
19559         * tests/test-nl_langinfo.sh: New file.
19560         * tests/test-nl_langinfo.c: New file.
19561
19562         New module 'nl_langinfo'.
19563         * lib/nl_langinfo.c: New file.
19564         * m4/nl_langinfo.m4: New file.
19565         * modules/nl_langinfo: New file.
19566         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
19567
19568 2009-12-11  Bruno Haible  <bruno@clisp.org>
19569
19570         Tests for module 'langinfo'.
19571         * modules/langinfo-tests: New file.
19572         * tests/test-langinfo.c: New file.
19573
19574         New module 'langinfo'.
19575         * lib/langinfo.in.h: New file.
19576         * m4/langinfo_h.m4: New file.
19577         * modules/langinfo: New file.
19578         * doc/posix-headers/langinfo.texi: Mention the new module.
19579
19580 2009-12-11  Bruno Haible  <bruno@clisp.org>
19581
19582         * lib/config.charset: Untabify.
19583
19584 2009-12-11  Bruno Haible  <bruno@clisp.org>
19585
19586         * modules/unistd-safer (configure.ac): Drop indicator macro.
19587
19588 2009-12-11  Bruno Haible  <bruno@clisp.org>
19589
19590         Move pipe2-safer code to its own file.
19591         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
19592         * lib/pipe-safer.c (pipe2_safer): Remove function.
19593         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
19594         (Makefile.am): Add it to lib_SOURCES.
19595
19596 2009-12-10  Bruno Haible  <bruno@clisp.org>
19597
19598         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
19599
19600 2009-12-10  Bruno Haible  <bruno@clisp.org>
19601
19602         Declare which arguments expect non-NULL values, for GCC and clang.
19603         * build-aux/arg-nonnull.h: New file.
19604         * modules/arg-nonnull: New file.
19605         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
19606         (inet_ntop, inet_pton): Use it.
19607         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
19608         (closedir, dirfd, opendir, scandir, alphasort): Use it.
19609         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
19610         (open, openat): Use it.
19611         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
19612         (fnmatch): Use it.
19613         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
19614         (getopt, getopt_long, getopt_long_only): Use it.
19615         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
19616         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
19617         Use it.
19618         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
19619         (iconv_open): Use it.
19620         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
19621         (strtoimax, strtoumax): Use it.
19622         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
19623         (duplocale): Use it.
19624         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
19625         (frexp, frexpl): Use it.
19626         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
19627         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
19628         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
19629         (tsearch, tfind, tdelete, twalk): Use it.
19630         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
19631         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19632         sigpending): Use it.
19633         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
19634         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19635         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19636         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19637         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19638         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19639         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19640         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19641         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19642         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19643         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19644         Use it.
19645         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
19646         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
19647         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
19648         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
19649         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
19650         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
19651         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
19652         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
19653         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
19654         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
19655         strtoull, unsetenv): Use it.
19656         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
19657         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19658         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19659         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
19660         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
19661         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
19662         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
19663         (strcasecmp, strncasecmp): Use it.
19664         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
19665         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
19666         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
19667         rpl_setsockopt): Use it.
19668         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
19669         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
19670         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
19671         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
19672         (gettimeofday): Use it.
19673         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
19674         (times): Use it.
19675         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
19676         (uname): Use it.
19677         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
19678         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
19679         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
19680         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
19681         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
19682         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
19683         unlinkat, write): Use it.
19684         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
19685         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
19686         * lib/argv-iter.h: Include arg-nonnull.h.
19687         (_ATTRIBUTE_NONNULL_): Remove macro.
19688         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
19689         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
19690         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
19691         optimization.
19692         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
19693         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
19694         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
19695         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
19696         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
19697         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
19698         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
19699         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
19700         * modules/arpa_inet (Depends-on): Add arg-nonnull.
19701         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
19702         * modules/dirent (Depends-on): Add arg-nonnull.
19703         (Makefile.am): Insert arg-nonnull.h into dirent.h.
19704         * modules/fcntl-h (Depends-on): Add arg-nonnull.
19705         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
19706         * modules/fnmatch (Depends-on): Add arg-nonnull.
19707         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
19708         * modules/getopt-posix (Depends-on): Add arg-nonnull.
19709         (Makefile.am): Insert arg-nonnull.h into getopt.h.
19710         * modules/glob (Depends-on): Add arg-nonnull.
19711         (Makefile.am): Insert arg-nonnull.h into glob.h.
19712         * modules/iconv_open (Depends-on): Add arg-nonnull.
19713         (Makefile.am): Insert arg-nonnull.h into iconv.h.
19714         * modules/inttypes (Depends-on): Add arg-nonnull.
19715         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
19716         * modules/locale (Depends-on): Add arg-nonnull.
19717         (Makefile.am): Insert arg-nonnull.h into locale.h.
19718         * modules/math (Depends-on): Add arg-nonnull.
19719         (Makefile.am): Insert arg-nonnull.h into math.h.
19720         * modules/netdb (Depends-on): Add arg-nonnull.
19721         (Makefile.am): Insert arg-nonnull.h into netdb.h.
19722         * modules/search (Depends-on): Add arg-nonnull.
19723         (Makefile.am): Insert arg-nonnull.h into search.h.
19724         * modules/signal (Depends-on): Add arg-nonnull.
19725         (Makefile.am): Insert arg-nonnull.h into signal.h.
19726         * modules/spawn (Depends-on): Add arg-nonnull.
19727         (Makefile.am): Insert arg-nonnull.h into spawn.h.
19728         * modules/stdio (Depends-on): Add arg-nonnull.
19729         (Makefile.am): Insert arg-nonnull.h into stdio.h.
19730         * modules/stdlib (Depends-on): Add arg-nonnull.
19731         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
19732         * modules/string (Depends-on): Add arg-nonnull.
19733         (Makefile.am): Insert arg-nonnull.h into string.h.
19734         * modules/strings (Depends-on): Add arg-nonnull.
19735         (Makefile.am): Insert arg-nonnull.h into strings.h.
19736         * modules/sys_socket (Depends-on): Add arg-nonnull.
19737         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
19738         * modules/sys_stat (Depends-on): Add arg-nonnull.
19739         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
19740         * modules/sys_time (Depends-on): Add arg-nonnull.
19741         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
19742         * modules/sys_times (Depends-on): Add arg-nonnull.
19743         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
19744         * modules/sys_utsname (Depends-on): Add arg-nonnull.
19745         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
19746         * modules/time (Depends-on): Add arg-nonnull.
19747         (Makefile.am): Insert arg-nonnull.h into time.h.
19748         * modules/unistd (Depends-on): Add arg-nonnull.
19749         (Makefile.am): Insert arg-nonnull.h into unistd.h.
19750         * modules/wchar (Depends-on): Add arg-nonnull.
19751         (Makefile.am): Insert arg-nonnull.h into wchar.h.
19752         * modules/argv-iter (Depends-on): Add arg-nonnull.
19753         * tests/test-canonicalize.c (null_ptr): New function.
19754         (main): Use it.
19755         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
19756         (main): Use it.
19757         * tests/test-memmem.c (null_ptr): New function.
19758         (main): Use it.
19759         Reported by Jim Meyering.
19760
19761 2009-12-10  Bruno Haible  <bruno@clisp.org>
19762
19763         Use spaces for indentation, not tabs.
19764         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19765         * m4/*.m4: Untabify.
19766         * build-aux/*.h: Untabify.
19767         * tests/**/*.[hc]: Untabify.
19768         * README: New section "Indent with spaces, not TABs", based on
19769         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
19770         * NEWS: Mention the change.
19771
19772 2009-12-10  Bruno Haible  <bruno@clisp.org>
19773
19774         pty test: Fix link error.
19775         * modules/pty-tests (Makefile.am): Add the default LDADD value to
19776         test_pty_LDADD.
19777
19778 2009-12-07  Simon Josefsson  <simon@josefsson.org>
19779
19780         * modules/pty: New file.
19781         * modules/pty-tests: New file.
19782         * m4/pty.m4: New file.
19783         * tests/test-pty.c: New file.
19784         * doc/glibc-headers/pty.texi: Modified.
19785         * doc/glibc-functions/forkpty.texi: Modified.
19786         * doc/glibc-functions/openpty.texi: Modified.
19787
19788 2009-12-10  Bruno Haible  <bruno@clisp.org>
19789
19790         Avoid syntax error in C++ mode.
19791         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
19792
19793 2009-12-10  Bruno Haible  <bruno@clisp.org>
19794
19795         Use sed with option -e.
19796         * gnulib-tool (func_version, func_emit_copyright_notice,
19797         func_emit_initmacro_end, func_import, func_create_testdir): Pass
19798         option -e to sed.
19799         * modules/link-warning (Makefile.am): Likewise.
19800
19801 2009-12-10  Jim Meyering  <meyering@redhat.com>
19802
19803         mgetgroups: do not write bytes beyond end of malloc'd buffer
19804         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
19805         username, we call getgroups with a one-element-shorter buffer,
19806         but still told it the length was original, max_n_groups.
19807
19808 2009-12-09  Eric Blake  <ebb9@byu.net>
19809
19810         cloexec: relax license
19811         * modules/cloexec (Maintainer): Add myself.
19812         (License): Use LGPL, not GPL.
19813
19814         link-warning: optimize generation
19815         * modules/link-warning (Makefile.am): Reduce process usage.
19816
19817 2009-12-09  Bruno Haible  <bruno@clisp.org>
19818
19819         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
19820         workaround was added on 2009-11-17.
19821
19822 2009-12-09  Jim Meyering  <meyering@redhat.com>
19823             Bruno Haible  <bruno@clisp.org>
19824
19825         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
19826         * modules/link-warning (Makefile.am): Make the comment-removing sed
19827         command more robust in the face of bootstrap-prepended comment lines.
19828
19829 2009-12-09  Bruno Haible  <bruno@clisp.org>
19830
19831         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
19832         most one group.
19833
19834 2009-12-09  Simon Josefsson <simon@josefsson.org>
19835             Bruno Haible  <bruno@clisp.org>
19836
19837         * build-aux/link-warning.h: Add copyright notice.
19838         * modules/link-warning (Makefile.am): Generate link-warning.h from
19839         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
19840         * NEWS: Mention change in link-warning module.
19841         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
19842         * modules/dirent (Makefile.am): Add dependency to dirent.h.
19843         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
19844         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
19845         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
19846         * modules/math (Makefile.am): Add dependency to math.h.
19847         * modules/search (Makefile.am): Add dependency to search.h.
19848         * modules/signal (Makefile.am): Add dependency to signal.h.
19849         * modules/spawn (Makefile.am): Add dependency to spawn.h.
19850         * modules/stdio (Makefile.am): Add dependency to stdio.h.
19851         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
19852         * modules/string (Makefile.am): Add dependency to string.h.
19853         * modules/strings (Makefile.am): Add dependency to strings.h.
19854         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
19855         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
19856         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
19857         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
19858         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
19859         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
19860         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
19861         * modules/unistd (Makefile.am): Add dependency to unistd.h.
19862         * modules/wchar (Makefile.am): Add dependency to wchar.h.
19863
19864 2009-12-09  Bruno Haible  <bruno@clisp.org>
19865
19866         fchdir: Optimize away rpl_fstat when possible.
19867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
19868         REPLACE_OPEN_DIRECTORY.
19869         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
19870
19871 2009-12-09  Bruno Haible  <bruno@clisp.org>
19872
19873         * lib/fchdir.c: Update comment.
19874
19875 2009-12-09  Bruno Haible  <bruno@clisp.org>
19876
19877         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
19878
19879 2009-12-08  Eric Blake  <ebb9@byu.net>
19880
19881         fchdir: avoid memory leak on re-registration.
19882         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
19883
19884 2009-12-08  Jim Meyering  <meyering@redhat.com>
19885
19886         init.sh: avoid Solaris 10 /bin/sh portability problem
19887         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
19888         sourced script:
19889           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
19890           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
19891           bar
19892         tests/init.sh relied on that, accepting a --set-path=DIR argument,
19893         and two tests used that idiom.
19894         * tests/init.sh: Update suggested usage comments.
19895         (path_prepend_): New function, to be used in place
19896         of the --src-path=DIR option.
19897         (setup_): Move PATH-prepending code into path_prepend_.
19898         * tests/test-pread.sh: Adapt to new usage.
19899         * tests/test-xalloc-die.sh: Likewise.
19900
19901 2009-12-08  Simon Josefsson  <simon@josefsson.org>
19902
19903         * doc/gnulib.texi (Glibc pty.h): Add.
19904         * doc/glibc-functions/forkpty.texi: Add.
19905         * doc/glibc-functions/openpty.texi: Add.
19906         Suggested by Bruno Haible.
19907
19908 2009-12-08  Eric Blake  <ebb9@byu.net>
19909
19910         fchdir: fix logic bugs
19911         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
19912         * tests/test-fchdir.c (main): Enhance test.
19913         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
19914         is in use.
19915
19916         dup2: fix logic bugs
19917         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
19918         REPLACE_DUP2 to decide when rpl_dup2 is needed.
19919         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
19920         exists.
19921         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
19922
19923 2009-12-07  Eric Blake  <ebb9@byu.net>
19924
19925         unlink: fix m4 detection
19926         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
19927
19928         unistd-safer: add unit test
19929         * modules/unistd-safer-tests: New file.
19930         * tests/test-dup-safer.c: Likewise.
19931         * tests/test-cloexec.c (setmode): Avoid compiler warning.
19932         * tests/test-dup2.c (setmode): Likewise.
19933         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
19934
19935         cloexec: preserve text vs. binary across dup_cloexec
19936         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
19937         mode.
19938         * modules/dup2-tests (Depends-on): Add binary-io.
19939         * modules/cloexec-tests (Depends-on): Likewise.
19940         * tests/test-dup2.c (setmode, is_mode): New helpers.
19941         (main): Add tests that translation mode is preserved.
19942         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
19943         Reported by Bruno Haible.
19944
19945         mgetgroups: reduce duplicate listings
19946         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
19947         resulting array.
19948         * tests/test-chown.h (test_chown): Simplify client.
19949         * tests/test-lchown.h (test_lchown): Likewise.
19950
19951 2009-12-06  Bruno Haible  <bruno@clisp.org>
19952
19953         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
19954         value.
19955
19956 2009-12-06  Bruno Haible  <bruno@clisp.org>
19957
19958         * lib/progname.c: Include stdio.h, stdlib.h.
19959         (set_program_name): Reject a NULL argument.
19960
19961 2009-12-05  Eric Blake  <ebb9@byu.net>
19962
19963         pipe2-safer: new module
19964         * modules/pipe2-safer: New file.
19965         * lib/unistd-safer.h (pipe2_safer): New prototype.
19966         * lib/unistd--.h (pipe2): New wrapper.
19967         * lib/pipe-safer.c (pipe2_safer): New function.
19968         * modules/pipe (Depends-on): Add pipe2-safer.
19969         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
19970
19971         stdlib-safer: preserve cloexec flag for mkostemp[s]
19972         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
19973         fd_safer_flag.
19974
19975         unistd-safer: allow preservation of cloexec status via flag
19976         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
19977         prototypes.
19978         * lib/dup-safer.c (dup_safer_flag): New function.
19979         * lib/fd-safer.c (fd_safer_flag): Likewise.
19980         * modules/cloexec (configure.ac): Set witness.
19981
19982         test-dup2: enhance test
19983         * modules/dup2-tests (Depends-on): Add cloexec.
19984         * tests/test-dup2.c (main): Enhance test.
19985
19986         cloexec: add dup_cloexec
19987         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
19988         header and comments.
19989         * lib/cloexec.c (set_cloexec_flag): Add comments.
19990         (dup_cloexec): New function, with mingw implementation borrowed
19991         from...
19992         * lib/w32spawn.h (dup_noinherit): ...here.
19993         * modules/execute (Depends-on): Add cloexec.
19994         * modules/pipe (Depends-on): Likewise.
19995         * modules/cloexec (Depends-on): Add dup2.
19996         * modules/cloexec-tests (Files): New file.
19997         * tests/test-cloexec.c: Likewise.
19998
19999         test-xalloc-die: fix test for mingw
20000         * modules/xalloc-die-tests (Files): Add tests/init.sh.
20001         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
20002         directory and .exe suffix off argv[0] output.
20003
20004         test-fseeko: fix test for mingw
20005         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
20006         than undefining fseek, so test will pass on mingw.
20007
20008 2009-12-05  Bruno Haible  <bruno@clisp.org>
20009
20010         * lib/progname.h (set_program_name): Clarify specification.
20011         * lib/progname.c (set_program_name): Likewise.
20012         Reported by Jim Meyering.
20013
20014 2009-12-05  Jim Meyering  <meyering@redhat.com>
20015
20016         maint.mk: backslash-escape parens in default regexp
20017         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
20018         backslash-escape the literal parentheses.
20019
20020         maint.mk: news-date-check: use grep -E
20021         * top/maint.mk (today): Define a Make variable, not a...
20022         (news-date-check): ...shell variable.
20023         (news-date-regexp): Use the Make variable.
20024         Use grep's -E option.  Change the failing diagnostic to mention
20025         the variable, $(news-date-regexp).
20026
20027 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
20028
20029         maintainer-makefile: allow customization of NEWS entry format
20030         * top/maint.mk (news-date-regexp): New overridable variable.
20031         (news-date-check): Use it.
20032
20033 2009-12-04  Eric Blake  <ebb9@byu.net>
20034
20035         mgetgroups: add xgetgroups, and avoid ENOSYS failures
20036         * lib/mgetgroups.h (xgetgroups): New prototype.
20037         * lib/mgetgroups.c (xgetgroups): New wrapper.
20038         (mgetgroups): Handle ENOSYS.
20039         * modules/mgetgroups (Depends-on): Add realloc.
20040         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
20041
20042         mgetgroups: avoid argument promotion issues with -1
20043         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
20044         for invalid gid_t.
20045         * tests/test-chown.h (getegid, test_chown): Likewise.
20046         * tests/test-lchown.h (getegid, test_lchown): Likewise.
20047
20048 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
20049
20050         exclude: Fix header file problems.
20051         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
20052
20053 2009-12-01  Jim Meyering  <meyering@redhat.com>
20054
20055         fts: fts_open: do not let an empty string cause immediate failure
20056         This is required in support of GNU rm, for which the command
20057         "rm A '' B" must process and remove both A and B, in spite of
20058         the empty string argument.
20059         * lib/fts.c (fts_open): Do not let the presence of an empty string
20060         cause fts_open to fail immediately.  Most fts-using tools must be
20061         able to process all arguments, in order, and can be expected to
20062         diagnose such arguments themselves.
20063
20064 2009-11-30  Eric Blake  <ebb9@byu.net>
20065
20066         utimens: fix compilation error
20067         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
20068         Declare variable at right scope.
20069
20070 2009-11-29  Jim Meyering  <meyering@redhat.com>
20071
20072         bootstrap: handle perl-5.11's changed --version output
20073         * build-aux/bootstrap (get_version): Handle perl separately,
20074         since perl-5.11's --version output is different.
20075
20076 2009-11-28  Jim Meyering  <meyering@redhat.com>
20077
20078         userspec: depend on the inttostr module, too
20079         * modules/userspec (Depends-on): Add inttostr.
20080
20081         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
20082         * lib/userspec.c (parse_with_separator): Do not accept a user ID
20083         number of MAXUID when it evaluates to (uid_t) -1.
20084         Likewise for group ID.  Reported by Matt McCutchen in
20085         <http://savannah.gnu.org/bugs/?28113>
20086
20087         userspec: reformat to use spaces, not TABs
20088         * lib/userspec.c: Expand TABs to spaces.
20089         Add Emacs' "indent-tabs-mode: nil" hint.
20090
20091 2009-11-27  Eric Blake  <ebb9@byu.net>
20092
20093         getopt-gnu: flush out another BSD bug
20094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
20095         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
20096         flush out BSD bug.
20097         * tests/test-getopt.h (test_getopt): End lists with NULL.
20098         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20099         (test_getopt_long_posix): Enhance test.
20100         * modules/getopt-posix-tests (Depends-on): Add stdbool.
20101         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
20102         getopt-gnu.
20103         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20104         Likewise.
20105
20106 2009-11-27  Simon Josefsson  <simon@josefsson.org>
20107
20108         * modules/idpriv-droptemp-tests (Notice): Fix text.
20109
20110 2009-11-27  Jim Meyering  <meyering@redhat.com>
20111
20112         test-xalloc-die: avoid spurious failure due to libtool argv difference
20113         In a libtool-enabled project, this test would fail due to a difference
20114         in the emitted program name, e.g.,
20115         -test-xalloc-die: memory exhausted
20116         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
20117         Use program to avoid that.
20118         * modules/xalloc-die-tests (Depends-on): Add progname.
20119         * tests/test-xalloc-die.c: Include progname.h".
20120         (program_name): Remove decl.
20121         (main): Call set_program_name.
20122         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
20123
20124 2009-11-26  Richard Jones  <rjones@redhat.com>
20125
20126         w32sock: leave win32 error in place.
20127         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
20128
20129 2009-11-26  Eric Blake  <ebb9@byu.net>
20130
20131         init.sh: suggest to use skip_ and fail_ functions in comments
20132         * tests/init.sh: Add a sentence.
20133
20134 2009-11-25  Bruno Haible  <bruno@clisp.org>
20135
20136         init.sh: add documentation in comments
20137         * tests/init.sh: Add some developer and user documentation.
20138
20139 2009-11-26  Jim Meyering  <meyering@redhat.com>
20140
20141         init.sh: accommodate even those who specify bogus srcdir manually
20142         * tests/init.sh: Normally, srcdir is guaranteed by automake and
20143         configure-time tests to be sanitized, so that there is no need to
20144         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
20145         (with no double quotes) suffices.  However, since tests may be
20146         invoked manually, and since you may explicitly set srcdir to the
20147         name of a directory containing spaces, do quote its uses here.
20148         * tests/test-pread.sh: Likewise.
20149         Suggested by Bruno Haible.
20150
20151         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
20152         * tests/test-pread.sh: Write no data into the pipe, because
20153         test-pread actually reads none.  This avoids a diagnostic,
20154         "bash: echo: write error: Broken pipe", that arises in the unusual
20155         event something is ignoring SIGPIPE, and might be interpreted
20156         as some sort of failure.  Reported by Bruno Haible.
20157
20158 2009-11-25  Jim Meyering  <meyering@redhat.com>
20159
20160         test-pread: cover failure with ESPIPE and EINVAL
20161         * tests/test-pread.c (main): Test for failure, too.
20162         * tests/test-pread.sh: Invoke with stdin on a pipe.
20163         Suggested by Eric Blake.
20164
20165         pread: improvement and fix
20166         * modules/pread (Depends-on): Depend on lseek, for portability to
20167         e.g., mingw.  Suggested by Eric Blake.
20168         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
20169
20170         unistd.in.h: correct declaration of pread
20171         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
20172         Reported by Richard W.M. Jones.
20173
20174         test-pread.sh: distribute the test script
20175         * modules/pread-tests (Files): Include test-pread.sh.
20176
20177         test-pread.sh: clean up
20178         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
20179         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
20180         That is unnecessary, since it's always ".".
20181         Suggestion from Eric Blake.
20182
20183         test-pread.sh: make executable
20184         * tests/test-pread.sh: Set executable bit.
20185         Reported by Eric Blake.
20186
20187         correct typo in test-pread.sh
20188         * tests/test-pread.sh: Add #! line.
20189
20190         test pread
20191         * tests/test-pread.c: New file.
20192         * tests/test-pread.sh: Likewise.
20193         * modules/pread-tests: Likewise.
20194
20195         pread: new module
20196         * modules/pread: New file.
20197         * lib/unistd.in.h (pread): Define/declare.
20198         * lib/pread.c (pread): New file.
20199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
20200         * modules/unistd (Makefile.am): Substitute witnesses.
20201         * doc/posix-functions/pread.texi (pread): Update.
20202         * MODULES.html.sh: Add pread.
20203
20204 2009-11-25  Jim Meyering  <meyering@redhat.com>
20205
20206         tests/init.sh: new file to be used via most *.sh tests
20207         * tests/init.sh: New file.
20208
20209 2009-11-25  Eric Blake  <ebb9@byu.net>
20210
20211         utimens: work around older Linux failure with symlinks
20212         * lib/utimens.c (lutimensat_works_really): New variable.
20213         (fdutimens, lutimens): Use it to manage kernels that support
20214         nanosecond times on files, but not on symlinks.
20215         Reported by OndÅ™ej Vašík.
20216
20217         utimes: fix configure grammar
20218         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
20219
20220 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
20221
20222         regex: Fix fastmap for multibyte character ranges.
20223         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
20224         characters when a multibyte character range is included.
20225
20226 2009-11-22  Andy Wingo  <wingo@pobox.com>
20227
20228         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
20229         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
20230
20231 2009-11-24  Bruno Haible  <bruno@clisp.org>
20232
20233         doc: Most *_l functions exist in MacOS X 10.5.
20234         * doc/posix-functions/duplocale.texi: Update platforms list.
20235         * doc/posix-functions/freelocale.texi: Likewise.
20236         * doc/posix-functions/newlocale.texi: Likewise.
20237         * doc/posix-functions/uselocale.texi: Likewise.
20238         * doc/posix-functions/isalnum_l.texi: Likewise.
20239         * doc/posix-functions/isalpha_l.texi: Likewise.
20240         * doc/posix-functions/isblank_l.texi: Likewise.
20241         * doc/posix-functions/iscntrl_l.texi: Likewise.
20242         * doc/posix-functions/isdigit_l.texi: Likewise.
20243         * doc/posix-functions/isgraph_l.texi: Likewise.
20244         * doc/posix-functions/islower_l.texi: Likewise.
20245         * doc/posix-functions/isprint_l.texi: Likewise.
20246         * doc/posix-functions/ispunct_l.texi: Likewise.
20247         * doc/posix-functions/isspace_l.texi: Likewise.
20248         * doc/posix-functions/isupper_l.texi: Likewise.
20249         * doc/posix-functions/iswalnum_l.texi: Likewise.
20250         * doc/posix-functions/iswalpha_l.texi: Likewise.
20251         * doc/posix-functions/iswblank_l.texi: Likewise.
20252         * doc/posix-functions/iswcntrl_l.texi: Likewise.
20253         * doc/posix-functions/iswctype_l.texi: Likewise.
20254         * doc/posix-functions/iswdigit_l.texi: Likewise.
20255         * doc/posix-functions/iswgraph_l.texi: Likewise.
20256         * doc/posix-functions/iswlower_l.texi: Likewise.
20257         * doc/posix-functions/iswprint_l.texi: Likewise.
20258         * doc/posix-functions/iswpunct_l.texi: Likewise.
20259         * doc/posix-functions/iswspace_l.texi: Likewise.
20260         * doc/posix-functions/iswupper_l.texi: Likewise.
20261         * doc/posix-functions/iswxdigit_l.texi: Likewise.
20262         * doc/posix-functions/isxdigit_l.texi: Likewise.
20263         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
20264         * doc/posix-functions/strcasecmp_l.texi: Likewise.
20265         * doc/posix-functions/strcoll_l.texi: Likewise.
20266         * doc/posix-functions/strfmon_l.texi: Likewise.
20267         * doc/posix-functions/strftime_l.texi: Likewise.
20268         * doc/posix-functions/strncasecmp_l.texi: Likewise.
20269         * doc/posix-functions/strxfrm_l.texi: Likewise.
20270         * doc/posix-functions/tolower_l.texi: Likewise.
20271         * doc/posix-functions/toupper_l.texi: Likewise.
20272         * doc/posix-functions/towctrans_l.texi: Likewise.
20273         * doc/posix-functions/towlower_l.texi: Likewise.
20274         * doc/posix-functions/towupper_l.texi: Likewise.
20275         * doc/posix-functions/wcscoll_l.texi: Likewise.
20276         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
20277         * doc/posix-functions/wctrans_l.texi: Likewise.
20278         * doc/posix-functions/wctype_l.texi: Likewise.
20279         * doc/glibc-functions/strptime_l.texi: Likewise.
20280         * doc/glibc-functions/strtod_l.texi: Likewise.
20281         * doc/glibc-functions/strtof_l.texi: Likewise.
20282         * doc/glibc-functions/strtol_l.texi: Likewise.
20283         * doc/glibc-functions/strtold_l.texi: Likewise.
20284         * doc/glibc-functions/strtoll_l.texi: Likewise.
20285         * doc/glibc-functions/strtoul_l.texi: Likewise.
20286         * doc/glibc-functions/strtoull_l.texi: Likewise.
20287         * doc/glibc-functions/wcsftime_l.texi: Likewise.
20288         * doc/glibc-functions/wcstod_l.texi: Likewise.
20289         * doc/glibc-functions/wcstof_l.texi: Likewise.
20290         * doc/glibc-functions/wcstol_l.texi: Likewise.
20291         * doc/glibc-functions/wcstold_l.texi: Likewise.
20292         * doc/glibc-functions/wcstoll_l.texi: Likewise.
20293         * doc/glibc-functions/wcstoul_l.texi: Likewise.
20294         * doc/glibc-functions/wcstoull_l.texi: Likewise.
20295
20296 2009-11-24  Bruno Haible  <bruno@clisp.org>
20297
20298         duplocale: Fix logic bug.
20299         * lib/duplocale.c: Don't include <langinfo.h>.
20300         (_NL_LOCALE_NAME): Remove macro.
20301         (rpl_duplocale): Use setlocale instead of nl_langinfo.
20302         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
20303
20304 2009-11-23  Jim Meyering  <meyering@redhat.com>
20305
20306         test-update-copyright: don't hard-code /usr/bin/perl
20307         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
20308         perl to print the current year.  Gilles Espinasse reported that
20309         the replaced use of perl was hard-coded as /usr/bin/perl.
20310
20311 2009-11-23  Bruno Haible  <bruno@clisp.org>
20312
20313         duplocale: Add support for glibc 2.3.x.
20314         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
20315
20316 2009-11-22  Bruno Haible  <bruno@clisp.org>
20317
20318         vasnprintf: Tiny optimization.
20319         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
20320         MacOS X.
20321
20322 2009-11-22  Bruno Haible  <bruno@clisp.org>
20323
20324         Tests for module 'duplocale'.
20325         * modules/duplocale-tests: New file.
20326         * tests/test-duplocale.c: New file.
20327
20328         New module 'duplocale'.
20329         * m4/duplocale.m4: New file.
20330         * lib/locale.in.h (duplocale): New declaration.
20331         * lib/duplocale.c: New file.
20332         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
20333         gl_LOCALE_H_DEFAULTS): New macros.
20334         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
20335         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
20336         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
20337         REPLACE_DUPLOCALE.
20338         * modules/duplocale: New file.
20339         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
20340
20341 2009-11-22  Bruno Haible  <bruno@clisp.org>
20342
20343         * modules/locale-tests (configure.ac): Test for newlocale function.
20344         * tests/test-locale.c: When the system has extended locale functions,
20345         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
20346
20347         locale: Make locale_t available when possible.
20348         * lib/locale.in.h: Include <xlocale.h> when it exists.
20349         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
20350         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
20351         * modules/locale (Depends-on): Add extensions.
20352         (Makefile.am): Also substitute HAVE_XLOCALE_H.
20353         * doc/posix-headers/locale.texi: Document the problem with locale_t.
20354
20355 2009-11-22  Bruno Haible  <bruno@clisp.org>
20356
20357         Add comments.
20358         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
20359         invocation.
20360         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
20361         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20362         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20363
20364 2009-11-22  Bruno Haible  <bruno@clisp.org>
20365
20366         error: account for the possibility of freopen (stdout).
20367         * lib/error.c: Include <unistd.h>.
20368         (flush_stdout): New function, extracted from error and error_at_line.
20369         Determine stdout's fd dynamically.
20370         (error, error_at_line): Invoke flush_stdout.
20371         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
20372         * modules/error (Depends-on): Add unistd.
20373
20374 2009-11-22  Bruno Haible  <bruno@clisp.org>
20375
20376         diffseq: Add comment.
20377         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
20378
20379 2009-11-22  Jim Meyering  <meyering@redhat.com>
20380
20381         c-stack: avoid defining an unused static function
20382         * lib/c-stack.c (find_stack_direction): Do not define this function
20383         when it will not be used.
20384
20385         diffseq: avoid spurious gcc warnings
20386         * lib/diffseq.h (IF_LINT2): Define.
20387         (compareseq): Use it to initialize two members of "part".
20388         This avoids two used-uninitialized warnings.
20389
20390 2009-11-21  Jim Meyering  <meyering@redhat.com>
20391
20392         c-stack: avoid "ignoring return value of `write'" warning
20393         * lib/c-stack.c: Include "ignore-value.h".
20394         (die): Explicitly ignore each write return value.
20395         * modules/c-stack (Depends-on): Add ignore-value.
20396
20397 2009-11-21  Bruno Haible  <bruno@clisp.org>
20398
20399         diffseq: reduce scope of variable 'best'.
20400         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
20401         variable, earlier used for two different purposes.
20402
20403 2009-11-21  Jim Meyering  <meyering@redhat.com>
20404
20405         diffseq: remove useless assignment to "best"
20406         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
20407         assignment.  At that point "best" is already guaranteed to be zero.
20408
20409 2009-11-20  Eric Blake  <ebb9@byu.net>
20410
20411         build: mention ftp redirector in release announcements
20412         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
20413         values that used to come from cfg.mk; mention FTP redirect URL.
20414         * build-aux/announce-gen: Mention the mirror list.
20415         Suggested by Karl Berry.
20416
20417         nanosleep: improve port to mingw
20418         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
20419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
20420         LIB_NANOSLEEP, but only when needed.
20421         * modules/select (Link): Document LIBSOCKET.
20422         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
20423         enough.
20424
20425         nanosleep: work around cygwin bug
20426         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
20427         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
20428         bug.
20429         (getnow): Delete, not needed.
20430         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
20431         LIB_CLOCK_GETTIME.
20432         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
20433         clock-time, gettime.
20434         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
20435         bug.
20436         * modules/nanosleep-tests: New test.
20437         * tests/test-nanosleep.c: New file.
20438
20439         sleep: work around cygwin bug
20440         * lib/sleep.c (rpl_sleep): Work around the bug.
20441         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
20442         (gl_PREREQ_SLEEP): Delete unused macro.
20443         * modules/sleep (Depends-on): Add verify.
20444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20445         * modules/unistd (Makefile.am): Substitute witness.
20446         * lib/unistd.in.h (sleep): Update prototype.
20447         * doc/posix-functions/sleep.texi (sleep): Document the bug.
20448         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
20449         * modules/sleep-tests (Depends-on): Check for alarm.
20450
20451 2009-11-20  Jim Meyering  <meyering@redhat.com>
20452
20453         maint.mk: improve sc_prohibit_magic_number_exit
20454         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
20455         so it does not match uses like System.exit(1).
20456         Add comments showing how to correct all offenders.
20457
20458 2009-11-19  Eric Blake  <ebb9@byu.net>
20459
20460         xalloc-die-tests: add missing library
20461         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
20462
20463         test-xvasprintf: silence compiler warnings
20464         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
20465         empty string from gcc.
20466
20467 2009-11-19  Jim Meyering  <meyering@redhat.com>
20468
20469         xfreopen: new module, from coreutils
20470         * modules/xfreopen: New module.
20471         * lib/xfreopen.c: New file.
20472         * lib/xfreopen.h: New file.
20473         * MODULES.html.sh (File stream based Input/Output"): Add it.
20474
20475 2009-11-19  Eric Blake  <ebb9@byu.net>
20476
20477         manywarnings: depend on warnings
20478         * modules/manywarnings (Depends-on): Add warnings.
20479
20480         build: avoid compiler warnings
20481         * lib/select.c (rpl_select): Delete unused variable.
20482         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
20483
20484 2009-11-18  Eric Blake  <ebb9@byu.net>
20485
20486         tests: avoid false negative with --with-packager
20487         * tests/test-version-etc.sh: Discard packager information.
20488         * tests/test-argp-version-etc-1.sh: Likewise.
20489         Reported by Mike Frysinger.
20490
20491         utimens: fix regression on Solaris
20492         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
20493         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
20494         can only change fd timestamps via futimesat.  Instead, use an
20495         additional witness macro to avoid BSD bug.
20496         Reported by Jim Meyering.
20497
20498 2009-11-17  Eric Blake  <ebb9@byu.net>
20499
20500         usleep: use it to simplify tests
20501         * modules/stat-time-tests (Depends-on): Add usleep.
20502         (configure.ac): Drop usleep check.
20503         * modules/chown-tests (Depends-on, configure.ac): Likewise.
20504         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
20505         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
20506         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
20507         * modules/openat-tests (Depends-on, configure.ac): Likewise.
20508         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
20509         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
20510         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
20511         Likewise.
20512         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
20513         * tests/test-lchown.h (nap): Likewise.
20514         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
20515         * tests/test-stat-time.c (nap): Likewise.
20516         * tests/test-utimens-common.h (nap): Update comments.
20517
20518         usleep: new module
20519         * modules/usleep: New file.
20520         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
20521         * lib/usleep.c (usleep): Likewise.
20522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
20523         * modules/unistd (Makefile.am): Substitute witnesses.
20524         * lib/unistd.in.h (usleep): Add declaration.
20525         * doc/pastposix-functions/usleep.texi (usleep): Document this.
20526         * MODULES.html.sh (Date and time): Likewise.
20527         * modules/usleep-tests (Depends-on): New test.
20528         * tests/test-usleep.c: New file.
20529
20530         chown: work around OpenBSD bug
20531         * lib/chown.c (rpl_chown): Work around the bug.
20532         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
20533         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
20534         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
20535         * modules/chown (Depends-on): Add stdbool.
20536         * modules/lchown (Depends-on): Likewise.
20537         * doc/posix-functions/chown.texi (chown): Document the bug.
20538         * doc/posix-functions/lchown.texi (lchown): Likewise.
20539         * tests/test-lchown.h (test_chown): Relax test.
20540
20541         mkstemp: avoid conflict with C++ keyword template
20542         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
20543         * lib/mkostemp.c (mkostemp): Likewise.
20544         * lib/mkostemps.c (mkostemps): Likewise.
20545         * lib/mkstemp.c (mkstemp): Likewise.
20546         * lib/mkstemps.c (mkstemps): Likewise.
20547
20548         xalloc-die-tests: optimize
20549         * tests/test-xalloc-die.sh: Reduce number of processes.
20550
20551 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20552
20553         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
20554         patch from ludo@gnu.org (Ludovic Courtès).
20555
20556 2009-11-17  Jim Meyering  <meyering@redhat.com>
20557
20558         version-etc: use proper license string
20559         * modules/version-etc (License): Use LGPL, not LGPLv3+.
20560         * modules/version-etc-fsf: Likewise.
20561
20562 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20563
20564         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
20565         printed to stdout.  Deal with EOL differences.
20566
20567 2009-11-17  Eric Blake  <ebb9@byu.net>
20568
20569         unsetenv: work around Solaris bug
20570         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
20571         * lib/unsetenv.c (rpl_unsetenv): Work around it.
20572         Reported by Jim Meyering.
20573
20574         vasnprintf: avoid compiler warnings
20575         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
20576         variables.
20577         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
20578
20579 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20580
20581         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
20582         settings since xalloc-die is no longer the self test,
20583         xalloc-die.sh is.
20584
20585 2009-11-17  Jim Meyering  <meyering@redhat.com>
20586
20587         test-xalloc-die.sh: make the code agree with the commit log
20588         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
20589         at the end, just in case you happen to have a test-xalloc-die
20590         program in some other PATH directory.
20591
20592         test-xalloc-die.sh: fix a portability bug
20593         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
20594         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
20595         Otherwise, argv[0] (as often seen in diagnostics) would be too
20596         system-dependent, sometimes with, and sometimes without the leading "./".
20597
20598         version-etc-fsf: relax license to LGPLv3+
20599         * modules/version-etc-fsf (License): Relax license.
20600
20601 2009-11-16  Eric Blake  <ebb9@byu.net>
20602
20603         xalloc-die-tests: avoid printing null pointer
20604         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
20605         shell script.
20606         * tests/test-xalloc-die.c (program_name): Declare.
20607         * tests/test-xalloc-die.sh (tmpfiles): New file.
20608
20609         setenv, unsetenv: work around various bugs
20610         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
20611         (setenv) [HAVE_SETENV]: Work around bugs.
20612         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
20613         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
20614         for bugs.
20615         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
20616         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
20617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
20618         * modules/stdlib (Makefile.am): Update substitutions.
20619         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
20620         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
20621         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20622         * modules/setenv-tests: New test.
20623         * modules/unsetenv-tests: Likewise.
20624         * tests/test-setenv.c: New file.
20625         * tests/test-unsetenv.c: Likewise.
20626
20627 2009-11-16  Jim Meyering  <meyering@redhat.com>
20628
20629         version-etc: relax license to LGPLv3+
20630         * modules/version-etc (License): Relax license.
20631
20632         better AC_REQUIRE expanded-before-required-warning avoidance
20633         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
20634         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
20635         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
20636         which is no longer needed.
20637
20638 2009-11-16  Eric Blake  <ebb9@byu.net>
20639
20640         test-freading: clean up temporary file
20641         * tests/test-freading.c (main): Remove file on success, and use
20642         ASSERT more liberally.
20643         Reported by Jim Meyering.
20644
20645 2009-11-16  Jim Meyering  <meyering@redhat.com>
20646
20647         avoid new AC_REQUIRE expanded-before-required warnings
20648         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
20649         merely using it.
20650         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
20651         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
20652
20653 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20654
20655         * tests/test-xalloc-die.c: New file.
20656         * modules/xalloc-die-tests: New file.
20657         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
20658         XFAIL_TESTS so it can be appended by modules.
20659
20660 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20661
20662         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
20663         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
20664
20665 2009-11-14  Eric Blake  <ebb9@byu.net>
20666
20667         fnmatch: avoid compiler warning
20668         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
20669         to silence compiler warning about mismatch signedness in ?:.
20670         Reported by Robert Millan.
20671
20672         intprops: add double-inclusion guard
20673         * lib/intprops.h: Allow idempotent includes.
20674         Suggested by Bruce Korb.
20675
20676         openat: detect Solaris fchownat bug
20677         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
20678         penalizing glibc chownat when only lchownat is broken.
20679         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
20680         trailing slash bugs.
20681         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
20682         * modules/openat-tests (Files): Include more files.
20683         (Depends-on): Add mgetgroups, sleep, stat-time.
20684         (configure.ac): Add additional checks.
20685         (Makefile.am): Build new test.
20686         * tests/test-fchownat.c: New file.
20687
20688         lchown: detect Solaris and FreeBSD bug
20689         * lib/lchown.c (rpl_lchown): Work around bug.
20690         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
20691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20692         * modules/unistd (Makefile.am): Populate it.
20693         * lib/unistd.in.h (lchown): Update declaration.
20694         * doc/posix-functions/lchown.texi (lchown): Document the bug.
20695         * modules/lchown-tests: New file.
20696         * tests/test-lchown.h (test_lchown): Likewise.
20697         * tests/test-lchown.c (main): Likewise.
20698
20699         chown: detect Solaris and FreeBSD bug
20700         * lib/chown.c (rpl_chown): Work around bug.
20701         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
20702         (gl_PREREQ_CHOWN): Delete.
20703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20704         * modules/unistd (Makefile.am): Populate it.
20705         * lib/unistd.in.h (chown): Update declaration.
20706         * lib/lchown.c (chown): Update client.
20707         * modules/lchown (Depends-on): Add lstat.
20708         * doc/posix-functions/chown.texi (chown): Document the bug.
20709         * doc/posix-functions/getgroups.texi (getgroups): Document
20710         getgroups pitfall.
20711         * modules/chown-tests: New file.
20712         * tests/test-chown.h (test_chown): Likewise.
20713         * tests/test-chown.c (main): Likewise.
20714
20715 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
20716
20717         gnulib-tool: correctly detect absence of m4 directories
20718         * gnulib-tool: Avoid extra newline on data passed to wc -l.
20719
20720 2009-11-14  Jim Meyering  <meyering@redhat.com>
20721
20722         maint.mk: Prohibit inclusion of "xalloc.h" without use.
20723         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20724
20725 2009-11-14  John W. Eaton  <jwe@gnu.org>
20726
20727         strftime.h: wrap funtion declaration in extern "C" block
20728         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
20729
20730 2009-11-13  Eric Blake  <ebb9@byu.net>
20731
20732         getgroups: avoid compiler warning
20733         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
20734
20735         getgroups: work around FreeBSD bug
20736         * lib/getgroups.c (rpl_getgroups): Work around the bug.
20737         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
20738         * doc/posix-functions/getgroups.texi (getgroups): Document it.
20739         * tests/test-getgroups.c (main): Fix buffer overrun.
20740
20741         getgroups: avoid compilation failure
20742         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
20743         * modules/getgroups (Depends-on): Add stdint.
20744
20745 2009-11-13  Jim Meyering  <meyering@redhat.com>
20746
20747         test-getgroups: avoid compilation failure
20748         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
20749
20750 2009-11-13  Eric Blake  <ebb9@byu.net>
20751
20752         mgetgroups: new module, taken from coreutils
20753         * modules/mgetgroups: New file.
20754         * lib/mgetgroups.h: Likewise.
20755         * lib/mgetgroups.c (mgetgroups): Likewise.
20756         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
20757         * MODULES.html.sh (Users and groups): Mention it.
20758
20759         getgroups: don't expose GETGROUPS_T to user
20760         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
20761         an element at a time if GETGROUPS_T is wrong size.
20762         * lib/getugroups.h (getugroups): Change signature.
20763         * lib/unistd.in.h (getgroups): Likewise.
20764         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
20765         signature needs fixing.
20766         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
20767         AC_TYPE_GETGROUPS.
20768         * modules/group-member (Depends-on): Add getgroups.
20769         * lib/group-member.c (group_info, get_group_info): Use gid_t.
20770         (group_member): Rely on getgroups replacement.
20771         * lib/getugroups.c (getugroups): Use gid_t.
20772         * tests/test-getgroups.c (main): Likewise.
20773         * NEWS: Mention the signature change.
20774         * doc/posix-functions/getgroups.texi (getgroups): Mention the
20775         problem with signature.
20776         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
20777         GETGROUPS_T is still useful for setgroups.
20778
20779         getgroups, getugroups: provide stubs for mingw
20780         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
20781         * lib/getugroups.c (getugroups): Likewise.
20782         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
20783         function.  Modernize replacement scheme.
20784         (gl_PREREQ_GETGROUPS): Delete.
20785         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
20786         * modules/getgroups (configure.ac): Declare witness.
20787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20788         * modules/unistd (Depends-on): Substitute witness.
20789         * lib/unistd.in.h (getgroups): Declare replacement.
20790
20791         getgroups: avoid calling exit
20792         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
20793         drop xalloc.
20794         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
20795         dependencies.
20796         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
20797         exiting, in the rare case of malloc failure.
20798
20799         getgroups: fix logic error
20800         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
20801         has more than 20 groups.
20802         * modules/getgroups-tests: New test.
20803         * tests/test-getgroups.c: New file.
20804
20805 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20806
20807         * tests/test-base64.c: Improve.
20808
20809 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20810
20811         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
20812         Blake <ebb9@byu.net>.
20813
20814 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20815
20816         * tests/test-xvasprintf.c: Add %s%s related checks.
20817
20818 2009-11-12  Eric Blake  <ebb9@byu.net>
20819
20820         version-etc: match standards.texi style
20821         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
20822         and use <> only for URLs.
20823
20824 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
20825
20826         fts: do not fail on a submount during traversal
20827         * lib/fts.c (fts_build): Read the stat info again after opening
20828         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
20829         Original report at http://bugzilla.redhat.com/501848.
20830
20831 2009-11-12  Jim Meyering  <meyering@redhat.com>
20832
20833         bootstrap: sync from coreutils
20834         * build-aux/bootstrap (bootstrap_epilogue): New function.
20835         Use git_modules_config in one more place.  This make bootstrap's
20836         --gnulib-srcdir option more useful for testing.
20837
20838         bootstrap: generalize autoheader check
20839         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
20840         AC_CONFIG_HEADERS.
20841
20842 2009-11-11  Eric Blake  <ebb9@byu.net>
20843
20844         mkfifoat: use new modules for Solaris and BSD bugs
20845         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
20846         * lib/mkfifoat.c (mknodat): Split...
20847         * lib/mknodat.c (mknodat): ...into new file.
20848         * modules/mkfifoat (Files): Ship new file.
20849         (Depends-on): Add mkfifo, mknod.
20850         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
20851         (Depends-on): Add symlink.
20852         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
20853         redundant with test_mkfifo.h.
20854         (do_mkfifoat, do_mknodat): New helpers.
20855
20856         mknod: new module
20857         * modules/mknod: New file.
20858         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
20859         * lib/mknod.c (mknod): Likewise.
20860         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20861         defaults.
20862         * modules/sys_stat (Makefile.am): Substitute them.
20863         * lib/sys_stat.in.h (mknod): Declare replacement.
20864         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20865         Document it.
20866         * doc/posix-functions/mknod.texi (mknod): Likewise.
20867         * modules/mknod-tests: New test.
20868         * tests/test-mknod.c: Likewise.
20869
20870         mkfifo: new module
20871         * modules/mkfifo: New file.
20872         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20873         * lib/mkfifo.c (mkfifo): Likewise.
20874         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20875         defaults.
20876         * modules/sys_stat (Makefile.am): Substitute them.
20877         * lib/sys_stat.in.h (mkfifo): Declare replacement.
20878         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20879         Document it.
20880         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
20881         * modules/mkfifo-tests: New test.
20882         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
20883         from test-mkfifoat.c.
20884         * tests/test-mkfifo.c: New file.
20885
20886         readlink: detect FreeBSD bug
20887         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
20888         slash on symlink.
20889         * doc/posix-functions/readlink.texi (readlink): Document the bug.
20890         * tests/test-readlink.h (test_readlink): Enhance test.
20891
20892         symlink: detect FreeBSD bug
20893         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
20894         slash on symlink.
20895         * doc/posix-functions/symlink.texi (symlink): Document the bug.
20896         * tests/test-symlink.h (test_symlink): Enhance test.
20897
20898 2009-11-10  Eric Blake  <ebb9@byu.net>
20899
20900         link: detect FreeBSD bug
20901         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
20902         symlink.
20903         * doc/posix-functions/link.texi (link): Document the bug.
20904         * tests/test-link.h (test_link): Enhance test.
20905         * tests/test-linkat.c (main): Update caller.
20906
20907         unlink, remove: detect FreeBSD bug
20908         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
20909         slash on symlink.
20910         * doc/posix-functions/unlink.texi (unlink): Document the bug.
20911         * doc/posix-functions/remove.texi (remove): Likewise.
20912         * tests/test-unlink.h (test_unlink): Enhance test.
20913         * tests/test-remove.c (main): Likewise.
20914
20915 2009-11-09  Eric Blake  <ebb9@byu.net>
20916
20917         rename: detect FreeBSD bug
20918         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
20919         slash on symlink.
20920         * modules/renameat-tests (Depends-on): Add filenamecat.
20921         * tests/test-rename.h (test_rename): Allow one more errno.
20922         * tests/test-renameat.c (main): Likewise.
20923         * doc/posix-functions/rename.texi (rename): Document the bug.
20924
20925         open: detect FreeBSD bug
20926         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
20927         symlink.
20928         * doc/posix-functions/open.texi (open): Document the bug.
20929         * doc/posix-functions/utimes.texi (utimes): Likewise.
20930         * tests/test-open.h (test_open): Add parameters, and test symlink
20931         handling.
20932         * tests/test-open.c (main): Adjust caller.
20933         * tests/test-fcntl-safer.c (main): Likewise.
20934         * modules/open-tests (Depends-on): Add stdbool, symlink.
20935         * modules/fcntl-safer-tests (Depends-on): Likewise.
20936         * tests/test-openat.c (main): Add test-open tests.
20937
20938         stat: detect FreeBSD bug
20939         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
20940         symlink.
20941         * doc/posix-functions/stat.texi (stat): Document the bug.
20942         * tests/test-stat.h (test_stat_func): Add argument.
20943         * tests/test-stat.c (main): Adjust caller.
20944         * tests/test-fstatat.c (main): Likewise.
20945         * modules/stat-tests (Depends-on): Add stdbool, symlink.
20946         Reported by Jim Meyering.
20947
20948 2009-11-09  James Youngman  <jay@gnu.org>
20949
20950         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
20951         * lib/strftime.c: Correct placement of #include "ignore-value.h".
20952
20953 2009-11-08  Jim Meyering  <meyering@redhat.com>
20954
20955         utimens: remove invalid futimesat call
20956         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
20957         It used the file descriptor of the target file as the DIR_FD
20958         parameter and NULL as the file name.  That caused failure with
20959         errno == EFAULT on FreeBSD-8.0-rc2
20960
20961 2009-11-07  Eric Blake  <ebb9@byu.net>
20962
20963         fflush, freadseek: use fseeko, not fseek
20964         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20965         (clear_ungetc_buffer): Avoid potential problems on large files.
20966         * lib/freadseek.c (freadseek): Likewise.
20967         * modules/freadseek (Depends-on): Add fseeko.
20968         * modules/fseek (configure.ac): Set a witness.
20969         * tests/test-fflush.c (main): Use fseeko.
20970         * tests/test-fpurge.c (fseek): Disable link warning.
20971         * tests/test-freadable.c (fseek): Likewise.
20972         * tests/test-freading.c (fseek): Likewise.
20973         * tests/test-fseeko.c (fseek): Likewise.
20974         * tests/test-ftell.c (fseek): Likewise.
20975         * tests/test-ftello.c (fseek): Likewise.
20976         * tests/test-fwritable.c (fseek): Likewise.
20977         * tests/test-fwriting.c (fseek): Likewise.
20978
20979 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20980
20981         * modules/memchr (Depends-on): Drop getpagesize dependency.
20982
20983 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20984
20985         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
20986         Reported by Ludovic Courtès.
20987         * build-aux/pmccabe2html: Improve example usage.
20988         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
20989
20990 2009-11-06  Jim Meyering  <meyering@redhat.com>
20991
20992         do-release-commit-and-tag: New module.
20993         Automate the release-commit and tag process.
20994         * build-aux/do-release-commit-and-tag: New script, from coreutils.
20995         * modules/do-release-commit-and-tag: New file.
20996         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20997
20998 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20999
21000         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
21001         because test-select.c uses inet_pton.
21002
21003 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21004
21005         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
21006         GETADDRINFO_LIB.  Bump serial number.
21007         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
21008         Suggested by Eric Blake <ebb9@byu.net>.
21009
21010 2009-11-05  Eric Blake  <ebb9@byu.net>
21011
21012         strtod: detect darwin bug
21013         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
21014         Reported by Leo Davis.
21015
21016         freopen-safer: new module
21017         * modules/freopen-safer: New module.
21018         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
21019         * lib/freopen-safer.c (freopen_safer): New file.
21020         * lib/stdio-safer.h (freopen_safer): New declaration.
21021         * lib/stdio--.h (freopen): New override.
21022         * MODULES.html.sh (File stream based Input/Output): Mention it.
21023         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
21024         freopen-safer module.
21025         * doc/posix-functions/stderr.texi (stderr): Likewise.
21026         * doc/posix-functions/stdin.texi (stdin): Likewise.
21027         * doc/posix-functions/stdout.texi (stdout): Likewise.
21028         * modules/freopen-safer-tests: New test.
21029         * tests/test-reopen-safer.c: New file.
21030
21031 2009-11-05  Jim Meyering  <meyering@redhat.com>
21032
21033         maint.mk: Prohibit inclusion of "close-stream.h" without use.
21034         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21035
21036 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21037
21038         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
21039
21040 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21041
21042         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
21043
21044 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21045
21046         Fix link error.
21047         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21048         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21049
21050 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21051
21052         * tests/test-func.c: Also test value of __func__.
21053
21054 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21055
21056         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
21057         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
21058
21059 2009-11-05  Bruno Haible  <bruno@clisp.org>
21060
21061         Fix link error.
21062         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21063         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21064         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
21065
21066 2009-11-05  Bruno Haible  <bruno@clisp.org>
21067
21068         Tests for module 'inet_pton'.
21069         * modules/inet_pton-tests: New file.
21070         * tests/test-inet_pton.c: New file.
21071
21072 2009-11-05  Bruno Haible  <bruno@clisp.org>
21073
21074         Tests for module 'inet_ntop'.
21075         * modules/inet_ntop-tests: New file.
21076         * tests/test-inet_ntop.c: New file.
21077
21078 2009-11-04  Eric Blake  <ebb9@byu.net>
21079
21080         stdlib-safer: wrap all mkstemp variants
21081         * modules/mkostemp (configure.ac): Set witness.
21082         * modules/mkostemps (configure.ac): Likewise.
21083         * modules/mkstemps (configure.ac): Likewise.
21084         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
21085         (mkstemps_safer): Wrap more functions.
21086         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
21087         wrapping.
21088         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
21089         (mkstemps_safer): Implement the wrappers.
21090
21091         mkstemps, mkostemps: new modules
21092         * modules/mkostemps: New module.
21093         * modules/mkstemps: Likewise.
21094         * lib/mkostemps.c (mkostemps): New file.
21095         * lib/mkstemps.c (mkstemps): Likewise.
21096         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
21097         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
21098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
21099         * modules/stdlib (Makefile.am): Substitute them.
21100         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
21101         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
21102         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21103         * doc/gnulib.texi (Glibc stdlib.h): Include them.
21104         * MODULES.html.sh (File system functions): Mention them.
21105
21106         tempname: resync from glibc
21107         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
21108         same values for __GT_FILE as glibc.  Abort even when assertions
21109         are disabled.
21110         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
21111         match its value otherwise.  Allow idempotent inclusion.
21112         * lib/mkdtemp.c (mkdtemp): Adjust caller.
21113         * lib/mkostemp.c (mkostemp): Likewise.
21114         * lib/mkstemp.c (mkstemp): Likewise.
21115         * lib/tmpfile.c (tmpfile): Likewise.
21116         * NEWS: Document this.
21117
21118         utimens: fix use of futimens on older Linux
21119         * lib/utimens.c (fdutimens): Use updated, rather than original,
21120         timespec to avoid bug in older Linux kernel.
21121         Reported by Simon Josefsson.
21122
21123 2009-11-04  Bruno Haible  <bruno@clisp.org>
21124
21125         Make num_processors more flexible and consistent.
21126         * lib/nproc.h (enum nproc_query): New type.
21127         (num_processors): Add a 'query' argument.
21128         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
21129         (num_processors): Add a 'query' argument. Test the value of the
21130         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
21131         mingw, count the number of CPUs available for the current process.
21132         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
21133         Check for sched_getaffinity and sched_getaffinity_np.
21134         * modules/nproc (Depends-on): Add c-ctype, extensions.
21135         * NEWS: Mention the change.
21136
21137 2009-11-03  Bruno Haible  <bruno@clisp.org>
21138
21139         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
21140
21141 2009-11-03  Jim Meyering  <meyering@redhat.com>
21142
21143         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
21144         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
21145         if it is defined.
21146
21147 2009-11-02  Eric Blake  <ebb9@byu.net>
21148
21149         mktime, timegm: share common declaration
21150         * lib/mktime-internal.h: New file.
21151         * lib/mktime.c: Use it rather than open-coding a declaration.
21152         * lib/timegm.c: Likewise.
21153         * modules/mktime (Files): Ship it.
21154         * modules/timegm (Files): Likewise.
21155         Suggested by Bruno Haible.
21156
21157         test-update-copyright: update test to match script changes
21158         * tests/test-update-copyright.sh: Avoid hard-coding perl
21159         location.  Don't update *.bak created by earlier runs.
21160
21161 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21162             Simon Josefsson  <simon@josefsson.org>
21163             Bruno Haible  <bruno@clisp.org>
21164
21165         Fix link error on Solaris 8.
21166         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
21167         also in libnsl. Define also INET_PTON_LIB.
21168         * modules/inet_pton (Link): New section.
21169
21170 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21171             Bruno Haible  <bruno@clisp.org>
21172
21173         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
21174         * modules/inet_ntop (Link): New section.
21175         Reported by Boyan Kasarov <bkasarov@gmail.com>.
21176
21177 2009-11-02  Eric Blake  <ebb9@byu.net>
21178
21179         maint: avoid compiler warnings in m4 macros
21180         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
21181         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
21182
21183 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21184
21185         * m4/pmccabe2html.m4: Remove file.
21186         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
21187         function.  Change maintainer.
21188         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
21189         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
21190         Courtès).
21191
21192 2009-10-31  Eric Blake  <ebb9@byu.net>
21193
21194         fseeko: fix m4 regression
21195         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
21196         regression from 2009-10-27.
21197         Reported by Ralf Wildenhues.
21198
21199 2009-10-31  Jim Meyering  <meyering@redhat.com>
21200
21201         inttostr: aesthetics and improved (compile-time) safety
21202         Define inttype_is_signed rather than inttype_is_unsigned,
21203         since the sole use is via "#if inttype_is_signed".
21204         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
21205         inttype_is_unsigned.
21206         * lib/offtostr.c (inttype_is_signed): Likewise.
21207         * lib/uinttostr.c (inttype_is_signed): Likewise.
21208         * lib/umaxtostr.c (inttype_is_signed): Likewise.
21209         * lib/inttostr.c (inttostr): Use verify to cross-check the
21210         inttype_is_signed value and the signedness of the actual type.
21211         * modules/inttostr (Depends-on): Add verify.
21212
21213 2009-10-30  Eric Blake  <ebb9@byu.net>
21214
21215         build: avoid compiler warnings
21216         * lib/fchmodat.c (lchmod): Mark unused variables.
21217         * lib/getopt.c (_getopt_initialize): Likewise.
21218         * lib/mktime.c (__mktime_internal): Provide prototype.
21219         * lib/inttostr.c (inttostr): Avoid compiler warning even with
21220         older gcc that do not understand #pragma GCC diagnostic.
21221         * lib/uinttostr.c (inttype_is_unsigned): Define.
21222         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
21223
21224 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21225
21226         stat: fix compilation on AIX
21227         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
21228         only see struct stat64.
21229
21230 2009-10-30  Eric Blake  <ebb9@byu.net>
21231
21232         exclude: make more robust
21233         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
21234         rather than masking a coding bug.
21235         Suggested by Bruno Haible.
21236
21237 2009-10-30  Jim Meyering  <meyering@redhat.com>
21238
21239         perl scripts: remove #!/usr/bin/perl in favor of more portable...
21240         Rather than putting #!/usr/bin/perl on the first line,
21241         start with a variant of what's recommended by "man perlrun" that
21242         invokes the first "perl" program from your shell's search path.
21243         * build-aux/gitlog-to-changelog: Replace #!... as above.
21244         Add a "Local Variables" perl mode setting.
21245         Prompted by a patch from Ludovic Courtès.
21246         Improved by Eric Blake.
21247         * build-aux/useless-if-before-free: Likewise.
21248         * build-aux/announce-gen: Likewise.
21249         * build-aux/update-copyright: Likewise.
21250
21251 2009-10-29  Eric Blake  <ebb9@byu.net>
21252
21253         filenamecat-lgpl: adjust clients
21254         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
21255         filenamecat.
21256         * modules/renameat (Depends-on): Likewise.
21257
21258         filenamecat: split into filenamecat-lgpl
21259         * modules/filenamecat-lgpl: New module.
21260         * modules/filenamecat (Files): Move library-safe files into
21261         filenamecat-lgpl.
21262         (Depends-on): Add filenamecat-lgpl.
21263         (configure.ac): Declare witness.
21264         * lib/filenamecat.h (file_name_concat): Only declare when using
21265         GPL module.
21266         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
21267         Move...
21268         * lib/filenamecat-lgpl.c: ...into new file.
21269         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
21270         (gl_FILE_NAME_CONCAT): Use it.
21271         * MODULES.html.sh (File system functions): Mention new module.
21272
21273         argp: avoid memory leak
21274         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
21275         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
21276         base_name, since the latter malloc()s and can call exit().
21277         Leak introduced 2006-07-03.
21278
21279         dirname-lgpl: adjust clients that don't need full dirname
21280         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
21281         * modules/filenamecat (Depends-on): Likewise.
21282         * modules/linkat (Depends-on): Likewise.
21283         * modules/mkancesdirs (Depends-on): Likewise.
21284         * modules/mkdir (Depends-on): Likewise.
21285         * modules/openat (Depends-on): Likewise.
21286         * modules/savewd (Depends-on): Likewise.
21287         * modules/rename (Depends-on): Likewise.
21288         (License): Relax license.
21289         * modules/mkdir-tests (Depends-on): Drop progname.
21290         (Makefile.am): Delete unneeded LDADD.
21291         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
21292
21293         dirname: split into dirname-lgpl
21294         * modules/dirname-lgpl: New module.
21295         * modules/dirname (Files): Move library-safe files into
21296         dirname-lgpl.
21297         (Depends-on): Add dirname-lgpl.
21298         (configure.ac): Declare witness.
21299         * modules/double-slash-root (License): Relax license.
21300         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
21301         module.
21302         * lib/dirname.c (dir_len, mdir_name): Move...
21303         * lib/dirname-lgpl.c: ...into new file.
21304         * lib/basename.c (last_component, base_len): Move...
21305         * lib/basename-lgpl.c: ...into new file.
21306         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
21307         (gl_DIRNAME): Use it.
21308         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
21309         Mention new module.
21310         * modules/dirname-tests (Depends-on): Add progname.
21311         * tests/test-dirname.c (program_name): Delete.
21312
21313         mkdir: make safe for libraries
21314         * modules/mkdir (Depends-on): Drop xalloc.
21315         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
21316         exit.
21317
21318         tests: avoid some compiler warnings
21319         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
21320         literals.
21321         * tests/test-memchr.c (main): Avoid type mismatch.
21322         * tests/test-arpa_inet.c (main): Avoid unused parameters.
21323         * tests/test-base64.c (main): Likewise.
21324         * tests/test-getdelim.c (main): Likewise.
21325         * tests/test-gethostname.c (main): Likewise.
21326         * tests/test-getline.c (main): Likewise.
21327         * tests/test-netinet_in.c (main): Likewise.
21328         * tests/test-select.c (open_server_socket, main): Likewise.
21329         * tests/test-select-stdin.c (main): Likewise.
21330         * tests/test-sockets.c (main): Likewise.
21331         * tests/test-strsignal.c (main): Likewise.
21332         * tests/test-sys_select.c (main): Likewise.
21333         * tests/test-sys_socket.c (main): Likewise.
21334         * tests/test-u64.c (main): Likewise.
21335         * tests/test-xfprintf-posix.c (main): Likewise.
21336         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
21337
21338         sockets: avoid compiler warning
21339         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
21340
21341         maint: detect usage(1) and other suspicious exits
21342         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
21343
21344 2009-10-29  Jim Meyering  <meyering@redhat.com>
21345
21346         timespec: long-to-int truncation could make timespec_cmp malfunction
21347         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
21348         a multiple of 2^32 nanoseconds as no difference.
21349
21350 2009-10-28  Jim Meyering  <meyering@redhat.com>
21351
21352         fprintftime: wrap macro code argument in "do {...} while(0)"
21353         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
21354         cpy macro must be a statement that can be followed by a semicolon.
21355         Now that the else clause contains a comment and is hence longer
21356         than one line, I require curly braces.  That in turn requires
21357         that we wrap this code block in the standard do...while(0).
21358
21359         fprintftime: remove stray semicolon from previous change
21360         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
21361
21362         fprintftime: avoid a warning about ignored fwrite return value
21363         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
21364         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
21365         that is unsafe.
21366         * modules/fprintftime (Depends-on): Add ignore-value.
21367
21368         exclude: avoid an unwarranted warning
21369         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
21370
21371 2009-10-27  Eric Blake  <ebb9@byu.net>
21372
21373         fseek: avoid compilation failure when fflush is replaced
21374         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
21375         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
21376         module is in use.
21377         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
21378         module is not in use; since REPLACE_FSEEK worked otherwise.
21379         (GNULIB_FTELLO): Likewise for ftell.
21380         Reported by Ian Beckwith and others.
21381
21382 2009-10-27  Bruno Haible  <bruno@clisp.org>
21383
21384         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
21385         Reported by Jim Meyering.
21386
21387 2009-10-27  Jim Meyering  <jim@meyering.net>
21388             Bruno Haible  <bruno@clisp.org>
21389
21390         Avoid warning despite dropping the return value of fwrite.
21391         * lib/unicodeio.c: Include ignore-value.h.
21392         (fwrite_success_callback): Explicitly ignore fwrite's return value.
21393         * modules/unicodeio (Depends-on): Add ignore-value.
21394
21395 2009-10-26  Eric Blake  <ebb9@byu.net>
21396
21397         areadlinkat: fix fallback path
21398         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
21399         pointer and zero.
21400
21401 2009-10-22  Pádraig Brady  <P@draigBrady.com>
21402
21403         Use a better IO block size for modern systems
21404         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
21405         * lib/md2.c: Likewise.
21406         * lib/md4.c: Likewise.
21407         * lib/md5.c: Likewise.
21408         * lib/sha1.c: Likewise.
21409         * lib/sha256.c: Likewise.
21410         * lib/sha512.c: Likewise.
21411
21412 2009-10-22  Eric Blake  <ebb9@byu.net>
21413
21414         tests: avoid several compiler warnings
21415         * tests/test-getcwd.c (main): Avoid buffer underflow.
21416         * tests/test-getdate.c (main): String literals are not safe with
21417         putenv, so use setenv.  Declare unused argument.
21418         * modules/getdate-tests (Depends-on): Add setenv.
21419         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
21420         problems with string literals in char *.
21421         * tests/test-hash.c (main): Avoid shadowing declaration.
21422         (insert_new): Treat string literals as char const *.
21423         * tests/test-getopt.h (test_getopt): Likewise.
21424         (getopt_loop): Alter types to minimize casting elsewhere.
21425         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
21426         (test_getopt_long_posix): Likewise.
21427         (do_getopt_long): Add wrapper to minimize casting.
21428         * tests/test-atexit.c (clear_temp_file): Use void.
21429         * tests/test-areadlink-with-size.c (main): Declare unused
21430         arguments.
21431         * tests/test-areadlink.c (main): Likewise.
21432         * tests/test-areadlinkat-with-size.c (main): Likewise.
21433         * tests/test-areadlinkat.c (main): Likewise.
21434         * tests/test-canonicalize-lgpl.c (main): Likewise.
21435         * tests/test-canonicalize.c (main): Likewise.
21436         * tests/test-dirent-safer.c (main): Likewise.
21437         * tests/test-dirname.c (main): Likewise.
21438         * tests/test-dup2.c (main): Likewise.
21439         * tests/test-fchdir.c (main): Likewise.
21440         * tests/test-fcntl-h.c (main): Likewise.
21441         * tests/test-fcntl-safer.c (main): Likewise.
21442         * tests/test-fdopendir.c (main): Likewise.
21443         * tests/test-fdutimensat.c (main): Likewise.
21444         * tests/test-fflush.c (main): Likewise.
21445         * tests/test-filenamecat.c (main): Likewise.
21446         * tests/test-filevercmp.c (main): Likewise.
21447         * tests/test-fopen-safer.c (main): Likewise.
21448         * tests/test-fopen.c (main): Likewise.
21449         * tests/test-fpending.c (main): Likewise.
21450         * tests/test-fpurge.c (main): Likewise.
21451         * tests/test-freading.c (main): Likewise.
21452         * tests/test-fstatat.c (main): Likewise.
21453         * tests/test-fsync.c (main): Likewise.
21454         * tests/test-futimens.c (main): Likewise.
21455         * tests/test-getndelim2.c (main): Likewise.
21456         * tests/test-gettimeofday.c (main): Likewise.
21457         * tests/test-getopt.c (main): Likewise.
21458         * tests/test-i-ring.c (main): Likewise.
21459         * tests/test-inttypes.c (main): Likewise.
21460         * tests/test-link.c (main): Likewise.
21461         * tests/test-lstat.c (main): Likewise.
21462         * tests/test-math.c (main): Likewise.
21463         * tests/test-md5.c (main): Likewise.
21464         * tests/test-memchr2.c (main): Likewise.
21465         * tests/test-memrchr.c (main): Likewise.
21466         * tests/test-mkdir.c (main): Likewise.
21467         * tests/test-mkdirat.c (main): Likewise.
21468         * tests/test-mkfifoat.c (main): Likewise.
21469         * tests/test-open.c (main): Likewise.
21470         * tests/test-openat-safer.c (main): Likewise.
21471         * tests/test-openat.c (main): Likewise.
21472         * tests/test-quotearg.c (main): Likewise.
21473         * tests/test-rawmemchr.c (main): Likewise.
21474         * tests/test-readlink.c (main): Likewise.
21475         * tests/test-remove.c (main): Likewise.
21476         * tests/test-rename.c (main): Likewise.
21477         * tests/test-renameat.c (main): Likewise.
21478         * tests/test-rmdir.c (main): Likewise.
21479         * tests/test-sha1.c (main): Likewise.
21480         * tests/test-signal.c (main): Likewise.
21481         * tests/test-sigaction.c (main): Likewise.
21482         * tests/test-stat.c (main): Likewise.
21483         * tests/test-stat-time.c (main): Likewise.
21484         * tests/test-stddef.c (main): Likewise.
21485         * tests/test-stdint.c (main): Likewise.
21486         * tests/test-stdio.c (main): Likewise.
21487         * tests/test-stdlib.c (main): Likewise.
21488         * tests/test-strchrnul.c (main): Likewise.
21489         * tests/test-strerror.c (main): Likewise.
21490         * tests/test-string.c (main): Likewise.
21491         * tests/test-strtod.c (main): Likewise.
21492         * tests/test-strverscmp.c (main): Likewise.
21493         * tests/test-symlink.c (main): Likewise.
21494         * tests/test-symlinkat.c (main): Likewise.
21495         * tests/test-sys_stat.c (main): Likewise.
21496         * tests/test-sys_time.c (main): Likewise.
21497         * tests/test-time.c (main): Likewise.
21498         * tests/test-unistd.c (main): Likewise.
21499         * tests/test-unlink.c (main): Likewise.
21500         * tests/test-unlinkat.c (main): Likewise.
21501         * tests/test-utimens.c (main): Likewise.
21502         * tests/test-utimensat.c (main): Likewise.
21503         * tests/test-version-etc.c (main): Likewise.
21504         * tests/test-wchar.c (main): Likewise.
21505         * tests/test-wctype.c (main): Likewise.
21506         * tests/test-xprintf-posix.c (main): Likewise.
21507         * tests/test-posixtm.c (main): Likewise.
21508         (STREQ): Delete unused macro.
21509         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
21510         shadowed variables.
21511         * tests/test-memchr.c (main): Likewise.
21512
21513 2009-10-21  Eric Blake  <ebb9@byu.net>
21514
21515         areadlinkat: avoid failure on older glibc
21516         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
21517         rather than mis-comparing 0 against FUNC_RESULT of char*.
21518
21519 2009-10-21  Bruno Haible  <bruno@clisp.org>
21520
21521         * modules/stpncpy (License): Relicense under LGPLv2+.
21522         Reported by David Lutterkort <lutter@redhat.com>.
21523
21524 2009-10-20  Eric Blake  <ebb9@byu.net>
21525
21526         utimensat: work around Solaris 9 bug
21527         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
21528         has trailing slash bugs.
21529         * tests/test-lutimens.h (test_lutimens): Enhance test.
21530         * tests/test-utimens.h (test_utimens): Likewise.
21531         * doc/posix-functions/utime.texi (utime): Enhance documentation.
21532         * doc/posix-functions/utimes.texi (utimes): Likewise.
21533         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21534         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
21535         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
21536         * doc/posix-functions/futimens.texi (futimens): Likewise.
21537
21538         fdutimensat: new module
21539         * modules/fdutimensat: New file.
21540         * lib/fdutimensat.c (fdutimensat): Likewise.
21541         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
21542         * MODULES.html.sh (File system functions): Mention module.
21543         * modules/fdutimensat-tests: New test.
21544         * tests/test-fdutimensat.c: Likewise.
21545
21546         doc: regenerate INSTALL
21547         * doc/INSTALL: Reflect recent autoconf update.
21548         * doc/INSTALL.ISO: Likewise.
21549         * doc/INSTALL.UTF-8: Likewise.
21550
21551 2009-10-20  Pádraig Brady  <P@draigBrady.com>
21552
21553         acl: warn if ACL support is not detected
21554         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
21555
21556 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
21557
21558         * lib/nproc.h: Add extern "C" block for C++.
21559
21560 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
21561             Bruno Haible  <bruno@clisp.org>
21562
21563         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
21564         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
21565         * doc/posix-functions/isalpha.texi: Likewise.
21566         * doc/posix-functions/isblank.texi: Likewise.
21567         * doc/posix-functions/iscntrl.texi: Likewise.
21568         * doc/posix-functions/isdigit.texi: Likewise.
21569         * doc/posix-functions/isgraph.texi: Likewise.
21570         * doc/posix-functions/islower.texi: Likewise.
21571         * doc/posix-functions/isprint.texi: Likewise.
21572         * doc/posix-functions/ispunct.texi: Likewise.
21573         * doc/posix-functions/isspace.texi: Likewise.
21574         * doc/posix-functions/isupper.texi: Likewise.
21575         * doc/posix-functions/isxdigit.texi: Likewise.
21576
21577 2009-10-18  Bruno Haible  <bruno@clisp.org>
21578
21579         Tests for module 'isblank'.
21580         * modules/isblank-tests: New file.
21581         * tests/test-isblank.c: New file.
21582
21583         New module 'isblank'.
21584         * lib/isblank.c: New file.
21585         * m4/isblank.m4: New file.
21586         * modules/isblank: New file.
21587         * doc/posix-functions/isblank.texi: Mention the new module.
21588
21589 2009-10-18  Bruno Haible  <bruno@clisp.org>
21590
21591         New module 'ctype'.
21592         * lib/ctype.in.h: New file.
21593         * m4/ctype.m4: New file.
21594         * modules/ctype: New file.
21595         * doc/posix-headers/ctype.texi: Mention the new module.
21596
21597 2009-10-18  Jim Meyering  <meyering@redhat.com>
21598
21599         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
21600         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
21601         right after its initialization, rather than farther down.
21602         Keeping these in close proximity makes it easier to ensure
21603         that each such variable is initialized.  E.g.,
21604
21605             LIB_CLOCK_GETTIME=
21606             AC_SUBST([LIB_CLOCK_GETTIME])
21607
21608         This change also increments these serial numbers.
21609         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
21610         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21612
21613 2009-10-18  Bruno Haible  <bruno@clisp.org>
21614
21615         Don't let environment variables perturb build.
21616         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
21617         (gl_PREREQ_GETHRXTIME): ... not here.
21618
21619 2009-10-18  Bruno Haible  <bruno@clisp.org>
21620
21621         Avoid symlink attack in localcharset module.
21622         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
21623         (O_NOFOLLOW): Define fallback.
21624         (get_charset_aliases): Don't open the file if it is a symbolic link.
21625         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
21626         gl_FCNTL_H.
21627         (gl_FCNTL_H): Require it.
21628         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
21629         * modules/localcharset (Files): Add m4/fcntl_h.m4.
21630         Reported by Fergal Glynn <fglynn@veracode.com>.
21631
21632 2009-10-18  Bruno Haible  <bruno@clisp.org>
21633
21634         Implement nproc for mingw.
21635         * lib/nproc.c: Include <windows.h>
21636         (num_processors): On native Windows platforms, try GetSystemInfo.
21637
21638 2009-10-18  Bruno Haible  <bruno@clisp.org>
21639
21640         Implement nproc for IRIX.
21641         * lib/nproc.c: Include <sys/sysmp.h>.
21642         (num_processors): On IRIX systems, try sysmp.
21643         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
21644
21645 2009-10-18  Bruno Haible  <bruno@clisp.org>
21646
21647         Implement nproc for HP-UX.
21648         * lib/nproc.c: Include <sys/pstat.h>
21649         (num_processors): On HP-UX systems, try pstat_getdynamic.
21650         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
21651         pstat_getdynamic.
21652
21653 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
21654             Bruno Haible  <bruno@clisp.org>
21655
21656         Implement nproc for NetBSD, OpenBSD.
21657         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
21658         (ARRAY_SIZE): New macro.
21659         (num_processors): On BSD systems, try sysctl of HW_NCPU.
21660         * m4/nproc.m4: New file.
21661         * modules/nproc (Files): Add m4/nproc.m4.
21662         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
21663         (Makefile.am): Instead, augment lib_SOURCES.
21664
21665 2009-10-18  Bruno Haible  <bruno@clisp.org>
21666
21667         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
21668         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
21669         sys/param.h.
21670
21671 2009-10-16  Eric Blake  <ebb9@byu.net>
21672
21673         utimensat: new module
21674         * modules/utimensat: New file.
21675         * lib/utimensat.c (utimensat): Likewise.
21676         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21677         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
21678         so we can work around Linux bugs.
21679         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21680         * modules/sys_stat (Makefile.am): Substitute them.
21681         * lib/sys_stat.in.h (utimensat): Declare it.
21682         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21683         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21684         * modules/utimensat-tests: New test.
21685         * tests/test-utimensat.c: Likewise.
21686
21687         utimens: let lutimens work on non-symlinks
21688         * lib/utimens.c (lutimens): Fall back to utimens rather than
21689         failing with ENOSYS, when file is not a symlink.
21690         (utimens): Reduce redirection.
21691         * tests/test-lutimens.h (test_lutimens): Update test to cover
21692         non-symlinks.
21693         * tests/test-utimens.h (test_utimens): Update test to cover
21694         symlinks.
21695         * tests/test-utimens.c (main): Update caller.
21696
21697         utimens: cache whether utimensat syscall works
21698         * lib/utimens.c (utimensat_works_really): New cache variable.
21699         (fdutimens, lutimens): Use it to avoid failing syscall.
21700
21701         test-stat-time, test-utimens: improve portability
21702         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
21703         ext4 on alpha, and for cygwin.
21704         * tests/test-utimens-common.h: New file.
21705         (nap): Factor delays into single function.
21706         * tests/test-lutimens.h (test_lutimens): Use new header.
21707         * tests/test-futimens.h (test_futimens): Likewise.
21708         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
21709         timestamps to occur from same machine, as was done previously for
21710         test_utimens.
21711         * modules/utimens-tests (Files): Ship new file.
21712         * modules/futimens-tests (Files): Likewise.
21713         Reported in part by Jim Meyering.
21714
21715         sys_stat: sort replacement declarations
21716         * lib/sys_stat.in.h: Sort declarations.
21717         * lib/futimens.c (futimens): Fix typo.
21718
21719 2009-10-15  Jim Meyering  <meyering@redhat.com>
21720
21721         don't let environment settings perturb build
21722         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
21723         could cause a configure-time and/or build-time malfunction.
21724         Typically, a configure-time function-in-library test is performed
21725         via code like this:
21726
21727           LIB_VAR=
21728           AC_SUBST([LIB_VAR])
21729           prefix_saved_LIBS=$LIBS
21730             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
21731                        [test "$ac_cv_search_FUNC" = "none required" ||
21732                         LIB_VAR=$ac_cv_search_FUNC])
21733           LIBS=$prefix_saved_LIBS
21734
21735         However, in each of the files affected by this change, the LIB_VAR=
21736         initialization was omitted.  Thus, when set in the environment, its
21737         value would propagate into generated Makefiles when FUNC is not found
21738         in LIB_NAME.
21739         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
21740         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21742
21743 2009-10-14  Eric Blake  <ebb9@byu.net>
21744
21745         fchdir: avoid infinite recursion in mingw
21746         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
21747         recursing.
21748
21749         test-stat-time: port to mingw
21750         * tests/test-stat-time.c (force_unlink): Return a value.
21751         (test_ctime) [W32]: Fix compilation error.
21752         (nap): Don't call usleep with too large an argument.  Use
21753         force_unlink.
21754         * doc/pastposix-functions/usleep.texi (usleep): Document the
21755         portability issue.
21756
21757 2009-10-13  Jim Meyering  <meyering@redhat.com>
21758
21759         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
21760         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
21761         * modules/pipe-filter-ii: Likewise.
21762         * modules/sys_socket-tests: Likewise.
21763         * modules/tsearch-tests: Likewise.
21764         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
21765         (check): Depend on it.
21766
21767 2009-10-12  Eric Blake  <ebb9@byu.net>
21768
21769         utimens-tests: port to NFS file systems
21770         * tests/test-utimens.h (test_utimens): Refactor utimecmp
21771         comparisons to avoid spurious failures from timestamp drift
21772         between NFS machines.
21773
21774 2009-10-12  Eric Blake  <ebb9@byu.net>
21775
21776         stat-time-tests: minor cleanups
21777         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
21778         * tests/test-stat-time.c (nap): Separate assignment from call.
21779         Suggested by Paolo Bonzini and Bruno Haible.
21780
21781         sys_stat: guarantee struct timespec
21782         * lib/sys_stat.in.h (includes): Always include <time.h>
21783         * modules/sys_stat (Depends-on): Add time.
21784         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
21785         mode_t permission values.
21786         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
21787         get at subsecond timestamps.
21788
21789 2009-10-10  Eric Blake  <ebb9@byu.net>
21790
21791         futimens: new module
21792         * modules/futimens: New file.
21793         * lib/futimens.c (futimens): Likewise.
21794         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
21795         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
21796         we can work around Linux bugs.
21797         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21798         * modules/sys_stat (Makefile.am): Substitute them.
21799         * lib/sys_stat.in.h (futimens): Declare it.
21800         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21801         * doc/posix-functions/futimens.texi (futimens): Likewise.
21802         * modules/futimens-tests: New test.
21803         * tests/test-futimens.c: Likewise.
21804
21805         utimens: introduce fdutimens
21806         * lib/utimens.h (fdutimens): New prototype.
21807         * lib/utimens.c (gl_futimens): Move guts...
21808         (fdutimens): ...to new interface.
21809         * tests/test-utimens.c (do_fdutimens): Use it.
21810
21811         utimens: add UTIME_NOW and UTIME_OMIT support
21812         * lib/utimens.c (validate_timespec, update_timespec): New helper
21813         functions.
21814         (gl_futimens, lutimens): Use them.
21815         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
21816         stdbool, sys_stat.
21817         (Link): Mention resulting library dependency.
21818         * modules/utimecmp (Link): Likewise.
21819         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
21820         (Makefile.am): Pick up library dependency.
21821         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
21822         definition.
21823         * tests/test-sys_stat.c: Test the definitions.
21824         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
21825         * NEWS: Document library dependency.
21826
21827         utimecmp: support symlink timestamps
21828         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
21829         hashing when possible.  Use pathconf when available.
21830         (SYSCALL_RESOLUTION): Recognize tighter resolution.
21831         * modules/utimecmp (Depends-on): Add lstat.
21832
21833         utimens: add lutimens interface
21834         * lib/utimens.c (lutimens): New function.
21835         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
21836         * lib/utimens.h (lutimens): Declare new interface.
21837         * tests/test-utimens.c (main): Enhance test.
21838         * tests/test-lutimens.h (test_lutimens): New file.
21839         * modules/utimens-tests (Files): Distribute it.
21840         (Depends-on): Add symlink.
21841         (configure.ac): Check for usleep.
21842
21843         utimens: validate futimens usage
21844         * lib/utimens.c (gl_futimens): Require valid fd up front, using
21845         fewer syscalls on failure later on.  Avoid compiler warning on
21846         mingw.
21847         * modules/utimens (Depends-on): Add dup2.
21848
21849         utimens: add test
21850         * modules/utimens-tests: New test.
21851         * tests/test-utimens.h: New file.
21852         * tests/test-futimens.h: Likewise.
21853         * tests/test-utimens.c: Likewise.
21854
21855         doc: mention timestamp portability issues
21856         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
21857         instead.
21858         * doc/posix-functions/utime.texi (utime): Likewise.
21859         * doc/posix-functions/utimes.texi (utimes): Likewise.
21860         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
21861         instead.
21862         * doc/posix-functions/futimens.texi (futimens): Mention utimens
21863         module.
21864         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21865         Mention weakness with symlink timestamps.
21866         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
21867         to utimensat/futimens instead.
21868         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
21869
21870         test-dup2: enhance test
21871         * tests/test-dup2.c (main): Also check AT_FDCWD.
21872
21873         test-stat-time: avoid more spurious failures
21874         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
21875         xfs; and avoid race if the two timestamps cross quantization edge.
21876
21877         relocatable: prefer 'file system' over 'filesystem'
21878         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
21879         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
21880         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
21881         * doc/relocatable.texi (Enabling Relocatability): Likewise.
21882         * lib/relocatable.c (compute_curr_prefix): Likewise.
21883
21884 2009-10-10  Jim Meyering  <meyering@redhat.com>
21885
21886         stat-time-tests: check for the usleep function
21887         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
21888
21889 2009-10-10  Bruno Haible  <bruno@clisp.org>
21890
21891         * modules/xnanosleep: Put the Link section after the Include section.
21892
21893 2009-10-09  Eric Blake  <ebb9@byu.net>
21894
21895         dup2: work around FreeBSD 6.1 bug
21896         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
21897         * doc/posix-functions/dup2.texi (dup2): Document it.
21898         Reported by Nelson H. F. Beebe and Jim Meyering.
21899
21900         test-stat-time: port to buggy NFS clients
21901         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
21902         (test_ctime): Also skip test if mtime and ctime are skewed.
21903
21904         maint: prefer 'file system' over 'filesystem'
21905         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
21906         * doc/posix-functions/lstat.texi (lstat): Likewise.
21907         * lib/file-has-acl.c (file_has_acl): Likewise.
21908         * lib/fwriteerror.c [TEST]: Likewise.
21909         * tests/test-areadlink.h (test_areadlink): Likewise.
21910         * tests/test-areadlinkat-with-size.c (main): Likewise.
21911         * tests/test-areadlinkat.c (main): Likewise.
21912         * tests/test-canonicalize-lgpl.c (main): Likewise.
21913         * tests/test-canonicalize.c (main): Likewise.
21914         * tests/test-fstatat.c (main): Likewise.
21915         * tests/test-linkat.c (main): Likewise.
21916         * tests/test-lstat.h (test_lstat_func): Likewise.
21917         * tests/test-mkdir.h (test_mkdir): Likewise.
21918         * tests/test-readlink.h (test_readlink): Likewise.
21919         * tests/test-remove.c (main): Likewise.
21920         * tests/test-rename.h (test_rename): Likewise.
21921         * tests/test-renameat.c (main): Likewise.
21922         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21923         * tests/test-symlink.h (test_symlink): Likewise.
21924         * tests/test-symlinkat.c (main): Likewise.
21925         * tests/test-unlink.h (test_unlink_func): Likewise.
21926         * tests/test-unlinkat.c (main): Likewise.
21927
21928         maint: make realtime library usage explicit
21929         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
21930         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
21931         * modules/settime (Link): Likewise.
21932         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
21933
21934         test-stat-time: speed up execution
21935         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
21936         warning on mingw.
21937         (nap): New helper function.
21938         (prepare_test): Use it to reduce sleep time.
21939         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
21940         execution.
21941         * modules/stat-time-tests (configure.ac): Check for usleep.
21942
21943 2009-10-09  Jim Meyering  <meyering@redhat.com>
21944
21945         selinux-h: always use getfilecon wrappers
21946         * lib/getfilecon.c: New file.
21947         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
21948         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
21949         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
21950         (fgetfilecon): Provide a stub.
21951         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
21952         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
21953         file unconditionally.
21954         When <selinux/selinux.h> is found, arrange to use wrappers.
21955         * modules/selinux-h (Files): Add getfilecon.c.
21956         (Makefile.am): Substitute include-next-related bits
21957         into the now-always-generated selinux/selinux.h file.
21958         * doc/glibc-functions/lgetfilecon.texi: New file.
21959         * doc/glibc-functions/fgetfilecon.texi: New file.
21960         * doc/glibc-functions/getfilecon.texi: New file.
21961         * doc/glibc-functions/getfilecon-desc.texi: New file.
21962         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
21963         which to pull in the new files.
21964         * MODULES.html.sh (Misc): Add selinux-h.
21965
21966 2009-10-08  Jim Meyering  <meyering@redhat.com>
21967
21968         unistd: fix comment typo
21969         * lib/unistd.in.h (euidaccess): Fix a comment typo.
21970
21971 2009-10-08  Eric Blake  <ebb9@byu.net>
21972
21973         areadlink: use SIZE_MAX consistently
21974         * modules/areadlink (Depends-on): Add stdint.
21975         * modules/areadlink-with-size (Depends-on): Likewise.
21976         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
21977         gives NULL; drop sys/types, since unistd gives size_t; and add
21978         stdint for SIZE_MAX.
21979         (SIZE_MAX): Rely on headers.
21980         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
21981         and add stdint.
21982         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
21983         (SIZE_MAX): Likewise.
21984         (INITIAL_BUF_SIZE): Turn into enum.
21985         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
21986
21987 2009-10-08  Jim Meyering  <meyering@redhat.com>
21988
21989         areadlinkat: avoid compilation failure
21990         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
21991         Fix typo in comment.
21992
21993 2009-10-07  Eric Blake  <ebb9@byu.net>
21994
21995         areadlinkat-with-size: new module
21996         * modules/areadlinkat-with-size: New module.
21997         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
21998         * lib/areadlink.h (areadlinkat): Declare it.
21999         * MODULES.html.sh (File system functions): Mention it.
22000         * modules/areadlinkat-with-size-tests: New test.
22001         * tests/test-areadlinkat-with-size.c: New file.
22002
22003         xreadlinkat: new module
22004         * modules/xreadlinkat: New module.
22005         * lib/xreadlinkat.c (xreadlinkat): New file.
22006         * lib/xreadlink.h (xreadlinkat): Declare it.
22007         * MODULES.html.sh (File system functions): Mention it.
22008
22009         areadlinkat: new module
22010         * lib/at-func.c (FUNC_FAIL): New define.
22011         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
22012         * modules/areadlinkat: New module.
22013         * lib/linkat.c (areadlinkat): Move...
22014         * lib/areadlinkat.c (areadlinkat): ...to new file.
22015         * lib/areadlink.h (areadlinkat): Declare it.
22016         * modules/linkat (Depends-on): Add areadlinkat.
22017         * MODULES.html.sh (File system functions): Mention it.
22018         * modules/areadlinkat-tests: New test.
22019         * tests/test-areadlinkat.c: New file.
22020
22021         areadlink, areadlink-with-size: add tests
22022         * modules/areadlink-tests: New test.
22023         * modules/areadlink-with-size-tests: Likewise.
22024         * tests/test-areadlink.h: New file.
22025         * tests/test-areadlink.c: Likewise.
22026         * tests/test-areadlink-with-size.c: Likewise.
22027
22028         maint: minor cleanups
22029         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
22030         _UNUSED_PARAMETER_ instead.
22031         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
22032         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
22033         * modules/linkat-tests (Files): Distribute test-link.h.
22034
22035         openat, utimens: whitespace cleanup
22036         * lib/openat.c: Prefer space throughout, rather than mix of 8
22037         spaces vs. tabs.
22038         * lib/at-func.c: Likewise.
22039         * lib/utimens.c: Likewise.
22040
22041         openat: avoid using wrong fd
22042         * lib/openat.c (openat_permissive): Reject user's fd if saving the
22043         working directory chooses same fd.
22044         * lib/at-func.c (AT_FUNC_NAME): Likewise.
22045
22046         mkdir, mkdirat: fix cygwin 1.5.x bug
22047         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
22048         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
22049         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
22050         bug.
22051         (gl_PREREQ_MKDIR): Delete unused macro.
22052         * modules/mkdir (Files): Track file rename.
22053         (configure.ac): Update macro name.
22054         * modules/openat (Depends-on): Add mkdir.
22055         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
22056
22057         mkdir, mkdirat: add tests
22058         * modules/mkdir-tests: New test.
22059         * tests/test-mkdir.h: New file.
22060         * tests/test-mkdir.c: Likewise.
22061         * tests/test-mkdirat.c: Likewise.
22062         * modules/openat-tests (Files): Add new files.
22063         (Makefile.am): Run new test.
22064
22065 2009-10-06  Eric Blake  <ebb9@byu.net>
22066
22067         doc: tweak *at function documentation
22068         * doc/posix-functions/faccessat.texi (faccessat): Mention
22069         known issue with replacement.
22070         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
22071         * doc/posix-functions/linkat.texi (linkat): Likewise.
22072         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22073         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22074         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22075         * doc/posix-functions/renameat.texi (renameat): Likewise.
22076         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22077
22078         openat: fix GNU/Hurd bug in unlinkat
22079         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
22080         broken.
22081         * doc/posix-functions/unlink.texi (unlink): Document this.
22082         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
22083
22084         fdopendir: fix GNU/Hurd bug
22085         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
22086         allowing non-directory fds.
22087         * lib/fdopendir.c (rpl_fdopendir): Work around it.
22088         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22089         * modules/dirent (Makefile.am): Substitute it.
22090         * lib/dirent.in.h (fdopendir): Declare replacement.
22091         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
22092         * tests/test-fdopendir.c (main): Test something other than
22093         /dev/null, since on Hurd that behaves like a directory.
22094
22095         test-symlink: port to GNU/Hurd
22096         * tests/test-symlink.h (test_symlink): Relax expected errno.
22097
22098         doc: tweak more cygwin information
22099         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
22100         now compatible with glibc.
22101         * doc/posix-functions/getopt.texi (getopt): Likewise.
22102
22103         getopt-gnu: add another test
22104         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
22105         guarantee behavior relied on by m4.
22106         * tests/test-getopt.c (main): Use it.
22107         * modules/getopt-posix-tests (Depends-on): Add setenv.
22108         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
22109
22110         getopt: fix compilation on darwin
22111         * lib/getopt.in.h (includes): Leave breadcrumbs during system
22112         include.
22113         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
22114         Reported by Ludovic Courtès.
22115
22116 2009-10-06  Bruno Haible  <bruno@clisp.org>
22117
22118         * modules/size_max (Description): Discourage its use.
22119         Reported by Simon Josefsson.
22120
22121 2009-10-06  Jim Meyering  <meyering@redhat.com>
22122
22123         linkat: avoid compilation failure
22124         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
22125
22126 2009-10-05  Eric Blake  <ebb9@byu.net>
22127
22128         linkat: support Linux 2.6.17
22129         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
22130         linkat on Linux, but allow cache variable override.
22131         * lib/linkat.c (rpl_linkat): Define override.
22132         * modules/linkat (Depends-on): Add symlinkat.
22133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
22134         * modules/unistd (Makefile.am): Substitute it.
22135         * lib/unistd.in.h (linkat): Declare replacement.
22136         Reported by Pádraig Brady.
22137
22138         quotearg: port test to systems with C.UTF-8 locale
22139         * tests/test-quotearg.c (struct result_strings): Add another
22140         member, differentiating between C.ASCII and C.UTF-8 handling.
22141         (compare_strings): Add parameter.
22142         (main): Adjust all callers.
22143
22144         getopt: avoid clash with FreeBSD _getopt_internal
22145         * lib/getopt.in.h (_getopt_internal): Override the name.
22146         * lib/getopt_int.h (includes): Pick up any overrides.
22147         Reported by Reuben Thomas.
22148
22149         hash: allow C89 compilation
22150         * lib/hash.c (check_tuning): Move declaration before statement.
22151         Reported by Reuben Thomas.
22152
22153 2009-10-05  Karl Berry  <karl@gnu.org>
22154
22155         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
22156
22157 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
22158             Bruno Haible  <bruno@clisp.org>
22159
22160         * lib/uname.c (uname): Use a table-driven algorithm to compute
22161         Windows NT versions.
22162
22163 2009-10-04  Bruno Haible  <bruno@clisp.org>
22164
22165         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
22166         program_invocation_short_name.
22167         * modules/progname (configure.ac): Test for presence of
22168         program_invocation_short_name.
22169         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22170
22171 2009-10-04  Bruno Haible  <bruno@clisp.org>
22172
22173         * lib/progname.c (set_program_name): Fix comment.
22174         Reported by Jim Meyering.
22175
22176 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22177             Bruno Haible  <bruno@clisp.org>
22178
22179         * lib/uname.c: Include <string.h>.
22180         (uname): Do only one call to GetVersionEx in the common case.
22181
22182 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22183             Bruno Haible  <bruno@clisp.org>
22184
22185         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
22186         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
22187         (uname): Add support for Windows CE and various non-x86 CPU types.
22188
22189 2009-10-03  Bruno Haible  <bruno@clisp.org>
22190
22191         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
22192         invocation to tests/configure.ac.
22193         Reported by Ian Beckwith <ianb@erislabs.net>.
22194
22195 2009-10-02  Eric Blake  <ebb9@byu.net>
22196
22197         fchdir: avoid compiler warning
22198         * lib/fchdir.c (canonicalize_file_name)
22199         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
22200
22201         test-open: support mingw errno values
22202         * tests/test-open.h (test_open): Relax test.
22203         * tests/test-fopen.h (test_fopen): Likewise.
22204         * tests/test-openat-safer.c (main): Likewise.
22205
22206         open: fix opening directory on mingw
22207         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
22208
22209         test-open: on GNU/Hurd, /dev/null is a directory
22210         * tests/test-fopen.h (main): Rename...
22211         (test_fopen): ...to this.  Use a guaranteed non-directory when
22212         confirming open behavior on trailing slash.
22213         * tests/test-openat-safer.c (main): Likewise.
22214         * tests/test-open.h (main): Likewise....
22215         (test_open): ...to this.
22216         * tests/test-fopen.c (main): Adjust caller.
22217         * tests/test-fopen-safer.c (main): Likewise.
22218         * tests/test-open.c (main): Likewise.
22219         * tests/test-fcntl-safer.c (main): Likewise.
22220         Reported by Samuel Thibault.
22221
22222         rename, fchdir: don't ignore chdir failure
22223         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
22224         * lib/rename.c (rpl_rename) [W32]: Likewise.
22225         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
22226         an empty destination directory if source cannot be renamed,
22227         although there is still possibility for failure.
22228         * doc/posix-functions/rename.texi (rename): Document the race.
22229         Reported by Jim Meyering.
22230
22231         maint: cleanup whitespace in recent commits
22232         * lib/rename.c (rpl_rename): Remove tabs.
22233         * tests/test-link.h (test_link): Likewise.
22234         * lib/fchdir.c (get_name): Likewise.
22235         Reported by Jim Meyering.
22236
22237 2009-10-02  Ben Pfaff  <blp@gnu.org>
22238
22239         relocatable-prog-wrapper: Add missing dependency on
22240         double-slash-root.
22241         * modules/relocatable-prog-wrapper: Add dependency.
22242         Reported by Ian Beckwith <ianb@erislabs.net>.
22243
22244 2009-10-02  Eric Blake  <ebb9@byu.net>
22245
22246         renameat: fix Solaris bugs
22247         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
22248         needed fixing.
22249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
22250         * modules/stdio (Makefile.am): Substitute it.
22251         * lib/stdio.in.h (renameat): Declare replacement.
22252         * lib/renameat.c (rpl_renameat): Implement fix.
22253
22254         renameat: new module
22255         * modules/renameat: New file.
22256         * lib/renameat.c (renameat): Likewise.
22257         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
22258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22259         * modules/stdio (Makefile.am): Substitute them.
22260         * lib/stdio.in.h (renameat): Declare it.
22261         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22262         * doc/posix-functions/renameat.texi (renameat): Likewise.
22263         * modules/renameat-tests: New test.
22264         * tests/test-renameat.c: Likewise.
22265
22266         rename: fix mingw bugs
22267         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
22268         directory overwrite bugs.
22269
22270         rename: fix another cygwin 1.5 bug
22271         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
22272         checks.
22273         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
22274         unnecessary cygwin workarounds.  Also work around bug with moving
22275         full directory onto an empty one.
22276         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
22277
22278         rename-dest-slash: merge into rename module
22279         * modules/rename-dest-slash (Status): Mark obsolete.
22280         (Depends-on): Add rename.
22281         (Files): Let rename do it all.
22282         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
22283         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
22284         * m4/rename-dest-slash.m4: ...so this file can be deleted.
22285         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
22286         * lib/rename.c (rpl_rename): Update comments.
22287
22288         rename: fix cygwin 1.5.x bugs
22289         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
22290         * lib/rename.c (rpl_rename): Work around them.
22291         * modules/rename (Depends-on): Add same-inode.
22292
22293         rename: fix Solaris 10 bug
22294         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22295         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
22296         was the only bug.
22297
22298         rename: fix Solaris 9 bug
22299         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
22300         on non-directory.  Avoid calling exit.
22301         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
22302         strdup.
22303         * modules/rename-tests (Depends-on): Drop lstat.
22304         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22305         (gl_PREREQ_RENAME): Delete unused macro.
22306
22307         rename-dest-slash: fix NetBSD bug
22308         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
22309         links.
22310         * modules/rename-dest-slash (Depends-on): Add same-inode.
22311
22312         rename-tests: new test, exposes several platform bugs
22313         * modules/rename-tests: New file.
22314         * tests/test-rename.h: Likewise.
22315         * tests/test-rename.c: Likewise.
22316         * doc/posix-functions/rename.texi (rename): Improve documentation,
22317         including bugs that will eventually be fixed in gnulib.
22318
22319 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
22320
22321         * lib/uname.c: Include <stdlib.h>
22322         (uname): Assume version info is available.
22323
22324 2009-10-02  Jim Meyering  <meyering@redhat.com>
22325
22326         gnu-web-doc-update: correct --help output
22327         * build-aux/gnu-web-doc-update: Make --help output relevant.
22328
22329         gnu-web-doc-update: add standard options
22330         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
22331
22332         gnu-web-doc-update: New module.
22333         Use this script to automatically update the on-line web documentation
22334         for your GNU project at http://www.gnu.org/software/$pkg/manual/
22335         * modules/gnu-web-doc-update: New file, from coreutils.
22336         * build-aux/gnu-web-doc-update: New script.
22337
22338 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
22339
22340         link: LoadLibrary is not needed.
22341         * lib/link.c: Use GetModuleHandle.
22342
22343 2009-10-01  Eric Blake  <ebb9@byu.net>
22344
22345         getopt: bump serial number
22346         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
22347         change.
22348
22349         tests: tighten link, rmdir, and remove tests
22350         * tests/test-link.h (includes): No need to use <config.h> here.
22351         Clean up if directory hard link was created, otherwise test for
22352         trailing '.'.
22353         * tests/test-linkat.c (main): Simplify.
22354         * tests/test-remove.c (main): Enhance test for trailing '.'.
22355         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22356
22357 2009-10-01  Jim Meyering  <meyering@redhat.com>
22358
22359         maint.mk: requiring "make major" was annoying, for a "minor" release.
22360         What is intended is "stable", to contrast with alpha and beta,
22361         so require "make stable", not "make major".
22362         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
22363         (get_tool_versions): Likewise.
22364         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
22365
22366 2009-09-30  Ben Pfaff  <blp@gnu.org>
22367
22368         Fix broken build of replacement for Windows tmpfile().
22369         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
22370         flags argument added along with the 'mkostemp' module.
22371
22372 2009-09-28  Bruno Haible  <bruno@clisp.org>
22373
22374         Avoid identifier clash with POSIX function 'remove' defined as a macro.
22375         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
22376         to 'remove_elt'.
22377         (gl_list_remove): Update.
22378         * lib/gl_list.c (gl_list_remove): Update.
22379         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
22380         to 'remove_elt'.
22381         (gl_oset_remove): Update.
22382         * lib/gl_list.c (gl_oset_remove): Update.
22383         Reported by Eric Blake.
22384
22385 2009-09-28  Eric Blake  <ebb9@byu.net>
22386
22387         doc: mention yet more cygwin 1.7 status
22388         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
22389         cygwin.
22390         * doc/glibc-functions/execvpe.texi (execvpe): New file.
22391         * doc/gnulib.texi (Glibc unistd.h): Mention it.
22392
22393         argp: fix test failure
22394         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
22395         that are not upper-case.  Pass correct range to tolower.
22396
22397 2009-09-27  Jim Meyering  <meyering@redhat.com>
22398
22399         test-yesno: work around sparc-dash here-document infelicity
22400         Without this change, the literal \177 byte in a here document
22401         would make dash 0.5.5.1-3 access uninitialized memory.
22402         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
22403         Instead, use a marker, "@", and filter through tr to create the desired
22404         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
22405
22406 2009-09-27  Bruno Haible  <bruno@clisp.org>
22407
22408         Disable untested support for new flavours of ACLs on AIX.
22409         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
22410         progress.
22411         * lib/set-mode-acl.c (qset_acl): Likewise.
22412
22413 2008-12-07  Bruno Haible  <bruno@clisp.org>
22414
22415         Add support for new flavours of ACLs on AIX. (Untested.)
22416         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
22417         (file_has_acl): Add support for newer AIX.
22418         * lib/set-mode-acl.c (qset_acl): Likewise.
22419         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
22420         Rainer Tammer <tammer@tammer.net>.
22421
22422 2009-09-26  Eric Blake  <ebb9@byu.net>
22423
22424         argp: fix compilation of getopt
22425         * lib/getopt.in.h (includes): Use different guard than glibc.
22426         Reported by Sergey Poznyakoff.
22427
22428         doc: mention more cygwin 1.7 status
22429         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
22430         bug.
22431         * doc/posix-functions/execl.texi (execl): Likewise.
22432         * doc/posix-functions/execle.texi (execle): Likewise.
22433         * doc/posix-functions/execlp.texi (execlp): Likewise.
22434         * doc/posix-functions/execv.texi (execv): Likewise.
22435         * doc/posix-functions/execve.texi (execve): Likewise.
22436         * doc/posix-functions/execvp.texi (execvp): Likewise.
22437         * doc/glibc-functions/canonicalize_file_name.texi
22438         (canonicalize_file_name): Cygwin 1.7 now provides this.
22439         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
22440         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
22441         on AT_SYMLINK_NOFOLLOW.
22442
22443 2009-09-24  Eric Blake  <ebb9@byu.net>
22444
22445         test-linkat: make test more robust
22446         * tests/test-linkat.c (main): Avoid collision with EEXIST.
22447
22448         getopt: fix inclusion guards for cygwin
22449         * modules/getopt-posix (Depends-on): Add include-next.
22450         (Makefile.am): Substitute more items in replacement header.
22451         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
22452         <getopt.h>.
22453         * lib/getopt.in.h (includes): Use split inclusion guard, and
22454         prefer <getopt.h> over include <unistd.h> when one is present.
22455         (option): Also override name of 'struct option'.
22456
22457         same-inode: revert prior change; it is not yet ready
22458         * NEWS: Undo mention of this change.
22459         * lib/same-inode.h (same-inode.h): Undo tri-state change.
22460         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22461         * lib/cycle-check.c (cycle_check): Likewise.
22462         * lib/same.c (same_name): Likewise.
22463         * lib/at-func2.c (at_func2): Likewise.
22464
22465 2009-09-23  Eric Blake  <ebb9@byu.net>
22466
22467         linkat: new module
22468         * modules/linkat: New file.
22469         * lib/at-func2.c (at_func2): Likewise.
22470         * lib/linkat.c (linkat): Likewise.
22471         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22472         * lib/openat-priv.h (at_func2): Add declaration.
22473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22474         * modules/unistd (Makefile.am): Substitute them.
22475         * lib/unistd.in.h (linkat): Declare it.
22476         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22477         * doc/posix-functions/linkat.texi (linkat): Likewise.
22478         * doc/posix-functions/link.texi (link): Tweak wording.
22479         * tests/test-link.c (main): Move guts...
22480         * tests/test-link.h (test_link): ...into new file.
22481         * modules/linkat-tests: New test.
22482         * tests/test-linkat.c: Likewise.
22483         * modules/link-tests (Files): Ship new file.
22484         (Depends-on): Add stdbool.
22485
22486         dirname: add library-safe mdir_name
22487         * lib/dirname.h (mdir_name): New prototype.
22488         * lib/dirname.c (dir_name): Move guts...
22489         (mdir_name): ...to new function that avoids xalloc_die.
22490
22491         fchdir: another mingw fix
22492         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
22493         * lib/fchdir.c (get_name): New helper method; skips canonicalize
22494         on mingw (where it has not yet been ported), and make it optional
22495         elsewhere.
22496         (_gl_register_fd): Use it.
22497
22498         same-inode: make SAME_INODE tri-state, to port to mingw
22499         * NEWS: Mention this change.
22500         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
22501         st_ino always being 0.
22502         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22503         * lib/cycle-check.c (cycle_check): Likewise.
22504         * lib/same.c (same_name): Likewise.
22505
22506         lstat: avoid mingw compilation error
22507         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
22508         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
22509         lstat ourselves.
22510         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
22511         was adequate.
22512         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
22513         the checks for lstat.
22514         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
22515
22516         link: fix test failure on Solaris 9
22517         * lib/link.c (rpl_link): Don't assume link will catch bogus
22518         trailing slash on source.
22519
22520         test-symlinkat: enhance test
22521         * tests/test-readlink.c (main): Move guts...
22522         * tests/test-readlink.h (test_readlink): ...into new file.
22523         * tests/test-symlink.c (main): Move guts...
22524         * tests/test-symlink.h (test_symlink): ...into new file.
22525         * tests/test-symlinkat.c (main): Use new files for further
22526         coverage.
22527         (do_symlink, do_readlink): New helper functions.
22528         * modules/symlink-tests (Files): Ship new file.
22529         (Depends-on): Add stdbool.
22530         * modules/readlink-tests (Files): Ship new file.
22531         (Depends-on): Add stdbool.
22532         * modules/symlinkat-tests (Files): Use new files.
22533
22534 2009-09-23  Eric Blake  <ebb9@byu.net>
22535
22536         readlink: document portability issue with symlink length
22537         * doc/posix-functions/lstat.texi (lstat): Mention that some file
22538         systems have bogus st_size on symlinks, and mention the
22539         areadlink-with-size module.
22540         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22541         * doc/posix-functions/readlink.texi (readlink): Mention the
22542         areadlink module, and ERANGE failure.
22543         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22544         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
22545
22546         readlink: fix Solaris 9 bug with trailing slash
22547         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
22548         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
22549         * doc/posix-functions/readlink.texi (readlink): Document this.
22550         * modules/readlink-tests: New test.
22551         * tests/test-readlink.c: Likewise.
22552
22553         readlink: fix cygwin 1.5.x bug with return type
22554         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
22555         * lib/unistd.in.h (readlink): Use ssize_t.
22556         * lib/readlink.c (readlink): Likewise.
22557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22558         * modules/unistd (Makefile.am): Substitute it.
22559         * lib/unistd.in.h (readlink): Declare replacement.
22560         * doc/posix-functions/readlink.texi (readlink): Document this.
22561
22562         symlink: use throughout gnulib
22563         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
22564         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
22565         symlink is not used.
22566         * modules/symlinkat (Depends-on): Add symlink.
22567         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22568         * modules/canonicalize-tests (Depends-on): Likewise.
22569         * modules/lstat-tests (Depends-on): Likewise.
22570         * modules/openat-tests (Depends-on): Likewise.
22571         * modules/remove-tests (Depends-on): Likewise.
22572         * modules/rmdir-tests (Depends-on): Likewise.
22573         * modules/unlink-tests (Depends-on): Likewise.
22574         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
22575         * tests/test-canonicalize.c (symlink): Likewise.
22576         * tests/test-fstatat.c (symlink): Likewise.
22577         * tests/test-lstat.c (symlink): Likewise.
22578         * tests/test-remove.c (symlink): Likewise.
22579         * tests/test-rmdir.c (symlink): Likewise.
22580         * tests/test-unlink.c (symlink): Likewise.
22581         * tests/test-unlinkat.c (symlink): Likewise.
22582
22583         symlink: new module, for Solaris 9 bug
22584         * modules/symlink: New file.
22585         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22586         * lib/symlink.c: Likewise.
22587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22588         * modules/unistd (Makefile.am): Substitute them.
22589         * lib/unistd.in.h (symlink): Declare replacement.
22590         * MODULES.html.sh (File system functions): Mention it.
22591         * doc/posix-functions/symlink.texi (symlink): Likewise.
22592         * modules/symlink-tests: New test.
22593         * tests/test-symlink.c: Likewise.
22594
22595 2009-09-23  Bruno Haible  <bruno@clisp.org>
22596
22597         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
22598         when needed.
22599         Test case: gnulib-tool --import --with-tests atexit inttypes.
22600         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
22601
22602 2009-09-23  Bruno Haible  <bruno@clisp.org>
22603
22604         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
22605         subcommand, not in a subshell.
22606
22607 2009-09-22  Eric Blake  <ebb9@byu.net>
22608
22609         unistd: sort replacement declarations
22610         * lib/unistd.in.h: Sort declarations.
22611
22612         open, openat: minor optimization
22613         * lib/open.c (open): If open succeeded, len is non-zero.
22614         * lib/openat.c (rpl_openat): Likewise.
22615
22616         link-follow: ensure correct result
22617         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
22618         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
22619         distinguish between possible failures.
22620
22621 2009-09-21  Eric Blake  <ebb9@byu.net>
22622
22623         fts: avoid compiler warning
22624         * lib/fts.c (dirent_inode_sort_may_be_useful)
22625         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
22626
22627 2009-09-19  Bruno Haible  <bruno@clisp.org>
22628
22629         * lib/progreloc.c (canonicalize_file_name): New declaration.
22630
22631 2009-09-19  Eric Blake  <ebb9@byu.net>
22632
22633         link: fix quoting
22634         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
22635
22636         openat: fix openat bugs on Solaris 9
22637         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
22638         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
22639         * modules/openat (Depends-on): Add open.
22640         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
22641         * modules/fcntl-h (Makefile.am): Substitute it.
22642         * lib/fcntl.in.h (openat): Declare replacement.
22643         * doc/posix-functions/openat.texi (openat): Document this.
22644
22645         openat: move fstatat and unlinkat into correct files
22646         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
22647         compiled.
22648         * lib/openat.c (fstatat, unlinkat): Move...
22649         * lib/fstatat.c (fstatat): ...into correct files.
22650         * lib/unlinkat.c (unlinkat): Likewise.
22651
22652         openat: fix unlinkat bugs on Solaris 9
22653         * lib/unlinkat.c (unlinkat): New file.
22654         * modules/openat (Depends-on): Add unlink.
22655         (Files): Distribute it.
22656         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
22657         trailing slash behavior is broken.
22658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22659         * modules/unistd (Makefile.am): Substitute it.
22660         * lib/unistd.in.h (unlinkat): Declare replacement.
22661         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
22662
22663         openat: fix fstatat bugs on Solaris 9
22664         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
22665         stat.
22666         * doc/posix-functions/fstatat.texi (fstatat): Document this.
22667
22668         test-unlinkat: enhance test, to expose Solaris 9 bug
22669         * tests/test-unlink.c (main): Factor guts...
22670         * tests/test-unlink.h (test_rmdir_func): ...into new file.
22671         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
22672         * tests/test-rmdir.c (main): Adjust caller.
22673         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
22674         (unlinker): New helper function.
22675         (rmdirat): Enhance check.
22676         * modules/rmdir-tests (Depends-on): Add stdbool.
22677         * modules/unlink-tests (Depends-on): Likewise.
22678         (Files): Add test-unlink.h.
22679         * modules/openat-tests (Files): Likewise.
22680         (Depends-on): Add unlinkdir.
22681
22682         test-fstatat: new test, to expose Solaris 9 bugs
22683         * tests/test-stat.c (main): Factor guts...
22684         * tests/test-stat.h (test_stat_func): ...into new file.
22685         * tests/test-lstat.c (main): Factor guts...
22686         * tests/test-lstat.h (test_lstat_func): ...into new file.
22687         * tests/test-fstatat.c: New file.
22688         * modules/stat-tests (Files): Add test-stat.h.
22689         * modules/lstat-tests (Files): Add test-lstat.h.
22690         (Depends-on): Add stdbool.
22691         * modules/openat-tests (Depends-on): Add pathmax.
22692         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
22693         (Makefile.am): Run new test.
22694
22695         remove: new module, for mingw and Solaris 9 bugs
22696         * modules/remove: New file.
22697         * lib/remove.c: Likewise.
22698         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
22699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22700         * modules/stdio (Makefile.am): Use them.
22701         * lib/stdio.in.h (remove): Declare replacement.
22702         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22703         * doc/posix-functions/remove.texi (remove): Likewise.
22704         * modules/remove-tests: New test.
22705         * tests/test-remove.c: Likewise.
22706
22707         unlink: new module, for Solaris 9 bug
22708         * modules/unlink: New file.
22709         * lib/unlink.c: Likewise.
22710         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22712         * modules/unistd (Makefile.am): Use them.
22713         * lib/unistd.in.h (stat): Declare replacement.
22714         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22715         * doc/posix-functions/unlink.texi (unlink): Likewise.
22716         * modules/unlink-tests: New test.
22717         * tests/test-unlink.c: Likewise.
22718
22719         lstat: fix Solaris 9 bug
22720         * lib/lstat.c (lstat): Also check for trailing slash on
22721         non-symlink, non-directories.  Use stat module to simplify logic.
22722         * doc/posix-functions/lstat.texi (lstat): Document it.
22723         * modules/lstat-tests (Depends-on): Add errno, same-inode.
22724         (configure.ac): Check for symlink.
22725         * tests/test-lstat.c (main): Add more tests.
22726
22727         stat: add as dependency to other modules
22728         * modules/chown (Depends-on): Add stat.
22729         * modules/euidaccess (Depends-on): Likewise.
22730         * modules/fchdir (Depends-on): Likewise.
22731         * modules/isdir (Depends-on): Likewise.
22732         * modules/link (Depends-on): Likewise.
22733         * modules/lstat (Depends-on): Likewise.
22734         * modules/mkdir-p (Depends-on): Likewise.
22735         * modules/modechange (Depends-on): Likewise.
22736         * modules/open (Depends-on): Likewise.
22737         * modules/readlink (Depends-on): Likewise.
22738         * modules/same (Depends-on): Likewise.
22739
22740         stat: fix Solaris 9 bug
22741         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
22742         slash.
22743         * lib/stat.c (rpl_stat): Work around it.
22744         * doc/posix-functions/stat.texi (stat): Update documentation.
22745
22746         stat: new module, for mingw bug
22747         * modules/stat: New file.
22748         * lib/stat.c: Likewise.
22749         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22750         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22751         * modules/sys_stat (Makefile.am): Use them.
22752         * lib/sys_stat.in.h (stat): Declare replacement.
22753         * lib/openat.c (fstatat): Deal with lstat and stat being function
22754         macros.
22755         * modules/openat (Depends-on): Add inline.
22756         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22757         * doc/posix-functions/stat.texi (stat): Likewise.
22758         * modules/stat-tests: New test.
22759         * tests/test-stat.c: Likewise.
22760
22761 2009-09-19  Jim Meyering  <meyering@redhat.com>
22762
22763         syntax-check: detect unnecessary inclusion of canonicalize.h
22764         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
22765
22766 2009-09-19  Eric Blake  <ebb9@byu.net>
22767
22768         canonicalize-lgpl: adjust clients to use correct header
22769         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22770         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
22771         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
22772         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
22773         * lib/progreloc.c (includes): Likewise.
22774
22775 2009-09-19  Jim Meyering  <meyering@redhat.com>
22776
22777         test-posixtm.c: correct a comment
22778         * tests/test-posixtm.c: Correct first-line comment.
22779         Spotted by Eric Blake.
22780
22781 2009-09-16  Jim Meyering  <meyering@redhat.com>
22782
22783         posixtm-tests: make T const-correct; add a test case
22784         * tests/test-posixtm.c (T): Declare const.
22785         Add a test for -(2^31+1).
22786         Remove useless can-succeed-only-in-2002 test.
22787
22788         posixtm-tests: adjust the sole failing test
22789         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
22790         expected output matches what mktime now produces.  Cross-checked via
22791         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
22792
22793         posixtm: move #ifdef'd tests into a new module
22794         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
22795         * tests/test-posixtm.c: ... this new file.
22796         * modules/posixtm-tests: New module.
22797
22798 2009-09-19  Eric Blake  <ebb9@byu.net>
22799
22800         openat: simplify use of at-func.c
22801         * lib/at-func.c (includes): Include prerequisites here, to
22802         simplify requirements on client files.
22803         * lib/openat-priv.h: Add double-inclusion guard.
22804         * lib/faccessat.c (includes): Simplify.
22805         * lib/fchmodat.c (includes): Likewise.
22806         * lib/fchownat.c (includes): Likewise.
22807         * lib/mkdirat.c (includes): Likewise.
22808         * lib/mkfifoat.c (includes): Likewise.
22809         * lib/symlinkat.c (includes): Likewise.
22810
22811         openat: allow return of fd 0
22812         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
22813         * modules/save-cwd (Depends-on): Replace fcntl-safer with
22814         unistd-safer.
22815         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
22816         <fcntl.h>; this module does not leak fds.
22817         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
22818         must be allowed to return 0, leaving openat_safer to add the
22819         safety.
22820         (openat_permissive): Avoid writing to just-opened fd 2 if
22821         restoring the current directory fails.
22822         * lib/openat-die.c (openat_restore_fail): Add comment.
22823         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
22824         (save_cwd): Guarantee safe fd, but without use of open_safer.
22825         * tests/test-openat.c: New test.
22826         * modules/openat-tests (Files, Makefile.am): Distribute and build
22827         new file.
22828
22829         relocatable-prog-wrapper: fix build
22830         * modules/relocatable-prog-wrapper (Files): Update name of
22831         canonicalize m4 file, broken on 2009-09-17.
22832         Reported by emad hajjar <aleppos@hotmail.com>.
22833
22834 2009-09-19  Bruno Haible  <bruno@clisp.org>
22835
22836         * lib/safe-alloc.h: Use the standard header with GPL copyright.
22837         * lib/safe-alloc.c: Likewise.
22838         Reported by Ian Beckwith <ianb@erislabs.net>.
22839
22840 2009-09-18  Bruno Haible  <bruno@clisp.org>
22841
22842         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
22843         Reported by <erobles@sensacd.com.mx>.
22844
22845 2009-09-17  Eric Blake  <ebb9@byu.net>
22846
22847         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
22848         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
22849         slashes when checking if last component is missing.
22850         * tests/test-canonicalize.c (main): Test this.
22851
22852         canonicalize, canonicalize-lgpl: honor // if distinct from /
22853         * modules/canonicalize (Files): Add double-slash-root.m4.
22854         * modules/canonicalize-lgpl (Files): Likewise.
22855         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22856         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
22857         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
22858         fallback definition.
22859         (canonicalize_filename_mode): Use it to protect //.
22860         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
22861         (__realpath): Likewise.
22862         * tests/test-canonicalize.c (main): Test this.
22863         * tests/test-canonicalize-lgpl.c (main): Likewise.
22864         * modules/canonicalize-tests (Depends-on): Add same-inode.
22865         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22866
22867         canonicalize-lgpl: fix glibc bug with trailing slash
22868         * m4/canonicalize-lgpl.m4: Move contents...
22869         * m4/canonicalize.m4: ...here.
22870         (gl_CANONICALIZE_LGPL): Factor realpath check...
22871         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
22872         glibc 2.3.5 bug, fixed 2005-04-27.
22873         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
22874         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
22875         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
22876         * modules/canonicalize-lgpl (Files): Manage file rename.
22877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22878         * modules/stdlib (Makefile.am): Substitute witness.
22879         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
22880         is needed.
22881         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
22882         replacement is required.
22883         * lib/canonicalize.c (canonicalize_file_name): Likewise.
22884         * doc/glibc-functions/canonicalize_file_name.texi
22885         (canonicalize_file_name): Document this.
22886         * doc/posix-functions/realpath.texi (realpath): Likewise.
22887
22888         canonicalize-lgpl: reject non-directory with trailing slash
22889         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
22890         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
22891         catches failures in glibc 2.3.5.
22892         * tests/test-canonicalize.c (main): Likewise.
22893
22894         canonicalize-lgpl: use native realpath if it works
22895         * lib/canonicalize-lgpl.c (realpath): Guard with
22896         FUNC_REALPATH_WORKS.
22897         * lib/stdlib.in.h (realpath): Make declaration optional based on
22898         HAVE_REALPATH.
22899         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
22900         native realpath works.
22901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22902         * modules/stdlib (Makefile.am): Substitute witness.
22903
22904         canonicalize, canonicalize-lgpl: use <stdlib.h>
22905         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
22906         (Include): Mention <stdlib.h>.
22907         (configure.ac): Mention functions we provide.
22908         * modules/canonicalize (configure.ac): Likewise.
22909         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
22910         realpath if canonicalize_file_name is missing.
22911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
22912         * modules/stdlib (Makefile.am): Substitute witnesses.
22913         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
22914         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
22915         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
22916         * NEWS: Document this.
22917         * doc/glibc-functions/canonicalize_file_name.texi
22918         (canonicalize_file_name): Likewise.
22919         * doc/posix-functions/realpath.texi (realpath): Likewise.
22920         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
22921
22922         test-canonicalize: consolidate into single C program
22923         * tests/test-canonicalize.sh: Delete; move setup into...
22924         * tests/test-canonicalize.c (main): ...the program, making it
22925         easier to run in debugger.  Add some tests.
22926         * modules/canonicalize-tests (Files): Remove unused file.
22927         (Depends-on): Add progname.
22928         (configure.ac, Makefile.am): Simplify.
22929
22930         test-canonicalize-lgpl: consolidate into single C program
22931         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
22932         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
22933         easier to run in debugger.  Add some tests.
22934         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
22935         (configure.ac, Makefile.am): Simplify.
22936
22937         canonicalize: avoid resolvepath
22938         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
22939         unnecessary checks.
22940         * lib/canonicalize.c (includes): Simplify.
22941         (canonicalize_file_name): Drop resolvepath implementation.
22942         * modules/canonicalize (Depends-on): Drop filenamecat.
22943
22944         canonicalize: don't lose errno
22945         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
22946         over calls to free.
22947
22948         canonicalize: simplify errno handling
22949         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
22950         assignment.
22951
22952         canonicalize, canonicalize-lgpl: update module dependencies
22953         * modules/canonicalize (Depends-on): Add extensions, lstat,
22954         pathmax, stdlib.
22955         (Files): Drop pathmax.h.
22956         (configure.ac): Adjust macro name.
22957         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
22958         lstat, stdlib, sys_stat.
22959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
22960         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
22961         extensions.
22962         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
22963         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
22964         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
22965         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
22966         declaration, if available.
22967         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
22968         we can rely on the readlink module.
22969         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
22970         (includes): Use <unistd.h> unconditionally.
22971
22972 2009-09-17  Eric Blake  <ebb9@byu.net>
22973
22974         maint: make Include sections of modules consistent
22975         * modules/alloca: Use only header name; no need to list #include.
22976         * modules/alloca-opt: Likewise.
22977         * modules/arpa_inet: Likewise.
22978         * modules/canon-host: Likewise.
22979         * modules/configmake: Likewise.
22980         * modules/dirent: Likewise.
22981         * modules/eealloc: Likewise.
22982         * modules/environ: Likewise.
22983         * modules/fchdir: Likewise.
22984         * modules/fcntl: Likewise.
22985         * modules/fcntl-h: Likewise.
22986         * modules/gethrxtime: Likewise.
22987         * modules/gettime: Likewise.
22988         * modules/ignore-value: Likewise.
22989         * modules/inet_ntop: Likewise.
22990         * modules/inet_pton: Likewise.
22991         * modules/inttypes: Likewise.
22992         * modules/isnand-nolibm: Likewise.
22993         * modules/isnanf-nolibm: Likewise.
22994         * modules/mbchar: Likewise.
22995         * modules/mbfile: Likewise.
22996         * modules/mbiter: Likewise.
22997         * modules/mbuiter: Likewise.
22998         * modules/netdb: Likewise.
22999         * modules/netinet_in: Likewise.
23000         * modules/nproc: Likewise.
23001         * modules/pagealign_alloc: Likewise.
23002         * modules/poll: Likewise.
23003         * modules/printf-frexp: Likewise.
23004         * modules/pthread: Likewise.
23005         * modules/putenv: Likewise.
23006         * modules/random_r: Likewise.
23007         * modules/relocatable-prog: Likewise.
23008         * modules/search: Likewise.
23009         * modules/select: Likewise.
23010         * modules/selinux-h: Likewise.
23011         * modules/settime: Likewise.
23012         * modules/signal: Likewise.
23013         * modules/size_max: Likewise.
23014         * modules/socklen: Likewise.
23015         * modules/ssize_t: Likewise.
23016         * modules/stdarg: Likewise.
23017         * modules/stdbool: Likewise.
23018         * modules/stddef: Likewise.
23019         * modules/stdint: Likewise.
23020         * modules/stdio: Likewise.
23021         * modules/stdlib: Likewise.
23022         * modules/string: Likewise.
23023         * modules/strings: Likewise.
23024         * modules/sys_file: Likewise.
23025         * modules/sys_ioctl: Likewise.
23026         * modules/sys_select: Likewise.
23027         * modules/sys_socket: Likewise.
23028         * modules/sys_stat: Likewise.
23029         * modules/sys_time: Likewise.
23030         * modules/sys_times: Likewise.
23031         * modules/sys_utsname: Likewise.
23032         * modules/sys_wait: Likewise.
23033         * modules/sysexits: Likewise.
23034         * modules/time: Likewise.
23035         * modules/times: Likewise.
23036         * modules/tmpfile: Likewise.
23037         * modules/trim: Likewise.
23038         * modules/unistd: Likewise.
23039         * modules/wchar: Likewise.
23040         * modules/wctype: Likewise.
23041
23042 2009-09-17  Bruno Haible  <bruno@clisp.org>
23043
23044         Make getdate.y compile on QNX and NetBSD 5 / i386.
23045         * m4/getdate.m4 (gl_GETDATE): Conditionally define
23046         TIME_T_FITS_IN_LONG_INT.
23047         * lib/getdate.y (long_time_t): New type.
23048         (relative_time): Change type of 'seconds' field to long_time_t.
23049         (get_date): Update types of local variables. Check against overflow
23050         during conversion from long_time_t to time_t.
23051         Reported by Matt Kraai <kraai@ftbfs.org>
23052         and Hasso Tepper <hasso@netbsd.org>.
23053
23054 2009-09-17  Bruno Haible  <bruno@clisp.org>
23055
23056         * modules/COPYING: Update copyright years.
23057         * modules/README: Likeiwse.
23058         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
23059         Reported by Ian Beckwith <ianb@erislabs.net>.
23060
23061 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23062
23063         * users.txt: Update references for gnuit package.
23064
23065 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23066
23067         * m4/getdelim.m4: Fix typo in copyright line.
23068
23069 2009-09-17  Bruno Haible  <bruno@clisp.org>
23070
23071         * lib/atoll.c: Use the standard header with GPL copyright.
23072         * lib/argz.in.h: Likewise.
23073         * lib/glob.c: Likewise.
23074         * lib/glob-libc.h: Likewise.
23075         * lib/random_r.c: Likewise.
23076         * lib/siglist.h: Likewise.
23077         * lib/strsignal.c: Likewise.
23078         Reported by Ian Beckwith <ianb@erislabs.net>.
23079
23080 2009-09-17  Eric Blake  <ebb9@byu.net>
23081
23082         rmdir: ensure correct dependency order
23083         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
23084
23085 2009-09-17  Bruno Haible  <bruno@clisp.org>
23086
23087         Disable assertion that fails on NetBSD 5 / i386.
23088         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
23089         Reported by Sam Steingold <sds@gnu.org>
23090         and Hasso Tepper <hasso@netbsd.org>.
23091
23092 2009-09-16  Eric Blake  <ebb9@byu.net>
23093
23094         unlinkdir: port to mingw
23095         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
23096         on which no one can unlink a directory.
23097
23098         stdlib: sort witness names
23099         * modules/stdlib (Makefile.am): Sort replacements.
23100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23101         * lib/stdlib.in.h: Likewise.
23102
23103         parse-duration-tests: avoid link failure
23104         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
23105         LIBINTL.
23106         Reported by Tom G. Christensen.
23107
23108         openat-tests: ensure unlinkat behaves like rmdir
23109         * tests/test-rmdir.c (main): Factor guts...
23110         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
23111         * modules/rmdir-tests (Files): Ship new file.
23112         * modules/openat-tests: New test.
23113         * tests/test-unlinkat.c: Likewise.
23114
23115         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
23116         * modules/rmdir-errno (Status, Notice): Now obsolete.
23117
23118         rmdir: work around cygwin 1.5.x and mingw bugs
23119         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
23120         * lib/rmdir.c (rmdir): Work around it.
23121         * modules/rmdir (Status, Notice): No longer obsolete.
23122         (Files): Add dos.m4.
23123         (Depends-on): Add unistd.
23124         (configure.ac): Set witnesses.
23125         (License): Relax to LGPLv2+.
23126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
23127         * modules/unistd (Makefile.am): Substitute witnesses.
23128         * lib/unistd.in.h (rmdir): Declare replacement.
23129         * doc/posix-functions/rmdir.texi (rmdir): Document this.
23130         * modules/rmdir-tests: New tests.
23131         * tests/test-rmdir.c: Likewise.
23132
23133 2009-09-15  Eric Blake  <ebb9@byu.net>
23134
23135         fchdir: improve use of replacement functions
23136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
23137         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
23138         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
23139         REPLACE_CLOSEDIR.
23140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
23141         * modules/sys_stat (Makefile.am): Substitute correct witness.
23142         * modules/dirent (Makefile.am): Likewise.
23143         * modules/unistd (Makefile.am): Likewise.
23144         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
23145         * lib/unistd.in.h (dup): Likewise.
23146         * lib/sys_stat.in.h (fstat): Likewise.
23147
23148         maint: ignore gnulib-tool temp files
23149         * .gitignore: Ignore files created during gnulib-tool --test.
23150
23151 2009-09-13  Jim Meyering  <meyering@redhat.com>
23152
23153         posixtm: don't reject a time that specify "60" as the number of seconds
23154         * lib/posixtm.c (posixtime): The code to reject invalid dates
23155         would also reject a time specified with the .60 suffix.
23156         But POSIX allows that, in order to accommodate leap seconds.
23157         So don't reject it.
23158         (main): Adjust tests accordingly.
23159         * modules/posixtm (Depends-on): Add stpcpy.
23160
23161 2009-09-11  Jim Meyering  <meyering@redhat.com>
23162
23163         announce-gen: include [$release_type] in emitted Subject:
23164         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
23165         e.g., [stable] in the emitted Subject: line.
23166
23167 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23168
23169         Remove obsolete macros from several modules.
23170         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
23171         obsolete Autoconf macros with their modern counterparts.
23172         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
23173         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
23174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23175         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23176         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
23177         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23178         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23179         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23180         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23181         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
23182         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23183         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23184         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
23185         * m4/sockets.m4 (gl_SOCKETS): Likewise.
23186         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
23187         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
23188         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
23189         * m4/time_r.m4 (gl_TIME_R): Likewise.
23190         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23191         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
23192         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23193
23194         Fix copyright header in build-aux scripts.
23195         * build-aux/git-version-gen: Fix copyright header to match GPLv3
23196         recommendation.
23197         * build-aux/ncftpput-ftp: Likewise.
23198         * build-aux/update-copyright: Likewise.
23199
23200 2009-09-09  Eric Blake  <ebb9@byu.net>
23201
23202         test-link: allow Linux choice of errno
23203         * tests/test-link.c (main): Relax test for alternate error.
23204
23205         strndup: fix improper m4 caching
23206         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
23207         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
23208         (gl_PREREQ_STRNDUP): Delete.
23209         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
23210         * modules/string (Makefile.am): Substitute it.
23211         * lib/string.in.h (strndup): Modernize prototype.
23212
23213         getcwd: port to mingw
23214         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
23215         different from the POSIX assumptions made throughout the getcwd
23216         module; fortunately, the mingw getcwd does not need replacement.
23217         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
23218         * modules/getcwd-tests: New test.
23219         * tests/test-getcwd.c: Likewise.
23220
23221         link: fix platform bugs
23222         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
23223         * lib/link.c (link): Work around them.  Fix related mingw bug.
23224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
23225         * modules/unistd (Makefile.am): Substitute it.
23226         * lib/unistd.in.h (link): Declare replacement.
23227         * doc/posix-functions/link.texi (link): Document this.
23228         * modules/link (Depends-on): Add strdup-posix, sys_stat.
23229
23230         test-link: consolidate into single C program, test more cases
23231         * tests/test-link.sh: Delete.
23232         * tests/test-link.c: Test more error conditions.  Exposes bugs on
23233         at least Cygwin and Solaris.
23234         * modules/link-tests (Files): Remove unused file.
23235         (Depends-on): Add errno, sys_stat.
23236         (Makefile.am): Simplify.
23237
23238 2009-09-08  Bruno Haible  <bruno@clisp.org>
23239
23240         Work around towlower, towupper bug on mingw.
23241         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
23242         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
23243         * doc/posix-functions/towlower.texi: Mention the mingw bug.
23244         * doc/posix-functions/towupper.texi: Likewise.
23245         Reported by Eric Blake.
23246
23247 2009-09-08  Jim Meyering  <meyering@redhat.com>
23248
23249         build: don't try to run autoheader if we don't use it
23250         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
23251         is not used in configure.ac.
23252
23253 2009-09-08  Eric Blake  <ebb9@byu.net>
23254
23255         euidaccess: fix compilation error
23256         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
23257
23258         rawmemchr: relax license
23259         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
23260         okay.
23261         Reported by Jim Meyering.
23262
23263         mkfifoat: new module
23264         * modules/mkfifoat: New file.
23265         * lib/mkfifoat.c: Likewise.
23266         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
23267         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23268         * modules/sys_stat (Makefile.am): Use them.
23269         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
23270         * MODULES.html.sh (File system functions): Mention module.
23271         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23272         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23273         * modules/mkfifoat-tests: New test.
23274         * tests/test-mkfifoat.c: Likewise.
23275
23276         strchrnul: relax license
23277         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
23278         okay.
23279         Reported by Jim Meyering.
23280
23281 2009-09-08  Eric Blake  <ebb9@byu.net>
23282
23283         fstatat: fix compilation on Solaris
23284         * lib/fstatat.c (includes): Add fcntl.h.
23285         Reported by Pádraig Brady.
23286
23287 2009-09-07  Eric Blake  <ebb9@byu.net>
23288
23289         rename: modernize replacement
23290         * modules/rename (Depends-on): Add stdio.
23291         (configure.ac): Declare witness.
23292         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
23293         stdio take care of replacement.
23294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
23295         * modules/stdio (Makefile.am): Substitute them.
23296         * lib/stdio.in.h (rename): Declare replacement.
23297         * lib/rename.c (includes): Allow cross-compilation to non-windows
23298         machines.
23299         * doc/posix-functions/rename.texi (rename): Improve
23300         documentation.
23301
23302         stdio: sort witness names
23303         * modules/stdio (Makefile.am): Sort replacements.
23304         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23305         * lib/stdio.in.h: Likewise.
23306
23307         getcwd: minor cleanups
23308         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
23309         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
23310
23311         openat: provide more convenience names
23312         * modules/faccessat (configure.ac): Add C witness.
23313         * lib/unistd.in.h (readlinkat): Fix typo.
23314         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
23315         convenience wrappers.
23316         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
23317         wrappers in syntax checks.
23318
23319 2009-09-06  Eric Blake  <ebb9@byu.net>
23320
23321         doc: fix comments in recent patches
23322         * lib/faccessat.c: Mention correct function.
23323         * lib/fchmodat.c: Likewise.
23324         * lib/fchownat.c: Likewise.
23325         * lib/symlinkat.c: Likewise.
23326         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
23327         constants.
23328
23329         faccessat, symlinkat: continue cleanup of previous patch
23330         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
23331         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23332         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
23333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
23334         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
23335         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
23336         set.
23337
23338 2009-09-06  Bruno Haible  <bruno@clisp.org>
23339
23340         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
23341         (fstatat): Declare if GNULIB_FSTATAT is set.
23342         (mkdirat): Declare if GNULIB_MKDIRAT is set.
23343         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
23344         (unlinkat): Declare if GNULIB_UNLINKAT is set.
23345         * modules/fcntl-h (Files): Remove m4/openat.m4.
23346         * modules/sys_stat (Files): Remove m4/openat.m4.
23347         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
23348         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
23349         * modules/unistd (Files): Remove m4/openat.m4.
23350         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
23351         GNULIB_OPENAT.
23352         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
23353         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
23354         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23355         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
23356         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
23357         gl_OPENAT_DEFAULTS.
23358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
23359         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
23360         Don't require gl_OPENAT_DEFAULTS.
23361         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
23362         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
23363         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
23364         (gl_OPENAT_DEFAULTS): Remove macro.
23365
23366 2009-09-06  Bruno Haible  <bruno@clisp.org>
23367
23368         * modules/openat (configure.ac): Remove unneeded witness.
23369
23370 2009-09-06  Bruno Haible  <bruno@clisp.org>
23371
23372         Set errno to ENOSYS when a function is entirely unsupported.
23373         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
23374         EOPNOTSUPP.
23375         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23376         * modules/chown (Depends-on): Remove errno.
23377
23378 2009-09-06  Bruno Haible  <bruno@clisp.org>
23379
23380         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
23381
23382 2009-09-06  Bruno Haible  <bruno@clisp.org>
23383
23384         * lib/sys_stat.in.h: Fix preprocessor command indentation.
23385
23386 2009-09-06  Ben Pfaff  <blp@gnu.org>
23387             Bruno Haible  <bruno@clisp.org>
23388
23389         Work around a glibc bug in strtok_r.
23390         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
23391         Undefine if UNDEFINE_STRTOK_R is set.
23392         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
23393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23394         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
23395         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
23396         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
23397         UNDEFINE_STRTOK_R.
23398         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
23399
23400 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23401
23402         exclude: minor fix
23403         * lib/exclude.c: Include wctype.h
23404
23405 2009-09-06  Akim Demaille  <demaille@gostai.com>
23406
23407         bootstrap: improve error message
23408         * build-aux/bootstrap (find_tool): Upon failure, report the list
23409         of candidates.
23410         Honor the initial value of the envvar.
23411
23412 2009-09-05  Eric Blake  <ebb9@byu.net>
23413
23414         symlinkat: new module
23415         * modules/symlinkat: New file.
23416         * lib/symlinkat.c: Likewise.
23417         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
23418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23419         * modules/unistd (Makefile.am): Use them.
23420         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
23421         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
23422         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
23423         * MODULES.html.sh (File system functions): Mention module.
23424         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23425         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23426         * modules/symlinkat-tests: New test.
23427         * tests/test-symlinkat.c: Likewise.
23428
23429         test-openat-safer: add more checks
23430         * tests/test-openat-safer.c (main): Check more code paths.
23431
23432 2009-09-05  Jim Meyering  <meyering@redhat.com>
23433
23434         syntax-check: detect unnecessary inclusion of openat.h
23435         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
23436
23437 2009-09-05  Bruno Haible  <bruno@clisp.org>
23438
23439         Support towlower, towupper.
23440         * doc/posix-functions/towlower.texi: Mention module wctype.
23441         * doc/posix-functions/towupper.texi: Likewise.
23442         * lib/wctype.in.h (towlower, towupper): New functions.
23443         * tests/test-wctype.c: Include stdio.h, stdlib.h.
23444         (ASSERT): New macro.
23445         (e): New variable.
23446         (main): Test also towlower, towupper. Test WEOF argument.
23447         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23448
23449 2009-09-05  Bruno Haible  <bruno@clisp.org>
23450
23451         Fix conversion behaviour when the input is invalid.
23452         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
23453         mark occurring in first pass of indirect conversion.
23454         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
23455         input.
23456         Found by clang's static analyzer.
23457
23458 2009-09-05  Bruno Haible  <bruno@clisp.org>
23459
23460         * tests/test-striconveh.c (main): Test indirect conversion on platforms
23461         where direct conversion is possible.
23462
23463 2009-09-04  Eric Blake  <ebb9@byu.net>
23464
23465         openat: fail with ENOENT on empty name
23466         * lib/openat-proc.c (openat_proc_name): Special-case the empty
23467         buffer.
23468
23469         link-follow: fix logic bug in prior patch
23470         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
23471         reversed sense of yes and no in prior patch.  Avoid confusing
23472         compilation failure with desired semantics.
23473
23474         link-follow: accomodate mingw and cross-compilation
23475         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
23476         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
23477         cross-compilation results to -1, to make linkat easier to
23478         implement when cross-compiling.  Trivially support mingw.
23479         * modules/link-follow (configure.ac): Call new name.
23480         * NEWS: Mention this.
23481
23482 2009-09-03  Eric Blake  <ebb9@byu.net>
23483
23484         faccessat: compile replacement
23485         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
23486         needed.
23487
23488         fts: fix compilation error
23489         * lib/fts.c (includes): Re-add "openat.h", for
23490         openat_needs_fchdir.
23491
23492         faccessat: new module
23493         * modules/faccessat: New file.
23494         * lib/faccessat.c: Likewise.
23495         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23497         * modules/unistd (Makefile.am): Use it.
23498         * lib/unistd.in.h (faccessat): Declare it.
23499         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
23500         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
23501         * MODULES.html.sh (File system functions): Mention it.
23502         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
23503         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23504
23505         euidaccess: prefer POSIX over non-standard implementation
23506         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
23507         * lib/euidaccess.c (euidaccess): Use it if available.
23508
23509         openat: make template easier to use
23510         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
23511         AT_FUNC_F2 to be undefined.
23512         (VALIDATE_FLAG): New macro; use it to reject bad flags.
23513         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
23514         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
23515         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
23516         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
23517         Likewise.
23518         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
23519         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
23520         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
23521         Likewise.
23522
23523         openat: declare in POSIX headers
23524         * NEWS: Mention this.
23525         * modules/openat (configure.ac): Declare witnesses.
23526         (Depends-on): Add fcntl-h, sys_stat, unistd.
23527         (Include): Mention correct headers.
23528         * modules/fcntl-h (Depends-on): Add link-warning.
23529         (Files): Add openat.m4.
23530         (Makefile.am): Substitute witnesses.
23531         * modules/sys_stat (Files, Makefile.am): Likewise.
23532         * modules/unistd (Files, Makefile.am): Likewise.
23533         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
23534         (gl_OPENAT_DEFAULTS): New macro.
23535         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
23536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
23537         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
23538         (SYS_STAT_H): Remove unused variable.
23539         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
23540         * lib/fcntl--.h (includes): Remove unneeded header.
23541         * lib/openat-safer.c (includes): Likewise.
23542         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
23543         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
23544         appropriate headers.
23545         (__OPENAT_PREFIX): Delete.
23546         * lib/fcntl.in.h (openat): Provide declaration.
23547         (AT_FDCWD): Fix Solaris bug.
23548         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
23549         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
23550         * lib/fchmodat.c (includes):  Adjust to find declaration.
23551         * lib/fchownat.c (includes): Likewise.
23552         * lib/mkdirat.c (includes): Likewise.
23553         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
23554         still visible.
23555
23556 2009-09-02  Eric Blake  <ebb9@byu.net>
23557
23558         errno: use consistently
23559         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
23560         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
23561         * lib/canonicalize.c (ELOOP): Likewise.
23562         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
23563         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
23564         * lib/lchown.c (EOPNOTSUPP): Likewise.
23565         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
23566         * lib/savewd.c (ESTALE): Likewise.
23567         * lib/settime.c (ENOSYS): Likewise.
23568         * lib/utimens.c (ENOSYS): Likewise.
23569         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
23570         * lib/chdir-safer.c (ELOOP): Likewise.
23571         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
23572         * modules/c-stack (Depends-on): Add errno.
23573         * modules/canonicalize (Depends-on): Likewise.
23574         * modules/chdir-safer (Depends-on): Likewise.
23575         * modules/fdopendir (Depends-on): Likewise.
23576         * modules/inet_ntop (Depends-on): Likewise.
23577         * modules/inet_pton (Depends-on): Likewise.
23578         * modules/lchown (Depends-on): Likewise.
23579         * modules/openat (Depends-on): Likewise.
23580         * modules/savewd (Depends-on): Likewise.
23581         * modules/settime (Depends-on): Likewise.
23582         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
23583
23584         fts: avoid leaking fds
23585         * modules/fts (Depends-on): Add cloexec.
23586         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
23587         flag.
23588
23589         fts: make directory fds more robust
23590         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
23591         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
23592
23593         backupfile, chdir-long, fts, savedir: make safer
23594         * lib/backupfile.c (includes): Use "dirent--.h", since
23595         numbered_backup can write to stderr during readdir.
23596         * lib/savedir.c (includes): Likewise.
23597         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
23598         emulation can write to stderr on failure.
23599         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
23600         * lib/getcwd.c: Document why opendir_safer is unused.
23601         * lib/glob.c: Likewise.
23602         * lib/scandir.c: Likewise.
23603         * lib/openat-proc.c: Likewise, for open_safer.
23604         * modules/backupfile (Depends-on): Add dirent-safer.
23605         * modules/savedir (Depends-on): Likewise.
23606         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
23607         * modules/chdir-long (Depends-on): Add openat-safer.
23608
23609         openat-safer: new module
23610         * modules/openat-safer: New file.
23611         * lib/openat-safer.c: Likewise.
23612         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
23613         * lib/fcntl-safer.h (openat_safer): Declare.
23614         * lib/fcntl--.h (openat): Override.
23615         * MODULES.html.sh (File descriptor based I/O): Mention it.
23616         * lib/openat.h: Add double-inclusion guards.
23617         * lib/openat.c (includes): Only include "fcntl-safer.h", not
23618         "fcntl--.h", so we can implement openat.
23619         * modules/openat-safer-tests: New test.
23620         * tests/test-openat-safer.c: New file.
23621
23622         dirent-safer: new module
23623         * modules/dirent-safer: New file.
23624         * lib/dirent--.h: Likewise.
23625         * lib/dirent-safer.h: Likewise.
23626         * lib/opendir-safer.c: Likewise.
23627         * m4/dirent-safer.m4: Likewise.
23628         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
23629         * modules/dirent-safer-tests: New test.
23630         * tests/test-dirent-safer.c: New file.
23631         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
23632
23633         fdopendir: optimize on mingw
23634         * lib/unistd.in.h (_gl_directory_name): New prototype.
23635         * lib/fchdir.c (_gl_directory_name): Implement it.
23636         (fchdir): Use it to simplify implementation.
23637         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
23638         fchdir, when available, to avoid calling [f]chdir().
23639
23640         fdopendir: split into its own module
23641         * lib/openat.c (fdopendir): Move...
23642         * lib/fdopendir.c: ...into new file.
23643         * modules/fdopendir: New module.
23644         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
23645         * modules/openat (Depends-on): Add fdopendir.
23646         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
23647         fdopendir here.
23648         * modules/savedir (Depends-on): Only need fdopendir, not full
23649         openat.
23650         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
23651         * lib/openat.h (fdopendir): Drop prototype.
23652         * lib/dirent.in.h (fdopendir): Provide prototype.
23653         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
23654         * modules/dirent (Makefile.am): Substitute them.
23655         * MODULES.html.sh (File system functions): Mention it.
23656         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
23657         * modules/fdopendir-tests: New file.
23658         * tests/test-fdopendir.c: Likewise.
23659
23660         fchdir: use more consistent macro convention
23661         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
23662         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
23663         REPLACE_FCHDIR, rather than relying on config.h macros.
23664         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
23665         inside a single make-time REPLACE_FCHDIR block, rather than using
23666         the config.h FCHDIR_REPLACEMENT.
23667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
23668         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
23669         Manage fstat replacement.
23670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
23671         REPLACE_FCHDIR.
23672         * modules/sys_stat (Files): Add m4/unistd_h.m4.
23673         (Makefile.am): Substitute REPLACE_FCHDIR.
23674         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
23675         FCHDIR_REPLACEMENT.
23676         * lib/dup-safer.c (dup_safer): Likewise.
23677         * lib/dup2.c (rpl_dup2): Likewise.
23678         * lib/dup3.c (rpl_dup3): Likewise.
23679         * lib/open.c (rpl_open): Likewise.
23680
23681         fchdir: simplify error handling, and support dup3
23682         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
23683         stdbool, malloc-posix, realloc-posix.
23684         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
23685         (ensure_dirs_slot): Return false on allocation failure.
23686         (rpl_dup2): Delete.
23687         (_gl_register_dup): New function.
23688         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
23689         (_gl_register_fd): Close fd on allocation failure.
23690         * lib/fcntl.in.h (_gl_register_fd): Update signature.
23691         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
23692         prototype.
23693         (rpl_dup2_fchdir): Delete prototype.
23694         * lib/open.c (open): Update caller.
23695         * lib/dup2.c (dup2): Track fchdir metadata.
23696         * lib/dup3.c (dup3): Likewise.
23697         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
23698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
23699
23700 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23701
23702         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
23703         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
23704         don't pass arguments to AC_OUTPUT.
23705
23706 2009-09-02  Bruno Haible  <bruno@clisp.org>
23707
23708         * modules/mkdtemp (License): Relicense under LGPLv2+.
23709         Reported by Paolo Bonzini.
23710
23711 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23712
23713         Replace uses of obsolete autoconf macros in Jim's modules.
23714         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
23715         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
23716         can evoke a warning from autoconf when run with -Wobsolete
23717         enabled.  They were declared obsolete for good reasons (see
23718         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
23719         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
23720         should not continue using the deprecated macros.
23721         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
23722         obsolete Autoconf macros with modern counterparts.
23723         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23724         * m4/dos.m4 (gl_AC_DOS): Likewise.
23725         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
23726         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23727         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
23728         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
23729         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
23730         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
23731         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
23732         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
23733         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
23734         Likewise.
23735         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23736         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23737         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
23738         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
23739         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
23740         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
23741
23742 2009-09-01  Eric Blake  <ebb9@byu.net>
23743
23744         fchdir: fix off-by-one bug in previous patch
23745         * lib/fchdir.c (rpl_fstat): Use correct bounds.
23746         (_gl_unregister_fd): Delete useless if.
23747
23748 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
23749
23750         maint.mk: sort the list of syntax-check rules
23751         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
23752         easier to get a sense of progress when the rules are run sequentially
23753         and take a long time.
23754
23755 2009-09-01  Simon Josefsson  <simon@josefsson.org>
23756
23757         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
23758         * modules/netinet_in: Likewise.
23759         * modules/sys_file: Likewise.
23760         * modules/sys_ioctl: Likewise.
23761         * modules/sys_select: Likewise.
23762         * modules/sys_socket: Likewise.
23763         * modules/sys_stat: Likewise.
23764         * modules/sys_time: Likewise.
23765         * modules/sys_times: Likewise.
23766         * modules/sys_utsname: Likewise.
23767         * modules/sys_wait: Likewise.
23768
23769 2009-09-01  Jim Meyering  <meyering@redhat.com>
23770
23771         fts: help ensure that return values are not ignored
23772         * lib/fts_.h (__GNUC_PREREQ): Define.
23773         (__attribute_warn_unused_result__): Define.
23774         (fts_children, fts_close, fts_open, fts_read): Declare with
23775         __attribute_warn_unused_result__.
23776
23777         fts: fts_close now fails also when closing a dir file descriptor fails
23778         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
23779         and propagate to caller, along with errno.
23780
23781         announce-gen: correct formatting in --help output
23782         * build-aux/announce-gen (usage): Move the one-line description in
23783         --help output "up", to where it belongs, just after Usage:.
23784
23785 2009-08-31  Eric Blake  <ebb9@byu.net>
23786
23787         fchdir: port to mingw
23788         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
23789         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
23790         opened, then use a substitute.
23791         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
23792         replacement.
23793         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
23794         (_gl_register_fd): No need to check stat if open already filters
23795         all directories.
23796         (fchdir): Fix error condition to match POSIX.
23797         * modules/fchdir (Depends-on): Add sys_stat.
23798         * doc/posix-functions/open.texi (open): Document the limitation.
23799         * modules/fchdir-tests: New file.
23800         * tests/test-fchdir.c: Likewise.
23801
23802         canonicalize: allow cross-testing from cygwin to mingw
23803         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
23804         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
23805         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
23806         Likewise.
23807         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
23808         target does not support symlinks.
23809         * tests/test-canonicalize-lgpl.sh: Likewise.
23810
23811         chown: avoid compilation warning on mingw
23812         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
23813         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
23814         mingw.
23815         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23816         * modules/chown (Depends-on): Add errno.
23817
23818 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23819
23820         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
23821         command.
23822
23823 2009-08-31  Jim Meyering  <meyering@redhat.com>
23824
23825         canonicalize: remove useless initialization
23826         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
23827         initialization of local, "end".
23828
23829 2009-08-30  Bruno Haible  <bruno@clisp.org>
23830
23831         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
23832         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
23833         ENOSYS.
23834
23835 2009-08-30  Bruno Haible  <bruno@clisp.org>
23836
23837         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
23838         /usr/xpg4/bin/tr when it exists.
23839         * tests/test-pipe-filter-gi1.sh: Likewise.
23840
23841 2009-08-30  Bruno Haible  <bruno@clisp.org>
23842
23843         Work around deficient /usr/bin/id program on Solaris.
23844         * tests/test-file-has-acl.sh (ID): New variable.
23845         * tests/test-set-mode-acl.sh (ID): Likewise.
23846         * tests/test-copy-acl.sh (ID): Likewise.
23847         * tests/test-copy-file.sh (ID): Likewise.
23848
23849 2009-08-30  Bruno Haible  <bruno@clisp.org>
23850
23851         New module 'xstriconveh'.
23852         * lib/xstriconveh.h: New file.
23853         * lib/xstriconveh.c: New file.
23854         * modules/xstriconveh: New file.
23855
23856 2009-08-30  Bruno Haible  <bruno@clisp.org>
23857
23858         Make it easier to use mem_cd_iconveh.
23859         * lib/striconveh.h (iconveh_t): New type.
23860         (iconveh_open, iconveh_close): New declarations.
23861         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23862         with a single 'const iconveh_t *' argument.
23863         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
23864         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23865         with a single 'const iconveh_t *' argument.
23866         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
23867         * tests/test-striconveh.c (main): Update.
23868         * NEWS: Mention the change.
23869
23870 2009-08-30  Bruno Haible  <bruno@clisp.org>
23871
23872         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
23873         problem.
23874
23875 2009-08-30  Bruno Haible  <bruno@clisp.org>
23876
23877         Work around iconv_open problem on Solaris.
23878         * lib/iconv_open-solaris.gperf: New file.
23879         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
23880         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
23881         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
23882         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
23883         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
23884         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
23885
23886 2009-08-29  Jim Meyering  <meyering@redhat.com>
23887
23888         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
23889         * top/maint.mk (cvs-check): Remove target; it was just an alias
23890         to the better-named vc-diff-check.
23891         (maintainer-distcheck): Remove rule.  It was used only from
23892         the (alpha/beta/major) target, and all of its commands but one
23893         were coreutils-specific.
23894         (vc-dist): Remove rule.
23895         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
23896         Run vc-diff-check, not vc-dist.
23897         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
23898
23899 2009-08-27  Bruno Haible  <bruno@clisp.org>
23900
23901         * tests/test-bitrotate.c (main): Remove test that uses a shift count
23902         of 0.
23903
23904 2009-08-27  Bruno Haible  <bruno@clisp.org>
23905
23906         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
23907         compilers.
23908         * doc/func.texi: Document the SunPRO C bug.
23909
23910 2009-08-27  Bruno Haible  <bruno@clisp.org>
23911
23912         Fix link error on Solaris.
23913         * tests/test-parse-duration.c (xstrdup): Remove function.
23914
23915 2009-08-26  Pádraig Brady  <P@draigbrady.com>
23916
23917         ignore-value: handle pointer types, too
23918         * lib/ignore-value.h (__attribute__): Remove definition.
23919         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
23920         of a more concise and more-often effective "(void) i" statement.
23921         (ignore_ptr): New function to suppress warnings from functions that
23922         return pointers, and to make it explicit that one function doesn't
23923         handle all cases.
23924
23925 2009-08-25  Bruno Haible  <bruno@clisp.org>
23926
23927         dup2: work around a Linux bug.
23928         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
23929         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
23930         * doc/posix-functions/dup2.texi: Mention the Linux bug.
23931         Reported by Simon Josefsson.
23932
23933 2009-08-25  Jim Meyering  <meyering@redhat.com>
23934
23935         libguestfs uses gnulib
23936         * users.txt: Add libguestfs.
23937
23938 2009-08-24  Eric Blake  <ebb9@byu.net>
23939
23940         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
23941         * lib/pipe2.c (includes): Add binary-io.h.
23942         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
23943
23944 2009-08-24  Bruno Haible  <bruno@clisp.org>
23945
23946         Tolerate declared but missing accept4 syscall.
23947         * lib/accept4.c (accept4): Invoke original accept4 function first, if
23948         available.
23949         * lib/sys_socket.in.h (accept4): If the function is already present,
23950         override it.
23951         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
23952         * modules/accept4 (Makefile.am): Compile accept4.c always.
23953         Reported by Paolo Bonzini and Eric Blake.
23954
23955 2009-08-23  Bruno Haible  <bruno@clisp.org>
23956
23957         New module 'accept4'.
23958         * lib/sys_socket.in.h (accept4): New declaration.
23959         * lib/accept4.c: New file.
23960         * m4/accept4.m4: New file.
23961         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23962         GNULIB_ACCEPT4, HAVE_ACCEPT4.
23963         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
23964         HAVE_ACCEPT4.
23965         * modules/accept4: New file.
23966         * doc/glibc-functions/accept4.texi: Mention the new module.
23967
23968 2009-08-24  Jim Meyering  <meyering@redhat.com>
23969
23970         progname: also set global program_invocation_name, when possible
23971         Before this change, a libtool-enabled program that calls glibc's
23972         error function would report the program name as
23973         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
23974         * modules/progname (configure.ac): Check for a declaration of
23975         program_invocation_name.
23976         * lib/progname.c:  Include <errno.h>.
23977         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
23978         Set program_invocation_name.
23979
23980 2009-08-23  Bruno Haible  <bruno@clisp.org>
23981
23982         * lib/dup3.c: Include <string.h>.
23983
23984 2009-08-23  Bruno Haible  <bruno@clisp.org>
23985
23986         * lib/dup3.c (dup3): Test only once whether the system actually exists.
23987         * lib/pipe2.c (pipe2): Likewise.
23988         Suggested by Eric Blake.
23989
23990 2009-08-23  Bruno Haible  <bruno@clisp.org>
23991
23992         Tolerate declared but missing dup3 syscall.
23993         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
23994         * lib/unistd.in.h (dup3): If the function is already present,
23995         override it.
23996         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
23997         * modules/dup3 (Makefile.am): Compile dup3.c always.
23998         Reported by Paolo Bonzini.
23999
24000 2009-08-23  Bruno Haible  <bruno@clisp.org>
24001
24002         Tolerate declared but missing pipe2 syscall.
24003         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
24004         available.
24005         * lib/unistd.in.h (pipe2): If the function is already present,
24006         override it.
24007         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
24008         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
24009         Reported by Paolo Bonzini.
24010
24011 2009-08-23  Bruno Haible  <bruno@clisp.org>
24012
24013         * lib/pipe2.c (pipe2): Move #ifs inside function.
24014
24015 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24016
24017         quotearg: document limitations of quote_these_too
24018         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
24019         those limitations are created.
24020         * lib/quotearg.h (set_char_quoting): Document that digits and
24021         letters that are special after backslash are not permitted.
24022         (quotearg_char): Cross-reference set_char_quoting documentation.
24023
24024 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
24025
24026         quotearg: implement custom_quoting_style
24027         * lib/quotearg.c: (struct quoting_options): Add left_quote and
24028         right_quote fields.
24029         (set_custom_quoting): New public function.
24030         (quotearg_buffer_restyled): Add left_quote and right_quote
24031         arguments, handle them very much like locale quoting, and update
24032         all uses.
24033         (quotearg_n_custom): New public function.
24034         (quotearg_n_custom_mem): New public function.
24035         (quotearg_custom): New public function.
24036         (quotearg_custom_mem): New public function.
24037         * lib/quotearg.h: Prototype and document new public functions.
24038         (enum quoting_style): For escape_quoting_style and
24039         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
24040         ignored even though they're otherwise like c_quoting_style.
24041         Add custom_quoting_style member and document with comparison to
24042         clocale_quoting_style.
24043         * tests/test-quotearg.c (custom_quotes): New array.
24044         (custom_results): New array.
24045         (main): Extend to test custom quoting.
24046
24047 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24048
24049         quotearg: fix right quote escaping when it's in quote_these_too
24050         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
24051         quote, be sure to prepend only one backslash.
24052         * tests/test-quotearg.c (use_quote_double_quotes): New function.
24053         (main): Test it.
24054
24055 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24056
24057         quotearg-tests: test escaping of embedded locale quotes
24058         * tests/test-quotearg.c (struct result_strings): Add member for
24059         new input.
24060         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
24061         (inputs): Add new input.
24062         (results_g): Add expected results.
24063         (flag_results): Likewise.
24064         (locale_results): Likewise.
24065         (compare_strings): Check those.
24066
24067 2009-08-23  Bruno Haible  <bruno@clisp.org>
24068
24069         Tests for module 'dup3'.
24070         * modules/dup3-tests: New file.
24071         * tests/test-dup3.c: New file.
24072
24073         New module 'dup3'.
24074         * lib/unistd.in.h (dup3): New declaration.
24075         * lib/dup3.c: New file.
24076         * m4/dup3.m4: New file.
24077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
24078         HAVE_DUP3.
24079         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
24080         * modules/dup3: New file.
24081         * doc/glibc-functions/dup3.texi: Mention the new module.
24082
24083 2009-08-23  Bruno Haible  <bruno@clisp.org>
24084
24085         Tweak the dup2 test.
24086         * tests/test-dup2.c (main): Create the test file empty. Verify that an
24087         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
24088         the test file is still empty. Fix argument order of lseek.
24089
24090 2009-08-23  Bruno Haible  <bruno@clisp.org>
24091
24092         Avoid test link errors when the modules getopt-gnu, gettext are used.
24093         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
24094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24095
24096 2009-08-23  Bruno Haible  <bruno@clisp.org>
24097
24098         Fix getdtablesize() on mingw.
24099         * lib/getdtablesize.c (getdtablesize): Implement differently.
24100         * lib/unistd.in.h (getdtablesize): Improve comment.
24101
24102 2009-08-23  Bruno Haible  <bruno@clisp.org>
24103
24104         New module 'mkostemp'.
24105         Based on Ulrich Drepper's 2007-08-10 change in glibc.
24106         * lib/stdlib.in.h (mksotemp): New declaration.
24107         * lib/mkostemp.c: New file, from glibc with modifications.
24108         * lib/tempname.h (GT_FILE): Remove outdated comment.
24109         (gen_tempname): Add flags argument.
24110         * lib/tempname.c (__GT_BIGFILE): Remove macro.
24111         (__GT_FILE): Map to 1.
24112         (small_open, large_open): Remove macros.
24113         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
24114         * lib/mkstemp.c (mkstemp): Update.
24115         * lib/mkdtemp.c (mkdtemp): Likewise.
24116         * m4/mkostemp.m4: New file.
24117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
24118         HAVE_MKOSTEMP.
24119         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
24120         HAVE_MKOSTEMP.
24121         * modules/mkostemp: New file, based on modules/mkstemp.
24122         * doc/glibc-functions/mkostemp.texi: Mention the new module.
24123         * NEWS: Mention the change.
24124
24125 2009-08-23  Bruno Haible  <bruno@clisp.org>
24126
24127         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
24128         Reported by Eric Blake.
24129
24130 2009-08-23  Bruno Haible  <bruno@clisp.org>
24131
24132         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
24133         Reported by Eric Blake.
24134
24135 2009-08-23  Bruno Haible  <bruno@clisp.org>
24136
24137         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
24138         * modules/pipe2 (Depends-on): Likewise.
24139
24140 2009-08-23  Eric Blake  <ebb9@byu.net>
24141
24142         fcntl-h: add O_TTY_INIT support
24143         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
24144         * tests/test-fcntl-h.c (o): Test it.
24145         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24146
24147         fcntl-h: rename from fcntl, in preparation for fcntl(2)
24148         * modules/fcntl: Move <fcntl.h> header replacement...
24149         * modules/fcntl-h: ...to new name, so as not to collide with
24150         like-named function.
24151         * tests/test-fcntl.c: Rename...
24152         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
24153         * modules/fcntl-tests: Rename...
24154         * modules/fcntl-h-tests: ...to this.  Update test file name.
24155         * modules/chdir-long (Depends-on): Update clients.
24156         * modules/chdir-safer (Depends-on): Likewise.
24157         * modules/fcntl-safer (Depends-on): Likewise.
24158         * modules/fts (Depends-on): Likewise.
24159         * modules/mkancesdirs (Depends-on): Likewise.
24160         * modules/mkdir-p (Depends-on): Likewise.
24161         * modules/open (Depends-on): Likewise.
24162         * modules/savewd (Depends-on): Likewise.
24163         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
24164         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24165
24166 2009-08-22  Bruno Haible  <bruno@clisp.org>
24167
24168         * modules/binary-io (License): Relicense under LGPL.
24169         * modules/pipe2 (License): Likewise.
24170
24171 2009-08-22  Bruno Haible  <bruno@clisp.org>
24172
24173         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
24174         return value.
24175         * lib/pipe-filter-gi.c (filter_init): Likewise.
24176         Reported by Eric Blake.
24177
24178 2009-08-22  Bruno Haible  <bruno@clisp.org>
24179
24180         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
24181         * modules/pipe (Depends-on): Add pipe2.
24182
24183 2009-08-22  Bruno Haible  <bruno@clisp.org>
24184
24185         Tests for module 'pipe2'.
24186         * modules/pipe2-tests: New file.
24187         * tests/test-pipe2.c: New file.
24188
24189         New module 'pipe2'.
24190         * lib/unistd.in.h (pipe2): New declaration.
24191         * lib/pipe2.c: New file.
24192         * m4/pipe2.m4: New file.
24193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
24194         HAVE_PIPE2.
24195         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
24196         * modules/pipe2: New file.
24197         * doc/glibc-functions/pipe2.texi: Mention the new module.
24198
24199 2009-08-22  Bruno Haible  <bruno@clisp.org>
24200
24201         Reference some new glibc functions.
24202         * doc/glibc-functions/accept4.texi: New file.
24203         * doc/glibc-functions/dup3.texi: New file.
24204         * doc/glibc-functions/mkostemp.texi: New file.
24205         * doc/glibc-functions/pipe2.texi: New file.
24206         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
24207         (Glibc sys/socket.h): Refer to accept4.
24208         (Glibc unistd.h): Refer to dup3, pipe2.
24209         Reported by Eric Blake.
24210
24211 2009-08-22  Jim Meyering  <meyering@redhat.com>
24212             Bruno Haible  <bruno@clisp.org>
24213
24214         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
24215         This makes it so packages using automake-1.11's silent-rules option
24216         can print e.g., a single "GEN    configmake.h" line, rather than
24217         the 30+ statements that perform the job.  If you want to see the
24218         actual commands, you can still run "make V=1".
24219         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
24220         so that make output is abbreviated when those variables are defined
24221         appropriately.
24222         * modules/argz: Likewise.
24223         * modules/arpa_inet: Likewise.
24224         * modules/byteswap: Likewise.
24225         * modules/configmake: Likewise.
24226         * modules/dirent: Likewise.
24227         * modules/errno: Likewise.
24228         * modules/fcntl: Likewise.
24229         * modules/float: Likewise.
24230         * modules/fnmatch: Likewise.
24231         * modules/getopt-posix: Likewise.
24232         * modules/glob: Likewise.
24233         * modules/iconv_open: Likewise.
24234         * modules/inttypes: Likewise.
24235         * modules/localcharset: Likewise.
24236         * modules/locale: Likewise.
24237         * modules/math: Likewise.
24238         * modules/netdb: Likewise.
24239         * modules/netinet_in: Likewise.
24240         * modules/poll: Likewise.
24241         * modules/posix_spawnp-tests: Likewise.
24242         * modules/sched: Likewise.
24243         * modules/search: Likewise.
24244         * modules/selinux-h: Likewise.
24245         * modules/signal: Likewise.
24246         * modules/spawn: Likewise.
24247         * modules/stdarg: Likewise.
24248         * modules/stdbool: Likewise.
24249         * modules/stddef: Likewise.
24250         * modules/stdint: Likewise.
24251         * modules/stdio: Likewise.
24252         * modules/stdlib: Likewise.
24253         * modules/string: Likewise.
24254         * modules/strings: Likewise.
24255         * modules/sys_file: Likewise.
24256         * modules/sys_ioctl: Likewise.
24257         * modules/sys_select: Likewise.
24258         * modules/sys_socket: Likewise.
24259         * modules/sys_stat: Likewise.
24260         * modules/sys_time: Likewise.
24261         * modules/sys_times: Likewise.
24262         * modules/sys_utsname: Likewise.
24263         * modules/sys_wait: Likewise.
24264         * modules/sysexits: Likewise.
24265         * modules/time: Likewise.
24266         * modules/unistd: Likewise.
24267         * modules/wchar: Likewise.
24268         * modules/wctype: Likewise.
24269
24270 2009-08-22  Jim Meyering  <meyering@redhat.com>
24271
24272         announce-gen: detect write failure
24273         * build-aux/announce-gen: Add Coda at end.
24274         Remove equivalent-but-more-verbose block at top.
24275
24276 2009-08-19  Akim Demaille  <demaille@gostai.com>
24277
24278         bootstrap: --help to stdout.
24279         * bootstrap (usage): Don't send --help to stderr.
24280         Use a here doc instead of a long string.
24281
24282 2009-08-21  Eric Blake  <ebb9@byu.net>
24283
24284         test-popen-safer: split from test-popen
24285         * tests/test-popen.c (main): Move...
24286         * tests/test-popen.h: ...into new file.
24287         * tests/test-popen-safer2.c: New file.
24288         * modules/popen-tests (Files): Add test-popen.h.
24289         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
24290         Suggested by Bruno Haible.
24291
24292         test-fcntl-safer: split from test-open
24293         * tests/test-open.c (main): Move...
24294         * tests/test-open.h: ...into new file.
24295         * tests/test-fcntl-safer.c: New file.
24296         * modules/open-tests (Files): Add test-open.h.
24297         * modules/fcntl-safer-tests: New file.
24298         Suggested by Bruno Haible.
24299
24300         test-fopen-safer: split from test-fopen
24301         * tests/test-fopen.c (main): Move...
24302         * tests/test-fopen.h: ...into new file.
24303         * tests/test-fopen-safer.c: New file.
24304         * modules/fopen-tests (Files): Add test-fopen.h.
24305         * modules/fopen-safer-tests: New file.
24306         Suggested by Bruno Haible.
24307
24308 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24309
24310         popen-safer: test O_CLOEXEC at run-time.
24311         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
24312
24313 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24314
24315         fcntl: move more flags to the header
24316         * lib/cloexec.c: Do not define FD_CLOEXEC here.
24317         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
24318         * lib/fcntl.in.h: Do both things here.
24319
24320 2009-08-21  Jim Meyering  <meyering@redhat.com>
24321
24322         consistently remove $@-t before redirecting to it
24323         * modules/argz: Remove $@-t and $@ before redirecting to the former.
24324         * modules/alloca-opt: Likewise.
24325         * modules/byteswap: Likewise.
24326         * modules/fnmatch: Likewise.
24327         * modules/getopt-posix: Likewise.
24328         * modules/glob: Likewise.
24329         * modules/poll: Likewise.
24330         * modules/posix_spawnp-tests: Likewise.
24331         * modules/sys_socket: Likewise.
24332         * modules/sysexits: Likewise.
24333
24334 2009-08-21  Eric Blake  <ebb9@byu.net>
24335
24336         popen: simplify access to original popen
24337         * lib/popen.c (rpl_popen): No need to worry about popen being a
24338         macro.
24339         Reported by Bruno Haible.
24340
24341 2009-08-20  Eric Blake  <ebb9@byu.net>
24342
24343         build: avoid some compiler warnings
24344         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
24345         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
24346         type.
24347         (new_exclude_segment, excluded_file_pattern_p)
24348         (excluded_file_name_p): Reduce scope.
24349         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
24350         old-style declaration.
24351
24352 2009-08-20  Simon Josefsson  <simon@josefsson.org>
24353
24354         * tests/test-exclude1.sh: Handle Windows EOL.
24355         * tests/test-exclude2.sh: Likewise.
24356         * tests/test-exclude3.sh: Likewise.
24357         * tests/test-exclude4.sh: Likewise.
24358         * tests/test-exclude5.sh: Likewise.
24359         * tests/test-exclude6.sh: Likewise.
24360         * tests/test-exclude7.sh: Likewise.
24361
24362 2009-08-19  Akim Demaille  <demaille@gostai.com>
24363
24364         bootstrap: find sha1sum when named gsha1sum.
24365         * bootstrap (find_tool): New.
24366         ($SHA1SUM): New.
24367         Use it.
24368
24369 2009-08-20  Jim Meyering  <meyering@redhat.com>
24370
24371         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
24372         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
24373         expression that converts "." in a file name to "\." in the resulting
24374         regexp.  Start with a dummy statement, so that prior shell variable
24375         definitions are expanded portably.  Reported by Simon Josefsson.
24376
24377 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
24378
24379         Fix polling for writeability of a screen buffer.
24380         * lib/poll.c: Distinguish input and screen buffers for the
24381         Win32 implementation.
24382         * lib/select.c: Likewise.
24383
24384 2009-08-19  Eric Blake  <ebb9@byu.net>
24385
24386         popen-safer: prevent popen from clobbering std descriptors
24387         * modules/popen-safer: New file.
24388         * lib/popen-safer.c: Likewise.
24389         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
24390         * lib/stdio--.h (popen): Provide override.
24391         * lib/stdio-safer.h (popen_safer): Provide declaration.
24392         * tests/test-popen.c (includes): Partially test this.
24393         * modules/popen-safer-tests: New file, for more tests.
24394         * tests/test-popen-safer.c: Likewise.
24395         * MODULES.html.sh (file stream based Input/Output): Mention it.
24396
24397         tests: test some of the *-safer modules
24398         * modules/fopen-safer (Depends-on): Add fopen.
24399         * modules/fcntl-safer (Depends-on): Add fcntl.
24400         * modules/stdlib-safer (Depends-on): Add stdlib.
24401         (configure.ac): Set indicator.
24402         * modules/unistd-safer (configure.ac): Likewise.
24403         * modules/tmpfile-safer (configure.ac): Likewise.
24404         (Depends-on): Add tmpfile.
24405         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
24406         active.
24407         * tests/test-fopen.c (includes): Test safer versions when they are
24408         in use.
24409         * tests/test-open.c (includes): Likewise.
24410
24411         popen: fix cygwin 1.5 bug when stdin closed
24412         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
24413         * modules/popen: New file.
24414         * modules/popen-tests: Likewise.
24415         * tests/test-popen.c: Likewise.
24416         * m4/popen.m4: Likewise.
24417         * lib/popen.c: Likewise.
24418         * lib/stdio.in.h (popen): New declaration.
24419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
24420         * modules/stdio (Makefile.am): Likewise.
24421         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
24422
24423 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
24424
24425         maint.mk: give full control over update-copyright exclusions
24426         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
24427         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
24428         (update-copyright): Don't force inclusion of top-level
24429         ChangeLog.  Don't force exclusion of all COPYING files, but make
24430         them the default exclusion instead.
24431
24432 2009-08-16  Bruno Haible  <bruno@clisp.org>
24433
24434         Fix test failures on Solaris 10.
24435         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
24436         tests when Solaris iconv() is used.
24437         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
24438         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
24439         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
24440         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
24441         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
24442
24443 2009-08-16  Bruno Haible  <bruno@clisp.org>
24444
24445         Fix test failures on Solaris 10.
24446         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
24447         'tr' program and pass it as first argument.
24448         * tests/test-pipe-filter-gi1.sh: Likewise.
24449         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
24450         program as first argument.
24451         * tests/test-pipe-filter-gi1.c (main): Likewise.
24452
24453 2009-08-16  Eric Blake  <ebb9@byu.net>
24454
24455         fpurge: fix previous commits
24456         * modules/fpurge (Makefile.am): Make replacement conditional,
24457         partially reverting 2007-04-29 change; missed in previous
24458         attempt.
24459         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
24460         is missing.
24461
24462 2009-08-16  Bruno Haible  <bruno@clisp.org>
24463
24464         Clarify fpurge's effect on the file position.
24465         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
24466         * tests/test-fpurge.c (main): Make a second pass for checking the file
24467         position.
24468
24469 2009-08-16  Bruno Haible  <bruno@clisp.org>
24470
24471         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
24472         declaration of fpurge is missing.
24473         * tests/test-fpurge.c (main): Check that the file has not more contents
24474         than expected. Close the file before removing it.
24475
24476 2009-08-15  Eric Blake  <ebb9@byu.net>
24477
24478         fpurge: don't wrap working cygwin implementation
24479         * lib/fpurge.c (fpurge): Fix comment typo.
24480         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
24481         1.7 to avoid replacement.
24482         * tests/test-fpurge.c (main): Enhance test.
24483
24484 2009-08-15  Eric Blake  <ebb9@byu.net>
24485         and Jim Meyering  <meyering@redhat.com>
24486
24487         test-update-copyright: skip if perl is insufficient
24488         * tests/test-update-copyright.sh: Failure to run maintainer tool
24489         should not cause testsuite failure on cygwin 1.5.
24490
24491 2009-08-14  Eric Blake  <ebb9@byu.net>
24492
24493         doc: mention more functions added in cygwin 1.7.0
24494         * doc/posix-headers/limits.texi (limits.h): Update for recent
24495         cygwin additions.
24496         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
24497         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
24498         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
24499         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
24500         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
24501
24502 2009-08-14  Eric Blake  <ebb9@byu.net>
24503
24504         maint.mk: simplify update-copyright rule
24505         * top/maint.mk (update-copyright-local): Delete, and document how
24506         to do it in cfg.mk instead.
24507         (update-copyright-exclude-regexp): Delete, and document how to do
24508         it in .x-update-copyright instead.
24509         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
24510         exclude ChangeLog.
24511
24512 2009-08-14  Bruno Haible  <bruno@clisp.org>
24513
24514         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
24515
24516 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24517
24518         maint.mk: support update-copyright-env
24519         * top/maint.mk (update-copyright-env): Define place-holder.
24520         (update-copyright): Expand $(update-copyright-env) before
24521         invoking update-copyright.
24522
24523 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24524
24525         update-copyright: implement forced reformatting
24526         * build-aux/update-copyright: Implement and document
24527         UPDATE_COPYRIGHT_FORCE.
24528         * tests/test-update-copyright.sh: Test it.
24529
24530 2009-08-14  Eric Blake  <ebb9@byu.net>
24531         and Bruno Haible  <bruno@clisp.org>
24532
24533         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
24534         * tests/test-locale.c: Revert previous patch related to NULL.
24535         * tests/test-stdio.c: Likewise.
24536         * tests/test-stdlib.c: Likewise.
24537         * tests/test-string.c: Likewise.
24538         * tests/test-unistd.c: Likewise.
24539         * modules/time-tests (Depends-on): Add verify.
24540         * modules/wchar-tests (Depends-on): Likewise.
24541         * tests/test-time.c: Test for NULL compliance.
24542         * tests/test-wchar.c: Likewise.
24543         * modules/locale (Depends-on): Add stddef.
24544         * modules/stdio (Depends-on): Likewise.
24545         * modules/stdlib (Depends-on): Likewise.
24546         * modules/string (Depends-on): Likewise.
24547         * modules/time (Depends-on): Likewise.
24548         * modules/unistd (Depends-on): Likewise.
24549         * modules/wchar (Depends-on): Likewise.
24550         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
24551         * lib/stdlib.in.h (includes): Likewise.
24552         * lib/string.in.h (includes): Likewise.
24553         * lib/time.in.h (includes): Likewise.
24554         * lib/unistd.in.h (includes): Likewise.
24555         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
24556         replaced.
24557         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24558         * m4/stddef_h.m4: New file.
24559         * modules/stddef: Likewise.
24560         * lib/stddef.in.h: Likewise.
24561         * modules/stddef-tests: Likewise.
24562         * tests/test-stddef.c: Likewise.
24563         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
24564         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
24565         * doc/posix-headers/locale.texi (locale.h): Likewise.
24566         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
24567         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24568         * doc/posix-headers/string.texi (string.h): Likewise.
24569         * doc/posix-headers/time.texi (time.h): Likewise.
24570         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
24571         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
24572
24573 2009-08-14  Eric Blake  <ebb9@byu.net>
24574
24575         doc: improve git diff of texinfo files
24576         * .gitattributes: Add rule for *.texi files, with hint on how to
24577         use it.
24578         Copied from m4, and based on a report by Bruno Haible.
24579
24580 2009-08-14  Bruno Haible  <bruno@clisp.org>
24581
24582         Disable multithread support by default on Cygwin 1.5.x for real.
24583         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
24584
24585 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24586
24587         update-copyright: much ado about intervals
24588         * build-aux/update-copyright: Implement and document
24589         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
24590         of copyright year intervals.
24591         Also, document UPDATE_COPYRIGHT_YEAR.
24592         * tests/test-update-copyright.sh: Test it.
24593
24594         update-copyright: convert 2-digit to 4-digit years
24595         * build-aux/update-copyright: Implement and document.
24596         * tests/test-update-copyright.sh: Update.
24597
24598 2009-08-14  Jim Meyering  <meyering@redhat.com>
24599
24600         test-exclude: avoid coreutils "make check" failure
24601         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
24602         just as in test-argmatch.c.
24603
24604 2009-08-13  Eric Blake  <ebb9@byu.net>
24605
24606         test-dup2: fix bad assumption
24607         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
24608         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
24609
24610         test-version-etc: fix CRLF portability issue
24611         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
24612         recognize \r.
24613         * tests/test-argp-version-etc-1.sh: Likewise.
24614
24615         getopt: update client modules
24616         * modules/argp (Depends-on): Use getopt-gnu.
24617         * modules/git-merge-changelog (Depends-on): Likewise.
24618         * modules/long-options (Depends-on): Likewise.
24619         * modules/xstrtol (Depends-on): Likewise.
24620
24621 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24622
24623         * tests/test-version-etc.sh: Don't fail on different
24624         project/version.  Don't fail on CRLF differences.  Rewrite to use
24625         multiple -e instead of multiple sed forks, suggested by Eric Blake
24626         <ebb9@byu.net>.
24627         * tests/test-argp-version-etc-1.sh: Likewise.
24628
24629 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24630
24631         * tests/test-version-etc.sh: Don't fail on different
24632         project/version.
24633
24634 2009-08-12  Bruno Haible  <bruno@clisp.org>
24635
24636         Tests for modules 'getopt-posix', 'getopt-gnu'.
24637         * modules/getopt-posix-tests: New file.
24638         * tests/test-getopt.c: New file.
24639         * tests/test-getopt.h: New file.
24640         * tests/test-getopt_long.h: New file.
24641
24642         New modules 'getopt-posix', 'getopt-gnu'.
24643         * modules/getopt-gnu: New file, renamed from modules/getopt.
24644         * modules/getopt-posix: New file.
24645         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
24646         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
24647         (gl_GETOPT): Remove macro.
24648         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
24649         Disable the test against BSD systems that declare optreset. Test
24650         against mingw bug. Test against lack of support of optional arguments
24651         on many platforms.
24652         * doc/glibc-headers/getopt.texi: Update module name and list of
24653         relevant platforms.
24654         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
24655         'getopt-gnu' and more portability problems.
24656         * NEWS: Mention the changes.
24657
24658 2009-08-12  Bruno Haible  <bruno@clisp.org>
24659
24660         Ensure that optarg etc. get declared by <unistd.h>.
24661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
24662         AC_USE_SYSTEM_EXTENSIONS.
24663         * modules/getopt (Depends-on): Add 'extensions'.
24664
24665 2009-08-12  Bruno Haible  <bruno@clisp.org>
24666
24667         Avoid test link errors.
24668         * modules/pipe-filter-ii-tests (Makefile.am): Define
24669         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
24670         * modules/pipe-filter-gi-tests (Makefile.am): Define
24671         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
24672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24673
24674 2009-08-12  Bruno Haible  <bruno@clisp.org>
24675
24676         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
24677         gl_GETOPT_SUBSTITUTE before.
24678         (gl_GETOPT): Use it.
24679         * m4/argp.m4 (gl_ARGP): Update.
24680         Reported by Sergey Poznyakoff.
24681
24682         * m4/getopt.m4: Reorder macros.
24683         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
24684         (gl_GETOPT_SUBSTITUTE): Remove macro.
24685
24686 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24687
24688         Minor improvement in gitlog-to-changelog
24689
24690         * build-aux/gitlog-to-changelog: New option `--format' makes
24691         output format string configurable.
24692
24693 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24694
24695         Optimize exclude: use hash tables for non-wildcard patterns.
24696
24697         * lib/exclude.c: Include hash.h and mbuiter.h
24698         (struct exclude_pattern, exclude_segment): New data types.
24699         (struct exclude): Rewrite.
24700         (fnmatch_pattern_has_wildcards): New function.
24701         (new_exclude_segment, free_exclude_segment): New functions.
24702         (excluded_file_pattern_p, excluded_file_name_p): New functions.
24703         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
24704         * lib/exclude.h (is_fnmatch_pattern): New prototype.
24705         * modules/exclude: Depend on hash and mbuiter.
24706
24707         * modules/exclude-tests: New file.
24708         * tests/test-exclude.c: New file.
24709         * tests/test-exclude1.sh: New file.
24710         * tests/test-exclude2.sh: New file.
24711         * tests/test-exclude3.sh: New file.
24712         * tests/test-exclude4.sh: New file.
24713         * tests/test-exclude5.sh: New file.
24714         * tests/test-exclude6.sh: New file.
24715         * tests/test-exclude7.sh: New file.
24716
24717 2009-08-12  Bruno Haible  <bruno@clisp.org>
24718
24719         Ensure that getopt() gets declared by <unistd.h>.
24720         * lib/unistd.in.h: Conditionally include getopt.h.
24721         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
24722         Set GNULIB_UNISTD_H_GETOPT.
24723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24724         GNULIB_UNISTD_H_GETOPT.
24725         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
24726
24727 2009-08-12  Bruno Haible  <bruno@clisp.org>
24728
24729         Clarify logic.
24730         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
24731         gl_replace_getopt instead of GETOPT_H.
24732
24733 2009-08-12  Bruno Haible  <bruno@clisp.org>
24734
24735         * m4/getopt.m4: Add comments.
24736
24737 2009-08-12  Bruno Haible  <bruno@clisp.org>
24738
24739         Disable multithread support by default on Cygwin 1.5.x.
24740         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
24741         set gl_use_threads=no if not specified otherwise.
24742
24743 2009-08-11  Bruno Haible  <bruno@clisp.org>
24744
24745         Avoid compilation error on NetBSD 5.0.
24746         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
24747         * tests/test-stdio.c: Likewise.
24748         * tests/test-stdlib.c: Likewise.
24749         * tests/test-string.c: Likewise.
24750         * tests/test-unistd.c: Likewise.
24751         Reported by Greg Troxel <gdt@ir.bbn.com>
24752         at <https://savannah.gnu.org/support/?106973>.
24753
24754 2009-08-11  Bruno Haible  <bruno@clisp.org>
24755
24756         * modules/dup2-tests (Depends-on): Remove close.
24757
24758         Undo 2009-07-19 commit.
24759         * modules/acl-tests (Depends-on): Remove close.
24760         * modules/binary-io-tests (Depends-on): Likewise.
24761         * modules/closein-tests (Depends-on): Likewise.
24762         * modules/flock-tests (Depends-on): Likewise.
24763         * modules/fsync-tests (Depends-on): Likewise.
24764         * modules/lseek-tests (Depends-on): Likewise.
24765         * modules/pipe-tests (Depends-on): Likewise.
24766         * modules/posix_spawn-tests (Depends-on): Likewise.
24767         * modules/posix_spawnp-tests (Depends-on): Likewise.
24768         * modules/stat-time-tests (Depends-on): Likewise.
24769         * modules/yesno-tests (Depends-on): Likewise.
24770
24771 2009-08-10  Bruno Haible  <bruno@clisp.org>
24772
24773         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
24774
24775 2009-08-10  Bruno Haible  <bruno@clisp.org>
24776
24777         Fix a gcc warning.
24778         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
24779
24780 2009-08-10  Bruno Haible  <bruno@clisp.org>
24781
24782         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
24783         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
24784         not only the first time.
24785         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
24786         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
24787         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
24788         is 1, not only the the first time.
24789
24790 2009-08-10  Bruno Haible  <bruno@clisp.org>
24791
24792         Make it possible to use module 'gethostname' without module 'close'.
24793         * lib/unistd.in.h (close): Evoke a link error only if
24794         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24796         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24797         * modules/unistd (Makefile.am): Substitute
24798         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24799         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
24800         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24801         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24802         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24803         * modules/sys_ioctl (Makefile.am): Substitute
24804         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24805         * modules/socket (configure.ac): On native Windows, set
24806         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
24807         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24808         Reported by Sam Steingold <sds@gnu.org>.
24809
24810 2009-08-10  Bruno Haible  <bruno@clisp.org>
24811
24812         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
24813         * modules/ioctl (configure.ac): Likewise.
24814
24815 2009-08-10  Bruno Haible  <bruno@clisp.org>
24816
24817         Avoid collision between gnulib wrapper and libintl wrapper.
24818         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
24819         already defined in intl/printf.c.
24820         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
24821         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
24822
24823 2009-08-09  Bruno Haible  <bruno@clisp.org>
24824
24825         Make <sys/select.h> really self-contained, also on Solaris 10.
24826         * lib/sys_select.in.h: Include <string.h>.
24827         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
24828         Solaris 10 problem.
24829         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
24830         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
24831         Reported by Jim Meyering.
24832
24833 2009-08-09  Bruno Haible  <bruno@clisp.org>
24834
24835         Avoid warnings from 'aclocal' that are due to a use of macro name
24836         AM_XGETTEXT_OPTION that is not defined in automake.
24837         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
24838         automake.
24839         * modules/error (configure.ac): Likewise.
24840         * modules/propername (configure.ac): Likewise.
24841         * modules/vasprintf (configure.ac): Likewise.
24842         * modules/verror (configure.ac): Likewise.
24843         * modules/xprintf (configure.ac): Likewise.
24844         * modules/xvasprintf (configure.ac): Likewise.
24845
24846 2009-08-08  Bruno Haible  <bruno@clisp.org>
24847
24848         Avoid compilation error in C++ mode.
24849         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
24850         Reported by Sam Steingold <sds@gnu.org>.
24851
24852 2009-08-08  Bruno Haible  <bruno@clisp.org>
24853
24854         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
24855         for the various Unix platforms.
24856         * doc/posix-headers/limits.texi: Update platforms list regarding
24857         HOST_NAME_MAX.
24858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24859
24860 2009-08-07  Jim Meyering  <meyering@redhat.com>
24861
24862         selinux-at: fix typo in a comment
24863         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
24864         Spotted by Paolo Bonzini.
24865
24866         selinux-at: remove redundant m4 code, add documentation
24867         * modules/selinux-at (configure.ac): Remove redundant code.
24868         LIB_SELINUX is already set via the dependent module, selinux-h.
24869         (Include): Add quotes around selinux-at.h.
24870         * lib/selinux-at.h: Add documentation.
24871         Reported by Bruno Haible in
24872         http://marc.info/?l=gnulib-bug&m=124958988300749
24873
24874 2009-08-07  Bruno Haible  <bruno@clisp.org>
24875
24876         Avoid link error on MacOS X 10.3 and 10.4.
24877         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
24878         on non-ELF systems.
24879         * lib/argp-pv.c (argp_program_version): Likewise.
24880         Reported by Simon Josefsson.
24881
24882 2009-08-07  Simon Josefsson  <simon@josefsson.org>
24883
24884         * tests/test-version-etc.sh: Use $EXEEXT.
24885
24886 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
24887
24888         update-copyright: update documentation to point to maint.mk
24889         * build-aux/update-copyright: Here.
24890
24891 2009-08-06  Jim Meyering  <meyering@redhat.com>
24892
24893         maint.mk: support update-copyright-local
24894         * top/maint.mk (update-copyright-local): Define place-holder.
24895         (update-copyright): Depend on $(update-copyright-local).
24896
24897 2009-08-06  Jim Meyering  <meyering@redhat.com>
24898
24899         selinux-at: new module
24900         Initially written for coreutils, this module will soon be
24901         used by findutils, too.
24902         * MODULES.html.sh [Misc]: Add selinux-at.
24903         * lib/selinux-at.h: New file, from coreutils.
24904         * lib/selinux-at.c: Likewise.
24905         * modules/selinux-at: Likewise.
24906         (License): Change from LGPL to GPL, since it depends
24907         on the GPL'd openat module.
24908
24909         doc: update README
24910         * README: Remove references to cogito.
24911         Remove cvs-repo-updating instructions from 2007.
24912         Don't imply that CVS is better if you have limited disk space.
24913
24914 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24915
24916         update-copyright: support C-style comments
24917         * build-aux/update-copyright: Implement and document.
24918         * tests/test-update-copyright.sh: Test.
24919
24920 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24921
24922         update-copyright: support omitted "(C)"
24923         * build-aux/update-copyright: Implement and document.  Also,
24924         allow variable whitespace before "(C)".
24925         * tests/test-update-copyright.sh: Test.
24926
24927 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24928
24929         update-copyright: don't trip on non-FSF copyright statements
24930         * build-aux/update-copyright: Fix so that the first correctly
24931         formatted FSF copyright statement is recognized no matter what
24932         appears before it.  Update documentation.
24933         * tests/test-update-copyright.sh: Test that.
24934
24935 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24936
24937         update-copyright: clean up code a little
24938         * build-aux/update-copyright: Append "_re" to the name of any
24939         variable holding a regular expression.
24940         Replace "old" and "new" with "stmt" in variable names.
24941         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
24942         handled correctly.
24943         Format code more consistently.
24944
24945 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24946
24947         update-copyright-tests: improve portability
24948         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
24949         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
24950
24951 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24952
24953         update-copyright: support @copyright{} and &copy;
24954         * build-aux/update-copyright: Implement and document.
24955         * tests/test-update-copyright.sh: Test.
24956
24957 2009-08-04  Jim Meyering  <meyering@redhat.com>
24958
24959         update-copyright-tests: correctly test EOL=\r\n handling
24960         * tests/test-update-copyright.sh: Put \r at the end of some lines
24961         for the dos-eol tests.  Based on a patch by Joel E. Denny.
24962
24963         maint.mk: make update-copyright exclusion list more configurable
24964         * top/maint.mk (update-copyright): Default to excluding COPYING,
24965         but allow an override, in case someone does want to update that file.
24966
24967         maint.mk: don't update copyright date in COPYING
24968         * top/maint.mk (update-copyright): Exclude COPYING.
24969
24970         maint.mk: add a copyright-updating rule
24971         * top/maint.mk (update-copyright): New rule.
24972         Derived from coreutils/Makefile.am.
24973
24974         update-copyright: rename some variables
24975         * build-aux/update-copyright: Rename a few variables for clarity.
24976         Tweak syntax.  List Joel E. Denny as coauthor.
24977
24978 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24979
24980         update-copyright: fix bug for 2-digit last year and add tests
24981         * build-aux/update-copyright: Fix bug.
24982         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
24983         specified.
24984         * modules/update-copyright-tests: New
24985         * tests/test-update-copyright.sh: New.
24986
24987 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24988
24989         update-copyright: handle leading tabs in line prefix
24990         * build-aux/update-copyright: Count leading tabs as 8 spaces
24991         when computing margin.  This helps with the formatting of
24992         ChangeLogs, for example.
24993         Fix documentation a little.
24994
24995 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24996
24997         update-copyright: support EOL=\r\n
24998         * build-aux/update-copyright: Implement that.
24999
25000 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25001
25002         update-copyright: automatically format copyright statements
25003         * build-aux/update-copyright: Implement that.
25004         Also, be a little more predictable and safer by always failing
25005         when the full copyright format is not perfectly recognized as an
25006         unbroken whole.  Discussed at
25007         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
25008         Rewrite documentation.
25009
25010 2009-08-03  Bruno Haible  <bruno@clisp.org>
25011
25012         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
25013
25014 2009-08-02  Bruno Haible  <bruno@clisp.org>
25015
25016         Tests for module 'uname'.
25017         * modules/uname-tests: New file.
25018         * tests/test-uname.c: New file.
25019
25020         New module 'uname'.
25021         * lib/uname.c: New file.
25022         * m4/uname.m4: New file.
25023         * modules/uname: New file.
25024         * doc/posix-functions/uname.texi: Mention the new module.
25025
25026 2009-08-02  Bruno Haible  <bruno@clisp.org>
25027
25028         Tests for module 'sys_utsname'.
25029         * modules/sys_utsname-tests: New file.
25030         * tests/test-sys_utsname.c: New file.
25031
25032         New module 'sys_utsname'.
25033         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
25034         * m4/sys_utsname_h.m4: New file.
25035         * modules/sys_utsname: New file.
25036         * doc/posix-headers/sys_utsname.texi: Mention the new module.
25037
25038 2009-08-02  Bruno Haible  <bruno@clisp.org>
25039
25040         Implicitly initialize the sockets library.
25041         * lib/gethostname.c: Include sockets.h.
25042         (rpl_gethostname): Invoke gl_sockets_startup.
25043         * lib/socket.c: Include sockets.h.
25044         (rpl_socket): Invoke gl_sockets_startup.
25045         * modules/gethostname (Depends-on): Add sockets.
25046         * modules/socket (Depends-on): Likewise.
25047         * tests/test-poll.c: Don't include sockets.h.
25048         (main): Don't invoke gl_sockets_startup.
25049         * tests/test-select.c: Don't include sockets.h.
25050         (main): Don't invoke gl_sockets_startup.
25051
25052 2009-08-02  Bruno Haible  <bruno@clisp.org>
25053
25054         Allow multiple calls to gl_sockets_startup.
25055         * lib/sockets.c (initialized_sockets_version): New variable.
25056         (gl_sockets_startup): Do nothing if already called for this or a higher
25057         version.
25058         (gl_sockets_cleanup): Reset initialized_sockets_version.
25059
25060 2009-08-03  Simon Josefsson  <simon@josefsson.org>
25061
25062         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
25063         different project/version.
25064
25065 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
25066             Bruno Haible  <bruno@clisp.org>
25067
25068         Tests for module 'pipe-filter-gi'.
25069         * modules/pipe-filter-gi-tests: New file.
25070         * tests/test-pipe-filter-gi1.sh: New file.
25071         * tests/test-pipe-filter-gi1.c: New file.
25072         * tests/test-pipe-filter-gi2.sh: New file.
25073         * tests/test-pipe-filter-gi2-main.c: New file.
25074         * tests/test-pipe-filter-gi2-child.c: New file.
25075
25076         New module 'pipe-filter-gi'.
25077         * lib/pipe-filter-gi.c: New file.
25078         * modules/pipe-filter-gi: New file.
25079
25080 2009-08-02  Bruno Haible  <bruno@clisp.org>
25081             Paolo Bonzini  <bonzini@gnu.org>
25082
25083         Tests for module 'pipe-filter-ii'.
25084         * modules/pipe-filter-ii-tests: New file.
25085         * tests/test-pipe-filter-ii1.sh: New file.
25086         * tests/test-pipe-filter-ii1.c: New file.
25087         * tests/test-pipe-filter-ii2.sh: New file.
25088         * tests/test-pipe-filter-ii2-main.c: New file.
25089         * tests/test-pipe-filter-ii2-child.c: New file.
25090
25091         New module 'pipe-filter-ii'.
25092         * lib/pipe-filter.h: New file.
25093         * lib/pipe-filter-ii.c: New file.
25094         * lib/pipe-filter-aux.h: New file.
25095         * modules/pipe-filter-ii: New file.
25096
25097 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25098
25099         * lib/gc-libgcrypt.c: Change copyright to FSF.
25100         * lib/gc-gnulib.c: Likewise.
25101
25102 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
25103
25104         * lib/gethostname.c: Include limits.h.
25105
25106 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25107             Bruno Haible  <bruno@clisp.org>
25108
25109         Ensure HOST_NAME_MAX as part of the gethostname module.
25110         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
25111         define also HOST_NAME_MAX.
25112         * tests/test-gethostname.c: Include <limits.h>.
25113         (main): Check also HOST_NAME_MAX.
25114         * doc/posix-headers/limits.texi: Document the mingw problem.
25115
25116 2009-08-02  Bruno Haible  <bruno@clisp.org>
25117
25118         * lib/gethostname.c (gethostname): Fix handling of large len argument.
25119         Add comments.
25120
25121 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25122
25123         * lib/gethostname.c: Add Windows wrapper.
25124         * m4/gethostname.m4: Look for gethostname in -lws2_32.
25125         * modules/gethostname: Depend on sys_socket & errno, for also
25126         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
25127         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
25128
25129 2009-07-31  Jim Meyering  <meyering@redhat.com>
25130
25131         getloadavg: fix symbol name in comment
25132         * lib/getloadavg.c: Correct a typo I introduced when adding
25133         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
25134         Matt Kraai spotted the problem.
25135
25136 2009-07-29  Matt Kraai  <mkraai@beckman.com>
25137
25138         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
25139         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
25140         code also if ! defined N_NAME_POINTER.
25141         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
25142         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
25143         but the n_name member is a 12-byte array.
25144
25145 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
25146
25147         update-copyright: generalize comment handling
25148         * build-aux/update-copyright: Handle copyright statements
25149         within more comment styles.
25150         Document usage.
25151         Report any file with an external copyright holder or parse failure.
25152
25153 2009-07-29  Jim Meyering  <meyering@redhat.com>
25154
25155         mktime: correct setting of REPLACE_MKTIME
25156         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
25157
25158         update-copyright: new module
25159         * modules/update-copyright: New file.
25160         * build-aux/update-copyright: New file.
25161         * MODULES.html.sh (maint+release support): Add update-copyright.
25162
25163 2009-07-27  Bruno Haible  <bruno@clisp.org>
25164
25165         Fix compilation error when <ctime> is used and mktime is replaced.
25166         * lib/time.in.h (mktime): New declaration.
25167         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
25168         REPLACE_MKTIME instead of defining mktime in config.h.
25169         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
25170         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
25171         Reported by Ross McFarland <rwmcfa1@neces.com>.
25172
25173 2009-07-27  Bruno Haible  <bruno@clisp.org>
25174
25175         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
25176         Reported by Matt Kraai <mkraai@beckman.com>.
25177
25178 2009-07-25  Jim Meyering  <meyering@redhat.com>
25179
25180         maint.mk: avoid warnings about missing files
25181         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
25182         diagnostic when .prev-version does not exist.
25183         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
25184         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
25185         nonexistent cfg.mk.
25186         Suggestions from Simon Josefsson.
25187
25188 2009-07-25  Bruno Haible  <bruno@clisp.org>
25189
25190         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
25191         defined as macros. Needed on QNX 6.4.1.
25192         Reported by Matt Kraai <mkraai@beckman.com>.
25193
25194 2009-07-23  Jim Meyering  <meyering@redhat.com>
25195
25196         maint.mk: invoke "make dist" with a working value of XZ_OPT
25197         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
25198
25199 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
25200
25201         Make fseeko.c compile on QNX.
25202         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
25203
25204 2009-07-22  Peter Simons  <simons@cryp.to>
25205
25206         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
25207         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
25208         * lib/md4.h: Likewise.
25209         * lib/md5.h: Likewise.
25210         * lib/sha1.h: Likewise.
25211         * lib/sha256.h: Likewise.
25212         * lib/sha512.h: Likewise.
25213
25214         tests-sha1: don't assign literal string to 'char *' variable
25215         * tests/test-sha1.c (main): Declare locals with "const" to match
25216         attributes of the right hand side.
25217
25218 2009-07-21  Eric Blake  <ebb9@byu.net>
25219
25220         dup2: fix more mingw problems
25221         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
25222         fd to itself.
25223         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25224         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
25225         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
25226         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
25227         care of mingw bugs.
25228
25229 2009-07-21  Jim Meyering  <meyering@redhat.com>
25230
25231         vc-list-files: avoid failure when /bin/sh is dash
25232         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
25233         On some Debian based systems, /bin/sh is a symlink to dash, and running
25234         this command would omit the "/" following each 'tests' prefix:
25235           dash -x build-aux/vc-list-files -C . tests
25236         That is because bash and dash work differently:
25237           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
25238           bash ok
25239           dash odd
25240
25241 2009-07-21  Eric Blake  <ebb9@byu.net>
25242
25243         dup2-tests: test previous patch
25244         * modules/dup2-tests: New file.
25245         * tests/test-dup2.c: Likewise.
25246         * tests/test-open.c (main): Avoid unspecified behavior.
25247         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
25248         test.
25249
25250         dup2: work around mingw and cygwin 1.5 bug
25251         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
25252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25253         * modules/unistd (Makefile.am): Substitute it.
25254         * lib/unistd.in.h (dup2): Declare the replacement.
25255         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
25256         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
25257         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
25258         * modules/execute (Depends-on): Add dup2.
25259         * modules/fseterr (Depends-on): Likewise.
25260         * modules/pipe (Depends-on): Likewise.
25261         * modules/posix_spawn-internal (Depends-on): Likewise.
25262
25263 2009-07-21  Bruno Haible  <bruno@clisp.org>
25264
25265         * modules/.gitattributes: New file.
25266
25267 2009-07-20  Bruno Haible  <bruno@clisp.org>
25268
25269         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
25270         (main): Use it.
25271
25272 2009-07-20  Eric Blake  <ebb9@byu.net>
25273
25274         test-pipe: make a bit more robust.
25275         * tests/test-pipe.c (myerr): Allow error messages regardless of
25276         what we do to stderr.
25277         (test_pipe): Rearrange to avoid deadlock.
25278         (child_main): Try a larger read, to ensure we avoided deadlock.
25279         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
25280         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
25281         if misused.
25282
25283 2009-07-19  Jim Meyering  <meyering@redhat.com>
25284
25285         fts: avoid false-positive cycle-detection
25286         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
25287         for each new command line argument.
25288
25289 2009-07-19  Bruno Haible  <bruno@clisp.org>
25290
25291         Fix build error on mingw with the modules sys_select and unistd.
25292         * modules/acl-tests (Depends-on): Add close.
25293         * modules/binary-io-tests (Depends-on): Likewise.
25294         * modules/closein-tests (Depends-on): Likewise.
25295         * modules/flock-tests (Depends-on): Likewise.
25296         * modules/fsync-tests (Depends-on): Likewise.
25297         * modules/lseek-tests (Depends-on): Likewise.
25298         * modules/pipe-tests (Depends-on): Likewise.
25299         * modules/posix_spawn-tests (Depends-on): Likewise.
25300         * modules/posix_spawnp-tests (Depends-on): Likewise.
25301         * modules/stat-time-tests (Depends-on): Likewise.
25302         * modules/yesno-tests (Depends-on): Likewise.
25303
25304 2009-07-19  Bruno Haible  <bruno@clisp.org>
25305
25306         Unify conditionals.
25307         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
25308         macros, not at the compiler macros.
25309         * lib/pipe.c: Likewise.
25310         * lib/execute.c: Likewise.
25311         * lib/spawni.c: Likewise.
25312
25313 2009-07-19  Bruno Haible  <bruno@clisp.org>
25314
25315         Fix handling of closed stdin/stdout/stderr on mingw.
25316         * lib/w32spawn.h: Include unistd.h.
25317         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
25318         file descriptor with O_NOINHERIT flag.
25319         (fd_safer_noinherit): New function, based on fd-safer.c.
25320         (dup_safer_noinherit): New function, based on dup-safer.c.
25321         (undup_safer_noinherit): New function.
25322         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
25323         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
25324         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
25325         instead of fd_safer.
25326         * tests/test-pipe.c: Include <windows.h>.
25327         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
25328
25329         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
25330         from main.
25331         (test_pipe): Pass an extra argument for disambiguation.
25332         (main): Invoke parent_main or child_main.
25333
25334         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
25335         consistently.
25336
25337 2009-07-18  Eric Blake  <ebb9@byu.net>
25338
25339         test-pipe: fix mingw build
25340         * tests/test-pipe.c (main): Avoid fcntl on mingw.
25341
25342 2009-07-18  Bruno Haible  <bruno@clisp.org>
25343
25344         * modules/pipe-tests (Makefile.am): Fix typo.
25345
25346 2009-07-18  Eric Blake  <ebb9@byu.net>
25347
25348         error: fix mingw build
25349         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
25350         Reported by Bruno Haible.
25351
25352         error: avoid undefined use of stdout
25353         * lib/error.c (error, error_at_line): Check that fd 1 is open
25354         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
25355         is handling faults and the close_stdout module wants to report the
25356         detection of closed stdout as an error.
25357
25358 2009-07-17  Eric Blake  <ebb9@byu.net>
25359
25360         pipe: be robust in face of closed fds
25361         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
25362         should cause child to misbehave.
25363         * modules/pipe-tests: New module.
25364         * tests/test-pipe.c: New file.
25365         * tests/test-pipe.sh: New file.
25366         Reported by Akim Demaille.
25367
25368 2009-07-14  Bruno Haible  <bruno@clisp.org>
25369
25370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
25371         Reported by anonymous kc.
25372
25373 2009-07-07  Jim Meyering  <meyering@redhat.com>
25374
25375         maint.mk: don't look for translatable strings in *.m4 or *.mk
25376         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
25377         when searching for translatable strings.
25378
25379 2009-07-05  Jim Meyering  <meyering@redhat.com>
25380
25381         remove superfluous parentheses in STREQ definition
25382         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
25383         * lib/getugroups.c (STREQ): Likewise.
25384         * lib/fnmatch.c (STREQ): Likewise.
25385         Spotted by Bruno Haible.
25386
25387 2009-07-04  Jim Meyering  <meyering@redhat.com>
25388
25389         argv-iter: new module
25390         * MODULES.html.sh: Add argv-iter.
25391         * lib/argv-iter.c, lib/argv-iter.h: New files.
25392         * modules/argv-iter: New file.
25393         * modules/argv-iter-tests: New file.
25394         * tests/test-argv-iter.c: Test it.
25395
25396 2009-07-04  Bruno Haible  <bruno@clisp.org>
25397
25398         Fix assertion.
25399         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
25400         contains more exact copies of a given entry than file2, leave the extra
25401         copies unpaired rather than aborting.
25402         Reported by Eric Blake.
25403
25404 2009-07-02  Bruno Haible  <bruno@clisp.org>
25405
25406         Speedup git-merge-changelog for git cherry-pick.
25407         * lib/git-merge-changelog.c (struct entries_mapping): New type.
25408         (entries_mapping_get): New function, extracted from compute_mapping.
25409         (entries_mapping_reverse_get): New function.
25410         (compute_mapping): Add a 'full' argument. Return the result in a
25411         'struct entries_mapping'.
25412         (main): Update. Access the mappings through entries_mapping_get.
25413         Reported by Eric Blake.
25414
25415 2009-07-02  Bruno Haible  <bruno@clisp.org>
25416
25417         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
25418         best_i.
25419
25420 2009-07-02  Bruno Haible  <bruno@clisp.org>
25421
25422         Speed up approximate search for matching ChangeLog entries.
25423         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
25424         argument. Call fstrcmp_bounded instead of fstrcmp.
25425         (compute_mapping, try_split_merged_entry, main): Update callers.
25426
25427 2009-07-02  Bruno Haible  <bruno@clisp.org>
25428
25429         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
25430
25431 2009-06-30  Bruno Haible  <bruno@clisp.org>
25432
25433         Reduce the number of uc_is_cased calls.
25434         * lib/unicase.h (casing_suffix_context_t): Add
25435         'first_char_except_ignorable' field.
25436         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
25437         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
25438         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
25439         Update initializer.
25440         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
25441         case-ignorable characters.
25442         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
25443         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
25444         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
25445         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
25446         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
25447
25448 2009-06-30  Bruno Haible  <bruno@clisp.org>
25449
25450         Tests for module 'unicase/ignorable'.
25451         * modules/unicase/ignorable-tests: New file.
25452         * tests/unicase/test-ignorable.c: New file, generated by
25453         gen-uni-tables.
25454
25455         Tests for module 'unicase/cased'.
25456         * modules/unicase/cased-tests: New file.
25457         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
25458         * tests/unicase/test-predicate-part1.h: New file, derived from
25459         tests/unictype/test-predicate-part1.h.
25460         * tests/unicase/test-predicate-part2.h: New file, same as
25461         tests/unictype/test-predicate-part2.h.
25462
25463         Fix evaluation of "Before C" condition of FINAL_SIGMA.
25464         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
25465         (output_casing_properties): New function.
25466         (main): Call it.
25467         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
25468         * lib/unicase/cased.c: Include unictype/bitmap.h.
25469         (uc_is_cased): Define through a bitmap lookup.
25470         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
25471         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
25472         (uc_is_case_ignorable): Define through a bitmap lookup.
25473         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
25474         lib/unictype/bitmap.h.
25475         (Depends-on): Add inline. Clean up.
25476         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
25477         lib/unictype/bitmap.h.
25478         (Depends-on): Add inline. Clean up.
25479         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
25480         recognition.
25481         * tests/unicase/test-u16-tolower.c (main): Likewise.
25482         * tests/unicase/test-u32-tolower.c (main): Likewise.
25483
25484 2009-06-30  Bruno Haible  <bruno@clisp.org>
25485
25486         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
25487         * lib/unicase/u16-casemap.c: Likewise.
25488         * lib/unicase/u32-casemap.c: Likewise.
25489
25490 2009-06-29  Bruno Haible  <bruno@clisp.org>
25491
25492         Define u32_casefold as a wrapper around u32_ct_casefold.
25493         * lib/unicase/u32-casefold.c: Update.
25494         * modules/unicase/u32-casefold (Depends-on): Add
25495         unicase/u32-ct-casefold, unicase/empty-prefix-context,
25496         unicase/empty-suffix-context. Clean up.
25497
25498         Define u16_casefold as a wrapper around u16_ct_casefold.
25499         * lib/unicase/u16-casefold.c: Update.
25500         * modules/unicase/u16-casefold (Depends-on): Add
25501         unicase/u16-ct-casefold, unicase/empty-prefix-context,
25502         unicase/empty-suffix-context. Clean up.
25503
25504         Define u8_casefold as a wrapper around u8_ct_casefold.
25505         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
25506         * lib/unicase/u8-casefold.c: Update.
25507         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
25508         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25509
25510         Define u32_totitle as a wrapper around u32_ct_totitle.
25511         * lib/unicase/u32-totitle.c: Update.
25512         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
25513         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25514
25515         Define u16_totitle as a wrapper around u16_ct_totitle.
25516         * lib/unicase/u16-totitle.c: Update.
25517         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
25518         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25519
25520         Define u8_totitle as a wrapper around u8_ct_totitle.
25521         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
25522         functions.
25523         (FUNC): Delegate to U_CT_TOTITLE.
25524         * lib/unicase/u8-totitle.c: Update.
25525         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
25526         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25527
25528         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
25529         invocation.
25530         * modules/unicase/u32-tolower (Depends-on): Add
25531         unicase/empty-prefix-context, unicase/empty-suffix-context.
25532
25533         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
25534         invocation.
25535         * modules/unicase/u16-tolower (Depends-on): Add
25536         unicase/empty-prefix-context, unicase/empty-suffix-context.
25537
25538         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
25539         * modules/unicase/u8-tolower (Depends-on): Add
25540         unicase/empty-prefix-context, unicase/empty-suffix-context.
25541
25542         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
25543         invocation.
25544         * modules/unicase/u32-toupper (Depends-on): Add
25545         unicase/empty-prefix-context, unicase/empty-suffix-context.
25546
25547         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
25548         invocation.
25549         * modules/unicase/u16-toupper (Depends-on): Add
25550         unicase/empty-prefix-context, unicase/empty-suffix-context.
25551
25552         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
25553         * modules/unicase/u8-toupper (Depends-on): Add
25554         unicase/empty-prefix-context, unicase/empty-suffix-context.
25555
25556         New module 'unicase/u32-ct-casefold'.
25557         * lib/unicase/u32-ct-casefold.c: New file.
25558         * modules/unicase/u32-ct-casefold: New file.
25559
25560         New module 'unicase/u16-ct-casefold'.
25561         * lib/unicase/u16-ct-casefold.c: New file.
25562         * modules/unicase/u16-ct-casefold: New file.
25563
25564         New module 'unicase/u8-ct-casefold'.
25565         * lib/unicase/u8-ct-casefold.c: New file.
25566         * lib/unicase/u-ct-casefold.h: New file, derived from
25567         lib/unicase/u-casefold.h.
25568         * modules/unicase/u8-ct-casefold: New file.
25569
25570         New module 'unicase/u32-ct-totitle'.
25571         * lib/unicase/u32-ct-totitle.c: New file.
25572         * modules/unicase/u32-ct-totitle: New file.
25573
25574         New module 'unicase/u16-ct-totitle'.
25575         * lib/unicase/u16-ct-totitle.c: New file.
25576         * modules/unicase/u16-ct-totitle: New file.
25577
25578         New module 'unicase/u8-ct-totitle'.
25579         * lib/unicase/u8-ct-totitle.c: New file.
25580         * lib/unicase/u-ct-totitle.h: New file, derived from
25581         lib/unicase/u-totitle.h.
25582         * modules/unicase/u8-ct-totitle: New file.
25583
25584         New module 'unicase/u32-ct-tolower'.
25585         * lib/unicase/u32-ct-tolower.c: New file.
25586         * modules/unicase/u32-ct-tolower: New file.
25587
25588         New module 'unicase/u16-ct-tolower'.
25589         * lib/unicase/u16-ct-tolower.c: New file.
25590         * modules/unicase/u16-ct-tolower: New file.
25591
25592         New module 'unicase/u8-ct-tolower'.
25593         * lib/unicase/u8-ct-tolower.c: New file.
25594         * modules/unicase/u8-ct-tolower: New file.
25595
25596         New module 'unicase/u32-ct-toupper'.
25597         * lib/unicase/u32-ct-toupper.c: New file.
25598         * modules/unicase/u32-ct-toupper: New file.
25599
25600         New module 'unicase/u16-ct-toupper'.
25601         * lib/unicase/u16-ct-toupper.c: New file.
25602         * modules/unicase/u16-ct-toupper: New file.
25603
25604         New module 'unicase/u8-ct-toupper'.
25605         * lib/unicase/u8-ct-toupper.c: New file.
25606         * modules/unicase/u8-ct-toupper: New file.
25607
25608         Add context arguments to u*_casemap functions.
25609         * lib/unicase/unicasemap.h: Include unicase.h.
25610         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
25611         suffix_context arguments.
25612         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
25613         functions.
25614         (FUNC): Add prefix_context and suffix_context arguments. Use
25615         uc_is_cased and uc_is_case_ignorable.
25616         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
25617         * lib/unicase/u16-casemap.c: Likewise.
25618         * lib/unicase/u32-casemap.c: Likewise.
25619         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
25620         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25621         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
25622         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25623         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
25624         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25625
25626         New module 'unicase/u32-suffix-context'.
25627         * lib/unicase/u32-suffix-context.c: New file.
25628         * modules/unicase/u32-suffix-context: New file.
25629
25630         New module 'unicase/u16-suffix-context'.
25631         * lib/unicase/u16-suffix-context.c: New file.
25632         * modules/unicase/u16-suffix-context: New file.
25633
25634         New module 'unicase/u8-suffix-context'.
25635         * lib/unicase/u8-suffix-context.c: New file.
25636         * lib/unicase/u-suffix-context.h: New file.
25637         * modules/unicase/u8-suffix-context: New file.
25638
25639         New module 'unicase/empty-suffix-context'.
25640         * lib/unicase/empty-suffix-context.c: New file.
25641         * modules/unicase/empty-suffix-context: New file.
25642
25643         New module 'unicase/u32-prefix-context'.
25644         * lib/unicase/u32-prefix-context.c: New file.
25645         * modules/unicase/u32-prefix-context: New file.
25646
25647         New module 'unicase/u16-prefix-context'.
25648         * lib/unicase/u16-prefix-context.c: New file.
25649         * modules/unicase/u16-prefix-context: New file.
25650
25651         New module 'unicase/u8-prefix-context'.
25652         * lib/unicase/u8-prefix-context.c: New file.
25653         * lib/unicase/u-prefix-context.h: New file.
25654         * lib/unicase/context.h: New file.
25655         * modules/unicase/u8-prefix-context: New file.
25656
25657         New module 'unicase/empty-prefix-context'.
25658         * lib/unicase/empty-prefix-context.c: New file.
25659         * modules/unicase/empty-prefix-context: New file.
25660
25661         New module 'unicase/ignorable'.
25662         * lib/unicase/ignorable.c: New file.
25663         * modules/unicase/ignorable: New file.
25664
25665         New module 'unicase/cased'.
25666         * lib/unicase/caseprop.h: New file.
25667         * lib/unicase/cased.c: New file.
25668         * modules/unicase/cased: New file.
25669
25670         New functions for case mapping of substrings.
25671         * lib/unicase.h (casing_prefix_context_t): New type.
25672         (unicase_empty_prefix_context): New variable.
25673         (u8_casing_prefix_context, u16_casing_prefix_context,
25674         u32_casing_prefix_context, u8_casing_prefixes_context,
25675         u16_casing_prefixes_context, u32_casing_prefixes_context): New
25676         declarations.
25677         (casing_suffix_context_t): New type.
25678         (unicase_empty_suffix_context): New variable.
25679         (u8_casing_suffix_context, u16_casing_suffix_context,
25680         u32_casing_suffix_context, u8_casing_suffixes_context,
25681         u16_casing_suffixes_context, u32_casing_suffixes_context,
25682         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
25683         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
25684         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
25685         declarations.
25686
25687 2009-06-28  Jim Meyering  <meyering@redhat.com>
25688
25689         boostrap: indent only with spaces
25690         * build-aux/bootstrap: Indent only with spaces, never TABs.
25691
25692         bootstrap: split long lines
25693         * build-aux/bootstrap: Keep line length < 80.
25694
25695         bootstrap: sync from coreutils
25696         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
25697         just as autoreconf does.  Verify a list of prerequisite
25698         package-name,version-number pairs if defined in bootstrap.conf.
25699         Refer to README-prereq, if prerequisites are not satisfied.
25700
25701 2009-06-27  Eric Blake  <ebb9@byu.net>
25702
25703         tests: add test for bogus NULL definition
25704         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
25705         * tests/test-stdlib.c: Likewise.
25706         * tests/test-string.c: Likewise.
25707         * tests/test-locale.c: Likewise.
25708         * tests/test-unistd.c: Likewise.
25709         * modules/stdio-tests (Depends-on): Add verify.
25710         * modules/stdlib-tests (Depends-on): Likewise.
25711         * modules/string-tests (Depends-on): Likewise.
25712         * modules/locale-tests (Depends-on): Likewise.
25713         * modules/unistd-tests (Depends-on): Likewise.
25714
25715 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
25716
25717         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
25718         self-explaining comment.
25719         * m4/selinux-selinux-h: Update serial.
25720         (gl_LIBSELINUX): New macro, adding a warning for missing development
25721         packages to code extracted from...
25722         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
25723         Add warning for missing development packages here, too.
25724
25725 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
25726
25727         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
25728
25729 2009-06-25  Eric Blake  <ebb9@byu.net>
25730
25731         version-etc: fix regression
25732         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
25733         gcc.
25734         (version_etc): Use it, to catch bugs with trailing NULL.
25735         * lib/version-etc.c (version_etc_arn): Delete unused argument.
25736         (version_etc_va): Fix logic bug.
25737         * modules/version-etc-tests: Add test.
25738         * tests/test-version-etc.c: New file.
25739         * tests/test-version-etc.sh: Likewise.
25740
25741 2009-06-25  Sam Steingold  <sds@gnu.org>
25742
25743         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
25744         mbtowc declaration.
25745
25746 2009-06-25  Eric Blake  <ebb9@byu.net>
25747
25748         fpurge: migrate into <stdio.h>
25749         * lib/fpurge.h: Delete...
25750         * lib/stdio.in.h (fpurge): ...and declare here, instead.
25751         * lib/fpurge.c (fpurge): Change declaring header.
25752         * modules/fpurge (Files): Drop deleted file.
25753         (Depends-on): Add stdio.
25754         (configure.ac): Set witness.
25755         * modules/stdio (Makefile.am): Support fpurge macros.
25756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25757         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
25758         * lib/fflush.c: Update client.
25759         * tests/test-fpurge.c: Likewise.
25760         * NEWS: Mention the change.
25761
25762 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25763
25764         * lib/argp-version-etc.c (program_authors): Add const
25765         qualifier.
25766         * lib/version-etc.c: Fix typos in the comments.
25767         * modules/argp-version-etc: Depends on version-etc.
25768
25769 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25770
25771         argp-version-etc: new module.
25772
25773         * lib/argp-version-etc.c: New file.
25774         * lib/argp-version-etc.h: New file.
25775         * modules/argp-version-etc: New file.
25776         * modules/argp-version-etc-tests: New file.
25777         * tests/test-argp-version-etc.c: New test.
25778         * tests/test-argp-version-etc-1.sh: New test.
25779
25780 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25781
25782         Provide additional interfaces and documentation for version-etc
25783         module.
25784
25785         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
25786         interfaces.
25787         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
25788         prototypes.
25789
25790 2009-06-24  Bruno Haible  <bruno@clisp.org>
25791
25792         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
25793         HAVE_LIB${NAME} macro.
25794         Reported by Sam Steingold <sds@gnu.org>.
25795
25796 2009-06-23  Simon Josefsson  <simon@josefsson.org>
25797
25798         * modules/hash-tests (test_hash_LDADD): Link to libintl when
25799         needed.
25800
25801 2009-06-21  Bruno Haible  <bruno@clisp.org>
25802
25803         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
25804         work.
25805         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
25806         together with LIB${NAME}, LTLIB${NAME}.
25807         Reported by Sam Steingold <sds@gnu.org>.
25808
25809 2009-06-20  Jim Meyering  <meyering@redhat.com>
25810
25811         tests: make sc_require_test_exit_idiom more generic
25812         * top/maint.mk (Exit_witness_file): New overridable variable.
25813         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
25814         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
25815
25816 2009-06-19  Jim Meyering  <meyering@redhat.com>
25817
25818         hash: reverse order of src/dst parameters in an internal interface
25819         * lib/hash.c (transfer_entries): Reverse order of parameters to
25820         put DST before SRC.  Adjust callers.
25821
25822         tests: test-hash: avoid wholesale duplication
25823         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
25824         Instead, use a loop and add a single conditional.
25825
25826         tests: test-hash: allow seed selection via a command line argument
25827         * tests/test-hash.c (get_seed): New function.
25828         (main): Use it.
25829
25830 2009-06-19  Eric Blake  <ebb9@byu.net>
25831
25832         hash: avoid memory leak on allocation failure
25833         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
25834         failure.  Factor repeated algorithm...
25835         (transfer_entries): ...into new helper routine.
25836         (hash_delete): React to hash_rehash return value.
25837
25838         hash: reduce memory pressure in hash_rehash no-op case
25839         * lib/hash.c (next_prime): Avoid overflow.
25840         (hash_initialize): Factor bucket size computation...
25841         (compute_bucket_size): ...into new helper function.
25842         (hash_rehash): Use new function and open coding to reduce memory
25843         pressure, and avoid a memory leak in USE_OBSTACK code.
25844         Reported by Jim Meyering.
25845
25846 2009-06-18  Eric Blake  <ebb9@byu.net>
25847
25848         hash: make rotation more obvious
25849         * modules/hash (Depends-on): Add bitrotate and stdint.
25850         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
25851         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
25852         (SIZE_MAX): Rely on headers for definition.
25853         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
25854         (raw_hasher): Use rotr_sz.
25855         Suggested by Jim Meyering.
25856
25857         hash: fix memory leak in last patch
25858         * lib/hash.c (hash_rehash): Avoid memory leak.
25859
25860         hash: avoid no-op rehashing
25861         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
25862
25863         hash: provide default callback functions
25864         * lib/hash.c (raw_hasher, raw_comparator): New functions.
25865         (hash_initialize): Use them as defaults.
25866         * tests/test-hash.c (main): Test this.
25867
25868         hash: minor optimization
25869         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
25870         when possible.
25871         (hash_initialize): Document this promise.
25872         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
25873         * tests/test-hash.c (hash_compare_strings): Test this.
25874
25875 2009-06-18  Bruno Haible  <bruno@clisp.org>
25876
25877         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
25878         going to be replaced anyway.
25879
25880 2009-06-18  Bruno Haible  <bruno@clisp.org>
25881
25882         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
25883         in one place.
25884         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
25885         be replaced anyway.
25886
25887 2009-06-18  Eric Blake  <ebb9@byu.net>
25888
25889         hash: check for resize before insertion
25890         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
25891         threshold before insertion, so that a pathological hash_rehash
25892         that fills every bucket can still trigger another rehash.
25893
25894 2009-06-18  Jim Meyering  <meyering@redhat.com>
25895
25896         hash-tests: add a loop around the small tests
25897         * tests/test-hash.c (main): Repeat small tests with selected
25898         small initial table sizes.
25899
25900 2009-06-17  Eric Blake  <ebb9@byu.net>
25901
25902         hash: minor cleanups
25903         * lib/hash.h (hash_entry): Make opaque, by moving...
25904         * lib/hash.c (hash_entry): ...here.
25905         (hash_insert): Clarify restrictions on what can be inserted.
25906         (hash_get_next): Clarify when it is safe to remove an element
25907         during traversal.
25908         (check_tuning): Skip verification when tuning is known safe.
25909         (hash_initialize): Clarify restrictions on tuning.
25910
25911 2009-06-17  Jim Meyering  <jim@meyering.net>
25912         and Eric Blake  <ebb9@byu.net>
25913
25914         hash-tests: new module
25915         * modules/hash-tests: New file.
25916         * tests/test-hash.c: New file.
25917
25918 2009-06-17  Eric Blake  <ebb9@byu.net>
25919
25920         strstr-simple: document new module
25921         * MODULES.html.sh: Document new module.
25922
25923         strstr, strcasestr: replace on platforms with broken memchr
25924         * modules/strstr: Split into...
25925         * modules/strstr-simple: ...new module that does not care about
25926         performance, but does care about glibc bug.
25927         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
25928         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
25929         if platform memchr is broken, per Debian bug 521737.
25930         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
25931         memchr.
25932         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
25933         * doc/posix-functions/strstr.texi (strstr): Document the fix.
25934         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25935         * modules/mountlist (Depends-on): Add strstr-simple.
25936         * modules/gen-uni-tables (Depends-on): Likewise.
25937         * modules/argz (Depends-on): Add strstr.
25938
25939 2009-06-17  Bruno Haible  <bruno@clisp.org>
25940
25941         * modules/posix_spawn-internal (Depends-on): Add errno.
25942
25943 2009-06-17  Bruno Haible  <bruno@clisp.org>
25944
25945         Define missing ESTALE on Interix 3.5.
25946         * lib/errno.in.h (ESTALE): Assign a value if missing.
25947         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
25948         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
25949         missing.
25950         * doc/posix-headers/errno.texi: Mention the Interix bug.
25951         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
25952
25953 2009-06-15  Eric Blake  <ebb9@byu.net>
25954
25955         memchr, memchr2: add valgrind exception
25956         * lib/memchr.valgrind: New file.
25957         * lib/memchr2.valgrind: New file.
25958         * modules/memchr (Files): Distribute valgrind file.
25959         * modules/memchr2 (Files): Likewise.
25960
25961         docs: memchr is no longer obsolete
25962         * MODULES.html.sh: Move memchr from obsolete to string.h section.
25963         * lib/string.in.h (memchr): Simplify logic.
25964
25965 2009-06-14  Jim Meyering  <meyering@redhat.com>
25966
25967         link-follow: fix the "checking..." message to not mention trailing slash
25968         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
25969         never considered trailing slashes.
25970
25971 2009-06-14  Bruno Haible  <bruno@clisp.org>
25972
25973         * m4/memchr.m4: Mention also the bug on IA-64.
25974         * doc/posix-functions/memchr.texi: Likewise.
25975
25976 2009-06-12  Eric Blake  <ebb9@byu.net>
25977
25978         memchr: detect broken x86_64 and alpha implementations
25979         * modules/memchr-tests (Depends-on): Move mmap detection...
25980         * modules/memchr (Depends-on): ...here.
25981         (configure.ac): Set indicator.
25982         * lib/string.in.h (memchr): Declare replacement.
25983         * modules/string (Makefile.am): Trigger replacement.
25984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25985         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
25986         bugs.
25987         * doc/posix-functions/memchr.texi (memchr): Document the bug.
25988         * modules/getpagesize (License): Relax license.
25989
25990 2009-06-11  Bruno Haible  <bruno@clisp.org>
25991
25992         * lib/idpriv.h: Add more references.
25993
25994 2009-06-08  Bruno Haible  <bruno@clisp.org>
25995
25996         Tests for module 'idpriv-droptemp'.
25997         * modules/idpriv-droptemp-tests: New file.
25998         * tests/test-idpriv-droptemp.sh: New file.
25999         * tests/test-idpriv-droptemp.su.sh: New file.
26000         * tests/test-idpriv-droptemp.c: New file.
26001
26002         New module 'idpriv-droptemp'.
26003         * lib/idpriv-droptemp.c: New file.
26004         * modules/idpriv-droptemp: New file.
26005
26006 2009-06-08  Bruno Haible  <bruno@clisp.org>
26007
26008         Tests for module 'idpriv-drop'.
26009         * modules/idpriv-drop-tests: New file.
26010         * tests/test-idpriv-drop.sh: New file.
26011         * tests/test-idpriv-drop.su.sh: New file.
26012         * tests/test-idpriv-drop.c: New file.
26013
26014         New module 'idpriv-drop'.
26015         * lib/idpriv.h: New file.
26016         * lib-idpriv-drop.c: New file.
26017         * m4/idpriv.m4: New file.
26018         * modules/idpriv-drop: New file.
26019
26020 2009-06-08  Bruno Haible  <bruno@clisp.org>
26021
26022         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
26023         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26024         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26025         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26026         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26027         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26028         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26029
26030 2009-06-08  Eric Blake  <ebb9@byu.net>
26031
26032         test-strstr: use memory fence, when possible
26033         * tests/test-strstr.c (main): Use memory fence, in order to be
26034         more likely to trigger Debian bug 521737.
26035         * modules/strstr-tests (Files): Pull in additional files.
26036
26037         memchr: no longer obsolete, for wider field testing
26038         * modules/memchr (Status, Notice): Delete, this module is no
26039         longer obsolete.
26040         * modules/vasnprintf (Depends-on): Add memchr.
26041
26042 2009-06-07  Jim Meyering  <meyering@redhat.com>
26043
26044         hash: declare some functions with the warn_unused_result attribute
26045         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
26046
26047 2009-06-07  Bruno Haible  <bruno@clisp.org>
26048
26049         * tests/test-alignof.c: Don't test int64_t if it does not exist.
26050         Reported by Eric Blake.
26051
26052 2009-06-06  Eric Blake  <ebb9@byu.net>
26053
26054         test-alignof: fix typo with long double
26055         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
26056         compiler error.
26057
26058 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
26059
26060         Escape non-texinfo { and }s.
26061         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
26062         markup error.
26063
26064 2009-06-04  Jim Meyering  <meyering@redhat.com>
26065
26066         gitlog-to-changelog: don't infloop on an empty commit log
26067         * build-aux/gitlog-to-changelog: Warn about an empty log message.
26068         Reported by Boris Petersen <transacid@centerim.org>.
26069
26070 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
26071
26072         version-etc: extend for packagers
26073         Add three new configure options, intended for packagers:
26074           --with-packager="packager name"
26075           --with-packager-version="packager-specific version"
26076           --with-packager-bug-reports="packager bug reporting"
26077         An example with coreutils:
26078           $ ./configure \
26079             --with-packager=Gentoo \
26080             --with-packager-bug-report=http://bugs.gentoo.org/ \
26081             --with-packager-version="patchset 1.6"
26082           $ ./src/ls --version | head -n2
26083           ls (GNU coreutils) 7.1-dirty
26084           Packaged by Gentoo (patchset 1.6)
26085         Note that the bug reporting info via --help doesn't show up because
26086         coreutils uses its own custom emit_bug_reporting_address() implementation
26087         in src/system.h.  If it didn't, it'd look like:
26088           $ ./src/ls --help | tail -n4
26089           Report bugs to <bug-coreutils@gnu.org>.
26090           Report Gentoo bugs to <http://bugs.gentoo.org/>.
26091           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
26092           General help using GNU software: <http://www.gnu.org/gethelp/>.
26093         * lib/version-etc.c: Print new information, if provided.
26094         * m4/version-etc.m4: New file.
26095         * modules/version-etc (Files): Add m4/version-etc.m4.
26096         (configure.ac): Add gl_VERSION_ETC.
26097
26098 2009-05-31  Bruno Haible  <bruno@clisp.org>
26099
26100         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
26101         and 'int64_t'.
26102         * modules/alignof-tests (Dependencies): Add stdint.
26103         Reported by Eric Blake.
26104
26105 2009-05-31  Bruno Haible  <bruno@clisp.org>
26106
26107         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
26108         restriction due to compiler bugs.
26109         Reported by Eric Blake.
26110
26111 2009-05-31  Simon Josefsson  <simon@josefsson.org>
26112             Bruno Haible  <bruno@clisp.org>
26113
26114         Fix test-alignof failure.
26115         * lib/alignof.h (alignof_slot): New macro.
26116         (alignof_type): New macro, with the same semantics as the previous
26117         'alignof'.
26118         (alignof): Alias to alignof_slot.
26119         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
26120         check that the results are usable as constant expressions.
26121
26122 2009-05-31  Bruno Haible  <bruno@clisp.org>
26123
26124         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
26125         * tests/test-memchr.c (main): Check that memchr does not read past the
26126         first occurrence of the byte.
26127         * tests/test-strstr.c (main): Update comment.
26128         Suggested by Eric Blake.
26129
26130 2009-05-30  Bruno Haible  <bruno@clisp.org>
26131
26132         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
26133         detail how to use dumpbin.
26134         Reported by David Byron <dbyron@dbyron.com>.
26135
26136 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26137
26138         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
26139
26140 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26141
26142         * m4/manywarnings.m4: Add GCC 4.4 warnings.
26143
26144 2009-05-28  Bruno Haible  <bruno@clisp.org>
26145
26146         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
26147         build-aux/ files.
26148
26149 2009-05-28  Simon Josefsson  <simon@josefsson.org>
26150
26151         * gnulib-tool (func_import): Transform license on build-aux/ files too.
26152
26153 2009-05-27  Simon Josefsson  <simon@josefsson.org>
26154
26155         * gnulib-tool (sed_transform_main_lib_file)
26156         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
26157         regexps.
26158
26159 2009-05-26  Simon Josefsson  <simon@josefsson.org>
26160
26161         * tests/test-strstr.c: Add another self-test.
26162         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
26163         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
26164
26165 2009-05-23  Bruno Haible  <bruno@clisp.org>
26166
26167         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
26168         change.
26169
26170 2009-05-21  Bruno Haible  <bruno@clisp.org>
26171
26172         Simplify use of mode_t varargs.
26173         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
26174         uses 'mode_t' or 'int'.
26175         * lib/openat.c (openat): Likewise.
26176         * lib/open-safer.c (open_safer): Likewise.
26177         * m4/mode_t.m4: New file.
26178         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
26179         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
26180         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
26181         * modules/open (Files): Add m4/mode_t.m4.
26182         * modules/openat (Files): Likewise.
26183         * modules/fcntl-safer (Files): Likewise.
26184         Suggested by Eric Blake.
26185
26186 2009-05-21  Pádraig Brady  <P@draigbrady.com>
26187
26188         * doc/glibc-functions/fallocate.texi: New file.
26189         * doc/gnulib.texi: Include it.
26190
26191 2009-05-21  Eric Blake  <ebb9@byu.net>
26192             Bruno Haible  <bruno@clisp.org>
26193
26194         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
26195         invocations.
26196         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26197
26198 2009-05-21  Eric Blake  <ebb9@byu.net>
26199             Bruno Haible  <bruno@clisp.org>
26200
26201         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
26202         include_next. Fix of 2008-11-20 commit.
26203         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
26204         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
26205         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
26206         NEXT_MATH_H.
26207         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
26208         instead of NEXT_MATH_H.
26209
26210 2009-05-21  Bruno Haible  <bruno@clisp.org>
26211
26212         Avoid redefinition warnings for SIZE_MAX.
26213         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
26214         Reported by Simon Josefsson.
26215
26216 2009-05-21  Bruno Haible  <bruno@clisp.org>
26217
26218         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
26219         AC_CACHE_VAL.
26220
26221 2009-05-20  Bruno Haible  <bruno@clisp.org>
26222
26223         Make zeroptr.h work on mingw.
26224         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
26225         mprotect.
26226         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
26227         * modules/memchr2-tests (configure.ac): Likewise.
26228         * modules/memcmp-tests (configure.ac): Likewise.
26229         * modules/memmem-tests (configure.ac): Likewise.
26230         * modules/memrchr-tests (configure.ac): Likewise.
26231         Reported by Simon Josefsson.
26232
26233 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26234
26235         * tests/test-glob.c: Include string.h for strcmp prototype.
26236
26237 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26238
26239         * modules/getdelim (Depends-on): Add explicit stdint, although it
26240         was implicitly already pulled in via realloc-posix.
26241         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
26242
26243 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26244
26245         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
26246         G. Christensen" <tgc@jupiterrise.com>.
26247         * m4/sys_socket_h.m4: Check for sa_family_t.
26248         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
26249         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
26250         * tests/test-sys_socket.c: Check that sa_family_t works.
26251
26252 2009-05-18  Eric Blake  <ebb9@byu.net>
26253
26254         maint.mk: allow gnulib_dir in VPATH build
26255         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
26256
26257 2009-05-15  Jim Meyering  <meyering@redhat.com>
26258
26259         maint.mk: Give gnulib_dir a default definition.
26260         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
26261         Thus, most packages no longer need to specify this variable in cfg.mk
26262
26263 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
26264
26265         rename.m4: fix typos that would make non-mingw cross-configure fail
26266         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
26267
26268 2009-05-13  Eric Blake  <ebb9@byu.net>
26269
26270         mmap-anon: avoid out-of-order autoconf expansion
26271         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
26272         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
26273         * modules/memchr-tests (Depends-on): Add extensions.
26274         * modules/memchr2-tests (Depends-on): Add extensions.
26275         * modules/memcmp-tests (Depends-on): Add extensions.
26276         * modules/memmem-tests (Depends-on): Add extensions.
26277         * modules/memrchr-tests (Depends-on): Add extensions.
26278
26279 2009-05-13  Bruno Haible  <bruno@clisp.org>
26280
26281         Make some tests ISO C 99 compliant.
26282         * tests/zerosize-ptr.h: New file.
26283         * tests/test-memchr.c: Include zerosize-ptr.h.
26284         (main): Use a zero-size object pointer instead of NULL.
26285         * tests/test-memchr2.c: Include zerosize-ptr.h.
26286         (main): Use a zero-size object pointer instead of NULL.
26287         * tests/test-memcmp.c: Include zerosize-ptr.h.
26288         (main): Use a zero-size object pointer instead of NULL.
26289         * tests/test-memmem.c: Include zerosize-ptr.h.
26290         (main): Use a zero-size object pointer instead of NULL.
26291         * tests/test-memrchr.c: Include zerosize-ptr.h.
26292         (main): Use a zero-size object pointer instead of NULL.
26293         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
26294         m4/mmap-anon.m4.
26295         (Depends-on): Add getpagesize.
26296         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26297         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
26298         m4/mmap-anon.m4.
26299         (Depends-on): Add getpagesize.
26300         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26301         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
26302         m4/mmap-anon.m4.
26303         (Depends-on): Add getpagesize.
26304         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26305         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
26306         m4/mmap-anon.m4.
26307         (Depends-on): Add getpagesize.
26308         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26309         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
26310         m4/mmap-anon.m4.
26311         (Depends-on): Add getpagesize.
26312         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26313
26314 2009-05-12  Bruno Haible  <bruno@clisp.org>
26315
26316         Tests for module 'alignof'.
26317         * modules/alignof-tests: New file.
26318         * tests/test-alignof.c: New file.
26319
26320 2009-05-12  Bruno Haible  <bruno@clisp.org>
26321
26322         Fix alignof macro.
26323         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
26324         vendor compilers that are always correct.
26325
26326 2009-05-12  Bruno Haible  <bruno@clisp.org>
26327
26328         Make the MAP_ANONYMOUS detection work on HP-UX 11.
26329         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
26330         not whether its fully works.
26331
26332 2009-05-12  Bruno Haible  <bruno@clisp.org>
26333
26334         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
26335
26336 2009-05-12  Jim Meyering  <meyering@redhat.com>
26337
26338         * top/maint.mk: Adjust backslash alignment.
26339
26340 2009-05-11  Simon Josefsson  <simon@josefsson.org>
26341
26342         * top/maint.mk: Make $(srcdir)/build-aux configurable.
26343
26344 2009-05-11  Eric Blake  <ebb9@byu.net>
26345
26346         argp: avoid undefined behavior
26347         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
26348         macros.
26349
26350 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26351
26352         * tests/test-vc-list-files-git.sh: Do git config of user.email and
26353         user.name to prevent git commit from complaining.
26354
26355 2009-05-10  Bruno Haible  <bruno@clisp.org>
26356
26357         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
26358         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
26359         it rewrites every file name only once.
26360         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
26361
26362 2009-05-08  Bruno Haible  <bruno@clisp.org>
26363
26364         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
26365         instead of 'max'.
26366
26367 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26368
26369         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
26370         sockaddr_storage test.
26371
26372 2009-05-07  Simon Josefsson  <simon@josefsson.org>
26373
26374         * modules/sys_socket (Makefile.am): Substitute
26375         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
26376         * m4/sys_socket_h.m4: Check for sockaddr_storage.
26377         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
26378         * tests/test-sys_socket.c: Check sockaddr_storage.
26379
26380 2009-05-08  Bruno Haible  <bruno@clisp.org>
26381
26382         New module 'alignof'.
26383         * lib/alignof.h: New file.
26384         * modules/alignof: New file.
26385
26386 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26387             Bruno Haible  <bruno@clisp.org>
26388
26389         Fix test-file-has-acl on FreeBSD.
26390         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
26391         mask is implicitly added.
26392         * tests/test-file-has-acl.c: Include <signal.h>.
26393         (main): Terminate the test after 5 seconds.
26394         * modules/acl-tests (configure.ac): Check for alarm function.
26395
26396 2009-05-04  Bruno Haible  <bruno@clisp.org>
26397
26398         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
26399         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
26400         * modules/errno (configure.ac): Drop AC_REQUIRE.
26401         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
26402         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
26403
26404 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26405
26406         * modules/glob-tests: New module.
26407         * tests/test-glob.c: Add.
26408
26409 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26410
26411         * modules/fnmatch-tests: New module.
26412         * tests/test-fnmatch.c: Add.
26413
26414 2009-05-04  Eric Blake  <ebb9@byu.net>
26415
26416         maint: make the new no-submodule-changes rule VPATH-safe
26417         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
26418
26419 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26420             Bruno Haible  <bruno@clisp.org>
26421
26422         acl: Fix infinite loop on FreeBSD.
26423         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
26424         of return value from acl_get_entry.
26425         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
26426         Likewise.
26427
26428 2009-05-03  Bruno Haible  <bruno@clisp.org>
26429
26430         * lib/acl-internal.h (acl_entries): Clarify return value.
26431         * lib/acl_entries.c (acl_entries): Likewise.
26432
26433 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26434
26435         Bug fix in acl module.
26436         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
26437
26438 2009-05-03  Bruno Haible  <bruno@clisp.org>
26439
26440         Create gperf-generated file in the source dir, not in the build dir.
26441         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
26442         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
26443         * modules/unicase/locale-language (unicase/locale-languages.h):
26444         Likewise.
26445         * modules/unicase/special-casing (unicase/special-casing-table.h):
26446         Likewise.
26447         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
26448         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
26449         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
26450         Reported by Ralf Wildenhues.
26451
26452 2009-05-03  Bruno Haible  <bruno@clisp.org>
26453
26454         * modules/fnmatch (Description, configure.ac): Taken from
26455         fnmatch-posix.
26456         * modules/fnmatch-posix: Turn into a symbolic reference to the
26457         'fnmatch' module, and deprecate.
26458         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
26459
26460 2009-05-03  Bruno Haible  <bruno@clisp.org>
26461
26462         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
26463         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
26464         Reported by Ralf Wildenhues.
26465
26466 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26467
26468         * m4/fnmatch.m4: Fix fnmatch re-define.
26469
26470 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26471
26472         priv-set: new module and tests; adapt write-any-file
26473         * lib/priv-set.c: New file.
26474         * lib/priv-set.h: New file.
26475         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
26476         * lib/write-any-file.c: Simplify by using priv-set module.
26477         * m4/priv-set.m4: New file.
26478         * modules/priv-set: New file.
26479         * modules/unlinkdir: Add dependency on priv-set module.
26480         * modules/write-any-file: Likewise.
26481
26482         Tests for module 'priv-set'.
26483         * modules/priv-set-tests: New file.
26484         * tests/test-priv-set.c: New file.
26485
26486 2009-05-03  Jim Meyering  <meyering@redhat.com>
26487             Bruno Haible  <bruno@clisp.org>
26488
26489         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
26490         use the converted UTF-8 variant of the name instead.
26491
26492 2009-05-03  Jim Meyering  <meyering@redhat.com>
26493
26494         tests: tighten some getdate tests
26495         * tests/test-getdate.c (main): Tighten tests: require equality,
26496         not just greater than.  Set TZ envvar to UTC0.
26497
26498 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26499
26500         getdate: correctly interpret "next monday" when run on a Monday
26501         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
26502         that e.g., "next tues" (when run on a tuesday) results in a date
26503         that is one week in the future, and not today's date.
26504         I.e., add a week when the wday is the same as the current one.
26505         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
26506         and earlier by Martin Bernreuther and Jan Minář.
26507         * tests/test-getdate.c (main): Check that "next DAY" is always in
26508         the future and that "last DAY" is always in the past.
26509
26510 2009-05-02  Jim Meyering  <meyering@redhat.com>
26511
26512         build: ensure that a release build fails when a submodule is unclean
26513         * top/maint.mk (no-submodule-changes): New rule.
26514         (alpha beta major): Depend on it.
26515
26516 2009-05-02  Bruno Haible  <bruno@clisp.org>
26517
26518         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
26519         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
26520         shell variable gl_fnmatch_required to detect which variant is
26521         requested.
26522         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
26523         gl_FUNC_FNMATCH_POSIX.
26524         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
26525         exclude fnmatch-posix.
26526
26527 2009-05-02  Bruno Haible  <bruno@clisp.org>
26528
26529         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
26530         * modules/mbsrtowcs (License): Change to LGPLv2+.
26531         * modules/strnlen1 (License): Likewise.
26532         Reported by Simon Josefsson.
26533
26534 2009-05-02  Bruno Haible  <bruno@clisp.org>
26535
26536         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
26537         "cross".
26538         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
26539         gnulib-tool was called with option --source-base=lib.
26540
26541 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26542
26543         Use automake *-local hooks without commands, for extensibility.
26544         * modules/localcharset (Makefile.am): Rename install-exec-local
26545         rule to install-exec-localcharset, and make it a prerequisite of
26546         install-exec-local.  Likewise, rename the uninstall-local rule to
26547         uninstall-localcharset, and make it a prerequisite of the former.
26548
26549 2009-05-01  Bruno Haible  <bruno@clisp.org>
26550
26551         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
26552         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26553         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
26554         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
26555         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
26556         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26557         m4/locale-zh.m4, m4/codeset.m4.
26558
26559         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26560         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
26561         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26562         m4/locale-zh.m4.
26563
26564         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
26565         REPLACE_WCRTOMB if mbstate_t must be replaced.
26566         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
26567         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
26568
26569 2009-05-01  Bruno Haible  <bruno@clisp.org>
26570
26571         Avoid compiler warnings when redefining macros defined by <libintl.h>.
26572         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
26573         dngettext, dcngettext, textdomain, bindtextdomain,
26574         bind_textdomain_codeset): Undefine before redefining.
26575
26576 2009-04-30  Bruno Haible  <bruno@clisp.org>
26577
26578         Fix bug introduced on 2009-04-25.
26579         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
26580         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
26581         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
26582         is defined.
26583         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
26584         is defined.
26585         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
26586         is defined.
26587         Reported by Elbert_Pol <elbert.pol@gmail.com>.
26588
26589 2009-04-28  Bruno Haible  <bruno@clisp.org>
26590
26591         Comment tweaks.
26592         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
26593         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
26594         * lib/unicase.h (u*_casexfrm): Likewise.
26595         Reported by Paolo Bonzini.
26596
26597 2009-04-28  Bruno Haible  <bruno@clisp.org>
26598
26599         Fix a compilation error.
26600         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
26601         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26602         Reported by Jim Meyering.
26603
26604 2009-04-27  Bruno Haible  <bruno@clisp.org>
26605
26606         New module 'libunistring'.
26607         * modules/libunistring: New file.
26608         * m4/libunistring.m4: New file.
26609         * MODULES.html.sh (Unicode string functions): Add it.
26610
26611 2009-04-27  Eric Blake  <ebb9@byu.net>
26612
26613         maint.mk: allow package-specific header to provide <config.h>
26614         * top/maint.mk (sc_require_config_h): New variable.
26615         (sc_require_config_h, sc_require_config_h_first): Use it.
26616
26617 2009-04-27  Simon Josefsson  <simon@josefsson.org>
26618
26619         * top/maint.mk (sc_avoid_if_before_free): Except
26620         useless-if-before-free script.
26621
26622 2009-04-27  Eric Blake  <ebb9@byu.net>
26623
26624         maintainer-makefile: depend on all required helper scripts
26625         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
26626         useless-if-before-free.
26627         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
26628         version, rather than assuming gnulib checkout is available.
26629         Reported by Simen Josefsson.
26630
26631 2009-04-26  Bruno Haible  <bruno@clisp.org>
26632
26633         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
26634         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
26635         "../" or "..".
26636
26637 2009-04-26  Bruno Haible  <bruno@clisp.org>
26638
26639         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
26640         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
26641         AC_LIB_HAVE_LINKFLAGS.
26642
26643 2009-04-26  Bruno Haible  <bruno@clisp.org>
26644
26645         Simplify calling convention of u*_conv_from_encoding.
26646         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
26647         u32_conv_from_encoding): Expect a resultbuf argument and return the
26648         result directly as a pointer.
26649         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
26650         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
26651         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
26652         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
26653         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
26654         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26655         Update.
26656         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
26657         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
26658         * lib/vasnprintf.c (VASNPRINTF): Update.
26659         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
26660         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
26661         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
26662         * NEWS: Mention the change.
26663
26664 2009-04-26  Bruno Haible  <bruno@clisp.org>
26665
26666         Simplify calling convention of u*_conv_to_encoding.
26667         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
26668         u32_conv_to_encoding): Expect a resultbuf argument and return the
26669         result directly as a pointer.
26670         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26671         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
26672         freeing scaled_offsets if mem_iconveha failed.
26673         * lib/unicase/u-casexfrm.h (FUNC): Update.
26674         * lib/uninorm/u-normxfrm.h (FUNC): Update.
26675         * lib/vasnprintf.c (VASNPRINTF): Update.
26676         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
26677         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
26678         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
26679         * NEWS: Mention the change.
26680
26681 2009-04-26  Bruno Haible  <bruno@clisp.org>
26682
26683         Avoid test failures on AIX and OSF/1.
26684         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
26685         malloc(0).
26686         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26687         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26688         Likewise.
26689         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
26690         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
26691         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
26692         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
26693         * doc/posix-functions/malloc.texi: Document the portability problem
26694         related to malloc(0).
26695
26696 2009-04-26  Bruno Haible  <bruno@clisp.org>
26697
26698         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
26699         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
26700         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
26701
26702 2009-04-25  Bruno Haible  <bruno@clisp.org>
26703
26704         Avoid link error when creating a namespace clean library.
26705         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
26706         as macro with arguments if already defined as an alias.
26707         * lib/signbitf.c (gl_signbitf): Don't undefine.
26708         * lib/signbitd.c (gl_signbitd): Don't undefine.
26709         * lib/signbitl.c (gl_signbitl): Don't undefine.
26710
26711 2009-04-25  Jim Meyering  <meyering@redhat.com>
26712
26713         vc-list-files: fix another quoting bug
26714         * build-aux/vc-list-files: Avoid sed backslash expansion
26715         of pathological directory names.
26716
26717 2009-04-25  Eric Blake  <ebb9@byu.net>
26718
26719         vc-list-files: fix shell quoting error
26720         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
26721         timestamp.
26722
26723 2009-04-25  Jim Meyering  <meyering@redhat.com>
26724
26725         vc-list-files: restore lost functionality with subdir argument
26726         * build-aux/vc-list-files: When given a non-"." sub-directory
26727         argument, substitute the $dir/ prefix back onto each resulting name.
26728         Otherwise, coreutils' root_tests check would fail.
26729
26730 2009-04-24  Eric Blake  <ebb9@byu.net>
26731
26732         vc-list-files: ignore git symlinks
26733         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
26734         than ls-files, to ignore git symlinks.
26735
26736         maint.mk: import improvements from m4
26737         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
26738         (move_if_change): Delete unused macro.
26739         (news-date-check, vc-diff-check): Support VPATH builds.
26740         (announcement): Likewise.  Split --bootstrap-tools list...
26741         (boostrap-tools): ...into separate list, which can be overridden
26742         in cfg.mk.
26743         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
26744         requiring dependency on useless-if-before-free module.
26745         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
26746         Support VPATH builds.
26747
26748 2009-04-24  Jim Meyering  <meyering@redhat.com>
26749
26750         maint.mk: remove coreutils-specific rules and variables
26751         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
26752         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
26753         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
26754
26755         maint.mk: remove obsolete rule
26756         * top/maint.mk (rel-check): Remove rule.
26757         (WGET, WGETFLAGS): Remove now-unused variables.
26758
26759 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26760
26761         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
26762         consistency.
26763
26764         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
26765         '$(PATH_SEPARATOR)' instead of ':'.
26766
26767 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26768
26769         * lib/getopt1.c (main): Use 'const' for static array.
26770
26771 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26772
26773         * top/maint.mk: Sync with coreutils.
26774         * NEWS: Explain incompatibilities.
26775
26776 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26777             Bruno Haible  <bruno@clisp.org>
26778
26779         Fix cross-compilation results.
26780         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
26781         statement, as third argument of AC_TRY_RUN.
26782         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26783         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26784         Likewise.
26785         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26786         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26787         Likewise.
26788         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26789         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
26790         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
26791
26792 2009-04-20  Bruno Haible  <bruno@clisp.org>
26793
26794         Avoid test failure on mingw.
26795         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
26796
26797 2009-04-20  Bruno Haible  <bruno@clisp.org>
26798
26799         Avoid compilation error on mingw.
26800         * modules/localename-tests (Depends-on): Add locale.
26801
26802 2009-04-19  Bruno Haible  <bruno@clisp.org>
26803
26804         Support for building a shared library on Windows platforms.
26805         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
26806         (main): Test the presence of UNINORM_NFC here.
26807         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
26808         (main): Test the presence of UNINORM_NFD here.
26809         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
26810         (main): Test the presence of UNINORM_NFKC here.
26811         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
26812         (main): Test the presence of UNINORM_NFKD here.
26813
26814 2009-04-19  Bruno Haible  <bruno@clisp.org>
26815
26816         Avoid a compiler warning.
26817         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
26818         Change type of variable 'sequence'.
26819
26820 2009-04-19  Bruno Haible  <bruno@clisp.org>
26821
26822         * modules/configmake (Makefile.am): When the contents of configmake.h
26823         does not change, arrange to preserve its modification time.
26824
26825 2009-04-17  Simon Josefsson  <simon@josefsson.org>
26826
26827         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
26828         gettext domain.
26829
26830 2009-04-16  Jim Meyering  <meyering@redhat.com>
26831
26832         useless-if-before-free: improve conversion code
26833         * build-aux/useless-if-before-free: Adjust code-in-comment to match
26834         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
26835
26836 2009-04-14  Bruno Haible  <bruno@clisp.org>
26837
26838         * modules/fcntl (Depends-on): Add extensions.
26839         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
26840
26841 2009-04-12  Ben Pfaff  <blp@gnu.org>
26842
26843         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
26844         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
26845
26846 2009-03-20  Ben Pfaff  <blp@gnu.org>
26847
26848         Make rename replace existing destinations on Windows.
26849         * m4/rename.m4: Add test for Mingw.
26850         * lib/rename.c: Add rename replacement that uses MoveFileEx with
26851         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
26852         * doc/posix-functions/rename.texi: Document.
26853
26854 2009-04-10  Bruno Haible  <bruno@clisp.org>
26855
26856         New include file "iconveh.h".
26857         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
26858         * lib/striconveh.h: Include it.
26859         (enum iconv_ilseq_handler): Remove definition.
26860         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
26861         striconveh.h.
26862         * lib/striconveha.c: Include striconveh.h.
26863         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
26864         * modules/striconveh (Files): Add lib/iconveh.h.
26865         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
26866         lib/striconveh.h.
26867
26868 2009-04-10  Bruno Haible  <bruno@clisp.org>
26869
26870         * lib/uniconv.h: Update comment.
26871
26872 2009-04-10  Bruno Haible  <bruno@clisp.org>
26873
26874         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
26875         always.
26876         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
26877         * lib/unistr/u16-mbtouc-aux.c: Likewise.
26878         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
26879         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
26880         "unistring-notinline.h", so that the function gets defined always.
26881         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
26882         * lib/unistr/u8-uctomb.c: Likewise.
26883         * lib/unistr/u16-mbtouc.c: Likewise.
26884         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
26885         * lib/unistr/u16-uctomb.c: Likewise.
26886         * lib/unistr/u32-mbtouc.c: Likewise.
26887         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
26888         * lib/unistr/u32-uctomb.c: Likewise.
26889
26890 2009-04-10  Bruno Haible  <bruno@clisp.org>
26891
26892         Mark 'utime' obsolete.
26893         * modules/utime (Status, Notice): New sections.
26894         Suggested by Jim Meyering.
26895
26896         Fix cross-compile guess for utime test.
26897         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
26898         autoconf.
26899         * doc/posix-functions/utime.texi: Give more precisions.
26900         Reported by Jan <ipif@ymail.com>.
26901
26902 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
26903
26904         filevercmp: correct today's change
26905         * lib/filevercmp.c: Also handle coreutils' test inputs.
26906         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
26907
26908         Fix regression in 'filevercmp' module. Thanks Sven Joachim
26909         for reporting it.
26910         * lib/filevercmp.c: Special handle for "", "." and "..".
26911         * tests/test-filevercmp.c: Enlarge the set suite.
26912
26913 2009-04-07  Jim Meyering  <meyering@redhat.com>
26914
26915         useless-if-before-free: show how to remove braced useless free, too
26916         * build-aux/useless-if-before-free: still only in a comment, though.
26917
26918 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
26919
26920         maint.mk: import changes to syntax-check macros from coreutils
26921         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
26922         Use them in the relevant macros.
26923
26924 2009-04-06  Bruno Haible  <bruno@clisp.org>
26925
26926         Fix unportable use of bit-fields.
26927         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
26928         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
26929         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
26930
26931 2009-04-06  Bruno Haible  <bruno@clisp.org>
26932
26933         Avoid test failures on AIX and OSF/1.
26934         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
26935         that malloc(0) = NULL.
26936         * tests/unicase/test-u8-tolower.c (check): Likewise.
26937         * tests/unicase/test-u8-totitle.c (check): Likewise.
26938         * tests/unicase/test-u8-toupper.c (check): Likewise.
26939         * tests/unicase/test-u16-casefold.c (check): Likewise.
26940         * tests/unicase/test-u16-tolower.c (check): Likewise.
26941         * tests/unicase/test-u16-totitle.c (check): Likewise.
26942         * tests/unicase/test-u16-toupper.c (check): Likewise.
26943         * tests/unicase/test-u32-casefold.c (check): Likewise.
26944         * tests/unicase/test-u32-tolower.c (check): Likewise.
26945         * tests/unicase/test-u32-totitle.c (check): Likewise.
26946         * tests/unicase/test-u32-toupper.c (check): Likewise.
26947         * tests/uninorm/test-u8-nfc.c (check): Likewise.
26948         * tests/uninorm/test-u8-nfd.c (check): Likewise.
26949         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
26950         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
26951         * tests/uninorm/test-u16-nfc.c (check): Likewise.
26952         * tests/uninorm/test-u16-nfd.c (check): Likewise.
26953         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
26954         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
26955         * tests/uninorm/test-u32-nfc.c (check): Likewise.
26956         * tests/uninorm/test-u32-nfd.c (check): Likewise.
26957         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
26958         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
26959
26960 2009-04-05  Bruno Haible  <bruno@clisp.org>
26961
26962         Work around an autoconf limitation.
26963         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
26964         comment line if it would be longer than 3 KB.
26965
26966 2009-04-05  Bruno Haible  <bruno@clisp.org>
26967
26968         Avoid test failure with libiconv-1.13.
26969         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
26970         of the expected test results.
26971
26972 2009-04-05  Bruno Haible  <bruno@clisp.org>
26973
26974         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
26975         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
26976         that it should be installed.
26977
26978 2009-04-05  Bruno Haible  <bruno@clisp.org>
26979
26980         * gnulib-tool: New option --copy-file.
26981         (func_usage): Document it.
26982         (func_dest_tmpfilename): Moved out of func_import.
26983         (func_add_file, func_update_file): New functions, extracted from
26984         func_import.
26985         (func_import): Update.
26986
26987 2009-04-05  Karl Berry  <karl@gnu.org>
26988
26989         * README: prominently mention gnulib-tool.
26990         Rearrange sections so getting the code is near the top.
26991
26992 2009-04-05  Bruno Haible  <bruno@clisp.org>
26993
26994         * lib/unicase.h: Mention u*_cmp2.
26995         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26996         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
26997         * lib/unicase/ulc-casecmp.c: Likewise.
26998         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
26999         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
27000         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
27001         unistr/u8-cmp.
27002         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
27003         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
27004         unistr/u16-cmp.
27005         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
27006         unistr/u32-cmp.
27007
27008         * lib/uninorm.h: Mention u*_cmp2.
27009         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27010         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
27011         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
27012         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
27013         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
27014         unistr/u8-cmp.
27015         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
27016         unistr/u16-cmp.
27017         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
27018         unistr/u32-cmp.
27019
27020         New module 'unistr/u32-cmp2'.
27021         * lib/unistr/u32-cmp2.c: New file.
27022         * modules/unistr/u32-cmp2: New file.
27023
27024         New module 'unistr/u16-cmp2'.
27025         * lib/unistr/u16-cmp2.c: New file.
27026         * modules/unistr/u16-cmp2: New file.
27027
27028         New module 'unistr/u8-cmp2'.
27029         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
27030         * lib/unistr/u8-cmp2.c: New file.
27031         * lib/unistr/u-cmp2.h: New file.
27032         * modules/unistr/u8-cmp2: New file.
27033
27034 2009-04-05  Bruno Haible  <bruno@clisp.org>
27035
27036         * lib/unictype.h (uc_property_is_valid): New macro.
27037         * tests/unictype/test-pr_byname.c (main): Use it.
27038
27039         * lib/unistr.h: Doc fixes.
27040         * lib/uniconv.h: Doc fixes.
27041         * lib/unictype.h: Doc fixes.
27042
27043 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27044
27045         Port coreutils 7.2 to Solaris 8.
27046
27047         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
27048         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
27049         for Solaris 8.  This is a bit of a hack, as it means it's the
27050         caller's responsibility to add -lnsl if needed, but most likely it
27051         won't be needed since only getaddrinfo uses this and getaddrinfo
27052         isn't needed on Solaris 8.
27053
27054         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
27055         problem to Solaris 8 encountered with coreutils 7.2, which
27056         resulted in a message "fnmatch.c:292: warning: passing argument 4
27057         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
27058         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
27059
27060 2009-04-03  Simon Josefsson  <simon@josefsson.org>
27061
27062         * m4/ld-version-script.m4: Add FIXME comment.
27063
27064 2009-04-02  Simon Josefsson  <simon@josefsson.org>
27065
27066         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
27067         SOVERSION variable.
27068
27069 2009-04-02  Bruno Haible  <bruno@clisp.org>
27070
27071         * Makefile (info, html, dvi, pdf): Combine the rules.
27072         Suggested by Jim Meyering.
27073
27074 2009-04-01  Bruno Haible  <bruno@clisp.org>
27075
27076         * Makefile (info, html, dvi, pdf): New targets.
27077         Reported by Reuben Thomas <rrt@sc3d.org>.
27078
27079 2009-04-01  Bruno Haible  <bruno@clisp.org>
27080
27081         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
27082         can be put into PATH.
27083         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
27084
27085 2009-04-01  Bruno Haible  <bruno@clisp.org>
27086
27087         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
27088
27089 2009-04-01  Bruno Haible  <bruno@clisp.org>
27090
27091         Rename module 'visibility'.
27092         * modules/lib-symbol-visibility: Renamed from modules/visibility.
27093         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
27094         * doc/gnulib.texi: Update.
27095         * MODULES.html.sh (Misc): Update.
27096         * NEWS: Mention the change.
27097
27098 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27099
27100         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
27101         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
27102         Eric Blake <ebb9@byu.net> for review.
27103         * MODULES.html.sh: Add lib-msvc-compat.
27104         * doc/gnulib.texi: Link to new section.
27105         * m4/ld-output-def.m4: New file.
27106         * doc/ld-output-def.texi: New file.
27107
27108 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27109
27110         Rename ld-version-script to lib-symbol-versions.  Suggested by
27111         Bruno Haible <bruno@clisp.org>.
27112         * modules/ld-version-script: Renamed to lib-symbol-versions.
27113         * doc/ld-version-script.texi: Fix module name.
27114         * MODULES.html.sh: Add lib-symbol-versions.
27115
27116 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27117
27118         * modules/u64-tests: New file.
27119         * tests/test-u64.c: New file.
27120
27121 2009-03-04  Simon Josefsson  <simon@josefsson.org>
27122
27123         * MODULES.html.sh: Mention u64.
27124         * modules/u64: New module.
27125         * modules/crypto/sha512: Depend on u64 module instead of providing
27126         u64.h.
27127
27128 2009-03-27  Eric Blake  <ebb9@byu.net>
27129
27130         test-strerror: make debugging EAI_SYSTEM easier
27131         * modules/getaddrinfo-tests (Depends-on): Add strerror.
27132         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
27133         failure was EAI_SYSTEM.
27134
27135 2009-03-25  Bruno Haible  <bruno@clisp.org>
27136
27137         Fix a problem with --enable-relocatable on Solaris 7.
27138         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
27139         since 2008-02-24.
27140
27141 2009-03-25  Eric Blake  <ebb9@byu.net>
27142
27143         test-sockets: avoid gcc warning
27144         * tests/test-sockets.c (main): Silence compiler warning.
27145
27146 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27147
27148         New modules nproc, pthread, contributed by Glen Lenker.
27149
27150         * MODULES.html.sh: Add pthread, nproc.
27151         * lib/nproc.c: New file.
27152         * lib/nproc.h: New file.
27153         * lib/pthread.in.h: New file.
27154         * m4/pthread.m4: New file.
27155         * modules/nproc: New file.
27156         * modules/pthread: New file.
27157
27158 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27159
27160         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
27161         New variable.
27162
27163 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
27164
27165         filevercmp: handle simple~ and numbered.~3~ backup suffixes
27166         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
27167         * tests/test-filevercmp.c: Add tests for backup suffixes.
27168
27169 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27170
27171         * modules/stdlib (Depends-on): Add stdint, needed when defining
27172         struct random_data on, for example, HP-UX 10.20.  Reported by
27173         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27174
27175 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27176
27177         * lib/readline.c (readline): Call fflush on stdout after printing
27178         prompt.
27179
27180 2009-03-20  Bruno Haible  <bruno@clisp.org>
27181
27182         Remove dependency from 'close' module to -lws2_32 on native Windows.
27183         * lib/close-hook.h: New file.
27184         * lib/close-hook.c: New file.
27185         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
27186         w32sock.h.
27187         (_gl_close_fd_maybe_socket): Remove function.
27188         (rpl_close): Invoke execute_all_close_hooks instead of
27189         _gl_close_fd_maybe_socket.
27190         * lib/sockets.c: Include close-hook.h, w32sock.h.
27191         (close_fd_maybe_socket): New function, essentially from lib/close.c.
27192         (close_sockets_hook): New variable.
27193         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
27194         (gl_sockets_cleanup): Unregister it.
27195         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
27196         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
27197         * modules/close-hook: New file.
27198         * modules/close (Files): Remove lib/w32sock.h.
27199         (Depends-on): Add close-hook.
27200         (Link): Remove section.
27201         * modules/sockets (Files): Add lib/w32sock.h.
27202         (Depends-on): Add close-hook.
27203         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
27204         invocation.
27205         * NEWS: Mention that LIB_CLOSE is gone.
27206
27207 2009-03-23  Eric Blake  <ebb9@byu.net>
27208
27209         signal-tests: test previous patch
27210         * tests/test-signal.c: New file.
27211         * modules/signal-tests: Likewise.
27212
27213         signal.h: always support 'volatile sig_atomic_t'
27214         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
27215         (gl_SIGNAL_H_DEFAULTS): Add a default.
27216         * modules/signal (Makefile.am): Substitute if needed.
27217         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
27218         users can blindly add volatile.
27219         * doc/posix-headers/signal.texi (signal.h): Document it.
27220         Reported by Matthew Woehlke.
27221
27222 2009-03-23  Jim Meyering  <meyering@redhat.com>
27223
27224         pathmax: PATH_MAX: use pathconf only when available
27225         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
27226         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
27227         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
27228         This avoids a link failure in a PSP cross-compilation environment
27229         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
27230
27231         * lib/vasnprintf.c (divide): Fix typo in comment.
27232
27233 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27234
27235         * gnulib-tool (func_filter_filelist): Fix comment.
27236
27237 2009-03-20  Bruno Haible  <bruno@clisp.org>
27238
27239         Make sockets.h self-contained.
27240         * lib/sockets.c: Include sockets.h first.
27241         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
27242
27243 2009-03-19  Eric Blake  <ebb9@byu.net>
27244
27245         doc: mention more functions added in cygwin 1.7.0
27246         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
27247         addition.
27248         * doc/posix-functions/log2f.texi: Likewise.
27249
27250 2009-03-19  Jim Meyering  <meyering@redhat.com>
27251
27252         fsusage: avoid syntax error due to statement-before-declaration
27253         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
27254         after all declarations.  Reported by Matthew Woehlke in
27255         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
27256
27257 2009-03-18  Eric Blake  <ebb9@byu.net>
27258
27259         build-aux/compile: sync from automake
27260         * build-aux/compile: New file, from automake.
27261         * config/srclist.txt: Mention build-aux/compile.
27262
27263 2009-03-17  Bruno Haible  <bruno@clisp.org>
27264
27265         * lib/git-merge-changelog.c: Fix typo in comment.
27266         Reported by Reuben Thomas <rrt@sc3d.org>.
27267
27268 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
27269
27270         * m4/regex.m4: update and improve help for
27271         --without-included-regex.
27272
27273 2009-03-17  Simon Josefsson  <simon@josefsson.org>
27274
27275         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
27276         failure on missing include files.
27277
27278 2009-03-17  Eric Blake  <ebb9@byu.net>
27279
27280         doc: mention more functions added in cygwin 1.7.0
27281         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
27282         addition.
27283         * doc/posix-functions/fwscanf.texi: Likewise.
27284         * doc/posix-functions/swprintf.texi: Likewise.
27285         * doc/posix-functions/swscanf.texi: Likewise.
27286         * doc/posix-functions/vfwprintf.texi: Likewise.
27287         * doc/posix-functions/vfwscanf.texi: Likewise.
27288         * doc/posix-functions/vswprintf.texi: Likewise.
27289         * doc/posix-functions/vswscanf.texi: Likewise.
27290         * doc/posix-functions/vwprintf.texi: Likewise.
27291         * doc/posix-functions/vwscanf.texi: Likewise.
27292         * doc/posix-functions/wcscasecmp.texi: Likewise.
27293         * doc/posix-functions/wcsdup.texi: Likewise.
27294         * doc/posix-functions/wcsftime.texi: Likewise.
27295         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27296         * doc/posix-functions/wprintf.texi: Likewise.
27297         * doc/posix-functions/wscanf.texi: Likewise.
27298         * doc/glibc-functions/gethostbyname2.texi: Likewise.
27299
27300 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27301
27302         maint.mk: really add $(AM_MAKEFLAGS)
27303         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
27304         was inadvertently omitted in the last commit.
27305         Spotted by Bruno Haible.
27306
27307         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
27308         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
27309         $(AM_MAKEFLAGS)' rather than plain `make'.
27310
27311         gnulib-tool: execute $MAKE not make
27312         * gnulib-tool: Default $MAKE to 'make'.
27313         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
27314         than make.  Initialize $MAKE in the do-autobuild script.
27315
27316         gnulib-tool: use $MAKE not make in generated files
27317         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
27318         make, in generated files.  Initialize $MAKE in the do-autobuild
27319         script.
27320
27321         * top/GNUmakefile (_have-git-version-gen): Fix typo.
27322
27323         GNUmakefile: disable parallelism only for multiple, recursive targets
27324         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
27325         additions in the Makefile.
27326         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
27327         by Automake.
27328         (.NOTPARALLEL): Only disable parallel builds if multiple targets
27329         are listed on the command line and at least one of them is
27330         listed in $(ALL_RECURSIVE_TARGETS).
27331
27332 2009-03-14  Bruno Haible  <bruno@clisp.org>
27333
27334         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
27335         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
27336         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
27337         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
27338         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
27339         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
27340         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
27341         unistr/u8-uctomb.
27342         * modules/unistr/u8-strchr (Depends-on): Likewise.
27343         * modules/unistr/u8-strrchr (Depends-on): Likewise.
27344         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
27345         unistr/u16-uctomb.
27346         * modules/unistr/u16-strchr (Depends-on): Likewise.
27347         * modules/unistr/u16-strrchr (Depends-on): Likewise.
27348
27349 2009-03-12  Bruno Haible  <bruno@clisp.org>
27350
27351         Work around select() bug on Interix 3.5.
27352         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
27353         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
27354         * m4/select.m4: New file.
27355         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
27356         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
27357         * modules/select (Files): Add m4/select.m4.
27358         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
27359         * modules/nanosleep (Depends-on): Add select.
27360         * modules/poll (Depends-on): Likewise.
27361         * doc/posix-functions/select.texi: Mention the Interix bug.
27362         Reported by Markus Duft <mduft@gentoo.org>.
27363
27364         * lib/select.c: Renamed from lib/winsock-select.c.
27365         * modules/select (Files): Add lib/select.c, remove
27366         lib/winsock-select.c.
27367         (configure.ac): Update.
27368
27369 2009-03-12  Jim Meyering  <meyering@redhat.com>
27370
27371         avoid gcc warnings about unused macro definitions
27372         * lib/readtokens.c (STREQ): Remove unused definition.
27373         * lib/xmalloc.c (SIZE_MAX): Likewise.
27374         * lib/openat-die.c (N_): Likewise.
27375         * lib/mountlist.c (SIZE_MAX): Remove definition.
27376         Instead, include <stdint.h>.
27377         * lib/readutmp.c: Likewise.
27378         * modules/readutmp (Depends-on): Add stdint.
27379         * modules/mountlist (Depends-on): Add stdint.
27380         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
27381
27382 2009-03-10  Bruno Haible  <bruno@clisp.org>
27383
27384         Tests for module 'mbmemcasecoll'.
27385         * modules/mbmemcasecoll-tests: New file.
27386         * tests/test-mbmemcasecoll1.sh: New file.
27387         * tests/test-mbmemcasecoll2.sh: New file.
27388         * tests/test-mbmemcasecoll3.sh: New file.
27389         * tests/test-mbmemcasecoll.c: New file.
27390
27391         New module 'mbmemcasecoll'.
27392         * lib/mbmemcasecoll.h: New file.
27393         * lib/mbmemcasecoll.c: New file.
27394         * modules/mbmemcasecoll: New file.
27395
27396         * tests/test-mbmemcasecmp.h: New file, extracted from
27397         tests/test-mbmemcasecmp.c.
27398         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
27399         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
27400         (main): Update.
27401         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
27402
27403 2009-03-09  Bruno Haible  <bruno@clisp.org>
27404
27405         Tests for module 'mbmemcasecmp'.
27406         * modules/mbmemcasecmp-tests: New file.
27407         * tests/test-mbmemcasecmp1.sh: New file.
27408         * tests/test-mbmemcasecmp2.sh: New file.
27409         * tests/test-mbmemcasecmp3.sh: New file.
27410         * tests/test-mbmemcasecmp.c: New file.
27411
27412         New module 'mbmemcasecmp'.
27413         * lib/mbmemcasecmp.h: New file.
27414         * lib/mbmemcasecmp.c: New file.
27415         * modules/mbmemcasecmp: New file.
27416
27417 2009-03-09  Bruno Haible  <bruno@clisp.org>
27418
27419         Tests for module 'unicase/ulc-casecoll'.
27420         * modules/unicase/ulc-casecoll-tests: New file.
27421         * tests/unicase/test-ulc-casecoll1.sh: New file.
27422         * tests/unicase/test-ulc-casecoll2.sh: New file.
27423         * tests/unicase/test-ulc-casecoll.c: New file.
27424
27425         New module 'unicase/ulc-casecoll'.
27426         * lib/unicase.h (ulc_casecoll): New declaration.
27427         * lib/unicase/ulc-casecoll.c: New file.
27428         * modules/unicase/ulc-casecoll: New file.
27429
27430         New module 'unicase/ulc-casexfrm'.
27431         * lib/unicase.h (ulc_casexfrm): New declaration.
27432         * lib/unicase/ulc-casexfrm.c: New file.
27433         * modules/unicase/ulc-casexfrm: New file.
27434
27435 2009-03-09  Bruno Haible  <bruno@clisp.org>
27436
27437         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
27438         invocations.
27439
27440         * m4/mbscasecmp.m4: Remove file.
27441         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
27442         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
27443
27444         * m4/mbscasestr.m4: Remove file.
27445         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
27446         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
27447
27448         * m4/mbschr.m4: Remove file.
27449         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
27450         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
27451
27452         * m4/mbscspn.m4: Remove file.
27453         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
27454         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
27455
27456         * m4/mbslen.m4: Remove file.
27457         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
27458         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
27459
27460         * m4/mbsncasecmp.m4: Remove file.
27461         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
27462         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
27463
27464         * m4/mbsnlen.m4: Remove file.
27465         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
27466         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
27467
27468         * m4/mbspbrk.m4: Remove file.
27469         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
27470         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
27471
27472         * m4/mbspcasecmp.m4: Remove file.
27473         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
27474         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
27475
27476         * m4/mbsrchr.m4: Remove file.
27477         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
27478         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
27479
27480         * m4/mbssep.m4: Remove file.
27481         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
27482         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
27483
27484         * m4/mbsspn.m4: Remove file.
27485         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
27486         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
27487
27488         * m4/mbsstr.m4: Remove file.
27489         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
27490         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
27491
27492         * m4/mbstok_r.m4: Remove file.
27493         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
27494         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
27495
27496         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
27497
27498         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
27499         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
27500
27501         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
27502
27503 2009-03-08  Bruno Haible  <bruno@clisp.org>
27504
27505         Tests for module 'unicase/ulc-casecmp'.
27506         * modules/unicase/ulc-casecmp-tests: New file.
27507         * tests/unicase/test-ulc-casecmp1.sh: New file.
27508         * tests/unicase/test-ulc-casecmp2.sh: New file.
27509         * tests/unicase/test-ulc-casecmp.c: New file.
27510
27511         New module 'unicase/ulc-casecmp'.
27512         * lib/unicase.h (ulc_casecmp): New declaration.
27513         * lib/unicase/ulc-casecmp.c: New file.
27514         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
27515         'const SRC_UNIT *'.
27516         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
27517         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
27518         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
27519         * modules/unicase/ulc-casecmp: New file.
27520
27521         Tests for module 'unicase/u32-is-cased'.
27522         * modules/unicase/u32-is-cased-tests: New file.
27523         * tests/unicase/test-u32-is-cased.c: New file.
27524
27525         Tests for module 'unicase/u16-is-cased'.
27526         * modules/unicase/u16-is-cased-tests: New file.
27527         * tests/unicase/test-u16-is-cased.c: New file.
27528
27529         Tests for module 'unicase/u8-is-cased'.
27530         * modules/unicase/u8-is-cased-tests: New file.
27531         * tests/unicase/test-u8-is-cased.c: New file.
27532         * tests/unicase/test-is-cased.h: New file.
27533
27534         New module 'unicase/u32-is-cased'.
27535         * lib/unicase/u32-is-cased.c: New file.
27536         * modules/unicase/u32-is-cased: New file.
27537
27538         New module 'unicase/u16-is-cased'.
27539         * lib/unicase/u16-is-cased.c: New file.
27540         * modules/unicase/u16-is-cased: New file.
27541
27542         New module 'unicase/u8-is-cased'.
27543         * lib/unicase/u8-is-cased.c: New file.
27544         * lib/unicase/u-is-cased.h: New file.
27545         * modules/unicase/u8-is-cased: New file.
27546
27547         Tests for module 'unicase/u32-is-casefolded'.
27548         * modules/unicase/u32-is-casefolded-tests: New file.
27549         * tests/unicase/test-u32-is-casefolded.c: New file.
27550
27551         Tests for module 'unicase/u16-is-casefolded'.
27552         * modules/unicase/u16-is-casefolded-tests: New file.
27553         * tests/unicase/test-u16-is-casefolded.c: New file.
27554
27555         Tests for module 'unicase/u8-is-casefolded'.
27556         * modules/unicase/u8-is-casefolded-tests: New file.
27557         * tests/unicase/test-u8-is-casefolded.c: New file.
27558         * tests/unicase/test-is-casefolded.h: New file.
27559
27560         New module 'unicase/u32-is-casefolded'.
27561         * lib/unicase/u32-is-casefolded.c: New file.
27562         * modules/unicase/u32-is-casefolded: New file.
27563
27564         New module 'unicase/u16-is-casefolded'.
27565         * lib/unicase/u16-is-casefolded.c: New file.
27566         * modules/unicase/u16-is-casefolded: New file.
27567
27568         New module 'unicase/u8-is-casefolded'.
27569         * lib/unicase/u8-is-casefolded.c: New file.
27570         * modules/unicase/u8-is-casefolded: New file.
27571
27572         Tests for module 'unicase/u32-is-titlecase'.
27573         * modules/unicase/u32-is-titlecase-tests: New file.
27574         * tests/unicase/test-u32-is-titlecase.c: New file.
27575
27576         Tests for module 'unicase/u16-is-titlecase'.
27577         * modules/unicase/u16-is-titlecase-tests: New file.
27578         * tests/unicase/test-u16-is-titlecase.c: New file.
27579
27580         Tests for module 'unicase/u8-is-titlecase'.
27581         * modules/unicase/u8-is-titlecase-tests: New file.
27582         * tests/unicase/test-u8-is-titlecase.c: New file.
27583         * tests/unicase/test-is-titlecase.h: New file.
27584
27585         New module 'unicase/u32-is-titlecase'.
27586         * lib/unicase/u32-is-titlecase.c: New file.
27587         * modules/unicase/u32-is-titlecase: New file.
27588
27589         New module 'unicase/u16-is-titlecase'.
27590         * lib/unicase/u16-is-titlecase.c: New file.
27591         * modules/unicase/u16-is-titlecase: New file.
27592
27593         New module 'unicase/u8-is-titlecase'.
27594         * lib/unicase/u8-is-titlecase.c: New file.
27595         * modules/unicase/u8-is-titlecase: New file.
27596
27597         Tests for module 'unicase/u32-is-lowercase'.
27598         * modules/unicase/u32-is-lowercase-tests: New file.
27599         * tests/unicase/test-u32-is-lowercase.c: New file.
27600
27601         Tests for module 'unicase/u16-is-lowercase'.
27602         * modules/unicase/u16-is-lowercase-tests: New file.
27603         * tests/unicase/test-u16-is-lowercase.c: New file.
27604
27605         Tests for module 'unicase/u8-is-lowercase'.
27606         * modules/unicase/u8-is-lowercase-tests: New file.
27607         * tests/unicase/test-u8-is-lowercase.c: New file.
27608         * tests/unicase/test-is-lowercase.h: New file.
27609
27610         New module 'unicase/u32-is-lowercase'.
27611         * lib/unicase/u32-is-lowercase.c: New file.
27612         * modules/unicase/u32-is-lowercase: New file.
27613
27614         New module 'unicase/u16-is-lowercase'.
27615         * lib/unicase/u16-is-lowercase.c: New file.
27616         * modules/unicase/u16-is-lowercase: New file.
27617
27618         New module 'unicase/u8-is-lowercase'.
27619         * lib/unicase/u8-is-lowercase.c: New file.
27620         * modules/unicase/u8-is-lowercase: New file.
27621
27622         Tests for module 'unicase/u32-is-uppercase'.
27623         * modules/unicase/u32-is-uppercase-tests: New file.
27624         * tests/unicase/test-u32-is-uppercase.c: New file.
27625
27626         Tests for module 'unicase/u16-is-uppercase'.
27627         * modules/unicase/u16-is-uppercase-tests: New file.
27628         * tests/unicase/test-u16-is-uppercase.c: New file.
27629
27630         Tests for module 'unicase/u8-is-uppercase'.
27631         * modules/unicase/u8-is-uppercase-tests: New file.
27632         * tests/unicase/test-u8-is-uppercase.c: New file.
27633         * tests/unicase/test-is-uppercase.h: New file.
27634
27635         New module 'unicase/u32-is-uppercase'.
27636         * lib/unicase/u32-is-uppercase.c: New file.
27637         * modules/unicase/u32-is-uppercase: New file.
27638
27639         New module 'unicase/u16-is-uppercase'.
27640         * lib/unicase/u16-is-uppercase.c: New file.
27641         * modules/unicase/u16-is-uppercase: New file.
27642
27643         New module 'unicase/u8-is-uppercase'.
27644         * lib/unicase/u8-is-uppercase.c: New file.
27645         * modules/unicase/u8-is-uppercase: New file.
27646
27647         New module 'unicase/u32-is-invariant'.
27648         * lib/unicase/u32-is-invariant.c: New file.
27649         * modules/unicase/u32-is-invariant: New file.
27650
27651         New module 'unicase/u16-is-invariant'.
27652         * lib/unicase/u16-is-invariant.c: New file.
27653         * modules/unicase/u16-is-invariant: New file.
27654
27655         New module 'unicase/u8-is-invariant'.
27656         * lib/unicase/u8-is-invariant.c: New file.
27657         * lib/unicase/invariant.h: New file.
27658         * lib/unicase/u-is-invariant.h: New file.
27659         * modules/unicase/u8-is-invariant: New file.
27660
27661         Tests for module 'unicase/u32-casecoll'.
27662         * modules/unicase/u32-casecoll-tests: New file.
27663         * tests/unicase/test-u32-casecoll.c: New file.
27664
27665         Tests for module 'unicase/u16-casecoll'.
27666         * modules/unicase/u16-casecoll-tests: New file.
27667         * tests/unicase/test-u16-casecoll.c: New file.
27668
27669         Tests for module 'unicase/u8-casecoll'.
27670         * modules/unicase/u8-casecoll-tests: New file.
27671         * tests/unicase/test-u8-casecoll.c: New file.
27672
27673         New module 'unicase/u32-casecoll'.
27674         * lib/unicase/u32-casecoll.c: New file.
27675         * modules/unicase/u32-casecoll: New file.
27676
27677         New module 'unicase/u16-casecoll'.
27678         * lib/unicase/u16-casecoll.c: New file.
27679         * modules/unicase/u16-casecoll: New file.
27680
27681         New module 'unicase/u8-casecoll'.
27682         * lib/unicase/u8-casecoll.c: New file.
27683         * lib/unicase/u-casecoll.h: New file.
27684         * modules/unicase/u8-casecoll: New file.
27685
27686         New module 'unicase/u32-casexfrm'.
27687         * lib/unicase/u32-casexfrm.c: New file.
27688         * modules/unicase/u32-casexfrm: New file.
27689
27690         New module 'unicase/u16-casexfrm'.
27691         * lib/unicase/u16-casexfrm.c: New file.
27692         * modules/unicase/u16-casexfrm: New file.
27693
27694         New module 'unicase/u8-casexfrm'.
27695         * lib/unicase/u8-casexfrm.c: New file.
27696         * lib/unicase/u-casexfrm.h: New file.
27697         * modules/unicase/u8-casexfrm: New file.
27698
27699         Tests for module 'unicase/u32-casecmp'.
27700         * modules/unicase/u32-casecmp-tests: New file.
27701         * tests/unicase/test-u32-casecmp.c: New file.
27702
27703         Tests for module 'unicase/u16-casecmp'.
27704         * modules/unicase/u16-casecmp-tests: New file.
27705         * tests/unicase/test-u16-casecmp.c: New file.
27706
27707         Tests for module 'unicase/u8-casecmp'.
27708         * modules/unicase/u8-casecmp-tests: New file.
27709         * tests/unicase/test-u8-casecmp.c: New file.
27710         * tests/unicase/test-casecmp.h: New file.
27711
27712         New module 'unicase/u32-casecmp'.
27713         * lib/unicase/u32-casecmp.c: New file.
27714         * modules/unicase/u32-casecmp: New file.
27715
27716         New module 'unicase/u16-casecmp'.
27717         * lib/unicase/u16-casecmp.c: New file.
27718         * modules/unicase/u16-casecmp: New file.
27719
27720         New module 'unicase/u8-casecmp'.
27721         * lib/unicase/u8-casecmp.c: New file.
27722         * lib/unicase/u-casecmp.h: New file.
27723         * modules/unicase/u8-casecmp: New file.
27724
27725         Tests for module 'unicase/u32-casefold'.
27726         * modules/unicase/u32-casefold-tests: New file.
27727         * tests/unicase/test-u32-casefold.c: New file.
27728
27729         Tests for module 'unicase/u16-casefold'.
27730         * modules/unicase/u16-casefold-tests: New file.
27731         * tests/unicase/test-u16-casefold.c: New file.
27732
27733         Tests for module 'unicase/u8-casefold'.
27734         * modules/unicase/u8-casefold-tests: New file.
27735         * tests/unicase/test-u8-casefold.c: New file.
27736
27737         New module 'unicase/u32-casefold'.
27738         * lib/unicase/u32-casefold.c: New file.
27739         * modules/unicase/u32-casefold: New file.
27740
27741         New module 'unicase/u16-casefold'.
27742         * lib/unicase/u16-casefold.c: New file.
27743         * modules/unicase/u16-casefold: New file.
27744
27745         New module 'unicase/u8-casefold'.
27746         * lib/unicase/u8-casefold.c: New file.
27747         * lib/unicase/u-casefold.h: New file.
27748         * modules/unicase/u8-casefold: New file.
27749
27750         New module 'unicase/tocasefold'.
27751         * lib/unicase/casefold.h: New file.
27752         * lib/unicase/tocasefold.c: New file.
27753         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
27754         * modules/unicase/tocasefold: New file.
27755
27756         Tests for module 'unicase/u32-totitle'.
27757         * modules/unicase/u32-totitle-tests: New file.
27758         * tests/unicase/test-u32-totitle.c: New file.
27759
27760         Tests for module 'unicase/u16-totitle'.
27761         * modules/unicase/u16-totitle-tests: New file.
27762         * tests/unicase/test-u16-totitle.c: New file.
27763
27764         Tests for module 'unicase/u8-totitle'.
27765         * modules/unicase/u8-totitle-tests: New file.
27766         * tests/unicase/test-u8-totitle.c: New file.
27767
27768         New module 'unicase/u32-totitle'.
27769         * lib/unicase/u32-totitle.c: New file.
27770         * modules/unicase/u32-totitle: New file.
27771
27772         New module 'unicase/u16-totitle'.
27773         * lib/unicase/u16-totitle.c: New file.
27774         * modules/unicase/u16-totitle: New file.
27775
27776         New module 'unicase/u8-totitle'.
27777         * lib/unicase/u8-totitle.c: New file.
27778         * lib/unicase/u-totitle.h: New file.
27779         * modules/unicase/u8-totitle: New file.
27780
27781         Tests for module 'unicase/u32-tolower'.
27782         * modules/unicase/u32-tolower-tests: New file.
27783         * tests/unicase/test-u32-tolower.c: New file.
27784
27785         Tests for module 'unicase/u16-tolower'.
27786         * modules/unicase/u16-tolower-tests: New file.
27787         * tests/unicase/test-u16-tolower.c: New file.
27788
27789         Tests for module 'unicase/u8-tolower'.
27790         * modules/unicase/u8-tolower-tests: New file.
27791         * tests/unicase/test-u8-tolower.c: New file.
27792
27793         New module 'unicase/u32-tolower'.
27794         * lib/unicase/u32-tolower.c: New file.
27795         * modules/unicase/u32-tolower: New file.
27796
27797         New module 'unicase/u16-tolower'.
27798         * lib/unicase/u16-tolower.c: New file.
27799         * modules/unicase/u16-tolower: New file.
27800
27801         New module 'unicase/u8-tolower'.
27802         * lib/unicase/u8-tolower.c: New file.
27803         * modules/unicase/u8-tolower: New file.
27804
27805         Tests for module 'unicase/u32-toupper'.
27806         * modules/unicase/u32-toupper-tests: New file.
27807         * tests/unicase/test-u32-toupper.c: New file.
27808
27809         Tests for module 'unicase/u16-toupper'.
27810         * modules/unicase/u16-toupper-tests: New file.
27811         * tests/unicase/test-u16-toupper.c: New file.
27812
27813         Tests for module 'unicase/u8-toupper'.
27814         * modules/unicase/u8-toupper-tests: New file.
27815         * tests/unicase/test-u8-toupper.c: New file.
27816
27817         New module 'unicase/u32-toupper'.
27818         * lib/unicase/u32-toupper.c: New file.
27819         * modules/unicase/u32-toupper: New file.
27820
27821         New module 'unicase/u16-toupper'.
27822         * lib/unicase/u16-toupper.c: New file.
27823         * modules/unicase/u16-toupper: New file.
27824
27825         New module 'unicase/u8-toupper'.
27826         * lib/unicase/u8-toupper.c: New file.
27827         * modules/unicase/u8-toupper: New file.
27828
27829         New module 'unicase/u32-casemap'.
27830         * lib/unicase/u32-casemap.c: New file.
27831         * modules/unicase/u32-casemap: New file.
27832
27833         New module 'unicase/u16-casemap'.
27834         * lib/unicase/u16-casemap.c: New file.
27835         * modules/unicase/u16-casemap: New file.
27836
27837         New module 'unicase/u8-casemap'.
27838         * lib/unicase/unicasemap.h: New file.
27839         * lib/unicase/u8-casemap.c: New file.
27840         * lib/unicase/u-casemap.h: New file.
27841         * modules/unicase/u8-casemap: New file.
27842
27843         New module 'unicase/special-casing'.
27844         * lib/unicase/special-casing.h: New file.
27845         * lib/unicase/special-casing.c: New file.
27846         * lib/unicase/special-casing-table.gperf: New file, generated by
27847         gen-uni-tables.c.
27848         * modules/unicase/special-casing: New file.
27849
27850         Tests for module 'unicase/locale-language'.
27851         * modules/unicase/locale-language-tests: New file.
27852         * tests/unicase/test-locale-language.sh: New file.
27853         * tests/unicase/test-locale-language.c: New file.
27854
27855         New module 'unicase/locale-language'.
27856         * lib/unicase/locale-language.c: New file.
27857         * lib/unicase/locale-languages.gperf: New file.
27858         * modules/unicase/locale-language: New file.
27859
27860         Generate more tables for case conversion and case folding.
27861         * lib/gen-uni-tables.c (SCC_*): New enum items.
27862         (struct special_casing_rule): New type.
27863         (casing_rules, num_casing_rules, allocated_casing_rules): New
27864         variables.
27865         (add_casing_rule, fill_casing_rules): New functions.
27866         (struct casefold_rule): New type.
27867         (casefolding_rules, num_casefolding_rules,
27868         allocated_casefolding_rules): New variables.
27869         (fill_casefolding_rules): New function.
27870         (unicode_casefold): New variable.
27871         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
27872         sort_casing_rules, output_casing_rules): New functions.
27873         (main): Accept to more arguments: SpecialCasing.txt and
27874         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
27875         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
27876         Output mapping for casefolding.
27877
27878         * lib/unicase.h: Include stdbool.h, uninorm.h.
27879         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
27880         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
27881         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
27882         arguments.
27883         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
27884         resultp arguments.
27885         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
27886         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
27887         resultp arguments.
27888         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
27889         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
27890         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
27891         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
27892         declarations.
27893         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
27894
27895 2009-03-08  Bruno Haible  <bruno@clisp.org>
27896
27897         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27898         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
27899         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
27900         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27901
27902 2009-03-07  Bruno Haible  <bruno@clisp.org>
27903
27904         Adjust u*_normcmp, u*_normcoll API.
27905         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27906         u16_normcoll, u32_normcoll): Change failure conventions.
27907         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
27908         errno and return -1.
27909         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27910
27911 2009-03-07  Bruno Haible  <bruno@clisp.org>
27912
27913         Tests for module 'uninorm/u32-normcoll'.
27914         * modules/uninorm/u32-normcoll-tests: New file.
27915         * tests/uninorm/test-u32-normcoll.c: New file.
27916
27917         Tests for module 'uninorm/u16-normcoll'.
27918         * modules/uninorm/u16-normcoll-tests: New file.
27919         * tests/uninorm/test-u16-normcoll.c: New file.
27920
27921         Tests for module 'uninorm/u8-normcoll'.
27922         * modules/uninorm/u8-normcoll-tests: New file.
27923         * tests/uninorm/test-u8-normcoll.c: New file.
27924
27925 2009-03-07  Bruno Haible  <bruno@clisp.org>
27926
27927         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
27928         tests/uninorm/test-u32-normcmp.c.
27929         * tests/uninorm/test-u32-normcmp.c: Include it.
27930         (test_nonascii): New function, extracted from main. Add some more
27931         tests.
27932         (main): Invoke test_ascii and test_nonascii.
27933         * modules/uninorm/u32-normcmp-tests (Files): Add
27934         tests/uninorm/test-u32-normcmp.h.
27935         (Depends-on): Remove uninorm/u32-normcmp.
27936
27937         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
27938         tests/uninorm/test-u16-normcmp.c.
27939         * tests/uninorm/test-u16-normcmp.c: Include it.
27940         (test_nonascii): New function, extracted from main. Add some more
27941         tests.
27942         (main): Invoke test_ascii and test_nonascii.
27943         * modules/uninorm/u16-normcmp-tests (Files): Add
27944         tests/uninorm/test-u16-normcmp.h.
27945         (Depends-on): Remove uninorm/u16-normcmp.
27946
27947         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
27948         tests/uninorm/test-u8-normcmp.c.
27949         * tests/uninorm/test-u8-normcmp.c: Include it.
27950         (test_nonascii): New function, extracted from main. Add some more
27951         tests.
27952         (main): Invoke test_ascii and test_nonascii.
27953         * modules/uninorm/u8-normcmp-tests (Files): Add
27954         tests/uninorm/test-u8-normcmp.h.
27955         (Depends-on): Remove uninorm/u8-normcmp.
27956
27957 2009-03-07  Bruno Haible  <bruno@clisp.org>
27958
27959         New module 'uninorm/u32-normcoll'.
27960         * lib/uninorm/u32-normcoll.c: New file.
27961         * modules/uninorm/u32-normcoll: New file.
27962
27963         New module 'uninorm/u16-normcoll'.
27964         * lib/uninorm/u16-normcoll.c: New file.
27965         * modules/uninorm/u16-normcoll: New file.
27966
27967         New module 'uninorm/u8-normcoll'.
27968         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
27969         declarations.
27970         * lib/uninorm/u8-normcoll.c: New file.
27971         * lib/uninorm/u-normcoll.h: New file.
27972         * modules/uninorm/u8-normcoll: New file.
27973
27974         New module 'uninorm/u32-normxfrm'.
27975         * lib/uninorm/u32-normxfrm.c: New file.
27976         * modules/uninorm/u32-normxfrm: New file.
27977
27978         New module 'uninorm/u16-normxfrm'.
27979         * lib/uninorm/u16-normxfrm.c: New file.
27980         * modules/uninorm/u16-normxfrm: New file.
27981
27982         New module 'uninorm/u8-normxfrm'.
27983         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
27984         declarations.
27985         * lib/uninorm/u8-normxfrm.c: New file.
27986         * lib/uninorm/u-normxfrm.h: New file.
27987         * modules/uninorm/u8-normxfrm: New file.
27988
27989 2009-03-07  Bruno Haible  <bruno@clisp.org>
27990
27991         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
27992         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
27993         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
27994
27995 2009-03-07  Bruno Haible  <bruno@clisp.org>
27996
27997         New module 'memxfrm'.
27998         * lib/memxfrm.h: New file.
27999         * lib/memxfrm.c: New file.
28000         * modules/memxfrm: New file.
28001
28002 2009-03-07  Bruno Haible  <bruno@clisp.org>
28003
28004         New module 'memcmp2'.
28005         * lib/memcmp2.h: New file.
28006         * lib/memcmp2.c: New file.
28007         * modules/memcmp2: New file.
28008
28009 2009-03-07  Bruno Haible  <bruno@clisp.org>
28010
28011         Tests for module 'uninorm/decomposing-form'.
28012         * modules/uninorm/decomposing-form-tests: New file.
28013         * tests/uninorm/test-decomposing-form.c: New file.
28014
28015         New module 'uninorm/decomposing-form'.
28016         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
28017         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
28018         Add 'decomposing_variant' field.
28019         * lib/uninorm/decomposing-form.c: New file.
28020         * lib/uninorm/nfc.c (uninorm_nfc): Update.
28021         * lib/uninorm/nfd.c (uninorm_nfd): Update.
28022         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
28023         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
28024         * modules/uninorm/decomposing-form: New file.
28025         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
28026         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
28027
28028 2009-03-07  Bruno Haible  <bruno@clisp.org>
28029
28030         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
28031         strings.
28032
28033 2009-03-06  Bruno Haible  <bruno@clisp.org>
28034
28035         Tests for module 'uninorm/u32-normcmp'.
28036         * tests/uninorm/test-u32-normcmp.c: New file.
28037         * modules/uninorm/u32-normcmp-tests: New file.
28038
28039         Tests for module 'uninorm/u16-normcmp'.
28040         * tests/uninorm/test-u16-normcmp.c: New file.
28041         * modules/uninorm/u16-normcmp-tests: New file.
28042
28043         Tests for module 'uninorm/u8-normcmp'.
28044         * tests/uninorm/test-u8-normcmp.c: New file.
28045         * modules/uninorm/u8-normcmp-tests: New file.
28046
28047         New module 'uninorm/u32-normcmp'.
28048         * lib/uninorm/u32-normcmp.c: New file.
28049         * modules/uninorm/u32-normcmp: New file.
28050
28051         New module 'uninorm/u16-normcmp'.
28052         * lib/uninorm/u16-normcmp.c: New file.
28053         * modules/uninorm/u16-normcmp: New file.
28054
28055         New module 'uninorm/u8-normcmp'.
28056         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
28057         declarations.
28058         * lib/uninorm/u8-normcmp.c: New file.
28059         * lib/uninorm/u-normcmp.h: New file.
28060         * modules/uninorm/u8-normcmp: New file.
28061
28062 2009-03-06  Bruno Haible  <bruno@clisp.org>
28063
28064         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
28065         Reported by Eric Blake.
28066
28067 2009-03-06  Eric Blake  <ebb9@byu.net>
28068             Bruno Haible  <bruno@clisp.org>
28069
28070         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
28071         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
28072         condition.
28073         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28074         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
28075         condition.
28076         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28077
28078 2009-03-06  Eric Blake  <ebb9@byu.net>
28079
28080         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
28081         to avoid compiler warnings.
28082         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
28083
28084 2009-03-05  Bruno Haible  <bruno@clisp.org>
28085
28086         * tests/test-ftell.c (main): Disable test beyond end of file on
28087         FreeMiNT.
28088         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28089
28090 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
28091
28092         * lib/filevercmp.c: Move hidden files up in ordering.
28093         * tests/test-filevercmp.c: Add tests for hidden files.
28094
28095 2009-03-04  Bruno Haible  <bruno@clisp.org>
28096
28097         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
28098         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
28099         AM_CFLAGS.
28100         Reported by Simon Josefsson.
28101
28102 2009-03-03  Bruno Haible  <bruno@clisp.org>
28103
28104         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
28105         Reported by Simon Josefsson.
28106
28107         * doc/ld-version-script.texi: Update node reference.
28108
28109 2009-03-03  Bruno Haible  <bruno@clisp.org>
28110
28111         * modules/visibility (License): Change to 'unlimited'.
28112         Suggested by Simon Josefsson.
28113
28114 2009-03-03  Jim Meyering  <meyering@redhat.com>
28115
28116         unlinkdir: cannot_unlink_dir may modify process state
28117         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
28118         it's neither thread-safe nor appropriate for use in a library.
28119
28120 2009-03-03  Eric Blake  <ebb9@byu.net>
28121
28122         test-closein: silence test under Darwin
28123         * tests/test-closein.sh: Ignore stderr from cat, since we don't
28124         care if it dies from EPIPE or EBADF.
28125
28126 2009-03-03  Bruno Haible  <bruno@clisp.org>
28127
28128         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
28129         earlier.
28130         * doc/visibility.texi: Fix @node and @section.
28131
28132 2009-03-03  Simon Josefsson  <simon@josefsson.org>
28133
28134         * doc/gnulib.texi: Link to sections for ld version script and
28135         visibility.
28136         * doc/visibility.texi: Add @node and @section.
28137         * modules/ld-version-script: New module.
28138         * m4/ld-version-script.m4: New file.
28139         * doc/ld-version-script.texi: New file.
28140
28141 2009-03-02  David Lutterkort  <lutter@redhat.com>
28142
28143         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
28144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28145
28146 2009-03-02  Bruno Haible  <bruno@clisp.org>
28147
28148         * doc/visibility.texi: Mention libtool's -export-symbols option.
28149
28150 2009-03-02  Jim Meyering  <meyering@redhat.com>
28151
28152         announce-gen: new option: --no-print-checksums
28153         * build-aux/announce-gen (usage): Describe it.
28154         (print_checksums): Print a newline here, not in the [*] footnote.
28155         (main): Honor it.
28156
28157 2009-03-01  Bruno Haible  <bruno@clisp.org>
28158
28159         Use socklen_t in the native Windows replacements prototypes.
28160         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
28161         instead of 'int'.
28162         * lib/getsockopt.c (rpl_getsockopt): Likewise.
28163         * lib/setsockopt.c (rpl_setsockopt): Likewise.
28164         * modules/getsockopt (Depends-on): Add socklen.
28165         * modules/setsockopt (Depends-on): Add socklen.
28166
28167 2009-03-01  Bruno Haible  <bruno@clisp.org>
28168
28169         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
28170         least 4.2.
28171
28172 2009-03-01  Eric Blake  <ebb9@byu.net>
28173             Bruno Haible  <bruno@clisp.org>
28174
28175         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
28176         error messages.
28177         * lib/wait-process.c (wait_subprocess): Omit error message about
28178         deadly signal sent to the child of termsigp != NULL.
28179
28180 2009-03-01  Eric Blake  <ebb9@byu.net>
28181
28182         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
28183
28184 2009-03-01  Bruno Haible  <bruno@clisp.org>
28185
28186         Avoid a gcc warning.
28187         * tests/test-sched.c (b): Make global.
28188         Reported by Eric Blake.
28189
28190 2009-01-19  Martin Lambers  <marlam@marlam.de>
28191
28192         Provide POSIX semantics for socket timeout options on W32.
28193         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
28194         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
28195         * modules/setsockopt: Depend on sys_time module for struct timeval.
28196         * modules/getsockopt: Depend on sys_time module for struct timeval.
28197
28198 2009-03-01  Simon Josefsson  <simon@josefsson.org>
28199
28200         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
28201         __USE_GNU, for consistency with netdb.in.h.
28202         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28203
28204 2009-03-01  Bruno Haible  <bruno@clisp.org>
28205
28206         More support for FreeMiNT.
28207         * lib/fseeko.c (rpl_fseeko): Complete last commit.
28208         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28209
28210 2009-03-01  Bruno Haible  <bruno@clisp.org>
28211
28212         More support for FreeMiNT.
28213         * lib/fpurge.c (fpurge): Correct last commit.
28214         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28215
28216 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28217
28218         Fix unportable awk script in vc-list-files.
28219         * build-aux/vc-list-files: In the replacement awk script, use
28220         substr with a second argument of 1, not zero.
28221         Report by Simon Josefsson.
28222
28223 2009-02-28  Bruno Haible  <bruno@clisp.org>
28224
28225         More support for FreeMiNT.
28226         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
28227         to FreeMiNT today.
28228         * lib/fwriting.c (fwriting): Likewise.
28229         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
28230
28231 2009-02-28  Bruno Haible  <bruno@clisp.org>
28232
28233         * tests/test-freadseek.c (main): Disable test beyond end of file on
28234         FreeMiNT.
28235         * tests/test-ftello.c (main): Likewise.
28236         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28237
28238 2009-02-28  Bruno Haible  <bruno@clisp.org>
28239
28240         Add tentative support for FreeMiNT.
28241         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
28242         * lib/fpurge.c (fpurge): Likewise.
28243         * lib/freadable.c (freadable): Likewise.
28244         * lib/freading.c (freading): Likewise.
28245         * lib/freadptr.c (freadptr): Likewise.
28246         * lib/freadseek.c (freadptrinc): Likewise.
28247         * lib/fseeko.c (rpl_fseeko): Likewise.
28248         * lib/fseterr.c (fseterr): Likewise.
28249         * lib/fwritable.c (fwritable): Likewise.
28250         * lib/fwriting.c (fwriting): Likewise.
28251         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
28252         Hourihane.
28253         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28254
28255 2009-02-28  Bruno Haible  <bruno@clisp.org>
28256
28257         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
28258         SIGCHLD.
28259         Reported by Jim Meyering.
28260
28261 2009-02-28  Bruno Haible  <bruno@clisp.org>
28262
28263         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
28264         Mention the results of these tests on various platforms.
28265         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
28266         order.
28267         * doc/posix-functions/printf.texi: Likewise.
28268         * doc/posix-functions/snprintf.texi: Likewise.
28269         * doc/posix-functions/sprintf.texi: Likewise.
28270         * doc/posix-functions/vfprintf.texi: Likewise.
28271         * doc/posix-functions/vprintf.texi: Likewise.
28272         * doc/posix-functions/vsnprintf.texi: Likewise.
28273         * doc/posix-functions/vsprintf.texi: Likewise.
28274         * doc/glibc-functions/obstack_printf.texi: Likewise.
28275         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28276
28277 2009-02-28  Bruno Haible  <bruno@clisp.org>
28278
28279         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
28280         Reported by Loïc Minier <lool@dooz.org>.
28281
28282 2009-02-27  Bruno Haible  <bruno@clisp.org>
28283
28284         * gnulib-tool (func_import): Make the sed expression used to create the
28285         sed script for updating the .gitignore file POSIX compliant.
28286         Reported by Eric Blake.
28287
28288 2009-02-27  Bruno Haible  <bruno@clisp.org>
28289
28290         * gnulib-tool (sed): Don't alias as "sed --posix".
28291         Reported by Eric Blake.
28292
28293 2009-02-27  Bruno Haible  <bruno@clisp.org>
28294
28295         Avoid test link errors.
28296         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
28297         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
28298         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
28299         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
28300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28301
28302 2009-02-27  Bruno Haible  <bruno@clisp.org>
28303
28304         Avoid spurious "(cached)" in configure output.
28305         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
28306         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
28307         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28308         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28309         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28310         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28311         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28312         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28313         Reported by Eric Blake.
28314
28315 2009-02-27  Eric Blake  <ebb9@byu.net>
28316
28317         printf: fix regression in previous patch
28318         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
28319
28320 2009-02-27  Bruno Haible  <bruno@clisp.org>
28321
28322         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
28323         value.
28324         * lib/stdint.in.h: Likewise.
28325         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
28326
28327 2009-02-27  Eric Blake  <ebb9@byu.net>
28328
28329         doc: mention more functions added in cygwin 1.7.0
28330         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
28331         addition.
28332         * doc/posix-functions/open_wmemstream.texi: Likewise.
28333         * doc/posix-functions/wcsnlen.texi: Likewise.
28334         * doc/posix-functions/wcsnrtombs.texi: Likewise.
28335         * doc/posix-functions/wcstod.texi: Likewise.
28336         * doc/posix-functions/wcstof.texi: Likewise.
28337         * doc/posix-functions/wcstoimax.texi: Likewise.
28338         * doc/posix-functions/wcstok.texi: Likewise.
28339         * doc/posix-functions/wcstoumax.texi: Likewise.
28340
28341         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
28342         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
28343         * doc/posix-functions/fprintf.texi: Update.
28344         * doc/posix-functions/printf.texi: Update.
28345         * doc/posix-functions/snprintf.texi: Update.
28346         * doc/posix-functions/sprintf.texi: Update.
28347         * doc/posix-functions/vfprintf.texi: Update.
28348         * doc/posix-functions/vprintf.texi: Update.
28349         * doc/posix-functions/vsnprintf.texi: Update.
28350         * doc/posix-functions/vsprintf.texi: Update.
28351         * doc/glibc-functions/obstack_printf.texi: Update.
28352         * doc/glibc-functions/obstack_vprintf.texi: Update.
28353
28354 2009-02-26  Eric Blake  <ebb9@byu.net>
28355
28356         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
28357         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
28358         compilation bug by using runtime conversion.
28359         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28360         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
28361         * modules/ceill-tests (Files): Use nan.h.
28362         * modules/floorl-tests (Files): Likewise.
28363         * modules/frexpl-tests (Files): Likewise.
28364         * modules/isnanl-tests (Files): Likewise.
28365         * modules/ldexpl-tests (Files): Likewise.
28366         * modules/roundl-tests (Files): Likewise.
28367         * modules/truncl-tests (Files): Likewise.
28368         * tests/test-ceill.c (main): Use a working NaN.
28369         * tests/test-floorl.c (main): Likewise.
28370         * tests/test-frexpl.c (main): Likewise.
28371         * tests/test-isnan.c (test_long_double): Likewise.
28372         * tests/test-isnanl.h (main): Likewise.
28373         * tests/test-ldexpl.h (main): Likewise.
28374         * tests/test-roundl.h (main): Likewise.
28375         * tests/test-truncl.h (main): Likewise.
28376         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
28377
28378 2009-02-26  Eric Blake  <ebb9@byu.net>
28379             Bruno Haible  <bruno@clisp.org>
28380
28381         Work around a *printf bug with %ls on Solaris.
28382         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
28383         precision is specified, sprintf stops converting the wide string
28384         argument when the number of bytes that have been produced by this
28385         conversion equals or exceeds the precision.
28386         * doc/posix-functions/fprintf.texi: Update.
28387         * doc/posix-functions/printf.texi: Update.
28388         * doc/posix-functions/snprintf.texi: Update.
28389         * doc/posix-functions/sprintf.texi: Update.
28390         * doc/posix-functions/vfprintf.texi: Update.
28391         * doc/posix-functions/vprintf.texi: Update.
28392         * doc/posix-functions/vsnprintf.texi: Update.
28393         * doc/posix-functions/vsprintf.texi: Update.
28394         * doc/glibc-functions/obstack_printf.texi: Update.
28395         * doc/glibc-functions/obstack_vprintf.texi: Update.
28396
28397 2009-02-26  Eric Blake  <ebb9@byu.net>
28398
28399         stdlib: favor compiler check of random.h
28400         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
28401         to avoid an ObjC random.h installed by Swarm.
28402
28403 2009-02-26  Bruno Haible  <bruno@clisp.org>
28404
28405         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
28406         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
28407         Reported by Gary V. Vaughan <gary@gnu.org>.
28408
28409 2009-02-26  Bruno Haible  <bruno@clisp.org>
28410
28411         Fix *printf behaviour regarding the %ls directive.
28412         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
28413         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
28414         NEED_PRINTF_DIRECTIVE_LS.
28415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
28416         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28417         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28418         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
28419         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
28420         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
28421         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28423         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28424         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28425         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28426         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
28427         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28429         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28430         * doc/posix-functions/fprintf.texi: Update.
28431         * doc/posix-functions/printf.texi: Update.
28432         * doc/posix-functions/snprintf.texi: Update.
28433         * doc/posix-functions/sprintf.texi: Update.
28434         * doc/posix-functions/vfprintf.texi: Update.
28435         * doc/posix-functions/vprintf.texi: Update.
28436         * doc/posix-functions/vsnprintf.texi: Update.
28437         * doc/posix-functions/vsprintf.texi: Update.
28438         * doc/glibc-functions/obstack_printf.texi: Update.
28439         * doc/glibc-functions/obstack_vprintf.texi: Update.
28440         Reported by Eric Blake.
28441
28442 2009-02-25  Bruno Haible  <bruno@clisp.org>
28443
28444         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
28445         with known value.
28446         Reported by Gary V. Vaughan <gary@gnu.org>.
28447
28448 2009-02-25  Bruno Haible  <bruno@clisp.org>
28449
28450         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
28451         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
28452         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
28453         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
28454         Reported by Gary V. Vaughan <gary@gnu.org>.
28455
28456 2009-02-25  Bruno Haible  <bruno@clisp.org>
28457
28458         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
28459         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
28460         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
28461         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
28462         Reported by Gary V. Vaughan <gary@gnu.org>.
28463
28464 2009-02-25  Eric Blake  <ebb9@byu.net>
28465
28466         tests: skip fseek/ftell tests if ungetc is broken
28467         * m4/ungetc.m4: New file.
28468         * modules/fseek-tests: Split test, so ungetc dependency is
28469         separate from rest of test.
28470         * modules/fseeko-tests: Likewise.
28471         * modules/ftell-tests: Likewise.
28472         * modules/ftello-tests: Likewise.
28473         * tests/test-fseek.c (main): Isolate ungetc dependency.
28474         * tests/test-fseeko.c (main): Likewise.
28475         * tests/test-ftell.c (main): Likewise.
28476         * tests/test-ftello.c (main): Likewise.
28477         * tests/test-fseek2.sh: New file.
28478         * tests/test-fseeko2.sh: Likewise.
28479         * tests/test-ftell2.sh: Likewise.
28480         * tests/test-ftello2.sh: Likewise.
28481
28482 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
28483
28484         test-getaddrinfo: fix usage of skip return code 77
28485         * tests/test-gettaddrinfo.c: Return skip code 77 only
28486         for first occurance of skip (4x77 is not 77)
28487
28488 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
28489
28490         strtod: avoid C99 decl-after-statement
28491         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
28492
28493 2009-02-24  Eric Blake  <ebb9@byu.net>
28494
28495         strtod: detect HP-UX 11.31 bug
28496         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
28497         Reported by Gary V. Vaughan.
28498
28499 2009-02-23  Bruno Haible  <bruno@clisp.org>
28500
28501         Fix invalid read past end of memory block.
28502         * lib/vasnprintf.c (DCHAR_SET): Define.
28503         (local_wcslen): Define only when needed.
28504         (local_strnlen, local_wcsnlen): New functions.
28505         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
28506         directives that involve a conversion ourselves.
28507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
28508         wcsnlen, mbrtowc, wcrtomb.
28509         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
28510         * tests/test-vasprintf-posix.c (test_function): Likewise.
28511         * tests/test-snprintf-posix.h (test_function): Likewise.
28512         * tests/test-sprintf-posix.h (test_function): Likewise.
28513         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28514
28515 2009-02-22  Bruno Haible  <bruno@clisp.org>
28516
28517         Implement new clarified decomposition of Hangul syllables.
28518         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
28519         of type LTV, return only a pairwise decomposition.
28520         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
28521         Likewise.
28522         * tests/uninorm/test-decomposition.c (main): Updated expected result.
28523         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
28524         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
28525
28526 2009-02-22  Bruno Haible  <bruno@clisp.org>
28527
28528         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
28529         zero-length results and shrink excess allocated memory.
28530         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
28531         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
28532         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
28533         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
28534         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
28535         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
28536         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
28537         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
28538         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
28539         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
28540         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
28541         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
28542
28543 2009-02-21  Bruno Haible  <bruno@clisp.org>
28544
28545         * doc/gnulib.texi: Include safe-alloc.texi earlier.
28546         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
28547         spaces after a period. Put a space between a macro name and its
28548         argument list. Trivial rewordings.
28549         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
28550         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
28551         (main): Return 0 explicitly.
28552
28553 2009-02-21  Bruno Haible  <bruno@clisp.org>
28554
28555         Tests for module 'uninorm/filter'.
28556         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
28557         * modules/uninorm/filter-tests: New file.
28558
28559         New module 'uninorm/filter'.
28560         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
28561         uninorm_filter_flush, uninorm_filter_free): New declarations.
28562         * lib/uninorm/uninorm-filter.c: New file.
28563         * modules/uninorm/filter: New file.
28564
28565 2009-02-21  Bruno Haible  <bruno@clisp.org>
28566
28567         Tests for module 'uninorm/nfkc'.
28568         * tests/uninorm/test-nfkc.c: New file.
28569         * tests/uninorm/test-u8-nfkc.c: New file.
28570         * tests/uninorm/test-u16-nfkc.c: New file.
28571         * tests/uninorm/test-u32-nfkc.c: New file.
28572         * tests/uninorm/test-u32-nfkc-big.sh: New file.
28573         * tests/uninorm/test-u32-nfkc-big.c: New file.
28574         * modules/uninorm/nfkc-tests: New file.
28575
28576         New module 'uninorm/nfkc'.
28577         * lib/uninorm/nfkc.c: New file.
28578         * modules/uninorm/nfkc: New file.
28579
28580         Tests for module 'uninorm/nfkd'.
28581         * tests/uninorm/test-nfkd.c: New file.
28582         * tests/uninorm/test-u8-nfkd.c: New file.
28583         * tests/uninorm/test-u16-nfkd.c: New file.
28584         * tests/uninorm/test-u32-nfkd.c: New file.
28585         * tests/uninorm/test-u32-nfkd-big.sh: New file.
28586         * tests/uninorm/test-u32-nfkd-big.c: New file.
28587         * modules/uninorm/nfkd-tests: New file.
28588
28589         New module 'uninorm/nfkd'.
28590         * lib/uninorm/nfkd.c: New file.
28591         * modules/uninorm/nfkd: New file.
28592
28593         Tests for module 'uninorm/nfc'.
28594         * tests/uninorm/test-nfc.c: New file.
28595         * tests/uninorm/test-u8-nfc.c: New file.
28596         * tests/uninorm/test-u16-nfc.c: New file.
28597         * tests/uninorm/test-u32-nfc.c: New file.
28598         * tests/uninorm/test-u32-nfc-big.sh: New file.
28599         * tests/uninorm/test-u32-nfc-big.c: New file.
28600         * modules/uninorm/nfc-tests: New file.
28601
28602         New module 'uninorm/nfc'.
28603         * lib/uninorm/nfc.c: New file.
28604         * modules/uninorm/nfc: New file.
28605
28606         Tests for module 'uninorm/nfd'.
28607         * tests/uninorm/test-nfd.c: New file.
28608         * tests/uninorm/test-u8-nfd.c: New file.
28609         * tests/uninorm/test-u16-nfd.c: New file.
28610         * tests/uninorm/test-u32-nfd.c: New file.
28611         * tests/uninorm/test-u32-nfd-big.sh: New file.
28612         * tests/uninorm/test-u32-nfd-big.c: New file.
28613         * tests/uninorm/test-u32-normalize-big.h: New file.
28614         * tests/uninorm/test-u32-normalize-big.c: New file.
28615         * tests/uninorm/NormalizationTest.txt: New file, created from
28616         Unicode 5.1.0 NormalizationTest.txt.
28617         * modules/uninorm/nfd-tests: New file.
28618
28619         New module 'uninorm/nfd'.
28620         * lib/uninorm/nfd.c: New file.
28621         * modules/uninorm/nfd: New file.
28622
28623         New module 'uninorm/u32-normalize'.
28624         * lib/uninorm/u32-normalize.c: New file.
28625         * modules/uninorm/u32-normalize: New file.
28626
28627         New module 'uninorm/u16-normalize'.
28628         * lib/uninorm/u16-normalize.c: New file.
28629         * modules/uninorm/u16-normalize: New file.
28630
28631         New module 'uninorm/u8-normalize'.
28632         * lib/uninorm/u8-normalize.c: New file.
28633         * lib/uninorm/normalize-internal.h: New file.
28634         * lib/uninorm/u-normalize-internal.h: New file.
28635         * modules/uninorm/u8-normalize: New file.
28636
28637         New module 'uninorm/decompose-internal'.
28638         * lib/uninorm/decompose-internal.c: New file.
28639         * modules/uninorm/decompose-internal: New file.
28640
28641         Tests for module 'uninorm/composition'.
28642         * tests/uninorm/test-composition.c: New file.
28643         * modules/uninorm/composition-tests: New file.
28644
28645         New module 'uninorm/composition'.
28646         * lib/uninorm/composition.c: New file.
28647         * lib/uninorm/composition-table.gperf: New file, generated by
28648         gen-uni-tables.
28649         * modules/uninorm/composition: New file.
28650
28651         Tests for module 'uninorm/compat-decomposition'.
28652         * tests/uninorm/test-compat-decomposition.c: New file.
28653         * modules/uninorm/compat-decomposition-tests: New file.
28654
28655         New module 'uninorm/compat-decomposition'.
28656         * lib/uninorm/decompose-internal.h: New file.
28657         * lib/uninorm/compat-decomposition.c: New file.
28658         * modules/uninorm/compat-decomposition: New file.
28659
28660         Tests for module 'uninorm/canonical-decomposition'.
28661         * tests/uninorm/test-canonical-decomposition.c: New file.
28662         * modules/uninorm/canonical-decomposition-tests: New file.
28663
28664         New module 'uninorm/canonical-decomposition'.
28665         * lib/uninorm/canonical-decomposition.c: New file.
28666         * modules/uninorm/canonical-decomposition: New file.
28667
28668         Tests for module 'uninorm/decomposition'.
28669         * tests/uninorm/test-decomposition.c: New file.
28670         * modules/uninorm/decomposition-tests: New file.
28671
28672         New module 'uninorm/decomposition'.
28673         * lib/uninorm/decomposition.c: New file.
28674         * modules/uninorm/decomposition: New file.
28675
28676         New module 'uninorm/decomposition-table'.
28677         * lib/uninorm/decomposition-table.h: New file.
28678         * lib/uninorm/decomposition-table.c: New file.
28679         * lib/uninorm/decomposition-table1.h: New file, generated by
28680         gen-uni-tables.
28681         * lib/uninorm/decomposition-table2.h: New file, generated by
28682         gen-uni-tables.
28683         * modules/uninorm/decomposition-table: New file.
28684
28685         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
28686         (UC_DECOMP_*): New enumeration items.
28687         (get_decomposition): New function.
28688         (struct decomp_table): New type.
28689         (output_decomposition, output_decomposition_tables): New functions.
28690         (unicode_composition_exclusions): New variable.
28691         (fill_composition_exclusions, debug_output_composition_tables): New
28692         functions.
28693         (main): Accept one more argument. Invoke fill_composition_exclusions.
28694         Output decomposition and composition tables.
28695
28696         New module 'uninorm/base'.
28697         * lib/uninorm.h: New file.
28698         * lib/unictype.h: Update comment.
28699         * modules/uninorm/base: New file.
28700
28701 2009-02-21  David Lutterkort  <lutter@redhat.com>
28702
28703         Tests for module 'safe-alloc'.
28704         * tests/test-safe-alloc.c: New file.
28705         * modules/safe-alloc-tests: New file.
28706
28707         New module 'safe-alloc'.
28708         * lib/safe-alloc.h: New file.
28709         * lib/safe-alloc.c: New file.
28710         * m4/safe-alloc.m4: New file.
28711         * modules/safe-alloc: New file.
28712         * doc/safe-alloc.texi: New file.
28713         * doc/gnulib.texi: Include it.
28714         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28715         safe-alloc.
28716
28717 2009-02-18  Bruno Haible  <bruno@clisp.org>
28718
28719         Fix link error on non-glibc systems.
28720         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
28721         variable.
28722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28723
28724 2009-02-18  Jim Meyering  <meyering@redhat.com>
28725
28726         fts: avoid used-uninitialized error due to recent change
28727         * lib/fts.c (fts_read): Guard uses of the new member,
28728         parent->fts_n_dirs_remaining, since it's not relevant for
28729         the parent of a directory specified on the command-line.
28730
28731 2009-02-17  James Youngman  <jay@gnu.org>
28732             Bruno Haible  <bruno@clisp.org>
28733
28734         * m4/include_next.m4: Reformulate comment.
28735
28736 2009-02-16  Jim Meyering  <meyering@redhat.com>
28737
28738         fts: add #if guards so that the fts_lgpl module still builds
28739         * lib/fts.c: Guard just-added hash-table-using parts with
28740         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
28741         Reported by Simon Josefsson.
28742
28743 2009-02-15  Bruno Haible  <bruno@clisp.org>
28744
28745         * modules/array-mergesort-tests: New file.
28746         * tests/test-array-mergesort.c: New file.
28747
28748         New module 'array-mergesort'.
28749         * modules/array-mergesort: New file.
28750         * lib/array-mergesort.h: New file.
28751
28752 2009-02-15  Bruno Haible  <bruno@clisp.org>
28753
28754         Fix 2009-02-07 commit.
28755         * lib/gen-uni-tables.c (output_predicate, output_category,
28756         output_combclass, output_bidi_category, output_decimal_digit,
28757         output_digit, output_numeric, output_mirror, output_scripts,
28758         output_ident_category, output_simple_mapping): Fix format directives.
28759         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
28760
28761 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
28762
28763         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
28764         fixes are available from IBM.
28765
28766 2009-02-13  Jim Meyering  <meyering@redhat.com>
28767
28768         fts: arrange not to stat non-directories in more cases
28769         This makes GNU find (when it doesn't need to stat each file)
28770         *much* more efficient at traversing reiserfs file systems.
28771         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
28772         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
28773         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
28774         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
28775         (leaf_optimization_applies): New function.
28776         (LCO_hash, LCO_compare): New helper functions.
28777         (link_count_optimize_ok): New function.
28778         (fts_stat): Initialize new member (if dir).
28779         (fts_read): Decrement parent's fts_n_dirs_remaining count if
28780         we've just stat'ed a directory.  Skip the stat call when possible.
28781         ---
28782         Note this AFS-related exchange:
28783         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
28784         and note find's pioctl call in find/fstype.c.
28785         But that is necessary only if you want to enable the
28786         optimization for AFS, and for now, I don't.
28787
28788         fts: move a function definition "up" (no semantic change)
28789         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
28790         "up" to precede upcoming use of a related function.
28791
28792 2009-02-11  Jim Meyering  <meyering@redhat.com>
28793
28794         fts: correct internal computation of nlinks (optimization-related)
28795         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
28796         whether the current entry is a directory, so don't test it.
28797
28798 2009-02-10  Bruno Haible  <bruno@clisp.org>
28799
28800         Tests for module 'uniwbrk/ulc-wordbreaks'.
28801         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
28802         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
28803         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
28804
28805         Tests for module 'uniwbrk/u32-wordbreaks'.
28806         * modules/uniwbrk/u32-wordbreaks-tests: New file.
28807         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
28808
28809         Tests for module 'uniwbrk/u16-wordbreaks'.
28810         * modules/uniwbrk/u16-wordbreaks-tests: New file.
28811         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
28812
28813         Tests for module 'uniwbrk/u8-wordbreaks'.
28814         * modules/uniwbrk/u8-wordbreaks-tests: New file.
28815         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
28816
28817 2009-02-10  Bruno Haible  <bruno@clisp.org>
28818
28819         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
28820         property.
28821         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
28822         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
28823         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
28824
28825 2009-02-10  Simon Josefsson  <simon@josefsson.org>
28826
28827         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
28828         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
28829
28830 2009-02-10  Bruno Haible  <bruno@clisp.org>
28831
28832         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
28833         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
28834         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
28835         * lib/unilbrk/u8-possible-linebreaks.c: Update.
28836         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
28837         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
28838
28839 2009-02-09  Simon Josefsson  <simon@josefsson.org>
28840
28841         * lib/sockets.h (gl_fd_to_handle): New function.
28842
28843         * tests/test-sockets.c: Call gl_fd_to_handle.
28844
28845 2009-02-09  Bruno Haible  <bruno@clisp.org>
28846
28847         * doc/havelib.texi: Document the conventions on bi-arch systems.
28848
28849 2009-02-08  Bruno Haible  <bruno@clisp.org>
28850
28851         Document the AC_LIB_LINKFLAGS macro.
28852         * doc/havelib.texi: New file, mostly written on 2005-05-24.
28853         * doc/gnulib.texi: Include it.
28854
28855 2009-02-08  Bruno Haible  <bruno@clisp.org>
28856
28857         Fix wrong order of sections, compared to TOC.
28858         * doc/gnulib.texi: Include relocatable-maint.texi after the
28859         "Regular expressions" node, not before.
28860
28861 2009-02-08  Bruno Haible  <bruno@clisp.org>
28862
28863         Tests for module 'unicase/totitle'.
28864         * modules/unicase/totitle-tests: New file.
28865
28866         Tests for module 'unicase/tolower'.
28867         * modules/unicase/tolower-tests: New file.
28868
28869         Tests for module 'unicase/toupper'.
28870         * modules/unicase/toupper-tests: New file.
28871         * tests/unicase/test-mapping-part1.h: New file.
28872         * tests/unicase/test-mapping-part2.h: New file.
28873
28874         New module 'unicase/totitle'.
28875         * modules/unicase/totitle: New file.
28876         * lib/unicase/totitle.c: New file.
28877
28878         New module 'unicase/tolower'.
28879         * modules/unicase/tolower: New file.
28880         * lib/unicase/tolower.c: New file.
28881
28882         New module 'unicase/toupper'.
28883         * modules/unicase/toupper: New file.
28884         * lib/unicase/toupper.c: New file.
28885         * lib/unicase/simple-mapping.h: New file.
28886
28887         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
28888         (mapping_table): New structure.
28889         (output_simple_mapping): New function.
28890         (main): Invoke output_simple_mapping_test and output_simple_mapping.
28891         * modules/gen-uni-tables (Description): Update.
28892         * lib/unicase/toupper.h: New file, automatically generated by
28893         gen-uni-tables.
28894         * lib/unicase/tolower.h: New file, automatically generated by
28895         gen-uni-tables.
28896         * lib/unicase/totitle.h: New file, automatically generated by
28897         gen-uni-tables.
28898         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
28899         gen-uni-tables.
28900         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
28901         gen-uni-tables.
28902         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
28903         gen-uni-tables.
28904
28905         New module 'unicase/base'.
28906         * modules/unicase/base: New file.
28907         * lib/unicase.h: New file.
28908
28909 2009-02-08  Bruno Haible  <bruno@clisp.org>
28910
28911         New module 'uniwbrk/ulc-wordbreaks'.
28912         * modules/uniwbrk/ulc-wordbreaks: New file.
28913         * lib/uniwbrk/ulc-wordbreaks.c: New file.
28914
28915         New module 'uniwbrk/u32-wordbreaks'.
28916         * modules/uniwbrk/u32-wordbreaks: New file.
28917         * lib/uniwbrk/u32-wordbreaks.c: New file.
28918
28919         New module 'uniwbrk/u16-wordbreaks'.
28920         * modules/uniwbrk/u16-wordbreaks: New file.
28921         * lib/uniwbrk/u16-wordbreaks.c: New file.
28922
28923         New module 'uniwbrk/u8-wordbreaks'.
28924         * modules/uniwbrk/u8-wordbreaks: New file.
28925         * lib/uniwbrk/u8-wordbreaks.c: New file.
28926         * lib/uniwbrk/u-wordbreaks.h: New file.
28927
28928         New module 'uniwbrk/table'.
28929         * modules/uniwbrk/table: New file.
28930         * lib/uniwbrk/wbrktable.h: New file.
28931         * lib/uniwbrk/wbrktable.c: New file.
28932
28933         New module 'uniwbrk/wordbreak-property'.
28934         * modules/uniwbrk/wordbreak-property: New file.
28935         * lib/uniwbrk/wordbreak-property.c: New file.
28936
28937         * lib/gen-uni-tables.c (WBP_*): New enum items.
28938         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
28939         (unicode_org_wbp): New variable.
28940         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
28941         New functions.
28942         (wbp_table): New structure.
28943         (output_wbp, output_wbrk_tables): New functions.
28944         (main): Accept additional argument. Invoke fill_org_wbp,
28945         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
28946         output_wbrk_tables.
28947         * modules/gen-uni-tables (Description): Update.
28948         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
28949         gen-uni-tables.
28950
28951         New module 'uniwbrk/base'.
28952         * modules/uniwbrk/base: New file.
28953         * lib/uniwbrk.h: New file.
28954
28955 2009-02-08  Bruno Haible  <bruno@clisp.org>
28956
28957         Update to Unicode 5.1.0.
28958         * lib/gen-uni-tables.c (is_property_alphabetic): Include
28959         U+2185..U+2188.
28960         (is_property_default_ignorable_code_point): Don't include characters
28961         of category Cc or Cs and not-a-characters.
28962         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
28963         U+0D79, U+109E, U+109F, U+A60C.
28964         * lib/unictype/bidi_of.h: Regenerated.
28965         * lib/unictype/blocks.h: Regenerated.
28966         * lib/unictype/categ_C.h: Regenerated.
28967         * lib/unictype/categ_Cf.h: Regenerated.
28968         * lib/unictype/categ_Cn.h: Regenerated.
28969         * lib/unictype/categ_L.h: Regenerated.
28970         * lib/unictype/categ_Ll.h: Regenerated.
28971         * lib/unictype/categ_Lm.h: Regenerated.
28972         * lib/unictype/categ_Lo.h: Regenerated.
28973         * lib/unictype/categ_Lu.h: Regenerated.
28974         * lib/unictype/categ_M.h: Regenerated.
28975         * lib/unictype/categ_Mc.h: Regenerated.
28976         * lib/unictype/categ_Me.h: Regenerated.
28977         * lib/unictype/categ_Mn.h: Regenerated.
28978         * lib/unictype/categ_N.h: Regenerated.
28979         * lib/unictype/categ_Nd.h: Regenerated.
28980         * lib/unictype/categ_Nl.h: Regenerated.
28981         * lib/unictype/categ_No.h: Regenerated.
28982         * lib/unictype/categ_P.h: Regenerated.
28983         * lib/unictype/categ_Pd.h: Regenerated.
28984         * lib/unictype/categ_Pe.h: Regenerated.
28985         * lib/unictype/categ_Pf.h: Regenerated.
28986         * lib/unictype/categ_Pi.h: Regenerated.
28987         * lib/unictype/categ_Po.h: Regenerated.
28988         * lib/unictype/categ_Ps.h: Regenerated.
28989         * lib/unictype/categ_S.h: Regenerated.
28990         * lib/unictype/categ_Sk.h: Regenerated.
28991         * lib/unictype/categ_Sm.h: Regenerated.
28992         * lib/unictype/categ_So.h: Regenerated.
28993         * lib/unictype/categ_of.h: Regenerated.
28994         * lib/unictype/combining.h: Regenerated.
28995         * lib/unictype/ctype_alnum.h: Regenerated.
28996         * lib/unictype/ctype_alpha.h: Regenerated.
28997         * lib/unictype/ctype_graph.h: Regenerated.
28998         * lib/unictype/ctype_lower.h: Regenerated.
28999         * lib/unictype/ctype_print.h: Regenerated.
29000         * lib/unictype/ctype_punct.h: Regenerated.
29001         * lib/unictype/ctype_upper.h: Regenerated.
29002         * lib/unictype/decdigit.h: Regenerated.
29003         * lib/unictype/digit.h: Regenerated.
29004         * lib/unictype/mirror.h: Regenerated.
29005         * lib/unictype/numeric.h: Regenerated.
29006         * lib/unictype/pr_alphabetic.h: Regenerated.
29007         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
29008         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
29009         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
29010         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
29011         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
29012         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
29013         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
29014         * lib/unictype/pr_combining.h: Regenerated.
29015         * lib/unictype/pr_dash.h: Regenerated.
29016         * lib/unictype/pr_decimal_digit.h: Regenerated.
29017         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
29018         * lib/unictype/pr_deprecated.h: Regenerated.
29019         * lib/unictype/pr_diacritic.h: Regenerated.
29020         * lib/unictype/pr_extender.h: Regenerated.
29021         * lib/unictype/pr_format_control.h: Regenerated.
29022         * lib/unictype/pr_grapheme_base.h: Regenerated.
29023         * lib/unictype/pr_grapheme_extend.h: Regenerated.
29024         * lib/unictype/pr_grapheme_link.h: Regenerated.
29025         * lib/unictype/pr_id_continue.h: Regenerated.
29026         * lib/unictype/pr_id_start.h: Regenerated.
29027         * lib/unictype/pr_ideographic.h: Regenerated.
29028         * lib/unictype/pr_ignorable_control.h: Regenerated.
29029         * lib/unictype/pr_lowercase.h: Regenerated.
29030         * lib/unictype/pr_math.h: Regenerated.
29031         * lib/unictype/pr_numeric.h: Regenerated.
29032         * lib/unictype/pr_other_alphabetic.h: Regenerated.
29033         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
29034         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
29035         * lib/unictype/pr_other_id_continue.h: Regenerated.
29036         * lib/unictype/pr_other_lowercase.h: Regenerated.
29037         * lib/unictype/pr_other_math.h: Regenerated.
29038         * lib/unictype/pr_punctuation.h: Regenerated.
29039         * lib/unictype/pr_sentence_terminal.h: Regenerated.
29040         * lib/unictype/pr_soft_dotted.h: Regenerated.
29041         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
29042         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
29043         * lib/unictype/pr_unified_ideograph.h: Regenerated.
29044         * lib/unictype/pr_uppercase.h: Regenerated.
29045         * lib/unictype/pr_xid_continue.h: Regenerated.
29046         * lib/unictype/pr_xid_start.h: Regenerated.
29047         * lib/unictype/pr_zero_width.h: Regenerated.
29048         * lib/unictype/scripts.h: Regenerated.
29049         * lib/unictype/scripts_byname.gperf: Regenerated.
29050         * lib/unictype/sy_java_ident.h: Regenerated.
29051         * lib/unilbrk/lbrkprop1.h: Regenerated.
29052         * lib/unilbrk/lbrkprop2.h: Regenerated.
29053         * tests/unictype/test-categ_C.c: Regenerated.
29054         * tests/unictype/test-categ_Cf.c: Regenerated.
29055         * tests/unictype/test-categ_Cn.c: Regenerated.
29056         * tests/unictype/test-categ_L.c: Regenerated.
29057         * tests/unictype/test-categ_Ll.c: Regenerated.
29058         * tests/unictype/test-categ_Lm.c: Regenerated.
29059         * tests/unictype/test-categ_Lo.c: Regenerated.
29060         * tests/unictype/test-categ_Lu.c: Regenerated.
29061         * tests/unictype/test-categ_M.c: Regenerated.
29062         * tests/unictype/test-categ_Mc.c: Regenerated.
29063         * tests/unictype/test-categ_Me.c: Regenerated.
29064         * tests/unictype/test-categ_Mn.c: Regenerated.
29065         * tests/unictype/test-categ_N.c: Regenerated.
29066         * tests/unictype/test-categ_Nd.c: Regenerated.
29067         * tests/unictype/test-categ_Nl.c: Regenerated.
29068         * tests/unictype/test-categ_No.c: Regenerated.
29069         * tests/unictype/test-categ_P.c: Regenerated.
29070         * tests/unictype/test-categ_Pd.c: Regenerated.
29071         * tests/unictype/test-categ_Pe.c: Regenerated.
29072         * tests/unictype/test-categ_Pf.c: Regenerated.
29073         * tests/unictype/test-categ_Pi.c: Regenerated.
29074         * tests/unictype/test-categ_Po.c: Regenerated.
29075         * tests/unictype/test-categ_Ps.c: Regenerated.
29076         * tests/unictype/test-categ_S.c: Regenerated.
29077         * tests/unictype/test-categ_Sk.c: Regenerated.
29078         * tests/unictype/test-categ_Sm.c: Regenerated.
29079         * tests/unictype/test-categ_So.c: Regenerated.
29080         * tests/unictype/test-ctype_alnum.c: Regenerated.
29081         * tests/unictype/test-ctype_alpha.c: Regenerated.
29082         * tests/unictype/test-ctype_graph.c: Regenerated.
29083         * tests/unictype/test-ctype_lower.c: Regenerated.
29084         * tests/unictype/test-ctype_print.c: Regenerated.
29085         * tests/unictype/test-ctype_punct.c: Regenerated.
29086         * tests/unictype/test-ctype_upper.c: Regenerated.
29087         * tests/unictype/test-decdigit.h: Regenerated.
29088         * tests/unictype/test-digit.h: Regenerated.
29089         * tests/unictype/test-numeric.h: Regenerated.
29090         * tests/unictype/test-pr_alphabetic.c: Regenerated.
29091         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
29092         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
29093         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
29094         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
29095         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
29096         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
29097         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
29098         * tests/unictype/test-pr_combining.c: Regenerated.
29099         * tests/unictype/test-pr_dash.c: Regenerated.
29100         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
29101         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
29102         * tests/unictype/test-pr_deprecated.c: Regenerated.
29103         * tests/unictype/test-pr_diacritic.c: Regenerated.
29104         * tests/unictype/test-pr_extender.c: Regenerated.
29105         * tests/unictype/test-pr_format_control.c: Regenerated.
29106         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
29107         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
29108         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
29109         * tests/unictype/test-pr_id_continue.c: Regenerated.
29110         * tests/unictype/test-pr_id_start.c: Regenerated.
29111         * tests/unictype/test-pr_ideographic.c: Regenerated.
29112         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
29113         * tests/unictype/test-pr_lowercase.c: Regenerated.
29114         * tests/unictype/test-pr_math.c: Regenerated.
29115         * tests/unictype/test-pr_numeric.c: Regenerated.
29116         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
29117         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
29118         Regenerated.
29119         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
29120         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
29121         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
29122         * tests/unictype/test-pr_other_math.c: Regenerated.
29123         * tests/unictype/test-pr_punctuation.c: Regenerated.
29124         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
29125         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
29126         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
29127         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
29128         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
29129         * tests/unictype/test-pr_uppercase.c: Regenerated.
29130         * tests/unictype/test-pr_xid_continue.c: Regenerated.
29131         * tests/unictype/test-pr_xid_start.c: Regenerated.
29132         * tests/unictype/test-pr_zero_width.c: Regenerated.
29133
29134         Update to Unicode 5.1.0.
29135         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
29136         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
29137         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
29138         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
29139         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
29140         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
29141         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
29142         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
29143         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
29144         (nonspacing_table_ind): Update.
29145         * tests/uniwidth/test-uc_width2.sh: Update expected result.
29146
29147         Update to Unicode 5.1.0.
29148         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
29149         code transform.
29150         * lib/uniname/uniname.c (unicode_character_name,
29151         unicode_name_character): Add the range 0x1Fxxx to the code transform.
29152         * lib/uniname/uninames.h: Regenerated.
29153         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
29154
29155 2009-02-07  Bruno Haible  <bruno@clisp.org>
29156
29157         Merge gen-ctype and gen-lbrk into a single program.
29158         * lib/gen-uni-tables.c: New file, incorporating
29159         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
29160         Add directory prefixes to the names of the generated files.
29161         * lib/unictype/gen-ctype.c: Remove file.
29162         * lib/unilbrk/gen-lbrk.c: Remove file.
29163         * modules/gen-uni-tables: New file.
29164         * modules/unictype/gen-ctype: Remove file.
29165         * modules/unilbrk/gen-lbrk: Remove file.
29166
29167 2009-02-07  Bruno Haible  <bruno@clisp.org>
29168
29169         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
29170
29171         New module 'unistr/u32-strcoll'.
29172         * modules/unistr/u32-strcoll: New file.
29173         * lib/unistr/u32-strcoll.c: New file.
29174
29175         New module 'unistr/u16-strcoll'.
29176         * modules/unistr/u16-strcoll: New file.
29177         * lib/unistr/u16-strcoll.c: New file.
29178
29179         New module 'unistr/u8-strcoll'.
29180         * modules/unistr/u8-strcoll: New file.
29181         * lib/unistr/u8-strcoll.c: New file.
29182         * lib/unistr/u-strcoll.h: New file.
29183
29184 2009-02-07  Bruno Haible  <bruno@clisp.org>
29185
29186         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
29187         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29188         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29189         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
29190         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
29191         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
29192
29193 2009-02-07  Bruno Haible  <bruno@clisp.org>
29194
29195         Make 64-bit clean.
29196         * lib/unictype/gen-ctype.c (output_predicate, output_category,
29197         output_combclass, output_bidi_category, output_decimal_digit,
29198         output_digit, output_numeric, output_mirror, output_scripts,
29199         output_ident_category): Use proper width specifier in format strings.
29200
29201 2009-02-07  Bruno Haible  <bruno@clisp.org>
29202
29203         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
29204         failure behaviour.
29205
29206 2009-02-07  Jim Meyering  <meyering@redhat.com>
29207
29208         regex: avoid compilation failure with upcoming gcc-4.4
29209         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
29210         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
29211         "... error: integer overflow in preprocessor expression".
29212
29213 2009-02-05  Ben Pfaff  <blp@gnu.org>
29214
29215         Fix link errors on Windows when close module is used.
29216         * modules/close: Add $(LIB_CLOSE) to Link section.
29217         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
29218         $(LIB_CLOSE) on Windows.
29219
29220 2009-02-05  Jim Meyering  <meyering@redhat.com>
29221
29222         still avoid unused-parameter warnings, but do it cleanly
29223         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
29224         (get_fs_usage): Cast to void instead.
29225         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
29226         (dev_from_mount_options, read_file_system_list): Cast to void.
29227         Prompted by Bruno Haible.
29228
29229 2009-02-04  Jim Meyering  <meyering@redhat.com>
29230
29231         fsusage.c: correct copyright year
29232         * lib/fsusage.c: Reflect year in which the change is pushed into
29233
29234         avoid misc. warnings
29235         * lib/fsusage.c (UNUSED_PARAM): Define.
29236         (get_fs_usage): Mark parameter "disk" as unused.
29237         * lib/getugroups.c (getgrent): Use "void" in prototype.
29238         * lib/mountlist.c: Mark unused parameters.
29239         (read_file_system_list): Declare a local with "const".
29240         * lib/nanosleep.c (getnow): Declare static.
29241         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
29242
29243         dirfd: set errno upon failure
29244         * lib/dirfd.c: Include <errno.h>.
29245         Set errno to ENOTSUP when returning -1.
29246         * modules/dirfd (Depends-on): Add errno.
29247         Suggested by John Kodis <kodis@comcast.net>.
29248
29249 2009-02-01  Bruno Haible  <bruno@clisp.org>
29250
29251         Don't assume sizeof (long) >= sizeof (void *).
29252         * lib/memcmp.c: Include stdint.h.
29253         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
29254         srcp2 to 'const byte *'.
29255         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
29256         types to uintptr_t.
29257         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
29258         * modules/memcmp (Depends-on): Add stdint.
29259         Reported by Ozkan Sezer <sezeroz@gmail.com>.
29260
29261 2009-01-30  Eric Blake  <ebb9@byu.net>
29262
29263         fix more require-before-expand issues
29264         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
29265         expand, AC_PROG_AWK.
29266         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
29267
29268 2009-01-28  Eric Blake  <ebb9@byu.net>
29269
29270         version-etc: use consistent URL formatting
29271         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
29272         Improve formatting.  Use fputs for string without %.
29273
29274 2009-01-28  Jim Meyering  <meyering@redhat.com>
29275
29276         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
29277         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
29278         "underquoted definition of NAME" from autoconf-2.59.
29279
29280 2009-01-28  Bruno Haible  <bruno@clisp.org>
29281
29282         * doc/gnulib.texi: Add "Obsolete modules" to index.
29283
29284 2009-01-28  Jim Meyering  <meyering@redhat.com>
29285
29286         useless-if-before-free: recognize more variants
29287         * build-aux/useless-if-before-free: Also recognize e.g.,
29288         if (NULL != p) free (p);
29289
29290 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
29291
29292         test-getaddrinfo: skip (don't fail) this test when there's no network
29293         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
29294         on the presumption that it means you lack network access.
29295
29296 2009-01-26  Jim Meyering  <meyering@redhat.com>
29297
29298         fflush: avoid warnings on modern systems
29299         * lib/fflush.c (rpl_fflush): Move declarations of locals,
29300         pos and result, into scopes where they're used.
29301
29302 2009-01-26  Eric Blake  <ebb9@byu.net>
29303
29304         Silence warning reintroduced by recent extensions patch.
29305         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
29306         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
29307         autoconf.
29308
29309         Backport improved autoconf semantics of AC_DEFUN_ONCE.
29310         * m4/00gnulib.m4: New file.
29311         * gnulib-tool (func_get_filelist): Always use it.
29312         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
29313         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
29314
29315 2009-01-25  Bruno Haible  <bruno@clisp.org>
29316
29317         Make test-quotearg work on MacOS X and AIX.
29318         * tests/test-quotearg.sh: New file.
29319         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
29320         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
29321         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
29322         include <libintl.h>.
29323         (fake_locale): Remove variable.
29324         (gettext, dgettext, dcgettext): Remove functions.
29325         (main): Instead of setting a fake locale, set a real locale. Call
29326         textdomain and bindtextdomain.
29327         * modules/quotearg-tests (Files): Add the new files.
29328         (Depends-on): Add gettext, setenv, unsetenv.
29329         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
29330         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
29331         Augment TESTS_ENVIRONMENT.
29332
29333 2009-01-25  Bruno Haible  <bruno@clisp.org>
29334
29335         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
29336         fr_FR.ISO8859-1 locale on MacOS X.
29337         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
29338         ja_JP.eucJP locale on MacOS X.
29339         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
29340         zh_CN.GB18030 locale on MacOS X.
29341
29342 2009-01-25  Bruno Haible  <bruno@clisp.org>
29343
29344         Avoid link errors on MacOS X 10.3.
29345         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
29346         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29347
29348 2009-01-25  Bruno Haible  <bruno@clisp.org>
29349
29350         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29351         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
29352         * modules/pipe (Files): Remove m4/posix_spawn.m4.
29353         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29354         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
29355         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29356         posix_spawnattr_init, posix_spawnattr_setsigmask,
29357         posix_spawnattr_setflags, posix_spawnattr_destroy.
29358
29359         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29360         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
29361         * modules/execute (Files): Remove m4/posix_spawn.m4.
29362         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29363         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29364         posix_spawnattr_init, posix_spawnattr_setsigmask,
29365         posix_spawnattr_setflags, posix_spawnattr_destroy.
29366
29367 2009-01-25  Bruno Haible  <bruno@clisp.org>
29368
29369         * lib/glthread/threadlib.c: Include <stdlib.h>.
29370
29371 2009-01-25  Bruno Haible  <bruno@clisp.org>
29372
29373         * lib/glthread/threadlib.c (dummy): New declaration.
29374
29375 2009-01-25  Bruno Haible  <bruno@clisp.org>
29376
29377         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
29378         multibyte characters also for the GB18030 encoding. Don't crash when
29379         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
29380
29381 2009-01-25  Bruno Haible  <bruno@clisp.org>
29382
29383         Avoid redefining 'struct random_data' on OSF/1 5.1.
29384         * lib/stdlib.in.h: Include <random.h> if it exists.
29385         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
29386         HAVE_RANDOM_H. Include <random.h> when testing whether
29387         'struct random_data' exists.
29388         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
29389
29390 2009-01-25  Bruno Haible  <bruno@clisp.org>
29391
29392         Don't install charset.alias on MacOS X >= 10.3.
29393         * lib/localcharset.c (DARWIN7): New macro.
29394         (get_charset_aliases): Hardcode the result for Darwin7.
29395         * modules/localcharset (install-exec-local): Don't install
29396         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
29397
29398 2009-01-25  Bruno Haible  <bruno@clisp.org>
29399
29400         Don't install charset.alias on mingw and Cygwin.
29401         * modules/localcharset (install-exec-local): Don't install
29402         charset.alias on mingw and Cygwin, if the file does not yet exist.
29403         The result for these platforms is hardcoded in localcharset.c.
29404
29405 2009-01-25  Bruno Haible  <bruno@clisp.org>
29406
29407         Make it possible again to use AC_GNU_SOURCE together with gnulib.
29408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
29409         before requiring AC_USE_SYSTEM_EXTENSIONS.
29410
29411 2009-01-25  Jim Meyering  <meyering@redhat.com>
29412
29413         c-strtod: avoid warnings
29414         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
29415         "assignment discards qualifiers from pointer target type" warnings.
29416
29417 2009-01-24  Bruno Haible  <bruno@clisp.org>
29418
29419         Add support for non-UTF-8 locales on MacOS X.
29420         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
29421         canonical encodings. For Darwin 7 and newer, don't map traditional
29422         encodings to UTF-8.
29423         Reported by Vincent Lefevre <vincent@vinc17.org>
29424         at <http://savannah.gnu.org/bugs/?25235>.
29425
29426 2009-01-24  Bruno Haible  <bruno@clisp.org>
29427
29428         * doc/gnulib.texi (Obsolete modules): New section.
29429         Reported by Mike Frysinger <vapier@gentoo.org>.
29430
29431 2009-01-24  Bruno Haible  <bruno@clisp.org>
29432
29433         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
29434         (%.dvi): New rule.
29435
29436 2009-01-24  Bruno Haible  <bruno@clisp.org>
29437
29438         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
29439         Reported by Eric Blake.
29440
29441 2009-01-24  Bruno Haible  <bruno@clisp.org>
29442
29443         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
29444         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
29445         Reported by Gary V. Vaughan <gary@gnu.org>.
29446
29447 2009-01-24  Bruno Haible  <bruno@clisp.org>
29448
29449         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
29450
29451 2009-01-23  Bruno Haible  <bruno@clisp.org>
29452
29453         Make c-strtod, c-strtold usable in libraries.
29454         * lib/c-strtod.c: Include string.h instead of xalloc.h.
29455         (C_STRTOD): Call strdup instead of xstrdup.
29456         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
29457         * modules/c-strtold (Depends-on): Likewise.
29458         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
29459         * NEWS: Mention the change.
29460         Reported by Michael Gold <mgold@ncf.ca>.
29461
29462 2009-01-23  Jim Meyering  <meyering@redhat.com>
29463
29464         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
29465         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
29466         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
29467
29468 2009-01-23  Simon Josefsson  <simon@josefsson.org>
29469
29470         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
29471         GNU CoreUtils.
29472         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
29473         * modules/version-etc (Description): Update.
29474
29475 2009-01-22  Bruno Haible  <bruno@clisp.org>
29476
29477         Cache the C locale object.
29478         * lib/c-strtod.c (c_locale_cache): New variable.
29479         (c_locale): New function.
29480         (C_STRTOD): Use it, and don't call freelocale.
29481         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
29482         Suggested by Paolo Bonzini.
29483
29484 2009-01-21  Bruno Haible  <bruno@clisp.org>
29485
29486         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
29487         conditions other than overflow.
29488
29489 2009-01-21  Bruno Haible  <bruno@clisp.org>
29490
29491         * lib/c-strtod.c: Include errno.h.
29492         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
29493         value from STRTOD_L and STRTOD.
29494
29495 2009-01-21  Bruno Haible  <bruno@clisp.org>
29496         and Jim Meyering  <meyering@redhat.com>
29497
29498         nanosleep: skip configure test (fail it) for apple universal builds
29499         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
29500         universal builds, assume that nanosleep does not work.
29501         * modules/nanosleep (Depends-on): Add multiarch.
29502
29503         mktime: skip configure test (fail it) for apple universal builds
29504         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
29505         universal builds, assume that mktime does not work.
29506         * modules/mktime (Depends-on): Add multiarch.
29507
29508 2009-01-21  Eric Blake  <ebb9@byu.net>
29509
29510         multiarch: avoid expand-before-require warning
29511         * modules/multiarch (configure.ac): Require, rather than expand,
29512         gl_MULTIARCH.
29513         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
29514         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
29515         enforce that all clients require it.  Partial reversion of
29516         2008-12-29 patch.
29517
29518         error: avoid expand-before-require warning
29519         * modules/errno (configure.ac): Require, rather than expand,
29520         gl_HEADER_ERRNO_H.
29521         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
29522         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
29523         enforce that all clients require it.
29524
29525         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
29526         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
29527         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
29528         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
29529
29530 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
29531
29532         Revert:
29533         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29534
29535         regex: do not depend on obsolete modules.
29536         * modules/regex: Remove memcmp and memmove.
29537
29538 2009-01-20  Bruno Haible  <bruno@clisp.org>
29539
29540         Make the 'link' module link on Windows NT 4.
29541         * lib/link.c (_WIN32_WINNT): Don't define.
29542         (CreateHardLinkFuncType): New type.
29543         (CreateHardLinkFunc, initialized): New variables.
29544         (initialize): New function.
29545         (link): Invoke CreateHardLink indirectly through the function pointer.
29546
29547 2009-01-20  Bruno Haible  <bruno@clisp.org>
29548
29549         Fix compilation failure on mingw.
29550         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
29551
29552 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
29553
29554         * doc/c-strtod.texi: Mention a couple of restrictions.
29555
29556 2009-01-20  Jim Meyering  <meyering@redhat.com>
29557
29558         gettimeofday: move more declarations out of functions
29559         * lib/gettimeofday.c: Move extern declarations of tzset and
29560         gmtime out of containing functions.  Prompted by Bruno Haible.
29561
29562 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29563
29564         regex: do not depend on obsolete modules.
29565         * modules/regex: Remove memcmp and memmove.
29566
29567 2009-01-19  Bruno Haible  <bruno@clisp.org>
29568
29569         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29570         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
29571         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29572         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
29573         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
29574
29575 2009-01-19  Bruno Haible  <bruno@clisp.org>
29576
29577         * tests/test-link.c: Include <errno.h>.
29578         (main): Exit with code 77 when a hard link cannot be created due to
29579         the file system.
29580         * tests/test-link.sh: Skip test when a hard link cannot be created due
29581         to the file system.
29582         Suggested by Eric Blake.
29583
29584 2009-01-19  Martin Lambers  <marlam@marlam.de>
29585
29586         * modules/link-tests: New file.
29587         * tests/test-link.sh: New file.
29588         * tests/test-link.c: New file.
29589
29590 2009-01-19  Eric Blake  <ebb9@byu.net>
29591
29592         doc: mention another function added in cygwin 1.7.0
29593         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
29594         Another new function in cygwin 1.7.
29595
29596 2009-01-19  Bruno Haible  <bruno@clisp.org>
29597
29598         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29599         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
29600         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
29601         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29602         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29603         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
29604         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29605         * m4/md4.m4 (gl_MD4): Likewise.
29606         * m4/md5.m4 (gl_MD5): Likewise.
29607         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
29608         * m4/sha1.m4 (gl_SHA1): Likewise.
29609         * m4/sha256.m4 (gl_SHA256): Likewise.
29610         * m4/sha512.m4 (gl_SHA512): Likewise.
29611
29612 2009-01-19  Bruno Haible  <bruno@clisp.org>
29613
29614         * modules/uniname/uniname-tests (Depends-on): Add progname.
29615         * tests/uniname/test-uninames.c: Include progname.h.
29616         (main): Call set_program_name.
29617
29618         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
29619         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
29620         (main): Call set_program_name.
29621
29622         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
29623         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
29624         (main): Call set_program_name.
29625
29626         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
29627         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
29628         (main): Call set_program_name.
29629
29630         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
29631         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
29632         (main): Call set_program_name.
29633
29634         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
29635         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
29636         (main): Call set_program_name.
29637
29638         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
29639         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
29640         (main): Call set_program_name.
29641
29642         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
29643         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
29644         (main): Call set_program_name.
29645
29646         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
29647         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
29648         (main): Call set_program_name.
29649
29650 2009-01-19  Eric Blake  <ebb9@byu.net>
29651
29652         test-unistd: test previous patch
29653         * tests/test-unistd.c: Test *_FILENO macros.
29654
29655         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
29656         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29657         Guarantee a definition.
29658         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
29659         * modules/unistd-safer (Depends-on): Add dependency on unistd.
29660         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
29661         * lib/dup-safer.c (STDERR_FILENO): Likewise.
29662         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29663         Likewise.
29664         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
29665         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
29666         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29667         Likewise.
29668         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
29669         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
29670         (STDERR_FILENO): Likewise.
29671         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
29672         (STDERR_FILENO): Likewise.
29673         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
29674         (STDERR_FILENO): Likewise.
29675         Reported by Elbert Pol.
29676
29677 2009-01-19  Eric Blake  <ebb9@byu.net>
29678
29679         doc: mention more functions added in cygwin 1.7.0
29680         * doc/posix-functions/abort.texi (abort): Update wording related
29681         to cygwin.
29682         * doc/posix-functions/daylight.texi (daylight): Likewise.
29683         * doc/posix-functions/optarg.texi (optarg): Likewise.
29684         * doc/posix-functions/optarg.texi (opterr): Likewise.
29685         * doc/posix-functions/optarg.texi (optind): Likewise.
29686         * doc/posix-functions/optarg.texi (optopt): Likewise.
29687         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
29688         worked in 1.5.x, and was withdrawn in 1.7.
29689         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
29690         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
29691         cygwin versions.
29692         * doc/posix-functions/perror.texi (perror): Likewise.
29693         * doc/posix-functions/printf.texi (printf): Likewise.
29694         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
29695         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
29696         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
29697         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
29698         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
29699         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
29700         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
29701         Likewise.
29702         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
29703         Likewise.
29704         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
29705         this function.
29706         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
29707         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
29708         Likewise.
29709         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
29710         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
29711         * doc/posix-functions/confstr.texi (confstr): Likewise.
29712         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
29713         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
29714         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
29715         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
29716         * doc/posix-functions/fputws.texi (fputws): Likewise.
29717         * doc/posix-functions/fwide.texi (fwide): Likewise.
29718         * doc/posix-functions/getwc.texi (getwc): Likewise.
29719         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
29720         * doc/posix-functions/putwc.texi (putwc): Likewise.
29721         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
29722         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
29723         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
29724         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
29725         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
29726         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
29727         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
29728         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
29729         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
29730         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
29731         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
29732
29733 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29734
29735         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
29736         * lib/ioctl.c: Include <sys/ioctl.h>.
29737
29738 2009-01-19  Simon Josefsson  <simon@josefsson.org>
29739
29740         * modules/getdate-tests (Depends-on): Add progname.
29741         * tests/test-getdate.c: Use progname module, to avoid link errors
29742         on non-glibc systems.
29743
29744 2009-01-18  Simon Josefsson  <simon@josefsson.org>
29745
29746         * modules/filenamecat-tests (Depends-on): Add progname.
29747         * modules/fstrcmp-tests (Depends-on): Likewise.
29748
29749         * tests/test-filenamecat.c: Use progname module, to avoid link
29750         errors on non-glibc systems.
29751         * tests/test-fstrcmp.c: Likewise.
29752
29753 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29754
29755         gettimeofday: avoid warning: nested extern declaration of 'localtime'
29756         * lib/gettimeofday.c: Move extern declaration out of function.
29757
29758 2009-01-18  Bruno Haible  <bruno@clisp.org>
29759
29760         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
29761         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
29762         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
29763
29764 2009-01-18  Bruno Haible  <bruno@clisp.org>
29765
29766         * lib/strftime.c (MEMPCPY): Remove unused macro.
29767         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
29768
29769 2009-01-18  Martin Lambers  <marlam@marlam.de>
29770
29771         New module 'link'.
29772         * lib/unistd.in.h (link): New declaration.
29773         * lib/link.c: New file.
29774         * m4/link.m4: New file.
29775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
29776         HAVE_LINK.
29777         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
29778         * modules/link: New file.
29779         * doc/posix-functions/link.texi: Mention the new module.
29780
29781 2009-01-18  Bruno Haible  <bruno@clisp.org>
29782
29783         * tests/test-avltree_list.c (main): Call set_program_name.
29784         * tests/test-avltree_oset.c (main): Likewise.
29785         * tests/test-obstack-printf.c: Include progname.h.
29786         (main): Call set_program_name.
29787         * tests/test-quotearg.c: Include progname.h.
29788         (main): Call set_program_name.
29789         * tests/test-xmemdup0.c: Include progname.h.
29790         (main): Call set_program_name.
29791
29792 2009-01-18  Bruno Haible  <bruno@clisp.org>
29793
29794         New module 'alphasort'.
29795         * lib/dirent.in.h (alphasort): New declaration.
29796         * lib/alphasort.c: New file, from glibc with modifications.
29797         * m4/alphasort.m4: New file.
29798         * modules/alphasort: New file.
29799         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
29800         HAVE_ALPHASORT.
29801         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
29802         HAVE_ALPHASORT.
29803         * doc/posix-functions/alphasort.texi: Mention the new module and the
29804         portability problems.
29805
29806 2009-01-18  Bruno Haible  <bruno@clisp.org>
29807
29808         New module 'scandir'.
29809         * lib/dirent.in.h (scandir): New declaration.
29810         * lib/scandir.c: New file, from glibc with modifications.
29811         * m4/scandir.m4: New file.
29812         * modules/scandir: New file.
29813         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
29814         HAVE_SCANDIR.
29815         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
29816         HAVE_SCANDIR.
29817         * doc/posix-functions/scandir.texi: Mention the new module and the
29818         portability problems.
29819
29820 2009-01-17  Bruno Haible  <bruno@clisp.org>
29821
29822         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
29823         Update documentation.
29824         (func_remove_suffix): Escape all dots in the suffix. Update
29825         documentation.
29826         (func_filter_filelist): Update documentation.
29827         Reported by Ralf Wildenhues.
29828
29829 2009-01-17  Bruno Haible  <bruno@clisp.org>
29830
29831         * modules/dprintf-posix-tests: New file.
29832         * tests/test-dprintf-posix.sh: New file.
29833         * tests/test-dprintf-posix.c: New file.
29834
29835         New modules 'dprintf', 'dprintf-posix'.
29836         * lib/stdio.in.h (dprintf): New declaration.
29837         * lib/dprintf.c: New file.
29838         * m4/dprintf.m4: New file.
29839         * m4/dprintf-posix.m4: New file.
29840         * modules/dprintf: New file.
29841         * modules/dprintf-posix: New file.
29842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
29843         HAVE_DPRINTF, REPLACE_DPRINTF.
29844         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
29845         HAVE_DPRINTF, REPLACE_DPRINTF.
29846         * doc/posix-functions/dprintf.texi: Mention the new modules.
29847
29848 2009-01-17  Bruno Haible  <bruno@clisp.org>
29849
29850         * modules/vdprintf-posix-tests: New file.
29851         * tests/test-vdprintf-posix.sh: New file.
29852         * tests/test-vdprintf-posix.c: New file.
29853
29854         New modules 'vdprintf', 'vdprintf-posix'.
29855         * lib/stdio.in.h (vdprintf): New declaration.
29856         * lib/vdprintf.c: New file.
29857         * m4/vdprintf.m4: New file.
29858         * m4/vdprintf-posix.m4: New file.
29859         * modules/vdprintf: New file.
29860         * modules/vdprintf-posix: New file.
29861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
29862         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29863         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
29864         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29865         * doc/posix-functions/vdprintf.texi: Mention the new modules.
29866
29867 2009-01-17  Bruno Haible  <bruno@clisp.org>
29868
29869         Fix replacement of fopen on mingw.
29870         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
29871         mingw.
29872
29873 2009-01-17  Bruno Haible  <bruno@clisp.org>
29874
29875         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
29876         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
29877
29878 2009-01-17  Bruno Haible  <bruno@clisp.org>
29879
29880         Avoid test-fflush2.sh failure on mingw.
29881         * tests/test-fflush2.c: Include binary-io.h.
29882         (main): Put standard input into binary mode.
29883         * modules/fflush-tests (Depends-on): Add binary-io.
29884
29885 2009-01-17  Bruno Haible  <bruno@clisp.org>
29886
29887         * lib/wchar.in.h: In another particular situation, include only the
29888         system's <wchar.h> file.
29889         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
29890         Reported by Albert Chin-A-Young <china@thewrittenword.com>
29891         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
29892
29893 2009-01-17  Bruno Haible  <bruno@clisp.org>
29894
29895         Support for stripping executables in --enable-relocatable.
29896         * build-aux/install-reloc: Expect one more argument, or an environment
29897         variable RELOC_STRIP_PROG. If set, strip the destination program and
29898         its wrapper.
29899         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
29900         RELOC_STRIP_PROG.
29901         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
29902         to set RELOCATABLE_STRIP.
29903         * NEWS: Mention the new Makefile requirement.
29904
29905 2009-01-17  Bruno Haible  <bruno@clisp.org>
29906
29907         * build-aux/install-reloc: Remove debugging information left over by
29908         C compiler on MacOS X.
29909
29910 2009-01-17  Bruno Haible  <bruno@clisp.org>
29911
29912         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
29913         * lib/progreloc.c (find_executable): Fix type of pointer passed to
29914         _NSGetExecutablePath.
29915
29916 2009-01-16  Jim Meyering  <meyering@redhat.com>
29917
29918         strerror: avoid warnings about discarding "const"
29919         * lib/strerror.c (rpl_strerror): Instead of returning a const
29920         string from each and every "case", use a variable, and add a single
29921         cast after the switch.
29922
29923 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
29924
29925         * lib/arpa_inet.in.h: Add extern "C" block for C++.
29926
29927 2009-01-16  Bruno Haible  <bruno@clisp.org>
29928
29929         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
29930         array initializer syntax that also works in C++ mode.
29931         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29932
29933 2009-01-16  Jim Meyering  <meyering@redhat.com>
29934
29935         poll: suppress a warning
29936         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
29937         to ignore "...unsigned expression < 0 is always false" warnings.
29938
29939 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
29940
29941         poll: remove declarations of unused variables
29942         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
29943         sockbuf and optlen.
29944
29945 2009-01-15  Bruno Haible  <bruno@clisp.org>
29946
29947         Make fflush-after-ungetc POSIX compliant on BSD systems.
29948         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
29949         (clear_ungetc_buffer): Implement also for other systems.
29950         (rpl_fflush): On glibc systems, invoke
29951         clear_ungetc_buffer_preserving_position. Otherwise, invoke
29952         clear_ungetc_buffer after fetching the stream's position, not before.
29953
29954 2009-01-15  Bruno Haible  <bruno@clisp.org>
29955
29956         Make fflush-after-ungetc POSIX compliant on glibc systems.
29957         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
29958         after ungetc.
29959         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
29960         (rpl_fflush): On glibc systems, simply call the system's fflush
29961         function after clearing the ungetc buffer.
29962         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
29963         Instead, lseek only to the end of file, then use the system's fseeko
29964         for the rest. On glibc systems, reset the EOF indicator bit.
29965
29966 2009-01-15  Jim Meyering  <meyering@redhat.com>
29967
29968         openmp.m4: revert quote-adding change, for portability to older autoconf
29969         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
29970         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
29971         Simon Josefsson noticed the problem when using autoconf-2.61.
29972
29973 2009-01-15  Bruno Haible  <bruno@clisp.org>
29974
29975         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
29976         * tests/test-fflush2.c (ASSERT): Always fail.
29977         (main): Add two tests for fflush() after ungetc(), taking into account
29978         the Austin Group's clarification.
29979         Suggested by Eric Blake.
29980
29981 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
29982
29983         mktime.m4: remove K&R-style function prototypes
29984         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
29985         for the Sun C++ compiler.
29986
29987 2009-01-14  Bruno Haible  <bruno@clisp.org>
29988
29989         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
29990         while including <wchar.h>.
29991         * lib/wchar.in.h: In two particular situations on HP-UX, include only
29992         the system's <wchar.h> file.
29993         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29994
29995 2009-01-14  Bruno Haible  <bruno@clisp.org>
29996
29997         * m4/csharp.m4: Don't mention gettext on the serial number line.
29998         * m4/csharpexec.m4: Likewise.
29999         * m4/eaccess.m4: Likewise.
30000         * m4/javaexec.m4: Likewise.
30001         * m4/sig_atomic_t.m4: Likewise.
30002         * m4/tmpdir.m4: Likewise.
30003         * m4/intldir.m4: Bump gettext version.
30004         * m4/lib-ld.m4: Likewise.
30005
30006 2009-01-14  Bruno Haible  <bruno@clisp.org>
30007
30008         * lib/progname.c (set_program_name): Add more comments.
30009         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30010
30011 2009-01-14  Simon Josefsson  <simon@josefsson.org>
30012
30013         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
30014         were sys/stat.h does not define it.
30015
30016 2009-01-14  Jim Meyering  <meyering@redhat.com>
30017
30018         many *.m4 files: improve m4 quoting
30019         99% of this change was performed by running the following commands:
30020         git ls-files | grep '\.m4$' | xargs perl -pi \
30021           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
30022           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30023           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30024           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
30025         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
30026         The remainder were to add Copyright dates, increment serial numbers,
30027         undo some changes in comments, exclude m4/intl.m4, and add quotes
30028         around the "1" in ",1" where the unusual spacing prohibited the
30029         above regexps from doing the job.  For more details, see
30030         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
30031         * m4/acl.m4: Modified.
30032         * m4/afs.m4: Likewise.
30033         * m4/alloca.m4: Likewise.
30034         * m4/argp.m4: Likewise.
30035         * m4/argz.m4: Likewise.
30036         * m4/atexit.m4: Likewise.
30037         * m4/bison-i18n.m4: Likewise.
30038         * m4/bison.m4: Likewise.
30039         * m4/byteswap.m4: Likewise.
30040         * m4/c-stack.m4: Likewise.
30041         * m4/c-strtod.m4: Likewise.
30042         * m4/calloc.m4: Likewise.
30043         * m4/canonicalize-lgpl.m4: Likewise.
30044         * m4/chown.m4: Likewise.
30045         * m4/clock_time.m4: Likewise.
30046         * m4/codeset.m4: Likewise.
30047         * m4/copy-file.m4: Likewise.
30048         * m4/csharp.m4: Likewise.
30049         * m4/csharpcomp.m4: Likewise.
30050         * m4/csharpexec.m4: Likewise.
30051         * m4/d-ino.m4: Likewise.
30052         * m4/d-type.m4: Likewise.
30053         * m4/dirfd.m4: Likewise.
30054         * m4/double-slash-root.m4: Likewise.
30055         * m4/eaccess.m4: Likewise.
30056         * m4/eealloc.m4: Likewise.
30057         * m4/environ.m4: Likewise.
30058         * m4/errno_h.m4: Likewise.
30059         * m4/euidaccess.m4: Likewise.
30060         * m4/execute.m4: Likewise.
30061         * m4/fatal-signal.m4: Likewise.
30062         * m4/fchdir.m4: Likewise.
30063         * m4/fcntl_h.m4: Likewise.
30064         * m4/fileblocks.m4: Likewise.
30065         * m4/filenamecat.m4: Likewise.
30066         * m4/findprog.m4: Likewise.
30067         * m4/flexmember.m4: Likewise.
30068         * m4/fnmatch.m4: Likewise.
30069         * m4/fopen.m4: Likewise.
30070         * m4/fpending.m4: Likewise.
30071         * m4/fprintf-posix.m4: Likewise.
30072         * m4/free.m4: Likewise.
30073         * m4/frexp.m4: Likewise.
30074         * m4/frexpl.m4: Likewise.
30075         * m4/fsusage.m4: Likewise.
30076         * m4/ftruncate.m4: Likewise.
30077         * m4/gc-camellia.m4: Likewise.
30078         * m4/gc-random.m4: Likewise.
30079         * m4/gc.m4: Likewise.
30080         * m4/getaddrinfo.m4: Likewise.
30081         * m4/getcwd-abort-bug.m4: Likewise.
30082         * m4/getcwd-path-max.m4: Likewise.
30083         * m4/getdate.m4: Likewise.
30084         * m4/getdomainname.m4: Likewise.
30085         * m4/getgroups.m4: Likewise.
30086         * m4/gethostname.m4: Likewise.
30087         * m4/gethrxtime.m4: Likewise.
30088         * m4/getline.m4: Likewise.
30089         * m4/getloadavg.m4: Likewise.
30090         * m4/getndelim2.m4: Likewise.
30091         * m4/getpass.m4: Likewise.
30092         * m4/gettext.m4: Likewise.
30093         * m4/gettime.m4: Likewise.
30094         * m4/gettimeofday.m4: Likewise.
30095         * m4/gnulib-common.m4: Likewise.
30096         * m4/group-member.m4: Likewise.
30097         * m4/host-os.m4: Likewise.
30098         * m4/iconv.m4: Likewise.
30099         * m4/iconv_open.m4: Likewise.
30100         * m4/inet_ntop.m4: Likewise.
30101         * m4/inet_pton.m4: Likewise.
30102         * m4/inline.m4: Likewise.
30103         * m4/intldir.m4: Likewise.
30104         * m4/intlmacosx.m4: Likewise.
30105         * m4/intmax.m4: Likewise.
30106         * m4/intmax_t.m4: Likewise.
30107         * m4/inttypes.m4: Likewise.
30108         * m4/inttypes_h.m4: Likewise.
30109         * m4/inttypes-pri.m4: Likewise.
30110         * m4/isapipe.m4: Likewise.
30111         * m4/isnand.m4: Likewise.
30112         * m4/isnanf.m4: Likewise.
30113         * m4/isnanl.m4: Likewise.
30114         * m4/javacomp.m4: Likewise.
30115         * m4/javaexec.m4: Likewise.
30116         * m4/jm-winsz1.m4: Likewise.
30117         * m4/jm-winsz2.m4: Likewise.
30118         * m4/lchown.m4: Likewise.
30119         * m4/lcmessage.m4: Likewise.
30120         * m4/ldexpl.m4: Likewise.
30121         * m4/lib-ld.m4: Likewise.
30122         * m4/lib-link.m4: Likewise.
30123         * m4/libsigsegv.m4: Likewise.
30124         * m4/link-follow.m4: Likewise.
30125         * m4/localcharset.m4: Likewise.
30126         * m4/locale-fr.m4: Likewise.
30127         * m4/locale-ja.m4: Likewise.
30128         * m4/locale-tr.m4: Likewise.
30129         * m4/locale-zh.m4: Likewise.
30130         * m4/lock.m4: Likewise.
30131         * m4/longlong.m4: Likewise.
30132         * m4/ls-mntd-fs.m4: Likewise.
30133         * m4/lstat.m4: Likewise.
30134         * m4/malloc.m4: Likewise.
30135         * m4/mathl.m4: Likewise.
30136         * m4/mbrtowc.m4: Likewise.
30137         * m4/mbstate_t.m4: Likewise.
30138         * m4/mbswidth.m4: Likewise.
30139         * m4/memchr.m4: Likewise.
30140         * m4/memcmp.m4: Likewise.
30141         * m4/memcpy.m4: Likewise.
30142         * m4/memmem.m4: Likewise.
30143         * m4/memmove.m4: Likewise.
30144         * m4/mempcpy.m4: Likewise.
30145         * m4/memrchr.m4: Likewise.
30146         * m4/memset.m4: Likewise.
30147         * m4/minmax.m4: Likewise.
30148         * m4/mkdir-slash.m4: Likewise.
30149         * m4/mkdtemp.m4: Likewise.
30150         * m4/mktime.m4: Likewise.
30151         * m4/mmap-anon.m4: Likewise.
30152         * m4/mountlist.m4: Likewise.
30153         * m4/nanosleep.m4: Likewise.
30154         * m4/nls.m4: Likewise.
30155         * m4/nocrash.m4: Likewise.
30156         * m4/open.m4: Likewise.
30157         * m4/openat.m4: Likewise.
30158         * m4/openmp.m4: Likewise.
30159         * m4/pathmax.m4: Likewise.
30160         * m4/perl.m4: Likewise.
30161         * m4/physmem.m4: Likewise.
30162         * m4/pipe.m4: Likewise.
30163         * m4/po.m4: Likewise.
30164         * m4/poll.m4: Likewise.
30165         * m4/posixtm.m4: Likewise.
30166         * m4/posixver.m4: Likewise.
30167         * m4/printf-frexp.m4: Likewise.
30168         * m4/printf-frexpl.m4: Likewise.
30169         * m4/printf-posix.m4: Likewise.
30170         * m4/printf-posix-rpl.m4: Likewise.
30171         * m4/printf.m4: Likewise.
30172         * m4/progtest.m4: Likewise.
30173         * m4/putenv.m4: Likewise.
30174         * m4/readline.m4: Likewise.
30175         * m4/readlink.m4: Likewise.
30176         * m4/readutmp.m4: Likewise.
30177         * m4/realloc.m4: Likewise.
30178         * m4/regex.m4: Likewise.
30179         * m4/relocatable.m4: Likewise.
30180         * m4/relocatable-lib.m4: Likewise.
30181         * m4/rename-dest-slash.m4: Likewise.
30182         * m4/rename.m4: Likewise.
30183         * m4/rmdir-errno.m4: Likewise.
30184         * m4/rmdir.m4: Likewise.
30185         * m4/roundf.m4: Likewise.
30186         * m4/roundl.m4: Likewise.
30187         * m4/rpmatch.m4: Likewise.
30188         * m4/save-cwd.m4: Likewise.
30189         * m4/selinux-selinux-h.m4: Likewise.
30190         * m4/setenv.m4: Likewise.
30191         * m4/settime.m4: Likewise.
30192         * m4/sig2str.m4: Likewise.
30193         * m4/sig_atomic_t.m4: Likewise.
30194         * m4/signalblocking.m4: Likewise.
30195         * m4/signbit.m4: Likewise.
30196         * m4/sigpipe.m4: Likewise.
30197         * m4/sockets.m4: Likewise.
30198         * m4/sockpfaf.m4: Likewise.
30199         * m4/st_dm_mode.m4: Likewise.
30200         * m4/stat-time.m4: Likewise.
30201         * m4/stdbool.m4: Likewise.
30202         * m4/stdint.m4: Likewise.
30203         * m4/stdint_h.m4: Likewise.
30204         * m4/stpcpy.m4: Likewise.
30205         * m4/stpncpy.m4: Likewise.
30206         * m4/strcase.m4: Likewise.
30207         * m4/strchrnul.m4: Likewise.
30208         * m4/strcspn.m4: Likewise.
30209         * m4/strdup.m4: Likewise.
30210         * m4/strftime.m4: Likewise.
30211         * m4/strndup.m4: Likewise.
30212         * m4/strnlen.m4: Likewise.
30213         * m4/strpbrk.m4: Likewise.
30214         * m4/strptime.m4: Likewise.
30215         * m4/strsep.m4: Likewise.
30216         * m4/strtod.m4: Likewise.
30217         * m4/strtoimax.m4: Likewise.
30218         * m4/strtok_r.m4: Likewise.
30219         * m4/strtol.m4: Likewise.
30220         * m4/strtoll.m4: Likewise.
30221         * m4/strtoul.m4: Likewise.
30222         * m4/strtoull.m4: Likewise.
30223         * m4/strtoumax.m4: Likewise.
30224         * m4/strverscmp.m4: Likewise.
30225         * m4/threadlib.m4: Likewise.
30226         * m4/timegm.m4: Likewise.
30227         * m4/tm_gmtoff.m4: Likewise.
30228         * m4/tmpdir.m4: Likewise.
30229         * m4/tmpfile.m4: Likewise.
30230         * m4/tzset.m4: Likewise.
30231         * m4/uintmax_t.m4: Likewise.
30232         * m4/unlinkdir.m4: Likewise.
30233         * m4/unlocked-io.m4: Likewise.
30234         * m4/uptime.m4: Likewise.
30235         * m4/userspec.m4: Likewise.
30236         * m4/utimbuf.m4: Likewise.
30237         * m4/utime.m4: Likewise.
30238         * m4/utimes-null.m4: Likewise.
30239         * m4/utimes.m4: Likewise.
30240         * m4/vararrays.m4: Likewise.
30241         * m4/vasnprintf.m4: Likewise.
30242         * m4/vfprintf-posix.m4: Likewise.
30243         * m4/vprintf-posix.m4: Likewise.
30244         * m4/wait-process.m4: Likewise.
30245         * m4/wchar_t.m4: Likewise.
30246         * m4/wint_t.m4: Likewise.
30247         * m4/write-any-file.m4: Likewise.
30248         * m4/yield.m4: Likewise.
30249
30250 2009-01-13  Bruno Haible  <bruno@clisp.org>
30251
30252         Avoid test-copy-file.sh failures when ACL support insufficient.
30253         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
30254         TESTS_ENVIRONMENT.
30255         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
30256         Reported by Jim Meyering.
30257
30258 2009-01-13  Bruno Haible  <bruno@clisp.org>
30259
30260         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
30261         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
30262         * modules/unistdio/u8-printf-parse (Files): Likewise.
30263         * modules/unistdio/u32-printf-parse (Files): Likewise.
30264         * modules/unistdio/ulc-printf-parse (Files): Likewise.
30265
30266 2009-01-13  Simon Josefsson  <simon@josefsson.org>
30267
30268         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
30269         and m4/inttypes_h.m4 too.
30270
30271 2009-01-12  Eric Blake  <ebb9@byu.net>
30272
30273         tests: IRIX 6.2 cc can't compile -0.0 into .data
30274         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
30275         rather than at compile-time.
30276         * tests/test-floorl.c (minus_zero): Likewise.
30277         * tests/test-frexpl.c (minus_zero): Likewise.
30278         * tests/test-isnan.c (minus_zerol): Likewise.
30279         * tests/test-isnanl.h (minus_zero): Likewise.
30280         * tests/test-ldexpl.c (minus_zero): Likewise.
30281         * tests/test-roundl.c (minus_zero): Likewise.
30282         * tests/test-signbit.c (minus_zerol): Likewise.
30283         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30284         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30285         * tests/test-truncl.c (minus_zero): Likewise.
30286         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30287         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30288         Reported by Tom G. Christensen and Nelson H. F. Beebe.
30289
30290 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30291
30292         regex: fix glibc bug 9697
30293         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
30294         handling.
30295
30296 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30297
30298         regex: fix glibc bug 697
30299         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
30300         being NULL also if there are no backreferences.
30301
30302 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30303
30304         regex: merge glibc changes
30305         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
30306         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
30307         re_string_skip_chars, re_string_reconstruct): Likewise.
30308         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
30309
30310 2009-01-07  Jim Meyering  <meyering@redhat.com>
30311
30312         poll: filter through cppi
30313         * lib/poll.c: Indent cpp directives to reflect nesting.
30314
30315 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
30316
30317         poll: don't return uninitialized
30318         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
30319
30320 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
30321
30322         avoid compile failure on AIX 6.1
30323         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
30324         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
30325
30326 2009-01-04  Jim Meyering  <meyering@redhat.com>
30327
30328         remove duplicate inclusion of <stdio.h>
30329         * tests/test-fprintf-posix.c: Likewise.
30330         * tests/test-printf-posix.c: Likewise.
30331         * tests/test-snprintf-posix.c: Likewise.
30332         * tests/test-sprintf-posix.c: Likewise.
30333         * tests/test-vasprintf-posix.c: Likewise.
30334         * tests/test-vfprintf-posix.c: Likewise.
30335         * tests/test-vprintf-posix.c: Likewise.
30336         * tests/test-vsnprintf-posix.c: Likewise.
30337         * tests/test-vsprintf-posix.c: Likewise.
30338
30339 2009-01-03  Jim Meyering  <meyering@redhat.com>
30340
30341         gnulib-tool: fix sed-based filtering
30342         * gnulib-tool (func_filter_filelist): Remove extra backslash
30343         in sed_fff_filter definition.
30344
30345 2009-01-02  Jim Meyering  <meyering@redhat.com>
30346
30347         strftime: avoid compilation failure on Solaris 2.6
30348         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
30349         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
30350         Don't #define mbrlen or mbsinit, since now they're guaranteed to
30351         be available.  Reported by Tom G. Christensen.  Details in
30352         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
30353
30354 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30355             Bruno Haible  <bruno@clisp.org>
30356
30357         Speed up gnulib-tool by doing more string processing through shell
30358         built-ins.
30359         * gnulib-tool (fast_func_append): New variable.
30360         (func_remove_prefix, func_remove_suffix): New functions.
30361         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
30362         (func_filter_filelist): New function.
30363         (func_get_dependencies): Use func_remove_suffix instead of sed.
30364         (func_get_automake_snippet): Use func_filter_filelist instead of a
30365         subshell and sed invocation.
30366
30367 2009-01-01  Bruno Haible  <bruno@clisp.org>
30368
30369         Fix a security bug.
30370         * gnulib-tool (func_import, import, update): Don't allow the characters
30371         '"', '$', '`', '\' in macro arguments that become part of commands that
30372         are evaluated.
30373
30374 2009-01-01  Bruno Haible  <bruno@clisp.org>
30375
30376         * gnulib-tool (func_reset_sigpipe): Add more comments.
30377
30378 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30379
30380         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
30381         func_emit_tests_Makefile_am, func_import): Abort loops early if we
30382         already know the answer.
30383
30384 2009-01-01  Jim Meyering  <meyering@redhat.com>
30385
30386         * lib/version-etc.c (version_etc_va): Update copyright year.
30387
30388 2008-12-30  Bruno Haible  <bruno@clisp.org>
30389
30390         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
30391         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
30392         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
30393
30394 2008-12-29  Eric Blake  <ebb9@byu.net>
30395
30396         multiarch: avoid autoconf AC_REQUIRE bug
30397         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
30398         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
30399         2.63 and older.
30400         Reported by Bruno Haible, and analyzed in
30401         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
30402
30403 2008-12-29  Bruno Haible  <bruno@clisp.org>
30404
30405         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
30406         files in subdirectories correctly.
30407         Reported by Ralf Wildenhues.
30408
30409 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30410
30411         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
30412         rather than 'join FILE -', for Solaris join.
30413
30414 2008-12-29  Bruno Haible  <bruno@clisp.org>
30415
30416         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
30417         quoting.
30418         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30419         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
30420         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
30421         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
30422         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30423         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30424         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30425         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30426         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30427         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30428         * m4/nls.m4 (AM_NLS): Likewise.
30429         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
30430         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30431         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30432         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30433         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30434         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30435         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
30436         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30437         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30438         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30439         * m4/xsize.m4 (gl_XSIZE): Likewise.
30440         Suggested by Jim Meyering.
30441
30442 2008-11-17  Bruce Korb  <bkorb@gnu.org>
30443
30444         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
30445         * lib/parse-duration.c: use a switch instead of cascading if's.
30446
30447 2008-12-29  Eric Blake  <ebb9@byu.net>
30448
30449         wchar.h: supply WEOF on Irix 5.3
30450         * lib/wchar.in.h (wint_t): Also supply WEOF.
30451         * lib/wctype.in.h (wint_t): Likewise.
30452         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
30453         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
30454         Reported by Tom G. Christensen.
30455
30456 2008-12-26  Bruno Haible  <bruno@clisp.org>
30457
30458         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
30459         i486, i586, i686.
30460
30461 2008-12-26  Bruno Haible  <bruno@clisp.org>
30462
30463         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
30464
30465 2008-12-26  Bruno Haible  <bruno@clisp.org>
30466
30467         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
30468         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
30469         not __STDC_CONSTANT_MACROS.
30470         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30471
30472 2008-12-25  Bruno Haible  <bruno@clisp.org>
30473
30474         Add support for universal builds to vasnprintf.
30475         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
30476         universal builds, guess no.
30477         * modules/vasnprintf-posix (Depends-on): Add multiarch.
30478         * modules/vasprintf-posix (Depends-on): Likewise.
30479         * modules/fprintf-posix (Depends-on): Likewise.
30480         * modules/vfprintf-posix (Depends-on): Likewise.
30481         * modules/snprintf-posix (Depends-on): Likewise.
30482         * modules/vsnprintf-posix (Depends-on): Likewise.
30483         * modules/sprintf-posix (Depends-on): Likewise.
30484         * modules/vsprintf-posix (Depends-on): Likewise.
30485         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30486         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30487         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30488         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30489         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30490         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30491         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30492
30493         Add support for universal builds to <inttypes.h>.
30494         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
30495         _SCNu64_PREFIX): In Apple
30496         universal builds, define directly, using _LP64.
30497         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
30498         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
30499         * modules/inttypes (Depends-on): Add multiarch.
30500         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30501
30502         Add support for universal builds to <stdint.h>.
30503         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
30504         universal builds, define directly, using _LP64.
30505         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
30506         Apple universal builds, don't test for the size and suffix of ptrdiff_t
30507         and size_t.
30508         * modules/stdint (Depends-on): Add multiarch.
30509         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30510
30511         New module 'multiarch'.
30512         * modules/multiarch: New file.
30513         * m4/multiarch.m4: New file.
30514
30515 2008-12-25  Bruno Haible  <bruno@clisp.org>
30516
30517         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
30518
30519 2008-12-25  Bruno Haible  <bruno@clisp.org>
30520
30521         * modules/btowc (License): Relicense under LGPLv2+.
30522         * modules/mbsinit (License): Likewise.
30523         * modules/mbrtowc (License): Likewise.
30524         * modules/wcrtomb (License): Likewise.
30525         * modules/streq (License): Likewise.
30526         Reported by David Lutterkort <lutter@redhat.com>.
30527
30528 2008-12-23  Bruno Haible  <bruno@clisp.org>
30529
30530         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
30531
30532 2008-12-23  Bruno Haible  <bruno@clisp.org>
30533
30534         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
30535         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
30536         GETADDRINFO_LIB, not in LIBS.
30537         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
30538         * modules/canon-host (Link): Likewise.
30539         * NEWS: Mention the change.
30540         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
30541         GETADDRINFO_LIB.
30542
30543 2008-12-22  Bruno Haible  <bruno@clisp.org>
30544
30545         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
30546         * doc/posix-functions/iswalpha_l.texi: Likewise.
30547         * doc/posix-functions/iswblank_l.texi: Likewise.
30548         * doc/posix-functions/iswcntrl_l.texi: Likewise.
30549         * doc/posix-functions/iswctype_l.texi: Likewise.
30550         * doc/posix-functions/iswdigit_l.texi: Likewise.
30551         * doc/posix-functions/iswgraph_l.texi: Likewise.
30552         * doc/posix-functions/iswlower_l.texi: Likewise.
30553         * doc/posix-functions/iswprint_l.texi: Likewise.
30554         * doc/posix-functions/iswpunct_l.texi: Likewise.
30555         * doc/posix-functions/iswspace_l.texi: Likewise.
30556         * doc/posix-functions/iswupper_l.texi: Likewise.
30557         * doc/posix-functions/iswxdigit_l.texi: Likewise.
30558         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
30559         * doc/posix-functions/open_wmemstream.texi: Likewise.
30560         * doc/posix-functions/swscanf.texi: Likewise.
30561         * doc/posix-functions/towctrans_l.texi: Likewise.
30562         * doc/posix-functions/towlower.texi: Likewise.
30563         * doc/posix-functions/towlower_l.texi: Likewise.
30564         * doc/posix-functions/towupper.texi: Likewise.
30565         * doc/posix-functions/towupper_l.texi: Likewise.
30566         * doc/posix-functions/vfwprintf.texi: Likewise.
30567         * doc/posix-functions/vfwscanf.texi: Likewise.
30568         * doc/posix-functions/vswscanf.texi: Likewise.
30569         * doc/posix-functions/vwprintf.texi: Likewise.
30570         * doc/posix-functions/vwscanf.texi: Likewise.
30571         * doc/posix-functions/wcpcpy.texi: Likewise.
30572         * doc/posix-functions/wcpncpy.texi: Likewise.
30573         * doc/posix-functions/wcscasecmp.texi: Likewise.
30574         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
30575         * doc/posix-functions/wcscoll_l.texi: Likewise.
30576         * doc/posix-functions/wcsdup.texi: Likewise.
30577         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30578         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
30579         * doc/posix-functions/wcsnlen.texi: Likewise.
30580         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30581         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
30582         * doc/posix-functions/wctrans_l.texi: Likewise.
30583         * doc/posix-functions/wctype_l.texi: Likewise.
30584         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
30585         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
30586         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
30587         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
30588         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
30589         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
30590         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
30591         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
30592         * doc/glibc-functions/wcschrnul.texi: Likewise.
30593         * doc/glibc-functions/wcsftime_l.texi: Likewise.
30594         * doc/glibc-functions/wcstod_l.texi: Likewise.
30595         * doc/glibc-functions/wcstof_l.texi: Likewise.
30596         * doc/glibc-functions/wcstol_l.texi: Likewise.
30597         * doc/glibc-functions/wcstold_l.texi: Likewise.
30598         * doc/glibc-functions/wcstoll_l.texi: Likewise.
30599         * doc/glibc-functions/wcstoq.texi: Likewise.
30600         * doc/glibc-functions/wcstoul_l.texi: Likewise.
30601         * doc/glibc-functions/wcstoull_l.texi: Likewise.
30602         * doc/glibc-functions/wcstouq.texi: Likewise.
30603         * doc/glibc-functions/wmempcpy.texi: Likewise.
30604
30605 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
30606             Eric Blake  <ebb9@byu.net>
30607             Paolo Bonzini  <bonzini@gnu.org>
30608             Bruno Haible  <bruno@clisp.org>
30609
30610         Make c-stack work on Haiku.
30611         * lib/c-stack.c (SA_ONSTACK): Define fallback.
30612         (c_stack_action): Use SA_ONSTACK flag.
30613
30614 2008-12-22  Bruno Haible  <bruno@clisp.org>
30615
30616         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
30617
30618 2008-12-22  Bruno Haible  <bruno@clisp.org>
30619
30620         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
30621         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
30622         being overridden.
30623         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
30624         New macros.
30625         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
30626         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
30627         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
30628         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
30629
30630 2008-12-22  Bruno Haible  <bruno@clisp.org>
30631
30632         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
30633         from test code.
30634
30635 2008-12-22  Eric Blake  <ebb9@byu.net>
30636
30637         Avoid gcc warnings on cygwin.
30638         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
30639         Avoid unused variable.
30640         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
30641         Likewise.
30642
30643 2008-12-22  Bruno Haible  <bruno@clisp.org>
30644
30645         Remove HAVE_MBRTOWC conditionals.
30646         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
30647         (mbscasecmp): Assume mbrtowc function.
30648         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
30649         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
30650         * lib/mbschr.c: Include mbuiter.h unconditionally.
30651         (mbschr): Assume mbrtowc function.
30652         * lib/mbscspn.c: Include mbuiter.h unconditionally.
30653         (mbscspn): Assume mbrtowc function.
30654         * lib/mbslen.c: Include mbuiter.h unconditionally.
30655         (mbslen): Assume mbrtowc function.
30656         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
30657         (mbsncasecmp): Assume mbrtowc function.
30658         * lib/mbsnlen.c: Include mbiter.h unconditionally.
30659         (mbsnlen): Assume mbrtowc function.
30660         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
30661         (mbspbrk): Assume mbrtowc function.
30662         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
30663         (mbspcasecmp): Assume mbrtowc function.
30664         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
30665         (mbsrchr): Assume mbrtowc function.
30666         * lib/mbssep.c: Include mbuiter.h unconditionally.
30667         (mbssep): Assume mbrtowc function.
30668         * lib/mbsspn.c: Include mbuiter.h unconditionally.
30669         (mbsspn): Assume mbrtowc function.
30670         * lib/mbsstr.c: Include mbuiter.h unconditionally.
30671         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
30672         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
30673         (mbstok_r): Assume mbrtowc function.
30674         * lib/propername.c: Include mbuiter.h unconditionally.
30675         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
30676         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
30677         (trim2): Assume mbrtowc function.
30678         * lib/mbswidth.c (mbsinit): Remove fallback definition.
30679         (mbsnwidth): Assume mbrtowc function.
30680         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
30681         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
30682         fallback definitions.
30683         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
30684
30685 2008-12-22  Bruno Haible  <bruno@clisp.org>
30686
30687         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
30688
30689 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
30690
30691         * modules/regex: Request emulations for the mb*/wc* functions we need.
30692         * m4/regex.m4: Don't look for those functions here.
30693         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
30694
30695 2008-12-22  Bruno Haible  <bruno@clisp.org>
30696
30697         * modules/fnmatch (Depends-on): Remove duplicated dependency.
30698
30699 2008-12-21  Bruno Haible  <bruno@clisp.org>
30700
30701         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
30702         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
30703         (Include): Remove conditionalization.
30704         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
30705         (Include): Remove conditionalization.
30706         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
30707         (Include): Remove conditionalization.
30708         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
30709         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30710         * NEWS: Mention the change.
30711         Reported by Alan Hourihane <alanh@fairlite.co.uk>
30712         via Sergey Poznyakoff <gray@gnu.org.ua>.
30713
30714 2008-12-21  Bruno Haible  <bruno@clisp.org>
30715
30716         * MODULES.html.sh (Extended multibyte and wide character utilities
30717         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
30718         wcrtomb, wcsrtombs.
30719         (Support for systems lacking POSIX:2008): Add accept, bind, close,
30720         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
30721         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
30722         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
30723
30724 2008-12-21  Bruno Haible  <bruno@clisp.org>
30725
30726         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
30727
30728 2008-12-21  Bruno Haible  <bruno@clisp.org>
30729
30730         * modules/wcsnrtombs-tests: New file.
30731         * tests/test-wcsnrtombs1.sh: New file.
30732         * tests/test-wcsnrtombs2.sh: New file.
30733         * tests/test-wcsnrtombs3.sh: New file.
30734         * tests/test-wcsnrtombs4.sh: New file.
30735         * tests/test-wcsnrtombs.c: New file.
30736
30737         New module 'wcsnrtombs'.
30738         * lib/wchar.in.h (wcsnrtombs): New declaration.
30739         * lib/wcsnrtombs.c: New file.
30740         * lib/wcsrtombs-state.c: New file.
30741         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
30742         (internal_state): Remove variable.
30743         * m4/wcsnrtombs.m4: New file.
30744         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
30745         compilation units.
30746         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
30747         HAVE_WCSNRTOMBS.
30748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
30749         HAVE_WCSNRTOMBS.
30750         * modules/wcsnrtombs: New file.
30751         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
30752         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
30753
30754 2008-12-21  Bruno Haible  <bruno@clisp.org>
30755
30756         * modules/wcsrtombs-tests: New file.
30757         * tests/test-wcsrtombs1.sh: New file.
30758         * tests/test-wcsrtombs2.sh: New file.
30759         * tests/test-wcsrtombs3.sh: New file.
30760         * tests/test-wcsrtombs4.sh: New file.
30761         * tests/test-wcsrtombs.c: New file.
30762
30763         New module 'wcsrtombs'.
30764         * lib/wchar.in.h (wcsrtombs): New declaration.
30765         * lib/wcsrtombs.c: New file.
30766         * m4/wcsrtombs.m4: New file.
30767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
30768         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
30770         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30771         * modules/wcsrtombs: New file.
30772         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
30773         bugs.
30774
30775 2008-12-21  Bruno Haible  <bruno@clisp.org>
30776
30777         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
30778         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
30779         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
30780         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
30781         if not correct.
30782         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
30783         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
30784         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30785         m4/locale-zh.m4, m4/codeset.m4.
30786         * doc/posix-functions/wcrtomb.texi: Document the bug.
30787
30788 2008-12-21  Bruno Haible  <bruno@clisp.org>
30789
30790         Work around a btowc() bug on IRIX 6.5.
30791         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
30792         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
30793         REPLACE_WTOBC if not.
30794         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
30795         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
30796         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
30797
30798 2008-12-21  Bruno Haible  <bruno@clisp.org>
30799
30800         * modules/wcrtomb-tests: New file.
30801         * tests/test-wcrtomb.sh: New file.
30802         * tests/test-wcrtomb.c: New file.
30803
30804         New module 'wcrtomb'.
30805         * lib/wchar.in.h (wcrtomb): New declaration.
30806         * lib/wcrtomb.c: New file.
30807         * m4/wcrtomb.m4: New file.
30808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
30809         HAVE_WCRTOMB.
30810         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
30811         HAVE_WCRTOMB.
30812         * modules/wcrtomb: New file.
30813         * doc/posix-functions/wcrtomb.texi: Mention the new module.
30814
30815 2008-12-21  Bruno Haible  <bruno@clisp.org>
30816
30817         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
30818         * modules/mbsrtowcs (Files): Likewise.
30819         * modules/wctob (Files): Likewise.
30820         * modules/c-strcase-tests (Files): Likewise.
30821         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30822         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30823         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30824         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30825         * modules/vasnprintf-posix-tests (Files): Likewise.
30826
30827 2008-12-21  William Pursell  <bill.pursell@gmail.com>
30828
30829         gitlog-to-changelog: pass all command-line arguments to git-log
30830         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
30831         it is sometimes convenient to filter the commits in various ways.
30832         gitlog-to-changelog only allows --since to specify a start date,
30833         but git-log itself supports many other filtering mechanisms.
30834         At the moment, I want to filter by branch name.  Rather than
30835         adding a --branch option to gitlog-to-changelog, it seems more
30836         flexible to simply pass all options directly to git-log and let
30837         git do the work.  Notice that this effectively makes --since a
30838         redundant option for gitlog-to-changelog, but removing it would
30839         require current usage to change since calls would then require
30840         an additional '--'.
30841
30842 2008-12-21  Bruno Haible  <bruno@clisp.org>
30843
30844         * modules/mbsnrtowcs-tests: New file.
30845         * tests/test-mbsnrtowcs1.sh: New file.
30846         * tests/test-mbsnrtowcs2.sh: New file.
30847         * tests/test-mbsnrtowcs3.sh: New file.
30848         * tests/test-mbsnrtowcs4.sh: New file.
30849         * tests/test-mbsnrtowcs.c: New file.
30850
30851         New module 'mbsnrtowcs'.
30852         * lib/wchar.in.h (mbsnrtowcs): New declaration.
30853         * lib/mbsnrtowcs.c: New file.
30854         * lib/mbsrtowcs-state.c: New file.
30855         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
30856         (internal_state): Remove variable.
30857         * m4/mbsnrtowcs.m4: New file.
30858         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
30859         compilation units.
30860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
30861         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30862         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
30863         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30864         * modules/mbsnrtowcs: New file.
30865         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
30866         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
30867         portability problem.
30868
30869 2008-12-21  Bruno Haible  <bruno@clisp.org>
30870
30871         Work around mbsrtowcs bug.
30872         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
30873         (gl_FUNC_MBSRTOWCS): Invoke it.
30874         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30875         m4/locale-zh.m4.
30876         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
30877
30878 2008-12-21  Bruno Haible  <bruno@clisp.org>
30879
30880         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
30881
30882 2008-12-21  Bruno Haible  <bruno@clisp.org>
30883
30884         Update doc for AIX.
30885         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
30886         16-bit wchar_t type.
30887         * doc/posix-functions/btowc.texi: Likewise.
30888         * doc/posix-functions/fgetwc.texi: Likewise.
30889         * doc/posix-functions/fgetws.texi: Likewise.
30890         * doc/posix-functions/fputwc.texi: Likewise.
30891         * doc/posix-functions/fputws.texi: Likewise.
30892         * doc/posix-functions/fwide.texi: Likewise.
30893         * doc/posix-functions/fwprintf.texi: Likewise.
30894         * doc/posix-functions/fwscanf.texi: Likewise.
30895         * doc/posix-functions/getwchar.texi: Likewise.
30896         * doc/posix-functions/getwc.texi: Likewise.
30897         * doc/posix-functions/iswalnum.texi: Likewise.
30898         * doc/posix-functions/iswalpha.texi: Likewise.
30899         * doc/posix-functions/iswblank.texi: Likewise.
30900         * doc/posix-functions/iswcntrl.texi: Likewise.
30901         * doc/posix-functions/iswctype.texi: Likewise.
30902         * doc/posix-functions/iswdigit.texi: Likewise.
30903         * doc/posix-functions/iswgraph.texi: Likewise.
30904         * doc/posix-functions/iswlower.texi: Likewise.
30905         * doc/posix-functions/iswprint.texi: Likewise.
30906         * doc/posix-functions/iswpunct.texi: Likewise.
30907         * doc/posix-functions/iswspace.texi: Likewise.
30908         * doc/posix-functions/iswupper.texi: Likewise.
30909         * doc/posix-functions/iswxdigit.texi: Likewise.
30910         * doc/posix-functions/mbrtowc.texi: Likewise.
30911         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30912         * doc/posix-functions/mbstowcs.texi: Likewise.
30913         * doc/posix-functions/mbtowc.texi: Likewise.
30914         * doc/posix-functions/putwchar.texi: Likewise.
30915         * doc/posix-functions/putwc.texi: Likewise.
30916         * doc/posix-functions/swprintf.texi: Likewise.
30917         * doc/posix-functions/tolower.texi: Likewise.
30918         * doc/posix-functions/toupper.texi: Likewise.
30919         * doc/posix-functions/towctrans.texi: Likewise.
30920         * doc/posix-functions/ungetwc.texi: Likewise.
30921         * doc/posix-functions/vswprintf.texi: Likewise.
30922         * doc/posix-functions/wcrtomb.texi: Likewise.
30923         * doc/posix-functions/wcscat.texi: Likewise.
30924         * doc/posix-functions/wcschr.texi: Likewise.
30925         * doc/posix-functions/wcscmp.texi: Likewise.
30926         * doc/posix-functions/wcscoll.texi: Likewise.
30927         * doc/posix-functions/wcscpy.texi: Likewise.
30928         * doc/posix-functions/wcscspn.texi: Likewise.
30929         * doc/posix-functions/wcsftime.texi: Likewise.
30930         * doc/posix-functions/wcslen.texi: Likewise.
30931         * doc/posix-functions/wcsncat.texi: Likewise.
30932         * doc/posix-functions/wcsncmp.texi: Likewise.
30933         * doc/posix-functions/wcsncpy.texi: Likewise.
30934         * doc/posix-functions/wcspbrk.texi: Likewise.
30935         * doc/posix-functions/wcsrchr.texi: Likewise.
30936         * doc/posix-functions/wcsrtombs.texi: Likewise.
30937         * doc/posix-functions/wcsspn.texi: Likewise.
30938         * doc/posix-functions/wcsstr.texi: Likewise.
30939         * doc/posix-functions/wcstod.texi: Likewise.
30940         * doc/posix-functions/wcstof.texi: Likewise.
30941         * doc/posix-functions/wcstoimax.texi: Likewise.
30942         * doc/posix-functions/wcstok.texi: Likewise.
30943         * doc/posix-functions/wcstold.texi: Likewise.
30944         * doc/posix-functions/wcstoll.texi: Likewise.
30945         * doc/posix-functions/wcstol.texi: Likewise.
30946         * doc/posix-functions/wcstombs.texi: Likewise.
30947         * doc/posix-functions/wcstoull.texi: Likewise.
30948         * doc/posix-functions/wcstoul.texi: Likewise.
30949         * doc/posix-functions/wcstoumax.texi: Likewise.
30950         * doc/posix-functions/wcswidth.texi: Likewise.
30951         * doc/posix-functions/wcsxfrm.texi: Likewise.
30952         * doc/posix-functions/wctob.texi: Likewise.
30953         * doc/posix-functions/wctomb.texi: Likewise.
30954         * doc/posix-functions/wctrans.texi: Likewise.
30955         * doc/posix-functions/wctype.texi: Likewise.
30956         * doc/posix-functions/wcwidth.texi: Likewise.
30957         * doc/posix-functions/wmemchr.texi: Likewise.
30958         * doc/posix-functions/wmemcmp.texi: Likewise.
30959         * doc/posix-functions/wmemcpy.texi: Likewise.
30960         * doc/posix-functions/wmemmove.texi: Likewise.
30961         * doc/posix-functions/wmemset.texi: Likewise.
30962         * doc/posix-functions/wprintf.texi: Likewise.
30963         * doc/posix-functions/wscanf.texi: Likewise.
30964
30965 2008-12-21  Bruno Haible  <bruno@clisp.org>
30966
30967         Update doc for HP-UX 11.11.
30968         * doc/posix-functions/btowc.texi: Clarify that the function is missing
30969         in HP-UX version 11.00, not in all versions of HP-UX 11.
30970         * doc/posix-functions/fwide.texi: Likewise.
30971         * doc/posix-functions/fwprintf.texi: Likewise.
30972         * doc/posix-functions/fwscanf.texi: Likewise.
30973         * doc/posix-functions/inet_ntop.texi: Likewise.
30974         * doc/posix-functions/inet_pton.texi: Likewise.
30975         * doc/posix-functions/mbrlen.texi: Likewise.
30976         * doc/posix-functions/mbrtowc.texi: Likewise.
30977         * doc/posix-functions/mbsinit.texi: Likewise.
30978         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30979         * doc/posix-functions/swprintf.texi: Likewise.
30980         * doc/posix-functions/swscanf.texi: Likewise.
30981         * doc/posix-functions/towctrans.texi: Likewise.
30982         * doc/posix-functions/vfwprintf.texi: Likewise.
30983         * doc/posix-functions/vswprintf.texi: Likewise.
30984         * doc/posix-functions/vwprintf.texi: Likewise.
30985         * doc/posix-functions/wcrtomb.texi: Likewise.
30986         * doc/posix-functions/wcsrtombs.texi: Likewise.
30987         * doc/posix-functions/wcsstr.texi: Likewise.
30988         * doc/posix-functions/wctob.texi: Likewise.
30989         * doc/posix-functions/wctrans.texi: Likewise.
30990         * doc/posix-functions/wmemchr.texi: Likewise.
30991         * doc/posix-functions/wmemcmp.texi: Likewise.
30992         * doc/posix-functions/wmemcpy.texi: Likewise.
30993         * doc/posix-functions/wmemmove.texi: Likewise.
30994         * doc/posix-functions/wmemset.texi: Likewise.
30995         * doc/posix-functions/wprintf.texi: Likewise.
30996         * doc/posix-functions/wscanf.texi: Likewise.
30997
30998 2008-12-21  Bruno Haible  <bruno@clisp.org>
30999
31000         Work around a portability problem.
31001         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
31002         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
31003
31004 2008-12-20  Bruno Haible  <bruno@clisp.org>
31005
31006         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
31007         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
31008         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
31009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
31010         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
31011
31012         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
31013         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
31014         set.
31015         (GNULIB_defined_mbstate_t): New macro.
31016         (mbsinit): Redefine if REPLACE_MBSINIT is set.
31017         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
31018         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
31019         reuses the system's mbrtowc function but works around the bugs.
31020         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
31021         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
31022         macros.
31023         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
31024         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
31025         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
31026         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
31027         REPLACE_MBSINIT if mbsinit needs to be overridden.
31028         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
31029         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31030         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
31031         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31032         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31033         m4/locale-zh.m4.
31034         (Depends): Add mbsinit.
31035         * modules/mbsinit (Depends): Add mbrtowc.
31036         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
31037
31038 2008-12-20  Bruno Haible  <bruno@clisp.org>
31039
31040         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
31041         so that there are no conversion errors on AIX.
31042         * tests/test-mbsrtowcs.c (main): LIkewise.
31043
31044 2008-12-20  Bruno Haible  <bruno@clisp.org>
31045
31046         Work around wctob bug on Solaris <= 9.
31047         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
31048         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
31049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
31050         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
31051         * modules/wctob (Files): Add m4/locale-fr.m4.
31052         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
31053
31054 2008-12-20  Bruno Haible  <bruno@clisp.org>
31055
31056         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
31057         /dev/null.
31058         * tests/test-select-in.sh: Likewise.
31059         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31060
31061 2008-12-20  Bruno Haible  <bruno@clisp.org>
31062
31063         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
31064         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
31065         Cygwin 1.5.x.
31066
31067 2008-12-20  Bruno Haible  <bruno@clisp.org>
31068
31069         Ensure mbstate_t is defined on HP-UX 11.11.
31070         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
31071         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
31072         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
31073         AC_USE_SYSTEM_EXTENSIONS.
31074         * modules/fnmatch (Depends-on): Add extensions.
31075         * modules/mbrlen (Depends-on): Likewise.
31076         * modules/mbrtowc (Depends-on): Likewise.
31077         * modules/mbsinit (Depends-on): Likewise.
31078         * modules/mbsrtowcs (Depends-on): Likewise.
31079         * modules/mbswidth (Depends-on): Likewise.
31080         * modules/quotearg (Depends-on): Likewise.
31081         * modules/strftime (Depends-on): Likewise.
31082
31083 2008-12-20  Bruno Haible  <bruno@clisp.org>
31084
31085         Ensure wctob is declared on IRIX 6.5.
31086         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
31087         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
31088         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
31089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
31090         of HAVE_WCTOB.
31091         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
31092         HAVE_WCTOB.
31093         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
31094
31095 2008-12-19  Bruno Haible  <bruno@clisp.org>
31096
31097         * modules/mbsrtowcs-tests: New file.
31098         * tests/test-mbsrtowcs1.sh: New file.
31099         * tests/test-mbsrtowcs2.sh: New file.
31100         * tests/test-mbsrtowcs3.sh: New file.
31101         * tests/test-mbsrtowcs4.sh: New file.
31102         * tests/test-mbsrtowcs.c: New file.
31103
31104         New module 'mbsrtowcs'.
31105         * lib/wchar.in.h (mbsrtowcs): New declaration.
31106         * lib/mbsrtowcs.c: New file.
31107         * m4/mbsrtowcs.m4: New file.
31108         * modules/mbsrtowcs: New file.
31109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
31110         HAVE_MBSRTOWCS.
31111         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
31112         HAVE_MBSRTOWCS.
31113         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
31114
31115 2008-12-19  Bruno Haible  <bruno@clisp.org>
31116
31117         New module 'mbrlen'.
31118         * lib/wchar.in.h (mbrlen): New declaration.
31119         * lib/mbrlen.c: New file.
31120         * m4/mbrlen.m4: New file.
31121         * modules/mbrlen: New file.
31122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
31123         HAVE_MBRLEN.
31124         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
31125         HAVE_MBRLEN.
31126         * doc/posix-functions/mbrlen.texi: Document the new module.
31127
31128 2008-12-19  Bruno Haible  <bruno@clisp.org>
31129
31130         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
31131         * modules/mbrtowc (Depends-on): Add verify.
31132         Suggested by Paul Eggert.
31133
31134 2008-12-18  Bruno Haible  <bruno@clisp.org>
31135
31136         * modules/mbsinit-tests: New file.
31137         * tests/test-mbsinit.sh: New file.
31138         * tests/test-mbsinit.c: New file.
31139
31140 2008-12-18  Bruno Haible  <bruno@clisp.org>
31141
31142         * modules/mbrtowc-tests: New file.
31143         * tests/test-mbrtowc1.sh: New file.
31144         * tests/test-mbrtowc2.sh: New file.
31145         * tests/test-mbrtowc3.sh: New file.
31146         * tests/test-mbrtowc4.sh: New file.
31147         * tests/test-mbrtowc.c: New file.
31148
31149         New module 'mbrtowc'.
31150         * lib/wchar.in.h (mbstate_t): Override when the system does not have
31151         mbsinit and mbrtowc.
31152         (mbrtowc): New declaration.
31153         * lib/mbrtowc.c: New file.
31154         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
31155         * modules/mbrtowc: New file.
31156         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
31157         HAVE_MBRTOWC.
31158         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
31159         HAVE_MBRTOWC.
31160         * doc/posix-functions/mbrtowc.texi: Document the new module.
31161
31162 2008-12-18  Bruno Haible  <bruno@clisp.org>
31163
31164         New module 'wctob'.
31165         * lib/wchar.in.h (wctob): New declaration.
31166         * lib/wctob.c: New file.
31167         * m4/wctob.m4: New file.
31168         * modules/wctob: New file.
31169         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
31170         HAVE_WCTOB.
31171         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
31172         * doc/posix-functions/wctob.texi: Document the new module.
31173
31174 2008-12-18  Bruno Haible  <bruno@clisp.org>
31175
31176         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
31177         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
31178
31179 2008-12-18  Simon Josefsson  <simon@josefsson.org>
31180
31181         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
31182         G. Christensen" <tgc@jupiterrise.com>.
31183
31184         * lib/flock.c: Need to include errno.h.  Reported by "Tom
31185         G. Christensen" <tgc@jupiterrise.com>.
31186
31187         * lib/flock.c: Need to include string.h.  Reported by "Tom
31188         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
31189         <ebb9@byu.net>.
31190
31191 2008-12-18  Bruno Haible  <bruno@clisp.org>
31192
31193         * m4/locale-ja.m4: New file, from GNU gettext.
31194
31195 2008-12-17  Bruno Haible  <bruno@clisp.org>
31196
31197         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
31198         Suggested by Eric Blake.
31199
31200 2008-12-17  Bruno Haible  <bruno@clisp.org>
31201
31202         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
31203
31204 2008-12-17  Bruno Haible  <bruno@clisp.org>
31205
31206         * lib/mbsinit.c: Include verify.h. Verify an assumption.
31207         * modules/mbsinit (Depends-on): Add verify.
31208         Suggested by Paul Eggert.
31209
31210 2008-12-17  Bruno Haible  <bruno@clisp.org>
31211
31212         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
31213         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
31214         gl_FUNC_MBRTOWC.
31215         * m4/mbiter.m4 (gl_MBITER): LIkewise.
31216         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
31217         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
31218         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
31219         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
31220         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
31221         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
31222         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
31223         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
31224         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
31225         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
31226         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
31227         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
31228         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
31229         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
31230         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31231         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
31232         * modules/trim (configure.ac): Likewise.
31233
31234 2008-12-17  Bruno Haible  <bruno@clisp.org>
31235
31236         * modules/btowc-tests: New file.
31237         * tests/test-btowc1.sh: New file.
31238         * tests/test-btowc2.sh: New file.
31239         * tests/test-btowc.c: New file.
31240
31241         New module 'btowc'.
31242         * lib/wchar.in.h (btowc): New declaration.
31243         * lib/btowc.c: New file.
31244         * m4/btowc.m4: New file.
31245         * modules/btowc: New file.
31246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
31247         HAVE_BTOWC.
31248         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
31249         * doc/posix-functions/btowc.texi: Document the new module.
31250
31251 2008-12-17  Bruno Haible  <bruno@clisp.org>
31252
31253         New module 'mbsinit'.
31254         * lib/wchar.in.h (mbsinit): New declaration.
31255         * lib/mbsinit.c: New file.
31256         * m4/mbsinit.m4: New file.
31257         * modules/mbsinit: New file.
31258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
31259         HAVE_MBSINIT.
31260         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
31261         HAVE_MBSINIT.
31262         * doc/posix-functions/mbsinit.texi: Document the new module.
31263
31264 2008-12-16  Bruno Haible  <bruno@clisp.org>
31265
31266         * lib/unistd.in.h: Add comment.
31267         * tests/test-environ.c: Don't include <stdlib.h>.
31268
31269 2008-12-16  Bruno Haible  <bruno@clisp.org>
31270
31271         * lib/parse-duration.h (parse_duration): Document return value
31272         convention.
31273         * lib/parse-duration.c: Include specification header first. Add
31274         comments.
31275         (_): Remove macro.
31276         (parse_year_month_day, parse_hour_minute_second): Move side effects
31277         outside of strchr call.
31278         (parse_non_iso8601): Move side effects outside of isspace call.
31279         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
31280         call.
31281
31282 2008-12-16  Bruno Haible  <bruno@clisp.org>
31283
31284         * tests/test-parse-duration.sh: Produce no output when the test
31285         succeeds.
31286
31287 2008-12-16  Bruno Haible  <bruno@clisp.org>
31288
31289         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
31290         expressions.
31291
31292 2008-12-15  Bruno Haible  <bruno@clisp.org>
31293
31294         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
31295         * doc/glibc-functions/flistxattr.texi: Likewise.
31296         * doc/glibc-functions/fopencookie.texi: Likewise.
31297         * doc/glibc-functions/fremovexattr.texi: Likewise.
31298         * doc/glibc-functions/fsetxattr.texi: Likewise.
31299         * doc/glibc-functions/getxattr.texi: Likewise.
31300         * doc/glibc-functions/lgetxattr.texi: Likewise.
31301         * doc/glibc-functions/listxattr.texi: Likewise.
31302         * doc/glibc-functions/llistxattr.texi: Likewise.
31303         * doc/glibc-functions/lremovexattr.texi: Likewise.
31304         * doc/glibc-functions/lsetxattr.texi: Likewise.
31305         * doc/glibc-functions/removexattr.texi: Likewise.
31306         * doc/glibc-functions/setxattr.texi: Likewise.
31307         * doc/posix-functions/open_memstream.texi: Likewise.
31308
31309 2008-12-15  Eric Blake  <ebb9@byu.net>
31310
31311         Update doc for cygwin 1.7.
31312         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
31313         functions.
31314         * doc/posix-functions/fchmodat.texi: Likewise.
31315         * doc/posix-functions/fchownat.texi: Likewise.
31316         * doc/posix-functions/fdopendir.texi: Likewise.
31317         * doc/posix-functions/fmemopen.texi: Likewise.
31318         * doc/posix-functions/freeaddrinfo.texi: Likewise.
31319         * doc/posix-functions/fstatat.texi: Likewise.
31320         * doc/posix-functions/futimens.texi: Likewise.
31321         * doc/posix-functions/gai_strerror.texi: Likewise.
31322         * doc/posix-functions/getaddrinfo.texi: Likewise.
31323         * doc/posix-functions/getnameinfo.texi: Likewise.
31324         * doc/posix-functions/if_freenameindex.texi: Likewise.
31325         * doc/posix-functions/if_indextoname.texi: Likewise.
31326         * doc/posix-functions/if_nameindex.texi: Likewise.
31327         * doc/posix-functions/if_nametoindex.texi: Likewise.
31328         * doc/posix-functions/insque.texi: Likewise.
31329         * doc/posix-functions/linkat.texi: Likewise.
31330         * doc/posix-functions/llrint.texi: Likewise.
31331         * doc/posix-functions/llrintf.texi: Likewise.
31332         * doc/posix-functions/llrintl.texi: Likewise.
31333         * doc/posix-functions/lockf.texi: Likewise.
31334         * doc/posix-functions/lrintl.texi: Likewise.
31335         * doc/posix-functions/mkdirat.texi: Likewise.
31336         * doc/posix-functions/mkfifoat.texi: Likewise.
31337         * doc/posix-functions/mknodat.texi: Likewise.
31338         * doc/posix-functions/mq_close.texi: Likewise.
31339         * doc/posix-functions/mq_getattr.texi: Likewise.
31340         * doc/posix-functions/mq_notify.texi: Likewise.
31341         * doc/posix-functions/mq_open.texi: Likewise.
31342         * doc/posix-functions/mq_receive.texi: Likewise.
31343         * doc/posix-functions/mq_send.texi: Likewise.
31344         * doc/posix-functions/mq_setattr.texi: Likewise.
31345         * doc/posix-functions/mq_timedreceive.texi: Likewise.
31346         * doc/posix-functions/mq_timedsend.texi: Likewise.
31347         * doc/posix-functions/mq_unlink.texi: Likewise.
31348         * doc/posix-functions/open_memstream.texi: Likewise.
31349         * doc/posix-functions/openat.texi: Likewise.
31350         * doc/posix-functions/posix_fadvise.texi: Likewise.
31351         * doc/posix-functions/posix_fallocate.texi: Likewise.
31352         * doc/posix-functions/posix_madvise.texi: Likewise.
31353         * doc/posix-functions/posix_memalign.texi: Likewise.
31354         * doc/posix-functions/posix_openpt.texi: Likewise.
31355         * doc/posix-functions/readlinkat.texi: Likewise.
31356         * doc/posix-functions/remque.texi: Likewise.
31357         * doc/posix-functions/renameat.texi: Likewise.
31358         * doc/posix-functions/rintl.texi: Likewise.
31359         * doc/posix-functions/sem_unlink.texi: Likewise.
31360         * doc/posix-functions/shm_open.texi: Likewise.
31361         * doc/posix-functions/shm_unlink.texi: Likewise.
31362         * doc/posix-functions/signgam.texi: Likewise.
31363         * doc/posix-functions/sigset.texi: Likewise.
31364         * doc/posix-functions/stpcpy.texi: Likewise.
31365         * doc/posix-functions/stpncpy.texi: Likewise.
31366         * doc/posix-functions/strerror.texi: Likewise.
31367         * doc/posix-functions/strtod.texi: Likewise.
31368         * doc/posix-functions/symlinkat.texi: Likewise.
31369         * doc/posix-functions/unlinkat.texi: Likewise.
31370         * doc/posix-functions/utimensat.texi: Likewise.
31371         * doc/glibc-functions/bindresvport.texi: Likewise.
31372         * doc/glibc-functions/dn_expand.texi: Likewise.
31373         * doc/glibc-functions/exp10.texi: Likewise.
31374         * doc/glibc-functions/exp10f.texi: Likewise.
31375         * doc/glibc-functions/fgetxattr.texi: Likewise.
31376         * doc/glibc-functions/flistxattr.texi: Likewise.
31377         * doc/glibc-functions/fopencookie.texi: Likewise.
31378         * doc/glibc-functions/freeifaddrs.texi: Likewise.
31379         * doc/glibc-functions/fremovexattr.texi: Likewise.
31380         * doc/glibc-functions/fsetxattr.texi: Likewise.
31381         * doc/glibc-functions/getifaddrs.texi: Likewise.
31382         * doc/glibc-functions/getxattr.texi: Likewise.
31383         * doc/glibc-functions/lgetxattr.texi: Likewise.
31384         * doc/glibc-functions/listxattr.texi: Likewise.
31385         * doc/glibc-functions/llistxattr.texi: Likewise.
31386         * doc/glibc-functions/lremovexattr.texi: Likewise.
31387         * doc/glibc-functions/lsetxattr.texi: Likewise.
31388         * doc/glibc-functions/pow10.texi: Likewise.
31389         * doc/glibc-functions/pow10f.texi: Likewise.
31390         * doc/glibc-functions/rcmd_af.texi: Likewise.
31391         * doc/glibc-functions/removexattr.texi: Likewise.
31392         * doc/glibc-functions/res_init.texi: Likewise.
31393         * doc/glibc-functions/res_mkquery.texi: Likewise.
31394         * doc/glibc-functions/res_query.texi: Likewise.
31395         * doc/glibc-functions/res_querydomain.texi: Likewise.
31396         * doc/glibc-functions/res_send.texi: Likewise.
31397         * doc/glibc-functions/rresvport_af.texi: Likewise.
31398         * doc/glibc-functions/setxattr.texi: Likewise.
31399         * doc/glibc-functions/strcasestr.texi: Likewise.
31400
31401 2008-12-15  Bruno Haible  <bruno@clisp.org>
31402
31403         Fix compilation error on OSF/1 4.0.
31404         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
31405         <sys/time.h>, simply delegate to the system header.
31406         Reported by Daniel Richard G. <oss@teragram.com>.
31407
31408 2008-12-15  Bruno Haible  <bruno@clisp.org>
31409
31410         * doc/posix-functions/openat.texi: Mention the 'openat' module.
31411         * doc/posix-functions/fchmodat.texi: Likewise.
31412         * doc/posix-functions/fchownat.texi: Likewise.
31413         * doc/posix-functions/fdopendir.texi: Likewise.
31414         * doc/posix-functions/fstatat.texi: Likewise.
31415         * doc/posix-functions/mkdirat.texi: Likewise.
31416         * doc/posix-functions/unlinkat.texi: Likewise.
31417
31418 2008-12-14  Bruno Haible  <bruno@clisp.org>
31419
31420         Update doc for POSIX:2008.
31421         * doc/posix-functions/faccessat.texi: New file.
31422         * doc/posix-functions/fchmodat.texi: New file.
31423         * doc/posix-functions/fchownat.texi: New file.
31424         * doc/posix-functions/fdopendir.texi: New file.
31425         * doc/posix-functions/fstatat.texi: New file.
31426         * doc/posix-functions/futimens.texi: New file.
31427         * doc/posix-functions/linkat.texi: New file.
31428         * doc/posix-functions/mkdirat.texi: New file.
31429         * doc/posix-functions/mkfifoat.texi: New file.
31430         * doc/posix-functions/mknodat.texi: New file.
31431         * doc/posix-functions/open_wmemstream.texi: New file.
31432         * doc/posix-functions/openat.texi: New file.
31433         * doc/posix-functions/psiginfo.texi: New file.
31434         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
31435         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
31436         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
31437         * doc/posix-functions/readlinkat.texi: New file.
31438         * doc/posix-functions/renameat.texi: New file.
31439         * doc/posix-functions/strerror_l.texi: New file.
31440         * doc/posix-functions/symlinkat.texi: New file.
31441         * doc/posix-functions/unlinkat.texi: New file.
31442         * doc/posix-functions/utimensat.texi: New file.
31443         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31444
31445 2008-12-14  Bruno Haible  <bruno@clisp.org>
31446
31447         Update doc for POSIX:2008.
31448         * doc/posix-functions/alphasort.texi: Renamed from
31449         doc/glibc-functions/alphasort.texi.
31450         * doc/posix-functions/dirfd.texi: Renamed from
31451         doc/glibc-functions/dirfd.texi.
31452         * doc/posix-functions/dprintf.texi: Renamed from
31453         doc/glibc-functions/dprintf.texi.
31454         * doc/posix-functions/duplocale.texi: Renamed from
31455         doc/glibc-functions/duplocale.texi.
31456         * doc/posix-functions/fexecve.texi: Renamed from
31457         doc/glibc-functions/fexecve.texi.
31458         * doc/posix-functions/fmemopen.texi: Renamed from
31459         doc/glibc-functions/fmemopen.texi.
31460         * doc/posix-functions/freelocale.texi: Renamed from
31461         doc/glibc-functions/freelocale.texi.
31462         * doc/posix-functions/getdate_err.texi: Renamed from
31463         doc/glibc-functions/getdate_err.texi.
31464         * doc/posix-functions/isalnum_l.texi: Renamed from
31465         doc/glibc-functions/isalnum_l.texi.
31466         * doc/posix-functions/isalpha_l.texi: Renamed from
31467         doc/glibc-functions/isalpha_l.texi.
31468         * doc/posix-functions/isblank_l.texi: Renamed from
31469         doc/glibc-functions/isblank_l.texi.
31470         * doc/posix-functions/iscntrl_l.texi: Renamed from
31471         doc/glibc-functions/iscntrl_l.texi.
31472         * doc/posix-functions/isdigit_l.texi: Renamed from
31473         doc/glibc-functions/isdigit_l.texi.
31474         * doc/posix-functions/isgraph_l.texi: Renamed from
31475         doc/glibc-functions/isgraph_l.texi.
31476         * doc/posix-functions/islower_l.texi: Renamed from
31477         doc/glibc-functions/islower_l.texi.
31478         * doc/posix-functions/isprint_l.texi: Renamed from
31479         doc/glibc-functions/isprint_l.texi.
31480         * doc/posix-functions/ispunct_l.texi: Renamed from
31481         doc/glibc-functions/ispunct_l.texi.
31482         * doc/posix-functions/isspace_l.texi: Renamed from
31483         doc/glibc-functions/isspace_l.texi.
31484         * doc/posix-functions/isupper_l.texi: Renamed from
31485         doc/glibc-functions/isupper_l.texi.
31486         * doc/posix-functions/iswalnum_l.texi: Renamed from
31487         doc/glibc-functions/iswalnum_l.texi.
31488         * doc/posix-functions/iswalpha_l.texi: Renamed from
31489         doc/glibc-functions/iswalpha_l.texi.
31490         * doc/posix-functions/iswblank_l.texi: Renamed from
31491         doc/glibc-functions/iswblank_l.texi.
31492         * doc/posix-functions/iswcntrl_l.texi: Renamed from
31493         doc/glibc-functions/iswcntrl_l.texi.
31494         * doc/posix-functions/iswctype_l.texi: Renamed from
31495         doc/glibc-functions/iswctype_l.texi.
31496         * doc/posix-functions/iswdigit_l.texi: Renamed from
31497         doc/glibc-functions/iswdigit_l.texi.
31498         * doc/posix-functions/iswgraph_l.texi: Renamed from
31499         doc/glibc-functions/iswgraph_l.texi.
31500         * doc/posix-functions/iswlower_l.texi: Renamed from
31501         doc/glibc-functions/iswlower_l.texi.
31502         * doc/posix-functions/iswprint_l.texi: Renamed from
31503         doc/glibc-functions/iswprint_l.texi.
31504         * doc/posix-functions/iswpunct_l.texi: Renamed from
31505         doc/glibc-functions/iswpunct_l.texi.
31506         * doc/posix-functions/iswspace_l.texi: Renamed from
31507         doc/glibc-functions/iswspace_l.texi.
31508         * doc/posix-functions/iswupper_l.texi: Renamed from
31509         doc/glibc-functions/iswupper_l.texi.
31510         * doc/posix-functions/iswxdigit_l.texi: Renamed from
31511         doc/glibc-functions/iswxdigit_l.texi.
31512         * doc/posix-functions/isxdigit_l.texi: Renamed from
31513         doc/glibc-functions/isxdigit_l.texi.
31514         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
31515         doc/glibc-functions/mbsnrtowcs.texi.
31516         * doc/posix-functions/mkdtemp.texi: Renamed from
31517         doc/glibc-functions/mkdtemp.texi.
31518         * doc/posix-functions/newlocale.texi: Renamed from
31519         doc/glibc-functions/newlocale.texi.
31520         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
31521         doc/glibc-functions/nl_langinfo_l.texi.
31522         * doc/posix-functions/open_memstream.texi: Renamed from
31523         doc/glibc-functions/open_memstream.texi.
31524         * doc/posix-functions/opterr.texi: Renamed from
31525         doc/glibc-functions/opterr.texi.
31526         * doc/posix-functions/optind.texi: Renamed from
31527         doc/glibc-functions/optind.texi.
31528         * doc/posix-functions/optopt.texi: Renamed from
31529         doc/glibc-functions/optopt.texi.
31530         * doc/posix-functions/psignal.texi: Renamed from
31531         doc/glibc-functions/psignal.texi.
31532         * doc/posix-functions/scandir.texi: Renamed from
31533         doc/glibc-functions/scandir.texi.
31534         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
31535         doc/glibc-functions/sched_get_priority_min.texi.
31536         * doc/posix-functions/signgam.texi: Renamed from
31537         doc/glibc-functions/signgam.texi.
31538         * doc/posix-functions/stpcpy.texi: Renamed from
31539         doc/glibc-functions/stpcpy.texi.
31540         * doc/posix-functions/stpncpy.texi: Renamed from
31541         doc/glibc-functions/stpncpy.texi.
31542         * doc/posix-functions/strcasecmp_l.texi: Renamed from
31543         doc/glibc-functions/strcasecmp_l.texi.
31544         * doc/posix-functions/strcoll_l.texi: Renamed from
31545         doc/glibc-functions/strcoll_l.texi.
31546         * doc/posix-functions/strfmon_l.texi: Renamed from
31547         doc/glibc-functions/strfmon_l.texi.
31548         * doc/posix-functions/strftime_l.texi: Renamed from
31549         doc/glibc-functions/strftime_l.texi.
31550         * doc/posix-functions/strncasecmp_l.texi: Renamed from
31551         doc/glibc-functions/strncasecmp_l.texi.
31552         * doc/posix-functions/strndup.texi: Renamed from
31553         doc/glibc-functions/strndup.texi.
31554         * doc/posix-functions/strnlen.texi: Renamed from
31555         doc/glibc-functions/strnlen.texi.
31556         * doc/posix-functions/strsignal.texi: Renamed from
31557         doc/glibc-functions/strsignal.texi.
31558         * doc/posix-functions/strxfrm_l.texi: Renamed from
31559         doc/glibc-functions/strxfrm_l.texi.
31560         * doc/posix-functions/timer_gettime.texi: Renamed from
31561         doc/glibc-functions/timer_gettime.texi.
31562         * doc/posix-functions/tolower_l.texi: Renamed from
31563         doc/glibc-functions/tolower_l.texi.
31564         * doc/posix-functions/toupper_l.texi: Renamed from
31565         doc/glibc-functions/toupper_l.texi.
31566         * doc/posix-functions/towctrans_l.texi: Renamed from
31567         doc/glibc-functions/towctrans_l.texi.
31568         * doc/posix-functions/towlower_l.texi: Renamed from
31569         doc/glibc-functions/towlower_l.texi.
31570         * doc/posix-functions/towupper_l.texi: Renamed from
31571         doc/glibc-functions/towupper_l.texi.
31572         * doc/posix-functions/uselocale.texi: Renamed from
31573         doc/glibc-functions/uselocale.texi.
31574         * doc/posix-functions/vdprintf.texi: Renamed from
31575         doc/glibc-functions/vdprintf.texi.
31576         * doc/posix-functions/wcpcpy.texi:
31577         Renamed from doc/glibc-functions/wcpcpy.texi.
31578         * doc/posix-functions/wcpncpy.texi: Renamed from
31579         doc/glibc-functions/wcpncpy.texi.
31580         * doc/posix-functions/wcscasecmp.texi: Renamed from
31581         doc/glibc-functions/wcscasecmp.texi.
31582         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
31583         doc/glibc-functions/wcscasecmp_l.texi.
31584         * doc/posix-functions/wcscoll_l.texi: Renamed from
31585         doc/glibc-functions/wcscoll_l.texi.
31586         * doc/posix-functions/wcsdup.texi: Renamed from
31587         doc/glibc-functions/wcsdup.texi.
31588         * doc/posix-functions/wcsncasecmp.texi: Renamed from
31589         doc/glibc-functions/wcsncasecmp.texi.
31590         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
31591         doc/glibc-functions/wcsncasecmp_l.texi.
31592         * doc/posix-functions/wcsnlen.texi: Renamed from
31593         doc/glibc-functions/wcsnlen.texi.
31594         * doc/posix-functions/wcsnrtombs.texi: Renamed from
31595         doc/glibc-functions/wcsnrtombs.texi.
31596         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
31597         doc/glibc-functions/wcsxfrm_l.texi.
31598         * doc/posix-functions/wctrans_l.texi: Renamed from
31599         doc/glibc-functions/wctrans_l.texi.
31600         * doc/posix-functions/wctype_l.texi: Renamed from
31601         doc/glibc-functions/wctype_l.texi.
31602         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31603         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
31604         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
31605         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
31606         these subsections.
31607         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
31608         Remove sections.
31609
31610 2008-12-14  Bruno Haible  <bruno@clisp.org>
31611
31612         Update doc for POSIX:2008.
31613         * doc/posix-functions/*.texi: Update URL of POSIX specification.
31614
31615 2008-12-14  Bruno Haible  <bruno@clisp.org>
31616
31617         Update doc for POSIX:2008.
31618         * doc/pastposix-functions/bcmp.texi: Renamed from
31619         doc/posix-functions/bcmp.texi.
31620         * doc/pastposix-functions/bcopy.texi: Renamed from
31621         doc/posix-functions/bcopy.texi.
31622         * doc/pastposix-functions/bsd_signal.texi: Renamed from
31623         doc/posix-functions/bsd_signal.texi.
31624         * doc/pastposix-functions/bzero.texi: Renamed from
31625         doc/posix-functions/bzero.texi.
31626         * doc/pastposix-functions/ecvt.texi: Renamed from
31627         doc/posix-functions/ecvt.texi.
31628         * doc/pastposix-functions/fcvt.texi: Renamed from
31629         doc/posix-functions/fcvt.texi.
31630         * doc/pastposix-functions/ftime.texi: Renamed from
31631         doc/posix-functions/ftime.texi.
31632         * doc/pastposix-functions/gcvt.texi: Renamed from
31633         doc/posix-functions/gcvt.texi.
31634         * doc/pastposix-functions/getcontext.texi: Renamed from
31635         doc/posix-functions/getcontext.texi.
31636         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
31637         doc/posix-functions/gethostbyaddr.texi.
31638         * doc/pastposix-functions/gethostbyname.texi: Renamed from
31639         doc/posix-functions/gethostbyname.texi.
31640         * doc/pastposix-functions/getwd.texi: Renamed from
31641         doc/posix-functions/getwd.texi.
31642         * doc/pastposix-functions/h_errno.texi: Renamed from
31643         doc/posix-functions/h_errno.texi.
31644         * doc/pastposix-functions/index.texi: Renamed from
31645         doc/posix-functions/index.texi.
31646         * doc/pastposix-functions/makecontext.texi: Renamed from
31647         doc/posix-functions/makecontext.texi.
31648         * doc/pastposix-functions/mktemp.texi: Renamed from
31649         doc/posix-functions/mktemp.texi.
31650         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
31651         doc/posix-functions/pthread_attr_getstackaddr.texi.
31652         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
31653         doc/posix-functions/pthread_attr_setstackaddr.texi.
31654         * doc/pastposix-functions/rindex.texi: Renamed from
31655         doc/posix-functions/rindex.texi.
31656         * doc/pastposix-functions/scalb.texi: Renamed from
31657         doc/posix-functions/scalb.texi.
31658         * doc/pastposix-functions/setcontext.texi: Renamed from
31659         doc/posix-functions/setcontext.texi.
31660         * doc/pastposix-functions/swapcontext.texi: Renamed from
31661         doc/posix-functions/swapcontext.texi.
31662         * doc/pastposix-functions/ualarm.texi: Renamed from
31663         doc/posix-functions/ualarm.texi.
31664         * doc/pastposix-functions/usleep.texi: Renamed from
31665         doc/posix-functions/usleep.texi.
31666         * doc/pastposix-functions/vfork.texi: Renamed from
31667         doc/posix-functions/vfork.texi.
31668         * doc/pastposix-functions/wcswcs.texi: Renamed from
31669         doc/posix-functions/wcswcs.texi.
31670         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
31671         (Function Substitutes): Update.
31672
31673 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31674
31675         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
31676         m4/strerror.m4.
31677
31678 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31679             Bruno Haible  <bruno@clisp.org>
31680
31681         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
31682
31683 2008-12-13  Bruno Haible  <bruno@clisp.org>
31684
31685         * modules/strtoull (Depends-on): Remove unistd.
31686
31687 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31688
31689         * modules/strtoull (Depends-on): Add stdlib.
31690
31691 2008-12-11  Simon Josefsson  <simon@josefsson.org>
31692
31693         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
31694
31695 2008-12-10  Jim Meyering  <meyering@redhat.com>
31696
31697         gl_ASSERT: don't say assertions are disabled when they're not
31698         * m4/assert.m4 (gl_ASSERT): Do not make configure report
31699         "checking whether to enable assertions... no", when they are in
31700         fact enabled.  This is solely a bug in the output of configure.
31701         In spite of saying "no", NDEBUG was not defined in that case.
31702         Also, as noted by Eric Blake, leave assertions enabled upon
31703         --enable-assert=INVALID.
31704
31705 2008-12-10  Bruno Haible  <bruno@clisp.org>
31706
31707         Change MODULES.html to refer to POSIX:2008 where possible.
31708         * MODULES.html.sh (POSIX2008_URL): New variable.
31709         (posix_headers): Remove sys/timeb, ucontext.
31710         (posix2001_headers): New variable.
31711         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
31712         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
31713         index, makecontext, mktemp, pthread_attr_getstackaddr,
31714         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
31715         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
31716         (posix2001_functions): New variable.
31717         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
31718         otherwise.
31719
31720 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31721
31722         add missing include to parse-duration.c
31723         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
31724         * modules/parse-duration (Depends-on): Add xalloc.
31725
31726         fix sed script reading maint.mk
31727         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
31728         (syntax-check-rules): Use it.
31729
31730 2008-12-09  Bruno Haible  <bruno@clisp.org>
31731
31732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
31733         MacOS X 10.4/PowerPC.
31734         Reported by Simon Josefsson.
31735
31736 2008-12-08  Jim Meyering  <meyering@redhat.com>
31737
31738         work around mingw's lack of some S_IF definitions
31739         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
31740         Reported by Simon Josefsson.
31741
31742 2008-12-08  Bruno Haible  <bruno@clisp.org>
31743
31744         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
31745         applied to variables. Needed on MacOS X 10.4/PowerPC.
31746         Reported by Simon Josefsson.
31747
31748 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
31749         and Eric Blake  <ebb9@byu.net>
31750
31751         assert: honor --enable-assert
31752         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
31753         order to honor --enable-assert, rather than treating it as a
31754         synonym for --disable-assert.
31755
31756 2008-12-08  Jim Meyering  <meyering@redhat.com>
31757
31758         * lib/posixtm.c: Remove now-useless declaration of mktime.
31759
31760         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
31761
31762 2008-12-07  Bruno Haible  <bruno@clisp.org>
31763
31764         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
31765         test_once): Mark functions as static.
31766         * tests/test-tls.c (test_tls): Likewise.
31767
31768 2008-12-07  Bruno Haible  <bruno@clisp.org>
31769
31770         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
31771         iconv_register_autodetect.
31772
31773 2008-12-07  Jim Meyering  <meyering@redhat.com>
31774
31775         posixtm.c: avoid a warning
31776         * lib/posixtm.c (posixtime): Don't initialize tm0.
31777         It's no longer needed to placate gcc4's -Wuninitialized,
31778         and the attempt to placate would elicit a new warning.
31779
31780         unicodeio.c: mark unused parameters
31781         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31782         (fallback_failure_callback): Likewise.
31783
31784 2008-12-07  Bruno Haible  <bruno@clisp.org>
31785
31786         * gnulib-tool (func_create_testdir): When building the tests
31787         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
31788         Reported by Simon Josefsson.
31789
31790 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31791
31792         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
31793
31794 2008-12-06  Bruno Haible  <bruno@clisp.org>
31795
31796         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
31797         Suggested by Eric Blake.
31798
31799 2008-12-06  Bruno Haible  <bruno@clisp.org>
31800
31801         Fix a c-stack test failure on MacOS X.
31802         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
31803         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
31804         handler for SIGBUS as well.
31805         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
31806         install a signal handler for SIGBUS as well.
31807         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
31808
31809 2008-12-06  Bruno Haible  <bruno@clisp.org>
31810
31811         Advocacy documentation.
31812         * doc/gnulib-intro.texi (Benefits): New section.
31813         * doc/gnulib.texi: Update.
31814
31815 2008-12-06  Bruno Haible  <bruno@clisp.org>
31816
31817         Document the 'manywarnings' module.
31818         * doc/manywarnings.texi: New file.
31819         * doc/gnulib.texi: Include it.
31820
31821 2008-12-05  Eric Blake  <ebb9@byu.net>
31822
31823         tests: silence some gcc warnings
31824         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
31825         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
31826         type mismatches.
31827
31828 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31829             Bruno Haible  <bruno@clisp.org>
31830
31831         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
31832
31833 2008-11-29  Jim Meyering  <meyering@redhat.com>
31834
31835         unicodeio.c: mark unused parameters
31836         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31837         (fallback_failure_callback): Likewise.
31838
31839         fts: fix a thinko
31840         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
31841         (set_stat_type): Return S_IF*-valued "type" directly.
31842         Prompted by James Youngman's spotting a related bug.
31843         Confirmed by further testing through find.
31844
31845         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
31846         * lib/fts.c (D_TYPE): Define.
31847         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
31848         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
31849         (s_ifmt_shift_bits): New function.
31850         (set_stat_type): New function.
31851         (fts_build): When not calling fts_stat, call set_stat_type
31852         to propagate dirent.d_type info to fts_read caller.
31853         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
31854         fts_statp->st_mode type information may be valid.
31855
31856 2008-11-28  Simon Josefsson  <simon@josefsson.org>
31857
31858         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
31859         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
31860         <sds@gnu.org>.
31861
31862 2008-11-20  Bruno Haible  <bruno@clisp.org>
31863
31864         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
31865         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
31866         INCLUDE_NEXT.
31867         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
31868         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
31869         * modules/math (Makefile.am): Substitute
31870         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
31871         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31872
31873 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31874             Bruno Haible  <bruno@clisp.org>
31875
31876         * lib/stdint.in.h: Define all type macros so that their expansion is
31877         a single typedef'ed token. Fixes a compilation failure in Boost which
31878         does "using ::int8_t;".
31879
31880 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31881
31882         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
31883         gl_MANYWARN_ALL_GCC.
31884         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
31885         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
31886         * modules/manywarnings: New file.
31887         * MODULES.html.sh: Mention manywarnings module.
31888
31889 2008-11-18  Bruno Haible  <bruno@clisp.org>
31890
31891         * doc/gnulib-tool.texi (Unit tests): New section.
31892
31893 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31894
31895         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
31896         paths like 'lib/po/foo.po'.
31897
31898 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31899
31900         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
31901         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
31902
31903 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31904
31905         * m4/warnings.m4: Use CPPFLAGS to really check whether the
31906         parameter works.
31907
31908 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31909
31910         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
31911
31912 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31913
31914         * modules/parse-duration-tests: New file.
31915         * tests/test-parse-duration.sh: New file.
31916         * tests/test-parse-duration.c: New file.
31917
31918         New module 'parse-duration'.
31919         * lib/parse-duration.h: New file.
31920         * lib/parse-duration.c: New file.
31921         * modules/parse-duration: New file.
31922
31923 2008-11-17  Bruno Haible  <bruno@clisp.org>
31924
31925         * tests/test-select-out.sh: Comment out the first pipe test.
31926         Reported by Simon Josefsson.
31927
31928 2008-11-17  Bruno Haible  <bruno@clisp.org>
31929
31930         * modules/getaddrinfo (Depends-on): Add servent, hostent.
31931         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
31932         gl_HOSTENT.
31933
31934 2008-11-17  Bruno Haible  <bruno@clisp.org>
31935
31936         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
31937         -lnetwork and -lnet. Needed for Haiku and BeOS.
31938
31939 2008-11-16  Bruno Haible  <bruno@clisp.org>
31940
31941         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
31942
31943 2008-11-16  Bruno Haible  <bruno@clisp.org>
31944
31945         Avoid test failure on Haiku.
31946         * tests/test-fsync.c: Include <errno.h>.
31947         (main): Don't require that fsync (0) fails.
31948
31949 2008-11-15  Bruno Haible  <bruno@clisp.org>
31950
31951         New module 'hostent'.
31952         * modules/hostent: New file.
31953         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
31954
31955 2008-11-15  Bruno Haible  <bruno@clisp.org>
31956
31957         New module 'servent'.
31958         * modules/servent: New file.
31959         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
31960
31961 2008-11-15  Bruno Haible  <bruno@clisp.org>
31962
31963         Avoid generating same test program with two different rules.
31964         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
31965         test-frexp to test-frexp-nolibm.
31966         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
31967         test-frexpl to test-frexpl-nolibm.
31968
31969 2008-11-15  Bruno Haible  <bruno@clisp.org>
31970
31971         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
31972         $(FREXPL_LIBM).
31973
31974 2008-11-15  Bruno Haible  <bruno@clisp.org>
31975
31976         * lib/netdb.in.h: Activate the definitions also when the system's
31977         <netdb.h> has 'struct addrinfo'.
31978         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
31979         EAI_OVERFLOW or AI_NUMERICSERV.
31980         * doc/posix-headers/netdb.texi: Document the problem.
31981
31982 2008-11-15  Bruno Haible  <bruno@clisp.org>
31983
31984         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
31985
31986         Make the 'sched' module work on platforms where <sched.h> exists but
31987         is incomplete (such as Haiku).
31988         * lib/sched.in.h; Include the system's <sched.h> if it exists.
31989         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
31990         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
31991         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
31992         HAVE_STRUCT_SCHED_PARAM.
31993         * modules/sched (Depends-on): Add include_next.
31994         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
31995         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
31996         * doc/posix-headers/sched.texi: Document the issue.
31997
31998 2008-11-13  Jim Meyering  <meyering@redhat.com>
31999
32000         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
32001         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
32002         test would fail due to the difference in the Report bugs to ...
32003         line.  The expected address is empty, "<>", while the actual
32004         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
32005
32006 2008-11-12  Bruno Haible  <bruno@clisp.org>
32007
32008         lstat: don't compile lstat.c on systems lacking lstat
32009         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
32010         which don't have lstat; this is handled by lib/sys_stat.in.h already.
32011         Reported by Daniel P. Berrange via Jim Meyering.
32012
32013 2008-11-12  Jim Meyering  <meyering@redhat.com>
32014
32015         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
32016
32017 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32018
32019         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
32020         instead.
32021
32022 2008-11-12  Bruno Haible  <bruno@clisp.org>
32023
32024         * lib/unicodeio.c: Include unistr.h.
32025         (utf8_wctomb): Remove function.
32026         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
32027
32028 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32029
32030         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
32031         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
32032         <bruno@clisp.org>.
32033         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
32034
32035 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32036
32037         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
32038         * doc/gnulib.texi: Add section for warnings.
32039
32040 2008-11-11  Bruno Haible  <bruno@clisp.org>
32041
32042         * lib/sockets.h: Add a comment.
32043
32044 2008-11-11  Karl Berry  <karl@gnu.org>
32045
32046         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
32047
32048 2008-11-11  Eric Blake  <ebb9@byu.net>
32049
32050         fdl.texi: avoid git symlinks
32051         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
32052
32053 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32054
32055         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
32056
32057 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32058
32059         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
32060         (gl_WARN_ADD): Substitute $2 if literal.
32061
32062 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32063
32064         * m4/warning.m4: Remove.
32065
32066 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32067
32068         * m4/warnings.m4: Almost complete rewrite. :-)
32069
32070 2008-11-10  Simon Josefsson  <simon@josefsson.org>
32071
32072         * modules/warnings: New module.
32073         * m4/warnings.m4: New file.
32074         * MODULES.html.sh: Mention warnings module.
32075         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
32076         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32077
32078 2008-11-10  Eric Blake  <ebb9@byu.net>
32079
32080         fdl.texi: make a symlink to the latest version
32081         * doc/standards.texi: Revert today's earlier change.
32082         * doc/fdl-1.2.texi: Rename from old fdl.texi...
32083         * doc/fdl.texi: ...and replace this with a symlink to the newer
32084         fdl-1.3.texi.
32085
32086 2008-11-10  Bruno Haible  <bruno@clisp.org>
32087
32088         * tests/test-select-fd.c (main): Accept the result file name as fourth
32089         argument.
32090         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
32091         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
32092
32093 2008-11-10  Bruno Haible  <bruno@clisp.org>
32094
32095         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
32096         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
32097         as autoconf-substituted macros.
32098         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
32099         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
32100         gl_NETDB_H_DEFAULTS. Set these variables.
32101         * modules/netdb (Makefile.am): Substitute these variables.
32102
32103 2008-11-10  Eric Blake  <ebb9@byu.net>
32104
32105         standards.texi: include correct file for FDL 1.3
32106         * doc/standards.texi (GNU Free Documentation License): Change
32107         include file to pull in FDL 1.3, not 1.2.
32108
32109         fdl.texi: revert accidental change to license
32110         * doc/fdl.texi: This is FDL 1.2, not 1.3.
32111
32112 2008-11-10  Bruno Haible  <bruno@clisp.org>
32113
32114         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
32115         cross-compiling guesses also when the native compile gives no result.
32116
32117 2008-11-10  Bruno Haible  <bruno@clisp.org>
32118
32119         * lib/spawni.c (__spawni): Force variable into the stack.
32120
32121 2008-11-10  Bruno Haible  <bruno@clisp.org>
32122
32123         Add support for Haiku.
32124         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
32125         glibc and BeOS, but also on Haiku.
32126         * lib/fpurge.c (fpurge): Likewise.
32127         * lib/freadable.c (freadable): Likewise.
32128         * lib/freadahead.c (freadahead): Likewise.
32129         * lib/freading.c (freading): Likewise.
32130         * lib/freadptr.c (freadptr): Likewise.
32131         * lib/freadseek.c (freadptrinc): Likewise.
32132         * lib/fseeko.c (rpl_fseeko): Likewise.
32133         * lib/fseterr.c (fseterr): Likewise.
32134         * lib/fwritable.c (fwritable): Likewise.
32135         * lib/fwriting.c (fwriting): Likewise.
32136         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
32137
32138 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32139
32140         * lib/config.charset: Treat Haiku like BeOS.
32141
32142 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32143
32144         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
32145         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
32146
32147 2008-11-08  Bruno Haible  <bruno@clisp.org>
32148
32149         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
32150         AC_CACHE_CHECK.
32151
32152 2008-11-08  Bruno Haible  <bruno@clisp.org>
32153
32154         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
32155
32156 2008-11-08  Bruno Haible  <bruno@clisp.org>
32157
32158         * tests/test-select-fd.c: New file.
32159         * tests/test-select-in.sh: New file.
32160         * tests/test-select-out.sh: New file.
32161         * tests/test-select-stdin.c: New file.
32162         * modules/select-tests (Files): Add the new files.
32163         (Depends-on): Add gettimeofday.
32164         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
32165         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
32166         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
32167
32168 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
32169             Bruno Haible  <bruno@clisp.org>
32170
32171         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
32172
32173 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
32174
32175         * build-aux/pmccabe2html: Added support for C++ source files.
32176
32177 2008-11-05  Ben Pfaff  <blp@gnu.org>
32178
32179         Fix lib/close.c build on Windows.
32180         * modules/close (Files): Add lib/w32sock.h.
32181
32182 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
32183
32184         Accept Bison's NEWS format.
32185         * build-aux/announce-gen (print_news_deltas): Tweak
32186         $re_prefix.
32187
32188 2008-11-04  Bruno Haible  <bruno@clisp.org>
32189
32190         * modules/random_r (Maintainer): Add glibc.
32191
32192 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32193
32194         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
32195         by karl@freefriends.org (Karl Berry).
32196         * doc/alloca.texi: Likewise.
32197         * doc/c-ctype.texi: Likewise.
32198         * doc/c-strcase.texi: Likewise.
32199         * doc/c-strcaseeq.texi: Likewise.
32200         * doc/c-strcasestr.texi: Likewise.
32201         * doc/c-strstr.texi: Likewise.
32202         * doc/c-strtod.texi: Likewise.
32203         * doc/c-strtold.texi: Likewise.
32204         * doc/ctime.texi: Likewise.
32205         * doc/error.texi: Likewise.
32206         * doc/fdl.texi: Likewise.
32207         * doc/gcd.texi: Likewise.
32208         * doc/getdate.texi: Likewise.
32209         * doc/gnulib-intro.texi: Likewise.
32210         * doc/gnulib-tool.texi: Likewise.
32211         * doc/gnulib.texi: Likewise.
32212         * doc/inet_ntoa.texi: Likewise.
32213         * doc/maintain.texi: Likewise.
32214         * doc/make-stds.texi: Likewise.
32215         * doc/quote.texi: Likewise.
32216         * doc/regexprops-generic.texi: Likewise.
32217         * doc/standards.texi: Likewise.
32218         * doc/verify.texi: Likewise.
32219         * doc/visibility.texi: Likewise.
32220         * doc/gnulib.texi (GNU Free Documentation License): Include
32221         fdl-1.3.texi instead of fdl.texi.
32222
32223 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32224
32225         * doc/fdl-1.3.texi: New file, from
32226         <http://www.gnu.org/licenses/fdl-1.3.texi>.
32227         * modules/fdl-1.3: Add.
32228         * MODULES.html.sh: Add fdl-1.3.
32229
32230 2008-11-03  Bruno Haible  <bruno@clisp.org>
32231
32232         Make determination of absolute name of header file work with AIX xlc.
32233         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
32234         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
32235         preprocessing.
32236         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32237         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32238
32239 2008-11-03  Simon Josefsson  <simon@josefsson.org>
32240
32241         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
32242         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
32243         <ludo@gnu.org>.
32244
32245 2008-11-02  Bruno Haible  <bruno@clisp.org>
32246
32247         Mark 'strpbrk' obsolete.
32248         * modules/strpbrk (Status, Notice): New sections.
32249         * modules/strtok_r (Depends-on): Add strpbrk.
32250
32251 2008-11-02  Bruno Haible  <bruno@clisp.org>
32252
32253         Mark 'strdup' obsolete.
32254         * modules/strdup (Status, Notice): New sections.
32255         * modules/findprog (Depends-on): Add strdup.
32256         * modules/getaddrinfo (Depends-on): Likewise.
32257         * modules/localename (Depends-on): Likewise.
32258         * modules/relocatable-lib (Depends-on): Likewise.
32259         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
32260         * modules/relocatable-prog (Depends-on): Likewise.
32261         * modules/trim (Depends-on): Likewise.
32262         * modules/unictype/gen-ctype (Depends-on): Likewise.
32263         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32264
32265 2008-11-02  Bruno Haible  <bruno@clisp.org>
32266
32267         Mark 'strcspn' obsolete.
32268         * modules/strcspn (Status, Notice): New sections.
32269
32270 2008-11-02  Bruno Haible  <bruno@clisp.org>
32271
32272         Mark 'rmdir' obsolete.
32273         * modules/rmdir (Status, Notice): New sections.
32274         * modules/clean-temp (Depends-on): Add rmdir.
32275         * modules/openat (Depends-on): Likewise.
32276
32277 2008-11-02  Bruno Haible  <bruno@clisp.org>
32278
32279         Mark 'raise' obsolete.
32280         * modules/raise (Status, Notice): New sections.
32281         (Include): Specify <signal.h>.
32282         * modules/stdio (Depends-on): Add raise.
32283         * modules/write (Depends-on): Likewise.
32284
32285 2008-11-02  Bruno Haible  <bruno@clisp.org>
32286
32287         Mark 'memset' obsolete.
32288         * modules/memset (Status, Notice): New sections.
32289
32290 2008-11-02  Bruno Haible  <bruno@clisp.org>
32291
32292         Mark 'memmove' obsolete.
32293         * modules/memmove (Status, Notice): New sections.
32294         * modules/argp (Depends-on): Add memmove.
32295         * modules/argz (Depends-on): Likewise.
32296         * modules/canonicalize (Depends-on): Likewise.
32297         * modules/canonicalize-lgpl (Depends-on): Likewise.
32298         * modules/fts (Depends-on): Likewise.
32299         * modules/getcwd (Depends-on): Likewise.
32300         * modules/human (Depends-on): Likewise.
32301         * modules/regex (Depends-on): Likewise.
32302         * modules/striconveh (Depends-on): Likewise.
32303         * modules/trim (Depends-on): Likewise.
32304         * modules/unistr/u8-move (Depends-on): Likewise.
32305         * modules/unistr/u16-move (Depends-on): Likewise.
32306         * modules/unistr/u32-move (Depends-on): Likewise.
32307
32308 2008-11-02  Bruno Haible  <bruno@clisp.org>
32309
32310         Mark 'memcpy' obsolete.
32311         * modules/memcpy (Status, Notice): New sections.
32312
32313 2008-11-02  Bruno Haible  <bruno@clisp.org>
32314
32315         Mark 'memcmp' obsolete.
32316         * modules/memcmp (Status, Notice): New sections.
32317         * modules/argmatch (Depends-on): Add memchr.
32318         * modules/backupfile (Depends-on): Likewise.
32319         * modules/c-strcasestr (Depends-on): Likewise.
32320         * modules/crypto/des (Depends-on): Likewise.
32321         * modules/csharpcomp (Depends-on): Likewise.
32322         * modules/fnmatch (Depends-on): Likewise.
32323         * modules/git-merge-changelog (Depends-on): Likewise.
32324         * modules/isnand (Depends-on): Likewise.
32325         * modules/isnand-nolibm (Depends-on): Likewise.
32326         * modules/isnanf (Depends-on): Likewise.
32327         * modules/isnanf-nolibm (Depends-on): Likewise.
32328         * modules/isnanl (Depends-on): Likewise.
32329         * modules/isnanl-nolibm (Depends-on): Likewise.
32330         * modules/mbchar (Depends-on): Likewise.
32331         * modules/memcoll (Depends-on): Likewise.
32332         * modules/quotearg (Depends-on): Likewise.
32333         * modules/regex (Depends-on): Likewise.
32334         * modules/relocatable-prog (Depends-on): Likewise.
32335         * modules/same (Depends-on): Likewise.
32336         * modules/signbit (Depends-on): Likewise.
32337         * modules/strcasestr-simple (Depends-on): Likewise.
32338         * modules/unictype/gen-ctype (Depends-on): Likewise.
32339         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32340         * modules/uniname/uniname (Depends-on): Likewise.
32341         * modules/unistr/u8-cmp (Depends-on): Likewise.
32342
32343 2008-11-02  Bruno Haible  <bruno@clisp.org>
32344
32345         Mark 'memchr' obsolete.
32346         * modules/memchr (Status, Notice): New sections.
32347         * modules/argp (Depends-on): Add memchr.
32348         * modules/base64 (Depends-on): Likewise.
32349         * modules/c-strcasestr (Depends-on): Likewise.
32350         * modules/chdir-long (Depends-on): Likewise.
32351         * modules/fnmatch (Depends-on): Likewise.
32352         * modules/getsubopt (Depends-on): Likewise.
32353         * modules/git-merge-changelog (Depends-on): Likewise.
32354         * modules/glob (Depends-on): Likewise.
32355         * modules/strcasestr-simple (Depends-on): Likewise.
32356         * modules/strnlen (Depends-on): Likewise.
32357
32358 2008-11-02  Bruno Haible  <bruno@clisp.org>
32359
32360         Mark 'atexit' obsolete.
32361         * modules/atexit (Status, Notice): New sections.
32362         * modules/chdir-long (Depends-on): Add atexit.
32363         * modules/wait-process (Depends-on): Likewise.
32364
32365 2008-11-02  Bruno Haible  <bruno@clisp.org>
32366
32367         * gnulib-tool: New option --with-obsolete.
32368         (func_usage): Document it.
32369         (func_modules_transitive_closure): Drop obsolete dependencies if
32370         incobsolete is not true.
32371         (func_import): Read and save the incobsolete variable to the cache.
32372
32373 2008-11-02  Bruno Haible  <bruno@clisp.org>
32374
32375         * modules/TEMPLATE-EXTENDED: New field 'Status'.
32376         * gnulib-tool: New option --extract-status.
32377         (func_usage): Document it.
32378         (sed_extract_prog): Recognize it.
32379         (func_get_status): New function.
32380
32381 2008-10-30  Simon Josefsson  <simon@josefsson.org>
32382
32383         * modules/sockets (License): Change from LGPL to LGPLv2+.
32384
32385 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32386
32387         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
32388
32389 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32390
32391         * MODULES.html.sh (Support for systems lacking POSIX:2001):
32392         Mention times and sys_times.
32393         * modules/sys_times, modules/sys_times-tests: New modules.
32394         * modules/times, modules/times-tests: Likewise
32395         * m4/sys_times_h.m4: New file.
32396         * lib/sys_times.in.h: Likewise
32397         * lib/times.c: Likewise.
32398         * tests/test-sys_times.c: Likewise.
32399         * tests/test-times.c: Likewise.
32400         * doc/posix-headers/sys_times.texi: Update.
32401         * doc/posix-functions/times.texi: Update.
32402
32403 2008-10-28  Jim Meyering  <meyering@redhat.com>
32404
32405         * modules/tempname (Depends-on): Add lstat.
32406
32407         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
32408
32409 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32410
32411         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
32412         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
32413         using idiom used elsewhere in gnulib.
32414
32415 2008-10-27  Jim Meyering  <meyering@redhat.com>
32416
32417         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
32418
32419 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32420
32421         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
32422         TESTS_ENVIRONMENT, for shell scripts that needs to call built
32423         programs.
32424         * tests/test-argp-2.sh: Use $EXEEXT when needed.
32425
32426 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32427
32428         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
32429
32430 2008-10-27  Bruno Haible  <bruno@clisp.org>
32431
32432         * tests/test-lstat.c: Include <stdio.h>.
32433
32434 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32435
32436         * modules/lstat-tests: New module.
32437         * tests/test-lstat.c: New file.
32438
32439 2008-10-26  Jim Meyering  <meyering@redhat.com>
32440
32441         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
32442
32443 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32444             Bruno Haible  <bruno@clisp.org>
32445
32446         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
32447         * modules/configmake (Include): Add a note that the include must come
32448         after all system headers.
32449         * lib/javaversion.c: Include configmake.h after all other includes.
32450
32451 2008-10-26  Bruno Haible  <bruno@clisp.org>
32452
32453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
32454         HAVE_STRUCT_RANDOM_DATA to 1.
32455         (gl_STDLIB_H): Simplify.
32456
32457 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32458
32459         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
32460         substitute HAVE_STRUCT_RANDOM_DATA.
32461         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
32462         random_data.
32463         * modules/stdlib (Makefile.am): Substitute
32464         HAVE_STRUCT_RANDOM_DATA.
32465
32466 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32467
32468         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
32469         * doc/gnulib-intro.texi (Copyright): Likewise.
32470
32471 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32472
32473         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
32474         findings.
32475
32476 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
32477             Bruno Haible  <bruno@clisp.org>
32478
32479         * lib/unistd.in.h: Include <winsock2.h>.
32480         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
32481         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
32482         Provide dummy declarations.
32483         (gethostname): Override.
32484         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
32485         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
32486         gl_PREREQ_SYS_H_WINSOCK2.
32487         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
32488         * doc/posix-functions/gethostname.texi: More details.
32489
32490 2008-10-25  Bruno Haible  <bruno@clisp.org>
32491
32492         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
32493         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
32494         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
32495
32496         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
32497         here ...
32498         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
32499         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
32500         gl_UNISTD_H_DEFAULTS.
32501
32502 2008-10-25  Eric Blake  <ebb9@byu.net>
32503
32504         signbit: avoid spurious compiler failure
32505         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
32506         declarations inside function.
32507
32508 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32509             Bruno Haible  <bruno@clisp.org>
32510
32511         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
32512         * modules/random_r (Depends-on): Add stdint.
32513
32514 2008-10-24  Bruno Haible  <bruno@clisp.org>
32515
32516         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
32517         Eggert.
32518         * modules/strerror (License): Likewise.
32519
32520 2008-10-24  Jim Meyering  <meyering@redhat.com>
32521
32522         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
32523         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
32524
32525 2008-10-24  Eric Blake  <ebb9@byu.net>
32526
32527         getgroups: fix compilation when getgroups is available
32528         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
32529         but with <config.h> override of getgroups disabled.
32530
32531 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32532
32533         * doc/gnulib.texi (Header files): Add note about C++ problems.
32534         Explained by Bruno Haible <bruno@clisp.org>.
32535
32536 2008-10-23  Bruno Haible  <bruno@clisp.org>
32537
32538         Define a dummy SA_NODEFER macro on Interix.
32539         * lib/signal.in.h (SA_NODEFER): Define fallback.
32540         Reported by Aleksey Cheusov <cheusov@tut.by> via
32541         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
32542
32543 2008-10-23  Bruno Haible  <bruno@clisp.org>
32544
32545         * modules/freadahead (License): Change to LGPLv2+.
32546         Suggested by Simon Josefsson.
32547
32548 2008-10-23  Jim Meyering  <meyering@redhat.com>
32549
32550         random_r: new module
32551         * modules/random_r: New file.
32552         * m4/random_r.m4: New file.
32553         * lib/random_r.c: New file, from glibc.
32554         * modules/random_r-tests: New file.
32555         * tests/test-random_r.c: New file.
32556         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
32557          Declare.
32558         (RAND_MAX): Define.
32559         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
32560         * modules/stdlib: Substitute them, too.
32561         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
32562         * doc/glibc-functions/initstate_r.texi: Mention the new module.
32563         * doc/glibc-functions/random_r.texi: Likewise.
32564         * doc/glibc-functions/setstate_r.texi: Likewise.
32565         * doc/glibc-functions/srandom_r.texi: Likewise.
32566         * config/srclist.txt: Mention it.
32567
32568 2008-10-23  David Lutterkort  <lutter@redhat.com>
32569
32570         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
32571         link requirement
32572
32573 2008-10-23  Jim Meyering  <meyering@redhat.com>
32574
32575         selinux-h: mark parameters of stub functions as intentionally unused
32576         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
32577         * lib/se-context.in.h: Likewise.
32578
32579 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32580
32581         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
32582
32583 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32584
32585         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
32586
32587 2008-10-22  Eric Blake  <ebb9@byu.net>
32588
32589         glthread/thread: avoid compiler warning
32590         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
32591         Add unreachable abort to silence compiler.
32592
32593 2008-10-22  Eric Blake  <ebb9@byu.net>
32594
32595         netdb: also supply struct addrinfo for cygwin 1.5.x
32596         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
32597         older cygwin.
32598         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
32599         cygwin.
32600         * doc/posix-headers/netdb.texi (netdb.h): Document this.
32601
32602 2008-10-22  Bruno Haible  <bruno@clisp.org>
32603
32604         * users.txt: Update entry about pspp.
32605
32606 2008-10-21  Bruno Haible  <bruno@clisp.org>
32607
32608         Simplification.
32609         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
32610         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
32611
32612         Simplification.
32613         * lib/ioctl.c (ioctl): Don't undefine.
32614         * lib/socket.c (socket): Don't undefine.
32615
32616         Remove unused module indicator macros.
32617         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
32618         GNULIB_$1 as a C macro.
32619
32620         * doc/posix-functions/close.texi: Undo last change.
32621         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
32622         Windows platforms.
32623
32624 2008-10-21  Bruno Haible  <bruno@clisp.org>
32625
32626         Add gethostname() declaration to <unistd.h>.
32627         * lib/unistd.in.h (gethostname): New declaration.
32628         * lib/gethostname.c: Include <unistd.h>.
32629         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
32630         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
32631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
32632         and HAVE_GETHOSTNAME.
32633         * modules/gethostname (Depends-on): Add unistd.
32634         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32635         (Include): Specify <unistd.h>.
32636         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
32637         HAVE_GETHOSTNAME.
32638         * tests/test-gethostname.c: Include <unistd.h> first.
32639
32640 2008-10-21  Bruno Haible  <bruno@clisp.org>
32641
32642         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
32643         * modules/select-tests (Depends-on): Likewise.
32644         Reported by Simon Josefsson.
32645
32646 2008-10-21  Simon Josefsson  <simon@josefsson.org>
32647
32648         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
32649         * lib/accept.c: New file, based on winsock.c.
32650         * lib/bind.c: New file, based on winsock.c.
32651         * lib/connect.c: New file, based on winsock.c.
32652         * lib/getpeername.c: New file, based on winsock.c.
32653         * lib/getsockname.c: New file, based on winsock.c.
32654         * lib/getsockopt.c: New file, based on winsock.c.
32655         * lib/ioctl.c: New file, based on winsock.c.
32656         * lib/listen.c: New file, based on winsock.c.
32657         * lib/recv.c: New file, based on winsock.c.
32658         * lib/recvfrom.c: New file, based on winsock.c.
32659         * lib/send.c: New file, based on winsock.c.
32660         * lib/sendto.c: New file, based on winsock.c.
32661         * lib/setsockopt.c: New file, based on winsock.c.
32662         * lib/shutdown.c: New file, based on winsock.c.
32663         * lib/socket.c: New file, based on winsock.c.
32664         * lib/w32sock.h: New file, based on winsock.c.
32665         * lib/winsock.c: Remove file.
32666         * modules/accept: Likewise.
32667         * modules/bind: Likewise.
32668         * modules/connect: Likewise.
32669         * modules/getpeername: Likewise.
32670         * modules/getsockname: Likewise.
32671         * modules/getsockopt: Likewise.
32672         * modules/ioctl: Likewise.
32673         * modules/listen: Likewise.
32674         * modules/recv: Likewise.
32675         * modules/recvfrom: Likewise.
32676         * modules/send: Likewise.
32677         * modules/sendto: Likewise.
32678         * modules/setsockopt: Likewise.
32679         * modules/shutdown: Likewise.
32680         * modules/socket: Use socket.c instead of winsock.c.
32681         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
32682         * doc/posix-functions/accept.texi: Doc fix.
32683         * doc/posix-functions/bind.texi: Doc fix.
32684         * doc/posix-functions/close.texi: Doc fix.
32685         * doc/posix-functions/connect.texi: Doc fix.
32686         * doc/posix-functions/getpeername.texi: Doc fix.
32687         * doc/posix-functions/getsockname.texi: Doc fix.
32688         * doc/posix-functions/getsockopt.texi: Doc fix.
32689         * doc/posix-functions/ioctl.texi: Doc fix.
32690         * doc/posix-functions/listen.texi: Doc fix.
32691         * doc/posix-functions/recv.texi: Doc fix.
32692         * doc/posix-functions/recvfrom.texi: Doc fix.
32693         * doc/posix-functions/send.texi: Doc fix.
32694         * doc/posix-functions/sendto.texi: Doc fix.
32695         * doc/posix-functions/setsockopt.texi: Doc fix.
32696         * doc/posix-functions/shutdown.texi: Doc fix.
32697         * doc/posix-functions/socket.texi: Doc fix.
32698
32699 2008-10-20  Bruno Haible  <bruno@clisp.org>
32700
32701         Take into account the role of SIGABRT_COMPAT on Windows 2008.
32702         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
32703         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
32704         as an alias for SIGABRT.
32705         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
32706         (sigaction): Map it to SIGABRT.
32707         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
32708
32709 2008-10-20  Bruno Haible  <bruno@clisp.org>
32710
32711         * lib/fts.c: Don't include lstat.h.
32712         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
32713
32714         Move the lstat() declaration to <sys/stat.h>.
32715         * lib/lstat.h: Remove file.
32716         * lib/sys_stat.in.h: Add special invocation convention.
32717         (lstat): New declaration.
32718         * lib/lstat.c (orig_lstat): New function.
32719         (rpl_lstat): Use orig_lstat instead of lstat.
32720         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
32721         AC_C_INLINE. Set REPLACE_LSTAT.
32722         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
32723         and REPLACE_LSTAT.
32724         * modules/lstat (Files): Remove lib/lstat.h.
32725         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32726         (Include): Specify <sys/stat.h> instead of lstat.h.
32727         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
32728         REPLACE_LSTAT.
32729         * NEWS: Mention the change.
32730
32731 2008-10-20  Bruno Haible  <bruno@clisp.org>
32732
32733         * modules/posix_spawn-tests: New file.
32734         * tests/test-posix_spawn3.c: New file.
32735
32736 2008-10-20  Bruno Haible  <bruno@clisp.org>
32737
32738         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
32739         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32740         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
32741         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32742         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
32743
32744 2008-10-20  Bruno Haible  <bruno@clisp.org>
32745
32746         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
32747         of posix_spawn on AIX 5.3.
32748
32749 2008-10-20  Bruno Haible  <bruno@clisp.org>
32750
32751         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
32752
32753 2008-10-20  Bruno Haible  <bruno@clisp.org>
32754
32755         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
32756         of AC_LANG_PROGRAM.
32757
32758 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32759
32760         * lib/netdb.in.h: Don't define GNU specific constants until they
32761         are supported or needed.  Reported by Bruno Haible
32762         <bruno@clisp.org>.
32763
32764 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32765
32766         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
32767
32768 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32769
32770         * lib/getaddrinfo.h: Remove file.
32771         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
32772         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
32773         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
32774         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
32775         * modules/netdb: Substitute GNULIB_GETADDRINFO.
32776         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
32777         * tests/test-getaddrinfo.c: Likewise.
32778         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
32779         * NEWS: Mention change.
32780
32781 2008-10-19  Bruno Haible  <bruno@clisp.org>
32782
32783         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
32784
32785 2008-10-19  Bruno Haible  <bruno@clisp.org>
32786
32787         * lib/wait-process.c: Include simply <sys/wait.h>.
32788         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
32789         WIFSTOPPED): Remove fallback definitions.
32790         * modules/wait-process (Depends-on): Add sys_wait.
32791
32792         New module 'sys_wait'.
32793         * modules/sys_wait: New file.
32794         * lib/sys_wait.in.h: New file, partially copied from
32795         lib/wait-process.c.
32796         * m4/sys_wait_h.m4: New file.
32797         * doc/posix-headers/sys_wait.texi: Mention the new module.
32798
32799 2008-10-19  Bruno Haible  <bruno@clisp.org>
32800
32801         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
32802
32803 2008-10-19  Bruno Haible  <bruno@clisp.org>
32804
32805         Assume that waitpid() fills an 'int' status, not a 'union wait'.
32806         * lib/wait-process.c (WAIT_T): Remove type.
32807         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
32808         (wait_subprocess): Update.
32809
32810 2008-10-19  Bruno Haible  <bruno@clisp.org>
32811
32812         New module 'atoll'.
32813         * modules/atoll: New file.
32814         * lib/stdlib.in.h (atoll): New declaration.
32815         * lib/atoll.c: New file, from glibc with modifications.
32816         * m4/atoll.m4: New file.
32817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
32818         HAVE_ATOLL.
32819         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
32820         * doc/posix-functions/atoll.texi: Mention the new module.
32821
32822 2008-10-19  Bruno Haible  <bruno@clisp.org>
32823
32824         Add strtoull() declaration to <stdlib.h>.
32825         * lib/stdlib.in.h (strtoull): New declaration.
32826         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32827         Set HAVE_STRTOULL.
32828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
32829         HAVE_STRTOULL.
32830         * modules/strtoull (Depends-on): Add stdlib.
32831         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32832         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
32833         HAVE_STRTOULL.
32834
32835 2008-10-19  Bruno Haible  <bruno@clisp.org>
32836
32837         Add strtoll() declaration to <stdlib.h>.
32838         * lib/stdlib.in.h (strtoll): New declaration.
32839         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32840         Set HAVE_STRTOLL.
32841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
32842         HAVE_STRTOLL.
32843         * modules/strtoll (Depends-on): Add stdlib.
32844         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32845         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
32846
32847 2008-10-19  Bruno Haible  <bruno@clisp.org>
32848
32849         * modules/bcopy (Depends-on): Add strings.
32850         (Include): Specify <strings.h>.
32851
32852 2008-10-19  Bruno Haible  <bruno@clisp.org>
32853
32854         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
32855
32856 2008-10-19  Bruno Haible  <bruno@clisp.org>
32857
32858         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
32859         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
32860         mingw.
32861
32862 2008-10-19  Bruno Haible  <bruno@clisp.org>
32863
32864         * lib/atanl.c: Don't include isnanl.h.
32865         * lib/cosl.c: Likewise.
32866         * lib/ldexpl.c: Likewise.
32867         * lib/logl.c: Likewise.
32868         * lib/sinl.c: Likewise.
32869         * lib/sqrtl.c: Likewise.
32870         * lib/tanl.c: Likewise.
32871
32872         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
32873         * lib/isnanf.h: Remove file.
32874         * lib/isnand.h: Remove file.
32875         * lib/isnanl.h: Remove file.
32876         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
32877         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
32878         macros.
32879         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
32880         HAVE_ISNANF, don't define it as a C macro.
32881         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
32882         HAVE_ISNAND, don't define it as a C macro.
32883         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
32884         HAVE_ISNANL, don't define it as a C macro.
32885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
32886         HAVE_ISNAN[FDL].
32887         * modules/isnanf (Files): Remove lib/isnanf.h.
32888         (Depends-on): Add math.
32889         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32890         (Include): Specify <math.h> instead of isnanf.h.
32891         * modules/isnand (Files): Remove lib/isnand.h.
32892         (Depends-on): Add math.
32893         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32894         (Include): Specify <math.h> instead of isnand.h.
32895         * modules/isnanl (Files): Remove lib/isnanl.h.
32896         (Depends-on): Add math.
32897         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32898         (Include): Specify <math.h> instead of isnanl.h.
32899         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
32900         HAVE_ISNAN[FDL].
32901         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
32902         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
32903         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
32904         * NEWS: Mention the change.
32905
32906 2008-10-18  Bruno Haible  <bruno@clisp.org>
32907
32908         Add getusershell(), setusershell(), endusershell() declarations to
32909         <unistd.h>.
32910         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
32911         declarations.
32912         * lib/getusershell.c: Include unistd.h.
32913         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
32914         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32915         HAVE_GETUSERSHELL.
32916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
32917         and HAVE_GETUSERSHELL.
32918         * modules/getusershell (Depends-on): Add unistd, extensions.
32919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32920         (Include): Specify <unistd.h>.
32921         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
32922         HAVE_GETUSERSHELL.
32923
32924 2008-10-18  Bruno Haible  <bruno@clisp.org>
32925
32926         Add a getloadavg() declaration to <stdlib.h>.
32927         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
32928         getloadavg declaration.
32929         (getloadavg): New declaration.
32930         * lib/getloadavg.c: Include <stdlib.h> first.
32931         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
32932         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
32933         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
32934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
32935         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32936         * modules/getloadavg (Depends-on): Add stdlib, extensions.
32937         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32938         (Include): Specify <stdlib.h>.
32939         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
32940         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32941
32942 2008-10-18  Bruno Haible  <bruno@clisp.org>
32943
32944         * lib/dirchownmod.c: Don't include lchmod.h.
32945
32946         Move the lchmod() declaration to <sys/stat.h>.
32947         * lib/lchmod.h: Remove file.
32948         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
32949         (lchmod): New declaration, moved here from lib/lchown.h.
32950         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
32951         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
32952         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
32953         and HAVE_LCHMOD.
32954         * modules/lchmod (Files): Remove lib/lchmod.h.
32955         (Depends-on): Add sys_stat, extensions.
32956         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32957         (Include): Specify <sys/stat.h> instead of lchmod.h.
32958         * modules/sys_stat (Depends-on): Add link-warning.
32959         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
32960         definition of GL_LINK_WARNING.
32961         * NEWS: Mention the change.
32962
32963 2008-10-18  Bruno Haible  <bruno@clisp.org>
32964
32965         * lib/fchdir.c: Don't include dirfd.h.
32966         * lib/fts.c: Likewise.
32967         * lib/getcwd.c: Likewise.
32968         * lib/glob.c: Likewise.
32969
32970         Move the dirfd() declaration to <dirent.h>.
32971         * lib/dirfd.h: Remove file.
32972         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
32973         (dirfd): New declaration.
32974         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
32975         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
32976         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
32977         HAVE_DECL_DIRFD.
32978         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
32979         HAVE_DECL_DIRFD.
32980         * modules/dirfd (Files): Remove lib/dirfd.h.
32981         (Depends-on): Add dirent, extensions.
32982         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
32983         (Include): Specify <dirent.h> instead of dirfd.h.
32984         * modules/dirent (Depends-on): Add link-warning.
32985         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
32986         definition of GL_LINK_WARNING.
32987         * NEWS: Mention the change.
32988
32989 2008-10-18  Bruno Haible  <bruno@clisp.org>
32990
32991         Move the euidaccess() declaration to <unistd.h>.
32992         * lib/euidaccess.h: Remove file.
32993         * lib/unistd.in.h (euidaccess): New declaration.
32994         * lib/euidaccess.c: Don't include euidaccess.h.
32995         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
32996         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
32997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
32998         and HAVE_EUIDACCESS.
32999         * modules/euidaccess (Files): Remove lib/euidaccess.h.
33000         (Depends-on): Add unistd.
33001         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33002         (Include): Specify <unistd.h> instead of euidaccess.h.
33003         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
33004         HAVE_EUIDACCESS.
33005         * NEWS: Mention the change.
33006
33007 2008-10-18  Bruno Haible  <bruno@clisp.org>
33008
33009         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
33010
33011         Move the getdomainname() declaration to <unistd.h>.
33012         * lib/getdomainname.h: Remove file.
33013         * lib/unistd.in.h (getdomainname): New declaration.
33014         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
33015         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
33016         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33017         HAVE_GETDOMAINNAME.
33018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33019         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
33020         * modules/getdomainname (Files): Remove lib/getdomainname.h.
33021         (Depends-on): Add unistd, extensions.
33022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33023         (Includes): Specify <unistd.h> instead of getdomainname.h.
33024         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
33025         HAVE_GETDOMAINNAME.
33026         * NEWS: Mention the change.
33027
33028 2008-10-18  Bruno Haible  <bruno@clisp.org>
33029
33030         * modules/dirent: New file.
33031         * m4/dirent_h.m4: New file.
33032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
33033         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
33034         * modules/fchdir (Files): Remove lib/dirent.in.h.
33035         (Depends-on): Add dirent.
33036         (Makefile.am): Move rules to modules/dirent.
33037         * doc/posix-headers/dirent.texi: Mention the new module.
33038
33039 2008-10-18  Bruno Haible  <bruno@clisp.org>
33040
33041         Avoid -Wunused-parameter warnings in public gnulib header files.
33042         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
33043         macro.
33044         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
33045
33046 2008-10-18  Bruno Haible  <bruno@clisp.org>
33047
33048         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
33049         * doc/glibc-functions/error.texi: Mention the module 'error'.
33050         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
33051         * doc/glibc-functions/getdomainname.texi: Mention the module
33052         'getdomainname'.
33053         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
33054         * doc/glibc-functions/getpagesize.texi: Mention the module
33055         'getpagesize'.
33056         * doc/glibc-functions/getusershell.texi: Mention the module
33057         'getusershell'.
33058         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
33059         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
33060         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
33061         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
33062         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
33063         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
33064         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
33065         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
33066         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
33067         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
33068         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
33069         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
33070         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
33071         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
33072
33073 2008-10-17  Bruno Haible  <bruno@clisp.org>
33074
33075         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
33076         HP-UX and IRIX, use -0.0L.
33077         * tests/test-ceill.c (minus_zero): Likewise.
33078         * tests/test-floorl.c (minus_zero): Likewise.
33079         * tests/test-frexpl.c (minus_zero): Likewise.
33080         * tests/test-isnan.c (minus_zerol): Likewise.
33081         * tests/test-isnanl.h (minus_zero): Likewise.
33082         * tests/test-ldexpl.c (minus_zero): Likewise.
33083         * tests/test-roundl.c (minus_zero): Likewise.
33084         * tests/test-signbit.c (minus_zerol): Likewise.
33085         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33086         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33087         * tests/test-truncl.c (minus_zero): Likewise.
33088         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33089         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33090         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
33091         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33092
33093 2008-10-17  Bruno Haible  <bruno@clisp.org>
33094
33095         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
33096         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
33097         that it gets activated only for gcc >= 3.0.
33098         * lib/dirent.in.h: Likewise.
33099         * lib/errno.in.h: Likewise.
33100         * lib/fcntl.in.h: Likewise.
33101         * lib/float.in.h: Likewise.
33102         * lib/iconv.in.h: Likewise.
33103         * lib/inttypes.in.h: Likewise.
33104         * lib/locale.in.h: Likewise.
33105         * lib/math.in.h: Likewise.
33106         * lib/netdb.in.h: Likewise.
33107         * lib/netinet_in.in.h: Likewise.
33108         * lib/search.in.h: Likewise.
33109         * lib/signal.in.h: Likewise.
33110         * lib/spawn.in.h: Likewise.
33111         * lib/stdarg.in.h: Likewise.
33112         * lib/stdint.in.h: Likewise.
33113         * lib/stdio.in.h: Likewise.
33114         * lib/stdlib.in.h: Likewise.
33115         * lib/string.in.h: Likewise.
33116         * lib/strings.in.h: Likewise.
33117         * lib/sys_file.in.h: Likewise.
33118         * lib/sys_ioctl.in.h: Likewise.
33119         * lib/sys_select.in.h: Likewise.
33120         * lib/sys_socket.in.h: Likewise.
33121         * lib/sys_stat.in.h: Likewise.
33122         * lib/sys_time.in.h: Likewise.
33123         * lib/sysexits.in.h: Likewise.
33124         * lib/time.in.h: Likewise.
33125         * lib/unistd.in.h: Likewise.
33126         * lib/wchar.in.h: Likewise.
33127         * lib/wctype.in.h: Likewise.
33128         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33129
33130 2008-10-17  Jim Meyering  <meyering@redhat.com>
33131
33132         ignore-value: don't depend on inline module
33133         * modules/ignore-value (Depends-on): Remove 'inline'.
33134         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
33135         Suggestion from Bruno Haible.
33136
33137 2008-10-17  Bruno Haible  <bruno@clisp.org>
33138
33139         New implementation of condition variables for Win32.
33140         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
33141         (gl_linked_waitqueue_t): New type.
33142         (gl_cond_t): Use it.
33143         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
33144         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
33145         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
33146         (glthread_cond_init_func, glthread_cond_wait_func,
33147         glthread_cond_timedwait_func, glthread_cond_signal_func,
33148         glthread_cond_broadcast_func, glthread_cond_destroy_func):
33149         Reimplemented on the basis of gl_linked_waitqueue_t.
33150         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
33151         gl_waitqueue_t.
33152         (gl_rwlock_t): Update.
33153         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
33154
33155 2008-10-17  Simon Josefsson  <simon@josefsson.org>
33156
33157         * modules/recvfrom (Depends-on): Add dependency on getpeername.
33158         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33159
33160 2008-10-17  Jim Meyering  <meyering@redhat.com>
33161
33162         ignore-value: new module
33163         * modules/ignore-value: New file.
33164         * lib/ignore-value.h: New file.
33165         * MODULES.html.sh (Compiler warning management): New section,
33166         just for this module.  More to come.
33167
33168 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33169
33170         open-safer.c: avoid 'signed and unsigned in conditional...' warning
33171         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
33172         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
33173
33174 2008-10-16  Jim Meyering  <meyering@redhat.com>
33175
33176         openat-die.c: avoid 'no previous prototype' warning
33177         * lib/openat-die.c: Include "openat.h".
33178         Reported by Reuben Thomas <rrt@sc3d.org>.
33179
33180 2008-10-16  Simon Josefsson  <simon@josefsson.org>
33181
33182         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
33183         * lib/netdb.in.h: Fix typo.
33184         Reported by Bruno Haible  <bruno@clisp.org>
33185
33186         * lib/netdb.in.h: Include sys/socket.h for platforms without
33187         netdb.h, to get structures like hostent on MinGW.
33188         * modules/netdb (Depends-on): Add sys_socket.
33189
33190 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33191
33192         * modules/netdb, modules/netdb-tests: New file.
33193         * m4/netdb_h.m4: New file.
33194         * lib/netdb.in.h: Add, currently just an empty file pending
33195         definitions.
33196         * tests/test-netdb.c: New file.
33197         * doc/posix-headers/netdb.texi: Mention that we replace it if
33198         needed.
33199         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33200         netdb.
33201
33202 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33203
33204         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
33205         with code.
33206
33207 2008-10-13  Bruno Haible  <bruno@clisp.org>
33208
33209         * lib/glthread/cond.c (glthread_cond_wait_func,
33210         glthread_cond_timedwait_func): Add a comment.
33211
33212 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33213
33214         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
33215         * tests/test-select.c: Likewise,
33216
33217 2008-10-13  Bruno Haible  <bruno@clisp.org>
33218
33219         * lib/glthread/cond.c (glthread_cond_wait_func,
33220         glthread_cond_timedwait_func): Fix variable name.
33221         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33222
33223 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
33224
33225         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
33226         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
33227         struct sockaddr.sa_len.
33228         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
33229
33230 2008-10-13  Simon Josefsson  <simon@josefsson.org>
33231
33232         * build-aux/pmccabe2html: Add css and css_url parameters.
33233
33234 2008-10-12  Bruno Haible  <bruno@clisp.org>
33235
33236         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
33237         calling aclx_get.
33238         Reported by Rainer Tammer <tammer@tammer.net>.
33239
33240 2008-10-12  Bruno Haible  <bruno@clisp.org>
33241
33242         Use msvcrt aware primitives for creation/termination of Win32 threads.
33243         * lib/glthread/thread.c: Include <process.h>.
33244         (glthread_create_func): Use _beginthreadex instead of CreateThread.
33245         (wrapper_func): Update signature.
33246         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
33247
33248 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33249             Bruno Haible  <bruno@clisp.org>
33250
33251         Provide a Win32 implementation of the 'cond' module.
33252         * lib/glthread/cond.h [USE_WIN32]: New implementation.
33253         * lib/glthread/cond.c (glthread_cond_init_func,
33254         glthread_cond_wait_func, glthread_cond_timedwait_func,
33255         glthread_cond_signal_func, glthread_cond_broadcast_func,
33256         glthread_cond_destroy_func) [USE_WIN32]: New functions.
33257         * modules/cond (Dependencies): Add gettimeofday.
33258
33259 2008-10-11  Bruno Haible  <bruno@clisp.org>
33260
33261         Make sleep work on older versions of mingw.
33262         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
33263         only whether it exists.
33264         * doc/posix-functions/sleep.texi: Mention the problem with older
33265         versions of mingw.
33266
33267 2008-10-11  Bruno Haible  <bruno@clisp.org>
33268
33269         New module 'shutdown'.
33270         * modules/shutdown: New file.
33271         * lib/sys_socket.in.h (shutdown): New declaration.
33272         * lib/winsock.c (shutdown): New function.
33273         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33274         GNULIB_SHUTDOWN.
33275         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
33276         * doc/posix-functions/shutdown.texi: Document the new module.
33277
33278 2008-10-11  Jim Meyering  <meyering@redhat.com>
33279
33280         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
33281
33282 2008-10-11  Bruno Haible  <bruno@clisp.org>
33283
33284         New module 'fclose'.
33285         * modules/fclose: New file.
33286         * lib/stdio.in.h (fclose): New declaration.
33287         * lib/fclose.c: New file.
33288         * m4/fclose.m4: New file.
33289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
33290         REPLACE_FCLOSE.
33291         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
33292         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
33293         REPLACE_FCLOSE.
33294         * modules/close (Depends-on): fclose.
33295         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
33296
33297 2008-10-11  Bruno Haible  <bruno@clisp.org>
33298
33299         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
33300         set errno and don't call _close.
33301
33302 2008-10-10  Bruno Haible  <bruno@clisp.org>
33303
33304         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
33305         ACL, not afterwards. Fixes test failure on Cygwin.
33306
33307 2008-10-09  Ben Pfaff  <blp@gnu.org>
33308
33309         * build-aux/announce-gen: Fix gnulib version related part of usage
33310         message.  Die with a useful error message if no tarballs are
33311         found.
33312
33313 2008-10-10  Jim Meyering  <meyering@redhat.com>
33314
33315         bootstrap: use git's --depth=N option only if it's supported
33316         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
33317         recognize the --depth option.  Reported by Pádraig Brady.
33318
33319 2008-10-09  Bruno Haible  <bruno@clisp.org>
33320
33321         New module 'ioctl'.
33322         * modules/ioctl: New file.
33323         * lib/sys_socket.in.h (ioctl): Remove declaration.
33324         * lib/winsock.c: Include <sys/ioctl.h>.
33325         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
33326         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33327         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
33328         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
33329         * doc/posix-functions/ioctl.texi: Mention the new module.
33330
33331 2008-10-09  Bruno Haible  <bruno@clisp.org>
33332
33333         New module 'sys_ioctl'.
33334         * lib/sys_ioctl.in.h: New file.
33335         * m4/sys_ioctl_h.m4: New file.
33336         * modules/sys_ioctl: New file.
33337         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
33338
33339 2008-10-09  Bruno Haible  <bruno@clisp.org>
33340
33341         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
33342         * lib/winsock.c: Include <stdarg.h>.
33343         (rpl_ioctl): Change to second argument 'int' and then varargs.
33344
33345 2008-10-09  Bruno Haible  <bruno@clisp.org>
33346
33347         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
33348         when the sys_socket module is present and the system has <winsock2.h>.
33349
33350 2008-10-09  Bruno Haible  <bruno@clisp.org>
33351
33352         * doc/posix-functions/close.texi: Mention module 'close' instead of
33353         module 'sys_socket'.
33354
33355 2008-10-09  Bruno Haible  <bruno@clisp.org>
33356
33357         * doc/glibc-headers/sys_ioctl.texi: New file.
33358         * doc/gnulib.texi: Include it.
33359
33360 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33361             Bruno Haible  <bruno@clisp.org>
33362
33363         Combine the two replacements of 'close'.
33364         * lib/sys_socket.in.h (close): Define to a reminder to include
33365         <unistd.h>.
33366         (_gl_close_fd_maybe_socket): New declaration.
33367         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
33368         * lib/winsock.c (close): Remove undefinition.
33369         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
33370         needed for the gnulib module 'close'.
33371         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
33372         define to an error symbol or to a warning, if suitable.
33373         * lib/close.c: Include <sys/socket.h>.
33374         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
33375         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
33376         UNISTD_H_HAVE_WINSOCK2_H.
33377         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
33378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33379         UNISTD_H_HAVE_WINSOCK2_H.
33380         * modules/sys_socket (Files): Add m4/unistd_h.m4.
33381         (configure.ac): Set a module indicator.
33382         (Makefile.am): Substitute GNULIB_CLOSE.
33383         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
33384         * modules/poll-tests (Depends-on): Add close.
33385         * modules/select-tests (Depends-on): Likewise.
33386
33387 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33388             Bruno Haible  <bruno@clisp.org>
33389
33390         New module 'close'.
33391         * modules/close: New file.
33392         * lib/unistd.in.h (close): Move declaration out of the
33393         FCHDIR_REPLACEMENT scope.
33394         (_gl_unregister_fd): New declaration.
33395         * lib/close.c: New file.
33396         * lib/fchdir.c (rpl_close): Remove function.
33397         * m4/close.m4: New file.
33398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33399         close.
33400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
33401         REPLACE_CLOSE.
33402         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
33403         REPLACE_CLOSE.
33404         * modules/fchdir (Depends-on): Add close.
33405
33406 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33407             Bruno Haible  <bruno@clisp.org>
33408
33409         * lib/fcntl.in.h (open): Simplify conditionals.
33410         (_gl_register_fd): New declaration.
33411         * lib/fchdir.c (rpl_open): Remove function.
33412         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
33413         also.
33414         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
33415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33416         open.
33417
33418 2008-10-09  Jim Meyering  <meyering@redhat.com>
33419
33420         GNUmakefile: use the more name-space-friendly "_version"
33421         * top/GNUmakefile (_dummy): Update.
33422         (_version): Rename from "version".
33423
33424 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33425             Bruno Haible  <bruno@clisp.org>
33426
33427         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
33428         rpl_close.
33429         (_gl_register_fd): New function, extracted from rpl_open.
33430         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
33431         (rpl_open, rpl_opendir): Use _gl_register_fd.
33432
33433 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33434
33435         Fix organization of 'open' replacement.
33436         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
33437         (gl_FUNC_OPEN): Use it.
33438         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
33439
33440 2008-10-08  Bruno Haible  <bruno@clisp.org>
33441
33442         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
33443
33444 2008-10-08  Simon Josefsson  <simon@josefsson.org>
33445
33446         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
33447         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
33448         listen).
33449
33450 2008-10-08  Eric Blake  <ebb9@byu.net>
33451
33452         GNUmakefile: add 'make version' target
33453         * top/GNUmakefile (_curr-ver): Split version update rules...
33454         (version): ...into a target.
33455
33456 2008-10-07  Bruno Haible  <bruno@clisp.org>
33457
33458         Use a more portable replacement expression for -0.0L.
33459         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
33460         instead of -0.0L. Fix m4 quotation.
33461
33462         * tests/test-signbit.c: Include <float.h>.
33463         (minus_zero): New variable.
33464         (test_signbitl): Use minus_zero instead of -zero.
33465         * modules/signbit-tests (Depends-on): Add float.
33466
33467         * tests/test-ceill.c: Include <float.h>.
33468         (zero): Remove variable.
33469         (minus_zero): New variable.
33470         (main): Use minus_zero instead of -zero.
33471         * modules/ceill-tests (Depends-on): Add float.
33472
33473         * tests/test-floorl.c: Include <float.h>.
33474         (zero): Remove variable.
33475         (minus_zero): New variable.
33476         (main): Use minus_zero instead of -zero.
33477         * modules/floorl-tests (Depends-on): Add float.
33478
33479         * tests/test-roundl.c: Include <float.h>.
33480         (zero): Remove variable.
33481         (minus_zero): New variable.
33482         (main): Use minus_zero instead of -zero.
33483         * modules/roundl-tests (Depends-on): Add float.
33484
33485         * tests/test-truncl.c: Include <float.h>.
33486         (zero): Remove variable.
33487         (minus_zero): New variable.
33488         (main): Use minus_zero instead of -zero.
33489         * modules/truncl-tests (Depends-on): Add float.
33490
33491         * tests/test-frexpl.c (zero): Remove variable.
33492         (minus_zero): New variable.
33493         (main): Use minus_zero instead of -zero.
33494         * modules/frexpl-tests (Depends-on): Add float.
33495
33496         * tests/test-isnan.c (zerol): Remove variable.
33497         (minus_zerol): New variable.
33498         (test_long_double): Use minus_zerol instead of -zerol.
33499         * modules/isnan-tests (Depends-on): Add float.
33500
33501         * tests/test-isnanl.h (zero): Remove variable.
33502         (minus_zero): New variable.
33503         (main): Use minus_zero instead of -zero.
33504         * modules/isnanl-nolibm-tests (Depends-on): Add float.
33505         * modules/isnanl-tests (Depends-on): Add float.
33506
33507         * tests/test-ldexpl.c (zero): Remove variable.
33508         (minus_zero): New variable.
33509         (main): Use minus_zero instead of -zero.
33510         * modules/ldexpl-tests (Depends-on): Add float.
33511
33512         * tests/test-snprintf-posix.h (zerol): Remove variable.
33513         (minus_zerol): New variable.
33514         (test_function): Use minus_zerol instead of -zerol.
33515         * modules/snprintf-posix-tests (Depends-on): Add float.
33516         * modules/vsnprintf-posix-tests (Depends-on): Add float.
33517
33518         * tests/test-sprintf-posix.h (zerol): Remove variable.
33519         (minus_zerol): New variable.
33520         (test_function): Use minus_zerol instead of -zerol.
33521         * modules/sprintf-posix-tests (Depends-on): Add float.
33522         * modules/vsprintf-posix-tests (Depends-on): Add float.
33523
33524         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
33525         (minus_zerol): New variable.
33526         (test_function): Use minus_zerol instead of -zerol.
33527         * modules/vasnprintf-posix-tests (Depends-on): Add float.
33528
33529         * tests/test-vasprintf-posix.c (zerol): Remove variable.
33530         (minus_zerol): New variable.
33531         (test_function): Use minus_zerol instead of -zerol.
33532         * modules/vasprintf-posix-tests (Depends-on): Add float.
33533
33534 2008-10-07  Simon Josefsson  <simon@josefsson.org>
33535
33536         * MODULES.html.sh (Support for building documentation): Mention
33537         pmccabe2html.  Sort entries.
33538
33539         Add pmccabe2html module, from gnupdf.
33540         * build-aux/pmccabe.css: New file.
33541         * build-aux/pmccabe2html: New file.
33542         * m4/pmccabe2html.m4: New file.
33543         * modules/pmccabe2html: New file.
33544
33545 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
33546
33547         flock: new module
33548         * MODULES.html.sh: Add to list of modules.
33549         * lib/flock.c: flock implementation for Windows and Unix systems
33550         which have fcntl.
33551         * doc/glibc-functions/flock.texi: Update documentation.
33552         * lib/sys_file.in.h: <sys/file.h> header file.
33553         * m4/flock.m4: M4 macros.
33554         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
33555         * modules/flock: flock module.
33556         * modules/flock-tests: flock tests module.
33557         * modules/sys_file: sys/file.h module.
33558         * tests/test-flock.c: test suite for flock.
33559
33560 2008-10-06  Jim Meyering  <meyering@redhat.com>
33561
33562         bootstrap: check for LT_INIT more portably still ;-)
33563         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
33564         Spotted by Bruno Haible.
33565
33566 2008-10-06  Eric Blake  <ebb9@byu.net>
33567
33568         test-signbit: avoid tripping Irix cc bug on -0.0L
33569         * tests/test-signbit.c (minus_zerol): Delete, and replace with
33570         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
33571         entire testsuite consistent and avoids an Irix 6.2 bug.
33572
33573 2008-10-05  Bruno Haible  <bruno@clisp.org>
33574             Jim Meyering  <jim@meyering.net>
33575
33576         Add an option for ignoring EPIPE during close_stdout.
33577         * lib/closeout.h: Include <stdbool.h>.
33578         (close_stdout_set_ignore_EPIPE): New declaration.
33579         * lib/closeout.c: Include <stdbool.h>.
33580         (ignore_EPIPE): New variable.
33581         (close_stdout_set_ignore_EPIPE): New function.
33582         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
33583         * lib/close-stream.c (close_stream): Mention the possible EPIPE
33584         failure.
33585         * modules/closeout (Depends-on): Add stdbool.
33586
33587 2008-10-05  Bruno Haible  <bruno@clisp.org>
33588
33589         * modules/accept: New file.
33590         * modules/bind: New file.
33591         * modules/connect: New file.
33592         * modules/getpeername: New file.
33593         * modules/getsockname: New file.
33594         * modules/getsockopt: New file.
33595         * modules/listen: New file.
33596         * modules/recv: New file.
33597         * modules/recvfrom: New file.
33598         * modules/send: New file.
33599         * modules/sendto: New file.
33600         * modules/setsockopt: New file.
33601         * modules/socket: New file.
33602         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
33603         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33604         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
33605         the particular module is requested. Add a link warning when the
33606         particular module is not requested.
33607         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
33608         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
33609         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
33610         the particular module is requested.
33611         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
33612         gl_SYS_SOCKET_H_DEFAULTS): New macros.
33613         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
33614         * modules/sys_socket (Depends-on): Add link-warning.
33615         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
33616         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
33617         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
33618         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
33619         GL_LINK_WARNING.
33620         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
33621         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
33622         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
33623         * doc/posix-functions/getpeername.texi: Mention the new module
33624         'getpeername'.
33625         * doc/posix-functions/getsockname.texi: Mention the new module
33626         'getsockname'.
33627         * doc/posix-functions/getsockopt.texi: Mention the new module
33628         'getsockopt'.
33629         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
33630         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
33631         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
33632         * doc/posix-functions/send.texi: Mention the new module 'send'.
33633         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
33634         * doc/posix-functions/setsockopt.texi: Mention the new module
33635         'setsockopt'.
33636         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
33637         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
33638         listen, connect, accept.
33639         * modules/select-tests (Depends-on): Likewise.
33640
33641 2008-10-05  Bruno Haible  <bruno@clisp.org>
33642
33643         * lib/winsock.c (strerror): Remove unused #undef.
33644         (rpl_close): Remove unused local variable.
33645
33646         * modules/sys_socket (Depends-on); Add errno.
33647
33648 2008-10-05  Bruno Haible  <bruno@clisp.org>
33649
33650         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
33651         (select): Add a link warning when the 'select' module is not used.
33652         * modules/sys_select (Depends-on): Add link-warning.
33653         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
33654         Suggested by Paolo Bonzini.
33655
33656 2008-10-05  Jim Meyering  <meyering@redhat.com>
33657
33658         bootstrap: check for LT_INIT more portably
33659         * build-aux/bootstrap: Avoid using grep -E, since it's not
33660         portable enough.  Suggestion from Bruno Haible.
33661
33662 2008-10-05  Bruno Haible  <bruno@clisp.org>
33663
33664         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
33665         as being fixed by gnulib.
33666
33667 2008-10-05  Bruno Haible  <bruno@clisp.org>
33668
33669         * modules/select-tests: New file, mostly copied from
33670         modules/sys_select-tests.
33671         * tests/test-select.c: New file, mostly copied from
33672         tests/test-sys_select.c.
33673         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
33674         * modules/sys_select-tests (Depends-on): Remove all dependencies.
33675         (Makefile.am): Remove test_sys_select_LDADD.
33676
33677         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
33678         to an undefined symbol, for an error message.
33679         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
33680         (gl_SYS_SELECT_H_DEFAULTS): New macro.
33681         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
33682         winsock-select.c here.
33683         * modules/sys_select (Files): Remove lib/winsock-select.c.
33684         (Depends-on): Remove alloca.
33685         (Makefile.am): Substitute GNULIB_SELECT.
33686         * modules/select: New file.
33687         * doc/posix-functions/select.texi: Update.
33688
33689 2008-10-05  Bruno Haible  <bruno@clisp.org>
33690
33691         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
33692         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
33693         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
33694         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
33695         getdtablesize.
33696         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
33697         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
33698
33699 2008-10-05  Bruno Haible  <bruno@clisp.org>
33700
33701         * modules/getdtablesize-tests: New file.
33702         * tests/test-getdtablesize.c: New file.
33703
33704         New module 'getdtablesize'.
33705         * lib/unistd.in.h (getdtablesize): New declaration.
33706         * lib/getdtablesize.c: New file.
33707         * m4/getdtablesize.m4: New file.
33708         * modules/getdtablesize: New file.
33709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33710         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
33711         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
33712         HAVE_GETDTABLESIZE.
33713         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
33714
33715 2008-10-05  Bruno Haible  <bruno@clisp.org>
33716
33717         * modules/sched (Makefile.am): Fix typo.
33718         Reported by Simon Josefsson.
33719
33720 2008-10-05  Jim Meyering  <meyering@redhat.com>
33721
33722         bootstrap: check for LT_INIT, too
33723         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
33724         are deprecated.  Suggestion from Ralf Wildenhues.
33725
33726 2008-10-05  Bruno Haible  <bruno@clisp.org>
33727
33728         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
33729         overriding them by ours.
33730         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
33731
33732 2008-10-05  Jim Meyering  <meyering@redhat.com>
33733
33734         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
33735         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
33736         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
33737
33738 2008-10-04  Bruno Haible  <bruno@clisp.org>
33739
33740         * modules/dup2 (License): Change to LGPLv2+.
33741         * modules/sleep (License): Likewise.
33742         * modules/perror (License): Likewise.
33743         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
33744         Blake.
33745         * modules/signal (License): Likewise.
33746         * modules/sigprocmask (License): Likewise.
33747         * modules/raise (License): Change to LGPLv2+, with approval by Jim
33748         Meyering.
33749
33750 2008-10-04  Bruno Haible  <bruno@clisp.org>
33751
33752         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
33753         Reported by Rainer Tammer <tammer@tammer.net>.
33754
33755 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
33756             Bruno Haible  <bruno@clisp.org>
33757
33758         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
33759         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
33760         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
33761
33762 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
33763
33764         filevercmp: new module
33765         * lib/filevercmp.h: New function filevercmp comparing version strings.
33766         * lib/filevercmp.c: Implementation of filevercmp function.
33767         * modules/filevercmp: Module metadata.
33768         * tests/test-filevercmp.c: Unit test for new module.
33769         * modules/filevercmp-tests: Unit test metadata.
33770         * MODULES.html.sh: Add filevercmp module.
33771
33772 2008-10-03  Bruno Haible  <bruno@clisp.org>
33773
33774         * lib/c-ctype.h: Add comment.
33775         Reported by Jim Meyering.
33776
33777 2008-10-02  Bruno Haible  <bruno@clisp.org>
33778
33779         * modules/posix_spawn-internal (Depends-on): Add 'open'.
33780
33781 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33782
33783         * build-aux/bootstrap: Allow renaming bootstrap, and change the
33784         name of bootstrap.conf accordingly.
33785
33786 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33787
33788         * build-aux/bootstrap: Install git-merge-changelog configuration
33789         items into .gitconfig if needed.
33790
33791 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33792
33793         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
33794         git repository, and initialize/update it accordingly.
33795
33796 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
33797
33798         * modules/fsync-tests: New file.
33799         * tests/test-fsync.c: New file.
33800
33801         New module 'fsync'.
33802         * lib/fsync.c: New file.
33803         * m4/fsync.m4: New file.
33804         * modules/fsync: New file.
33805         * lib/unistd.in.h (fsync): New declaration.
33806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
33807         GNULIB_FSYNC and HAVE_FSYNC.
33808         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
33809         * MODULES.html.sh (posix_functions): Add fsync.
33810         * doc/posix-functions/fsync.texi: Mention the new module.
33811
33812 2008-10-02  Jim Meyering  <meyering@redhat.com>
33813
33814         fts.c: sync with similar code from coreutils' remove.c
33815         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
33816         Guard also with "#if defined __linux__", since for now at least,
33817         this code is Linux-kernel-specific.
33818
33819 2008-10-02  Jim Meyering  <meyering@redhat.com>
33820
33821         fts: bug fixes
33822         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
33823         Include <sys/vfs.h>, not <sys/statfs.h>.
33824
33825         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
33826         Include <sys/vfs.h>, not <sys/statfs.h>.
33827
33828 2008-10-01  Bruno Haible  <bruno@clisp.org>
33829
33830         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
33831         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
33832         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
33833         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
33834         * doc/posix-functions/posix_spawnp.texi: Likewise.
33835         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
33836         whether posix_spawn actually works.
33837         * m4/pipe.m4 (gl_PIPE): Likewise.
33838         * modules/execute (Files): Add m4/posix_spawn.m4.
33839         * modules/pipe (Files): Add m4/posix_spawn.m4.
33840         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
33841
33842 2008-10-01  Jim Meyering  <meyering@redhat.com>
33843
33844         remove trailing spaces
33845         * NEWS: Likewise.
33846         * lib/poll.c (poll): Likewise.
33847         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
33848         * lib/winsock.c (rpl_close): Likewise.
33849         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
33850         * modules/yield: Likewise.
33851         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
33852         * tests/test-sys_select.c (connect_to_socket): Likewise.
33853
33854         fts.c: adjust a new interface to be more generally useful
33855         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
33856         (fts_build): Adjust caller.
33857
33858 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33859
33860         * modules/cond-tests: New file.
33861         * tests/test-cond.c: New file.
33862
33863 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33864             Bruno Haible  <bruno@clisp.org>
33865
33866         * modules/cond (Dependencies): Add errno, time.
33867         * lib/glthread/cond.h: Include <time.h>.
33868         (gl_cond_define, gl_cond_define_initialized): Use the same definition
33869         across platforms.
33870
33871 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33872             Bruno Haible  <bruno@clisp.org>
33873
33874         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
33875
33876 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33877             Bruno Haible  <bruno@clisp.org>
33878
33879         * modules/tls-tests (Depends-on): Add thread, yield.
33880         (configure.ac): Remove all checks.
33881         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
33882         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33883         gl_thread_self): Remove definitions. Include glthread/thread.h and
33884         glthread/yield.h instead.
33885         (test_tls): Pass an additional NULL argument to gl_thread_join.
33886
33887 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33888             Bruno Haible  <bruno@clisp.org>
33889
33890         * modules/lock-tests (Depends-on): Add thread, yield.
33891         (configure.ac): Remove all checks.
33892         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
33893         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33894         gl_thread_self): Remove definitions. Include glthread/thread.h and
33895         glthread/yield.h instead.
33896         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
33897         additional NULL argument to gl_thread_join.
33898
33899 2008-09-30  Bruno Haible  <bruno@clisp.org>
33900
33901         Fix the Win32 implementation of the 'thread' module.
33902         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
33903         pointer type.
33904         (gl_thread_self): Invoke gl_thread_self_func.
33905         (gl_thread_self_func): New declaration.
33906         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
33907         (do_init_self_key, init_self_key): New functions.
33908         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
33909         Remove some fields.
33910         (running_threads, running_lock): Remove variables.
33911         (get_current_thread_handle): New function.
33912         (gl_thread_self_func, wrapper_func, glthread_create_func,
33913         glthread_join_func, gl_thread_exit_func): Largely rewritten and
33914         simplified.
33915
33916 2008-09-30  Bruno Haible  <bruno@clisp.org>
33917
33918         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
33919         files.
33920
33921 2008-09-30  Jim Meyering  <meyering@redhat.com>
33922
33923         fts.m4: correct the test for statfs.f_type
33924         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
33925         when checking for statfs.f_type.
33926
33927 2008-09-15  Simon Josefsson  <simon@josefsson.org>
33928
33929         tests: avoid some compiler warnings
33930         * tests/test-memchr.c (main): Pass NULL indirectly.
33931         * tests/test-getdate.c (main): Remove unused variable 'ret'.
33932
33933 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
33934
33935         getdate.y: disallow countable dayshifts like "4 yesterday ago"
33936         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
33937         exactly specified dayshifts.
33938         (dayshift): New rule.
33939         (rel): Add dayshift.
33940         (relative_time_table) [tomorrow, yesterday, today, now]:
33941         Use tDAY_SHIFT in place of tDAY_UNIT.
33942         * tests/test-getdate.c: Add tests for now-disallowed countable
33943         dayshifts, e.g., "4 yesterday ago".
33944
33945 2008-09-29  Bruno Haible  <bruno@clisp.org>
33946
33947         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
33948         * tests/test-posix_spawn1.in.sh: Renamed from
33949         tests/test-posix_spawn.in.sh.
33950         * tests/test-posix_spawn2.c: New file.
33951         * tests/test-posix_spawn2.in.sh: New file.
33952         * modules/posix_spawnp-tests (Files): Update.
33953         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
33954
33955 2008-09-29  Bruno Haible  <bruno@clisp.org>
33956
33957         Propagate effects of putenv/setenv/unsetenv to child processes.
33958         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
33959         * lib/pipe.c (create_pipe): Likewise.
33960
33961 2008-09-29  Bruno Haible  <bruno@clisp.org>
33962
33963         Enable use of shell scripts as executables in mingw.
33964         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
33965         run the program as a shell script.
33966         * lib/pipe.c (create_pipe): Likewise.
33967         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
33968         resulting array.
33969
33970 2008-09-29  Eric Blake  <ebb9@byu.net>
33971
33972         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
33973
33974 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
33975
33976         * doc/posix-functions/accept.texi: Update mingw problems.
33977         * doc/posix-functions/bind.texi: Update mingw problems.
33978         * doc/posix-functions/close.texi: Update mingw problems.
33979         * doc/posix-functions/connect.texi: Update mingw problems.
33980         * doc/posix-functions/getpeername.texi: Update mingw problems.
33981         * doc/posix-functions/getsockname.texi: Update mingw problems.
33982         * doc/posix-functions/getsockopt.texi: Update mingw problems.
33983         * doc/posix-functions/ioctl.texi: Update mingw problems.
33984         * doc/posix-functions/listen.texi: Update mingw problems.
33985         * doc/posix-functions/recv.texi: Update mingw problems.
33986         * doc/posix-functions/recvfrom.texi: Update mingw problems.
33987         * doc/posix-functions/select.texi: Update mingw problems.
33988         * doc/posix-functions/send.texi: Update mingw problems.
33989         * doc/posix-functions/sendto.texi: Update mingw problems.
33990         * doc/posix-functions/setsockopt.texi: Update mingw problems.
33991         * doc/posix-functions/socket.texi: Update mingw problems.
33992
33993 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
33994             Bruno Haible  <bruno@clisp.org>
33995
33996         * lib/sys_select.in.h: Include sys/time.h.
33997         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
33998         * modules/sys_select: Depend on sys_time.
33999         * tests/test-sys_select.c: Test that sys/select.h defines struct
34000         timeval fully.
34001
34002 2008-09-29  Bruno Haible  <bruno@clisp.org>
34003
34004         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
34005         * lib/sys_select.in.h: Likewise.
34006
34007 2008-09-29  Bruno Haible  <bruno@clisp.org>
34008
34009         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
34010
34011 2008-09-29  Bruno Haible  <bruno@clisp.org>
34012
34013         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
34014         Set LIBSOCKET instead of augmenting LIBS.
34015         * modules/sockets (Link): New section.
34016         * modules/sockets-tests (test_sockets_LDADD): New variable.
34017         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
34018         * modules/poll-tests (test_poll_LDADD): New variable.
34019         * NEWS: Document the change.
34020
34021 2008-09-29  Bruno Haible  <bruno@clisp.org>
34022
34023         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
34024         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
34025         ARPA_INET_H directly.
34026         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34027
34028 2008-09-28  Bruno Haible  <bruno@clisp.org>
34029
34030         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
34031         from gl_HEADER_SYS_SOCKET.
34032         (gl_HEADER_SYS_SOCKET): Invoke it.
34033         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34034
34035 2008-09-28  Bruno Haible  <bruno@clisp.org>
34036
34037         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
34038         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
34039         Needed on OSF/1 4.0.
34040
34041 2008-09-28  Bruno Haible  <bruno@clisp.org>
34042
34043         Override open more carefully.
34044         * lib/open.c (orig_open): New function.
34045         (rpl_open): Use orig_open instead of open.
34046         * lib/fcntl.in.h: Add special invocation convention.
34047         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
34048         (gl_FUNC_OPEN): Invoke it.
34049
34050         Override freopen more carefully.
34051         * lib/freopen.c (orig_freopen): New function.
34052         (rpl_freopen): Use orig_freopen instead of freopen.
34053         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
34054         (gl_FUNC_FREOPEN): Invoke it.
34055
34056         Override fopen more carefully.
34057         * lib/fopen.c (orig_fopen): New function.
34058         (rpl_fopen): Use orig_fopen instead of fopen.
34059         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
34060         (gl_FUNC_FOPEN): Invoke it.
34061         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
34062
34063 2008-09-28  Bruno Haible  <bruno@clisp.org>
34064
34065         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
34066         SIGPIPE.
34067
34068 2008-09-28  Bruno Haible  <bruno@clisp.org>
34069
34070         * tests/test-sigaction.c (handler, main): Disable the check whether
34071         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
34072         glibc systems with LinuxThreads.
34073
34074 2008-09-28  Bruno Haible  <bruno@clisp.org>
34075
34076         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
34077
34078         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
34079         with AIX xlc.
34080         * lib/fcntl.in.h (open): Likewise.
34081         Reported by Rainer Tammer <tammer@tammer.net>.
34082
34083 2008-09-28  Bruno Haible  <bruno@clisp.org>
34084
34085         * modules/posix_spawnp-tests: New file.
34086         * tests/test-posix_spawn.c: New file.
34087         * tests/test-posix_spawn.in.sh: New file.
34088
34089         New module 'posix_spawnp'.
34090         * modules/posix_spawnp: New file.
34091         * lib/spawnp.c: New file, from GNU libc with modifications.
34092         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
34093
34094         New module 'posix_spawn'.
34095         * modules/posix_spawn: New file.
34096         * lib/spawn.c: New file, from GNU libc with modifications.
34097         * doc/posix-functions/posix_spawn.texi: Mention the new module.
34098
34099         New module 'posix_spawnattr_destroy'.
34100         * modules/posix_spawnattr_destroy: New file.
34101         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
34102         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
34103         module.
34104
34105         New module 'posix_spawnattr_setsigmask'.
34106         * modules/posix_spawnattr_setsigmask: New file.
34107         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
34108         modifications.
34109         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
34110         new module.
34111
34112         New module 'posix_spawnattr_getsigmask'.
34113         * modules/posix_spawnattr_getsigmask: New file.
34114         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
34115         modifications.
34116         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
34117         new module.
34118
34119         New module 'posix_spawnattr_setsigdefault'.
34120         * modules/posix_spawnattr_setsigdefault: New file.
34121         * lib/spawnattr_setdefault.c: New file, from GNU libc with
34122         modifications.
34123         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
34124         new module.
34125
34126         New module 'posix_spawnattr_getsigdefault'.
34127         * modules/posix_spawnattr_getsigdefault: New file.
34128         * lib/spawnattr_getdefault.c: New file, from GNU libc with
34129         modifications.
34130         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
34131         new module.
34132
34133         New module 'posix_spawnattr_setschedpolicy'.
34134         * modules/posix_spawnattr_setschedpolicy: New file.
34135         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
34136         modifications.
34137         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
34138         new module.
34139
34140         New module 'posix_spawnattr_getschedpolicy'.
34141         * modules/posix_spawnattr_getschedpolicy: New file.
34142         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
34143         modifications.
34144         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
34145         new module.
34146
34147         New module 'posix_spawnattr_setschedparam'.
34148         * modules/posix_spawnattr_setschedparam: New file.
34149         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
34150         modifications.
34151         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
34152         new module.
34153
34154         New module 'posix_spawnattr_getschedparam'.
34155         * modules/posix_spawnattr_getschedparam: New file.
34156         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
34157         modifications.
34158         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
34159         new module.
34160
34161         New module 'posix_spawnattr_setpgroup'.
34162         * modules/posix_spawnattr_setpgroup: New file.
34163         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
34164         modifications.
34165         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
34166         module.
34167
34168         New module 'posix_spawnattr_getpgroup'.
34169         * modules/posix_spawnattr_getpgroup: New file.
34170         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
34171         modifications.
34172         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
34173         module.
34174
34175         New module 'posix_spawnattr_setflags'.
34176         * modules/posix_spawnattr_setflags: New file.
34177         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
34178         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
34179         module.
34180
34181         New module 'posix_spawnattr_getflags'.
34182         * modules/posix_spawnattr_getflags: New file.
34183         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
34184         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
34185         module.
34186
34187         New module 'posix_spawnattr_init'.
34188         * modules/posix_spawnattr_init: New file.
34189         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
34190         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
34191         module.
34192
34193         New module 'posix_spawn_file_actions_destroy'.
34194         * modules/posix_spawn_file_actions_destroy: New file.
34195         * lib/spawn_faction_destroy.c: New file, from GNU libc with
34196         modifications.
34197         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
34198         the new module.
34199
34200         New module 'posix_spawn_file_actions_addopen'.
34201         * modules/posix_spawn_file_actions_addopen: New file.
34202         * lib/spawn_faction_addopen.c: New file, from GNU libc with
34203         modifications.
34204         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
34205         the new module.
34206
34207         New module 'posix_spawn_file_actions_adddup2'.
34208         * modules/posix_spawn_file_actions_adddup2: New file.
34209         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
34210         modifications.
34211         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
34212         the new module.
34213
34214         New module 'posix_spawn_file_actions_addclose'.
34215         * modules/posix_spawn_file_actions_addclose: New file.
34216         * lib/spawn_faction_addclose.c: New file, from GNU libc with
34217         modifications.
34218         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
34219         the new module.
34220
34221         New module 'posix_spawn_file_actions_init'.
34222         * modules/posix_spawn_file_actions_init: New file.
34223         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
34224         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
34225         new module.
34226
34227         New module 'posix_spawn-internal'.
34228         * modules/posix_spawn-internal: New file.
34229         * lib/spawn_int.h: New file, from GNU libc with modifications.
34230         * lib/spawni.c: New file, from GNU libc with modifications.
34231         * m4/posix_spawn.m4: New file.
34232
34233         New module 'spawn'.
34234         * modules/spawn: New file.
34235         * lib/spawn.in.h: New file, from GNU libc with modifications.
34236         * m4/spawn_h.m4: New file.
34237         * doc/posix-headers/spawn.texi: Mention the new module.
34238
34239 2008-09-28  Bruno Haible  <bruno@clisp.org>
34240
34241         * modules/sched-tests: New file.
34242         * tests/test-sched.c: New file.
34243
34244         New module 'sched'.
34245         * modules/sched: New file.
34246         * lib/sched.in.h: New file.
34247         * m4/sched_h.m4: New file.
34248         * doc/posix-headers/sched.texi: Mention the new module.
34249
34250 2008-09-27  Eric Blake  <ebb9@byu.net>
34251
34252         Fix previous patch, and tweak references to $0.
34253         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
34254         (func_version, func_gnulib_dir): Don't call this program
34255         gnulib-tool.
34256         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
34257         with using $0 in function.
34258         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
34259         (func_fatal_error): Reuse the name the user invoked us with.
34260
34261 2008-09-27  Bruno Haible  <bruno@clisp.org>
34262
34263         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
34264         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
34265         (gl_ICONV_H): Not here.
34266         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34267         instead of assigning ICONV_H directly.
34268
34269         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
34270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
34271         WCHAR_H directly.
34272
34273 2008-09-27  Bruno Haible  <bruno@clisp.org>
34274
34275         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
34276         * modules/arpa_inet (Depends-on): Add link-warning.
34277         (Makefile.am): Insert the definition of GL_LINK-WARNING.
34278         * modules/unistd (Makefile.am): Likewise.
34279
34280 2008-09-26  Bruno Haible  <bruno@clisp.org>
34281
34282         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
34283         variables.
34284         (func_version): Essentially copied from gnulib-tool.
34285         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
34286         func_readlink): Copied from gnulib-tool.
34287
34288 2008-09-26  Bruno Haible  <bruno@clisp.org>
34289
34290         * gnulib-tool (func_version): Change directory to $gnulib_dir before
34291         invoking git-version-gen.
34292
34293 2008-09-26  Bruno Haible  <bruno@clisp.org>
34294
34295         * posix-modules: Update to directory names changed on 2008-01-19.
34296         Remove commas in output before splitting into words. No more need to
34297         avoid 'ftruncate' since 2007-02-19.
34298
34299 2008-09-26  Bruno Haible  <bruno@clisp.org>
34300
34301         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
34302
34303 2008-09-26  Bruno Haible  <bruno@clisp.org>
34304
34305         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
34306         * modules/fwriteerror (Depends-on): Add errno.
34307
34308 2008-09-26  Bruno Haible  <bruno@clisp.org>
34309
34310         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
34311         * tests/test-vc-list-files-cvs.sh: Likewise.
34312
34313 2008-09-26  Bruno Haible  <bruno@clisp.org>
34314
34315         * doc/posix-headers/sys_resource.texi: Reorder items.
34316
34317 2008-09-26  Jim Meyering  <meyering@redhat.com>
34318
34319         fts: tweak inode comparison function
34320         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
34321         inode numbers, as documented.
34322
34323         fts: sort dirent entries on inode number before traversing
34324         This avoids a quadratic, seek-related performance penalty when
34325         operating on a directory containing many entries (measurable at 10k;
34326         3.5 hours at 2 million entries with a cold cache) on certain types
34327         of file systems, including ext3 and ext4, but not tmpfs.
34328         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
34329         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
34330         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
34331         (fs_handles_readdir_ordered_dirents_efficiently): New function.
34332         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
34333         (fts_build): Set the stat.st_ino member from D_INO.
34334         If it is likely to be useful, sort dirent entries on inode number.
34335
34336         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
34337         and the struct statfs.f_type member.
34338         * modules/fts (Depends-on): Add d-ino.
34339
34340 2008-09-26  Bruno Haible  <bruno@clisp.org>
34341
34342         * modules/sigpipe-die (Depends-on): Add sigpipe.
34343
34344         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
34345         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
34346         and GNULIB_STDIO_H_SIGPIPE are set.
34347         * lib/stdio-write.c: New file.
34348         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
34349         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34350         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34351         REPLACE_STDIO_WRITE_FUNCS.
34352         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
34353         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34354         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34355         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34356         * modules/stdio (Files): Add lib/stdio-write.c.
34357         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
34358         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34359         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34360         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34361         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
34362         REPLACE_FPRINTF_POSIX.
34363         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
34364         REPLACE_PRINTF_POSIX.
34365         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
34366         REPLACE_VFPRINTF_POSIX.
34367         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
34368         REPLACE_VPRINTF_POSIX.
34369         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
34370         SIGPIPE issue.
34371         * doc/posix-functions/fputc.texi: Likewise.
34372         * doc/posix-functions/fputs.texi: Likewise.
34373         * doc/posix-functions/fwrite.texi: Likewise.
34374         * doc/posix-functions/printf.texi: Likewise.
34375         * doc/posix-functions/putc.texi: Likewise.
34376         * doc/posix-functions/putchar.texi: Likewise.
34377         * doc/posix-functions/puts.texi: Likewise.
34378         * doc/posix-functions/vfprintf.texi: Likewise.
34379         * doc/posix-functions/vprintf.texi: Likewise.
34380
34381         * modules/safe-write (Depends-on): Add write.
34382
34383         * modules/sigpipe-tests: New file.
34384         * tests/test-sigpipe.c: New file.
34385         * tests/test-sigpipe.sh: New file.
34386
34387         * modules/write: New file.
34388         * lib/unistd.in.h: Include <sys/types.h>.
34389         (write): New declaration.
34390         * lib/write.c: New file.
34391         * m4/write.m4: New file.
34392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34393         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
34394         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
34395         GNULIB_WRITE, REPLACE_WRITE.
34396         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
34397         and the SIGPIPE issue.
34398
34399         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
34400         (raise): New declaration.
34401         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
34402         (ext_signal): New function.
34403         (rpl_raise): New function.
34404         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34405         GNULIB_SIGNAL_H_SIGPIPE.
34406         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
34407         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
34408
34409         * modules/sigpipe: New file.
34410         * m4/sigpipe.m4: New file.
34411
34412 2008-09-25  Derek Price  <derek@ximbiot.com>
34413             Bruno Haible  <bruno@clisp.org>
34414
34415         * gnulib-tool (func_import): Report all license incompatibilities, not
34416         just the first one.
34417
34418 2008-09-25  Bruno Haible  <bruno@clisp.org>
34419
34420         * gnulib-tool (func_import): When computing the edits, consider not
34421         only the Makefile.ams that exist but also those that will be generated.
34422
34423 2008-09-25  Simon Josefsson  <simon@josefsson.org>
34424
34425         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
34426         fixes gnulib-tool --test warning about duplicate dependency.
34427
34428 2008-09-25  Bruno Haible  <bruno@clisp.org>
34429
34430         * gnulib-tool: Don't ask the user to perform edits in the generated
34431         Makefile.ams.
34432         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
34433         apply to the Makefile.am being generated.
34434         (func_emit_tests_Makefile_am): Execute edits that apply to the
34435         Makefile.am being generated.
34436         (func_import): Setup list of Makefile.am edits before emitting the
34437         Makefile.ams, not at the end.
34438         (func_create_testdir): Update.
34439         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34440
34441 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34442
34443         * gnulib-tool (func_import): Store the --tests-base option in the
34444         comment in gnulib-cache.m4.
34445
34446 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
34447
34448         * NEWS: Document increased portability that sys_select now provides.
34449
34450         * lib/sys_select.in.h: Install select wrapper.
34451         * lib/sys_socket.in.h: Use more descriptive name when there is no
34452         select wrapper.
34453         * lib/winsock-select.c: New.
34454         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
34455         Require gl_HEADER_SYS_SOCKET.
34456         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
34457         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
34458         * tests/test-sys_select.c: Add functional tests.
34459
34460 2008-09-24  Eric Blake  <ebb9@byu.net>
34461
34462         open, fopen: close fd leak in last patch
34463         * lib/open.c (rpl_open): Close fd before returning error.
34464         * lib/fopen.c (rpl_fopen): Close fd before returning error.
34465         * doc/posix-functions/open.texi (open): Document that Irix also
34466         has the bug.
34467         * doc/posix-functions/fopen.texi (fopen): Likewise.
34468         Reported by Paolo Bonzini.
34469
34470 2008-09-24  Bruno Haible  <bruno@clisp.org>
34471
34472         Ensure that a filename ending in a slash cannot be used to access a
34473         non-directory.
34474         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
34475         to check whether it's really a directory.
34476         * lib/fopen.c: Include fcntl.h, unistd.h.
34477         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
34478         and fdopen().
34479         * modules/fopen (Depends-on): Add unistd.
34480         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
34481         * tests/test-fopen.c (main): Likewise.
34482         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
34483         * doc/posix-functions/fopen.texi: Likewise.
34484         Reported by Eric Blake.
34485
34486 2008-09-23  Eric Blake  <ebb9@byu.net>
34487
34488         c-stack: avoid compiler optimizations when provoking overflow
34489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
34490         recursion harder to optimize, to ensure a stack overflow occurs.
34491         * tests/test-c-stack.c (recurse): Likewise.
34492         Borrowed from libsigsegv.
34493
34494         c-stack: work around Irix sigaltstack bug
34495         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
34496         whether sigaltstack uses wrong end of stack_t (copied in part from
34497         libsigsegv).
34498         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
34499         Irix bug, without requiring an over-allocation.
34500         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
34501         bug.
34502
34503         fopen: document mingw bug on directories
34504         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
34505         not allowing a stream visiting a directory, even though reading
34506         from such a stream is not portable.
34507
34508 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34509
34510         * lib/poll.c: Rewrite.
34511         * modules/poll: Depend on alloca.
34512
34513 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34514
34515         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
34516         instead define prototypes for a full set of wrappers.  Ensure
34517         that Cygwin does not use the compatibility code, which is only
34518         for MinGW.
34519         * lib/winsock.c: New.
34520         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
34521         * modules/sys_socket: Add lib/winsock.c.
34522
34523         * modules/poll-tests: Add errno and perror.
34524         * tests/test-poll.c: Use ioctl, not ioctlsocket.
34525
34526 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34527
34528         * tests/test-poll.c: Downgrade minimum needed Winsock version.
34529
34530 2008-09-23  Bruno Haible  <bruno@clisp.org>
34531
34532         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
34533         * doc/glibc-functions/*: Likewise.
34534
34535 2008-09-23  Simon Josefsson  <simon@josefsson.org>
34536
34537         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
34538         success.
34539
34540 2008-09-22  Eric Blake  <ebb9@byu.net>
34541             Bruno Haible  <bruno@clisp.org>
34542
34543         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
34544         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
34545         supply %A but mishandle pseudo-NaN.
34546         Reported by Simon Josefsson.
34547
34548 2008-09-21  Bruno Haible  <bruno@clisp.org>
34549
34550         * tests/test-lock.c (main): Tweak skip message.
34551         * tests/test-tls.c (main): Likewise.
34552
34553 2008-09-21  Bruno Haible  <bruno@clisp.org>
34554
34555         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
34556         whether 'struct sigaction' has sa_sigaction here...
34557         (gl_PREREQ_SIG_HANDLER_H): ... not here.
34558         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
34559
34560 2008-09-21  Bruno Haible  <bruno@clisp.org>
34561
34562         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
34563         section.
34564         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
34565         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
34566         the new section.
34567         (Support for obsolete systems lacking POSIX:2001): New section.
34568         (String handling <string.h>): Move strdup to the new section.
34569         Suggested by Simon Josefsson and Paolo Bonzini.
34570
34571 2008-09-21  Bruno Haible  <bruno@clisp.org>
34572
34573         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
34574         exponents in %e and %g results on 'long double'. Needed for mingw's
34575         improved *printf functions.
34576         * tests/test-vasprintf-posix.c (test_function): Likewise.
34577         * tests/test-snprintf-posix.h (test_function): Likewise.
34578         * tests/test-sprintf-posix.h (test_function): Likewise.
34579         Reported by Eric Blake.
34580
34581 2008-09-21  Bruno Haible  <bruno@clisp.org>
34582
34583         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
34584         * tests/test-sprintf-posix.h (test_function): Likewise.
34585
34586 2008-09-21  Bruno Haible  <bruno@clisp.org>
34587
34588         * modules/getpass (Depends-on): Add strdup-posix.
34589
34590         New module 'strdup-posix'.
34591         * modules/strdup-posix: New file.
34592         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
34593         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
34594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34595         REPLACE_STRDUP.
34596         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
34597         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
34598         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34599         strdup-posix.
34600
34601         * modules/strdup (Depends-on): Remove malloc-posix.
34602
34603 2008-09-20  Bruno Haible  <bruno@clisp.org>
34604
34605         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
34606         Wildenhues.
34607
34608 2008-09-20  Bruno Haible  <bruno@clisp.org>
34609
34610         Ensure that wint_t gets defined on IRIX 5.3.
34611         * lib/wchar.in.h (wint_t): Define if not defined by the system.
34612         * lib/wctype.in.h (wint_t): Likewise.
34613         (__wctype_wint_t): Remove type.
34614         (isw*): Use wint_t instead of __wctype_wint_t.
34615         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
34616         * modules/wchar (Files): Add m4/wint_t.m4.
34617         (Makefile.am): Substitute HAVE_WINT_T.
34618         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
34619         * tests/test-wctype.c: Check that wint_t is defined.
34620         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
34621         * doc/posix-headers/wctype.texi: Likewise.
34622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34623
34624 2008-09-18  Bruno Haible  <bruno@clisp.org>
34625
34626         * gnulib-tool (func_exit): Update comment.
34627
34628 2008-09-18  Simon Josefsson  <simon@josefsson.org>
34629
34630         * modules/getaddrinfo (Depends-on): Remove strdup, this module
34631         assumes strdup exists and does not depend on strdup to return
34632         ENOMEM on out of memory conditions.
34633
34634 2008-09-18  Bruno Haible  <bruno@clisp.org>
34635
34636         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
34637         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
34638         digits for the exponent.
34639
34640 2008-09-18  Jim Meyering  <meyering@redhat.com>
34641             Bruno Haible  <bruno@clisp.org>
34642
34643         * lib/vasnprintf.c (decimal_point_char): Define also if
34644         NEED_PRINTF_INFINITE_LONG_DOUBLE.
34645
34646 2008-09-16  Bruno Haible  <bruno@clisp.org>
34647         and Eric Blake  <ebb9@byu.net>
34648
34649         vasnprintf: support Irix 5.3
34650         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
34651         that mishandle long double infinity.
34652         Reported by Tom G. Christensen.
34653
34654 2008-09-16  Bruno Haible  <bruno@clisp.org>
34655
34656         * doc/glibc-functions/scandir.texi: Mention the function is missing on
34657         Solaris 9.
34658         * doc/glibc-functions/alphasort.texi: Likewise.
34659         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
34660
34661 2008-09-16  Jim Meyering  <meyering@redhat.com>
34662
34663         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
34664         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
34665         a umask modification leak out of a subshell.  Otherwise, the
34666         opensolaris /bin/sh would be accepted and thus cause unwarranted
34667         failures in the coreutils test suite.
34668
34669 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
34670
34671         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
34672         to succeed.
34673
34674 2008-09-16  Jim Meyering  <meyering@redhat.com>
34675
34676         avoid spurious test failure when library is built without ACL support
34677         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
34678         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
34679         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
34680         * tests/test-copy-acl.sh: Likewise.
34681
34682 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34683
34684         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
34685         based on character occurrence counts.
34686
34687 2008-09-15  Eric Blake  <ebb9@byu.net>
34688
34689         tests: avoid some compiler warnings
34690         * tests/test-memchr.c (main): Pass NULL indirectly.
34691         * tests/test-closein.c (main): Avoid unused variable.
34692
34693 2008-09-15  Bruno Haible  <bruno@clisp.org>
34694
34695         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
34696         are missing on OpenBSD 4.0 individually.
34697         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34698
34699 2008-09-15  Bruno Haible  <bruno@clisp.org>
34700
34701         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
34702         * doc/posix-functions/strerror.texi: Mention also Cygwin.
34703         * doc/posix-functions/perror.texi: Likewise.
34704         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
34705         is missing.
34706         Reported by Eric Blake.
34707
34708         * lib/errno.in.h: Use replacement values >= 2000.
34709         Reported by Eric Blake.
34710
34711 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34712
34713         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
34714         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
34715         limit.
34716         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
34717         compareseq was aborted.
34718
34719 2008-09-14  Bruno Haible  <bruno@clisp.org>
34720
34721         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
34722         yvec_edit_count.
34723         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
34724         (fstrcmp_bounded): Simplify result computation accordingly.
34725
34726 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34727
34728         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
34729         (fstrcmp): Define in terms of fstrcmp_bounded.
34730         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
34731         lower_bound argument.
34732         Return quickly if the result is certainly < lower_bound.
34733         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
34734
34735 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34736
34737         * lib/diffseq.h (EARLY_ABORT): New macro.
34738         (compareseq): Change return type to bool. Return true when EARLY_ABORT
34739         evaluates to true.
34740
34741 2008-09-14  Bruno Haible  <bruno@clisp.org>
34742
34743         * modules/perror-tests: New file.
34744         * tests/test-perror.sh: New file.
34745         * tests/test-perror.c: New file.
34746
34747         New module 'perror'.
34748         * lib/stdio.in.h (perror): New declaration.
34749         * lib/perror.c: New file.
34750         * m4/perror.m4: New file.
34751         * modules/perror: New file.
34752         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
34753         * doc/posix-functions/perror.texi: Mention the perror module.
34754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
34755         REPLACE_PERROR.
34756         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
34757         REPLACE_PERROR.
34758
34759 2008-09-14  Bruno Haible  <bruno@clisp.org>
34760
34761         * modules/stdio (Makefile.am): Reorder to match the order in
34762         lib/stdio.in.h.
34763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34764
34765 2008-09-13  Bruno Haible  <bruno@clisp.org>
34766
34767         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
34768
34769 2008-09-13  Bruno Haible  <bruno@clisp.org>
34770
34771         Extend strerror to cover the added errno values.
34772         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
34773         (rpl_strerror): Provide error messages for the added errno values and
34774         for the WSA* values.
34775         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
34776         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
34777         strerror.
34778         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
34779         * modules/strerror (Depends-on): Add errno.
34780         * doc/posix-functions/strerror.texi: Document the change.
34781         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
34782         and EOVERFLOW.
34783
34784 2008-09-13  Bruno Haible  <bruno@clisp.org>
34785
34786         * modules/EOVERFLOW: Remove file.
34787         * m4/eoverflow.m4: Remove file.
34788         * modules/EOVERFLOW-tests: Remove file.
34789         * tests/test-EOVERFLOW.c: Remove file.
34790         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
34791         * modules/ftell (Depends-on): Likewise.
34792         * modules/getdelim (Depends-on): Likewise.
34793         * modules/getugroups (Depends-on): Likewise.
34794         * modules/poll (Depends-on): Likewise.
34795         * modules/snprintf (Depends-on): Likewise.
34796         * modules/sprintf-posix (Depends-on): Likewise.
34797         * modules/vasnprintf (Depends-on): Likewise.
34798         * modules/vasprintf (Depends-on): Likewise.
34799         * modules/vfprintf-posix (Depends-on): Likewise.
34800         * modules/vsnprintf (Depends-on): Likewise.
34801         * modules/vsprintf-posix (Depends-on): Likewise.
34802         * modules/xvasprintf (Depends-on): Likewise.
34803         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34804         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
34805         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
34806         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
34807         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34808         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
34809         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
34810         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
34811         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34812         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
34813         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
34814         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
34815         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34816         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
34817         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
34818         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
34819         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34820         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
34821         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
34822         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
34823         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34824         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
34825         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
34826         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
34827         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
34828         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34829         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
34830         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
34831         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
34832         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
34833         * MODULES.html.sh: Remove EOVERFLOW.
34834         * NEWS: Mention the change.
34835
34836 2008-09-13  Bruno Haible  <bruno@clisp.org>
34837
34838         * modules/errno-tests: New file.
34839         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
34840
34841         * lib/errno.in.h: New file.
34842         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
34843         * modules/errno: New file.
34844         * doc/posix-headers/errno.texi: Update documentation.
34845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
34846
34847 2008-09-13  Bruno Haible  <bruno@clisp.org>
34848
34849         * tests/test-poll.c: Use #if for native Windows, rather than testing
34850         __MSVCRT__.
34851
34852 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34853             Bruno Haible  <bruno@clisp.org>
34854
34855         * lib/glob.c: Don't include <pwd.h> on native Windows.
34856         (WINDOWS32): New macro.
34857         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
34858
34859 2008-09-13  Bruno Haible  <bruno@clisp.org>
34860
34861         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
34862         (ETIMEDOUT): Remove macro.
34863         (glthread_cond_timedwait_multithreaded): New declaration.
34864         (glthread_cond_timedwait): Use it.
34865         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
34866         (glthread_cond_timedwait_multithreaded): New function.
34867
34868 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34869
34870         * modules/poll-tests: Do not check for io.h.
34871         * tests/test-poll.c: Check for __MSVCRT__ instead.
34872
34873 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34874
34875         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
34876         * modules/poll-tests: Add inet_pton, stdbool, sockets.
34877         * tests/test-poll.c: Use them.  Use _pipe on Windows.
34878
34879 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34880
34881         * modules/poll-tests: New.
34882         * tests/test-poll.c: New.
34883
34884 2008-09-12  Eric Blake  <ebb9@byu.net>
34885
34886         frexp: test for NetBSD failure on -0.0
34887         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
34888         not all, bugs from NetBSD 3.0 have been fixed.
34889         * doc/posix-functions/frexp.texi (frexp): Document bug.
34890         Reported by Thomas Klausner.
34891
34892         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
34893         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
34894         literal -0.0.
34895         Reported by Jonathan C. Patschke <jp@centtech.com>.
34896
34897 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34898
34899         * lib/glthread/cond.h: Use dummy implementation also if
34900         USE_WIN32_THREADS.
34901
34902 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34903
34904         * modules/fnmatch-posix (License): Change to LGPLv2+.
34905         * modules/fnmatch-gnu (License): Likewise.
34906
34907 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34908
34909         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
34910
34911 2008-09-11  Jim Meyering  <meyering@redhat.com>
34912
34913         * users.txt: Add gtk-vnc.
34914
34915 2008-09-08  Simon Josefsson  <simon@josefsson.org>
34916
34917         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
34918         rotate amounts.
34919
34920         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
34921         required for 16-bit and 8-bit rotates.
34922         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
34923         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
34924         UINT8_MAX instead of hard-coded constants.
34925         Suggested by Paul Eggert.
34926
34927 2008-09-07  Bruno Haible  <bruno@clisp.org>
34928
34929         * tests/test-striconveh.c (main): Check behaviour when converting from
34930         UTF-7.
34931
34932         Make striconveh work better with stateful encodings.
34933         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
34934         that iconv does not increment the inptr when returning -1/EINVAL.
34935
34936 2008-09-07  Bruno Haible  <bruno@clisp.org>
34937
34938         * build-aux/config.rpath: Update according to libtool-2.2.6.
34939         * build-aux/config.libpath: Likewise.
34940
34941 2008-09-06  Bruno Haible  <bruno@clisp.org>
34942
34943         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
34944         * lib/freadptr.c (freadptr): Likewise.
34945         * lib/freadseek.c (freadptrinc): Likewise.
34946         Reported by Simon Josefsson.
34947
34948 2008-09-06  Bruno Haible  <bruno@clisp.org>
34949
34950         * modules/freadptr (License): Change to LGPLv2+.
34951         * modules/freadseek (License): Likewise.
34952         Suggested by Eric Blake.
34953
34954         * modules/memchr2 (License): Change to LGPLv2+.
34955         Approved by Eric Blake.
34956
34957 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34958             Bruno Haible  <bruno@clisp.org>
34959
34960         Make gnulib-tool work with native 'sed' on AIX.
34961         * gnulib-tool (sed_noop): New variable.
34962         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
34963         func_add_or_update, func_create_testdir): Use it to initialize sed
34964         script variables.
34965         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34966
34967 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
34968             Bruno Haible  <bruno@clisp.org>
34969
34970         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
34971         also works after #include directives.
34972
34973 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
34974
34975         getdate.y: reject an out-of-range timezone value
34976         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
34977         the range [-24...+24].  When specified with only one or two digits,
34978         * tests/test-getdate.c: Tests for the fix.
34979         * doc/getdate.texi: Document this change.
34980
34981 2008-09-03  Bruno Haible  <bruno@clisp.org>
34982
34983         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
34984
34985 2008-09-02  Simon Josefsson  <simon@josefsson.org>
34986
34987         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
34988         <bruce.korb@gmail.com> with ideas from Ben Pfaff
34989         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
34990         Blake <ebb9@byu.net>.
34991
34992         * tests/test-bitrotate.c: Add more test vectors.
34993
34994 2008-09-02  Eric Blake  <ebb9@byu.net>
34995
34996         vasnprintf-posix: handle large precision via %.*d
34997         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
34998         when handling it ourselves.
34999         * tests/test-vasnprintf-posix.c (test_function): Add test.
35000         * tests/test-snprintf-posix.h (test_function): Likewise.
35001         * tests/test-sprintf-posix.h (test_function): Likewise.
35002         * tests/test-vasprintf-posix.c (test_function): Likewise.
35003         Reported by Alain Guibert.
35004
35005 2008-09-01  Eric Blake  <ebb9@byu.net>
35006
35007         c-stack: make configure-time check more robust
35008         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
35009         successful sigaction call.
35010         Reported by Tom G. Christensen.
35011
35012 2008-09-01  Bruno Haible  <bruno@clisp.org>
35013
35014         New module 'findprog-lgpl'.
35015         * modules/findprog-lgpl: New file.
35016         * lib/findprog-lgpl.c: New file.
35017         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
35018         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
35019         to decide whether to use strdup or xstrdup, concatenated_filename or
35020         xconcatenated_filename.
35021
35022 2008-09-01  Bruno Haible  <bruno@clisp.org>
35023
35024         Split module 'concat-filename' into 'concat-filename' (LGPL) and
35025         'xconcat-filename' (GPL).
35026         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
35027         (License): Change to LGPLv2+.
35028         * modules/xconcat-filename: New file.
35029         * lib/concat-filename.h (concatenated_filename): Change specification.
35030         (xconcatenated_filename): New declaration.
35031         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
35032         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
35033         memory situations.
35034         * lib/xconcat-filename.c: New file.
35035         * NEWS: Mention the change.
35036         * lib/findprog.c: Include concat-filename.h, not filename.h.
35037         (find_in_path): Use xconcatenated_filename instead of
35038         concatenated_filename.
35039         * lib/javacomp.c: Include concat-filename.h, not filename.h.
35040         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35041         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35042         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35043         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
35044         instead of concatenated_filename.
35045         * lib/javaexec.c: Include concat-filename.h, not filename.h.
35046         (execute_java_class): Use xconcatenated_filename instead of
35047         concatenated_filename.
35048         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
35049         * modules/javacomp (Depends-on): Likewise.
35050         * modules/javaexec (Depends-on): Likewise.
35051
35052 2008-09-01  Bruno Haible  <bruno@clisp.org>
35053
35054         Split module 'filename' into 'filename' and 'concat-filename'.
35055         * modules/filename: Keep only lib/filename.h.
35056         (License): Change to LGPLv2+.
35057         * modules/concat-filename: New file, extracted from modules/filename.
35058         * lib/filename.h (concatenated_filename): Remove declaration.
35059         * lib/concat-filename.h: New file, extracted from lib/filename.h.
35060         * lib/concat-filename.c: Include concat-filename.h.
35061         * NEWS: Mention the change.
35062
35063 2008-09-01  Simon Josefsson  <simon@josefsson.org>
35064
35065         * lib/bitrotate.h (rotl8, rotr8): Add.
35066
35067         * modules/bitrotate (configure.ac): Need
35068         AC_REQUIRE([AC_C_INLINE]).
35069         (Description): Mention stdint.h.  Reported by Bruno Haible
35070         <bruno@clisp.org>.
35071
35072         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
35073         Paolo Bonzini <bonzini@gnu.org>.
35074
35075 2008-08-31  Bruno Haible  <bruno@clisp.org>
35076
35077         Assume Solaris specific bi-arch conventions on Solaris systems.
35078         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
35079         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
35080         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
35081         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
35082         like acl_libdirstem.
35083         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
35084         acl_libdirstem.
35085         * NEWS: Mention the change.
35086         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
35087
35088 2008-08-31  Jim Meyering  <meyering@redhat.com>
35089
35090         * lib/strftime.h: Add comments describing the two added arguments.
35091
35092         remove duplicate #include directives
35093         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
35094         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
35095
35096 2008-08-31  Bruno Haible  <bruno@clisp.org>
35097
35098         New module 'sigpipe-die'.
35099         * modules/sigpipe-die: New file.
35100         * lib/sigpipe-die.h: New file.
35101         * lib/sigpipe-die.c: New file.
35102         * MODULES.html.sh (Signal handling): Add sigpipe-die.
35103
35104 2008-08-31  Bruno Haible  <bruno@clisp.org>
35105
35106         Don't override previously installed signal handlers.
35107         * lib/fatal-signal.c (saved_sigactions): New variable.
35108         (uninstall_handlers): Reset the signal to the saved handler, not
35109         to SIG_DFL (except when ignored).
35110         (install_handlers): Save the previous handlers.
35111
35112 2008-08-30  Bruno Haible  <bruno@clisp.org>
35113
35114         * gnulib-tool (func_reset_sigpipe): New function.
35115         (func_get_automake_snippet, func_modules_transitive_closure,
35116         func_import): Invoke it before a join command that reads from stdin,
35117         to avoid "echo: write error: Broken pipe" error messages on stderr.
35118         Reported by Sam Steingold <sds@gnu.org>.
35119
35120 2008-08-30  Bruno Haible  <bruno@clisp.org>
35121
35122         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
35123         Code copied from m4/open.m4.
35124         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
35125         access and the filename ends in a slash. Code copied from lib/open.c.
35126         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
35127         * tests/test-fopen.c (main): Check against bug with trailing slash.
35128
35129 2008-08-29  Bruno Haible  <bruno@clisp.org>
35130
35131         Avoid some "gcc -pedantic" warnings.
35132         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
35133         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
35134         * lib/dirent.in.h: Likewise.
35135         * lib/fcntl.in.h: Likewise.
35136         * lib/float.in.h: Likewise.
35137         * lib/iconv.in.h: Likewise.
35138         * lib/inttypes.in.h: Likewise.
35139         * lib/locale.in.h: Likewise.
35140         * lib/math.in.h: Likewise.
35141         * lib/netinet_in.in.h: Likewise.
35142         * lib/search.in.h: Likewise.
35143         * lib/signal.in.h: Likewise.
35144         * lib/stdarg.in.h: Likewise.
35145         * lib/stdint.in.h: Likewise.
35146         * lib/stdio.in.h: Likewise.
35147         * lib/stdlib.in.h: Likewise.
35148         * lib/string.in.h: Likewise.
35149         * lib/strings.in.h: Likewise.
35150         * lib/sys_select.in.h: Likewise.
35151         * lib/sys_socket.in.h: Likewise.
35152         * lib/sys_stat.in.h: Likewise.
35153         * lib/sys_time.in.h: Likewise.
35154         * lib/sysexits.in.h: Likewise.
35155         * lib/time.in.h: Likewise.
35156         * lib/unistd.in.h: Likewise.
35157         * lib/wchar.in.h: Likewise.
35158         * lib/wctype.in.h: Likewise.
35159         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
35160         * modules/fchdir (Makefile.am): Likewise.
35161         * modules/fcntl (Makefile.am): Likewise.
35162         * modules/float (Makefile.am): Likewise.
35163         * modules/iconv_open (Makefile.am): Likewise.
35164         * modules/inttypes (Makefile.am): Likewise.
35165         * modules/locale (Makefile.am): Likewise.
35166         * modules/math (Makefile.am): Likewise.
35167         * modules/netinet_in (Makefile.am): Likewise.
35168         * modules/search (Makefile.am): Likewise.
35169         * modules/signal (Makefile.am): Likewise.
35170         * modules/stdarg (Makefile.am): Likewise.
35171         * modules/stdint (Makefile.am): Likewise.
35172         * modules/stdio (Makefile.am): Likewise.
35173         * modules/stdlib (Makefile.am): Likewise.
35174         * modules/string (Makefile.am): Likewise.
35175         * modules/strings (Makefile.am): Likewise.
35176         * modules/sys_select (Makefile.am): Likewise.
35177         * modules/sys_socket (Makefile.am): Likewise.
35178         * modules/sys_stat (Makefile.am): Likewise.
35179         * modules/sys_time (Makefile.am): Likewise.
35180         * modules/sysexits (Makefile.am): Likewise.
35181         * modules/time (Makefile.am): Likewise.
35182         * modules/unistd (Makefile.am): Likewise.
35183         * modules/wchar (Makefile.am): Likewise.
35184         * modules/wctype (Makefile.am): Likewise.
35185         Reported by Reuben Thomas <rrt@sc3d.org>.
35186
35187 2008-08-29  Bruno Haible  <bruno@clisp.org>
35188
35189         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
35190         any more.
35191
35192 2008-08-29  Simon Josefsson  <simon@josefsson.org>
35193
35194         * MODULES.html.sh (Misc): Add bitrotate.
35195
35196         * modules/bitrotate: New file.
35197
35198         * lib/bitrotate.h: New file.
35199
35200         * modules/bitrotate-tests: New file.
35201
35202         * tests/test-bitrotate.c: New file.
35203
35204         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
35205         on the bitrotate module.
35206
35207         * lib/arctwo.c: Use new bitrotate module.
35208
35209 2008-08-29  Jim Meyering  <meyering@redhat.com>
35210
35211         bootstrap: merge changes from coreutils
35212         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
35213         of copied files.  Remove a kludge, now that this is fixed.
35214         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
35215         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
35216         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
35217
35218 2008-08-29  Bruno Haible  <bruno@clisp.org>
35219
35220         * MODULES.html.sh: Remove --cvs-urls option.
35221
35222 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
35223
35224         maint.mk: adjust to file name change
35225         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
35226
35227 2008-08-28  Jim Meyering  <meyering@redhat.com>
35228
35229         * modules/getndelim2 (License): Relicense to LGPLv2+.
35230         Approved by Richard Stallman for the version of 1995, and by
35231         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
35232
35233 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
35234
35235         * lib/getdelim.c (flockfile, funlockfile): Make all of them
35236         dummy if one is not available.  Do not touch them if
35237         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
35238         (getc_maybe_unlocked): New.
35239         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
35240
35241 2008-08-26  Eric Blake  <ebb9@byu.net>
35242
35243         doc/INSTALL: resync from autoconf
35244         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
35245         (INSTALL_PRELUDE): Delete; this is done more efficiently by
35246         moving...
35247         * install.texi [!autoconf]: ...here.  Resync from autoconf.
35248         * INSTALL: Regenerate.
35249         * INSTALL.ISO: New file.
35250         * INSTALL.UTF-8: Likewise.
35251
35252 2008-08-26  Jim Meyering  <meyering@redhat.com>
35253
35254         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
35255         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
35256         these definitions conditional, so that they may be overridden, too.
35257
35258 2008-08-26  Bruno Haible  <bruno@clisp.org>
35259
35260         Generate INSTALL file variants with prettier quotes.
35261         * doc/Makefile (INSTALL_PRELUDE): New macro.
35262         (INSTALL): Use it.
35263         (INSTALL.ISO, INSTALL.UTF-8): New rules.
35264
35265 2008-08-26  Bruno Haible  <bruno@clisp.org>
35266
35267         Run makeinfo in an English locale.
35268         * doc/Makefile (MAKEINFO): New variable.
35269
35270 2008-08-26  Bruno Haible  <bruno@clisp.org>
35271
35272         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
35273         Suggested by Eric Blake.
35274
35275 2008-08-25  Bruno Haible  <bruno@clisp.org>
35276
35277         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
35278
35279 2008-08-25  Eric Blake  <ebb9@byu.net>
35280
35281         c-stack: test that stack overflow can be caught
35282         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
35283         that platform allows handling stack overflow; at least OS/2 EMX
35284         has sigaltstack, but crashes before transferring control to
35285         handler on stack overflow.
35286         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
35287         check for HAVE_STACK_OVERFLOW_HANDLING.
35288         Reported by Elbert Pol.
35289
35290 2008-08-25  Bruno Haible  <bruno@clisp.org>
35291
35292         * doc/posix-functions/strftime.texi: Fix description of strftime
35293         module.
35294
35295 2008-08-24  Bruno Haible  <bruno@clisp.org>
35296
35297         * tests/uniwidth/test-uc_width2.c: New file.
35298         * tests/uniwidth/test-uc_width2.sh: New file.
35299         * modules/uniwidth/width-tests (Files): Add the new files.
35300         (TESTS): Add uniwidth/test-uc_width2.sh.
35301         (TESTS_ENVIRONMENT): New variable.
35302         (check_PROGRAMS): Add test-uc_width2.
35303         (test_uc_width2_SOURCES): New variable.
35304
35305         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
35306         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
35307         not 0x00AB.
35308         Reported by Alexander V. Lukyanov <lav@netis.ru>.
35309
35310 2008-08-22  Eric Blake  <ebb9@byu.net>
35311
35312         test-lock, test-tls: mention why a test is skipped
35313         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
35314         skipped.
35315         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
35316
35317         count-one-bits: relax license
35318         * modules/count-one-bits (License): Relicense to LGPLv2+.
35319         Suggested by Ludovic Courtès, approved by Ben Pfaff.
35320
35321 2008-08-22  Andreas Schwab  <schwab@suse.de>
35322
35323         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35324         Remove spurious space in assignment.
35325
35326 2008-08-21  Simon Josefsson  <simon@josefsson.org>
35327
35328         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
35329         Paul Eggert <eggert@CS.UCLA.EDU>.
35330
35331 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
35332
35333         * modules/gettext: Add m4/threadlib.m4.
35334
35335 2008-08-19  Eric Blake  <ebb9@byu.net>
35336
35337         test-c-stack: fix compilation failure on FreeBSD 5.0
35338         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
35339         headers before <sys/resource.h>.
35340         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
35341         the bug.
35342         Reported by Nelson H. F. Beebe.
35343
35344         strverscmp: migrate from "strverscmp.h" to <string.h>
35345         * modules/string (Makefile.am): Add new hooks.
35346         * modules/strverscmp (Files): Remove strverscmp.h.
35347         (Depends-on): Add string.
35348         (configure.ac): Add indicator.
35349         (Include): Mention new header.
35350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
35351         defaults.
35352         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
35353         results.
35354         * lib/strverscmp.h: Delete.
35355         * lib/string.in.h (strverscmp): Provide declaration, when needed.
35356         * tests/test-strverscmp.c (includes): Adjust client.
35357         * lib/check-version.c (includes): Likewise.
35358         * NEWS: Document the change.
35359
35360         strverscmp: add unit test
35361         * modules/strverscmp-tests: New file.
35362         * tests/test-strverscmp.c: Likewise.
35363
35364 2008-08-19  Simon Josefsson  <simon@josefsson.org>
35365
35366         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
35367         regarding Windows crypto stuff, from Mono.
35368
35369 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
35370
35371         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
35372         if present, for intel RND.  Return error on failures.
35373
35374 2008-08-18  Ben Pfaff  <blp@gnu.org>
35375
35376         gitlog-to-changelog: give better diagnostic for failed pipe-open
35377         * build-aux/gitlog-to-changelog: Improve error message: suggest
35378         that the version of Git may be too old.
35379
35380 2008-08-18  Simon Josefsson  <simon@josefsson.org>
35381
35382         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
35383         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
35384
35385 2008-08-18  Bruno Haible  <bruno@clisp.org>
35386
35387         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
35388         pthread_in_use().
35389
35390 2008-08-18  Bruno Haible  <bruno@clisp.org>
35391
35392         * lib/glthread/threadlib.c: Include <pthread.h>.
35393
35394 2008-08-18  Bruno Haible  <bruno@clisp.org>
35395
35396         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
35397         glthread_recursive_lock_* macros.
35398         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
35399         Fix syntax error.
35400
35401 2008-08-18  Bruno Haible  <bruno@clisp.org>
35402
35403         * lib/glthread/thread.c: Avoid forcing a context switch right after
35404         thread creation.
35405
35406 2008-08-17  Bruno Haible  <bruno@clisp.org>
35407
35408         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
35409         * lib/glthread/thread.h: Provide Win32 specific implementation.
35410         * modules/thread (Files): Add lib/glthread/thread.c.
35411         (Depends-on): Add lock.
35412         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
35413
35414 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35415
35416         New module 'yield'.
35417         * modules/yield: New file.
35418         * lib/glthread/yield.h: New file.
35419         * m4/yield.m4: New file.
35420         * MODULES.html.sh (Multithreading): Add yield.
35421
35422 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35423
35424         New module 'thread'.
35425         * modules/thread: New file.
35426         * lib/glthread/thread.h: New file.
35427         * m4/thread.m4: New file.
35428         * MODULES.html.sh (Multithreading): Add thread.
35429
35430 2008-08-17  Bruno Haible  <bruno@clisp.org>
35431
35432         * lib/glthread/lock.h: Include <stdlib.h> always.
35433         * lib/glthread/tls.h: Likewise.
35434         * lib/glthread/cond.h: Likewise.
35435
35436 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35437
35438         New module 'cond'.
35439         * modules/cond: New file.
35440         * lib/glthread/cond.h: New file.
35441         * lib/glthread/cond.c: New file.
35442         * m4/cond.m4: New file.
35443         * MODULES.html.sh (Multithreading): Add cond.
35444
35445 2008-08-16  Eric Blake  <ebb9@byu.net>
35446
35447         c-stack: fix regression on Irix 5.3 from 2008-06-21
35448         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
35449         sa_sigaction...
35450         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
35451         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
35452         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
35453         * modules/signal (Makefile.am): Use the value.
35454         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
35455         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
35456         * doc/posix-headers/signal.texi (signal.h): Document this
35457         portability issue.
35458         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
35459         Reported by Tom G. Christensen.
35460
35461 2008-08-17  Bruno Haible  <bruno@clisp.org>
35462
35463         New module 'threadlib'.
35464         * modules/threadlib: New file.
35465         * lib/glthread/threadlib.c: New file, extracted from
35466         lib/glthread/lock.c.
35467         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
35468         functions.
35469         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
35470         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
35471         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
35472         macros.
35473         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
35474         (gl_DISABLE_THREADS): Remove macro.
35475         * modules/lock (Files): Remove build-aux/config.rpath.
35476         (Depends-on): Remove havelib. Add threadlib.
35477         (configure.ac-early): Remove section.
35478         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
35479         * modules/tls (Depends-on): Remove lock. Add threadlib.
35480         (Link): New section, copied from threadlib.
35481         * MODULES.html.sh (Multithreading): Add threadlib.
35482
35483 2008-08-14  Bruno Haible  <bruno@clisp.org>
35484
35485         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
35486         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
35487         glthread_rwlock_unlock, glthread_rwlock_destroy,
35488         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
35489         glthread_recursive_lock_destroy): Define as macros always.
35490         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
35491         glthread_lock_lock.
35492         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
35493         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
35494         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
35495         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
35496         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
35497         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
35498         (glthread_recursive_lock_lock_func): Renamed from
35499         glthread_recursive_lock_lock.
35500         (glthread_recursive_lock_unlock_func): Renamed from
35501         glthread_recursive_lock_unlock.
35502         (glthread_recursive_lock_destroy_func): Renamed from
35503         glthread_recursive_lock_destroy.
35504
35505 2008-08-14  Bruno Haible  <bruno@clisp.org>
35506
35507         * lib/glthread/lock.h: Renamed from lib/lock.h.
35508         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
35509         * lib/glthread/tls.h: Renamed from lib/tls.h.
35510         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
35511         * lib/fstrcmp.c: Update includes.
35512         * lib/strsignal.c: Update includes.
35513         * modules/lock (Files, Makefile.am): Update.
35514         (Include): Change to "glthread/lock.h".
35515         * modules/tls (Files, Makefile.am): Update.
35516         (Include): Change to "glthread/tls.h".
35517         * tests/test-lock.c: Update includes.
35518         * tests/test-tls.c: Update includes.
35519         * NEWS: Mention the renamed header files.
35520
35521 2008-08-11  Jim Meyering  <meyering@redhat.com>
35522
35523         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
35524
35525 2008-08-11  Eric Blake  <ebb9@byu.net>
35526
35527         test-c-stack: avoid C99-ism
35528         * tests/test-c-stack.c (main): Fix whitespace, move declaration
35529         before statement.
35530         Reported by Alain Guibert.
35531
35532 2008-08-10  Jim Meyering  <meyering@redhat.com>
35533
35534         ensure that return value of uinttostr et al are not ignored
35535         * lib/inttostr.h (__GNUC_PREREQ): Define.
35536         (__attribute_warn_unused_result__): Define.
35537         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
35538
35539 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
35540
35541         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
35542         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
35543
35544 2008-08-07  Jim Meyering  <meyering@redhat.com>
35545
35546         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
35547
35548         * modules/mkstemp (License): Relicense under LGPLv2+.
35549         * modules/tempname (License): Likewise.
35550
35551 2008-08-06  Bruno Haible  <bruno@clisp.org>
35552
35553         * lib/poll.c (poll): Further micro-optimization.
35554
35555 2008-08-06  Jim Meyering  <meyering@redhat.com>
35556
35557         inet_pton.c: use locale-independent tolower
35558         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
35559         (inet_pton6): Use c_tolower rather than tolower.
35560         * modules/inet_pton (Depends-on): Add c-ctype.
35561
35562 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
35563
35564         * lib/poll.c (poll): Avoid division when timeout is 0, cache
35565         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
35566
35567 2008-08-06  Jim Meyering  <meyering@redhat.com>
35568
35569         * modules/inet_pton (License): Relicense under LGPLv2+.
35570
35571 2008-08-03  Bruno Haible  <bruno@clisp.org>
35572
35573         Additional non-aborting API for lock and tls.
35574         * lib/lock.h: Include <errno.h>.
35575         (glthread_lock_init): New macro/function.
35576         (gl_lock_init): Define as wrapper around glthread_lock_init.
35577         (glthread_lock_lock): New macro/function.
35578         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
35579         (glthread_lock_unlock): New macro/function.
35580         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
35581         (glthread_lock_destroy): New macro/function.
35582         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
35583         (glthread_rwlock_init): New macro/function.
35584         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
35585         (glthread_rwlock_rdlock): New macro/function.
35586         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
35587         (glthread_rwlock_wrlock): New macro/function.
35588         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
35589         (glthread_rwlock_unlock): New macro/function.
35590         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
35591         (glthread_rwlock_destroy): New macro/function.
35592         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
35593         (glthread_recursive_lock_init): New macro/function.
35594         (gl_recursive_lock_init): Define as wrapper around
35595         glthread_recursive_lock_init.
35596         (glthread_recursive_lock_lock): New macro/function.
35597         (gl_recursive_lock_lock): Define as wrapper around
35598         glthread_recursive_lock_lock.
35599         (glthread_recursive_lock_unlock): New macro/function.
35600         (gl_recursive_lock_unlock): Define as wrapper around
35601         glthread_recursive_lock_unlock.
35602         (glthread_recursive_lock_destroy): New macro/function.
35603         (gl_recursive_lock_destroy): Define as wrapper around
35604         glthread_recursive_lock_destroy.
35605         (glthread_once): New macro/function.
35606         (gl_once): Define as wrapper around glthread_once.
35607         Update function declarations.
35608         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
35609         glthread_rwlock_init. Return error code.
35610         (glthread_rwlock_rdlock_multithreaded): Renamed from
35611         glthread_rwlock_rdlock. Return error code.
35612         (glthread_rwlock_wrlock_multithreaded): Renamed from
35613         glthread_rwlock_wrlock. Return error code.
35614         (glthread_rwlock_unlock_multithreaded): Renamed from
35615         glthread_rwlock_unlock. Return error code.
35616         (glthread_rwlock_destroy_multithreaded): Renamed from
35617         glthread_rwlock_destroy. Return error code.
35618         (glthread_recursive_lock_init_multithreaded): Renamed from
35619         glthread_recursive_lock_init. Return error code.
35620         (glthread_recursive_lock_lock_multithreaded): Renamed from
35621         glthread_recursive_lock_lock. Return error code.
35622         (glthread_recursive_lock_unlock_multithreaded): Renamed from
35623         glthread_recursive_lock_unlock. Return error code.
35624         (glthread_recursive_lock_destroy_multithreaded): Renamed from
35625         glthread_recursive_lock_destroy. Return error code.
35626         (glthread_once_call): Make static.
35627         (glthread_once_multithreaded): Renamed from glthread_once.
35628         * lib/tls.h: Include <errno.h>.
35629         (glthread_tls_key_init): New macro/function.
35630         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
35631         (glthread_tls_set): New macro/function.
35632         (gl_tls_set): Define as wrapper around glthread_tls_set.
35633         (glthread_tls_key_destroy): New macro/function.
35634         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
35635         Update function declarations.
35636         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
35637         glthread_tls_get.
35638         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35639
35640 2008-08-04  Eric Blake  <ebb9@byu.net>
35641
35642         gnumakefile: use space, not TAB, outside of targets
35643         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
35644
35645 2008-08-02  Jim Meyering  <meyering@redhat.com>
35646
35647         getdate.y: avoid locale-dependent date parsing failure
35648         In Turkish locales, getdate would fail to recognize keywords
35649         containing a lowercase "i".  The solution is not to rely on
35650         locale-sensitive case-conversion.
35651         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
35652         (lookup_word): Use c_toupper in place of toupper.
35653         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
35654         Reported by Vefa Bicakci <bicave@superonline.com> in
35655         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
35656         * modules/getdate (Depends-on): Add c-ctype.
35657
35658 2008-08-02  Bruno Haible  <bruno@clisp.org>
35659
35660         * gnulib-tool (func_import): When updating or creating a .gitignore
35661         file, prepend each added line with a slash, and ignore leading slashes
35662         from the existing lines.
35663         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35664
35665 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35666
35667         Portability fix for GNU make 3.79.1.
35668         * top/GNUmakefile: Avoid 'else COND', which older GNU make
35669         versions do not understand.
35670
35671 2008-08-01  Bruno Haible  <bruno@clisp.org>
35672
35673         Work around bug of HP-UX 10.20 cc with -0.0 literal.
35674         * tests/test-isnanf.h (zero): New variable.
35675         (main): Avoid literal -0.0f.
35676         * tests/test-isnand.h (zero): New variable.
35677         (main): Avoid literal -0.0.
35678         * tests/test-isnanl.h (zero): New variable.
35679         (main): Avoid literal -0.0L.
35680         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
35681         (test_float, test_double, test_long_double): Avoid literals -0.0f,
35682         -0.0, -0.0L.
35683         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
35684         (test_signbitd): Avoid literal -0.0.
35685         (test_signbitl): Avoid literal -0.0L.
35686         * tests/test-ceilf1.c (zero): New variable.
35687         (main): Avoid literal -0.0f.
35688         * tests/test-ceill.c (zero): New variable.
35689         (main): Avoid literal -0.0L.
35690         * tests/test-floorf1.c (zero): New variable.
35691         (main): Avoid literal -0.0f.
35692         * tests/test-floorl.c (zero): New variable.
35693         (main): Avoid literal -0.0L.
35694         * tests/test-roundf1.c (zero): New variable.
35695         (main): Avoid literal -0.0f.
35696         * tests/test-round1.c (zero): New variable.
35697         (main): Avoid literal -0.0.
35698         * tests/test-roundl.c (zero): New variable.
35699         (main): Avoid literal -0.0L.
35700         * tests/test-truncf1.c (zero): New variable.
35701         (main): Avoid literal -0.0f.
35702         * tests/test-trunc1.c (zero): New variable.
35703         (main): Avoid literal -0.0.
35704         * tests/test-truncl.c (zero): New variable.
35705         (main): Avoid literal -0.0L.
35706         * tests/test-frexp.c (zero): New variable.
35707         (main): Avoid literal -0.0.
35708         * tests/test-frexpl.c (zero): New variable.
35709         (main): Avoid literal -0.0L.
35710         * tests/test-ldexpl.c (zero): New variable.
35711         (main): Avoid literal -0.0L.
35712         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35713         (zerod, zerol): New variables.
35714         (test_function): Avoid literals -0.0, -0.0L.
35715         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35716         (zerod, zerol): New variables.
35717         (test_function): Avoid literals -0.0, -0.0L.
35718         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35719         (zerod, zerol): New variables.
35720         (test_function): Avoid literals -0.0, -0.0L.
35721         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35722         (zerod, zerol): New variables.
35723         (test_function): Avoid literals -0.0, -0.0L.
35724         * tests/test-strtod.c (zero): New variable.
35725         (main): Avoid literal -0.0.
35726         Reported by Jonathan C. Patschke <jp@centtech.com>.
35727
35728 2008-07-31  Jim Meyering  <meyering@redhat.com>
35729
35730         sha256.h: correct definition of SHA224_DIGEST_SIZE
35731         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
35732         Reported by Paulie Pena IV <paulie4@gmail.com>.
35733         Define as 224 / 8, rather than as a literal.
35734         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
35735         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
35736         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
35737
35738 2008-07-31  Bruno Haible  <bruno@clisp.org>
35739
35740         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
35741         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
35742         Reported by Jonathan Patschke <jp@centtech.com>.
35743
35744 2008-07-31  Bruno Haible  <bruno@clisp.org>
35745
35746         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
35747         Reported by Paolo Bonzini <bonzini@gnu.org>.
35748
35749 2008-07-30  Eric Blake  <ebb9@byu.net>
35750
35751         test-strtod: allow compilation without -lm
35752         * tests/test-strtod.c (main): Avoid link dependence on fabs.
35753         Reported by Dennis Clarke <blastwave@gmail.com>.
35754
35755 2008-07-28  Jim Meyering  <meyering@redhat.com>
35756
35757         bootstrap: work also when there are no .po files in po/
35758         * build-aux/bootstrap (update_po_files): Complete the change
35759         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
35760
35761 2008-07-27  Jim Meyering  <meyering@redhat.com>
35762
35763         * users.txt: Add zile.
35764
35765 2008-07-26  Ben Pfaff  <blp@gnu.org>
35766
35767         Add missing dependencies on new m4/exponent[fdl].m4 files.
35768         * modules/isnanf-nolibm: Add m4/exponentf.m4.
35769         * modules/isnand-nolibm: Add m4/exponentd.m4.
35770         * modules/isnanl-nolibm: Add m4/exponentl.m4.
35771         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
35772         m4/isnan[fdl].m4, because the macros actually used moved.
35773         Reported by Jim Meyering.
35774
35775 2008-07-14  Ben Pfaff  <blp@gnu.org>
35776
35777         Add isinf module.
35778         * lib/isinf.c: New file.
35779         * lib/math.in.h: Define isinf macro if we have decided to replace
35780         it.
35781         * m4/isinf.m4: New file.
35782         * m4/math_h.m4: Initialize and substitute variables for isinf
35783         module.
35784         * modules/isinf: New file.
35785         * modules/isinf-tests: New file.
35786         * modules/math: Add substitutions for new module.
35787         * tests/test-isinf.c: New file.
35788         * doc/posix-functions/isinf.texi: Mention new module.
35789         * MODULES.html.sh: Mention new module.
35790
35791 2008-07-14  Ben Pfaff  <blp@gnu.org>
35792
35793         Factor out some macros for use by additional modules.
35794         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
35795         exponentf.m4.
35796         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
35797         exponentd.m4.
35798         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
35799         file exponentl.m4.
35800         * m4/exponentf.m4: New file.
35801         * m4/exponentd.m4: New file.
35802         * m4/exponentl.m4: New file.
35803         * modules/isnanf: Use new file m4/exponentf.m4.
35804         * modules/isnand: Use new file m4/exponentd.m4.
35805         * modules/isnanl: Use new file m4/exponentl.m4.
35806
35807 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
35808
35809         mktime.c: normalize tp->tm_isdst value to -1/0/1.
35810         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
35811         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
35812         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
35813
35814         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
35815         readlink on platforms without PATH_MAX.
35816
35817 2008-07-21  Eric Blake  <ebb9@byu.net>
35818
35819         Warn, not fail, on stale version.
35820         * top/GNUmakefile (_curr-ver): Tone down previous patch.
35821
35822         Don't allow installation with stale devel version number.
35823         * top/GNUmakefile (_is-install-target): New macro.
35824         (_curr-ver): Forbid installation with stale version number.
35825
35826 2008-07-20  Bruno Haible  <bruno@clisp.org>
35827
35828         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
35829         TESTS_ENVIRONMENT.
35830         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
35831
35832 2008-07-20  Bruno Haible  <bruno@clisp.org>
35833
35834         * lib/c-stack.h (c_stack_action): Add documentation.
35835         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
35836
35837 2008-07-20  Bruno Haible  <bruno@clisp.org>
35838
35839         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
35840         * modules/readlink (License): Likewise.
35841
35842 2008-07-17  Eric Blake  <ebb9@byu.net>
35843
35844         * modules/c-stack (Link): Fix typo.
35845
35846         Make c-stack use libsigsegv, when available.
35847         * modules/c-stack (Depends-on): Add libsigsegv.
35848         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
35849         needed.
35850         * lib/c-stack.c (SIGSTKSZ): Define fallback.
35851         (segv_handler, overflow_handler, c_stack_action)
35852         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
35853         implementation when libsigsegv is available, but only when using
35854         the library is necessary.
35855         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
35856         comment, explaining why XSI check fails on Linux.
35857         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
35858         * tests/test-c-stack2.sh: Tweak skip message.
35859         * NEWS: Document new link-time requirements.
35860
35861 2008-07-16  Eric Blake  <ebb9@byu.net>
35862
35863         c-stack: Expose false positives when not using libsigsegv.
35864         * modules/c-stack-tests (Files): Expand test.
35865         * tests/test-c-stack.c (main): Add means to conditionally trigger
35866         non-overflow SIGSEGV.
35867         * tests/test-c-stack2.sh: New file.
35868
35869 2008-07-14  Bruno Haible  <bruno@clisp.org>
35870
35871         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
35872         Reported by Eric Blake.
35873
35874 2008-07-14  Sam Steingold  <sds@gnu.org>
35875             Bruno Haible  <bruno@clisp.org>
35876
35877         New module libsigsegv.
35878         * modules/libsigsegv: New file.
35879         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
35880         modifications.
35881         * MODULES.html.sh (Signal handling): New section.
35882
35883 2008-07-14  Bruno Haible  <bruno@clisp.org>
35884
35885         * modules/unictype/ctype-* (Description): Add the word "function".
35886         Improves the resulting doc in MODULES.html.
35887
35888 2008-07-12  Ben Pfaff  <blp@gnu.org>
35889
35890         Add longlong module.
35891         * modules/longlong: New file.
35892
35893 2008-07-12  Bruno Haible  <bruno@clisp.org>
35894
35895         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
35896         to empty.
35897
35898 2008-07-10  Ben Pfaff  <blp@gnu.org>
35899
35900         Add isnan module.
35901         * doc/posix-functions/isnan.texi: Mention new module.
35902         * lib/math.in.h: Define isnan macro if we have decided to replace
35903         it.
35904         * m4/isnan.m4: New file.
35905         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
35906         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
35907         also.
35908         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
35909         redundancy.
35910         * m4/math_h.m4: Initialize and substitute variables for isnan
35911         module.
35912         * modules/isnan: New file.
35913         * modules/isnan-tests: New file.
35914         * modules/math: Add substitutions for new module.
35915         * tests/test-isnan.c: New file.
35916         * MODULES.html.sh: Mention new module.
35917
35918 2008-07-10  Ben Pfaff  <blp@gnu.org>
35919
35920         Add isnanf module.
35921         * lib/isnanf.m4: New file.
35922         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
35923         (gl_HAVE_ISNANF_IN_LIBM): New macro.
35924         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
35925         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
35926         * modules/isnanf: New file.
35927         * modules/isnanf-tests: New file.
35928         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
35929         files.
35930         * tests/test-isnanf-nolibm.c: factored most of its contents into
35931         new file tests/test-isnanf.h.
35932         * tests/test-isnanf.h: New file.
35933         * tests/test-isnanf.c: New file.
35934         * MODULES.html.sh: Mention new module.
35935         * doc/glibc-functions/isnanf.texi: Mention new module.
35936
35937 2008-07-10  Ben Pfaff  <blp@gnu.org>
35938
35939         Add isnand module.
35940         * lib/isnand.h: New file.
35941         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
35942         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
35943         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
35944         functionality also.
35945         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
35946         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
35947         (gl_HAVE_ISNAND_IN_LIBM): New macro.
35948         * modules/isnand: New file.
35949         * modules/isnand-tests: New file.
35950         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
35951         files.
35952         * tests/test-isnand-nolibm.c: factored most of its contents into
35953         new file tests/test-isnand.h.
35954         * tests/test-isnand.h: New file.
35955         * tests/test-isnand.c: New file.
35956         * MODULES.html.sh: Mention new module.
35957
35958 2008-07-10  Ben Pfaff  <blp@gnu.org>
35959
35960         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
35961         * lib/isnand.h: Rename lib/isnand-nolibm.h.
35962         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
35963         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
35964         * modules/isnanf-nolibm: Update references to renamed files.
35965         * modules/isnand-nolibm: Likewise.
35966         * modules/isnanf-nolibm-tests: Likewise.
35967         * modules/isnand-nolibm-tests: Likewise.
35968         * lib/frexp.c: Likewise.
35969         * lib/isfinite.c: Likewise.
35970         * lib/signbitd.c: Likewise.
35971         * lib/signbitf.c: Likewise.
35972         * lib/vasnprintf.c: Likewise.
35973         * tests/test-ceilf1.c: Likewise.
35974         * tests/test-ceilf2.c: Likewise.
35975         * tests/test-floorf1.c: Likewise.
35976         * tests/test-floorf2.c: Likewise.
35977         * tests/test-frexp.c: Likewise.
35978         * tests/test-round1.c: Likewise.
35979         * tests/test-round2.c: Likewise.
35980         * tests/test-roundf1.c: Likewise.
35981         * tests/test-strtod.c: Likewise.
35982         * tests/test-trunc1.c: Likewise.
35983         * tests/test-trunc2.c: Likewise.
35984         * tests/test-truncf1.c: Likewise.
35985         * tests/test-truncf2.c: Likewise.
35986         * NEWS: Mention the renamed header files.
35987
35988 2008-07-11  Jim Meyering  <meyering@redhat.com>
35989
35990         vc-list-files: make the last-resort awk code more portable
35991         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
35992         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
35993         does not support it.
35994
35995 2008-07-10  Eric Blake  <ebb9@byu.net>
35996
35997         Work with tar's bootstrap.
35998         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
35999         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
36000         an m4 comment.
36001
36002 2008-07-09  Jim Meyering  <meyering@redhat.com>
36003
36004         posix-shell.m4: fix typo that made this test malfunction
36005         * m4/posix-shell.m4: Remove capitalization in variable name.
36006
36007 2008-07-08  Bruno Haible  <bruno@clisp.org>
36008
36009         * m4/onceonly.m4: Update comments.
36010         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36011
36012 2008-07-04  Jim Meyering  <meyering@redhat.com>
36013
36014         * users.txt: Add vc-dwim.
36015         (bison, coreutils): Use the gitweb URL.
36016
36017 2008-07-03  Jim Meyering  <meyering@redhat.com>
36018
36019         * users.txt: Add libffcall.  From Sam Steingold.
36020
36021 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
36022
36023         getdate.y: do not ignore TZ with relative day, month or year offset
36024         * lib/getdate.y (get_date): Move the tz-handling block to follow the
36025         relative-date-handling, since otherwise, the latter would clobber the
36026         sole output (an updated Start value) of the tz-handling block.
36027         * tests/test-getdate.c: Tests for the fix
36028
36029 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36030
36031         Recognize 'foo_LIBRARIES += libgnu.a'.
36032         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
36033         makefile snippet has already specified an installation location,
36034         also using '+='.
36035
36036 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
36037
36038         getdate.y: factor out common actions
36039         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
36040         Use them in place of open-coded actions.
36041
36042 2008-07-01  Simon Josefsson  <simon@josefsson.org>
36043
36044         Add self-test for getdate module.
36045         * modules/getdate-tests: New file.
36046         * tests/test-getdate.c: New file.
36047
36048 2008-06-29  Bruno Haible  <bruno@clisp.org>
36049
36050         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
36051         .gitignore.
36052         Reported by Sylvain Beucler <beuc@beuc.net>.
36053
36054 2008-06-29  Bruno Haible  <bruno@clisp.org>
36055
36056         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
36057         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
36058
36059 2008-06-29  Bruno Haible  <bruno@clisp.org>
36060
36061         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
36062         EXTRA_DIST.
36063         Reported by Sylvain Beucler <beuc@beuc.net>.
36064
36065 2008-06-26  Jim Meyering  <meyering@redhat.com>
36066
36067         make several modules depend on the "open" module
36068         This provides slightly increased consistency when opening-for-write
36069         the name of a non-directory spelled with a trailing slash.
36070         * modules/chdir-safer: Likewise.
36071         * modules/chown: Likewise.
36072         * modules/clean-temp: Likewise.
36073         * modules/copy-file: Likewise.
36074         * modules/fchdir: Likewise.
36075         * modules/fcntl-safer: Likewise.
36076         * modules/pipe: Likewise.
36077         * modules/utime: Likewise.
36078         Prompted by Eric Blake and Bruno Haible.
36079
36080 2008-06-24  Andreas Schwab  <schwab@suse.de>
36081
36082         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
36083         literals can be used as initializers for global variables.
36084
36085 2008-06-23  Eric Blake  <ebb9@byu.net>
36086
36087         Make gnulib-cache.m4 easier to diff.
36088         * gnulib-tool (func_import): Allow newlines when reading cached
36089         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
36090
36091 2008-06-23  Bruno Haible  <bruno@clisp.org>
36092
36093         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
36094         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
36095         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
36096         m4/signalblocking.m4.
36097         (gl_PREREQ_SIGACTION): Don't invoke it.
36098         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
36099         gl_PREREQ_SIG_HANDLER_H.
36100         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36101         Don't check for sigaction here.
36102
36103 2008-06-23  Bruno Haible  <bruno@clisp.org>
36104
36105         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
36106         (install_handlers): Don't set the SA_RESETHAND flag.
36107
36108 2008-06-23  Bruno Haible  <bruno@clisp.org>
36109
36110         * m4/sigaction.m4: Comment fixes.
36111         * lib/signal.in.h: Likewise.
36112
36113 2008-06-23  Eric Blake  <ebb9@byu.net>
36114
36115         Fix typo.
36116         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
36117
36118         Avoid SA_ namespace.
36119         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
36120         Reported by Ralf Wildenhues.
36121
36122         Avoid test failure due to SA_RESTORER.
36123         * tests/test-sigaction.c (SA_MASK): New macro.
36124         (main): Avoid failing due to extension flags being set.
36125         Reported by Jim Meyering.
36126
36127         Revert use of sig-handler.h in sigprocmask.c.
36128         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
36129         it requires the existence of struct sigaction.
36130         * lib/sigprocmask.c (handler_t): Restore typedef.
36131         (rpl_signal, old_handlers): Use local type.
36132
36133 2008-06-22  Bruno Haible  <bruno@clisp.org>
36134
36135         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
36136         conditionally.
36137         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36138
36139 2008-06-22  Bruno Haible  <bruno@clisp.org>
36140
36141         * doc/posix-functions/siginterrupt.texi: Move note.
36142
36143         * lib/signal.in.h (SA_RESTART): New macro.
36144         * lib/sigaction.c: Update comment.
36145
36146         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
36147
36148         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
36149         (gl_PREREQ_SIGPROCMASK): Invoke it.
36150         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
36151
36152         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
36153
36154         * lib/sigprocmask.c: Update a comment.
36155
36156 2008-06-21  Eric Blake  <ebb9@byu.net>
36157
36158         Use sigaction module rather than signal().
36159         * modules/c-stack (Depends-on): Add sigaction.
36160         * modules/fatal-signal (Depends-on): Likewise.
36161         * modules/nanosleep (Depends-on): Likewise.
36162         * modules/sigprocmask (Files): Add sig-handler.h.
36163         * modules/sigaction (Files): Likewise.
36164         * lib/sig-handler.h (get_handler): New file, suggested by Paul
36165         Eggert.
36166         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
36167         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
36168         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
36169         (init_fatal_signals): Likewise.
36170         * lib/nanosleep.c (rpl_nanosleep): Likewise.
36171         (siginterrupt): Delete fallback.
36172         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
36173         instead.
36174         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
36175         siginterrupt.
36176
36177         New module sigaction, for mingw.
36178         * modules/sigaction: New module...
36179         * modules/sigaction-tests: ...and its test.
36180         * m4/sigaction.m4: New file.
36181         * lib/sigaction.c: Likewise.
36182         * tests/test-sigaction.c: Likewise.
36183         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
36184         * modules/signal (Makefile.am): Likewise.
36185         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
36186         needed.
36187         * doc/posix-headers/signal.texi (signal.h): Mention provided
36188         types.
36189         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
36190         that sigaction is preferable.
36191         * doc/posix-functions/sigaction.texi (sigaction): Mention new
36192         module.
36193         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36194         sigaction.
36195
36196         Improve robustness of sigprocmask by overriding signal.
36197         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
36198         is in use.
36199         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
36200         (SIGKILL, SIGSTOP): Provide fallbacks.
36201         (rpl_signal): Implement.
36202         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
36203         signal can be called inside handlers.
36204
36205         Fix nanosleep module on mingw.
36206         * modules/nanosleep (Depends-on): Add sys_select.
36207         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
36208
36209         Fix licensing of sigprocmask.
36210         * modules/raise (License): Relicense as LGPL.
36211
36212 2008-06-21  Bruno Haible  <bruno@clisp.org>
36213
36214         * lib/propername.c (proper_name_utf8): Don't use the transliterated
36215         result if it contains question marks.
36216         Reported by Michael Geng <linux@michaelgeng.de>.
36217
36218 2008-06-19  Bruno Haible  <bruno@clisp.org>
36219
36220         Fix CVS-ism.
36221         * doc/gnulib.texi: Include updated-stamp.texi.
36222         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
36223         (updated-stamp.texi): New rule.
36224         (gnulib.info): Depend on it.
36225         * doc/.gitignore: Add updated-stamp.texi.
36226         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
36227
36228 2008-06-19  Bruno Haible  <bruno@clisp.org>
36229
36230         * doc/Makefile (gnulib.info): Update and simplify dependencies.
36231         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36232
36233 2008-06-19  Eric Blake  <ebb9@byu.net>
36234
36235         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
36236         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
36237         Reported by Stepan Kasal.
36238
36239 2008-06-18  Bruno Haible  <bruno@clisp.org>
36240
36241         * lib/fatal-signal.c (init_fatal_signals): Add comment.
36242         Reported by Eric Blake.
36243
36244 2008-06-18  Eric Blake  <ebb9@byu.net>
36245
36246         Work around cygwin 1.5.25 strsignal bug.
36247         * tests/test-strsignal.c: Allow for const char *.
36248         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
36249
36250 2008-06-18  Simon Josefsson  <simon@josefsson.org>
36251
36252         * users.txt: Update URL to article and add author/date
36253         information.
36254
36255 2008-06-17  Bruno Haible  <bruno@clisp.org>
36256
36257         New macro gl_DISABLE_THREADS.
36258         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
36259         if the user did not pass --enable-threads or --disable-threads option.
36260         (gl_DISABLE_THREADS): New macro.
36261         Reported by Eric Blake <ebb9@byu.net>.
36262
36263 2008-06-17  Bruno Haible  <bruno@clisp.org>
36264
36265         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
36266         when the macro ignores it.
36267         Based on a patch by Eric Blake <ebb9@byu.net>.
36268
36269 2008-06-17  Bruno Haible  <bruno@clisp.org>
36270
36271         * modules/tls (License): Change to LGPLv2+.
36272         Reported by Eric Blake.
36273
36274 2008-06-17  Eric Blake  <ebb9@byu.net>
36275
36276         Simplify c-stack prerequisites.
36277         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
36278         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
36279         no longer requires <ucontext.h> to exist.  Optimize setrlimit
36280         check.
36281         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
36282         <sys/resource.h>.
36283
36284         Move c-stack test into testsuite.
36285         * modules/c-stack-tests: New file.
36286         * lib/c-stack.c [DEBUG]: Move test program...
36287         * tests/test-c-stack.c: ...into this new file.  Skip rather than
36288         fail test if sigaltstack is lacking.
36289         * tests/test-c-stack.sh: New driver file.
36290
36291 2008-06-16  Eric Blake  <ebb9@byu.net>
36292
36293         Use raise module consistently.
36294         * modules/fatal-signal (Depends-on): Add raise.
36295         * modules/sigprocmask (Depends-on): Likewise.
36296         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
36297         * lib/sigprocmask.c (sigprocmask): Likewise.
36298         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36299         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
36300
36301         Fix compliance bug in sigpending.
36302         * lib/sigprocmask.c (sigpending): Return pending array via
36303         parameter, not return value.
36304
36305 2008-06-14  Eric Blake  <ebb9@byu.net>
36306
36307         Improve obstack-printf test code.
36308         * tests/test-obstack-printf.c (test_function): Fix comment, and
36309         simplify usage of obstack_* in macros.  Add a test for coverage.
36310         Reported by Bruno Haible.
36311
36312 2008-06-14  Bruno Haible  <bruno@clisp.org>
36313
36314         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
36315         array size as a constant, not as a const variable.
36316         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
36317         AC_USE_SYSTEM_EXTENSIONS.
36318         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36319         Test whether the obstack_printf function actually exists.
36320         * modules/obstack-printf (Depends-on): Add extensions.
36321         (Include): Remove obstack.h.
36322         * modules/obstack-printf-posix (Depends-on): Add extensions.
36323         (Include): Remove obstack.h.
36324
36325 2008-06-13  Eric Blake  <ebb9@byu.net>
36326
36327         Add obstack-printf and obstack-printf-posix modules.
36328         * modules/obstack-printf: New file.
36329         * modules/obstack-printf-posix: Likewise.
36330         * MODULES.html.sh (Misc): Mention them.
36331         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36332         Likewise.
36333         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36334         Likewise.
36335         * modules/stdio (Makefile.am): Accomodate new modules.
36336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36337         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
36338         Declare.
36339         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
36340         functions.
36341         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
36342         (gl_REPLACE_OBSTACK_PRINTF): New macros
36343         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
36344         * tests/test-obstack-printf.c: New file.
36345         * modules/obstack-printf-tests: Likewise.
36346         * modules/obstack-printf-posix-tests: Likewise.
36347
36348 2008-06-11  Bruno Haible  <bruno@clisp.org>
36349
36350         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
36351         * lib/open.c: Include errno.h.
36352         (open): Fail when attempting to write to a file that has a trailing
36353         slash.
36354         * tests/test-open.c (main): Test against trailing slash bug.
36355         * doc/posix-functions/open.texi: Mention the trailing slash bug.
36356
36357 2008-06-10  Bruno Haible  <bruno@clisp.org>
36358
36359         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
36360         for $? to work inside the trap command, with various /bin/sh-s.
36361         * tests/test-vc-list-files-cvs.sh: Likewise.
36362
36363 2008-06-10  Bruno Haible  <bruno@clisp.org>
36364
36365         * lib/acl-internal.h: Don't include gettext.h here.
36366         * lib/set-mode-acl.c: Include gettext.h here.
36367         * lib/copy-acl.c: Likewise.
36368
36369 2008-06-10  Bruno Haible  <bruno@clisp.org>
36370
36371         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
36372         * lib/wait-process.c (wait_subprocess): Likewise.
36373         * lib/execute.h (execute): Add termsigp argument.
36374         * lib/execute.c (execute): Likewise.
36375         * lib/csharpcomp.c (compile_csharp_using_pnet,
36376         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
36377         * lib/csharpexec.c (execute_csharp_using_pnet,
36378         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
36379         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
36380         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
36381         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
36382         is_jikes_present): Update.
36383         * lib/javaexec.c (execute_java_class): Update.
36384         * lib/javaversion.c (execute_and_read_line): Update.
36385         * NEWS: Document the changes.
36386         Reported by Eric Blake.
36387
36388 2008-06-10  Eric Blake  <ebb9@byu.net>
36389
36390         Add missing include.
36391         * tests/test-strstr.c (includes): Add <signal.h>.
36392         * tests/test-strcasestr.c (includes): Likewise.
36393         * tests/test-memmem.c (includes): Likewise.
36394
36395 2008-06-10  Bruno Haible  <bruno@clisp.org>
36396
36397         * lib/wait-process.c (wait_subprocess): Add an assertion.
36398
36399 2008-06-10  Bruno Haible  <bruno@clisp.org>
36400
36401         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
36402
36403 2008-06-10  Bruno Haible  <bruno@clisp.org>
36404
36405         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
36406         using alarm().
36407         * tests/test-strcasestr.c (main): Likewise.
36408         * tests/test-strstr.c (main): Likewise.
36409
36410 2008-06-09  Bruno Haible  <bruno@clisp.org>
36411
36412         Work around the Solaris 10 ACE ACLs ABI change.
36413         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
36414         declare if ACL_NO_TRIVIAL is present.
36415         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
36416         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
36417         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
36418         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
36419         define if ACL_NO_TRIVIAL is present.
36420         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
36421         and use the current ABI.
36422         (file_has_acl): Use same #if condition as elsewhere.
36423         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
36424         in use, and use the current ABI.
36425         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
36426         Reported by Jim Meyering.
36427
36428 2008-06-09  Eric Blake  <ebb9@byu.net>
36429
36430         Work around environments that (stupidly) ignore SIGALRM.
36431         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
36432         before using alarm().
36433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36434         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36435         Reported by Ian Beckwith <ianb@erislabs.net>.
36436
36437         Produce autobuild blurb earlier in log.
36438         * modules/autobuild (configure.ac-early): Move AB_INIT here.
36439
36440 2008-06-09  Jim Meyering  <meyering@redhat.com>
36441         and OndÅ™ej Vašík  <ovasik@redhat.com>
36442
36443         utimens.c: correct kernel bug work-around
36444         OndÅ™ej Vašík found that the invalid return value of 280 indicates
36445         failure, not success, and the kernel bug we're trying to work
36446         around affects not just the utimensat call, but also the fallback
36447         futimens call.
36448         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
36449         not success.
36450         [HAVE_FUTIMENS]: Use the same work-around, here.
36451
36452 2008-06-09  Jim Meyering  <meyering@redhat.com>
36453
36454         add more guards around definition of ACE_-related code
36455         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
36456         ALLOW and ACE_OWNER are also defined.
36457
36458 2008-06-08  Bruno Haible  <bruno@clisp.org>
36459
36460         * lib/acl-internal.h: Add me as co-author.
36461         * lib/file-has-acl.c: Likewise.
36462         * lib/set-mode-acl.c: Likewise.
36463         * lib/copy-acl.c: Likewise.
36464
36465 2008-06-08  Bruno Haible  <bruno@clisp.org>
36466
36467         Add support for AIX ACLs.
36468         * lib/acl-internal.h (acl_nontrivial): New declaration.
36469         * lib/file-has-acl.c (acl_nontrivial): New function.
36470         (file_has_acl): Add implementation using AIX 4 ACL API.
36471         * lib/set-mode-acl.c (qset_acl): Likewise.
36472         * lib/copy-acl.c (qcopy_acl): Likewise.
36473
36474 2008-06-08  Bruno Haible  <bruno@clisp.org>
36475
36476         Add support for HP-UX ACLs.
36477         * lib/acl-internal.h (acl_nontrivial): New declaration.
36478         * lib/file-has-acl.c (acl_nontrivial): New function.
36479         (file_has_acl): Add implementation using HP-UX 11 ACL API.
36480         * lib/set-mode-acl.c (qset_acl): Likewise.
36481         * lib/copy-acl.c (qcopy_acl): Likewise.
36482
36483 2008-06-08  Bruno Haible  <bruno@clisp.org>
36484
36485         Add support for Cygwin ACLs.
36486         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
36487         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
36488         the chmod_or_fchmod call.
36489         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
36490
36491 2008-06-08  Bruno Haible  <bruno@clisp.org>
36492
36493         Fix bug with setuid modes in Solaris 10+ code.
36494         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
36495         succeeded, when the mode contains some special bits.
36496
36497 2008-06-08  Bruno Haible  <bruno@clisp.org>
36498
36499         Add support for Solaris 7..10 ACLs.
36500         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
36501         declarations.
36502         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
36503         functions.
36504         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
36505         * lib/set-mode-acl.c (qset_acl): Likewise.
36506         * lib/copy-acl.c (qcopy_acl): Likewise.
36507
36508 2008-06-08  Bruno Haible  <bruno@clisp.org>
36509
36510         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
36511         declaration.
36512         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
36513         (acl_access_nontrivial): Remove MacOS X case.
36514         (file_has_acl): Use acl_extended_nontrivial.
36515         * lib/copy-acl.c (qcopy_acl): Likewise.
36516
36517 2008-06-08  Bruno Haible  <bruno@clisp.org>
36518
36519         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
36520
36521 2008-06-08  Jim Meyering  <meyering@redhat.com>
36522
36523         * modules/acl (Maintainer): Add Bruno Haible.
36524
36525 2008-06-07  Bruno Haible  <bruno@clisp.org>
36526
36527         Improve support for Tru64 ACLs.
36528         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
36529         ACL on OSF/1.
36530
36531 2008-06-07  Bruno Haible  <bruno@clisp.org>
36532
36533         Add support for MacOS X ACLs.
36534         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
36535         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
36536         * lib/set-mode-acl.c (qset_acl): Likewise.
36537         * lib/copy-acl.c (qcopy_acl): Likewise.
36538
36539 2008-06-07  Bruno Haible  <bruno@clisp.org>
36540
36541         Fix memory leak introduced on 2008-05-22.
36542         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
36543         use.
36544
36545 2008-06-07  Bruno Haible  <bruno@clisp.org>
36546
36547         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
36548         to construct an empty ACL.
36549
36550 2008-06-07  Bruno Haible  <bruno@clisp.org>
36551
36552         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
36553         precisely.
36554         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
36555
36556 2008-06-07  Bruno Haible  <bruno@clisp.org>
36557
36558         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
36559         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
36560
36561 2008-06-07  Bruno Haible  <bruno@clisp.org>
36562
36563         * doc/posix-functions/_setjmp.texi: Explain the use of this function
36564         regardless of POSIX.
36565         * doc/posix-functions/_longjmp.texi: Likewise.
36566         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
36567         SystemV platform in this case.
36568
36569 2008-06-06  Eric Blake  <ebb9@byu.net>
36570
36571         Document abort() bugs.
36572         * doc/posix-functions/abort.texi (abort): Mention anomalies.
36573
36574         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
36575         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
36576         sigsetjmp.
36577         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
36578         siglongjmp, but only as a macro.
36579         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
36580         is obsolete.
36581         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
36582
36583         Tweak documentation to cover cygwin argz bugs.
36584         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
36585         argz bug fix; no code change needed since no cygwin releases
36586         occurred between the last fix and the bug being tested.
36587         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
36588         module and recently fixed cygwin bugs.
36589         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
36590         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
36591         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
36592         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
36593         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
36594         Likewise.
36595         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
36596         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
36597         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
36598         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
36599         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
36600         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
36601         Likewise.
36602
36603         Avoid gcc warning on cygwin.
36604         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
36605         !ACL_NO_TRIVIAL]: Avoid unused variable.
36606
36607 2008-06-05  Eric Blake  <ebb9@byu.net>
36608
36609         Be tolerant of UNKNOWN version in gnulib-tool test dir.
36610         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
36611         git-version-gen fails to come up with a version.
36612         Reported by Simon Josefsson.
36613
36614 2008-06-05  Jim Meyering  <meyering@redhat.com>
36615             Paul Eggert  <eggert@cs.ucla.edu>
36616
36617         utimens.c: work around a probable Linux kernel bug
36618         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
36619         appears to be a kernel bug that causes utimensat to return 280
36620         instead of 0, indicating success.
36621
36622 2008-06-04  Bruno Haible  <bruno@clisp.org>
36623
36624         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
36625         2008-06-01 commit.
36626
36627 2008-06-04  Bruno Haible  <bruno@clisp.org>
36628
36629         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
36630         * lib/file-has-acl.c (acl_access_nontrivial): New function.
36631         (file_has_acl): Use it. Save errno afterwards.
36632         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
36633
36634 2008-06-03  Bruno Haible  <bruno@clisp.org>
36635
36636         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
36637         draft code. Simplify #ifs.
36638         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
36639         Put Solaris code after POSIX-draft code. Fix comments regarding
36640         Solaris 10, HP-UX. Mention Cygwin.
36641         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
36642
36643 2008-06-03  Eric Blake  <ebb9@byu.net>
36644
36645         Provide fallback for older kernels.
36646         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
36647         Provide runtime fallback if kernel lacks support.
36648         Reported by Mike Frysinger.
36649
36650 2008-06-02  Bruno Haible  <bruno@clisp.org>
36651
36652         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
36653         it exists.
36654
36655 2008-06-02  Bruno Haible  <bruno@clisp.org>
36656
36657         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
36658         * lib/copy-acl.c (qcopy_acl): Update comment.
36659
36660 2008-06-02  Bruno Haible  <bruno@clisp.org>
36661
36662         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
36663         like ACL APIs.
36664
36665 2008-06-02  Bruno Haible  <bruno@clisp.org>
36666
36667         * tests/test-file-has-acl.sh: Use different code for Cygwin.
36668         * tests/test-set-mode-acl.sh: Likewise.
36669         * tests/test-copy-acl.sh: Likewise.
36670         * tests/test-copy-file.sh: Likewise.
36671
36672 2008-06-02  Bruno Haible  <bruno@clisp.org>
36673
36674         * tests/test-file-has-acl.sh: Remove unused code.
36675
36676 2008-06-01  Bruno Haible  <bruno@clisp.org>
36677
36678         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
36679         (copy_acl): Just a wrapper around qcopy_acl that emits the error
36680         messages.
36681         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
36682
36683 2008-06-01  Bruno Haible  <bruno@clisp.org>
36684
36685         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
36686         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
36687         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
36688         APIs.
36689         * modules/acl-tests (configure.ac): Remove tests now contained in
36690         m4/acl.m4.
36691
36692 2008-06-02  Jim Meyering  <meyering@redhat.com>
36693
36694         announce-gen: use a better key-server host name
36695         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
36696         it may be more consistently reliable.  Suggested by Werner Koch
36697         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
36698
36699 2008-06-01  Bruno Haible  <bruno@clisp.org>
36700
36701         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
36702         Reported by Voroskoi Andras <voroskoi@gmail.com>.
36703
36704 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
36705
36706         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
36707
36708 2008-06-01  Bruno Haible  <bruno@clisp.org>
36709
36710         New ACL tests.
36711         * tests/test-file-has-acl.sh: New file.
36712         * tests/test-file-has-acl.c: New file.
36713         * tests/test-set-mode-acl.sh: New file.
36714         * tests/test-set-mode-acl.c: New file.
36715         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
36716         * tests/test-copy-acl.c: New file.
36717         * modules/acl-tests: New file, based on modules/copy-file-tests.
36718         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
36719         (Depends-on): Add acl-tests.
36720         (configure.ac): Remove checks.
36721         (Makefile.am): Don't create test-sameacls program here any more.
36722
36723 2008-06-01  Bruno Haible  <bruno@clisp.org>
36724
36725         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
36726         * tests/test-sameacls.c: Include progname.h.
36727         (main): Invoke set_program_name. Portability fixes for MacOS X,
36728         Solaris, HP-UX.
36729
36730 2008-06-01  Bruno Haible  <bruno@clisp.org>
36731
36732         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
36733         function.
36734         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
36735
36736 2008-06-01  Bruno Haible  <bruno@clisp.org>
36737
36738         * modules/rpmatch (Depends-on): Add strdup.
36739
36740 2008-06-01  Bruno Haible  <bruno@clisp.org>
36741
36742         * lib/pipe.c: Include unistd-safer.h.
36743         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
36744         * modules/pipe (Depends-on): Add unistd-safer.
36745
36746 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36747
36748         * modules/autobuild (configure.ac): Call AB_INIT.
36749
36750 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36751
36752         * tests/test-getaddrinfo.c: Don't print debug messages by default.
36753         Suggested by Bruno Haible <bruno@clisp.org>.
36754
36755 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36756
36757         * tests/test-base64.c: Cast size_t to unsigned long when invoking
36758         printf.  Use %lu instead of %d.  Reported by Bruno Haible
36759         <bruno@clisp.org>.
36760
36761 2008-05-29  Eric Blake  <ebb9@byu.net>
36762
36763         Prefer new POSIX 200x interfaces over futimesat.
36764         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
36765         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
36766         when available.
36767         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
36768
36769 2008-05-28  Bruno Haible  <bruno@clisp.org>
36770
36771         * modules/stpcpy (License): Change to LGPLv2+.
36772         Requested by David Lutterkort <dlutter@redhat.com>.
36773
36774 2008-05-27  Bruno Haible  <bruno@clisp.org>
36775
36776         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
36777         current mingw.
36778         Reported by Jose E. Marchesi <jemarch@gnu.org>.
36779
36780 2008-05-27  Bruno Haible  <bruno@clisp.org>
36781
36782         * modules/iconv_open (Link): New section, from module 'iconv'.
36783         * modules/striconv (Link): Likewise.
36784         * modules/striconveh (Link): Likewise.
36785         * modules/xstriconv (Link): Likewise.
36786         * modules/unicodeio (Link): Likewise.
36787         * modules/propername (Link): Likewise.
36788         Reported by Jim Meyering.
36789
36790 2008-05-26  Jim Meyering  <meyering@redhat.com>
36791
36792         sha256: do not artificially restrict buffer length to be < 2^32
36793         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
36794         uint32_t to size_t.
36795         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
36796         to match.
36797
36798         avoid unaligned access errors, e.g., on sparc
36799         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
36800         direct access through a possibly-unaligned uint64* pointer.
36801         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
36802         direct access through a possibly-unaligned uint32* pointer.
36803         Prompted by this patch from Tom "spot" Callaway:
36804         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
36805
36806         sha512.c: fix typo in comment
36807         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
36808
36809 2008-05-25  Bruno Haible  <bruno@clisp.org>
36810
36811         * lib/set-mode-acl.c: Renamed from lib/acl.c.
36812         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
36813         (Makefile.am): Update lib_SOURCES.
36814
36815 2008-05-25  Bruno Haible  <bruno@clisp.org>
36816
36817         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
36818
36819 2008-05-25  Jim Meyering  <meyering@redhat.com>
36820
36821         useless-if-before-free: freed expr may have white-space differences
36822         * build-aux/useless-if-before-free: Recognize cases in which the
36823         freed expression differs from the tested one in embedded white
36824         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
36825         $1 was used, so we can't make any regexp shy.  Improved tests now
36826         detect this.
36827
36828         useless-if-before-free: accept white space in the expression.
36829         * build-aux/useless-if-before-free: For now, any white space
36830         in the expression must be identical in the free argument.
36831
36832         useless-if-before-free: efficiency tweak
36833         * build-aux/useless-if-before-free: Make the expression-matching
36834         regexp "shy".
36835         Make the *outer* regexp shy, not the expr-matching one.
36836
36837         update code-in-comment to accept cast of free arg
36838         * build-aux/useless-if-before-free: Update regexp.
36839
36840 2008-05-25  Bruno Haible  <bruno@clisp.org>
36841
36842         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
36843         * modules/copy-file-tests (Files, Makefile.am): Update.
36844         * tests/test-copy-file.c (func_test_copy): Update.
36845
36846 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
36847
36848         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
36849
36850 2008-05-23  Bruno Haible  <bruno@clisp.org>
36851
36852         Improve support for ACLs on OSF/1.
36853         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
36854         Remove fallback for unknown flavors of ACLs.
36855
36856 2008-05-22  Bruno Haible  <bruno@clisp.org>
36857
36858         Add support for ACLs on OSF/1.
36859         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
36860         replacements.
36861         (acl_free_text): New macro fallback.
36862         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
36863         acl_free.
36864         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
36865         acl_free_text function. Require AC_C_INLINE.
36866
36867 2008-05-22  Bruno Haible  <bruno@clisp.org>
36868
36869         Make copy_acl work on MacOS X 10.5.
36870         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
36871         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
36872         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
36873         If MODE_INSIDE_ACL, don't assume that every system has the same text
36874         representation for ACLs as FreeBSD.
36875         * lib/copy-acl.c (copy_acl): Add support for platforms with
36876         !MODE_INSIDE_ACL.
36877         * lib/file-has-acl.c (file_has_acl): Likewise.
36878         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
36879         FreeBSD, MacOS X, or IRIX, respectively.
36880
36881 2008-05-22  Bruno Haible  <bruno@clisp.org>
36882
36883         * lib/acl.h: Don't include <sys/acl.h>.
36884         (GETACLCNT): Move fallback to lib/acl-internal.h.
36885         * lib/acl-internal.h: Include <sys/acl.h> here.
36886         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
36887
36888 2008-05-22  Bruno Haible  <bruno@clisp.org>
36889
36890         Split off copy_acl function to separate file.
36891         * lib/copy-acl.c: New file, extracted from lib/acl.c.
36892         * lib/acl.c (copy_acl): Moved function to separate file.
36893         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
36894         * modules/acl (Files): Add lib/copy-acl.c.
36895         (Makefiles.am): Augment lib_SOURCES.
36896
36897 2008-05-22  Bruno Haible  <bruno@clisp.org>
36898
36899         * modules/copy-file-tests: New file.
36900         * tests/test-copy-file.sh: New file.
36901         * tests/test-copy-file.c: New file.
36902         * tests/test-copy-file-sameacls.c: New file.
36903
36904 2008-05-22  Eric Blake  <ebb9@byu.net>
36905
36906         Avoid gcc warning.
36907         * tests/test-memcmp.c (main): Pass NULL indirectly.
36908
36909 2008-05-21  Bruno Haible  <bruno@clisp.org>
36910
36911         Add reference doc about ACLs.
36912         * doc/acl-resources.txt: New file.
36913         * doc/acl-cygwin.txt: New file.
36914
36915 2008-05-21  Bruno Haible  <bruno@clisp.org>
36916
36917         Avoid one more warning from gcc.
36918         * lib/vasnprintf.c (IF_LINT): Update comments.
36919         (VASNPRINTF): Use it also for the 'prefix' array initializer.
36920
36921 2008-05-21  Jim Meyering  <meyering@redhat.com>
36922
36923         avoid a warning from gcc
36924         * lib/vasnprintf.c (IF_LINT): Define.
36925         (scale10_round_decimal_long_double):
36926         Use it to avoid a "may be used uninitialized" warning.
36927         (scale10_round_decimal_double): Likewise.
36928
36929 2008-05-21  Simon Josefsson  <simon@josefsson.org>
36930
36931         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
36932         declared.
36933
36934 2008-05-20  Bruno Haible  <bruno@clisp.org>
36935
36936         * tests/test-memcmp.c (main): Test also the sign of the result. Test
36937         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
36938
36939 2008-05-20  Simon Josefsson  <simon@josefsson.org>
36940
36941         * modules/memcmp-tests: New file.
36942         * tests/test-memcmp.c: New file.
36943
36944 2008-05-19  Bruno Haible  <bruno@clisp.org>
36945
36946         * modules/propername (Notice, configure.ac): Put quoted "..." into
36947         --keyword option.
36948         * lib/propername.h: Update comments accordingly.
36949         Reported by Eric Blake.
36950
36951 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
36952
36953         * modules/getpass-gnu (Depends-on): Add fseeko.
36954
36955 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36956
36957         * modules/base64-tests: New file.
36958
36959 2008-05-19  Bo Borgerson <gigabo@gmail.com>
36960
36961         * lib/base64.c (base64_decode_ctx): If a decode context structure
36962         was passed in use it to ignore newlines.  If a context structure
36963         was _not_ passed in, continue to treat newlines as garbage (this
36964         is the historical behavior).  Formerly base64_decode.
36965         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36966         takes a decode context structure.
36967         * lib/base64.h (base64_decode): Macro for four-argument calls.
36968         (base64_decode_alloc): Likewise.
36969         * lib/base64.c (base64_decode_ctx): If a decode context structure
36970         was passed in use it to ignore newlines.  If a context structure
36971         was _not_ passed in, continue to treat newlines as garbage (this
36972         is the historical behavior).  Formerly base64_decode.
36973         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36974         takes a decode context structure.
36975         * lib/base64.h (base64_decode): Macro for four-argument calls.
36976         (base64_decode_alloc): Likewise.
36977
36978 2008-05-19  Jim Meyering  <meyering@redhat.com>
36979
36980         avoid a warning from gcc
36981         * lib/trim.c (IF_LINT): Define.
36982         (trim2): Use it to avoid a "may be used uninitialized" warning.
36983
36984         Fix doc typo.
36985         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
36986
36987 2008-05-19  Bruno Haible  <bruno@clisp.org>
36988
36989         * doc/glibc-functions/getpass.texi: Document limits of other
36990         implementations.
36991
36992 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36993             Bruno Haible <bruno@clisp.org>
36994
36995         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
36996
36997 2008-05-18  Bruno Haible  <bruno@clisp.org>
36998
36999         * modules/propername: New file, from GNU gettext.
37000         * lib/propername.h: New file, from GNU gettext.
37001         * lib/propername.c: New file, from GNU gettext.
37002         * MODULES.html.sh (Internationalization functions): Add propername.
37003
37004 2008-05-16  Jim Meyering  <meyering@redhat.com>
37005             Bruno Haible  <bruno@clisp.org>
37006
37007         Avoid some warnings from "gcc -Wshadow".
37008         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
37009
37010 2008-05-15  Eric Blake  <ebb9@byu.net>
37011
37012         Extend previous patch to cygwin 1.7.0.
37013         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
37014         fast implementation in cygwin >= 1.7.0.
37015         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37016         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37017
37018 2008-05-15  Bruno Haible  <bruno@clisp.org>
37019
37020         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
37021         implementation in glibc >= 2.9.
37022         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37023         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37024
37025 2008-05-15  Bruno Haible  <bruno@clisp.org>
37026
37027         * MODULES.html.sh (Internationalization functions): Remove linebreak.
37028         (Unicode string functions): Add unilbrk/*.
37029         Reported by Karl Berry.
37030
37031 2008-05-15  Eric Blake  <ebb9@byu.net>
37032
37033         Fix violation of <stdbool.h> replacement in regex.
37034         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
37035         * lib/regexec.c (re_search_internal): Likewise.
37036         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
37037
37038 2008-05-15  Jim Meyering  <meyering@redhat.com>
37039
37040         avoid distracting test output when git or cvs is not found
37041         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
37042         * tests/test-vc-list-files-git.sh: Likewise.
37043
37044 2008-05-15  Eric Blake  <ebb9@byu.net>
37045
37046         Glibc finally accepted the memmem speedup code, bugzilla #5514.
37047         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
37048         glibc version.
37049         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37050         * doc/posix-functions/strstr.texi (strstr): Likewise.
37051         * lib/str-two-way.h (MAX): Sychronize with glibc.
37052
37053 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
37054
37055         * lib/regcomp.c (optimize_utf8): Add a note on why we test
37056         opr.ctx_type.
37057         (calc_first): Initialize constraint field.
37058         (duplicate_node_closure): Use it instead of special casing ANCHORS.
37059         Fix grammar.
37060         (duplicate_node): Merge constraint field for all node types.
37061         (calc_eclosure_iter): Look at constraint field for all node types.
37062         * lib/regex_internal.c (create_cd_newstate): Don't look at
37063         opr.ctx_type.
37064
37065 2008-05-14  Bruno Haible  <bruno@clisp.org>
37066
37067         Help GCC to do better code generation.
37068         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
37069         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
37070         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
37071         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
37072         Declare with attribute 'malloc' if supported.
37073
37074 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
37075
37076         use "echo STR|wc -c" rather than unportable "expr length STR"
37077         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
37078         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
37079
37080 2008-05-14  Jim Meyering  <meyering@redhat.com>
37081
37082         use dd ibs=$n count=1 ... rather than less-portable head -c$n
37083         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
37084         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
37085         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
37086         via Collin Lasse.
37087
37088 2008-05-14  Eric Blake  <ebb9@byu.net>
37089
37090         Avoid quadratic growth in gl_LIBSOURCES.
37091         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
37092         Suggested by Bruno Haible.
37093
37094         Test xmemdup0.
37095         * modules/xmemdup0-tests: New file.
37096         * tests/test-xmemdup0.c: Likewise.
37097
37098 2008-05-13  Eric Blake  <ebb9@byu.net>
37099
37100         Split xmemdup0 into its own module.
37101         * modules/xmemdup0: New file.
37102         * lib/xmemdup0.h: Likewise.
37103         * lib/xmemdup0.c: Likewise.
37104         * MODULES.html.sh (Memory management functions): Add xmemdup0.
37105         * lib/xalloc.h (xmemdup0): Remove.
37106         * lib/xmalloc.c (xmemdup0): Likewise.
37107
37108 2008-05-13  Eric Blake  <ebb9@byu.net>
37109             Bruno Haible  <bruno@clisp.org>
37110
37111         Reduce number of forks required during autoconf.
37112         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
37113         and gl_LIBSOURCES_DIR.
37114         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
37115         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
37116         m4_syscmd per file.
37117         <m4_foreach_w>: Move...
37118         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
37119
37120 2008-05-13  Eric Blake  <ebb9@byu.net>
37121
37122         * gnulib-tool: Fix various comment typos.
37123
37124 2008-05-12  Bruno Haible  <bruno@clisp.org>
37125
37126         Tailor the linebreaking algorithm.
37127         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
37128
37129 2008-05-12  Bruno Haible  <bruno@clisp.org>
37130
37131         Update to Unicode 5.0.0.
37132         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37133         LBP_JV, LBP_JT. Redistribute values.
37134         (unilbrk_table): Change size.
37135         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
37136         Unicode TR#14 rev. 22.
37137         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37138         LBP_JV, LBP_JT. Redistribute values.
37139         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
37140         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
37141         Update.
37142         * lib/unilbrk/lbrkprop1.h: Regenerated.
37143         * lib/unilbrk/lbrkprop2.h: Regenerated.
37144         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
37145         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
37146         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
37147         Likewise.
37148         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
37149         Likewise.
37150         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
37151         result.
37152         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
37153         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
37154         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
37155         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
37156         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
37157         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
37158
37159 2008-05-11  Bruno Haible  <bruno@clisp.org>
37160
37161         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
37162
37163 2008-05-11  Bruno Haible  <bruno@clisp.org>
37164
37165         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
37166         * modules/unilbrk/gen-lbrk: New file.
37167
37168 2008-05-11  Bruno Haible  <bruno@clisp.org>
37169
37170         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
37171         * m4/sha512.m4 (gl_SHA512): Likewise.
37172
37173 2008-05-11  Jim Meyering  <meyering@redhat.com>
37174
37175         New modules: crypto/sha256, crypto/sha512 (from coreutils)
37176         * modules/crypto/sha256: New file.
37177         * modules/crypto/sha512: Likewise.
37178         * lib/sha256.c: Likewise.
37179         * lib/sha256.h: Likewise.
37180         * lib/sha512.c: Likewise.
37181         * lib/sha512.h: Likewise.
37182         * lib/u64.h: Likewise.
37183         * m4/sha256.m4: Likewise.
37184         * m4/sha512.m4: Likewise.
37185         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
37186
37187 2008-05-10  Bruno Haible  <bruno@clisp.org>
37188
37189         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
37190         (Input/Output <stdio.h>): Add xprintf.
37191         (Signal handling <signal.h>): Add strsignal.
37192         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
37193         (Core language properties): Add func.
37194         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
37195         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
37196         strings.
37197         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
37198         (Input/output): New section.
37199         (File system functions): Add openat-die, stat-macros.
37200         (Networking functions): Add sockets.
37201         (Unicode string functions): Add unictype/*.
37202         (Support for building libraries and executables): Add gperf.
37203         (Support for building documentation): Add agpl-3.0.
37204         (Misc): Add nocrash.
37205
37206 2008-05-10  Bruno Haible  <bruno@clisp.org>
37207
37208         * modules/unictype/gen-ctype: New file.
37209
37210 2008-05-10  Jim Meyering  <meyering@redhat.com>
37211
37212         Make chdir-safer.c more efficient on a system with no symlinks.
37213         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
37214         also if ELOOP is zero.  Suggested by Bruno Haible.
37215
37216         Make chdir-safer.c slightly safer.
37217         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
37218         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
37219
37220         Avoid compile failure on systems without ELOOP (like mingw).
37221         * lib/chdir-safer.c (ELOOP): Define if not already defined.
37222         Reported by Bruno Haible.
37223
37224 2008-05-10  Bruno Haible  <bruno@clisp.org>
37225
37226         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
37227         (is_utf8_encoding): Use a case-insensitive comparison.
37228         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
37229         streq.
37230
37231 2008-05-10  Bruno Haible  <bruno@clisp.org>
37232
37233         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
37234         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
37235         * lib/unilbrk/ulc-common.h (iconv_string_length,
37236         iconv_string_keeping_offsets): Remove declarations.
37237         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
37238         Don't include <iconv.h>, streq.h, xsize.h.
37239         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
37240         conversion.
37241         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
37242         <iconv.h>, streq.h, xsize.h.
37243         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
37244         conversion.
37245         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
37246         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
37247         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
37248         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
37249
37250 2008-05-10  Bruno Haible  <bruno@clisp.org>
37251
37252         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
37253         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
37254
37255         * modules/unilbrk/u32-width-linebreaks-tests: New file.
37256         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
37257
37258         * modules/unilbrk/u16-width-linebreaks-tests: New file.
37259         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
37260
37261         * modules/unilbrk/u8-width-linebreaks-tests: New file.
37262         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
37263
37264         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
37265         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
37266
37267         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
37268         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
37269
37270         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
37271         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
37272
37273         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
37274         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
37275
37276 2008-05-10  Bruno Haible  <bruno@clisp.org>
37277
37278         Split up 'linebreak' module.
37279         * lib/unilbrk.h: New file, based on lib/linebreak.h.
37280         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
37281         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
37282         modifications.
37283         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
37284         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
37285         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
37286         lib/linebreak.c.
37287         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
37288         lib/linebreak.c.
37289         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
37290         lib/linebreak.c.
37291         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
37292         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
37293         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
37294         lib/linebreak.c.
37295         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
37296         lib/linebreak.c.
37297         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
37298         lib/linebreak.c.
37299         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
37300         lib/linebreak.c.
37301         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
37302         lib/linebreak.c.
37303         * modules/unilbrk/base: New file.
37304         * modules/unilbrk/tables: New file.
37305         * modules/unilbrk/u8-possible-linebreaks: New file.
37306         * modules/unilbrk/u16-possible-linebreaks: New file.
37307         * modules/unilbrk/u32-possible-linebreaks: New file.
37308         * modules/unilbrk/ulc-common: New file.
37309         * modules/unilbrk/ulc-possible-linebreaks: New file.
37310         * modules/unilbrk/u8-width-linebreaks: New file.
37311         * modules/unilbrk/u16-width-linebreaks: New file.
37312         * modules/unilbrk/u32-width-linebreaks: New file.
37313         * modules/unilbrk/ulc-width-linebreaks: New file.
37314         * lib/linebreak.h: Remove file.
37315         * lib/linebreak.c: Remove file.
37316         * m4/linebreak.m4: Remove file.
37317         * modules/linebreak: Remove file.
37318         * NEWS: Mention the changes.
37319
37320 2008-05-09  Eric Blake  <ebb9@byu.net>
37321
37322         Add xmemdup0.
37323         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
37324         implementation.
37325         * lib/xmalloc.c (xmemdup0): New C implementation.
37326
37327 2008-05-08  Bruno Haible  <bruno@clisp.org>
37328
37329         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
37330
37331 2008-05-07  Eric Blake  <ebb9@byu.net>
37332
37333         Support cross-compilation of <wctype.h>.
37334         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
37335         AC_CACHE_CHECK.
37336
37337 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
37338
37339         * build-aux/vc-list-files: Add support for bzr.
37340
37341 2008-05-03  Jim Meyering  <meyering@redhat.com>
37342
37343         avoid failed assertion with tight malloc
37344         * tests/test-getndelim2.c: Correct an off-by-one assertion.
37345
37346 2008-05-03  Simon Josefsson  <simon@josefsson.org>
37347
37348         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
37349         are needed from arpa/inet.h.
37350         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
37351         Reported by Bruno Haible.
37352
37353 2008-05-02  Jim Meyering  <meyering@redhat.com>
37354
37355         avoid compilation error on FreeBSD 6
37356         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
37357
37358 2008-05-01  Jim Meyering  <meyering@redhat.com>
37359
37360         useless-if-before-free: correct --help's exit status description
37361         * build-aux/useless-if-before-free (usage): Like grep, exit 0
37362         for one or more matches, etc.  Reported by Bruno Haible.
37363
37364         vc-list-files: make the stand-alone gnulib test work
37365         * modules/vc-list-files-tests (configure.ac):
37366         Define and AC_SUBST abs_aux_dir.
37367         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
37368         $(abs_top_srcdir) to each script and having each of them
37369         duplicate the work of setting PATH, set PATH here, using
37370         the new variable, abs_aux_dir instead.
37371         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
37372         * tests/test-vc-list-files-git.sh: Likewise.
37373         Reported by Bruno Haible.
37374
37375 2008-05-01  Bruno Haible  <bruno@clisp.org>
37376
37377         * lib/getndelim2.c (getndelim2): Fix newsize computation during
37378         reallocation. Rename 'done' to 'found_delimiter'.
37379
37380 2008-05-01  Jim Meyering  <meyering@redhat.com>
37381
37382         vc-list-files: accommodate /bin/sh like the one from Solaris 10
37383         * build-aux/vc-list-files: Use `...`, not $(...).
37384
37385 2008-04-30  Jim Meyering  <meyering@redhat.com>
37386
37387         add tests for vc-list-files
37388         * modules/vc-list-files-tests: New module.
37389         * tests/test-vc-list-files-cvs.sh: New file.
37390         * tests/test-vc-list-files-git.sh: New file.
37391
37392         avoid a warning from gcc
37393         * lib/getndelim2.c (IF_LINT): Define.
37394         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
37395
37396         vc-list-files: work properly with build-aux/cvsu, too
37397         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
37398         to all cvs-based clauses.
37399
37400         vc-list-files: work properly in the CVS+awk case, too
37401         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
37402
37403         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
37404         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
37405         take more than one file argument, so .  Add quotes, just in case $dir
37406         ever contains a shell meta-character.  Prompted by Soren Hansen in
37407         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
37408
37409 2008-04-29  Eric Blake  <ebb9@byu.net>
37410
37411         Optimize getndelim2 to use block operations when possible.
37412         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
37413         freadseek, and memchr2.
37414         * lib/getndelim2.c (getndelim2): Use them for block reads.
37415
37416 2008-04-29  Bruno Haible  <bruno@clisp.org>
37417
37418         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
37419         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37420         * modules/inet_ntop (Depends-on): Add extensions.
37421         * modules/inet_pton (Depends-on): Likewise.
37422         Reported by Simon Josefsson.
37423
37424 2008-04-29  Jim Meyering  <meyering@redhat.com>
37425
37426         When the is more than one match in a block, match all of them.
37427         * build-aux/useless-if-before-free: Iterate through each block
37428         until there are no more matches.
37429
37430         Fix broken useless-if-before-free script.
37431         * build-aux/useless-if-before-free: Fix typo: missing "?" after
37432         the expression to match cast of argument to free-like function.
37433
37434 2008-04-29  Eric Blake  <ebb9@byu.net>
37435
37436         Use new header.
37437         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
37438
37439 2008-04-29  Jim Meyering  <meyering@redhat.com>
37440
37441         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
37442         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
37443         by gnulib to exist and to declare e.g., inet_ntop.
37444         Don't include "inet_ntop.h", now removed.
37445
37446         * m4/arpa_inet_h.m4: Remove trailing blanks.
37447
37448 2008-04-29  Eric Blake  <ebb9@byu.net>
37449
37450         Silence valgrind on safe reads beyond potential array bounds.
37451         * lib/rawmemchr.valgrind: New file.
37452         * lib/strchrnul.valgrind: Likewise.
37453         * modules/rawmemchr (Files): Distribute new file.
37454         * modules/strchrnul (Files): Likewise.
37455         Suggested by Bruno Haible.
37456
37457 2008-04-29  Bruno Haible  <bruno@clisp.org>
37458
37459         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
37460         (inet_ntop, inet_pton): Change portability warning's wording.
37461         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
37462         Invoke gl_CHECK_NEXT_HEADERS.
37463         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
37464         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
37465         set ARPA_INET_H.
37466         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37467         * modules/arpa_inet (Description): No longer only for systems that
37468         lack it.
37469         (Depends-on): Add include_next.
37470         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
37471         HAVE_ARPA_INET_H.
37472
37473 2008-04-29  Jim Meyering  <meyering@redhat.com>
37474
37475         * modules/mkdir (License): Re-license as LGPLv2+.
37476
37477 2008-04-29  Bruno Haible  <bruno@clisp.org>
37478
37479         * modules/rawmemchr (Maintainer): Set to Eric.
37480         * modules/strchrnul (Maintainer): Likewise.
37481
37482 2008-04-29  Simon Josefsson  <simon@josefsson.org>
37483
37484         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
37485         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
37486
37487         * modules/arpa_inet (arpa/inet.h): Use them.
37488
37489 2008-04-28  Eric Blake  <ebb9@byu.net>
37490
37491         Test getndelim2.
37492         * modules/getndelim2-tests: New file.
37493         * tests/test-getndelim2.c: Likewise.
37494         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
37495         stream.
37496         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
37497
37498         * MODULES.html.sh: Document new module.
37499
37500 2008-04-20  Bruno Haible  <bruno@clisp.org>
37501
37502         * lib/c-stack.c (die): Use raise.
37503         * modules/c-stack (Depends-on): Add raise.
37504
37505 2008-04-28  Bruno Haible  <bruno@clisp.org>
37506
37507         Expect rpmatch to be declared.
37508         * lib/yesno.c (rpmatch): Remove declaration.
37509
37510         Declare rpmatch.
37511         * lib/stdlib.in.h (rpmatch): New declaration.
37512         * lib/rpmatch.c: Include <stdlib.h> first.
37513         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
37514         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
37515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
37516         HAVE_RPMATCH.
37517         * modules/rpmatch (Depends-on): Add stdlib, extensions.
37518         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37519         (Include): Set to <stdlib.h>.
37520         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
37521         HAVE_RPMATCH.
37522         * NEWS: Document the change.
37523
37524 2008-04-28  Bruno Haible  <bruno@clisp.org>
37525
37526         Change rpmatch to use nl_langinfo when appropriate.
37527         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
37528         (N_): New macro.
37529         (localized_pattern): New function/macro.
37530         (try): Remove match, nomatch arguments. Copy the pattern into safe
37531         memory before caching it.
37532         (rpmatch): Use localized_pattern. Add translator comments.
37533         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
37534         Suggested by Eric Blake.
37535         * modules/rpmatch (Depends-on): Add stdbool.
37536
37537 2008-04-28  Eric Blake  <ebb9@byu.net>
37538
37539         Add rawmemchr module, matching glibc.
37540         * modules/string (Makefile.am): New indicator.
37541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
37542         * lib/string.in.h (rawmemchr): Declare when appropriate.
37543         * modules/rawmemchr: New file.
37544         * m4/rawmemchr.m4: Likewise.
37545         * lib/rawmemchr.c: Likewise.
37546         * modules/rawmemchr-tests: Likewise.
37547         * tests/test-rawmemchr.c: Likewise.
37548         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
37549         module.
37550         * modules/strchrnul (Depends-on): Add rawmemchr.
37551         * lib/strchrnul.c (strchrnul): Optimize a corner case.
37552
37553         Whitespace cleanup.
37554         * tests/test-strchrnul.c: Reindent.
37555         * lib/strchrnul.c: Likewise.
37556
37557         Optimize and test strchrnul.
37558         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
37559         * modules/strchrnul-tests: New file.
37560         * tests/test-strchrnul.c: Likewise.
37561
37562         Remove intprops dependency.
37563         * modules/memchr (Depends-on): Remove intprops.
37564         * modules/memrchr (Depends-on): Likewise.
37565         * modules/memchr2 (Depends-on): Likewise.
37566         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
37567         * lib/memrchr.c (__memrchr): Likewise.
37568         * lib/memrchr2.c (memchr2): Likewise.
37569         Reported by Simon Josefsson.
37570
37571 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37572
37573         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
37574         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37575
37576 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37577
37578         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
37579
37580         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
37581
37582         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
37583
37584         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
37585         declarations.
37586         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
37587
37588         * m4/inet_pton.m4: Don't check for header files.
37589
37590         * m4/inet_ntop.m4: Don't check for header files.
37591
37592 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37593
37594         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
37595         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
37596         trigger for cygwin).
37597         Reported by Bruno Haible  <bruno@clisp.org>.
37598
37599 2008-04-28  Bruno Haible  <bruno@clisp.org>
37600
37601         * doc/posix-functions/strdup.texi: Mention mingw problem.
37602
37603 2008-04-27  Bruno Haible  <bruno@clisp.org>
37604
37605         * modules/stat-time-tests (Depends-on): Add sleep.
37606         * tests/test-stat-time.c (force_unlink): New function.
37607         (cleanup): Use it.
37608         (test_mtime): Remove the ctime related tests.
37609         (test_ctime): New function, containing the ctime related tests.
37610         (main): Call test_ctime, except on native Windows platforms.
37611
37612 2008-04-27  Bruno Haible  <bruno@clisp.org>
37613
37614         * lib/rpmatch.c (rpmatch): Add some comments.
37615         Reported by James Youngman <jay@gnu.org>.
37616
37617 2008-04-27  Bruno Haible  <bruno@clisp.org>
37618
37619         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
37620         quiet NaNs.
37621
37622 2008-04-27  Bruno Haible  <bruno@clisp.org>
37623
37624         Make test-yesno.sh work on mingw.
37625         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
37626         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
37627         (main): Set stdin to binary mode.
37628         * modules/yesno-tests (Depends-on): Add binary-io.
37629
37630 2008-04-27  Bruno Haible  <bruno@clisp.org>
37631
37632         Fix 'isfinite' on x86, x86_64, ia64 platforms.
37633         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
37634         argument that lie outside the IEEE 854 domain.
37635         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
37636         (gl_ISFINITE): Use it.
37637         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
37638
37639 2008-04-27  Bruno Haible  <bruno@clisp.org>
37640
37641         Allow local renaming in config.h.
37642         * lib/memrchr.c (memrchr): Don't undefine outside libc.
37643
37644 2008-04-27  Bruno Haible  <bruno@clisp.org>
37645
37646         * lib/memchr.c (__memchr): Change type of 'i'.
37647         * lib/memchr2.c (memchr2): Likewise.
37648
37649 2008-04-26  Eric Blake  <ebb9@byu.net>
37650         and Bruno Haible  <bruno@clisp.org>
37651
37652         Optimize and test memrchr.
37653         * modules/memrchr (Depends-on): Add intprops.
37654         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
37655         * modules/memrchr-tests: New file.
37656         * tests/test-memrchr.c: New file.
37657
37658 2008-04-26  Bruno Haible  <bruno@clisp.org>
37659
37660         Add tentative support for DragonFly BSD.
37661         * lib/stdio-impl.h: Add macros for DragonFly BSD.
37662         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
37663         fp.
37664         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37665         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
37666         * lib/fpurge.c (fpurge): Likewise.
37667         * lib/freadable.c (freaadable): Likewise.
37668         * lib/freadahead.c (freadahead): Likewise.
37669         * lib/freading.c (freading): Likewise.
37670         * lib/freadptr.c (freadptr): Likewise.
37671         * lib/freadseek.c (freadptrinc): Likewise.
37672         * lib/fseeko.c (fseeko): Likewise.
37673         * lib/fseterr.c (fseterr): Likewise.
37674         * lib/fwritable.c (fwritable): Likewise.
37675         * lib/fwriting.c (fwriting): Likewise.
37676
37677 2008-04-26  Bruno Haible  <bruno@clisp.org>
37678
37679         * lib/stdio-impl.h: New file.
37680         * lib/fbufmode.c: Include stdio-impl.h.
37681         (fbufmode): Use fp_, remove redundant #defines.
37682         * lib/fflush.c: Include stdio-impl.h.
37683         (clear_ungetc_buffer): Remove redundant #defines.
37684         * lib/fpurge.c: Include stdio-impl.h.
37685         (fpurge): Remove redundant #defines.
37686         * lib/freadable.c: Include stdio-impl.h.
37687         (freadable): Remove redundant #defines.
37688         * lib/freadahead.c: Include stdio-impl.h.
37689         (freadahead): Remove redundant #defines.
37690         * lib/freading.c: Include stdio-impl.h.
37691         (freading): Remove redundant #defines.
37692         * lib/freadptr.c: Include stdio-impl.h.
37693         (freadptr): Remove redundant #defines.
37694         * lib/freadseek.c: Include stdio-impl.h.
37695         (freadptrinc): Remove redundant #defines.
37696         * lib/fseeko.c: Include stdio-impl.h.
37697         (rpl_fseeko): Remove redundant #defines.
37698         * lib/fseterr.c: Include stdio-impl.h.
37699         (fseterr): Remove redundant #defines.
37700         * lib/fwritable.c: Include stdio-impl.h.
37701         (fwritable: Remove redundant #defines.
37702         * lib/fwriting.c: Include stdio-impl.h.
37703         (fwriting): Remove redundant #defines.
37704         * modules/fbufmode (Files): Add lib/stdio-impl.h.
37705         * modules/fflush (Files): Likewise.
37706         * modules/fpurge (Files): Likewise.
37707         * modules/freadable (Files): Likewise.
37708         * modules/freadahead (Files): Likewise.
37709         * modules/freading (Files): Likewise.
37710         * modules/freadptr (Files): Likewise.
37711         * modules/freadseek (Files): Likewise.
37712         * modules/fseeko (Files): Likewise.
37713         * modules/fseterr (Files): Likewise.
37714         * modules/fwritable (Files): Likewise.
37715         * modules/fwriting (Files): Likewise.
37716
37717 2008-04-26  Bruno Haible  <bruno@clisp.org>
37718
37719         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37720         restore_seek_optimization, update_fpos_cache): New functions, extracted
37721         from rpl_fflush.
37722         (rpl_fflush): Use them.
37723         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
37724         (gl_REPLACE_FFLUSH): Use it.
37725
37726 2008-04-26  Bruno Haible  <bruno@clisp.org>
37727
37728         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
37729         on Solaris.
37730         * tests/test-xstrtoimax.sh: Likewise.
37731         * tests/test-xstrtoumax.sh: Likewise.
37732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37733
37734 2008-04-26  Bruno Haible  <bruno@clisp.org>
37735
37736         * modules/memchr-tests: New file.
37737         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
37738
37739 2008-04-26  Eric Blake  <ebb9@byu.net>
37740             Bruno Haible  <bruno@clisp.org>
37741
37742         * lib/memchr.c: Include intprops.h.
37743         (__memchr): Optimize parallel detection of matching bytes. Rename local
37744         variables. Add explanatory comments.
37745
37746 2008-04-26  Bruno Haible  <bruno@clisp.org>
37747
37748         Fix module 'memchr', broken since 2000-10-28.
37749         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
37750
37751 2008-04-26  Bruno Haible  <bruno@clisp.org>
37752
37753         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
37754         comments.
37755
37756 2008-04-25  Eric Blake  <ebb9@byu.net>
37757
37758         Use native fstatat on cygwin 1.7.0.
37759         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
37760         first.
37761
37762 2008-04-23  Eric Blake  <ebb9@byu.net>
37763
37764         Improve memchr2 performance.
37765         * lib/memchr2.c (memchr2): Further optimize parallel detection of
37766         NUL bytes.
37767         * modules/memchr2 (Depends-on): Use intprops.h.
37768
37769 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37770
37771         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
37772         an inline function instead of a CPP macro.  Patch by Ben Pfaff
37773         <blp@cs.stanford.edu>.
37774
37775 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37776
37777         * lib/arpa_inet.in.h: New file.
37778
37779         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
37780         (Makefile.am): Sed in substitute header file.
37781
37782         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
37783         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
37784
37785         * modules/inet_ntop (configure.ac): Use
37786         gl_ARPA_INET_MODULE_INDICATOR.
37787
37788         * modules/inet_pton (configure.ac): Use
37789         gl_ARPA_INET_MODULE_INDICATOR.
37790
37791 2008-04-22  Jim Meyering  <meyering@redhat.com>
37792
37793         * modules/verify (License): Re-license as LGPLv2+.
37794
37795 2008-04-22  Simon Josefsson  <simon@josefsson.org>
37796
37797         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
37798         parameter to void* as per POSIX standard (MinGW uses char*).
37799
37800 2008-04-21  Bruno Haible  <bruno@clisp.org>
37801
37802         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
37803         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
37804         Define to replacements if REPLACE_ISWCNTRL is 1.
37805         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
37806         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
37807         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
37808         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
37809         what it fixes.
37810         * doc/posix-functions/iswalpha.texi: Likewise.
37811         * doc/posix-functions/iswblank.texi: Likewise.
37812         * doc/posix-functions/iswcntrl.texi: Likewise.
37813         * doc/posix-functions/iswdigit.texi: Likewise.
37814         * doc/posix-functions/iswgraph.texi: Likewise.
37815         * doc/posix-functions/iswlower.texi: Likewise.
37816         * doc/posix-functions/iswprint.texi: Likewise.
37817         * doc/posix-functions/iswpunct.texi: Likewise.
37818         * doc/posix-functions/iswspace.texi: Likewise.
37819         * doc/posix-functions/iswupper.texi: Likewise.
37820         * doc/posix-functions/iswxdigit.texi: Likewise.
37821         Reported by Alain Guibert.
37822
37823 2008-04-21  Bruno Haible  <bruno@clisp.org>
37824
37825         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
37826         Patch by Alain Guibert.
37827
37828 2008-04-21  Bruno Haible  <bruno@clisp.org>
37829
37830         Fix test failures on mingw.
37831         * tests/test-xstrtol.c (print_no_progname): New function.
37832         (main): Install it in error_print_progname hook.
37833         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
37834         * tests/test-xstrtoimax.sh: Likewise.
37835         * tests/test-xstrtoumax.sh: Likewise.
37836
37837 2008-04-21  Bruno Haible  <bruno@clisp.org>
37838
37839         Fix test failure on mingw.
37840         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
37841
37842 2008-04-21  Bruno Haible  <bruno@clisp.org>
37843
37844         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
37845         Actually assign a value.
37846
37847 2008-04-20  Bruno Haible  <bruno@clisp.org>
37848
37849         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
37850         take 2.
37851         * lib/canonicalize.c (canonicalize_file_name): Elide if the
37852         'canonicalize-lgpl' module is also used.
37853         * lib/canonicalize-lgpl.c: Undo last change.
37854         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
37855
37856 2008-04-20  Bruno Haible  <bruno@clisp.org>
37857
37858         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
37859         config.h. Provide _mkdir based fallback for mingw.
37860         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
37861         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
37862         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
37863         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
37864         rather than defining mkdir in config.h.
37865         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
37866         (gl_SYS_STAT_H_DEFAULTS): New macro.
37867         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
37868         HAVE_IO_H any more.
37869         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
37870         HAVE_DECL_MKDIR and HAVE_IO_H.
37871
37872 2008-04-20  Bruno Haible  <bruno@clisp.org>
37873
37874         * lib/isapipe.c: Port to native Windows platforms.
37875
37876 2008-04-20  Bruno Haible  <bruno@clisp.org>
37877
37878         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
37879
37880 2008-04-21  Eric Blake  <ebb9@byu.net>
37881
37882         Work around preprocessors that don't handle UINTMAX_MAX.
37883         * lib/memchr2.c (memchr2): Avoid embedded #if.
37884         Reported by Alain Guibert, fix suggested by Bruno Haible.
37885
37886 2008-04-21  Simon Josefsson  <simon@josefsson.org>
37887
37888         * doc/posix-functions/strftime.texi (strftime): Explain better
37889         Windows incompatibility.  Suggested by Micah Cowan
37890         <micah@cowan.name>.
37891
37892 2008-04-20  Bruno Haible  <bruno@clisp.org>
37893
37894         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
37895         unistr/u8-mblen.
37896
37897 2008-04-20  Bruno Haible  <bruno@clisp.org>
37898
37899         Fix test failure on platforms with non-GNU iconv.
37900         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
37901         (U_TO_U8): Use it, rather than u16_to_u8.
37902         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
37903         units at the end of the input string.
37904         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
37905
37906 2008-04-20  Bruno Haible  <bruno@clisp.org>
37907
37908         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
37909         when the resulting length is 0.
37910         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
37911
37912 2008-04-20  Bruno Haible  <bruno@clisp.org>
37913
37914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
37915         works.
37916         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
37917
37918 2008-04-20  Bruno Haible  <bruno@clisp.org>
37919
37920         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
37921         * modules/tsearch-tests (configure.ac): Test for initstate function.
37922
37923 2008-04-20  Bruno Haible  <bruno@clisp.org>
37924
37925         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
37926         for nlink_t if missing.
37927         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
37928
37929 2008-04-19  Bruno Haible  <bruno@clisp.org>
37930
37931         Work around snprintf bug on Linux libc5.
37932         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
37933         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37934         gl_SNPRINTF_SIZE1.
37935         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37936         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
37937         that test failed.
37938         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
37939         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
37940         * modules/snprintf (Files): Add m4/printf.m4.
37941         * modules/vsnprintf (Files): Likewise.
37942         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
37943         * doc/posix-functions/vsnprintf.texi: Likewise.
37944
37945 2008-04-19  Bruno Haible  <bruno@clisp.org>
37946
37947         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
37948         from 0.0058 to less than 10^-7.
37949
37950 2008-04-19  Bruno Haible  <bruno@clisp.org>
37951
37952         Fix rounding when a precision is given.
37953         * lib/vasnprintf.c (is_borderline): New function.
37954         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
37955         9...9x.
37956         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
37957         %e, %g.
37958         * tests/test-vasprintf-posix.c (test_function): Likewise.
37959         * tests/test-snprintf-posix.h (test_function): Likewise.
37960         * tests/test-sprintf-posix.h (test_function): Likewise.
37961         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
37962         * tests/test-printf-posix.h (test_function): Likewise.
37963         * tests/test-printf-posix.output: Update.
37964         Reported by John Darrington <john@darrington.wattle.id.au> via
37965         Ben Pfaff <blp@cs.stanford.edu>.
37966
37967 2008-04-18  Simon Josefsson  <simon@josefsson.org>
37968
37969         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
37970         Suggested by Bruno Haible <bruno@clisp.org>.
37971
37972 2008-04-17  Bruno Haible  <bruno@clisp.org>
37973
37974         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
37975         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
37976         implementation.
37977         Patch by Bruce Merry <bmerry@gmail.com>.
37978
37979 2008-04-17  Simon Josefsson  <simon@josefsson.org>
37980
37981         * doc/posix-functions/strftime.texi (strftime): Mention that %e
37982         doesn't work under Windows.
37983
37984 2008-04-16  Bruno Haible  <bruno@clisp.org>
37985
37986         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
37987         New macros.
37988         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
37989         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
37990         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
37991         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
37992         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
37993         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
37994         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
37995         macros.
37996         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
37997         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
37998         Northern Sotho, Uighur.
37999
38000 2008-04-16  Bruno Haible  <bruno@clisp.org>
38001
38002         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
38003         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
38004         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
38005         Reported by Daniel Bergström <daniel@octocode.com>.
38006
38007 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
38008             Bruno Haible  <bruno@clisp.org>
38009
38010         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
38011         function.
38012         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
38013         New functions, mostly extracted from gl_locale_name_default.
38014         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
38015
38016 2008-04-16  Eric Blake  <ebb9@byu.net>
38017
38018         Adjust strtod detection to catch glibc 2.7 bug.
38019         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
38020         Reported by John Gatewood Ham.
38021
38022 2008-04-16  Bruno Haible  <bruno@clisp.org>
38023
38024         Add tentative support for Linux libc5.
38025         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
38026         * lib/fpurge.c (fpurge): Likewise.
38027         * lib/freadable.c (freadable): Likewise.
38028         * lib/freadahead.c (freadahead): Likewise.
38029         * lib/freading.c (freading): Likewise.
38030         * lib/freadptr.c (freadptr): Likewise.
38031         * lib/freadseek.c (freadptrinc): Likewise.
38032         * lib/fseeko.c (rpl_fseeko): Likewise.
38033         * lib/fseterr.c (fseterr): Likewise.
38034         * lib/fwritable.c (fwritable): Likewise.
38035         * lib/fwriting.c (fwriting): Likewise.
38036         Reported by Alain Guibert <alguibert+bts@free.fr>.
38037
38038 2008-04-15  Bruno Haible  <bruno@clisp.org>
38039
38040         * modules/mathl (configure.ac): Define module indicator.
38041
38042 2008-04-15  Bruno Haible  <bruno@clisp.org>
38043
38044         * lib/logl.c (logl): Remove unused variables.
38045
38046 2008-04-15  Bruno Haible  <bruno@clisp.org>
38047
38048         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
38049         fails.
38050
38051 2008-04-15  Bruno Haible  <bruno@clisp.org>
38052
38053         * lib/trim.c (trim2): Fix argument of isspace() macro.
38054
38055 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
38056
38057         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
38058         to 0.
38059         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
38060
38061 2008-04-14  Bruno Haible  <bruno@clisp.org>
38062
38063         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
38064         AC_LANG_PROGRAM argument.
38065         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
38066         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
38067         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38068         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38069         * m4/math_h.m4 (gl_MATH_H): Likewise.
38070         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
38071         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38072         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38073         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
38074         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38075         * m4/regex.m4 (gl_REGEX): Likewise.
38076         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
38077         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
38078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38079         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
38080         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38081         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38082         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38083         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38084
38085 2008-04-14  Jim Meyering  <meyering@redhat.com>
38086
38087         test-strtod: fix typos: s/abs/fabs/
38088         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
38089
38090 2008-04-13  Bruno Haible  <bruno@clisp.org>
38091
38092         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
38093         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
38094         module is also used and while not building the reloc-wrapper.
38095
38096 2008-04-13  Bruno Haible  <bruno@clisp.org>
38097
38098         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
38099
38100 2008-04-13  Bruno Haible  <bruno@clisp.org>
38101
38102         Fix AIX compilation failure introduced on 2008-04-02.
38103         * tests/test-frexp.c (exp): Undefine before redefining.
38104         * tests/test-frexpl.c (exp): Likewise.
38105
38106 2008-04-13  Bruno Haible  <bruno@clisp.org>
38107
38108         Work around a HP-UX stdio bug.
38109         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
38110         * tests/test-ftello.c (main): Likewise.
38111         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
38112         * doc/posix-functions/ftello.texi: Likewise.
38113
38114 2008-04-13  Bruno Haible  <bruno@clisp.org>
38115
38116         Make test-signbit pass on HP-UX/hppa.
38117         * tests/test-signbit.c (minus_zerol): New variable.
38118         (test_signbitl): Use it.
38119
38120 2008-04-13  Bruno Haible  <bruno@clisp.org>
38121
38122         Make truncl work on OSF/1 4.0.
38123         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
38124         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38125         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
38127         HAVE_DECL_TRUNCL.
38128         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
38129         HAVE_DECL_TRUNCL.
38130         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
38131
38132 2008-04-13  Bruno Haible  <bruno@clisp.org>
38133
38134         * lib/unictype.h: Remove trailing comma from enumeration definitions.
38135
38136 2008-04-13  Bruno Haible  <bruno@clisp.org>
38137
38138         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
38139         expression, so as to avoid HP-UX 11 cc compiler bug.
38140
38141 2008-04-13  Bruno Haible  <bruno@clisp.org>
38142
38143         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
38144
38145 2008-04-13  Bruno Haible  <bruno@clisp.org>
38146
38147         * lib/git-merge-changelog.c: Remove empty declaration outside of
38148         functions.
38149
38150 2008-04-13  Bruno Haible  <bruno@clisp.org>
38151
38152         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
38153
38154 2008-04-13  Bruno Haible  <bruno@clisp.org>
38155
38156         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
38157         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
38158         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
38159         also if it exists but lacks definitions of the SHUT_* macros.
38160         * modules/sys_socket (Description): Update.
38161         Reported by Elbert Pol <e.pol@chello.nl>.
38162
38163 2008-04-13  Bruno Haible  <bruno@clisp.org>
38164
38165         * lib/localcharset.c (OS2): Don't redefine if already defined.
38166         Reported by Elbert Pol <e.pol@chello.nl>.
38167
38168 2008-04-13  Bruno Haible  <bruno@clisp.org>
38169
38170         * lib/binary-io.h [__EMX__]: Include <io.h>.
38171         Reported by Elbert Pol <e.pol@chello.nl>.
38172
38173 2008-04-12  Bruno Haible  <bruno@clisp.org>
38174
38175         * lib/fpucw.h: Enable the definitions also for x86_64.
38176         Needed for NetBSD/x86_64.
38177         Reported by Thomas Klausner <tk@giga.or.at>.
38178
38179 2008-04-12  Bruno Haible  <bruno@clisp.org>
38180
38181         * tests/test-strtod.c: Include isnand.h.
38182         (main): Use isnand instead of isnan.
38183         Reported by Jim Meyering.
38184
38185 2008-04-12  Bruno Haible  <bruno@clisp.org>
38186
38187         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
38188         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38189
38190 2008-04-12  Jim Meyering  <meyering@redhat.com>
38191
38192         * m4/math_h.m4 (gl_MATH_H): Fix typos.
38193
38194 2008-04-12  Bruno Haible  <bruno@clisp.org>
38195
38196         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
38197         Reported by Elbert Pol <e.pol@chello.nl>.
38198
38199 2008-04-12  Eric Blake  <ebb9@byu.net>
38200
38201         Work around Solaris 10 math.h bug.
38202         * m4/math_h.m4 (gl_MATH_H): Check for bug.
38203         (gl_MATH_H_DEFAULTS): Set up default.
38204         * modules/math (Makefile.am): Replace new indicators.
38205         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
38206         * tests/test-math.c (main): Test this.
38207         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
38208         * doc/posix-headers/math.texi (math.h): Mention bug.
38209         Reported by Nelson H. F. Beebe and Jim Meyering.
38210
38211 2008-04-11  Bruno Haible  <bruno@clisp.org>
38212
38213         Adapt to future versions of Apple GCC.
38214         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
38215         Reported by Peter O'Gorman <peter@pogma.com>.
38216
38217 2008-04-11  Bruno Haible  <bruno@clisp.org>
38218
38219         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
38220
38221 2008-04-11  Bruno Haible  <bruno@clisp.org>
38222
38223         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
38224
38225         * modules/getaddrinfo-tests (Makefile.am): Define
38226         test_getaddrinfo_LDADD.
38227
38228 2008-04-11  Bruno Haible  <bruno@clisp.org>
38229
38230         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
38231         (init): Fix syntax error.
38232         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
38233         is declared.
38234
38235 2008-04-11  Bruno Haible  <bruno@clisp.org>
38236
38237         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
38238         * modules/glob (Depends-on): Add stdbool.
38239
38240 2008-04-11  Bruno Haible  <bruno@clisp.org>
38241
38242         * lib/trim.c: Include <string.h>.
38243
38244 2008-04-11  Eric Blake  <ebb9@byu.net>
38245
38246         Avoid compile failure on OS/2.
38247         * lib/regex_internal.h (internal_function): Disable optimization
38248         on OS/2 (__EMX__), where it caused compiler error.
38249         Reported by Elbert Pol.
38250
38251 2008-04-11  Bruno Haible  <bruno@clisp.org>
38252
38253         Flush the standard error stream before aborting. Needed on mingw.
38254         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
38255         * tests/test-array_list.c (ASSERT): Likewise.
38256         * tests/test-array_oset.c (ASSERT): Likewise.
38257         * tests/test-avltree_list.c (ASSERT): Likewise.
38258         * tests/test-avltree_oset.c (ASSERT): Likewise.
38259         * tests/test-avltreehash_list.c (ASSERT): Likewise.
38260         * tests/test-binary-io.c (ASSERT): Likewise.
38261         * tests/test-byteswap.c (ASSERT): Likewise.
38262         * tests/test-c-ctype.c (ASSERT): Likewise.
38263         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
38264         * tests/test-c-strcasestr.c (ASSERT): Likewise.
38265         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
38266         * tests/test-c-strstr.c (ASSERT): Likewise.
38267         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
38268         * tests/test-canonicalize.c (ASSERT): Likewise.
38269         * tests/test-carray_list.c (ASSERT): Likewise.
38270         * tests/test-ceilf1.c (ASSERT): Likewise.
38271         * tests/test-ceilf2.c (ASSERT): Likewise.
38272         * tests/test-ceill.c (ASSERT): Likewise.
38273         * tests/test-count-one-bits.c (ASSERT): Likewise.
38274         * tests/test-fbufmode.c (ASSERT): Likewise.
38275         * tests/test-fflush2.c (ASSERT): Likewise.
38276         * tests/test-floorf1.c (ASSERT): Likewise.
38277         * tests/test-floorf2.c (ASSERT): Likewise.
38278         * tests/test-floorl.c (ASSERT): Likewise.
38279         * tests/test-fopen.c (ASSERT): Likewise.
38280         * tests/test-fpending.c (ASSERT): Likewise.
38281         * tests/test-fprintf-posix.c (ASSERT): Likewise.
38282         * tests/test-fpurge.c (ASSERT): Likewise.
38283         * tests/test-freadable.c (ASSERT): Likewise.
38284         * tests/test-freadahead.c (ASSERT): Likewise.
38285         * tests/test-freading.c (ASSERT): Likewise.
38286         * tests/test-freadptr.c (ASSERT): Likewise.
38287         * tests/test-freadptr2.c (ASSERT): Likewise.
38288         * tests/test-freadseek.c (ASSERT): Likewise.
38289         * tests/test-freopen.c (ASSERT): Likewise.
38290         * tests/test-frexp.c (ASSERT): Likewise.
38291         * tests/test-frexpl.c (ASSERT): Likewise.
38292         * tests/test-fseek.c (ASSERT): Likewise.
38293         * tests/test-fseeko.c (ASSERT): Likewise.
38294         * tests/test-fstrcmp.c (ASSERT): Likewise.
38295         * tests/test-ftell.c (ASSERT): Likewise.
38296         * tests/test-ftello.c (ASSERT): Likewise.
38297         * tests/test-func.c (ASSERT): Likewise.
38298         * tests/test-fwritable.c (ASSERT): Likewise.
38299         * tests/test-fwriting.c (ASSERT): Likewise.
38300         * tests/test-getdelim.c (ASSERT): Likewise.
38301         * tests/test-getline.c (ASSERT): Likewise.
38302         * tests/test-i-ring.c (ASSERT): Likewise.
38303         * tests/test-iconv-utf.c (ASSERT): Likewise.
38304         * tests/test-iconv.c (ASSERT): Likewise.
38305         * tests/test-isfinite.c (ASSERT): Likewise.
38306         * tests/test-isnand.c (ASSERT): Likewise.
38307         * tests/test-isnanf.c (ASSERT): Likewise.
38308         * tests/test-isnanl.h (ASSERT): Likewise.
38309         * tests/test-ldexpl.c (ASSERT): Likewise.
38310         * tests/test-linked_list.c (ASSERT): Likewise.
38311         * tests/test-linkedhash_list.c (ASSERT): Likewise.
38312         * tests/test-localename.c (ASSERT): Likewise.
38313         * tests/test-lseek.c (ASSERT): Likewise.
38314         * tests/test-mbscasecmp.c (ASSERT): Likewise.
38315         * tests/test-mbscasestr1.c (ASSERT): Likewise.
38316         * tests/test-mbscasestr2.c (ASSERT): Likewise.
38317         * tests/test-mbscasestr3.c (ASSERT): Likewise.
38318         * tests/test-mbscasestr4.c (ASSERT): Likewise.
38319         * tests/test-mbschr.c (ASSERT): Likewise.
38320         * tests/test-mbscspn.c (ASSERT): Likewise.
38321         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
38322         * tests/test-mbspbrk.c (ASSERT): Likewise.
38323         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
38324         * tests/test-mbsrchr.c (ASSERT): Likewise.
38325         * tests/test-mbsspn.c (ASSERT): Likewise.
38326         * tests/test-mbsstr1.c (ASSERT): Likewise.
38327         * tests/test-mbsstr2.c (ASSERT): Likewise.
38328         * tests/test-mbsstr3.c (ASSERT): Likewise.
38329         * tests/test-memchr2.c (ASSERT): Likewise.
38330         * tests/test-memmem.c (ASSERT): Likewise.
38331         * tests/test-open.c (ASSERT): Likewise.
38332         * tests/test-printf-frexp.c (ASSERT): Likewise.
38333         * tests/test-printf-frexpl.c (ASSERT): Likewise.
38334         * tests/test-printf-posix.c (ASSERT): Likewise.
38335         * tests/test-quotearg.c (ASSERT): Likewise.
38336         * tests/test-rbtree_list.c (ASSERT): Likewise.
38337         * tests/test-rbtree_oset.c (ASSERT): Likewise.
38338         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
38339         * tests/test-round1.c (ASSERT): Likewise.
38340         * tests/test-roundf1.c (ASSERT): Likewise.
38341         * tests/test-roundl.c (ASSERT): Likewise.
38342         * tests/test-signbit.c (ASSERT): Likewise.
38343         * tests/test-sleep.c (ASSERT): Likewise.
38344         * tests/test-snprintf-posix.c (ASSERT): Likewise.
38345         * tests/test-snprintf.c (ASSERT): Likewise.
38346         * tests/test-sprintf-posix.c (ASSERT): Likewise.
38347         * tests/test-stat-time.c (ASSERT): Likewise.
38348         * tests/test-strcasestr.c (ASSERT): Likewise.
38349         * tests/test-strerror.c (ASSERT): Likewise.
38350         * tests/test-striconv.c (ASSERT): Likewise.
38351         * tests/test-striconveh.c (ASSERT): Likewise.
38352         * tests/test-striconveha.c (ASSERT): Likewise.
38353         * tests/test-strsignal.c (ASSERT): Likewise.
38354         * tests/test-strstr.c (ASSERT): Likewise.
38355         * tests/test-strtod.c (ASSERT): Likewise.
38356         * tests/test-trunc1.c (ASSERT): Likewise.
38357         * tests/test-trunc2.c (ASSERT): Likewise.
38358         * tests/test-truncf1.c (ASSERT): Likewise.
38359         * tests/test-truncf2.c (ASSERT): Likewise.
38360         * tests/test-truncl.c (ASSERT): Likewise.
38361         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
38362         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
38363         * tests/test-vasnprintf.c (ASSERT): Likewise.
38364         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
38365         * tests/test-vasprintf.c (ASSERT): Likewise.
38366         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
38367         * tests/test-vprintf-posix.c (ASSERT): Likewise.
38368         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
38369         * tests/test-vsnprintf.c (ASSERT): Likewise.
38370         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
38371         * tests/test-wcwidth.c (ASSERT): Likewise.
38372         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
38373         * tests/test-xprintf-posix.c (ASSERT): Likewise.
38374         * tests/test-xvasprintf.c (ASSERT): Likewise.
38375         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
38376         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
38377         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
38378         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
38379         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
38380         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
38381         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
38382         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
38383         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
38384         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
38385         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
38386         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
38387         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
38388         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
38389         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
38390         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
38391         * tests/unictype/test-block_list.c (ASSERT): Likewise.
38392         * tests/unictype/test-block_of.c (ASSERT): Likewise.
38393         * tests/unictype/test-block_test.c (ASSERT): Likewise.
38394         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
38395         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
38396         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
38397         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
38398         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
38399         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
38400         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
38401         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
38402         * tests/unictype/test-combining.c (ASSERT): Likewise.
38403         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
38404         * tests/unictype/test-digit.c (ASSERT): Likewise.
38405         * tests/unictype/test-mirror.c (ASSERT): Likewise.
38406         * tests/unictype/test-numeric.c (ASSERT): Likewise.
38407         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
38408         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
38409         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
38410         * tests/unictype/test-scripts.c (ASSERT): Likewise.
38411         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
38412         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
38413         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
38414         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
38415         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
38416         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
38417         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
38418         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
38419         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
38420         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
38421         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
38422         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
38423         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
38424         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
38425         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
38426         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
38427         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
38428         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
38429         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
38430         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
38431         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
38432         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
38433         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
38434         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
38435         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
38436         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
38437         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
38438         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
38439         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
38440         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
38441         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
38442         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
38443         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
38444         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
38445         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
38446         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
38447         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
38448         Reported by Eric Blake.
38449
38450 2008-04-11  Bruno Haible  <bruno@clisp.org>
38451
38452         * lib/wchar.in.h: Tweak comment.
38453
38454 2008-04-11  Bruno Haible  <bruno@clisp.org>
38455
38456         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
38457         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
38458         gl_COMMON.
38459         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
38460
38461 2008-04-11  Bruno Haible  <bruno@clisp.org>
38462
38463         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
38464
38465 2008-04-11  Simon Josefsson  <simon@josefsson.org>
38466
38467         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
38468         of attempting to use non-existing /dev/*random.  Based on patch
38469         from Adam Strzelecki <ono@java.pl> in
38470         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
38471
38472 2008-04-08  Bruno Haible  <bruno@clisp.org>
38473
38474         Add tentative support for emx+gcc.
38475         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
38476         * lib/fpurge.c (fpurge): Likewise.
38477         * lib/freadable.c (freadable): Likewise.
38478         * lib/freadahead.c (freadahead): Likewise.
38479         * lib/freading.c (freading): Likewise.
38480         * lib/freadptr.c (freadptr): Likewise.
38481         * lib/freadseek.c (freadptrinc): Likewise.
38482         * lib/fseeko.c (rpl_fseeko): Likewise.
38483         * lib/fseterr.c (fseterr): Likewise.
38484         * lib/fwritable.c (fwritable): Likewise.
38485         * lib/fwriting.c (fwriting): Likewise.
38486         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
38487
38488 2008-04-09  Eric Blake  <ebb9@byu.net>
38489
38490         Avoid some autoconf warnings.
38491         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
38492         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
38493         * m4/afs.m4 (gl_AFS): Likewise.
38494         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
38495         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
38496         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38497         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
38498         (gl_INTEGER_TYPE_SUFFIX): Likewise.
38499         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
38500         (AC_CHECK_DECLS_ONCE): Likewise.
38501         Rename file...
38502         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
38503         gnulib-tool requires autoconf 2.59 or better.
38504         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
38505
38506 2008-04-08  Eric Blake  <ebb9@byu.net>
38507
38508         Use 'git describe --match' if present (added in git 1.5.5).
38509         * build-aux/git-version-gen: Limit result to tags that match 'v*'
38510         if possible.
38511
38512 2008-04-08  Bruno Haible  <bruno@clisp.org>
38513
38514         Add tentative support for OpenServer.
38515         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
38516         _ptr, _cnt.
38517         * lib/fpurge.c (fpurge): Likewise.
38518         * lib/freadable.c (freadable): Likewise.
38519         * lib/freadahead.c (freadahead): Likewise.
38520         * lib/freading.c (freading): Likewise.
38521         * lib/freadptr.c (freadptr): Likewise.
38522         * lib/freadseek.c (freadptrinc): Likewise.
38523         * lib/fseeko.c (rpl_fseeko): Likewise.
38524         * lib/fseterr.c (fseterr): Likewise.
38525         * lib/fwritable.c (fwritable): Likewise.
38526         * lib/fwriting.c (fwriting): Likewise.
38527         Reported by Roger Cornelius <rac@tenzing.org> and
38528         Brian K. White <brian@aljex.com>.
38529
38530 2008-04-06  Jim Meyering  <meyering@redhat.com>
38531
38532         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
38533
38534 2008-04-06  Bruno Haible  <bruno@clisp.org>
38535
38536         Avoid possible error with non-ASCII bytes in UTF-8 locales.
38537         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
38538         * tests/test-printf-posix.sh: Likewise.
38539         * tests/test-vfprintf-posix.sh: Likewise.
38540         * tests/test-vprintf-posix.sh: Likewise.
38541         * tests/test-xprintf-posix.sh: Likewise.
38542
38543 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38544
38545         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
38546         hide error from 'ls', needed on OS/2.
38547         Report by Elbert Pol <elbert.pol@gmail.com>.
38548
38549 2008-04-04  Eric Blake  <ebb9@byu.net>
38550
38551         Make test-fseeko.c failures meaningful.
38552         * tests/test-fseeko.c: Print line number on failure.
38553         * tests/test-fseek.c: Likewise.
38554         Reported by Nelson H. F. Beebe.
38555
38556         Improve strtod bug detection check.
38557         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
38558         required for Solaris 10.
38559         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
38560
38561 2008-04-04  Bruno Haible  <bruno@clisp.org>
38562
38563         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
38564         by m4/setenv.m4.
38565
38566 2008-04-03  Eric Blake  <ebb9@byu.net>
38567
38568         Ensure sane .version contents.
38569         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
38570         version string.
38571         * build-aux/git-version-gen: Improve documentation.
38572
38573         Make GNU make output nicer.
38574         * top/GNUmakefile [!_have-Makefile]: Add dependency on
38575         MAKECMDGOALS to enforce message for all command line targets.  Set
38576         srcdir for use in maint.mk.
38577
38578         Another maintainer tweak.
38579         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
38580         a target that regenerates version.
38581
38582 2008-04-03  Jim Meyering  <meyering@redhat.com>
38583
38584         vc-list-files: don't cause coreutils "make po-check" failure
38585         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
38586
38587 2008-04-03  Eric Blake  <ebb9@byu.net>
38588
38589         Allow VPATH usage of vc-list-files.
38590         * build-aux/vc-list-files (scriptversion): Add timestamp.
38591         (options): Add --help, --version, -C.
38592         (CVS): Support installed cvsu.
38593
38594 2008-04-02  Bruno Haible  <bruno@clisp.org>
38595
38596         Avoid some "statement with no effect" warnings from gcc.
38597         * tests/test-wctype.c (main): Explicitly ignore unused values.
38598         Reported by Jim Meyering.
38599
38600 2008-04-02  Jim Meyering  <meyering@redhat.com>
38601
38602         Avoid some warnings from "gcc -Wshadow".
38603         * tests/test-frexp.c (exp): Define to a different identifier.
38604         * tests/test-frexpl.c (exp): Likewise.
38605
38606 2008-04-03  Jim Meyering  <meyering@redhat.com>
38607
38608         bootstrap: remove dangling *.[ch] symlinks from lib
38609         * build-aux/bootstrap [dangling symlink removal]: Move find's
38610         -depth option to precede all others, to avoid a warning.
38611         Remove *.[ch] files too, and from "$source_base" (usually lib/).
38612
38613 2008-04-02  Bruno Haible  <bruno@clisp.org>
38614
38615         Avoid some warnings from "gcc -Wshadow".
38616         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
38617         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
38618         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
38619         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
38620         Reported by Jim Meyering.
38621
38622 2008-04-01  Bruno Haible  <bruno@clisp.org>
38623
38624         Fix test to work on IRIX 6.5 with cc.
38625         * tests/test-math.c (numeric_equal): New function.
38626         (main): Use it.
38627
38628 2008-04-01  Bruno Haible  <bruno@clisp.org>
38629
38630         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
38631
38632 2008-04-01  Bruno Haible  <bruno@clisp.org>
38633
38634         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
38635         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38636         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
38637         (Depends-on): Remove math.
38638
38639         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
38640         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38641         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
38642         (Depends-on): Remove math.
38643
38644         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
38645         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38646         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
38647         (Depends-on): Remove math.
38648         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
38649         (Depends-on): Remove math.
38650
38651         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
38652         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38653         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
38654         (Depends-on): Remove math.
38655         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
38656         (Depends-on): Remove math.
38657
38658         * tests/test-round1.c: Include nan.h.
38659         (main): Use NaNd instead of NAN.
38660         * modules/round-tests (Files): Add tests/nan.h.
38661
38662         * tests/test-trunc1.c: Include nan.h.
38663         (main): Use NaNd instead of NAN.
38664         * modules/trunc-tests (Files): Add tests/nan.h.
38665
38666         * tests/test-roundf1.c: Include nan.h.
38667         (main): Use NaNf instead of NAN.
38668         * modules/roundf-tests (Files): Add tests/nan.h.
38669
38670         * tests/test-truncf1.c: Include nan.h.
38671         (main): Use NaNf instead of NAN.
38672         * modules/truncf-tests (Files): Add tests/nan.h.
38673
38674         * tests/test-ceilf1.c: Include nan.h.
38675         (main): Use NaNf instead of NAN.
38676         * modules/ceilf-tests (Files): Add tests/nan.h.
38677
38678         * tests/test-floorf1.c: Include nan.h.
38679         (main): Use NaNf instead of NAN.
38680         * modules/floorf-tests (Files): Add tests/nan.h.
38681
38682         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
38683         (main): Use NaNf instead of NAN.
38684         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
38685
38686         * tests/test-isnand.c: Include nan.h instead of <math.h>.
38687         (main): Use NaNd instead of NAN.
38688         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
38689
38690         * tests/test-frexp.c: Include nan.h.
38691         (main): Use NaNd instead of NAN.
38692         * modules/frexp-tests (Files): Add tests/nan.h.
38693
38694         * lib/isnan.c: Don't include <math.h>.
38695         (FUNC): Don't use NAN macro.
38696         * modules/isnand-nolibm (Depends-on): Remove math.
38697         * modules/isnanf-nolibm (Depends-on): Remove math.
38698         * modules/isnanl (Depends-on): Remove math.
38699         * modules/isnanl-nolibm (Depends-on): Remove math.
38700
38701         * tests/nan.h: New file.
38702
38703 2008-04-01  Eric Blake  <ebb9@byu.net>
38704
38705         Fix typos.
38706         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
38707         values to be the right type.
38708
38709         For now, cater to gnulib strtod inaccuracies.
38710         * tests/test-strtod.c (main): Allow 1-ulp error on expected
38711         fractional results.  While not as nice from a QoI perspective, it
38712         is a quicker patch than correctly implementing decimal to binary
38713         rounding.
38714
38715 2008-03-31  Eric Blake  <ebb9@byu.net>
38716
38717         Guarantee a definition of NAN.
38718         * lib/math.in.h (NAN): Define if missing.
38719         * tests/test-math.c (main): Test it.
38720         * doc/posix-headers/math.texi (math.h): Document this.
38721         * lib/isnan.c (rpl_isnand): Use it.
38722         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
38723         * tests/test-floorf1.c (NaN): Likewise.
38724         * tests/test-frexp.c (NaN): Likewise.
38725         * tests/test-isnand.c (NaN): Likewise.
38726         * tests/test-isnanf.c (NaN): Likewise.
38727         * tests/test-round1.c (NaN): Likewise.
38728         * tests/test-roundf1.c (NaN): Likewise.
38729         * tests/test-snprintf-posix.h (NaN): Likewise.
38730         * tests/test-sprintf-posix.h (NaN): Likewise.
38731         * tests/test-trunc1.c (NaN): Likewise.
38732         * tests/test-truncf1.c (NaN): Likewise.
38733         * tests/test-vasnprintf-posix.c (NaN): Likewise.
38734         * tests/test-vasprintf-posix.c (NaN): Likewise.
38735         * modules/isnand-nolibm (Depends-on): Add math.
38736         * modules/isnanf-nolibm (Depends-on): Likewise.
38737         * modules/isnanl (Depends-on): Likewise.
38738         * modules/isnanl-nolibm (Depends-on): Likewise.
38739         * modules/snprintf-posix-tests (Depends-on): Likewise.
38740         * modules/sprintf-posix-tests (Depends-on): Likewise.
38741         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
38742         * modules/vsprintf-posix-tests (Depends-on): Likewise.
38743         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
38744         * modules/vasprintf-posix-tests (Depends-on): Likewise.
38745
38746 2008-03-31  Bruno Haible  <bruno@clisp.org>
38747
38748         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
38749         * doc/posix-functions/strtod.texi: Likewise.
38750
38751 2008-03-31  Bruno Haible  <bruno@clisp.org>
38752
38753         * tests/test-strtod.c (main): Don't use C99 syntax.
38754
38755 2008-03-31  Bruno Haible  <bruno@clisp.org>
38756
38757         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
38758         Reported by Eric Blake.
38759
38760 2008-03-31  Jim Meyering  <meyering@redhat.com>
38761
38762         Don't compare actual signbit return values.
38763         * tests/test-strtod.c (main): Rather, compare only their
38764         zero/non-zero nature.
38765
38766 2008-03-31  Eric Blake  <ebb9@byu.net>
38767
38768         More strtod documentation.
38769         * doc/posix-functions/strtod.texi (strtod): Interpret more test
38770         failures as distinct bugs.
38771
38772 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
38773
38774         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
38775         Problem reported by Erik Benada in
38776         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
38777
38778 2008-03-30  Bruno Haible  <bruno@clisp.org>
38779
38780         * tests/test-strtod.c: Add comments about which assertion fails on which
38781         platform.
38782         * doc/posix-functions/strtod.texi: Add info about many more platforms.
38783
38784 2008-03-30  Eric Blake  <ebb9@byu.net>
38785
38786         Test signbit behavior on zeros.
38787         * tests/test-signbit.c (test_signbitf): Add tests for zero.
38788         (test_signbitd, test_signbitl): Likewise.
38789
38790         More strtod touchups.
38791         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
38792         sign of negative underflow, for now.  Use .5, not .1.
38793         * doc/posix-functions/strtod.texi (strtod): Mention these
38794         limitations.
38795         Reported by Jim Meyering.
38796
38797 2008-03-30  Bruno Haible  <bruno@clisp.org>
38798
38799         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
38800         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
38801
38802 2008-03-30  Bruno Haible  <bruno@clisp.org>
38803
38804         Avoid failure when attempting to return empty iconv results on some
38805         platforms.
38806         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
38807         allocation, don't report ENOMEM when the resulting string is empty.
38808
38809 2008-03-30  Bruno Haible  <bruno@clisp.org>
38810
38811         Fix buffer overrun.
38812         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
38813         Don't consider the width for tmp_length. Check count against tmp_length
38814         before doing the padding. Ensure enough allocation during padding.
38815
38816 2008-03-30  Eric Blake  <ebb9@byu.net>
38817
38818         strtod touchups.
38819         * lib/strtod.c (strtod): Avoid compiler warnings.
38820         Reported by Jim Meyering.
38821
38822 2008-03-30  Bruno Haible  <bruno@clisp.org>
38823
38824         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
38825         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
38826         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
38827         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
38828         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
38829         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
38830         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
38831         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
38832
38833         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
38834         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
38835         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
38836         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
38837         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
38838         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
38839         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
38840         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
38841
38842         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
38843         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
38844         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
38845         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
38846         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
38847         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
38848         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
38849         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
38850
38851         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
38852         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
38853
38854         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
38855         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
38856
38857         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
38858         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
38859
38860         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
38861         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
38862         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
38863
38864         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
38865         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
38866         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
38867
38868         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
38869         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
38870         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
38871
38872         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
38873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
38874         * modules/vasprintf (Depends-on): Add EOVERFLOW.
38875
38876         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
38877         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
38878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
38879         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
38880         (Depends-on): Add EOVERFLOW.
38881         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
38882         (Depends-on): Add EOVERFLOW.
38883         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38884         (Depends-on): Add EOVERFLOW.
38885         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38886         (Depends-on): Add EOVERFLOW.
38887         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38888         (Depends-on): Add EOVERFLOW.
38889         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38890         (Depends-on): Add EOVERFLOW.
38891         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38892         (Depends-on): Add EOVERFLOW.
38893         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38894         (Depends-on): Add EOVERFLOW.
38895
38896         * lib/sprintf.c (EOVERFLOW): Remove fallback.
38897         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
38898         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
38899
38900         * lib/snprintf.c (EOVERFLOW): Remove fallback.
38901         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
38902         * modules/snprintf (Depends-on): Add EOVERFLOW.
38903
38904         * lib/poll.c (EOVERFLOW): Remove fallback.
38905         * modules/poll (Depends-on): Add EOVERFLOW.
38906
38907         * lib/getugroups.c (EOVERFLOW): Remove fallback.
38908         * modules/getugroups (Depends-on): Add EOVERFLOW.
38909
38910         * lib/getdelim.c (EOVERFLOW): Remove fallback.
38911         * modules/getdelim (Depends-on): Add EOVERFLOW.
38912
38913         * lib/ftell.c (EOVERFLOW): Remove fallback.
38914         * modules/ftell (Depends-on): Add EOVERFLOW.
38915
38916         * lib/fprintf.c (EOVERFLOW): Remove fallback.
38917         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
38918         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
38919
38920         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
38921
38922         * modules/EOVERFLOW-tests: New file.
38923         * tests/test-EOVERFLOW.c: New file.
38924
38925         * modules/EOVERFLOW: New file.
38926         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
38927
38928 2008-03-30  Bruno Haible  <bruno@clisp.org>
38929
38930         Fix bug introduced on 2007-06-10.
38931         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
38932         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
38933
38934 2008-03-30  Bruno Haible  <bruno@clisp.org>
38935
38936         Improve freadseek's efficiency after ungetc.
38937         * lib/freadseek.c: Include freadahead.h.
38938         (freadptrinc): New function, extracted from freadseek.
38939         (freadseek): Use it in a loop. Use freadahead to determine the number
38940         of loop iterations.
38941         * modules/freadseek (Depends-on): Add freadahead.
38942         (configure.ac): Require AC_C_INLINE.
38943
38944 2008-03-30  Bruno Haible  <bruno@clisp.org>
38945
38946         * lib/freadseek.c (freadseek): Don't ignore the return value of
38947         freadptr.
38948
38949 2008-03-29  Eric Blake  <ebb9@byu.net>
38950
38951         Add hex float support.
38952         * modules/strtod (Depends-on): Add c-ctype.
38953         (Link): Mention POW_LIB.
38954         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
38955         whitespace between 'e' and exponent.
38956         * tests/test-strtod.c (main): Enable hex float tests.
38957         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
38958         now provides.
38959
38960         Document various strtod bugs, with some fixes.
38961         * doc/posix-functions/strtod.texi (strtod): Document bugs with
38962         "-0x", "inf", "nan", and hex constants.
38963         * doc/posix-functions/atof.texi (atof): Likewise.
38964         * modules/stdlib (Makefile.am): Support strtod.
38965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38966         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
38967         detect additional strtod bugs.
38968         * lib/stdlib.in.h (rpl_strtod): Add declarations.
38969         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
38970         bool where appropriate.  Parse 'inf' and 'nan'.
38971         * tests/test-strtod.c: New file.
38972         * modules/strtod (Depends-on): Add stdbool, stdlib.
38973         (configure.ac): Turn on module indicator.
38974         * modules/strtod-tests: New module.
38975
38976 2008-03-29  Eric Blake  <ebb9@byu.net>
38977
38978         Fix ftell on mingw.
38979         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
38980         * modules/ftell-tests (Depends-on): Add binary-io.
38981         * modules/ftello-tests (Depends-on): Likewise.
38982         * tests/test-ftell.c (main): Enhance test to cover behavior after
38983         ungetc.  Enforce binary mode.
38984         * tests/test-ftello.c (main): Likewise.
38985
38986         Pass test-freadseek on cygwin.
38987         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
38988         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
38989         ungetc buffer.
38990
38991         * tests/test-fflush2.c (main): Fix typo.
38992
38993 2008-03-29  Bruno Haible  <bruno@clisp.org>
38994
38995         * tests/test-fflush2.c (main): Temporarily disable the contents of
38996         this test.
38997         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
38998         Reported by Eric Blake.
38999
39000 2008-03-28  Simon Josefsson  <simon@josefsson.org>
39001
39002         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
39003         (GC_SHA224_DIGEST_SIZE): Add.
39004
39005         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
39006         (gc_hash_digest_length): Likewise.
39007         (gc_hash_buffer): Likewise.
39008
39009 2008-03-25  Bruno Haible  <bruno@clisp.org>
39010
39011         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
39012         detail which gettext release to use.
39013         Reported by Simon Josefsson.
39014
39015 2008-03-26  Jim Meyering  <meyering@redhat.com>
39016
39017         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
39018         * modules/gnumakefile (clean-GNUmakefile): Also, use
39019         test ... && ... || : syntax rather than if-then ... fi.
39020
39021         gnumakefile: Don't double-quote-expand $(VPATH) value.
39022         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
39023
39024 2008-03-24  Eric Blake  <ebb9@byu.net>
39025
39026         Alter GNUmakefile to install into top directory.
39027         * modules/maintainer-makefile: Split, and add dependency...
39028         * modules/gnumakefile: to this new module.
39029         * build-aux/GNUmakefile: Move...
39030         * top/GNUmakefile: ...here.
39031         * build-aux/maint.mk: Move...
39032         * top/maint.mk: ...here.
39033         * MODULES.html.sh (Support for maintaining...): Document new
39034         module.
39035
39036 2008-03-23  Bruno Haible  <bruno@clisp.org>
39037
39038         * gnulib-tool: New options --vc-files, --no-vc-files.
39039         (func_usage): Document them.
39040         (vc_files): New variable.
39041         (func_import): Consider vc_files.
39042         (func_create_testdir): Set vc_files to empty.
39043         Suggested by Jim Meyering and Karl Berry.
39044
39045 2008-03-23  Bruno Haible  <bruno@clisp.org>
39046
39047         Fix regex compilation error on HP-UX 11.
39048         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
39049         * modules/regex (Files): Add m4/mbstate_t.m4.
39050         Reported by Ton Voon <ton.voon@altinity.com>.
39051
39052 2008-03-23  Bruno Haible  <bruno@clisp.org>
39053
39054         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
39055
39056 2008-03-23  Eric Blake  <ebb9@byu.net>
39057             Bruno Haible  <bruno@clisp.org>
39058
39059         Install files from top/ in the destination directory.
39060         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39061         augmentation also for the files from top/.
39062         (func_import, func_create_testdir): Rewrite file names:
39063         top/filename -> filename.
39064
39065 2008-03-23  Bruno Haible  <bruno@clisp.org>
39066
39067         Tweak "gnulib --version" output.
39068         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
39069
39070 2008-03-23  Bruno Haible  <bruno@clisp.org>
39071
39072         Tweak "gnulib --version" output.
39073         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
39074         rather than contents of ChangeLog, when possible.
39075
39076 2008-03-21  Eric Blake  <ebb9@byu.net>
39077
39078         More --version tweaks.
39079         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
39080         date of last ChangeLog entry.
39081
39082 2008-03-21  Jim Meyering  <meyering@redhat.com>
39083
39084         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
39085
39086 2008-03-20  Eric Blake  <ebb9@byu.net>
39087
39088         VPATH fix.
39089         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
39090
39091 2008-03-20  Simon Josefsson  <simon@josefsson.org>
39092
39093         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
39094         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
39095
39096 2008-03-20  Eric Blake  <ebb9@byu.net>
39097
39098         Sync GNUmakefile with coreutils.
39099         * build-aux/GNUmakefile (have-Makefile): Rename...
39100         (_have-Makefile): ...to this, for namespace consideration.
39101         (GNUmakefile.cfg): Include, if present.
39102         (_autoreconf): Define a default.
39103         (_is-dist-target): New rule for rebuilds to pick up intra-release
39104         version.
39105         (maint-cfg.mk): Rename...
39106         (cfg.mk): ...to this.
39107
39108 2008-03-18  Jim Meyering  <meyering@redhat.com>
39109
39110         New script and module: mktempd
39111         * MODULES.html.sh (maint+release support): Add mktempd.
39112         * build-aux/mktempd: New file.
39113         * modules/mktempd: New file.
39114
39115 2008-03-15  Jim Meyering  <meyering@redhat.com>
39116
39117         Undo last change.
39118         * lib/sha1.c, lib/md5.c: 63 != ~63.
39119         Reported by Andreas Schwab.
39120
39121         sha1.c, md5.c: Hoist a redundant expression.
39122         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
39123         "ctx->buflen" only once, before calling *_process_block.
39124         * lib/md5.c (md5_process_bytes): Likewise.
39125
39126 2008-03-14  Eric Blake  <ebb9@byu.net>
39127
39128         Bump copyright year in files generated by gnulib-tool.
39129         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
39130         gnulib-tool, rather than hard-coding it.
39131
39132         Fix 'gnulib-tool --version' output to work with git.
39133         * gnulib-tool (func_gnulib_dir): New function, extracted from...
39134         (startup): ...here.
39135         (func_version): Use it to invoke git-version-gen, rather than
39136         relying on CVS keyword expansion.  Modernize wording.
39137         (cvsdatestamp, last_checkin_date, version): Kill unused
39138         variables.
39139
39140 2008-03-12  Jim Meyering  <meyering@redhat.com>
39141
39142         Recognize optional cast of the argument to free.
39143         * build-aux/useless-if-before-free: Update regexps.
39144
39145         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
39146
39147 2008-03-11  Bruno Haible  <bruno@clisp.org>
39148
39149         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
39150         by a single package.
39151         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
39152         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
39153         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
39154         Reported by Sam Steingold <sds@gnu.org>.
39155
39156 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39157
39158         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
39159         repositories.
39160
39161 2008-03-11  Bruno Haible  <bruno@clisp.org>
39162
39163         Avoid conflicts between local macro definitions.
39164         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39165         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
39166
39167 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
39168             Bruno Haible  <bruno@clisp.org>
39169
39170         Make va_copy work with some version of xlc on AIX 5.1.
39171         * lib/stdarg.in.h: New file.
39172         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
39173         On AIX, use a <stdarg.h> file substitute.
39174         * modules/stdarg (Files): Add lib/stdarg.in.h.
39175         (Depends-on): Add include_next.
39176         (Makefile.am): Build a stdarg.h substitute if requested.
39177         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
39178
39179 2008-03-10  Bruno Haible  <bruno@clisp.org>
39180
39181         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
39182         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39183         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39184
39185 2008-03-10  Bruno Haible  <bruno@clisp.org>
39186
39187         * modules/stdlib (Depends-on): Add include_next, remove
39188         absolute-header.
39189
39190 2008-03-09  Bruno Haible  <bruno@clisp.org>
39191
39192         * lib/freadahead.h (freadahead): Document more precisely.
39193         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
39194         the sum of both buffer sizes.
39195         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
39196         * NEWS: Document the change.
39197
39198 2008-03-09  Bruno Haible  <bruno@clisp.org>
39199
39200         Extend freadptr to return also the buffer size.
39201         * lib/freadptr.h (freadptr): Add sizep argument.
39202         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
39203         (freadptr): Add sizep argument. Determine buffer size like freadahead
39204         does.
39205         * tests/test-freadptr.c: Don't include freadahead.h.
39206         (main): Adapt for new calling convention of freadptr.
39207         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
39208         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
39209         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
39210         tests/test-freadptr2.sh.
39211         (Depends): Remove freadahead.
39212         (TESTS): Add test-freadptr2.sh.
39213         (check_PROGRAMS): Add test-freadptr2.
39214
39215 2008-03-09  Bruno Haible  <bruno@clisp.org>
39216
39217         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
39218         Report and solution by Simon Josefsson.
39219
39220 2008-03-06  Bruno Haible  <bruno@clisp.org>
39221
39222         Make fflush after ungetc work on BSD platforms.
39223         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
39224         * tests/test-fflush2.c: New file.
39225         * tests/test-fflush2.sh: New file.
39226         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
39227         tests/test-fflush2.c.
39228         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
39229         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
39230
39231 2008-03-06  Eric Blake  <ebb9@byu.net>
39232
39233         Likewise for ftello.
39234         * modules/ftello (Dependencies): Add extensions.
39235         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
39236
39237 2008-03-06  Bruno Haible  <bruno@clisp.org>
39238
39239         * modules/fseeko (Dependencies): Add extensions.
39240         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
39241         Needed on glibc systems.
39242
39243 2008-03-06  Bruno Haible  <bruno@clisp.org>
39244
39245         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
39246         email address.
39247         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39248
39249 2008-03-06  Bruno Haible  <bruno@clisp.org>
39250
39251         * users.txt: Add libgnupdf.
39252
39253 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39254
39255         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
39256         (Header File Substitutes, Function Substitutes,
39257         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
39258         (Build robot for gnulib): Fix typo.
39259
39260 2008-03-06  Bruno Haible  <bruno@clisp.org>
39261
39262         * doc/gnulib-tool.texi (VCS Issues): Small updates.
39263         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39264
39265 2008-03-06  Bruno Haible  <bruno@clisp.org>
39266
39267         * doc/func.texi: New file, extracted from doc/gnulib.texi.
39268         * doc/gnulib.texi: Include it.
39269
39270 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39271
39272         * modules/func (License): Change license to unlimited; there was
39273         no LGPL parts in the module anyway.
39274
39275 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39276
39277         * modules/__func__: Renamed to modules/func.
39278         * modules/__func__-tests: Renamed to modules/func-tests.
39279         * tests/test-__func__.c: Renamed to tests/test-func.c.
39280         * m4/__func__.m4: Renamed to m4/func.m4.
39281         * doc/gnulib.texi (__func__): Section renamed to func.
39282         Suggested by Eric Blake <ebb9@byu.net>.
39283
39284 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39285
39286         * doc/gnulib.texi (__func__): Use C99 terminology when talking
39287         about __func__.  Make example self-contained.  Suggested by Eric
39288         Blake <ebb9@byu.net>.
39289
39290         * tests/test-__func__.c (main): Avoid extraneous () around __func.
39291         Suggested by Eric Blake <ebb9@byu.net>.
39292
39293 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39294
39295         * modules/__func__: New file.
39296         * modules/__func__-tests: New file.
39297         * tests/test-__func__.c: New file.
39298         * m4/__func__.m4: New file.
39299         * doc/gnulib.texi (__func__): Document __func__ module.
39300
39301 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39302
39303         * modules/byteswap (License): Re-license as LGPLv2+.
39304
39305 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39306
39307         * doc/Makefile: Add pdf target.
39308
39309 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39310
39311         * modules/inline (License): Use 'unlimited', since there are only
39312         *.m4 files in this module.
39313
39314 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39315             Bruno Haible  <bruno@clisp.org>
39316
39317         Add support for HP C 7.1 on OpenVMS 8.3.
39318         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
39319
39320 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39321
39322         Update VMS specifics.
39323         * lib/getopt.c [VMS]: Remove include of unixlib.h.
39324
39325 2008-03-02  Jim Meyering  <meyering@redhat.com>
39326
39327         Remove the last dependency on the "free" module.
39328         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
39329         Reported by Bob Proulx.
39330
39331         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
39332
39333         Remove useless "if" tests before free.  Deprecate "free" module.
39334         * doc/posix-functions/free.texi: Mention that this
39335         module is no longer useful.
39336         * modules/free (Notice): Say this module is obsolete.
39337         * modules/readutmp (Depends-on): Remove free.
39338         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
39339         * lib/putenv.c (putenv): Likewise.
39340         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
39341         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
39342         * tests/test-c-strcasestr.c (main): Likewise.
39343         * tests/test-c-strstr.c (main): Likewise.
39344         * tests/test-mbscasestr1.c (main): Likewise.
39345         * tests/test-mbscasestr2.c (main): Likewise.
39346         * tests/test-mbsstr1.c (main): Likewise.
39347         * tests/test-mbsstr2.c (main): Likewise.
39348         * tests/test-memmem.c (main): Likewise.
39349         * tests/test-strcasestr.c (main): Likewise.
39350         * tests/test-striconv.c (main): Likewise.
39351         * tests/test-striconveh.c (main): Likewise.
39352         * tests/test-striconveha.c (main): Likewise.
39353         * tests/test-strstr.c (main): Likewise.
39354
39355         * build-aux/git-version-gen: Adjust a comment and the Usage string.
39356
39357         bootstrap: sync from coreutils again
39358         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
39359
39360 2008-03-01  Jim Meyering  <meyering@redhat.com>
39361
39362         bootstrap: sync from coreutils
39363         * build-aux/bootstrap (update_po_files): Copy a .po file into place
39364         also when the target doesn't exist.
39365
39366 2008-03-01  Eric Blake  <ebb9@byu.net>
39367
39368         Fix bugs in last patch.
39369         * lib/memchr2.c (memchr2): Fix typo.
39370         * tests/test-memchr2.c: Test previous bug, and don't use GNU
39371         extension.
39372         Reported by Bruce Korb.
39373
39374         New module 'memchr2'.
39375         * modules/memchr2: New file.
39376         * modules/memchr2-tests: Likewise.
39377         * lib/memchr2.h: Likewise.
39378         * lib/memchr2.c: Likewise, based on memchr.c.
39379         * tests/test-memchr2.c: New test.
39380         * MODULES.html.sh (String handling): Add memchr2.
39381
39382 2008-02-29  Bruno Haible  <bruno@clisp.org>
39383
39384         * modules/freadseek-tests: New file.
39385         * tests/test-freadseek.sh: New file.
39386         * tests/test-freadseek.c: New file.
39387
39388         New module 'freadseek'.
39389         * modules/freadseek: New file.
39390         * lib/freadseek.h: New file.
39391         * lib/freadseek.c: New file.
39392         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
39393
39394 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39395
39396         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
39397         wydawca.
39398
39399         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
39400         program_invocation_name and program_invocation_short_name are
39401         present.
39402
39403 2008-02-28  Bruno Haible  <bruno@clisp.org>
39404
39405         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
39406         * tests/test-freadptr.sh: Also test non-seekable stdin.
39407
39408 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
39409
39410         * build-aux/bootstrap (source_base, m4_base)
39411         (doc_base, tests_base): New variables.
39412         (gnulib_tool_options): Do not hardcode base directories, use
39413         the above variables instead.
39414
39415 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
39416
39417         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
39418
39419 2008-02-28  Bruno Haible  <bruno@clisp.org>
39420
39421         * modules/freadptr-tests: New file.
39422         * tests/test-freadptr.sh: New file.
39423         * tests/test-freadptr.c: New file.
39424
39425         New module 'freadptr'.
39426         * modules/freadptr: New file.
39427         * lib/freadptr.h: New file.
39428         * lib/freadptr.c: New file.
39429         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
39430
39431 2008-02-26  Karl Berry  <karl@freefriends.org>
39432
39433         Sync from Libtool:
39434         * libltdl/argz.c (argz_add, argz_count): New functions.
39435         * libltdl/argz.in.h: Declare them.
39436         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
39437
39438 2008-02-22  Bruno Haible  <bruno@clisp.org>
39439
39440         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
39441         is a pointer type.  Needed for HP-UX 10.
39442         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
39443         * doc/posix-functions/gmtime_r.texi: Likewise.
39444         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39445
39446 2008-02-24  Bruno Haible  <bruno@clisp.org>
39447
39448         * modules/environ-tests: New file.
39449         * tests/test-environ.c: New file.
39450
39451         New module 'environ'.
39452         * modules/environ: New file.
39453         * lib/unistd.in.h (environ): New declaration.
39454         * m4/environ.m4: New file.
39455         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
39456         after use.
39457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
39458         HAVE_DECL_ENVIRON.
39459         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
39460         HAVE_DECL_ENVIRON.
39461         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
39462         wrong claim that 'environ' is missing on some systems.
39463         * modules/execute (Depends-on): Add environ.
39464         * lib/execute.c (environ): Remove fallback declaration.
39465         * modules/pipe (Depends-on): Add environ.
39466         * lib/pipe.c (environ): Remove fallback declaration.
39467         * modules/setenv (Depends-on): Add environ.
39468         * lib/setenv.c (environ): Remove fallback declaration.
39469         * modules/unsetenv (Depends-on): Add environ.
39470         * lib/unsetenv.c (environ): Remove fallback declaration.
39471         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
39472         m4/environ.m4.
39473         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
39474         (gl_PREREQ_UNSETENV): Likewise.
39475
39476 2008-02-24  Bruno Haible  <bruno@clisp.org>
39477
39478         * doc/posix-functions/environ.texi: Document the MacOS X problem.
39479
39480 2008-02-20  Bob Proulx  <bob@proulx.com>
39481
39482         Enable use of older two part flavor 'git describe'.
39483         * build-aux/git-version-gen: If using the older two part flavor of
39484         git version then recreate the third part now present in the
39485         newer three part flavor of git describe.
39486
39487 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
39488
39489         * lib/fts.c (fts_build): Typo correction to comment.
39490
39491 2008-02-17  Bruno Haible  <bruno@clisp.org>
39492
39493         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
39494         generating no-op conflicts.
39495
39496 2008-02-17  Bruno Haible  <bruno@clisp.org>
39497
39498         Speed up by 10%.
39499         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
39500         result_entries, rather than an index-based loop.
39501
39502 2008-02-17  Bruno Haible  <bruno@clisp.org>
39503
39504         Speed up by 25%.
39505         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
39506         'hashcode_cached'.
39507         (entry_create): New function.
39508         (entry_hashcode): Use the cached hashcode if possible.
39509         (read_changelog_file, try_split_merged_entry): Use entry_create.
39510
39511 2008-02-17  Bruno Haible  <bruno@clisp.org>
39512
39513         Speed up from O(n^2) to O(n) for long ChangeLog files.
39514         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
39515         (read_changelog_file): Change implementation of entries_reversed list
39516         to rbtreehash.
39517         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
39518
39519 2008-02-17  Bruno Haible  <bruno@clisp.org>
39520
39521         New option --split-merged-entry.
39522         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
39523         (find_paragraph_end, try_split_merged_entry): New functions.
39524         (long_options): Add option --split-merged-entry.
39525         (usage): Document option --split-merged-entry.
39526         (main): Implement option --split-merged-entry.
39527         Reported by Eric Blake.
39528
39529 2008-02-17  Bruno Haible  <bruno@clisp.org>
39530
39531         * lib/git-merge-changelog.c: Include c-strstr.h.
39532         (main): Support the "git pull --rebase" situation.
39533         * modules/git-merge-changelog (Depends-on): Add c-strstr.
39534         Reported by Eric Blake.
39535
39536 2008-02-16  Eric Blake  <ebb9@byu.net>
39537
39538         Avoid doubling \ in common case of "c-maybe" quoting style.
39539         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
39540         eliding outer quotes.
39541         * lib/quotearg.h: Document this.
39542         * tests/test-quotearg.c (result_strings, inputs, results_g)
39543         (flag_results, locale_results): Test it by adding a new string to
39544         each test group.
39545         (compare_strings): Test new string.
39546
39547 2008-02-13  Eric Blake  <ebb9@byu.net>
39548
39549         Avoid trigraph quoting in default output.
39550         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
39551         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
39552         unless explicitly requested.
39553         * tests/test-quotearg.c (flag_results, main): Add additional tests.
39554
39555 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
39556
39557         Don't rely on signed integer overflowing to negative value.
39558         * lib/getugroups.c (getugroups): Include <limits.h>.
39559         Instead, compare against INT_MAX, and increment only if the test passes.
39560
39561 2008-02-13  Jim Meyering  <meyering@redhat.com>
39562         and Eric Blake  <ebb9@byu.net>
39563
39564         Avoid shadowing warning and compile errors on Linux.
39565         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
39566         forwarding macros on Linux.
39567         (dcgettext): Define a stub, for Linux.
39568         (results_g, main): Avoid warnings.
39569
39570 2008-02-12  Eric Blake  <ebb9@byu.net>
39571
39572         Silence warning in last patch.
39573         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
39574
39575         Quotearg part 4: add tests, fix c-maybe colon quoting.
39576         * lib/quotearg.h: Improve documentation.
39577         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
39578         escapes when adding outer quotes.  When quoting trigraphs, use
39579         valid C notation.  When quoting NUL, omit extra characters if next
39580         character is not digit.  Alter prototype.
39581         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
39582         callers.
39583         * modules/quotearg-tests: New module.
39584         * tests/test-quotearg.c: New test.
39585
39586 2008-02-07  Eric Blake  <ebb9@byu.net>
39587
39588         Quotearg part 3: add flag to control outer quote elision.
39589         * lib/quotearg.h (c_maybe_quoting_style): New style.
39590         (enum quoting_flags): Better documentation of flags.
39591         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
39592         c-maybe style.
39593         (quotearg_buffer_restyled): Handle new flag to elide outer
39594         quotes.
39595
39596         Quotearg part 2: add flag that can control NUL elision.
39597         * lib/quotearg.h (set_quoting_flags): New prototype.
39598         * lib/quotearg.c (struct quoting_options): Add flag field.
39599         (set_quoting_flags): New function.
39600         (quotearg_buffer_restyled): Add flags parameter.
39601         (quotearg_alloc_mem): Set the flag if length cannot be returned.
39602         (quotearg_n_options): Set the flag, since length cannot be
39603         returned.
39604         (quoting_options_from_style): Default flags correctly.
39605
39606         Quotearg part 1: more wrappers, restore quotearg_char state.
39607         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
39608         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
39609         (quotearg_colon_mem): New wrappers.
39610         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
39611         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
39612         functions.
39613         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
39614         (quotearg_colon_mem): New functions.
39615
39616 2008-02-11  Bruno Haible  <bruno@clisp.org>
39617
39618         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
39619         library in the current directory: it does not work with parallel make.
39620         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39621
39622 2008-02-11  Bruno Haible  <bruno@clisp.org>
39623
39624         * .gitattributes: New file.
39625
39626 2008-02-11  Jim Meyering  <meyering@redhat.com>
39627
39628         useless-if-before-free: Fix reversed exit values.
39629         * build-aux/useless-if-before-free: Use correct values
39630         for EXIT_MATCH and EXIT_NO_MATCH.
39631
39632         * build-aux/useless-if-before-free: Close stdout carefully.
39633
39634 2008-02-10  Bruno Haible  <bruno@clisp.org>
39635
39636         New module 'git-merge-changelog'.
39637         * modules/git-merge-changelog: New file.
39638         * lib/git-merge-changelog.c: New file.
39639
39640 2008-02-10  Jim Meyering  <meyering@redhat.com>
39641
39642         useless-if-before-free: New option: --list (-l).
39643
39644         useless-if-before-free: Don't exit immediately upon open failure.
39645         * build-aux/useless-if-before-free: Exit 2 for errors.
39646         Upon failure to open a file, don't exit immediately.
39647         Rather, just warn and continue with any remaining files.
39648
39649 2008-02-10  Bruno Haible  <bruno@clisp.org>
39650
39651         New abstract list operation 'node_set_value'.
39652         * lib/gl_list.h (gl_list_node_set_value): New function.
39653         (struct gl_list_implementation): New field node_set_value.
39654         * lib/gl_list.c (gl_list_node_set_value): New function.
39655         * lib/gl_array_list.c (gl_array_node_set_value): New function.
39656         (gl_array_list_implementation): Update.
39657         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
39658         (gl_carray_list_implementation): Update.
39659         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
39660         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39661         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39662         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
39663         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39664         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39665         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39666         Update.
39667         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39668         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
39669         (gl_sublist_list_implementation): Update.
39670
39671 2008-02-10  Bruno Haible  <bruno@clisp.org>
39672
39673         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
39674         Needed when ELEMENT is #defined to 'some_type *'.
39675
39676 2008-02-10  Jim Meyering  <meyering@redhat.com>
39677
39678         New script and module: useless-if-before-free
39679         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
39680         * build-aux/useless-if-before-free: New file.
39681         * modules/useless-if-before-free: New file.
39682
39683         * build-aux/gitlog-to-changelog: Use committer date, not author date.
39684
39685         xstrtol_error: Fix typo.
39686         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
39687         s/exit_failure/exit_status/.
39688
39689 2008-02-09  Jim Meyering  <meyering@redhat.com>
39690
39691         New script and module: gitlog-to-changelog
39692         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
39693         * modules/gitlog-to-changelog: New file.
39694         * build-aux/gitlog-to-changelog: New file.
39695
39696 2008-02-08  Jim Meyering  <meyering@redhat.com>
39697
39698         Avoid two "parameter unused" warnings.
39699         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
39700         Mark "st" as used.
39701
39702         Use "git COMMAND", not "git-COMMAND".
39703         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
39704         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
39705         * build-aux/git-version-gen: Use "git status", not "git-status".
39706
39707 2008-02-07  Bruno Haible  <bruno@clisp.org>
39708
39709         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
39710         Avoids a crash on Windows Vista.
39711         Reported by Adam Strzelecki <ono@java.pl> via
39712         Simon Josefsson <simon@josefsson.org>.
39713
39714 2008-02-06  Bruno Haible  <bruno@clisp.org>
39715
39716         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
39717         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
39718         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
39719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
39720         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39721         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39722         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
39723         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
39724         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39725         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39726         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39727         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39728         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39729         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39730         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39731         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
39732         left-adjust flag.
39733         * tests/test-snprintf-posix.h (test_function): Likewise.
39734         * tests/test-sprintf-posix.h (test_function): Likewise.
39735         * tests/test-vasprintf-posix.c (test_function): Likewise.
39736         * doc/posix-functions/fprintf.texi: Update.
39737         * doc/posix-functions/printf.texi: Update.
39738         * doc/posix-functions/snprintf.texi: Update.
39739         * doc/posix-functions/sprintf.texi: Update.
39740         * doc/posix-functions/vfprintf.texi: Update.
39741         * doc/posix-functions/vprintf.texi: Update.
39742         * doc/posix-functions/vsnprintf.texi: Update.
39743         * doc/posix-functions/vsprintf.texi: Update.
39744         Reported by Peter Fales <psfales@alcatel-lucent.com>.
39745
39746 2008-02-06  Bruno Haible  <bruno@clisp.org>
39747
39748         Fix bug introduced on 2008-01-26.
39749         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
39750
39751 2008-02-06  Bruno Haible  <bruno@clisp.org>
39752
39753         Fix bug introduced on 2007-06-10.
39754         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
39755         !NEED_PRINTF_FLAG_ZERO.
39756
39757 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
39758
39759         getloadavg: use libperfstat on AIX5
39760         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
39761
39762 2008-02-03  Bruno Haible  <bruno@clisp.org>
39763
39764         * lib/diffseq.h: Add comments about required #includes.
39765         Reported by Michael Biggs <gnulib@doubleplum.net>.
39766
39767 2008-02-01  Bruno Haible  <bruno@clisp.org>
39768
39769         * users.txt: Add gnuit.
39770
39771 2008-01-31  Bruno Haible  <bruno@clisp.org>
39772
39773         * lib/md4.c (set_uint32): Mark as inline.
39774         * lib/md5.c (set_uint32): Likewise.
39775         * lib/sha1.c (set_uint32): Likewise.
39776         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
39777         * m4/md5.m4 (gl_MD5): Likewise.
39778         * m4/sha1.m4 (gl_SHA1): Likewise.
39779
39780 2008-01-31  Jim Meyering  <meyering@redhat.com>
39781
39782         Use "sizeof VAR", rather than a literal "4".
39783         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
39784         * lib/md4.c (md4_read_ctx): Likewise.
39785         * lib/sha1.c (sha1_read_ctx): Likewise.
39786
39787 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39788
39789         * tests/test-sha1.c: New file, based on test-md5.c.
39790
39791         * modules/crypto/sha1-tests: New file.
39792
39793 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39794
39795         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
39796
39797 2008-01-31  Jim Meyering  <meyering@redhat.com>
39798
39799         Prefer "sizeof v" over the equivalent "4".
39800         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
39801         * lib/md5.c (set_uint32): Likewise.
39802         * lib/sha1.c (set_uint32): Likewise.
39803
39804 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39805
39806         * lib/sha1.c (set_uint32): Mark function as static.
39807
39808 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39809
39810         md2: clarify comments to say that alignment is not required.
39811         * lib/md2.h: Remove warning about alignment in comment.
39812         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
39813         never been required.
39814
39815 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39816
39817         md4: adapt alignment constraint fix from sha1.
39818         * lib/md4.c (set_uint32): New function, from sha1.c
39819         (md4_read_ctx): Use it.
39820         (md4_finish_ctx): Doc fix.
39821         * lib/md4.h: Doc fix.
39822
39823 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39824
39825         md5: adapt alignment constraint fix from sha1.
39826         * lib/md5.c (set_uint32): New function, from sha1.c
39827         (md5_read_ctx): Use it.
39828         (md5_finish_ctx): Doc fix.
39829         * lib/md5.h: Doc fix.
39830
39831 2008-01-30  Peter Palfrader  <weasel@debian.org>
39832
39833         sha1: remove the result buffer alignment constraint
39834         * lib/sha1.c (set_uint32): New function.
39835         (sha1_read_ctx): Rewrite to remove the result buffer alignment
39836         constraint.
39837         (sha1_finish_ctx): Remove comment warning about alignment constraint.
39838         * lib/sha1.h: Likewise.
39839
39840 2008-01-30  Andreas Schwab  <schwab@suse.de>
39841             Bruno Haible  <bruno@clisp.org>
39842
39843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
39844         correct definition of LDBL_MIN_EXP.
39845
39846 2008-01-30  Karl Berry  <karl@gnu.org>
39847
39848         * config/srclist-update: try to preserve x bit on updates.
39849         * config/srclistvars.sh: update for karl.
39850
39851 2008-01-29  Jim Meyering  <meyering@redhat.com>
39852
39853         vasnprintf.c: Avoid warning about unused label
39854         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
39855         "overflow" label definition and associated code with the
39856         same cpp condition that guards the sole use of that label.
39857
39858 2008-01-26  Bruno Haible  <bruno@clisp.org>
39859
39860         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
39861         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
39862         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
39863         * lib/isnanl-nolibm.h (isnanl): Likewise.
39864         Reported by Paul Eggert <eggert@cs.ucla.edu>.
39865
39866 2008-01-26  Bruno Haible  <bruno@clisp.org>
39867
39868         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
39869         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
39870
39871 2008-01-26  Bruno Haible  <bruno@clisp.org>
39872
39873         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
39874         GCC >= 4.0 built-in.
39875         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
39876
39877 2008-01-26  Bruno Haible  <bruno@clisp.org>
39878
39879         Rename isnan, applicable to 'double' only, to isnand.
39880         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
39881         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
39882         (configure.ac): Update.
39883         (Include): Replace "isnan.h" with "isnand.h".
39884         * m4/isnand.m4: Renamed from m4/isnan.m4.
39885         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
39886         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
39887         instead of isnan.c.
39888         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
39889         instead of HAVE_ISNAN_IN_LIBC.
39890         (isnand): Renamed from isnan.
39891         * lib/isnand.c: New file.
39892         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
39893         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
39894         (Makefile.am): Update.
39895         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
39896         Include isnand.h instead of isnan.h.
39897         (main): Test isnand instead of isnan.
39898         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
39899         isnan-nolibm.
39900         * modules/frexp (Depends-on): Likewise.
39901         * modules/frexp-tests (Depends-on): Likewise.
39902         * modules/frexp-nolibm (Depends-on): Likewise.
39903         * modules/frexp-nolibm-tests (Depends-on): Likewise.
39904         * modules/isfinite (Depends-on): Likewise.
39905         * modules/round-tests (Depends-on): Likewise.
39906         * modules/signbit (Depends-on): Likewise.
39907         * modules/signbit-tests (Depends-on): Likewise.
39908         * modules/snprintf-posix (Depends-on): Likewise.
39909         * modules/sprintf-posix (Depends-on): Likewise.
39910         * modules/trunc-tests (Depends-on): Likewise.
39911         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39912         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39913         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39914         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39915         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39916         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39917         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39918         * modules/vasnprintf-posix (Depends-on): Likewise.
39919         * modules/vasprintf-posix (Depends-on): Likewise.
39920         * modules/vfprintf-posix (Depends-on): Likewise.
39921         * modules/vsnprintf-posix (Depends-on): Likewise.
39922         * modules/vsprintf-posix (Depends-on): Likewise.
39923         * lib/frexp.c: Include isnand.h instead of isnan.h.
39924         (ISNAN): Set to isnand instead of isnan.
39925         * lib/isfinite.c: Include isnand.h instead of isnan.h.
39926         (gl_isfinited): Use isnand instead of isnan.
39927         * lib/signbitd.c: Include isnand.h instead of isnan.h.
39928         (gl_signbitd): Use isnand instead of isnan.
39929         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
39930         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
39931         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
39932         (main): Use isnand instead of isnan.
39933         * tests/test-round1.c: Include isnand.h.
39934         (main): Use isnand instead of isnan.
39935         * tests/test-round2.c: Include isnand.h instead of isnan.h.
39936         (ISNAN): Set to isnand instead of isnan.
39937         * tests/test-trunc1.c: Include isnand.h.
39938         (main): Use isnand instead of isnan.
39939         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
39940         (equal): Use isnand instead of isnan.
39941         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
39942         isnand-nolibm.
39943         * NEWS: Mention the change.
39944
39945 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39946             Bruno Haible  <bruno@clisp.org>
39947
39948         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
39949         the GCC builtins for signbits are present and set
39950         REPLACE_SIGNBIT_USING_GCC if so.
39951         * lib/math.in.h (signbit): Define using GCC builtins if
39952         REPLACE_SIGNBIT_USING_GCC is set.
39953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
39954         REPLACE_SIGNBIT_USING_GCC.
39955         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
39956
39957 2008-01-25  Jim Meyering  <meyering@redhat.com>
39958
39959         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
39960         * lib/poll.c: Include <config.h>, not "config.h".
39961         * tests/test-getaddrinfo.c: Likewise.
39962
39963 2008-01-25  Simon Josefsson  <simon@josefsson.org>
39964
39965         * modules/sockets-tests: New file.
39966
39967 2008-01-24  Simon Josefsson  <simon@josefsson.org>
39968
39969         * modules/sockets: New module, can be used to call WSA_Startup and
39970         WSA_Cleanup when needed.
39971
39972         * lib/sockets.h, lib/sockets.c: New files.
39973
39974         * m4/sockets.m4: New file.
39975
39976         * tests/test-sockets.c: New file.
39977
39978 2008-01-19  Bruno Haible  <bruno@clisp.org>
39979
39980         * doc/posix-headers: Renamed from doc/headers.
39981         * doc/posix-functions: Renamed from doc/functions.
39982         * doc/gnulib.texi: Update.
39983
39984 2008-01-19  Bruno Haible  <bruno@clisp.org>
39985
39986         * doc/glibc-functions/strcasestr.texi: Include contents of
39987         doc/functions/strcasestr.texi, fixing the list of platforms.
39988         * doc/functions/strcasestr.texi: Remove file.
39989
39990 2008-01-19  Bruno Haible  <bruno@clisp.org>
39991
39992         * doc/glibc-functions/memmem.texi: Include contents of
39993         doc/functions/memmem.texi.
39994         * doc/functions/memmem.texi: Remove file.
39995
39996 2008-01-18  Bruno Haible  <bruno@clisp.org>
39997
39998         * doc/glibc-functions/*.texi: New files.
39999         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
40000         to use the new files.
40001
40002 2008-01-17  Bruno Haible  <bruno@clisp.org>
40003
40004         * tests/test-gethostname.c (main): Fix printf statement.
40005
40006 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40007
40008         * modules/gethostname-tests: New file.
40009
40010         * tests/test-gethostname.c: New file.
40011
40012 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40013
40014         * lib/gethostname.c: Include string.h unconditionally, strncpy is
40015         used by the UNAME case.  Reported by Bruno Haible
40016         <bruno@clisp.org>.
40017
40018 2008-01-17  Eric Blake  <ebb9@byu.net>
40019
40020         Convert c-strcasestr to be more efficient.
40021         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
40022         (Depends-on): Add c-strcase, remove malloca, strnlen.
40023         * tests/test-c-strcasestr.c (main): Enhance test.
40024         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
40025
40026 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40027
40028         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
40029         Use it in creating po/Makevars.
40030
40031 2008-01-15  Simon Josefsson  <simon@josefsson.org>
40032
40033         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
40034         Applications that requires it should initialize libgcrypt
40035         manually.
40036
40037 2008-01-16  Simon Josefsson  <simon@josefsson.org>
40038
40039         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
40040
40041 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
40042
40043         Fix problem with getdate on mingw32 reported by Simon Josefsson
40044         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
40045         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
40046         tzname", when deciding whether to declare tzname.
40047         * lib/strftime.c (tzname): Likewise.
40048
40049 2008-01-15  Bruno Haible  <bruno@clisp.org>
40050
40051         Work around a MacOS X 10.5 bug in frexpl().
40052         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
40053         * doc/functions/frexpl.texi: Document the bug.
40054         Reported by Elias Pipping <pipping@gentoo.org>.
40055
40056 2008-01-14  Eric Blake  <ebb9@byu.net>
40057
40058         Touch up previous patch.
40059         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
40060         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
40061
40062         Convert strcasestr module to use Two-Way algorithm.
40063         * modules/strcasestr-simple: New module, based on the old
40064         strcasestr, but with Two-Way rather than KMP.
40065         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
40066         * lib/string.in.h (rpl_strcasestr): Declare.
40067         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
40068         performance.
40069         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
40070         * modules/string (Makefile.am): Support strcasestr.
40071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40072         * modules/strcasestr-tests (Depends-on): Check for alarm.
40073         * tests/test-strcasestr.c: Augment test.
40074         * lib/str-two-way.h: Clean up stray macro.
40075         * NEWS: Document new module.
40076         * MODULES.html.sh (string handling): Likewise.
40077         * doc/functions/strcasestr.texi: New file.
40078         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
40079         here, since it is not a POSIX function.
40080
40081 2008-01-14  Colin Watson  <cjwatson@debian.org>
40082             Bruno Haible  <bruno@clisp.org>
40083
40084         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
40085         works fine; if not, set REPLACE_STRSIGNAL.
40086         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
40087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40088         REPLACE_STRSIGNAL.
40089         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
40090         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
40091         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
40092
40093 2008-01-14  Bruno Haible  <bruno@clisp.org>
40094
40095         * modules/strsignal (Include): Change to <string.h>.
40096
40097 2008-01-14  Colin Watson  <cjwatson@debian.org>
40098
40099         * modules/argp (Notice): Add a notice recommending to change
40100         XGETTEXT_OPTIONS.
40101         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
40102
40103 2008-01-13  Colin Watson  <cjwatson@debian.org>
40104
40105         * modules/strsignal-tests: New file.
40106         * tests/test-strsignal.c: New file.
40107
40108         * lib/strsignal.c: New file, from glibc with modifications.
40109         * lib/siglist.h: New file, from glibc with modifications.
40110         * lib/string.in.h (strsignal): New declaration.
40111         * m4/strsignal.m4: New file.
40112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40113         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
40114         * modules/strsignal: New file.
40115         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
40116         HAVE_DECL_STRSIGNAL.
40117
40118 2008-01-13  Bruno Haible  <bruno@clisp.org>
40119
40120         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
40121         locale encoding is not ASCII. Needed for OpenBSD 4.0.
40122         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40123         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40124
40125 2008-01-13  Bruno Haible  <bruno@clisp.org>
40126
40127         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
40128         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
40129         * lib/argp.h (__attribute__): Likewise.
40130         * lib/c-stack.c (__attribute__): Likewise.
40131         * lib/error.h (__attribute__): Likewise.
40132         * lib/fts.c (__attribute__): Likewise.
40133         * lib/openat.h (__attribute__): Likewise.
40134         * lib/stdio.in.h (__attribute__): Likewise.
40135         * lib/string.in.h (__attribute__): Likewise.
40136         * lib/utimens.c (__attribute__): Likewise.
40137         * lib/vasnprintf.h (__attribute__): Likewise.
40138         * lib/xalloc.h (__attribute__): Likewise.
40139         * lib/xprintf.h (__attribute__): Likewise.
40140         * lib/xstrtol.h (__attribute__): Likewise.
40141         * lib/xvasprintf.h (__attribute__): Likewise.
40142
40143 2008-01-12  Bruno Haible  <bruno@clisp.org>
40144
40145         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
40146         * doc/glibc-headers/a.out.texi: New file.
40147         * doc/glibc-headers/aliases.texi: New file.
40148         * doc/glibc-headers/alloca.texi: New file.
40149         * doc/glibc-headers/ar.texi: New file.
40150         * doc/glibc-headers/argp.texi: New file.
40151         * doc/glibc-headers/argz.texi: New file.
40152         * doc/glibc-headers/byteswap.texi: New file.
40153         * doc/glibc-headers/crypt.texi: New file.
40154         * doc/glibc-headers/endian.texi: New file.
40155         * doc/glibc-headers/envz.texi: New file.
40156         * doc/glibc-headers/err.texi: New file.
40157         * doc/glibc-headers/error.texi: New file.
40158         * doc/glibc-headers/execinfo.texi: New file.
40159         * doc/glibc-headers/fpu_control.texi: New file.
40160         * doc/glibc-headers/fstab.texi: New file.
40161         * doc/glibc-headers/fts.texi: New file.
40162         * doc/glibc-headers/getopt.texi: New file.
40163         * doc/glibc-headers/ieee754.texi: New file.
40164         * doc/glibc-headers/ifaddrs.texi: New file.
40165         * doc/glibc-headers/libintl.texi: New file.
40166         * doc/glibc-headers/mcheck.texi: New file.
40167         * doc/glibc-headers/mntent.texi: New file.
40168         * doc/glibc-headers/obstack.texi: New file.
40169         * doc/glibc-headers/paths.texi: New file.
40170         * doc/glibc-headers/printf.texi: New file.
40171         * doc/glibc-headers/pty.texi: New file.
40172         * doc/glibc-headers/resolv.texi: New file.
40173         * doc/glibc-headers/shadow.texi: New file.
40174         * doc/glibc-headers/sysexits.texi: New file.
40175         * doc/glibc-headers/ttyent.texi: New file.
40176
40177 2008-01-12  Jim Meyering  <meyering@redhat.com>
40178
40179         announce-gen: emit Gnulib's git-based version string.
40180         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
40181         New option --gnulib-version=V, where V is expected to be
40182         the output of running git describe in the gnulib directory.
40183         (get_tool_versions): Request feedback on xdelta.  I suspect it's
40184         not useful, and plan to stop publishing an xdelta file with each
40185         coreutils release.
40186
40187         * build-aux/announce-gen: Also check for lzma-compressed files.
40188
40189 2008-01-11  Bruno Haible  <bruno@clisp.org>
40190
40191         * tests/test-memmem.c (main): Increase maximum allowed time.
40192         * tests/test-strstr.c (main): Likewise.
40193
40194 2008-01-11  Bruno Haible  <bruno@clisp.org>
40195
40196         * doc/functions/memmem.texi: Add more precisions about platforms.
40197         * doc/functions/strstr.texi: Likewise.
40198
40199 2008-01-10  Eric Blake  <ebb9@byu.net>
40200
40201         * m4/strstr.m4: Delete cruft from copy-n-paste.
40202         Reported by Bruno Haible.
40203
40204 2008-01-10  Bruno Haible  <bruno@clisp.org>
40205
40206         Make c-strstr rely on strstr.
40207         * lib/c-strstr.c: Don't include str-kmp.h.
40208         (c_strstr): Define in terms of strstr.
40209         * modules/c-strstr (Files): Remove lib/str-kmp.h.
40210         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
40211
40212 2008-01-10  Bruno Haible  <bruno@clisp.org>
40213
40214         * doc/gnulib.texi (String Functions in C Locale): New section.
40215         * doc/c-ctype.texi: New file.
40216         * doc/c-strcase.texi: New file.
40217         * doc/c-strcaseeq.texi: New file.
40218         * doc/c-strcasestr.texi: New file.
40219         * doc/c-strstr.texi: New file.
40220         * doc/c-strtod.texi: New file.
40221         * doc/c-strtold.texi: New file.
40222
40223 2008-01-10  Eric Blake  <ebb9@byu.net>
40224
40225         * lib/relocatable.h: Fix a comment.
40226
40227 2008-01-10  Eric Blake  <ebb9@byu.net>
40228
40229         Share two-way algorithm.
40230         * lib/str-two-way.h: New file, merged from...
40231         * lib/memmem.c: ...here...
40232         * lib/strstr.c: ...and here.
40233         * modules/memmem (Files): Use it.
40234         * modules/strstr (Files): Likewise.
40235
40236         Avoid quadratic strstr implementations.
40237         * lib/strstr.c: New file.
40238         * m4/strstr.m4: Likewise.
40239         * modules/strstr: Likewise.
40240         * modules/strstr-tests: Likewise.
40241         * tests/test-strstr.c: Likewise.
40242         * lib/string.in.h (rpl_strstr): Declare.
40243         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
40244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
40245         * modules/string (Makefile.am): Likewise.
40246         * MODULES.html.sh (string handling): Mention new module.
40247         * doc/functions/strstr.texi (strstr): Document the bug.
40248
40249 2008-01-10  Bruno Haible  <bruno@clisp.org>
40250
40251         * lib/relocatable.h (relocate): State whether result is freshly
40252         allocated or not.
40253         * lib/relocatable.c (relocate): Return a freshly allocated string
40254         instead of a pointer to a privately held string.
40255         Reported by Sylvain Beucler <beuc@gnu.org>.
40256
40257 2008-01-10  Colin Watson  <cjwatson@debian.org>
40258
40259         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
40260         s/S_ISNLK/S_ISLNK/.
40261
40262 2008-01-09  Bruno Haible  <bruno@clisp.org>
40263
40264         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
40265         and other files.
40266         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
40267         if it's only a guess.
40268         * modules/memmem: Simplify by depending on memmem-simple.
40269
40270 2008-01-09  Bruno Haible  <bruno@clisp.org>
40271
40272         Work around OpenBSD 4.0 tdelete() bug.
40273         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
40274         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
40275         macros and don't redefine the enum values.
40276         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
40277         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
40278         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
40279
40280 2008-01-09  Bruno Haible  <bruno@clisp.org>
40281
40282         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
40283         (main): Don't perform the tests if setlocale did not install a UTF-8
40284         locale. Needed on OpenBSD 4.0.
40285         * modules/wcwidth-tests (Depends-on): Add localcharset.
40286
40287 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
40288
40289         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
40290         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
40291         * NEWS: announce this.
40292         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
40293
40294 2008-01-09  Simon Josefsson  <simon@josefsson.org>
40295         and Eric Blake  <ebb9@byu.net>
40296
40297         Add memmem-simple module.
40298         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
40299         (gl_FUNC_MEMMEM): Separate performance from presence checks.
40300         * modules/memmem-simple: New file.
40301         * modules/memmem (Description): Tweak.
40302         * MODULES.html.sh (string handling): Mention new module.
40303         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
40304         addressed by memmem-simple.
40305         * NEWS: Document the difference.
40306
40307 2008-01-09  Eric Blake  <ebb9@byu.net>
40308
40309         Give gcc some memmem optimization hints.
40310         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
40311         (strcasestr): Declare as pure.
40312         * modules/memmem (Maintainer): Claim my implementation.
40313
40314 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40315
40316         Support AIX 6.1 and higher.
40317         * build-aux/config.libpath: Likewise.
40318         * build-aux/config.rpath: Likewise.
40319
40320 2008-01-08  Jim Meyering  <meyering@redhat.com>
40321             Bruno Haible  <bruno@clisp.org>
40322
40323         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
40324         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
40325         Reported by Peter Fales in
40326         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
40327
40328 2008-01-08  Bruno Haible  <bruno@clisp.org>
40329
40330         * modules/unictype/category-of (Depends-on): Add
40331         unictype/category-none.
40332         * modules/unictype/category-and-tests (Depends-on): Add
40333         unictype/category-{L,N,Lu,Nd}.
40334         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
40335         * modules/unictype/category-or-tests (Depends-on): Add
40336         unictype/category-{L,N}.
40337         * modules/unictype/category-name-tests (Depends-on): Add
40338         unictype/category-{Z,Nl}.
40339         Reported by Simon Josefsson.
40340
40341 2008-01-08  Bruno Haible  <bruno@clisp.org>
40342
40343         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
40344         convention better.
40345         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
40346         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
40347         Reported by Peter Miller <millerp@canb.auug.org.au>.
40348
40349 2008-01-08  Eric Blake  <ebb9@byu.net>
40350
40351         Rewrite memmem to guarantee linear complexity without malloc.
40352         * lib/memmem.c (memmem): Use Two-Way rather than
40353         Knuth-Morris-Pratt, to allow O(1) space usage.
40354         (critical_factorization, two_way_short_needle)
40355         (two_way_long_needle): New functions.
40356         (knuth_morris_pratt): Delete.
40357         * modules/memmem (Depends-on): No longer need malloca or stdbool.
40358         Add stdint.
40359         * tests/test-memmem.c (main): Add tests for periodic needle and
40360         sublinear performance.
40361         * doc/functions/memmem.texi (memmem): Document other deficiencies
40362         in cygwin and older glibc.
40363
40364 2008-01-08  Bruno Haible  <bruno@clisp.org>
40365
40366         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
40367         augmentation.
40368
40369 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
40370
40371         Add a configure time option: --disable-acl.
40372         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
40373         AC_ARG_ENABLE(acl).
40374
40375 2008-01-06  Simon Josefsson  <simon@josefsson.org>
40376
40377         * tests/test-localename.c: Don't include obsolete "setenv.h".
40378
40379         * modules/localename-tests (Depends-on): Need unsetenv.
40380
40381 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40382
40383         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
40384
40385 2008-01-06  Colin Watson  <cjwatson@debian.org>
40386
40387         * users.txt: Add man-db.
40388
40389 2008-01-07  Bruno Haible  <bruno@clisp.org>
40390
40391         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
40392         previous section name.
40393
40394 2008-01-07  Bruno Haible  <bruno@clisp.org>
40395
40396         * lib/progname.c (set_program_name): Don't strip off a leading
40397         "lt-" prefix outside a .libs directory.
40398         Suggested by Paul Eggert.
40399
40400 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
40401             Bruno Haible  <bruno@clisp.org>
40402
40403         Improve memory cleanup in 'relocatable' module.
40404         * lib/relocatable.h (compute_curr_prefix): Change return type to
40405         'char *'.
40406         * lib/relocatable.c (compute_curr_prefix): Change return type to
40407         'char *'. Free curr_installdir after use.
40408         (relocate): Free curr_prefix_better after use.
40409         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
40410
40411 2008-01-01  Bruno Haible  <bruno@clisp.org>
40412
40413         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
40414         failure on older glibc systems.
40415         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40416
40417 2008-01-05  Eric Blake  <ebb9@byu.net>
40418
40419         Avoid quadratic system memmem.
40420         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
40421         Reported by Ralf Wildenhues.
40422
40423         Fix memmem test for mingw.
40424         * modules/memmem-tests (configure.ac): Check for alarm.
40425         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
40426         it.
40427         * doc/functions/memmem.texi: New file.
40428         * doc/gnulib.texi (Function Substitutes): Add memmem.
40429         Reported by Bruno Haible.
40430
40431 2008-01-04  Bruno Haible  <bruno@clisp.org>
40432
40433         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
40434         Require gl_HEADER_STRINGS_H_DEFAULTS, not
40435         gl_HEADER_STRING_H_DEFAULTS.
40436
40437 2008-01-04  Eric Blake  <ebb9@byu.net>
40438
40439         Shorten duration of memmem test.
40440         * tests/test-memmem.c (main): Use alarm to declare failure if test
40441         is taking too long.
40442         Reported by Ralf Wildenhues.
40443
40444 2007-12-21  Simon Josefsson  <simon@josefsson.org>
40445
40446         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
40447         string, needed by strerror.
40448
40449 2008-01-03  Colin Watson  <cjwatson@debian.org>
40450             Bruno Haible  <bruno@clisp.org>
40451
40452         * doc/gnulib-tool.texi (Localization): New section.
40453
40454 2008-01-02  Bruno Haible  <bruno@clisp.org>
40455
40456         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
40457         variables to 'unsigned char *' type.
40458         Reported by Paul Eggert.
40459
40460 2008-01-02  Jim Meyering  <jim@meyering.net>
40461
40462         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
40463
40464 2007-12-31  Jim Meyering  <jim@meyering.net>
40465
40466         Avoid use of private FTS type name.
40467         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
40468
40469 2007-12-30  Karl Berry  <karl@gnu.org>
40470
40471         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
40472         work around defect in Texinfo and/or the standalone Info browser.
40473
40474 2007-12-30  Bruno Haible  <bruno@clisp.org>
40475
40476         Unify 5 copies of the KMP code.
40477         * lib/str-kmp.h: New file.
40478         * lib/c-strcasestr.c: Include str-kmp.h.
40479         (knuth_morris_pratt): Remove function.
40480         (c_strcasestr): Update.
40481         * lib/c-strstr.c: Include str-kmp.h.
40482         (knuth_morris_pratt): Remove function.
40483         (c_strcasestr): Update.
40484         * lib/mbscasestr.c: Include str-kmp.h.
40485         (knuth_morris_pratt_unibyte): Remove function.
40486         * lib/mbsstr.c: Include str-kmp.h.
40487         (knuth_morris_pratt_unibyte): Remove function.
40488         * lib/strcasestr.c: Include str-kmp.h.
40489         (knuth_morris_pratt): Remove function.
40490         (strcasestr): Update.
40491         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
40492         * modules/c-strstr (Files): Likewise.
40493         * modules/mbscasestr (Files): Likewise.
40494         * modules/mbsstr (Files): Likewise.
40495         * modules/strcasestr (Files): Likewise.
40496         Suggested by Paul Eggert.
40497
40498 2007-12-30  Bruno Haible  <bruno@clisp.org>
40499
40500         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
40501         defined.
40502
40503 2007-12-30  Bruno Haible  <bruno@clisp.org>
40504
40505         * lib/xmalloca.h: Include xalloc.h.
40506         (xnmalloca): New macro.
40507
40508 2007-12-30  Bruno Haible  <bruno@clisp.org>
40509
40510         * lib/malloca.h (nmalloca): New macro.
40511         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
40512         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
40513         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
40514         knuth_morris_pratt_multibyte): Likewise.
40515         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
40516         knuth_morris_pratt_multibyte): Likewise.
40517         * lib/memmem.c (knuth_morris_pratt): Likewise.
40518         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
40519
40520 2007-12-25  Bruno Haible  <bruno@clisp.org>
40521
40522         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
40523         * lib/glob.c: Don't include openat.h.
40524         (link_exists2_p): Add back the code that deals with the
40525         !GLOB_ALTDIRFUNC case.
40526         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
40527         let it do the filename concatenation.
40528         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
40529         * modules/glob (Depends-on): Remove openat.
40530
40531 2007-12-31  Bruno Haible  <bruno@clisp.org>
40532
40533         * modules/dirfd (License): Change to LGPLv2+.
40534         Approved by Jim Meyering.
40535
40536 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40537
40538         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
40539         when multiplying M by sizeof (size_t).
40540
40541 2007-12-10  Martin Lambers  <marlam@marlam.de>
40542
40543         Override getpagesize on mingw.
40544         * lib/getpagesize.c: New file.
40545         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
40546         * modules/getpagesize (Files): Add lib/getpagesize.c.
40547         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
40548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40549         REPLACE_GETPAGESIZE.
40550         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
40551
40552 2007-12-25  Bruno Haible  <bruno@clisp.org>
40553
40554         * modules/localcharset (Notice): New field.
40555         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
40556         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
40557
40558 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40559             Bruno Haible  <bruno@clisp.org>
40560
40561         Avoid using the syntax symbol() in formatted documentation.
40562         * MODULES.html.sh (func_module): When replacing symbol() with a
40563         hyperlink, remove the parentheses. Show an error if some remain.
40564         Recognize and render the '...' syntax.
40565         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
40566         Rework. Add paragraph about GCC's inlining.
40567         * doc/alloca.texi: Likewise.
40568         * doc/error.texi: Remove parentheses from symbol reference.
40569         * doc/gnulib-intro.texi: Likewise.
40570         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
40571         * modules/fnmatch (Description): Reword to say "the ... function".
40572         * modules/full-read (Description): Likewise.
40573         * modules/full-write (Description): Likewise.
40574         * modules/safe-read (Description): Likewise.
40575         * modules/safe-write (Description): Likewise.
40576         * modules/strchrnul (Description): Likewise.
40577         * modules/trim (Description): Likewise.
40578         * modules/error (Description): Remove parentheses from symbol
40579         references.
40580         * modules/verror (Description): Likewise.
40581         Reported by Karl Berry.
40582
40583 2007-12-25  Bruno Haible  <bruno@clisp.org>
40584
40585         Fixup after 2007-10-16 commit.
40586         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
40587
40588 2007-12-24  Bruno Haible  <bruno@clisp.org>
40589
40590         Make --enable-relocatable work with DESTDIR.
40591         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
40592         to compute installdir from destprog.
40593         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
40594         also set the RELOC_DESTDIR variable.
40595         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40596
40597 2007-12-24  Bruno Haible  <bruno@clisp.org>
40598
40599         Fix link error due to xalloc_die().
40600         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
40601         of xreadlink.
40602         * lib/relocwrapper.c: Update comments.
40603         * build-aux/install-reloc: Remove xreadlink.c from file list.
40604         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
40605         xreadlink.c.
40606         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40607
40608 2007-12-24  Bruno Haible  <bruno@clisp.org>
40609
40610         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
40611         * lib/setenv.h: Remove file.
40612         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
40613         lib/setenv.h.
40614         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
40615         (Depends-on): Add stdlib.
40616         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
40617         gl_FUNC_UNSETENV.
40618         (Include): Replace setenv.h with <stdlib.h>.
40619         * modules/unsetenv: New file.
40620         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
40621         * lib/unsetenv.c: Include <stdlib.h> first.
40622         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
40623         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
40624         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
40625         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
40626         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
40627         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
40629         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40630         * doc/functions/unsetenv.texi: Update.
40631         * modules/xsetenv (Depends-on): Add unsetenv.
40632         * modules/getdate (Depends-on): Likewise.
40633         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
40634         * lib/xsetenv.c: Don't include setenv.h.
40635         * lib/getdate.y: Likewise.
40636         * lib/relocwrapper.c: Likewise.
40637         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
40638         (Depends-on): Add stdlib.
40639         * NEWS: Mention the changes.
40640         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40641
40642 2007-12-23  Bruno Haible  <bruno@clisp.org>
40643
40644         * lib/memmem.c (memmem): Use lowercase variable names. Tab
40645         indentation.
40646
40647 2007-12-23  Bruno Haible  <bruno@clisp.org>
40648
40649         * lib/c-strcasestr.c: Add more comments.
40650         * lib/c-strstr.c: Likewise.
40651         * lib/mbscasestr.c: Likewise.
40652         * lib/mbsstr.c: Likewise.
40653         * lib/strcasestr.c: Likewise.
40654         * lib/memmem.c: Likewise.
40655
40656 2007-12-23  Bruno Haible  <bruno@clisp.org>
40657
40658         * tests/test-memmem.c: Include <string.h> first.
40659
40660 2007-12-22  Bruno Haible  <bruno@clisp.org>
40661
40662         * gnulib-tool (func_create_testdir): Change $auxdir while generating
40663         the contents of $testsbase.
40664         Reported by Ralf Wildenhues.
40665
40666 2007-12-22  Bruno Haible  <bruno@clisp.org>
40667
40668         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
40669         two variables local_ldadd_before, local_ldadd_last.
40670
40671 2007-12-20  Eric Blake  <ebb9@byu.net>
40672
40673         Work around circular library issue when cross-compiling.
40674         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
40675         that progname.o does not need to pull in rpl_memcmp.
40676
40677 2007-12-19  Eric Blake  <ebb9@byu.net>
40678
40679         Fix memmem to avoid O(n^2) worst-case complexity.
40680         * lib/memmem.c (knuth_morris_pratt): New function.
40681         (memmem): Use it if first few naive iterations fail.
40682         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
40683         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
40684         * modules/memchr (License): Likewise.
40685         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
40686         malloca.
40687         * tests/test-memmem.c: Rewrite, borrowing ideas from
40688         test-mbsstr1.c; the old version wouldn't even compile!
40689         * modules/memmem-tests: New file.
40690         * lib/string.in.h (rpl_memmem): Add declaration.
40691         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
40692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
40693         REPLACE_MEMMEM.
40694
40695 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40696
40697         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
40698         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
40699         before any system include files, and undef after them all.  This
40700         should fix a problem on VMS reported by John E. Malmberg in
40701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
40702
40703 2007-12-17  Eric Blake  <ebb9@byu.net>
40704
40705         Revert addition of verify, for BSD/OS.
40706         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
40707         can't handle large files, for the sake of obsolete platforms.
40708         * modules/fseeko (Depends-on): Remove verify.
40709         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
40710         * doc/functions/ftello.texi (ftello): Likewise.
40711         * doc/functions/fgetpos.texi (fgetpos): Likewise.
40712         Reported by Larry Jones.
40713
40714 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
40715
40716         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
40717         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
40718
40719 2007-12-17  Jim Meyering  <meyering@redhat.com>
40720
40721         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
40722         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
40723         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
40724         * modules/getcwd (Depends-on): Add openat.
40725         Reported by Petr Salinger.
40726
40727 2007-12-17  Bruno Haible  <bruno@clisp.org>
40728
40729         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
40730         avoid a segmentation fault of the configure test on x86_64 systems.
40731
40732 2007-12-15  Jim Meyering  <meyering@redhat.com>
40733
40734         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
40735
40736 2007-12-13  Eric Blake  <ebb9@byu.net>
40737
40738         Another fseek test.
40739         * tests/test-fseek.c (main): Also test ungetc handling.
40740         * tests/test-fseeko.c (main): Likewise.
40741         * modules/fseeko (Depends-on): Add verify.
40742         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
40743         large.
40744         Reported by Larry Jones.
40745
40746         Fix fseeko on mingw.
40747         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
40748         seek.
40749
40750         Beef up fseek tests.
40751         * tests/test-fseek.c (main): Also test eof handling.
40752         * tests/test-fseeko.c (main): Likewise.
40753         Reported by Larry Jones.
40754
40755 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
40756
40757         Fix fseeko on BSD-based platforms.
40758         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
40759         successful seek.
40760
40761 2007-12-12  Eric Blake  <ebb9@byu.net>
40762
40763         Allow circular dependency of separate libtests.a
40764         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
40765         when use_libtests.
40766
40767 2007-12-11  Eric Blake  <ebb9@byu.net>
40768
40769         Fix bug with -0.0L in previous patch.
40770         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
40771         * tests/test-isnan.c (main): Also test on zeroes.
40772         * tests/test-isnanf.c (main): Likewise.
40773         * tests/test-isnanl.h (main): Likewise.
40774
40775         Detect pseudo-denormals on x86 even when cross-compiling.
40776         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
40777         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
40778         invalid bit patterns that happen to satisfy ==.
40779
40780         Avoid link failures with separate libtests.a.
40781         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
40782         last, to satisfy circular dependencies.
40783
40784 2007-12-11  Eric Blake  <ebb9@byu.net>
40785         and Bruno Haible  <bruno@clisp.org>
40786
40787         Fix OpenBSD 4.0 <float.h> handling of long double.
40788         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
40789         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
40790         * doc/headers/float.texi (float.h): Document OpenBSD bug.
40791
40792 2007-12-11  Jim Meyering  <meyering@redhat.com>
40793
40794         * users.txt: Add libvirt.
40795
40796         Support versions of autoconf prior to 2.59c.
40797         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
40798         if it is not already defined.
40799
40800 2007-12-09  Bruno Haible  <bruno@clisp.org>
40801
40802         Let 'gnulib-tool --import' collect sources needed for the tests in
40803         tests/ rather than in lib/.
40804         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
40805         argument. If true, add rules to generate libtests.a, and put libtests.a
40806         into $(LDADD). Consider source files in subdirectories and set
40807         uses_subdirs.
40808         (func_emit_initmacro_start, func_emit_initmacro_end,
40809         func_emit_initmacro_done): Pass all arguments explicitly.
40810         (func_import): Determine two module lists main_modules,
40811         testsrelated_modules. Determine use_libtests. Determine two variables
40812         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
40813         instead of just sed_transform_lib_file. Determine two variables
40814         main_files and testsrelated_files. Compute 'files' as the union of
40815         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
40816         func_add_or_update. In the generated gnulib-comp.m4, collect the
40817         object files for tests/ in different variables than those for lib/.
40818         Substitute LIBTESTS_LIBDEPS.
40819         (func_create_testdir): Combine the uses_subdirs results from
40820         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
40821
40822 2007-12-09  Bruno Haible  <bruno@clisp.org>
40823
40824         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
40825         the build-aux directory.
40826
40827 2007-12-09  Bruno Haible  <bruno@clisp.org>
40828
40829         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
40830         introduced on 2006-09-09.
40831
40832 2007-12-07  Jim Meyering  <meyering@redhat.com>
40833
40834         Let these macros work also with autoconf-2.59.
40835         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
40836         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
40837         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40838
40839 2007-12-06  Jim Meyering  <meyering@redhat.com>
40840
40841         Avoid a configure-time syntax error in gl_FUNC_ACL.
40842         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
40843         function in each branch, before testing the cache variable.
40844
40845 2007-12-04  Eric Blake  <ebb9@byu.net>
40846
40847         Make scripts executable.
40848         * build-aux/config.guess: Add execute permissions.
40849         * build-aux/config.sub: Likewise.
40850         * build-aux/gendocs.sh: Likewise.
40851
40852         Fix frexp on mingw.
40853         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
40854         cross-compiling.
40855         * doc/functions/frexp.texi (frexp): Document the bug.
40856
40857         Make cygwin fseeko check more reliable.
40858         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
40859         version numbers, rather than unrelated feature check.
40860         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
40861         * doc/functions/ftello.texi (ftello): Likewise.
40862         Reported by Bruno Haible.
40863
40864         * m4/strerror.m4: Bump version number.
40865
40866 2007-12-03  Bruno Haible  <bruno@clisp.org>
40867
40868         * doc/functions/mprotect.texi: Mention the mingw problem.
40869
40870 2007-12-03  Eric Blake  <ebb9@byu.net>
40871
40872         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
40873         REPLACE_STRERROR is initialized before this macro.
40874
40875 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40876
40877         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
40878         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
40879         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
40880         put -lsec in even for programs other than 'ls'.  This fixes a problem
40881         for gettext reported by Bruno Haible in
40882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
40883         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
40884         Add support for Solaris 10.  This isn't efficient, but should get the
40885         job done for now.
40886
40887 2007-12-03  James Youngman  <jay@gnu.org>
40888
40889         * doc/regexprops-generic.texi: change "an close-group" to "a
40890         close-group" and "illegal" to "not allowed".
40891
40892 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40893
40894         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
40895         pr_byname.h. Needed for the rare case when the maintainer has done
40896         "make maintainer-clean" in the source directory and then attempts a
40897         build outside the source directory.
40898         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
40899         scripts_byname.h.
40900
40901 2007-12-02  Martin Lambers <marlam@marlam.de>
40902             Bruno Haible  <bruno@clisp.org>
40903
40904         * lib/getpagesize.h: Remove file.
40905         * lib/unistd.in.h: Include declaration of getpagesize here.
40906         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
40907         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
40908         HAVE_SYS_PARAM_H.
40909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
40910         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40911         * modules/getpagesize (Files): Remove lib/getpagesize.h.
40912         (Depends-on): Add unistd.
40913         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40914         (Include): Use <unistd.h> instead of getpagesize.h.
40915         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
40916         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40917         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
40918         gl_GETPAGESIZE invocation, already handled by module dependency.
40919         * lib/pagealign_alloc.c: Don't include getpagesize.h.
40920
40921 2007-12-02  Bruno Haible  <bruno@clisp.org>
40922
40923         * modules/strings-tests: New file.
40924         * tests/test-strings.c: New file.
40925
40926         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
40927         * lib/strings.in.h: New file.
40928         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
40929         * m4/strings_h.m4: New file.
40930         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
40931         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
40932         * modules/strings: New file.
40933         * modules/string (Makefile.am): Update.
40934         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
40935         Reported by Karl Berry.
40936
40937 2007-12-01  Eric Blake  <ebb9@byu.net>
40938
40939         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
40940         accomodate fix in cygwin 1.5.25.
40941
40942 2007-12-01  Jim Meyering  <meyering@redhat.com>
40943
40944         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
40945         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
40946         that would inhibit utf8-optimization of a regexp containing line-
40947         or buffer-anchors, e.g., `^', `$'.
40948
40949 2007-11-30  Bruno Haible  <bruno@clisp.org>
40950
40951         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
40952         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
40953         glthread_recursive_lock_init.
40954         * lib/lock.c (glthread_recursive_lock_init)
40955         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
40956         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40957
40958 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
40959
40960         New function qset_acl, like set_acl but with syscall semantics.
40961         * lib/acl.h (qset_acl): New decl.
40962         * lib/acl.c (qset_acl): New function.
40963         (set_acl): Use new function.  Use more-consistent diagnostics.
40964
40965 2007-11-28  Jim Meyering  <meyering@redhat.com>
40966
40967         * modules/physmem (License): Change from GPL to LGPLv2+.
40968
40969 2007-11-26  Bruno Haible  <bruno@clisp.org>
40970
40971         * lib/vasnprintf.c (decode_long_double): Don't abort if the
40972         'long double' type has excess precision.
40973         Reported by Jim Meyering in
40974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
40975
40976 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40977
40978         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
40979         Sync from <http://gnu.org/licenses>.
40980         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
40981         with license text from same location.
40982         * doc/maintain.texi, doc/standards.texi:  Sync from
40983         <http://savannah.gnu.org/projects/gnustandards>.
40984
40985 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
40986         and Jim Meyering  <meyering@redhat.com>
40987
40988         Adjust getdate' grammar to accept a slightly more regular language.
40989         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
40990         Before, the former was rejected.
40991         * lib/getdate.y (digits_to_date_time): New function, factored
40992         out of ...
40993         (number): ...here.  Just call digits_to_date_time.
40994         (hybrid): New non-terminal to handle an <unsigned number,
40995         signed relative offset> sequence consistently.
40996
40997 2007-11-18  Jim Meyering  <meyering@redhat.com>
40998
40999         Pull my changes from coreutils:
41000         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
41001         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
41002         use of $gnulib_tool_option_extras, so that it's separated from the
41003         preceding argument.
41004
41005         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
41006         * build-aux/bootstrap (cp_mark_as_generated): Create any required
41007         parent destination directories before copying a file into place.
41008
41009 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41010
41011         bootstrap: work also with 4-argument variant of AC_INIT
41012         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
41013
41014 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41015
41016         Port test-getaddrinfo to Solaris.
41017         Problem reported by Bruno Haible in
41018         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
41019         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
41020         explanation of setting 'hints'.
41021         Don't reject an implementation merely because it returns EAI_SERVICE.
41022         (EAI_SERVICE): Define to 0 if not defined.
41023
41024 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41025
41026         The license of gnu-make and posix-shell is now "GPLed build tool".
41027         * modules/gnu-make (License): Likewise.
41028         * modules/posix-shell (License): Likewise.
41029
41030         New module posix-shell, for determining a POSIX shell
41031         or perhaps something that is close enough to a POSIX shell.
41032         * m4/posix-shell.m4: New file.
41033         * modules/posix-shell: New file.
41034
41035         * MODULES.html.sh: Mention new module.
41036
41037         New module gnu-make, for determining whether we're using GNU Make.
41038         * m4/gnu-make.m4: New file.
41039         * modules/gnu-make: New file.
41040         * MODULES.html.sh: Mention new module.
41041
41042 2007-11-14  Jim Meyering  <meyering@redhat.com>
41043
41044         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
41045         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
41046         use this macro to create a function _definition_.
41047         Remove useless "#undef ARGMATCH_DIE".
41048
41049 2007-11-14  Bruno Haible  <bruno@clisp.org>
41050
41051         * lib/config.charset: Update for OpenBSD 4.1.
41052         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
41053
41054 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
41055
41056         Document 64-bit #if problems in stdint.texi.
41057         * doc/headers/stdint.texi (stdint.h): Mention problems with
41058         64-bit-#if, and how to work around them.
41059
41060         Don't insist on 'long long int' support in the preprocessor.  It
41061         breaks too many things.  For example, PRIdMAX still uses a 'long
41062         long int' format with the latest Sun compiler, even though
41063         HAVE_LONG_LONG_INT isn't defined due to that compiler's
41064         preprocessor problem.  This causes the latest coreutils to dump
41065         core on Solaris 10 sparc with the Sun C compiler.
41066         Instead, fix the 2007-10-16 problem in a different way, by evaluating
41067         the troublesome expressions at configure-time, not at #if-time.
41068         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
41069         preprocessor.
41070         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
41071         compile-time C checks, done at 'configure'-time.
41072         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
41073         * modules/inttypes (Makefile): Substitute the new symbols that
41074         gl_INTTYPES_H now generates.
41075         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
41076
41077 2007-11-12  Bruno Haible  <bruno@clisp.org>
41078
41079         Tests for Unicode character classification functions.
41080
41081         * modules/unictype/bidicategory-byname-tests: New file.
41082         * modules/unictype/bidicategory-name-tests: New file.
41083         * modules/unictype/bidicategory-of-tests: New file.
41084         * modules/unictype/bidicategory-test-tests: New file.
41085         * modules/unictype/block-list-tests: New file.
41086         * modules/unictype/block-of-tests: New file.
41087         * modules/unictype/block-test-tests: New file.
41088         * modules/unictype/category-C-tests: New file.
41089         * modules/unictype/category-Cc-tests: New file.
41090         * modules/unictype/category-Cf-tests: New file.
41091         * modules/unictype/category-Cn-tests: New file.
41092         * modules/unictype/category-Co-tests: New file.
41093         * modules/unictype/category-Cs-tests: New file.
41094         * modules/unictype/category-L-tests: New file.
41095         * modules/unictype/category-Ll-tests: New file.
41096         * modules/unictype/category-Lm-tests: New file.
41097         * modules/unictype/category-Lo-tests: New file.
41098         * modules/unictype/category-Lt-tests: New file.
41099         * modules/unictype/category-Lu-tests: New file.
41100         * modules/unictype/category-M-tests: New file.
41101         * modules/unictype/category-Mc-tests: New file.
41102         * modules/unictype/category-Me-tests: New file.
41103         * modules/unictype/category-Mn-tests: New file.
41104         * modules/unictype/category-N-tests: New file.
41105         * modules/unictype/category-Nd-tests: New file.
41106         * modules/unictype/category-Nl-tests: New file.
41107         * modules/unictype/category-No-tests: New file.
41108         * modules/unictype/category-P-tests: New file.
41109         * modules/unictype/category-Pc-tests: New file.
41110         * modules/unictype/category-Pd-tests: New file.
41111         * modules/unictype/category-Pe-tests: New file.
41112         * modules/unictype/category-Pf-tests: New file.
41113         * modules/unictype/category-Pi-tests: New file.
41114         * modules/unictype/category-Po-tests: New file.
41115         * modules/unictype/category-Ps-tests: New file.
41116         * modules/unictype/category-S-tests: New file.
41117         * modules/unictype/category-Sc-tests: New file.
41118         * modules/unictype/category-Sk-tests: New file.
41119         * modules/unictype/category-Sm-tests: New file.
41120         * modules/unictype/category-So-tests: New file.
41121         * modules/unictype/category-Z-tests: New file.
41122         * modules/unictype/category-Zl-tests: New file.
41123         * modules/unictype/category-Zp-tests: New file.
41124         * modules/unictype/category-Zs-tests: New file.
41125         * modules/unictype/category-and-not-tests: New file.
41126         * modules/unictype/category-and-tests: New file.
41127         * modules/unictype/category-byname-tests: New file.
41128         * modules/unictype/category-name-tests: New file.
41129         * modules/unictype/category-none-tests: New file.
41130         * modules/unictype/category-of-tests: New file.
41131         * modules/unictype/category-or-tests: New file.
41132         * modules/unictype/category-test-withtable-tests: New file.
41133         * modules/unictype/combining-class-tests: New file.
41134         * modules/unictype/ctype-alnum-tests: New file.
41135         * modules/unictype/ctype-alpha-tests: New file.
41136         * modules/unictype/ctype-blank-tests: New file.
41137         * modules/unictype/ctype-cntrl-tests: New file.
41138         * modules/unictype/ctype-digit-tests: New file.
41139         * modules/unictype/ctype-graph-tests: New file.
41140         * modules/unictype/ctype-lower-tests: New file.
41141         * modules/unictype/ctype-print-tests: New file.
41142         * modules/unictype/ctype-punct-tests: New file.
41143         * modules/unictype/ctype-space-tests: New file.
41144         * modules/unictype/ctype-upper-tests: New file.
41145         * modules/unictype/ctype-xdigit-tests: New file.
41146         * modules/unictype/decimal-digit-tests: New file.
41147         * modules/unictype/digit-tests: New file.
41148         * modules/unictype/mirror-tests: New file.
41149         * modules/unictype/numeric-tests: New file.
41150         * modules/unictype/property-alphabetic-tests: New file.
41151         * modules/unictype/property-ascii-hex-digit-tests: New file.
41152         * modules/unictype/property-bidi-arabic-digit-tests: New file.
41153         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
41154         * modules/unictype/property-bidi-block-separator-tests: New file.
41155         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
41156         * modules/unictype/property-bidi-common-separator-tests: New file.
41157         * modules/unictype/property-bidi-control-tests: New file.
41158         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
41159         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
41160         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
41161         * modules/unictype/property-bidi-european-digit-tests: New file.
41162         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
41163         * modules/unictype/property-bidi-left-to-right-tests: New file.
41164         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
41165         * modules/unictype/property-bidi-other-neutral-tests: New file.
41166         * modules/unictype/property-bidi-pdf-tests: New file.
41167         * modules/unictype/property-bidi-segment-separator-tests: New file.
41168         * modules/unictype/property-bidi-whitespace-tests: New file.
41169         * modules/unictype/property-byname-tests: New file.
41170         * modules/unictype/property-combining-tests: New file.
41171         * modules/unictype/property-composite-tests: New file.
41172         * modules/unictype/property-currency-symbol-tests: New file.
41173         * modules/unictype/property-dash-tests: New file.
41174         * modules/unictype/property-decimal-digit-tests: New file.
41175         * modules/unictype/property-default-ignorable-code-point-tests: New file.
41176         * modules/unictype/property-deprecated-tests: New file.
41177         * modules/unictype/property-diacritic-tests: New file.
41178         * modules/unictype/property-extender-tests: New file.
41179         * modules/unictype/property-format-control-tests: New file.
41180         * modules/unictype/property-grapheme-base-tests: New file.
41181         * modules/unictype/property-grapheme-extend-tests: New file.
41182         * modules/unictype/property-grapheme-link-tests: New file.
41183         * modules/unictype/property-hex-digit-tests: New file.
41184         * modules/unictype/property-hyphen-tests: New file.
41185         * modules/unictype/property-id-continue-tests: New file.
41186         * modules/unictype/property-id-start-tests: New file.
41187         * modules/unictype/property-ideographic-tests: New file.
41188         * modules/unictype/property-ids-binary-operator-tests: New file.
41189         * modules/unictype/property-ids-trinary-operator-tests: New file.
41190         * modules/unictype/property-ignorable-control-tests: New file.
41191         * modules/unictype/property-iso-control-tests: New file.
41192         * modules/unictype/property-join-control-tests: New file.
41193         * modules/unictype/property-left-of-pair-tests: New file.
41194         * modules/unictype/property-line-separator-tests: New file.
41195         * modules/unictype/property-logical-order-exception-tests: New file.
41196         * modules/unictype/property-lowercase-tests: New file.
41197         * modules/unictype/property-math-tests: New file.
41198         * modules/unictype/property-non-break-tests: New file.
41199         * modules/unictype/property-not-a-character-tests: New file.
41200         * modules/unictype/property-numeric-tests: New file.
41201         * modules/unictype/property-other-alphabetic-tests: New file.
41202         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
41203         * modules/unictype/property-other-grapheme-extend-tests: New file.
41204         * modules/unictype/property-other-id-continue-tests: New file.
41205         * modules/unictype/property-other-id-start-tests: New file.
41206         * modules/unictype/property-other-lowercase-tests: New file.
41207         * modules/unictype/property-other-math-tests: New file.
41208         * modules/unictype/property-other-uppercase-tests: New file.
41209         * modules/unictype/property-paired-punctuation-tests: New file.
41210         * modules/unictype/property-paragraph-separator-tests: New file.
41211         * modules/unictype/property-pattern-syntax-tests: New file.
41212         * modules/unictype/property-pattern-white-space-tests: New file.
41213         * modules/unictype/property-private-use-tests: New file.
41214         * modules/unictype/property-punctuation-tests: New file.
41215         * modules/unictype/property-quotation-mark-tests: New file.
41216         * modules/unictype/property-radical-tests: New file.
41217         * modules/unictype/property-sentence-terminal-tests: New file.
41218         * modules/unictype/property-soft-dotted-tests: New file.
41219         * modules/unictype/property-space-tests: New file.
41220         * modules/unictype/property-terminal-punctuation-tests: New file.
41221         * modules/unictype/property-test-tests: New file.
41222         * modules/unictype/property-titlecase-tests: New file.
41223         * modules/unictype/property-unassigned-code-value-tests: New file.
41224         * modules/unictype/property-unified-ideograph-tests: New file.
41225         * modules/unictype/property-uppercase-tests: New file.
41226         * modules/unictype/property-variation-selector-tests: New file.
41227         * modules/unictype/property-white-space-tests: New file.
41228         * modules/unictype/property-xid-continue-tests: New file.
41229         * modules/unictype/property-xid-start-tests: New file.
41230         * modules/unictype/property-zero-width-tests: New file.
41231         * modules/unictype/scripts-tests: New file.
41232         * modules/unictype/syntax-c-ident-tests: New file.
41233         * modules/unictype/syntax-c-whitespace-tests: New file.
41234         * modules/unictype/syntax-java-ident-tests: New file.
41235         * modules/unictype/syntax-java-whitespace-tests: New file.
41236         * tests/unictype/test-bidi_byname.c: New file.
41237         * tests/unictype/test-bidi_name.c: New file.
41238         * tests/unictype/test-bidi_of.c: New file.
41239         * tests/unictype/test-bidi_test.c: New file.
41240         * tests/unictype/test-block_list.c: New file.
41241         * tests/unictype/test-block_of.c: New file.
41242         * tests/unictype/test-block_test.c: New file.
41243         * tests/unictype/test-categ_and.c: New file.
41244         * tests/unictype/test-categ_and_not.c: New file.
41245         * tests/unictype/test-categ_byname.c: New file.
41246         * tests/unictype/test-categ_name.c: New file.
41247         * tests/unictype/test-categ_none.c: New file.
41248         * tests/unictype/test-categ_of.c: New file.
41249         * tests/unictype/test-categ_or.c: New file.
41250         * tests/unictype/test-categ_test_withtable.c: New file.
41251         * tests/unictype/test-combining.c: New file.
41252         * tests/unictype/test-decdigit.c: New file.
41253         * tests/unictype/test-digit.c: New file.
41254         * tests/unictype/test-mirror.c: New file.
41255         * tests/unictype/test-numeric.c: New file.
41256         * tests/unictype/test-pr_byname.c: New file.
41257         * tests/unictype/test-pr_test.c: New file.
41258         * tests/unictype/test-predicate-part1.h: New file.
41259         * tests/unictype/test-predicate-part2.h: New file.
41260         * tests/unictype/test-scripts.c: New file.
41261         * tests/unictype/test-sy_c_ident.c: New file.
41262         * tests/unictype/test-sy_java_ident.c: New file.
41263
41264         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
41265         for Unicode 5.0.0.
41266         * tests/unictype/test-categ_Cc.c: Likewise.
41267         * tests/unictype/test-categ_Cf.c: Likewise.
41268         * tests/unictype/test-categ_Cn.c: Likewise.
41269         * tests/unictype/test-categ_Co.c: Likewise.
41270         * tests/unictype/test-categ_Cs.c: Likewise.
41271         * tests/unictype/test-categ_L.c: Likewise.
41272         * tests/unictype/test-categ_Ll.c: Likewise.
41273         * tests/unictype/test-categ_Lm.c: Likewise.
41274         * tests/unictype/test-categ_Lo.c: Likewise.
41275         * tests/unictype/test-categ_Lt.c: Likewise.
41276         * tests/unictype/test-categ_Lu.c: Likewise.
41277         * tests/unictype/test-categ_M.c: Likewise.
41278         * tests/unictype/test-categ_Mc.c: Likewise.
41279         * tests/unictype/test-categ_Me.c: Likewise.
41280         * tests/unictype/test-categ_Mn.c: Likewise.
41281         * tests/unictype/test-categ_N.c: Likewise.
41282         * tests/unictype/test-categ_Nd.c: Likewise.
41283         * tests/unictype/test-categ_Nl.c: Likewise.
41284         * tests/unictype/test-categ_No.c: Likewise.
41285         * tests/unictype/test-categ_P.c: Likewise.
41286         * tests/unictype/test-categ_Pc.c: Likewise.
41287         * tests/unictype/test-categ_Pd.c: Likewise.
41288         * tests/unictype/test-categ_Pe.c: Likewise.
41289         * tests/unictype/test-categ_Pf.c: Likewise.
41290         * tests/unictype/test-categ_Pi.c: Likewise.
41291         * tests/unictype/test-categ_Po.c: Likewise.
41292         * tests/unictype/test-categ_Ps.c: Likewise.
41293         * tests/unictype/test-categ_S.c: Likewise.
41294         * tests/unictype/test-categ_Sc.c: Likewise.
41295         * tests/unictype/test-categ_Sk.c: Likewise.
41296         * tests/unictype/test-categ_Sm.c: Likewise.
41297         * tests/unictype/test-categ_So.c: Likewise.
41298         * tests/unictype/test-categ_Z.c: Likewise.
41299         * tests/unictype/test-categ_Zl.c: Likewise.
41300         * tests/unictype/test-categ_Zp.c: Likewise.
41301         * tests/unictype/test-categ_Zs.c: Likewise.
41302         * tests/unictype/test-ctype_alnum.c: Likewise.
41303         * tests/unictype/test-ctype_alpha.c: Likewise.
41304         * tests/unictype/test-ctype_blank.c: Likewise.
41305         * tests/unictype/test-ctype_cntrl.c: Likewise.
41306         * tests/unictype/test-ctype_digit.c: Likewise.
41307         * tests/unictype/test-ctype_graph.c: Likewise.
41308         * tests/unictype/test-ctype_lower.c: Likewise.
41309         * tests/unictype/test-ctype_print.c: Likewise.
41310         * tests/unictype/test-ctype_punct.c: Likewise.
41311         * tests/unictype/test-ctype_space.c: Likewise.
41312         * tests/unictype/test-ctype_upper.c: Likewise.
41313         * tests/unictype/test-ctype_xdigit.c: Likewise.
41314         * tests/unictype/test-decdigit.h: Likewise.
41315         * tests/unictype/test-digit.h: Likewise.
41316         * tests/unictype/test-numeric.h: Likewise.
41317         * tests/unictype/test-pr_alphabetic.c: Likewise.
41318         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
41319         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41320         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
41321         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
41322         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
41323         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
41324         * tests/unictype/test-pr_bidi_control.c: Likewise.
41325         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
41326         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
41327         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41328         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
41329         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41330         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41331         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41332         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41333         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
41334         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
41335         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
41336         * tests/unictype/test-pr_combining.c: Likewise.
41337         * tests/unictype/test-pr_composite.c: Likewise.
41338         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41339         * tests/unictype/test-pr_dash.c: Likewise.
41340         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41341         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
41342         * tests/unictype/test-pr_deprecated.c: Likewise.
41343         * tests/unictype/test-pr_diacritic.c: Likewise.
41344         * tests/unictype/test-pr_extender.c: Likewise.
41345         * tests/unictype/test-pr_format_control.c: Likewise.
41346         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41347         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41348         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41349         * tests/unictype/test-pr_hex_digit.c: Likewise.
41350         * tests/unictype/test-pr_hyphen.c: Likewise.
41351         * tests/unictype/test-pr_id_continue.c: Likewise.
41352         * tests/unictype/test-pr_id_start.c: Likewise.
41353         * tests/unictype/test-pr_ideographic.c: Likewise.
41354         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
41355         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
41356         * tests/unictype/test-pr_ignorable_control.c: Likewise.
41357         * tests/unictype/test-pr_iso_control.c: Likewise.
41358         * tests/unictype/test-pr_join_control.c: Likewise.
41359         * tests/unictype/test-pr_left_of_pair.c: Likewise.
41360         * tests/unictype/test-pr_line_separator.c: Likewise.
41361         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
41362         * tests/unictype/test-pr_lowercase.c: Likewise.
41363         * tests/unictype/test-pr_math.c: Likewise.
41364         * tests/unictype/test-pr_non_break.c: Likewise.
41365         * tests/unictype/test-pr_not_a_character.c: Likewise.
41366         * tests/unictype/test-pr_numeric.c: Likewise.
41367         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41368         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
41369         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
41370         * tests/unictype/test-pr_other_id_continue.c: Likewise.
41371         * tests/unictype/test-pr_other_id_start.c: Likewise.
41372         * tests/unictype/test-pr_other_lowercase.c: Likewise.
41373         * tests/unictype/test-pr_other_math.c: Likewise.
41374         * tests/unictype/test-pr_other_uppercase.c: Likewise.
41375         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
41376         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
41377         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
41378         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
41379         * tests/unictype/test-pr_private_use.c: Likewise.
41380         * tests/unictype/test-pr_punctuation.c: Likewise.
41381         * tests/unictype/test-pr_quotation_mark.c: Likewise.
41382         * tests/unictype/test-pr_radical.c: Likewise.
41383         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41384         * tests/unictype/test-pr_soft_dotted.c: Likewise.
41385         * tests/unictype/test-pr_space.c: Likewise.
41386         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41387         * tests/unictype/test-pr_titlecase.c: Likewise.
41388         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41389         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41390         * tests/unictype/test-pr_uppercase.c: Likewise.
41391         * tests/unictype/test-pr_variation_selector.c: Likewise.
41392         * tests/unictype/test-pr_white_space.c: Likewise.
41393         * tests/unictype/test-pr_xid_continue.c: Likewise.
41394         * tests/unictype/test-pr_xid_start.c: Likewise.
41395         * tests/unictype/test-pr_zero_width.c: Likewise.
41396         * tests/unictype/test-sy_c_whitespace.c: Likewise.
41397         * tests/unictype/test-sy_java_whitespace.c: Likewise.
41398
41399 2007-11-12  Bruno Haible  <bruno@clisp.org>
41400
41401         Unicode character classification functions.
41402         * lib/unictype.h: New file.
41403         * modules/unictype/base: New file.
41404         * modules/unictype/category-L: New file.
41405         * modules/unictype/category-Lu: New file.
41406         * modules/unictype/category-Ll: New file.
41407         * modules/unictype/category-Lt: New file.
41408         * modules/unictype/category-Lm: New file.
41409         * modules/unictype/category-Lo: New file.
41410         * modules/unictype/category-M: New file.
41411         * modules/unictype/category-Mn: New file.
41412         * modules/unictype/category-Mc: New file.
41413         * modules/unictype/category-Me: New file.
41414         * modules/unictype/category-N: New file.
41415         * modules/unictype/category-Nd: New file.
41416         * modules/unictype/category-Nl: New file.
41417         * modules/unictype/category-No: New file.
41418         * modules/unictype/category-P: New file.
41419         * modules/unictype/category-Pc: New file.
41420         * modules/unictype/category-Pd: New file.
41421         * modules/unictype/category-Ps: New file.
41422         * modules/unictype/category-Pe: New file.
41423         * modules/unictype/category-Pi: New file.
41424         * modules/unictype/category-Pf: New file.
41425         * modules/unictype/category-Po: New file.
41426         * modules/unictype/category-S: New file.
41427         * modules/unictype/category-Sm: New file.
41428         * modules/unictype/category-Sc: New file.
41429         * modules/unictype/category-Sk: New file.
41430         * modules/unictype/category-So: New file.
41431         * modules/unictype/category-Z: New file.
41432         * modules/unictype/category-Zs: New file.
41433         * modules/unictype/category-Zl: New file.
41434         * modules/unictype/category-Zp: New file.
41435         * modules/unictype/category-C: New file.
41436         * modules/unictype/category-Cc: New file.
41437         * modules/unictype/category-Cf: New file.
41438         * modules/unictype/category-Cs: New file.
41439         * modules/unictype/category-Co: New file.
41440         * modules/unictype/category-Cn: New file.
41441         * modules/unictype/category-or: New file.
41442         * modules/unictype/category-of: New file.
41443         * modules/unictype/category-test: New file.
41444         * modules/unictype/category-test-withtable: New file.
41445         * modules/unictype/category-byname: New file.
41446         * modules/unictype/category-none: New file.
41447         * modules/unictype/category-and: New file.
41448         * modules/unictype/category-and-not: New file.
41449         * modules/unictype/category-name: New file.
41450         * modules/unictype/combining-class: New file.
41451         * modules/unictype/category-all: New file.
41452         * modules/unictype/bidicategory-all: New file.
41453         * modules/unictype/bidicategory-byname: New file.
41454         * modules/unictype/bidicategory-name: New file.
41455         * modules/unictype/bidicategory-of: New file.
41456         * modules/unictype/bidicategory-test: New file.
41457         * modules/unictype/decimal-digit: New file.
41458         * modules/unictype/digit: New file.
41459         * modules/unictype/numeric: New file.
41460         * modules/unictype/mirror: New file.
41461         * modules/unictype/property-white-space: New file.
41462         * modules/unictype/property-alphabetic: New file.
41463         * modules/unictype/property-other-alphabetic: New file.
41464         * modules/unictype/property-not-a-character: New file.
41465         * modules/unictype/property-default-ignorable-code-point: New file.
41466         * modules/unictype/property-other-default-ignorable-code-point: New
41467         file.
41468         * modules/unictype/property-deprecated: New file.
41469         * modules/unictype/property-logical-order-exception: New file.
41470         * modules/unictype/property-variation-selector: New file.
41471         * modules/unictype/property-private-use: New file.
41472         * modules/unictype/property-unassigned-code-value: New file.
41473         * modules/unictype/property-uppercase: New file.
41474         * modules/unictype/property-other-uppercase: New file.
41475         * modules/unictype/property-lowercase: New file.
41476         * modules/unictype/property-other-lowercase: New file.
41477         * modules/unictype/property-titlecase: New file.
41478         * modules/unictype/property-soft-dotted: New file.
41479         * modules/unictype/property-id-start: New file.
41480         * modules/unictype/property-other-id-start: New file.
41481         * modules/unictype/property-id-continue: New file.
41482         * modules/unictype/property-other-id-continue: New file.
41483         * modules/unictype/property-xid-start: New file.
41484         * modules/unictype/property-xid-continue: New file.
41485         * modules/unictype/property-pattern-white-space: New file.
41486         * modules/unictype/property-pattern-syntax: New file.
41487         * modules/unictype/property-join-control: New file.
41488         * modules/unictype/property-grapheme-base: New file.
41489         * modules/unictype/property-grapheme-extend: New file.
41490         * modules/unictype/property-other-grapheme-extend: New file.
41491         * modules/unictype/property-grapheme-link: New file.
41492         * modules/unictype/property-bidi-control: New file.
41493         * modules/unictype/property-bidi-left-to-right: New file.
41494         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
41495         * modules/unictype/property-bidi-arabic-right-to-left: New file.
41496         * modules/unictype/property-bidi-european-digit: New file.
41497         * modules/unictype/property-bidi-eur-num-separator: New file.
41498         * modules/unictype/property-bidi-eur-num-terminator: New file.
41499         * modules/unictype/property-bidi-arabic-digit: New file.
41500         * modules/unictype/property-bidi-common-separator: New file.
41501         * modules/unictype/property-bidi-block-separator: New file.
41502         * modules/unictype/property-bidi-segment-separator: New file.
41503         * modules/unictype/property-bidi-whitespace: New file.
41504         * modules/unictype/property-bidi-non-spacing-mark: New file.
41505         * modules/unictype/property-bidi-boundary-neutral: New file.
41506         * modules/unictype/property-bidi-pdf: New file.
41507         * modules/unictype/property-bidi-embedding-or-override: New file.
41508         * modules/unictype/property-bidi-other-neutral: New file.
41509         * modules/unictype/property-hex-digit: New file.
41510         * modules/unictype/property-ascii-hex-digit: New file.
41511         * modules/unictype/property-ideographic: New file.
41512         * modules/unictype/property-unified-ideograph: New file.
41513         * modules/unictype/property-radical: New file.
41514         * modules/unictype/property-ids-binary-operator: New file.
41515         * modules/unictype/property-ids-trinary-operator: New file.
41516         * modules/unictype/property-zero-width: New file.
41517         * modules/unictype/property-space: New file.
41518         * modules/unictype/property-non-break: New file.
41519         * modules/unictype/property-iso-control: New file.
41520         * modules/unictype/property-format-control: New file.
41521         * modules/unictype/property-dash: New file.
41522         * modules/unictype/property-hyphen: New file.
41523         * modules/unictype/property-punctuation: New file.
41524         * modules/unictype/property-line-separator: New file.
41525         * modules/unictype/property-paragraph-separator: New file.
41526         * modules/unictype/property-quotation-mark: New file.
41527         * modules/unictype/property-sentence-terminal: New file.
41528         * modules/unictype/property-terminal-punctuation: New file.
41529         * modules/unictype/property-currency-symbol: New file.
41530         * modules/unictype/property-math: New file.
41531         * modules/unictype/property-other-math: New file.
41532         * modules/unictype/property-paired-punctuation: New file.
41533         * modules/unictype/property-left-of-pair: New file.
41534         * modules/unictype/property-combining: New file.
41535         * modules/unictype/property-composite: New file.
41536         * modules/unictype/property-decimal-digit: New file.
41537         * modules/unictype/property-numeric: New file.
41538         * modules/unictype/property-diacritic: New file.
41539         * modules/unictype/property-extender: New file.
41540         * modules/unictype/property-ignorable-control: New file.
41541         * modules/unictype/property-test: New file.
41542         * modules/unictype/property-byname: New file.
41543         * modules/unictype/property-all: New file.
41544         * modules/unictype/scripts: New file.
41545         * modules/unictype/scripts-all: New file.
41546         * modules/unictype/block-of: New file.
41547         * modules/unictype/block-test: New file.
41548         * modules/unictype/block-list: New file.
41549         * modules/unictype/block-all: New file.
41550         * modules/unictype/syntax-c-whitespace: New file.
41551         * modules/unictype/syntax-java-whitespace: New file.
41552         * modules/unictype/syntax-c-ident: New file.
41553         * modules/unictype/syntax-java-ident: New file.
41554         * modules/unictype/ctype-alnum: New file.
41555         * modules/unictype/ctype-alpha: New file.
41556         * modules/unictype/ctype-cntrl: New file.
41557         * modules/unictype/ctype-digit: New file.
41558         * modules/unictype/ctype-graph: New file.
41559         * modules/unictype/ctype-lower: New file.
41560         * modules/unictype/ctype-print: New file.
41561         * modules/unictype/ctype-punct: New file.
41562         * modules/unictype/ctype-space: New file.
41563         * modules/unictype/ctype-upper: New file.
41564         * modules/unictype/ctype-xdigit: New file.
41565         * modules/unictype/ctype-blank: New file.
41566         * lib/unictype/bidi_byname.c: New file.
41567         * lib/unictype/bidi_name.c: New file.
41568         * lib/unictype/bidi_of.c: New file.
41569         * lib/unictype/bidi_test.c: New file.
41570         * lib/unictype/bitmap.h: New file.
41571         * lib/unictype/block_test.c: New file.
41572         * lib/unictype/blocks.c: New file.
41573         * lib/unictype/categ_C.c: New file.
41574         * lib/unictype/categ_Cc.c: New file.
41575         * lib/unictype/categ_Cf.c: New file.
41576         * lib/unictype/categ_Cn.c: New file.
41577         * lib/unictype/categ_Co.c: New file.
41578         * lib/unictype/categ_Cs.c: New file.
41579         * lib/unictype/categ_L.c: New file.
41580         * lib/unictype/categ_Ll.c: New file.
41581         * lib/unictype/categ_Lm.c: New file.
41582         * lib/unictype/categ_Lo.c: New file.
41583         * lib/unictype/categ_Lt.c: New file.
41584         * lib/unictype/categ_Lu.c: New file.
41585         * lib/unictype/categ_M.c: New file.
41586         * lib/unictype/categ_Mc.c: New file.
41587         * lib/unictype/categ_Me.c: New file.
41588         * lib/unictype/categ_Mn.c: New file.
41589         * lib/unictype/categ_N.c: New file.
41590         * lib/unictype/categ_Nd.c: New file.
41591         * lib/unictype/categ_Nl.c: New file.
41592         * lib/unictype/categ_No.c: New file.
41593         * lib/unictype/categ_P.c: New file.
41594         * lib/unictype/categ_Pc.c: New file.
41595         * lib/unictype/categ_Pd.c: New file.
41596         * lib/unictype/categ_Pe.c: New file.
41597         * lib/unictype/categ_Pf.c: New file.
41598         * lib/unictype/categ_Pi.c: New file.
41599         * lib/unictype/categ_Po.c: New file.
41600         * lib/unictype/categ_Ps.c: New file.
41601         * lib/unictype/categ_S.c: New file.
41602         * lib/unictype/categ_Sc.c: New file.
41603         * lib/unictype/categ_Sk.c: New file.
41604         * lib/unictype/categ_Sm.c: New file.
41605         * lib/unictype/categ_So.c: New file.
41606         * lib/unictype/categ_Z.c: New file.
41607         * lib/unictype/categ_Zl.c: New file.
41608         * lib/unictype/categ_Zp.c: New file.
41609         * lib/unictype/categ_Zs.c: New file.
41610         * lib/unictype/categ_and.c: New file.
41611         * lib/unictype/categ_and_not.c: New file.
41612         * lib/unictype/categ_byname.c: New file.
41613         * lib/unictype/categ_name.c: New file.
41614         * lib/unictype/categ_none.c: New file.
41615         * lib/unictype/categ_of.c: New file.
41616         * lib/unictype/categ_or.c: New file.
41617         * lib/unictype/categ_test.c: New file.
41618         * lib/unictype/combining.c: New file.
41619         * lib/unictype/ctype_alnum.c: New file.
41620         * lib/unictype/ctype_alpha.c: New file.
41621         * lib/unictype/ctype_blank.c: New file.
41622         * lib/unictype/ctype_cntrl.c: New file.
41623         * lib/unictype/ctype_digit.c: New file.
41624         * lib/unictype/ctype_graph.c: New file.
41625         * lib/unictype/ctype_lower.c: New file.
41626         * lib/unictype/ctype_print.c: New file.
41627         * lib/unictype/ctype_punct.c: New file.
41628         * lib/unictype/ctype_space.c: New file.
41629         * lib/unictype/ctype_upper.c: New file.
41630         * lib/unictype/ctype_xdigit.c: New file.
41631         * lib/unictype/decdigit.c: New file.
41632         * lib/unictype/digit.c: New file.
41633         * lib/unictype/identsyntaxmap.h: New file.
41634         * lib/unictype/mirror.c: New file.
41635         * lib/unictype/numeric.c: New file.
41636         * lib/unictype/pr_alphabetic.c: New file.
41637         * lib/unictype/pr_ascii_hex_digit.c: New file.
41638         * lib/unictype/pr_bidi_arabic_digit.c: New file.
41639         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
41640         * lib/unictype/pr_bidi_block_separator.c: New file.
41641         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
41642         * lib/unictype/pr_bidi_common_separator.c: New file.
41643         * lib/unictype/pr_bidi_control.c: New file.
41644         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
41645         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
41646         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
41647         * lib/unictype/pr_bidi_european_digit.c: New file.
41648         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
41649         * lib/unictype/pr_bidi_left_to_right.c: New file.
41650         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
41651         * lib/unictype/pr_bidi_other_neutral.c: New file.
41652         * lib/unictype/pr_bidi_pdf.c: New file.
41653         * lib/unictype/pr_bidi_segment_separator.c: New file.
41654         * lib/unictype/pr_bidi_whitespace.c: New file.
41655         * lib/unictype/pr_byname.c: New file.
41656         * lib/unictype/pr_byname.gperf: New file.
41657         * lib/unictype/pr_combining.c: New file.
41658         * lib/unictype/pr_composite.c: New file.
41659         * lib/unictype/pr_currency_symbol.c: New file.
41660         * lib/unictype/pr_dash.c: New file.
41661         * lib/unictype/pr_decimal_digit.c: New file.
41662         * lib/unictype/pr_default_ignorable_code_point.c: New file.
41663         * lib/unictype/pr_deprecated.c: New file.
41664         * lib/unictype/pr_diacritic.c: New file.
41665         * lib/unictype/pr_extender.c: New file.
41666         * lib/unictype/pr_format_control.c: New file.
41667         * lib/unictype/pr_grapheme_base.c: New file.
41668         * lib/unictype/pr_grapheme_extend.c: New file.
41669         * lib/unictype/pr_grapheme_link.c: New file.
41670         * lib/unictype/pr_hex_digit.c: New file.
41671         * lib/unictype/pr_hyphen.c: New file.
41672         * lib/unictype/pr_id_continue.c: New file.
41673         * lib/unictype/pr_id_start.c: New file.
41674         * lib/unictype/pr_ideographic.c: New file.
41675         * lib/unictype/pr_ids_binary_operator.c: New file.
41676         * lib/unictype/pr_ids_trinary_operator.c: New file.
41677         * lib/unictype/pr_ignorable_control.c: New file.
41678         * lib/unictype/pr_iso_control.c: New file.
41679         * lib/unictype/pr_join_control.c: New file.
41680         * lib/unictype/pr_left_of_pair.c: New file.
41681         * lib/unictype/pr_line_separator.c: New file.
41682         * lib/unictype/pr_logical_order_exception.c: New file.
41683         * lib/unictype/pr_lowercase.c: New file.
41684         * lib/unictype/pr_math.c: New file.
41685         * lib/unictype/pr_non_break.c: New file.
41686         * lib/unictype/pr_not_a_character.c: New file.
41687         * lib/unictype/pr_numeric.c: New file.
41688         * lib/unictype/pr_other_alphabetic.c: New file.
41689         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
41690         * lib/unictype/pr_other_grapheme_extend.c: New file.
41691         * lib/unictype/pr_other_id_continue.c: New file.
41692         * lib/unictype/pr_other_id_start.c: New file.
41693         * lib/unictype/pr_other_lowercase.c: New file.
41694         * lib/unictype/pr_other_math.c: New file.
41695         * lib/unictype/pr_other_uppercase.c: New file.
41696         * lib/unictype/pr_paired_punctuation.c: New file.
41697         * lib/unictype/pr_paragraph_separator.c: New file.
41698         * lib/unictype/pr_pattern_syntax.c: New file.
41699         * lib/unictype/pr_pattern_white_space.c: New file.
41700         * lib/unictype/pr_private_use.c: New file.
41701         * lib/unictype/pr_punctuation.c: New file.
41702         * lib/unictype/pr_quotation_mark.c: New file.
41703         * lib/unictype/pr_radical.c: New file.
41704         * lib/unictype/pr_sentence_terminal.c: New file.
41705         * lib/unictype/pr_soft_dotted.c: New file.
41706         * lib/unictype/pr_space.c: New file.
41707         * lib/unictype/pr_terminal_punctuation.c: New file.
41708         * lib/unictype/pr_test.c: New file.
41709         * lib/unictype/pr_titlecase.c: New file.
41710         * lib/unictype/pr_unassigned_code_value.c: New file.
41711         * lib/unictype/pr_unified_ideograph.c: New file.
41712         * lib/unictype/pr_uppercase.c: New file.
41713         * lib/unictype/pr_variation_selector.c: New file.
41714         * lib/unictype/pr_white_space.c: New file.
41715         * lib/unictype/pr_xid_continue.c: New file.
41716         * lib/unictype/pr_xid_start.c: New file.
41717         * lib/unictype/pr_zero_width.c: New file.
41718         * lib/unictype/scripts.c: New file.
41719         * lib/unictype/sy_c_ident.c: New file.
41720         * lib/unictype/sy_c_whitespace.c: New file.
41721         * lib/unictype/sy_java_ident.c: New file.
41722         * lib/unictype/sy_java_whitespace.c: New file.
41723
41724         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
41725         Unicode 5.0.0.
41726         * lib/unictype/blocks.h: Likewise.
41727         * lib/unictype/categ_C.h: Likewise.
41728         * lib/unictype/categ_Cc.h: Likewise.
41729         * lib/unictype/categ_Cf.h: Likewise.
41730         * lib/unictype/categ_Cn.h: Likewise.
41731         * lib/unictype/categ_Co.h: Likewise.
41732         * lib/unictype/categ_Cs.h: Likewise.
41733         * lib/unictype/categ_L.h: Likewise.
41734         * lib/unictype/categ_Ll.h: Likewise.
41735         * lib/unictype/categ_Lm.h: Likewise.
41736         * lib/unictype/categ_Lo.h: Likewise.
41737         * lib/unictype/categ_Lt.h: Likewise.
41738         * lib/unictype/categ_Lu.h: Likewise.
41739         * lib/unictype/categ_M.h: Likewise.
41740         * lib/unictype/categ_Mc.h: Likewise.
41741         * lib/unictype/categ_Me.h: Likewise.
41742         * lib/unictype/categ_Mn.h: Likewise.
41743         * lib/unictype/categ_N.h: Likewise.
41744         * lib/unictype/categ_Nd.h: Likewise.
41745         * lib/unictype/categ_Nl.h: Likewise.
41746         * lib/unictype/categ_No.h: Likewise.
41747         * lib/unictype/categ_P.h: Likewise.
41748         * lib/unictype/categ_Pc.h: Likewise.
41749         * lib/unictype/categ_Pd.h: Likewise.
41750         * lib/unictype/categ_Pe.h: Likewise.
41751         * lib/unictype/categ_Pf.h: Likewise.
41752         * lib/unictype/categ_Pi.h: Likewise.
41753         * lib/unictype/categ_Po.h: Likewise.
41754         * lib/unictype/categ_Ps.h: Likewise.
41755         * lib/unictype/categ_S.h: Likewise.
41756         * lib/unictype/categ_Sc.h: Likewise.
41757         * lib/unictype/categ_Sk.h: Likewise.
41758         * lib/unictype/categ_Sm.h: Likewise.
41759         * lib/unictype/categ_So.h: Likewise.
41760         * lib/unictype/categ_Z.h: Likewise.
41761         * lib/unictype/categ_Zl.h: Likewise.
41762         * lib/unictype/categ_Zp.h: Likewise.
41763         * lib/unictype/categ_Zs.h: Likewise.
41764         * lib/unictype/categ_of.h: Likewise.
41765         * lib/unictype/combining.h: Likewise.
41766         * lib/unictype/ctype_alnum.h: Likewise.
41767         * lib/unictype/ctype_alpha.h: Likewise.
41768         * lib/unictype/ctype_blank.h: Likewise.
41769         * lib/unictype/ctype_cntrl.h: Likewise.
41770         * lib/unictype/ctype_digit.h: Likewise.
41771         * lib/unictype/ctype_graph.h: Likewise.
41772         * lib/unictype/ctype_lower.h: Likewise.
41773         * lib/unictype/ctype_print.h: Likewise.
41774         * lib/unictype/ctype_punct.h: Likewise.
41775         * lib/unictype/ctype_space.h: Likewise.
41776         * lib/unictype/ctype_upper.h: Likewise.
41777         * lib/unictype/ctype_xdigit.h: Likewise.
41778         * lib/unictype/decdigit.h: Likewise.
41779         * lib/unictype/digit.h: Likewise.
41780         * lib/unictype/mirror.h: Likewise.
41781         * lib/unictype/numeric.h: Likewise.
41782         * lib/unictype/pr_alphabetic.h: Likewise.
41783         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41784         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41785         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41786         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41787         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41788         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41789         * lib/unictype/pr_bidi_control.h: Likewise.
41790         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41791         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41792         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41793         * lib/unictype/pr_bidi_european_digit.h: Likewise.
41794         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41795         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41796         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41797         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41798         * lib/unictype/pr_bidi_pdf.h: Likewise.
41799         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41800         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41801         * lib/unictype/pr_combining.h: Likewise.
41802         * lib/unictype/pr_composite.h: Likewise.
41803         * lib/unictype/pr_currency_symbol.h: Likewise.
41804         * lib/unictype/pr_dash.h: Likewise.
41805         * lib/unictype/pr_decimal_digit.h: Likewise.
41806         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41807         * lib/unictype/pr_deprecated.h: Likewise.
41808         * lib/unictype/pr_diacritic.h: Likewise.
41809         * lib/unictype/pr_extender.h: Likewise.
41810         * lib/unictype/pr_format_control.h: Likewise.
41811         * lib/unictype/pr_grapheme_base.h: Likewise.
41812         * lib/unictype/pr_grapheme_extend.h: Likewise.
41813         * lib/unictype/pr_grapheme_link.h: Likewise.
41814         * lib/unictype/pr_hex_digit.h: Likewise.
41815         * lib/unictype/pr_hyphen.h: Likewise.
41816         * lib/unictype/pr_id_continue.h: Likewise.
41817         * lib/unictype/pr_id_start.h: Likewise.
41818         * lib/unictype/pr_ideographic.h: Likewise.
41819         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41820         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41821         * lib/unictype/pr_ignorable_control.h: Likewise.
41822         * lib/unictype/pr_iso_control.h: Likewise.
41823         * lib/unictype/pr_join_control.h: Likewise.
41824         * lib/unictype/pr_left_of_pair.h: Likewise.
41825         * lib/unictype/pr_line_separator.h: Likewise.
41826         * lib/unictype/pr_logical_order_exception.h: Likewise.
41827         * lib/unictype/pr_lowercase.h: Likewise.
41828         * lib/unictype/pr_math.h: Likewise.
41829         * lib/unictype/pr_non_break.h: Likewise.
41830         * lib/unictype/pr_not_a_character.h: Likewise.
41831         * lib/unictype/pr_numeric.h: Likewise.
41832         * lib/unictype/pr_other_alphabetic.h: Likewise.
41833         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41834         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41835         * lib/unictype/pr_other_id_continue.h: Likewise.
41836         * lib/unictype/pr_other_id_start.h: Likewise.
41837         * lib/unictype/pr_other_lowercase.h: Likewise.
41838         * lib/unictype/pr_other_math.h: Likewise.
41839         * lib/unictype/pr_other_uppercase.h: Likewise.
41840         * lib/unictype/pr_paired_punctuation.h: Likewise.
41841         * lib/unictype/pr_paragraph_separator.h: Likewise.
41842         * lib/unictype/pr_pattern_syntax.h: Likewise.
41843         * lib/unictype/pr_pattern_white_space.h: Likewise.
41844         * lib/unictype/pr_private_use.h: Likewise.
41845         * lib/unictype/pr_punctuation.h: Likewise.
41846         * lib/unictype/pr_quotation_mark.h: Likewise.
41847         * lib/unictype/pr_radical.h: Likewise.
41848         * lib/unictype/pr_sentence_terminal.h: Likewise.
41849         * lib/unictype/pr_soft_dotted.h: Likewise.
41850         * lib/unictype/pr_space.h: Likewise.
41851         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41852         * lib/unictype/pr_titlecase.h: Likewise.
41853         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41854         * lib/unictype/pr_unified_ideograph.h: Likewise.
41855         * lib/unictype/pr_uppercase.h: Likewise.
41856         * lib/unictype/pr_variation_selector.h: Likewise.
41857         * lib/unictype/pr_white_space.h: Likewise.
41858         * lib/unictype/pr_xid_continue.h: Likewise.
41859         * lib/unictype/pr_xid_start.h: Likewise.
41860         * lib/unictype/pr_zero_width.h: Likewise.
41861         * lib/unictype/scripts.h: Likewise.
41862         * lib/unictype/scripts_byname.gperf: Likewise.
41863         * lib/unictype/sy_c_ident.h: Likewise.
41864         * lib/unictype/sy_c_whitespace.h: Likewise.
41865         * lib/unictype/sy_java_ident.h: Likewise.
41866         * lib/unictype/sy_java_whitespace.h: Likewise.
41867
41868         * lib/unictype/Makefile: New file.
41869         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
41870         glibc.
41871         * lib/unictype/3level.h: New file, copied from glibc.
41872         * lib/unictype/3levelbit.h: New file.
41873
41874 2007-11-11  Bruno Haible  <bruno@clisp.org>
41875
41876         * modules/gperf: New file.
41877         * modules/iconv_open (Depends-on): Add it.
41878         (Makefile.am): Remove the GPERF definition.
41879
41880 2007-11-11  Bruno Haible  <bruno@clisp.org>
41881
41882         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
41883         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
41884
41885 2007-11-11  Bruno Haible  <bruno@clisp.org>
41886
41887         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
41888         (usage): Remove function.
41889
41890 2007-11-11  Bruno Haible  <bruno@clisp.org>
41891
41892         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
41893         gl_FUNC_CEILF_LIBS.
41894         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
41895         gl_FUNC_CEIL_LIBS.
41896         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
41897         gl_FUNC_CEILL_LIBS.
41898         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
41899         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
41900         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
41901
41902 2007-11-11  Bruno Haible  <bruno@clisp.org>
41903
41904         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
41905         roundf were declared but do not exist on functions.
41906         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
41907         roundl were declared but do not exist on functions.
41908         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
41909         HAVE_FLOORL_AND_CEILL, respectively.
41910         Needed for Sun C on Solaris 10.
41911
41912 2007-11-11  Bruno Haible  <bruno@clisp.org>
41913
41914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
41915         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
41916         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
41917         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
41918         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
41919         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
41920         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
41921         HAVE_DECL_ROUNDF.
41922         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
41923         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
41924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
41925         of HAVE_DECL_ROUND*.
41926         * modules/math (Makefile.am): Update.
41927
41928 2007-11-10  Bruno Haible  <bruno@clisp.org>
41929
41930         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
41931         ptrdiff_t as m4/intl.m4.
41932
41933 2007-11-10  Jim Meyering  <meyering@redhat.com>
41934
41935         Avoid link failure for the argmatch test.
41936         * tests/test-argmatch.c (usage): Define function to avoid a link
41937         failure: argmatch_die requires a usage function.
41938
41939 2007-11-09  Bruno Haible  <bruno@clisp.org>
41940
41941         * doc/functions/snprintf.texi: Mention BeOS deficiency.
41942         * doc/functions/vsnprintf.texi: Likewise.
41943         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
41944         with a size argument < 2.
41945
41946 2007-11-09  Bruno Haible  <bruno@clisp.org>
41947
41948         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
41949         buffer. Fixes an inefficiency introduced on 2007-11-03.
41950
41951 2007-11-09  Bruno Haible  <bruno@clisp.org>
41952
41953         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
41954         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
41955
41956 2007-11-08  Jim Meyering  <meyering@redhat.com>
41957
41958         Change cache variable name prefix "jm_" to "gl_" everywhere.
41959         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
41960         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
41961         * m4/uptime.m4: s/gl_/jm_/
41962
41963 2007-11-07  Bruno Haible  <bruno@clisp.org>
41964
41965         Update to GNU gettext 0.17.
41966         * m4/intl.m4: Update to GNU gettext 0.17.
41967         * m4/po.m4: Likewise.
41968         * modules/gettext (Files): Remove m4/ulonglong.m4.
41969         (configure.ac): Require gettext infrastructure from version 0.17.
41970
41971 2007-11-06  Bruno Haible  <bruno@clisp.org>
41972
41973         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
41974         symbolic values are not defined in a public header.
41975         * lib/freadable.c (freadable) [QNX]: Likewise.
41976         * lib/freadahead.c (freadahead) [QNX]: Likewise.
41977         * lib/freading.c (freading) [QNX]: Likewise.
41978         * lib/fseterr.c (fseterr) [QNX]: Likewise.
41979         * lib/fwritable.c (fwritable) [QNX]: Likewise.
41980         * lib/fwriting.c (fwriting) [QNX]: Likewise.
41981         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
41982         Reported by Alain Magloire.
41983
41984         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
41985
41986 2007-11-05  Bruno Haible  <bruno@clisp.org>
41987
41988         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
41989         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
41990         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
41991         Reported by Eric Blake.
41992
41993 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41994             Bruno Haible  <bruno@clisp.org>
41995
41996         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
41997         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
41998         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
41999         (malloc): Undefine also before including <stdlib.h>.
42000         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
42001         Needed on OSF/1 4.0.
42002
42003 2007-11-05  Jim Meyering  <meyering@redhat.com>
42004
42005         git-version-gen: sync from coreutils.
42006         * build-aux/git-version-gen: Add comments.
42007         Change the first '-' to '.' in the snapshot version string,
42008         e.g., 6.9-377-08144 -> 6.9.377-08144
42009         Remove first parameter.
42010         Don't declare a version "-dirty" merely because a time
42011         stamp has changed.
42012
42013 2007-11-04  Bruno Haible  <bruno@clisp.org>
42014
42015         * lib/lock.h: Protect all macro definitions containing an 'if'
42016         statement through a "do { ... } while (0)".
42017         * lib/tls.h: Likewise.
42018
42019 2007-11-04  Bruno Haible  <bruno@clisp.org>
42020
42021         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
42022
42023 2007-11-04  Bruno Haible  <bruno@clisp.org>
42024
42025         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
42026         * modules/fprintf-posix (Depends-on): Add nocrash.
42027         * modules/snprintf-posix (Depends-on): Likewise.
42028         * modules/sprintf-posix (Depends-on): Likewise.
42029         * modules/vasnprintf-posix (Depends-on): Likewise.
42030         * modules/vasprintf-posix (Depends-on): Likewise.
42031         * modules/vfprintf-posix (Depends-on): Likewise.
42032         * modules/vsnprintf-posix (Depends-on): Likewise.
42033         * modules/vsprintf-posix (Depends-on): Likewise.
42034         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42035         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42036         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42037         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42038         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42039         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42040         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42041
42042 2007-11-04  Bruno Haible  <bruno@clisp.org>
42043
42044         * modules/nocrash: New file.
42045         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
42046         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
42047
42048 2007-11-04  Bruno Haible  <bruno@clisp.org>
42049
42050         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
42051         precision handling.
42052         * tests/test-vasprintf-posix.c (test_function): Likewise.
42053         * tests/test-snprintf-posix.h (test_function): Likewise.
42054         * tests/test-sprintf-posix.h (test_function): Likewise.
42055
42056         Fix *printf behaviour for large precisions on mingw and BeOS.
42057         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
42058         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
42059         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
42060         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42061         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42062         gl_PRINTF_PRECISION and test its result. Invoke
42063         gl_PREREQ_VASNPRINTF_PRECISION.
42064         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42065         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42066         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42067         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42068         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42069         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42070         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42071         * doc/functions/fprintf.texi: Update.
42072         * doc/functions/printf.texi: Update.
42073         * doc/functions/snprintf.texi: Update.
42074         * doc/functions/sprintf.texi: Update.
42075         * doc/functions/vfprintf.texi: Update.
42076         * doc/functions/vprintf.texi: Update.
42077         * doc/functions/vsnprintf.texi: Update.
42078         * doc/functions/vsprintf.texi: Update.
42079
42080 2007-11-04  Bruno Haible  <bruno@clisp.org>
42081
42082         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
42083
42084 2007-11-04  Bruno Haible  <bruno@clisp.org>
42085
42086         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
42087         Reported by Sylvain Beucler <beuc@gnu.org>.
42088
42089 2007-11-03  Bruno Haible  <bruno@clisp.org>
42090
42091         * tests/test-fprintf-posix2.sh: New file.
42092         * tests/test-fprintf-posix2.c: New file.
42093         * modules/fprintf-posix-tests (Files): Add them.
42094         (TESTS): Add test-fprintf-posix2.sh.
42095         (configure.ac): Check for getrlimit and setrlimit.
42096         (check_PROGRAMS): Add test-fprintf-posix2.
42097
42098         * tests/test-printf-posix2.sh: New file.
42099         * tests/test-printf-posix2.c: New file.
42100         * modules/printf-posix-tests (Files): Add them.
42101         (TESTS): Add test-printf-posix2.sh.
42102         (configure.ac): Check for getrlimit and setrlimit.
42103         (check_PROGRAMS): Add test-printf-posix2.
42104
42105         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
42106         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
42107         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
42108         (decode_double): New function, copied from decode_long_double.
42109         (scale10_round_decimal_decoded): New function, extracted from
42110         scale10_round_decimal_long_double.
42111         (scale10_round_decimal_long_double): Use it.
42112         (scale10_round_decimal_double): New function.
42113         (floorlog10): New function.
42114         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
42115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
42116         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42117         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42118         gl_PRINTF_ENOMEM and test its result. Invoke
42119         gl_PREREQ_VASNPRINTF_ENOMEM.
42120         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42122         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42123         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42124         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42125         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42126         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42127         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
42128         * modules/snprintf-posix (Depends-on): Likewise.
42129         * modules/sprintf-posix (Depends-on): Likewise.
42130         * modules/vasnprintf-posix (Depends-on): Likewise.
42131         * modules/vasprintf-posix (Depends-on): Likewise.
42132         * modules/vfprintf-posix (Depends-on): Likewise.
42133         * modules/vsnprintf-posix (Depends-on): Likewise.
42134         * modules/vsprintf-posix (Depends-on): Likewise.
42135         * doc/functions/fprintf.texi: Update.
42136         * doc/functions/printf.texi: Update.
42137         * doc/functions/snprintf.texi: Update.
42138         * doc/functions/sprintf.texi: Update.
42139         * doc/functions/vfprintf.texi: Update.
42140         * doc/functions/vprintf.texi: Update.
42141         * doc/functions/vsnprintf.texi: Update.
42142         * doc/functions/vsprintf.texi: Update.
42143
42144 2007-11-03  Bruno Haible  <bruno@clisp.org>
42145
42146         * modules/frexp-nolibm-tests: New file.
42147
42148         * modules/frexp-nolibm: New file.
42149         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
42150
42151 2007-11-03  Bruno Haible  <bruno@clisp.org>
42152
42153         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
42154         value is C99 compliant.
42155         Needed for OSF/1 5.1.
42156
42157 2007-11-03  Bruno Haible  <bruno@clisp.org>
42158
42159         Fix out-of-memory handling of vasnprintf.
42160         * lib/printf-parse.c: Include <errno.h>.
42161         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
42162         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
42163         is already set.
42164
42165 2007-11-02  Eric Blake  <ebb9@byu.net>
42166
42167         Fix tests on cygwin.
42168         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
42169
42170 2007-11-01  Bruno Haible  <bruno@clisp.org>
42171
42172         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
42173         warning.
42174         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
42175         needed for POSIX compatibility.
42176
42177 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42178
42179         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
42180         for compatibility with GNU.
42181
42182 2007-11-01  Bruno Haible  <bruno@clisp.org>
42183
42184         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
42185         (putenv): Renamed from rpl_putenv. Change argument type from
42186         'const char *' to 'char *'.
42187         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
42188         of defining putenv in config.h, just set REPLACE_PUTENV.
42189         * modules/putenv (Depends-on): Add stdlib.
42190         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42191         (Include): Use <stdlib.h>.
42192         * lib/stdlib.in.h (putenv): New declaration.
42193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
42194         REPLACE_PUTENV.
42195         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
42196         REPLACE_PUTENV.
42197         Needed for MacOS X 10.5.0.
42198         Reported by Peter O'Gorman <peter@pogma.com>.
42199
42200 2007-11-01  Jim Meyering  <meyering@redhat.com>
42201
42202         Treat an empty date string exactly like "0".
42203         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
42204         if the remaining date string (to be parsed) is empty, use "0".
42205         Reported by Mischa Molhoek and discussed in this thread:
42206         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
42207
42208 2007-10-31  Bruno Haible  <bruno@clisp.org>
42209
42210         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
42211         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
42212         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
42213         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
42214         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
42215         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
42216
42217 2007-10-31  Bruno Haible  <bruno@clisp.org>
42218
42219         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
42220         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
42221         (AC_TYPE_LONG_LONG_INT): Use it.
42222         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
42223         it as well.
42224         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
42225         to m4/longlong.m4.
42226         * modules/stdint (Files): Remove m4/ulonglong.m4.
42227         * modules/strtoull (Files): Use m4/longlong.m4 instead of
42228         m4/ulonglong.m4.
42229         * modules/strtoumax (Files): Likewise.
42230
42231 2007-10-30  Bruno Haible  <bruno@clisp.org>
42232
42233         * modules/xvasprintf-posix: New file.
42234         Suggested by Eric Blake.
42235
42236 2007-10-30  Bruno Haible  <bruno@clisp.org>
42237
42238         * modules/xprintf-posix-tests: New file.
42239         * tests/test-xprintf-posix.sh: New file.
42240         * tests/test-xprintf-posix.c: New file.
42241         * tests/test-xfprintf-posix.c: New file.
42242
42243         * modules/xprintf-posix: New file.
42244
42245 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42246
42247         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
42248         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
42249         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
42250
42251 2007-10-29  Bruno Haible  <bruno@clisp.org>
42252
42253         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
42254         contain the special marker '_cv_'.
42255         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42256         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42257         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42258         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
42259         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42260         Reported by Ralf Wildenhues.
42261
42262 2007-10-29  Bruno Haible  <bruno@clisp.org>
42263
42264         * gnulib-tool (func_import): When --lgpl is not specified, set
42265         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
42266         GPLv3.
42267         Reported by Simon Josefsson.
42268
42269 2007-10-28  Bruno Haible  <bruno@clisp.org>
42270
42271         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
42272         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
42273         HAVE_DECL_ISFINITE.
42274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42275         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
42276         HAVE_DECL_ISFINITE.
42277
42278 2007-10-28  Bruno Haible  <bruno@clisp.org>
42279
42280         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
42281         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
42282
42283 2007-10-28  Bruno Haible  <bruno@clisp.org>
42284
42285         Fix link errors with Sun C 5.0 on Solaris 10.
42286         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
42287         function is declared but not present in the compiler's libm.
42288         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
42289         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
42290         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
42291         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
42292         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
42293         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
42294         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
42295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42296         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
42297         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
42298         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
42299         HAVE_DECL_FLOORL.
42300
42301 2007-10-28  Bruno Haible  <bruno@clisp.org>
42302
42303         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
42304         gl_FUNC_FLOORL. Cache the result.
42305         (gl_FUNC_FLOORL): Use it.
42306         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
42307         gl_FUNC_CEILL. Cache the result.
42308         (gl_FUNC_CEILL): Use it.
42309
42310         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
42311         gl_FUNC_FLOOR. Cache the result.
42312         (gl_FUNC_FLOOR): Use it.
42313         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
42314         gl_FUNC_CEIL. Cache the result.
42315         (gl_FUNC_CEIL): Use it.
42316
42317         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
42318         gl_FUNC_FLOORF. Cache the result.
42319         (gl_FUNC_FLOORF): Use it.
42320         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
42321         gl_FUNC_CEILF. Cache the result.
42322         (gl_FUNC_CEILF): Use it.
42323
42324 2007-10-28  Bruno Haible  <bruno@clisp.org>
42325
42326         * gnulib-tool: Allow specifying the LGPL version number through
42327         --lgpl=2 or --lgpl=3.
42328         (func_usage): Document --lgpl with argument.
42329         Handle --lgpl=... arguments.
42330         (func_import): Recognize also gl_LGPL calls with an argument. When
42331         --lgpl=2 is used and the module's license is just LGPL, report an
42332         error. Set sed_transform_lib_file according to the lgpl variable. In
42333         the generated files, use --lgpl or gl_LGPL invocations with argument,
42334         if necessary.
42335         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
42336         an LGPv2+ license.
42337         * doc/gnulib-tool.texi (Modified imports): Update explanation of
42338         gl_LGPL macro.
42339
42340 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42341             Bruno Haible  <bruno@clisp.org>
42342
42343         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
42344         (u16_uctomb_aux): Likewise.
42345         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
42346         !HAVE_INLINE.
42347         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
42348
42349 2007-10-28  Bruno Haible  <bruno@clisp.org>
42350
42351         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
42352         Invoke AM_GETTEXT_OPTION if it exists.
42353         * modules/vasprintf: Likewise.
42354         * modules/verror: Likewise.
42355         * modules/xprintf: Likewise.
42356         * modules/xvasprintf: Likewise.
42357
42358 2007-10-27  Ben Pfaff  <blp@gnu.org>
42359
42360         * lib/math.in.h: Define isfinite macro and prototypes for
42361         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
42362         implementations.
42363         * m4/math_h.m4: New substitutions for isfinite module.
42364         * lib/isfinite.c: New file.
42365         * m4/isfinite.m4: New file.
42366         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
42367         * modules/isfinite: New file.
42368         * modules/isfinite-tests: New file.
42369         * tests/tests-isfinite.c: New file.
42370         * doc/functions/isfinite.texi: Mention isfinite module.
42371         * MODULES.html.sh: Mention new module.
42372
42373 2007-10-27  Ben Pfaff  <blp@gnu.org>
42374
42375         Ralf Wildenhues reported that Tru64 4.0D declares the round
42376         functions but does not have definitions.
42377         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
42378         cannot be found in any library, set the output variable to
42379         "missing" instead of "".
42380         * m4/round.m4: Also use our substitute if we cannot find round in
42381         any library, even if it is declared.
42382         * m4/roundf.m4: Likewise for roundf.
42383         * m4/roundl.m4: Likewise for roundl.
42384         * lib/math.in.h: Undefine roundf, round, roundl before defining
42385         their replacements, to allow for hypothetical systems where these
42386         may be defined as macros but not available in libraries.
42387
42388 2007-10-27  Bruno Haible  <bruno@clisp.org>
42389
42390         * doc/gnulib.texi: Invoke @firstparagraphindent.
42391         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
42392         changes in gnulib.
42393         (Source changes): New section.
42394
42395 2007-10-26  Bruno Haible  <bruno@clisp.org>
42396
42397         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
42398         borrowed from autoconf.
42399
42400 2007-10-26  Bruno Haible  <bruno@clisp.org>
42401
42402         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
42403         strerror returned the empty string. Needed on HP-UX 11.00.
42404
42405 2007-10-24  Micah Cowan  <micah@cowan.name>
42406
42407         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
42408         * build-aux/bootstrap: Remove support for now-unnecessary option,
42409         --cvs-user, and envvars CVS_USER, CVS_RSH.
42410
42411 2007-10-24  Jim Meyering  <meyering@redhat.com>
42412
42413         Avoid diagnostics from sha1sum when there is no cached checksum.
42414         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
42415         if the po.s1 file hasn't been created yet.
42416
42417         * build-aux/bootstrap: Sync from coreutils:
42418         2007-10-24  Jim Meyering  <meyering@redhat.com>
42419         Get gnulib from the git repository, not from an obsolete cvs one.
42420         * build-aux/bootstrap: Suggestion from Micah Cowan.
42421         2007-10-04  Jim Meyering  <jim@meyering.net>
42422         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
42423         (update_po_files): Work also when there are no .po files in po/.
42424
42425 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42426
42427         * README: Append ".git" to git and cg examples.
42428         Problem reported by Benoit Sigoure.
42429
42430 2007-10-23  Micah Cowan  <micah@cowan.name>
42431
42432         * users.txt: Add wget.
42433
42434 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42435
42436         Fix linking of some unistdio tests on FreeBSD.
42437         * modules/unistdio/u16-vsnprintf-tests
42438         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
42439         * modules/unistdio/u16-vsprintf-tests
42440         (test_u16_vsnprintf1_LDADD): Likewise.
42441         * modules/unistdio/u32-vsnprintf-tests
42442         (test_u32_vsnprintf1_LDADD): Likewise.
42443         * modules/unistdio/u32-vsprintf-tests
42444         (test_u32_vsprintf1_LDADD): Likewise.
42445         * modules/unistdio/u8-vsnprintf-tests
42446         (test_u8_vsnprintf1_LDADD): Likewise.
42447         * modules/unistdio/u8-vsprintf-tests
42448         (test_u8_vsprintf1_LDADD): Likewise.
42449         * modules/unistdio/ulc-vsnprintf-tests
42450         (test_ulc_vsnprintf1_LDADD): Likewise.
42451         * modules/unistdio/ulc-vsprintf-tests
42452         (test_ulc_vsprintf1_LDADD): Likewise.
42453
42454         Fix linking of some uniconv tests on FreeBSD.
42455         * modules/uniconv/u16-conv-from-enc-tests
42456         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
42457         * modules/uniconv/u16-conv-to-enc-tests
42458         (test_u16_conv_to_enc_LDADD): Likewise.
42459         * modules/uniconv/u16-strconv-from-enc-tests
42460         (test_u16_strconv_from_enc_LDADD): Likewise.
42461         * modules/uniconv/u16-strconv-to-enc-tests
42462         (test_u16_strconv_to_enc_LDADD): Likewise.
42463         * modules/uniconv/u32-conv-from-enc-tests
42464         (test_u32_conv_from_enc_LDADD): Likewise.
42465         * modules/uniconv/u32-conv-to-enc-tests
42466         (test_u32_conv_to_enc_LDADD): Likewise.
42467         * modules/uniconv/u32-strconv-from-enc-tests
42468         (test_u32_strconv_from_enc_LDADD): Likewise.
42469         * modules/uniconv/u32-strconv-to-enc-tests
42470         (test_u32_strconv_to_enc_LDADD): Likewise.
42471         * modules/uniconv/u8-conv-from-enc-tests
42472         (test_u8_conv_from_enc_LDADD): Likewise.
42473         * modules/uniconv/u8-conv-to-enc-tests
42474         (test_u8_conv_to_enc_LDADD): Likewise.
42475         * modules/uniconv/u8-strconv-from-enc-tests
42476         (test_u8_strconv_from_enc_LDADD): Likewise.
42477         * modules/uniconv/u8-strconv-to-enc-tests
42478         (test_u8_strconv_to_enc_LDADD): Likewise.
42479
42480 2007-10-22  Bruno Haible  <bruno@clisp.org>
42481
42482         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
42483         size.
42484
42485 2007-10-22  Eric Blake  <ebb9@byu.net>
42486
42487         Tweak x*printf documentation.
42488         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
42489         variable name and comments.
42490         Suggested by Bruno Haible.
42491
42492 2007-10-22  Bruno Haible  <bruno@clisp.org>
42493
42494         * lib/acl.c (copy_acl): Fix file name in comment.
42495
42496 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42497
42498         Fix Tru64 problem with stdbool.h.
42499         * lib/stdbool.in.h (false, true):
42500         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
42501         Don't declare as an enum in this situation; it runs afoul of Tru64.
42502         Problem reported by Steven M. Schweda in
42503         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
42504
42505 2007-10-22  Eric Blake  <ebb9@byu.net>
42506
42507         Also wrap vf?printf.
42508         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
42509         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
42510         (xvprintf, xvfprintf): New functions.
42511
42512 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42513
42514         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
42515         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
42516
42517         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
42518         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
42519
42520 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42521
42522         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
42523         by Bruno Haible.
42524
42525 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42526
42527         * lib/getloadavg.c
42528         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
42529         Undef `sys' after including sys/table.h, for Tru64 4.0D.
42530
42531         * tests/test-i-ring.c: Work for C89.
42532
42533 2007-10-22  Bruno Haible  <bruno@clisp.org>
42534
42535         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
42536         -1u, in preprocessor expression, so that we don't test for the bug
42537         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
42538         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
42539
42540 2007-10-22  Eric Blake  <ebb9@byu.net>
42541
42542         * tests/test-yesno.sh: Silence stderr during test.
42543
42544 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42545
42546         * modules/crypto/gc-camellia: New file.
42547
42548         * m4/gc-camellia.m4: New file.
42549
42550         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
42551
42552         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
42553
42554 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42555
42556         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
42557         --help to stdout.  Reported by sms@antinode.org (Steven
42558         M. Schweda).
42559
42560 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42561
42562         * users.txt: Fix link to libksba.
42563
42564 2007-10-21  Ben Pfaff  <blp@gnu.org>
42565
42566         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
42567         round.c roundf implementation that depends on floorf and ceilf to
42568         be tested unconditionally.
42569
42570 2007-10-21  Ben Pfaff  <blp@gnu.org>
42571
42572         * m4/check-libm-func.m4: Removed.
42573         * m4/check-math-lib.m4: New file.
42574         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
42575         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
42576         definition and lack of AC_LIBOBJ([roundf]).
42577         * m4/roundl.m4: Ditto, and similarly for roundl.
42578         * modules/round: Reference new m4 file.
42579         * modules/roundf: Ditto.
42580         * modules/roundl: Ditto.
42581         * tests/test-round2.c (main): Use ROUND instead of round.
42582         Bug report from Bruno Haible.
42583
42584 2007-10-21  Bruno Haible  <bruno@clisp.org>
42585
42586         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
42587         context.
42588
42589 2007-10-21  Bruno Haible  <bruno@clisp.org>
42590
42591         * tests/test-wcwidth.c (main): Allow negative result for some control
42592         characters.
42593
42594         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
42595         Needed on OSF/1 5.1.
42596
42597 2007-10-21  Bruno Haible  <bruno@clisp.org>
42598
42599         * tests/test-floorf1.c: Include isnanf.h.
42600         (main): Use isnanf() instead of isnan().
42601         * tests/test-ceilf1.c: Include isnanf.h.
42602         (main): Use isnanf() instead of isnan().
42603         * tests/test-truncf1.c: Include isnanf.h.
42604         (main): Use isnanf() instead of isnan().
42605         * tests/test-roundf1.c: Include isnanf.h.
42606         (main): Use isnanf() instead of isnan().
42607
42608 2007-10-21  Eric Blake  <ebb9@byu.net>
42609
42610         * users.txt: Update URL for m4.
42611
42612 2007-10-21  Bruno Haible  <bruno@clisp.org>
42613
42614         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
42615
42616 2007-10-21  Bruno Haible  <bruno@clisp.org>
42617
42618         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
42619         Git's management files if the CVS files are not present.
42620
42621 2007-10-20  Bruno Haible  <bruno@clisp.org>
42622
42623         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
42624         gcc-3.4.x.
42625
42626 2007-10-20  Ben Pfaff  <blp@gnu.org>
42627
42628         * lib/math.in.h: Declare round, roundf, roundl if we are providing
42629         implementations.
42630         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
42631         * lib/round.c: New file.
42632         * lib/roundf.c: New file.
42633         * lib/roundl.c: New file.
42634         * m4/round.m4: New file.
42635         * m4/roundf.m4: New file.
42636         * m4/roundl.m4: New file.
42637         * m4/check-libm-func-m4: New file.
42638         * modules/math: Replace round, roundf, roundl related @VARS@ in
42639         math.in.h.
42640         * modules/round: New file.
42641         * modules/round-tests: New file.
42642         * modules/roundf: New file.
42643         * modules/roundf-tests: New file.
42644         * modules/roundl: New file.
42645         * modules/roundl-tests: New file.
42646         * tests/test-round1.c: New file.
42647         * tests/test-round2.c: New file.
42648         * tests/test-roundf1.c: New file.
42649         * tests/test-roundf2.c: New file.
42650         * tests/test-roundl.c: New file.
42651         * doc/functions/round.texi: Mention round module.
42652         * doc/functions/roundf.texi: Mention roundf module.
42653         * doc/functions/roundl.texi: Mention roundl module.
42654         * MODULES.html.sh: Mention new modules.
42655         Thanks to Bruno Haible for suggestions.
42656
42657 2007-10-20  Jim Meyering  <meyering@redhat.com>
42658
42659         * lib/xprintf.c: Include <config.h> unconditionally.
42660
42661         Change xprintf's license to GPL.
42662         * modules/xprintf (License): s/LGPL/GPL/, since this module
42663         depends on modules (exit and exitfail) which are GPL.
42664         Suggestion from Bruno Haible.
42665
42666         xprintf fixes.
42667         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
42668         Use a clearer diagnostic.
42669         Patch from Bruno Haible.
42670
42671 2007-10-20  Bruno Haible  <bruno@clisp.org>
42672
42673         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
42674         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
42675         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42676
42677 2007-10-20  Bruno Haible  <bruno@clisp.org>
42678
42679         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
42680         precision in the comparison result > x - 1 or similar.
42681         * tests/test-ceilf2.c (correct_result_p): Likewise.
42682         * tests/test-truncf2.c (correct_result_p): Likewise.
42683         * tests/test-trunc2.c (correct_result_p): Likewise.
42684         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42685
42686 2007-10-20  Bruno Haible  <bruno@clisp.org>
42687
42688         * modules/ceil: New file.
42689         * m4/ceil.m4: New file.
42690         * doc/functions/ceil.texi: Mention the 'ceil' module.
42691
42692 2007-10-20  Bruno Haible  <bruno@clisp.org>
42693
42694         * modules/floor: New file.
42695         * m4/floor.m4: New file.
42696         * doc/functions/floor.texi: Mention the 'floor' module.
42697
42698 2007-10-20  Bruno Haible  <bruno@clisp.org>
42699
42700         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
42701         of %a.
42702         * modules/floorf-tests (Depends-on): Likewise.
42703         * modules/truncf-tests (Depends-on): Likewise.
42704         * modules/trunc-tests (Depends-on): Likewise.
42705         Reported by Ben Pfaff.
42706
42707 2007-10-19  Jim Meyering  <meyering@redhat.com>
42708
42709         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
42710         Don't bother testing specific errno values.  Just test ferror.
42711
42712         New module: xprintf
42713         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
42714
42715 2007-10-19  Bruno Haible  <bruno@clisp.org>
42716
42717         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
42718         syntax.
42719         * modules/javaexec (Makefile.am): Likewise.
42720         * modules/relocatable-prog (Makefile.am): Likewise.
42721         Suggested by Jim Meyering.
42722
42723 2007-10-18  Bruno Haible  <bruno@clisp.org>
42724
42725         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
42726         Reported by Jim Meyering.
42727
42728 2007-10-18  Eric Blake  <ebb9@byu.net>
42729
42730         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
42731
42732 2007-10-18  Bruno Haible  <bruno@clisp.org>
42733
42734         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
42735         the format string into writable memory. Needed in Fortify conditions.
42736
42737 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
42738             Bruno Haible  <bruno@clisp.org>
42739
42740         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
42741         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
42742         * modules/trim (Depends-on): Add mbchar.
42743         (configure.ac): Add gl_FUNC_MBRTOWC.
42744         (Makefile.am): Augment lib_SOURCES.
42745
42746 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42747
42748         Modify glob.c to use fstatat and dirfd, to simplify it.
42749         Suggested by Eric Blake.
42750         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
42751         Don't include <stdbool.h>; not used.
42752         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
42753         (link_exists_p): Simplify implementation, since we can now assume
42754         dirfd and fstatat.
42755         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
42756
42757 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42758
42759         * gnulib-tool (func_get_dependencies): Fix sed script to
42760         match only tests.
42761
42762 2007-10-17  Bruno Haible  <bruno@clisp.org>
42763
42764         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
42765         allow locale names without encoding suffix.
42766         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42767         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42768
42769 2007-10-16  Bruno Haible  <bruno@clisp.org>
42770
42771         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
42772         * lib/getgroups.c (getgroups): Likewise.
42773         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
42774
42775 2007-10-16  Bruno Haible  <bruno@clisp.org>
42776
42777         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
42778         * modules/malloc-posix (License): Likewise.
42779         * modules/realloc-posix (License): Likewise.
42780         * modules/calloc-posix (License): Likewise.
42781         * modules/intprops (License): Change from GPL to LGPL, with
42782         Paul Eggert's approval.
42783
42784 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42785
42786         Merge glibc changes into lib/glob.c.
42787
42788         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
42789         2007-10-15 04:59:03 UTC.  Here are the changes:
42790
42791         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
42792
42793         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
42794
42795         * lib/glob.c: Add some branch prediction throughout.
42796
42797         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
42798
42799         [BZ #5103]
42800         * lib/glob.c (glob): Recognize patterns starting \/.
42801
42802         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
42803
42804         [BZ #3996]
42805         * lib/glob.c (attribute_hidden): Define if not defined.
42806         (glob): Unescape dirname, filename or username when needed and not
42807         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
42808         is NULL.  Handle unescaped [ in pattern without closing ].
42809         Don't pass GLOB_CHECK down to recursive glob for directories.
42810         (__glob_pattern_type): New function.
42811         (__glob_pattern_p): Implement using __glob_pattern_type.
42812         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
42813         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
42814         Remove unreachable code.
42815
42816         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
42817
42818         * lib/glob.c (glob_in_dir): Add some comments and asserts to
42819         explain why there are no leaks.
42820
42821         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
42822
42823         [BZ #3253]
42824         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
42825         time, rather allocate increasingly bigger arrays of pointers, if
42826         possible with alloca, if too large with malloc.
42827
42828 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42829
42830         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
42831         Problem reported by H.Merijn Brand in
42832         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
42833         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
42834         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42835
42836 2007-10-15  Bruno Haible  <bruno@clisp.org>
42837
42838         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
42839         with explicit rpl_ prefix.
42840         * lib/fopen.c (fopen): Likewise.
42841         * lib/freopen.c (freopen): Likewise.
42842         * lib/iconv.c (iconv): Likewise.
42843         * lib/iconv_close.c (iconv_close): Likewise.
42844
42845 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42846
42847         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
42848
42849 2007-10-15  Bruno Haible  <bruno@clisp.org>
42850
42851         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
42852         <stddef.h> instead of <stdlib.h> since we only need NULL.
42853         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42854
42855 2007-10-15  Bruno Haible  <bruno@clisp.org>
42856
42857         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
42858         Replace paragraph talking about LIBOBJS.
42859         Reported by Colin Watson <cjwatson@debian.org>.
42860
42861 2007-10-15  Bruno Haible  <bruno@clisp.org>
42862
42863         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
42864         <stdlib.h> before using NULL.
42865
42866 2007-10-15  Simon Josefsson  <simon@josefsson.org>
42867
42868         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
42869         Reported by Albert Chin <china@thewrittenword.com>.
42870
42871 2007-10-14  Bruno Haible  <bruno@clisp.org>
42872
42873         * modules/iconv_open-utf-tests: New file.
42874         * tests/test-iconv-utf.c: New file.
42875
42876         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
42877         * modules/iconv_open-utf: New file.
42878         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
42879         (iconv, iconv_close): New declarations.
42880         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
42881         be defined.
42882         (iconv_open): Add special handling of conversion between UTF-8 and
42883         UTF-{16,32}{BE,LE}.
42884         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
42885         * lib/iconv_close.c: New file.
42886         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
42887         gl_FUNC_ICONV_OPEN.
42888         (gl_FUNC_ICONV_OPEN): Use it.
42889         (gl_FUNC_ICONV_OPEN_UTF): New macro.
42890         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
42891         and REPLACE_ICONV_UTF.
42892         * modules/iconv_open (Depends-on): Add c-strcase.
42893         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
42894         ICONV_CONST.
42895         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
42896
42897 2007-10-13  Albert Chin  <china@thewrittenword.com>
42898             Bruno Haible  <bruno@clisp.org>
42899
42900         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
42901         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
42902
42903 2007-10-13  Bruno Haible  <bruno@clisp.org>
42904
42905         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
42906         defined, use the ISO C99 inline semantics.
42907         * lib/argp.h (ARGP_EI): Likewise.
42908
42909 2007-10-13  Bruno Haible  <bruno@clisp.org>
42910
42911         Handle 'inline' change in gcc 4.3.0.
42912         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
42913         argp_fmtstream_write, argp_fmtstream_set_lmargin,
42914         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
42915         argp_fmtstream_point): Disable 'extern' declaration if the function
42916         definition is going to be provided inline.
42917         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
42918         semantics, not the ISO C99 inline semantics.
42919         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
42920         'extern' declaration if the function definition is going to be provided
42921         inline.
42922         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
42923         the GNU C inline semantics, not the ISO C99 inline semantics. With
42924         GCC 4.2, avoid a warning.
42925
42926 2007-10-13  Bruno Haible  <bruno@clisp.org>
42927
42928         * lib/freading.h (freading): Enable the use of __freading for
42929         glibc >= 2.7.
42930         * lib/freading.c (freading): Likewise.
42931
42932 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42933
42934         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
42935         "warning: C99 inline functions are not supported; using GNU89".
42936
42937 2007-10-12  Bruno Haible  <bruno@clisp.org>
42938
42939         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
42940         of 2.
42941         * tests/test-ceilf2.c: New file.
42942         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
42943
42944         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
42945         * modules/ceilf-tests: Update.
42946
42947 2007-10-12  Bruno Haible  <bruno@clisp.org>
42948
42949         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
42950         of 2.
42951         * tests/test-floorf2.c: New file.
42952         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
42953
42954         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
42955         * modules/floorf-tests: Update.
42956
42957 2007-10-12  Bruno Haible  <bruno@clisp.org>
42958
42959         * tests/test-trunc2.c: New file.
42960         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
42961
42962         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
42963         * modules/trunc-tests: Update.
42964
42965 2007-10-12  Bruno Haible  <bruno@clisp.org>
42966
42967         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
42968         of 2.
42969         * tests/test-truncf2.c: New file.
42970         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
42971
42972         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
42973         * modules/truncf-tests: Update.
42974
42975 2007-10-11  Eric Blake  <ebb9@byu.net>
42976
42977         Don't claim strerror is broken on Interix.
42978         * doc/functions/strerror.texi (strerror): Known broken systems are
42979         now Solaris 8, and not Interix.
42980         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
42981         Interix on cross-compile.
42982         Reported by Martin Koeppe in
42983         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
42984
42985 2007-10-11  Bruno Haible  <bruno@clisp.org>
42986
42987         * modules/i-ring-tests: New file.
42988         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
42989         instead of assert.
42990
42991 2007-10-11  Bruno Haible  <bruno@clisp.org>
42992
42993         * modules/filenamecat-tests: New file.
42994         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
42995         * lib/filenamecat.c: Remove test code.
42996
42997 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42998
42999         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
43000
43001         * lib/strerror.c: Include <string.h> always, to test interface,
43002         and to remove the need for the dummy.
43003         Include intprops.h to compute width instead of doing it ourselves
43004         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
43005         (strerror): Define it to return NULL if there's no system strerror.
43006         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
43007         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
43008         ancient pre-strerror Unix systems well any more.  Saying "unknown
43009         system error" is enough.
43010         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
43011         simpler strerror.c implementation.
43012         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
43013         Simplify the tests to reflect the simpler strerror implementation.
43014         * modules/strerror (Depends-on): Add intprops.
43015
43016 2007-10-09  Eric Blake  <ebb9@byu.net>
43017
43018         Silence test-fpending.
43019         * modules/fpending-tests (Files): Add wrapper script.
43020         * tests/test-fpending.sh: New file.
43021
43022 2007-10-09  Bruno Haible  <bruno@clisp.org>
43023
43024         * MODULES.html.sh (func_module): Don't create a hyperlink for
43025         function names like 'printf_frexp'.
43026         (Misc): Add crc, memxor.
43027         (Characteristics of floating types): New section.
43028         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
43029         isnanf-nolibm, signbit, trunc, truncf, truncl.
43030         (Enhancements for ISO C 99 functions): New subsection Input/output.
43031         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
43032         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
43033         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
43034         (Compatibility checks for POSIX:2001 functions): Add clock-time.
43035         (Enhancements for POSIX:2001 functions): Add chdir-long.
43036         (File system functions): Add areadlink, chdir-safer, read-file.
43037         Remove cycle-check.
43038         (File system as inode set): New section.
43039         (Date and time): Add gethrxtime.
43040         (Multithreading): Add openmp.
43041         (Internationalization functions): Add localename.
43042         (Unicode string functions): Add unistr/u*-mbsnlen.
43043         (Support for maintaining and releasing projects): Add git-version-gen.
43044         (Lone files): Remove directories.
43045
43046 2007-10-08  Ben Pfaff  <blp@gnu.org>
43047
43048         * lib/xmalloca.h: Fix typo in comment.
43049
43050 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43051
43052         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
43053         when avoiding problems with integer overflow.  Use a portable test
43054         instead.
43055
43056 2007-10-08  Simon Josefsson  <simon@josefsson.org>
43057
43058         * modules/dummy (License): Change to LGPLv2+.
43059         * modules/float (License): Likewise
43060         * modules/realloc (License): Likewise
43061         * modules/stdlib (License): Likewise
43062
43063 2007-10-07  Bruno Haible  <bruno@clisp.org>
43064
43065         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
43066         * floor.c (TWO_MANT_DIG): Likewise.
43067         * ceil.c (TWO_MANT_DIG): Likewise.
43068         Reported by Ben Pfaff.
43069
43070 2007-10-07  Bruno Haible  <bruno@clisp.org>
43071
43072         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
43073         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
43074         * lib/frexp.c (FUNC): Likewise.
43075         * lib/printf-frexp.h (printf_frexp): Likewise.
43076         * lib/printf-frexpl.h (printf_frexpl): Likewise.
43077         * lib/printf-frexp.c (FUNC): Likewise.
43078         Suggested by Jim Meyering.
43079
43080 2007-10-07  Jim Meyering  <meyering@redhat.com>
43081
43082         Make xnanosleep's integer overflow test more robust.
43083         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
43084         so that gcc-4.3.0 doesn't optimize away this test for overflow.
43085
43086 2007-10-07  Bruno Haible  <bruno@clisp.org>
43087
43088         * NEWS: Mention the license change.
43089
43090         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
43091         abbreviations in the modules files.
43092
43093         Change copyright notice from GPLv2+ to GPLv3+.
43094         * README: Change copyright notice.
43095         * MODULES.html.sh: Likewise.
43096         * build-aux/bootstrap.conf: Likewise.
43097         * build-aux/config.libpath: Likewise.
43098         * build-aux/csharpcomp.sh.in: Likewise.
43099         * build-aux/csharpexec.sh.in: Likewise.
43100         * build-aux/install-reloc: Likewise.
43101         * build-aux/javacomp.sh.in: Likewise.
43102         * build-aux/javaexec.sh.in: Likewise.
43103         * build-aux/ldd.sh.in: Likewise.
43104         * build-aux/reloc-ldflags: Likewise.
43105         * build-aux/relocatable.sh.in: Likewise.
43106         * build-aux/x-to-1.in: Likewise.
43107         * check-module: Likewise.
43108         * config/srclistvars.sh: Likewise.
43109         * gnulib-tool: Likewise.
43110         * lib/acl-internal.h: Likewise.
43111         * lib/acl.c: Likewise.
43112         * lib/acl.h: Likewise.
43113         * lib/acl_entries.c: Likewise.
43114         * lib/areadlink-with-size.c: Likewise.
43115         * lib/areadlink.c: Likewise.
43116         * lib/areadlink.h: Likewise.
43117         * lib/argmatch.c: Likewise.
43118         * lib/argmatch.h: Likewise.
43119         * lib/argp-ba.c: Likewise.
43120         * lib/argp-eexst.c: Likewise.
43121         * lib/argp-fmtstream.c: Likewise.
43122         * lib/argp-fmtstream.h: Likewise.
43123         * lib/argp-fs-xinl.c: Likewise.
43124         * lib/argp-help.c: Likewise.
43125         * lib/argp-namefrob.h: Likewise.
43126         * lib/argp-parse.c: Likewise.
43127         * lib/argp-pin.c: Likewise.
43128         * lib/argp-pv.c: Likewise.
43129         * lib/argp-pvh.c: Likewise.
43130         * lib/argp-xinl.c: Likewise.
43131         * lib/argp.h: Likewise.
43132         * lib/at-func.c: Likewise.
43133         * lib/atanl.c: Likewise.
43134         * lib/backupfile.c: Likewise.
43135         * lib/backupfile.h: Likewise.
43136         * lib/basename.c: Likewise.
43137         * lib/binary-io.h: Likewise.
43138         * lib/byteswap.in.h: Likewise.
43139         * lib/c-stack.c: Likewise.
43140         * lib/c-stack.h: Likewise.
43141         * lib/c-strcasestr.c: Likewise.
43142         * lib/c-strcasestr.h: Likewise.
43143         * lib/c-strstr.c: Likewise.
43144         * lib/c-strstr.h: Likewise.
43145         * lib/c-strtod.c: Likewise.
43146         * lib/calloc.c: Likewise.
43147         * lib/canon-host.c: Likewise.
43148         * lib/canon-host.h: Likewise.
43149         * lib/canonicalize-lgpl.c: Likewise.
43150         * lib/canonicalize.c: Likewise.
43151         * lib/canonicalize.h: Likewise.
43152         * lib/ceil.c: Likewise.
43153         * lib/ceilf.c: Likewise.
43154         * lib/ceill.c: Likewise.
43155         * lib/chdir-long.c: Likewise.
43156         * lib/chdir-long.h: Likewise.
43157         * lib/chdir-safer.c: Likewise.
43158         * lib/chdir-safer.h: Likewise.
43159         * lib/chown.c: Likewise.
43160         * lib/classpath.c: Likewise.
43161         * lib/classpath.h: Likewise.
43162         * lib/clean-temp.c: Likewise.
43163         * lib/clean-temp.h: Likewise.
43164         * lib/cloexec.c: Likewise.
43165         * lib/close-stream.c: Likewise.
43166         * lib/closein.c: Likewise.
43167         * lib/closein.h: Likewise.
43168         * lib/closeout.c: Likewise.
43169         * lib/closeout.h: Likewise.
43170         * lib/concat-filename.c: Likewise.
43171         * lib/copy-file.c: Likewise.
43172         * lib/copy-file.h: Likewise.
43173         * lib/count-one-bits.h: Likewise.
43174         * lib/crc.c: Likewise.
43175         * lib/crc.h: Likewise.
43176         * lib/creat-safer.c: Likewise.
43177         * lib/csharpcomp.c: Likewise.
43178         * lib/csharpcomp.h: Likewise.
43179         * lib/csharpexec.c: Likewise.
43180         * lib/csharpexec.h: Likewise.
43181         * lib/cycle-check.c: Likewise.
43182         * lib/cycle-check.h: Likewise.
43183         * lib/diacrit.c: Likewise.
43184         * lib/diacrit.h: Likewise.
43185         * lib/diffseq.h: Likewise.
43186         * lib/dirchownmod.c: Likewise.
43187         * lib/dirent.in.h: Likewise.
43188         * lib/dirfd.c: Likewise.
43189         * lib/dirfd.h: Likewise.
43190         * lib/dirname.c: Likewise.
43191         * lib/dirname.h: Likewise.
43192         * lib/dummy.c: Likewise.
43193         * lib/dup-safer.c: Likewise.
43194         * lib/dup2.c: Likewise.
43195         * lib/eealloc.h: Likewise.
43196         * lib/error.c: Likewise.
43197         * lib/error.h: Likewise.
43198         * lib/euidaccess.c: Likewise.
43199         * lib/exclude.c: Likewise.
43200         * lib/exclude.h: Likewise.
43201         * lib/execute.c: Likewise.
43202         * lib/execute.h: Likewise.
43203         * lib/exitfail.c: Likewise.
43204         * lib/exitfail.h: Likewise.
43205         * lib/expl.c: Likewise.
43206         * lib/fatal-signal.c: Likewise.
43207         * lib/fatal-signal.h: Likewise.
43208         * lib/fbufmode.c: Likewise.
43209         * lib/fbufmode.h: Likewise.
43210         * lib/fchdir.c: Likewise.
43211         * lib/fchmodat.c: Likewise.
43212         * lib/fchownat.c: Likewise.
43213         * lib/fcntl--.h: Likewise.
43214         * lib/fcntl-safer.h: Likewise.
43215         * lib/fcntl.in.h: Likewise.
43216         * lib/fd-safer.c: Likewise.
43217         * lib/fflush.c: Likewise.
43218         * lib/file-has-acl.c: Likewise.
43219         * lib/file-set.c: Likewise.
43220         * lib/file-type.c: Likewise.
43221         * lib/file-type.h: Likewise.
43222         * lib/fileblocks.c: Likewise.
43223         * lib/filemode.c: Likewise.
43224         * lib/filemode.h: Likewise.
43225         * lib/filename.h: Likewise.
43226         * lib/filenamecat.c: Likewise.
43227         * lib/filenamecat.h: Likewise.
43228         * lib/findprog.c: Likewise.
43229         * lib/findprog.h: Likewise.
43230         * lib/float.in.h: Likewise.
43231         * lib/floor.c: Likewise.
43232         * lib/floorf.c: Likewise.
43233         * lib/floorl.c: Likewise.
43234         * lib/fopen-safer.c: Likewise.
43235         * lib/fopen.c: Likewise.
43236         * lib/fpending.c: Likewise.
43237         * lib/fpending.h: Likewise.
43238         * lib/fprintf.c: Likewise.
43239         * lib/fprintftime.h: Likewise.
43240         * lib/fpucw.h: Likewise.
43241         * lib/fpurge.c: Likewise.
43242         * lib/fpurge.h: Likewise.
43243         * lib/freadable.c: Likewise.
43244         * lib/freadable.h: Likewise.
43245         * lib/freadahead.c: Likewise.
43246         * lib/freadahead.h: Likewise.
43247         * lib/freading.c: Likewise.
43248         * lib/freading.h: Likewise.
43249         * lib/free.c: Likewise.
43250         * lib/freopen.c: Likewise.
43251         * lib/frexp.c: Likewise.
43252         * lib/frexpl.c: Likewise.
43253         * lib/fseek.c: Likewise.
43254         * lib/fseterr.c: Likewise.
43255         * lib/fseterr.h: Likewise.
43256         * lib/fstatat.c: Likewise.
43257         * lib/fstrcmp.c: Likewise.
43258         * lib/fstrcmp.h: Likewise.
43259         * lib/fsusage.c: Likewise.
43260         * lib/fsusage.h: Likewise.
43261         * lib/ftell.c: Likewise.
43262         * lib/ftello.c: Likewise.
43263         * lib/fts-cycle.c: Likewise.
43264         * lib/fts.c: Likewise.
43265         * lib/fts_.h: Likewise.
43266         * lib/full-read.c: Likewise.
43267         * lib/full-read.h: Likewise.
43268         * lib/full-write.c: Likewise.
43269         * lib/full-write.h: Likewise.
43270         * lib/fwritable.c: Likewise.
43271         * lib/fwritable.h: Likewise.
43272         * lib/fwriteerror.c: Likewise.
43273         * lib/fwriteerror.h: Likewise.
43274         * lib/fwriting.c: Likewise.
43275         * lib/fwriting.h: Likewise.
43276         * lib/gcd.c: Likewise.
43277         * lib/gcd.h: Likewise.
43278         * lib/getcwd.c: Likewise.
43279         * lib/getdate.h: Likewise.
43280         * lib/getdate.y: Likewise.
43281         * lib/getdomainname.c: Likewise.
43282         * lib/getdomainname.h: Likewise.
43283         * lib/getgroups.c: Likewise.
43284         * lib/gethostname.c: Likewise.
43285         * lib/gethrxtime.c: Likewise.
43286         * lib/gethrxtime.h: Likewise.
43287         * lib/getloadavg.c: Likewise.
43288         * lib/getndelim2.c: Likewise.
43289         * lib/getndelim2.h: Likewise.
43290         * lib/getnline.c: Likewise.
43291         * lib/getnline.h: Likewise.
43292         * lib/getopt.c: Likewise.
43293         * lib/getopt.in.h: Likewise.
43294         * lib/getopt1.c: Likewise.
43295         * lib/getopt_int.h: Likewise.
43296         * lib/getpagesize.h: Likewise.
43297         * lib/getsubopt.c: Likewise.
43298         * lib/gettime.c: Likewise.
43299         * lib/getugroups.c: Likewise.
43300         * lib/getugroups.h: Likewise.
43301         * lib/getusershell.c: Likewise.
43302         * lib/gl_anyavltree_list1.h: Likewise.
43303         * lib/gl_anyavltree_list2.h: Likewise.
43304         * lib/gl_anyhash_list1.h: Likewise.
43305         * lib/gl_anyhash_list2.h: Likewise.
43306         * lib/gl_anylinked_list1.h: Likewise.
43307         * lib/gl_anylinked_list2.h: Likewise.
43308         * lib/gl_anyrbtree_list1.h: Likewise.
43309         * lib/gl_anyrbtree_list2.h: Likewise.
43310         * lib/gl_anytree_list1.h: Likewise.
43311         * lib/gl_anytree_list2.h: Likewise.
43312         * lib/gl_anytree_oset.h: Likewise.
43313         * lib/gl_anytreehash_list1.h: Likewise.
43314         * lib/gl_anytreehash_list2.h: Likewise.
43315         * lib/gl_array_list.c: Likewise.
43316         * lib/gl_array_list.h: Likewise.
43317         * lib/gl_array_oset.c: Likewise.
43318         * lib/gl_array_oset.h: Likewise.
43319         * lib/gl_avltree_list.c: Likewise.
43320         * lib/gl_avltree_list.h: Likewise.
43321         * lib/gl_avltree_oset.c: Likewise.
43322         * lib/gl_avltree_oset.h: Likewise.
43323         * lib/gl_avltreehash_list.c: Likewise.
43324         * lib/gl_avltreehash_list.h: Likewise.
43325         * lib/gl_carray_list.c: Likewise.
43326         * lib/gl_carray_list.h: Likewise.
43327         * lib/gl_linked_list.c: Likewise.
43328         * lib/gl_linked_list.h: Likewise.
43329         * lib/gl_linkedhash_list.c: Likewise.
43330         * lib/gl_linkedhash_list.h: Likewise.
43331         * lib/gl_list.c: Likewise.
43332         * lib/gl_list.h: Likewise.
43333         * lib/gl_oset.c: Likewise.
43334         * lib/gl_oset.h: Likewise.
43335         * lib/gl_rbtree_list.c: Likewise.
43336         * lib/gl_rbtree_list.h: Likewise.
43337         * lib/gl_rbtree_oset.c: Likewise.
43338         * lib/gl_rbtree_oset.h: Likewise.
43339         * lib/gl_rbtreehash_list.c: Likewise.
43340         * lib/gl_rbtreehash_list.h: Likewise.
43341         * lib/gl_sublist.c: Likewise.
43342         * lib/gl_sublist.h: Likewise.
43343         * lib/group-member.c: Likewise.
43344         * lib/group-member.h: Likewise.
43345         * lib/hard-locale.c: Likewise.
43346         * lib/hard-locale.h: Likewise.
43347         * lib/hash-pjw.c: Likewise.
43348         * lib/hash-pjw.h: Likewise.
43349         * lib/hash-triple.c: Likewise.
43350         * lib/hash.c: Likewise.
43351         * lib/hash.h: Likewise.
43352         * lib/human.c: Likewise.
43353         * lib/human.h: Likewise.
43354         * lib/i-ring.c: Likewise.
43355         * lib/i-ring.h: Likewise.
43356         * lib/idcache.c: Likewise.
43357         * lib/imaxabs.c: Likewise.
43358         * lib/imaxdiv.c: Likewise.
43359         * lib/inet_pton.c: Likewise.
43360         * lib/inet_pton.h: Likewise.
43361         * lib/intprops.h: Likewise.
43362         * lib/inttostr.c: Likewise.
43363         * lib/inttostr.h: Likewise.
43364         * lib/inttypes.in.h: Likewise.
43365         * lib/isapipe.c: Likewise.
43366         * lib/isdir.c: Likewise.
43367         * lib/isnan.c: Likewise.
43368         * lib/isnan.h: Likewise.
43369         * lib/isnanf.c: Likewise.
43370         * lib/isnanf.h: Likewise.
43371         * lib/isnanl-nolibm.h: Likewise.
43372         * lib/isnanl.c: Likewise.
43373         * lib/isnanl.h: Likewise.
43374         * lib/javacomp.c: Likewise.
43375         * lib/javacomp.h: Likewise.
43376         * lib/javaexec.c: Likewise.
43377         * lib/javaexec.h: Likewise.
43378         * lib/javaversion.c: Likewise.
43379         * lib/javaversion.h: Likewise.
43380         * lib/javaversion.java: Likewise.
43381         * lib/lbrkprop.h: Likewise.
43382         * lib/lchmod.h: Likewise.
43383         * lib/lchown.c: Likewise.
43384         * lib/ldexpl.c: Likewise.
43385         * lib/linebreak.c: Likewise.
43386         * lib/linebreak.h: Likewise.
43387         * lib/linebuffer.c: Likewise.
43388         * lib/linebuffer.h: Likewise.
43389         * lib/locale.in.h: Likewise.
43390         * lib/logl.c: Likewise.
43391         * lib/long-options.c: Likewise.
43392         * lib/long-options.h: Likewise.
43393         * lib/lstat.c: Likewise.
43394         * lib/lstat.h: Likewise.
43395         * lib/math.in.h: Likewise.
43396         * lib/mbchar.c: Likewise.
43397         * lib/mbchar.h: Likewise.
43398         * lib/mbfile.h: Likewise.
43399         * lib/mbiter.h: Likewise.
43400         * lib/mbscasecmp.c: Likewise.
43401         * lib/mbscasestr.c: Likewise.
43402         * lib/mbschr.c: Likewise.
43403         * lib/mbscspn.c: Likewise.
43404         * lib/mbslen.c: Likewise.
43405         * lib/mbsncasecmp.c: Likewise.
43406         * lib/mbsnlen.c: Likewise.
43407         * lib/mbspbrk.c: Likewise.
43408         * lib/mbspcasecmp.c: Likewise.
43409         * lib/mbsrchr.c: Likewise.
43410         * lib/mbssep.c: Likewise.
43411         * lib/mbsspn.c: Likewise.
43412         * lib/mbsstr.c: Likewise.
43413         * lib/mbstok_r.c: Likewise.
43414         * lib/mbswidth.c: Likewise.
43415         * lib/mbswidth.h: Likewise.
43416         * lib/mbuiter.h: Likewise.
43417         * lib/memcasecmp.c: Likewise.
43418         * lib/memcasecmp.h: Likewise.
43419         * lib/memchr.c: Likewise.
43420         * lib/memcmp.c: Likewise.
43421         * lib/memcoll.c: Likewise.
43422         * lib/memcoll.h: Likewise.
43423         * lib/memcpy.c: Likewise.
43424         * lib/memrchr.c: Likewise.
43425         * lib/mkancesdirs.c: Likewise.
43426         * lib/mkdir-p.c: Likewise.
43427         * lib/mkdir-p.h: Likewise.
43428         * lib/mkdir.c: Likewise.
43429         * lib/mkdirat.c: Likewise.
43430         * lib/mkdtemp.c: Likewise.
43431         * lib/mkstemp-safer.c: Likewise.
43432         * lib/mkstemp.c: Likewise.
43433         * lib/modechange.c: Likewise.
43434         * lib/modechange.h: Likewise.
43435         * lib/mountlist.c: Likewise.
43436         * lib/mountlist.h: Likewise.
43437         * lib/mpsort.c: Likewise.
43438         * lib/nanosleep.c: Likewise.
43439         * lib/obstack.c: Likewise.
43440         * lib/obstack.h: Likewise.
43441         * lib/open-safer.c: Likewise.
43442         * lib/open.c: Likewise.
43443         * lib/openat-die.c: Likewise.
43444         * lib/openat-priv.h: Likewise.
43445         * lib/openat-proc.c: Likewise.
43446         * lib/openat.c: Likewise.
43447         * lib/openat.h: Likewise.
43448         * lib/pagealign_alloc.c: Likewise.
43449         * lib/pagealign_alloc.h: Likewise.
43450         * lib/physmem.c: Likewise.
43451         * lib/physmem.h: Likewise.
43452         * lib/pipe-safer.c: Likewise.
43453         * lib/pipe.c: Likewise.
43454         * lib/pipe.h: Likewise.
43455         * lib/posixtm.c: Likewise.
43456         * lib/posixtm.h: Likewise.
43457         * lib/posixver.c: Likewise.
43458         * lib/printf-frexp.c: Likewise.
43459         * lib/printf-frexp.h: Likewise.
43460         * lib/printf-frexpl.c: Likewise.
43461         * lib/printf-frexpl.h: Likewise.
43462         * lib/printf.c: Likewise.
43463         * lib/progname.c: Likewise.
43464         * lib/progname.h: Likewise.
43465         * lib/progreloc.c: Likewise.
43466         * lib/putenv.c: Likewise.
43467         * lib/quote.c: Likewise.
43468         * lib/quote.h: Likewise.
43469         * lib/quotearg.c: Likewise.
43470         * lib/quotearg.h: Likewise.
43471         * lib/raise.c: Likewise.
43472         * lib/readline.c: Likewise.
43473         * lib/readline.h: Likewise.
43474         * lib/readlink.c: Likewise.
43475         * lib/readtokens.c: Likewise.
43476         * lib/readtokens.h: Likewise.
43477         * lib/readtokens0.c: Likewise.
43478         * lib/readtokens0.h: Likewise.
43479         * lib/readutmp.c: Likewise.
43480         * lib/readutmp.h: Likewise.
43481         * lib/realloc.c: Likewise.
43482         * lib/relocwrapper.c: Likewise.
43483         * lib/rename-dest-slash.c: Likewise.
43484         * lib/rename.c: Likewise.
43485         * lib/rmdir.c: Likewise.
43486         * lib/rpmatch.c: Likewise.
43487         * lib/safe-read.c: Likewise.
43488         * lib/safe-read.h: Likewise.
43489         * lib/safe-write.c: Likewise.
43490         * lib/safe-write.h: Likewise.
43491         * lib/same-inode.h: Likewise.
43492         * lib/same.c: Likewise.
43493         * lib/same.h: Likewise.
43494         * lib/save-cwd.c: Likewise.
43495         * lib/save-cwd.h: Likewise.
43496         * lib/savedir.c: Likewise.
43497         * lib/savedir.h: Likewise.
43498         * lib/savewd.c: Likewise.
43499         * lib/savewd.h: Likewise.
43500         * lib/search.in.h: Likewise.
43501         * lib/setenv.c: Likewise.
43502         * lib/setenv.h: Likewise.
43503         * lib/settime.c: Likewise.
43504         * lib/sh-quote.c: Likewise.
43505         * lib/sh-quote.h: Likewise.
43506         * lib/sig2str.c: Likewise.
43507         * lib/sig2str.h: Likewise.
43508         * lib/signal.in.h: Likewise.
43509         * lib/signbitd.c: Likewise.
43510         * lib/signbitf.c: Likewise.
43511         * lib/signbitl.c: Likewise.
43512         * lib/sigprocmask.c: Likewise.
43513         * lib/sincosl.c: Likewise.
43514         * lib/sleep.c: Likewise.
43515         * lib/sprintf.c: Likewise.
43516         * lib/sqrtl.c: Likewise.
43517         * lib/stat-time.h: Likewise.
43518         * lib/stdio--.h: Likewise.
43519         * lib/stdio-safer.h: Likewise.
43520         * lib/stdlib--.h: Likewise.
43521         * lib/stdlib-safer.h: Likewise.
43522         * lib/stdlib.in.h: Likewise.
43523         * lib/stpcpy.c: Likewise.
43524         * lib/stpncpy.c: Likewise.
43525         * lib/strchrnul.c: Likewise.
43526         * lib/strcspn.c: Likewise.
43527         * lib/strerror.c: Likewise.
43528         * lib/strftime.c: Likewise.
43529         * lib/strftime.h: Likewise.
43530         * lib/striconveh.c: Likewise.
43531         * lib/striconveh.h: Likewise.
43532         * lib/striconveha.c: Likewise.
43533         * lib/striconveha.h: Likewise.
43534         * lib/stripslash.c: Likewise.
43535         * lib/strnlen1.c: Likewise.
43536         * lib/strnlen1.h: Likewise.
43537         * lib/strtod.c: Likewise.
43538         * lib/strtoimax.c: Likewise.
43539         * lib/strtok_r.c: Likewise.
43540         * lib/strtol.c: Likewise.
43541         * lib/strtoll.c: Likewise.
43542         * lib/strtoul.c: Likewise.
43543         * lib/strtoull.c: Likewise.
43544         * lib/sysexits.in.h: Likewise.
43545         * lib/tempname.c: Likewise.
43546         * lib/tempname.h: Likewise.
43547         * lib/timespec.h: Likewise.
43548         * lib/tls.c: Likewise.
43549         * lib/tls.h: Likewise.
43550         * lib/tmpdir.c: Likewise.
43551         * lib/tmpdir.h: Likewise.
43552         * lib/tmpfile-safer.c: Likewise.
43553         * lib/tmpfile.c: Likewise.
43554         * lib/trigl.c: Likewise.
43555         * lib/trigl.h: Likewise.
43556         * lib/trim.c: Likewise.
43557         * lib/trim.h: Likewise.
43558         * lib/trunc.c: Likewise.
43559         * lib/truncf.c: Likewise.
43560         * lib/truncl.c: Likewise.
43561         * lib/tsearch.c: Likewise.
43562         * lib/unicodeio.c: Likewise.
43563         * lib/unicodeio.h: Likewise.
43564         * lib/unistd--.h: Likewise.
43565         * lib/unistd-safer.h: Likewise.
43566         * lib/unistdio/ulc-fprintf.c: Likewise.
43567         * lib/unistdio/ulc-vfprintf.c: Likewise.
43568         * lib/unlinkdir.c: Likewise.
43569         * lib/unlinkdir.h: Likewise.
43570         * lib/unlocked-io.h: Likewise.
43571         * lib/unsetenv.c: Likewise.
43572         * lib/userspec.c: Likewise.
43573         * lib/utime.c: Likewise.
43574         * lib/utimecmp.c: Likewise.
43575         * lib/utimecmp.h: Likewise.
43576         * lib/utimens.c: Likewise.
43577         * lib/verify.h: Likewise.
43578         * lib/verror.c: Likewise.
43579         * lib/verror.h: Likewise.
43580         * lib/version-etc-fsf.c: Likewise.
43581         * lib/version-etc.c: Likewise.
43582         * lib/version-etc.h: Likewise.
43583         * lib/vfprintf.c: Likewise.
43584         * lib/vprintf.c: Likewise.
43585         * lib/vsprintf.c: Likewise.
43586         * lib/w32spawn.h: Likewise.
43587         * lib/wait-process.c: Likewise.
43588         * lib/wait-process.h: Likewise.
43589         * lib/wcwidth.c: Likewise.
43590         * lib/write-any-file.c: Likewise.
43591         * lib/xalloc-die.c: Likewise.
43592         * lib/xalloc.h: Likewise.
43593         * lib/xasprintf.c: Likewise.
43594         * lib/xgetcwd.c: Likewise.
43595         * lib/xgetcwd.h: Likewise.
43596         * lib/xgetdomainname.c: Likewise.
43597         * lib/xgetdomainname.h: Likewise.
43598         * lib/xgethostname.c: Likewise.
43599         * lib/xmalloc.c: Likewise.
43600         * lib/xmalloca.c: Likewise.
43601         * lib/xmalloca.h: Likewise.
43602         * lib/xmemcoll.c: Likewise.
43603         * lib/xnanosleep.c: Likewise.
43604         * lib/xreadlink.c: Likewise.
43605         * lib/xreadlink.h: Likewise.
43606         * lib/xsetenv.c: Likewise.
43607         * lib/xsetenv.h: Likewise.
43608         * lib/xstriconv.c: Likewise.
43609         * lib/xstriconv.h: Likewise.
43610         * lib/xstrndup.c: Likewise.
43611         * lib/xstrndup.h: Likewise.
43612         * lib/xstrtod.c: Likewise.
43613         * lib/xstrtod.h: Likewise.
43614         * lib/xstrtol-error.c: Likewise.
43615         * lib/xstrtol.c: Likewise.
43616         * lib/xstrtol.h: Likewise.
43617         * lib/xtime.h: Likewise.
43618         * lib/xvasprintf.c: Likewise.
43619         * lib/xvasprintf.h: Likewise.
43620         * lib/yesno.c: Likewise.
43621         * lib/yesno.h: Likewise.
43622         * posix-modules: Likewise.
43623         * tests/test-alloca-opt.c: Likewise.
43624         * tests/test-arcfour.c: Likewise.
43625         * tests/test-arctwo.c: Likewise.
43626         * tests/test-argmatch.c: Likewise.
43627         * tests/test-argp-2.sh: Likewise.
43628         * tests/test-argp.c: Likewise.
43629         * tests/test-arpa_inet.c: Likewise.
43630         * tests/test-array_list.c: Likewise.
43631         * tests/test-array_oset.c: Likewise.
43632         * tests/test-atexit.c: Likewise.
43633         * tests/test-avltree_list.c: Likewise.
43634         * tests/test-avltree_oset.c: Likewise.
43635         * tests/test-avltreehash_list.c: Likewise.
43636         * tests/test-base64.c: Likewise.
43637         * tests/test-binary-io.c: Likewise.
43638         * tests/test-byteswap.c: Likewise.
43639         * tests/test-c-ctype.c: Likewise.
43640         * tests/test-c-strcasecmp.c: Likewise.
43641         * tests/test-c-strcasestr.c: Likewise.
43642         * tests/test-c-strncasecmp.c: Likewise.
43643         * tests/test-c-strstr.c: Likewise.
43644         * tests/test-canonicalize-lgpl.c: Likewise.
43645         * tests/test-canonicalize.c: Likewise.
43646         * tests/test-carray_list.c: Likewise.
43647         * tests/test-ceilf.c: Likewise.
43648         * tests/test-ceill.c: Likewise.
43649         * tests/test-count-one-bits.c: Likewise.
43650         * tests/test-crc.c: Likewise.
43651         * tests/test-dirname.c: Likewise.
43652         * tests/test-fbufmode.c: Likewise.
43653         * tests/test-fcntl.c: Likewise.
43654         * tests/test-fflush.c: Likewise.
43655         * tests/test-floorf.c: Likewise.
43656         * tests/test-floorl.c: Likewise.
43657         * tests/test-fopen.c: Likewise.
43658         * tests/test-fprintf-posix.c: Likewise.
43659         * tests/test-fprintf-posix.h: Likewise.
43660         * tests/test-fpurge.c: Likewise.
43661         * tests/test-freadable.c: Likewise.
43662         * tests/test-freadahead.c: Likewise.
43663         * tests/test-freading.c: Likewise.
43664         * tests/test-freopen.c: Likewise.
43665         * tests/test-frexp.c: Likewise.
43666         * tests/test-frexpl.c: Likewise.
43667         * tests/test-fseek.c: Likewise.
43668         * tests/test-fseeko.c: Likewise.
43669         * tests/test-fseterr.c: Likewise.
43670         * tests/test-fstrcmp.c: Likewise.
43671         * tests/test-ftell.c: Likewise.
43672         * tests/test-ftello.c: Likewise.
43673         * tests/test-fwritable.c: Likewise.
43674         * tests/test-fwriting.c: Likewise.
43675         * tests/test-getaddrinfo.c: Likewise.
43676         * tests/test-getpass.c: Likewise.
43677         * tests/test-gettimeofday.c: Likewise.
43678         * tests/test-hmac-md5.c: Likewise.
43679         * tests/test-hmac-sha1.c: Likewise.
43680         * tests/test-iconv.c: Likewise.
43681         * tests/test-iconvme.c: Likewise.
43682         * tests/test-inttypes.c: Likewise.
43683         * tests/test-isnan.c: Likewise.
43684         * tests/test-isnanf.c: Likewise.
43685         * tests/test-isnanl-nolibm.c: Likewise.
43686         * tests/test-isnanl.c: Likewise.
43687         * tests/test-isnanl.h: Likewise.
43688         * tests/test-ldexpl.c: Likewise.
43689         * tests/test-linked_list.c: Likewise.
43690         * tests/test-linkedhash_list.c: Likewise.
43691         * tests/test-locale.c: Likewise.
43692         * tests/test-localename.c: Likewise.
43693         * tests/test-lock.c: Likewise.
43694         * tests/test-lseek.c: Likewise.
43695         * tests/test-malloca.c: Likewise.
43696         * tests/test-math.c: Likewise.
43697         * tests/test-mbscasecmp.c: Likewise.
43698         * tests/test-mbscasestr1.c: Likewise.
43699         * tests/test-mbscasestr2.c: Likewise.
43700         * tests/test-mbscasestr3.c: Likewise.
43701         * tests/test-mbscasestr4.c: Likewise.
43702         * tests/test-mbschr.c: Likewise.
43703         * tests/test-mbscspn.c: Likewise.
43704         * tests/test-mbsncasecmp.c: Likewise.
43705         * tests/test-mbspbrk.c: Likewise.
43706         * tests/test-mbspcasecmp.c: Likewise.
43707         * tests/test-mbsrchr.c: Likewise.
43708         * tests/test-mbsspn.c: Likewise.
43709         * tests/test-mbsstr1.c: Likewise.
43710         * tests/test-mbsstr2.c: Likewise.
43711         * tests/test-mbsstr3.c: Likewise.
43712         * tests/test-md5.c: Likewise.
43713         * tests/test-memmem.c: Likewise.
43714         * tests/test-netinet_in.c: Likewise.
43715         * tests/test-open.c: Likewise.
43716         * tests/test-printf-frexp.c: Likewise.
43717         * tests/test-printf-frexpl.c: Likewise.
43718         * tests/test-printf-posix.c: Likewise.
43719         * tests/test-printf-posix.h: Likewise.
43720         * tests/test-rbtree_list.c: Likewise.
43721         * tests/test-rbtree_oset.c: Likewise.
43722         * tests/test-rbtreehash_list.c: Likewise.
43723         * tests/test-read-file.c: Likewise.
43724         * tests/test-rijndael.c: Likewise.
43725         * tests/test-search.c: Likewise.
43726         * tests/test-signbit.c: Likewise.
43727         * tests/test-sleep.c: Likewise.
43728         * tests/test-snprintf-posix.c: Likewise.
43729         * tests/test-snprintf-posix.h: Likewise.
43730         * tests/test-snprintf.c: Likewise.
43731         * tests/test-sprintf-posix.c: Likewise.
43732         * tests/test-sprintf-posix.h: Likewise.
43733         * tests/test-stat-time.c: Likewise.
43734         * tests/test-stdbool.c: Likewise.
43735         * tests/test-stdint.c: Likewise.
43736         * tests/test-stdio.c: Likewise.
43737         * tests/test-stdlib.c: Likewise.
43738         * tests/test-stpncpy.c: Likewise.
43739         * tests/test-strcasestr.c: Likewise.
43740         * tests/test-striconv.c: Likewise.
43741         * tests/test-striconveh.c: Likewise.
43742         * tests/test-striconveha.c: Likewise.
43743         * tests/test-string.c: Likewise.
43744         * tests/test-sys_select.c: Likewise.
43745         * tests/test-sys_socket.c: Likewise.
43746         * tests/test-sys_stat.c: Likewise.
43747         * tests/test-sys_time.c: Likewise.
43748         * tests/test-sysexits.c: Likewise.
43749         * tests/test-time.c: Likewise.
43750         * tests/test-tls.c: Likewise.
43751         * tests/test-trunc.c: Likewise.
43752         * tests/test-truncf.c: Likewise.
43753         * tests/test-truncl.c: Likewise.
43754         * tests/test-unistd.c: Likewise.
43755         * tests/test-vasnprintf-posix.c: Likewise.
43756         * tests/test-vasnprintf-posix2.c: Likewise.
43757         * tests/test-vasnprintf.c: Likewise.
43758         * tests/test-vasprintf-posix.c: Likewise.
43759         * tests/test-vasprintf.c: Likewise.
43760         * tests/test-verify.c: Likewise.
43761         * tests/test-vfprintf-posix.c: Likewise.
43762         * tests/test-vprintf-posix.c: Likewise.
43763         * tests/test-vsnprintf-posix.c: Likewise.
43764         * tests/test-vsnprintf.c: Likewise.
43765         * tests/test-vsprintf-posix.c: Likewise.
43766         * tests/test-wchar.c: Likewise.
43767         * tests/test-wctype.c: Likewise.
43768         * tests/test-wcwidth.c: Likewise.
43769         * tests/test-xstrtol.c: Likewise.
43770         * tests/test-xvasprintf.c: Likewise.
43771         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
43772         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
43773         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43774         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43775         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43776         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
43777         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43778         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43779         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43780         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
43781         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43782         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43783         * tests/uniname/test-uninames.c: Likewise.
43784         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
43785         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
43786         * tests/unistdio/test-u16-printf1.h: Likewise.
43787         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
43788         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
43789         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
43790         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
43791         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
43792         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
43793         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
43794         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
43795         * tests/unistdio/test-u32-printf1.h: Likewise.
43796         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
43797         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
43798         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
43799         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
43800         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
43801         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
43802         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
43803         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
43804         * tests/unistdio/test-u8-printf1.h: Likewise.
43805         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
43806         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
43807         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
43808         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
43809         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
43810         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
43811         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
43812         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
43813         * tests/unistdio/test-ulc-printf1.h: Likewise.
43814         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
43815         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
43816         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
43817         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
43818         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
43819         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
43820         * tests/uniwidth/test-u16-strwidth.c: Likewise.
43821         * tests/uniwidth/test-u16-width.c: Likewise.
43822         * tests/uniwidth/test-u32-strwidth.c: Likewise.
43823         * tests/uniwidth/test-u32-width.c: Likewise.
43824         * tests/uniwidth/test-u8-strwidth.c: Likewise.
43825         * tests/uniwidth/test-u8-width.c: Likewise.
43826         * tests/uniwidth/test-uc_width.c: Likewise.
43827         * config/srclist-update: Likewise.
43828         (fixlicense): Update to GPLv3+.
43829
43830         Change copyright notice from LGPLv2.1+ to LGPLv3+.
43831         * tests/test-tsearch.c: Change copyright notice.
43832
43833         Change copyright notice from LGPLv2.0+ to LGPLv3+.
43834         * lib/c-strcaseeq.h: Change copyright notice.
43835         * lib/streq.h: Likewise.
43836         * lib/uniconv.h: Likewise.
43837         * lib/uniconv/u-conv-from-enc.h: Likewise.
43838         * lib/uniconv/u-conv-to-enc.h: Likewise.
43839         * lib/uniconv/u-strconv-from-enc.h: Likewise.
43840         * lib/uniconv/u-strconv-to-enc.h: Likewise.
43841         * lib/uniconv/u16-conv-from-enc.c: Likewise.
43842         * lib/uniconv/u16-conv-to-enc.c: Likewise.
43843         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
43844         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
43845         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
43846         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
43847         * lib/uniconv/u32-conv-from-enc.c: Likewise.
43848         * lib/uniconv/u32-conv-to-enc.c: Likewise.
43849         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
43850         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
43851         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
43852         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
43853         * lib/uniconv/u8-conv-from-enc.c: Likewise.
43854         * lib/uniconv/u8-conv-to-enc.c: Likewise.
43855         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
43856         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
43857         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
43858         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
43859         * lib/uniname.h: Likewise.
43860         * lib/uniname/uniname.c: Likewise.
43861         * lib/unistdio.h: Likewise.
43862         * lib/unistdio/u-asnprintf.h: Likewise.
43863         * lib/unistdio/u-asprintf.h: Likewise.
43864         * lib/unistdio/u-printf-args.c: Likewise.
43865         * lib/unistdio/u-printf-args.h: Likewise.
43866         * lib/unistdio/u-printf-parse.h: Likewise.
43867         * lib/unistdio/u-snprintf.h: Likewise.
43868         * lib/unistdio/u-sprintf.h: Likewise.
43869         * lib/unistdio/u-vasprintf.h: Likewise.
43870         * lib/unistdio/u-vsnprintf.h: Likewise.
43871         * lib/unistdio/u-vsprintf.h: Likewise.
43872         * lib/unistdio/u16-asnprintf.c: Likewise.
43873         * lib/unistdio/u16-asprintf.c: Likewise.
43874         * lib/unistdio/u16-printf-parse.c: Likewise.
43875         * lib/unistdio/u16-snprintf.c: Likewise.
43876         * lib/unistdio/u16-sprintf.c: Likewise.
43877         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
43878         * lib/unistdio/u16-u16-asprintf.c: Likewise.
43879         * lib/unistdio/u16-u16-snprintf.c: Likewise.
43880         * lib/unistdio/u16-u16-sprintf.c: Likewise.
43881         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
43882         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
43883         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
43884         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
43885         * lib/unistdio/u16-vasnprintf.c: Likewise.
43886         * lib/unistdio/u16-vasprintf.c: Likewise.
43887         * lib/unistdio/u16-vsnprintf.c: Likewise.
43888         * lib/unistdio/u16-vsprintf.c: Likewise.
43889         * lib/unistdio/u32-asnprintf.c: Likewise.
43890         * lib/unistdio/u32-asprintf.c: Likewise.
43891         * lib/unistdio/u32-printf-parse.c: Likewise.
43892         * lib/unistdio/u32-snprintf.c: Likewise.
43893         * lib/unistdio/u32-sprintf.c: Likewise.
43894         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
43895         * lib/unistdio/u32-u32-asprintf.c: Likewise.
43896         * lib/unistdio/u32-u32-snprintf.c: Likewise.
43897         * lib/unistdio/u32-u32-sprintf.c: Likewise.
43898         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
43899         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
43900         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
43901         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
43902         * lib/unistdio/u32-vasnprintf.c: Likewise.
43903         * lib/unistdio/u32-vasprintf.c: Likewise.
43904         * lib/unistdio/u32-vsnprintf.c: Likewise.
43905         * lib/unistdio/u32-vsprintf.c: Likewise.
43906         * lib/unistdio/u8-asnprintf.c: Likewise.
43907         * lib/unistdio/u8-asprintf.c: Likewise.
43908         * lib/unistdio/u8-printf-parse.c: Likewise.
43909         * lib/unistdio/u8-snprintf.c: Likewise.
43910         * lib/unistdio/u8-sprintf.c: Likewise.
43911         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
43912         * lib/unistdio/u8-u8-asprintf.c: Likewise.
43913         * lib/unistdio/u8-u8-snprintf.c: Likewise.
43914         * lib/unistdio/u8-u8-sprintf.c: Likewise.
43915         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
43916         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
43917         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
43918         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
43919         * lib/unistdio/u8-vasnprintf.c: Likewise.
43920         * lib/unistdio/u8-vasprintf.c: Likewise.
43921         * lib/unistdio/u8-vsnprintf.c: Likewise.
43922         * lib/unistdio/u8-vsprintf.c: Likewise.
43923         * lib/unistdio/ulc-asnprintf.c: Likewise.
43924         * lib/unistdio/ulc-asprintf.c: Likewise.
43925         * lib/unistdio/ulc-printf-parse.c: Likewise.
43926         * lib/unistdio/ulc-snprintf.c: Likewise.
43927         * lib/unistdio/ulc-sprintf.c: Likewise.
43928         * lib/unistdio/ulc-vasnprintf.c: Likewise.
43929         * lib/unistdio/ulc-vasprintf.c: Likewise.
43930         * lib/unistdio/ulc-vsnprintf.c: Likewise.
43931         * lib/unistdio/ulc-vsprintf.c: Likewise.
43932         * lib/unistr.h: Likewise.
43933         * lib/unistr/u-cpy-alloc.h: Likewise.
43934         * lib/unistr/u-cpy.h: Likewise.
43935         * lib/unistr/u-endswith.h: Likewise.
43936         * lib/unistr/u-move.h: Likewise.
43937         * lib/unistr/u-set.h: Likewise.
43938         * lib/unistr/u-startswith.h: Likewise.
43939         * lib/unistr/u-stpcpy.h: Likewise.
43940         * lib/unistr/u-stpncpy.h: Likewise.
43941         * lib/unistr/u-strcat.h: Likewise.
43942         * lib/unistr/u-strcpy.h: Likewise.
43943         * lib/unistr/u-strcspn.h: Likewise.
43944         * lib/unistr/u-strdup.h: Likewise.
43945         * lib/unistr/u-strlen.h: Likewise.
43946         * lib/unistr/u-strncat.h: Likewise.
43947         * lib/unistr/u-strncpy.h: Likewise.
43948         * lib/unistr/u-strnlen.h: Likewise.
43949         * lib/unistr/u-strpbrk.h: Likewise.
43950         * lib/unistr/u-strspn.h: Likewise.
43951         * lib/unistr/u-strstr.h: Likewise.
43952         * lib/unistr/u-strtok.h: Likewise.
43953         * lib/unistr/u16-check.c: Likewise.
43954         * lib/unistr/u16-chr.c: Likewise.
43955         * lib/unistr/u16-cmp.c: Likewise.
43956         * lib/unistr/u16-cpy-alloc.c: Likewise.
43957         * lib/unistr/u16-cpy.c: Likewise.
43958         * lib/unistr/u16-endswith.c: Likewise.
43959         * lib/unistr/u16-mblen.c: Likewise.
43960         * lib/unistr/u16-mbsnlen.c: Likewise.
43961         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43962         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43963         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43964         * lib/unistr/u16-mbtouc.c: Likewise.
43965         * lib/unistr/u16-mbtoucr.c: Likewise.
43966         * lib/unistr/u16-move.c: Likewise.
43967         * lib/unistr/u16-next.c: Likewise.
43968         * lib/unistr/u16-prev.c: Likewise.
43969         * lib/unistr/u16-set.c: Likewise.
43970         * lib/unistr/u16-startswith.c: Likewise.
43971         * lib/unistr/u16-stpcpy.c: Likewise.
43972         * lib/unistr/u16-stpncpy.c: Likewise.
43973         * lib/unistr/u16-strcat.c: Likewise.
43974         * lib/unistr/u16-strchr.c: Likewise.
43975         * lib/unistr/u16-strcmp.c: Likewise.
43976         * lib/unistr/u16-strcpy.c: Likewise.
43977         * lib/unistr/u16-strcspn.c: Likewise.
43978         * lib/unistr/u16-strdup.c: Likewise.
43979         * lib/unistr/u16-strlen.c: Likewise.
43980         * lib/unistr/u16-strmblen.c: Likewise.
43981         * lib/unistr/u16-strmbtouc.c: Likewise.
43982         * lib/unistr/u16-strncat.c: Likewise.
43983         * lib/unistr/u16-strncmp.c: Likewise.
43984         * lib/unistr/u16-strncpy.c: Likewise.
43985         * lib/unistr/u16-strnlen.c: Likewise.
43986         * lib/unistr/u16-strpbrk.c: Likewise.
43987         * lib/unistr/u16-strrchr.c: Likewise.
43988         * lib/unistr/u16-strspn.c: Likewise.
43989         * lib/unistr/u16-strstr.c: Likewise.
43990         * lib/unistr/u16-strtok.c: Likewise.
43991         * lib/unistr/u16-to-u32.c: Likewise.
43992         * lib/unistr/u16-to-u8.c: Likewise.
43993         * lib/unistr/u16-uctomb-aux.c: Likewise.
43994         * lib/unistr/u16-uctomb.c: Likewise.
43995         * lib/unistr/u32-check.c: Likewise.
43996         * lib/unistr/u32-chr.c: Likewise.
43997         * lib/unistr/u32-cmp.c: Likewise.
43998         * lib/unistr/u32-cpy-alloc.c: Likewise.
43999         * lib/unistr/u32-cpy.c: Likewise.
44000         * lib/unistr/u32-endswith.c: Likewise.
44001         * lib/unistr/u32-mblen.c: Likewise.
44002         * lib/unistr/u32-mbsnlen.c: Likewise.
44003         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44004         * lib/unistr/u32-mbtouc.c: Likewise.
44005         * lib/unistr/u32-mbtoucr.c: Likewise.
44006         * lib/unistr/u32-move.c: Likewise.
44007         * lib/unistr/u32-next.c: Likewise.
44008         * lib/unistr/u32-prev.c: Likewise.
44009         * lib/unistr/u32-set.c: Likewise.
44010         * lib/unistr/u32-startswith.c: Likewise.
44011         * lib/unistr/u32-stpcpy.c: Likewise.
44012         * lib/unistr/u32-stpncpy.c: Likewise.
44013         * lib/unistr/u32-strcat.c: Likewise.
44014         * lib/unistr/u32-strchr.c: Likewise.
44015         * lib/unistr/u32-strcmp.c: Likewise.
44016         * lib/unistr/u32-strcpy.c: Likewise.
44017         * lib/unistr/u32-strcspn.c: Likewise.
44018         * lib/unistr/u32-strdup.c: Likewise.
44019         * lib/unistr/u32-strlen.c: Likewise.
44020         * lib/unistr/u32-strmblen.c: Likewise.
44021         * lib/unistr/u32-strmbtouc.c: Likewise.
44022         * lib/unistr/u32-strncat.c: Likewise.
44023         * lib/unistr/u32-strncmp.c: Likewise.
44024         * lib/unistr/u32-strncpy.c: Likewise.
44025         * lib/unistr/u32-strnlen.c: Likewise.
44026         * lib/unistr/u32-strpbrk.c: Likewise.
44027         * lib/unistr/u32-strrchr.c: Likewise.
44028         * lib/unistr/u32-strspn.c: Likewise.
44029         * lib/unistr/u32-strstr.c: Likewise.
44030         * lib/unistr/u32-strtok.c: Likewise.
44031         * lib/unistr/u32-to-u16.c: Likewise.
44032         * lib/unistr/u32-to-u8.c: Likewise.
44033         * lib/unistr/u32-uctomb.c: Likewise.
44034         * lib/unistr/u8-check.c: Likewise.
44035         * lib/unistr/u8-chr.c: Likewise.
44036         * lib/unistr/u8-cmp.c: Likewise.
44037         * lib/unistr/u8-cpy-alloc.c: Likewise.
44038         * lib/unistr/u8-cpy.c: Likewise.
44039         * lib/unistr/u8-endswith.c: Likewise.
44040         * lib/unistr/u8-mblen.c: Likewise.
44041         * lib/unistr/u8-mbsnlen.c: Likewise.
44042         * lib/unistr/u8-mbtouc-aux.c: Likewise.
44043         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44044         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44045         * lib/unistr/u8-mbtouc.c: Likewise.
44046         * lib/unistr/u8-mbtoucr.c: Likewise.
44047         * lib/unistr/u8-move.c: Likewise.
44048         * lib/unistr/u8-next.c: Likewise.
44049         * lib/unistr/u8-prev.c: Likewise.
44050         * lib/unistr/u8-set.c: Likewise.
44051         * lib/unistr/u8-startswith.c: Likewise.
44052         * lib/unistr/u8-stpcpy.c: Likewise.
44053         * lib/unistr/u8-stpncpy.c: Likewise.
44054         * lib/unistr/u8-strcat.c: Likewise.
44055         * lib/unistr/u8-strchr.c: Likewise.
44056         * lib/unistr/u8-strcmp.c: Likewise.
44057         * lib/unistr/u8-strcpy.c: Likewise.
44058         * lib/unistr/u8-strcspn.c: Likewise.
44059         * lib/unistr/u8-strdup.c: Likewise.
44060         * lib/unistr/u8-strlen.c: Likewise.
44061         * lib/unistr/u8-strmblen.c: Likewise.
44062         * lib/unistr/u8-strmbtouc.c: Likewise.
44063         * lib/unistr/u8-strncat.c: Likewise.
44064         * lib/unistr/u8-strncmp.c: Likewise.
44065         * lib/unistr/u8-strncpy.c: Likewise.
44066         * lib/unistr/u8-strnlen.c: Likewise.
44067         * lib/unistr/u8-strpbrk.c: Likewise.
44068         * lib/unistr/u8-strrchr.c: Likewise.
44069         * lib/unistr/u8-strspn.c: Likewise.
44070         * lib/unistr/u8-strstr.c: Likewise.
44071         * lib/unistr/u8-strtok.c: Likewise.
44072         * lib/unistr/u8-to-u16.c: Likewise.
44073         * lib/unistr/u8-to-u32.c: Likewise.
44074         * lib/unistr/u8-uctomb-aux.c: Likewise.
44075         * lib/unistr/u8-uctomb.c: Likewise.
44076         * lib/unitypes.h: Likewise.
44077         * lib/uniwidth.h: Likewise.
44078         * lib/uniwidth/cjk.h: Likewise.
44079         * lib/uniwidth/u16-strwidth.c: Likewise.
44080         * lib/uniwidth/u16-width.c: Likewise.
44081         * lib/uniwidth/u32-strwidth.c: Likewise.
44082         * lib/uniwidth/u32-width.c: Likewise.
44083         * lib/uniwidth/u8-strwidth.c: Likewise.
44084         * lib/uniwidth/u8-width.c: Likewise.
44085         * lib/uniwidth/width.c: Likewise.
44086
44087 2007-10-07  Bruno Haible  <bruno@clisp.org>
44088
44089         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
44090         The file is still under LGPL (see modules/inttypes).
44091
44092 2007-10-06  Bruno Haible  <bruno@clisp.org>
44093
44094         * modules/trunc (Dependencies): Add 'extensions'.
44095         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
44096         Reported by Ben Pfaff <blp@gnu.org>.
44097
44098 2007-10-06  Bruno Haible  <bruno@clisp.org>
44099
44100         * modules/freopen-tests: New file.
44101         * tests/test-freopen.c: New file.
44102
44103         * modules/fopen-tests: New file.
44104         * tests/test-fopen.c: New file.
44105
44106         * modules/fopen: New file.
44107         * lib/fopen.c: New file.
44108         * m4/fopen.m4: New file.
44109         * modules/freopen: New file.
44110         * lib/freopen.c: New file.
44111         * m4/freopen.m4: New file.
44112         * lib/stdio.in.h (fopen, freopen): New declarations.
44113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
44114         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44115         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
44116         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44117         * doc/functions/fopen.texi: Mention the 'fopen' module.
44118         * doc/functions/freopen.texi: Mention the 'freopen' module.
44119
44120 2007-10-06  Bruno Haible  <bruno@clisp.org>
44121
44122         * modules/open-tests: New file.
44123         * tests/test-open.c: New file.
44124
44125         * modules/open: New file.
44126         * lib/open.c: New file.
44127         * m4/open.m4: New file.
44128         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
44129         lib/open.c does.
44130         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
44131         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
44132         macros.
44133         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
44134         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
44135         REPLACE_OPEN.
44136         * doc/functions/open.texi: Mention the 'open' module.
44137
44138 2007-10-04  Bruno Haible  <bruno@clisp.org>
44139
44140         * modules/ceill-tests: New file.
44141         * tests/test-ceill.c: New file.
44142
44143         * modules/ceill: New file.
44144         * lib/ceill.c: Replace entire file.
44145         * m4/ceill.m4: New file.
44146         * lib/math.in.h (ceill): Replace declaration.
44147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
44148         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
44149         * doc/functions/ceill.texi: Mention the 'ceill' module.
44150         * modules/mathl (Files): Remove lib/ceill.c.
44151         (Depends-on): Add ceill.
44152
44153 2007-10-04  Bruno Haible  <bruno@clisp.org>
44154
44155         * modules/ceilf-tests: New file.
44156         * tests/test-ceilf.c: New file.
44157
44158         * modules/ceilf: New file.
44159         * lib/ceil.c: New file.
44160         * lib/ceilf.c: New file.
44161         * m4/ceilf.m4: New file.
44162         * lib/math.in.h (ceilf): New declaration.
44163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
44164         HAVE_DECL_CEILF.
44165         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
44166         HAVE_DECL_CEILF.
44167         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
44168
44169 2007-10-04  Bruno Haible  <bruno@clisp.org>
44170
44171         * modules/floorl-tests: New file.
44172         * tests/test-floorl.c: New file.
44173
44174         * modules/floorl: New file.
44175         * lib/floorl.c: Replace entire file.
44176         * m4/floorl.m4: New file.
44177         * lib/math.in.h (floorl): Replace declaration.
44178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
44179         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
44180         * doc/functions/floorl.texi: Mention the 'floorl' module.
44181         * modules/mathl (Files): Remove lib/floorl.c.
44182         (Depends-on): Add floorl.
44183
44184 2007-10-04  Bruno Haible  <bruno@clisp.org>
44185
44186         * modules/floorf-tests: New file.
44187         * tests/test-floorf.c: New file.
44188
44189         * modules/floorf: New file.
44190         * lib/floor.c: New file.
44191         * lib/floorf.c: New file.
44192         * m4/floorf.m4: New file.
44193         * lib/math.in.h (floorf): New declaration.
44194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
44195         HAVE_DECL_FLOORF.
44196         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
44197         HAVE_DECL_FLOORF.
44198         * doc/functions/floorf.texi: Mention the 'floorf' module.
44199
44200 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
44201             Bruno Haible  <bruno@clisp.org>
44202
44203         Advertise for the Git server instead of the CVS server.
44204         * doc/gnulib-intro.texi (Steady Development): Mention the Git
44205         repository instead of the CVS one.
44206         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
44207         about all VCS systems generically.
44208         * doc/gnulib.texi (Introduction): Capitalize `Git'.
44209
44210 2007-10-04  Bruno Haible  <bruno@clisp.org>
44211
44212         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
44213         means.
44214         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
44215
44216 2007-10-04  Bruno Haible  <bruno@clisp.org>
44217
44218         * modules/truncl-tests: New file.
44219         * tests/test-truncl.c: New file.
44220
44221         * modules/truncl: New file.
44222         * lib/truncl.c: New file.
44223         * m4/truncl.m4: New file.
44224         * lib/math.in.h (truncl): New declaration.
44225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
44226         HAVE_DECL_TRUNCL.
44227         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
44228         HAVE_DECL_TRUNCL.
44229         * doc/functions/truncl.texi: Mention the 'truncl' module.
44230
44231 2007-10-04  Bruno Haible  <bruno@clisp.org>
44232
44233         * modules/truncf-tests: New file.
44234         * tests/test-truncf.c: New file.
44235
44236         * modules/truncf: New file.
44237         * lib/trunc.c: Make paramerizable through USE_* macros.
44238         * lib/truncf.c: New file.
44239         * m4/truncf.m4: New file.
44240         * lib/math.in.h (truncf): New declaration.
44241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
44242         HAVE_DECL_TRUNCF.
44243         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
44244         HAVE_DECL_TRUNCF.
44245         * doc/functions/truncf.texi: Mention the 'truncf' module.
44246
44247 2007-10-03  Bruno Haible  <bruno@clisp.org>
44248
44249         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44250         augmentation also for tests modules.
44251         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
44252         * modules/atexit-tests (Makefile.am): Likewise.
44253         * modules/binary-io-tests (Makefile.am): Likewise.
44254         * modules/c-strcase-tests (Makefile.am): Likewise.
44255         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
44256         * modules/canonicalize-tests (Makefile.am): Likewise.
44257         * modules/closein-tests (Makefile.am): Likewise.
44258         * modules/fprintf-posix-tests (Makefile.am): Likewise.
44259         * modules/freadahead-tests (Makefile.am): Likewise.
44260         * modules/fseek-tests (Makefile.am): Likewise.
44261         * modules/fseeko-tests (Makefile.am): Likewise.
44262         * modules/ftell-tests (Makefile.am): Likewise.
44263         * modules/ftello-tests (Makefile.am): Likewise.
44264         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
44265         * modules/isnanl-tests (Makefile.am): Likewise.
44266         * modules/lseek-tests (Makefile.am): Likewise.
44267         * modules/mbscasecmp-tests (Makefile.am): Likewise.
44268         * modules/mbscasestr-tests (Makefile.am): Likewise.
44269         * modules/mbschr-tests (Makefile.am): Likewise.
44270         * modules/mbscspn-tests (Makefile.am): Likewise.
44271         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
44272         * modules/mbspbrk-tests (Makefile.am): Likewise.
44273         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
44274         * modules/mbsrchr-tests (Makefile.am): Likewise.
44275         * modules/mbsspn-tests (Makefile.am): Likewise.
44276         * modules/mbsstr-tests (Makefile.am): Likewise.
44277         * modules/printf-posix-tests (Makefile.am): Likewise.
44278         * modules/snprintf-posix-tests (Makefile.am): Likewise.
44279         * modules/sprintf-posix-tests (Makefile.am): Likewise.
44280         * modules/tsearch-tests (Makefile.am): Likewise.
44281         * modules/uniname/uniname-tests (Makefile.am): Likewise.
44282         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
44283         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
44284         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
44285         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
44286         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
44287         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
44288         * modules/vprintf-posix-tests (Makefile.am): Likewise.
44289         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
44290         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
44291         * modules/xstrtoimax-tests (Makefile.am): Likewise.
44292         * modules/xstrtol-tests (Makefile.am): Likewise.
44293         * modules/xstrtoumax-tests (Makefile.am): Likewise.
44294         * modules/yesno-tests (Makefile.am): Likewise.
44295
44296 2007-10-03  Bruno Haible  <bruno@clisp.org>
44297
44298         * modules/trunc-tests: New file.
44299         * tests/test-trunc.c: New file.
44300
44301         * modules/trunc: New file.
44302         * lib/trunc.c: New file.
44303         * m4/trunc.m4: New file.
44304         * lib/math.in.h (trunc): New declaration.
44305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
44306         HAVE_DECL_TRUNC.
44307         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
44308         HAVE_DECL_TRUNC.
44309         * doc/functions/trunc.texi: Mention the 'trunc' module.
44310
44311 2007-10-03  Bruno Haible  <bruno@clisp.org>
44312
44313         * tests/test-fpending.c: New file, mostly copied
44314         from coreutils/lib/t-fpending.c.
44315         * modules/fpending-tests: New file.
44316
44317 2007-10-03  Bruno Haible  <bruno@clisp.org>
44318
44319         Port the stdio extensions to QNX (untested).
44320         * lib/fseterr.c (fseterr): Add support for QNX.
44321         * lib/fbufmode.c (fbufmode): Likewise.
44322         * lib/freadable.c (freadable): Likewise.
44323         * lib/fwritable.c (fwritable): Likewise.
44324         * lib/freading.c (freading): Likewise.
44325         * lib/fwriting.c (fwriting): Likewise.
44326         * lib/freadahead.c (freadahed): Likewise.
44327         * lib/fpurge.c (fpurge): Likewise.
44328         * lib/fseeko.c (rpl_fseeko): Likewise.
44329
44330 2007-10-03  Bruno Haible  <bruno@clisp.org>
44331             Jim Meyering  <jim@meyering.net>
44332             Eric Blake  <ebb9@byu.net>
44333
44334         * doc/relocatable.texi: Use @command instead of @program.
44335
44336 2007-10-02  Jim Meyering  <jim@meyering.net>
44337
44338         Perform one more "_.h" -> ".in.h" substitution.
44339         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
44340         instead of unistd_.h here, too.
44341
44342 2007-10-01  Bruno Haible  <bruno@clisp.org>
44343
44344         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
44345         Needed for the alloca-opt module.
44346
44347 2007-09-30  Bruno Haible  <bruno@clisp.org>
44348
44349         * lib/alloca.in.h: Renamed from lib/alloca_.h.
44350         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
44351         alloca_.h.
44352         * lib/argz.in.h: Renamed from lib/argz_.h.
44353         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
44354         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
44355         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
44356         byteswap_.h.
44357         * lib/dirent.in.h: Renamed from lib/dirent_.h.
44358         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
44359         dirent_.h.
44360         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
44361         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
44362         fcntl_.h.
44363         * lib/float.in.h: Renamed from lib/float_.h.
44364         * modules/float (Files, Makefile.am): Use float.in.h instead of
44365         float_.h.
44366         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
44367         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
44368         fnmatch_.h.
44369         * lib/getopt.in.h: Renamed from lib/getopt_.h.
44370         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
44371         getopt_.h.
44372         * lib/glob.in.h: Renamed from lib/glob_.h.
44373         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
44374         * lib/iconv.in.h: Renamed from lib/iconv_.h.
44375         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
44376         iconv_.h.
44377         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
44378         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
44379         inttypes_.h.
44380         * lib/locale.in.h: Renamed from lib/locale_.h.
44381         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
44382         locale_.h.
44383         * lib/math.in.h: Renamed from lib/math_.h.
44384         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
44385         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
44386         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
44387         of netinet_in_.h. Add dependency.
44388         * lib/poll.in.h: Renamed from lib/poll_.h.
44389         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
44390         * lib/search.in.h: Renamed from lib/search_.h.
44391         * modules/search (Files, Makefile.am): Use search.in.h instead of
44392         search_.h.
44393         * lib/signal.in.h: Renamed from lib/signal_.h.
44394         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
44395         _signal.h.
44396         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
44397         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
44398         stdbool_.h.
44399         * lib/stdint.in.h: Renamed from lib/stdint_.h.
44400         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
44401         stdint_.h.
44402         * lib/stdio.in.h: Renamed from lib/stdio_.h.
44403         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
44404         stdio_.h.
44405         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
44406         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
44407         stdlib_.h.
44408         * lib/string.in.h: Renamed from lib/string_.h.
44409         * modules/string (Files, Makefile.am): Use string.in.h instead of
44410         string_.h.
44411         * doc/gnulib-tool.texi (Initial import): Update.
44412         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
44413         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
44414         of sys_select_.h. Add dependency.
44415         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
44416         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
44417         of sys_socket_.h.
44418         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
44419         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
44420         sys_stat_.h.
44421         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
44422         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
44423         sys_time_.h.
44424         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
44425         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
44426         sysexits_.h.
44427         * lib/time.in.h: Renamed from lib/time_.h.
44428         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
44429         * lib/unistd.in.h: Renamed from lib/unistd_.h.
44430         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
44431         unistd_.h.
44432         * lib/wchar.in.h: Renamed from lib/wchar_.h.
44433         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
44434         wchar_.h.
44435         * lib/wctype.in.h: Renamed from lib/wctype_.h.
44436         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
44437         wctype_.h.
44438         * build-aux/bootstrap (slurp): Update.
44439         * lib/.cppi-disable: Update.
44440
44441 2007-09-30  Bruno Haible  <bruno@clisp.org>
44442
44443         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
44444         Needed on BeOS.
44445
44446 2007-09-30  Bruno Haible  <bruno@clisp.org>
44447
44448         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
44449
44450 2007-09-29  Bruno Haible  <bruno@clisp.org>
44451
44452         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
44453
44454 2007-09-29  Bruno Haible  <bruno@clisp.org>
44455
44456         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
44457         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
44458         * build-aux/install-reloc: Compile also areadlink.c.
44459         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
44460
44461 2007-09-29  Bruno Haible  <bruno@clisp.org>
44462
44463         * gnulib-tool (func_emit_initmacro_done): Indentation.
44464
44465 2007-09-29  Bruno Haible  <bruno@clisp.org>
44466
44467         * README: Add CVS checkout update instructions.
44468         Info from Bob Proulx <bob@proulx.com>.
44469
44470 2007-09-28  Eric Blake  <ebb9@byu.net>
44471
44472         Provide move-if-change.
44473         * build-aux/move-if-change: New file, based on best practice
44474         rather than any canonical upstream location.
44475
44476 2007-09-28  Jim Meyering  <jim@meyering.net>
44477
44478         Fix canonicalize loop-detection corner case.
44479         Do not attempt to stat the symlink values stored via seen_triple.
44480         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
44481         on linux-2.6.18, (but not 2.6.22).
44482         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
44483         triple_compare.  The former compares dev,ino,filename, while the latter
44484         would actually stat dirname(filename) when dev and ino were equal.
44485         * lib/hash-triple.c: Install <string.h>.
44486         (STREQ): Define.
44487         (triple_compare_ino_str): New function.
44488         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
44489
44490 2007-09-28  Eric Blake  <ebb9@byu.net>
44491
44492         Enforce that AC_REPLACE_FUNCS files exist.
44493         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
44494         override check for typos.
44495
44496         Fix test-closein on Solaris 10.
44497         * tests/test-closein.c (main): Don't assume stdin can be inherited
44498         closed on all systems.
44499         * tests/test-closein.sh: Likewise.
44500         Reported by Piotr Tarnowski.
44501
44502 2007-09-28  Jim Meyering  <jim@meyering.net>
44503
44504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
44505
44506 2007-09-27  Jim Meyering  <jim@meyering.net>
44507
44508         canonicalize: Avoid a false-positive cycle failure.
44509         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
44510         Sort.  Remove cycle-check.
44511         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
44512         not cycle-check.h.
44513         (seen_triple): New function.
44514         (canonicalize_filename_mode): Use it instead of cycle-check.
44515         * tests/test-canonicalize.c: Add a test for this bug.
44516         * tests/test-canonicalize.sh: Set up and run the test.
44517
44518         New module, file-set, from coreutils.
44519         * modules/file-set: Define it.
44520         * lib/file-set.c, lib/file-set.h: Implement.
44521
44522         New module, hash-triple, from coreutils.
44523         * modules/hash-triple: Define it.
44524         * lib/hash-triple.c, lib/hash-triple.h: Implement.
44525
44526 2007-09-25  Eric Blake  <ebb9@byu.net>
44527
44528         Fix strerror on Interix.
44529         * lib/string_.h (strerror): Declare replacement.
44530         * doc/functions/strerror.texi (strerror): Document the Interix
44531         shortcoming.
44532         * modules/string (Makefile.am): Support new hooks.
44533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
44534         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
44535         gl_FUNC_STRERROR_SEPARATE.
44536         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
44537         * lib/strerror.c (rpl_strerror): Provide replacement.
44538         * modules/strerror (Depends-on): Add string.
44539         (configure.ac): Detect use of module.
44540         * tests/test-strerror.c: New file.
44541         * modules/strerror-tests: New test module.
44542         * modules/argp (Depends-on): Add strerror.
44543         * modules/error (Depends-on): Likewise.
44544         Reported by Martin Koeppe.
44545
44546 2007-09-24  Bruno Haible  <bruno@clisp.org>
44547
44548         * README: Update git instructions.
44549
44550 2007-09-24  Eric Blake  <ebb9@byu.net>
44551
44552         Revert fpending breakage from 2007-09-08.
44553         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
44554         __fpending.c.
44555
44556 2007-09-24  Jim Meyering  <jim@meyering.net>
44557
44558         filenamecat.c: Add a test.
44559         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
44560         showing how the function works when DIR is the empty string.
44561
44562 2007-09-21  Simon Josefsson  <simon@josefsson.org>
44563
44564         * tests/test-canonicalize.sh: Turn on executable bit.
44565
44566 2007-09-19  Eric Blake  <ebb9@byu.net>
44567
44568         * README: Update CVS instructions.
44569
44570 2007-09-18  Bruno Haible  <bruno@clisp.org>
44571
44572         * modules/areadlink: New file.
44573         * lib/areadlink.h (areadlink): New declaration.
44574         * lib/areadlink.c: New file, based on lib/xreadlink.c.
44575
44576 2007-09-17  Jim Meyering  <jim@meyering.net>
44577
44578         * lib/savewd.c (ESTALE) [!defined]: Define.
44579         Reported to be required on Interix by Martin Koeppe.
44580
44581 2007-09-17  Bruno Haible  <bruno@clisp.org>
44582
44583         * gnulib-tool (func_version): Use $version.
44584
44585 2007-09-16  Bruno Haible  <bruno@clisp.org>
44586
44587         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
44588         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
44589         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
44590         Reported by Greg Schafer <gschafer@zip.com.au>.
44591
44592 2007-09-15  Bruno Haible  <bruno@clisp.org>
44593
44594         * gnulib-tool (sed): Try a little harder to make bash understand the
44595         alias.
44596         Reported by Bruce Korb <bruce.korb@gmail.com>.
44597
44598 2007-09-13  Eric Blake  <ebb9@byu.net>
44599
44600         * ChangeLog: Remove conflict markers.
44601
44602 2007-09-13  Simon Josefsson  <simon@josefsson.org>
44603
44604         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
44605         Reported by Bruno Haible <bruno@clisp.org>.
44606
44607 2007-09-12  Bruno Haible  <bruno@clisp.org>
44608
44609         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
44610         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
44611         is not defined.
44612
44613 2007-09-12  Eric Blake  <ebb9@byu.net>
44614
44615         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
44616         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
44617         Autoconf definition.
44618         * modules/euidaccess (Depends-on): Add extensions, for
44619         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
44620         * modules/fnmatch (Depends-on): Likewise.
44621         * modules/getaddrinfo (Depends-on): Likewise.
44622         * modules/getdelim (Depends-on): Likewise.
44623         * modules/getline (Depends-on): Likewise.
44624         * modules/getsubopt (Depends-on): Likewise.
44625         * modules/gettext (Depends-on): Likewise.
44626         * modules/group-member (Depends-on): Likewise.
44627         * modules/mbchar (Depends-on): Likewise.
44628         * modules/memmem (Depends-on): Likewise.
44629         * modules/mempcpy (Depends-on): Likewise.
44630         * modules/memrchr (Depends-on): Likewise.
44631         * modules/pagealign_alloc (Depends-on): Likewise.
44632         * modules/readutmp (Depends-on): Likewise.
44633         * modules/stpcpy (Depends-on): Likewise.
44634         * modules/stpncpy (Depends-on): Likewise.
44635         * modules/strchrnul (Depends-on): Likewise.
44636         * modules/strndup (Depends-on): Likewise.
44637         * modules/strsep (Depends-on): Likewise.
44638         * modules/strverscmp (Depends-on): Likewise.
44639         * modules/vasprintf (Depends-on): Likewise.
44640         * modules/wcwidth (Depends-on): Likewise.
44641         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
44642         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
44643         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
44644         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
44645         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44646         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44647         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
44648         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44649         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
44650         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
44651         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44652         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44653         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44654         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
44655         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
44656         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44657         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44658         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44659         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44660         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44661         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44662         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44663         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44664         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
44665         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
44666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44667         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
44668         so that lock.m4 can be used in gettext without extensions module.
44669
44670 2007-09-11  Bruno Haible  <bruno@clisp.org>
44671
44672         * m4/isc-posix.m4: Remove file.
44673         Suggested by Eric Blake.
44674
44675 2007-09-11  Eric Blake  <ebb9@byu.net>
44676
44677         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
44678
44679 2007-09-10  Bruno Haible  <bruno@clisp.org>
44680
44681         * posix-modules: Fix typo in error message.
44682         Reported by Matt <mkraai@beckman.com>.
44683
44684 2007-09-09  Bruno Haible  <bruno@clisp.org>
44685
44686         * doc/functions/getdelim.texi: Update list of platforms lacking the
44687         function.
44688         * doc/functions/getline.texi: Likewise.
44689
44690 2007-09-09  Jim Meyering  <jim@meyering.net>
44691
44692         * lib/hash.c (hash_initialize): Detect calloc failure.
44693         Reported by Bruno Haible.
44694
44695 2007-09-09  Bruno Haible  <bruno@clisp.org>
44696
44697         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
44698         malloc or realloc fails.
44699
44700 2007-09-09  Bruno Haible  <bruno@clisp.org>
44701
44702         * modules/getcwd (Depends-on): Add malloc-posix.
44703         * modules/glob (Depends-on): Likewise.
44704         * modules/putenv (Depends-on): Likewise.
44705         * modules/strdup (Depends-on): Likewise.
44706         * modules/getdelim (Depends-on): Add realloc-posix.
44707         * modules/read-file (Depends-on): Likewise.
44708
44709 2007-09-09  Bruno Haible  <bruno@clisp.org>
44710
44711         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
44712         (gl_FUNC_MALLOC_POSIX): Require it.
44713         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
44714         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
44715         * modules/realloc (Files): Add m4/malloc.m4.
44716         * modules/calloc (Files): Likewise.
44717
44718 2007-09-09  Bruno Haible  <bruno@clisp.org>
44719
44720         * modules/malloc-posix: New file.
44721         * modules/malloc (Depends-on): Add malloc-posix.
44722         * lib/malloc.c: Include errno.h.
44723         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
44724         and a POSIX-compatible malloc into a single function. Set ENOMEM
44725         when returning NULL.
44726         * m4/malloc.m4: New file.
44727         * doc/functions/malloc.texi: Mention the malloc-posix module.
44728         * lib/stdlib_.h (malloc): New declaration.
44729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44730         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
44731         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
44732         and HAVE_MALLOC_POSIX.
44733
44734 2007-09-09  Bruno Haible  <bruno@clisp.org>
44735
44736         * modules/realloc-posix: New file.
44737         * modules/realloc (Depends-on): Add realloc-posix.
44738         * lib/realloc.c: Include errno.h.
44739         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
44740         and a POSIX-compatible realloc into a single function. Set ENOMEM
44741         when returning NULL.
44742         * m4/realloc.m4: New file.
44743         * doc/functions/realloc.texi: Mention the realloc-posix module.
44744         * lib/stdlib_.h (realloc): New declaration.
44745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44746         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
44747         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
44748         and HAVE_REALLOC_POSIX.
44749
44750 2007-09-09  Bruno Haible  <bruno@clisp.org>
44751
44752         * modules/calloc-posix: New file.
44753         * modules/calloc (Depends-on): Add calloc-posix.
44754         * lib/calloc.c: Include errno.h.
44755         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
44756         and a POSIX-compatible calloc into a single function. Set ENOMEM
44757         when returning NULL.
44758         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
44759         * doc/functions/calloc.texi: Mention the calloc-posix module.
44760         * lib/stdlib_.h (calloc): New declaration.
44761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44762         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
44763         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
44764         and HAVE_CALLOC_POSIX.
44765
44766 2007-09-09  Bruno Haible  <bruno@clisp.org>
44767
44768         Allow for modules to show an arbitrary notice.
44769         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
44770         * gnulib-tool: New option --extract-notice.
44771         (func_usage): Document it.
44772         (sed_extract_prog): Update.
44773         (func_get_notice): New function.
44774         (func_modules_notice): New function.
44775         (func_import, func_create_testdir): Invoke it.
44776         Suggested by Jim Meyering.
44777
44778 2007-09-09  Bruno Haible  <bruno@clisp.org>
44779
44780         * gnulib-tool: New options --verbose, --quiet.
44781         (func_usage): Document them.
44782         (verbose): New variable.
44783         (func_execute_command): New function.
44784         (func_import): Don't show the module list and the file list if
44785         $verbose < 0.
44786         (func_create_testdir): Likewise. Use func_execute_command.
44787         (func_create_megatestdir): Use func_execute_command.
44788
44789 2007-09-08  Bruno Haible  <bruno@clisp.org>
44790
44791         * gnulib-tool (func_import): Prefer rsync over wget when available,
44792         for fetching the PO files.
44793
44794 2007-09-08  Bruno Haible  <bruno@clisp.org>
44795
44796         * posix-modules: New file. Portions copied from gnulib-tool.
44797         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
44798
44799 2007-09-08  Jim Meyering  <jim@meyering.net>
44800
44801         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
44802         * lib/fpending.h: Rename from __fpending.h.
44803         * lib/fpending.c: Rename from __fpending.c.
44804         Include "fpending.h", not "__fpending.h".
44805         * lib/__fpending.h, lib/__fpending.c: Remove files.
44806         * modules/fpending (Files): Reflect new file names.
44807         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
44808
44809 2007-09-08  Bruno Haible  <bruno@clisp.org>
44810
44811         * m4/inttypes-h.m4: Remove stub file.
44812
44813 2007-09-07  Simon Josefsson  <simon@josefsson.org>
44814
44815         * doc/headers/stdint.texi: Discuss #include_next issue.
44816
44817 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
44818
44819         * build-aux/bootstrap: Remove obsolete comment about wget --help.
44820
44821 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44822
44823         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
44824         in variable name.
44825
44826 2007-09-03  Jim Meyering  <jim@meyering.net>
44827
44828         New module: git-version-gen.
44829         * modules/git-version-gen: New file.
44830
44831         Import changes from coreutils for bootstrap script.
44832
44833         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
44834
44835         bootstrap: uses rsync to download the .po files
44836         * build-aux/bootstrap (po_download_command_format): New global.
44837         (download_po_files): Use rsync.
44838         (update_po_files): Don't remove .po files after download,
44839         so future rsync runs can take advantage of the copies.
44840
44841         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
44842
44843         Solve the unnecessary-.po-file-regeneration problem once and for all.
44844         * build-aux/bootstrap (download_po_files): New function, renamed from
44845         get_translations.  Now, downloads, but doesn't update LINGUAS.
44846         (update_po_files): New function.
44847
44848         bootstrap: Ignore more.
44849         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
44850         uniwidth to e.g., lib/.gitignore.
44851         (slurp): Handle the sys_stat_.h -> sys mapping, too.
44852
44853         * build-aux/bootstrap: New setting: vc_ignore.
44854         (insert_sorted_if_absent): Create $file if absent.
44855         Adapt to new, possibly empty, list: $vc_ignore.
44856
44857         bootstrap: generate more ignorable names
44858         * build-aux/bootstrap (slurp): When generating ignorable names,
44859         also map .sin to .sed, .gperf to .c, and .y to .c.
44860
44861 2007-09-03  Jim Meyering  <jim@meyering.net>
44862
44863         * build-aux/git-version-gen: New file, from coreutils.  For details, see
44864         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
44865
44866 2007-09-02  Bruno Haible  <bruno@clisp.org>
44867
44868         Fix mis-recognition of 'mcs' on QNX 6.
44869         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
44870         output contains the string "Mono".
44871         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
44872         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
44873
44874 2007-09-01  Bruno Haible  <bruno@clisp.org>
44875
44876         Fix collision between uniwidth/* and linebreak modules.
44877         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
44878         u32_width): Remove declarations.
44879         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
44880         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
44881         streq3, streq2, streq1, streq0): Remove functions.
44882         (STREQ): Remove macro.
44883         (is_cjk_encoding): Remove function.
44884         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
44885         (uc_width, u8_width, u16_width, u32_width): Remove functions.
44886         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
44887         * NEWS: Document the change.
44888
44889 2007-09-01  Bruno Haible  <bruno@clisp.org>
44890
44891         * lib/streq.h: Add double-inclusion guard.
44892
44893 2007-09-01  Karl Berry  <karl@gnu.org>
44894
44895         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
44896
44897 2007-08-28  Jim Meyering  <jim@meyering.net>
44898
44899         Rename mreadlink_with_size to areadlink_with_size.
44900         * NEWS: Document the change.
44901         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
44902         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
44903         * lib/mreadlink.h: Rename this to...
44904         * lib/areadlink.h: ...this.
44905         * modules/mreadlink-with-size: Rename this to...
44906         * modules/areadlink-with-size: ...this.
44907         * lib/canonicalize.c: Reflect the renaming.
44908         * modules/canonicalize: Likewise.
44909
44910 2007-08-26  Bruno Haible  <bruno@clisp.org>
44911
44912         * gnulib-tool (func_import): When deciding which files to remove,
44913         consider also dangling symbolic links.
44914         Reported by Eric Blake.
44915
44916 2007-08-26  Bruno Haible  <bruno@clisp.org>
44917
44918         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
44919
44920 2007-08-23  Simon Josefsson  <simon@josefsson.org>
44921
44922         * lib/readline.c: Don't include getline.h, the prototype is now
44923         found in stdio.h.
44924
44925 2007-08-23  Jim Meyering  <jim@meyering.net>
44926
44927         Getdelim touchup.
44928         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
44929         around the funlockfile call, since funlockfile never sets errno.
44930         Don't set errno upon failed realloc.
44931
44932 2007-08-22  Eric Blake  <ebb9@byu.net>
44933
44934         Getline touchups.
44935         * lib/getdelim.c (getdelim): Revert regression that required *n to
44936         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
44937         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
44938         getdelim, rather than whether implementation is missing.
44939         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
44940         * lib/stdio_.h (getline): Also declare if replacement is
44941         required.
44942         * doc/functions/getdelim.texi: New file.
44943         * doc/functions/getline.texi: Likewise.
44944         * doc/gnulib.texi (Function Substitutes): Add new files.
44945         Reported by Bruno Haible.
44946
44947 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
44948
44949         * users.txt: Add Guile.
44950
44951 2007-08-22  Eric Blake  <ebb9@byu.net>
44952
44953         * tests/test-getdelim.c (main): Use remove, not unlink.
44954         * tests/test-getline.c (main): Likewise.
44955
44956         Move getline and getdelim into stdio.h, per POSIX 200x.
44957         * modules/getline (Files): Remove getline.h.
44958         (Depends-on): Add stdio.
44959         (configure.ac): Add module indicator.
44960         * modules/getdelim (Files): Remove getdelim.h.
44961         (Depends-on): Add stdio.
44962         (configure.ac): Add module indicator.
44963         * modules/stdio (Makefile.am): Work with new indicators.
44964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44965         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
44966         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44967         * lib/getdelim.h: Delete.
44968         * lib/getline.h: Delete.
44969         * lib/stdio_.h (getdelim, getline): Declare.
44970         * modules/getdelim-tests: New module.
44971         * modules/getline-tests: Likewise.
44972         * tests/test-getdelim.c: New file.
44973         * tests/test-getline.c: Likewise.
44974         * NEWS: Document the change.
44975         * lib/getline.c: Update choice of header.
44976         * lib/csharpcomp.c: Likewise.
44977         * lib/getpass.c: Likewise.
44978         * lib/javacomp.c: Likewise.
44979         * lib/javaversion.c: Likewise.
44980         * lib/yesno.c: Likewise.
44981         * lib/getdelim.c: Likewise.
44982         (getdelim): Set errno on failure, and avoid memory leak.
44983
44984 2007-08-19  Bruno Haible  <bruno@clisp.org>
44985
44986         * modules/closein (Depends-on): Add freadahead.
44987         * lib/closein.c: Include freadahead.h.
44988         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
44989         is zero.
44990
44991 2007-08-19  Bruno Haible  <bruno@clisp.org>
44992
44993         * modules/freadahead-tests: New file.
44994         * tests/test-freadahead.sh: New file.
44995         * tests/test-freadahead.c: New file.
44996
44997         * modules/freadahead: New file.
44998         * lib/freadahead.h: New file.
44999         * lib/freadahead.c: New file.
45000         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
45001         fbufmode, fpurge, freadable, fwritable.
45002
45003 2007-08-19  Eric Blake  <ebb9@byu.net>
45004
45005         Test yesno in combination with closein.
45006         * lib/yesno.c (yesno): Document use of stdin.
45007         * modules/yesno-tests (Files): New module.
45008         * tests/test-yesno.c (main): New file.
45009         * tests/test-yesno.sh: Likewise.
45010
45011 2007-08-19  Bruno Haible  <bruno@clisp.org>
45012
45013         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
45014         * lib/fseeko.c (rpl_fseeko): Likewise.
45015         * lib/fseterr.c (fseterr): Likewise.
45016
45017 2007-08-19  Bruno Haible  <bruno@clisp.org>
45018
45019         * tests/test-lseek.c (main): Disable a test for BeOS.
45020         * doc/functions/lseek.texi: Document the BeOS bug.
45021
45022 2007-08-19  Bruno Haible  <bruno@clisp.org>
45023             Eric Blake  <ebb9@byu.net>
45024
45025         * lib/lseek.c: Include <sys/stat.h>.
45026         (rpl_lseek): Add workaround code also for Unix platforms.
45027         Needed for BeOS.
45028         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
45029         * doc/functions/lseek.texi: Document BeOS definiency.
45030
45031 2007-08-18  Bruno Haible  <bruno@clisp.org>
45032
45033         * modules/fstrcmp-tests: New file.
45034         * tests/test-fstrcmp.c: New file.
45035
45036 2007-08-18  Bruno Haible  <bruno@clisp.org>
45037
45038         * modules/fstrcmp: New file, from GNU gettext with modifications.
45039         * lib/fstrcmp.h: New file, from GNU gettext.
45040         * lib/fstrcmp.c: New file, from GNU gettext.
45041         * MODULES.html.sh (String handling): Add fstrcmp.
45042
45043 2007-08-18  Bruno Haible  <bruno@clisp.org>
45044
45045         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
45046         'bool'.
45047         (diag, compareseq): Remove const from the ctxt argument.
45048         (USE_HEURISTIC): Undefine at the end.
45049
45050 2007-08-18  Jim Meyering  <jim@meyering.net>
45051
45052         New file: lib/idcache.h
45053         * NEWS: Mention the addition.
45054         * modules/idcache (Files): Add lib/idcache.h
45055         * lib/idcache.c: Include "idcache.h".
45056         Don't include <sys/types.h>.
45057         Add a FIXME comment.
45058         Move file-scoped "static" declarations to the top.
45059         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
45060
45061 2007-08-17  Bruno Haible  <bruno@clisp.org>
45062         and Paul Eggert  <eggert@cs.ucla.edu>
45063
45064         * MODULES.html.sh: Add diffseq.
45065         * modules/diffseq: New file.
45066         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
45067         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
45068
45069 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45070
45071         Import changes from coreutils for bootstrap script.
45072
45073         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
45074
45075         * build-aux/bootstrap (slurp): Work even in environments where
45076         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
45077         current code does not slurp files whose names start with ".", and
45078         this looks like it might be a troublesome area.
45079
45080         2007-07-11  Jim Meyering  <jim@meyering.net>
45081
45082         If there's a GPL vN copyright comment, require that N == 3.
45083
45084         2007-07-08  Jim Meyering  <jim@meyering.net>
45085
45086         Run the coreutils-specific code only if tests/Makefile.am.in exists.
45087         * build-aux/bootstrap (mam_template): Move definition out of loop.
45088
45089         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
45090
45091         * build-aux/bootstrap (symlink_to_dir): Rename function from
45092         symlink_to_gnulib.  Add a directory parameter.  Update all
45093         callers.
45094         (cp_mark_as_generated): Also check for -- and link to -- files in
45095         gl/.
45096
45097         2007-07-08  Jim Meyering  <jim@meyering.net>
45098
45099         Adapt to deeper hierarchy in gnulib.
45100         * build-aux/bootstrap (symlink_to_dir): If the destination
45101         directory doesn't exist, create it. This is required at least for
45102         "lib/uniwidth/cjk.h".
45103
45104         2007-05-15  Jim Meyering  <jim@meyering.net>
45105
45106         * build-aux/bootstrap: Now that generated Makefile.am files
45107         are no longer under version control, they must be created at
45108         bootstrap time.
45109
45110 2007-08-14  Ben Pfaff  <blp@gnu.org>
45111
45112         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
45113
45114 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45115
45116         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
45117         given the changes below.
45118         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
45119         even on hosts that have padding bits beyond the supported 64.
45120
45121 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45122
45123         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
45124         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
45125         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
45126         depends on it.
45127         (xstrtol_error): Remove.
45128         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
45129         but with a different signature.
45130         (ATTRIBUTE_NORETURN, __attribute__): New macros.
45131         * lib/xstrtol-error.c: Include exitfail.h.
45132         (xstrtol_fatal): New function, with a different signature from the
45133         old xstrtol_error, so that the caller need not worry about passing
45134         in an exit status, or about storage management of the option argument.
45135         (xstrtol_error): Now a static function.  Redo signature to
45136         implement xstrtol_fatal.  Output the correct number of hyphens in
45137         front of the option so that the caller need not worry about
45138         storage management.
45139         (N_): New macro.
45140         (_): Remove; not used now.
45141         * modules/xstrtol: Depend on getopt.
45142         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
45143         of old STRTOL_FATAL_ERROR macro.
45144         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
45145         of test program.
45146         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
45147         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
45148
45149 2007-08-08  Eric Blake  <ebb9@byu.net>
45150
45151         * lib/xstrtol-error.c: Add missing include.
45152
45153         Move xstrtol messages into gnulib domain, when --pobase is used.
45154         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
45155         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
45156         * modules/xstrtol (Files): Distribute new file.
45157         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
45158         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
45159         * tests/test-xstrtol.c: ...into new file.
45160         * tests/test-xstrtoul.c: Also test xstrtoul.
45161         * tests/test-xstrtoimax.c: Also test xstrtoimax.
45162         * tests/test-xstrtoumax.c: Also test xstrtoumax.
45163         * tests/test-xstrtol.sh: Drive the tests.
45164         * tests/test-xstrtoimax.sh: Likewise.
45165         * tests/test-xstrtoumax.sh: Likewise.
45166         * modules/xstrtol-tests: New module.
45167         * modules/xstrtoimax-tests: Likewise.
45168         * modules/xstrtoumax-tests: Likewise.
45169
45170 2007-08-08  Jim Meyering  <jim@meyering.net>
45171
45172         New function: mfile_name_concat.
45173         * lib/filenamecat.c (mfile_name_concat): New function, just like
45174         file_name_concat, but return NULL upon failure rather than exiting
45175         with a diagnostic.
45176         * lib/filenamecat.h: Declare it.
45177
45178 2007-08-07  Bruno Haible  <bruno@clisp.org>
45179
45180         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
45181         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
45182         warning from gcc.
45183         Reported by Eric Blake.
45184
45185 2007-08-07  Simon Josefsson  <simon@josefsson.org>
45186
45187         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
45188         * modules/crypto/arcfour (License): Likewise.
45189         * modules/crypto/des-tests (License): Likewise.
45190         * modules/crypto/gc-arctwo-tests (License): Likewise.
45191         * modules/crypto/gc-des-tests (License): Likewise.
45192         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
45193         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
45194         * modules/crypto/gc-md2-tests (License): Likewise.
45195         * modules/crypto/gc-md4-tests (License): Likewise.
45196         * modules/crypto/gc-md5-tests (License): Likewise.
45197         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
45198         * modules/crypto/gc-rijndael-tests (License): Likewise.
45199         * modules/crypto/gc-sha1-tests (License): Likewise.
45200         * modules/crypto/gc-tests (License): Likewise.
45201         * modules/crypto/hmac-md5 (License): Likewise.
45202         * modules/crypto/hmac-sha1 (License): Likewise.
45203         * modules/crypto/md2-tests (License): Likewise.
45204         * modules/crypto/md4-tests (License): Likewise.
45205         * modules/crypto/md5 (License): Likewise.
45206         * modules/crypto/rijndael (License): Likewise.
45207         * modules/crypto/sha1 (License): Likewise.
45208         * modules/memxor (License): Likewise.
45209
45210 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
45211         and Bruno Haible  <bruno@clisp.org>
45212
45213         * NEWS: Describe interface changes to human, xstrtol.
45214         * lib/human.h: Include <xstrtol.h>.
45215         (human_options): Return enum strtol_error, not int.  Remove
45216         bool arg; take int * instead.
45217         * lib/human.c: Don't include "gettext.h".
45218         (_): Remove; no longer used.
45219         Don't include <xstrtol.h>, since human.h does it.
45220         (human_options): Adjust to abovementioned interface changes.
45221         Do not report error to stderr; that's now the caller's
45222         responsibility.
45223         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
45224         interface change.
45225         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
45226         Str, Argument_type_string.  All uses changed.  Put " argument"
45227         in diagnostics to make them clearer.  Change wording of suffix
45228         message for clarity.
45229         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
45230         Argument_type_string.
45231         (STRTOL_FATAL_WARN): Remove; no longer used.
45232         * modules/human (Depends-on): Remove gettext-h.
45233
45234 2007-08-06  Simon Josefsson  <simon@josefsson.org>
45235
45236         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
45237
45238 2007-07-31  Bruno Haible  <bruno@clisp.org>
45239
45240         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
45241         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
45242         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
45243
45244 2007-07-31  Bruno Haible  <bruno@clisp.org>
45245
45246         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
45247         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
45248
45249 2007-07-30  Bruno Haible  <bruno@clisp.org>
45250
45251         * modules/base64 (License): Use the synonymous term "LGPLv2+".
45252         * modules/c-ctype (License): Likewise.
45253         * modules/c-strcase (License): Likewise.
45254         * modules/check-version (License): Likewise.
45255         * modules/iconv (License): Likewise.
45256         * modules/iconv_open (License): Likewise.
45257         * modules/read-file (License): Likewise.
45258         * modules/striconv (License): Likewise.
45259         * modules/strverscmp (License): Likewise.
45260         * modules/vasprintf (License): Likewise.
45261         * modules/crypto/des (License): Likewise.
45262         * modules/crypto/gc (License): Likewise.
45263         * modules/crypto/gc-arcfour (License): Likewise.
45264         * modules/crypto/gc-arctwo (License): Likewise.
45265         * modules/crypto/gc-des (License): Likewise.
45266         * modules/crypto/gc-hmac-md5 (License): Likewise.
45267         * modules/crypto/gc-hmac-sha1 (License): Likewise.
45268         * modules/crypto/gc-md2 (License): Likewise.
45269         * modules/crypto/gc-md4 (License): Likewise.
45270         * modules/crypto/gc-md5 (License): Likewise.
45271         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
45272         * modules/crypto/gc-random (License): Likewise.
45273         * modules/crypto/gc-rijndael (License): Likewise.
45274         * modules/crypto/gc-sha1 (License): Likewise.
45275         * modules/crypto/md2 (License): Likewise.
45276         * modules/crypto/md4 (License): Likewise.
45277
45278 2007-07-30  Jim Meyering  <jim@meyering.net>
45279
45280         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
45281         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
45282         it has valid stat data.  This bug would cause du not to count the
45283         sizes of inaccessible directories.
45284         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
45285         in <http://bugzilla.redhat.com/250077>.
45286
45287 2007-07-25  Peter O'Gorman  <peter@pogma.com>
45288             Bruno Haible  <bruno@clisp.org>
45289
45290         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
45291         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
45292         #include_next, gives a diagnostic about it, but reports no error in
45293         the exit code.
45294         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45295
45296 2007-07-24  Ben Pfaff  <blp@gnu.org>
45297
45298         Improve name: "count-one-bits" is better than "popcount".
45299         * MODULES.html.sh: Update name.
45300         * lib/popcount.h: Renamed lib/count-one-bits.h.
45301         (popcount): Renamed count_one_bits.
45302         (popcountl): Renamed count_one_bits_l.
45303         (popcountll): Renamed count_one_bits_ll.
45304         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
45305         * modules/popcount: Renamed module/count-one-bits.
45306         * modules/popcount-tests: Renamed module/count-one-bits-tests.
45307         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
45308
45309 2007-07-23  Ben Pfaff  <blp@gnu.org>
45310
45311         * lib/popcount.h (popcount32): Reduce size of constants, to allow
45312         better code generation, and add U to large constants to avoid
45313         warnings, in non-GCC case.
45314         Suggested by Bruno Haible.
45315
45316 2007-07-23  Ben Pfaff  <blp@gnu.org>
45317
45318         * lib/popcount.h: Use verify_true instead of if...abort.
45319         * modules/popcount: Depend on verify module.
45320         Suggested by Jim Meyering.
45321
45322 2007-07-23  Bruno Haible  <bruno@clisp.org>
45323
45324         * gnulib-tool (func_import): Create a .cvsignore file also when the
45325         directory is not yet in CVS but the toplevel directory is. When
45326         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
45327         Reported by Karl Berry.
45328
45329 2007-07-22  Ben Pfaff  <blp@gnu.org>
45330
45331         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
45332         case.
45333         Suggested by Eric Blake.
45334
45335 2007-07-22  Ben Pfaff  <blp@gnu.org>
45336
45337         New module: popcount.
45338         * MODULES.html.sh: Add popcount.
45339         * modules/popcount: New file.
45340         * modules/popcount-tests: New file.
45341         * tests/test-popcount.c: New file.
45342         * lib/popcount.h: New file.
45343         * m4/popcount.m4: New file.
45344
45345 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45346
45347         * build-aux/announce-gen: Update to GPLv3.
45348
45349         * build-aux/config.guess: Update from config.
45350
45351 2007-07-21  Bruno Haible  <bruno@clisp.org>
45352
45353         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
45354         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
45355
45356 2007-07-20  Jim Meyering  <jim@meyering.net>
45357
45358         * check-module: Diagnose a self-dependency.
45359
45360 2007-07-19  Bruno Haible  <bruno@clisp.org>
45361
45362         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
45363         empty.
45364         Reported by Eric Blake.
45365
45366 2007-07-18  Bruno Haible  <bruno@clisp.org>
45367
45368         * gnulib-tool: New options --po-base, --po-domain.
45369         (func_usage): Document them.
45370         (pobase, po_domain): New variables.
45371         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
45372         DEFAULT_TEXT_DOMAIN.
45373         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
45374         (func_import): Consider pobase and po_domain. Create a po/ directory.
45375         (func_create_testdir): Set pobase and po_domain to empty.
45376         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
45377         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
45378
45379 2007-07-18  Bruno Haible  <bruno@clisp.org>
45380
45381         * gnulib-tool (func_get_automake_snippet): Synthesize also an
45382         EXTRA_DIST augmentation for files in build-aux/.
45383
45384 2007-07-16  Bruno Haible  <bruno@clisp.org>
45385
45386         * modules/lseek (License): Use the synonymous term "LGPLv2+".
45387         * modules/getdelim (License): Likewise.
45388
45389 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45390
45391         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
45392         * modules/d-type (License): Likewise.
45393         * modules/extensions (License): Likewise.
45394         * modules/fnmatch (License): Likewise.
45395         * modules/fseeko (License): Likewise.
45396         * modules/getaddrinfo (License): Likewise.
45397         * modules/getline (License): Likewise.
45398         * modules/getlogin_r (License): Likewise.
45399         * modules/getpass (License): Likewise.
45400         * modules/gettimeofday (License): Likewise.
45401         * modules/glob (License): Likewise.
45402         * modules/inet_ntop (License): Likewise.
45403         * modules/malloc (License): Likewise.
45404         * modules/malloca (License): Likewise.
45405         * modules/memmem (License): Likewise.
45406         * modules/mempcpy (License): Likewise.
45407         * modules/memset (License): Likewise.
45408         * modules/minmax (License): Likewise.
45409         * modules/mktime (License): Likewise.
45410         * modules/netinet_in (License): Likewise.
45411         * modules/pathmax (License): Likewise.
45412         * modules/poll (License): Likewise.
45413         * modules/regex (License): Likewise.
45414         * modules/snprintf (License): Likewise.
45415         * modules/stdbool (License): Likewise.
45416         * modules/stdint (License): Likewise.
45417         * modules/stdio (License): Likewise.
45418         * modules/strcase (License): Likewise.
45419         * modules/strcasestr (License): Likewise.
45420         * modules/strdup (License): Likewise.
45421         * modules/string (License): Likewise.
45422         * modules/strndup (License): Likewise.
45423         * modules/strnlen (License): Likewise.
45424         * modules/strpbrk (License): Likewise.
45425         * modules/strptime (License): Likewise.
45426         * modules/strsep (License): Likewise.
45427         * modules/sys_select (License): Likewise.
45428         * modules/sys_socket (License): Likewise.
45429         * modules/sys_stat (License): Likewise.
45430         * modules/sys_time (License): Likewise.
45431         * modules/time (License): Likewise.
45432         * modules/time_r (License): Likewise.
45433         * modules/timegm (License): Likewise.
45434         * modules/unistd (License): Likewise.
45435         * modules/vsnprintf (License): Likewise.
45436         * modules/wctype (License): Likewise.
45437
45438 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45439
45440         * modules/argz (License): LGPLv2+.
45441
45442 2007-07-15  Karl Berry  <karl@gnu.org>
45443
45444         * doc/gnulib.texi: revise node structure per new fdl.texi.
45445
45446 2007-07-14  Bruno Haible  <bruno@clisp.org>
45447
45448         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
45449         the output file.
45450         * lib/uniname/uninames.h: Regenerated.
45451
45452 2007-07-14  Karl Berry  <karl@gnu.org>
45453
45454         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
45455         omitting sectioning and index commands.
45456
45457 2007-07-13  Bruno Haible  <bruno@clisp.org>
45458
45459         New gnulib-tool option --more-symlinks.
45460         * gnulib-tool (func_usage): Document --more-symlinks.
45461         (do_copyrights): New variable.
45462         Recognize option --more-symlinks.
45463         (func_import): Don't add a copyright notice transform to
45464         sed_transform_lib_file if do_copyrights is empty.
45465
45466 2007-07-13  Bruno Haible  <bruno@clisp.org>
45467
45468         * lib/vasnprintf.c (decimal_point_char): Define also if
45469         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
45470         && !NEED_PRINTF_DIRECTIVE_A.
45471         Reported by Clemens Koller <clemens.koller@anagramm.de> via
45472         Gary V. Vaughan <gary@gnu.org>.
45473
45474 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
45475
45476         * lib/inttypes_.h: Undo previous change, since it was fixed
45477         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
45478
45479 2007-07-13  Bruno Haible  <bruno@clisp.org>
45480
45481         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
45482         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
45483
45484 2007-07-13  Jim Meyering  <jim@meyering.net>
45485
45486         df: Don't fail for Tru64's "file-on-file mount".
45487         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
45488         so we fall through and use statfs instead.  Details here:
45489         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
45490         Reported by Albert Chin.
45491
45492 2007-07-13  Bruno Haible  <bruno@clisp.org>
45493
45494         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
45495         * modules/configmake (License): Likewise.
45496         * modules/gettext (License): Likewise.
45497         * modules/gettext-h (License): Likewise.
45498         * modules/include_next (License): Likewise.
45499         * modules/link-warning (License): Likewise.
45500         * modules/localcharset (License): Likewise.
45501         * modules/localename (License): Likewise.
45502         * modules/lock (License): Likewise.
45503         * modules/relocatable-lib-lgpl (License): Likewise.
45504         * modules/size_max (License): Likewise.
45505         * modules/vasnprintf (License): Likewise.
45506         * modules/wchar (License): Likewise.
45507         * modules/xsize (License): Likewise.
45508
45509 2007-07-13  Bruno Haible  <bruno@clisp.org>
45510
45511         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
45512         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
45513
45514 2007-07-12  Bruno Haible  <bruno@clisp.org>
45515
45516         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
45517         in the modules files.
45518
45519 2007-07-11  Karl Berry  <karl@gnu.org>
45520
45521         * MODULES.html.sh (func_module): use
45522          sed -e '\|^'"${includefile}"'$|d'
45523          instead of /.../d, to avoid errors on $includefile's containing /.
45524
45525 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45526
45527         * gnulib-tool (func_import): Avoid duplication of --avoid
45528         statements
45529         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
45530         names to `_' in variable names.
45531
45532 2007-07-10  Eric Blake  <ebb9@byu.net>
45533
45534         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
45535         * NEWS: Document this change.
45536
45537 2007-07-08  Bruno Haible  <bruno@clisp.org>
45538
45539         Update to Unicode 5.0.
45540         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
45541         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
45542         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
45543         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
45544         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
45545         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
45546         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
45547         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
45548         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
45549         U+10A3F, U+1D242..U+1D244.
45550         (nonspacing_table_ind): Update.
45551         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
45552         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
45553
45554 2007-07-08  Bruno Haible  <bruno@clisp.org>
45555
45556         Update to Unicode 5.0.
45557         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
45558         code transform. Extend the name index field of unicode_name_to_code and
45559         unicode_code_to_name from 16 to 24 bits.
45560         * lib/uniname/uniname.c (unicode_character_name,
45561         unicode_name_character): Add the range 0x12xxx to the code transform.
45562         * lib/uniname/uninames.h: Regenerated.
45563         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
45564
45565 2007-07-07  Bruno Haible  <bruno@clisp.org>
45566
45567         * modules/wcwidth-tests: New file.
45568         * tests/test-wcwidth.c: New file.
45569
45570         Work around MacOS X wcwidth() bug.
45571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
45572         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
45573         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
45574         original wcwidth in non-UTF-8 locales.
45575         * modules/wcwidth (Depends-on): Add localcharset, streq,
45576         uniwidth/width.
45577         * doc/functions/wcwidth.texi: Update.
45578
45579 2007-07-07  Bruno Haible  <bruno@clisp.org>
45580
45581         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
45582         (wcwidth): New declaration.
45583         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
45584         macros.
45585         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
45586         here. Prepare for creating <wchar.h> unconditionally.
45587         * modules/wchar (Depends-on): Add link-warning.
45588         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
45589         REPLACE_WCWIDTH, and GL_LINK_WARNING.
45590         * lib/wcwidth.h: Remove file.
45591         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
45592         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
45593         * modules/wcwidth (Files): Remove lib/wcwidth.h.
45594         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
45595         (Include): Replace wcwidth.h with <wchar.h>.
45596         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
45597         * lib/mbchar.h: Don't include wcwidth.h.
45598         * lib/mbswidth.c: Likewise.
45599         * NEWS: Mention the change.
45600
45601 2007-07-07  Bruno Haible  <bruno@clisp.org>
45602
45603         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
45604         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
45605         definition with an external declaration.
45606         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
45607         defined as a function. Remove AC_C_INLINE requirement.
45608         * modules/wcwidth (Files): Add lib/wcwidth.c.
45609         (Makefile.am): Remove redundant statement.
45610
45611 2007-07-07  Bruno Haible  <bruno@clisp.org>
45612
45613         * MODULES.html.sh (Unicode string functions): Add the new modules.
45614
45615         * tests/uniwidth/test-u32-strwidth.c: New file.
45616         * modules/uniwidth/u32-strwidth-tests: New file.
45617
45618         * lib/uniwidth/u32-strwidth.c: New file.
45619         * modules/uniwidth/u32-strwidth: New file.
45620
45621         * tests/uniwidth/test-u16-strwidth.c: New file.
45622         * modules/uniwidth/u16-strwidth-tests: New file.
45623
45624         * lib/uniwidth/u16-strwidth.c: New file.
45625         * modules/uniwidth/u16-strwidth: New file.
45626
45627         * tests/uniwidth/test-u8-strwidth.c: New file.
45628         * modules/uniwidth/u8-strwidth-tests: New file.
45629
45630         * lib/uniwidth/u8-strwidth.c: New file.
45631         * modules/uniwidth/u8-strwidth: New file.
45632
45633         * tests/uniwidth/test-u32-width.c: New file.
45634         * modules/uniwidth/u32-width-tests: New file.
45635
45636         * lib/uniwidth/u32-width.c: New file.
45637         * modules/uniwidth/u32-width: New file.
45638
45639         * tests/uniwidth/test-u16-width.c: New file.
45640         * modules/uniwidth/u16-width-tests: New file.
45641
45642         * lib/uniwidth/u16-width.c: New file.
45643         * modules/uniwidth/u16-width: New file.
45644
45645         * tests/uniwidth/test-u8-width.c: New file.
45646         * modules/uniwidth/u8-width-tests: New file.
45647
45648         * lib/uniwidth/u8-width.c: New file.
45649         * modules/uniwidth/u8-width: New file.
45650
45651         * tests/uniwidth/test-uc_width.c: New file.
45652         * modules/uniwidth/width-tests: New file.
45653
45654         * lib/uniwidth/width.c: New file, from GNU libiconv.
45655         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
45656         * modules/uniwidth/width: New file.
45657
45658         * lib/uniwidth.h: New file, from GNU libiconv.
45659         * modules/uniwidth/base: New file.
45660
45661 2007-07-07  Bruno Haible  <bruno@clisp.org>
45662
45663         * lib/uniname.h: New file, from GNU gettext.
45664         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
45665         * lib/uniname/uninames.h: New file, from GNU gettext.
45666         * lib/uniname/uniname.c: New file, from GNU gettext.
45667         * tests/uniname/test-uninames.sh: New file.
45668         * tests/uniname/test-uninames.c: New file, from GNU gettext.
45669         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
45670         * modules/uniname/base: New file.
45671         * modules/uniname/uniname: New file.
45672         * modules/uniname/uniname-tests: New file.
45673         * MODULES.html.sh (Unicode string functions): Add the new modules.
45674
45675 2007-07-06  Bruno Haible  <bruno@clisp.org>
45676
45677         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
45678
45679 2007-07-06  Bruno Haible  <bruno@clisp.org>
45680
45681         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
45682         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
45683         includes <cygwin/sys_time.h> which includes <sys/select.h> which
45684         include <sys/time.h>.
45685         Reported by Eric Blake.
45686
45687 2007-07-06  Eric Blake  <ebb9@byu.net>
45688
45689         Fix testing canonicalize on cygwin.
45690         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45691         Revert patch from 2007-06-19.
45692         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
45693         canonicalize module is also in use.
45694         * tests/test-canonicalize.c: New file.
45695         * tests/test-canonicalize.sh: Likewise.
45696         * modules/canonicalize-tests: Likewise.
45697
45698 2007-07-06  Jim Meyering  <jim@meyering.net>
45699
45700         * lib/getugroups.c (getugroups): Detect getgrent failure.
45701         Adjust comment to reflect reality: this function may return -1.
45702
45703 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
45704
45705         * build-aux/bootstrap (TP_URL,get_translations): Update to use
45706         the new TP address.
45707         (usage): Fix typo
45708         (gnulib_mk): New variable.
45709
45710 2007-07-05  Jim Meyering  <jim@meyering.net>
45711
45712         Don't let endgrent clobber errno, no matter how improbable.
45713         * lib/getugroups.c (getugroups): Save and restore errno around
45714         endgrent call.
45715
45716         Close the group DB even when failing with 2^31 or more members.
45717         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
45718
45719 2007-07-04  Jim Meyering  <jim@meyering.net>
45720
45721         * lib/getugroups.h: New file.
45722         * lib/getugroups.c: Include "getugroups.h".
45723         Remove uses of "register" keyword.
45724         Move local variable, "cp", down into scope where used.
45725         Give "username" parameter the "const" attribute.
45726         * modules/getugroups (Files): Add lib/getugroups.h
45727
45728 2007-07-04  Karl Berry  <karl@gnu.org>
45729
45730         * MODULES.html.sh (func_all_modules): Complete rename of
45731         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
45732
45733 2007-07-02  Bruno Haible  <bruno@clisp.org>
45734
45735         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
45736         mode, when inttypes.h comes from gnulib.
45737         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45738
45739 2007-07-02  Simon Josefsson  <simon@josefsson.org>
45740
45741         * NEWS: Mention lgpl module name change.
45742
45743         * modules/lgpl-2.1: Renamed from lgpl.
45744
45745         * NEWS: Mention gpl module name change.
45746
45747         * modules/gpl-3.0: New file, based on gpl-2.0.
45748
45749         * modules/gpl-2.0: Renamed from gpl.
45750
45751         * modules/gpl: Fix filename, doc/gpl.texi is now found at
45752         doc/gpl-2.0.texi.
45753
45754 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45755
45756         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
45757         #define __STDC_LIMIT_MACROS temporarily while including
45758         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
45759         Problem reported by Joel E. Denny in
45760         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
45761
45762 2007-07-01  Bruno Haible  <bruno@clisp.org>
45763
45764         * lib/unistdio.h: New file.
45765         * lib/unistdio/u-asnprintf.h: New file.
45766         * lib/unistdio/u-asprintf.h: New file.
45767         * lib/unistdio/u-printf-args.c: New file.
45768         * lib/unistdio/u-printf-args.h: New file.
45769         * lib/unistdio/u-printf-parse.h: New file.
45770         * lib/unistdio/u-snprintf.h: New file.
45771         * lib/unistdio/u-sprintf.h: New file.
45772         * lib/unistdio/u-vasprintf.h: New file.
45773         * lib/unistdio/u-vsnprintf.h: New file.
45774         * lib/unistdio/u-vsprintf.h: New file.
45775         * lib/unistdio/ulc-asnprintf.c: New file.
45776         * lib/unistdio/ulc-asprintf.c: New file.
45777         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
45778         * lib/unistdio/ulc-printf-parse.c: New file.
45779         * lib/unistdio/ulc-snprintf.c: New file.
45780         * lib/unistdio/ulc-sprintf.c: New file.
45781         * lib/unistdio/ulc-vasnprintf.c: New file.
45782         * lib/unistdio/ulc-vasprintf.c: New file.
45783         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
45784         * lib/unistdio/ulc-vsnprintf.c: New file.
45785         * lib/unistdio/ulc-vsprintf.c: New file.
45786         * lib/unistdio/u8-asnprintf.c: New file.
45787         * lib/unistdio/u8-asprintf.c: New file.
45788         * lib/unistdio/u8-printf-parse.c: New file.
45789         * lib/unistdio/u8-snprintf.c: New file.
45790         * lib/unistdio/u8-sprintf.c: New file.
45791         * lib/unistdio/u8-vasnprintf.c: New file.
45792         * lib/unistdio/u8-vasprintf.c: New file.
45793         * lib/unistdio/u8-vsnprintf.c: New file.
45794         * lib/unistdio/u8-vsprintf.c: New file.
45795         * lib/unistdio/u8-u8-asnprintf.c: New file.
45796         * lib/unistdio/u8-u8-asprintf.c: New file.
45797         * lib/unistdio/u8-u8-snprintf.c: New file.
45798         * lib/unistdio/u8-u8-sprintf.c: New file.
45799         * lib/unistdio/u8-u8-vasnprintf.c: New file.
45800         * lib/unistdio/u8-u8-vasprintf.c: New file.
45801         * lib/unistdio/u8-u8-vsnprintf.c: New file.
45802         * lib/unistdio/u8-u8-vsprintf.c: New file.
45803         * lib/unistdio/u16-asnprintf.c: New file.
45804         * lib/unistdio/u16-asprintf.c: New file.
45805         * lib/unistdio/u16-printf-parse.c: New file.
45806         * lib/unistdio/u16-snprintf.c: New file.
45807         * lib/unistdio/u16-sprintf.c: New file.
45808         * lib/unistdio/u16-vasnprintf.c: New file.
45809         * lib/unistdio/u16-vasprintf.c: New file.
45810         * lib/unistdio/u16-vsnprintf.c: New file.
45811         * lib/unistdio/u16-vsprintf.c: New file.
45812         * lib/unistdio/u16-u16-asnprintf.c: New file.
45813         * lib/unistdio/u16-u16-asprintf.c: New file.
45814         * lib/unistdio/u16-u16-snprintf.c: New file.
45815         * lib/unistdio/u16-u16-sprintf.c: New file.
45816         * lib/unistdio/u16-u16-vasnprintf.c: New file.
45817         * lib/unistdio/u16-u16-vasprintf.c: New file.
45818         * lib/unistdio/u16-u16-vsnprintf.c: New file.
45819         * lib/unistdio/u16-u16-vsprintf.c: New file.
45820         * lib/unistdio/u32-asnprintf.c: New file.
45821         * lib/unistdio/u32-asprintf.c: New file.
45822         * lib/unistdio/u32-printf-parse.c: New file.
45823         * lib/unistdio/u32-snprintf.c: New file.
45824         * lib/unistdio/u32-sprintf.c: New file.
45825         * lib/unistdio/u32-vasnprintf.c: New file.
45826         * lib/unistdio/u32-vasprintf.c: New file.
45827         * lib/unistdio/u32-vsnprintf.c: New file.
45828         * lib/unistdio/u32-vsprintf.c: New file.
45829         * lib/unistdio/u32-u32-asnprintf.c: New file.
45830         * lib/unistdio/u32-u32-asprintf.c: New file.
45831         * lib/unistdio/u32-u32-snprintf.c: New file.
45832         * lib/unistdio/u32-u32-sprintf.c: New file.
45833         * lib/unistdio/u32-u32-vasnprintf.c: New file.
45834         * lib/unistdio/u32-u32-vasprintf.c: New file.
45835         * lib/unistdio/u32-u32-vsnprintf.c: New file.
45836         * lib/unistdio/u32-u32-vsprintf.c: New file.
45837         * tests/unistdio/test-ulc-asnprintf1.c: New file.
45838         * tests/unistdio/test-ulc-asnprintf1.h: New file.
45839         * tests/unistdio/test-ulc-printf1.h: New file.
45840         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
45841         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
45842         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
45843         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
45844         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
45845         * tests/unistdio/test-ulc-vasprintf1.c: New file.
45846         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
45847         * tests/unistdio/test-ulc-vsprintf1.c: New file.
45848         * tests/unistdio/test-u8-asnprintf1.c: New file.
45849         * tests/unistdio/test-u8-asnprintf1.h: New file.
45850         * tests/unistdio/test-u8-printf1.h: New file.
45851         * tests/unistdio/test-u8-vasnprintf1.c: New file.
45852         * tests/unistdio/test-u8-vasnprintf2.c: New file.
45853         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
45854         * tests/unistdio/test-u8-vasnprintf3.c: New file.
45855         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
45856         * tests/unistdio/test-u8-vasprintf1.c: New file.
45857         * tests/unistdio/test-u8-vsnprintf1.c: New file.
45858         * tests/unistdio/test-u8-vsprintf1.c: New file.
45859         * tests/unistdio/test-u16-asnprintf1.c: New file.
45860         * tests/unistdio/test-u16-asnprintf1.h: New file.
45861         * tests/unistdio/test-u16-printf1.h: New file.
45862         * tests/unistdio/test-u16-vasnprintf1.c: New file.
45863         * tests/unistdio/test-u16-vasnprintf2.c: New file.
45864         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
45865         * tests/unistdio/test-u16-vasnprintf3.c: New file.
45866         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
45867         * tests/unistdio/test-u16-vasprintf1.c: New file.
45868         * tests/unistdio/test-u16-vsnprintf1.c: New file.
45869         * tests/unistdio/test-u16-vsprintf1.c: New file.
45870         * tests/unistdio/test-u32-asnprintf1.c: New file.
45871         * tests/unistdio/test-u32-asnprintf1.h: New file.
45872         * tests/unistdio/test-u32-printf1.h: New file.
45873         * tests/unistdio/test-u32-vasnprintf1.c: New file.
45874         * tests/unistdio/test-u32-vasnprintf2.c: New file.
45875         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
45876         * tests/unistdio/test-u32-vasnprintf3.c: New file.
45877         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
45878         * tests/unistdio/test-u32-vasprintf1.c: New file.
45879         * tests/unistdio/test-u32-vsnprintf1.c: New file.
45880         * tests/unistdio/test-u32-vsprintf1.c: New file.
45881         * modules/unistdio/base: New file.
45882         * modules/unistdio/u-printf-args: New file.
45883         * modules/unistdio/ulc-asnprintf: New file.
45884         * modules/unistdio/ulc-asprintf: New file.
45885         * modules/unistdio/ulc-fprintf: New file.
45886         * modules/unistdio/ulc-printf-parse: New file.
45887         * modules/unistdio/ulc-snprintf: New file.
45888         * modules/unistdio/ulc-sprintf: New file.
45889         * modules/unistdio/ulc-vasnprintf: New file.
45890         * modules/unistdio/ulc-vasprintf: New file.
45891         * modules/unistdio/ulc-vfprintf: New file.
45892         * modules/unistdio/ulc-vsnprintf: New file.
45893         * modules/unistdio/ulc-vsprintf: New file.
45894         * modules/unistdio/u8-asnprintf: New file.
45895         * modules/unistdio/u8-asprintf: New file.
45896         * modules/unistdio/u8-printf-parse: New file.
45897         * modules/unistdio/u8-snprintf: New file.
45898         * modules/unistdio/u8-sprintf: New file.
45899         * modules/unistdio/u8-vasnprintf: New file.
45900         * modules/unistdio/u8-vasprintf: New file.
45901         * modules/unistdio/u8-vsnprintf: New file.
45902         * modules/unistdio/u8-vsprintf: New file.
45903         * modules/unistdio/u8-u8-asnprintf: New file.
45904         * modules/unistdio/u8-u8-asprintf: New file.
45905         * modules/unistdio/u8-u8-snprintf: New file.
45906         * modules/unistdio/u8-u8-sprintf: New file.
45907         * modules/unistdio/u8-u8-vasnprintf: New file.
45908         * modules/unistdio/u8-u8-vasprintf: New file.
45909         * modules/unistdio/u8-u8-vsnprintf: New file.
45910         * modules/unistdio/u8-u8-vsprintf: New file.
45911         * modules/unistdio/u16-asnprintf: New file.
45912         * modules/unistdio/u16-asprintf: New file.
45913         * modules/unistdio/u16-printf-parse: New file.
45914         * modules/unistdio/u16-snprintf: New file.
45915         * modules/unistdio/u16-sprintf: New file.
45916         * modules/unistdio/u16-vasnprintf: New file.
45917         * modules/unistdio/u16-vasprintf: New file.
45918         * modules/unistdio/u16-vsnprintf: New file.
45919         * modules/unistdio/u16-vsprintf: New file.
45920         * modules/unistdio/u16-u16-asnprintf: New file.
45921         * modules/unistdio/u16-u16-asprintf: New file.
45922         * modules/unistdio/u16-u16-snprintf: New file.
45923         * modules/unistdio/u16-u16-sprintf: New file.
45924         * modules/unistdio/u16-u16-vasnprintf: New file.
45925         * modules/unistdio/u16-u16-vasprintf: New file.
45926         * modules/unistdio/u16-u16-vsnprintf: New file.
45927         * modules/unistdio/u16-u16-vsprintf: New file.
45928         * modules/unistdio/u32-asnprintf: New file.
45929         * modules/unistdio/u32-asprintf: New file.
45930         * modules/unistdio/u32-printf-parse: New file.
45931         * modules/unistdio/u32-snprintf: New file.
45932         * modules/unistdio/u32-sprintf: New file.
45933         * modules/unistdio/u32-vasnprintf: New file.
45934         * modules/unistdio/u32-vasprintf: New file.
45935         * modules/unistdio/u32-vsnprintf: New file.
45936         * modules/unistdio/u32-vsprintf: New file.
45937         * modules/unistdio/u32-u32-asnprintf: New file.
45938         * modules/unistdio/u32-u32-asprintf: New file.
45939         * modules/unistdio/u32-u32-snprintf: New file.
45940         * modules/unistdio/u32-u32-sprintf: New file.
45941         * modules/unistdio/u32-u32-vasnprintf: New file.
45942         * modules/unistdio/u32-u32-vasprintf: New file.
45943         * modules/unistdio/u32-u32-vsnprintf: New file.
45944         * modules/unistdio/u32-u32-vsprintf: New file.
45945         * modules/unistdio/ulc-asnprintf-tests: New file.
45946         * modules/unistdio/ulc-vasnprintf-tests: New file.
45947         * modules/unistdio/ulc-vasprintf-tests: New file.
45948         * modules/unistdio/ulc-vsnprintf-tests: New file.
45949         * modules/unistdio/ulc-vsprintf-tests: New file.
45950         * modules/unistdio/u8-asnprintf-tests: New file.
45951         * modules/unistdio/u8-vasnprintf-tests: New file.
45952         * modules/unistdio/u8-vasprintf-tests: New file.
45953         * modules/unistdio/u8-vsnprintf-tests: New file.
45954         * modules/unistdio/u8-vsprintf-tests: New file.
45955         * modules/unistdio/u16-asnprintf-tests: New file.
45956         * modules/unistdio/u16-vasnprintf-tests: New file.
45957         * modules/unistdio/u16-vasprintf-tests: New file.
45958         * modules/unistdio/u16-vsnprintf-tests: New file.
45959         * modules/unistdio/u16-vsprintf-tests: New file.
45960         * modules/unistdio/u32-asnprintf-tests: New file.
45961         * modules/unistdio/u32-vasnprintf-tests: New file.
45962         * modules/unistdio/u32-vasprintf-tests: New file.
45963         * modules/unistdio/u32-vsnprintf-tests: New file.
45964         * modules/unistdio/u32-vsprintf-tests: New file.
45965         * MODULES.html.sh (Unicode string functions): Add the new modules.
45966
45967 2007-07-01  Bruno Haible  <bruno@clisp.org>
45968
45969         * lib/sprintf.c (sprintf): Limit the available length estimation,
45970         to avoid address wraparound.
45971         * lib/vsprintf.c (vsprintf): Likewise.
45972         * modules/sprintf-posix (Dependencies): Add stdint.
45973         * modules/vsprintf-posix (Dependencies): Likewise.
45974
45975 2007-07-01  Bruno Haible  <bruno@clisp.org>
45976
45977         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
45978         Windows PATH as well. Conservative double-quoting. Comments.
45979
45980 2007-07-01  Bruno Haible  <bruno@clisp.org>
45981             Eric Blake  <ebb9@byu.net>
45982             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45983
45984         * gnulib-tool (self_abspathname): Fix algorithm to cope with
45985         empty components in $PATH, denoting '.'.
45986
45987 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45988
45989         * gnulib-tool: Fix indentation.
45990         (func_create_megatestdir): Likewise.
45991         Report by Bruno Haible.
45992
45993 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45994
45995         Sync from Automake.
45996         * build-aux/gnupload: Fix shell portability issues with for loops.
45997         Report by Karl Berry.
45998
45999 2007-06-29  Simon Josefsson  <simon@josefsson.org>
46000
46001         * build-aux/maint.mk (POURL): Use translationproject.org.
46002
46003 2007-06-27  Simon Josefsson  <simon@josefsson.org>
46004             Bruno Haible  <bruno@clisp.org>
46005
46006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
46007         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
46008         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
46009         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
46010         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
46011
46012 2007-06-27  Bruno Haible  <bruno@clisp.org>
46013
46014         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
46015         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
46016
46017 2007-06-26  Karl Berry  <karl@gnu.org>
46018
46019         * MODULES.html.sh: remove xreadlink-with-size.
46020
46021 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46022
46023         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
46024         method that I hope also handles the double-include problem noted
46025         by Bruno Haible in
46026         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
46027
46028 2007-06-23  Bruno Haible  <bruno@clisp.org>
46029
46030         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46031         Don't let the 'mostlyclean' target fail if the last subdirectory could
46032         not be removed.
46033         Reported by Karl Berry.
46034
46035 2007-06-23  Bruno Haible  <bruno@clisp.org>
46036
46037         * gnulib-tool (echo): Add a speedier workaround for ksh.
46038         * tests/test-echo.sh: Likewise.
46039
46040 2007-06-23  Bruno Haible  <bruno@clisp.org>
46041
46042         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
46043         * tests/test-echo.sh: Likewise.
46044
46045 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46046
46047         * gnulib-tool (IFS): Initialize early, so we don't set it to
46048         empty later.
46049         (self_abspathname): Rewrite algorithm to set it, reindent.
46050         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
46051         (func_create_megatestdir): Merge some sed scripts.
46052
46053 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46054
46055         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
46056         exposed by Sun Studio 11 cc on Solaris 8.
46057
46058 2007-06-22  Bruno Haible  <bruno@clisp.org>
46059
46060         * gnulib-tool (echo): Ensure the echo primitive does not interpret
46061         backslashes.
46062         * tests/test-echo.sh: New file.
46063
46064 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46065
46066         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
46067         simplify `sed_replace_build_aux' scripts, they are portable but
46068         echoing them with `echo' is not.
46069         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
46070
46071 2007-06-21  Karl Berry  <karl@gnu.org>
46072
46073         * config/srclist.txt: guess we can't handle the licenses via
46074         srclist at the moment.
46075
46076 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46077
46078         * MODULES.html.sh: Add include_next.
46079         * modules/include_next: New file.
46080
46081 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46082
46083         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
46084         INCLUDE_NEXT.
46085         (gl_CHECK_NEXT_HEADERS): New macro.
46086         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
46087         the obsolescent gl_ABSOLUTE_HEADER.
46088         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
46089         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
46090         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
46091         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46092         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
46093         * m4/math_h.m4 (gl_MATH_H): Likewise.
46094         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46095         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
46096         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
46097         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46098         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
46099         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
46100         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
46101         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46102         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46103         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
46104         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
46105         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46106         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
46107         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46108         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46109         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46110         * m4/inttypes.m4 (gl_INTTYPES_H): Define
46111         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
46112         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
46113         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
46114         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
46115         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
46116         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
46117         * lib/float_.h: Likewise.
46118         * lib/inttypes_.h: Likewise.
46119         * lib/math_.h: Likewise.
46120         * lib/search_.h: Likewise.
46121         * lib/signal_.h: Likewise.
46122         * lib/stdint_.h: Likewise.
46123         * lib/stdio_.h: Likewise.
46124         * lib/stdlib_.h: Likewise.
46125         * lib/string_.h: Likewise.
46126         * lib/sys_stat_.h: Likewise.
46127         * lib/sys_time_.h: Likewise.
46128         * lib/time_.h: Likewise.
46129         * lib/unistd_.h: Likewise.
46130         * lib/wchar_.h: Likewise.
46131         * lib/wctype_.h: Likewise.
46132         * lib/dirent_.h: Likewise.
46133         * lib/iconv_.h: Likewise.
46134         * lib/locale_.h: Likewise.
46135         * lib/netinet_in_.h: Likewise.
46136         * lib/sys_select_.h: Likewise.
46137         * lib/sys_socket_.h: Likewise.
46138         * lib/sysexits_.h: Likewise.
46139         * modules/fcntl (Depends-on): Depend on include_next, not
46140         absolute_header.
46141         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
46142         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
46143         * modules/fchdir: Likewise.
46144         * modules/float: Likewise.
46145         * modules/iconv_open: Likewise.
46146         * modules/inttypes: Likewise.
46147         * modules/locale: Likewise.
46148         * modules/math: Likewise.
46149         * modules/netinet_in: Likewise.
46150         * modules/search: Likewise.
46151         * modules/signal: Likewise.
46152         * modules/stdint: Likewise.
46153         * modules/stdio: Likewise.
46154         * modules/stdlib: Likewise.
46155         * modules/string: Likewise.
46156         * modules/sys_select: Likewise.
46157         * modules/sys_socket: Likewise.
46158         * modules/sys_stat: Likewise.
46159         * modules/sys_time: Likewise.
46160         * modules/sysexits: Likewise.
46161         * modules/time: Likewise.
46162         * modules/unistd: Likewise.
46163         * modules/wchar: Likewise.
46164         * modules/wctype: Likewise.
46165         * modules/sys_stat: Change maintainer to "all".
46166         * modules/unistd: Likewise.
46167
46168 2007-06-20  Karl Berry  <karl@gnu.org>
46169
46170         * config/srclist.txt: track www changes in license files.
46171
46172 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
46173
46174         * build-aux/bootstrap: Remove stray dot.
46175         Make sure build_aux settings are honored when linking
46176         gnulib_extra_files.
46177
46178 2007-06-19  Eric Blake  <ebb9@byu.net>
46179
46180         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46181         Allow compilation on cygwin.
46182
46183 2007-06-19  Jim Meyering  <jim@meyering.net>
46184
46185         xreadlink-with-size: Remove module.  No longer used.
46186         Ex-callers now use xreadlink or mreadlink-with-size.
46187         * modules/xreadlink-with-size: Remove module.
46188         * lib/xreadlink-with-size.c: Remove file.
46189         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
46190         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
46191         just before the function definition *is* accurate.
46192
46193         Eliminate one way canonicalize_filename_mode could exit.
46194         * lib/canonicalize.c (canonicalize_filename_mode):
46195         Use mreadlink_with_size, not xreadlink_with_size.
46196
46197 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
46198
46199         Detect porting problems to FreeBSD/arm, which has time_t wider than
46200         long int.  Original problem reported for GNU diff by Xin Li in
46201         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
46202         * modules/getdate (Depends-on): Add intprops, verify.
46203         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
46204         is an integer type no wider than long int.
46205
46206 2007-06-18  Jim Meyering  <jim@meyering.net>
46207
46208         New module: mreadlink-with-size.
46209         * MODULES.html.sh: Add mreadlink-with-size.
46210         * modules/mreadlink-with-size: New module
46211         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
46212         not xreadlink-with-size.
46213         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
46214
46215 2007-06-16  Bruno Haible  <bruno@clisp.org>
46216
46217         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
46218         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
46219         Reported by Gary V. Vaughan <gary@gnu.org>.
46220
46221 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
46222
46223         Revamp lchown so that it lives in unistd.h where it belongs.
46224         * lib/lchown.h: Remove.
46225         * lib/dirchownmod.c: Don't include lib/lchown.h.
46226         * lib/fchownat.c: Likewise.
46227         * lib/openat.c: Likewise.
46228         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
46229         does not follow symlinks.
46230         (EOPNOTSUPP): Define if not defined.
46231         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
46232         is defined to 0.
46233         (lchown): New decl.
46234         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
46235         Do not check for lchown decl.
46236         Set REPLACE_LCHOWN.
46237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
46238         REPLACE_LCHOWN.
46239         * modules/chown: Make it clear it follows symlinks.
46240         * modules/lchown: Make it clear it doesn't follow symlinks.
46241         (Files): Remove lib/lchown.h
46242         (Depends-on): Add unistd.
46243         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
46244         (Include): Include <unistd.h>, not "lchown.h".
46245         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
46246         REPLACE_LCHOWN.
46247
46248 2007-06-15  Jim Meyering  <jim@meyering.net>
46249
46250         Change license (GPL to LGPL) of fsusage and dependents.
46251         * modules/fsusage (License): Change to LGPL.
46252         * modules/full-read (License): Likewise.
46253         * modules/full-write (License): Likewise.
46254         * modules/safe-read (License): Likewise.
46255         * modules/safe-write (License): Likewise.
46256
46257 2007-06-14  Ben Pfaff  <blp@gnu.org>
46258
46259         Missing part of allocsa -> malloca transition.
46260         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
46261         gl_MALLOCA.
46262
46263 2007-06-12  Bruno Haible  <bruno@clisp.org>
46264
46265         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
46266         to ia64, x86_64, i386.
46267         Reported by Eric Blake.
46268
46269 2007-06-12  Bruno Haible  <bruno@clisp.org>
46270
46271         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
46272         cross-compiling to x86_64.
46273
46274 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
46275
46276         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
46277         glitch reported by Ralf Wildenhues in
46278         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
46279
46280         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
46281         Vin Shelton.
46282
46283 2007-06-11  Bruno Haible  <bruno@clisp.org>
46284
46285         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
46286         replacement string.
46287         Reported by Eric Blake.
46288
46289 2007-06-10  Bruno Haible  <bruno@clisp.org>
46290
46291         Prepare vasnprintf code for use with Unicode strings.
46292         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
46293         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
46294         TYPE_U32_STRING.
46295         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
46296         a_u32_string variants.
46297         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46298         * lib/printf-args.c: Don't include config.h and the specification
46299         header if PRINTF_FETCHARGS is already defined.
46300         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46301         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
46302         TYPE_U16_STRING, TYPE_U32_STRING.
46303         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
46304         u16_directive, u16_directives, u32_directive, u32_directives): New
46305         types.
46306         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
46307         New declarations.
46308         * lib/printf-parse.c: Don't include config.h and the specification
46309         header if PRINTF_PARSE is already defined. Eliminate the set of
46310         parameters for WIDE_CHAR_VERSION; the user of this file must provide
46311         them now. Include c-ctype.h.
46312         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
46313         directive and CHAR_T_ONLY_ASCII.
46314         * lib/vasnprintf.c: Don't include config.h and the specification header
46315         if VASNPRINTF is already defined.
46316         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
46317         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
46318         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
46319         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
46320         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
46321         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
46322         code accordingly.
46323         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
46324         pad_ourselves also in this case, with the 'c' and 's' directives, and
46325         with a different notion of "width".
46326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
46327
46328 2007-06-10  Bruno Haible  <bruno@clisp.org>
46329
46330         * modules/unistr/u32-mbsnlen: New file.
46331         * lib/unistr/u32-mbsnlen.c: New file.
46332
46333         * modules/unistr/u16-mbsnlen: New file.
46334         * lib/unistr/u16-mbsnlen.c: New file.
46335
46336         * modules/unistr/u8-mbsnlen: New file.
46337         * lib/unistr/u8-mbsnlen.c: New file.
46338
46339         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
46340         declarations.
46341
46342 2007-06-10  Bruno Haible  <bruno@clisp.org>
46343
46344         * lib/string_.h (mbsnlen): New declaration.
46345         * lib/mbsnlen.c: New file.
46346         * m4/mbsnlen.m4: New file.
46347         * modules/mbsnlen: New file.
46348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
46349         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
46350         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
46351
46352 2007-06-10  Bruno Haible  <bruno@clisp.org>
46353
46354         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
46355
46356 2007-06-10  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
46359         * lib/mbuiter.h: Likewise.
46360
46361 2007-06-10  Bruno Haible  <bruno@clisp.org>
46362
46363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
46364         declaration.
46365
46366 2007-06-10  Karl Berry  <karl@gnu.org>
46367
46368         * config/srclist.txt: remove gettext entries, Bruno prefers
46369         to update individually.
46370
46371 2007-06-10  Bruno Haible  <bruno@clisp.org>
46372
46373         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
46374         'maxlen'. Ensure only length + width bytes are allocated, not
46375         length + 1 + width.
46376
46377 2007-06-09  Bruno Haible  <bruno@clisp.org>
46378
46379         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
46380         (CHAR_T): Remove macro.
46381         (VASNPRINTF): Update.
46382
46383 2007-06-09  Bruno Haible  <bruno@clisp.org>
46384
46385         * MODULES.html.sh (Unicode string functions): Add the new modules.
46386
46387         * modules/uniconv/u32-conv-to-enc: New file.
46388         * lib/uniconv/u32-conv-to-enc.c: New file.
46389         * modules/uniconv/u32-conv-to-enc-tests: New file.
46390         * tests/uniconv/test-u32-conv-to-enc.c: New file.
46391
46392         * modules/uniconv/u16-conv-to-enc: New file.
46393         * lib/uniconv/u16-conv-to-enc.c: New file.
46394         * lib/uniconv/u-conv-to-enc.h: New file.
46395         * modules/uniconv/u16-conv-to-enc-tests: New file.
46396         * tests/uniconv/test-u16-conv-to-enc.c: New file.
46397
46398         * modules/uniconv/u8-conv-to-enc: New file.
46399         * lib/uniconv/u8-conv-to-enc.c: New file.
46400         * modules/uniconv/u8-conv-to-enc-tests: New file.
46401         * tests/uniconv/test-u8-conv-to-enc.c: New file.
46402
46403         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46404         u32_conv_to_encoding): New declarations.
46405
46406 2007-06-09  Bruno Haible  <bruno@clisp.org>
46407
46408         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
46409
46410 2007-06-09  Bruno Haible  <bruno@clisp.org>
46411
46412         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
46413         * modules/malloca: Renamed from modules/allocsa, updated.
46414         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
46415         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
46416         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
46417         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
46418         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
46419         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
46420         * modules/xmalloca: Renamed from modules/xallocsa, updated.
46421         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
46422         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
46423         * modules/c-strcasestr (Depends-on): Update.
46424         * lib/c-strcasestr.c: Update.
46425         * modules/c-strstr (Depends-on): Update.
46426         * lib/c-strstr.c: Update.
46427         * modules/canonicalize-lgpl (Depends-on): Update.
46428         * lib/canonicalize-lgpl.c: Update.
46429         * modules/clean-temp (Depends-on): Update.
46430         * lib/clean-temp.c: Update.
46431         * modules/csharpcomp (Depends-on): Update.
46432         * lib/csharpcomp.c: Update.
46433         * modules/csharpexec (Depends-on): Update.
46434         * lib/csharpexec.c: Update.
46435         * modules/javacomp (Depends-on): Update.
46436         * lib/javacomp.c: Update.
46437         * modules/javaexec (Depends-on): Update.
46438         * lib/javaexec.c: Update.
46439         * modules/mbscasestr (Depends-on): Update.
46440         * lib/mbscasestr.c: Update.
46441         * modules/mbsstr (Depends-on): Update.
46442         * lib/mbsstr.c: Update.
46443         * modules/setenv (Depends-on): Update.
46444         * lib/setenv.c: Update.
46445         * modules/strcasestr (Depends-on): Update.
46446         * lib/strcasestr.c: Update.
46447         * modules/striconveha (Depends-on): Update.
46448         * lib/striconveha.c: Update.
46449         * modules/relocatable-prog-wrapper (Files): Update.
46450         * lib/relocwrapper.c: Update.
46451         * build-aux/install-reloc: Update.
46452         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
46453
46454 2007-06-08  Bruno Haible  <bruno@clisp.org>
46455
46456         Port to uClibc.
46457         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
46458         * lib/fpurge.c (fpurge): Likewise.
46459         * lib/freading.c (freading): Likewise.
46460         * lib/fseeko.c (rpl_fseeko): Likewise.
46461         * lib/fseterr.c (fseterr): Likewise.
46462         * lib/fwriting.c (fwriting): Likewise.
46463         * tests/test-fflush.c (main): Avoid a failure on uClibc.
46464
46465 2007-06-08  Bruno Haible  <bruno@clisp.org>
46466
46467         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
46468         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
46469         * modules/gettext (Files): Add m4/intlmacosx.m4.
46470
46471 2007-06-07  Bruno Haible  <bruno@clisp.org>
46472
46473         * modules/localename-tests: New file.
46474         * tests/test-localename.c: New file.
46475
46476         New module 'localename'.
46477         * lib/localename.h: New file.
46478         * lib/localename.c: New file, from GNU gettext.
46479         * m4/localename.m4: New file.
46480         * modules/localename: New file.
46481
46482 2007-06-07  Bruno Haible  <bruno@clisp.org>
46483
46484         Work around the lack of <wchar.h> on some builds of uClibc.
46485         * doc/headers/wchar.texi: Update.
46486         * lib/wchar_.h: Include <wchar.h> only if it exists.
46487         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
46488         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
46489         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
46490         doesn't exist.
46491         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
46492         * modules/mbfile (Depends-on): Add wchar.
46493         * modules/mbiter (Depends-on): Likewise.
46494         * modules/mbuiter (Depends-on): Likewise.
46495         Reported by Simon Josefsson.
46496
46497 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
46498
46499         Work around problem reported by Steven M. Schweda in
46500         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
46501         Tru64 5.1B with the Compaq compiler environment installed declares
46502         an 'isblank' function but does not define it in the C library.
46503         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
46504         * lib/regex_internal.h (isblank): Likewise.
46505         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
46506         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46507
46508 2007-06-05  Bruno Haible  <bruno@clisp.org>
46509
46510         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
46511         ia64.
46512         * modules/printf-safe: New file.
46513         * modules/fprintf-posix (Depends-on): Add printf-safe.
46514         * modules/printf-posix (Depends-on): Likewise.
46515         * modules/snprintf-posix (Depends-on): Likewise.
46516         * modules/sprintf-posix (Depends-on): Likewise.
46517         * modules/vasnprintf-posix (Depends-on): Likewise.
46518         * modules/vasprintf-posix (Depends-on): Likewise.
46519         * modules/vfprintf-posix (Depends-on): Likewise.
46520         * modules/vprintf-posix (Depends-on): Likewise.
46521         * modules/vsnprintf-posix (Depends-on): Likewise.
46522         * modules/vsprintf-posix (Depends-on): Likewise.
46523         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46524         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
46525         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
46526         "no" on i386, x86_64, ia64.
46527         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
46528         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46529         on i386, x86_64, ia64.
46530         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
46531         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46532         on i386, x86_64, ia64.
46533         * tests/test-vasnprintf-posix.c: Include float.h.
46534         (LDBL80_WORDS): New macro.
46535         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46536         on i386, x86_64, ia64.
46537         * tests/test-vasprintf-posix.c: Include float.h.
46538         (LDBL80_WORDS): New macro.
46539         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46540         on i386, x86_64, ia64.
46541         * tests/test-snprintf-posix.c: Include float.h.
46542         * tests/test-sprintf-posix.c: Likewise.
46543         * tests/test-vsnprintf-posix.c: Likewise.
46544         * tests/test-vsprintf-posix.c: Likewise.
46545
46546 2007-06-05  Bruno Haible  <bruno@clisp.org>
46547
46548         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
46549         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
46550         non-IEEE numbers on i386, x86_64, ia64.
46551         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
46552         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
46553         * tests/test-isnanl.h: Include float.h.
46554         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
46555
46556 2007-06-05  Bruno Haible  <bruno@clisp.org>
46557
46558         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
46559         also the %a / %A. Handle the %a / %A code before this extra handling.
46560
46561 2007-06-05  Bruno Haible  <bruno@clisp.org>
46562
46563         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
46564         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
46565
46566 2007-06-05  Bruno Haible  <bruno@clisp.org>
46567
46568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
46569         typo in variable name.
46570
46571 2007-06-05  Eric Blake  <ebb9@byu.net>
46572
46573         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
46574         Reported by Simon Josefsson.
46575
46576 2007-06-04  Bruno Haible  <bruno@clisp.org>
46577
46578         Avoid test failures on some PowerPC platforms.
46579         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
46580         Define differently for PowerPC.
46581         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
46582         Reported by Gary V. Vaughan <gary@gnu.org>.
46583
46584 2007-06-02  Bruno Haible  <bruno@clisp.org>
46585
46586         Fix test-stdint failure on FreeBSD/ia64.
46587         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
46588         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
46589         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
46590         * doc/headers/stdint.texi: Update.
46591
46592 2007-06-01  Bruno Haible  <bruno@clisp.org>
46593
46594         * tests/test-binary-io.c (main): Pass a third argument to open().
46595         Reported by Gary V. Vaughan <gary@gnu.org>.
46596
46597 2007-06-01  Bruno Haible  <bruno@clisp.org>
46598
46599         * doc/functions/frexpl.texi: Update for mingw.
46600
46601 2007-06-01  Bruno Haible  <bruno@clisp.org>
46602
46603         * tests/test-lseek.c (main): Disable test of errno for invalid third
46604         argument.
46605         * doc/functions/lseek.texi: Update.
46606         Reported by Gary V. Vaughan <gary@gnu.org>.
46607
46608 2007-05-28  Bruno Haible  <bruno@clisp.org>
46609
46610         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
46611
46612 2007-05-31  Eric Blake  <ebb9@byu.net>
46613
46614         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
46615         cross compiling.
46616
46617 2007-05-30  Eric Blake  <ebb9@byu.net>
46618         and Bruno Haible  <bruno@clisp.org>
46619
46620         Work around mingw test failures exposed by m4-1.4.9b.
46621         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
46622         * tests/test-unistd.c: Disable uid_t and git_t tests for the
46623         moment.
46624
46625 2007-05-30  Bruno Haible  <bruno@clisp.org>
46626
46627         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
46628         assuming that they are closed. Needed on HP-UX 11.
46629
46630 2007-05-29  Bruno Haible  <bruno@clisp.org>
46631
46632         Fix a problem with #include_next.
46633         * lib/dirent_.h: Split the double-inclusion guard.
46634         * lib/fcntl_.h: Likewise.
46635         * lib/float_.h: Likewise.
46636         * lib/iconv_.h: Likewise.
46637         * lib/inttypes_.h: Likewise.
46638         * lib/locale_.h: Likewise.
46639         * lib/math_.h: Likewise.
46640         * lib/netinet_in_.h: Likewise.
46641         * lib/search_.h: Likewise.
46642         * lib/signal_.h: Likewise.
46643         * lib/stdint_.h: Likewise.
46644         * lib/stdio_.h: Likewise.
46645         * lib/stdlib_.h: Likewise.
46646         * lib/string_.h: Likewise.
46647         * lib/sys_select_.h: Likewise.
46648         * lib/sys_socket_.h: Likewise.
46649         * lib/sys_stat_.h: Likewise.
46650         * lib/sys_time_.h: Likewise.
46651         * lib/sysexits_.h: Likewise.
46652         * lib/time_.h: Likewise.
46653         * lib/unistd_.h: Likewise.
46654         * lib/wchar_.h: Likewise.
46655         * lib/wctype_.h: Likewise.
46656
46657 2007-05-29  Bruno Haible  <bruno@clisp.org>
46658
46659         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
46660         for the moment.
46661
46662 2007-05-29  Bruno Haible  <bruno@clisp.org>
46663
46664         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
46665         invocation.
46666         Reported by Eric Blake.
46667
46668 2007-05-29  Bruno Haible  <bruno@clisp.org>
46669
46670         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
46671         compiling case.
46672
46673 2007-05-29  Eric Blake  <ebb9@byu.net>
46674             Bruno Haible  <bruno@clisp.org>
46675
46676         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
46677         cross compiles.
46678
46679 2007-05-28  Eric Blake  <ebb9@byu.net>
46680
46681         * modules/closein-tests (test_closein_LDADD): Support test on
46682         cygwin with libtool.
46683
46684 2007-05-28  Bruno Haible  <bruno@clisp.org>
46685
46686         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
46687         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46688         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46689         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46690         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46691         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46692         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46693         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46694         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46695
46696 2007-05-28  Eric Blake  <ebb9@byu.net>
46697
46698         Unconditionally include <config.h> in unit tests.
46699         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
46700         * tests/test-allocsa.c, tests/test-arcfour.c,
46701         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
46702         tests/test-array_list.c, tests/test-array_oset.c,
46703         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
46704         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
46705         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
46706         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
46707         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
46708         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
46709         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
46710         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
46711         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
46712         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
46713         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
46714         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
46715         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
46716         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
46717         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
46718         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
46719         test-md5.c, test-memmem.c, test-printf-posix.c,
46720         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
46721         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
46722         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
46723         test-strcasestr.c, test-striconv.c, test-striconveh.c,
46724         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
46725         test-vasnprintf-posix2.c, test-vasnprintf.c,
46726         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
46727         test-vfprintf-posix.c, test-vprintf-posix.c,
46728         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
46729         test-xvasprintf.c: Likewise.
46730
46731 2007-05-28  Bruno Haible  <bruno@clisp.org>
46732
46733         * gnulib-tool (func_import): Remember the --with-tests command-line
46734         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
46735         Reported by Eric Blake.
46736
46737 2007-05-28  Bruno Haible  <bruno@clisp.org>
46738
46739         * modules/ftell-tests: New file.
46740         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
46741         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
46742
46743         * lib/ftell.c: New file.
46744         * modules/ftell: New file.
46745         * m4/ftell.m4: New file.
46746         * doc/functions/ftell.texi: Update.
46747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
46748         REPLACE_FTELL.
46749         * lib/stdio_.h (rpl_ftell): New declaration.
46750         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
46751         REPLACE_FTELL.
46752
46753 2007-05-28  Eric Blake  <ebb9@byu.net>
46754
46755         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
46756
46757 2007-05-28  Bruno Haible  <bruno@clisp.org>
46758
46759         * modules/fseek-tests: New file.
46760         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
46761         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
46762
46763         * lib/fseek.c: New file.
46764         * modules/fseek: New file.
46765         * m4/fseek.m4: New file.
46766         * doc/functions/fseek.texi: Update.
46767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
46768         REPLACE_FSEEK.
46769         * lib/stdio_.h (rpl_fseek): New declaration.
46770         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
46771         REPLACE_FSEEK.
46772
46773 2007-05-28  Bruno Haible  <bruno@clisp.org>
46774
46775         * lib/stdio_.h (fflush): More comments.
46776
46777 2007-05-28  Bruno Haible  <bruno@clisp.org>
46778
46779         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
46780         runtime test.
46781
46782 2007-05-28  Eric Blake  <ebb9@byu.net>
46783
46784         Improve lseek module.
46785         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
46786         * lib/unistd_.h (lseek): Scale back link warning message.
46787         * tests/test-lseek.c: Beef up test.
46788         * tests/test-lseek.sh: Exercise more facets of lseek.
46789         Reported by Bruno Haible.
46790
46791 2007-05-28  Bruno Haible  <bruno@clisp.org>
46792
46793         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
46794         to define.
46795
46796 2007-05-27  Bruno Haible  <bruno@clisp.org>
46797
46798         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
46799
46800 2007-05-27  Bruno Haible  <bruno@clisp.org>
46801
46802         * modules/openmp: New file.
46803         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
46804         Noah Misch.
46805
46806 2007-05-26  Bruno Haible  <bruno@clisp.org>
46807
46808         * modules/chdir-long (Depends-on): Add fchdir.
46809         * modules/chdir-safer (Depends-on): Likewise.
46810         * modules/fts (Depends-on): Likewise.
46811         * modules/fts-lgpl (Depends-on): Likewise.
46812         * modules/openat (Depends-on): Likewise.
46813         * modules/savewd (Depends-on): Likewise.
46814
46815 2007-05-24  Eric Blake  <ebb9@byu.net>
46816
46817         Fix lseek on mingw.
46818         * modules/lseek: New module.
46819         * m4/lseek.m4: New file.
46820         * lib/lseek.c: New file.
46821         * modules/lseek-tests: New file.
46822         * tests/test-lseek.c: New file.
46823         * tests/test-lseek.sh: New file.
46824         * MODULES.html.sh: Document lseek module.
46825         * modules/fflush (Depends-on): Add lseek, fseeko.
46826         * modules/fseeko (Depends-on): Likewise.
46827         * modules/ftello (Depends-on): Likewise.
46828         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
46829         broken.
46830         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
46831         broken.
46832         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
46833         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
46834         * lib/ftello.c (rpl_ftello): Likewise.
46835         * tests/test-fseeko.c (main): Test this.
46836         * tests/test-fseeko.sh: Likewise.
46837         * tests/test-ftello.c (main): Likewise.
46838         * tests/test-ftello.sh: Likewise.
46839         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
46840         implies replacing fseek.
46841         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
46842         HAVE_FTELLO.
46843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
46844         * modules/unistd (Makefile.am): Likewise.
46845         * lib/unistd_.h (lseek): Declare a replacement.
46846         * doc/functions/lseek.texi (lseek): Document this fix.
46847         * doc/functions/fseek.texi (fseek): Likewise.
46848         * doc/functions/ftell.texi (ftell): Likewise.
46849
46850 2007-05-24  Bruno Haible  <bruno@clisp.org>
46851
46852         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
46853         in the printed representation of a NaN.
46854         * tests/test-vasprintf-posix.c (test_function): Likewise.
46855         * tests/test-snprintf-posix.h (test_function): Likewise.
46856         * tests/test-sprintf-posix.h (test_function): Likewise.
46857         Reported by Eric Blake.
46858
46859 2007-05-23  Eric Blake  <ebb9@byu.net>
46860
46861         Fix fseeko/ftello on cygwin 1.5.24.
46862         * doc/functions/fseeko.texi (fseeko): Document the fix.
46863         * doc/functions/ftello.texi (ftello): Document the fix.
46864         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
46865         * doc/functions/stdout.text (stdout): New file.
46866         * doc/functions/stderr.text (stderr): New file.
46867         * doc/gnulib.texi (Function Substitutes): Use new files.
46868         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
46869         prior to 1.7.0.
46870         * tests/test-ftello.c (main): Likewise for ftello.
46871         * tests/test-fseeko.sh: New file.
46872         * tests/test-ftello.sh: New file.
46873         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
46874         with seekable stdin.
46875         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
46876         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
46877         (gl_REPLACE_FSEEKO): New macro.
46878         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
46879         * modules/fseeko (Files): Distribute fseeko.c.
46880         * modules/ftello (Files): Distribute ftello.c.
46881         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
46882         mode.
46883         * lib/ftello.c (rpl_ftello): New file.
46884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
46885         fseeko, ftello.
46886         (gl_STDIN_LARGE_OFFSET): New macro.
46887         * modules/stdio (Makefile.am): Perform the replacement.
46888         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
46889
46890 2007-05-23  Bruno Haible  <bruno@clisp.org>
46891
46892         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
46893         GNULIB_POSIXCHECK is defined.
46894
46895 2007-05-21  Bruno Haible  <bruno@clisp.org>
46896
46897         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
46898         Check also the output for NaN arguments. When cross-compiling, guess
46899         no on IRIX.
46900         * lib/vasnprintf.c: Update comments.
46901         * tests/test-vasnprintf-posix.c (strisnan): New function.
46902         (test_function): Use it.
46903         * tests/test-vasprintf-posix.c (strisnan): New function.
46904         (test_function): Use it.
46905         * tests/test-snprintf-posix.h (strisnan): New function.
46906         (test_function): Use it.
46907         * tests/test-sprintf-posix.h (strisnan): New function.
46908         (test_function): Use it.
46909         Reported by Eric Blake.
46910
46911 2007-05-20  Bruno Haible  <bruno@clisp.org>
46912
46913         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
46914         numbers that fails on BeOS.
46915         * doc/functions/frexpl.texi: Update.
46916
46917 2007-05-20  Jim Meyering  <jim@meyering.net>
46918
46919         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
46920         forced upon us by glibc-2.6.
46921
46922 2007-05-20  Bruno Haible  <bruno@clisp.org>
46923
46924         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
46925         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
46926         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
46927         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
46928         NEED_PRINTF_INFINITE.
46929         (is_infinitel): New function.
46930         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
46931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
46932         gl_PREREQ_VASNPRINTF_INFINITE.
46933         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
46934         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46935         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
46936         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
46937         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
46938         gl_PREREQ_VASNPRINTF_INFINITE.
46939         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46940         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46942         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46943         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46944         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46945         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46946         * doc/functions/fprintf.texi: Update.
46947         * doc/functions/printf.texi: Update.
46948         * doc/functions/snprintf.texi: Update.
46949         * doc/functions/sprintf.texi: Update.
46950         * doc/functions/vfprintf.texi: Update.
46951         * doc/functions/vprintf.texi: Update.
46952         * doc/functions/vsnprintf.texi: Update.
46953         * doc/functions/vsprintf.texi: Update.
46954
46955 2007-05-20  Bruno Haible  <bruno@clisp.org>
46956
46957         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
46958         was not found in libc.
46959         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46960
46961 2007-05-20  Bruno Haible  <bruno@clisp.org>
46962
46963         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46964         printed as "-nan" instead of "nan".
46965         * tests/test-vasprintf-posix.c (test_function): Likewise.
46966         * tests/test-snprintf-posix.h (test_function): Likewise.
46967         * tests/test-sprintf-posix.h (test_function): Likewise.
46968         Needed for HP-UX 11.
46969
46970 2007-05-20  Jim Meyering  <jim@meyering.net>
46971
46972         Fix buggy test for the fchownat-deref bug.
46973         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
46974         symlink required for the run-test.  Without it, this test would
46975         always declare that fchownat doesn't work, and client code would
46976         unnecessarily use the replacement function with fixed libc.
46977         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
46978         Reported by Greg Schafer.
46979
46980 2007-05-19  Bruno Haible  <bruno@clisp.org>
46981
46982         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
46983         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
46984         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
46985         Needed for IRIX 6.5 and Solaris 2.5.1.
46986
46987 2007-05-19  Bruno Haible  <bruno@clisp.org>
46988
46989         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
46990         (test_function): Skip tests involving -0.0 on platforms where
46991         -0.0 = 0.0.
46992         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
46993         (test_function): Skip tests involving -0.0 on platforms where
46994         -0.0 = 0.0.
46995         * tests/test-snprintf-posix.h (have_minus_zero): New function.
46996         (test_function): Skip tests involving -0.0 on platforms where
46997         -0.0 = 0.0.
46998         * tests/test-sprintf-posix.h (have_minus_zero): New function.
46999         (test_function): Skip tests involving -0.0 on platforms where
47000         -0.0 = 0.0.
47001         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
47002         tests.
47003         * tests/test-printf-posix.h (test_function): Likewise.
47004         * tests/test-printf-posix.output: Remove all -0.0 related results.
47005         Needed for IRIX 6.5.
47006
47007 2007-05-19  Bruno Haible  <bruno@clisp.org>
47008
47009         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47010         printed as "nan0x7fffffff" instead of "nan".
47011         * tests/test-vasprintf-posix.c (test_function): Likewise.
47012         * tests/test-snprintf-posix.h (test_function): Likewise.
47013         * tests/test-sprintf-posix.h (test_function): Likewise.
47014         * tests/test-fprintf-posix.h (NaN): Remove macro.
47015         (test_function): Remove all NaN related tests.
47016         * tests/test-printf-posix.h (NaN): Remove macro.
47017         (test_function): Remove all NaN related tests.
47018         * tests/test-printf-posix.output: Remove all NaN related results.
47019         Needed for IRIX 6.5.
47020
47021 2007-05-19  Bruno Haible  <bruno@clisp.org>
47022
47023         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
47024         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47025
47026 2007-05-19  Bruno Haible  <bruno@clisp.org>
47027
47028         * lib/float_.h: New file.
47029         * m4/float_h.m4: New file.
47030         * modules/float: New file.
47031         * modules/isnanl (Dependencies): Add float.
47032         * modules/isnanl-nolibm (Dependencies): Likewise.
47033         * modules/mathl (Dependencies): Likewise.
47034         * modules/printf-frexpl (Dependencies): Likewise.
47035         * modules/signbit (Dependencies): Likewise.
47036         * modules/vasnprintf (Dependencies): Likewise.
47037         * doc/headers/float.texi: Update.
47038
47039 2007-05-19  Jim Meyering  <jim@meyering.net>
47040
47041         * lib/utimens.c (gl_futimens): Rename from futimens,
47042         now that glibc-2.6 declares futimens.
47043         * lib/utimens.h: Likewise.
47044
47045 2007-05-19  Bruno Haible  <bruno@clisp.org>
47046
47047         Avoid test failures on mingw.
47048         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
47049         * tests/test-printf-posix.sh: Likewise.
47050         * tests/test-vfprintf-posix.sh: Likewise.
47051         * tests/test-vprintf-posix.sh: Likewise.
47052
47053 2007-05-19  Bruno Haible  <bruno@clisp.org>
47054
47055         Fix *printf result for NaN, Inf, -0.0 on mingw.
47056         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
47057         * lib/vasnprintf.c: Include math.h and isnan.h.
47058         (is_infinite_or_zero): New function.
47059         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
47060         values in the %f, %F, %e, %E, %g, %G directives.
47061         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
47062         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47063         gl_PRINTF_INFINITE and test its result. Invoke
47064         gl_PREREQ_VASNPRINTF_INFINITE.
47065         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47066         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47067         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47068         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47069         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47070         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47071         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47072         * doc/functions/fprintf.texi: Update.
47073         * doc/functions/printf.texi: Update.
47074         * doc/functions/snprintf.texi: Update.
47075         * doc/functions/sprintf.texi: Update.
47076         * doc/functions/vfprintf.texi: Update.
47077         * doc/functions/vprintf.texi: Update.
47078         * doc/functions/vsnprintf.texi: Update.
47079         * doc/functions/vsprintf.texi: Update.
47080
47081 2007-05-19  Bruno Haible  <bruno@clisp.org>
47082
47083         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
47084         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
47085         Instead of multiplying with 10^k, set extra_zeroes to k.
47086         (scale10_round_long_double): Remove function.
47087
47088 2007-05-18  Bruno Haible  <bruno@clisp.org>
47089
47090         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
47091         introduced on 2007-05-06.
47092
47093 2007-05-18  Bruno Haible  <bruno@clisp.org>
47094
47095         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
47096         %g directives.
47097         * tests/test-vasprintf-posix.c (test_function): Likewise.
47098         * tests/test-snprintf-posix.h (test_function): Likewise.
47099         * tests/test-sprintf-posix.h (test_function): Likewise.
47100
47101 2007-05-18  Bruno Haible  <bruno@clisp.org>
47102
47103         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
47104         (strmatch): New function.
47105         (test_function): Test the %f directive on numbers of various exponents.
47106         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
47107         (strmatch): New function.
47108         (test_function): Test the %f directive on numbers of various exponents.
47109         * tests/test-snprintf-posix.h (strmatch): New function.
47110         (test_function): Test the %f directive on numbers of various exponents.
47111         * tests/test-sprintf-posix.h (strmatch): New function.
47112         (test_function): Test the %f directive on numbers of various exponents.
47113         * tests/test-snprintf-posix.c (SIZEOF): New macro.
47114         * tests/test-sprintf-posix.c (SIZEOF): New macro.
47115         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
47116         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
47117
47118 2007-05-18  Bruno Haible  <bruno@clisp.org>
47119
47120         Add support for 'long double' number output.
47121         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
47122         * lib/vasnprintf.c: Include math.h and float+.h.
47123         (mp_limb_t): New type.
47124         (GMP_LIMB_BITS): New macro.
47125         (mp_twolimb_t): New type.
47126         (GMP_TWOLIMB_BITS): New macro.
47127         (mpn_t): New type.
47128         (multiply, divide, convert_to_decimal, decode_long_double,
47129         scale10_round_long_double, scale10_round_decimal_long_double,
47130         floorlog10l): New functions.
47131         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
47132         for the %f, %F, %e, %E, %g, %G directives.
47133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
47134         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47135         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
47136         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
47137         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47138         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47139         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47140         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47141         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47142         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47143         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47144         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
47145         * modules/snprintf-posix (Depends-on): Likewise.
47146         * modules/sprintf-posix (Depends-on): Likewise.
47147         * modules/vasnprintf-posix (Depends-on): Likewise.
47148         * modules/vasprintf-posix (Depends-on): Likewise.
47149         * modules/vfprintf-posix (Depends-on): Likewise.
47150         * modules/vsnprintf-posix (Depends-on): Likewise.
47151         * modules/vsprintf-posix (Depends-on): Likewise.
47152         * modules/vasnprintf (Files): Add lib/float+.h.
47153         * doc/functions/fprintf.texi: Update.
47154         * doc/functions/printf.texi: Update.
47155         * doc/functions/snprintf.texi: Update.
47156         * doc/functions/sprintf.texi: Update.
47157         * doc/functions/vfprintf.texi: Update.
47158         * doc/functions/vprintf.texi: Update.
47159         * doc/functions/vsnprintf.texi: Update.
47160         * doc/functions/vsprintf.texi: Update.
47161
47162 2007-05-18  Bruno Haible  <bruno@clisp.org>
47163
47164         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
47165
47166 2007-05-18  Bruno Haible  <bruno@clisp.org>
47167
47168         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
47169         for printing 64-bit integers. Needed for mingw.
47170
47171 2007-05-18  Bruno Haible  <bruno@clisp.org>
47172
47173         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
47174         gl_FUNC_FREXPL_WORKS.
47175         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
47176
47177 2007-05-18  Bruno Haible  <bruno@clisp.org>
47178
47179         * modules/frexpl-nolibm-tests: New file.
47180
47181         * modules/frexpl-nolibm: New file.
47182         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
47183
47184 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
47185
47186         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
47187         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47188         GCC 4.2, which otherwise issues a lot of warnings.
47189         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
47190         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
47191         Likewise.
47192         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
47193         * modules/iconv_open (iconv.h): Likewise.
47194         * modules/locale (locale.h): Likewise.
47195         * modules/netinet_in (netinet/in.h): Likewise.
47196         * modules/sys_select (sys_select.h): Likewise.
47197         * modules/sys_socket (sys/socket.h): Likewise.
47198         * modules/sys_stat (sys/stat.h): Likewise.
47199         * modules/sysexits (sysexits.h): Likewise.
47200         * modules/unistd (unistd.h): Likewise.
47201
47202 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47203
47204         * modules/closein-tests (Makefile.am): Distribute
47205         `test-closein.sh'.
47206
47207 2007-05-17  Bruno Haible  <bruno@clisp.org>
47208
47209         * tests/test-printf-posix.output: Renamed from
47210         tests/test-fprintf-posix.out.
47211         * modules/fprintf-posix-tests: Update.
47212         * modules/printf-posix-tests: Update.
47213         * modules/vfprintf-posix-tests: Update.
47214         * modules/vprintf-posix-tests: Update.
47215         * tests/test-fprintf-posix.sh: Update.
47216         * tests/test-printf-posix.sh: Update.
47217         * tests/test-vfprintf-posix.sh: Update.
47218         * tests/test-vprintf-posix.sh: Update.
47219         Reported by Ralf Wildenhues.
47220
47221 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47222
47223         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
47224         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47225         GCC 4.2, which otherwise issues a lot of warnings.
47226         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
47227         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
47228         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
47229         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
47230         it should no longer be needed.
47231         * lib/string_.h: Likewise.
47232         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
47233         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
47234         * modules/inttypes (inttypes.h): Likewise.
47235         * modules/math (math.h): Likewise.
47236         * modules/search (search.h): Likewise.
47237         * modules/signal (signal.h): Likewise.
47238         * modules/stdint (stdint.h): Likewise.
47239         * modules/stdio (stdio.h): Likewise.
47240         * modules/stdlib (stdlib.h): Likewise.
47241         * modules/string (string.h): Likewise.
47242         * modules/sys_time (sys/time.h): Likewise.
47243         * modules/time (time.h): Likewise.
47244         * modules/wchar (wchar.h): Likewise.
47245         * modules/wctype (wtype.h): Likewise.
47246
47247 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47248
47249         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
47250
47251 2007-05-13  Bruno Haible  <bruno@clisp.org>
47252
47253         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
47254         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47255         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
47256         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47257         (gl_PREREQ_STRTOK_R): Don't require it here.
47258
47259 2007-05-13  Bruno Haible  <bruno@clisp.org>
47260
47261         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
47262         when used in C++ mode.
47263
47264 2007-05-12  Bruno Haible  <bruno@clisp.org>
47265
47266         * lib/linebuffer.h: Tweak doc.
47267         * lib/linebuffer.c: Likewise.
47268
47269 2007-05-12  James Youngman  <jay@gnu.org>
47270
47271         * lib/linebuffer.c (readlinebuffer_delim): New function,
47272         like readlinebuffer, but use a caller-specified delimiter.
47273         (readlinebuffer): Just call readlinebuffer_delim with '\n'
47274         as the delimiter.
47275         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
47276
47277 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47278
47279         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
47280         * modules/openat (Files): Remove openat-die.c.
47281         (Depends-on): Add openat-die.
47282         * modules/openat-die: New module.
47283
47284 2007-05-06  Bruno Haible  <bruno@clisp.org>
47285
47286         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
47287         Update with info about Cygwin.
47288         * doc/functions/fprintf.texi: Update.
47289         * doc/functions/printf.texi: Update.
47290         * doc/functions/snprintf.texi: Update.
47291         * doc/functions/sprintf.texi: Update.
47292         * doc/functions/vfprintf.texi: Update.
47293         * doc/functions/vprintf.texi: Update.
47294         * doc/functions/vsnprintf.texi: Update.
47295         * doc/functions/vsprintf.texi: Update.
47296         Reported by Eric Blake.
47297
47298 2007-05-06  Bruno Haible  <bruno@clisp.org>
47299
47300         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
47301         padding ourselves for the floating-point directives.
47302         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
47303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
47304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47305         gl_PRINTF_FLAG_ZERO and test its result. Invoke
47306         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
47307         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47314         * tests/test-snprintf-posix.h (test_function): Also check the width
47315         and some flags in the %f directive.
47316         * tests/test-sprintf-posix.h (test_function): Likewise.
47317         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47318         * tests/test-vasprintf-posix.c (test_function): Likewise.
47319         * doc/functions/fprintf.texi: Update.
47320         * doc/functions/printf.texi: Update.
47321         * doc/functions/snprintf.texi: Update.
47322         * doc/functions/sprintf.texi: Update.
47323         * doc/functions/vfprintf.texi: Update.
47324         * doc/functions/vprintf.texi: Update.
47325         * doc/functions/vsnprintf.texi: Update.
47326         * doc/functions/vsprintf.texi: Update.
47327
47328 2007-05-06  Bruno Haible  <bruno@clisp.org>
47329
47330         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
47331         pass the ' flag character to sprintf or snprintf.
47332         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
47333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
47334         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47335         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
47336         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
47337         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47338         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47339         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47340         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47341         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47342         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47343         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47344         * tests/test-snprintf-posix.h (test_function): Also check the grouping
47345         flag.
47346         * tests/test-sprintf-posix.h (test_function): Likewise.
47347         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47348         * tests/test-vasprintf-posix.c (test_function): Likewise.
47349         * doc/functions/fprintf.texi: Update.
47350         * doc/functions/printf.texi: Update.
47351         * doc/functions/snprintf.texi: Update.
47352         * doc/functions/sprintf.texi: Update.
47353         * doc/functions/vfprintf.texi: Update.
47354         * doc/functions/vprintf.texi: Update.
47355         * doc/functions/vsnprintf.texi: Update.
47356         * doc/functions/vsprintf.texi: Update.
47357
47358 2007-05-01  Bruno Haible  <bruno@clisp.org>
47359
47360         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
47361
47362 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
47363
47364         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
47365         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
47366
47367 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47368
47369         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
47370         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
47371         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
47372
47373 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
47374
47375         * lib/argp-help.c (struct hol_entry): New member `ord'.
47376         (HOL_ENTRY_PTRCMP): Use ord for comparison
47377         (hol_sort): Initialize ord.
47378
47379 2007-05-01  Bruno Haible  <bruno@clisp.org>
47380
47381         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
47382         Reported by Eric Blake.
47383         * doc/gnulib.texi (Function Substitutes): Update.
47384
47385 2007-05-01  Bruno Haible  <bruno@clisp.org>
47386
47387         * doc/functions.texi: Remove file, now redundant through
47388         doc/functions/*.texi.
47389
47390 2007-05-01  Bruno Haible  <bruno@clisp.org>
47391
47392         * modules/argp (Depends-on): Add sleep.
47393
47394 2007-05-01  Bruno Haible  <bruno@clisp.org>
47395
47396         * modules/sleep-tests: New file.
47397         * tests/test-sleep.c: New file.
47398
47399         * modules/sleep: New file.
47400         * lib/sleep.c: New file.
47401         * m4/sleep.m4: New file.
47402         * lib/unistd_.h (sleep): New declaration.
47403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
47404         HAVE_SLEEP.
47405         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
47406         * doc/functions/sleep.texi: Document the sleep module.
47407
47408 2007-05-01  Bruno Haible  <bruno@clisp.org>
47409
47410         * lib/sigprocmask.h: Remove file.
47411         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
47412         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
47413         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
47414         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
47415         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47416         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
47417         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
47418         HAVE_SIGSET_T as a shell variable.
47419         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
47420         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
47421         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
47422         (Depends-on): Add signal. Remove verify.
47423         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
47424         (Include): Mention <signal.h> instead of sigprocmask.h.
47425         * NEWS: Mention the change.
47426         * lib/fatal-signal.c: Don't include sigprocmask.h.
47427
47428 2007-05-01  Bruno Haible  <bruno@clisp.org>
47429
47430         * modules/signal: New file.
47431         * lib/signal_.h: New file.
47432         * m4/signal_h.m4: New file.
47433
47434 2007-05-01  Bruno Haible  <bruno@clisp.org>
47435
47436         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
47437         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
47438         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
47439         HAVE_WCTYPE_CTMP_BUG into wctype.h.
47440
47441 2007-05-01  Bruno Haible  <bruno@clisp.org>
47442
47443         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
47444         configure time.
47445         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
47446         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
47447         * modules/sys_stat (Makefile.am): Substitute their values into
47448         sys/stat.h.
47449
47450 2007-05-01  Bruno Haible  <bruno@clisp.org>
47451
47452         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
47453         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
47454         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
47455
47456 2007-05-01  Bruno Haible  <bruno@clisp.org>
47457
47458         * doc/header/assert.texi: Undo last change: don't mention the gnulib
47459         'assert' module here.
47460
47461 2007-05-01  Bruno Haible  <bruno@clisp.org>
47462
47463         * doc/functions/*.texi: New files.
47464         * doc/functions/google-ranking.txt: New file.
47465         * doc/gnulib.texi (Function Substitutes): New chapter.
47466         (ctime, inet_ntoa): Remove sections.
47467         * doc/ctime.texi: Remove file.
47468         * doc/inet_ntoa.texi: Remove file.
47469         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
47470         dependencies.
47471         (%.info): New rule, specifying a --reference-limit.
47472
47473 2007-05-01  Bruno Haible  <bruno@clisp.org>
47474
47475         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
47476
47477 2007-05-01  Bruno Haible  <bruno@clisp.org>
47478
47479         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
47480         the portability of 'mkdir' to mingw systems.
47481
47482 2007-05-01  Bruno Haible  <bruno@clisp.org>
47483
47484         * doc/headers/google-ranking.txt: New file.
47485
47486 2007-04-30  Eric Blake  <ebb9@byu.net>
47487
47488         Prefer fseeko to fseek.
47489         * modules/getpass (Depends-on): Add fseeko.
47490         * lib/getpass.c (getpass): Use fseeko, not fseek.
47491
47492 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
47493
47494         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
47495         assumes the sorting is stable, while most qsort implementations
47496         are not.  Use argument addresses to ensure they never compare as
47497         equal.
47498
47499         * tests/test-argp-2.sh (usage-indent test): Fix output
47500         (func_compare): Restore diff options
47501         * tests/test-argp.c: Restore #include "progname.h"
47502
47503 2007-04-29  Bruno Haible  <bruno@clisp.org>
47504
47505         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
47506         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47507         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
47508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47509         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
47510         (configure.ac): Define CHECK_SNPRINTF_POSIX.
47511         (TESTS, check_PROGRAMS): Add test-snprintf.
47512         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
47513         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
47514         (TESTS, check_PROGRAMS): Add test-vsnprintf.
47515         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
47516         assertions that fail on HP-UX, OSF/1, or IRIX.
47517         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
47518
47519 2007-04-29  Bruno Haible  <bruno@clisp.org>
47520
47521         * MODULES.html.sh (posix_functions): Remove 'contents'.
47522
47523 2007-04-29  Karl Berry  <karl@gnu.org>
47524
47525         * config/srclist.txt (gendocs_template_min): new entry.
47526
47527 2007-04-29  Bruno Haible  <bruno@clisp.org>
47528
47529         Work around fpurge bug on BSD systems.
47530         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
47531         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
47532         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
47533         fpurge to rpl_fpurge if the system already has this function.
47534         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
47535         the case where the system already has this function. Correct invariants
47536         on BSD systems.
47537         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
47538         BSD systems.
47539
47540 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47541
47542         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
47543         proposed by Sven Verdoolaege.
47544
47545         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
47546         options.
47547         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
47548         (usage and help tests): Update
47549
47550 2007-04-29  Bruno Haible  <bruno@clisp.org>
47551
47552         * tests/test-fflush.c (main): Use a file of size 17, not 10.
47553         Print more information in case of failure. Disable a test on BeOS.
47554
47555 2007-04-29  Bruno Haible  <bruno@clisp.org>
47556
47557         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
47558         This helps debugging on systems on which no gdb is available.
47559
47560 2007-04-29  Bruno Haible  <bruno@clisp.org>
47561
47562         * lib/freading.h: Improve comments.
47563         * lib/fwriting.h: Likewise.
47564         * tests/test-freading.c (main): Don't check freading immediately after
47565         repositioning. Needed for glibc.
47566
47567 2007-04-29  Bruno Haible  <bruno@clisp.org>
47568
47569         * lib/freading.c (freading): Trivial simplification.
47570
47571 2007-04-28  Bruno Haible  <bruno@clisp.org>
47572
47573         * tests/test-fwriting.c (main): Also test the interaction between
47574         fflush and fwriting.
47575         * modules/fwriting-tests (Depends-on): Add fflush.
47576
47577         * tests/test-freading.c (main): Also test the interaction between
47578         fflush and freading.
47579         * modules/freading-tests (Depends-on): Add fflush.
47580
47581 2007-04-28  Bruno Haible  <bruno@clisp.org>
47582
47583         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
47584         fseeko and ftello.
47585         Suggested by Eric Blake.
47586
47587 2007-04-28  Jim Meyering  <jim@meyering.net>
47588
47589         Avoid false-negative in gl_STDINT_H's C99 conformance test.
47590         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
47591         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
47592
47593 2007-04-27  Eric Blake  <ebb9@byu.net>
47594
47595         * doc/headers/assert.texi (assert.h): Document assert module use.
47596
47597 2007-04-27  Bruno Haible  <bruno@clisp.org>
47598
47599         * doc/headers/*.texi: New files.
47600         * doc/gnulib.texi (Header File Substitutes): New chapter.
47601         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
47602         dependencies.
47603         (standards.info ,standards.html, standards.dvi): Update dependencies.
47604         (mostlyclean, clean): New targets.
47605
47606 2007-04-27  Bruno Haible  <bruno@clisp.org>
47607
47608         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
47609         * modules/sysexits (Files, Makefile.am): Update.
47610
47611         * lib/sys_socket_.h: Renamed from lib/socket_.h.
47612         * modules/sys_socket (Files, Makefile.am): Update.
47613
47614         * lib/sys_stat_.h: Renamed from lib/stat_.h.
47615         * modules/sys_stat (Files, Makefile.am): Update.
47616
47617 2007-04-27  Eric Blake  <ebb9@byu.net>
47618
47619         * lib/freading.h: Improve comments.
47620         * lib/fwriting.h: Likewise.
47621         * lib/fflush.c: Likewise.
47622
47623         Fix closein for mingw.
47624         * modules/closein-tests: Add tests for closein.
47625         * tests/test-closein.c: New file.
47626         * tests/test-closein.sh: Likewise.
47627         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
47628         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
47629
47630 2007-04-27  Bruno Haible  <bruno@clisp.org>
47631
47632         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
47633         version is < 6.
47634         * lib/math_.h [__DECC]: Likewise.
47635         * lib/stdio_.h [__DECC]: Likewise.
47636         * lib/stdlib_.h [__DECC]: Likewise.
47637         * lib/string_.h [__DECC]: Likewise.
47638         * lib/time_.h [__DECC]: Likewise.
47639         * lib/wchar_.h [__DECC]: Likewise.
47640         * lib/wctype_.h [__DECC]: Likewise.
47641
47642 2007-04-27  Bruno Haible  <bruno@clisp.org>
47643
47644         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
47645
47646 2007-04-27  Bruno Haible  <bruno@clisp.org>
47647
47648         * lib/fflush.c: Add comments.
47649         * modules/fpurge-tests (Depends-on): Add fflush.
47650         * modules/freadable-tests (Depends-on): Likewise.
47651         * modules/fwritable-tests (Depends-on): Likewise.
47652
47653 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
47654
47655         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
47656         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
47657         Report by Bruno Haible <bruno@clisp.org>.
47658
47659 2007-04-26  Eric Blake  <ebb9@byu.net>
47660
47661         Fix fflush on mingw.
47662         * modules/fflush (Depends-on): Add freading.
47663         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
47664         but unread data.
47665
47666 2007-04-26  Eric Blake  <ebb9@byu.net>
47667         and Bruno Haible  <bruno@clisp.org>
47668
47669         Implement freading and fwriting.
47670         * lib/freading.c: New file.
47671         * lib/freading.h: Likewise.
47672         * m4/freading.m4: Likewise.
47673         * modules/freading: Likewise.
47674         * modules/freading-tests: Likewise.
47675         * tests/test-freading.c: Likewise.
47676         * lib/fwriting.c: New file.
47677         * lib/fwriting.h: Likewise.
47678         * m4/fwriting.m4: Likewise.
47679         * modules/fwriting: Likewise.
47680         * modules/fwriting-tests: Likewise.
47681         * tests/test-fwriting.c: Likewise.
47682         * MODULES.html.sh (File stream based Input/Output): Mention them.
47683
47684 2007-04-26  Bruno Haible  <bruno@clisp.org>
47685
47686         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
47687         'long' when we assume it.
47688         Suggested by Eric Blake.
47689
47690 2007-04-26  Bruno Haible  <bruno@clisp.org>
47691
47692         Ensure fseeko, ftello are declared on glibc systems.
47693         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
47694         * modules/fseeko (configure.ac-early): Likewise.
47695         * modules/ftello (configure.ac-early): Likewise.
47696         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
47697         AC_FUNC_FSEEKO for this.
47698         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
47699         (gl_CHECK_FSEEKO): Remove macro.
47700
47701 2007-04-26  Bruno Haible  <bruno@clisp.org>
47702
47703         * tests/test-fflush.c (main): Also check the ftell result after
47704         fflush and fseek/fseeko.
47705         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
47706         file descriptor position cache in the stream.
47707         * lib/fseeko.c (rpl_fseeko): Likewise.
47708
47709 2007-04-26  Bruno Haible  <bruno@clisp.org>
47710
47711         * modules/fflush-tests (Depends-on): Add fseeko.
47712
47713 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
47714             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47715
47716         * lib/argz_.h: ensure error_t definition is obtained in same
47717         mechanism system argz.h would have.
47718         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
47719         argz facilities are known bad.  Err on the side of caution if
47720         cross-compiling.
47721
47722 2007-04-25  Eric Blake  <ebb9@byu.net>
47723
47724         * lib/fpurge.c (includes): Use stdlib.h for free.
47725         * tests/test-fflush.c (main): Also test fflush-fseeko.
47726
47727 2007-04-25  Bruno Haible  <bruno@clisp.org>
47728
47729         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
47730         * lib/fseeko.c: New file.
47731         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
47732         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
47733         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
47734         gl_FUNC_FSEEKO.
47735         (gl_FUNC_FSEEKO): Invoke it.
47736         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
47737         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
47738         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
47739
47740 2007-04-25  Bruno Haible  <bruno@clisp.org>
47741
47742         * modules/fflush (Depends-on): Add ftello.
47743
47744 2007-04-25  Bruno Haible  <bruno@clisp.org>
47745
47746         * modules/ftello-tests: New file.
47747         * tests/test-ftello.c: New file.
47748
47749         * modules/ftello: New file.
47750         * m4/ftello.m4: New file.
47751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
47752         HAVE_FTELLO.
47753         * lib/stdio_.h (ftello): New declaration.
47754         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
47755         HAVE_FTELLO.
47756
47757 2007-04-25  Bruno Haible  <bruno@clisp.org>
47758
47759         * modules/fseeko-tests: New file.
47760         * tests/test-fseeko.c: New file.
47761
47762         * modules/fseeko: New file.
47763         * m4/fseeko.m4: New file.
47764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
47765         HAVE_FSEEKO.
47766         * lib/stdio_.h (fseeko): New declaration.
47767         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
47768         HAVE_FSEEKO.
47769
47770 2007-04-25  Bruno Haible  <bruno@clisp.org>
47771
47772         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
47773
47774 2007-04-25  Bruno Haible  <bruno@clisp.org>
47775
47776         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
47777         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
47778         * tests/test-unistd.c: Likewise.
47779         * tests/test-fcntl.c: Likewise.
47780
47781 2007-04-23  Eric Blake  <ebb9@byu.net>
47782
47783         * lib/fflush.c: Fix missing include.
47784         Reported by Bruno Haible.
47785
47786 2007-04-23  Bruno Haible  <bruno@clisp.org>
47787
47788         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
47789         Reported by Eric Blake.
47790
47791 2007-04-23  Bruno Haible  <bruno@clisp.org>
47792
47793         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
47794
47795 2007-04-23  Bruno Haible  <bruno@clisp.org>
47796
47797         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
47798
47799 2007-04-23  Bruno Haible  <bruno@clisp.org>
47800
47801         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
47802         Needed on HP-UX 11.
47803
47804 2007-04-16  Eric Blake  <ebb9@byu.net>
47805
47806         Make fflush rely on fpurge.
47807         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
47808         open coding all variants.
47809         * modules/fflush (Depends-on): Add fpurge and unistd.
47810         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
47811         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
47812
47813         Fix --with-tests compilation on cygwin.
47814         * modules/argmatch-tests (Makefile.am): List gnulib library first
47815         in LDADD.
47816         * modules/argp-tests (Makefile.am): Likewise.
47817         * modules/array-list-tests (Makefile.am): Likewise.
47818         * modules/array-oset-tests (Makefile.am): Likewise.
47819         * modules/avltree-list-tests (Makefile.am): Likewise.
47820         * modules/avltree-oset-tests (Makefile.am): Likewise.
47821         * modules/avltreehash-list-tests (Makefile.am): Likewise.
47822         * modules/carray-list-tests (Makefile.am): Likewise.
47823         * modules/dirname-tests (Makefile.am): Likewise.
47824         * modules/frexp-tests (Makefile.am): Likewise.
47825         * modules/isnanl-tests (Makefile.am): Likewise.
47826         * modules/linked-list-tests (Makefile.am): Likewise.
47827         * modules/linkedhash-list-tests (Makefile.am): Likewise.
47828         * modules/lock-tests (Makefile.am): Likewise.
47829         * modules/rbtree-list-tests (Makefile.am): Likewise.
47830         * modules/rbtree-oset-tests (Makefile.am): Likewise.
47831         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
47832         * modules/tls-tests (Makefile.am): Likewise.
47833         * modules/tsearch-tests (Makefile.am): Likewise.
47834         * modules/xvasprintf-tests (Makefile.am): Likewise.
47835
47836         Fix fpurge for cygwin.
47837         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
47838         value.
47839         * modules/fpurge-tests (Depends-on): Clean up trash.
47840
47841 2007-04-16  Simon Josefsson  <simon@josefsson.org>
47842
47843         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
47844
47845         * m4/autobuild.m4: Re-indent.
47846
47847 2007-04-13  Bruno Haible  <bruno@clisp.org>
47848
47849         * modules/fpurge-tests: New file.
47850         * tests/test-fpurge.c: New file.
47851
47852         * modules/fpurge: New file.
47853         * lib/fpurge.h: New file.
47854         * lib/fpurge.c: New file.
47855         * m4/fpurge.m4: New file.
47856
47857 2007-04-13  Bruno Haible  <bruno@clisp.org>
47858
47859         * modules/fbufmode-tests: New file.
47860         * tests/test-fbufmode.c: New file.
47861
47862         * modules/fbufmode: New file.
47863         * lib/fbufmode.h: New file.
47864         * lib/fbufmode.c: New file.
47865         * m4/fbufmode.m4: New file.
47866
47867 2007-04-13  Bruno Haible  <bruno@clisp.org>
47868
47869         * modules/fwritable-tests: New file.
47870         * tests/test-fwritable.c: New file.
47871
47872         * modules/fwritable: New file.
47873         * lib/fwritable.h: New file.
47874         * lib/fwritable.c: New file.
47875         * m4/fwritable.m4: New file.
47876
47877 2007-04-13  Bruno Haible  <bruno@clisp.org>
47878
47879         * modules/freadable-tests: New file.
47880         * tests/test-freadable.c: New file.
47881
47882         * modules/freadable: New file.
47883         * lib/freadable.h: New file.
47884         * lib/freadable.c: New file.
47885         * m4/freadable.m4: New file.
47886
47887 2007-04-13  Bruno Haible  <bruno@clisp.org>
47888
47889         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
47890         MOSTLYCLEANFILES.
47891
47892 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47893
47894         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
47895         gzip bootstrap.conf to avoid dragging in i18n machinery.
47896         (gnulib_tool_option): Use it.
47897
47898 2007-04-13  Bruno Haible  <bruno@clisp.org>
47899
47900         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
47901         %F directives.
47902         * tests/test-vasprintf-posix.c (test_function): Likewise.
47903         * tests/test-snprintf-posix.h (test_function): Likewise.
47904         * tests/test-sprintf-posix.h (test_function): Likewise.
47905         * tests/test-fprintf-posix.h (test_function): Likewise.
47906         * tests/test-printf-posix.h (test_function): Likewise.
47907         * tests/test-fprintf-posix.out: Likewise.
47908
47909 2007-04-13  Bruno Haible  <bruno@clisp.org>
47910
47911         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
47912         * modules/tls-tests (configure.ac): Likewise.
47913         Reported by Arto C. Nirkko <anirkko@insel.ch>.
47914
47915 2007-04-13  Bruno Haible  <bruno@clisp.org>
47916
47917         * lib/tls.c (glthread_tls_get): Fix return type.
47918         Patch by Arto C. Nirkko <anirkko@insel.ch>.
47919
47920 2007-04-12  Eric Blake  <ebb9@byu.net>
47921
47922         * modules/gettime (Depends-on): Remove gettime.
47923         Reported by Dmitry V. Levin.
47924
47925 2007-04-12  Bruno Haible  <bruno@clisp.org>
47926
47927         * modules/fflush (Include): Mention <stdio.h>.
47928         * modules/strtoimax (Include): Mention <inttypes.h>.
47929         * modules/strtoumax (Include): Likewise.
47930
47931 2007-04-12  Eric Blake  <ebb9@byu.net>
47932
47933         * .cvsignore: New file.
47934         * .gitignore: Likewise.
47935
47936 2007-04-12  Bruno Haible  <bruno@clisp.org>
47937
47938         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
47939         not before, since $(LDADD) often contains libgnu.a.
47940         * modules/striconv-tests (test_striconv_LDADD): Likewise.
47941         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
47942         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
47943         Needed on Cygwin.
47944
47945 2007-04-12  Eric Blake  <ebb9@byu.net>
47946
47947         Work around glibc's failure to flush stdin on fclose.
47948         * lib/closein.c (close_stdin): Flush stdin before closing.
47949
47950         Work around glibc's failure to reset seekable stdin on exit.
47951         * modules/closein: New module.
47952         * lib/closein.c: New file.
47953         * lib/closein.h: Likewise.
47954         * m4/closein.m4: Likewise.
47955         * MODULES.html.sh (File stream based Input/Output): Document it.
47956
47957 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47958
47959         * gnulib-tool: Rename generated 'autobuild' script to
47960         'do-autobuild' in --create-megatestdir output.
47961
47962         * doc/gnulib.texi (Build robot for gnulib): Fix.
47963
47964 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47965
47966         * modules/sysexits (Depends-on): Add absolute-header.
47967
47968 2007-04-12  Eric Blake  <ebb9@byu.net>
47969
47970         No need to preserve errno on success.
47971         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
47972         Reported by Bruno Haible.
47973
47974 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47975
47976         * MODULES.html.sh (Support for maintaining and releasing
47977         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
47978
47979 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47980
47981         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
47982
47983 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47984
47985         * modules/autobuild: New module.
47986
47987         * m4/autobuild.m4: New file.
47988
47989 2007-04-11  Bruno Haible  <bruno@clisp.org>
47990
47991         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
47992         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
47993         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
47994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
47995         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47996         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47997         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47998         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47999         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48000         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48001         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
48002         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48003         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
48005         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48006         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48007         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
48008         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48009         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48010         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
48011         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48012         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
48014         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48015         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48016         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
48017         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48018         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48019         Reported by Eric Blake.
48020
48021 2007-04-11  Bruno Haible  <bruno@clisp.org>
48022
48023         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
48024
48025 2007-04-10  Bruno Haible  <bruno@clisp.org>
48026
48027         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
48028         for NaN and Infinity. Needed on FreeBSD 6.1.
48029         * tests/test-vasnprintf-posix.c (test_function): Undo last change
48030         regarding results for "%010a" of Infinity and NaN.
48031         * tests/test-vasprintf-posix.c (test_function): Likewise.
48032         * tests/test-snprintf-posix.h (test_function): Likewise.
48033         * tests/test-sprintf-posix.h (test_function): Likewise.
48034         * tests/test-fprintf-posix.h (test_function): Likewise.
48035         * tests/test-printf-posix.h (test_function): Likewise.
48036         * tests/test-fprintf-posix.out: Likewise.
48037
48038 2007-04-10  Bruno Haible  <bruno@clisp.org>
48039
48040         * modules/locale-tests: New file.
48041         * tests/test-locale.c: New file.
48042
48043         * modules/locale: New file.
48044         * lib/locale_.h: New file.
48045         * m4/locale_h.m4: New file.
48046
48047 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
48048             Bruno Haible  <bruno@clisp.org>
48049
48050         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
48051         be determined, test for availability of the copysignf, copysign,
48052         copysignl functions.
48053         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
48054         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
48055         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
48056
48057 2007-04-09  Eric Blake  <ebb9@byu.net>
48058
48059         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
48060         * modules/stdio (Makefile.am): Support fflush.
48061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48062         * modules/fflush: New file.
48063         * lib/fflush.c: Likewise.
48064         * m4/fflush.m4: Likewise.
48065         * modules/fflush-tests: New test.
48066         * tests/test-fflush.c: Likewise.
48067         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
48068
48069 2007-04-06  Bruno Haible  <bruno@clisp.org>
48070
48071         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
48072         (VASNPRINTF): Use signbit for faster determination whether to print a
48073         minus sign.
48074         * modules/vasnprintf (Files): Remove lib/float+.h.
48075         * modules/fprintf-posix (Depends-on): Add signbit.
48076         * modules/snprintf-posix (Depends-on): Likewise.
48077         * modules/sprintf-posix (Depends-on): Likewise.
48078         * modules/vasnprintf-posix (Depends-on): Likewise.
48079         * modules/vasprintf-posix (Depends-on): Likewise.
48080         * modules/vfprintf-posix (Depends-on): Likewise.
48081         * modules/vsnprintf-posix (Depends-on): Likewise.
48082         * modules/vsprintf-posix (Depends-on): Likewise.
48083
48084 2007-04-06  Bruno Haible  <bruno@clisp.org>
48085
48086         * tests/test-frexp.c (main): Test also the sign bit of zero results.
48087         * tests/test-frexpl.c (main): Likewise.
48088         * tests/test-ldexpl.c (main): Likewise.
48089         * modules/frexp-tests (Depends-on): Add signbit.
48090         * modules/frexpl-tests (Depdends-on): Likewise.
48091         * modules/ldexpl-tests (Depdends-on): Likewise.
48092
48093 2007-04-06  Bruno Haible  <bruno@clisp.org>
48094
48095         * modules/signbit-tests: New file.
48096         * tests/test-signbit.c: New file.
48097
48098         * modules/signbit: New file.
48099         * lib/signbitf.c: New file.
48100         * lib/signbitd.c: New file.
48101         * lib/signbitl.c: New file.
48102         * m4/signbit.m4: New file.
48103         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
48104         (signbit): New macro.
48105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
48106         REPLACE_SIGNBIT.
48107         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
48108         REPLACE_FREXPL into math.h.
48109
48110 2007-04-06  Bruno Haible  <bruno@clisp.org>
48111
48112         * modules/isnanf-nolibm-tests: New file.
48113         * tests/test-isnanf.c: New file.
48114
48115         * modules/isnanf-nolibm: New file.
48116         * lib/isnanf.h: New file.
48117         * lib/isnanf.c: New file.
48118         * lib/isnan.c: Consider the USE_FLOAT macro.
48119         * m4/isnanf.m4: New file.
48120
48121 2007-04-06  Bruno Haible  <bruno@clisp.org>
48122
48123         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
48124         (Link): New section.
48125
48126         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
48127
48128 2007-04-06  Bruno Haible  <bruno@clisp.org>
48129
48130         Assume the 'long double' type.
48131         * m4/longdouble.m4: Remove file.
48132         * config/srclist.txt: Don't mention longdouble.m4.
48133         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
48134         * lib/float+.h: Likewise.
48135         * lib/frexp.c: Likewise.
48136         * lib/printf-args.h: Likewise.
48137         * lib/printf-args.c: Likewise.
48138         * lib/printf-frexp.c: Likewise.
48139         * lib/printf-parse.c: Likewise.
48140         * lib/vasnprintf.c: Likewise.
48141         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
48142         * m4/intl.m4: Likewise.
48143         * m4/isnanl.m4: Likewise.
48144         * m4/printf.m4: Likewise.
48145         * m4/printf-frexpl.m4: Likewise.
48146         * m4/vasnprintf.m4: Likewise.
48147         * modules/allocsa (Files): Remove m4/longdouble.m4.
48148         * modules/gettext (Files): Likewise.
48149         * modules/relocatable-prog-wrapper (Files): Likewise.
48150         * modules/vasnprintf (Files): Likewise.
48151         * modules/isnanl (Files): Likewise.
48152         (Include): Simplify.
48153         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
48154         (Include): Simplify.
48155         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
48156         (Include): Simplify.
48157         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
48158         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48159         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
48160         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48161         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48162         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48163         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
48164         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48165         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48166         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48167         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
48168         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48169         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
48170         * tests/test-isnanl.c: Likewise.
48171         * tests/test-snprintf-posix.h: Likewise.
48172         * tests/test-sprintf-posix.h: Likewise.
48173         * tests/test-vasnprintf-posix.c: Likewise.
48174         * tests/test-vasnprintf-posix2.c: Likewise.
48175         * tests/test-vasprintf-posix.c: Likewise.
48176
48177 2007-04-06  Bruno Haible  <bruno@clisp.org>
48178
48179         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
48180         * lib/math_.h [__DECC]: Include the overridden include file through
48181         #include_next, outside the double-inclusion guard.
48182         * lib/stdio_.h [__DECC]: Likewise.
48183         * lib/stdlib_.h [__DECC]: Likewise.
48184         * lib/string_.h [__DECC]: Likewise.
48185         * lib/time_.h [__DECC]: Likewise.
48186         * lib/wchar_.h [__DECC]: Likewise.
48187         * lib/wctype_.h [__DECC]: Likewise.
48188         * lib/inttypes_.h [__DECC]: Likewise.
48189         Reported by Albert Chin <china@thewrittenword.com> in
48190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
48191
48192 2007-04-04  Eric Blake  <ebb9@byu.net>
48193
48194         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
48195         1.5.x.
48196
48197 2007-04-04  Bruno Haible  <bruno@clisp.org>
48198
48199         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
48200         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
48201
48202 2007-04-04  Bruno Haible  <bruno@clisp.org>
48203
48204         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
48205         results for "%010a" of Infinity and NaN.
48206         * tests/test-vasprintf-posix.c (test_function): Likewise.
48207         * tests/test-snprintf-posix.h (test_function): Likewise.
48208         * tests/test-sprintf-posix.h (test_function): Likewise.
48209         * tests/test-fprintf-posix.h (test_function): Remove these tests.
48210         * tests/test-printf-posix.h (test_function): Likewise.
48211         * tests/test-fprintf-posix.out: Update.
48212         Needed for FreeBSD 6.1.
48213
48214 2007-04-04  Bruno Haible  <bruno@clisp.org>
48215
48216         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
48217         directly used by the gnulib modules nor by gnulib-tool.
48218
48219 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
48220
48221         * DEPENDENCIES: Give overall description of version dependency
48222         desirability.  Use more-typical names for apps.
48223         Add shell, coreutils, diffutils, grep, tar, gzip.
48224
48225 2007-04-04  Simon Josefsson  <simon@josefsson.org>
48226
48227         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
48228
48229 2007-04-04  Karl Berry  <karl@gnu.org>
48230
48231         * MODULES.html.sh (func_module): missing '.
48232
48233 2007-04-03  Bruno Haible  <bruno@clisp.org>
48234
48235         * modules/argmatch-tests (Makefile.am): New variable
48236         test_argmatch_LDADD.
48237         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
48238         * modules/array-list-tests (Makefile.am): New variable
48239         test_array_list_LDADD.
48240         * modules/array-oset-tests (Makefile.am): New variable
48241         test_array_oset_LDADD.
48242         * modules/avltree-list-tests (Makefile.am): New variable
48243         test_avltree_list_LDADD.
48244         * modules/avltree-oset-tests (Makefile.am): New variable
48245         test_avltree_oset_LDADD.
48246         * modules/avltreehash-list-tests (Makefile.am): New variable
48247         test_avltreehash_list_LDADD.
48248         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
48249         test_canonicalize_lgpl_LDADD.
48250         * modules/carray-list-tests (Makefile.am): New variable
48251         test_carray_list_LDADD.
48252         * modules/dirname-tests (Makefile.am): New variable
48253         test_dirname_LDADD.
48254         * modules/linked-list-tests (Makefile.am): New variable
48255         test_linked_list_LDADD.
48256         * modules/linkedhash-list-tests (Makefile.am): New variable
48257         test_linkedhash_list_LDADD.
48258         * modules/rbtree-list-tests (Makefile.am): New variable
48259         test_rbtree_list_LDADD.
48260         * modules/rbtree-oset-tests (Makefile.am): New variable
48261         test_rbtree_oset_LDADD.
48262         * modules/rbtreehash-list-tests (Makefile.am): New variable
48263         test_rbtreehash_list_LDADD.
48264         * modules/xvasprintf-tests (Makefile.am): New variable
48265         test_xvasprintf_LDADD.
48266         Reported by Eric Blake.
48267
48268 2007-04-03  Eric Blake  <ebb9@byu.net>
48269
48270         * DEPENDENCIES: Weaken m4 requirements.
48271
48272 2007-04-03  Bruno Haible  <bruno@clisp.org>
48273
48274         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
48275         * modules/isnanl-tests (configure.ac): Likewise.
48276
48277 2007-04-03  Ben Pfaff  <blp@gnu.org>
48278
48279         * modules/iconv_open: Add $(srcdir)/ to source directory
48280         references in Makefile fragments that call gperf, to fix VPATH
48281         builds.
48282
48283 2007-04-03  Bruno Haible  <bruno@clisp.org>
48284
48285         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
48286         * lib/ldexpl.c: Undo last change.
48287
48288 2007-04-03  Bruno Haible  <bruno@clisp.org>
48289
48290         * modules/printf-frexpl (Depends-on): Undo last change.
48291         (Files): Add m4/ldexpl.m4.
48292
48293 2007-04-03  Bruno Haible  <bruno@clisp.org>
48294
48295         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
48296         * modules/isnanl (Link): New section.
48297
48298         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
48299         * modules/frexp (Link): New section.
48300
48301         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
48302         * modules/frexpl (Link): New section.
48303
48304         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
48305         * modules/ldexpl (Link): New section.
48306
48307 2007-04-03  Bruno Haible  <bruno@clisp.org>
48308
48309         * modules/TEMPLATE-EXTENDED: New file.
48310         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
48311
48312 2007-04-03  Bruno Haible  <bruno@clisp.org>
48313
48314         * DEPENDENCIES: New file.
48315         Suggested by Simon Josefsson.
48316
48317 2007-04-03  Bruno Haible  <bruno@clisp.org>
48318
48319         * doc/gnulib.texi: Escape @.
48320
48321 2007-04-03  James Youngman  <jay@gnu.org>
48322         and Paul Eggert  <eggert@cs.ucla.edu>
48323
48324         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
48325         birthtime on all systems that have birthtime, not just those which
48326         use st_birthtimensec rather than st_birthtim.  Putting zero in
48327         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
48328         that the birth time is not available for files on an NFS mount.
48329
48330 2007-04-03  Simon Josefsson  <simon@josefsson.org>
48331
48332         * modules/memxor: Move back from crypto/, suggested by Bruno.
48333         * modules/crypto/hmac-sha1: Fix memxor dependency.
48334
48335         * modules/crypto/gc: Moved from ../.
48336
48337 2007-04-02  Eric Blake  <ebb9@byu.net>
48338
48339         * lib/ldexpl.c (includes): Avoid libm.
48340
48341         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
48342
48343 2007-04-02  Bruno Haible  <bruno@clisp.org>
48344
48345         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
48346         on IRIX.
48347
48348 2007-04-02  Bruno Haible  <bruno@clisp.org>
48349
48350         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
48351         x86 or x86_64 platforms running MacOS X.
48352         Reported by Ryan Schmidt <@ryandesign.com>.
48353
48354 2007-04-02  Bruno Haible  <bruno@clisp.org>
48355
48356         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
48357         i386.
48358
48359 2007-04-01  Simon Josefsson  <simon@josefsson.org>
48360
48361         * modules/crypto/arcfour: Moved from ../.
48362         * modules/crypto/arcfour-tests: Moved from ../.
48363         * modules/crypto/arctwo: Moved from ../.
48364         * modules/crypto/arctwo-tests: Moved from ../.
48365         * modules/crypto/des: Moved from ../.
48366         * modules/crypto/des-tests: Moved from ../.
48367         * modules/crypto/gc-arcfour: Moved from ../.
48368         * modules/crypto/gc-arcfour-tests: Moved from ../.
48369         * modules/crypto/gc-arctwo: Moved from ../.
48370         * modules/crypto/gc-arctwo-tests: Moved from ../.
48371         * modules/crypto/gc-des: Moved from ../.
48372         * modules/crypto/gc-des-tests: Moved from ../.
48373         * modules/crypto/gc-hmac-md5: Moved from ../.
48374         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
48375         * modules/crypto/gc-hmac-sha1: Moved from ../.
48376         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
48377         * modules/crypto/gc-md2: Moved from ../.
48378         * modules/crypto/gc-md2-tests: Moved from ../.
48379         * modules/crypto/gc-md4: Moved from ../.
48380         * modules/crypto/gc-md4-tests: Moved from ../.
48381         * modules/crypto/gc-md5: Moved from ../.
48382         * modules/crypto/gc-md5-tests: Moved from ../.
48383         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
48384         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
48385         * modules/crypto/gc-random: Moved from ../.
48386         * modules/crypto/gc-rijndael: Moved from ../.
48387         * modules/crypto/gc-rijndael-tests: Moved from ../.
48388         * modules/crypto/gc-sha1: Moved from ../.
48389         * modules/crypto/gc-sha1-tests: Moved from ../.
48390         * modules/crypto/gc-tests: Moved from ../.
48391         * modules/crypto/hmac-md5: Moved from ../.
48392         * modules/crypto/hmac-md5-tests: Moved from ../.
48393         * modules/crypto/hmac-sha1: Moved from ../.
48394         * modules/crypto/hmac-sha1-tests: Moved from ../.
48395         * modules/crypto/md2: Moved from ../.
48396         * modules/crypto/md2-tests: Moved from ../.
48397         * modules/crypto/md4: Moved from ../.
48398         * modules/crypto/md4-tests: Moved from ../.
48399         * modules/crypto/md5: Moved from ../.
48400         * modules/crypto/md5-tests: Moved from ../.
48401         * modules/crypto/memxor: Moved from ../.
48402         * modules/crypto/rijndael: Moved from ../.
48403         * modules/crypto/rijndael-tests: Moved from ../.
48404         * modules/crypto/sha1: Moved from ../.
48405
48406 2007-03-30  James Youngman  <jay@gnu.org>
48407
48408         * tests/test-stat-time.c (prepare_test): use chmod() rather than
48409         rename() to change the ctime of a file (because ctime is unaffected
48410         by rename on jfs2 on AIX 5.1).
48411         (main): Start by doing cleanup, in case a previous run failed leaving
48412         test files behind.
48413
48414 2007-03-31  Bruno Haible  <bruno@clisp.org>
48415
48416         Support old proprietary implementations of iconv.
48417         * modules/iconv_open: New file.
48418         * lib/iconv_.h: New file.
48419         * m4/iconv_h.m4: New file.
48420         * lib/iconv_open.c: New file.
48421         * lib/iconv_open-aix.gperf: New file.
48422         * lib/iconv_open-hpux.gperf: New file.
48423         * lib/iconv_open-irix.gperf: New file.
48424         * lib/iconv_open-osf.gperf: New file.
48425         * m4/iconv_open.m4: New file.
48426         * modules/linebreak (Depends-on): Add iconv_open.
48427         * modules/striconv (Depends-on): Likewise.
48428         * modules/striconveh (Depends-on): Likewise.
48429         * modules/unicodeio (Depends-on): Likewise.
48430         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
48431         (iconv_t)(-1).
48432         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
48433         conversion if cd is (iconv_t)(-1).
48434         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
48435         is not possible.
48436
48437 2007-03-31  Bruno Haible  <bruno@clisp.org>
48438
48439         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48440         work on Solaris either. Protect also second use of "autodetect_jp".
48441
48442 2007-03-31  Bruno Haible  <bruno@clisp.org>
48443
48444         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
48445         the function is not present.
48446
48447 2007-03-31  Bruno Haible  <bruno@clisp.org>
48448
48449         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
48450         the function is not present.
48451
48452 2007-03-31  Bruno Haible  <bruno@clisp.org>
48453
48454         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
48455         a bug in HP-UX iconv_open().
48456
48457 2007-03-31  Bruno Haible  <bruno@clisp.org>
48458
48459         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
48460         (Mathematics <math.h>): New section, add fpieee.
48461         (Input/output <stdio.h>): Add fseterr.
48462         (Mathematics <math.h>): New section, add printf-frexp.
48463         (Container data structures): Add sublist.
48464         (Core language properties): Add fpucw, inline.
48465         (Functions for greatest-width integer types <inttypes.h>): Add
48466         imaxabs, imaxdiv, inttypes.
48467         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
48468         isnanl-nolibm, ldexp.
48469         (Mathematics <math.h>): New section, add printf-frexpl.
48470         (Support for systems lacking POSIX:2001): Add fprintf-posix,
48471         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
48472         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
48473         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
48474         (Unicode string functions): Add unistr/u*-mbtoucr.
48475         (Java): Add javacomp-script, javaexec-script.
48476         (C#): Add csharpcomp-script, csharpexec-script.
48477         (Support for building libraries and executables): Add havelib,
48478         relocatable-*.
48479         (Support for maintaining and releasing projects): Renamed from
48480         'Support for maintaining and release projects'. Add announce-gen.
48481
48482 2007-03-31  Bruno Haible  <bruno@clisp.org>
48483
48484         * README: Talk primarily about git.
48485         (git and CVS): Renamed from CVS.
48486         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
48487         gnulib is available through git.
48488         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
48489
48490 2007-03-30  Bruno Haible  <bruno@clisp.org>
48491
48492         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
48493         * lib/poll_.h: Likewise.
48494         * lib/stat_.h: Likewise.
48495         * lib/sys_time_.h: Likewise.
48496         * lib/sysexit_.h: Likewise.
48497         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
48498         * lib/stdbool_.h: Likewise.
48499         * lib/byteswap_.h: Add double-inclusion guard.
48500
48501 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
48502
48503         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
48504
48505 2007-03-30  Karl Berry  <karl@gnu.org>
48506
48507         * config/srclist-update: double space after USA in the license
48508         substitution, since that's how it's usually (?) written.
48509
48510 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48511
48512         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
48513         reported by Bruno Haible.
48514
48515 2007-03-29  Bruno Haible  <bruno@clisp.org>
48516
48517         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
48518         a bug in AIX iconv().
48519
48520 2007-03-29  Bruno Haible  <bruno@clisp.org>
48521
48522         * modules/ldexpl-tests: New file.
48523         * tests/test-ldexpl.c: New file.
48524
48525 2007-03-29  Bruno Haible  <bruno@clisp.org>
48526
48527         * lib/ldexpl.c: Include fpucw.h.
48528         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
48529         multiplication.
48530         * modules/ldexpl (Depends-on): Add fpucw.
48531
48532 2007-03-29  Bruno Haible  <bruno@clisp.org>
48533
48534         * modules/ldexpl: New file.
48535         * m4/ldexpl.m4: New file.
48536         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
48537         set.
48538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
48539         REPLACE_LDEXPL.
48540         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
48541         REPLACE_LDEXPL.
48542         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48543         gl_FUNC_LDEXPL_WORKS.
48544         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
48545         * modules/mathl (Files): Remove lib/ldexpl.c.
48546         (Depends-on): Add ldexpl.
48547
48548 2007-03-29  Bruno Haible  <bruno@clisp.org>
48549
48550         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
48551
48552 2007-03-29  Bruno Haible  <bruno@clisp.org>
48553
48554         * tests/test-striconveh.c (main): Don't assume that a direct conversion
48555         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
48556         and possibly also HP-UX.
48557         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48558         work on AIX, IRIX, HP-UX, OSF/1.
48559         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
48560         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
48561         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
48562         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
48563         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
48564         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
48565
48566 2007-03-29  Bruno Haible  <bruno@clisp.org>
48567
48568         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
48569
48570 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48571
48572         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
48573         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
48574
48575 2007-03-29  Eric Blake  <ebb9@byu.net>
48576
48577         * lib/acl-internal.h: Remove redundant include.
48578         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
48579         Cygwin when a file is locked.
48580
48581 2007-03-29  Bruno Haible  <bruno@clisp.org>
48582
48583         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
48584         file.
48585         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
48586
48587 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48588
48589         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
48590         try to remove a parent directory if the child couldn't be removed
48591         (except for the first rmdir, which could fail because the child
48592         doesn't exist).  Problem reported by Jeff Blaine in
48593         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
48594
48595 2007-03-28  Bruno Haible  <bruno@clisp.org>
48596
48597         * lib/striconveh.c (utf8conv_carefully): New function.
48598         (mem_cd_iconveh_internal): Invoke it.
48599
48600 2007-03-28  Bruno Haible  <bruno@clisp.org>
48601
48602         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
48603         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
48604         input.
48605         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
48606         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
48607         unistr/u8-uctomb.
48608
48609 2007-03-28  Bruno Haible  <bruno@clisp.org>
48610
48611         * modules/unistr/u8-mbtoucr: New file.
48612         * lib/unistr/u8-mbtoucr.c: New file.
48613         * modules/unistr/u16-mbtoucr: New file.
48614         * lib/unistr/u16-mbtoucr.c: New file.
48615         * modules/unistr/u16-mbtoucr: New file.
48616         * lib/unistr/u16-mbtoucr.c: New file.
48617         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
48618
48619 2007-03-27  Simon Josefsson  <simon@josefsson.org>
48620             Bruno Haible  <bruno@clisp.org>
48621
48622         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
48623         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
48624         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
48625
48626         * m4/stdio_h.m4: Add stubs for vasprintf too.
48627
48628         * modules/stdio: Support vasprintf in sed command.
48629
48630         * modules/vasprintf: Depend on stdio for prototypes.  Remove
48631         vasprintf.h.  Add stdio module indicator.
48632
48633         * lib/stdio_.h: Declare asprintf and vasprintf, based on
48634         vasprintf.h.
48635
48636         * lib/vasprintf.h: File removed.
48637
48638         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
48639         * lib/vasprintf.c: Ditto.
48640         * lib/xvasprintf.c: Ditto.
48641         * tests/test-vasprintf-posix.c: Ditto.
48642         * tests/test-vasprintf.c: Ditto.
48643
48644 2007-03-27  Bruno Haible  <bruno@clisp.org>
48645
48646         Make vasnprintf multithread-safe.
48647         * lib/vasnprintf.c (decimal_point_char): New function.
48648         (VASNPRINTF): Use it.
48649         Suggested by Simon Josefsson.
48650
48651 2007-03-27  Eric Blake  <ebb9@byu.net>
48652
48653         Support sub-second birthtime on cygwin.
48654         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
48655         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
48656         (get_stat_birthtime): Also work with st_birthtim.
48657
48658 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
48659
48660         * lib/stat-time.h (USE_BIRTHTIME): Remove.
48661         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
48662         (get_stat_birthtime_ns): Do not try to use "spare" fields.
48663         (get_stat_birthtime_ns): Simplify compile-time tests.
48664         (get_stat_birthtime): Change the API to look like
48665         get_stat_mtime etc., except return a negative tv_nsec on error.
48666         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
48667         Don't check for "spare" fields.
48668         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
48669         or for struct stat.st_birthtime, as these tests aren't used.
48670         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
48671
48672 2007-03-27  Bruno Haible  <bruno@clisp.org>
48673
48674         * lib/stat-time.h: Include <sys/stat.h>.
48675
48676 2007-03-27  James Youngman  <jay@gnu.org>
48677
48678         * lib/stat-time.h (get_stat_birthtime): New function for
48679           retrieving st_birthtime as provided by UFS2 (hence *BSD).
48680         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
48681           and its variants.
48682         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
48683         * modules/stat-time-test: New file.
48684         * tests/test-stat-time.c: New test, devised by Bruno Haible.
48685
48686 2007-03-26  Bruno Haible  <bruno@clisp.org>
48687
48688         Better support of signalling NaNs.
48689         * lib/atanl.c: Include isnanl.h.
48690         (atanl): Perform test for NaN at the beginning of the function and
48691         through a call to isnanl.
48692         * lib/cosl.c: Include isnanl.h.
48693         (cosl): Perform test for NaN at the beginning of the function and
48694         through a call to isnanl.
48695         * lib/ldexpl.c: Include isnanl.h.
48696         (ldexpl): Perform test for NaN through a call to isnanl.
48697         * lib/logl.c: Include isnanl.h.
48698         (logl): Perform test for NaN at the beginning of the function and
48699         through a call to isnanl.
48700         * lib/sinl.c: Include isnanl.h.
48701         (sinl): Perform test for NaN at the beginning of the function and
48702         through a call to isnanl.
48703         * lib/sqrtl.c: Include isnanl.h.
48704         (sqrtl): Perform test for NaN at the beginning of the function and
48705         through a call to isnanl.
48706         * lib/tanl.c: Include isnanl.h.
48707         (tanl): Perform test for NaN at the beginning of the function and
48708         through a call to isnanl.
48709         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
48710         * modules/mathl (Depends-on): Add isnanl.
48711
48712 2007-03-26  Eric Blake  <ebb9@byu.net>
48713
48714         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
48715         regression in logic sense of previous patch.
48716
48717 2007-03-26  Bruno Haible  <bruno@clisp.org>
48718
48719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
48720         unportable shell command "if ! ...".
48721         Reported by Ralf Wildenhues.
48722
48723 2007-03-25  Bruno Haible  <bruno@clisp.org>
48724
48725         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
48726         <sysexits.h> file, and only add EX_CONFIG.
48727         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
48728         absolute file name and whether it is sufficient. Substitute also
48729         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
48730         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
48731         ABSOLUTE_SYSEXITS_H into sysexits.h.
48732
48733 2007-03-25  Bruno Haible  <bruno@clisp.org>
48734
48735         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
48736         hints is NULL.
48737
48738 2007-03-25  Bruno Haible  <bruno@clisp.org>
48739
48740         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
48741         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
48742
48743 2007-03-25  Bruno Haible  <bruno@clisp.org>
48744
48745         * lib/vasnprintf.c: Include langinfo.h.
48746         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
48747         multithread-safe.
48748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
48749         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
48750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48754         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
48756         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48757         Reported by Simon Josefsson.
48758
48759 2007-03-25  Bruno Haible  <bruno@clisp.org>
48760
48761         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
48762         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
48763         * modules/vasnprintf (Depends-on): Add stdint.
48764
48765 2007-03-25  Bruno Haible  <bruno@clisp.org>
48766
48767         * modules/fpieee: New file.
48768         * m4/fpieee.m4: New file.
48769         * modules/isnan-nolibm (Depends-on): Add fpieee.
48770         * modules/isnanl-nolibm (Depends-on): Add fpieee.
48771         * modules/isnanl (Depends-on): Add fpieee.
48772
48773 2007-03-25  Bruno Haible  <bruno@clisp.org>
48774
48775         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
48776
48777 2007-03-25  Bruno Haible  <bruno@clisp.org>
48778
48779         Avoid test failures on IRIX 6.5.
48780         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
48781         (main): Use it.
48782         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
48783         macros.
48784         (main): Use them.
48785
48786 2007-03-25  Bruno Haible  <bruno@clisp.org>
48787
48788         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
48789         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
48790         exists but doesn't work.
48791         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
48792         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
48793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
48794         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
48795
48796 2007-03-25  Bruno Haible  <bruno@clisp.org>
48797
48798         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
48799         returns inf. Needed on IRIX 6.5.
48800
48801 2007-03-25  Bruno Haible  <bruno@clisp.org>
48802
48803         * tests/test-frexpl.c: Include isnanl-nolibm.h.
48804         (main): Use isnanl instead of x != x idiom.
48805         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
48806
48807         * tests/test-frexp.c: Include isnan.h.
48808         (main): Use isnan instead of x != x idiom.
48809         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
48810
48811 2007-03-25  Bruno Haible  <bruno@clisp.org>
48812
48813         * tests/test-frexp.c (NaN): New function/macro.
48814         (main): Use it instead of 0.0 / 0.0.
48815         * tests/test-isnan.c (NaN): New function/macro.
48816         (main): Use it instead of 0.0 / 0.0.
48817         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
48818         (test_function): Use it instead of 0.0 / 0.0.
48819         * tests/test-vasprintf-posix.c (NaN): New function/macro.
48820         (test_function): Use it instead of 0.0 / 0.0.
48821         * tests/test-snprintf-posix.h (NaN): New function/macro.
48822         (test_function): Use it instead of 0.0 / 0.0.
48823         * tests/test-sprintf-posix.h (NaN): New function/macro.
48824         (test_function): Use it instead of 0.0 / 0.0.
48825         * tests/test-fprintf-posix.h (NaN): New function/macro.
48826         (test_function): Use it instead of 0.0 / 0.0.
48827         * tests/test-printf-posix.h (NaN): New function/macro.
48828         (test_function): Use it instead of 0.0 / 0.0.
48829
48830         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
48831
48832 2007-03-25  Bruno Haible  <bruno@clisp.org>
48833
48834         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
48835
48836 2007-03-25  Bruno Haible  <bruno@clisp.org>
48837
48838         * lib/regexec.c (merge_state_with_log): Make static.
48839
48840 2007-03-25  Bruno Haible  <bruno@clisp.org>
48841
48842         * lib/trigl.c (kernel_rem_pio2): Make static.
48843
48844 2007-03-25  Bruno Haible  <bruno@clisp.org>
48845
48846         * lib/sincosl.c (sincosl_table): Make static.
48847
48848 2007-03-25  Bruno Haible  <bruno@clisp.org>
48849
48850         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
48851         if the compiler does not support C99.
48852
48853 2007-03-25  Bruno Haible  <bruno@clisp.org>
48854
48855         * modules/time (Makefile.am): Ensure all rule action lines start with a
48856         tab.
48857
48858 2007-03-24  Bruno Haible  <bruno@clisp.org>
48859
48860         * modules/tsearch-tests: New file.
48861         * tests/test-tsearch.sh: New file.
48862         * tests/test-tsearch.c: New file, mostly copied from glibc.
48863
48864         * modules/search-tests: New file.
48865         * tests/test-search.c: New file.
48866
48867         * modules/search: New file.
48868         * lib/search_.h: New file, incorporating lib/tsearch.h.
48869         * m4/search_h.m4: New file.
48870         * lib/tsearch.h: Remove file.
48871         * lib/tsearch.c: Include search.h instead of tsearch.h.
48872         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
48873         HAVE_TSEARCH.
48874         * modules/tsearch (Files): Remove lib/tsearch.h.
48875         (Depends-on): Add search.
48876         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
48877         (Include): Change tsearch.h into search.h.
48878
48879 2007-03-24  Bruno Haible  <bruno@clisp.org>
48880
48881         * modules/fpucw: New file.
48882         * lib/fpucw.h: New file.
48883         * lib/frexp.c: Include fpucw.h.
48884         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48885         (FUNC): Use them.
48886         * lib/printf-frexp.c: Include fpucw.h.
48887         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48888         (FUNC): Use them.
48889         * lib/vasnprintf.c: Include fpucw.h.
48890         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
48891         'long double' calculations.
48892         * tests/test-frexpl.c: Include fpucw.h.
48893         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48894         * tests/test-printf-frexpl.c: Include fpucw.h.
48895         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48896         * modules/frexpl (Depends-on): Add fpucw.
48897         * modules/printf-frexpl (Depends-on): Likewise.
48898         * modules/fprintf-posix (Depends-on): Likewise.
48899         * modules/snprintf-posix (Depends-on): Likewise.
48900         * modules/sprintf-posix (Depends-on): Likewise.
48901         * modules/vasnprintf-posix (Depends-on): Likewise.
48902         * modules/vasprintf-posix (Depends-on): Likewise.
48903         * modules/vfprintf-posix (Depends-on): Likewise.
48904         * modules/vsnprintf-posix (Depends-on): Likewise.
48905         * modules/vsprintf-posix (Depends-on): Likewise.
48906         * modules/frexpl-tests (Depends-on): Likewise.
48907         * modules/printf-frexpl-tests (Depends-on): Likewise.
48908
48909 2007-03-24  Bruno Haible  <bruno@clisp.org>
48910
48911         * lib/float+.h: New file.
48912         * lib/isnan.c: Include float+.h.
48913         (SIZE): New macro.
48914         (FUNC): Compare only SIZE bytes of the value.
48915         * lib/vasnprintf.c: Include float+.h.
48916         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
48917         SIZEOF_LDBL or SIZEOF_DBL bytes.
48918         * modules/isnan-nolibm (Files): Add lib/float+.h.
48919         * modules/isnanl-nolibm (Files): Add lib/float+.h.
48920         * modules/isnanl (Files): Add lib/float+.h.
48921         * modules/vasnprintf (Files): Add lib/float+.h.
48922
48923 2007-03-24  Bruno Haible  <bruno@clisp.org>
48924
48925         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
48926         include isnanl-nolibm.h.
48927
48928 2007-03-24  Bruno Haible  <bruno@clisp.org>
48929
48930         * tests/test-read-file.c (main): Don't produce spurious output for
48931         expected situations. Make the test fail if it encountered unexpected
48932         results.
48933
48934 2007-03-24  Bruno Haible  <bruno@clisp.org>
48935
48936         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
48937         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
48938
48939 2007-03-24  Bruno Haible  <bruno@clisp.org>
48940
48941         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
48942
48943 2007-03-24  Bruno Haible  <bruno@clisp.org>
48944
48945         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
48946         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
48947
48948         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
48949         * modules/utf8-ucs4: Turn into a symbolic link to module
48950         unistr/u8-mbtouc.
48951
48952         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
48953         utf8-ucs4-unsafe.
48954         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
48955         unistr/u8-mbtouc-unsafe.
48956
48957         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
48958         * modules/utf16-ucs4: Turn into a symbolic link to module
48959         unistr/u16-mbtouc.
48960
48961         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
48962         utf16-ucs4-unsafe.
48963         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
48964         unistr/u16-mbtouc-unsafe.
48965
48966         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
48967         * modules/ucs4-utf8: Turn into a symbolic link to module
48968         unistr/u8-ubtomb.
48969
48970         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
48971         * modules/ucs4-utf16: Turn into a symbolic link to module
48972         unistr/u16-ubtomb.
48973
48974 2007-03-24  Bruno Haible  <bruno@clisp.org>
48975
48976         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
48977         Enable the function only if HAVE_INLINE.
48978         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
48979         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48980         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
48981         Enable the function only if HAVE_INLINE.
48982         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
48983         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48984         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
48985         Enable the function only if HAVE_INLINE.
48986         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
48987         Enable the function only if HAVE_INLINE.
48988         * modules/utf8-ucs4: Update.
48989         * modules/utf8-ucs4-unsafe: Update.
48990         * modules/utf16-ucs4: Update.
48991         * modules/utf16-ucs4-unsafe: Update.
48992         * modules/ucs4-utf8: Update.
48993         * modules/ucs4-utf16: Update.
48994
48995 2007-03-24  Bruno Haible  <bruno@clisp.org>
48996
48997         * lib/utf8-ucs4.h: Remove file.
48998         * lib/utf8-ucs4-unsafe.h: Remove file.
48999         * lib/utf16-ucs4.h: Remove file.
49000         * lib/utf16-ucs4-unsafe.h: Remove file.
49001         * lib/ucs4-utf8.h: Remove file.
49002         * lib/ucs4-utf16.h: Remove file.
49003         * lib/unistr.h: Include their previous contents.
49004         * m4/utf-ucs4.m4: Remove file.
49005         * m4/ucs4-utf.m4: Remove file.
49006         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
49007         (Depends-on): Add unistr/base.
49008         (configure.ac): Remove gl_UTF_UCS4.
49009         (Makefile.am): Update.
49010         (Include): Change to unistr.h.
49011         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
49012         (Depends-on): Add unistr/base.
49013         (configure.ac): Remove gl_UTF_UCS4.
49014         (Makefile.am): Update.
49015         (Include): Change to unistr.h.
49016         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
49017         (Depends-on): Add unistr/base.
49018         (configure.ac): Remove gl_UTF_UCS4.
49019         (Makefile.am): Update.
49020         (Include): Change to unistr.h.
49021         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
49022         (Depends-on): Add unistr/base.
49023         (configure.ac): Remove gl_UTF_UCS4.
49024         (Makefile.am): Update.
49025         (Include): Change to unistr.h.
49026         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
49027         (Depends-on): Add unistr/base.
49028         (configure.ac): Remove gl_UCS4_UTF.
49029         (Makefile.am): Update.
49030         (Include): Change to unistr.h.
49031         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
49032         (Depends-on): Add unistr/base.
49033         (configure.ac): Remove gl_UCS4_UTF.
49034         (Makefile.am): Update.
49035         (Include): Change to unistr.h.
49036         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
49037         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
49038         utf8-ucs4-unsafe.h.
49039         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
49040         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
49041         utf16-ucs4-unsafe.h.
49042         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
49043         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
49044         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
49045         * lib/unistr/u8-strchr.c: Likewise.
49046         * lib/unistr/u8-strrchr.c: Likewise.
49047         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
49048         * lib/unistr/u16-strchr.c: Likewise.
49049         * lib/unistr/u16-strrchr.c: Likewise.
49050         * lib/striconveh.c: Update.
49051         * lib/linebreak.c: Update.
49052
49053 2007-03-24  Bruno Haible  <bruno@clisp.org>
49054
49055         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
49056         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
49057
49058 2007-03-22  Bruno Haible  <bruno@clisp.org>
49059
49060         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
49061
49062 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49063
49064         * MODULES.html.sh (File system functions): New module write-any-file.
49065         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
49066         * m4/write-any-file.m4: New files.
49067
49068 2007-03-23  Eric Blake  <ebb9@byu.net>
49069
49070         * gnulib-tool: Rearrange space-tab sequences, since some editors
49071         like to eat them.
49072
49073 2007-03-23  Eric Blake  <ebb9@byu.net>
49074
49075         * lib/version-etc.c (version_etc_va): Update license wording to
49076         be more concise.  Recommended by Richard Stallman.
49077
49078 2007-03-22  Bruno Haible  <bruno@clisp.org>
49079
49080         * lib/poll.c (MSG_PEEK): New fallback definition.
49081
49082 2007-03-22  Bruno Haible  <bruno@clisp.org>
49083
49084         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
49085         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
49086         (main): Update.
49087         Fixes a compilation error on BeOS.
49088
49089 2007-03-22  Bruno Haible  <bruno@clisp.org>
49090
49091         * modules/frexpl-tests: New file.
49092         * tests/test-frexpl.c: New file.
49093
49094         * modules/frexpl: New file.
49095         * m4/frexpl.m4: New file.
49096         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
49097         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
49098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
49099         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
49100         (Depends-on): Add frexpl. Remove isnanl-nolibm.
49101         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
49102
49103 2007-03-22  Bruno Haible  <bruno@clisp.org>
49104
49105         * lib/frexpl.c: Share code with lib/frexp.c.
49106         * modules/mathl (Files): Add lib/frexp.c.
49107         (Depends-on): Add isnanl-nolibm.
49108
49109 2007-03-22  Bruno Haible  <bruno@clisp.org>
49110
49111         * modules/printf-frexp (Files): Add m4/frexp.m4.
49112         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
49113         only if the found frexp function actually works.
49114
49115 2007-03-22  Bruno Haible  <bruno@clisp.org>
49116
49117         * lib/frexp.c: Remove older implementation that uses divisions.
49118
49119 2007-03-21  Bruno Haible  <bruno@clisp.org>
49120
49121         * modules/frexp-tests: New file.
49122         * tests/test-frexp.c: New file.
49123
49124         * modules/frexp: New file.
49125         * lib/frexp.c: New file.
49126         * m4/frexp.m4: New file.
49127         * lib/math_.h (frexp): New declaration.
49128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
49129         REPLACE_FREXP.
49130         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
49131
49132 2007-03-21  Bruno Haible  <bruno@clisp.org>
49133
49134         * modules/isnanl-tests: New file.
49135         * tests/test-isnanl.c: New file.
49136
49137         * modules/isnanl: New file.
49138         * lib/isnanl.h: New file.
49139         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
49140         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
49141         gl_FUNC_ISNANL_WORKS.
49142         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
49143         New macros.
49144
49145 2007-03-21  Bruno Haible  <bruno@clisp.org>
49146
49147         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
49148         lib/isnanl.h.
49149         (Include): Update.
49150         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
49151         * lib/vasnprintf.c: Update.
49152         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
49153         tests/test-isnanl.h, remove tests/test-isnanl.c.
49154         (Makefile.am): Update.
49155         * tests/test-isnanl-nolibm.c: New file.
49156         * tests/test-isnanl.h: New file.
49157         * tests/test-isnanl.c: Remove file.
49158
49159 2007-03-21  Jim Meyering  <jim@meyering.net>
49160
49161         When trying to open ".", treat ESTALE like EACCES.
49162         * lib/savewd.c (savewd_save): Resort to forking not just upon
49163         failure with EACCES, but also when errno is ESTALE.
49164
49165 2007-03-20  Bruno Haible  <bruno@clisp.org>
49166
49167         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
49168         Needed on AIX 5.1. Reported by Matthew Woehlke.
49169
49170 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49171
49172         Suggestions by Bruno Haible:
49173         * lib/acl-internal.h: Include "gettext.h" rather than rolling
49174         our own.
49175         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
49176         * modules/acl (Depends-on): Add gettext.
49177
49178 2007-03-19  Bruno Haible  <bruno@clisp.org>
49179
49180         * modules/iconvme: Remove file.
49181         * lib/iconvme.h: Remove file.
49182         * lib/iconvme.c: Remove file.
49183         * m4/iconvme.m4: Remove file.
49184
49185 2007-03-19  Bruno Haible  <bruno@clisp.org>
49186
49187         * doc/relocatable-maint.texi: Break long shell script line.
49188         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49189
49190 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49191
49192         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
49193         handle file_has_acl.
49194         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
49195         * lib/acl.c: Move header inclusions and related macro defns into
49196         lib/acl-internal.h.
49197         (S_ISLNK): Remove defn, since that's now done for us.
49198         (file_has_acl): Move to lib/file-has-acl.c.
49199         Call acl_trivial if available.  This is the crucial part of the fix.
49200         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
49201         shared within the library.  Rewrite a bit, partly to make it compatible
49202         with the GNU coding style.
49203         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
49204         Remove unnecessary double-quotes.
49205         Don't test for acl_to_text; the build will catch that.
49206         Replace acl_entries if it doesn't exist and it is needed.
49207         Check for -lsec and acl_trivial (as used on Solaris 10).
49208         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
49209         lib/file-has-acl.c.
49210         (Depends-on): Add sys_stat, for S_ISLNK.
49211
49212 2007-03-19  Ben Pfaff  <blp@gnu.org>
49213
49214         * doc/gnulib.texi: Fix typos.
49215         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49216
49217 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49218
49219         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
49220         If size is zero here, buf must be zero.
49221
49222 2007-03-19  Simon Josefsson  <simon@josefsson.org>
49223
49224         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
49225         <bruno@clisp.org>.
49226
49227 2007-03-18  Bruno Haible  <bruno@clisp.org>
49228
49229         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
49230         Suggested by Eric Blake.
49231
49232 2007-03-18  Ben Pfaff  <blp@gnu.org>
49233
49234         * doc/relocatable.texi: Recommend using as prefix a directory
49235         that does not exist and will never be created.  Based on
49236         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
49237         and others.
49238
49239 2007-03-17  Bruno Haible  <bruno@clisp.org>
49240
49241         * lib/fchownat.c: Include lchown.h.
49242
49243 2007-03-17  Bruno Haible  <bruno@clisp.org>
49244
49245         Fix endless loop when the given allocated size was > INT_MAX.
49246         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
49247         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
49248         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
49249         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
49250         * lib/sprintf.c (sprintf): Likewise.
49251
49252 2007-03-17  Bruno Haible  <bruno@clisp.org>
49253
49254         * tests/test-argp-2.sh (func_compare): Output a context diff.
49255
49256 2007-03-17  Bruno Haible  <bruno@clisp.org>
49257
49258         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
49259         locale's decimal-point character.
49260
49261 2007-03-17  Bruno Haible  <bruno@clisp.org>
49262
49263         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
49264         before comparing it. Needed because on some platforms (e.g. x86) a
49265         'long double' occupies less bytes than sizeof (long double).
49266
49267 2007-03-17  Bruno Haible  <bruno@clisp.org>
49268
49269         * tests/test-crc.c (main): Make printf statements 64-bit clean.
49270         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
49271         * tests/test-getaddrinfo.c (simple): Likewise.
49272         * tests/test-read-file.c (main): Likewise.
49273
49274 2007-03-17  Bruno Haible  <bruno@clisp.org>
49275
49276         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
49277
49278 2007-03-17  Bruno Haible  <bruno@clisp.org>
49279
49280         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
49281         unused variable.
49282
49283 2007-03-17  Bruno Haible  <bruno@clisp.org>
49284
49285         * tests/test-c-strcasecmp.c: Include c-strcase.h.
49286         * tests/test-c-strncasecmp.c: Likewise.
49287
49288 2007-03-17  Bruno Haible  <bruno@clisp.org>
49289
49290         * modules/stdlib (Depends-on): Add unistd.
49291         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
49292         Needed for MacOS X 10.3.
49293
49294 2007-03-17  Bruno Haible  <bruno@clisp.org>
49295
49296         * lib/unistr/u-strdup.h: Include <stdlib.h>.
49297
49298 2007-03-17  Bruno Haible  <bruno@clisp.org>
49299
49300         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
49301
49302 2007-03-17  Bruno Haible  <bruno@clisp.org>
49303
49304         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
49305         to reflect files copied from gnulib (with or without modifications).
49306         Suggested by Jim Meyering.
49307
49308 2007-03-17  Eric Blake  <ebb9@byu.net>
49309
49310         * NEWS: Document stdlib change from 2007-02-18.
49311
49312 2007-03-17  Jim Meyering  <jim@meyering.net>
49313
49314         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
49315         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
49316         someone uses a name containing shell meta-characters.
49317         Reported by Alfred M. Szmidt.
49318
49319         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
49320
49321 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49322
49323         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
49324         and copy gettext configuration files only if configure.ac contains
49325         a use of AM_GNU_GETTEXT_VERSION.
49326
49327 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49328
49329         * build-aux/bootstrap (gnulib_name): New variable.
49330         (gnulib_tool_options): Use it.
49331
49332 2007-03-13  Simon Josefsson  <simon@josefsson.org>
49333
49334         * tests/test-des.c: Use new namespace.
49335
49336 2007-03-15  Bruno Haible  <bruno@clisp.org>
49337
49338         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
49339         Reported by James Youngman <jay@gnu.org>.
49340
49341 2007-03-15  Bruno Haible  <bruno@clisp.org>
49342
49343         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
49344         declared prototype. Needed with cc on OSF/1 5.1.
49345
49346 2007-03-15  Bruno Haible  <bruno@clisp.org>
49347
49348         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
49349         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
49350         (struct gl_list_implementation): Add dispose_fn argument to the
49351         'create_empty', 'create' methods.
49352         (struct gl_list_impl_base): Add field 'dispose_fn'.
49353         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
49354         argument.
49355         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
49356         dispose_fn argument.
49357         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
49358         dispose_fn on the dropped values.
49359         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
49360         dispose_fn argument.
49361         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
49362         dropped values.
49363         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
49364         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49365         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
49366         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49367         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
49368         argument.
49369         (gl_tree_list_free): Call dispose_fn on the dropped values.
49370         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
49371         the dropped values.
49372         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49373         Add dispose_fn argument.
49374         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
49375         Call dispose_fn on the dropped values.
49376         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
49377         Add dispose_fn argument.
49378         (gl_sublist_create): Initialize the 'dispose_fn' field.
49379         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
49380         * tests/test-array_list.c (main): Update.
49381         * tests/test-carray_list.c (main): Update.
49382         * tests/test-avltree_list.c (main): Update.
49383         * tests/test-rbtree_list.c (main): Update.
49384         * tests/test-avltreehash_list.c (main): Update.
49385         * tests/test-rbtreehash_list.c (main): Update.
49386         * tests/test-linked_list.c (main): Update.
49387         * tests/test-linkedhash_list.c (main): Update.
49388         * tests/test-array_oset.c (main): Update.
49389
49390 2007-03-15  Bruno Haible  <bruno@clisp.org>
49391
49392         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
49393         (gl_oset_create_empty): Add dispose_fn argument.
49394         (struct gl_oset_implementation): Add dispose_fn argument to
49395         'create_empty' method.
49396         (struct gl_oset_impl_base): Add dispose_fn field.
49397         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
49398         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
49399         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
49400         values.
49401         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
49402         (gl_tree_oset_free): Call dispose_fn on the dropped values.
49403         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49404         dropped value.
49405         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49406         dropped value.
49407         * tests/test-array_oset.c (main): Update.
49408         * tests/test-avltree_oset.c (main): Update.
49409         * tests/test-rbtree_oset.c (main): Update.
49410         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
49411
49412 2007-03-13  Bruno Haible  <bruno@clisp.org>
49413
49414         * tests/test-stdbool.c (i): Update after last patch.
49415
49416 2007-03-12  Bruno Haible  <bruno@clisp.org>
49417
49418         * lib/quotearg.c: Include <wctype.h> early, before the definition of
49419         the iswprint macro. Needed on Solaris 2.5.1.
49420
49421 2007-03-12  Bruno Haible  <bruno@clisp.org>
49422
49423         * tests/test-printf-frexp.c (main): Declare x as volatile.
49424
49425 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49426
49427         * doc/gnulib.texi (Build robot for gnulib): New section.
49428
49429 2007-03-12  Jim Meyering  <jim@meyering.net>
49430
49431         * build-aux/bootstrap: New file.
49432         * build-aux/bootstrap.conf: New file, from coreutils.
49433
49434 2007-03-11  Bruno Haible  <bruno@clisp.org>
49435
49436         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
49437
49438 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49439
49440         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
49441         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
49442         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
49443
49444 2007-03-11  Bruno Haible  <bruno@clisp.org>
49445
49446         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
49447         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
49448
49449 2007-03-11  Bruno Haible  <bruno@clisp.org>
49450
49451         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
49452         formula. Needed for SunPRO C 5.0.
49453
49454 2007-03-11  Bruno Haible  <bruno@clisp.org>
49455
49456         * modules/long-options (Depends-on): Add getopt.
49457
49458 2007-03-11  Bruno Haible  <bruno@clisp.org>
49459
49460         * modules/modechange (Depends-on): Add stdbool.
49461
49462 2007-03-11  Bruno Haible  <bruno@clisp.org>
49463
49464         * modules/i-ring (Depends-on): Add stdbool.
49465
49466 2007-03-11  Bruno Haible  <bruno@clisp.org>
49467
49468         * modules/gc-des (Depends-on): Add stdbool.
49469
49470 2007-03-11  Bruno Haible  <bruno@clisp.org>
49471
49472         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
49473
49474 2007-03-11  Bruno Haible  <bruno@clisp.org>
49475
49476         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
49477
49478 2007-03-11  Bruno Haible  <bruno@clisp.org>
49479
49480         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
49481
49482 2007-03-11  Bruno Haible  <bruno@clisp.org>
49483
49484         * lib/vasnprintf.c (sprintf): Undefine.
49485
49486 2007-03-11  Bruno Haible  <bruno@clisp.org>
49487
49488         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
49489         initializers in SunPRO C and Compaq C compilers.
49490
49491 2007-03-11  Bruno Haible  <bruno@clisp.org>
49492
49493         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
49494         decrementing code ANSI C compliant.
49495
49496 2007-03-11  Bruno Haible  <bruno@clisp.org>
49497
49498         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
49499         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
49500
49501 2007-03-11  Bruno Haible  <bruno@clisp.org>
49502
49503         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
49504         <stdbool.h> substitute doesn't pass.
49505
49506 2007-03-11  Bruno Haible  <bruno@clisp.org>
49507
49508         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
49509
49510 2007-03-11  Bruno Haible  <bruno@clisp.org>
49511
49512         * gnulib-tool (func_create_megatestdir): Create also an autobuild
49513         script, for submission to autobuild.josefsson.org.
49514
49515 2007-03-10  Bruno Haible  <bruno@clisp.org>
49516
49517         * modules/canonicalize-lgpl-tests: New file.
49518         * tests/test-canonicalize-lgpl.sh: New file.
49519         * tests/test-canonicalize-lgpl.c: New file.
49520
49521         * modules/c-strcase-tests: New file.
49522         * tests/test-c-strcase.sh: New file.
49523         * tests/test-c-strcasecmp.c: New file.
49524         * tests/test-c-strncasecmp.c: New file.
49525
49526         * modules/atexit-tests: New file.
49527         * tests/test-atexit.sh: New file.
49528         * tests/test-atexit.c: New file.
49529
49530 2007-03-10  Bruno Haible  <bruno@clisp.org>
49531
49532         * tests/test-binary-io.sh: Use temporary filenames that are not so
49533         likely to clash with those of other tests (in a parallel make).
49534         * tests/test-binary-io.c: Likewise.
49535
49536 2007-03-10  Bruno Haible  <bruno@clisp.org>
49537
49538         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
49539         fallback; use #error instead.
49540         Suggested by Simon Josefsson.
49541
49542 2007-03-10  Bruno Haible  <bruno@clisp.org>
49543
49544         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
49545         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
49546         first and the last.
49547
49548 2007-03-10  Bruno Haible  <bruno@clisp.org>
49549
49550         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
49551
49552 2007-03-10  Bruno Haible  <bruno@clisp.org>
49553
49554         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
49555         "make distcheck".
49556         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
49557         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
49558         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
49559
49560 2007-03-10  Bruno Haible  <bruno@clisp.org>
49561
49562         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
49563         variable.
49564         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
49565         variable.
49566
49567 2007-03-09  Eric Blake  <ebb9@byu.net>
49568         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
49569
49570         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
49571         types are not being provided by gnulib.
49572         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
49573         types are supported.
49574
49575 2007-03-10  Bruno Haible  <bruno@clisp.org>
49576
49577         * lib/stdio_.h (__attribute__): New macro.
49578         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
49579         vsprintf): Specify __attribute__ __format__ for GCC.
49580         Suggested by Eric Blake.
49581
49582 2007-03-09  Bruno Haible  <bruno@clisp.org>
49583
49584         * modules/printf-posix-tests: New file.
49585         * tests/test-printf-posix.sh: New file.
49586         * tests/test-printf-posix.c: New file.
49587
49588         * modules/printf-posix: New file.
49589         * lib/printf.c: New file.
49590         * m4/printf-posix-rpl.m4: New file.
49591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
49592         REPLACE_PRINTF.
49593         * lib/stdio_.h (printf): New declaration.
49594         (format, __format__, ____printf____, ____scanf____, ____strftime____,
49595         ____strfmon____): New macros.
49596         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
49597         REPLACE_PRINTF.
49598
49599 2007-03-09  Bruno Haible  <bruno@clisp.org>
49600
49601         * tests/test-vasnprintf-posix2.sh: New file.
49602         * tests/test-vasnprintf-posix2.c: New file.
49603         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
49604         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49605         (Makefile.am): Activate test-vasnprintf-posix2.sh.
49606
49607         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
49608         a locale dependent decimal point, rather than always '.'.
49609
49610 2007-03-09  Eric Blake  <ebb9@byu.net>
49611
49612         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
49613         spite of platforms like Tandem/NSK that define it to -1.
49614
49615 2007-03-08  Bruno Haible  <bruno@clisp.org>
49616
49617         * modules/vprintf-posix-tests: New file.
49618         * tests/test-vprintf-posix.sh: New file.
49619         * tests/test-vprintf-posix.c: New file.
49620         * tests/test-printf-posix.h: New file.
49621
49622         * modules/vprintf-posix: New file.
49623         * lib/vprintf.c: New file.
49624         * m4/vprintf-posix.m4: New file.
49625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
49626         REPLACE_VPRINTF.
49627         * lib/stdio_.h (vprintf): New declaration.
49628         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
49629         REPLACE_VPRINTF.
49630
49631 2007-03-08  Bruno Haible  <bruno@clisp.org>
49632
49633         * modules/fprintf-posix-tests: New file.
49634         * tests/test-fprintf-posix.sh: New file.
49635         * tests/test-fprintf-posix.c: New file.
49636
49637         * modules/fprintf-posix: New file.
49638         * lib/fprintf.c: New file.
49639         * m4/fprintf-posix.m4: New file.
49640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
49641         REPLACE_FPRINTF.
49642         * lib/stdio_.h (fprintf): New declaration.
49643         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
49644         REPLACE_FPRINTF.
49645
49646 2007-03-08  Bruno Haible  <bruno@clisp.org>
49647
49648         * modules/vfprintf-posix-tests: New file.
49649         * tests/test-vfprintf-posix.sh: New file.
49650         * tests/test-vfprintf-posix.c: New file.
49651         * tests/test-fprintf-posix.h: New file.
49652         * tests/test-fprintf-posix.out: New file.
49653
49654         * modules/vfprintf-posix: New file.
49655         * lib/vfprintf.c: New file.
49656         * m4/vfprintf-posix.m4: New file.
49657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
49658         REPLACE_VFPRINTF.
49659         * lib/stdio_.h (vfprintf): New declaration.
49660         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
49661         REPLACE_VFPRINTF.
49662
49663 2007-03-08  Bruno Haible  <bruno@clisp.org>
49664
49665         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
49666
49667 2007-03-08  Bruno Haible  <bruno@clisp.org>
49668
49669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
49670         instead of 'expr' invocations.
49671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49674         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49675         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49676         Suggested by Paul Eggert.
49677
49678 2007-03-08  Bruno Haible  <bruno@clisp.org>
49679
49680         * modules/fseterr-tests: New file.
49681         * tests/test-fseterr.c: New file.
49682
49683         * modules/fseterr: New file.
49684         * lib/fseterr.h: New file.
49685         * lib/fseterr.c: New file.
49686
49687 2007-03-08  Bruno Haible  <bruno@clisp.org>
49688
49689         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
49690         * lib/getopt_.h: Likewise.
49691         * lib/mbswidth.h: Likewise.
49692         * lib/setenv.h: Likewise.
49693         * lib/vasnprintf.h: Likewise.
49694         * lib/vasprintf.h: Likewise.
49695         * lib/verror.h: Likewise.
49696         * lib/xsetenv.h: Likewise.
49697         * lib/xvasprintf.h: Likewise.
49698
49699 2007-03-08  Jim Meyering  <jim@meyering.net>
49700
49701         * users.txt: Add parted.
49702
49703         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
49704
49705 2007-03-07  Bruno Haible  <bruno@clisp.org>
49706
49707         * m4/printf.m4: Make the shell script snippets copy&pastable.
49708
49709 2007-03-02  Bruno Haible  <bruno@clisp.org>
49710
49711         * lib/netinet_in_.h: New file.
49712         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
49713         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
49714         * modules/netinet_in (Files): Add lib/netinet_in_.h.
49715         (Depends-on): Add absolute-header.
49716         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
49717         into netinet/in.h.
49718
49719 2007-03-03  Bruno Haible  <bruno@clisp.org>
49720
49721         * lib/sys_select_.h: New file.
49722         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
49723         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
49724         * modules/sys_select (Files): Add lib/sys_select_.h.
49725         (Depends-on): Add absolute-header.
49726         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
49727         into sys/select.h.
49728
49729 2007-03-02  Bruno Haible  <bruno@clisp.org>
49730
49731         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
49732         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
49733         values.
49734         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
49735         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
49736         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
49737         * modules/sys_socket (Depends-on): Add absolute-header.
49738         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
49739         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
49740         (Include): Remove requirement of inclusion of <sys/types.h>.
49741
49742 2007-03-02  Bruno Haible  <bruno@clisp.org>
49743
49744         * lib/byteswap_.h (bswap_32): Fix formula.
49745
49746 2007-03-06  Bruno Haible  <bruno@clisp.org>
49747
49748         * modules/sprintf-posix-tests: New file.
49749         * tests/test-sprintf-posix.c: New file.
49750
49751         * modules/sprintf-posix: New file.
49752         * lib/sprintf.c: New file.
49753         * m4/sprintf-posix.m4: New file.
49754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
49755         REPLACE_SPRINTF.
49756         * lib/stdio_.h (sprintf): New declaration.
49757         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
49758         REPLACE_SPRINTF.
49759
49760 2007-03-06  Bruno Haible  <bruno@clisp.org>
49761
49762         * modules/vsprintf-posix-tests: New file.
49763         * tests/test-vsprintf-posix.c: New file.
49764         * tests/test-sprintf-posix.h: New file.
49765
49766         * modules/vsprintf-posix: New file.
49767         * lib/vsprintf.c: New file.
49768         * m4/vsprintf-posix.m4: New file.
49769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
49770         REPLACE_VSPRINTF.
49771         * lib/stdio_.h (vsprintf): New declaration.
49772         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
49773         REPLACE_VSPRINTF.
49774
49775 2007-03-06  Bruno Haible  <bruno@clisp.org>
49776
49777         * modules/vsnprintf (Depend-on): Remove minmax.
49778
49779 2007-03-06  Bruno Haible  <bruno@clisp.org>
49780
49781         * modules/snprintf-posix-tests: New file.
49782         * tests/test-snprintf-posix.c: New file.
49783
49784         * modules/snprintf-posix: New file.
49785         * m4/snprintf-posix.m4: New file.
49786         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
49787         gl_FUNC_SNPRINTF.
49788         (gl_FUNC_SNPRINTF): Invoke it.
49789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
49790         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
49791         is set.
49792         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
49793
49794 2007-03-06  Bruno Haible  <bruno@clisp.org>
49795
49796         * modules/vsnprintf-posix-tests: New file.
49797         * tests/test-vsnprintf-posix.c: New file.
49798         * tests/test-snprintf-posix.h: New file.
49799
49800         * modules/vsnprintf-posix: New file.
49801         * m4/vsnprintf-posix.m4: New file.
49802         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
49803         gl_FUNC_VSNPRINTF.
49804         (gl_FUNC_VSNPRINTF): Invoke it.
49805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
49806         * lib/stdio_.h (vsnprintf): Define as a replacement if
49807         REPLACE_VSNPRINTF is set.
49808         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
49809
49810 2007-03-06  Bruno Haible  <bruno@clisp.org>
49811
49812         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
49813         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
49814
49815 2007-03-06  Bruno Haible  <bruno@clisp.org>
49816
49817         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
49818         (asinl): Declare also if HAVE_DECL_ASINL is set.
49819         (atanl): Declare also if HAVE_DECL_ATANL is set.
49820         (ceill): Declare also if HAVE_DECL_CEILL is set.
49821         (cosl): Declare also if HAVE_DECL_COSL is set.
49822         (expl): Declare also if HAVE_DECL_EXPL is set.
49823         (floorl): Declare also if HAVE_DECL_FLOORL is set.
49824         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
49825         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
49826         (logl): Declare also if HAVE_DECL_LOGL is set.
49827         (sinl): Declare also if HAVE_DECL_SINL is set.
49828         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
49829         (tanl): Declare also if HAVE_DECL_TANL is set.
49830         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
49831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
49832         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
49833         declaration of frexpl, ldexpl.
49834         * modules/printf-frexpl (Depends-on): Add math.
49835         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
49836
49837 2007-03-05  Bruno Haible  <bruno@clisp.org>
49838
49839         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
49840         frexpl and ldexpl are declared.
49841         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
49842
49843 2007-03-05  Bruno Haible  <bruno@clisp.org>
49844
49845         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
49846         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
49847
49848 2007-03-05  Bruno Haible  <bruno@clisp.org>
49849
49850         * lib/stdio_.h: Include <stddef.h>.
49851
49852 2007-03-05  Bruno Haible  <bruno@clisp.org>
49853
49854         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
49855
49856 2007-03-05  Bruno Haible  <bruno@clisp.org>
49857
49858         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
49859         NetBSD 4, from Ralf Wildenhues.
49860
49861 2007-03-04  Bruno Haible  <bruno@clisp.org>
49862
49863         * lib/vasprintf.h: Update #if logic for the case when the functions
49864         exist but are overridden.
49865
49866 2007-03-04  Bruno Haible  <bruno@clisp.org>
49867
49868         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
49869         implementations: glibc-2.4 and MacOS X 10.3.
49870         * tests/test-vasnprintf-posix.c (test_function): Test also the case
49871         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
49872         * tests/test-vasprintf-posix.c (test_function): Likewise.
49873
49874 2007-03-04  Bruno Haible  <bruno@clisp.org>
49875
49876         * modules/vasprintf-posix-tests: New file.
49877         * tests/test-vasprintf-posix.c: New file.
49878
49879         * modules/vasprintf-posix: New file.
49880         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
49881         defined.
49882         * m4/vasprintf-posix.m4: New file.
49883         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
49884         gl_FUNC_VASPRINTF.
49885         (gl_FUNC_VASPRINTF): Invoke it.
49886         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
49887         here.
49888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
49889
49890 2007-03-04  Bruno Haible  <bruno@clisp.org>
49891
49892         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
49893         REPLACE_GETTIMEOFDAY.
49894         * modules/sys_time (Makefile.am): Likewise.
49895         * m4/sys_time_h.m4: Likewise.
49896         * m4/gettimeofday.m4: Likewise.
49897
49898 2007-03-04  Bruno Haible  <bruno@clisp.org>
49899
49900         * modules/vasnprintf-posix-tests: New file.
49901         * tests/test-vasnprintf-posix.c: New file.
49902
49903         * modules/vasnprintf-posix: New file.
49904         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
49905         printf-frexpl.h.
49906         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
49907         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
49908         REPLACE_VASNPRINTF is defined.
49909         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
49910         gl_FUNC_VASNPRINTF.
49911         (gl_FUNC_VASNPRINTF): Invoke it.
49912         * m4/vasnprintf-posix.m4: New file.
49913         * m4/printf.m4: New file.
49914
49915 2007-03-04  Bruno Haible  <bruno@clisp.org>
49916
49917         Compile progreloc.c only if --enable-relocatable is specified.
49918         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
49919         if --enable-relocatable was specified.
49920         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
49921         lib_SOURCES.
49922
49923 2007-03-04  Jim Meyering  <jim@meyering.net>
49924
49925         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
49926         Use it consistently, rather than enumerating errno constants.
49927
49928 2007-03-04  Bruno Haible  <bruno@clisp.org>
49929
49930         * modules/xvasprintf-tests: New file.
49931         * tests/test-xvasprintf.c: New file.
49932
49933         * modules/vasprintf-tests: New file.
49934         * tests/test-vasprintf.c: New file.
49935
49936         * modules/vasnprintf-tests: New file.
49937         * tests/test-vasnprintf.c: New file.
49938
49939         * modules/vsnprintf-tests: New file.
49940         * tests/test-vsnprintf.c: New file.
49941
49942         * modules/snprintf-tests: New file.
49943         * tests/test-snprintf.c: New file.
49944
49945 2007-03-04  Bruno Haible  <bruno@clisp.org>
49946
49947         Compile relocatable.c only if --enable-relocatable is specified.
49948         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
49949         gl_RELOCATABLE_LIBRARY.
49950         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
49951         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
49952         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
49953         gl_RELOCATABLE_LIBRARY.
49954         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
49955         (Makefile.am): Remove lib_SOURCES.
49956         * modules/relocatable-lib-lgpl (configure.ac): Invoke
49957         gl_RELOCATABLE_LIBRARY.
49958         (Makefile.am): Remove lib_SOURCES.
49959         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
49960         always.
49961         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49962         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
49963
49964 2007-03-04  Bruno Haible  <bruno@clisp.org>
49965
49966         * modules/argmatch-tests: New file.
49967         * tests/test-argmatch.c: New file.
49968
49969         * tests/test-allocsa.c (main): Halve the number of loop runs.
49970
49971         * modules/alloca-opt-tests: New file.
49972         * tests/test-alloca-opt.c: New file.
49973
49974 2007-03-04  Jim Meyering  <jim@meyering.net>
49975
49976         Work around difference between Linux ACLs and Solaris 10 ZFS.
49977         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
49978         for EINVAL.
49979
49980 2007-03-03  Bruno Haible  <bruno@clisp.org>
49981
49982         * modules/relocatable-prog (Depends-on): Add back progreloc's
49983         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
49984
49985 2007-03-03  Bruno Haible  <bruno@clisp.org>
49986
49987         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
49988         * modules/relocatable-lib: New file.
49989
49990 2007-03-03  Bruno Haible  <bruno@clisp.org>
49991
49992         * modules/relocatable-prog: Renamed from modules/relocatable.
49993         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
49994
49995 2007-03-03  Bruno Haible  <bruno@clisp.org>
49996
49997         * modules/relocatable-script (Files): Add doc/relocatable.texi,
49998         m4/relocatable-lib.m4.
49999         (Depends-on): Remove 'relocatable'.
50000         (configure.ac): Add gl_RELOCATABLE_NOP.
50001
50002 2007-03-03  Bruno Haible  <bruno@clisp.org>
50003
50004         * modules/relocatable-prog-wrapper: New file.
50005         * modules/relocatable (Depends-on): Add it. Remove all other
50006         dependencies except progname.
50007         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
50008
50009         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
50010         (gl_FUNC_STRERROR): Nop.
50011         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
50012
50013         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
50014         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
50015
50016         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
50017         (gl_FUNC_READLINK): Update.
50018
50019         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
50020
50021 2007-03-03  Bruno Haible  <bruno@clisp.org>
50022
50023         * lib/xreadlink.c: Include <unistd.h> unconditionally.
50024         * modules/xreadlink (Depends-on): Add unistd.
50025         * modules/xreadlink-with-size (Depends-on): Likewise.
50026
50027 2007-03-03  Bruno Haible  <bruno@clisp.org>
50028
50029         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
50030         extracted from gt_FUNC_SETENV.
50031         (gt_FUNC_SETENV): Remove macro.
50032         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
50033         remove gt_FUNC_SETENV.
50034
50035 2007-03-03  Bruno Haible  <bruno@clisp.org>
50036
50037         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
50038         ENABLE_RELOCATABLE here.
50039         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
50040
50041 2007-03-03  Bruno Haible  <bruno@clisp.org>
50042
50043         * modules/rbtreehash-list-tests (Depends-on): Add progname.
50044         * tests/test-rbtreehash_list.c: Include progname.h.
50045         (main): Call set_program_name.
50046
50047         * modules/rbtree-oset-tests (Depends-on): Add progname.
50048         * tests/test-rbtree_oset.c: Include progname.h.
50049         (main): Call set_program_name.
50050
50051         * modules/rbtree-list-tests (Depends-on): Add progname.
50052         * tests/test-rbtree_list.c: Include progname.h.
50053         (main): Call set_program_name.
50054
50055         * modules/linked-list-tests (Depends-on): Add progname.
50056         * tests/test-linked_list.c: Include progname.h.
50057         (main): Call set_program_name.
50058
50059 2007-03-03  Bruno Haible  <bruno@clisp.org>
50060
50061         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
50062         All uses of __restrict changed to _Restrict_.
50063         * lib/glob_.h (__restrict): Remove macro.
50064
50065 2007-03-02  Bruno Haible  <bruno@clisp.org>
50066
50067         * modules/gettext (configure.ac): Require gettext infrastructure
50068         from version 0.16.1.
50069
50070 2007-03-02  Bruno Haible  <bruno@clisp.org>
50071
50072         * modules/linkedhash-list-tests (Depends-on): Add progname.
50073         * tests/test-linkedhash_list.c: Include progname.h.
50074         (main): Call set_program_name.
50075
50076         * modules/carray-list-tests (Depends-on): Add progname.
50077         * tests/test-carray_list.c: Include progname.h.
50078         (main): Call set_program_name.
50079
50080         * modules/avltreehash-list-tests (Depends-on): Add progname.
50081         * tests/test-avltreehash_list.c: Include progname.h.
50082         (main): Call set_program_name.
50083
50084         * modules/avltree-oset-tests (Depends-on): Add progname.
50085         * tests/test-avltree_oset.c: Include progname.h.
50086         (main): Call set_program_name.
50087
50088         * modules/avltree-list-tests (Depends-on): Add progname.
50089         * tests/test-avltree_list.c: Include progname.h.
50090         (main): Call set_program_name.
50091
50092         * modules/array-oset-tests (Depends-on): Add progname.
50093         * tests/test-array_oset.c: Include progname.h.
50094         (main): Call set_program_name.
50095
50096         * modules/array-list-tests (Depends-on): Add progname.
50097         * tests/test-array_list.c: Include progname.h.
50098         (main): Call set_program_name.
50099
50100         * modules/argp-tests (Depends-on): Add progname.
50101         * tests/test-argp.c: Include argp.h first. Include progname.h.
50102         (main): Call set_program_name.
50103
50104 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
50105
50106         * doc/gnulib-tool.texi (Initial import): Reword description of
50107         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
50108         limited effect even if defined after the first system include.
50109
50110 2007-03-01  Bruno Haible  <bruno@clisp.org>
50111
50112         * build-aux/config.libpath: Update to libtool-1.5.22.
50113         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50114
50115 2007-03-01  Bruno Haible  <bruno@clisp.org>
50116
50117         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
50118         foo_CFLAGS.
50119         Reported by Ralf Wildenhues.
50120
50121 2007-03-01  Bruno Haible  <bruno@clisp.org>
50122
50123         * build-aux/install-reloc: Remove object files left over by some
50124         compilers.
50125         Reported by Ralf Wildenhues.
50126
50127 2007-03-01  Bruno Haible  <bruno@clisp.org>
50128
50129         * build-aux/install-reloc: Break long lines.
50130
50131 2007-03-01  Bruno Haible  <bruno@clisp.org>
50132
50133         * doc/relocatable.texi: Document that it may not work on OpenBSD.
50134         Reported by Ralf Wildenhues.
50135
50136 2007-03-01  Bruno Haible  <bruno@clisp.org>
50137
50138         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
50139         include ordering constraints.
50140
50141 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50142
50143         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
50144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
50145         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
50146         as another example.
50147         * lib/time_.h: Fix misspelling.
50148         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50149         Require gl_HEADER_TIME_H_DEFAULTS.
50150         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
50151         * m4/time_r.m4 (gl_TIME_R): Likewise.
50152         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
50153
50154 2007-03-01  Bruno Haible  <bruno@clisp.org>
50155
50156         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
50157         * m4/utimens.m4 (gl_UTIMENS): Likewise.
50158
50159 2007-03-01  Jim Meyering  <jim@meyering.net>
50160
50161         * modules/xreadlink (Maintainer): Add my name.
50162         * modules/xreadlink-with-size (Depends-on): Alphabetize.
50163
50164 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
50165             Bruno Haible  <bruno@clisp.org>
50166
50167         * build-aux/install-reloc: Compile also c-ctype.c.
50168         * build-aux/relocatable.sh.in: New file.
50169         * doc/relocatable.texi: New file.
50170         * doc/relocatable-maint.texi: New file.
50171         * doc/gnulib.texi: Include relocatable-maint.texi.
50172         * lib/progreloc.c: Include unistd.h unconditionally.
50173         * lib/relocwrapper.c: Include unistd.h unconditionally.
50174         Include c-ctype.h.
50175         (add_dotbin): Use c_tolower.
50176         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
50177         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
50178         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
50179         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
50180         to m4/relocatable-lib.m4.
50181         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
50182         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
50183         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
50184         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
50185         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
50186         * modules/relocatable: New file.
50187         * modules/relocatable-lib: New file.
50188         * modules/relocatable-script: New file.
50189
50190 2007-02-28  Bruno Haible  <bruno@clisp.org>
50191
50192         Import --enable-relocatable infrastructure.
50193         * build-aux/config.libpath: New file, from GNU gettext.
50194         * build-aux/install-reloc: New file, from GNU gettext.
50195         * build-aux/reloc-ldflags: New file, from GNU gettext.
50196         * lib/relocatable.h: New file, from GNU gettext.
50197         * lib/relocatable.c: New file, from GNU gettext.
50198         * lib/relocwrapper.c: New file, from GNU gettext.
50199         * m4/relocatable.m4: New file, from GNU gettext.
50200
50201 2007-02-28  Bruno Haible  <bruno@clisp.org>
50202
50203         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
50204
50205         * modules/xreadlink: New file, from GNU gettext with modifications.
50206         * lib/xreadlink.c: New file, from GNU gettext.
50207         * lib/xreadlink.h: Add comments.
50208         (xreadlink): New declaration.
50209
50210         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
50211         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
50212         lib/xreadlink-with-size.c.
50213         (configure.ac): Remove gl_XREADLINK invocation.
50214         (Makefile.am): Augment lib_SOURCES.
50215         * m4/xreadlink.m4: Remove file.
50216         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
50217         (xreadlink_with_size): Renamed from xreadink.
50218         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
50219         * modules/canonicalize (Depends-on): Replace xreadlink with
50220         xreadlink-with-size.
50221         * lib/canonicalize.c (canonicalize_filename_mode): Update.
50222
50223 2007-02-25  Jim Meyering  <jim@meyering.net>
50224
50225         * build-aux/announce-gen: When complaining about excess arguments,
50226         list them.
50227
50228 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50229
50230         * README: Document signed integer overflow situation more
50231         accurately.
50232
50233 2007-02-25  Bruno Haible  <bruno@clisp.org>
50234
50235         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
50236         'a' or 'A' conversion.
50237
50238 2007-02-25  Bruno Haible  <bruno@clisp.org>
50239
50240         * modules/filename: Renamed from modules/pathname.
50241         (Files): Replace lib/pathname.h with lib/filename.h. Replace
50242         lib/concatpath.c with lib/concat-filename.c.
50243         (Makefile.am): Update.
50244         (Include): Replace pathname.h with filename.h.
50245         * lib/filename.h: Renamed from lib/pathname.h.
50246         (concatenated_filename): Renamed from concatenated_pathname.
50247         * lib/concat-filename.c: Renamed from lib/concatpath.c.
50248         (concatenated_filename): Renamed from concatenated_pathname.
50249         * lib/findprog.c: Include filename.h instead of pathname.h.
50250         (find_in_path): Update.
50251         * lib/javacomp.c: Include filename.h instead of pathname.h.
50252         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50253         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50254         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50255         is_oldgcj_14_13_usable, is_javac_usable): Update.
50256         * lib/javaexec.c: Include filename.h instead of pathname.h.
50257         (execute_java_class): Update.
50258         * modules/findprog: Update.
50259         * modules/javacomp: Update.
50260         * modules/javaexec: Update.
50261         * MODULES.html.sh (File system functions): Add 'filename', remove
50262         'pathname'.
50263
50264 2007-02-25  Bruno Haible  <bruno@clisp.org>
50265
50266         * modules/printf-frexpl-tests: New file.
50267         * tests/test-printf-frexpl.c: New file.
50268
50269         * modules/printf-frexpl: New file.
50270         * lib/printf-frexpl.h: New file.
50271         * lib/printf-frexpl.c: New file.
50272         * m4/printf-frexpl.m4: New file.
50273
50274 2007-02-25  Bruno Haible  <bruno@clisp.org>
50275
50276         * modules/printf-frexp-tests: New file.
50277         * tests/test-printf-frexp.c: New file.
50278
50279         * modules/printf-frexp: New file.
50280         * lib/printf-frexp.h: New file.
50281         * lib/printf-frexp.c: New file.
50282         * m4/printf-frexp.m4: New file.
50283
50284 2007-02-25  Bruno Haible  <bruno@clisp.org>
50285
50286         Assume automake >= 1.10 for the tests.
50287         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
50288         * modules/arctwo-tests: Likewise.
50289         * modules/argp-tests: Likewise.
50290         * modules/avltree-list-tests: Likewise.
50291         * modules/avltree-oset-tests: Likewise.
50292         * modules/avltreehash-list-tests: Likewise.
50293         * modules/carray-list-tests: Likewise.
50294         * modules/crc-tests: Likewise.
50295         * modules/des-tests: Likewise.
50296         * modules/gc-arcfour-tests: Likewise.
50297         * modules/gc-arctwo-tests: Likewise.
50298         * modules/gc-des-tests: Likewise.
50299         * modules/gc-hmac-md5-tests: Likewise.
50300         * modules/gc-hmac-sha1-tests: Likewise.
50301         * modules/gc-md2-tests: Likewise.
50302         * modules/gc-md4-tests: Likewise.
50303         * modules/gc-md5-tests: Likewise.
50304         * modules/gc-pbkdf2-sha1-tests: Likewise.
50305         * modules/gc-rijndael-tests: Likewise.
50306         * modules/gc-sha1-tests: Likewise.
50307         * modules/gc-tests: Likewise.
50308         * modules/getaddrinfo-tests: Likewise.
50309         * modules/hmac-md5-tests: Likewise.
50310         * modules/hmac-sha1-tests: Likewise.
50311         * modules/linked-list-tests: Likewise.
50312         * modules/linkedhash-list-tests: Likewise.
50313         * modules/lock-tests: Likewise.
50314         * modules/md2-tests: Likewise.
50315         * modules/md4-tests: Likewise.
50316         * modules/md5-tests: Likewise.
50317         * modules/rbtree-list-tests: Likewise.
50318         * modules/rbtree-oset-tests: Likewise.
50319         * modules/rbtreehash-list-tests: Likewise.
50320         * modules/read-file-tests: Likewise.
50321         * modules/rijndael-tests: Likewise.
50322         * modules/stdint-tests: Likewise.
50323         * modules/tls-tests: Likewise.
50324
50325 2007-02-24  Bruno Haible  <bruno@clisp.org>
50326
50327         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
50328         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
50329         function; instead check whether isnan with a double argument links.
50330         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
50331         function; instead check whether isnan with a 'long double' argument
50332         links.
50333         Reported by Eric Blake <ebb9@byu.net>.
50334
50335 2007-02-24  Bruno Haible  <bruno@clisp.org>
50336
50337         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
50338         defined.
50339         * lib/isnanl.c: Remove all code. Just include isnan.c.
50340         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
50341
50342 2007-02-25  Jim Meyering  <jim@meyering.net>
50343
50344         Avoid conflicting types for 'unsetenv' on FreeBSD.
50345         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
50346         conflicting with FreeBSD's (5.0 and 6.1) function declaration
50347         in stdlib.h.
50348
50349 2007-02-24  Bruno Haible  <bruno@clisp.org>
50350
50351         * modules/isnanl-nolibm-tests: New file.
50352         * tests/test-isnanl.c: New file.
50353
50354         * modules/isnanl-nolibm: New file.
50355         * lib/isnanl.h: New file.
50356         * lib/isnanl.c: New file.
50357         * m4/isnanl.m4: New file.
50358
50359 2007-02-24  Bruno Haible  <bruno@clisp.org>
50360
50361         * modules/isnan-nolibm-tests: New file.
50362         * tests/test-isnan.c: New file.
50363
50364         * modules/isnan-nolibm: New file.
50365         * lib/isnan.h: New file.
50366         * lib/isnan.c: New file.
50367         * m4/isnan.m4: New file.
50368
50369 2007-02-24  Bruno Haible  <bruno@clisp.org>
50370
50371         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
50372         assume that an exponent fits in 20 bits.
50373
50374 2007-02-24  Jim Meyering  <jim@meyering.net>
50375
50376         * m4/regex.m4: Update the description of the configure-time option,
50377         --without-included-regex, to state accurately what the defaults are,
50378         and perhaps to give people an idea why using this option is risky.
50379
50380 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50381
50382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
50383         loops on small arguments.  This attempts to avoid the problem
50384         Bruno Haible reported for AIX 4.3.2 in
50385         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
50386
50387 2007-02-23  Bruno Haible  <bruno@clisp.org>
50388
50389         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
50390         Needed for help2man.
50391
50392 2007-02-23  Karl Berry  <karl@gnu.org>
50393
50394         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
50395         exists, foo.h should be cvs-ignored, not committed.
50396
50397 2007-02-23  Eric Blake  <ebb9@byu.net>
50398
50399         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
50400         * lib/stat-time.h (includes): Likewise.
50401         * lib/utimecmp.c (includes): Likewise.
50402         * lib/utimens.h (includes): Likewise.
50403         * lib/getdate.y (includes): Also include "timespec.h" for use
50404         internal to the module.
50405         * modules/utimens (Depends-on): Revert yesterday's patch.
50406         * modules/nanosleep (Depends-on): Add missing dependency.
50407
50408 2007-02-22  Bruno Haible  <bruno@clisp.org>
50409
50410         * lib/glob.c: Don't include getlogin_r.h.
50411
50412 2007-02-22  Jim Meyering  <jim@meyering.net>
50413
50414         * modules/utimens (Depends-on): Add timespec, required for
50415         utimens.h's inclusion of timespec.h.
50416
50417 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
50418
50419         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
50420         long unreadable paths in GNU/Linux.  Problem reported by Andreas
50421         Schwab in
50422         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
50423         I'll try to think of a better way to fix the Solaris problem.
50424
50425         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
50426         like glibc; on Solaris 10, it fails with errno == EINVAL.
50427         POSIX says the behavior is unspecified if the first argument is NULL,
50428         so play it safe and never pass NULL to the system getcwd.
50429
50430 2007-02-21  Jim Meyering  <jim@meyering.net>
50431
50432         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
50433         of gettimeofday.  It would conflict with the one now always
50434         provided via sys_time_.h.  Reported by Matthew Woehlke, as
50435         an IRIX 6.5 build failure.
50436
50437 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
50438
50439         Minor fixups to port to Solaris 10 with Sun C 5.8.
50440         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
50441         * modules/getcwd (Depends-on): Add dirfd.
50442         * lib/putenv.c (putenv): #undef it.
50443         (rpl_putenv): New decl.
50444         (malloc, free): Include <stdlib.h> rather than prototyping separately.
50445
50446 2007-02-20  Bruno Haible  <bruno@clisp.org>
50447
50448         * modules/stdio-tests: New file.
50449         * tests/test-stdio.c: New file.
50450
50451         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
50452         (Depends-on): Add stdio.
50453         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50454         (Include): Use <stdio.h> instead of vsnprintf.h.
50455         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50456         HAVE_DECL_VSNPRINTF.
50457         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
50458
50459         * modules/snprintf (Files): Remove lib/snprintf.h.
50460         (Depends-on): Add stdio.
50461         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50462         (Include): Use <stdio.h> instead of snprintf.h.
50463         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50464         HAVE_DECL_SNPRINTF.
50465         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
50466         * lib/getaddrinfo.c: Likewise.
50467
50468         * modules/stdio: New file.
50469         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
50470         * lib/snprintf.h: Remove file.
50471         * lib/vsnprintf.h: Remove file.
50472         * lib/.cppi-disable: Remove snprintf.h.
50473         * m4/stdio_h.m4: New file.
50474         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
50475
50476 2007-02-20  Jim Meyering  <jim@meyering.net>
50477
50478         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
50479         used by e.g., mingw.  From Bruno Haible.
50480
50481 2007-02-19  Bruno Haible  <bruno@clisp.org>
50482
50483         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
50484         warnings.
50485         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50486
50487 2007-02-19  Bruno Haible  <bruno@clisp.org>
50488
50489         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
50490         from mingw users.
50491
50492 2007-02-19  Bruno Haible  <bruno@clisp.org>
50493
50494         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
50495         warnings.
50496         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
50497
50498 2007-02-19  Jim Meyering  <jim@meyering.net>
50499
50500         Don't use FD after a successful "fdopendir (fd)".
50501         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
50502         Reset it by calling dirfd on the just-obtained DIR*.
50503
50504         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
50505         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
50506
50507 2007-02-18  Bruno Haible  <bruno@clisp.org>
50508
50509         * lib/readlink.c: Include <unistd.h>.
50510         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
50511         HAVE_READLINK.
50512         * modules/readlink (Depends-on): Add unistd.
50513         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50514         (Include): Add <unistd.h>.
50515
50516         * lib/getlogin_r.h: Remove file.
50517         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
50518         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
50519         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
50520         HAVE_DECL_GETLOGIN_R.
50521         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
50522         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50523         (Include): Use <unistd.h> instead of getlogin_r.h.
50524
50525         * lib/getcwd.h: Remove file.
50526         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
50527         * lib/xgetcwd.c: Likewise.
50528         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
50529         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
50530         * modules/getcwd (Files): Remove lib/getcwd.h.
50531         (Depends-on): Add unistd.
50532         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50533         (Include): Use <unistd.h> instad of getcwd.h.
50534
50535         * lib/ftruncate.c: Include <unistd.h> first.
50536         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
50537         Set HAVE_FTRUNCATE.
50538         * modules/ftruncate (Depends-on): Add unistd.
50539         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50540
50541         * lib/fchdir.c: Include <unistd.h> first.
50542         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
50543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
50544         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
50545         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50546         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
50547
50548         * lib/dup2.c: Include <unistd.h> first.
50549         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
50550         HAVE_DUP2.
50551         * modules/dup2 (Depends-on): Add unistd.
50552         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50553
50554         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
50555         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
50556         REPLACE_CHOWN. Don't define chown as a macro here.
50557         * modules/chown (Depends-on): Add unistd.
50558         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50559
50560         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
50561         Add definition for GL_LINK_WARNING.
50562         (chown, dup2): New declarations.
50563         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
50564         link warning.
50565         (ftruncate): New declaration.
50566         (getcwd): New declaration, taken from old getcwd.h.
50567         (getlogin_r): New declaration, taken from old getlogin_r.h.
50568         (readlink): New declaration.
50569         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
50570         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
50571         (gl_PREREQ_UNISTD): Remove macro.
50572         (gl_UNISTD_MODULE_INDICATOR): New macro.
50573         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
50574         many new variables. Don't set UNISTD_H.
50575         * modules/unistd (Description): Change.
50576         (Depends-on): Add link-warning.
50577         (configure.ac): Update.
50578         (Makefile.am): Create unistd.h always. Substitute many new variables
50579         into it.
50580
50581 2007-02-18  Bruno Haible  <bruno@clisp.org>
50582
50583         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
50584         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
50585         HAVE_GETSUBOPT.
50586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
50587         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
50588         * lib/getsubopt.h: Remove file.
50589         * modules/getsubopt (Files): Remove lib/getsubopt.h.
50590         (Depends-on): Add stdlib.
50591         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50592         (Includes): Use <stdlib.h> instead of getsubopt.h.
50593         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
50594         Set HAVE_GETSUBOPT.
50595         * lib/getsubopt.c: Don't include getsubopt.h.
50596
50597 2007-02-18  Bruno Haible  <bruno@clisp.org>
50598
50599         * modules/fchdir (Depends-on): Add dup2.
50600
50601 2007-02-18  Bruno Haible  <bruno@clisp.org>
50602
50603         * lib/stdlib_.h: Handle glibc's special invocation convention
50604         specially.
50605
50606 2007-02-18  Bruno Haible  <bruno@clisp.org>
50607
50608         * modules/stdlib-tests: New file.
50609         * tests/test-stdlib.c: New file.
50610
50611         * modules/mkstemp (Files): Remove lib/mkstemp.h.
50612         (Depends-on): Add stdlib.
50613         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50614         (Includes): Use <stdlib.h> instead of mkstemp.h.
50615         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50616         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
50617         * lib/mkstemp.c: Don't include mkstemp.h.
50618         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
50619         * lib/stdlib--.h: Don't include mkstemp.h.
50620
50621         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
50622         (Depends-on): Add stdlib.
50623         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50624         (Includes): Use <stdlib.h> instead of mkdtemp.h.
50625         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50626         HAVE_MKDTEMP.
50627         * lib/mkdtemp.c: Don't include mkdtemp.h.
50628         * lib/clean-temp.c: Don't include mkdtemp.h.
50629
50630         * modules/exit (Files): Remove lib/exit.h.
50631         (Depends-on): Add stdlib.
50632         (Makefile.am): Remove lib_SOURCES.
50633         (Include): Use <stdlib.h> instead of exit.h.
50634         * lib/argmatch.c: Don't include exit.h.
50635         * lib/execute.c: Likewise.
50636         * lib/pagealign_alloc.c: Likewise.
50637         * lib/pipe.c: Likewise.
50638         * lib/wait-process.c: Likewise.
50639         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
50640         * lib/exitfail.c: Likewise.
50641         * lib/savewd.c: Likewise.
50642         * lib/xsetenv.c: Likewise.
50643
50644         * modules/stdlib: New file.
50645         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
50646         and extra comments about mkstemp().
50647         * lib/exit.h: Remove file.
50648         * lib/mkdtemp.h: Remove file.
50649         * lib/mkstemp.h: Remove file.
50650         * m4/stdlib_h.m4: New file.
50651         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
50652
50653 2007-02-18  Bruno Haible  <bruno@clisp.org>
50654
50655         * modules/math-tests: New file.
50656         * tests/test-math.c: New file.
50657
50658         * modules/math: New file.
50659         * modules/mathl (Files): Remove lib/mathl.h.
50660         (Depends-on): Add math.
50661         (Makefile.am): Don't mention mathl.h.
50662         (Include): Use <math.h> instead of mathl.h.
50663         * lib/math_.h: New file.
50664         * lib/mathl.h: Remove file.
50665         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
50666         mathl.h.
50667         * lib/asinl.c: Likewise.
50668         * lib/atanl.c: Likewise.
50669         * lib/ceill.c: Likewise.
50670         * lib/cosl.c: Likewise.
50671         * lib/expl.c: Likewise.
50672         * lib/floorl.c: Likewise.
50673         * lib/frexpl.c: Likewise.
50674         * lib/ldexpl.c: Likewise.
50675         * lib/logl.c: Likewise.
50676         * lib/sincosl.c: Likewise.
50677         * lib/sinl.c: Likewise.
50678         * lib/sqrtl.c: Likewise.
50679         * lib/tanl.c: Likewise.
50680         * lib/trigl.c: Likewise.
50681         * m4/math_h.m4: New file.
50682         * MODULES.html.sh (Mathematics): Add math.
50683
50684 2007-02-17  Bruno Haible  <bruno@clisp.org>
50685
50686         * modules/wctype-tests: New file.
50687         * tests/test-wctype.c: New file.
50688
50689         * modules/wchar-tests: New file.
50690         * tests/test-wchar.c: New file.
50691
50692         * modules/unistd-tests: New file.
50693         * tests/test-unistd.c: New file.
50694
50695         * modules/time-tests: New file.
50696         * tests/test-time.c: New file.
50697
50698         * modules/sysexits-tests: New file.
50699         * tests/test-sysexits.c: New file.
50700
50701         * modules/sys_time-tests: New file.
50702         * tests/test-sys_time.c: New file.
50703
50704         * modules/sys_stat-tests: New file.
50705         * tests/test-sys_stat.c: New file.
50706
50707         * modules/sys_socket-tests: New file.
50708         * tests/test-sys_socket.c: New file.
50709
50710         * modules/sys_select-tests: New file.
50711         * tests/test-sys_select.c: New file.
50712
50713         * modules/string-tests: New file.
50714         * tests/test-string.c: New file.
50715
50716         * modules/stdbool-tests: New file.
50717         * tests/test-stdbool.c: New file.
50718
50719         * modules/netinet_in-tests: New file.
50720         * tests/test-netinet_in.c: New file.
50721
50722         * modules/inttypes-tests: New file.
50723         * tests/test-inttypes.c: New file.
50724
50725         * modules/fcntl-tests: New file.
50726         * tests/test-fcntl.c: New file.
50727
50728         * modules/byteswap-tests: New file.
50729         * tests/test-byteswap.c: New file.
50730
50731         * modules/arpa_inet-tests: New file.
50732         * tests/test-arpa_inet.c: New file.
50733
50734 2007-02-17  Bruno Haible  <bruno@clisp.org>
50735
50736         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
50737         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
50738         if the corresponding module is not enabled. Emit link warnings if
50739         the function is used nevertheless.
50740         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
50741         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
50742         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
50743         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
50744         * modules/inttypes (Depends-on): Add link-warning.
50745         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50746         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
50747         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
50748         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
50749         * modules/imaxdiv (configure.ac): Likewise.
50750         * modules/strtoimax (configure.ac): Likewise.
50751         * modules/strtoumax (configure.ac): Likewise.
50752
50753 2007-02-17  Bruno Haible  <bruno@clisp.org>
50754
50755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
50756         gl_STRING_MODULE_INDICATOR_DEFAULTS.
50757         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
50758         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
50759
50760 2007-02-17  Bruno Haible  <bruno@clisp.org>
50761
50762         * modules/link-warning: New file.
50763         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
50764         * lib/string_.h (GL_LINK_WARNING): Remove definition.
50765         * modules/string (Depends-on): Add link-warning.
50766         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50767         string.h.
50768         * MODULES.html.sh (Support for building libraries and executables): Add
50769         link-warning.
50770
50771 2007-02-17  Bruno Haible  <bruno@clisp.org>
50772
50773         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
50774         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
50775         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
50776         long lines.
50777
50778 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
50779             Bruno Haible  <bruno@clisp.org>
50780
50781         * modules/tmpfile: New file.
50782         * lib/tmpfile.c: New file.
50783         * m4/tmpfile.m4: New file.
50784         * MODULES.html.sh (func_all_modules): New section "Input/output".
50785
50786 2007-02-15  Bruno Haible  <bruno@clisp.org>
50787
50788         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
50789         (supports_delete_on_close): New function.
50790         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
50791
50792 2007-02-14  Bruno Haible  <bruno@clisp.org>
50793
50794         * modules/mbspcasecmp-tests: New file.
50795         * tests/test-mbspcasecmp.sh: New file.
50796         * tests/test-mbspcasecmp.c: New file.
50797
50798         New module mbspcasecmp.
50799         * modules/mbspcasecmp: New file.
50800         * lib/mbspcasecmp.c: New file.
50801         * lib/string_.h (strncasecmp): Change warning message.
50802         (mbspcasecmp): New declaration.
50803         * m4/mbspcasecmp.m4: New file.
50804         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50805         GNULIB_MBSPCASECMP.
50806         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
50807         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
50808
50809 2007-02-14  Bruno Haible  <bruno@clisp.org>
50810
50811         * modules/mbsncasecmp-tests: New file.
50812         * tests/test-mbsncasecmp.sh: New file.
50813         * tests/test-mbsncasecmp.c: New file.
50814
50815         New module mbsncasecmp.
50816         * modules/mbsncasecmp: New file.
50817         * lib/mbsncasecmp.c: New file.
50818         * lib/string_.h (mbsncasecmp): New declaration.
50819         * m4/mbsncasecmp.m4: New file.
50820         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50821         GNULIB_MBSNCASECMP.
50822         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
50823         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
50824
50825 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
50826
50827         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
50828         Verify that it doesn't overlap with our flags.
50829         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
50830         do not have the desired effect in multibyte locales; instead, use
50831         mbscasecmp.
50832         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
50833         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
50834         we don't require GNU fnmatch ourselves (if our users require it, they
50835         should do so explicitly).
50836
50837         Fix regex code so it doesn't rely on strcasecmp.
50838         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
50839         Otherwise, include gnulib's langinfo.h.
50840         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
50841         undesirable behavior in non-C locales.  Instead, rely on localecharset.
50842         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
50843         * modules/regex (FILES): Remove m4/codeset.m4.
50844         (Depends-on): Add localcharset.  Remove strcase.
50845
50846 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50847
50848         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
50849         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
50850
50851 2007-02-13  Bruno Haible  <bruno@clisp.org>
50852
50853         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
50854         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50855
50856 2007-02-12  Bruno Haible  <bruno@clisp.org>
50857
50858         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
50859         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
50860         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
50861         time warning rather than a link error.
50862
50863 2007-02-12  Bruno Haible  <bruno@clisp.org>
50864
50865         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
50866         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50867         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50868
50869 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50870
50871         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
50872         args, not 2.
50873
50874 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50875
50876         New module 'time', so that apps can include <time.h> as per
50877         POSIX and GNU instead of separate include files like time_r.h
50878         and timegm.h.  This implementation tries out a simpler approach
50879         for replacing decls in standard include files (as compared to
50880         the string module), somewhat as an experiment.
50881
50882         * config/srclist.txt: Comment out mktime.c for now.
50883         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
50884         since it doesn't apply any more.  Use generic wording instead.
50885         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
50886         'time'.
50887         * lib/time_.h, m4/time_h.m4, modules/time: New files.
50888         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
50889         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
50890         Don't include <sys/types.h>; no longer needed since we assume C89.
50891         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
50892         * lib/strftime.c: Likewise.
50893         * lib/time_r.c: Likewise.
50894         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
50895         * lib/nanosleep.c: Include <time.h> first, to check interface.
50896         * lib/strptime.c: Likewise.
50897         * lib/time_r.c: Likewise.
50898         * lib/timegm.c: Likewise.
50899         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
50900         needed.
50901         * lib/timegm.c: Don't include timegm.h; no longer needed.
50902         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
50903         time.h now handles any problems in that area.
50904         (struct timespec, nanosleep): Remove; time.h now arranges for these.
50905         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
50906         that time.h defines struct timespec.
50907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
50908         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
50909         handles that.
50910         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
50911         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
50912         needed.  Set REPLACE_LOCALTIME.
50913         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
50914         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
50915         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
50916         nanosleep; time_h.m4 now does that.  Don't require
50917         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
50918         module handles this now.
50919         * modules/getdate (Depends-on): Remove timespec.  Add time.
50920         * modules/nanosleep (Depends-on): Likewise.
50921         * modules/stat-time (Depends-on): Likewise.
50922         * modules/nanosleep (Include): Include time.h, not timespec.h.
50923         * modules/strptime (Files): Remove lib/strptime.h.
50924         (Depends-on): Add extensions, time.
50925         (Include): Include time.h, not strptime.h.
50926         * modules/time_r (Files): Remove lib/time_r.h.
50927         (Depends-on): Add time.
50928         (Include): Include time.h, not time_r.h.
50929         * modules/timegm: Likewise.
50930         * modules/timespec (Description): Now does timespec-related decls
50931         of our own, instead of struct timespec itself.
50932         (Depends-on): Add time; remove extensions.
50933         (Maintainer): Add self.
50934         * modules/utimecmp (Depends-on): Add time; remove timespec.
50935         * modules/utimens (Depends-on): Likewise.
50936         * modules/xnanosleep (Depends-on): Likewise.
50937
50938 2007-02-11  Bruno Haible  <bruno@clisp.org>
50939
50940         * lib/c-strstr.c: Include allocsa.h.
50941         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50942         * lib/c-strcasestr.c: Include allocsa.h.
50943         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50944         * lib/strcasestr.c: Include allocsa.h.
50945         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50946         * lib/mbsstr.c: Include allocsa.h.
50947         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50948         allocsa/freesa instead of malloc/free.
50949         * lib/mbscasestr.c: Include allocsa.h.
50950         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50951         allocsa/freesa instead of malloc/free.
50952         * modules/c-strstr (Depends-on): Add allocsa.
50953         * modules/c-strcasestr (Depends-on): Likewise.
50954         * modules/strcasestr (Depends-on): Likewise.
50955         * modules/mbsstr (Depends-on): Likewise.
50956         * modules/mbscasestr (Depends-on): Likewise.
50957
50958 2007-02-11  Bruno Haible  <bruno@clisp.org>
50959
50960         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
50961
50962         * modules/mbsspn-tests: New file.
50963         * tests/test-mbsspn.sh: New file.
50964         * tests/test-mbsspn.c: New file.
50965
50966 2007-02-11  Bruno Haible  <bruno@clisp.org>
50967
50968         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
50969
50970         * modules/mbspbrk-tests: New file.
50971         * tests/test-mbspbrk.sh: New file.
50972         * tests/test-mbspbrk.c: New file.
50973
50974 2007-02-11  Bruno Haible  <bruno@clisp.org>
50975
50976         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
50977         unneeded cast.
50978
50979         * modules/mbscspn-tests: New file.
50980         * tests/test-mbscspn.sh: New file.
50981         * tests/test-mbscspn.c: New file.
50982
50983 2007-02-11  Bruno Haible  <bruno@clisp.org>
50984
50985         * modules/mbscasecmp-tests: New file.
50986         * tests/test-mbscasecmp.sh: New file.
50987         * tests/test-mbscasecmp.c: New file.
50988
50989 2007-02-11  Bruno Haible  <bruno@clisp.org>
50990
50991         Ensure O(n) worst-case complexity of mbscasestr.
50992         * lib/mbscasestr.c: Include stdbool.h.
50993         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50994         functions.
50995         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
50996         the bookkeeping indicates that it's worth it.
50997         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
50998
50999         * modules/mbscasestr-tests: New file.
51000         * tests/test-mbscasestr1.c: New file.
51001         * tests/test-mbscasestr2.sh: New file.
51002         * tests/test-mbscasestr2.c: New file.
51003         * tests/test-mbscasestr3.sh: New file.
51004         * tests/test-mbscasestr3.c: New file.
51005         * tests/test-mbscasestr4.sh: New file.
51006         * tests/test-mbscasestr4.c: New file.
51007         * m4/locale-tr.m4: New file.
51008
51009 2007-02-11  Bruno Haible  <bruno@clisp.org>
51010
51011         Ensure O(n) worst-case complexity of mbsstr.
51012         * lib/mbsstr.c: Include stdbool.h.
51013         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51014         functions.
51015         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
51016         bookkeeping indicates that it's worth it.
51017         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
51018
51019         * modules/mbsstr-tests: New file.
51020         * tests/test-mbsstr1.c: New file.
51021         * tests/test-mbsstr2.sh: New file.
51022         * tests/test-mbsstr2.c: New file.
51023         * tests/test-mbsstr3.sh: New file.
51024         * tests/test-mbsstr3.c: New file.
51025         * m4/locale-fr.m4: New file.
51026
51027 2007-02-11  Bruno Haible  <bruno@clisp.org>
51028
51029         * lib/mbsrchr.c (mbsrchr): Fix bug.
51030
51031         * modules/mbsrchr-tests: New file.
51032         * tests/test-mbsrchr.sh: New file.
51033         * tests/test-mbsrchr.c: New file.
51034
51035 2007-02-11  Bruno Haible  <bruno@clisp.org>
51036
51037         * lib/mbschr.c (mbschr): Fix bug.
51038
51039         * modules/mbschr-tests: New file.
51040         * tests/test-mbschr.sh: New file.
51041         * tests/test-mbschr.c: New file.
51042         * m4/locale-zh.m4: New file.
51043
51044 2007-02-11  Bruno Haible  <bruno@clisp.org>
51045
51046         Support for copying multibyte string iterators.
51047         * lib/mbiter.h: Include <string.h>.
51048         (mbiter_multi_copy): New function.
51049         (mbi_copy): New macro.
51050         * lib/mbuiter.h: Include <string.h>.
51051         (mbuiter_multi_copy): New function.
51052         (mbui_copy): New macro.
51053
51054 2007-02-11  Bruno Haible  <bruno@clisp.org>
51055
51056         New module mbslen.
51057         * modules/mbslen: New file.
51058         * lib/mbslen.c: New file.
51059         * lib/string_.h (mbslen): New declaration.
51060         * m4/mbslen.m4: New file.
51061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51062         GNULIB_MBSLEN.
51063         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
51064         * MODULES.html.sh (Internationalization functions): Add mbslen.
51065
51066 2007-02-11  Bruno Haible  <bruno@clisp.org>
51067
51068         Ensure O(n) worst-case complexity of strcasestr substitute.
51069         * lib/strcasestr.c: Include stdbool.h.
51070         (knuth_morris_pratt): New function.
51071         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51072         bookkeeping indicates that it's worth it.
51073         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
51074
51075         * modules/strcasestr-tests: New file.
51076         * tests/test-strcasestr.c: New file.
51077
51078 2007-02-11  Bruno Haible  <bruno@clisp.org>
51079
51080         Ensure O(n) worst-case complexity of c_strcasestr.
51081         * lib/c-strcasestr.c: Include stdbool.h, string.h.
51082         (knuth_morris_pratt): New function.
51083         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
51084         the bookkeeping indicates that it's worth it.
51085         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
51086
51087         * modules/c-strcasestr-tests: New file.
51088         * tests/test-c-strcasestr.c: New file.
51089
51090 2007-02-11  Bruno Haible  <bruno@clisp.org>
51091
51092         Ensure O(n) worst-case complexity of c_strstr.
51093         * lib/c-strstr.c: Include stdbool.h, string.h.
51094         (knuth_morris_pratt): New function.
51095         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51096         bookkeeping indicates that it's worth it.
51097         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
51098
51099         * lib/c-strstr.c: Complete rewrite for maintainability.
51100
51101         * modules/c-strstr-tests: New file.
51102         * tests/test-c-strstr.c: New file.
51103
51104 2007-02-11  Bruno Haible  <bruno@clisp.org>
51105
51106         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
51107         5.2.1 and earlier, whereby \055 was treated just like the range
51108         delimiter '-'.
51109         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51110
51111 2007-02-08  Bruno Haible  <bruno@clisp.org>
51112
51113         * modules/regex (Depends-on): Add stdbool.
51114         Reported by Dalibor Topic <robilad@kaffe.org>.
51115
51116 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51117
51118         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
51119         Prefer returning from main to exiting from it.
51120         Remove unnecessary parens after sizeof.
51121
51122 2007-02-05  Bruno Haible  <bruno@clisp.org>
51123
51124         New module mbssep.
51125         * modules/mbssep: New file.
51126         * lib/mbssep.c: New file.
51127         * lib/string_.h (strsep): Add a conditional link warning.
51128         (mbssep): New declaration.
51129         * m4/mbssep.m4: New file.
51130         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51131         GNULIB_MBSSEP.
51132         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
51133         * MODULES.html.sh (Internationalization functions): Add mbssep.
51134
51135 2007-02-05  Bruno Haible  <bruno@clisp.org>
51136
51137         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
51138         Optimize search in case of 1 delimiter.
51139
51140 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51141
51142         * lib/acl.h: Include sys/types.h before sys/acl.h.
51143
51144 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51145
51146         Merge upstream fix for glibc bugzilla #3957:
51147
51148         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
51149
51150         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
51151         bit for RE_HAT_LISTS_NOT_NEWLINE.
51152         (build_charclass_op): Remove bogus comment.
51153
51154 2007-02-05  Simon Josefsson  <simon@josefsson.org>
51155
51156         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
51157
51158 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51159
51160         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
51161         * lib/memmem.c [!defined _LIBC]: Include config.h.
51162
51163 2007-02-04  Bruno Haible  <bruno@clisp.org>
51164
51165         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
51166         warning message.
51167
51168 2007-02-04  Bruno Haible  <bruno@clisp.org>
51169
51170         New module mbstok_r.
51171         * modules/mbstok_r: New file.
51172         * lib/mbstok_r.c: New file.
51173         * lib/string_.h (strtok_r): Change argument names to match the
51174         comments. Add a conditional link warning.
51175         (mbstok_r): New declaration.
51176         * m4/mbstok_r.m4: New file.
51177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51178         GNULIB_MBSTOK_R.
51179         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
51180         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
51181
51182 2007-02-04  Bruno Haible  <bruno@clisp.org>
51183
51184         New module mbsspn.
51185         * modules/mbsspn: New file.
51186         * lib/mbsspn.c: New file.
51187         * lib/string_.h (strspn): Add a conditional link warning.
51188         (mbsspn): New declaration.
51189         * m4/mbsspn.m4: New file.
51190         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51191         GNULIB_MBSSPN.
51192         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
51193         * MODULES.html.sh (Internationalization functions): Add mbsspn.
51194
51195 2007-02-04  Bruno Haible  <bruno@clisp.org>
51196
51197         New module mbspbrk.
51198         * modules/mbspbrk: New file.
51199         * lib/mbspbrk.c: New file.
51200         * lib/string_.h (strpbrk): Add a conditional link warning.
51201         (mbspbrk): New declaration.
51202         * m4/mbspbrk.m4: New file.
51203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51204         GNULIB_MBSPBRK.
51205         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
51206         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
51207
51208 2007-02-04  Bruno Haible  <bruno@clisp.org>
51209
51210         New module mbscspn.
51211         * modules/mbscspn: New file.
51212         * lib/mbscspn.c: New file.
51213         * lib/string_.h (strcspn): Add a conditional link warning.
51214         (mbscspn): New declaration.
51215         * m4/mbscspn.m4: New file.
51216         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51217         GNULIB_MBSCSPN.
51218         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
51219         * MODULES.html.sh (Internationalization functions): Add mbscspn.
51220
51221 2007-02-04  Bruno Haible  <bruno@clisp.org>
51222
51223         New module mbscasestr, reduced goal of strcasestr.
51224         * modules/mbscasestr: New file.
51225         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
51226         (mbscasestr): Renamed from strcasestr.
51227         * lib/strcasestr.c: Don't include mbuiter.h.
51228         (strcasestr): Remove support for multibyte locales.
51229         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
51230         Change the conditional link warning.
51231         (mbscasestr): New declaration.
51232         * m4/mbscasestr.m4: New file.
51233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
51234         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
51235         REPLACE_STRCASESTR.
51236         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
51237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51238         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51239         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
51240         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
51241         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51242         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
51243         (Depends-on): Remove mbuiter.
51244         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
51245
51246 2007-02-04  Bruno Haible  <bruno@clisp.org>
51247
51248         Simplify handling of strncasecmp.
51249         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
51250         the conditional link warning.
51251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51252         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
51253         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
51254         * modules/strcase (configure.ac): Don't invoke
51255         gl_STRING_MODULE_INDICATOR.
51256         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
51257
51258 2007-02-04  Bruno Haible  <bruno@clisp.org>
51259
51260         New module mbscasecmp, reduced goal of strcasecmp.
51261         * modules/mbscasecmp: New file.
51262         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
51263         (mbscasecmp): Renamed from strcasecmp.
51264         * lib/strcasecmp.c: Don't include mbuiter.h.
51265         (strcasecmp): Remove support for multibyte locales.
51266         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
51267         Change the conditional link warning.
51268         (mbscasecmp): New declaration.
51269         * m4/mbscasecmp.m4: New file.
51270         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
51271         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
51272         REPLACE_STRCASECMP.
51273         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
51274         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51275         GNULIB_MBSCASECMP.
51276         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
51277         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
51278         * modules/strcase (Files): Remove m4/mbrtowc.m4.
51279         (Depends-on): Remove mbuiter.
51280         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
51281
51282 2007-02-04  Bruno Haible  <bruno@clisp.org>
51283
51284         New module mbsstr. Remove module strstr.
51285         * modules/mbsstr: New file.
51286         * modules/strstr: Remove file.
51287         * lib/mbsstr.c: Renamed from lib/strstr.c.
51288         (mbsstr): Renamed from strstr.
51289         * lib/string_.h (strstr): Remove declaration. Change the conditional
51290         link warning.
51291         (mbsstr): New declaration.
51292         * m4/mbsstr.m4: New file.
51293         * m4/strstr.m4: Remove file.
51294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
51295         REPLACE_STRSTR.
51296         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
51297         Don't initialize GNULIB_STRSTR.
51298         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
51299         substitute GNULIB_STRSTR and REPLACE_STRSTR.
51300         * MODULES.html.sh (Internationalization functions): Add mbsstr.
51301         (Support for systems lacking ANSI C 89): Remove strstr.
51302
51303 2007-02-04  Bruno Haible  <bruno@clisp.org>
51304
51305         New module mbsrchr.
51306         * modules/mbsrchr: New file.
51307         * lib/mbsrchr.c: New file.
51308         * lib/string_.h (strrchr): Add a conditional link warning.
51309         (mbsrchr): New declaration.
51310         * m4/mbsrchr.m4: New file.
51311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51312         GNULIB_MBSRCHR.
51313         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
51314         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
51315
51316 2007-02-04  Bruno Haible  <bruno@clisp.org>
51317
51318         New module mbschr.
51319         * modules/mbschr: New file.
51320         * lib/mbschr.c: New file.
51321         * lib/string_.h (strchr): Add a conditional link warning.
51322         (mbschr): New declaration.
51323         * m4/mbschr.m4: New file.
51324         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51325         GNULIB_MBSCHR.
51326         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
51327         * MODULES.html.sh (Internationalization functions): Add mbschr.
51328
51329 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51330
51331         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
51332
51333         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
51334
51335 2007-02-04  Bruno Haible  <bruno@clisp.org>
51336
51337         New module description section 'configure.ac-early'.
51338         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
51339         (func_get_autoconf_early_snippet): New function.
51340         (func_import, func_create_testdir): Use it. Remove special cases for
51341         modules 'extensions' and 'lock'.
51342         * modules/extensions (configure.ac-early): Require
51343         gl_USE_SYSTEM_EXTENSIONS.
51344         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
51345
51346 2007-02-04  Bruno Haible  <bruno@clisp.org>
51347
51348         Make use of gcj-4.3's -fsource and -ftarget option.
51349         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
51350         and if so try the options -fsource and -ftarget.
51351         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
51352         source_version, ftarget_option, target_version arguments.
51353         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
51354         (is_envjavac_oldgcj_14_14_usable): Renamed from
51355         is_envjavac_gcj_14_14_usable.
51356         (is_envjavac_oldgcj_14_13_usable): Renamed from
51357         is_envjavac_gcj_14_13_usable.
51358         (is_gcj_present): Update.
51359         (is_gcj_43, is_gcj43_usable): New functions.
51360         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
51361         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
51362         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
51363         try the options -fsource and -ftarget.
51364
51365 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51366
51367         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
51368         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
51369         larger value.
51370
51371 2007-02-03  Jim Meyering  <jim@meyering.net>
51372
51373         Give tools a better chance to allocate space for very large buffers.
51374         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
51375
51376         Make pwd and readlink work also when run with an unreadable parent dir
51377         on systems with openat support.
51378         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
51379         provided getcwd function, even when we have openat support.
51380         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
51381
51382 2007-02-02  Bruno Haible  <bruno@clisp.org>
51383
51384         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51385         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
51386         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
51387         portability problems if one of these functions is only used on specific
51388         platforms.
51389         Reported by Paul Eggert.
51390
51391 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
51392
51393         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
51394         is causing more trouble than it's curing.
51395         * lib/regex_internal.h (__mempcpy): Remove.
51396         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
51397         (and make the code a tad smaller to boot).
51398         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
51399
51400 2007-02-02  Jim Meyering  <jim@meyering.net>
51401
51402         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
51403         section, not in the Makefile.am: one.
51404
51405 2007-02-02  Eric Blake  <ebb9@byu.net>
51406
51407         * lib/strchrnul.c: Always include config.h first.
51408
51409         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
51410         gnulib strstr is not necessary here.
51411
51412 2007-02-02  Simon Josefsson  <simon@josefsson.org>
51413
51414         * m4/socklen.m4: Fix typo.
51415
51416 2007-02-02  Eric Blake  <ebb9@byu.net>
51417
51418         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
51419         * modules/netinet_in (Makefile.am): Likewise.
51420
51421 2007-02-01  Bruno Haible  <bruno@clisp.org>
51422
51423         * lib/string_.h (GL_LINK_WARNING): New macro.
51424         (strcasecmp, strstr, strcasestr): If provided by the system,
51425         conditionally define as a macro that leads to a warning instead of to
51426         an error.
51427         (strncasecmp): Conditionally define as a macro that leads to a warning.
51428
51429 2007-02-01  Karl Berry  <karl@gnu.org>
51430
51431         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
51432
51433 2007-02-01  Bruno Haible  <bruno@clisp.org>
51434
51435         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
51436         renamings.
51437
51438 2007-02-01  Eric Blake  <ebb9@byu.net>
51439
51440         * modules/regex (Depends-on): Revert dependence on mempcpy.
51441         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
51442         module's definition of mempcpy.
51443         Reported by Paul Eggert.
51444
51445 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51446
51447         * lib/string_.h: If the gnulib module XYZ is not present, undefine
51448         the symbol XYZ before redefining it.  This fixes a problem with
51449         programs that don't use XYZ, when compiled on systems that define
51450         XYZ to something else.
51451
51452 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
51453
51454         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
51455         occurs when "mkdir -m foo" creates a setgid directory that is (1)
51456         writeable to group or other and (2) is intended to have a special
51457         mode bit that is set or cleared.  In such a case, the directory
51458         should be neither group- nor other-writeable until the special
51459         mode bits are right.
51460
51461 2007-01-31  Eric Blake  <ebb9@byu.net>
51462
51463         * modules/mountlist (Depends-on): Add strstr.
51464
51465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
51466         bug.
51467         * modules/string (Makefile.am): Remove redundant replacement.
51468         * modules/regex (Depends-on): Add mempcpy.
51469
51470 2007-01-31  Bruno Haible  <bruno@clisp.org>
51471
51472         New module description field 'Link'.
51473         * gnulib-tool (func_usage): Document --extract-link-directive.
51474         (sed_extract_prog): Recognize 'Link' directive.
51475         (func_get_link_directive): New function.
51476         (func_import): Show summary of link directives.
51477         Handle --extract-link-directive option.
51478         * modules/acl (Link): New section.
51479         * modules/clock-time (Link): New section.
51480         * modules/euidaccess (Link): New section.
51481         * modules/gettext (Link): New section.
51482         * modules/iconv (Link): New section.
51483         * modules/lock (Link): New section.
51484         * modules/nanosleep (Link): New section.
51485         * modules/readline (Link): New section.
51486
51487 2007-01-27  Bruno Haible  <bruno@clisp.org>
51488
51489         Enforce the use of gnulib modules for unportable <string.h> functions.
51490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
51491         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
51492         (gl_HEADER_STRING_H_BODY): Require it.
51493         * lib/string_.h: If the gnulib module XYZ is not present, redefine
51494         the symbol XYZ to one that gives a link error.
51495         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
51496         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
51497         * modules/mempcpy (configure.ac): Likewise.
51498         * modules/memrchr (configure.ac): Likewise.
51499         * modules/stpcpy (configure.ac): Likewise.
51500         * modules/stpncpy (configure.ac): Likewise.
51501         * modules/strcase (configure.ac): Likewise.
51502         * modules/strcasestr (configure.ac): Likewise.
51503         * modules/strchrnul (configure.ac): Likewise.
51504         * modules/strdup (configure.ac): Likewise.
51505         * modules/strndup (configure.ac): Likewise.
51506         * modules/strnlen (configure.ac): Likewise.
51507         * modules/strpbrk (configure.ac): Likewise.
51508         * modules/strsep (configure.ac): Likewise.
51509         * modules/strstr (configure.ac): Likewise.
51510         * modules/strtok_r (configure.ac): Likewise.
51511
51512 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
51513
51514         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
51515
51516 2007-01-30  Jim Meyering  <jim@meyering.net>
51517
51518         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
51519
51520 2007-01-29  Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
51523         * lib/execute.c: Likewise.
51524         * lib/pipe.c: Likewise.
51525         * lib/printf-args.h: Likewise.
51526         * lib/printf-args.c: Likewise.
51527         * lib/printf-parse.c: Likewise.
51528         * lib/vasnprintf.c: Likewise.
51529
51530 2007-01-29  Eric Blake  <ebb9@byu.net>
51531
51532         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
51533         declaration.
51534
51535 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
51536
51537         * lib/strptime.h (strptime): Use 'restrict' for args where
51538         POSIX requires this.
51539         * lib/strptime.c (strptime): Likewise.
51540         Change license notice from LGPL to GPL, since gnulib-tool will
51541         change this as needed.
51542         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
51543         defined.
51544         Include "strptime.h" first, to check interface.
51545         Do not #undef _LIBC and _NL_CURRENT.
51546         Do not include <stdlib.h>; no longer needed.
51547         Include "time_r.h" and declare ptime_locale_status
51548         only if _LIBC is not defined.
51549         (__P): Remove unused macro.
51550         (match_string): Bring back glibc version, but use it only if _LIBC
51551         is defined.
51552         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
51553         Remove unnecessary assertion and abort() call.
51554         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
51555         * m4/strptime.m4: Fix serial number comment.
51556         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
51557         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
51558         (Depends-on): Add time_r.
51559
51560 2007-01-29  Bruno Haible  <bruno@clisp.org>
51561
51562         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51563         strptime.
51564         * modules/strptime (Depends-on): Add stdbool.
51565         * lib/strptime.h: Include <time.h> always. Add comments.
51566
51567 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51568
51569         * modules/strptime: New file.
51570         * lib/strptime.h: New file.
51571         * lib/strptime.c: New file.
51572         * m4/strptime.m4: New file.
51573
51574 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51575
51576         * MODULES.html.sh: New module mpsort.
51577         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
51578
51579         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
51580         a circularity problem with HP-UX ia64 reported by Bob Proulx in
51581         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
51582         All uses changed.
51583         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
51584         All uses changed.
51585         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
51586         to _Restrict_.
51587         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
51588         the parameter matches the prototype.
51589
51590 2007-01-28  Jim Meyering  <jim@meyering.net>
51591
51592         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
51593         sys/time.h here, reverting that part of the previous patch:
51594         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
51595
51596 2007-01-28  Bruno Haible  <bruno@clisp.org>
51597
51598         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
51599         value of $(SYS_TIME_H).
51600         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
51601         remove it conditionally, too. [added by Jim Meyering]
51602         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
51603         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
51604         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
51605         GETTIMEOFDAY_REPLACEMENT to 1.
51606
51607 2007-01-28  Bruno Haible  <bruno@clisp.org>
51608
51609         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
51610         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
51611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
51612         Set UNISTD_H instead of UNISTD_H2.
51613         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
51614
51615 2007-01-28  Bruno Haible  <bruno@clisp.org>
51616
51617         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
51618         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
51619
51620 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51621
51622         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
51623         (func_create_testdir): Ensure C locale for `grep' and `tr'
51624         character ranges.
51625         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
51626         ACLOCAL_AMFLAGS parsing state machine.
51627
51628 2007-01-27  Bruno Haible  <bruno@clisp.org>
51629
51630         * modules/unistr/base: Update.
51631
51632 2007-01-27  Bruno Haible  <bruno@clisp.org>
51633
51634         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
51635         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
51636         * modules/unistr/u32-mbtouc-unsafe: Renamed from
51637         modules/unistr/u32-mbtouc.
51638         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
51639         * lib/unistr.h: Update.
51640         * lib/linebreak.c: Update.
51641         * modules/unistr/u32-mbtouc: Renamed from
51642         modules/unistr/u32-mbtouc-safe.
51643         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
51644         * lib/unistr.h: Update.
51645         * lib/unistr/u32-to-u8.c: Update.
51646         * lib/unistr/u32-to-u16.c: Update.
51647
51648 2007-01-27  Bruno Haible  <bruno@clisp.org>
51649
51650         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
51651         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
51652         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
51653         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
51654         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
51655         * modules/unistr/u16-mbtouc-unsafe: Renamed from
51656         modules/unistr/u16-mbtouc.
51657         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
51658         * lib/unistr.h: Update.
51659         * lib/linebreak.c: Update.
51660         * modules/linebreak: Update.
51661         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
51662         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
51663         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
51664         * modules/unistr/u16-mbtouc: Renamed from
51665         modules/unistr/u16-mbtouc-safe.
51666         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
51667         * lib/unistr.h: Update.
51668         * lib/unistr/u16-to-u8.c: Update.
51669         * modules/unistr/u16-to-u8: Update.
51670         * lib/unistr/u16-to-u32.c: Update.
51671         * modules/unistr/u16-to-u32: Update.
51672
51673 2007-01-27  Bruno Haible  <bruno@clisp.org>
51674
51675         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
51676         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
51677         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
51678         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
51679         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
51680         * modules/unistr/u8-mbtouc-unsafe: Renamed from
51681         modules/unistr/u8-mbtouc.
51682         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
51683         * lib/unistr.h: Update.
51684         * lib/striconveh.c: Update.
51685         * modules/striconveh: Update.
51686         * lib/linebreak.c: Update.
51687         * modules/linebreak: Update.
51688         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
51689         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
51690         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
51691         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
51692         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
51693         * lib/unistr.h: Update.
51694         * lib/striconveh.c: Update.
51695         * modules/striconveh: Update.
51696         * lib/unistr/u8-to-u16.c: Update.
51697         * modules/unistr/u8-to-u16: Update.
51698         * lib/unistr/u8-to-u32.c: Update.
51699         * modules/unistr/u8-to-u32: Update.
51700
51701 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51702
51703         Sync from Libtool.
51704         * lib/argz.c: Do not include strings.h nor memory.h, include
51705         string.h unconditionally.  Patch by Simon Josefsson.
51706
51707 2007-01-27  Bruno Haible  <bruno@clisp.org>
51708
51709         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
51710         from gl_HEADER_STRING_H_BODY.
51711         (gl_HEADER_STRING_H_BODY): Require it.
51712         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
51713         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51714         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51715         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51716         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51717         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
51718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51719         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51720         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
51721         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51722         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51723         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
51724         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51725         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51726         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51727
51728 2007-01-27  Bruno Haible  <bruno@clisp.org>
51729
51730         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
51731         check_PROGRAMS into noinst_PROGRAMS.
51732         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
51733         check_PROGRAMS in this case.
51734         (func_import): Set for_test to false.
51735         (func_create_testdir): Set for_test to true.
51736
51737 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51738             Bruno Haible  <bruno@clisp.org>
51739
51740         * modules/strcasestr (Files): Remove lib/strcasestr.h.
51741         (Depends-on): Add string.
51742         (Includes): Use <string.h> instead of strcasestr.h.
51743         * modules/string (Makefile.am): Also substitute the value of
51744         REPLACE_STRCASESTR.
51745         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
51746         assume strcasestr is declared in <string.h> not <strings.h>. Also
51747         set REPLACE_STRCASESTR.
51748         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
51749         REPLACE_STRCASESTR.
51750         * lib/strcasestr.h: Remove file.
51751         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
51752         * lib/string_.h (strcasestr): New declaration.
51753
51754 2007-01-27  Bruno Haible  <bruno@clisp.org>
51755
51756         * lib/string_.h: Use 'extern'.
51757
51758 2007-01-27  Jim Meyering  <jim@meyering.net>
51759
51760         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
51761         of set-but-not-used local, "q".
51762
51763         * lib/mempcpy.c: Include <config.h> before <string.h>.
51764         This fixes a compilation error on HP-UX, due to the system's
51765         "restrict"-using mempcpy prototype.
51766
51767 2007-01-26  Bruno Haible  <bruno@clisp.org>
51768
51769         Small optimization.
51770         * lib/javacomp.c: Include c-strstr.h.
51771          (is_envjavac_gcj): Use c_strstr instead of strstr.
51772         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
51773
51774 2007-01-26  Bruno Haible  <bruno@clisp.org>
51775
51776         * MODULES.html.sh (Unicode string functions): Add the new modules.
51777
51778         * modules/uniconv/u32-strconv-to-locale: New file.
51779         * lib/uniconv/u32-strconv-to-locale.c: New file.
51780
51781         * modules/uniconv/u16-strconv-to-locale: New file.
51782         * lib/uniconv/u16-strconv-to-locale.c: New file.
51783
51784         * modules/uniconv/u8-strconv-to-locale: New file.
51785         * lib/uniconv/u8-strconv-to-locale.c: New file.
51786
51787         * modules/uniconv/u32-strconv-from-locale: New file.
51788         * lib/uniconv/u32-strconv-from-locale.c: New file.
51789
51790         * modules/uniconv/u16-strconv-from-locale: New file.
51791         * lib/uniconv/u16-strconv-from-locale.c: New file.
51792
51793         * modules/uniconv/u8-strconv-from-locale: New file.
51794         * lib/uniconv/u8-strconv-from-locale.c: New file.
51795
51796         * modules/uniconv/u32-strconv-to-enc: New file.
51797         * lib/uniconv/u32-strconv-to-enc.c: New file.
51798         * modules/uniconv/u32-strconv-to-enc-tests: New file.
51799         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
51800
51801         * modules/uniconv/u16-strconv-to-enc: New file.
51802         * lib/uniconv/u16-strconv-to-enc.c: New file.
51803         * lib/uniconv/u-strconv-to-enc.h: New file.
51804         * modules/uniconv/u16-strconv-to-enc-tests: New file.
51805         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
51806
51807         * modules/uniconv/u8-strconv-to-enc: New file.
51808         * lib/uniconv/u8-strconv-to-enc.c: New file.
51809         * modules/uniconv/u8-strconv-to-enc-tests: New file.
51810         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
51811
51812         * modules/uniconv/u32-strconv-from-enc: New file.
51813         * lib/uniconv/u32-strconv-from-enc.c: New file.
51814         * modules/uniconv/u32-strconv-from-enc-tests: New file.
51815         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
51816
51817         * modules/uniconv/u16-strconv-from-enc: New file.
51818         * lib/uniconv/u16-strconv-from-enc.c: New file.
51819         * modules/uniconv/u16-strconv-from-enc-tests: New file.
51820         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
51821
51822         * modules/uniconv/u8-strconv-from-enc: New file.
51823         * lib/uniconv/u8-strconv-from-enc.c: New file.
51824         * lib/uniconv/u-strconv-from-enc.h: New file.
51825         * modules/uniconv/u8-strconv-from-enc-tests: New file.
51826         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
51827
51828         * modules/uniconv/u32-conv-from-enc: New file.
51829         * lib/uniconv/u32-conv-from-enc.c: New file.
51830         * modules/uniconv/u32-conv-from-enc-tests: New file.
51831         * tests/uniconv/test-u32-conv-from-enc.c: New file.
51832
51833         * modules/uniconv/u16-conv-from-enc: New file.
51834         * lib/uniconv/u16-conv-from-enc.c: New file.
51835         * lib/uniconv/u-conv-from-enc.h: New file.
51836         * modules/uniconv/u16-conv-from-enc-tests: New file.
51837         * tests/uniconv/test-u16-conv-from-enc.c: New file.
51838
51839         * modules/uniconv/u8-conv-from-enc: New file.
51840         * lib/uniconv/u8-conv-from-enc.c: New file.
51841         * modules/uniconv/u8-conv-from-enc-tests: New file.
51842         * tests/uniconv/test-u8-conv-from-enc.c: New file.
51843
51844         * modules/uniconv/base: New file.
51845         * lib/uniconv.h: New file.
51846
51847 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51848
51849         * doc/gnulib-tool.texi (Initial import): Update to match current
51850         behavior with strdup module.
51851         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
51852         * lib/memmem.h: Remove; all uses removed.  This is now done
51853         by <string.h>.
51854         * lib/mempcpy.h: Likewise.
51855         * lib/memrchr.h: Likewise.
51856         * lib/stpcpy.h: Likewise.
51857         * lib/stpncpy.h: Likewise.
51858         * lib/strcase.h: Likewise.
51859         * lib/strchrnul.h: Likewise.
51860         * lib/strdup.h: Likewise.
51861         * lib/strndup.h: Likewise.
51862         * lib/strnlen.h: Likewise.
51863         * lib/strpbrk.h: Likewise.
51864         * lib/strsep.h: Likewise.
51865         * lib/strstr.h: Likewise.
51866         * lib/strtok_r.h: Likewise.
51867         * lib/string_.h: New file.
51868         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
51869         Rely on <string.h> instead.
51870         * lib/canon-host.c: Likewise.
51871         * lib/chdir-long.c: Likewise.
51872         * lib/concatpath.c: Likewise.
51873         * lib/exclude.c: Likewise.
51874         * lib/fchdir.c: Likewise.
51875         * lib/getaddrinfo.c: Likewise.
51876         * lib/getcwd.c: Likewise.
51877         * lib/getsubopt.c: Likewise.
51878         * lib/glob.c: Likewise.
51879         * lib/hard-locale.c: Likewise.
51880         * lib/iconvme.c: Likewise.
51881         * lib/javacomp.c: Likewise.
51882         * lib/mempcpy.c: Likewise.
51883         * lib/memrchr.c: Likewise.
51884         * lib/regex_internal.h: Likewise.
51885         * lib/stpncpy.c: Likewise.
51886         * lib/strcasecmp.c: Likewise.
51887         * lib/strchrnul.c: Likewise.
51888         * lib/strdup.c: Likewise.
51889         * lib/striconv.c: Likewise.
51890         * lib/striconveh.c: Likewise.
51891         * lib/striconveha.c: Likewise.
51892         * lib/strncasecmp.c: Likewise.
51893         * lib/strndup.c: Likewise.
51894         * lib/strnlen.c: Likewise.
51895         * lib/strsep.c: Likewise.
51896         * lib/strstr.c: Likewise.
51897         * lib/strtok_r.c: Likewise.
51898         * lib/userspec.c: Likewise.
51899         * lib/w32spawn.h: Likewise.
51900         * lib/xstrndup.c: Likewise.
51901         * lib/mountlist.c (strstr): Remove decl.
51902         * m4/string_h.m4: New file.
51903         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
51904         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
51905         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
51906         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
51907         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
51908         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
51909         Set REPLACE_STRCASECMP if necessary.
51910         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
51911         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
51912         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
51913         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
51914         HAVE_DECL_STRDUP if necessary.
51915         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
51916         since gl_FUNC_STRNDUP does that now.
51917         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
51918         Check for decl here...
51919         (gl_PREREQ_STRNLEN): ... not here.
51920         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
51921         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
51922         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
51923         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
51924         necessary.
51925         * modules/string: New file.
51926         * modules/memmem (Files): Remove special-purpose include file.
51927         (Depends-on): Add string.
51928         (Include): Include <string.h>, not the removed file.
51929         * modules/mempcpy: Likewise.
51930         * modules/memrchr: Likewise.
51931         * modules/stpcpy: Likewise.
51932         * modules/stpncpy: Likewise.
51933         * modules/strcase: Likewise.
51934         * modules/strchrnul: Likewise.
51935         * modules/strdup: Likewise.
51936         * modules/strndup: Likewise.
51937         * modules/strnlen: Likewise.
51938         * modules/strpbrk: Likewise.
51939         * modules/strsep: Likewise.
51940         * modules/strstr: Likewise.
51941         * modules/strtok_r: Likewise.
51942         * tests/test-dirname.c: Don't include "strdup.h", since
51943         <string.h> now suffices.
51944         * tests/test-memmem.c: Don't include "memmem.h", since
51945         <string.h> now suffices.
51946
51947 2007-01-25  Bruno Haible  <bruno@clisp.org>
51948
51949         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
51950         *resultp is 0.
51951
51952         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
51953         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
51954         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
51955         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
51956
51957         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
51958         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
51959         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
51960         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
51961         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
51962         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
51963
51964 2007-01-24  Bruno Haible  <bruno@clisp.org>
51965
51966         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
51967         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
51968         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
51969         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
51970         gl_FUNC_FTS_CORE.
51971         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
51972         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
51973         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51974         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
51975         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
51976         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
51977         gl_FUNC_FCHOWNAT.
51978         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
51979         gl_FUNC_STRFTIME.
51980         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
51981         Reported by Ralf Wildenhues.
51982
51983 2007-01-24  Bruno Haible  <bruno@clisp.org>
51984
51985         Drop AC_REQUIRE calls that are redundant with the module dependencies.
51986         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
51987         gl_GETADDRINFO.
51988         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
51989         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
51990         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
51991
51992 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
51993
51994         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
51995         Don't use 'exit'; just return from 'main'.
51996         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
51997
51998         * lib/fnmatch_.h: Readjust white space and comments to match
51999         glibc, to avoid spurious diffs.
52000
52001 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52002
52003         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
52004         2004-12-01 change by Jakub Jelinek, since this code won't compile
52005         if !LIBC.  Problem reported by Bob Proulx.
52006
52007 2007-01-23  Bruno Haible  <bruno@clisp.org>
52008
52009         * lib/striconveh.c: Include c-strcaseeq.h.
52010         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
52011         * modules/striconveh (Depends-on): Add c-strcaseeq.
52012
52013 2007-01-23  Bruno Haible  <bruno@clisp.org>
52014
52015         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
52016
52017         * modules/c-strcaseeq: New file.
52018         * lib/c-strcaseeq.h: New file.
52019
52020         * modules/streq: New file.
52021         * lib/streq.h: New file.
52022
52023 2007-01-23  Bruno Haible  <bruno@clisp.org>
52024
52025         * modules/striconveha-tests: New file.
52026         * tests/test-striconveha.c: New file.
52027
52028         * lib/striconveha.h: Include <stdbool.h>.
52029         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
52030         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
52031         (mem_iconveha_notranslit): Renamed from mem_iconveha.
52032         (mem_iconveha): New function.
52033         (str_iconveha_notranslit): Renamed from str_iconveha.
52034         (str_iconveha): New function.
52035         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
52036         c-strcase.
52037
52038 2007-01-23  Bruno Haible  <bruno@clisp.org>
52039
52040         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
52041         encodings without forgiving before trying any encoding with handler.
52042         (str_iconveha): Try all encodings without forgiving before trying any
52043         encoding with handler.
52044
52045 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52046
52047         Import the following changes from libc.
52048
52049         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52050
52051         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
52052
52053         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52054
52055         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
52056         normal_bracket label.
52057
52058         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
52059
52060         [BZ #361]
52061         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
52062         to normal_bracket after fetching the next character.
52063
52064 2007-01-22  Bruno Haible  <bruno@clisp.org>
52065
52066         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
52067         argument.
52068         * lib/striconveh.c (iconv_carefully_1): New function.
52069         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
52070         argument.
52071         (str_cd_iconveh): Update.
52072         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
52073         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
52074         * tests/test-striconveh.c (MAGIC): New macro.
52075         (new_offsets): New function.
52076         (main): Test call with and without offsets.
52077
52078 2007-01-22  Bruno Haible  <bruno@clisp.org>
52079
52080         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
52081         * modules/sys_select (Makefile.am): Likewise.
52082         * modules/sys_socket (Makefile.am): Likewise.
52083         * modules/sys_time (Makefile.am): Likewise.
52084
52085 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52086
52087         * modules/gettimeofday (License): Change from GPL to LGPL, since
52088         gettimeofday is a library function.
52089
52090 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52091
52092         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
52093
52094 2007-01-21  Bruno Haible  <bruno@clisp.org>
52095
52096         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
52097
52098 2007-01-21  Bruno Haible  <bruno@clisp.org>
52099
52100         * modules/striconveha: New file.
52101         * lib/striconveha.h: New file.
52102         * lib/striconveha.c: New file.
52103         * MODULES.html.sh (Internationalization functions): Add striconveha.
52104         * lib/striconv.c (str_iconv): Optimize the case of an empty input
52105         string.
52106         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
52107
52108 2007-01-21  Bruno Haible  <bruno@clisp.org>
52109
52110         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
52111         * lib/striconveh.c (str_iconveh): Likewise.
52112
52113 2007-01-21  Bruno Haible  <bruno@clisp.org>
52114
52115         * lib/striconveh.h (mem_iconveh): New declaration.
52116         * lib/striconveh.c (mem_iconveh): New function.
52117         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
52118
52119 2007-01-21  Bruno Haible  <bruno@clisp.org>
52120
52121         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
52122
52123         * lib/striconveh.h (mem_cd_iconveh): Change specification.
52124         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
52125         original result buffer.
52126         (str_cd_iconveh): Update.
52127         * tests/test-striconveh.c (main): Update.
52128
52129         * lib/striconv.h (mem_cd_iconv): Change specification.
52130         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
52131         result buffer.
52132         (str_cd_iconv): Update.
52133         * tests/test-striconv.c (main): Update.
52134
52135 2007-01-21  Bruno Haible  <bruno@clisp.org>
52136
52137         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
52138
52139 2007-01-20  Jim Meyering  <jim@meyering.net>
52140
52141         * lib/userspec.c (parse_with_separator): If a user or group string
52142         starts with "+", skip the corresponding name-to-ID look-up, since
52143         such a look-up must fail: user and group names may not include "+".
52144
52145 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52146
52147         * lib/poll.c: Include sys/time.h and time.h unconditionally,
52148         since we now assume the sys_time module.
52149         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
52150         check for sys/time.h; no longer needed.
52151         * modules/poll (Depends-on): Depend on sys_time.
52152
52153 2007-01-18  Bruno Haible  <bruno@clisp.org>
52154
52155         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
52156         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52157
52158         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
52159         gettimeofday.
52160
52161         * tests/test-gettimeofday.c: Include <time.h>.
52162         (dummy): Remove variable.
52163
52164         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
52165         gl_HEADER_SYS_TIME_H.
52166         (gl_HEADER_SYS_TIME_H): New macro.
52167
52168         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
52169         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52170         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52171         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
52172         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52173         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
52174         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
52175         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52176         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
52177         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
52178         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52179
52180         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
52181         last change; it caused a compilation error when cross-compiling to
52182         Cygwin.
52183
52184 2007-01-18  Jim Meyering  <jim@meyering.net>
52185
52186         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
52187         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
52188         than the race-prone "test -d sys || mkdir sys".
52189         (configure.ac): Use AC_PROG_MKDIR_P.
52190         * modules/sys_select: Likewise.
52191         * modules/sys_socket: Likewise.
52192         * modules/sys_time: Likewise.
52193
52194 2007-01-18  Eric Blake  <ebb9@byu.net>
52195
52196         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
52197         replace gettimeofday.
52198         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
52199         name, to avoid infinite recursion.
52200
52201 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
52202
52203         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
52204         module sys_time.
52205         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
52206         assume timespec.h defines struct timeval.
52207         * lib/settime.c: Likewise.
52208         * lib/utimens.c: Likewise.
52209         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
52210         since we now assume the gettimeofday module.
52211         * lib/tempname.c (__gen_tempname): Likewise.
52212         * lib/gettimeofday.h: Remove.
52213         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
52214         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
52215         Include <time.h>, for 'time()'.
52216         (localtime_buffer_addr): Also use this workaround if
52217         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
52218         to simplify the uses.  All uses changed.
52219         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
52220         that #undef is inside {}, and 'const' follows type name consistently.
52221         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
52222         (gettimeofday): Do not use the maximum possible value for
52223         tv->tv_usec, since that might break usages other than ls.c.
52224         Instead, we'll leave ls.c alone.  This undoes today's patch
52225         by Bruno.  Add a compile-time warning for 1s-clock resolution;
52226         we've never observed the problem but might as well keep the
52227         canary.
52228         * lib/nanosleep.c: Include timespec.h first, for interface check.
52229         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
52230         now assume the sys_time module.
52231         * lib/tempname.c: Likewise.
52232         * lib/timespec.h: Likewise.
52233         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
52234         needed.
52235         * lib/strftime.c: Likewise.
52236         * lib/timespec.h: Likewise.
52237         * lib/posixtm.c: Include posixtm.h first, for interface check.
52238         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
52239         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
52240         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
52241         * lib/sys_time_.h: New file.
52242         * lib/timespec.h (struct timespec): Use long int, not long.
52243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52244         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
52245         Remove obsolescent call to AC_HEADER_TIME.
52246         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
52247         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52248         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52249         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
52250         Likewise.
52251         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
52252         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
52253         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
52254         into the sys_time module.  Check for gettimeofday just once.
52255         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
52256         for gettimeofday signature to just check the signature.  Merely
52257         compile it, since linking doesn't test signature.  Improve test for
52258         whether gettimeofday.o is actually needed.
52259         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
52260         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
52261         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
52262         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52263         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
52264         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
52265         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
52266         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
52267         than worrying about sys/time.h.
52268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52269         Don't bother worrying about TIME_WITH_SYS_TIME.
52270         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
52271         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
52272         * m4/sys_time_h.m4: New file.
52273         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
52274         Don't include sys/time.h.  Return from main rather than exiting.
52275         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
52276         all uses changed.
52277         * modules/gethrxtime (Depends-on): Add sys_time.
52278         * modules/gettime (Depends-on): Likewise.
52279         * modules/gettimeofday (Depends-on): Likewise.
52280         * modules/nanosleep (Depends-on): Likewise.
52281         * modules/settime (Depends-on): Likewise.
52282         * modules/tempname (Depends-on): Likewise.
52283         * modules/utimens (Depends-on): Likewise.
52284         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
52285         (Include:) Change back to <sys/time.h>.
52286         (Maintainer:) Add self.
52287         * modules/sys_time: New file.
52288         * modules/tempname (Depends-on): Add gettimeofday.
52289         * tests/test-gettimeofday.c: Include <sys/time.h>
52290         rather than gettimeofday.h.
52291
52292 2007-01-17  Bruno Haible  <bruno@clisp.org>
52293
52294         * gnulib-tool (func_get_license): Revert last patch. Instead, let
52295         the license default to GPL.
52296         (func_create_testdir): Don't complain if a module is LGPL and its
52297         tests module depends on GPLed modules.
52298
52299 2007-01-17  Bruno Haible  <bruno@clisp.org>
52300
52301         * lib/gettimeofday.c (gettimeofday): Add code for the case
52302         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
52303         maximum possible value for tv->tv_usec, rather than the minimum one.
52304
52305 2005-10-08  Martin Lambers  <marlam@marlam.de>
52306 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52307 2007-01-16  Bruno Haible  <bruno@clisp.org>
52308
52309         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
52310         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
52311         gl_FUNC_GETTIMEOFDAY.
52312         (Include): Add gettimeofday.h.
52313         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
52314         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
52315         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
52316         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
52317         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
52318         * lib/gettimeofday.h: New file.
52319         * lib/gettimeofday.c: Include <sys/timeb.h>.
52320         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
52321         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52322         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
52323         fall back on time().
52324
52325         * tests/test-gettimeofday.c: New file.
52326         * modules/gettimeofday-tests: New file.
52327
52328 2007-01-16  Eric Blake  <ebb9@byu.net>
52329
52330         * modules/fnmatch (Depends-on): Depend on wchar.
52331         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
52332         * m4/fnmatch.m4: Likewise.
52333         * modules/mbchar (Makefile.am): Assume <wchar.h>.
52334         * m4/mbchar.m4: Likewise.
52335         * modules/mbswidth (Depends-on): Depend on wchar.
52336         * lib/mbswidth.c: Assume <wchar.h>.
52337         * m4/mbswidth.m4: Likewise.
52338         * modules/quotearg (Depends-on): Depend on wchar.
52339         * lib/quotearg.c: Assume <wchar.h>.
52340         * m4/quotearg.m4: Likewise.
52341         * modules/regex (Depends-on): Depend on wchar.
52342         * lib/regex_internal.h: Assume <wchar.h>.
52343         * m4/regex.m4: Likewise.
52344         * modules/stdint (Depends-on): Depend on wchar.
52345         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
52346         * m4/stdint.m4: Likewise.
52347         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
52348         * modules/strftime (Depends-on): Depend on wchar.
52349         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
52350         * modules/strtol (Depends-on): Depend on wchar.
52351         * lib/strtol.c: Assume <wchar.h>.
52352         * modules/wcwidth (Depends-on): Depend on wchar.
52353         * lib/wcwidth.h: Assume <wchar.h>.
52354         * m4/wcwidth.m4: Likewise.
52355
52356 2007-01-16  Bruno Haible  <bruno@clisp.org>
52357
52358         * modules/csharpexec-script: New, created from...
52359         * modules/csharpexec: ... this.
52360
52361 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52362
52363         * modules/javaexec-script: New, created from...
52364         * modules/javaexec: ... this.
52365
52366 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52367
52368         * modules/poll (Dependencies): Add sys_select.
52369
52370 2007-01-15  Jim Meyering  <jim@meyering.net>
52371
52372         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
52373         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
52374         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
52375         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
52376
52377 2007-01-15  Bruno Haible  <bruno@clisp.org>
52378
52379         * modules/striconveh: New file.
52380         * lib/striconveh.h: New file.
52381         * lib/striconveh.c: New file.
52382         * MODULES.html.sh (Internationalization functions): Add striconveh.
52383
52384         * modules/striconveh-tests: New file.
52385         * tests/test-striconveh.c: New file.
52386
52387 2007-01-15  Bruno Haible  <bruno@clisp.org>
52388
52389         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
52390         not from GNU libiconv or GNU libc.
52391
52392 2007-01-15  Bruno Haible  <bruno@clisp.org>
52393
52394         * doc/gnulib-intro.texi (Copyright): Explain the different license
52395         terms for module descriptions, autoconf macros, tests, documentation.
52396
52397 2007-01-14  Bruno Haible  <bruno@clisp.org>
52398
52399         * modules/striconv-tests: New file.
52400         * tests/test-striconv.c: New file.
52401
52402 2007-01-14  Bruno Haible  <bruno@clisp.org>
52403
52404         * modules/iconv-tests: New file.
52405         * tests/test-iconv.c: New file.
52406
52407 2007-01-14  Bruno Haible  <bruno@clisp.org>
52408
52409         * gnulib-tool (func_get_license): For test modules, use the license of
52410         the main module.
52411
52412 2007-01-14  Bruno Haible  <bruno@clisp.org>
52413
52414         * modules/iconv (Include): Clarify that <iconv.h> can only be included
52415         if iconv is found to exist.
52416
52417 2007-01-14  Bruno Haible  <bruno@clisp.org>
52418
52419         * modules/c-ctype-tests: New file.
52420         * tests/test-c-ctype.c: New file.
52421
52422 2007-01-14  Bruno Haible  <bruno@clisp.org>
52423
52424         * modules/binary-io-tests: New file.
52425         * tests/test-binary-io.sh: New file.
52426         * tests/test-binary-io.c: New file.
52427
52428 2007-01-14  Bruno Haible  <bruno@clisp.org>
52429
52430         * modules/array-oset-tests: New file.
52431         * tests/test-array_oset.c: New file.
52432
52433 2007-01-14  Bruno Haible  <bruno@clisp.org>
52434
52435         * modules/array-list-tests: New file.
52436         * tests/test-array_list.c: New file.
52437
52438 2007-01-14  Bruno Haible  <bruno@clisp.org>
52439
52440         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
52441         and make.
52442         Reported by Simon Josefsson in
52443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
52444
52445 2007-01-14  Bruno Haible  <bruno@clisp.org>
52446
52447         * modules/allocsa-tests: New file.
52448         * tests/test-allocsa.c: New file.
52449
52450 2007-01-14  Bruno Haible  <bruno@clisp.org>
52451
52452         * modules/fchdir (Depends-on): Add absolute-header.
52453         * modules/unistd (Depends-on): Likewise.
52454
52455 2006-12-30  Bruno Haible  <bruno@clisp.org>
52456
52457         * modules/fchdir: New file.
52458         * modules/unistd (Files): Add lib/unistd_.h.
52459         (Makefile.am): Generate unistd.h from unistd_.h.
52460         * lib/fchdir.c: New file.
52461         * lib/dirent_.h: New file.
52462         * lib/unistd_.h: New file.
52463         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
52464         * m4/fchdir.m4: New file.
52465         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
52466         (gl_HEADER_UNISTD): Invoke it.
52467         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
52468         function.
52469         * lib/backupfile.c (opendir, closedir): Undefine.
52470         * lib/chown.c (open, close): Undefine.
52471         * lib/clean-temp.c (open, close): Undefine.
52472         * lib/copy-file.c (open, close): Undefine.
52473         * lib/execute.c (open, close): Undefine.
52474         * lib/fsusage.c (open, close): Undefine.
52475         * lib/gc-gnulib.c (open, close): Undefine.
52476         * lib/getcwd.c (opendir, closedir): Undefine.
52477         * lib/glob.c (opendir, closedir): Undefine.
52478         * lib/javacomp.c (open, close): Undefine.
52479         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
52480         * lib/openat-proc.c (open, close): Undefine.
52481         * lib/pagealign_alloc.c (open, close): Undefine.
52482         * lib/pipe.c (open, close): Undefine.
52483         * lib/progreloc.c (open, close): Undefine.
52484         * lib/savedir.c (opendir, closedir): Undefine.
52485         * lib/utime.c (open, close): Undefine.
52486         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
52487
52488 2007-01-10  Bruno Haible  <bruno@clisp.org>
52489
52490         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
52491
52492 2007-01-12  Eric Blake  <ebb9@byu.net>
52493
52494         Provide a robust <wchar.h>.  Further simplifications are now
52495         possible in other modules, but not included here.
52496         * modules/wchar: New module.
52497         * m4/wchar.m4: New file.
52498         * lib/wchar_.h: Likewise.
52499         * modules/mbchar (Depends-on): Depend on wchar, as the first use
52500         of the new module.
52501         * MODULES.html.sh (Extended multibyte and wide character utilities):
52502         New section.
52503
52504 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
52505
52506         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
52507         to a reasonable default for memory allocation.
52508         (xreadlink): Don't allocate a huge buffer, to work around a buggy
52509         file system that reports garbage st_size values for symlinks.
52510         Problem reported by Liyang Hu.
52511
52512 2007-01-11  Simon Josefsson  <simon@josefsson.org>
52513
52514         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
52515         Emacs .#* auto-save files).
52516
52517 2007-01-11  Bruno Haible  <bruno@clisp.org>
52518
52519         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
52520         directory.
52521
52522 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52523
52524         Use @...@ consistently in lib/wctype_.h.
52525         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
52526         on it being set to 1 or 0.
52527         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
52528         go back to AC_SUBSTing it.
52529         * modules/wctype (Makefile.am): Undo previous change.
52530
52531 2007-01-10  Eric Blake  <ebb9@byu.net>
52532
52533         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
52534         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
52535         * modules/wctype (Makefile.am): Likewise.
52536         Reported by Chris McGuire.
52537
52538 2007-01-10  Jim Meyering  <jim@meyering.net>
52539
52540         fts.c: a small readability/maintainability improvement
52541         * lib/fts.c (fts_read): Make this code slightly more readable and
52542         maintainable by hoisting the "sp->fts_cur = p" assignments to
52543         immediately follow the statements that set P.  Derived from
52544         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
52545
52546 2007-01-10  Eric Blake  <ebb9@byu.net>
52547
52548         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
52549         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
52550         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52551         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52552         Reported by Chris McGuire.
52553
52554 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52555
52556         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
52557         in sed script.
52558
52559 2007-01-09  Bruno Haible  <bruno@clisp.org>
52560
52561         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
52562         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
52563         variables.
52564         (func_module): Use them.
52565
52566 2007-01-09  Bruno Haible  <bruno@clisp.org>
52567
52568         * modules/unistr/base: New file.
52569         * lib/unistr.h: New file.
52570
52571         * modules/unistr/u8-to-u16: New file.
52572         * lib/unistr/u8-to-u16.c: New file.
52573
52574         * modules/unistr/u8-to-u32: New file.
52575         * lib/unistr/u8-to-u32.c: New file.
52576
52577         * modules/unistr/u16-to-u8: New file.
52578         * lib/unistr/u16-to-u8.c: New file.
52579
52580         * modules/unistr/u16-to-u32: New file.
52581         * lib/unistr/u16-to-u32.c: New file.
52582
52583         * modules/unistr/u32-to-u8: New file.
52584         * lib/unistr/u32-to-u8.c: New file.
52585
52586         * modules/unistr/u32-to-u16: New file.
52587         * lib/unistr/u32-to-u16.c: New file.
52588
52589         * modules/unistr/u8-check: New file.
52590         * modules/unistr/u16-check: New file.
52591         * modules/unistr/u32-check: New file.
52592         * lib/unistr/u8-check.c: New file.
52593         * lib/unistr/u16-check.c: New file.
52594         * lib/unistr/u32-check.c: New file.
52595
52596         * modules/unistr/u8-chr: New file.
52597         * modules/unistr/u16-chr: New file.
52598         * modules/unistr/u32-chr: New file.
52599         * lib/unistr/u8-chr.c: New file.
52600         * lib/unistr/u16-chr.c: New file.
52601         * lib/unistr/u32-chr.c: New file.
52602
52603         * modules/unistr/u8-cmp: New file.
52604         * modules/unistr/u16-cmp: New file.
52605         * modules/unistr/u32-cmp: New file.
52606         * lib/unistr/u8-cmp.c: New file.
52607         * lib/unistr/u16-cmp.c: New file.
52608         * lib/unistr/u32-cmp.c: New file.
52609
52610         * modules/unistr/u8-cpy: New file.
52611         * modules/unistr/u16-cpy: New file.
52612         * modules/unistr/u32-cpy: New file.
52613         * lib/unistr/u8-cpy.c: New file.
52614         * lib/unistr/u16-cpy.c: New file.
52615         * lib/unistr/u32-cpy.c: New file.
52616         * lib/unistr/u-cpy.h: New file.
52617
52618         * modules/unistr/u8-cpy-alloc: New file.
52619         * modules/unistr/u16-cpy-alloc: New file.
52620         * modules/unistr/u32-cpy-alloc: New file.
52621         * lib/unistr/u8-cpy-alloc.c: New file.
52622         * lib/unistr/u16-cpy-alloc.c: New file.
52623         * lib/unistr/u32-cpy-alloc.c: New file.
52624         * lib/unistr/u-cpy-alloc.h: New file.
52625
52626         * modules/unistr/u8-endswith: New file.
52627         * modules/unistr/u16-endswith: New file.
52628         * modules/unistr/u32-endswith: New file.
52629         * lib/unistr/u8-endswith.c: New file.
52630         * lib/unistr/u16-endswith.c: New file.
52631         * lib/unistr/u32-endswith.c: New file.
52632         * lib/unistr/u-endswith.h: New file.
52633
52634         * modules/unistr/u8-mblen: New file.
52635         * modules/unistr/u16-mblen: New file.
52636         * modules/unistr/u32-mblen: New file.
52637         * lib/unistr/u8-mblen.c: New file.
52638         * lib/unistr/u16-mblen.c: New file.
52639         * lib/unistr/u32-mblen.c: New file.
52640
52641         * modules/unistr/u8-mbtouc: New file.
52642         * modules/unistr/u16-mbtouc: New file.
52643         * modules/unistr/u32-mbtouc: New file.
52644         * lib/unistr/u8-mbtouc.c: New file.
52645         * lib/unistr/u16-mbtouc.c: New file.
52646         * lib/unistr/u32-mbtouc.c: New file.
52647
52648         * modules/unistr/u8-mbtouc-safe: New file.
52649         * modules/unistr/u16-mbtouc-safe: New file.
52650         * modules/unistr/u32-mbtouc-safe: New file.
52651         * lib/unistr/u8-mbtouc-safe.c: New file.
52652         * lib/unistr/u16-mbtouc-safe.c: New file.
52653         * lib/unistr/u32-mbtouc-safe.c: New file.
52654
52655         * modules/unistr/u8-move: New file.
52656         * modules/unistr/u16-move: New file.
52657         * modules/unistr/u32-move: New file.
52658         * lib/unistr/u8-move.c: New file.
52659         * lib/unistr/u16-move.c: New file.
52660         * lib/unistr/u32-move.c: New file.
52661         * lib/unistr/u-move.h: New file.
52662
52663         * modules/unistr/u8-next: New file.
52664         * modules/unistr/u16-next: New file.
52665         * modules/unistr/u32-next: New file.
52666         * lib/unistr/u8-next.c: New file.
52667         * lib/unistr/u16-next.c: New file.
52668         * lib/unistr/u32-next.c: New file.
52669
52670         * modules/unistr/u8-prev: New file.
52671         * modules/unistr/u16-prev: New file.
52672         * modules/unistr/u32-prev: New file.
52673         * lib/unistr/u8-prev.c: New file.
52674         * lib/unistr/u16-prev.c: New file.
52675         * lib/unistr/u32-prev.c: New file.
52676
52677         * modules/unistr/u8-set: New file.
52678         * modules/unistr/u16-set: New file.
52679         * modules/unistr/u32-set: New file.
52680         * lib/unistr/u8-set.c: New file.
52681         * lib/unistr/u16-set.c: New file.
52682         * lib/unistr/u32-set.c: New file.
52683         * lib/unistr/u-set.h: New file.
52684
52685         * modules/unistr/u8-startswith: New file.
52686         * modules/unistr/u16-startswith: New file.
52687         * modules/unistr/u32-startswith: New file.
52688         * lib/unistr/u8-startswith.c: New file.
52689         * lib/unistr/u16-startswith.c: New file.
52690         * lib/unistr/u32-startswith.c: New file.
52691         * lib/unistr/u-startswith.h: New file.
52692
52693         * modules/unistr/u8-stpcpy: New file.
52694         * modules/unistr/u16-stpcpy: New file.
52695         * modules/unistr/u32-stpcpy: New file.
52696         * lib/unistr/u8-stpcpy.c: New file.
52697         * lib/unistr/u16-stpcpy.c: New file.
52698         * lib/unistr/u32-stpcpy.c: New file.
52699         * lib/unistr/u-stpcpy.h: New file.
52700
52701         * modules/unistr/u8-stpncpy: New file.
52702         * modules/unistr/u16-stpncpy: New file.
52703         * modules/unistr/u32-stpncpy: New file.
52704         * lib/unistr/u8-stpncpy.c: New file.
52705         * lib/unistr/u16-stpncpy.c: New file.
52706         * lib/unistr/u32-stpncpy.c: New file.
52707         * lib/unistr/u-stpncpy.h: New file.
52708
52709         * modules/unistr/u8-strcat: New file.
52710         * modules/unistr/u16-strcat: New file.
52711         * modules/unistr/u32-strcat: New file.
52712         * lib/unistr/u8-strcat.c: New file.
52713         * lib/unistr/u16-strcat.c: New file.
52714         * lib/unistr/u32-strcat.c: New file.
52715         * lib/unistr/u-strcat.h: New file.
52716
52717         * modules/unistr/u8-strchr: New file.
52718         * modules/unistr/u16-strchr: New file.
52719         * modules/unistr/u32-strchr: New file.
52720         * lib/unistr/u8-strchr.c: New file.
52721         * lib/unistr/u16-strchr.c: New file.
52722         * lib/unistr/u32-strchr.c: New file.
52723
52724         * modules/unistr/u8-strcmp: New file.
52725         * modules/unistr/u16-strcmp: New file.
52726         * modules/unistr/u32-strcmp: New file.
52727         * lib/unistr/u8-strcmp.c: New file.
52728         * lib/unistr/u16-strcmp.c: New file.
52729         * lib/unistr/u32-strcmp.c: New file.
52730
52731         * modules/unistr/u8-strcpy: New file.
52732         * modules/unistr/u16-strcpy: New file.
52733         * modules/unistr/u32-strcpy: New file.
52734         * lib/unistr/u8-strcpy.c: New file.
52735         * lib/unistr/u16-strcpy.c: New file.
52736         * lib/unistr/u32-strcpy.c: New file.
52737         * lib/unistr/u-strcpy.h: New file.
52738
52739         * modules/unistr/u8-strcspn: New file.
52740         * modules/unistr/u16-strcspn: New file.
52741         * modules/unistr/u32-strcspn: New file.
52742         * lib/unistr/u8-strcspn.c: New file.
52743         * lib/unistr/u16-strcspn.c: New file.
52744         * lib/unistr/u32-strcspn.c: New file.
52745         * lib/unistr/u-strcspn.h: New file.
52746
52747         * modules/unistr/u8-strdup: New file.
52748         * modules/unistr/u16-strdup: New file.
52749         * modules/unistr/u32-strdup: New file.
52750         * lib/unistr/u8-strdup.c: New file.
52751         * lib/unistr/u16-strdup.c: New file.
52752         * lib/unistr/u32-strdup.c: New file.
52753         * lib/unistr/u-strdup.h: New file.
52754
52755         * modules/unistr/u8-strlen: New file.
52756         * modules/unistr/u16-strlen: New file.
52757         * modules/unistr/u32-strlen: New file.
52758         * lib/unistr/u8-strlen.c: New file.
52759         * lib/unistr/u16-strlen.c: New file.
52760         * lib/unistr/u32-strlen.c: New file.
52761         * lib/unistr/u-strlen.h: New file.
52762
52763         * modules/unistr/u8-strmblen: New file.
52764         * modules/unistr/u16-strmblen: New file.
52765         * modules/unistr/u32-strmblen: New file.
52766         * lib/unistr/u8-strmblen.c: New file.
52767         * lib/unistr/u16-strmblen.c: New file.
52768         * lib/unistr/u32-strmblen.c: New file.
52769
52770         * modules/unistr/u8-strmbtouc: New file.
52771         * modules/unistr/u16-strmbtouc: New file.
52772         * modules/unistr/u32-strmbtouc: New file.
52773         * lib/unistr/u8-strmbtouc.c: New file.
52774         * lib/unistr/u16-strmbtouc.c: New file.
52775         * lib/unistr/u32-strmbtouc.c: New file.
52776
52777         * modules/unistr/u8-strncat: New file.
52778         * modules/unistr/u16-strncat: New file.
52779         * modules/unistr/u32-strncat: New file.
52780         * lib/unistr/u8-strncat.c: New file.
52781         * lib/unistr/u16-strncat.c: New file.
52782         * lib/unistr/u32-strncat.c: New file.
52783         * lib/unistr/u-strncat.h: New file.
52784
52785         * modules/unistr/u8-strncmp: New file.
52786         * modules/unistr/u16-strncmp: New file.
52787         * modules/unistr/u32-strncmp: New file.
52788         * lib/unistr/u8-strncmp.c: New file.
52789         * lib/unistr/u16-strncmp.c: New file.
52790         * lib/unistr/u32-strncmp.c: New file.
52791
52792         * modules/unistr/u8-strncpy: New file.
52793         * modules/unistr/u16-strncpy: New file.
52794         * modules/unistr/u32-strncpy: New file.
52795         * lib/unistr/u8-strncpy.c: New file.
52796         * lib/unistr/u16-strncpy.c: New file.
52797         * lib/unistr/u32-strncpy.c: New file.
52798         * lib/unistr/u-strncpy.h: New file.
52799
52800         * modules/unistr/u8-strnlen: New file.
52801         * modules/unistr/u16-strnlen: New file.
52802         * modules/unistr/u32-strnlen: New file.
52803         * lib/unistr/u8-strnlen.c: New file.
52804         * lib/unistr/u16-strnlen.c: New file.
52805         * lib/unistr/u32-strnlen.c: New file.
52806         * lib/unistr/u-strnlen.h: New file.
52807
52808         * modules/unistr/u8-strpbrk: New file.
52809         * modules/unistr/u16-strpbrk: New file.
52810         * modules/unistr/u32-strpbrk: New file.
52811         * lib/unistr/u8-strpbrk.c: New file.
52812         * lib/unistr/u16-strpbrk.c: New file.
52813         * lib/unistr/u32-strpbrk.c: New file.
52814         * lib/unistr/u-strpbrk.h: New file.
52815
52816         * modules/unistr/u8-strrchr: New file.
52817         * modules/unistr/u16-strrchr: New file.
52818         * modules/unistr/u32-strrchr: New file.
52819         * lib/unistr/u8-strrchr.c: New file.
52820         * lib/unistr/u16-strrchr.c: New file.
52821         * lib/unistr/u32-strrchr.c: New file.
52822
52823         * modules/unistr/u8-strspn: New file.
52824         * modules/unistr/u16-strspn: New file.
52825         * modules/unistr/u32-strspn: New file.
52826         * lib/unistr/u8-strspn.c: New file.
52827         * lib/unistr/u16-strspn.c: New file.
52828         * lib/unistr/u32-strspn.c: New file.
52829         * lib/unistr/u-strspn.h: New file.
52830
52831         * modules/unistr/u8-strstr: New file.
52832         * modules/unistr/u16-strstr: New file.
52833         * modules/unistr/u32-strstr: New file.
52834         * lib/unistr/u8-strstr.c: New file.
52835         * lib/unistr/u16-strstr.c: New file.
52836         * lib/unistr/u32-strstr.c: New file.
52837         * lib/unistr/u-strstr.h: New file.
52838
52839         * modules/unistr/u8-strtok: New file.
52840         * modules/unistr/u16-strtok: New file.
52841         * modules/unistr/u32-strtok: New file.
52842         * lib/unistr/u8-strtok.c: New file.
52843         * lib/unistr/u16-strtok.c: New file.
52844         * lib/unistr/u32-strtok.c: New file.
52845         * lib/unistr/u-strtok.h: New file.
52846
52847         * modules/unistr/u8-uctomb: New file.
52848         * modules/unistr/u16-uctomb: New file.
52849         * modules/unistr/u32-uctomb: New file.
52850         * lib/unistr/u8-uctomb.c: New file.
52851         * lib/unistr/u16-uctomb.c: New file.
52852         * lib/unistr/u32-uctomb.c: New file.
52853
52854         * MODULES.html.sh (Unicode string functions): Add the new modules.
52855
52856 2007-01-08  Bruno Haible  <bruno@clisp.org>
52857
52858         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
52859         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
52860         subdirectories.
52861
52862 2007-01-08  Karl Berry  <karl@gnu.org>
52863
52864         * doc/error.texi: mention that main() fns must set program_name
52865         when progname is used.
52866
52867 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
52868
52869         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
52870         WCTYPE_H is empty, for the benefit of builds from non-distclean
52871         directories.  Problem reported by Eric Blake in
52872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
52873
52874 2007-01-08  Bruno Haible  <bruno@clisp.org>
52875
52876         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
52877         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
52878         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
52879         PROVIDE_CANONICALIZE_FILENAME_MODE.
52880         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
52881
52882 2007-01-08  Bruno Haible  <bruno@clisp.org>
52883
52884         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
52885         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
52886         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
52887         * lib/fts.c: Likewise.
52888         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
52889
52890 2006-12-25  Bruno Haible  <bruno@clisp.org>
52891
52892         * modules/utf8-ucs4-safe: New file.
52893         * lib/utf8-ucs4-safe.h: New file.
52894         * lib/unistr/utf8-ucs4-safe.c: New file.
52895
52896         * modules/utf16-ucs4-safe: New file.
52897         * lib/utf16-ucs4-safe.h: New file.
52898         * lib/unistr/utf16-ucs4-safe.c: New file.
52899
52900         * MODULES.html.sh (Unicode string functions): Add the new modules.
52901
52902 2007-01-08  Bruno Haible  <bruno@clisp.org>
52903
52904         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
52905         (Depends-on): Add unitypes.
52906         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52907         (u8_mbtouc_aux): Move out to separate file.
52908         (u8_mbtouc): Use ucs4_t, uint8_t types.
52909         * lib/unistr/utf8-ucs4.c: New file.
52910
52911         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
52912         (Depends-on): Add unitypes.
52913         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52914         (u16_mbtouc_aux): Move out to separate file.
52915         (u16_mbtouc): Use ucs4_t, uint16_t types.
52916         * lib/unistr/utf16-ucs4.c: New file.
52917
52918         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
52919         (Depends-on): Add unitypes.
52920         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
52921         (u8_uctomb_aux): Move out to separate file.
52922         (u8_uctomb): Use ucs4_t, uint8_t types.
52923         * lib/unistr/ucs4-utf8.c: New file.
52924
52925         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
52926         (Depends-on): Add unitypes.
52927         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
52928         (u16_uctomb_aux): Move out to separate file.
52929         (u16_uctomb): Use ucs4_t, uint16_t types.
52930         * lib/unistr/ucs4-utf16.c: New file.
52931
52932 2006-12-25  Bruno Haible  <bruno@clisp.org>
52933
52934         * modules/unitypes: New file.
52935         * lib/unitypes.h: New file.
52936         * MODULES.html.sh (func_all_modules): New section "Unicode string
52937         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
52938         this section. Add unitypes.
52939
52940 2007-01-08  Bruno Haible  <bruno@clisp.org>
52941
52942         Avoid variable names that conflict with those from libtool.
52943         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
52944         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
52945         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
52946         library_names_spec to acl_library_names_spec, hardcode_* to
52947         acl_hardcode_*.
52948         Reported by Ralf Wildenhues.
52949
52950 2007-01-08  Bruno Haible  <bruno@clisp.org>
52951
52952         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
52953         definition.
52954         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
52955         definition.
52956         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
52957         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
52958         definition.
52959         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
52960         definition.
52961         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
52962         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
52963         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
52964         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
52965         definition.
52966         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
52967         definition.
52968         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
52969         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
52970         GC_USE_<algorithm>.
52971         * lib/gc-libgcrypt.c: Likewise.
52972         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
52973         * modules/gc-arctwo (configure.ac): Likewise.
52974         * modules/gc-des (configure.ac): Likewise.
52975         * modules/gc-hmac-md5 (configure.ac): Likewise.
52976         * modules/gc-hmac-sha1 (configure.ac): Likewise.
52977         * modules/gc-md2 (configure.ac): Likewise.
52978         * modules/gc-md4 (configure.ac): Likewise.
52979         * modules/gc-md5 (configure.ac): Likewise.
52980         * modules/gc-random (configure.ac): Likewise.
52981         * modules/gc-rijndael (configure.ac): Likewise.
52982         * modules/gc-sha1 (configure.ac): Likewise.
52983
52984 2007-01-08  Bruno Haible  <bruno@clisp.org>
52985
52986         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
52987         macro definition.
52988         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
52989         definition.
52990         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
52991         definition.
52992         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
52993         * modules/fcntl-safer (configure.ac): Likewise.
52994         * modules/fopen-safer (configure.ac): Likewise.
52995         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
52996         GNULIB_FWRITEERROR macro definition.
52997
52998 2007-01-08  Bruno Haible  <bruno@clisp.org>
52999
53000         * m4/gnulib-common.m4: New file.
53001         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
53002         (func_get_filelist): Add m4/gnulib-common.m4.
53003
53004 2007-01-08  Bruno Haible  <bruno@clisp.org>
53005
53006         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
53007         command.
53008
53009 2007-01-08  Jim Meyering  <jim@meyering.net>
53010
53011         Use a more robust test for a "can't happen" condition.
53012         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
53013         narrowed the st_size value.  Presuming the "can't happen" condition
53014         is true, that narrowing could conceivably convert an invalid st_size
53015         value into a valid one.  Instead, use a change based on Matthew
53016         Woehlke's original patch.
53017
53018         Slight readability improvement: use an assert-like macro
53019         in place of literal "abort ()" uses.
53020         * lib/fts.c (fts_assert): Define.
53021         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
53022         Use this macro instead of a bare 'abort'.
53023
53024 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
53025
53026         Don't worry about using IRIX 5.3's wctype.h broken definitions;
53027         simply work around them.
53028         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
53029         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
53030         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
53031         declaring.
53032         Don't bother to define as macros, since the standard doesn't require it.
53033         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
53034         longer worry about IRIX 5.3.
53035         (HAVE_WCTYPE_CTMP_BUG): Remove.
53036
53037 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53038
53039         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
53040         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
53041         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53042         Problems reported by Georg Schwarz for IRIX 5.3.
53043
53044         * gnulib-tool (autoconf_minversion): Take the maximum version number
53045         found, not the minimum.  Problem reported by James Youngman.
53046
53047 2007-01-03  Karl Berry  <karl@gnu.org>
53048
53049         * doc/error.texi: new file, explaining interaction with progname.
53050         * doc/gnulib.texi: include it.  Update copyright.
53051
53052 2007-01-03  Simon Josefsson  <simon@josefsson.org>
53053
53054         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
53055         AC_CANONICAL_HOST, to improve autobuild outputs.
53056
53057 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
53058             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53059
53060         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
53061         sockets, server sockets, and other file descriptors.  Count errors
53062         to compute the return value.  Reorder the code a bit to be easier
53063         to follow.  Don't set event bits that were not requested (except
53064         POLLERR and POLLHUP).
53065
53066 2007-01-01  Bruno Haible  <bruno@clisp.org>
53067
53068         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
53069
53070 2007-01-03  Jim Meyering  <jim@meyering.net>
53071
53072         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
53073
53074 2007-01-02  Bruno Haible  <bruno@clisp.org>
53075
53076         * modules/settime (Include): Require timespec.h.
53077         * modules/nanosleep (Include): Likewise.
53078
53079 2007-01-01  Bruno Haible  <bruno@clisp.org>
53080
53081         * gnulib-tool (func_emit_copyright_notice): Bump year.
53082         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
53083
53084 2007-01-01  Bruno Haible  <bruno@clisp.org>
53085
53086         Improve support for OpenBSD.
53087         * build-aux/config.rpath (libname_spec): Export.
53088         (library_names_spec): New variable. Export.
53089         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
53090         library_names_spec from the config.rpath output. Locate shared library
53091         through the name pattern in library_names_spec.
53092
53093 2007-01-01  Eric Blake  <ebb9@byu.net>
53094
53095         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
53096
53097 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
53098
53099         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
53100         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
53101         assume the C locale, and avoid an "eval" that could cause trouble.
53102         Problem with SORT reported by Bob Proulx.
53103
53104         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
53105         Define.  Trivial patch from Henning Nielsen Lund, originally
53106         sent to bug-grep@gnu.org today.
53107
53108 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53109
53110         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
53111         struct stat.  Problem reported by Henning Nielsen Lund.
53112         * lib/acl.c: Include acl.h first, to check interface.  Don't
53113         bother to include sys/types.h and sys/stat.h again.
53114
53115 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53116
53117         Import the following change from libc; problem reported by
53118         Sven Verdoolaege.
53119
53120         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
53121
53122         [BZ #1373]
53123         * lib/argp.h: Remove __NTH for __argp_usage inline function.
53124
53125 2006-12-28  Jim Meyering  <jim@meyering.net>
53126
53127         * build-aux/announce-gen: Do not assume that the package
53128         builds any of tar.gz, tar.bz2, and .xdelta files.
53129         Suggestion from Simon Josefsson.
53130
53131 2006-12-28  Simon Josefsson  <simon@josefsson.org>
53132
53133         * modules/announce-gen: New file.
53134
53135 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53136
53137         * lib/mbchar.h: Just include <wctype.h>; the wctype module
53138         handles its gotchas now.
53139         * lib/mbswidth.c: Likewise.
53140         * lib/wcwidth.h: Likewise.
53141         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
53142         and iswcntrl; the wctype module does this stuff now.
53143         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53145         * modules/mbchar (Depends-on): Add wctype.
53146         * modules/mbswidth (Depends-on): Likewise.
53147         * modules/wcwidth (Depends-on): Likewise.
53148
53149 2006-12-27  Eric Blake  <ebb9@byu.net>
53150
53151         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
53152         module uses more than what <wctype.h> is required to provide.
53153
53154 2006-12-26  Eric Blake  <ebb9@byu.net>
53155
53156         * gnulib-tool (sed_extract_prog): Avoid space-tab.
53157
53158 2006-12-26  Eric Blake  <ebb9@byu.net>
53159
53160         * modules/absolute-header: New module.
53161         * modules/fcntl (Depends-on): Depend on it.
53162         * modules/inttypes (Depends-on): Likewise.
53163         * modules/stdint (Depends-on): Likewise.
53164         * modules/sys_stat (Depends-on): Likewise.
53165         * modules/wctype (Depends-on): Likewise.
53166         * MODULES.html.sh (Support for building libraries and
53167         executables): Document it.
53168
53169 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53170
53171         * gnulib-tool (SED): Remove, undoing previous change.
53172         The problem was that it broke coreutils on Solaris, because
53173         "sed --posix" leaked into a makefile.
53174         (sed): New alias, if 'alias' and GNU sed.
53175
53176 2006-12-24  Jim Meyering  <jim@meyering.net>
53177
53178         Work around an fchownat bug in glibc-2.4:
53179         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
53180         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
53181         in spite of the -P option.
53182         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
53183         New macros.
53184         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
53185         * modules/openat (Files): Add lib/fchownat.c.
53186         * lib/openat.c (fchownat): Don't define here.  Move to...
53187         * lib/fchownat.c: ...this new file.
53188
53189 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53190
53191         Fix bug reported by Bruno Haible in
53192         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
53193         where quotearg.c didn't compile on Mac OS X 10.2 because it
53194         lacks <wchar.h> and wint_t.
53195         * lib/wctype_.h (__wctype_wint_t): New type.
53196         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
53197         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
53198         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
53199         Arg is now of type __wctype_wint_t, not wint_t.
53200         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
53201         substitute HAVE_WINT_T.
53202         * modules/wctype (Files): Add m4/wint_t.m4.
53203         (wctype.h): Substitute HAVE_WINT_T.
53204
53205 2006-12-23  Bruno Haible  <bruno@clisp.org>
53206
53207         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
53208
53209 2006-12-23  Bruno Haible  <bruno@clisp.org>
53210
53211         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
53212         S_ISLNK.
53213         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
53214         mingw.
53215
53216 2006-12-22  Bruno Haible  <bruno@clisp.org>
53217
53218         * lib/copy-file.c: Include acl.h.
53219         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
53220         Close the file descriptors only after being done with copy_acl.
53221         * modules/copy-file (Depends-on): Add acl.
53222
53223 2006-12-22  Bruno Haible  <bruno@clisp.org>
53224
53225         * gnulib-tool (SED): New variable.
53226         Use $SED instead of sed everywhere.
53227
53228 2006-12-22  Bruno Haible  <bruno@clisp.org>
53229
53230         * modules/no-c++: New file.
53231         * m4/no-c++.m4: New file.
53232         * MODULES.html.sh (Support for building libraries and executables):
53233         Add no-c++.
53234
53235 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
53236
53237         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53238         Include <limits.h>, and use its INT_MAX to rewrite the
53239         j loop so that it does not overflow 'int'.  Problem reported by
53240         Ralf Wildenhues in
53241         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
53242         Play it safe by shifting left by 1 rather than multiplying by 2,
53243         as GCC is less likely to optimize this away when the value
53244         is signed (when it assumes overflow leads to undefined behavior).
53245         Also, don't assume time_t uses two's complement.
53246
53247 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
53248
53249         * MODULES.html.sh: New module wctype.
53250         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
53251         * lib/fnmatch.c: Don't bother to include <wchar.h> before
53252         <wctype.h>, since the new wctype module should fix this.
53253         * lib/quotearg.c: Include <wctype.h> unconditionally, since
53254         the wctype module should arrange for it.
53255         * lib/regex_internal.h: Likewise.
53256         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
53257         since the wctype module should handle this now.
53258         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
53259         * modules/fnmatch (Depends-on): Add wctype.
53260         * modules/quotearg (Depends-on): Likewise.
53261         * modules/regex (Depends-on): Likewise.
53262
53263 2006-12-19  Bruno Haible  <bruno@clisp.org>
53264
53265         * lib/strdup.h [C++]: Wrap definitions in extern "C".
53266         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
53267
53268 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53269
53270         * modules/savewd (Depends-on): Fix dependency on fcntl.
53271
53272 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53273
53274         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
53275         conforms to C99, rather than relying on the user's environment
53276         setting of STDINT_H.
53277
53278 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53279         and Eric Blake  <ebb9@byu.net>
53280
53281         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
53282         This is more consistent with the other defines here.
53283         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
53284         Port to z/OS.  Problem reported by Paul Gilmartin.
53285         Change local vars to use gl_ prefix rather than ac_.
53286         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
53287         with other defines.
53288         * modules/double-slash-root: New module.
53289         * modules/dirname (Files): Remove m4/double-slash-root.m4.
53290         (Depends-on): Add double-slash-root.
53291         * MODULES.html.sh (File system functions): Mention new module.
53292
53293 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
53294
53295         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
53296         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
53297         This is for the benefit of gzip, which doesn't do i18n.
53298
53299 2006-12-12  Jim Meyering  <jim@meyering.net>
53300
53301         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
53302         Reported by Andreas Schwab <schwab@suse.de>.
53303
53304 2006-12-12  Bruno Haible  <bruno@clisp.org>
53305
53306         Merge these changes.
53307         2006-09-05  Bruno Haible  <bruno@clisp.org>
53308         * lib/iconvme.c (iconv_string): No need to save and restore errno when
53309         iconv_alloc succeeded.
53310         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
53311         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
53312         test for " && dest " at the end - dest is always != NULL there. Call
53313         iconv with 4xNULL arguments initially, to reset the state. Call iconv
53314         with 2xNULL arguments, also to flush the state storage. Handle the
53315         IRIX iconv behaviour. Realloc the final result, to throw away unused
53316         memory.
53317
53318 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
53319
53320         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
53321         and fchmodat unconditionally, since glibc 2.4 has them.
53322         Problem reported by Arkadiusz Miskiewicz.
53323
53324 2006-12-10  Bruno Haible  <bruno@clisp.org>
53325
53326         * gnulib-tool (func_import): Show the include files only for those
53327         modules that are copied and specified.
53328         Reported by Karl Berry.
53329
53330 2006-12-08  Jim Meyering  <jim@meyering.net>
53331
53332         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
53333         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
53334
53335         * build-aux/announce-gen: Add two new options, both optional:
53336         --bootstrap-tools=TOOL_LIST
53337               a comma-separated list of tools, e.g.,
53338               autoconf,automake,bison,gnulib
53339         --gnulib-snapshot-date=DATE
53340               if gnulib is in the bootstrap tool list,
53341               then report this as the snapshot date.
53342               If not specified, use the current date/time.
53343               If you specify a date here, be sure it's UTC.
53344
53345 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53346
53347         * tests/test-argp-2.sh: Fix test to match actual output.
53348         (func_compare): Fix sed script to be portable.
53349
53350 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
53351
53352         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
53353         workaround for this case.  It is not autoconfigured now; offhand
53354         it's hard to see how to autoconfigure it.
53355
53356 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53357
53358         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
53359         a directory that is about to be chowned.  Such a directory's
53360         initial file permissions should permit the owner only and this
53361         should not be changed until after the chown, since the group and
53362         other bits would be incorrect if they granted permission before
53363         the chown.
53364
53365         Fix porting problem for iswctype reported by Georg Schwarz in:
53366         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
53367         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
53368         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
53369         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
53370         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53371
53372 2006-12-03  Jim Meyering  <jim@meyering.net>
53373
53374         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
53375         p->fts_statp may not yet be defined.
53376         (fts_read): Instead, set it in the caller, once p->fts_statp is
53377         sure to be defined, and corresponds to a top-level directory.
53378         This bug made du -x fail.  Here's the coreutils test case:
53379         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
53380         Reported by Mike Frysinger.
53381
53382 2006-12-01  Jim Meyering  <jim@meyering.net>
53383
53384         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
53385         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
53386         Reported by Simon Josefsson.
53387
53388 2006-11-30  Jim Meyering  <jim@meyering.net>
53389
53390         * m4/warning.m4: Use the all-permissive copyright notice
53391         recommended by RMS (rather than LGPL).
53392         * m4/vararrays.m4: Likewise.
53393         * m4/flexmember.m4: Likewise.
53394
53395 2006-11-29  Bruno Haible  <bruno@clisp.org>
53396
53397         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53398         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
53399         using +=.
53400         Reported by Simon Josefsson <simon@josefsson.org>.
53401
53402 2006-11-28  James Youngman <jay@gnu.org>
53403
53404         * README: Advise users that they might find the bug-gnulib@gnu.org
53405         and autotools-announce@gnu.org mailing lists useful.
53406
53407 2006-11-28  Bruno Haible  <bruno@clisp.org>
53408
53409         * m4/ptrdiff_max.m4: Remove file.
53410
53411 2006-11-21  Bruno Haible  <bruno@clisp.org>
53412
53413         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
53414         _AC_COMPUTE_INT.
53415         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53416         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
53417         _AC_COMPUTE_INT.
53418         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53419         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
53420         _AC_COMPUTE_INT.
53421         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53422
53423 2006-11-28  Jim Meyering  <jim@meyering.net>
53424
53425         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
53426         warning from "gcc -Wshadow" about shadowing the builtin.
53427
53428 2006-11-27  Bruno Haible  <bruno@clisp.org>
53429
53430         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
53431         _AC_COMPUTE_INT.
53432         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53433
53434 2006-11-27  Bruno Haible  <bruno@clisp.org>
53435             Paul Eggert  <eggert@cs.ucla.edu>
53436
53437         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
53438
53439 2006-11-26  Bruno Haible  <bruno@clisp.org>
53440
53441         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53442         noinst_LTLIBRARIES.
53443
53444 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53445             Bruno Haible  <bruno@clisp.org>
53446
53447         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
53448         if compiling with "gcc -ansi".
53449
53450 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53451
53452         Fix some incompatibilities with gcc -ansi -pedantic.
53453         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
53454         if compiling pedantically with GCC, unless it's C99 or later.
53455         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
53456         it mishandles gcc -ansi -pedantic as well.
53457         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
53458         if gcc -pedantic.
53459         * lib/regexec.c (check_node_accept_bytes): Don't use auto
53460         initializers for struct if -pedantic, unless it's C99 or later.
53461
53462 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
53463
53464         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
53465         Don't close an fd more than once. Identical atimes indicate
53466         success, not failure.
53467
53468 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
53469
53470         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
53471
53472 2006-11-23  Jim Meyering  <jim@meyering.net>
53473
53474         * build-aux/announce-gen: New file.  From coreutils.
53475
53476 2006-11-22  Jim Meyering  <jim@meyering.net>
53477
53478         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
53479         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
53480         (fts_read): Use a temporary to narrow the overused st_size member
53481         before using it in a switch statement.  Reported by Matthew Woehlke.
53482
53483         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
53484         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
53485
53486 2006-11-20  Bruno Haible  <bruno@clisp.org>
53487
53488         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
53489         changequote instead of pairs of brackets.
53490         Reported by Andreas Schwab <schwab@suse.de>.
53491
53492 2006-11-21  Jim Meyering  <jim@meyering.net>
53493
53494         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
53495         so as to remain compatible with older compilers.
53496         Patch from Michael Deutschmann.
53497
53498 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53499
53500         * MODULES.html.sh (File system functions): Add openat.
53501
53502         * lib/openat.h (rpl_fstatat): New macro, if
53503         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
53504         (fstatat): Define to rpl_fstatat under the same conditions,
53505         unless COMPILING_FSTATAT.
53506         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
53507         seems to have the bug.
53508         * lib/fstatat.c: New file.
53509         * modules/openat (Files): Add it.
53510
53511 2006-11-20  Bruno Haible  <bruno@clisp.org>
53512
53513         * Makefile: New file.
53514
53515 2006-11-20  Jim Meyering  <jim@meyering.net>
53516
53517         The beginnings of syntax-related checks for gnulib.
53518         * lib/Makefile: New file.
53519         * lib/t-idcache: New script.  Ensure that the two halves of
53520         idcache.c stay in sync.
53521
53522         * lib/idcache.c: Adjust comments in user- and group- portions to
53523         be more accurate, and to be consistent with one another.
53524
53525 2006-11-20  Jim Meyering  <jim@meyering.net>
53526
53527         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
53528         continue using the flexible array member (thus, this module performs
53529         half as many malloc calls), with the addition that...
53530         (getgroup, getuser): Consistently record a non-match via an empty
53531         "name" string, and map an empty string match to a NULL return value.
53532         * modules/idcache (Depends-on): Re-add flexmember.
53533
53534         * lib/idcache.c (getuser): Remove all uses of the register keyword.
53535         (getuidbyname, getgroup, getgidbyname): Likewise.
53536
53537         Use cleaner syntax: NULL rather than 0.
53538         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
53539
53540 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53541
53542         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
53543         It mishandled the case where the group was missing.
53544         Problem reported by Greg Schafer.
53545         * modules/idcache: Likewise.
53546
53547 2006-11-18  Jim Meyering  <jim@meyering.net>
53548
53549         * check-module (%exempt_header): Add exception for some
53550         conditionally-included headers.
53551
53552         * modules/i-ring (Depends-on): Add verify.
53553         (License): Change to LGPL.
53554
53555 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53556
53557         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
53558         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
53559         and inttostr.h.  Use snprintf rather than uinttostr, so that
53560         LGPLed code doesn't depend on GPLed.
53561
53562 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53563
53564         * modules/inline (License): Change from GPL to LGPL.
53565
53566 2006-11-17  Jim Meyering  <jim@meyering.net>
53567
53568         * modules/d-type (License): Switch to LGPL.
53569
53570 2006-11-15  Bruno Haible  <bruno@clisp.org>
53571
53572         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
53573
53574 2006-11-15  Eric Blake  <ebb9@byu.net>
53575
53576         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
53577         the module dependency.
53578
53579 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53580             Bruno Haible  <bruno@clisp.org>
53581
53582         * gnulib-tool (func_create_testdir): Add license consistency check.
53583
53584 2006-11-15  Eric Blake  <ebb9@byu.net>
53585
53586         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
53587         random "(cached)" in configure output.
53588
53589 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53590
53591         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
53592         test for conforming inttypes.h is both announced and cached.
53593
53594         * MODULES.html.sh (seen_modules, seen_files): New variables.
53595         (func_module): Rewrite to use a few less gnulib-tool and sed
53596         invocations.  Avoid a couple of quadratic algorithms for ...
53597         (missed_modules, missed_files): ... these, with ...
53598         (func_append, func_tmpdir): ... these new functions, from
53599         gnulib-tool.  Analogously, install traps for cleanup.
53600
53601         * tests/test-gc.c (main): Remove unused variables.
53602         * tests/test-read-file.c: Include stdlib.h, for 'free'.
53603
53604 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
53605
53606         * modules/inttostr (License): Change to LGPL.
53607
53608 2006-11-14  Eric Blake  <ebb9@byu.net>
53609
53610         * modules/tempname (License): Change to LGPL.
53611
53612 2006-11-14  Eric Blake  <ebb9@byu.net>
53613
53614         * doc/functions.texi (Function Portability): *printf functions on
53615         Cygwin now understand all POSIX size specifiers.
53616
53617 2006-11-14  Bruno Haible  <bruno@clisp.org>
53618
53619         * modules/c-ctype (License): Change to LGPL.
53620
53621 2006-11-12  Bruno Haible  <bruno@clisp.org>
53622
53623         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53624         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
53625         for GNOME libraries, for which the include files are installed in
53626         subdirectories of $prefix/include.
53627
53628 2006-11-12  Bruno Haible  <bruno@clisp.org>
53629
53630         * m4/lib-link.m4: Require at least autoconf-2.54.
53631         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
53632         name to underscores for the --with option.
53633
53634 2006-11-13  Bruno Haible  <bruno@clisp.org>
53635
53636         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
53637         the tests directory.
53638         Reported by Ralf Wildenhues.
53639
53640 2006-11-13  Bruno Haible  <bruno@clisp.org>
53641
53642         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
53643         (func_emit_initmacro_end): Undo the override here.
53644         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
53645         Works around the famous automake error in coreutils.
53646
53647 2006-11-13  Eric Blake  <ebb9@byu.net>
53648
53649         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
53650         element, not its node.
53651
53652 2006-11-12  Bruno Haible  <bruno@clisp.org>
53653
53654         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
53655         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
53656
53657 2006-11-12  Bruno Haible  <bruno@clisp.org>
53658
53659         * gnulib-tool: New option --local-symlink.
53660         (func_usage): Document it.
53661         (lsymbolic): New variable.
53662         (func_import, func_create_testdir): If --symlink was not specified,
53663         test whether --local-symlink was specified and the file comes from
53664         the local_gnulib_dir.
53665
53666 2006-11-12  Bruno Haible  <bruno@clisp.org>
53667
53668         * gnulib-tool (func_ln): New function.
53669         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
53670
53671 2006-11-12  Bruno Haible  <bruno@clisp.org>
53672
53673         Finish support for source files in subdirectories.
53674         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
53675         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
53676         AUTOMAKE_OPTIONS.
53677         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
53678
53679 2006-11-12  Bruno Haible  <bruno@clisp.org>
53680
53681         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53682         EXTRA_lib_SOURCES augmentation.
53683         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
53684
53685 2006-11-12  Jim Meyering  <jim@meyering.net>
53686
53687         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
53688         file descriptors.  This also averts a failure on systems with
53689         native openat support when a traversed directory lacks "x" access.
53690         * lib/fts_.h: Include "i-ring.h"
53691         (struct FTS) [fts_fd_ring]: New member.
53692         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
53693         (FCHDIR): Add parentheses.
53694         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
53695         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
53696         When descending, rather than simply closing the previous
53697         fts_cwd_fd value, push that file descriptor onto the ring.
53698         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
53699         (fts_open): Initialize the new fd_ring member.
53700         (fts_close): Clear the ring.
53701         (fts_safe_changedir): When possible, use our new fd_ring to skip
53702         the diropen and fstat and dev/ino comparison that would normally
53703         accompany a virtual `chdir ("..")'.
53704
53705         * modules/fts (Depends-on): Add i-ring.
53706         * modules/i-ring: New module.
53707         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
53708         * m4/i-ring.m4: New file.
53709
53710 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53711
53712         * gnulib-tool (func_create_testdir): Fix replacement of
53713         `build-aux' in configure.ac.  Run autotools in gltests
53714         subdirectory.
53715         (func_create_testdir, func_create_megatestdir, test): There is
53716         no need for '--force' in most autotool invocations in a new
53717         tree.  Actually fail the whole test if any of the tools, or the
53718         configure or make stages fail.
53719
53720         Sync from Automake.
53721         * build-aux/gnupload: Revert last change.  Add pointer to upload
53722         instructions of the GNU Maintenance Instructions.
53723         Suggestion by Karl Berry.
53724
53725 2006-11-10  Jim Meyering  <jim@meyering.net>
53726
53727         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
53728
53729 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53730
53731         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
53732         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
53733         (bind_textdomain_codeset) [! ENABLE_NLS]:
53734         Evaluate all the arguments.  That way, callers get compatible behavior
53735         if the arguments have side effects.  Also, it avoids some GCC
53736         diagnostics in some cases; Joel E. Denny reported problems when Bison
53737         was configured with --enable-gcc-warnigs.
53738
53739 2006-11-10  Jim Meyering  <jim@meyering.net>
53740
53741         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
53742         relevant options in CFLAGS (like -O, -fno-inline) are taken into
53743         account.
53744
53745 2006-11-10  Jim Meyering  <jim@meyering.net>
53746
53747         * modules/inline: New file/module.
53748         * modules/xalloc (Files): Remove m4/inline.m4.
53749         (Depends-on): Add inline, instead.
53750         * modules/oset: Likewise.
53751         * modules/list: Likewise.
53752
53753 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53754
53755         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
53756         Problem reported by Matthew Woehlke.
53757
53758 2006-11-09  Bruno Haible  <bruno@clisp.org>
53759
53760         * lib/tempname.c (gen_tempname): Remove variant that invokes
53761         __gen_tempname.
53762         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
53763         __gen_tempname.
53764
53765 2006-11-08  Bruno Haible  <bruno@clisp.org>
53766
53767         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
53768         to 'yes' instead of 'cross-compiling'.
53769
53770 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
53771
53772         * lib/quotearg.h (quotearg_free): New decl.
53773         * lib/quotearg.c (quotearg_free): New function.
53774         (slot0, nslots, slotvec0, slotvec):
53775         Now file-scope so that quotearg_free can get at them.
53776
53777 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53778
53779         Sync from Automake.
53780         * build-aux/gnupload: Add missing 'gnu' to example URL.
53781         Report by Karl Berry.
53782
53783 2006-11-08  Bruno Haible  <bruno@clisp.org>
53784
53785         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
53786         Suggested by Paul Eggert.
53787
53788 2006-11-08  Jim Meyering  <jim@meyering.net>
53789
53790         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
53791         It's already included if !_LIBC.
53792         (fts_safe_changedir): Add a comment.
53793
53794 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53795
53796         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
53797         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
53798         Matthew Woehlke.
53799
53800         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
53801         definitions up, to avoid colliding with change below.
53802         (static_inline) [HAVE_INLINE]: New macro.
53803         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
53804         Provide extern decls when !HAVE_INLINE.  Do not define unless
53805         static_inline is defined, either by us or by xmalloc.c.  Use
53806         static_inline rather than static inline.
53807         (XCALLOC): Optimize sizeof(T) = 1 case.
53808         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
53809
53810 2006-11-07  Bruno Haible  <bruno@clisp.org>
53811
53812         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
53813         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
53814         AC_C_INLINE.
53815         * modules/xalloc (Files): Add m4/inline.m4.
53816
53817 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53818
53819         * README: Fix typo.
53820         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
53821         (Miscellanous Notes): ...from this.
53822
53823 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53824
53825         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
53826         Mention that offsetof should be used instead of sizeof.
53827         From Bruno Haible.
53828
53829 2006-11-07  Bruno Haible  <bruno@clisp.org>
53830
53831         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
53832
53833 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53834
53835         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53836         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
53837         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53838         (gl_tree_add_before, gl_tree_add_after):
53839         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
53840         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
53841         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53842         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
53843         (gl_linked_add_after, gl_linked_add_at): Likewise.
53844         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
53845         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53846         (gl_tree_add_before, gl_tree_add_after): Likewise.
53847         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
53848         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
53849         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
53850
53851 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53852
53853         * lib/gl_oset.h: Use C comment style, not C++ comment style.
53854
53855 2006-11-06  Bruno Haible  <bruno@clisp.org>
53856
53857         * m4/inline.m4: New file.
53858         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
53859         * modules/list (Files): Add m4/inline.m4.
53860         * modules/oset (Files): Likewise.
53861
53862 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53863
53864         * lib/idcache.c: Include <stddef.h>, for offsetof.
53865         (struct userid.name): Change from char * to a flexible array member.
53866         All uses changed.
53867         * modules/idcache (Depends-on): Add flexmember.
53868
53869         * MODULES.html.sh (Core language properties): New module flexmember.
53870         * modules/flexmember, m4/flexmember.m4: New files.
53871
53872         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
53873         inline functions that are identical with the old xnmalloc_inline,
53874         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
53875         that we can avoid some unnecessary integer multiplications and
53876         divisions in the common case where the element size is known at
53877         compile time.
53878         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
53879         needed.
53880         (xnboundedmalloc): Remove.
53881         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
53882         arguments, for consistency with rest of this header.
53883         (xcharalloc): Rewrite using XNMALLOC.
53884         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
53885         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
53886         versions have been moved to lib/xalloc.h and renamed to be the
53887         non-*_inline versions.
53888         (xmalloc, xrealloc): Implement without reference to the xnmalloc
53889         and xnrealloc functions, since those functions are now inline and
53890         now call us.
53891         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
53892         renaming described above.
53893         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
53894         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
53895         captures the dependency in AC_C_INLINE.
53896
53897         New module canonicalize-lgpl, proposed by Charles Wilson in
53898         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
53899         with a few small changes afterwards.
53900         * MODULES.html.sh (File system functions): New module
53901         canonicalize-lgpl.
53902         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
53903         and canonicalize_file_name.
53904         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
53905         * modules/canonicalize-lgpl: New files.
53906
53907 2006-11-05  Bruno Haible  <bruno@clisp.org>
53908
53909         * gnulib-tool (func_import, func_create_testdir): Create directories
53910         also for files in subdirectories of lib/.
53911
53912 2006-11-05  Bruno Haible  <bruno@clisp.org>
53913
53914         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
53915         ANSI C compliant.
53916
53917 2006-11-03  Bruno Haible  <bruno@clisp.org>
53918
53919         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53920         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
53921         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
53922         (xnboundedmalloc): New inline function.
53923         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
53924         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
53925         xmalloc.
53926         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
53927         xmalloc.
53928         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
53929         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
53930         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
53931         xmalloc.
53932         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53933         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
53934         xmalloc.
53935         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
53936         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53937         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
53938         xmalloc.
53939         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53940         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
53941         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53942         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
53943         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
53944         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
53945         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
53946
53947 2006-11-03  Bruno Haible  <bruno@clisp.org>
53948
53949         * lib/c-ctype.h [C++]: Define functions without name mangling.
53950         * lib/fwriteerror.h [C++]: Likewise.
53951         * lib/gcd.h [C++]: Likewise.
53952         * lib/linebreak.h [C++]: Likewise.
53953
53954 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53955
53956         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
53957         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
53958         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
53959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53960         Check for functions and headers just once.
53961         Check for declaration of canonicalize_file_name.
53962         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
53963
53964 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53965
53966         * gnulib-tool (func_import): Fix typo in actioncmd.
53967
53968 2006-11-02  Bruno Haible  <bruno@clisp.org>
53969
53970         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
53971         newline sequence in the Makefile.am snippet as a space, like "make"
53972         does.
53973         Reported by Roger Persson <perrog@gmail.com>.
53974
53975 2006-11-01  Bruno Haible  <bruno@clisp.org>
53976
53977         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
53978         already declared in <string.h>.
53979         * lib/strcase.h (strncasecmp): Don't declare it if yes.
53980
53981 2006-11-01  Bruno Haible  <bruno@clisp.org>
53982
53983         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
53984         * lib/strcase.h: Include <string.h>.
53985         (strcasecmp): Define to rpl_strcasecmp here.
53986
53987 2006-11-01  Bruno Haible  <bruno@clisp.org>
53988
53989         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
53990
53991 2006-11-01  Eric Blake  <ebb9@byu.net>
53992
53993         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
53994
53995         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
53996
53997 2006-10-29  Bruno Haible  <bruno@clisp.org>
53998
53999         Make it compile in C++ mode.
54000         * lib/full-write.c (full_rw): Add a cast.
54001
54002 2006-11-01  Bruno Haible  <bruno@clisp.org>
54003
54004         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
54005         be POSIX compliant.
54006         Reported by Roger Persson <perrog@gmail.com>.
54007
54008 2006-11-01  Eric Blake  <ebb9@byu.net>
54009
54010         * lib/getopt_.h: Fix comments.
54011
54012 2006-10-31  Eric Blake  <ebb9@byu.net>
54013
54014         * modules/tmpdir (Depends-on): Add sys_stat.
54015         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
54016         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
54017         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
54018         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
54019         tempname.
54020
54021 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
54022
54023         Avoid some C++ diagnostics reported by Bruno Haible.
54024         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
54025         xmalloc.
54026         (quotearg_alloc): Use xcharalloc rather than xmalloc.
54027         (struct slotvec): Move to top level.
54028         (quotearg_n_options): Rewrite to avoid xmalloc.
54029         * lib/xalloc.h (xcharalloc): New function.
54030         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
54031         [defined __cplusplus]: Add function template that provides result
54032         type propagation.  This part of the change is from Bruno Haible.
54033
54034 2006-10-29  Bruno Haible  <bruno@clisp.org>
54035
54036         Make it compile in C++ mode.
54037         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
54038         * lib/strnlen1.c (strnlen1): Cast memchr result.
54039         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
54040         * lib/clean-temp.c (string_equals, string_hash): Add casts.
54041         (create_temp_dir): Rename local variable 'template'.
54042         (compile_csharp_using_sscli): Add cast.
54043         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
54044         * lib/findprog.c (find_in_path): Likewise.
54045         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
54046         * lib/wait-process.c (register_slave_subprocess): Likewise.
54047
54048 2006-10-22  Bruno Haible  <bruno@clisp.org>
54049
54050         * modules/tsearch: New file.
54051         * lib/tsearch.h: New file.
54052         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
54053         * m4/tsearch.m4: New file.
54054         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
54055
54056 2006-10-29  Eric Blake  <ebb9@byu.net>
54057
54058         * lib/arcfour.c: Assume config.h.
54059         * lib/arctwo.c: Likewise.
54060         * lib/base64.c: Likewise.
54061         * lib/check-version.c: Likewise.
54062         * lib/crc.c: Likewise.
54063         * lib/des.c: Likewise.
54064         * lib/gc-gnulib.c: Likewise.
54065         * lib/gc-libgcrypt.c: Likewise.
54066         * lib/gc-pbkdf2-sha1.c: Likewise.
54067         * lib/getaddrinfo.c: Likewise.
54068         * lib/getdelim.c: Likewise.
54069         * lib/getline.c: Likewise.
54070         * lib/hmac-md5.c: Likewise.
54071         * lib/hmac-sha1.c: Likewise.
54072         * lib/iconvme.c: Likewise.
54073         * lib/md2.c: Likewise.
54074         * lib/md4.c: Likewise.
54075         * lib/memxor.c: Likewise.
54076         * lib/read-file.c: Likewise.
54077         * lib/readline.c: Likewise.
54078         * lib/rijndael-alg-fst.c: Likewise.
54079         * lib/rijndael-api-fst.c: Likewise.
54080         * lib/xgetdomainname.c: Likewise.
54081
54082 2006-10-28  Eric Blake  <ebb9@byu.net>
54083
54084         * lib/xstrndup.c: Assume config.h.
54085
54086 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54087
54088         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
54089         stat-macros.h is now for our own macros, whereas stat_h is for
54090         macros in the <sys/stat.h> name space.
54091         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
54092         (STAT_MACROS_H): Remove.
54093         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
54094         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
54095         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
54096         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
54097         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
54098         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
54099         Move these macros to ...
54100         * lib/stat_.h: here.  Don't include stat-macros.h.
54101         * lib/canonicalize.c: Don't include stat-macros.h.
54102         * lib/chown.c: Likewise.
54103         * lib/euidaccess.c: Likewise.
54104         * lib/file-type.c: Likewise.
54105         * lib/filemode.c: Likewise.
54106         * lib/glob.c: Likewise.
54107         * lib/isapipe.c: Likewise.
54108         * lib/lchown.c: Likewise.
54109         * lib/lstat.c: Likewise.
54110         * lib/mkdir-p.c: Likewise.
54111         * lib/rmdir.c: Likewise.
54112         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
54113         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
54114         unless mkdir isn't declared, to speed up 'configure'.
54115         Always create sys/stat.h, since it's unlikely any real sys/stat.h
54116         would define all the S_* symbols.
54117         * modules/canonicalize (Depends-on):
54118         Depend on sys_stat, not stat-macros.
54119         * modules/chown: Likewise.
54120         * modules/euidaccess: Likewise.
54121         * modules/filemode: Likewise.
54122         * modules/file-type: Likewise.
54123         * modules/glob: Likewise.
54124         * modules/isapipe: Likewise.
54125         * modules/lchown: Likewise.
54126         * modules/lstat: Likewise.
54127         * modules/mkancesdirs: Likewise.
54128         * modules/rmdir: Likewise.
54129         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
54130         * modules/modechange: Likewise.
54131         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
54132         (configure.ac): Remove gl_STAT_MACROS.
54133         * modules/sys_stat (Depends-on): Remove stat-macros.
54134
54135 2006-10-27  Bruno Haible  <bruno@clisp.org>
54136
54137         * m4/signed.m4: Remove file.
54138         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
54139         invocation.
54140         * modules/vasnprintf (Files): Remove m4/signed.m4.
54141
54142 2006-10-27  Bruno Haible  <bruno@clisp.org>
54143
54144         Update to GNU gettext 0.16.
54145         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
54146         m4/inttypes-h.m4, m4/signed.m4.
54147         * m4/gettext.m4: Update to GNU gettext 0.16.
54148         * m4/intl.m4: New file, from GNU gettext.
54149         * m4/intldir.m4: New file, from GNU gettext.
54150         * config/srclist.txt: Update
54151
54152 2006-10-27  Eric Blake  <ebb9@byu.net>
54153
54154         * MODULES.html.sh: Document tempname.
54155         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
54156         dependencies.
54157         (Files): Move lib/tempname.c...
54158         * modules/tempname: ...to this new module.
54159         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
54160         (gl_PREREQ_TEMPNAME): Move...
54161         * m4/tempname.m4: ...to this new file.
54162         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
54163         * modules/sys_stat (Depends-on): Add stat-macros.
54164         * lib/stat_.h (includes): Pick up stat macros.
54165         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
54166         if stat macros are broken.
54167         * lib/tempname.c (includes): No need to include "stat-macros.h".
54168         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
54169         (direxists, __path_search) [!_LIBC]: Don't compile these in
54170         gnulib; the tmpdir module covers that.
54171         * lib/tempname.h: New file.
54172
54173 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
54174
54175         * COPYING: Explain how gnulib-tool converts licence headers.
54176         Almost all wording by Eric Blake.
54177
54178 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
54179
54180         * lib/mbchar.h (is_basic_table): Make read-only.
54181         * lib/mbchar.c (is_basic_table): Likewise.
54182         Reported by John Darrington.
54183
54184 2006-10-25  Bruno Haible  <bruno@clisp.org>
54185
54186         * lib/progname.h (set_program_name): Undefine before defining.
54187
54188 2006-10-25  Bruno Haible  <bruno@clisp.org>
54189
54190         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
54191         false for non-gcc C++ compilers.
54192         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54193
54194 2006-10-24  Bruno Haible  <bruno@clisp.org>
54195
54196         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
54197         iconv implementations like Irix iconv.
54198
54199 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54200
54201         * modules/vararrays: New file.
54202         * m4/vararrays.m4: New file, taken from diffutils.
54203         * MODULES.html.sh: New module vararrays.
54204
54205 2006-10-24  Karl Berry  <karl@gnu.org>
54206
54207         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
54208         Don't call GNU Unix.
54209
54210 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54211
54212         * users.txt: Add Libtool.
54213
54214         Sync from Libtool:
54215
54216         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54217
54218         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
54219         to gnulib's policy of including config.h unconditionally.
54220
54221 2006-10-24  Bruno Haible  <bruno@clisp.org>
54222
54223         * modules/wcwidth (Files): Add m4/wint_t.m4.
54224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
54225         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
54226
54227 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54228
54229         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
54230         to pacify GCC with some -W flags enabled.  Problem reported by
54231         Bruno Haible.
54232
54233 2006-10-24  Jim Meyering  <jim@meyering.net>
54234
54235         * MODULES.html.sh: Remove uinttostr.  It's not a module.
54236         Reported by Karl Berry.
54237
54238 2006-10-23  Bruno Haible  <bruno@clisp.org>
54239
54240         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
54241
54242 2006-10-24  Bruno Haible  <bruno@clisp.org>
54243
54244         * lib/gl_list.h: Use C comment style, not C++ comment style.
54245
54246 2006-10-23  Eric Blake  <ebb9@byu.net>
54247
54248         * lib/getaddrinfo.c (includes): Add missing include.
54249
54250 2006-10-23  Bruno Haible  <bruno@clisp.org>
54251             Paul Eggert  <eggert@cs.ucla.edu>
54252
54253         Ability to rename obstack_free.
54254         * lib/obstack.h (__obstack_free): New macro. Declare instead of
54255         obstack_free.
54256         (obstack_free): Invoke the __obstack_free macro.
54257         * lib/obstack.c (obstack_free): Use __obstack_free macro.
54258
54259 2006-10-23  Bruno Haible  <bruno@clisp.org>
54260             Paul Eggert  <eggert@cs.ucla.edu>
54261
54262         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
54263         __argc, __argv from the declaration. (They are defined as macros on
54264         mingw.)
54265
54266 2006-10-22  Bruno Haible  <bruno@clisp.org>
54267
54268         * doc/gnulib-intro.texi: New file.
54269         * doc/gnulib.texi: Include it.
54270
54271 2006-10-21  Bruno Haible  <bruno@clisp.org>
54272
54273         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
54274         "Introduction", "Miscellanous Notes", "Particular Modules".
54275
54276 2006-10-21  Bruno Haible  <bruno@clisp.org>
54277
54278         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54279         Change mostlyclean-local rule to avoid sh syntax error from bash
54280         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
54281
54282 2006-10-23  Jim Meyering  <jim@meyering.net>
54283
54284         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
54285         in place of snprintf.
54286
54287         * modules/inttostr (Files): Add lib/uinttostr.c.
54288         * lib/uinttostr.c (inttostr): New file/function.
54289         * lib/inttostr.h (uinttostr): Declare.
54290         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
54291         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54292         Add uinttostr.
54293         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
54294
54295 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54296
54297         * lib/canonicalize.c (ELOOP): Define if not already defined.
54298         Problem reported by Bruno Haible in
54299         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
54300
54301 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54302
54303         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
54304         Problem reported by Perry Smith and Ville Laurikari.
54305
54306         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
54307         uses.
54308
54309 2006-10-19  Bruno Haible  <bruno@clisp.org>
54310
54311         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
54312         for mingw.
54313
54314 2006-10-19  Bruno Haible  <bruno@clisp.org>
54315
54316         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
54317         Needed for mingw.
54318
54319 2006-10-19  Bruno Haible  <bruno@clisp.org>
54320
54321         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
54322
54323 2006-10-19  Bruno Haible  <bruno@clisp.org>
54324
54325         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
54326         it.
54327
54328 2006-10-19  Bruno Haible  <bruno@clisp.org>
54329
54330         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
54331         invocation.
54332
54333 2006-10-19  Bruno Haible  <bruno@clisp.org>
54334
54335         * gnulib-tool (func_create_testdir): Don't include ftruncate and
54336         mountlist by default.
54337
54338 2006-10-16  Bruno Haible  <bruno@clisp.org>
54339
54340         * lib/c-strstr.c: Include c-strstr.h.
54341
54342 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54343
54344         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
54345         in a slash.
54346
54347 2006-10-18  Bruno Haible  <bruno@clisp.org>
54348
54349         * lib/lock.h [C++]: Wrap definitions in extern "C".
54350
54351 2006-10-18  Bruno Haible  <bruno@clisp.org>
54352
54353         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
54354         gl_LIBOBJS list.
54355
54356 2006-10-18  Bruno Haible  <bruno@clisp.org>
54357
54358         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
54359
54360 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
54361
54362         * lib/xstrtol.h: Include gettext.h.
54363         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
54364         Problem reported by Eric Blake.
54365         * modules/xstrtol (Depends-on): Add gettext-h.
54366
54367 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
54368
54369         * lib/strftime.c (advance): New macro.
54370         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
54371         incomplete type, so you can't add 0 to it.  Problem and patch
54372         reported by Eelco Dolstra for dietlibc.
54373
54374 2006-10-18  Jim Meyering  <jim@meyering.net>
54375
54376         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
54377         type for a local, and rename it: s/up/user_proc/.
54378
54379 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54380
54381         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
54382         READ_UTMP_USER_PROCESS.
54383         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
54384
54385 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54386
54387         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
54388         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
54389
54390 2006-10-17  Eric Blake  <ebb9@byu.net>
54391
54392         * lib/sigprocmask.c (sigprocmask): Fix typo.
54393
54394         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
54395
54396         * modules/clean-temp (Makefile.am): Don't add to make output...
54397         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
54398         config.h.
54399
54400 2006-10-17  Bruno Haible  <bruno@clisp.org>
54401
54402         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
54403         differently if DEFAULT_TEXT_DOMAIN is set.
54404
54405 2006-10-16  Bruno Haible  <bruno@clisp.org>
54406
54407         * lib/clean-temp.c: Include fwriteerror.h.
54408
54409 2006-10-16  Bruno Haible  <bruno@clisp.org>
54410
54411         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
54412
54413 2006-10-16  Bruno Haible  <bruno@clisp.org>
54414
54415         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
54416         * lib/sigprocmask.h: Include <sys/types.h>.
54417         (sigset_t): Use the system's definition if present.
54418
54419 2006-10-17  Eric Blake  <ebb9@byu.net>
54420
54421         * lib/xvasprintf.c (includes): Assume config.h.
54422         * lib/xasprintf.c (includes): Likewise.
54423
54424 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54425
54426         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
54427         at least as wide as intmax_t.
54428
54429 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
54430
54431         (Imported from Automake.)
54432         * build-aux/gnupload: Update to version 1.1 of directive file.
54433
54434 2006-10-16  Eric Blake  <ebb9@byu.net>
54435
54436         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
54437         match Automake 1.10a.
54438
54439 2006-10-14  Bruno Haible  <bruno@clisp.org>
54440
54441         * modules/sigprocmask: New file.
54442         * lib/sigprocmask.h: New file.
54443         * lib/sigprocmask.c: New file.
54444         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
54445         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
54446         request sigprocmask.o.
54447         (gl_PREREQ_SIGPROCMASK): New macro.
54448         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
54449         (Depends-on): Add sigprocmask.
54450         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
54451         gt_SIGNALBLOCKING. Test for 'raise' only once.
54452         * lib/fatal-signal.c: Include sigprocmask.h.
54453         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
54454         unblock_fatal_signals): Define always.
54455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54456         sigprocmask.
54457
54458 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54459
54460         Sync from Automake.
54461         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
54462         which incorrectly sets the mode of an existing destination
54463         directory.  In some cases the unpatched install-sh could do the
54464         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
54465         system.  We hope this is rare in practice, but it's clearly worth
54466         fixing.  Problem reported by Alex Unleashed in
54467         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
54468         Also, don't bother to check for -m bugs unless we're using -m;
54469         suggested by Stepan Kasal.
54470
54471 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54472
54473         Sync from Automake.
54474         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
54475         `-c' flag, so they appear at the same position as in %FASTDEP%
54476         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
54477         which ignores unknown options only after the first non-option.
54478         Bug report against M4 by Nelson H. F. Beebe.
54479
54480 2006-10-13  Jim Meyering  <jim@meyering.net>
54481
54482         Fix a bug in yesterday's change.
54483         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
54484         p->fts_statp->st_dev would be used uninitialized.
54485         Ensures that we always call fts_stat on the very first entry.
54486         Miklos Szeredi reported that find -xdev stopped working.
54487
54488 2006-10-12  Bruno Haible  <bruno@clisp.org>
54489
54490         * gnulib-tool (func_get_automake_snippet): Append an automatically
54491         computed EXTRA_DIST augmentation.
54492         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
54493         * modules/alloca-opt (Makefile.am): Likewise.
54494         * modules/allocsa (Makefile.am): Likewise.
54495         * modules/arcfour (Makefile.am): Likewise.
54496         * modules/arctwo (Makefile.am): Likewise.
54497         * modules/argmatch (Makefile.am): Likewise.
54498         * modules/argz (Makefile.am): Likewise.
54499         * modules/atexit (Makefile.am): Likewise.
54500         * modules/backupfile (Makefile.am): Likewise.
54501         * modules/byteswap (Makefile.am): Likewise.
54502         * modules/c-strtod (Makefile.am): Likewise.
54503         * modules/c-strtold (Makefile.am): Likewise.
54504         * modules/calloc (Makefile.am): Likewise.
54505         * modules/canon-host (Makefile.am): Likewise.
54506         * modules/canonicalize (Makefile.am): Likewise.
54507         * modules/chdir-long (Makefile.am): Likewise.
54508         * modules/chdir-safer (Makefile.am): Likewise.
54509         * modules/check-version (Makefile.am): Likewise.
54510         * modules/chown (Makefile.am): Likewise.
54511         * modules/cloexec (Makefile.am): Likewise.
54512         * modules/close-stream (Makefile.am): Likewise.
54513         * modules/closeout (Makefile.am): Likewise.
54514         * modules/crc (Makefile.am): Likewise.
54515         * modules/csharpexec (Makefile.am): Likewise.
54516         * modules/cycle-check (Makefile.am): Likewise.
54517         * modules/des (Makefile.am): Likewise.
54518         * modules/dev-ino (Makefile.am): Likewise.
54519         * modules/dirfd (Makefile.am): Likewise.
54520         * modules/dirname (Makefile.am): Likewise.
54521         * modules/dup2 (Makefile.am): Likewise.
54522         * modules/eealloc (Makefile.am): Likewise.
54523         * modules/error (Makefile.am): Likewise.
54524         * modules/euidaccess (Makefile.am): Likewise.
54525         * modules/exclude (Makefile.am): Likewise.
54526         * modules/exitfail (Makefile.am): Likewise.
54527         * modules/fcntl-safer (Makefile.am): Likewise.
54528         * modules/fcntl (Makefile.am): Likewise.
54529         * modules/file-type (Makefile.am): Likewise.
54530         * modules/fileblocks (Makefile.am): Likewise.
54531         * modules/filemode (Makefile.am): Likewise.
54532         * modules/filenamecat (Makefile.am): Likewise.
54533         * modules/fnmatch (Makefile.am): Likewise.
54534         * modules/fopen-safer (Makefile.am): Likewise.
54535         * modules/fpending (Makefile.am): Likewise.
54536         * modules/fprintftime (Makefile.am): Likewise.
54537         * modules/free (Makefile.am): Likewise.
54538         * modules/fsusage (Makefile.am): Likewise.
54539         * modules/ftruncate (Makefile.am): Likewise.
54540         * modules/fts (Makefile.am): Likewise.
54541         * modules/gc-arcfour (Makefile.am): Likewise.
54542         * modules/gc-des (Makefile.am): Likewise.
54543         * modules/gc-hmac-md5 (Makefile.am): Likewise.
54544         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
54545         * modules/gc-md4 (Makefile.am): Likewise.
54546         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54547         * modules/gc-sha1 (Makefile.am): Likewise.
54548         * modules/gc (Makefile.am): Likewise.
54549         * modules/getaddrinfo (Makefile.am): Likewise.
54550         * modules/getcwd (Makefile.am): Likewise.
54551         * modules/getdelim (Makefile.am): Likewise.
54552         * modules/getdomainname (Makefile.am): Likewise.
54553         * modules/getgroups (Makefile.am): Likewise.
54554         * modules/gethostname (Makefile.am): Likewise.
54555         * modules/gethrxtime (Makefile.am): Likewise.
54556         * modules/getline (Makefile.am): Likewise.
54557         * modules/getloadavg (Makefile.am): Likewise.
54558         * modules/getlogin_r (Makefile.am): Likewise.
54559         * modules/getndelim2 (Makefile.am): Likewise.
54560         * modules/getopt (Makefile.am): Likewise.
54561         * modules/getpagesize (Makefile.am): Likewise.
54562         * modules/getpass-gnu (Makefile.am): Likewise.
54563         * modules/getpass (Makefile.am): Likewise.
54564         * modules/getsubopt (Makefile.am): Likewise.
54565         * modules/gettime (Makefile.am): Likewise.
54566         * modules/gettimeofday (Makefile.am): Likewise.
54567         * modules/getugroups (Makefile.am): Likewise.
54568         * modules/getusershell (Makefile.am): Likewise.
54569         * modules/glob (Makefile.am): Likewise.
54570         * modules/group-member (Makefile.am): Likewise.
54571         * modules/hard-locale (Makefile.am): Likewise.
54572         * modules/hash (Makefile.am): Likewise.
54573         * modules/hmac-md5 (Makefile.am): Likewise.
54574         * modules/hmac-sha1 (Makefile.am): Likewise.
54575         * modules/human (Makefile.am): Likewise.
54576         * modules/idcache (Makefile.am): Likewise.
54577         * modules/imaxabs (Makefile.am): Likewise.
54578         * modules/imaxdiv (Makefile.am): Likewise.
54579         * modules/inet_ntop (Makefile.am): Likewise.
54580         * modules/inet_pton (Makefile.am): Likewise.
54581         * modules/intprops (Makefile.am): Likewise.
54582         * modules/inttostr (Makefile.am): Likewise.
54583         * modules/inttypes (Makefile.am): Likewise.
54584         * modules/isapipe (Makefile.am): Likewise.
54585         * modules/javaversion (Makefile.am): Likewise.
54586         * modules/lchmod (Makefile.am): Likewise.
54587         * modules/lchown (Makefile.am): Likewise.
54588         * modules/localcharset (Makefile.am): Likewise.
54589         * modules/long-options (Makefile.am): Likewise.
54590         * modules/lstat (Makefile.am): Likewise.
54591         * modules/malloc (Makefile.am): Likewise.
54592         * modules/mathl (Makefile.am): Likewise.
54593         * modules/mbchar (Makefile.am): Likewise.
54594         * modules/md2 (Makefile.am): Likewise.
54595         * modules/md4 (Makefile.am): Likewise.
54596         * modules/md5 (Makefile.am): Likewise.
54597         * modules/memcasecmp (Makefile.am): Likewise.
54598         * modules/memchr (Makefile.am): Likewise.
54599         * modules/memcmp (Makefile.am): Likewise.
54600         * modules/memcoll (Makefile.am): Likewise.
54601         * modules/memcpy (Makefile.am): Likewise.
54602         * modules/memmem (Makefile.am): Likewise.
54603         * modules/memmove (Makefile.am): Likewise.
54604         * modules/mempcpy (Makefile.am): Likewise.
54605         * modules/memrchr (Makefile.am): Likewise.
54606         * modules/memset (Makefile.am): Likewise.
54607         * modules/memxor (Makefile.am): Likewise.
54608         * modules/mkancesdirs (Makefile.am): Likewise.
54609         * modules/mkdir-p (Makefile.am): Likewise.
54610         * modules/mkdir (Makefile.am): Likewise.
54611         * modules/mkdtemp (Makefile.am): Likewise.
54612         * modules/mkstemp (Makefile.am): Likewise.
54613         * modules/mktime (Makefile.am): Likewise.
54614         * modules/modechange (Makefile.am): Likewise.
54615         * modules/mountlist (Makefile.am): Likewise.
54616         * modules/nanosleep (Makefile.am): Likewise.
54617         * modules/obstack (Makefile.am): Likewise.
54618         * modules/openat (Makefile.am): Likewise.
54619         * modules/pagealign_alloc (Makefile.am): Likewise.
54620         * modules/pathmax (Makefile.am): Likewise.
54621         * modules/physmem (Makefile.am): Likewise.
54622         * modules/poll (Makefile.am): Likewise.
54623         * modules/posixtm (Makefile.am): Likewise.
54624         * modules/posixver (Makefile.am): Likewise.
54625         * modules/putenv (Makefile.am): Likewise.
54626         * modules/quote (Makefile.am): Likewise.
54627         * modules/quotearg (Makefile.am): Likewise.
54628         * modules/raise (Makefile.am): Likewise.
54629         * modules/read-file (Makefile.am): Likewise.
54630         * modules/readline (Makefile.am): Likewise.
54631         * modules/readlink (Makefile.am): Likewise.
54632         * modules/readtokens (Makefile.am): Likewise.
54633         * modules/readutmp (Makefile.am): Likewise.
54634         * modules/realloc (Makefile.am): Likewise.
54635         * modules/regex (Makefile.am): Likewise.
54636         * modules/rename-dest-slash (Makefile.am): Likewise.
54637         * modules/rename (Makefile.am): Likewise.
54638         * modules/rijndael (Makefile.am): Likewise.
54639         * modules/rmdir (Makefile.am): Likewise.
54640         * modules/rpmatch (Makefile.am): Likewise.
54641         * modules/safe-read (Makefile.am): Likewise.
54642         * modules/safe-write (Makefile.am): Likewise.
54643         * modules/same-inode (Makefile.am): Likewise.
54644         * modules/same (Makefile.am): Likewise.
54645         * modules/save-cwd (Makefile.am): Likewise.
54646         * modules/savedir (Makefile.am): Likewise.
54647         * modules/setenv (Makefile.am): Likewise.
54648         * modules/settime (Makefile.am): Likewise.
54649         * modules/sha1 (Makefile.am): Likewise.
54650         * modules/sig2str (Makefile.am): Likewise.
54651         * modules/snprintf (Makefile.am): Likewise.
54652         * modules/stat-macros (Makefile.am): Likewise.
54653         * modules/stat-time (Makefile.am): Likewise.
54654         * modules/stdbool (Makefile.am): Likewise.
54655         * modules/stdint (Makefile.am): Likewise.
54656         * modules/stdlib-safer (Makefile.am): Likewise.
54657         * modules/stpcpy (Makefile.am): Likewise.
54658         * modules/stpncpy (Makefile.am): Likewise.
54659         * modules/strcase (Makefile.am): Likewise.
54660         * modules/strcasestr (Makefile.am): Likewise.
54661         * modules/strchrnul (Makefile.am): Likewise.
54662         * modules/strcspn (Makefile.am): Likewise.
54663         * modules/strdup (Makefile.am): Likewise.
54664         * modules/strerror (Makefile.am): Likewise.
54665         * modules/strftime (Makefile.am): Likewise.
54666         * modules/strndup (Makefile.am): Likewise.
54667         * modules/strnlen (Makefile.am): Likewise.
54668         * modules/strpbrk (Makefile.am): Likewise.
54669         * modules/strsep (Makefile.am): Likewise.
54670         * modules/strstr (Makefile.am): Likewise.
54671         * modules/strtod (Makefile.am): Likewise.
54672         * modules/strtoimax (Makefile.am): Likewise.
54673         * modules/strtok_r (Makefile.am): Likewise.
54674         * modules/strtol (Makefile.am): Likewise.
54675         * modules/strtoll (Makefile.am): Likewise.
54676         * modules/strtoul (Makefile.am): Likewise.
54677         * modules/strtoull (Makefile.am): Likewise.
54678         * modules/strtoumax (Makefile.am): Likewise.
54679         * modules/strverscmp (Makefile.am): Likewise.
54680         * modules/sys_socket (Makefile.am): Likewise.
54681         * modules/sys_stat (Makefile.am): Likewise.
54682         * modules/sysexits (Makefile.am): Likewise.
54683         * modules/time_r (Makefile.am): Likewise.
54684         * modules/timegm (Makefile.am): Likewise.
54685         * modules/timespec (Makefile.am): Likewise.
54686         * modules/tmpfile-safer (Makefile.am): Likewise.
54687         * modules/trim (Makefile.am): Likewise.
54688         * modules/unistd-safer (Makefile.am): Likewise.
54689         * modules/unlinkdir (Makefile.am): Likewise.
54690         * modules/unlocked-io (Makefile.am): Likewise.
54691         * modules/userspec (Makefile.am): Likewise.
54692         * modules/utime (Makefile.am): Likewise.
54693         * modules/utimecmp (Makefile.am): Likewise.
54694         * modules/utimens (Makefile.am): Likewise.
54695         * modules/vasnprintf (Makefile.am): Likewise.
54696         * modules/vasprintf (Makefile.am): Likewise.
54697         * modules/vsnprintf (Makefile.am): Likewise.
54698         * modules/xalloc (Makefile.am): Likewise.
54699         * modules/xgetcwd (Makefile.am): Likewise.
54700         * modules/xnanosleep (Makefile.am): Likewise.
54701         * modules/xreadlink (Makefile.am): Likewise.
54702         * modules/xstrtod (Makefile.am): Likewise.
54703         * modules/xstrtol (Makefile.am): Likewise.
54704         * modules/xstrtold (Makefile.am): Likewise.
54705         * modules/yesno (Makefile.am): Likewise.
54706         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
54707
54708 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54709
54710         * modules/error (Makefile.am): Distribute files through
54711         EXTRA_DIST, not lib_SOURCES.
54712
54713 2006-10-12  Eric Blake  <ebb9@byu.net>
54714
54715         * modules/error (Makefile.am): Distribute files in /lib.
54716         * modules/obstack (Makefile.am): Likewise.
54717
54718 2006-10-12  Bruno Haible  <bruno@clisp.org>
54719
54720         * modules/acl (Makefile.am): Distribute all files in lib/ through
54721         EXTRA_DIST.
54722         * modules/arcfour (Makefile.am): Likewise.
54723         * modules/arctwo (Makefile.am): Likewise.
54724         * modules/argmatch (Makefile.am): Likewise.
54725         * modules/argz (Makefile.am): Likewise.
54726         * modules/atexit (Makefile.am): Likewise.
54727         * modules/backupfile (Makefile.am): Likewise.
54728         * modules/c-strtod (Makefile.am): Likewise.
54729         * modules/c-strtold (Makefile.am): Likewise.
54730         * modules/calloc (Makefile.am): Likewise.
54731         * modules/canon-host (Makefile.am): Likewise.
54732         * modules/canonicalize (Makefile.am): Likewise.
54733         * modules/chdir-long (Makefile.am): Likewise.
54734         * modules/chdir-safer (Makefile.am): Likewise.
54735         * modules/check-version (Makefile.am): Likewise.
54736         * modules/chown (Makefile.am): Likewise.
54737         * modules/cloexec (Makefile.am): Likewise.
54738         * modules/close-stream (Makefile.am): Likewise.
54739         * modules/closeout (Makefile.am): Likewise.
54740         * modules/crc (Makefile.am): Likewise.
54741         * modules/cycle-check (Makefile.am): Likewise.
54742         * modules/des (Makefile.am): Likewise.
54743         * modules/dirfd (Makefile.am): Likewise.
54744         * modules/dirname (Makefile.am): Likewise.
54745         * modules/dup2 (Makefile.am): Likewise.
54746         * modules/euidaccess (Makefile.am): Likewise.
54747         * modules/exclude (Makefile.am): Likewise.
54748         * modules/exitfail (Makefile.am): Likewise.
54749         * modules/fcntl-safer (Makefile.am): Likewise.
54750         * modules/file-type (Makefile.am): Likewise.
54751         * modules/fileblocks (Makefile.am): Likewise.
54752         * modules/filemode (Makefile.am): Likewise.
54753         * modules/filenamecat (Makefile.am): Likewise.
54754         * modules/fnmatch (Makefile.am): Likewise.
54755         * modules/fopen-safer (Makefile.am): Likewise.
54756         * modules/fpending (Makefile.am): Likewise.
54757         * modules/fprintftime (Makefile.am): Likewise.
54758         * modules/free (Makefile.am): Likewise.
54759         * modules/fsusage (Makefile.am): Likewise.
54760         * modules/ftruncate (Makefile.am): Likewise.
54761         * modules/fts (Makefile.am): Likewise.
54762         * modules/gc (Makefile.am): Likewise.
54763         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54764         * modules/getaddrinfo (Makefile.am): Likewise.
54765         * modules/getcwd (Makefile.am): Likewise.
54766         * modules/getdelim (Makefile.am): Likewise.
54767         * modules/getdomainname (Makefile.am): Likewise.
54768         * modules/getgroups (Makefile.am): Likewise.
54769         * modules/gethostname (Makefile.am): Likewise.
54770         * modules/gethrxtime (Makefile.am): Likewise.
54771         * modules/getline (Makefile.am): Likewise.
54772         * modules/getloadavg (Makefile.am): Likewise.
54773         * modules/getlogin_r (Makefile.am): Likewise.
54774         * modules/getopt (Makefile.am): Likewise.
54775         * modules/getpass (Makefile.am): Likewise.
54776         * modules/getpass-gnu (Makefile.am): Likewise.
54777         * modules/getsubopt (Makefile.am): Likewise.
54778         * modules/gettime (Makefile.am): Likewise.
54779         * modules/gettimeofday (Makefile.am): Likewise.
54780         * modules/getugroups (Makefile.am): Likewise.
54781         * modules/getusershell (Makefile.am): Likewise.
54782         * modules/glob (Makefile.am): Likewise.
54783         * modules/group-member (Makefile.am): Likewise.
54784         * modules/hard-locale (Makefile.am): Likewise.
54785         * modules/hash (Makefile.am): Likewise.
54786         * modules/hmac-md5 (Makefile.am): Likewise.
54787         * modules/hmac-sha1 (Makefile.am): Likewise.
54788         * modules/human (Makefile.am): Likewise.
54789         * modules/idcache (Makefile.am): Likewise.
54790         * modules/imaxabs (Makefile.am): Likewise.
54791         * modules/imaxdiv (Makefile.am): Likewise.
54792         * modules/inet_ntop (Makefile.am): Likewise.
54793         * modules/inet_pton (Makefile.am): Likewise.
54794         * modules/inttostr (Makefile.am): Likewise.
54795         * modules/isapipe (Makefile.am): Likewise.
54796         * modules/lchown (Makefile.am): Likewise.
54797         * modules/long-options (Makefile.am): Likewise.
54798         * modules/lstat (Makefile.am): Likewise.
54799         * modules/malloc (Makefile.am): Likewise.
54800         * modules/mathl (Makefile.am): Likewise.
54801         * modules/mbchar (Makefile.am): Likewise.
54802         * modules/md2 (Makefile.am): Likewise.
54803         * modules/md4 (Makefile.am): Likewise.
54804         * modules/md5 (Makefile.am): Likewise.
54805         * modules/memcasecmp (Makefile.am): Likewise.
54806         * modules/memchr (Makefile.am): Likewise.
54807         * modules/memcmp (Makefile.am): Likewise.
54808         * modules/memcoll (Makefile.am): Likewise.
54809         * modules/memcpy (Makefile.am): Likewise.
54810         * modules/memmem (Makefile.am): Likewise.
54811         * modules/memmove (Makefile.am): Likewise.
54812         * modules/mempcpy (Makefile.am): Likewise.
54813         * modules/memrchr (Makefile.am): Likewise.
54814         * modules/memset (Makefile.am): Likewise.
54815         * modules/memxor (Makefile.am): Likewise.
54816         * modules/mkancesdirs (Makefile.am): Likewise.
54817         * modules/mkdir (Makefile.am): Likewise.
54818         * modules/mkdir-p (Makefile.am): Likewise.
54819         * modules/mkdtemp (Makefile.am): Likewise.
54820         * modules/mkstemp (Makefile.am): Likewise.
54821         * modules/mktime (Makefile.am): Likewise.
54822         * modules/modechange (Makefile.am): Likewise.
54823         * modules/mountlist (Makefile.am): Likewise.
54824         * modules/nanosleep (Makefile.am): Likewise.
54825         * modules/openat (Makefile.am): Likewise.
54826         * modules/pagealign_alloc (Makefile.am): Likewise.
54827         * modules/physmem (Makefile.am): Likewise.
54828         * modules/poll (Makefile.am): Likewise.
54829         * modules/posixtm (Makefile.am): Likewise.
54830         * modules/posixver (Makefile.am): Likewise.
54831         * modules/putenv (Makefile.am): Likewise.
54832         * modules/quote (Makefile.am): Likewise.
54833         * modules/quotearg (Makefile.am): Likewise.
54834         * modules/raise (Makefile.am): Likewise.
54835         * modules/read-file (Makefile.am): Likewise.
54836         * modules/readline (Makefile.am): Likewise.
54837         * modules/readlink (Makefile.am): Likewise.
54838         * modules/readtokens (Makefile.am): Likewise.
54839         * modules/readutmp (Makefile.am): Likewise.
54840         * modules/realloc (Makefile.am): Likewise.
54841         * modules/regex (Makefile.am): Likewise.
54842         * modules/rename (Makefile.am): Likewise.
54843         * modules/rename-dest-slash (Makefile.am): Likewise.
54844         * modules/rijndael (Makefile.am): Likewise.
54845         * modules/rmdir (Makefile.am): Likewise.
54846         * modules/rpmatch (Makefile.am): Likewise.
54847         * modules/safe-read (Makefile.am): Likewise.
54848         * modules/safe-write (Makefile.am): Likewise.
54849         * modules/same (Makefile.am): Likewise.
54850         * modules/save-cwd (Makefile.am): Likewise.
54851         * modules/savedir (Makefile.am): Likewise.
54852         * modules/setenv (Makefile.am): Likewise.
54853         * modules/settime (Makefile.am): Likewise.
54854         * modules/sha1 (Makefile.am): Likewise.
54855         * modules/sig2str (Makefile.am): Likewise.
54856         * modules/snprintf (Makefile.am): Likewise.
54857         * modules/stdlib-safer (Makefile.am): Likewise.
54858         * modules/stpcpy (Makefile.am): Likewise.
54859         * modules/stpncpy (Makefile.am): Likewise.
54860         * modules/strcase (Makefile.am): Likewise.
54861         * modules/strcasestr (Makefile.am): Likewise.
54862         * modules/strchrnul (Makefile.am): Likewise.
54863         * modules/strcspn (Makefile.am): Likewise.
54864         * modules/strdup (Makefile.am): Likewise.
54865         * modules/strerror (Makefile.am): Likewise.
54866         * modules/strftime (Makefile.am): Likewise.
54867         * modules/strndup (Makefile.am): Likewise.
54868         * modules/strnlen (Makefile.am): Likewise.
54869         * modules/strpbrk (Makefile.am): Likewise.
54870         * modules/strsep (Makefile.am): Likewise.
54871         * modules/strstr (Makefile.am): Likewise.
54872         * modules/strtod (Makefile.am): Likewise.
54873         * modules/strtoimax (Makefile.am): Likewise.
54874         * modules/strtok_r (Makefile.am): Likewise.
54875         * modules/strtol (Makefile.am): Likewise.
54876         * modules/strtoll (Makefile.am): Likewise.
54877         * modules/strtoul (Makefile.am): Likewise.
54878         * modules/strtoull (Makefile.am): Likewise.
54879         * modules/strtoumax (Makefile.am): Likewise.
54880         * modules/strverscmp (Makefile.am): Likewise.
54881         * modules/time_r (Makefile.am): Likewise.
54882         * modules/timegm (Makefile.am): Likewise.
54883         * modules/tmpfile-safer (Makefile.am): Likewise.
54884         * modules/unistd-safer (Makefile.am): Likewise.
54885         * modules/unlinkdir (Makefile.am): Likewise.
54886         * modules/userspec (Makefile.am): Likewise.
54887         * modules/utime (Makefile.am): Likewise.
54888         * modules/utimecmp (Makefile.am): Likewise.
54889         * modules/utimens (Makefile.am): Likewise.
54890         * modules/vasnprintf (Makefile.am): Likewise.
54891         * modules/vasprintf (Makefile.am): Likewise.
54892         * modules/vsnprintf (Makefile.am): Likewise.
54893         * modules/xalloc (Makefile.am): Likewise.
54894         * modules/xgetcwd (Makefile.am): Likewise.
54895         * modules/xnanosleep (Makefile.am): Likewise.
54896         * modules/xreadlink (Makefile.am): Likewise.
54897         * modules/xstrtod (Makefile.am): Likewise.
54898         * modules/xstrtol (Makefile.am): Likewise.
54899         * modules/xstrtold (Makefile.am): Likewise.
54900         * modules/yesno (Makefile.am): Likewise.
54901
54902 2006-10-12  Jim Meyering  <jim@meyering.net>
54903
54904         * m4/getloadavg.m4: Revert the change below.
54905
54906         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
54907         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
54908         fail with a symlink, which is what coreutils' ./bootstrap now
54909         creates by default.
54910
54911 2006-10-12  Bruno Haible  <bruno@clisp.org>
54912
54913         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
54914         mingw.
54915         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
54916         MSVC and mingw explicitly.
54917
54918 2006-10-11  Simon Josefsson  <jas@extundo.com>
54919             Bruno Haible  <bruno@clisp.org>
54920
54921         Add support for multiple gnulib-tool invocations in the scope of a
54922         single configure.ac file.
54923         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
54924         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
54925         with the same contents as the _LIBADD variable.
54926         (func_emit_initmacro_start, func_emit_initmacro_end,
54927         func_emit_initmacro_done): New functions.
54928         (func_import, func_create_testdir): Invoke them. Allow the identifiers
54929         gl_LIBOBJS and gl_LTLIBOBJS.
54930
54931 2006-10-11  Bruno Haible  <bruno@clisp.org>
54932
54933         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
54934         (func_create_testdir): Don't create po/Makefile.am, don't invoke
54935         autoreconf. Instead, invoke autopoint explicitly but move back the
54936         *.m4 files from gnulib.
54937
54938 2006-10-11  Bruno Haible  <bruno@clisp.org>
54939
54940         * gnulib-tool (func_usage): Make module names after --create-testdir
54941         optional.
54942         (func_create_testdir): If no module was specified, use nearly all
54943         modules.
54944
54945 2006-10-12  Jim Meyering  <jim@meyering.net>
54946
54947         Big performance improvement for fts-based tools that use FTS_NOSTAT.
54948         Avoid spurious inode-mismatch problems on non-POSIX file systems.
54949         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
54950         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
54951         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
54952         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
54953         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
54954         (fts_set_stat_required): New function.
54955         (fts_open): Defer the calls to fts_stat, if possible or requested.
54956         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
54957         into fts_stat itself.
54958         (fts_read): Perform any required (deferred) fts_stat call.
54959         (fts_build): Likewise, for the directory we're about to open and read.
54960         In the readdir loop, carefully decide whether each entry will require
54961         an eventual call to fts_stat, using dirent.d_type info if available.
54962         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
54963         a command line argument into this function.  Update all callers.
54964         Map a return value of FTS_DOT to FTS_D for a command line argument.
54965         * modules/fts (Depends-on): Add d-type.  Alphabetize.
54966         Thanks to Miklos Szeredi for his tenacity and for the initial
54967         bug report about "find" failing on a FUSE-based file system.
54968
54969         * lib/fts.c (fts_open): Use consistent indentation.
54970
54971 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54972
54973         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
54974         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
54975         reported by Jim Meyering.  All uses of cache variables renamed
54976         to match Autoconf's.
54977         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
54978         the other one.
54979
54980         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
54981         Fix misspelling in diagnostic.
54982
54983 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54984
54985         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
54986         defined.  Problem reported by Matthew Woehlke.
54987
54988         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
54989         Add support for Tandem NonStop R series.
54990         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
54991         Use new macro.
54992
54993         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
54994         (has_trailing_slash): Omit size arg; all callers changed.
54995         Omit 'inline', since it doesn't help performance and we'd
54996         need to configure it.
54997         Don't count //, ///, etc. as having a trailing slash.
54998         As a side effect, this removes a C99ism reported by Matthew Woehlke.
54999         (rpl_rename_dest_slash): On failure, use rename's errno rather
55000         than (in some cases) an incorrect or junk errno.
55001         Simplify code by removing need to compute length; this does
55002         cause it to make two passes instead of one over the file name,
55003         but it's worth it.
55004
55005         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
55006         change, since Autoconf's version may no longer be appropriate now
55007         that we are using CVS Autoconf's version.  Add support for Tandem.
55008
55009 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55010             Bruno Haible  <bruno@clisp.org>
55011
55012         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
55013         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
55014         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
55015         gl_AC_TYPE_LONG_LONG.
55016
55017         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
55018         instead of HAVE_LONG_LONG.
55019         * lib/printf-args.c (printf_fetchargs): Likewise.
55020         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
55021         * lib/vasnprintf.c (VASNPRINTF): Likewise.
55022         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
55023         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
55024         gl_AC_TYPE_LONG_LONG.
55025
55026 2006-10-11  Bruno Haible  <bruno@clisp.org>
55027
55028         * m4/longlong.m4: Add comments.
55029         * m4/ulonglong.m4: Likewise.
55030
55031 2006-10-10  Bruno Haible  <bruno@clisp.org>
55032
55033         Make it possible to #define stpcpy, strdup to aliases.
55034         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
55035         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
55036
55037 2006-10-10  Bruno Haible  <bruno@clisp.org>
55038
55039         Make it possible to #define gcd to an alias.
55040         * lib/gcd.c: Include config.h.
55041
55042 2006-10-10  Bruno Haible  <bruno@clisp.org>
55043
55044         Make it possible to #define c_isascii to an alias.
55045         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
55046         defined. Undefine the macros before defining them, to avoid gcc
55047         warnings.
55048         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
55049         define NO_C_CTYPE_MACROS early.
55050
55051 2006-10-10  Bruno Haible  <bruno@clisp.org>
55052
55053         Make it possible to #define set_program_name to an alias.
55054         * lib/progname.c: Don't undefine set_program_name; instead, undefine
55055         ENABLE_RELOCATABLE early.
55056
55057 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55058
55059         Port to Tandem NSK OSS, which has 64-bit signed int but at most
55060         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
55061         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
55062         More generally, don't assume that 64-bit signed int is available
55063         if unsigned int is, and vice versa.
55064         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
55065         unsigned symbols, not on their signed counterparts.
55066         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
55067         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
55068         (UINT64_C, UINTMAX_C):
55069         Likewise.
55070         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
55071         unsigned counterparts.
55072         (Have_long_long, Unsigned): New macros.
55073         (Int): Renamed from INT.
55074         (strtoimax): Use the new macros.
55075         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
55076         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
55077         * modules/inttypes (inttypes.h): Substitute
55078         HAVE_UNSIGNED_LONG_LONG_INT.
55079         * modules/stdint (stdint.h): Likewise.
55080         (Files): Add m4/ulonglong.m4.
55081
55082 2006-10-10  Bruno Haible  <bruno@clisp.org>
55083
55084         Fix a gcc -Wshadow warning.
55085         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
55086         to 'bucket'.
55087         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
55088         gl_linked_indexof_from_to): Likewise.
55089         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
55090         Likewise.
55091         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
55092         Likewise.
55093         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
55094         Reported by Eric Blake.
55095
55096 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
55097
55098         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
55099         for NetBSD.  Problem reported by Bruno Haible.
55100
55101 2006-10-09  Jim Meyering  <jim@meyering.net>
55102
55103         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
55104         Patch from Bruno Haible.
55105
55106 2006-10-09  Jim Meyering  <jim@meyering.net>
55107
55108         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
55109         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
55110         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
55111
55112 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55113
55114         Don't include <config.h> twice; this doesn't work in some cases,
55115         e.g., when config.h has "#define intmax_t long long int" and
55116         we include <config.h>, <inttypes.h>, <config.h> in that order.
55117         Problem reported by Matthew Woehlke in:
55118         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
55119         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
55120         * lib/fts-cycle.c: Don't include config.h.
55121         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
55122         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
55123         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
55124         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
55125         inttypes.h.
55126         * lib/xstrtoumax.c: Likewise.
55127         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
55128         __strtol and the like, so that this module is more like its siblings.
55129         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
55130         Remove; no longer needed now that we assume gnulib inttypes.h.
55131
55132 2006-10-08  Bruno Haible  <bruno@clisp.org>
55133
55134         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
55135         option.
55136
55137 2006-10-07  Jim Meyering  <jim@meyering.net>
55138
55139         * modules/inttypes (inttypes.h): Revert what seems to have been
55140         an inadvertent part of today's change: use "|", not "/" in the
55141         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
55142
55143 2006-10-07  Bruno Haible  <bruno@clisp.org>
55144
55145         * modules/sublist: New file.
55146
55147 2006-10-07  Bruno Haible  <bruno@clisp.org>
55148
55149         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
55150         * modules/argz (argz.h): Likewise.
55151         * modules/arpa_inet (arpa/inet.h): Likewise.
55152         * modules/byteswap (byteswap.h): Likewise.
55153         * modules/configmake (configmake.h): Likewise.
55154         * modules/fcntl (fcntl.h): Likewise.
55155         * modules/fnmatch (fnmatch.h): Likewise.
55156         * modules/getopt (getopt.h): Likewise.
55157         * modules/glob (glob.h): Likewise.
55158         * modules/inttypes (inttypes.h): Likewise.
55159         * modules/netinet_in (netinet/in.h): Likewise.
55160         * modules/poll (poll.h): Likewise.
55161         * modules/stdbool (stdbool.h): Likewise.
55162         * modules/stdint (stdint.h): Likewise.
55163         * modules/sys_select (sys/select.h): Likewise.
55164         * modules/sys_socket (sys/socket.h): Likewise.
55165         * modules/sys_stat (sys/stat.h): Likewise.
55166         * modules/sysexits (sysexits.h): Likewise.
55167         * modules/unistd (unistd.h): Likewise.
55168         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55169         Add a "DO NOT EDIT" comment to the generated file.
55170         (func_import): Likewise for gnulib-comp.m4.
55171
55172 2006-10-07  Bruno Haible  <bruno@clisp.org>
55173
55174         * lib/gl_sublist.h: New file.
55175         * lib/gl_sublist.c: New file.
55176
55177 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55178
55179         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
55180         name (relative to the original working directory) and the file
55181         name component (relative to the temporary working directory).  All
55182         callers changed.
55183         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
55184         * lib/mkdir-p.c (make_dir_parents): Likewise.
55185         * lib/mkdir-p.h (make_dir_parents): Likewise.
55186
55187 2006-10-06  Eric Blake  <ebb9@byu.net>
55188
55189         Define several macros for use by the clean-temp module.
55190         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
55191         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
55192         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
55193
55194         * lib/clean-temp.h (close_stream_temp): New declaration.
55195         * lib/clean-temp.c (includes): Pull in headers according to what
55196         other modules are in use.
55197         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
55198
55199 2006-10-06  Bruno Haible  <bruno@clisp.org>
55200
55201         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
55202         instead of fopen, fwriteerror.
55203
55204 2006-10-06  Bruno Haible  <bruno@clisp.org>
55205
55206         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
55207         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
55208         int.
55209         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
55210         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
55211         Return an error indicator.
55212         Suggested by Eric Blake.
55213
55214 2006-10-06  Bruno Haible  <bruno@clisp.org>
55215
55216         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
55217         Reported by Eric Blake.
55218
55219 2006-10-06  Bruno Haible  <bruno@clisp.org>
55220
55221         * modules/closeout (Description): Mention stderr too.
55222
55223 2006-10-06  Bruno Haible  <bruno@clisp.org>
55224         and Paul Eggert  <eggert@cs.ucla.edu>
55225
55226         * lib/closeout.c (close_stdout): Also close stderr.
55227         * lib/closeout.h: Update comment.
55228
55229 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55230
55231         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
55232         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
55233         * lib/dirchownmod.c: Include lchown.h.
55234         * lib/lchown.c: Don't include files that lchown.h now includes.
55235         Don't declare chown, since lchown.h now does that.
55236         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
55237         (lchown): Define to rpl_chown if lchown is declared but
55238         does not exist.  Declare using a prototype if lchown is not
55239         declared.  Add a copyright notice.
55240         * lib/mkstemp.h: Include <unistd.h>.
55241         * lib/openat.c: Include lchown.h.
55242
55243         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
55244         we now test for that separately.
55245         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
55246         rather than O_NOFOLLOW, when testing whether it's possible to
55247         avoid a race condition reliably.
55248         * lib/savewd.c (savewd_chdir): Likewise.
55249
55250         Remove macros that are no longer needed now that stdint.h is
55251         reliable.
55252         * lib/fsusage.c (UINTMAX_MAX): Remove.
55253         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
55254         * lib/utimecmp.c (SIZE_MAX): Remove.
55255
55256         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
55257
55258         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
55259         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
55260         O_NOATIME works.
55261
55262 2006-10-05  Bruno Haible  <bruno@clisp.org>
55263
55264         * lib/gl_list.h (gl_sortedlist_search_from_to,
55265         gl_sortedlist_indexof_from_to): New declarations.
55266         (gl_list_implementation): New fields sortedlist_search_from_to,
55267         sortedlist_indexof_from_to.
55268         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
55269         inline functions.
55270         * lib/gl_list.c (gl_sortedlist_search_from_to,
55271         gl_sortedlist_indexof_from_to): New functions.
55272         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
55273         function.
55274         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
55275         (gl_array_sortedlist_search_from_to): New function.
55276         (gl_array_list_implementation): Update.
55277         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
55278         function.
55279         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
55280         (gl_carray_sortedlist_search_from_to): New function.
55281         (gl_carray_list_implementation): Update.
55282         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
55283         gl_linked_sortedlist_indexof_from_to): New functions.
55284         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55285         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55286         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
55287         gl_tree_sortedlist_indexof_from_to): New functions.
55288         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55289         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55290         Update.
55291         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55292         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
55293         Update.
55294
55295 2006-10-05  Bruno Haible  <bruno@clisp.org>
55296
55297         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
55298         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
55299         (struct gl_list_implementation): Add fields search_from_to,
55300         indexof_from_to. Remove fields search, indexof.
55301         (gl_list_search): Use the search_from_to method.
55302         (gl_list_search_from, gl_list_search_from_to): New functions.
55303         (gl_list_indexof): Use the indexof_from_to method.
55304         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55305         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
55306         (gl_list_search_from, gl_list_search_from_to): New functions.
55307         (gl_list_indexof): Use the indexof_from_to method.
55308         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55309         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
55310         gl_array_indexof. Add start_index, end_index arguments.
55311         (gl_array_search_from_to): Renamed from gl_array_search. Add
55312         start_index, end_index arguments.
55313         (gl_array_remove, gl_array_list_implementation): Update.
55314         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
55315         gl_carray_indexof. Add start_index, end_index arguments.
55316         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
55317         start_index, end_index arguments.
55318         (gl_carray_remove, gl_carray_list_implementation): Update.
55319         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
55320         gl_linked_search. Add start_index, end_index arguments.
55321         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
55322         start_index, end_index arguments.
55323         (gl_linked_remove): Update.
55324         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55325         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55326         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
55327         field to 'size_t'.
55328         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
55329         gl_tree_search. Add start_index, end_index arguments.
55330         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55331         start_index, end_index arguments.
55332         (gl_tree_remove): Update.
55333         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55334         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55335         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
55336         function.
55337         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
55338         gl_tree_search. Add start_index, end_index arguments.
55339         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55340         start_index, end_index arguments.
55341         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55342         Update.
55343         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
55344
55345 2006-10-05  Bruno Haible  <bruno@clisp.org>
55346
55347         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
55348
55349         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
55350         fwriteerror_temp): New declarations.
55351         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
55352         (descriptors): New variable.
55353         (cleanup): First, close the descriptors.
55354         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
55355         fclose_temp, fwriteerror_temp): New functions.
55356
55357 2006-10-04  Jim Meyering  <jim@meyering.net>
55358
55359         * lib/fts.c (fts_open): Tiny comment change.
55360
55361 2006-10-04  Bruno Haible  <bruno@clisp.org>
55362
55363         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
55364         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
55365         gl_LOCK_BODY.
55366         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
55367         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
55368         gl_LOCK_EARLY_BODY.
55369         (gl_LOCK): Require gl_LOCK_BODY.
55370
55371 2006-10-04  Bruno Haible  <bruno@clisp.org>
55372
55373         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
55374         (gl_oset_search_atleast): New declaration.
55375         (struct gl_oset_implementation): Add field 'search_atleast'.
55376         (gl_oset_search_atleast): New inline function.
55377         * lib/gl_oset.c (gl_oset_search_atleast): New function.
55378         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
55379         (gl_array_oset_implementation): Update.
55380         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
55381         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
55382         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
55383
55384 2006-10-04  Bruno Haible  <bruno@clisp.org>
55385
55386         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
55387
55388 2006-10-03  Bruno Haible  <bruno@clisp.org>
55389
55390         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
55391         from gl_avltreehash_list_implementation.
55392
55393 2006-10-03  Bruno Haible  <bruno@clisp.org>
55394
55395         * lib/gl_oset.c (gl_oset_add): Fix return type.
55396
55397 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
55398
55399         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
55400
55401 2006-10-02  Eric Blake  <ebb9@byu.net>
55402
55403         * modules/strnlen (Depends-on): Add extensions.
55404
55405 2006-10-02  Eric Blake  <ebb9@byu.net>
55406
55407         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
55408         definition in 2.60+.
55409
55410 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
55411
55412         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
55413         checks.
55414
55415 2006-10-02  Bruno Haible  <bruno@clisp.org>
55416
55417         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
55418         to the AUTOMAKE_OPTIONS.
55419         Reported by Jim Meyering.
55420
55421 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55422
55423         Work around bug in Solaris 10 /proc file system:
55424         /proc/self/fd/NNN/.. isn't the parent directory of
55425         the directory whose file descriptor is NNN.  This needs to
55426         be worked around at run time, not compile time, since a
55427         program might be built on Solaris 8, where things work, and
55428         run on Solaris 10.
55429         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
55430         to use the following interface instead:
55431         (OPENAT_BUFFER_SIZE): New macro.
55432         (openat_proc_name): New function.
55433         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
55434         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
55435         Likewise.
55436         * lib/openat-proc.c: New file.
55437         * modules/openat (Files): Add lib/openat-proc.c.
55438         (Depends-on): Add same-inode, stdbool.
55439         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
55440
55441 2006-09-29  Bruno Haible  <bruno@clisp.org>
55442
55443         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
55444         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
55445         argument. Set stdout_closed before testing for ferror, not after.
55446         (fwriteerror, fwriteerror_no_ebadf): New functions.
55447
55448 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55449
55450         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
55451
55452 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
55453
55454         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
55455         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
55456
55457 2006-09-28  Jim Meyering  <jim@meyering.net>
55458
55459         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
55460         Include <unistd.h>.
55461
55462 2006-09-28  Bruno Haible  <bruno@clisp.org>
55463
55464         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
55465         * modules/linkedhash-list (Depends-on): Likewise.
55466         * modules/rbtreehash-list (Depends-on): Likewise.
55467
55468 2006-09-28  Bruno Haible  <bruno@clisp.org>
55469
55470         * lib/strndup.h: Simplify the redefinition of strndup.
55471         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
55472         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
55473
55474 2006-09-28  Bruno Haible  <bruno@clisp.org>
55475
55476         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
55477         * lib/gl_linkedhash_list.c: Likewise.
55478         * lib/gl_rbtreehash_list.c: Likewise.
55479
55480 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55481
55482         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
55483         getaddrinfo.
55484
55485         * lib/__fpending.h: Don't include <stdio_ext.h> unless
55486         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
55487         it causes <stdio_ext.h> to cause a compile-time error.
55488         Problem reported by Nelson H. F. Beebe.
55489         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
55490         of HAVE_DECL___PENDING.
55491
55492         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
55493         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
55494         declaration.
55495
55496 2006-09-27  Jim Meyering  <jim@meyering.net>
55497
55498         This file could end up with a definition for a function
55499         named __strndup, rather than rpl_strndup on a system with
55500         incomplete weak_alias support.
55501         * lib/strndup.c (strndup): Rename from __strndup.
55502         Remove #defines that used to map __strndup to strndup.
55503         Don't use K&R prototypes.
55504         Remove LIBC-related code, since this file is not sync'd with glibc.
55505         * lib/strndup.h: Revamp, accordingly.
55506         * m4/strndup.m4: Modernize.
55507
55508 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55509
55510         * modules/savewd (Depends-on): Add 'raise'.
55511         * lib/savewd.c: Include <signal.h>, for 'raise'.
55512
55513 2006-09-26  Jim Meyering  <jim@meyering.net>
55514
55515         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
55516         when we detect Darwin 8.7.0's acl_get_file bug.
55517         Rearrange to perform the new (below) run-test while $LIBS
55518         contains any acl-related library.  Set USE_ACL at the end.
55519         (gl_ACL_GET_FILE): New function.
55520
55521 2006-09-26  Eric Blake  <ebb9@byu.net>
55522
55523         * lib/verror.c: Include <config.h> unconditionally.
55524
55525 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
55526
55527         * modules/clock-time (Maintainer): Add self.
55528         * modules/getlogin_r (Depends-on): Add extensions.
55529
55530 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55531
55532         * modules/clock-time: New module.
55533         * modules/nanosleep (Depends-on): Add clock-time.
55534         * modules/gethrxtime (Depends-on): Likewise.
55535         * modules/gettime (Depends-on): Likewise.
55536         * modules/settime (Depends-on): Likewise.
55537
55538         * modules/fts-lgpl: Depend on openat.
55539         * modules/mkancesdirs: Depend on savewd.
55540         * modules/mkdir-p: Likewise.
55541
55542 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55543
55544         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
55545
55546         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
55547         `gl_have_arbitrary_file_name_length_limit' to
55548         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
55549         actually works between configure runs.
55550
55551 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55552             Bruno Haible  <bruno@clisp.org>
55553
55554         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
55555
55556 2006-09-25  Jim Meyering  <jim@meyering.net>
55557
55558         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
55559         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
55560
55561 2006-09-25  Eric Blake  <ebb9@byu.net>
55562
55563         * gnulib-tool (func_import, func_create_testdir): Fix typos in
55564         exec's in 2006-09-18 patch when shuffling fds.
55565
55566 2006-09-25  Bruno Haible  <bruno@clisp.org>
55567
55568         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
55569         Reported by Jim Meyering.
55570
55571 2006-09-24  Jim Meyering  <jim@meyering.net>
55572
55573         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
55574         compare a pointer against a literal "0".  That caused failures with
55575         at least HP-UX's hpcc.
55576
55577 2006-09-22  Simon Josefsson  <jas@extundo.com>
55578
55579         * modules/gc-sha1:
55580         * modules/gc-md4:
55581         * modules/gc-hmac-sha1:
55582         * modules/gc-hmac-md5:
55583         * modules/gc-des:
55584         * modules/gc-arcfour: Distribute more files.
55585
55586 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55587
55588         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
55589         (gl_linked_iterator_from_to): Initialize struct completely.
55590         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
55591         (gl_tree_iterator_from_to): Likewise
55592         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
55593         * lib/gl_array_list.c [lint] (gl_array_iterator)
55594         (gl_array_iterator_from_to): Likewise.
55595         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
55596         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
55597         (gl_carray_iterator_from_to): Likewise.
55598
55599         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
55600         * lib/md4.c (md4_process_block): Remove unused variable.
55601         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
55602         parentheses for clarity.
55603
55604 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55605
55606         * modules/bison-i18n (Depends-on): Add gettext.
55607
55608 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55609
55610         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
55611         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
55612         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
55613         also add missing comma that caused broken test.
55614         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
55615         stdlib.h, for `abort'.
55616         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
55617         variables.
55618         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
55619         include unistd.h if present, for `rmdir'.
55620         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
55621         variables.
55622         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
55623         in the process include standard headers for prototypes.
55624         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
55625         gets declared on GNU/Linux.
55626         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
55627         unistd.h, for `rmdir'.
55628         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
55629
55630         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
55631         always true.
55632         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
55633
55634         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
55635
55636 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55637
55638         * gnulib-tool (func_version): Create output all at once.  This
55639         may help avoid triggering unnecessary SIGPIPEs, and at any
55640         rate it doesn't hurt.
55641
55642 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55643             Bruno Haible  <bruno@clisp.org>
55644
55645         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
55646         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55647         * m4/signed.m4 (bh_C_SIGNED): Likewise.
55648
55649         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
55650         (gl_FUNC_VASPRINTF): Invoke it.
55651
55652 2006-09-22  Bruno Haible  <bruno@clisp.org>
55653
55654         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
55655         getloadavg.c as first argument.
55656
55657 2006-09-22  Bruno Haible  <bruno@clisp.org>
55658
55659         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
55660         at the beginning of the gl_INIT macro.
55661         * modules/getloadavg (configure.ac): Pass $gl_source_base to
55662         gl_GETLOADAVG.
55663
55664 2006-09-22  Bruno Haible  <bruno@clisp.org>
55665
55666         * gnulib-tool (func_create_megatestdir): Don't include the config-h
55667         module.
55668         Suggested by Ralf Wildenhues.
55669
55670 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55671
55672         Import this patch from libc:
55673
55674         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
55675
55676         * lib/regex_internal.c (re_string_reconstruct): Handle
55677         offset < pstr->valid_raw_len && pstr->offsets_needed case.
55678         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
55679         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
55680         re_string_context_at.
55681
55682         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
55683         now requires it.
55684         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
55685         gl_REGEX now does it for us.
55686         (gl_REGEX): Add test taken from
55687         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
55688
55689         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
55690         Check that large offsets work.  Modernize Autoconf usages.
55691         Prefer "yes" to mean a good thing rather than a bad.
55692         Don't put "#define mkstemp" in config.h, as this might interfere
55693         with standard system headers that "#define mkstemp mkstemp64".
55694
55695         * modules/mkstemp (Depends-on): Add extensions, so that
55696         mkstemp is visible on some platforms.
55697         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
55698         (Include): Change to "mkstemp.h" from <stdlib.h>.
55699         (Files): Add mkstemp.h.
55700
55701         * lib/mkstemp.h: New file, since some standard headers
55702         #define mkstemp.
55703         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
55704         Include "mkstemp.h".
55705         Make the _LIBC code resemble glibc original more,
55706         e.g., use K&R style.
55707         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
55708         (mkstemp): Remove, since mkstemp.h does this for us.
55709         * lib/stdlib--.h: Include mkstemp.h.
55710
55711         Import this patch from libc:
55712
55713         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55714
55715         * lib/tempname.c (__gen_tempname): Change attempts_min
55716         into a macro.  Use preprocessor to decide how to initialize
55717         attempts [Coverity CID 67].
55718
55719 2006-09-20  Bruno Haible  <bruno@clisp.org>
55720
55721         * lib/mkdtemp.c: Import from libc.
55722         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55723                 * sysdeps/posix/tempname.c (__gen_tempname): Change
55724                 attempts_min into a macro.  Use preprocessor to decide how to
55725                 initialize attempts [Coverity CID 67].
55726         2001-11-27  Paul Eggert  <eggert@twinsun.com>
55727                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
55728                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
55729
55730 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55731
55732         * gnulib-tool (func_exit): New function, to allow to pass the
55733         exit status portably through the trap.  Use everywhere.
55734         (--help, --version): Signal a write error.
55735         (trap): catch SIGPIPE, for write errors.
55736         Exit at the end of the trap, with the correct exit status.
55737
55738 2006-09-19  Karl Berry  <karl@gnu.org>
55739
55740         * doc/gnulib.texi: note about the license texinfo files.
55741
55742 2006-09-19  Eric Blake  <ebb9@byu.net>
55743
55744         * gnulib-tool: Avoid space-tab.
55745
55746 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55747
55748         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
55749         that prevented coreutils 6.1 from building.  Problem reported
55750         by Petter Reinholdtsen.
55751
55752 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55753
55754         * gnulib-tool (avoidlist): Fix typo that broke options like
55755         --avoid=lock that are used by coreutils bootstrap.
55756
55757 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
55758
55759         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
55760         more systematically.
55761
55762 2006-09-18  Jim Meyering  <jim@meyering.net>
55763
55764         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
55765
55766 2006-09-18  Bruno Haible  <bruno@clisp.org>
55767
55768         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
55769
55770 2006-09-18  Bruno Haible  <bruno@clisp.org>
55771
55772         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
55773         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
55774         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
55775         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
55776         * m4/gettext.m4: Require autoconf >= 2.52.
55777         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
55778         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
55779         of gl_cv_header_inttypes_h.
55780
55781 2006-09-18  Bruno Haible  <bruno@clisp.org>
55782
55783         * lib/javaversion.c: Include configmake.h.
55784
55785 2006-09-18  Bruno Haible  <bruno@clisp.org>
55786
55787         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
55788         avoid that the while loops be executed in a subshell.
55789
55790 2006-09-18  Bruno Haible  <bruno@clisp.org>
55791
55792         * MODULES.html.sh (func_module): Break long lines.
55793         Suggested by Bruce Korb <bkorb@gnu.org>.
55794
55795 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55796
55797         Speed up by a factor of 1.12.
55798         * gnulib-tool (nl): New variable.
55799         (func_import): Rewrite include directive extraction to only read each
55800         directive once.
55801
55802 2006-09-17  Bruno Haible  <bruno@clisp.org>
55803
55804         * modules/javaversion (Makefile.am): Remove DEFS setting.
55805         (Depends-on): Add configmake, for PKGDATADIR definition.
55806
55807 2006-09-17  Bruno Haible  <bruno@clisp.org>
55808
55809         * gnulib-tool (func_create_testdir): Rewrite all files at once.
55810
55811 2006-09-17  Bruno Haible  <bruno@clisp.org>
55812
55813         * gnulib-tool (func_append): New function, stolen from libtool.m4.
55814         (func_modules_transitive_closure, func_modules_add_dummy,
55815         func_modules_to_filelist, func_import, func_create_testdir,
55816         func_create_megatestdir, ...): Use it wherever possible.
55817         Suggested by Ralf Wildenhues.
55818
55819 2006-09-16  Karl Berry  <karl@gnu.org>
55820
55821         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
55822         to avoid sectioning errors.
55823         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
55824         [ifinfo]: blank line after @center-ed titles.
55825         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
55826         Spell FSF address consistently with others.
55827         (These changes approved by rms.)
55828
55829 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55830
55831         Speed up by a factor of 1.61.
55832         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
55833         already checked module names again.
55834
55835 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55836
55837         Speed up by a factor of 1.13.
55838         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
55839         for new_files, and the input to func_add_or_update.
55840
55841 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55842
55843         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
55844         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
55845
55846 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55847
55848         * modules/mkancesdirs (Depends-on): Add fcntl.
55849         * modules/savewd: New file.
55850         * MODULES.html.sh (File system functions): Add savewd.
55851
55852         * modules/configmake (Makefile.am): Add support for the
55853         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
55854
55855 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55856
55857         * m4/savewd.m4: New file.
55858
55859 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55860
55861         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
55862         (dirchownmod): New arg FD.  All callers changed.
55863         Use FD rather than opening the directory ourself, as opening is
55864         now the caller's responsibility.
55865         * lib/dirchownmod.h: Likewise.
55866         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
55867         hosts that require <sys/types.h> before <sys/stat.h>.  Include
55868         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
55869         (test_dir): Remove.
55870         (mkancesdirs): Return length of prefix of FILE that has already
55871         been made, or -2 if there is a child doing the work.  Redo
55872         algorithm so that it is O(N) rather than O(N**2).  Optimize away
55873         ".", and treat ".." specially since it might stray back into
55874         already-created areas.  Use a subprocess if necessary.  New arg
55875         WD; all users changed.  MAKE_DIR function should now return 1
55876         if it creates a directory that is not readable.  Return -2 if
55877         a child process is spun off.
55878         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
55879         Adjust signature to match code.
55880         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
55881         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
55882         all users changed.
55883         * lib/savewd.c, lib/savewd.h: New files.
55884
55885 2006-09-15  Jim Meyering  <jim@meyering.net>
55886
55887         * modules/rename-dest-slash: New module.
55888         * MODULES.html.sh (posix_compat): Add it here.
55889
55890         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
55891
55892 2006-09-15  Jim Meyering  <jim@meyering.net>
55893
55894         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
55895         file.
55896
55897         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
55898
55899 2006-09-15  Jim Meyering  <jim@meyering.net>
55900
55901         * lib/rename-dest-slash.c (has_trailing_slash): Use
55902         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
55903         (rpl_rename_dest_slash): Perform the cheaper trailing slash
55904         test before testing whether SRC is a directory.
55905         Suggestions from Bruno Haible.
55906
55907         Avoid a warning about an unused variable.
55908         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
55909         into the #ifdef block where it's used.
55910
55911         * lib/rename-dest-slash.c: New file.
55912
55913 2006-09-14  Bruno Haible  <bruno@clisp.org>
55914
55915         * lib/allocsa.c: Include <config.h> unconditionally.
55916         * lib/asnprintf.c: Likewise.
55917         * lib/asprintf.c: Likewise.
55918         * lib/c-strcasecmp.c: Likewise.
55919         * lib/c-strcasestr.c: Likewise.
55920         * lib/c-strncasecmp.c: Likewise.
55921         * lib/c-strstr.c: Likewise.
55922         * lib/classpath.c: Likewise.
55923         * lib/clean-temp.c: Likewise.
55924         * lib/concatpath.c: Likewise.
55925         * lib/copy-file.c: Likewise.
55926         * lib/csharpcomp.c: Likewise.
55927         * lib/csharpexec.c: Likewise.
55928         * lib/execute.c: Likewise.
55929         * lib/fatal-signal.c: Likewise.
55930         * lib/findprog.c: Likewise.
55931         * lib/fwriteerror.c: Likewise.
55932         * lib/gl_array_list.c: Likewise.
55933         * lib/gl_array_oset.c: Likewise.
55934         * lib/gl_avltree_list.c: Likewise.
55935         * lib/gl_avltree_oset.c: Likewise.
55936         * lib/gl_avltreehash_list.c: Likewise.
55937         * lib/gl_carray_list.c: Likewise.
55938         * lib/gl_linked_list.c: Likewise.
55939         * lib/gl_linkedhash_list.c: Likewise.
55940         * lib/gl_list.c: Likewise.
55941         * lib/gl_oset.c: Likewise.
55942         * lib/gl_rbtree_list.c: Likewise.
55943         * lib/gl_rbtree_oset.c: Likewise.
55944         * lib/gl_rbtreehash_list.c: Likewise.
55945         * lib/imaxabs.c: Likewise.
55946         * lib/imaxdiv.c: Likewise.
55947         * lib/javacomp.c: Likewise.
55948         * lib/javaexec.c: Likewise.
55949         * lib/javaversion.c: Likewise.
55950         * lib/linebreak.c: Likewise.
55951         * lib/localcharset.c: Likewise.
55952         * lib/lock.c: Likewise.
55953         * lib/mbchar.c: Likewise.
55954         * lib/mbswidth.c: Likewise.
55955         * lib/mkdtemp.c: Likewise.
55956         * lib/pipe.c: Likewise.
55957         * lib/printf-args.c: Likewise.
55958         * lib/printf-parse.c: Likewise.
55959         * lib/progname.c: Likewise.
55960         * lib/progreloc.c: Likewise.
55961         * lib/readlink.c: Likewise.
55962         * lib/sh-quote.c: Likewise.
55963         * lib/stpcpy.c: Likewise.
55964         * lib/stpncpy.c: Likewise.
55965         * lib/strcasecmp.c: Likewise.
55966         * lib/strcasestr.c: Likewise.
55967         * lib/strcspn.c: Likewise.
55968         * lib/striconv.c: Likewise.
55969         * lib/strncasecmp.c: Likewise.
55970         * lib/strnlen1.c: Likewise.
55971         * lib/strstr.c: Likewise.
55972         * lib/strtok_r.c: Likewise.
55973         * lib/tls.c: Likewise.
55974         * lib/tmpdir.c: Likewise.
55975         * lib/unicodeio.c: Likewise.
55976         * lib/unsetenv.c: Likewise.
55977         * lib/vasnprintf.c: Likewise.
55978         * lib/vasprintf.c: Likewise.
55979         * lib/wait-process.c: Likewise.
55980         * lib/xallocsa.c: Likewise.
55981         * lib/xsetenv.c: Likewise.
55982         * lib/xstriconv.c: Likewise.
55983
55984 2006-09-13  Simon Josefsson  <jas@extundo.com>
55985
55986         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
55987         that internally, suggested by Ralf Wildenhues
55988         <Ralf.Wildenhues@gmx.de>.
55989
55990 2006-09-13  Simon Josefsson  <jas@extundo.com>
55991
55992         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
55993         @LIBOBJS@.
55994         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55995
55996 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55997
55998         * lib/_fpending.c: Include <config.h> unconditionally, since we no
55999         longer worry about uses that don't define HAVE_CONFIG_H.
56000         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
56001         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
56002         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
56003         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
56004         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
56005         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
56006         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
56007         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
56008         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
56009         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
56010         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
56011         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
56012         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
56013         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
56014         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
56015         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
56016         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
56017         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
56018         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
56019         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
56020         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
56021         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
56022         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
56023         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
56024         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
56025         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
56026         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
56027         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
56028         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
56029         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
56030         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
56031         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
56032         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
56033         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
56034         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
56035         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
56036         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
56037         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
56038         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
56039         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
56040         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
56041         Likewise.
56042
56043 2006-09-13  Eric Blake  <ebb9@byu.net>
56044
56045         * lib/getopt.c: Fix typo in last commit.
56046
56047 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56048
56049         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
56050         dgettext.
56051
56052 2006-09-12  Jim Meyering  <jim@meyering.net>
56053
56054         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
56055         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
56056         Reported by Nelson H. F. Beebe.
56057
56058 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56059
56060         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
56061         program_invocation_name and program_invocation_short_name are
56062         initialized.
56063         * lib/argp-namefrob.h: Move declarations of program_invocation_name
56064         and program_invocation_short_name to argp.h, so they are visible
56065         to user programs.
56066         * lib/argp.h: Likewise
56067
56068 2006-09-10  Bruno Haible  <bruno@clisp.org>
56069
56070         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56071         m4/inttypes_h.m4, m4/uintmax_t.m4.
56072
56073 2006-09-10  Bruno Haible  <bruno@clisp.org>
56074
56075         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
56076         gl_AC_TYPE_UINTMAX_T.
56077
56078 2006-09-10  Bruno Haible  <bruno@clisp.org>
56079
56080         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
56081
56082 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56083
56084         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
56085         convention.  Text proposed by Bruno Haible.
56086         (struct argp_option): Document the use of N_() wrappers.
56087
56088         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
56089         '\v', and translate the two parts separately, instead of feeding
56090         the whole string to gettext.  This allows to exclude
56091         '\v' from the strings visible to the translator by writing doc
56092         strings as N_("..") "\v" N_("..").
56093
56094 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
56095
56096         * config/srclist.txt: Undo latest change; the bug was fixed.
56097
56098 2006-09-09  Bruno Haible  <bruno@clisp.org>
56099
56100         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
56101         assignments if building a library without libtool.
56102         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
56103         in func_emit_lib_Makefile_am.
56104         (func_import): When building a static library libfoo.a, arrange to
56105         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
56106         (func_create_testdir): Likewise.
56107         * modules/gc (configure.ac, Makefile.am): If building statically,
56108         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
56109         * modules/iconvme (configure.ac, Makefile.am): Likewise.
56110         * modules/striconv (configure.ac, Makefile.am): Likewise.
56111         Based on a suggestion by Ralf Wildenhues.
56112
56113 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56114
56115         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56116         Check for unistd.h too, since Autoconf doesn't assume POSIX.
56117         Also:
56118
56119         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56120         Add year_2050_test to catch glibc bug 2821
56121         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56122
56123         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56124         Prefer #ifdef to #if.
56125
56126         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
56127         Return from 'main' instead of calling 'exit'.
56128
56129 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56130
56131         * lib/mktime.c (guess_time_tm): Fix bug where mktime
56132         returned the maximum time_t value rather than (time_t) -1.
56133         Problem originally reported by William Bardwell
56134         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56135
56136         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56137         Moved to here ...
56138         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56139         ... from here.
56140
56141 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56142
56143         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
56144         2821 is fixed.
56145
56146 2006-09-08  Jim Meyering  <jim@meyering.net>
56147
56148         Don't make generated files read-only.  That would bother too many
56149         people.  However, do retain the ability to work when targets are
56150         read-only: remove the destination and temporary files before writing
56151         them (when generated via sed or echo), or by using the -f option for
56152         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
56153         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56154         * modules/byteswap, modules/configmake, modules/fcntl:
56155         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56156         * modules/localcharset, modules/netinet_in, modules/poll:
56157         * modules/stdbool, modules/stdint, modules/sys_select:
56158         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56159
56160 2006-09-08  Jim Meyering  <jim@meyering.net>
56161
56162         Avoid new build failure on FreeBSD 6.0.
56163         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
56164         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
56165         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
56166
56167 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56168
56169         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
56170
56171 2006-09-07  Jim Meyering  <jim@meyering.net>
56172
56173         Fix global typo in last change: use chmod u-w, not chmod u-x.
56174         Spotted by Paul Eggert and Bruce Korb.
56175         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56176         * modules/byteswap, modules/configmake, modules/fcntl:
56177         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56178         * modules/localcharset, modules/netinet_in, modules/poll:
56179         * modules/stdbool, modules/stdint, modules/sys_select:
56180         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56181
56182 2006-09-06  Jim Meyering  <jim@meyering.net>
56183
56184         Make generated files be read-only.
56185         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
56186         Ensure that each generated file is now read-only.
56187         * modules/argz: Likewise.
56188         * modules/arpa_inet: Likewise.
56189         * modules/byteswap: Likewise.
56190         * modules/configmake: Likewise.
56191         * modules/fcntl: Likewise.
56192         * modules/fnmatch: Likewise.
56193         * modules/getopt: Likewise.
56194         * modules/glob: Likewise.
56195         * modules/inttypes: Likewise.
56196         * modules/netinet_in: Likewise.
56197         * modules/poll: Likewise.
56198         * modules/stdbool: Likewise.
56199         * modules/stdint: Likewise.
56200         * modules/sys_select: Likewise.
56201         * modules/sys_socket: Likewise.
56202         * modules/sys_stat: Likewise.
56203         * modules/sysexits: Likewise.
56204         * modules/localcharset: Same as above, but continue using temporary
56205         file named "t-$@" (why different?) rather than the "$@-t" used
56206         everywhere else.
56207
56208         * modules/sysexits (Makefile.am): Replace literal occurrences
56209         of "sysexit.h" more readable, and more consistent, "$@".
56210
56211 2006-09-06  Bruno Haible  <bruno@clisp.org>
56212
56213         * modules/striconv: New file.
56214         * modules/xstriconv: New file.
56215         * MODULES.html.sh (Internationalization functions): Add striconv,
56216         xstriconv.
56217
56218 2006-09-06  Bruno Haible  <bruno@clisp.org>
56219
56220         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
56221         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
56222         not using libtool correctly.
56223
56224 2006-09-06  Bruno Haible  <bruno@clisp.org>
56225
56226         * lib/striconv.h: New file.
56227         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
56228         iconvstring.c.
56229         * lib/xstriconv.h: New file.
56230         * lib/xstriconv.c: New file.
56231
56232 2006-09-06  Bruno Haible  <bruno@clisp.org>
56233
56234         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56235         lib_..._LDFLAGS.
56236
56237 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56238
56239         * lib/argz_.h: Sync from Libtool.
56240
56241         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
56242                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56243
56244         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
56245
56246 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56247
56248         * modules/trim: New file.
56249
56250 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56251
56252         * lib/trim.h: New file.
56253         * lib/trim.c: New file.
56254
56255 2006-09-05  Bruno Haible  <bruno@clisp.org>
56256
56257         * MODULES.html.sh (String handling): Add trim.
56258
56259 2006-09-04  Karl Berry  <karl@gnu.org>
56260
56261         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
56262         until next release.
56263
56264 2006-09-03  Bruno Haible  <bruno@clisp.org>
56265
56266         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
56267         correctly.
56268
56269 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56270
56271         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
56272         not gl_GETLOADAVG.  Omit unneeded semicolons.
56273         Problems reported by Ralf Wildenhues in
56274         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56275         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
56276         at the end, which is the usual gnulib style.
56277
56278         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
56279         of doing all the work ourselves.
56280         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
56281         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
56282
56283 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56284
56285         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
56286         Problem reported by Ralf Wildenhues in
56287         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56288
56289         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
56290         HAVE_STRUCT_STATFS_F_FSTYPENAME.
56291
56292 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56293
56294         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
56295         yesterday's patch by changing test -n to test -z.
56296
56297 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56298
56299         * modules/getloadavg (Files): Add m4/getloadavg.m4.
56300         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
56301         the former is now obsolescent.
56302
56303         * modules/chdir-long (Depends-on): Add fcntl.
56304
56305 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56306
56307         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
56308         obsolescent, and programs should use gnulib instead.
56309         * m4/getloadavg.m4: New file, with contents taken from Autoconf
56310         but with prefixes changed.
56311
56312 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56313
56314         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
56315         or stdbool.h, because they might not exist while configuring.
56316
56317         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
56318         Don't include unistd.h or limits.h; not needed, since chdir-long.h
56319         does that for us.
56320         (O_DIRECTORY): Remove.
56321
56322 2006-08-31  Eric Blake  <ebb9@byu.net>
56323
56324         * gnulib-tool: Don't let emacs change spaces to TAB.
56325
56326 2006-08-31  Bruno Haible  <bruno@clisp.org>
56327
56328         * gnulib-tool: When calling func_import more than once, do it in a
56329         subshell.
56330         Reported by Eric Blake <ebb9@byu.net>.
56331
56332 2006-08-31  Bruno Haible  <bruno@clisp.org>
56333
56334         * gnulib-tool (nl): Remove variable.
56335         (sed_transform_lib_file): Use more robust test for config-h module.
56336         (func_import): Fix typo in 2006-08-25 patch.
56337
56338 2006-08-31  Bruno Haible  <bruno@clisp.org>
56339
56340         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
56341         specified, augment Makefile.am variables instead of assigning them.
56342
56343 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56344
56345         Work around a bug in both the Linux and SunOS 64-bit kernels:
56346         nanosleep mishandles sleeps for longer than 2**31 seconds.
56347         Problem reported by Frank v Waveren in
56348         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
56350         Check for nanosleep bug.
56351         (LIB_NANOSLEEP): Append clock_gettime library if needed.
56352
56353 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56354
56355         Work around a bug in both the Linux and SunOS 64-bit kernels:
56356         nanosleep mishandles sleeps for longer than 2**31 seconds.
56357         Problem reported by Frank v Waveren in
56358         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56359         * lib/nanosleep.c (BILLION): New constant.
56360         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
56361         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
56362         implementation.
56363
56364 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56365
56366         * modules/nanosleep (Depends-on): Add gettime.
56367
56368 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56369         and Simon Josefsson  <jas@extundo.com>
56370         and Oskar Liljeblad  <oskar@osk.mine.nu>
56371
56372         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
56373         * gnulib-tool (func_import): New license type 'unmodifiable license
56374         text'.
56375         * modules/fdl: Use it.  Longer description.
56376         * module/gpl, module/lgpl: New files.
56377
56378 2006-08-30  Jim Meyering  <jim@meyering.net>
56379
56380         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
56381         shadowing the parameter.
56382
56383 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56384
56385         Sync from Libtool:
56386
56387         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56388
56389         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
56390         sharing with gnulib.  Report by Eric Blake.
56391
56392 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56393
56394         * modules/isapipe: New file.
56395         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
56396
56397 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56398
56399         * modules/configmake (Makefile.am): Add a comment, and omit
56400         the CONFIGMAKE_ prefix from generated macro names.  Suggested
56401         by Bruno Haible.
56402
56403 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56404
56405         * m4/isapipe.m4: New file.
56406
56407 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56408
56409         * lib/isapipe.c, lib/isapipe.h: New files.
56410
56411 2006-08-29  Jim Meyering  <jim@meyering.net>
56412
56413         * modules/configmake (Makefile.am): Make configmake.h depend on
56414         Makefile.  Otherwise, a stale configmake.h could hang around.
56415
56416 2006-08-29  Eric Blake  <ebb9@byu.net>
56417
56418         * lib/error.c (error_at_line, print_errno_message): Match libc, after
56419         resolution of upstream bug 3044.
56420
56421 2006-08-29  Bruno Haible  <bruno@clisp.org>
56422
56423         * modules/localcharset (Depends-on): Add configmake.
56424         (Makefile.am): Remove setting of LIBDIR through DEFS.
56425
56426 2006-08-29  Bruno Haible  <bruno@clisp.org>
56427
56428         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
56429         defined.
56430
56431 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56432
56433         * modules/fcntl: New file.
56434         * modules/chdir-safer (Depends-on): Add fcntl.
56435         * modules/fts: Likewise.
56436         * modules/mkdir-p: Likewise.
56437
56438         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
56439         This undoes the most recent change, since we're now addressing the
56440         problem in a different way.
56441
56442         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
56443         into output, since the output might be called Makefile.am even
56444         if $makefile_name is something different.
56445         (func_import): Use $makefile_am rather than
56446         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
56447         empty.
56448
56449         * modules/inttypes (Files): Add m4/inttypes-h.m4.
56450
56451 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56452
56453         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
56454         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
56455         recent change to stdint.m4, since we're now addressing the problem in a
56456         different way.
56457
56458 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56459
56460         * m4/fcntl_h.m4: New file.
56461
56462 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56463
56464         * lib/fcntl_.h: New file.
56465         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
56466         the fcntl module.
56467         * lib/dirchownmod.c: Likewise.
56468         * lib/fts.c: Likewise.
56469
56470         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
56471         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
56472         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
56473         just before including <inttypes.h>, to avoid circular inclusion.
56474
56475 2006-08-28  Jim Meyering  <jim@meyering.net>
56476
56477         * doc/visibility.texi: Actually read and correct the grammar of the
56478         sentence affected by yesterday's change.
56479
56480 2006-08-28  Eric Blake  <ebb9@byu.net>
56481
56482         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
56483         needs wrapper.
56484
56485 2006-08-28  Eric Blake  <ebb9@byu.net>
56486
56487         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
56488
56489 2006-08-28  Eric Blake  <ebb9@byu.net>
56490
56491         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
56492
56493 2006-08-28  Bruno Haible  <bruno@clisp.org>
56494
56495         * modules/c-strstr: New file, from GNU gettext.
56496         * MODULES.html.sh (String handling): Add c-strstr.
56497
56498 2006-08-28  Bruno Haible  <bruno@clisp.org>
56499
56500         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
56501         macros.
56502         Reported by Eric Blake.
56503
56504 2006-08-28  Bruno Haible  <bruno@clisp.org>
56505
56506         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
56507         (VASNPRINTF): Return a string of length > INT_MAX without failing.
56508         * lib/vasprintf.c: Include errno.h, limits.h.
56509         (EOVERFLOW): New fallback definition.
56510         (vasprintf): Test here whether the string length is > INT_MAX.
56511         * lib/vsnprintf.c: Include errno.h, limits.h.
56512         (EOVERFLOW): New fallback definition.
56513         (vsnprintf): Fix bug when generated string was too long for the buffer.
56514         Test here whether the string length is > INT_MAX.
56515
56516 2006-08-28  Bruno Haible  <bruno@clisp.org>
56517
56518         * lib/inttypes_.h (SCNX*): Remove definitions.
56519         Reported by Eric Blake.
56520
56521 2006-08-28  Bruno Haible  <bruno@clisp.org>
56522
56523         * lib/c-strstr.h: New file, from GNU gettext.
56524         * lib/c-strstr.c: New file, from GNU gettext.
56525
56526 2006-08-28  Bruno Haible  <bruno@clisp.org>
56527
56528         * gnulib-tool: Reorder some statements.
56529
56530 2006-08-28  Bruno Haible  <bruno@clisp.org>
56531
56532         * gnulib-tool: New option --makefile-name.
56533         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
56534         $makefile_name.
56535         (func_import): Write $makefile_name to the cache file, and read it from
56536         there unless explicitly specified. Use $makefile_name as file name
56537         instead of Makefile.am. Adjust the recommendations accordingly.
56538
56539 2006-08-28  Bruno Haible  <bruno@clisp.org>
56540
56541         * gnulib-tool (func_verify_module): Check against misapplying patch.
56542
56543 2006-08-28  Bruno Haible  <bruno@clisp.org>
56544
56545         * gnulib-tool (func_relativize, func_relconcat): New functions.
56546         Give an error if --local-dir is given with --update.
56547         Remove trailing slashes from $local_gnulib_dir.
56548         (func_import): Store the relativized $local_gnulib_dir in
56549         gnulib-cache.m4, and read it from there if not specified explicitly.
56550
56551 2006-08-28  Bruno Haible  <bruno@clisp.org>
56552
56553         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
56554         is the current directory. Respect also $local_gnulib_dir.
56555
56556 2006-08-28  Bruno Haible  <bruno@clisp.org>
56557             Simon Josefsson  <jas@extundo.com>
56558
56559         BeOS portability.
56560         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
56561
56562 2006-08-27  Jim Meyering  <jim@meyering.net>
56563
56564         * doc/visibility.texi: Remove duplicate word: "pointer".
56565
56566 2006-08-26  Bruno Haible  <bruno@clisp.org>
56567
56568         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
56569         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
56570         (Makefile.am): Create inttypes.h from inttypes_.h.
56571         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
56572
56573         * modules/imaxabs: New file.
56574
56575         * modules/imaxdiv: New file.
56576
56577 2006-08-26  Bruno Haible  <bruno@clisp.org>
56578
56579         * m4/inttypes.m4: New file.
56580         * m4/_inttypes_h.m4: Remove file.
56581         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
56582         PRI_MACROS_BROKEN.
56583         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
56584
56585         * m4/imaxabs.m4: New file.
56586
56587         * m4/imaxdiv.m4: New file.
56588
56589 2006-08-26  Bruno Haible  <bruno@clisp.org>
56590
56591         * lib/inttypes_.h: New file.
56592         * lib/inttypes.h: Remove file.
56593         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
56594
56595         * lib/imaxabs.c: New file.
56596
56597         * lib/imaxdiv.c: New file.
56598
56599 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56600
56601         New config-h module, so that "make" output needn't be cluttered
56602         by -DHAVE_CONFIG_H.
56603         * MODULES.html.sh (Support for building libraries and executables):
56604         Add config-h.
56605         * modules/config-h: New file.
56606         * gnulib-tool (nl, sed_transform_lib_file): New vars.
56607         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
56608         the config-h module is used.
56609
56610         New configmake module, so that "make" output needn't be cluttered
56611         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
56612         * MODULES.html.sh (Support for building libraries and executables):
56613         Add configmake.
56614         * modules/configmake: New file.
56615
56616 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56617
56618         * m4/config-h.m4: New file.
56619
56620 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56621
56622         * config/srclist.txt: Add elisp-comp.
56623
56624 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56625
56626         * MODULES.html.sh (Support for building libraries and executables):
56627         Add elisp-comp.
56628         * build-aux/elisp-comp: New file.
56629         * modules/elisp-comp: New file.
56630
56631 2006-08-24  Bruno Haible  <bruno@clisp.org>
56632
56633         * gnulib-tool (func_create_testdir): Use non-default values of
56634         sourcebase and m4base.
56635
56636 2006-08-24  Bruno Haible  <bruno@clisp.org>
56637
56638         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
56639         HTML structure.
56640
56641 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56642
56643         * modules/openat (Depends-on): Add lchown.
56644
56645 2006-08-23  Bruno Haible  <bruno@clisp.org>
56646
56647         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
56648         of gl_LOCK_EARLY instead of gl_LOCK.
56649
56650 2006-08-23  Bruno Haible  <bruno@clisp.org>
56651
56652         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
56653         on OSF/1 to no.
56654         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
56655
56656 2006-08-23  Bruno Haible  <bruno@clisp.org>
56657
56658         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
56659         as unusable.
56660
56661         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
56662         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
56663         (gl_LOCK): New macro.
56664
56665 2006-08-22  Simon Josefsson  <jas@extundo.com>
56666
56667         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
56668         to md5 module.
56669
56670 2006-08-22  Simon Josefsson  <jas@extundo.com>
56671
56672         * MODULES.html.sh: Add "Support for maintaining and release
56673         projects".
56674
56675         * build-aux/gnupload: New file, from coreutils.
56676
56677 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56678
56679         Avoid the need for AC_LIBSOURCES in m4 macros.
56680         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
56681         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
56682         * modules/check-version (EXTRA_DIST): Add check-version.h.
56683         * modules/crc (EXTRA_DIST): Add crc.h.
56684         * modules/des (EXTRA_DIST): Add des.h.
56685         * modules/gc (EXTRA_DIST): Add gc.h.
56686         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
56687         * modules/getline (EXTRA_DIST): Add getline.h.
56688         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
56689         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
56690         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
56691         * modules/md2 (EXTRA_DIST): Add md2.h.
56692         * modules/md4 (EXTRA_DIST): Add md4.h.
56693         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
56694         * modules/read-file (EXTRA_DIST): Add read-file.h.
56695         * modules/readline (EXTRA_DIST): Add readline.h.
56696         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
56697         rijndael-api-fst.h.
56698
56699 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56700
56701         * m4/rijndael.m4 (gl_ARCFOUR):
56702         * m4/arctwo.m4 (gl_ARCTWO):
56703         * m4/check-version.m4 (gl_CHECK_VERSION):
56704         * m4/crc.m4 (gl_CRC):
56705         * m4/des.m4 (gl_DES):
56706         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
56707         * m4/gc.m4 (gl_GC):
56708         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
56709         * m4/getline.m4 (gl_FUNC_GETLINE):
56710         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
56711         * m4/hmac-md5.m4 (gl_HMAC_MD5):
56712         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
56713         * m4/md2.m4 (gl_MD2):
56714         * m4/md4.m4 (gl_MD4):
56715         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
56716         * m4/read-file.m4 (gl_FUNC_READ_FILE):
56717         * m4/readline.m4 (gl_FUNC_READLINE):
56718         * m4/rijndael.m4 (gl_RIJNDAEL):
56719         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56720         to get the necessary .h files and whatnot.
56721
56722 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56723
56724         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
56725         gnulib rather than the other way around.
56726         * config/srclistvars.sh (COREUTILS): Remove.
56727
56728 2006-08-22  Jim Meyering  <jim@meyering.net>
56729
56730         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
56731
56732         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
56733
56734 2006-08-22  Eric Blake  <ebb9@byu.net>
56735
56736         * modules/regexprops-generic: New file.
56737         * MODULES.html.sh (Support for building documentation): List it.
56738
56739 2006-08-22  Eric Blake  <ebb9@byu.net>
56740
56741         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
56742         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
56743         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
56744         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
56745
56746 2006-08-22  Bruno Haible  <bruno@clisp.org>
56747
56748         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
56749         and lib_LTLIBRARIES like the other lib_* variables.
56750
56751 2006-08-22  Bruno Haible  <bruno@clisp.org>
56752
56753         * build-aux/x-to-1.in: New file, from GNU gettext.
56754
56755 2006-08-22  Bruno Haible  <bruno@clisp.org>
56756
56757         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
56758         <utmpx.h> exists.
56759
56760 2006-08-22  Bruno Haible  <bruno@clisp.org>
56761
56762         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
56763         <utmpx.h> exists.
56764
56765 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56766
56767         BeOS portability.
56768         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
56769         exist.
56770         Problem reported by Bruno Haible.
56771
56772 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56773
56774         Avoid the need for AC_LIBSOURCES in m4 macros.
56775         * modules/acl (EXTRA_DIST): Add acl.h.
56776         * modules/argmatch (Files): Add m4/argmatch.m4.
56777         (configure.ac): Add gl_ARGMATCH.
56778         (EXTRA_DIST): Renamed from lib_SOURCES, for
56779         consistency with the other modules.  Remove argmatch.c.
56780         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
56781         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
56782         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
56783         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
56784         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
56785         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
56786         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
56787         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
56788         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
56789         * modules/closeout (EXTRA_DIST): Add closeout.h.
56790         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
56791         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
56792         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
56793         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
56794         dirname.h; remove basename.c and stripslash.c.
56795         * modules/exclude (EXTRA_DIST): Add exclude.h.
56796         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
56797         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
56798         * modules/file-type (EXTRA_DIST): Add file-type.h.
56799         * modules/filemode (EXTRA_DIST): Add filemode.h.
56800         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
56801         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56802         * modules/fpending (EXTRA_DIST): Add __fpending.h.
56803         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
56804         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
56805         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
56806         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
56807         * modules/getdate (EXTRA_DIST): Add getdate.c.
56808         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
56809         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
56810         * modules/getpass (EXTRA_DIST): Add getpass.h.
56811         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
56812         * modules/group-member (EXTRA_DIST): Add group-member.h.
56813         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
56814         * modules/hash (EXTRA_DIST): Add hash.h.
56815         * modules/human (EXTRA_DIST): Add human.h.
56816         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
56817         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
56818         * modules/lchown (EXTRA_DIST): Add lchown.h.
56819         * modules/long-options (EXTRA_DIST): Add long-options.h.
56820         * modules/lstat (EXTRA_DIST): Add lstat.h.
56821         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
56822         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
56823         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
56824         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
56825         * modules/memxor (EXTRA_DIST): Add memxor.h.
56826         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
56827         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
56828         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
56829         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
56830         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
56831         * modules/physmem (EXTRA_DIST): Add physmem.h.
56832         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
56833         * modules/posixver (EXTRA_DIST): Add posixver.h.
56834         * modules/quote (EXTRA_DIST): Add quote.h.
56835         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
56836         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
56837         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
56838         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
56839         regex_internal.h regexec.c.
56840         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
56841         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
56842         * modules/same (EXTRA_DIST): Add same.h.
56843         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
56844         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
56845         * modules/savedir (EXTRA_DIST): Add savedir.h.
56846         * modules/sha1 (EXTRA_DIST): Add sha1.h.
56847         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
56848         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
56849         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
56850         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
56851         * modules/strdup (EXTRA_DIST): Add strdup.h.
56852         * modules/strftime (EXTRA_DIST): Add strftime.h.
56853         * modules/strndup (EXTRA_DIST): Add strndup.h.
56854         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
56855         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
56856         * modules/time_r (EXTRA_DIST): Add time_r.h.
56857         * modules/timespec (EXTRA_DIST): Add timespec.h.
56858         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56859         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
56860         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
56861         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
56862         * modules/userspec (EXTRA_DIST): Add userspec.h.
56863         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
56864         * modules/utimens (EXTRA_DIST): Add utimens.h.
56865         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
56866         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
56867         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
56868         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
56869         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
56870         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
56871         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
56872         * modules/yesno (EXTRA_DIST): Add yesno.h.
56873
56874 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56875
56876         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
56877
56878         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
56879         * m4/dev-ino.m4, same-inode.m4: Remove.
56880
56881         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
56882         * m4/acl.m4 (AC_FUNC_ACL):
56883         * m4/backupfile.m4 (gl_BACKUPFILE):
56884         * m4/c-strtod.m4 (gl_C99_STRTOLD):
56885         * m4/canon-host.m4 (gl_CANON_HOST):
56886         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56887         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
56888         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
56889         * m4/cloexec.m4 (gl_CLOEXEC):
56890         * m4/close-stream.m4 (gl_CLOSE_STREAM):
56891         * m4/closeout.m4 (gl_CLOSEOUT):
56892         * m4/dirfd.m4 (gl_FUNC_DIRFD):
56893         * m4/dirname.m4 (gl_DIRNAME):
56894         * m4/exclude.m4 (gl_EXCLUDE):
56895         * m4/exitfail.m4 (gl_EXITFAIL):
56896         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
56897         * m4/file-type.m4 (gl_FILE_TYPE):
56898         * m4/filemode.m4 (gl_FILEMODE):
56899         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
56900         * m4/fpending.m4 (gl_FUNC_FPENDING):
56901         * m4/fprintftime.m4 (gl_FPRINTFTIME):
56902         * m4/fts.m4 (gl_FUNC_FTS):
56903         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
56904         * m4/getdate.m4 (gl_GETDATE):
56905         * m4/gethrxtime.m4 (gl_GETHRXTIME):
56906         * m4/getpagesize.m4 (gl_GETPAGESIZE):
56907         * m4/getpass.m4 (gl_FUNC_GETPASS):
56908         * m4/gettime.m4 (gl_GETTIME):
56909         * m4/getugroups.m4 (gl_GETUGROUPS):
56910         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
56911         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
56912         * m4/hard-locale.m4 (gl_HARD_LOCALE):
56913         * m4/hash.m4 (gl_HASH):
56914         * m4/idcache.m4 (gl_IDCACHE):
56915         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
56916         * m4/lchown.m4 (gl_FUNC_LCHOWN):
56917         * m4/long-options.m4 (gl_LONG_OPTIONS):
56918         * m4/lstat.m4 (gl_FUNC_LSTAT):
56919         * m4/md5.m4 (gl_MD5):
56920         * m4/memcasecmp.m4 (gl_MEMCASECMP):
56921         * m4/memcoll.m4 (gl_MEMCOLL):
56922         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
56923         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
56924         * m4/memxor.m4 (gl_MEMXOR):
56925         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
56926         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
56927         * m4/modechange.m4 (gl_MODECHANGE):
56928         * m4/mountlist.m4 (gl_MOUNTLIST):
56929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56930         * m4/openat.m4 (gl_FUNC_OPENAT):
56931         * m4/pathmax.m4 (gl_PATHMAX):
56932         * m4/physmem.m4 (gl_PHYSMEM):
56933         * m4/posixtm.m4 (gl_POSIXTM):
56934         * m4/posixver.m4 (gl_POSIXVER):
56935         * m4/quote.m4 (gl_QUOTE):
56936         * m4/quotearg.m4 (gl_QUOTEARG):
56937         * m4/readtokens.m4 (gl_READTOKENS):
56938         * m4/readutmp.m4 (gl_READUTMP):
56939         * m4/regex.m4 (gl_REGEX):
56940         * m4/safe-read.m4 (gl_SAFE_READ):
56941         * m4/safe-write.m4 (gl_SAFE_WRITE):
56942         * m4/same.m4 (gl_SAME):
56943         * m4/save-cwd.m4 (gl_SAVE_CWD):
56944         * m4/savedir.m4 (gl_SAVEDIR):
56945         * m4/settime.m4 (gl_SETTIME):
56946         * m4/sha1.m4 (gl_SHA1):
56947         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
56948         * m4/stat-macros.m4 (gl_STAT_MACROS):
56949         * m4/stat-time.m4 (gl_STAT_TIME):
56950         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
56951         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
56952         * m4/strdup.m4 (gl_FUNC_STRDUP):
56953         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
56954         * m4/strndup.m4 (gl_FUNC_STRNDUP):
56955         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
56956         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
56957         * m4/time_r.m4 (gl_TIME_R):
56958         * m4/timespec.m4 (gl_TIMESPEC):
56959         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
56960         * m4/unlinkdir.m4 (gl_UNLINKDIR):
56961         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
56962         * m4/userspec.m4 (gl_USERSPEC):
56963         * m4/utimecmp.m4 (gl_UTIMECMP):
56964         * m4/utimens.m4 (gl_UTIMENS):
56965         * m4/xalloc.m4 (gl_XALLOC):
56966         * m4/xgetcwd.m4 (gl_XGETCWD):
56967         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
56968         * m4/xreadlink.m4 (gl_XREADLINK):
56969         * m4/xstrtod.m4 (gl_XSTRTOD):
56970         * m4/yesno.m4 (gl_YESNO):
56971         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56972         to get the necessary .h files and whatnot.
56973
56974 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
56975             Bruno Haible  <bruno@clisp.org>
56976
56977         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
56978         /bin/sh understanding of '!' conditional negation.
56979
56980 2006-08-21  Jim Meyering  <jim@meyering.net>
56981
56982         * modules/openat (Depends-on): Really alphabetize.
56983
56984         * modules/acl (Depends-on): Add error and quote.
56985
56986         * check-module (find_included_lib_files): Add at-func.c to the
56987         ok-to-include-more-than-once white list.
56988
56989         * modules/openat (Depends-on): Add lstat.  Alphabetize.
56990
56991 2006-08-21  Bruno Haible  <bruno@clisp.org>
56992
56993         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56994         Emit a pkgdata_DATA variable only if some snippets add contents to it.
56995         Reported by Martin Lambers <marlam@marlam.de>.
56996
56997 2006-08-21  Bruno Haible  <bruno@clisp.org>
56998
56999         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
57000         specify an installation location, don't emit a noinst_LIBRARIES or
57001         noinst_LTLIBRARIES assignment.
57002
57003 2006-08-21  Bruno Haible  <bruno@clisp.org>
57004
57005         BeOS portability.
57006         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
57007         BeOS has mbrtowc() but no <wctype.h>.
57008
57009 2006-08-21  Bruno Haible  <bruno@clisp.org>
57010
57011         BeOS portability.
57012         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
57013         exist.
57014
57015 2006-08-21  Bruno Haible  <bruno@clisp.org>
57016
57017         BeOS portability.
57018         * lib/mbchar.h: Include <wctype.h> only if it exists.
57019
57020 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57021
57022         Remove files that are no longer needed by their respective modules.
57023         * m4/obstack.m4: Remove.
57024         * m4/strerror_r.m4: Remove.
57025         * m4/uint32_t.m4: Remove.
57026         * m4/uintptr_t.m4: Remove.
57027         * m4/ullong_max.m4: Remove.
57028         * m4/xstrtoimax.m4: Remove.
57029         * m4/xstrtoumax.m4: Remove.
57030
57031         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
57032         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
57033         dependencies now capture this.
57034
57035         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
57036         Do not use AC_LIBSOURCES, since gnulib modules now do this.
57037         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
57038         * m4/human.m4 (gl_HUMAN): Likewise.
57039         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
57040         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
57041
57042         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
57043
57044         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
57045         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
57046         stdint.
57047         * m4/human.m4 (gl_HUMAN): Likewise.
57048         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
57049         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
57050         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57051         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57052         * m4/xstrtol (gl_XSTRTOL): Likewise.
57053
57054         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
57055         AC_TYPE_LONG_LONG_INT.
57056         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57057         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
57058         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
57059         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57060
57061         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
57062         on stdbool.
57063
57064         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
57065         (gl_PREREQ_XSTRTOUL): Remove.
57066
57067         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
57068
57069         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
57070         mode.
57071
57072 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57073
57074         Add and change modules to make it easier for coreutils to use
57075         gnulib-tool.
57076         * modules/backupfile (Files): Remove m4/d-ino.m4.
57077         (Depends-on): Add d-ino.
57078         * modules/cycle-check (Depends-on): Add stdint.
57079         (lib_SOURCES): Add cycle-check.h.
57080         * modules/d-ino: New module.
57081         * modules/d-type: New module.
57082         * modules/error (Files): Remove m4/strerror_r.m4.
57083         * modules/filemode (Files): Add m4/st_dm_mode.m4.
57084         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57085         m4/inttypes_h.m4, m4/uintmax_t.m4.
57086         (Depends-on): Add stdint.
57087         (lib_SOURCES): Add fsusage.h.
57088         * modules/getcwd (Files): Remove d-ino.m4.
57089         (Depends-on): Add d-ino.
57090         * modules/getndelim2 (Depends-on): Add stdint.
57091         * modules/glob (Files): Remove m4/d-type.m4.
57092         (Depends-on): Add d-type.
57093         * modules/host-os: New module.
57094         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
57095         m4/inttypes_h.m4, m4/uintmax_t.m4.
57096         * Depends-on: Add stdint.
57097         (lib_SOURCES): Add human.h.
57098         * modules/inttostr (Files): Remove m4/intmax_t.m4,
57099         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
57100         m4/uintmax_t.m4, m4/ulonglong.m4.
57101         (Depends-on): Add stdint.
57102         (EXTRA_DIST): Add inttostr.h.
57103         * modules/lchmod: New module.
57104         * modules/link-follow: New module.
57105         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
57106         (Depends-on): Add lchmod.
57107         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
57108         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
57109         (Depends-on): Add stdint.
57110         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
57111         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
57112         (Depends-on): Add stdint.
57113         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
57114         * modules/perl: New module.
57115         * modules/regex (Depends-on): Add stdint.
57116         * modules/rmdir-errno: New module.
57117         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57118         m4/intmax_t.m4.
57119         (Depends-on): Add stdint.
57120         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57121         m4/uintmax_t.m4.
57122         (Depends-on): Add stdint.
57123         * modules/unlink-busy: New module.
57124         * modules/utimecmp (Depends-on): Add stdint.
57125         * modules/uptime: New module.
57126         * modules/winsz-ioctl: New module.
57127         * modules/winsz-termios: New module.
57128         * modules/xnanosleep (Depends-on): Add nanosleep.
57129         * modules/ullong_max: Remove.
57130         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
57131         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
57132         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
57133         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
57134         (Depends-on): Add inttypes.
57135         (lib_SOURCES): Add xstrtol.h.
57136         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
57137         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
57138         * MODULES.html.sh: Move 'assert' into the assert section.
57139         Move 'dummy' into the linking section.
57140         Remove ullong_max.
57141         Add section for compatibility checks for POSIX:2001 functions,
57142         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
57143         winsz-ioctl, and winsz-termios into it.
57144         Add lchmod.
57145         Add top-level Misc section and put host-os, perl, and uptime
57146         into it.
57147
57148 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57149
57150         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
57151         now assume the stdint module.  Do not include inttypes.h.
57152         * lib/fsusage.h: Likewise.
57153         * lib/getndelim2.c: Likewise.
57154         * lib/human.h: Likewise.
57155         * lib/inttostr.h: Likewise.
57156         * lib/obstack.c: Likewise.
57157         * lib/regex_internal.h: Likewise.
57158         * lib/tempname.c: Likewise.
57159         * lib/utimecmp.c: Likewise.
57160         * lib/xstrtol.h: Likewise.
57161
57162         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
57163
57164         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
57165         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
57166         * lib/xtime.h: Likewise.
57167
57168 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57169
57170         * modules/openat (Files): Add lib/fchmodat.c.
57171         Fixes problem reported by Jay Youngman.
57172
57173 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57174
57175         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
57176         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
57177
57178 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
57179             Bruno Haible  <bruno@clisp.org>
57180
57181         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
57182         and is a script that invokes bison. Tighten the code. Add comments.
57183
57184 2006-08-18  Jim Meyering  <jim@meyering.net>
57185
57186         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
57187         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
57188         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
57189         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
57190
57191 2006-08-18  Bruno Haible  <bruno@clisp.org>
57192
57193         * modules/bison-i18n: New file.
57194         * MODULES.html.sh (Internationalization functions): Add it.
57195
57196 2006-08-18  Bruno Haible  <bruno@clisp.org>
57197
57198         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
57199         sys/statvfs.h. When getmntinfo was found, check its declaration and
57200         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
57201
57202 2006-08-18  Bruno Haible  <bruno@clisp.org>
57203
57204         * m4/bison-i18n.m4: New file, from bison.
57205
57206 2006-08-18  Bruno Haible  <bruno@clisp.org>
57207
57208         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
57209         (ME_DUMMY): Treat "kernfs" as a dummy.
57210         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
57211
57212 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57213
57214         Update from coreutils.
57215
57216         2006-08-15  Jim Meyering  <jim@meyering.net>
57217
57218         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
57219
57220         2006-01-17  Jim Meyering  <jim@meyering.net>
57221
57222         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
57223
57224         2006-01-11  Jim Meyering  <jim@meyering.net>
57225
57226         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
57227         Check for the lchmod function.
57228
57229 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57230
57231         Update from coreutils.
57232
57233         * lib/__fpending.h: Add copyright notice.
57234         * lib/fprintftime.h: Likewise.
57235         * lib/savedir.c: Use (C) in copyright notice.
57236         * lib/savedir.h: Likewise.
57237
57238         2006-08-15  Jim Meyering  <jim@meyering.net>
57239
57240         * lib/at-func.c: New file, with the logic of all emulated at-functions.
57241         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
57242         in support of the EXPECTED_ERRNO macro.
57243         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
57244         definitions.  Instead, define the appropriate symbols and include
57245         "at-func.c".
57246         * lib/mkdirat.c (mkdirat): Likewise.
57247         * lib/fchmodat.c (fchmodat): Likewise.
57248         (ENOSYS): Remove definition.
57249         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
57250         it.  Don't include "unistd--.h" -- it wasn't ever used.
57251
57252         2006-01-17  Jim Meyering  <jim@meyering.net>
57253
57254         Rewrite fts.c not to change the current working directory,
57255         by using openat, fstatat, fdopendir, etc..
57256
57257         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
57258         (HAVE_OPENAT_SUPPORT): Define.
57259         [_LIBC] (fchdir): Don't undef or define; no longer used.
57260         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
57261         Now, this `function' always succeeds, and consumes its file descriptor
57262         parameter -- so callers must not close such FDs.  Update callers.
57263         (diropen_fd, opendirat, cwd_advance_fd): New functions.
57264         (diropen): Add parameter, SP.  Adjust all callers.
57265         Implement using diropen_fd, rather than open.
57266         (fts_open): Initialize new member, fts_cwd_fd.
57267         Remove fts_rft-setting code.
57268         (fts_close): Close fts_cwd_fd, if necessary.
57269         (__opendir2): Define in terms of opendir or opendirat,
57270         depending on whether the FST_NOCHDIR flag is set.
57271         (fts_build): Since fts_safe_changedir consumes its FD, and since
57272         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
57273         and close the dup'd file descriptor upon failure.
57274         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
57275         (fts_safe_changedir): Tweak semantics to reflect that this function
57276         now calls cwd_advance_fd and hence consumes its FD argument.
57277         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
57278         [struct FTS] (fts_rft): Remove now-unused member.
57279         [struct FTS] (fts_cycle.state): Improve comment.
57280
57281         * lib/openat.c (openat_needs_fchdir): New function.
57282         * lib/openat.h (openat_needs_fchdir): Declare it.
57283
57284 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57285
57286         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
57287         Problem and fix reported by Pádraig Brady in
57288         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
57289
57290 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57291
57292         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
57293
57294 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57295
57296         * lib/memcoll.c (memcoll): Optimize for the common case where the
57297         arguments are bytewise equal.
57298
57299 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57300
57301         * doc/regexprops-generic.texi: Add a copyright notice.
57302
57303 2006-08-15  Bruno Haible  <bruno@clisp.org>
57304
57305         * modules/tmpdir (License): Change to LGPL.
57306
57307 2006-08-15  Bruno Haible  <bruno@clisp.org>
57308
57309         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
57310         module.
57311
57312 2006-08-14  Simon Josefsson  <jas@extundo.com>
57313
57314         * config/srclist.txt: Add gnupload.
57315
57316 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57317
57318         Change copyright notice from LGPL 2 to GPL 2, since that's the
57319         standard form used in the gnulib repository.
57320         * tests/test-lock.c: Likewise.
57321         * tests/test-stdint.c: Likewise.
57322         * tests/test-tls.c: Likewise.
57323
57324         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
57325         prelude-manager.  User shorter URLs for GNU projects, without '?'.
57326         Add copyright notice.
57327
57328         * check-module: Add copyright notice.  Output a copyright
57329         notice if "--version" is specified.
57330         * modules/COPYING: New file.
57331         * tests/test-getaddrinfo.c: Add copyright notice.
57332         * tests/test-verify.c: Likewise.
57333
57334 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57335
57336         Change copyright notice from LGPL 2 to GPL 2, since that's the
57337         standard form used in the gnulib repository.
57338         * lib/lock.c: LGPL -> GPL.
57339         * lib/lock.h: Likewise.
57340         * lib/strnlen1.c: Likewise.
57341         * lib/strnlen1.h: Likewise.
57342         * lib/tls.c: Likewise.
57343         * lib/tls.h: Likewise.
57344         * lib/tmpdir.c: Likewise.
57345
57346         * lib/TODO: Remove; this belongs only in coreutils.
57347
57348 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57349
57350         Add copyright notices to long-enough files that lack them, since
57351         otherwise the files aren't clearly free.  Use the same notice that
57352         getdate.texi already uses.
57353         * doc/alloca-opt.texi: Add copyright notice.
57354         * doc/alloca.texi: Likewise.
57355         * doc/ctime.texi: Likewise.
57356         * doc/functions.texi: Likewise.
57357         * doc/gcd.texi: Likewise.
57358         * doc/gnulib-tool.texi: Likewise.
57359         * doc/inet_ntoa.texi: Likewise.
57360         * doc/visibility.texi: Likewise.
57361
57362         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
57363         * doc/quote.texi: Add copyright notice.
57364
57365         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
57366         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
57367         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
57368         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
57369         is now obsolete, and give a pointer to the Sun list.
57370         Add copyright notice.
57371
57372 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57373
57374         * config/srclistvars.sh: Add copyright notice.
57375
57376 2006-08-14  Eric Blake  <ebb9@byu.net>
57377
57378         Import the following change from libc:
57379
57380         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
57381
57382         Upstream bug 2997.
57383         * lib/misc/error.c: Add space between program name and message if file
57384         name is missing.
57385
57386 2006-08-12  Karl Berry  <karl@gnu.org>
57387
57388         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
57389         remove, these originate in gnulib now.
57390
57391 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57392
57393         * doc/Makefile (standards.info standards.html standards.dvi):
57394         Also depend on make-stds.texi.
57395
57396 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
57397
57398         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
57399         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
57400
57401         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
57402         in wchar_t.  Problem reported by Eric Blake.
57403
57404         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
57405         LEN is smaller than SIZE.  Suggested by Bruno Haible.
57406         Also, help the compiler to keep LEN in a register.
57407
57408 2006-08-11  Eric Blake  <ebb9@byu.net>
57409
57410         * users.txt: Sort.  Add tar.
57411
57412 2006-08-11  Bruno Haible  <bruno@clisp.org>
57413
57414         * users.txt: New file.
57415
57416 2006-08-11  Bruno Haible  <bruno@clisp.org>
57417
57418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
57419         before <wchar.h>. Needed for OSF/1 and BSD/OS.
57420
57421 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57422
57423         * modules/snprintf (Depends-on): Remove minmax.
57424         (Maintainer): Add self and Bruno.
57425
57426 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57427
57428         * lib/.cppi-disable: Add snprintf.h, socket_.h.
57429         * lib/snprintf.c: Include <errno.h> and <limits.h>.
57430         (EOVERFLOW): Define if the system does not.
57431         Do not include "minmax.h"; it wasn't used.
57432         (snprintf): Don't assume size_t promotes to an unsigned type.
57433         Fix bug when generated string was too long for the buffer: the
57434         buffer's contents are supposed to be the initial prefix of the
57435         output.  Don't assume vasnprintf returns EOVERFLOW if the size
57436         exceeds INT_MAX; do the check ourselves.
57437
57438         Import the following changes from libc:
57439
57440         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
57441
57442         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
57443         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
57444         set wc to the byte which couldn't be converted.
57445         (re_string_reconstruct): Don't clear valid_raw_len before calling
57446         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
57447         tip_context using re_string_context_at.
57448
57449         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
57450
57451         * lib/posix/regex.h: g++ still cannot handled [restrict].
57452
57453         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
57454
57455         * lib/posix/regex.h: Remove special handling for VMS.
57456
57457 2006-08-10  Jim Meyering  <jim@meyering.net>
57458
57459         * modules/same-inode: New module.
57460         * modules/dev-ino: New module.
57461         * modules/cycle-check: Depend on these modules, rather than simply
57462         including their .h files.
57463         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
57464         required via m4/cycle-check.m4.
57465         * modules/same: Depend on new same-inode module, rather than
57466         including same-inode.h.
57467         * modules/chdir-safer: New file.
57468
57469         * modules/chown (Depends-on): Add stat-macros.
57470
57471 2006-08-10  Jim Meyering  <jim@meyering.net>
57472
57473         * m4/cycle-check.m4: New file.
57474         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
57475         * m4/dev-ino.m4, m4/same-inode.m4: New files.
57476
57477 2006-08-10  Eric Blake  <ebb9@byu.net>
57478
57479         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
57480         in from original proposal.
57481
57482 2006-08-10  Eric Blake  <ebb9@byu.net>
57483         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57484
57485         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
57486         namespace.
57487
57488 2006-08-10  Bruno Haible  <bruno@clisp.org>
57489
57490         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
57491         as well.
57492
57493 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57494
57495         Sync from coreutils.
57496
57497         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
57498
57499         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
57500         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
57501
57502 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57503
57504         * modules/restrict: Remove; no longer needed now that we assume
57505         Autoconf 2.59 or later.
57506         * MODULES.html.sh: Remove 'restrict'.
57507         * modules/argp (Depends-on): Remove 'restrict'.
57508         * modules/base64 (Depends-on): Likewise.
57509         * modules/gc (Depends-on): Likewise.
57510         * modules/getaddrinfo (Depends-on): Likewise.
57511         * modules/glob (Depends-on): Likewise.
57512         * modules/inet_ntop (Depends-on): Likewise.
57513         * modules/inet_pton (Depends-on): Likewise.
57514         * modules/memxor (Depends-on): Likewise.
57515         * modules/regex (Depends-on): Likewise.
57516         * modules/strtok_r (Depends-on): Likewise.
57517         * modules/time_r (Depends-on): Likewise.
57518
57519 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57520
57521         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
57522         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
57523         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57524         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
57525         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
57526         * m4/memxor.m4 (gl_MEMXOR): Likewise.
57527         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
57528         gl_C_RESTRICT replaced by AC_C_RESTRICT.
57529
57530         Merge from coreutils.
57531         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
57532         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
57533         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57534         * m4/time_r.m4 (gl_TIME_R): Likewise.
57535
57536 2006-08-09  Karl Berry  <karl@gnu.org>
57537
57538         * config/srclist.txt: no more gettext-tools, per Bruno.
57539
57540 2006-08-08  Eric Blake  <ebb9@byu.net>
57541
57542         * modules/verror: New module.
57543         * MODULES.html.sh: Document it.
57544
57545 2006-08-08  Eric Blake  <ebb9@byu.net>
57546
57547         * lib/verror.h, lib/verror.c: New files.
57548
57549 2006-08-08  Eric Blake  <ebb9@byu.net>
57550
57551         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
57552         verror_at_line output complies with GNU Coding Standards even when
57553         file is NULL.
57554
57555 2006-08-07  Bruno Haible  <bruno@clisp.org>
57556
57557         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
57558         versions of AIX.
57559         Reported by Ralf Wildenhues.
57560
57561 2006-08-07  Bruno Haible  <bruno@clisp.org>
57562
57563         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
57564         in an AC_DEFUN. Needed so that the autoconf snippets can use
57565         AC_REQUIRE.
57566
57567 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57568
57569         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57570         Initialize pkgdata_DATA.
57571         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
57572         overriding it.
57573
57574 2006-08-06  Eric Blake  <ebb9@byu.net>
57575
57576         * lib/error.h: Fold in some upstream changes from glibc.
57577         * lib/error.c: Likewise.
57578
57579 2006-08-04  Bruno Haible  <bruno@clisp.org>
57580
57581         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57582         Make the mostlyclean-local rule depend on mostlyclean-generic.
57583         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
57584
57585 2006-07-31  Bruno Haible  <bruno@clisp.org>
57586
57587         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
57588         <stdlib.h>, <string.h>.
57589
57590 2006-07-30  Bruno Haible  <bruno@clisp.org>
57591
57592         * modules/readlink (License): Change to LGPL.
57593
57594 2006-07-30  Bruno Haible  <bruno@clisp.org>
57595
57596         * modules/javaversion (Makefile.am): Distribute javaversion.java and
57597         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
57598         set PKGDATADIR to point to it.
57599
57600 2006-07-30  Bruno Haible  <bruno@clisp.org>
57601
57602         * modules/csharpexec (configure.ac): Comment out macro invocation.
57603         * modules/javaexec (configure.ac): Likewise.
57604         * modules/javacomp-script (configure.ac): Likewise.
57605
57606         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
57607
57608 2006-07-30  Bruno Haible  <bruno@clisp.org>
57609
57610         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
57611         linked-list.
57612
57613 2006-07-30  Bruno Haible  <bruno@clisp.org>
57614
57615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
57616
57617 2006-07-30  Bruno Haible  <bruno@clisp.org>
57618
57619         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57620         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
57621         get removed.
57622
57623 2006-07-29  Bruno Haible  <bruno@clisp.org>
57624
57625         Make it possible for gnulib-tool to work with locally modified or
57626         augmented gnulib repositories.
57627         * gnulib-tool (func_usage): Document --local-dir option.
57628         (local_gnulib_dir): New variable.
57629         Handle --local-dir option.
57630         (func_lookup_file): New function.
57631         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
57632         (func_get_description, func_get_filelist, func_get_description,
57633         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
57634         func_get_automake_snippet, func_get_include_directive,
57635         func_get_license, func_get_maintainer): Use func_lookup_file.
57636         (func_import, func_create_testdir): Use func_lookup_file.
57637
57638 2006-07-29  Bruno Haible  <bruno@clisp.org>
57639
57640         * modules/setenv (Depends-on): Add unistd.
57641
57642 2006-07-29  Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
57645
57646 2006-07-29  Bruno Haible  <bruno@clisp.org>
57647
57648         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
57649
57650 2006-07-29  Bruno Haible  <bruno@clisp.org>
57651
57652         * gnulib-tool (import, update): If there is no Makefile.am, look at
57653         aclocal.m4, instead of bailing out.
57654
57655 2006-07-29  Bruno Haible  <bruno@clisp.org>
57656
57657         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
57658         Categorize the options by when they are useful.
57659
57660 2006-07-29  Bruno Haible  <bruno@clisp.org>
57661
57662         * gnulib-tool (func_usage): Document option --no-libtool.
57663         Handle option --no-libtool.
57664         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
57665         for changed semantics of $libtool variable.
57666         (func_import): Likewise. If libtool is not used, show this through
57667         an option --no-libtool.
57668         (func_create_testdir): Update.
57669
57670 2006-07-29  Bruno Haible  <bruno@clisp.org>
57671
57672         * gnulib-tool (func_import): Extend error message about missing
57673         --doc-base.
57674
57675 2006-07-29  Bruno Haible  <bruno@clisp.org>
57676
57677         * gnulib-tool (func_import): Don't create the $docbase directory if
57678         there is no file to store there.
57679
57680 2006-07-29  Bruno Haible  <bruno@clisp.org>
57681
57682         * gnulib-tool (autoconf_minversion): If a --dir option is given and
57683         relevant, look for configure.ac there, not in the current directory.
57684         Also use a simple search for AC_PREREQ, not "autoconf --trace".
57685
57686 2006-07-29  Bruno Haible  <bruno@clisp.org>
57687
57688         * gnulib-tool (SORT): New variable.
57689         (func_usage): Undocument --assume-autoconf option.
57690         Remove --assume-autoconf option handling.
57691         (autoconf_minversion): Determine from the contents of configure.ac.
57692         (func_import): Remove autoconf_minversion handling.
57693         Suggested by Eric Blake.
57694
57695 2006-07-29  Bruno Haible  <bruno@clisp.org>
57696
57697         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
57698
57699 2006-07-29  Bruno Haible  <bruno@clisp.org>
57700
57701         * config/srclist.txt (*setenv.[ch]): Remove rules.
57702
57703 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57704
57705         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
57706
57707 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57708
57709         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
57710         arpa/inet.h.
57711
57712 2006-07-28  Simon Josefsson  <jas@extundo.com>
57713
57714         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
57715         * modules/inet_pton (Depends-on): Likewise.
57716
57717 2006-07-28  Simon Josefsson  <jas@extundo.com>
57718
57719         * m4/netinet_in_h.m4: New file.
57720
57721 2006-07-28  Simon Josefsson  <jas@extundo.com>
57722
57723         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
57724         #include's.
57725
57726 2006-07-28  Simon Josefsson  <jas@extundo.com>
57727
57728         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
57729         #include's.
57730
57731 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
57732
57733         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
57734         setgid on directories only if they set these bits.
57735         * lib/modechange.h: Remove obsolete comment about masks.
57736
57737 2006-07-28  Eric Blake  <ebb9@byu.net>
57738
57739         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
57740         macro expansion.
57741
57742 2006-07-28  Bruno Haible  <bruno@clisp.org>
57743
57744         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
57745
57746 2006-07-28  Bruno Haible  <bruno@clisp.org>
57747
57748         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
57749
57750 2006-07-28  Bruno Haible  <bruno@clisp.org>
57751
57752         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57753         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57754         Define fallbacks.
57755         Avoids link error on FreeBSD 4.x.
57756         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57757
57758         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
57759         encoding.
57760         * lib/mbswidth.c (iswcntrl): Likewise.
57761
57762 2006-07-27  Bruno Haible  <bruno@clisp.org>
57763
57764         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
57765         test.
57766
57767 2006-07-27  Bruno Haible  <bruno@clisp.org>
57768
57769         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
57770         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
57771         defined.
57772
57773 2006-07-26  Eric Blake  <ebb9@byu.net>
57774
57775         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
57776
57777 2006-07-26  Eric Blake  <ebb9@byu.net>
57778
57779         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
57780         like mingw that lack mkstemp.
57781         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
57782         avoid compilation warning on mingw.
57783
57784 2006-07-26  Bruno Haible  <bruno@clisp.org>
57785
57786         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
57787         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
57788         INT_FAST*_MIN, INTPTR_MIN.
57789
57790 2006-07-25  Bruno Haible  <bruno@clisp.org>
57791
57792         * modules/version-etc (Depends-on): Add stdarg.
57793
57794 2006-07-25  Bruno Haible  <bruno@clisp.org>
57795
57796         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
57797         complex commands.
57798
57799 2006-07-25  Bruno Haible  <bruno@clisp.org>
57800
57801         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
57802         defined in <stdarg.h> or config.h.
57803
57804 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57805
57806         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
57807         (gl_STDIO_SAFER): Remove.
57808
57809 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57810
57811         * MODULES.html.sh (File stream based Input/Output):
57812         Add fopen-safer, tmpfile-safer; remove stdio-safer.
57813         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
57814         * modules/fopen-safer, modules/tmpfile-safer: New files.
57815         * modules/stdio-safer: Remove.
57816
57817 2006-07-24  Bruno Haible  <bruno@clisp.org>
57818
57819         * modules/tmpdir: New file.
57820         * MODULES.html.sh (File system functions): Add it.
57821
57822 2006-07-24  Bruno Haible  <bruno@clisp.org>
57823
57824         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
57825         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
57826
57827 2006-07-24  Bruno Haible  <bruno@clisp.org>
57828
57829         * modules/clean-temp: New file.
57830
57831 2006-07-24  Bruno Haible  <bruno@clisp.org>
57832
57833         * m4/tmpdir.m4: New file, from GNU gettext.
57834
57835 2006-07-24  Bruno Haible  <bruno@clisp.org>
57836
57837         * lib/tmpdir.h: New file, from GNU gettext.
57838         * lib/tmpdir.c: New file, from GNU gettext.
57839
57840 2006-07-24  Bruno Haible  <bruno@clisp.org>
57841
57842         * lib/clean-temp.h: New file, from GNU gettext.
57843         * lib/clean-temp.c: New file, from GNU gettext.
57844
57845 2006-07-23  Eric Blake  <ebb9@byu.net>
57846
57847         * modules/stdio-safer (Files): Add tmpfile-safer.c.
57848         (Depends-on): Add binary-io.
57849
57850 2006-07-23  Eric Blake  <ebb9@byu.net>
57851
57852         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
57853
57854 2006-07-23  Eric Blake  <ebb9@byu.net>
57855
57856         * lib/tmpfile-safer.c: New file.
57857         * lib/stdio-safer.h (fopen_safer): Add prototype.
57858         * lib/stdio--.h (tmpfile): Make safer.
57859
57860 2006-07-23  Bruno Haible  <bruno@clisp.org>
57861
57862         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
57863         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
57864         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
57865         gl_linked_remove_at): Use it.
57866
57867 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57868         and Simon Josefsson <jas@extundo.com>
57869
57870         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
57871
57872         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
57873
57874 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57875
57876         * modules/close-stream: New file.
57877         * modules/closeout (Description): Make it clear that it exits
57878         with a diagnostic on error.
57879         (Depends-on): Add close-stream.  Remove fpending, stdbool.
57880         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
57881
57882 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57883
57884         * m4/close-stream.m4: New file.
57885
57886 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57887
57888         * lib/close-stream.c, lib/close-stream.h: New files.
57889
57890 2006-07-22  Bruno Haible  <bruno@clisp.org>
57891
57892         Merge from GNU gettext 0.15.
57893
57894         2006-05-01  Bruno Haible  <bruno@clisp.org>
57895
57896                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
57897
57898         2006-07-22  Bruno Haible  <bruno@clisp.org>
57899
57900                 * modules/javaversion: New file.
57901                 * MODULES.html.sh (Java): Add javaversion.
57902
57903         2006-03-12  Bruno Haible  <bruno@clisp.org>
57904
57905                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
57906
57907         2005-12-04  Bruno Haible  <bruno@clisp.org>
57908
57909                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
57910                 (untested).
57911
57912         2006-06-21  Bruno Haible  <bruno@clisp.org>
57913
57914                 Avoid warnings from recent versions of mcs.
57915                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
57916                 -o, -L, -r any more. Use options documented since mcs-1.0
57917                 instead. Similarly for -g.
57918
57919         2005-12-04  Bruno Haible  <bruno@clisp.org>
57920
57921                 * build-aux/csharpcomp.sh.in: Suffix for resources is
57922                 .resources, not .resource.
57923
57924         2005-07-09  Bruno Haible  <bruno@clisp.org>
57925
57926                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
57927                 add a .dll suffix.
57928                 Reported by Mark Junker <mjscod@gmx.de>.
57929
57930         2006-07-22  Bruno Haible  <bruno@clisp.org>
57931
57932                 * modules/gettext: Upgrade to gettext-0.15.
57933                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
57934                 m4/visibility.m4.
57935                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
57936
57937 2006-07-22  Bruno Haible  <bruno@clisp.org>
57938
57939         Merge from GNU gettext 0.15.
57940
57941         2006-03-25  Bruno Haible  <bruno@clisp.org>
57942
57943                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
57944
57945         2006-07-21  Bruno Haible  <bruno@clisp.org>
57946
57947                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
57948                 "1.1".
57949
57950         2006-05-09  Bruno Haible  <bruno@clisp.org>
57951
57952                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
57953                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
57954                 for the conftestver execution.
57955
57956         2006-05-01  Bruno Haible  <bruno@clisp.org>
57957
57958                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
57959                 optional target-version argument. Verify that the compiler
57960                 groks source of the specified source-version, or add -source
57961                 option as necessary. Verify that the compiler produces
57962                 bytecode in the specified target-version, or add -target and
57963                 -source options as necessary. Make the result of the test
57964                 available as variable CONF_JAVAC. Also log error output in
57965                 config.log.
57966
57967         2006-03-11  Bruno Haible  <bruno@clisp.org>
57968
57969                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
57970
57971         2006-05-09  Bruno Haible  <bruno@clisp.org>
57972
57973                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
57974                 CLASSPATH_SEPARATOR to a semicolon.
57975
57976         2006-03-12  Bruno Haible  <bruno@clisp.org>
57977
57978                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
57979                 available as variable CONF_JAVA, for subsequent autoconf
57980                 tests. Also log error output in config.log.
57981
57982         2006-07-19  Bruno Haible  <bruno@clisp.org>
57983
57984                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
57985                 that getline works on glibc2 systems. Needed to avoid trouble
57986                 in relocatable.c.
57987                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
57988
57989         2005-12-04  Bruno Haible  <bruno@clisp.org>
57990
57991                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
57992                 launcher (untested).
57993
57994         2005-12-04  Bruno Haible  <bruno@clisp.org>
57995
57996                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
57997
57998         2006-07-22  Bruno Haible  <bruno@clisp.org>
57999
58000                 * gettext.m4: Update from GNU gettext-0.15.
58001                 * nls.m4: Likewise.
58002                 * po.m4: Likewise.
58003                 * inttypes-pri.m4: Likewise.
58004                 * inttypes-h.m4: Renamed from inttypes.m4.
58005                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
58006
58007 2006-07-22  Bruno Haible  <bruno@clisp.org>
58008
58009         Merge from GNU gettext 0.15.
58010
58011         2005-07-05  Bruno Haible  <bruno@clisp.org>
58012
58013                 * printf-args.c (printf_fetchargs): Work around broken
58014                 definition of wint_t on mingw.
58015
58016         2005-02-12  Bruno Haible  <bruno@clisp.org>
58017
58018                 * xallocsa.h: Add extern "C" for C++.
58019
58020         2006-05-17  Bruno Haible  <bruno@clisp.org>
58021
58022                 Cygwin portability.
58023                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
58024
58025         2006-04-30  Bruno Haible  <bruno@clisp.org>
58026
58027                 * progreloc.c: Include <mach-o/dyld.h> if available.
58028                 (find_executable): Use _NSGetExecutablePath when possible.
58029
58030         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58031
58032                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
58033                 function.
58034
58035         2005-12-29  Bruno Haible  <bruno@clisp.org>
58036
58037                 * progreloc.c (set_program_name_and_installdir): Fix
58038                 compilation error.
58039
58040         2005-12-04  Bruno Haible  <bruno@clisp.org>
58041
58042                 Cygwin portability.
58043                 * progreloc.c: Include <windows.h> also on Cygwin.
58044                 (find_executable): Add support for Cygwin.
58045                 (set_program_name_and_installdir): Handle also platforms with
58046                 nonempty EXEEXT.
58047
58048         2006-07-11  Bruno Haible  <bruno@clisp.org>
58049
58050                 * javacomp.c: Fix a comment.
58051                 Reported by Jim Meyering.
58052
58053         2006-04-30  Bruno Haible  <bruno@clisp.org>
58054
58055                 * javacomp.h (compile_java_class): Add source_version,
58056                 target_version arguments.
58057                 * javacomp.c: Rewritten to choose only a compiler that
58058                 respects the specified source_version and target_version.
58059
58060         2006-06-27  Bruno Haible  <bruno@clisp.org>
58061
58062                 Assume correct S_ISDIR macro.
58063                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
58064
58065         2006-07-22  Bruno Haible  <bruno@clisp.org>
58066
58067                 * javaversion.h: New file, from GNU gettext.
58068                 * javaversion.c: New file, from GNU gettext.
58069                 * javaversion.java: New file, from GNU gettext.
58070                 * javaversion.class: New file, from GNU gettext.
58071
58072         2006-05-17  Bruno Haible  <bruno@clisp.org>
58073
58074                 Cygwin portability.
58075                 * javaexec.c (execute_java_class): Test for jview program
58076                 also on Cygwin.
58077
58078         2006-04-09  Bruno Haible  <bruno@clisp.org>
58079
58080                 * fatal-signal.c: Don't include string.h.
58081                 (at_fatal_signal): Use a copying loop instead of memcpy.
58082
58083         2005-12-04  Bruno Haible  <bruno@clisp.org>
58084
58085                 * csharpexec.c: Add support for 'clix' launcher (untested).
58086                 (execute_csharp_using_sscli): New function.
58087                 (execute_csharp_program): Call it.
58088
58089         2006-06-21  Bruno Haible  <bruno@clisp.org>
58090
58091                 Avoid warnings from recent versions of mcs.
58092                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
58093                 -o, -L, -r any more. Use options documented since mcs-1.0
58094                 instead. Similarly for -g.
58095
58096         2005-07-09  Bruno Haible  <bruno@clisp.org>
58097
58098                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
58099                 add a .dll suffix.
58100                 Reported by Mark Junker <mjscod@gmx.de>.
58101
58102         2006-06-17  Bruno Haible  <bruno@clisp.org>
58103
58104                 * config.charset: Update for NetBSD 3.0.
58105
58106         2006-05-17  Bruno Haible  <bruno@clisp.org>
58107
58108                 Cygwin portability.
58109                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
58110
58111         2006-05-16  Bruno Haible  <bruno@clisp.org>
58112
58113                 * localcharset.c [CYGWIN]: Include <windows.h>.
58114                 (get_charset_aliases): For Cygwin, return the same CPxxx
58115                 aliases list as under WIN32.
58116                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
58117                 the environment variables. Fall back to GetACP().
58118
58119         2006-04-05  Bruno Haible  <bruno@clisp.org>
58120
58121                 * config.charset: Update Juan Manuel Guerrero's address.
58122
58123         2005-02-12  Bruno Haible  <bruno@clisp.org>
58124
58125                 * allocsa.h: Add extern "C" for C++.
58126
58127         2005-02-10  Bruno Haible  <bruno@clisp.org>
58128
58129                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
58130                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
58131
58132         2006-07-22  Bruno Haible  <bruno@clisp.org>
58133
58134                 * gettext.h: Update to GNU gettext-0.15.
58135
58136 2006-07-22  Bruno Haible  <bruno@clisp.org>
58137
58138         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
58139         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
58140         lib-prefix.m4, longdouble.m4, ssize_t.m4.
58141
58142 2006-07-21  Eric Blake  <ebb9@byu.net>
58143
58144         * modules/stdlib-safer: New file.
58145         * MODULES.html.sh (File stream based Input/Output): Add
58146         stdlib-safer.
58147
58148 2006-07-21  Eric Blake  <ebb9@byu.net>
58149
58150         * lib/stdlib-safer.h: New file from coreutils, required by
58151         stdlib--.h.
58152
58153 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
58154
58155         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
58156
58157 2006-07-20  Bruno Haible  <bruno@clisp.org>
58158
58159         * gnulib-tool: Recognize new option --assume-autoconf.
58160         (autoconf_minversion): New variable.
58161         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
58162
58163 2006-07-20  Bruno Haible  <bruno@clisp.org>
58164
58165         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
58166
58167 2006-07-19  Derek R. Price  <derek@ximbiot.com>
58168
58169         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
58170         Reindent and repaginate.
58171
58172 2006-07-19  Derek Price  <derek@ximbiot.com>
58173
58174         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
58175         Correct grammar.
58176
58177 2006-07-17  Bruno Haible  <bruno@clisp.org>
58178
58179         * modules/list: New file.
58180         * modules/array-list: New file.
58181         * modules/carray-list, modules/carray-list-tests: New files.
58182         * modules/linked-list, modules/linked-list-tests: New files.
58183         * modules/avltree-list, modules/avltree-list-tests: New files.
58184         * modules/rbtree-list, modules/rbtree-list-tests: New files.
58185         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
58186         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
58187         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
58188         * modules/oset: New file.
58189         * modules/array-oset: New file.
58190         * modules/avltree-oset, modules/avltree-oset-tests: New files.
58191         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
58192         * tests/test-carray_list.c: New file.
58193         * tests/test-linked_list.c: New file.
58194         * tests/test-avltree_list.c: New file.
58195         * tests/test-rbtree_list.c: New file.
58196         * tests/test-linkedhash_list.c: New file.
58197         * tests/test-avltreehash_list.c: New file.
58198         * tests/test-rbtreehash_list.c: New file.
58199         * tests/test-avltree_oset.c: New file.
58200         * tests/test-rbtree_oset.c: New file.
58201         * MODULES.html.sh (Container data structures): New section.
58202
58203 2006-07-17  Bruno Haible  <bruno@clisp.org>
58204
58205         * m4/gl_list.m4: New file.
58206
58207 2006-07-17  Bruno Haible  <bruno@clisp.org>
58208
58209         * lib/gl_list.h: New file.
58210         * lib/gl_list.c: New file.
58211         * lib/gl_array_list.h: New file.
58212         * lib/gl_array_list.c: New file.
58213         * lib/gl_carray_list.h: New file.
58214         * lib/gl_carray_list.c: New file.
58215         * lib/gl_linked_list.h: New file.
58216         * lib/gl_linked_list.c: New file.
58217         * lib/gl_anylinked_list1.h: New file.
58218         * lib/gl_anylinked_list2.h: New file.
58219         * lib/gl_avltree_list.h: New file.
58220         * lib/gl_avltree_list.c: New file.
58221         * lib/gl_anyavltree_list1.h: New file.
58222         * lib/gl_anyavltree_list2.h: New file.
58223         * lib/gl_rbtree_list.h: New file.
58224         * lib/gl_rbtree_list.c: New file.
58225         * lib/gl_anyrbtree_list1.h: New file.
58226         * lib/gl_anyrbtree_list2.h: New file.
58227         * lib/gl_anytree_list1.h: New file.
58228         * lib/gl_anytree_list2.h: New file.
58229         * lib/gl_linkedhash_list.h: New file.
58230         * lib/gl_linkedhash_list.c: New file.
58231         * lib/gl_anyhash_list1.h: New file.
58232         * lib/gl_anyhash_list2.h: New file.
58233         * lib/gl_avltreehash_list.h: New file.
58234         * lib/gl_avltreehash_list.c: New file.
58235         * lib/gl_rbtreehash_list.h: New file.
58236         * lib/gl_rbtreehash_list.c: New file.
58237         * lib/gl_anytreehash_list1.h: New file.
58238         * lib/gl_anytreehash_list2.h: New file.
58239
58240         * lib/gl_oset.h: New file.
58241         * lib/gl_oset.c: New file.
58242         * lib/gl_array_oset.h: New file.
58243         * lib/gl_array_oset.c: New file.
58244         * lib/gl_avltree_oset.h: New file.
58245         * lib/gl_avltree_oset.c: New file.
58246         * lib/gl_rbtree_oset.h: New file.
58247         * lib/gl_rbtree_oset.c: New file.
58248         * lib/gl_anytree_oset.h: New file.
58249
58250 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58251
58252         * m4/mkancesdirs.m4: New file.
58253         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
58254         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
58255         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
58256         it.
58257
58258 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58259
58260         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
58261         * lib/mkancesdirs.h: New files.
58262         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
58263         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
58264         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
58265         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
58266         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
58267         callers changed.  Revamp internals significantly, by not
58268         attempting to create directories that are temporarily more
58269         permissive than the final results.  Do not attempt to use
58270         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
58271         This removes some race conditions, fixes some bugs, and simplifies
58272         things.  Use new dirchownmod function to do owner and mode changes.
58273         * lib/mkdir-p.h: Likewise.
58274         * lib/modechange.c (octal_to_mode): New function.
58275         (struct mode_change): New member mentioned.
58276         (make_node_op_equals): New arg mentioned.  All callers changed.
58277         (mode_compile): Keep track of which mode bits the user has explicitly
58278         mentioned.
58279         (mode_adjust): New arg DIR, so that we implement the X op correctly.
58280         New arg PMODE_BITS, to keep track of which mode bits the user
58281         mentioned; it treats S_ISUID and S_ISGID speciall.
58282         All callers changed.
58283         * lib/modechange.h: Likewise.
58284
58285 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58286
58287         * MODULES.html.sh: Add mkancestors.
58288         * modules/mkancesdirs: New module.
58289         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
58290         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
58291         The chdir-safer and afs files are now orphans; I'll remove them
58292         unless someone speaks up.
58293         Add lib/dirchownmod.c, lib/dirchownmod.h.
58294         (Depends-on): Remove alloca, chown, save-cwd, dirname.
58295         Add lchown, mkancesdirs.
58296         (Maintainer): Add self.
58297
58298 2006-07-15  Karl Berry  <karl@gnu.org>
58299
58300         * gnulib-tool: help message wording/arrangement.
58301
58302 2006-07-14  Simon Josefsson  <jas@extundo.com>
58303
58304         * doc/gnulib.texi (Libtool and Windows): New section.
58305
58306 2006-07-12  Simon Josefsson  <jas@extundo.com>
58307
58308         * modules/gendocs (License): Fix license, approved by Karl.
58309
58310 2006-07-12  Eric Blake  <ebb9@byu.net>
58311
58312         * MODULES.html.sh: Add gendocs.
58313
58314 2006-07-11  Eric Blake  <ebb9@byu.net>
58315
58316         * modules/fdl: New module, to install doc/fdl.texi.
58317         * MODULES.html.sh: Add new section for documentation modules.
58318         * gnulib-tool: Avoid space-tab.
58319         (--doc-base): New option, to manage files from doc.
58320
58321 2006-07-11  Eric Blake  <ebb9@byu.net>
58322
58323         * m4/absolute-header.m4: Fix comments to match recent change.
58324
58325 2006-07-11  Eric Blake  <ebb9@byu.net>
58326
58327         * gnulib-tool: List --doc-base before --tests-base.
58328
58329 2006-07-11  Derek R. Price  <derek@ximbiot.com>
58330
58331         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
58332
58333 2006-07-11  Bruno Haible  <bruno@clisp.org>
58334
58335         * README: Mention where to put documentation.
58336
58337 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58338
58339         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
58340
58341 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58342
58343         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
58344         to stdint.m4.
58345
58346 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58347
58348         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
58349         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
58350         "no/such/file/stdint.h" when there is no such file, so that
58351         the resulting C code can be parsed by dodgy compilers.
58352         Problems reported by Bob Proulx.
58353
58354 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58355
58356         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
58357         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58358         macros into the GNU _D_EXACT_NAMLEN.
58359         * lib/savedir.c:  Likewise.
58360         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
58361
58362 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58363         and Paul Eggert  <eggert@cs.ucla.edu>
58364
58365         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
58366         * m4/savedir.m4:
58367         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58368         macros into the GNU _D_EXACT_NAMLEN.
58369
58370 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58371
58372         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
58373         around the absolute name, to work around a problem with the HP-UX
58374         11.23 native C compiler, reported by Bob Proulx.
58375
58376 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58377
58378         * doc/maintain.texi, make-stds.texi: Sync from
58379         <http://savannah.gnu.org/projects/gnustandards>.
58380
58381 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58382
58383         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
58384
58385 2006-07-09  Jim Meyering  <jim@meyering.net>
58386
58387         * m4/glob.m4: Remove a doubled word in a comment.
58388
58389 2006-07-09  Jim Meyering  <jim@meyering.net>
58390
58391         * lib/argp-pv.c: Remove a doubled word in a comment.
58392         * lib/check-version.c (check_version): Likewise.
58393         * lib/javacomp.c (compile_java_class): Likewise.
58394
58395 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58396
58397         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
58398         for the benefit of people using Autoconf 2.60.  If you want to
58399         support older Autoconf versions you can copy m4/onceonly_2_57.m4
58400         (or m4/onceonly.m4, if pre-2.57) manually.
58401
58402 2006-07-08  Jim Meyering  <jim@meyering.net>
58403
58404         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
58405         comment.
58406         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
58407         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
58408         comment.
58409
58410 2006-07-08  Jim Meyering  <jim@meyering.net>
58411
58412         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
58413
58414 2006-07-07  Simon Josefsson  <jas@extundo.com>
58415
58416         * tests/test-crc.c: Change expected crc value, the test vector
58417         were probably computed using the old broken crc.c?
58418
58419 2006-07-06  Simon Josefsson  <jas@extundo.com>
58420
58421         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
58422         now the canonical place for the M4 file).
58423
58424         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
58425         from the sys_socket dependency now.
58426
58427         * modules/inet_pton (Files): Ditto.
58428
58429         * modules/inet_ntop (Files): Ditto.
58430
58431 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58432
58433         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
58434         not gl_PREREQ_GETUSERSHELL.
58435
58436 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58437
58438         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
58439         with only one argument, for Autoconf 2.60.
58440         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
58441         expand to nothing, so add a shell command to avoid syntax error.
58442         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
58443
58444 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58445
58446         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
58447
58448 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58449
58450         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
58451         no longer needed.  Check for isblank decl.
58452         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
58453         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
58454         of existence.
58455
58456 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58457
58458         * lib/getloadavg.c: Use __VMS, not VMS.
58459         * lib/getopt.c: Likewise.
58460         * lib/getpagesize.h: Likewise.
58461         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
58462         and probably does not work.
58463
58464 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58465
58466         * lib/.cppi-disable: Add wcwidth.
58467         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
58468         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
58469         (ISGRAPH): Remove.  All uses changed to isgraph.
58470         (FOLD) [!defined _LIBC]: Remove special case.
58471         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
58472         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
58473         HAVE_ISBLANK.
58474         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
58475         case.
58476
58477 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58478
58479         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
58480         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
58481         brackets.  Other minor changes to suppress some compiler
58482         warnings.
58483
58484 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58485         and Paul Eggert  <eggert@cs.ucla.edu>
58486
58487         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
58488         of invoking obsolescent AC_HEADER_DIRENT macro.
58489         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
58490         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
58491         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
58492         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58493         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
58494         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58495         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
58496         * m4/readdir.m4: Remove; no longer needed.
58497
58498 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58499         and Paul Eggert  <eggert@cs.ucla.edu>
58500
58501         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
58502         Don't worry about this obsolete case any more.
58503         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
58504         directories.
58505         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
58506         worry about this obsolete case any more.
58507         * lib/fts.c: Likewise.
58508         * lib/getcwd.c: Likewise.
58509         * lib/glob.h: Likewise.
58510         * lib/savedir.c: Likewise.
58511
58512 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58513
58514         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
58515         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
58516         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
58517         needed.
58518         All uses removed.
58519         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58520         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58521         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
58522         needed.
58523         * m4/getdate.m4 (gl_GETDATE): Likewise.
58524         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58525         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58526         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58527         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58528         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58529         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58530         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
58531         needed.
58532
58533 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58534
58535         * lib/memcasecmp.c: Include <limits.h>.
58536         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
58537         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
58538         Don't assume isdigit succeeds only on '0' through '9'.
58539
58540 2006-07-05  Eric Blake  <ebb9@byu.net>
58541
58542         * modules/getaddrinfo (Depends-on): Add snprintf.
58543
58544 2006-07-05  Eric Blake  <ebb9@byu.net>
58545
58546         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
58547         to avoid 'header present but could not be compiled' on cygwin.
58548
58549 2006-07-05  Eric Blake  <ebb9@byu.net>
58550
58551         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
58552         missing from netdb.h.
58553         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
58554
58555 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58556
58557         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
58558         no longer needed.
58559         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
58560         * m4/getdate.m4 (gl_GETDATE): Likewise.
58561         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58562         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58563         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58564         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58565         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58566
58567 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58568
58569         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
58570         All uses of is_space replaced by isspace.
58571         * lib/exit.h: Don't talk about STDC_HEADERS.
58572         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
58573         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
58574         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
58575         replaced by isprint etc.
58576         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
58577         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58578         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
58579         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
58580         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
58581         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58582
58583 2006-07-05  Bruno Haible  <bruno@clisp.org>
58584
58585         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
58586         the function exists, before testing against AIX.
58587         Reported by Martin Lambers <marlam@marlam.de>.
58588
58589 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58590
58591         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
58592         From Mark D. Baushke.
58593
58594 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58595
58596         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
58597         to the absolute name, not just one, to bypass Sun C 5.8's
58598         "warning: #include of /usr/include/... may be non-portable".
58599
58600 2006-07-04  Eric Blake  <ebb9@byu.net>
58601
58602         * modules/dirname-tests: New test module.
58603         * tests/test-dirname.c: New file, replacing dirname.c
58604         TEST_DIRNAME section that was recently deleted.
58605
58606 2006-07-04  Bruno Haible  <bruno@clisp.org>
58607
58608         Assume ANSI C header files and <ctype.h> functions.
58609         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
58610         (mbsnwidth): Use isprint, iscntrl instead.
58611
58612 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         Merge from coreutils.
58615         * MODULES.html.sh: Add xstrtold.
58616         * modules/xstrtold: New file.
58617         * modules/cycle-check (Files): Add lib/same-inode.h.
58618         * modules/dirname (Files): Add m4/double-slash-root.m4.
58619         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
58620         * modules/mkdir-p (Files): Add lib/same-inode.h.
58621         * modules/same (Files): Add lib/same-inode.h.
58622
58623 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58624
58625         * m4/absolute-header.m4: Renamed from full-header-path.m4.
58626         This is to keep the terminology clean; POSIX talks about
58627         "absolute pathnames", not "full pathnames", but the GNU
58628         Coding Standards say to use "path" for something else;
58629         so use "absolute" to keep both sides happy.
58630         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
58631         Set gl_absolute_header, not gl_full_header_path.
58632         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
58633         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
58634         All uses changed.
58635
58636         Merge from coreutils.
58637
58638         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58639
58640         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
58641         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
58642         want to require the building of c-strtod.o.
58643         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
58644         needs -lm directly.
58645         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
58646
58647         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
58648
58649         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
58650         --as-needed option if available.  Problem reported by Albert Chin in
58651         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
58652         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
58653         cc merely issues a bunch of annoying warnings for --as-needed
58654         (this problem was reported by Bob Proulx).  Also, try linking with
58655         -lm to detect a bug in binutils 2.16 (this problem was reported
58656         by Ralf Wildenhues).
58657
58658         2006-06-18  Jim Meyering  <jim@meyering.net>
58659
58660         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
58661         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
58662         macro.
58663         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
58664         also check for glibc-2.4's abort-inducing bug.
58665
58666         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
58667         Low-probability clean-up should be to use rmdir to get rid of
58668         the just-created directory, not unlink.
58669
58670         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
58671         configure fail, and request a bug report to inform us about it.
58672         Add a comment that, barring reports to the contrary, in 2007 we'll
58673         assume ftruncate is universally available.
58674
58675         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58676
58677         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
58678
58679         2006-03-12  Jim Meyering  <jim@meyering.net>
58680
58681         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
58682         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
58683         * m4/same.m4 (gl_SAME): Likewise.
58684         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
58685
58686         2006-03-11  Eric Blake  <ebb9@byu.net>
58687
58688         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
58689         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
58690         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
58691         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
58692
58693 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58694
58695         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
58696         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
58697         reported by Mark D. Baushke, one in
58698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
58699
58700         Merge from coreutils.
58701
58702         * lib/.cppi-disable: Add stdint_.h.
58703         * lib/.cvsignore: Add stdint.h.
58704
58705         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58706
58707         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
58708         both double and long double versions.
58709         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
58710         * lib/xstrtold.c: New file.
58711         * lib/xstrtod.h (xstrtold): New decl.
58712
58713         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58714
58715         * lib/filemode.c (setst): Remove.
58716         (strmode): Rewrite to avoid setst.  This makes the code shorter,
58717         (arguably) clearer, and the generated code is a bit smaller on my
58718         Debian GNU/Linux stable x86 host.
58719
58720         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58721
58722         * lib/filemode.c: Include "filemode.h" first, to test the interface.
58723         Assume that filemode.h includes sys/types.h and sys/stat.h.
58724         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
58725         (ftypelet): Reorder to put common cases first, for efficiency.
58726         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
58727         to do 'M'.
58728         (strmode): Renamed from mode_string, and now stores 12 bytes instead
58729         of 10, for compatibility with FreeBSD.  All callers changed.
58730         (filemodestring): Now stores 12 bytes instead of 10, and sets file
58731         types that can't be deduced solely from st_mode.  First arg is now a
58732         const pointer.
58733         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
58734         (strmode): Renamed from mode_string.
58735         (filemodestring): New decl.
58736         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
58737         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
58738         needed.
58739         (S_ISPORT, S_ISWHT): New macros, if not already defined.
58740
58741         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
58742
58743         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
58744         fsusage.h now does that.  Include fsusage.h first, to test interface.
58745         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
58746         at most one method (the old code could have generated decls that
58747         didn't conform to C89, not that this was ever exercised).
58748         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
58749
58750         2006-03-19  Jim Meyering  <jim@meyering.net>
58751
58752         Work even in a chroot where d_ino values for entries in "/"
58753         don't match the stat.st_ino values for the same names.
58754         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
58755         number, iterate through all entries again, using lstat instead.
58756         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
58757         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
58758
58759         * lib/getcwd.c (__getcwd): Clarify a comment.
58760         Use memcpy in place of a call to strcpy.
58761
58762         2006-03-12  Jim Meyering  <jim@meyering.net>
58763
58764         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
58765         matches that of the current directory (which we're about to chdir ".."
58766         out of), then save the dev-ino of the parent, instead.
58767
58768         * lib/same-inode.h (SAME_INODE): New file/macro.
58769         * lib/chdir-safer.c (SAME_INODE): Remove definition.
58770         Include "same-inode.h", instead.
58771         * lib/same.c: Likewise.
58772         * lib/cycle-check.h: Include "same-inode.h".
58773         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
58774         * lib/cycle-check.c (SAME_INODE): Remove definition.
58775         * lib/root-dev-ino.h: Include "same-inode.h".
58776
58777         2006-03-11  Eric Blake  <ebb9@byu.net>
58778
58779         * lib/same.c (same_name): s/base_name/last_component/
58780         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
58781         * lib/filenamecat.c (file_name_concat): Likewise.
58782
58783         2006-03-11  Eric Blake  <ebb9@byu.net>,
58784                     Paul Eggert  <eggert@cs.ucla.edu>
58785
58786         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
58787         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
58788         drive prefix.
58789         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
58790         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
58791         (last_component): New method.
58792         * lib/dirname.c (dir_len): Determine when drive letters need a
58793         subsequent slash.  Preserve // when it is special.
58794         (dir_name): Don't append dot when drive letter is absolute.
58795         [TEST_DIRNAME]: Move into a full-blown gnulib test.
58796         * lib/basename.c (base_name): New semantics - malloc the result.
58797         Preserve // when it is special.  Preserve relative files that look
58798         like drive letters.
58799         (base_len): Preserve // when it is special.
58800         (last_component): New method, similar to old base_name semantics.
58801         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
58802         base_name.  Strip redundant slashes from ///.
58803
58804 2006-07-03  Jim Meyering  <jim@meyering.net>
58805
58806         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
58807         macro is used before the first cycle_check call.
58808
58809 2006-07-03  Eric Blake  <ebb9@byu.net>
58810
58811         * modules/dirname (Depends-on): Add xstrndup.
58812
58813 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58814
58815         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
58816         test cases, so that config.log is a bit easier to follow.
58817
58818 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58819
58820         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
58821         both are 64 bits, since this seems to be the tradition, and this
58822         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
58823         we ever run into a host that prefers long long to long in this
58824         case, we'll need another configure-time test.  Problem reported by
58825         Jim Meyering.
58826
58827 2006-07-02  Eric Blake  <ebb9@byu.net>
58828
58829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
58830
58831 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58832
58833         * modules/inttypes (Depends-on): No longer depends on stdint.
58834         * modules/stdint (Description): Say more about assumptions.
58835         Say that the fast types might differ.  Say macros are used.
58836         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
58837         (Makefile.am): Revise list of substituted symbols to match
58838         new stdint.m4.
58839         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
58840         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
58841         * tests/test-stdint.c (verify_same_types)
58842         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
58843         the code conforms to C99/C89.
58844         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
58845         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
58846
58847 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58848
58849         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
58850         but fix a bug, by requiring at least 64 bits.
58851         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
58852         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
58853         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
58854         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
58855
58856         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
58857         changes.  Make 2.59 a prerequisite.  Check and substitute for
58858         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
58859         inttypes.h.  Do not use special include files; just use the
58860         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
58861         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
58862         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
58863         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
58864         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
58865         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
58866         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
58867         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
58868         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
58869         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
58870         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
58871         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
58872         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
58873         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
58874         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
58875         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
58876         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
58877         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
58878         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
58879         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
58880         WINT_MAX.  Check for C99 conformance more strictly, by detecting
58881         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
58882         not check for things that C99 does not require, e.g., int8_t.  If
58883         a test isn't needed unless <stdint.h> isn't working, and is
58884         unlikely to be needed for any other reason, then don't do it
58885         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
58886         size_t, since we assume C89 freestanding at least.  Do not check
58887         for sig_atomic_t, wchar_t, or wint_t, since the code now does
58888         the right thing even if the types are not defined.  Instead use:
58889         (gl_STDINT_TYPE_PROPERTIES): New macro.
58890         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
58891         testing whether <sys/types.h> clashes, as Autoconf does this for
58892         us now.  All uses removed.
58893         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
58894         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
58895         (gl_CHECK_TYPE_SAME):
58896         Remove; no longer needed.
58897         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
58898         exists, since we'll return 0 anyway in that case.
58899         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
58900
58901 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58902
58903         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
58904         possible collision with system files.
58905         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
58906         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
58907         WCHAR_MIN and WCHAR_MAX in this case.
58908         (<stddef.h>): Do not include; no longer needed.
58909         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
58910         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
58911         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
58912         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
58913         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
58914         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
58915         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
58916         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
58917         !defined(__c99))]: Include in this case too, since it's harmless
58918         now.
58919         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
58920         dangerous to do so.
58921         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
58922         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
58923         (_STDINT_MIN, _STDINT_MAX): New macros.
58924         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
58925         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
58926         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
58927         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
58928         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
58929         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
58930         macros, not typedefs; this simplifies things quite a bit.
58931         Use long int for all types narrower than int64_t.
58932         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
58933         Define in terms of long long int or int64_t or long int,
58934         not int64_t or int32_t.  This saves some compile-time testing.
58935         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
58936         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
58937         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
58938         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
58939         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
58940         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
58941         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
58942         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
58943         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
58944         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
58945         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58946         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58947         undef any previous version and define our own version, for
58948         simplicity and consistency with the new macros for types.
58949         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58950         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58951         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
58952         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
58953         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
58954         @WINT_T_SUFFIX@ to keep things simple here.
58955         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
58956         Simplify by assuming typical 8/16/32/64 host, since we're
58957         already doing that elsewhere anyway.
58958         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
58959         and assume long long int is 64 bits if available.  This
58960         speeds up 'configure'.
58961
58962 2006-07-01  Eric Blake  <ebb9@byu.net>
58963
58964         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
58965         Reported by Andreas Buening.
58966
58967 2006-07-01  Eric Blake  <ebb9@byu.net>
58968
58969         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
58970
58971 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58972
58973         * lib/getaddrinfo.c: fixed typo
58974
58975 2006-06-29  Jim Meyering  <jim@meyering.net>
58976
58977         * modules/strftime (Maintainer): Add my name, since with the
58978         FPRINTFTIME changes strftime.c has forked from glibc.
58979
58980 2006-06-29  Eric Blake  <ebb9@byu.net>
58981
58982         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
58983
58984 2006-06-29  Eric Blake  <ebb9@byu.net>
58985
58986         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
58987
58988 2006-06-29  Eric Blake  <ebb9@byu.net>
58989
58990         * lib/stat_.h: New file.
58991
58992 2006-06-29  Eric Blake  <ebb9@byu.net>
58993
58994         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
58995         unused static function.
58996
58997 2006-06-29  Eric Blake  <ebb9@byu.net>
58998
58999         * doc/functions.texi (Function Portability): Document missing lstat
59000         on mingw.
59001
59002 2006-06-29  Eric Blake  <ebb9@byu.net>
59003
59004         * MODULES.html.sh: Add sys_stat.
59005         * modules/sys_stat: New module.
59006         * modules/mkstemp (Depends-on): Add sys_stat.
59007
59008 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59009
59010         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
59011
59012 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59013
59014         * m4/c-bs-a.m4: Removed.
59015
59016 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59017
59018         * lib/strftime.c: Assume strftime() exists.
59019
59020 2006-06-29  Derek Price  <derek@ximbiot.com>
59021
59022         * modules/c-bs-a: Removed - \a is C89.
59023         * MODULES.html.sh: Remove c-bs-a.
59024
59025 2006-06-29  Bruno Haible  <bruno@clisp.org>
59026
59027         * modules/wcwidth (License): Change to LGPL.
59028
59029 2006-06-28  Simon Josefsson  <jas@extundo.com>
59030
59031         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
59032         on _WIN32.
59033
59034         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
59035         getnameinfo.
59036
59037 2006-06-28  Simon Josefsson  <jas@extundo.com>
59038
59039         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
59040
59041 2006-06-28  Simon Josefsson  <jas@extundo.com>
59042
59043         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
59044         functions there.  It will succeed on Windows XP, but on Windows
59045         2000 and (presumably) earlier, it will fail, and use the internal
59046         re-implementation.
59047         (use_win32_p): New function.
59048         (getaddrinfo): Use strtoul on servname, to support numeric ports.
59049         Support AI_NUMERICSERV to disable getservbyname.
59050         (getnameinfo): New function, only supports
59051         NI_NUMERICHOST|NI_NUMERICSERV for now.
59052
59053         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
59054         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
59055         getnameinfo.
59056
59057 2006-06-28  Eric Blake  <ebb9@byu.net>
59058
59059         * modules/wcwidth: New file.
59060         * modules/mbchar (Depends-on): Add wcwidth.
59061         * modules/mbswidth (Depends-on): Add wcwidth.
59062         * MODULES.html.sh: Add wcwidth.
59063
59064 2006-06-28  Eric Blake  <ebb9@byu.net>
59065
59066         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
59067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
59068
59069 2006-06-28  Eric Blake  <ebb9@byu.net>
59070
59071         * lib/xvasprintf.h: Fix comments.
59072
59073 2006-06-28  Eric Blake  <ebb9@byu.net>
59074
59075         * lib/mbchar.h (wcwidth): Include wcwidth.h.
59076         * lib/mbswidth.c (wcwidth): Move from here...
59077         * lib/wcwidth.h: ...to this new file.
59078
59079 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59080
59081         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
59082
59083         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
59084         it's obsolete.
59085         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
59086
59087 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59088
59089         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
59090         Autoconf 2.60 says this stuff was obsolete.
59091
59092 2006-06-28  Bruno Haible  <bruno@clisp.org>
59093
59094         * modules/wcwidth (Files): Add m4/wchar_t.m4.
59095
59096 2006-06-28  Bruno Haible  <bruno@clisp.org>
59097
59098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
59099         gt_TYPE_WCHAR_T.
59100
59101 2006-06-28  Bruno Haible  <bruno@clisp.org>
59102
59103         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
59104         declaration for wcwidth.
59105         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
59106
59107 2006-06-28  Bruno Haible  <bruno@clisp.org>
59108
59109         * lib/mkdtemp.c [MINGW]: Include <io.h>.
59110         (mkdir): Define using _mkdir.
59111
59112 2006-06-28  Bruno Haible  <bruno@clisp.org>
59113
59114         * lib/getaddrinfo.h: Fix POSIX URL.
59115         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
59116         _WIN32.
59117         (use_win32_p): Make static.
59118         (getaddrinfo): Reject service name if it is empty or does not consist
59119         solely of decimal digits, or if its value is > 65535.
59120         (getnameinfo): Remove useless casts.
59121
59122 2006-06-27  Simon Josefsson  <jas@extundo.com>
59123
59124         * modules/sys_select: New file, suggested by Bruno Haible, Paul
59125         Eggert and Martin Lambers.
59126
59127 2006-06-27  Simon Josefsson  <jas@extundo.com>
59128
59129         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
59130         Eggert and Martin Lambers.
59131
59132 2006-06-27  Bruno Haible  <bruno@clisp.org>
59133
59134         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
59135         result to 0, not to empty.
59136         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
59137
59138 2006-06-27  Bruno Haible  <bruno@clisp.org>
59139
59140         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
59141
59142 2006-06-26  Simon Josefsson  <jas@extundo.com>
59143
59144         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
59145         present.
59146
59147 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
59148
59149         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
59150         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
59151         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
59152
59153 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
59154
59155         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
59156
59157 2006-06-26  Bruno Haible  <bruno@clisp.org>
59158
59159         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
59160
59161 2006-06-26  Bruno Haible  <bruno@clisp.org>
59162
59163         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
59164
59165 2006-06-26  Bruno Haible  <bruno@clisp.org>
59166
59167         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
59168         SGI C compiler in pre-C99 mode.
59169         Suggested by Mark D. Baushke and Larry Jones.
59170
59171 2006-06-26  Bruno Haible  <bruno@clisp.org>
59172
59173         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
59174         WCHAR_MAX.
59175         Reported by Mark D. Baushke and Larry Jones.
59176
59177 2006-06-26  Bruno Haible  <bruno@clisp.org>
59178
59179         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
59180         in pre-C99 mode.
59181         Suggested by Mark D. Baushke and Larry Jones.
59182
59183 2006-06-23  Simon Josefsson  <jas@extundo.com>
59184             Bruno Haible  <bruno@clisp.org>
59185
59186         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
59187         Emit mostlyclean-local rule.
59188         (func_emit_tests_Makefile_am): Likewise.
59189         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
59190
59191 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
59192
59193         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
59194
59195 2006-06-23  Bruno Haible  <bruno@clisp.org>
59196
59197         * tests/test-stdint.c: Update to match ISO C 99 Technical
59198         Corrigendum 1.
59199
59200 2006-06-23  Bruno Haible  <bruno@clisp.org>
59201
59202         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
59203
59204 2006-06-23  Bruno Haible  <bruno@clisp.org>
59205
59206         * lib/stdint_.h: Treat IRIX like OpenBSD.
59207
59208 2006-06-23  Bruno Haible  <bruno@clisp.org>
59209
59210         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
59211         ISO C 99 Technical Corrigendum 1.
59212
59213 2006-06-22  Simon Josefsson  <jas@extundo.com>
59214
59215         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
59216         MinGW.
59217
59218 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59219
59220         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
59221         needed.  Some compiler complained about some of them.  Problem reported
59222         by Larry Jones in
59223         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
59224
59225 2006-06-21  Simon Josefsson  <jas@extundo.com>
59226
59227         * tests/test-getaddrinfo.c: New file.
59228
59229         * modules/getaddrinfo-tests: New file.
59230
59231         * MODULES.html.sh: Add inet_pton.
59232
59233         * modules/inet_pton: New file.
59234
59235 2006-06-21  Simon Josefsson  <jas@extundo.com>
59236
59237         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
59238         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
59239         of using the (limited) gnulib implementation on Windows XP.
59240
59241         * m4/inet_pton.m4: New file.
59242
59243 2006-06-21  Simon Josefsson  <jas@extundo.com>
59244
59245         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
59246         variable.
59247
59248         * lib/socket_.h: Don't define WINVER.
59249
59250         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
59251         slightly modified to work in gnulib.
59252
59253 2006-06-21  Simon Josefsson  <jas@extundo.com>
59254
59255         * doc/gnulib.texi (Windows sockets): Add.
59256
59257 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59258
59259         * lib/read-file.c (fread_file): Start with buffer allocation of
59260         0 bytes rather than 1 byte; this simplifies the code.
59261         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
59262         code to free buffer and save/restore errno.
59263         (internal_read_file): Remove unused local.
59264
59265 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59266
59267         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
59268         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
59269         Problem reported by Denis Excoffier in
59270         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
59271
59272 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59273
59274         * modules/sys_socket, modules/socklen: Include sys/types since
59275         FreeBSD 4.x's sys/socket.h needs it.
59276
59277 2006-06-19  Simon Josefsson  <jas@extundo.com>
59278
59279         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
59280
59281 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59282
59283         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
59284
59285 2006-06-19  Bruno Haible  <bruno@clisp.org>
59286
59287         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
59288         and FULL_PATH_INTTYPES_H in angle brackets.
59289         Reported by Mark D. Baushke <mdb@gnu.org>.
59290
59291 2006-06-17  Eric Blake  <ebb9@byu.net>
59292
59293         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
59294         errno.
59295
59296 2006-06-17  Bruno Haible  <bruno@clisp.org>
59297
59298         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
59299         <sys/inttypes.h>.
59300
59301 2006-06-17  Bruno Haible  <bruno@clisp.org>
59302
59303         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
59304         whether errno is declared. Assume <errno.h> declares errno.
59305
59306 2006-06-17  Bruno Haible  <bruno@clisp.org>
59307
59308         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
59309
59310 2006-06-17  Bruno Haible  <bruno@clisp.org>
59311
59312         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
59313         problem on Solaris 2.5.1.
59314
59315 2006-06-16  Eric Blake  <ebb9@byu.net>
59316
59317         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
59318         * lib/unicodeio.c [!defined errno]: Likewise.
59319         * lib/strtol.c [!defined errno]: Likewise.
59320         * lib/strtod.c [!defined errno]: Likewise.
59321
59322 2006-06-15  Eric Blake  <ebb9@byu.net>
59323
59324         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
59325
59326 2006-06-15  Eric Blake  <ebb9@byu.net>
59327
59328         * config/srclist.txt (ssize_t.m4): Lose sync.
59329
59330 2006-06-15  Bruno Haible  <bruno@clisp.org>
59331
59332         * modules/stdint (Files): Include m4/full-header-path.m4,
59333         m4/size_max.m4, m4/wchar_t.m4.
59334         (Makefile.am): Many more substitutions.
59335         * modules/stdint-tests: New file.
59336         * tests/test-stdint.c: New file.
59337
59338 2006-06-15  Bruno Haible  <bruno@clisp.org>
59339
59340         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
59341         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
59342         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
59343         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
59344         gl_CHECK_TYPE_SAME): New macros.
59345
59346 2006-06-15  Bruno Haible  <bruno@clisp.org>
59347
59348         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
59349
59350 2006-06-15  Bruno Haible  <bruno@clisp.org>
59351
59352         * lib/stdint_.h: Rewritten to be fully auto-configured.
59353         Fixes bug on HP-UX/IA64.
59354
59355 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
59356
59357         * lib/getdate.y (__attribute__): Don't define if already defined.
59358         Problem reported by Larry Jones.
59359         * lib/utimens.c (__attribute__): Likewise.
59360
59361 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
59362
59363         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
59364         reported by Andreas Schwab.
59365
59366 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59367             Bruno Haible  <bruno@clisp.org>
59368
59369         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
59370         check for the declaration of strnlen and a run test that exposes the
59371         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
59372         rpl_strndup.
59373
59374 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59375             Bruno Haible  <bruno@clisp.org>
59376
59377         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
59378
59379 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59380
59381         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
59382         compile test, for Tru64 4.0D.
59383
59384 2006-05-28  Karl Berry  <karl@gnu.org>
59385
59386         * config/srclist.txt (printf-args.c): lose sync.
59387
59388 2006-05-26  Martin Lambers  <marlam@marlam.de>
59389
59390         * lib/getpass.c: Updates the test for the native W32 API, and adds
59391         missing includes, thus fixing compilation warnings.
59392
59393 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59394
59395         * lib/exclude.c (exclude_fnmatch): New function.
59396         (excluded_file_name): Call exclude_fnmatch.
59397         * lib/exclude.h (excluded_file_name): New prototype
59398
59399 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
59400
59401         * lib/tempname.c (small_open, large_open): New macros.
59402         (__open, __open64) [!_LIBC]: Remove.
59403         (__gen_tempname): Use small_open and large_open instead of __open
59404         and __open64.  This fixes a portability bug on HP-UX 11.11i
59405         reported by Simon Wing-Tang in
59406         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
59407
59408 2006-05-24  Bruno Haible  <bruno@clisp.org>
59409
59410         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
59411         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
59412         Reported by Thorsten Maerz <torte@netztorte.de> via
59413         Aaron Stone <aaron@serendipity.cx>.
59414
59415 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59416
59417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
59418         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
59419         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
59420         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
59421         not really conditional on the cache.
59422         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
59423
59424 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59425
59426         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
59427         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
59428         (my_usleep): Don't mishandle maximum value.
59429
59430 2006-05-19  Jim Meyering  <jim@meyering.net>
59431
59432         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
59433
59434 2006-05-17  Bruno Haible  <bruno@clisp.org>
59435
59436         Cygwin portability.
59437         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
59438
59439 2006-05-17  Bruno Haible  <bruno@clisp.org>
59440
59441         * lib/stdint_.h: Fix recognition of Cygwin.
59442
59443 2006-05-15  Bruno Haible  <bruno@clisp.org>
59444
59445         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
59446         on libtool patch by Ralf Wildenhues.
59447
59448 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59449
59450         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
59451         test for C99 conformance; (bool) 0.5 is an integer constant
59452         expression, but (bool) -0.5 is not.  Problem reported by Fedor
59453         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
59454
59455 2006-05-11  Simon Josefsson  <jas@extundo.com>
59456
59457         * m4/xvasprintf.m4: Fix obvious typo.
59458
59459 2006-05-11  Jim Meyering  <jim@meyering.net>
59460
59461         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
59462         James Lemley.
59463
59464 2006-05-10  Simon Josefsson  <jas@extundo.com>
59465
59466         * lib/md4.c: Typo fix, update copyright years.
59467         (K1, K2): Don't use L because it turn computations into 64-bit on
59468         64-bit platforms.
59469
59470 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
59471
59472         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
59473         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
59474         unwanted sign propagation, e.g., on hosts with 64-bit int.
59475         There still are some problems with reeelly weird theoretical hosts
59476         (e.g., 33-bit int) but it's not worth worrying about now.
59477         * lib/sha1.c (rol): Likewise.
59478         (K1, K2, K3, K4): Remove unnecessary L suffix.
59479
59480 2006-05-10  Bruno Haible  <bruno@clisp.org>
59481
59482         * lib/des.c: Cast to avoid warnings.
59483
59484 2006-05-09  Bruno Haible  <bruno@clisp.org>
59485
59486         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
59487         (Depends-on): Depend also on xsize, stdarg.
59488         (configure.ac): Add gl_XVASPRINTF.
59489
59490 2006-05-09  Bruno Haible  <bruno@clisp.org>
59491
59492         * m4/xvasprintf.m4: New file.
59493
59494 2006-05-09  Bruno Haible  <bruno@clisp.org>
59495
59496         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
59497         (EOVERFLOW): Define fallback value.
59498         (xstrcat): New function.
59499         (xvasprintf): Recognize the special case of a string concatenation.
59500
59501 2006-05-08  Eric Blake  <ebb9@byu.net>
59502
59503         * gnulib-tool (func_version): Base copyright year on CVS date.
59504         (func_emit_copyright_notice): New function.
59505         (func_emit_lib_Makefile_am): Use it.
59506         (func_emit_tests_Makefile_am): Likewise.
59507         (func_import): Likewise.
59508
59509 2006-05-08  Bruno Haible  <bruno@clisp.org>
59510
59511         * modules/stdarg: New file.
59512         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
59513
59514 2006-05-08  Bruno Haible  <bruno@clisp.org>
59515
59516         * m4/stdarg.m4: New file, from GNU gettext.
59517
59518 2006-05-08  Bruno Haible  <bruno@clisp.org>
59519
59520         * config/srclist.txt (build-aux/config.rpath): different from latest
59521         release.
59522
59523 2006-05-08  Bruno Haible  <bruno@clisp.org>
59524
59525         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
59526
59527 2006-05-05  Jim Meyering  <jim@meyering.net>
59528
59529         * m4/warning.m4: New file, derived from bison's file by the same name.
59530
59531 2006-05-03  Bruno Haible  <bruno@clisp.org>
59532
59533         * lib/stdint_.h: Shorter URL.
59534         * lib/inttypes.h: Likewise.
59535
59536 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59537
59538         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
59539
59540 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59541
59542         * lib/verify.h: Document the internals better.  Most of this change
59543         was written by Bruno Haible.
59544
59545 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59546
59547         * doc/verify.texi: New file, partly based on a proposal by
59548         Bruno Haible.
59549
59550 2006-05-02  Bruno Haible  <bruno@clisp.org>
59551
59552         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
59553         test from here...
59554         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
59555
59556 2006-04-29  Bruno Haible  <bruno@clisp.org>
59557
59558         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
59559         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
59560
59561 2006-04-29  Bruno Haible  <bruno@clisp.org>
59562
59563         * gnulib-tool: Make --update option actually work.
59564
59565 2006-04-29  Bruno Haible  <bruno@clisp.org>
59566
59567         * doc/gcd.texi: New file.
59568         * doc/gnulib.texi: Include it.
59569
59570 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
59571
59572         * lib/getdate.y (get_date): When adding relative date, start with the
59573         initial time, not with the result of the first mktime call.
59574
59575 2006-04-25  Bruno Haible  <bruno@clisp.org>
59576
59577         * gnulib-tool (func_import): Output the include directives in three
59578         blocks, sorted separately.
59579         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59580
59581 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59582
59583         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
59584         to define main with arguments, for C++.  Reported by Eric Blake.
59585         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
59586         Prefer 'int main ()' to 'int main (void)', for C++.
59587         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
59588         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
59589         for 'main', for C99 and C++.
59590
59591 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59592
59593         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
59594         Don't assume that exit status -1 is valid.
59595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59596         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59597         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
59598         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
59599         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
59600         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
59601         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
59602         functions can be used without declaring them, or that you can
59603         exit with status -1.
59604         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
59605
59606 2006-04-24  Karl Berry  <karl@gnu.org>
59607
59608         * config/srclist.txt (longdouble.m4): sync lost.
59609
59610 2006-04-24  Eric Blake  <ebb9@byu.net>
59611
59612         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
59613
59614 2006-04-24  Bruno Haible  <bruno@clisp.org>
59615
59616         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
59617         poll() implementation in AIX.
59618         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59619
59620 2006-04-24  Bruno Haible  <bruno@clisp.org>
59621
59622         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
59623         assigned exactly once.
59624
59625 2006-04-23  Claudio Fontana  <claudio@gnu.org>
59626             Bruno Haible  <bruno@clisp.org>
59627
59628         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
59629         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
59630         for AM_CPPFLAGS.
59631
59632 2006-04-23  Bruno Haible  <bruno@clisp.org>
59633
59634         * modules/copy-file: Depend on unistd.
59635         * modules/execute: Likewise.
59636         * modules/fatal-signal: Likewise.
59637         * modules/findprog: Likewise.
59638         * modules/mkdtemp : Likewise.
59639         * modules/pipe: Likewise.
59640         * modules/wait-process: Likewise.
59641
59642 2006-04-23  Bruno Haible  <bruno@clisp.org>
59643
59644         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
59645         condition was already detected.
59646         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59647
59648 2006-04-23  Bruno Haible  <bruno@clisp.org>
59649
59650         * lib/copy-file.c: Include <unistd.h> unconditionally.
59651         * lib/execute.c: Likewise.
59652         * lib/fatal-signal.c: Likewise.
59653         * lib/findprog.c: Likewise.
59654         * lib/mkdtemp.c: Likewise.
59655         * lib/pipe.h: Likewise.
59656         * lib/pipe.c: Likewise.
59657         * lib/wait-process.h: Likewise.
59658
59659 2006-04-23  Bruno Haible  <bruno@clisp.org>
59660
59661         * gnulib-tool (func_usage): Fix --import description. Document
59662         --update.
59663         (func_import): Create temporary file in a temporary directory, if
59664         --dry-run is specified. Silence errors from 'grep' when there are no
59665         m4 files in $m4dir.
59666         (func_create_testdir): Silence errors from 'grep' when there are no
59667         m4 files in $m4dir.
59668         Reported by Karl Berry <karl@freefriends.org>.
59669
59670 2006-04-20  Bruno Haible  <bruno@clisp.org>
59671
59672         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
59673         one argument, so that the code will be portable to Autoconf 2.60.
59674         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
59675         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59676         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
59677
59678 2006-04-19  Derek Price  <derek@ximbiot.com>
59679             Eric Blake  <ebb9@byu.net>
59680
59681         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
59682         rather than "/full/path.h".  Update comment to match.  Shorten &
59683         generalize m4_translit call via AS_TR_CPP.
59684
59685 2006-04-19  Derek Price  <derek@ximbiot.com>
59686             Eric Blake  <ebb9@byu.net>
59687
59688         * lib/inttypes.h: Correct grammar in comment.
59689
59690 2006-04-18  Derek Price  <derek@ximbiot.com>
59691             Paul Eggert  <eggert@cs.ucla.edu>
59692
59693         * modules/inttypes: New file.
59694         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
59695
59696 2006-04-18  Derek Price  <derek@ximbiot.com>
59697             Paul Eggert  <eggert@cs.ucla.edu>
59698
59699         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
59700         New files.
59701
59702 2006-04-18  Derek Price  <derek@ximbiot.com>
59703             Paul Eggert  <eggert@cs.ucla.edu>
59704
59705         * lib/inttypes.h: New file.
59706         * lib/strtoimax.c: Assume <inttypes.h>.
59707
59708 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
59709
59710         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
59711         isn't mounted.  Problem reported by Kir Kolyshkin.
59712
59713 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59714
59715         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
59716         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
59717         Derek R. Price.
59718         * lib/regex.h (RE_DUP_MAX): Update comment to match current
59719         implementation.
59720
59721 2006-04-12  Eric Blake  <ebb9@byu.net>
59722
59723         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
59724         is now done automatically by the corresponding Autoconf macro.
59725
59726 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
59727
59728         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
59729         time_r.h.
59730
59731 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59732
59733         Merge regex changes from libc, removing some of our
59734         POSIX-conformance changes that were rejected and redoing them in a
59735         less-intrusive way.
59736
59737         * lib/regcomp.c (re_compile_internal, init_dfa):
59738         Length arg is now size_t, not Idx.  All uses changed.
59739         (peek_token): Forward decl now says internal_function.
59740         (__re_error_msgid, __re_error_msgid_idx):
59741         Now static rather than extern with attribute_hidden.
59742         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
59743         For some reason libc prefers K&R style defns for external functions.
59744         (regerror) [!defined _LIBC]: Likewise.
59745         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
59746         (seek_collating_symbol_entry, lookup_collation_sequence_value):
59747         (build_range_exp, build_collating_symbol):
59748         Use K&R-style defn.
59749         (re_compile_fastmap): Use '\0' to memset, not 0.
59750         (utf8_sb_map): Make the calculations more obvious.
59751         (init_dfa, parse_bracket_exp, build_charclass_op):
59752         Call calloc and cast result, as glibc does.
59753         (init_word_char, fetch_token, peek_token, peek_token_bracket):
59754         (build_range_exp, build_collating_symbol):
59755         Now internal functions.
59756
59757         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
59758
59759         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
59760         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
59761         Don't depend on VMS; depend on __VMS instead, for POSIX
59762         namespace cleanness.
59763         (regoff_t): Define to ssize_t, not long int.
59764
59765         Remove the REG_ macros named below.  Instead, make the old names
59766         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
59767         __USE_GNU_REGEX.
59768         (REG_BACKSLASH_ESCAPE_IN_LISTS):
59769         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
59770         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
59771         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
59772         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
59773         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
59774         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
59775         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
59776         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
59777         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
59778         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
59779         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
59780         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
59781         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
59782         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
59783         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
59784         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
59785         (REG_NREGS):
59786         Remove.  All uses replaced by the old RE_* names.
59787         (RE_BACKSLASH_ESCAPE_IN_LISTS):
59788         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
59789         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
59790         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
59791         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
59792         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
59793         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
59794         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
59795         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
59796         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
59797         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
59798         Don't bother having these macros be independent of each others'
59799         values, since they no longer exist in the POSIX name space.
59800
59801         Rename the following member names back to their old names,
59802         unless !__USE_GNU_REGEX.  All uses changed back.
59803         (buffer): Renamed from re_buffer.
59804         (allocated): Renamed from re_allocated.
59805         (used): Renamed from re_used.
59806         (syntax): Renamed from re_syntax.
59807         (fastmap): Renamed from re_fastmap.
59808         (translate): Renamed from re_translate.
59809         (can_be_null): Renamed from re_can_be_null.
59810         (regs_allocated): Renamed from re_regs_allocated.
59811         (fastmap_accurate): Renamed from re_fastmap_accurate.
59812         (no_sub): Renamed from re_no_sub.
59813         (not_bol): Renamed from re_not_bol.
59814         (not_eol): Renamed from re_not_eol.
59815         (newline_anchor): Renamed from re_newline_anchor.
59816         (num_regs): Renamed from rm_num_regs.
59817         (start): Renamed from rm_start.
59818         (end): Renamed from rm_end.
59819
59820         (free_state): Move up a bit.
59821
59822         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
59823         #define to be empty.
59824         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
59825         when that is what is intended.
59826         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
59827         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
59828         (MAX): New macro.
59829         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
59830         All uses changed back to re_malloc, etc.  It's now the caller's
59831         responsibility to check for overflow; all callers changed.
59832         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
59833         (re_x2nrealloc): Remove.
59834         (free_state): Remove decl.
59835
59836         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
59837         (re_set_registers, re_exec):
59838         Use K&R-style defn.
59839
59840         2006-01-31  Roland McGrath  <roland@redhat.com>
59841
59842         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
59843         Reported by Mike Frysinger <vapier@gentoo.org>.
59844
59845         2006-01-15  Andreas Jaeger  <aj@suse.de>
59846
59847         [BZ #1950]
59848         * lib/regex_internal.c (re_string_reconstruct): Adjust for
59849         build_wcs_upper_buffer change.
59850         (build_wcs_upper_buffer): Change return type.
59851
59852         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
59853
59854         * lib/regex_internal.h: Include <stdint.h> if available.
59855
59856         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
59857
59858         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
59859
59860         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59861
59862         * lib/regcomp.c: Adjust for changed secondary hash function.
59863
59864         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
59865
59866         * lib/regex.h: Pretty printing.
59867         Clean up namespace a bit.
59868
59869         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
59870
59871         * lib/regexec.c (update_cur_sifted_state, check_arrival,
59872         check_arrival_add_next_nodes): Avoid using uninitialized variable.
59873
59874         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59875                     Ulrich Drepper  <drepper@redhat.com>
59876
59877         [BZ #1302]
59878         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
59879         changed.
59880         (bitset_word_t): Renamed from bitset_word.  All uses changed.
59881
59882         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
59883
59884         [BZ #281]
59885         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
59886         * lib/regcomp.c: Remove unnecessary uses of
59887         unsigned RE_TRANSLATE_TYPE.
59888         * lib/regex_internal.h: Likewise.
59889         * lib/regex_internal.c: Likewise.
59890         * lib/regexec.c: Likewise.
59891         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
59892
59893         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
59894
59895         * lib/regexec.c (find_recover_state): Remove unnecessary
59896         initialization.
59897         (transit_state_bkref): Make DFA a const pointer.
59898         (get_subexp): Likewise.
59899         (check_arrival): Likewise.
59900         (update_cur_sifted_state): Likewise.
59901         (re_search_internal): Likewise.
59902         (prune_impossible_nodes): Likewise.
59903         (acquire_init_state_context): Likewise.
59904         (proceed_next_node): Likewise.
59905         (set_regs): Likewise.
59906         (free_fail_stack_return): Likewise.
59907         (check_arrival_expand_ecl): Mark DFA parameter as const.
59908         (check_arrival_expand_ecl_sub): Likewise.
59909         (check_subexp_limits): Likewise.
59910         (sub_epsilon_src_nodes):  Likewise.
59911         (add_epsilon_src_nodes):  Likewise.
59912         (merge_state_array): Likewise.
59913         (update_regs): Likewise.
59914         (build_trtable): Likewise.
59915         (sift_states_backward): Mark MCTX parameter as const.
59916         (build_sifted_states): Likewise.
59917         (update_cur_sifted_state): Likewise.
59918         (sift_states_mkref): Likewise.
59919         (check_arrival_expand_ecl): Mark eclosure as const.
59920         (check_dst_limits_calc_pos_1): Likewise.
59921         * lib/regex_internal.h (re_match_context_t): Make dfa a const
59922         pointer.
59923
59924         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
59925
59926         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
59927         (transit_state_sb): Likewise.
59928         (transit_state_mb): Likewise.
59929         (sift_states_iter_mb): Likewise.
59930         (check_arrival_add_next_nodes): Likewise.
59931         (check_node_accept_bytes): Change first parameter to pointer-to-const.
59932         [_LIBC] (re_search_2_stub): Use mempcpy.
59933
59934         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
59935         mbrtowc for very simple UTF-8 case.
59936
59937         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
59938         a pointer-to-const.
59939         (re_acquire_state_context): Likewise.
59940         * lib/regex_internal.h: Adjust prototypes.
59941
59942         * lib/regex.c: Prevent using C++ compilers.
59943
59944         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
59945         (re_acquire_state_context): Likewise.
59946
59947 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59948
59949         * modules/regex (Depends-on): Add ssize_t.
59950
59951 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59952
59953         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
59954         translation table.
59955
59956 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59957
59958         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
59959
59960 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
59961             Bruno Haible  <bruno@clisp.org>
59962
59963         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
59964         <sys/types.h> and <inttypes.h>.
59965
59966 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59967
59968         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
59969         `__error_t_defined', so argp.h will not typedef the former.
59970
59971 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
59972
59973         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
59974         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
59975         glibc names.  Even if glibc is changed to conform to POSIX, the
59976         traditional names will be available anyway, since regex depends on
59977         the extensions module.  Also, fix a longstanding typo in the
59978         implementation of Spencer ERE test #75 from grep 2.3.  Problems
59979         reported by Emanuele Giaquinta.  Also, change sense of cached
59980         variable, so that the message makes sense.
59981
59982 2006-03-24  Simon Josefsson  <jas@extundo.com>
59983
59984         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
59985         including some doc fixes.
59986         (base64_encode_alloc): Fix +1 bug on allocation failures.
59987
59988 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59989
59990         * lib/base64.c (base64_encode): Do not read past end of array with
59991         unsanitized input on systems with CHAR_BIT > 8.
59992
59993 2006-03-24  Eric Blake  <ebb9@byu.net>
59994
59995         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
59996
59997 2006-03-22  Karl Berry  <karl@gnu.org>
59998
59999         * config/srclist.txt (*setenv.[ch]): get from coreutils.
60000         * config/srclistvars.sh (COREUTILS): new var.
60001
60002 2006-03-17  Jim Meyering  <jim@meyering.net>
60003
60004         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
60005         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
60006
60007 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60008
60009         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
60010         no longer needs it.  Instead, check that regoff_t is as least
60011         as wide as ptrdiff_t.
60012
60013         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
60014         so that our regex.h stays compatible with the installed regex.
60015         This is helpful for installers who configure --without-included-regex.
60016         Problem reported by Emanuele Giaquinta.
60017
60018 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60019
60020         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
60021         Typedef to long int, not to off_, as POSIX will likely change
60022         in that direction.
60023
60024 2006-03-15  Eric Blake  <ebb9@byu.net>
60025
60026         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
60027
60028 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60029
60030         * lib/argp-help.c (validate_uparams): Fix typo
60031         * lib/argp-parse.c (argp_default_options): Consistently begin help
60032         messages with a lowercase letter.
60033
60034 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
60035
60036         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
60037         overrun buffers and shouldn't be used (much as gets shouldn't be
60038         used).
60039         * lib/time_r.c (asctime_r, ctime_r): Likewise.
60040
60041 2006-03-08  Simon Josefsson  <jas@extundo.com>
60042
60043         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
60044         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60045
60046 2006-03-08  Simon Josefsson  <jas@extundo.com>
60047
60048         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
60049         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60050
60051 2006-03-08  Simon Josefsson  <jas@extundo.com>
60052
60053         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
60054         signal that configure disabled the device.
60055
60056 2006-03-08  Simon Josefsson  <jas@extundo.com>
60057
60058         * build-aux/maint.mk: Fix refresh-po, to handle no translated
60059         languages.
60060
60061 2006-03-07  Simon Josefsson  <jas@extundo.com>
60062
60063         * modules/getopt (Depends-on): Add unistd.
60064
60065         * modules/unistd: New file.
60066
60067 2006-03-07  Simon Josefsson  <jas@extundo.com>
60068
60069         * modules/gc-random: New file.
60070
60071 2006-03-07  Simon Josefsson  <jas@extundo.com>
60072
60073         * m4/unistd_h.m4: New file.
60074
60075 2006-03-07  Simon Josefsson  <jas@extundo.com>
60076
60077         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
60078         test to be side-effect free by storing the result in the cache
60079         variable gl_cv_lib_readline, and moving the assignment of
60080         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
60081         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60082
60083 2006-03-07  Simon Josefsson  <jas@extundo.com>
60084
60085         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
60086         error on missing devices (the functions will return an error).
60087
60088         * m4/gc.m4: Move random stuff to gc-random.m4
60089
60090 2006-03-07  Simon Josefsson  <jas@extundo.com>
60091
60092         * lib/unistd_.h: New file.
60093
60094 2006-03-07  Simon Josefsson  <jas@extundo.com>
60095
60096         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
60097
60098 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60099
60100         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
60101         Problem reported by Juan Manuel Guerrero.
60102
60103 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60104
60105         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
60106         the unistd module.
60107         * lib/getlogin_r.c: Likewise.
60108         * lib/getlogin_r.h: Likewise.
60109         * lib/glob.c: Likewise.
60110         * lib/pagealign_alloc.c: Likewise.
60111         * lib/unistd_.h: Remove; no longer needed.
60112
60113 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60114
60115         * MODULES.html.sh (Support for systems lacking POSIX:2001):
60116         Add unistd.
60117         * modules/c-stack (Depends-on): Add unistd.
60118         * modules/getlogin_r: Likewise.
60119         * modules/glob: Likewise.
60120         * modules/pagealign_alloc: Likewise.
60121         * modules/unistd (Files): Remove lib/unistd_.h.
60122         (EXTRA_DIST): Remove.
60123         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
60124         need unistd_.h.
60125         (MOSTLYCLEANFILES): Remove unistd.h-t.
60126
60127 2006-03-03  Simon Josefsson  <jas@extundo.com>
60128
60129         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
60130
60131 2006-03-03  Simon Josefsson  <jas@extundo.com>
60132
60133         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
60134         libidn and bison.
60135
60136 2006-03-03  Simon Josefsson  <jas@extundo.com>
60137
60138         * build-aux/maint.mk: Add indent target.
60139
60140 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
60141
60142         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
60143         our replacement poll.h in any case, to avoid a differing
60144         declaration from a system header.  Seen on AIX.
60145
60146 2006-03-01  Simon Josefsson  <jas@extundo.com>
60147
60148         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
60149         <kasal@ucw.cz>.
60150
60151 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60152
60153         * modules/gettime (Depends-on): Add extensions module.
60154         * modules/nanosleep (Depends-on): Likewise.
60155         * modules/settime (Depends-on): Likewise.
60156
60157 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60158
60159         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
60160         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
60161         pedantically.
60162         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60163         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
60164
60165         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
60166         not "==".  Reported by Ralf Wildenhues.
60167
60168 2006-03-01  Karl Berry  <karl@gnu.org>
60169
60170         * doc/Copyright/request-*: new files, synced from gnuorg.
60171
60172 2006-03-01  Karl Berry  <karl@gnu.org>
60173
60174         * config/srclist.txt (Copyright/*): new entries.
60175
60176 2006-02-28  Simon Josefsson  <jas@extundo.com>
60177
60178         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
60179
60180 2006-02-27  Simon Josefsson  <jas@extundo.com>
60181
60182         * lib/base64.h: Indent #define's.  From Jim Meyering
60183         <jim@meyering.net>.
60184
60185 2006-02-27  Jim Meyering  <jim@meyering.net>
60186
60187         Revert the change of 2006-02-24, so these files can continue
60188         to be sync'd from gettext.
60189         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
60190         of `config.h'.
60191
60192 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60193
60194         * modules/intprops: New file.
60195         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60196         Add intprops.
60197         * modules/getloadavg (Files): Remove lib/intprops.h.
60198         (Depends-on): Add intprops.
60199         * modules/human: Likewise.
60200         * modules/inttostr: Likewise.
60201         * modules/openat: Likewise.
60202         * modules/sig2str: Likewise.
60203         * modules/userspec: Likewise.
60204         * modules/utimecmp: Likewise.
60205         * modules/xnanosleep: Likewise.
60206         * modules/xstrtol: Likewise.
60207
60208 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
60209
60210         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
60211         * modules/lock-tests (TESTS): Use $(EXEEXT).
60212         * modules/tls-tests: Likewise.
60213         * modules/argp-tests: Likewise.
60214         (check_PROGRAMS): New var, replacing...
60215         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
60216
60217 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60218
60219         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
60220         `config.h'.
60221
60222 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60223
60224         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
60225
60226 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60227
60228         Sync from coreutils.
60229         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
60230         gl_CHDIR_SAFER.
60231
60232 2006-02-22  Jim Meyering  <jim@meyering.net>
60233
60234         Sync from coreutils.
60235         * m4/chdir-safer.m4: New file.
60236
60237 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60238
60239         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
60240         AT_FDCWD exceeds INT_MAX.
60241         * lib/openat.h (AT_FDCWD): Likewise.
60242
60243 2006-02-17  Eric Blake  <address@hidden>
60244
60245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
60246
60247 2006-02-16  Simon Josefsson  <jas@extundo.com>
60248
60249         * modules/getaddrinfo (Depends-on): Add sys_socket.
60250
60251 2006-02-15  Simon Josefsson  <jas@extundo.com>
60252
60253         * build-aux/maint.mk: Add dsyntax-check rule.
60254
60255 2006-02-15  Eric Blake  <ebb9@byu.net>
60256
60257         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
60258         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
60259         'present but cannot compile' warnings on cygwin.
60260         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
60261         use ws2tcpip.h if sys/socket.h works.
60262         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
60263         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
60264
60265 2006-02-14  Simon Josefsson  <jas@extundo.com>
60266
60267         * modules/maintainer-makefile (Files): Rename.
60268
60269         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
60270         and (the local) Makefile.cfg to maint-cfg.mk.
60271
60272         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
60273         to the latter.
60274
60275         * modules/maintainer-makefile: New module.
60276
60277         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
60278         severaly stripped to make it possible to build it up from scratch
60279         with reliable tests.
60280
60281         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
60282         fixes to permit overriding the default actions when configure and
60283         makefile are not available.
60284
60285 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60286
60287         Sync from coreutils.
60288         * modules/lstat (Depends-on): Don't depend on xalloc.
60289         (License): Change from GPL to LGPL, since this is now simply a
60290         replacement for a libc function.
60291
60292 2006-02-14  Jim Meyering  <jim@meyering.net>
60293
60294         Sync from coreutils.
60295
60296         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
60297         failure on deficient systems, and simplify gnulib lgpl dependencies.
60298         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
60299         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
60300
60301         * lib/xalloc-die.c: Remove unused definition of N_.
60302
60303 2006-02-14  Jim Meyering  <jim@meyering.net>
60304
60305         Sync from coreutils.
60306         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
60307         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
60308         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
60309         double-quote uses of that variable, to accommodate the rare case in
60310         which getmntent is available in none of the libraries checked.  This
60311         happens at least on FreeBSD 5.0.
60312
60313 2006-02-13  Simon Josefsson  <jas@extundo.com>
60314
60315         * gnulib-tool (Usage): Fix --import, from
60316         karl@freefriends.org (Karl Berry).
60317
60318 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60319
60320         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
60321
60322 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
60323
60324         * lib/argp-namefrob.h: Restore changes accidentally lost during the
60325         "autoupdate" on 2005-12-12.
60326
60327 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60328
60329         * modules/closeout (Depends-on): Remove atexit.
60330
60331 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60332
60333         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
60334         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
60335
60336 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60337
60338         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
60339         __EXTENSIONS__ if this causes compilation to fail.  Problem
60340         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
60341         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
60342
60343 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
60344
60345         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
60346         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
60347         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
60348         All uses changed.
60349
60350 2006-01-26  Simon Josefsson  <jas@extundo.com>
60351
60352         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
60353         prototype is visible on mingw32.
60354
60355         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
60356         for mingw32.
60357
60358         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
60359         mingw32).
60360
60361 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60362
60363         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
60364         attempt to open for write; this always fails, at least on POSIX
60365         hosts.  This reinstates the 2006-01-09 change, which was
60366         inadvertently removed.
60367
60368 2006-01-26  Bruno Haible  <bruno@clisp.org>
60369
60370         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
60371         Reported by Paul Eggert.
60372
60373 2006-01-26  Bruno Haible  <bruno@clisp.org>
60374             Paul Eggert  <eggert@cs.ucla.edu>
60375
60376         * lib/stdbool_.h (_Bool)
60377         [(! (defined __cplusplus || defined __BEOS__)
60378           && !defined __GNUC__
60379           && !(defined __HP_cc || defined __xlc__
60380                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
60381                || defined __sgi))]:
60382         #define to signed char in these cases too; this simplifies
60383         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
60384         etc., separately) and makes it more conservative.
60385
60386 2006-01-25  Simon Josefsson  <jas@extundo.com>
60387
60388         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
60389         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
60390         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
60391
60392 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60393
60394         * lib/argp-namefrob.h: Bugfix. Remove stray #
60395
60396 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60397
60398         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
60399         so that we test the test.
60400         Check for yet another HP-UX cc bug involving *bool |= bool.
60401
60402 2006-01-25  Karl Berry  <karl@gnu.org>
60403
60404         * config/srclist.txt (vasnprintf.c): sync lost.
60405
60406 2006-01-25  Jim Meyering  <jim@meyering.net>
60407
60408         Sync from the stable (b5) branch of coreutils:
60409
60410         * lib/fts.c (fts_children): Don't let close() clobber errno from
60411         failed fchdir().
60412
60413         * lib/fts.c (fts_stat): When following a symlink-to-directory,
60414         don't necessarily interpret stat-fails+lstat-succeeds as indicating
60415         a dangling symlink.  That can also happen at least for ELOOP.
60416         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
60417         FYI, this bug predates the inclusion of fts.c in coreutils.
60418
60419         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
60420         in their own block, so pre-c99 compilers don't object.
60421
60422         Avoid the double-free (first in fts_read, second in fts_close) that
60423         would occur when an `active' directory is made inaccessible (e.g.,
60424         via chmod a-x) during a traversal.
60425         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60426         before returning.  Reproduce this failure by
60427         mkdir -p a/b; cd a; chmod a-x . b
60428         Reported by Stavros Passas.
60429
60430 2006-01-25  Jim Meyering  <jim@meyering.net>
60431
60432         * lib/fileblocks.c: Remove more useless parentheses.
60433         * lib/readutmp.h: Likewise.
60434
60435 2006-01-25  Bruno Haible  <bruno@clisp.org>
60436
60437         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
60438         warnings.
60439         Reported by Paul Eggert.
60440
60441 2006-01-25  Bruno Haible  <bruno@clisp.org>
60442
60443         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
60444         rid of a trap command. For Solaris sh.
60445         Reported by Mark D. Baushke <mdb@gnu.org>.
60446
60447 2006-01-24  Simon Josefsson  <jas@extundo.com>
60448
60449         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
60450         Bruno.
60451
60452 2006-01-24  Karl Berry  <karl@gnu.org>
60453
60454         * config/srclist.txt (argp-namefrob.h): sync lost.
60455
60456 2006-01-24  Jim Meyering  <jim@meyering.net>
60457
60458         * modules/openat (Files): Add lib/intprops.h.
60459         From Mark D. Baushke.
60460
60461 2006-01-24  Jim Meyering  <jim@meyering.net>
60462
60463         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
60464         Reported by Mark D. Baushke.
60465
60466 2006-01-24  Jim Meyering  <jim@meyering.net>
60467
60468         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
60469
60470 2006-01-24  Bruno Haible  <bruno@clisp.org>
60471
60472         * modules/strnlen (Maintainer): Change from glibc to all.
60473
60474 2006-01-24  Bruno Haible  <bruno@clisp.org>
60475
60476         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
60477         Patch by Paul Eggert.
60478
60479 2006-01-24  Bruno Haible  <bruno@clisp.org>
60480
60481         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
60482         already has it.
60483         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
60484         2005-11-26.
60485
60486         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
60487         'signed char' to avoid problems with the built-in _Bool type.
60488         Reported by Paul Eggert on 2005-11-26.
60489
60490 2006-01-24  Bruno Haible  <bruno@clisp.org>
60491
60492         * gnulib-tool (func_import): Avoid constructing complicated sed
60493         expressions inside backquote.
60494         Report and solution by Mark D. Baushke <mdb@gnu.org>.
60495
60496 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
60497
60498         These changes imported from libc.
60499         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
60500         test and two separate function calls.
60501         * lib/strndup.c (__strndup): Add libc_hidden_def.
60502
60503 2006-01-23  Simon Josefsson  <jas@extundo.com>
60504
60505         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
60506         Remove the test_*_SOURCES variable: automake infers it by default.
60507         * modules/tls-tests: Likewise.
60508
60509 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60510
60511         Work around porting bugs reported by Dieter in
60512         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
60513         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
60514         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
60515         Include "getopt.h" first, to check interface.
60516         (getenv): Declare only if defined HAVE_DECL_GETENV &&
60517         !HAVE_DECL_GETENV.
60518         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
60519         (__strndup): Revert to K&R-style function dfns, the glibc style.
60520         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
60521         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
60522         Include strnlen.h first, to get prototype properly.
60523         (strnlen): Renamed from __strnlen.
60524         Remove weak alias.
60525
60526 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60527
60528         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
60529
60530 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60531
60532         * config/srclist.txt: Adjust to reflect glibc reorganization.
60533         This affects only comments.
60534
60535 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60536
60537          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
60538          Reported by Bruce Korb <bkorb@gnu.org>.
60539
60540 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60541
60542         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
60543         to pacify gcc -Wswitch-default.
60544
60545 2006-01-22  Bruno Haible  <bruno@clisp.org>
60546
60547         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
60548         temporary buffer for sprintf, take into account the precision also
60549         for 'd', 'i', 'u', 'o', 'x', 'X'.
60550
60551 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60552
60553         * modules/argp-tests: New module
60554         * tests/test-argp.c: New file
60555         * tests/test-argp-2.sh: New file
60556
60557 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60558
60559         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
60560         (__argp_base_name): Removed
60561         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
60562         typo.
60563         (__argp_base_name): Provide macro definition or extern declaration
60564         depending on the configuration
60565
60566 2006-01-20  Simon Josefsson  <jas@extundo.com>
60567
60568         * modules/inet_ntop (Depends-on): Depend on sys_socket.
60569
60570 2006-01-20  Simon Josefsson  <jas@extundo.com>
60571
60572         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
60573
60574 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60575
60576         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
60577         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
60578         Suggested by Bruno Haible.
60579
60580 2006-01-20  Karl Berry  <karl@gnu.org>
60581
60582         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
60583         until changes propagate, I guess.
60584
60585 2006-01-19  Simon Josefsson  <jas@extundo.com>
60586
60587         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
60588
60589 2006-01-19  Simon Josefsson  <jas@extundo.com>
60590
60591         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
60592
60593 2006-01-19  Simon Josefsson  <jas@extundo.com>
60594
60595         * gnulib-tool: Set check_PROGRAMS.
60596
60597         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60598         modules/des-tests, modules/gc-arcfour-tests,
60599         modules/gc-arctwo-tests, modules/gc-des-tests,
60600         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60601         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60602         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60603         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60604         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60605         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
60606         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
60607         test_*_SOURCES.
60608
60609 2006-01-18  Simon Josefsson  <jas@extundo.com>
60610
60611         * modules/socklen (Depends-on): Depend on sys_socket.
60612
60613 2006-01-18  Simon Josefsson  <jas@extundo.com>
60614
60615         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60616         modules/des-tests, modules/gc-arcfour-tests,
60617         modules/gc-arctwo-tests, modules/gc-des-tests,
60618         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60619         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60620         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60621         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60622         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60623         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
60624         $(EXEEXT) to automake TESTS variable, for mingw32.
60625
60626 2006-01-17  Simon Josefsson  <jas@extundo.com>
60627
60628         * modules/socklen (Include): Need sys/socket.h.
60629
60630 2006-01-17  Bruno Haible  <bruno@clisp.org>
60631
60632         * modules/ssize_t (Include): Add <sys/types.h>.
60633
60634 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
60635
60636         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
60637         it's not portable and it doesn't work with cross-compiles.
60638         Problem reported by Bruno Haible.  Fix missing-$ typo in
60639         'test "gl_cv_ignore_unused_libraries" ...' that prevented
60640         -zignore from being used with Sun's C compiler.
60641
60642 2006-01-12  Simon Josefsson  <jas@extundo.com>
60643
60644         * lib/base64.c: Fix warning, reported by Bruno Haible
60645         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
60646
60647 2006-01-12  Bruno Haible  <bruno@clisp.org>
60648
60649         * modules/ldd: New file.
60650         * build-aux/ldd.sh.in: New file.
60651         * MODULES.html.sh (Support for building libraries and executables): Add
60652         ldd.
60653
60654 2006-01-12  Bruno Haible  <bruno@clisp.org>
60655
60656         * m4/ldd.m4: New file.
60657
60658 2006-01-12  Bruno Haible  <bruno@clisp.org>
60659
60660         * gnulib-tool (func_import, func_create_testdir): Don't go into an
60661         endless loop while replacing $auxdir with build-aux.
60662
60663 2006-01-11  Simon Josefsson  <jas@extundo.com>
60664
60665         * lib/stdint_.h (SIZE_MAX): Add missing (.
60666
60667 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60668
60669         Sync from coreutils.
60670         * lib/md5.c: Fix commentary typos.
60671         (alignof, UNALIGNED_P): No need for a GCC-specific version.
60672         * lib/md5.h (__attribute__): Remove; unused.
60673         * lib/sha1.c: Fix commentary to match md5 better.
60674         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
60675         so that we don't need to worry about alignment.  All uses changed.
60676         This merges the 2005-10-28 md5 change into sha1.
60677
60678 2006-01-11  Jim Meyering  <jim@meyering.net>
60679
60680         Sync from coreutils.
60681         * lib/md5.c (OP): Fix spacing.
60682
60683 2006-01-11  Bruno Haible  <bruno@clisp.org>
60684
60685         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60686         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
60687         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
60688
60689 2006-01-11  Bruno Haible  <bruno@clisp.org>
60690
60691         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60692         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
60693         the "early" section as well.
60694
60695 2006-01-11  Bruno Haible  <bruno@clisp.org>
60696
60697         Avoid "ar: no archive members specified" error on MacOS X.
60698         * gnulib-tool (func_modules_add_dummy): New function.
60699         (func_import, func_create_testdir): Invoke it.
60700
60701 2006-01-11  Bruno Haible  <bruno@clisp.org>
60702
60703         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
60704         with $auxdir in AC_CONFIG_FILES statements.
60705
60706 2006-01-11  Bruno Haible  <bruno@clisp.org>
60707
60708         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60709         Initialize also noinst_HEADERS to empty.
60710
60711 2006-01-11  Bruno Haible  <bruno@clisp.org>
60712
60713         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
60714         variables.
60715         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
60716         autoreconf.
60717
60718 2006-01-11  Bruno Haible  <bruno@clisp.org>
60719
60720         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
60721         overridable by the user.
60722         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60723
60724 2006-01-10  Simon Josefsson  <jas@extundo.com>
60725
60726         * modules/sys_socket: New file.
60727
60728 2006-01-10  Simon Josefsson  <jas@extundo.com>
60729
60730         * m4/sys_socket_h.m4: New file.
60731
60732 2006-01-10  Simon Josefsson  <jas@extundo.com>
60733
60734         * lib/socket_.h: New file.
60735
60736 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60737
60738         * modules/readutmp (Maintainer): Add myself.
60739
60740 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60741
60742         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
60743         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
60744         People who are still concerned with buggy memcmp implementations
60745         can invoke gl_FUNC_MEMCMP themselves.
60746
60747 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60748
60749         * lib/regex_internal.h (BITSET_WORD_BITS):
60750         Work around a bug in 64-bit PGC (before version 6.1-2), where the
60751         preprocessor mishandles large unsigned values as if they were signed.
60752         Problem reported by Claudio Fontana in
60753         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
60754
60755 2006-01-10  Jim Meyering  <jim@meyering.net>
60756
60757         Avoid the double-free (first in fts_read, second in fts_close) that
60758         would occur when an `active' directory is made inaccessible (e.g.,
60759         via chmod a-x) during a traversal.
60760         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60761         before returning.  Reproduce this failure by
60762         mkdir -p a/b; cd a; chmod a-x . b
60763         Reported by Stavros Passas.
60764
60765         Sync from coreutils.
60766         * lib/sha1.c: Tweak grammar in a comment.
60767
60768 2006-01-10  Jim Meyering  <jim@meyering.net>
60769
60770         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
60771         Patch by Joerg Sonnenberger.
60772
60773 2006-01-10  Bruno Haible  <bruno@clisp.org>
60774
60775         * modules/readutmp: Depend on module free.
60776         * modules/strtok_r: Depend on module restrict.
60777
60778 2006-01-10  Bruno Haible  <bruno@clisp.org>
60779
60780         * modules/gettext (configure.ac): Add an invocation of
60781         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
60782
60783 2006-01-10  Bruno Haible  <bruno@clisp.org>
60784
60785         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
60786         Reported by Werner Lemberg <wl@gnu.org>.
60787
60788 2006-01-10  Bruno Haible  <bruno@clisp.org>
60789
60790         * lib/localcharset.c: Update from GNU gettext.
60791
60792 2006-01-10  Bruno Haible  <bruno@clisp.org>
60793
60794         * lib/argp.h (__const): Remove macro. Use const instead.
60795         * lib/argp-fmtstream.h (__const): Likewise.
60796         * lib/glob_.h (__const): Remove macro.
60797         * lib/glob-libc.h: Use const instead of __const.
60798
60799 2006-01-10  Bruno Haible  <bruno@clisp.org>
60800
60801         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
60802         variable.
60803         Needed to avoid an automake error regarding the 'gettext' module.
60804
60805 2006-01-09  Simon Josefsson  <jas@extundo.com>
60806
60807         * modules/inet_ntop (Depends-on): Add restrict.
60808
60809 2006-01-09  Simon Josefsson  <jas@extundo.com>
60810
60811         * modules/gc-rijndael-tests (License): Put under LGPL.
60812
60813         * modules/gc-des-tests (License): Likewise.
60814
60815         * modules/gc-arcfour-tests (License): Likewise.
60816
60817         * modules/gc-arctwo-tests (License): Likewise.
60818
60819         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
60820
60821         * modules/gc-hmac-sha1-tests (Files): Likewise.
60822
60823         * modules/gc-hmac-md5-tests (License): Likewise.
60824
60825         * modules/gc-sha1-tests (License): Likewise.
60826
60827         * modules/gc-md5-tests (License): Likewise.
60828
60829         * modules/gc-md4-tests (License): Likewise.
60830
60831         * modules/gc-md2-tests (License): Likewise.
60832
60833         * modules/gc-tests (License): Likewise.
60834
60835         * modules/des-tests (License): Likewise.
60836
60837         * modules/md4-tests (License): Likewise.
60838
60839         * modules/md2-tests (License): Likewise.
60840
60841 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60842
60843         Sync from coreutils:
60844
60845         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
60846         * modules/lib-ignore: New file.
60847         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
60848         chdir-safer.m4, lchmod.m4.
60849         * modules/openat: Add mkdirat.c, openat-priv.h.
60850
60851 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60852
60853         Sync from coreutils.
60854         * m4/lib-ignore.m4: New file.
60855         * m4/lchmod.m4: New file.
60856
60857 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60858
60859         Sync from coreutils.
60860         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
60861         for write access: POSIX says that must fail.
60862         * lib/fts.c (diropen): Likewise.
60863         * lib/save-cwd.c (save_cwd): Likewise.
60864         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
60865         well, for minor improvements on hosts that lack O_DIRECTORY.
60866         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
60867         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
60868         Fall back on chown if open failed with EACCES.
60869
60870         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
60871         Report an error at compile-time if only a 1-second nominal clock
60872         resolution is found.
60873
60874         * lib/lchmod.h: New file.
60875         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
60876         (make_dir_parents): Use lchown rather than chown, and
60877         lchmod rather than chmod.
60878
60879         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
60880         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
60881         "proc" reported by n0dalus.
60882
60883         * lib/mountlist.c: Include <limits.h>.
60884         (dev_from_mount_options)
60885         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
60886         New function.  It no longer assumes "dev=" has the System V meaning
60887         on Linux (since it doesn't).  It also parses "dev=" more carefully.
60888         (read_file_system_list)
60889         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
60890         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
60891         dev= in that case.
60892
60893         * lib/posixtm.h (PDS_PRE_2000): New macro.
60894         * lib/posixtm.c (year): Arg is now syntax_bits rather than
60895         allow_century.  All usages changed.  Reject dates outside the range
60896         1969-1999 if PDS_PRE_2000 is used.
60897
60898 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60899
60900         Sync from coreutils.
60901         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
60902         (Time of day items): Mention the possibility of leap seconds.
60903         Problem reported by Dr. David Alan Gilbert.
60904
60905 2006-01-09  Jim Meyering  <jim@meyering.net>
60906
60907         Sync from coreutils.
60908
60909         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
60910
60911         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
60912
60913         * lib/modechange.c (mode_compile): Reject an invalid mode string
60914         that starts with an octal digit.  From Andreas Gruenbacher.
60915
60916         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
60917         and dup to open_safer and dup_safer, respectively.
60918         (openat_permissive): Fix typo in comment.
60919
60920         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
60921         "gettext.h"; either no longer needed or are guaranteed by openat.h.
60922         (_): Remove; no longer needed.
60923         (openat): Renamed from rpl_openat; no need for rpl_openat
60924         since openat.h renames openat for us.
60925         Replace most of the body with a call to openat_permissive,
60926         to avoid duplicate code.
60927         Port to (probably hypothetical) environments were mode_t is
60928         wider than int.
60929         (openat_permissive): Require mode arg, so that we can check
60930         types better.  Put it just after flags.  Change cwd failure
60931         indicator from pointer-to-bool to pointer-to-errno-value.
60932         All callers changed.
60933         Invoke openat_save_fail and/or openat_restore_fail if
60934         cwd_errno is null, so that openat can call us.
60935         (openat_permissive, fdopendir, fstatat, unlinkat):
60936         Simplify errno handling to avoid some duplicate code,
60937         as it's OK to set errno on success.
60938         * lib/openat.h: Revamp code so that function macros depend on
60939         __OPENAT_PREFIX only, not also on AT_FDCWD.
60940         (openat_ro): Remove.  Caller changed to use openat_permissive.
60941         (openat_permissive): Now a macro, if not a function.
60942         (openat_restore_fail, openat_save_fail): Now always functions,
60943         since mkdirat needs them even if __OPENAT_PREFIX is defined.
60944
60945         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
60946         and openat.c.
60947         * lib/mkdirat.c: Include openat-priv.h.
60948         Remove definitions of macros defined therein.
60949         * lib/openat.c: Likewise.
60950
60951         * lib/mkdirat.c (mkdirat): New file and function.
60952         * lib/openat.h (mkdirat): Declare.
60953
60954         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
60955
60956         * lib/openat.h (openat_permissive): Declare.
60957         (openat_ro): Define.
60958
60959         * lib/openat.c (EXPECTED_ERRNO): New macro.
60960         (openat_permissive): New function -- used in remove.c rewrite.
60961         (all functions): Set errno just before returning, only if there
60962         was an actual failure.
60963         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
60964
60965         Emulate openat-family functions using Linux's procfs, if possible.
60966         Idea and some code based on Ulrich Drepper's glibc changes.
60967
60968         * lib/openat.c: (BUILD_PROC_NAME): New macro.
60969         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
60970         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
60971         before falling back on save_cwd and restore_cwd.
60972         (fdopendir, fstatat, unlinkat): Likewise.
60973
60974         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
60975         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
60976
60977         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
60978         as second argument to va_arg.  Otherwise, some versions of gcc
60979         warn that `if this code is reached, the program will abort'.
60980
60981 2006-01-09  Jim Meyering  <jim@meyering.net>
60982
60983         Sync from coreutils.
60984         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
60985         Require openat-priv.h.
60986
60987 2006-01-09  Bruno Haible  <bruno@clisp.org>
60988
60989         * modules/strnlen (Include): Use strnlen.h.
60990
60991 2006-01-09  Bruno Haible  <bruno@clisp.org>
60992
60993         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
60994
60995 2006-01-09  Bruno Haible  <bruno@clisp.org>
60996
60997         * lib/sysexit_.h (EX_OK): New macro.
60998         Suggested by Martin Lambers <marlam@marlam.de>.
60999
61000 2006-01-09  Bruno Haible  <bruno@clisp.org>
61001
61002         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
61003         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
61004
61005 2006-01-09  Bruno Haible  <bruno@clisp.org>
61006
61007         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
61008         numbers.
61009
61010 2006-01-09  Bruno Haible  <bruno@clisp.org>
61011
61012         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
61013         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
61014         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
61015         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
61016
61017 2006-01-09  Bruno Haible  <bruno@clisp.org>
61018
61019         * build-aux/javacomp.sh.in: New file, moved from lib/.
61020         * modules/javacomp-script (Files): Update.
61021         (configure.ac): Add AC_CONFIG_FILES invocation.
61022         (EXTRA_DIST): Remove variable.
61023
61024         * build-aux/javaexec.sh.in: New file, moved from lib/.
61025         * modules/javaexec (Files): Update.
61026         (configure.ac): Add AC_CONFIG_FILES invocation.
61027         (EXTRA_DIST): Remove javaexec.sh.in.
61028
61029         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
61030         * modules/csharpcomp-script (Files): Update.
61031         (configure.ac): Add AC_CONFIG_FILES invocation.
61032         (EXTRA_DIST): Remove variable.
61033
61034         * build-aux/csharpexec.sh.in: New file, moved from lib/.
61035         * modules/csharpexec (Files): Update.
61036         (configure.ac): Add AC_CONFIG_FILES invocation.
61037         (EXTRA_DIST): Remove csharpexec.sh.in.
61038
61039 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61040
61041         Sync from coreutils.
61042
61043         Add POSIX ACL support
61044         * lib/acl.h (copy_acl, set_acl): Add declarations.
61045         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
61046         systems other than Linux.
61047         (chmod_or_fchmod): New function: use fchmod when possible,
61048         and chmod otherwise.
61049         (file_has_acl): Add a POSIX ACL implementation, with a
61050         Linux-specific subcase.
61051         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
61052         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
61053         acls are unsupported.
61054         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
61055         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
61056         are unsupported.
61057
61058 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61059
61060         Sync from coreutils.
61061         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
61062
61063 2006-01-07  Bruno Haible  <bruno@clisp.org>
61064
61065         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
61066         gl_EARLY.
61067
61068 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61069
61070         * lib/strftime.c (tzname): Don't declare if it is already #defined.
61071         Problem reported for Mingw by Mark Junker.
61072
61073 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61074
61075         * README: Gnulib normally doesn't generate a tarball.
61076
61077 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
61078
61079         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
61080         long int, not int, for nanosecond counts, so that people who are
61081         used to POSIX struct timespec won't be surprised.  Reported by Jim
61082         Meyering.
61083
61084 2005-12-28  Bruno Haible  <bruno@clisp.org>
61085
61086         * build-aux/config.rpath: Update from GNU gettext.
61087
61088 2005-12-16  Jim Meyering  <jim@meyering.net>
61089
61090         * modules/fprintftime: New module.
61091         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
61092
61093 2005-12-16  Jim Meyering  <jim@meyering.net>
61094
61095         * m4/fprintftime.m4: New file.
61096
61097 2005-12-16  Jim Meyering  <jim@meyering.net>
61098
61099         * lib/fprintftime.c, lib/fprintftime.h: New files.
61100
61101 2005-12-15  Simon Josefsson  <jas@extundo.com>
61102
61103         * modules/socklen (configure.ac): Fix M4 macro name, to align with
61104         new m4/socklen.m4.
61105
61106 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61107
61108         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
61109         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
61110
61111 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61112
61113         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
61114         * lib/argp-help.c (fill_in_uparams): Check if the constructed
61115         struct uparams is valid. Fall back to the default values if it is
61116         not.
61117
61118 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61119
61120         * modules/argp (Files): Add argp-pin.c
61121         (Depends-on): dirname
61122         (lib_SOURCES): Add argp-pin.c
61123
61124 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61125
61126         * m4/argp.m4:  Check if program_invocation_name and
61127         program_invocation_short_name are declared and define appropriate
61128         macros if they are not.
61129
61130 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61131
61132         * lib/argp-help.c (__argp_base_name): New function
61133         (__argp_short_program_name): Rewrite using __argp_base_name
61134         * lib/argp-namefrob.h: Define program_invocation_name and
61135         program_invocation_short_name if requested
61136         (__argp_base_name): Add prototype
61137         * lib/argp-parse.c (argp_def): Use gettext wrappers
61138         (argp_default_parser): Use __argp_base_name
61139         * lib/argp-pin.c: New file. Defines program_invocation_name and
61140         program_invocation_short_name on systems that lack them.
61141
61142 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61143
61144         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
61145         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61146         porting problem reported by Georg Schwarz in
61147         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61148
61149 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61150
61151         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
61152         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61153         porting problem reported by Georg Schwarz in
61154         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61155
61156 2005-12-05  Bruno Haible  <bruno@clisp.org>
61157
61158         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
61159         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
61160         Reported by Mark Junker <mjscod@gmx.de>.
61161
61162 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
61163
61164         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
61165         Use implementation from Albert Chin, with some
61166         comments/corrections by Stepan Kasal and myself.
61167
61168 2005-12-02  Bruno Haible  <bruno@clisp.org>
61169
61170         * gnulib-tool (func_import): Accept GPLed build tool modules when
61171         --lgpl is given.
61172         * modules/csharpcomp-script: New file.
61173         * modules/csharpcomp: Depend on it.
61174         * modules/javacomp-script: New file.
61175         * modules/javacomp: Depend on it.
61176         Suggested by Simon Josefsson.
61177
61178 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
61179
61180         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
61181         statement, to work around an HP-UX 10.20 compiler bug reported by
61182         Peter O'Gorman.
61183
61184 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61185
61186         * modules/savedir (Depends-on): Add openat.
61187
61188 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61189
61190         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
61191         (uintmax_t) [defined uintmax_t]: Do not declare.
61192         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
61193         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
61194         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
61195         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
61196         sake of portability to weird hosts that C allows (though we don't
61197         know of any practical examples).
61198
61199         * lib/savedir.h (fdsavedir): New decl.
61200         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
61201         contains most of the former guts of savedir.
61202         (savedir): Use savedirstream.
61203         Include "openat.h".
61204
61205 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61206
61207         * modules/obstack (Files): Add m4/ulonglong.m4.
61208         Problem reported by Davide Angelocola.
61209
61210 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61211
61212         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
61213         coreutils no longer futzes with rounding modes.
61214
61215 2005-11-14  Jim Meyering  <jim@meyering.net>
61216
61217         * lib/mkstemp-safer.c: Include <config.h>, required for possible
61218         replacement of mkstemp.
61219
61220 2005-11-10  Simon Josefsson  <jas@extundo.com>
61221
61222         * lib/readline.c: Remove EOL.
61223
61224 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61225
61226         * modules/gethrxtime (Depends-on): Add gettime.
61227
61228 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61229
61230         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
61231         or gettimeofday; no longer needed.
61232
61233 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61234
61235         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
61236         time business.
61237         (gethrxtime) [! (HAVE_NANOUPTIME
61238         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
61239         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
61240         our own approximation.
61241
61242 2005-11-08  Eric Blake  <ebb9@byu.net>
61243
61244         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61245
61246 2005-11-08  Eric Blake  <ebb9@byu.net>
61247
61248         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61249
61250 2005-11-04  Bruno Haible  <bruno@clisp.org>
61251
61252         * gnulib-tool: Implement --update mode.
61253
61254 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61255
61256         Fix porting problem reported by Theodoros V. Kalamatianos.
61257         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
61258         Don't assume that futimes failing means we must fail.
61259
61260 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61261
61262         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
61263         variables to suggest the intended function of the PATH_MAX check.
61264
61265 2005-10-30  Kean Johnston  <jkj@sco.com>
61266
61267         Trivial changes to support SCO systems.
61268         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
61269         as PATH_MAX.
61270         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
61271         where __ptr is null when no I/O is pending.
61272
61273 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61274
61275         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
61276         leave errno alone.  Problem reported by Dmitry V. Levin.
61277
61278 2005-10-28  Simon Josefsson  <jas@extundo.com>
61279
61280         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
61281         Test more.
61282
61283         * tests/test-gc-md2.c, tests/test-md2.c: New files.
61284
61285         * modules/md2, modules/md2-tests: New files.
61286
61287 2005-10-28  Simon Josefsson  <jas@extundo.com>
61288
61289         * m4/inet_ntop.m4: More tests.
61290
61291         * m4/gc-md2.m4, md2.m4: New file.
61292
61293 2005-10-28  Simon Josefsson  <jas@extundo.com>
61294
61295         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
61296         "restrict" keywords, as per POSIX.  Protect the function
61297         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
61298         Don't use K&R prototypes.  Check the sprintf return values.
61299         Re-define EAFNOSUPPORT if not present.  Indent.
61300
61301         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
61302         suggested by Bruno Haible <bruno@clisp.org>.
61303
61304         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
61305
61306         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
61307
61308         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
61309         libgcrypt).
61310
61311         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
61312
61313         * lib/md2.h, lib/md2.c: New files.
61314
61315 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
61316
61317         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
61318         errno alone.  Problem reported by Frederic Jolliton.
61319
61320 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61321
61322         * modules/verify (License): Change from GPL to LGPL.  This is a
61323         tiny module and there are apparently near-equivalents that are
61324         under the BSD license.
61325
61326 2005-10-24  Simon Josefsson  <jas@extundo.com>
61327
61328         * modules/sha1: Relicense to LGPL.
61329
61330 2005-10-24  Simon Josefsson  <jas@extundo.com>
61331
61332         * lib/md4.h: Shrink buffer size, now that we changed the type.
61333
61334 2005-10-23  Simon Josefsson  <jas@extundo.com>
61335
61336         * gnulib-tool (func_import): Fix --tests-base.
61337
61338 2005-10-22  Simon Josefsson  <jas@extundo.com>
61339
61340         * modules/arcfour (Depends-on): Need stdint.
61341
61342 2005-10-22  Simon Josefsson  <jas@extundo.com>
61343
61344         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
61345         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
61346
61347 2005-10-22  Simon Josefsson  <jas@extundo.com>
61348
61349         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
61350         suggested by Bruno Haible <bruno@clisp.org>.
61351
61352 2005-10-22  Simon Josefsson  <jas@extundo.com>
61353
61354         * lib/crc.h: Include stddef.h, for size_t.
61355
61356 2005-10-22  Simon Josefsson  <jas@extundo.com>
61357
61358         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
61359         arcfour_context struct (simplify test vector testing in GNU
61360         Shishi).
61361
61362 2005-10-21  Simon Josefsson  <jas@extundo.com>
61363
61364         * modules/des, modules/des-tests: New files.
61365
61366         * modules/gc-des, modules/gc-des-tests: New files.
61367
61368         * tests/test-des.c, tests/test-gc-des.c: New file.
61369
61370 2005-10-21  Simon Josefsson  <jas@extundo.com>
61371
61372         * modules/arctwo, modules/arctwo-tests: New files.
61373
61374         * tests/test-arctwo.c: New file.
61375
61376         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
61377
61378         * tests/test-gc-arctwo.c: New file.
61379
61380 2005-10-21  Simon Josefsson  <jas@extundo.com>
61381
61382         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
61383         Bruno Haible <bruno@clisp.org>.
61384
61385         * m4/gc-des.m4: New file.
61386
61387 2005-10-21  Simon Josefsson  <jas@extundo.com>
61388
61389         * m4/arctwo.m4: New file.
61390
61391         * m4/gc-arctwo.m4: New file.
61392
61393 2005-10-21  Simon Josefsson  <jas@extundo.com>
61394
61395         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
61396         block.
61397
61398 2005-10-21  Simon Josefsson  <jas@extundo.com>
61399
61400         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
61401         <bruno@clisp.org>.
61402
61403         * lib/hmac-sha1.c (hmac_sha1): Likewise.
61404
61405         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
61406         Bruno Haible <bruno@clisp.org>.
61407
61408         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
61409         <bruno@clisp.org>.
61410
61411 2005-10-21  Simon Josefsson  <jas@extundo.com>
61412
61413         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
61414
61415 2005-10-21  Simon Josefsson  <jas@extundo.com>
61416
61417         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
61418
61419 2005-10-21  Simon Josefsson  <jas@extundo.com>
61420
61421         * lib/des.h, lib/des.c: New files.
61422
61423         * lib/gc-gnulib.c: Support DES.c
61424
61425 2005-10-21  Simon Josefsson  <jas@extundo.com>
61426
61427         * lib/arctwo.h, lib/arctwo.c: New files.
61428
61429         * lib/gc-gnulib.c: Support ARCTWO.
61430
61431 2005-10-21  Simon Josefsson  <jas@extundo.com>
61432
61433         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
61434         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61435
61436 2005-10-21  Simon Josefsson  <jas@extundo.com>
61437
61438         * gnulib-tool (func_import, func_create_testdir): Define automake
61439         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
61440         Makefile.am snippet),
61441         suggested by Bruno Haible <bruno@clisp.org>.
61442
61443         * modules/gc (Makefile.am): Use it.
61444
61445 2005-10-21  Bruno Haible  <bruno@clisp.org>
61446
61447         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
61448         patch.
61449
61450 2005-10-19  Simon Josefsson  <jas@extundo.com>
61451
61452         * tests/test-gc-rijndael.c: New file.
61453
61454         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
61455
61456 2005-10-19  Simon Josefsson  <jas@extundo.com>
61457
61458         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
61459         interface too.
61460
61461 2005-10-19  Simon Josefsson  <jas@extundo.com>
61462
61463         * tests/test-gc-arcfour.c: New file.
61464
61465         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
61466
61467 2005-10-19  Simon Josefsson  <jas@extundo.com>
61468
61469         * modules/gc-md4, modules/gc-md4-tests: New file.
61470
61471         * tests/test-gc-md4.c: New file.
61472
61473 2005-10-19  Simon Josefsson  <jas@extundo.com>
61474
61475         * m4/gc-md4.m4: New file.
61476
61477 2005-10-19  Simon Josefsson  <jas@extundo.com>
61478
61479         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
61480         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
61481         <kasal@ucw.cz>.
61482
61483 2005-10-19  Simon Josefsson  <jas@extundo.com>
61484
61485         * m4/gc-arcfour.m4: New file.
61486
61487         * m4/gc-rijndael.m4: New file.
61488
61489 2005-10-19  Simon Josefsson  <jas@extundo.com>
61490
61491         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
61492
61493 2005-10-19  Simon Josefsson  <jas@extundo.com>
61494
61495         * lib/gc-gnulib.c: Support ARCFOUR.
61496
61497 2005-10-19  Simon Josefsson  <jas@extundo.com>
61498
61499         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
61500         support.
61501
61502         * lib/gc.h: Add ECB enum type.
61503
61504         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
61505
61506 2005-10-18  Simon Josefsson  <jas@extundo.com>
61507
61508         * tests/test-md5.c: New file.
61509
61510         * modules/md5-tests: New file.
61511
61512 2005-10-18  Simon Josefsson  <jas@extundo.com>
61513
61514         * tests/test-md4.c: New file.
61515
61516         * modules/md4, modules/md4-tests: New files.
61517
61518 2005-10-18  Simon Josefsson  <jas@extundo.com>
61519
61520         * m4/md4.m4: New file.
61521
61522 2005-10-18  Simon Josefsson  <jas@extundo.com>
61523
61524         * lib/md4.h, lib/md4.c: New files, based on md5.?.
61525
61526 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
61527
61528         * gnulib-tool (func_create_testdir): Omit the second check whether
61529         BUILT_SOURCES in nonempty.
61530
61531 2005-10-17  Simon Josefsson  <jas@extundo.com>
61532
61533         * tests/test-rijndael.c: New file.
61534
61535 2005-10-17  Simon Josefsson  <jas@extundo.com>
61536
61537         * modules/sha1: Depend on stdint instead of md5.
61538
61539         * modules/md5: Depend on stdint, remove uint32_t.
61540
61541 2005-10-17  Simon Josefsson  <jas@extundo.com>
61542
61543         * modules/gc-sha1-tests: New file.
61544
61545         * tests/test-gc-sha1.c: New file.
61546
61547 2005-10-17  Simon Josefsson  <jas@extundo.com>
61548
61549         * m4/md5.m4: Remove call to uint32_t.m4.
61550
61551 2005-10-17  Simon Josefsson  <jas@extundo.com>
61552
61553         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
61554
61555         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
61556         md5.h.
61557
61558         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
61559
61560         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
61561
61562 2005-10-17  Simon Josefsson  <jas@extundo.com>
61563
61564         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
61565
61566 2005-10-17  Simon Josefsson  <jas@extundo.com>
61567
61568         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
61569
61570 2005-10-17  Simon Josefsson  <jas@extundo.com>
61571
61572         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
61573
61574         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
61575
61576 2005-10-17  Bruno Haible  <bruno@clisp.org>
61577
61578         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
61579         that it can also be used in a test.
61580
61581 2005-10-16  Bruno Haible  <bruno@clisp.org>
61582
61583         * gnulib-tool (func_emit_tests_Makefile_am): Also define
61584         TESTS_ENVIRONMENT, so that individual tests can augment it.
61585
61586         * gnulib-tool (func_create_testdir): Use an intermediate target for
61587         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
61588         macros, like $(ALLOCA_H), which cannot be passed through the command
61589         line.
61590
61591 2005-10-15  Simon Josefsson  <jas@extundo.com>
61592
61593         * modules/rijndael-tests: New file.
61594
61595         * modules/rijndael: New file.
61596
61597 2005-10-15  Simon Josefsson  <jas@extundo.com>
61598
61599         * m4/rijndael.m4: New file.
61600
61601 2005-10-15  Simon Josefsson  <jas@extundo.com>
61602
61603         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
61604
61605         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
61606
61607 2005-10-14  Simon Josefsson  <jas@extundo.com>
61608
61609         * tests/test-arcfour.c: New file.
61610
61611         * modules/arcfour, modules/arcfour-tests: New files.
61612
61613 2005-10-14  Simon Josefsson  <jas@extundo.com>
61614
61615         * m4/arcfour.m4: New file.
61616
61617 2005-10-14  Simon Josefsson  <jas@extundo.com>
61618
61619         * lib/arcfour.h, lib/arcfour.c: New files.
61620
61621 2005-10-14  Roland McGrath  <roland@redhat.com>
61622
61623         Import from libc.  [BZ #1331]
61624         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
61625         macro argument.
61626         Reported by Matej Vela <vela@debian.org>.
61627
61628 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61629
61630         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
61631         include <wchar.h>; no longer needed.
61632
61633 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61634
61635         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
61636
61637 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
61638         and  Ulrich Drepper  <drepper@redhat.com>
61639
61640         Import from libc.
61641         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
61642         instead of inline stream orientation test and two separate
61643         function calls.  Pay no attention to USE_IN_LIBIO.
61644
61645 2005-10-13  Simon Josefsson  <jas@extundo.com>
61646
61647         * modules/gc-hmac-md5-tests: New file.
61648
61649         * tests/test-gc-hmac-sha1.c: New file.
61650
61651         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
61652
61653         * modules/gc-hmac-md5-tests: New file.
61654
61655         * tests/test-gc-md5.c: New file.
61656
61657         * modules/gc-md5-tests: New file.
61658
61659 2005-10-13  Simon Josefsson  <jas@extundo.com>
61660
61661         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
61662         Move memory allocation outside of loop.
61663
61664 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
61665
61666         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
61667         intermediate directory is in a read-only file system.  Problem
61668         reported by Eric Blake.
61669
61670 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
61671
61672         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
61673
61674 2005-10-12  Simon Josefsson  <jas@extundo.com>
61675
61676         * tests/test-hmac-sha1.c: New file.
61677
61678         * modules/hmac-sha1-tests: New file.
61679
61680         * modules/hmac-sha1: New file.
61681
61682 2005-10-12  Simon Josefsson  <jas@extundo.com>
61683
61684         * modules/gc-sha1: New file.
61685
61686 2005-10-12  Simon Josefsson  <jas@extundo.com>
61687
61688         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
61689
61690         * tests/test-gc-pbkdf2-sha1.c: New file.
61691
61692 2005-10-12  Simon Josefsson  <jas@extundo.com>
61693
61694         * modules/gc-md5, modules/gc-hmac-md5: New files.
61695
61696         * modules/gc (Files): Remove md5, memxor and hmac files.
61697
61698 2005-10-12  Simon Josefsson  <jas@extundo.com>
61699
61700         * m4/gc-pbkdf2-sha1.m4: New file.
61701
61702         * m4/gc-hmac-sha1.m4: New file.
61703
61704         * m4/gc-sha1: New file.
61705
61706         * m4/hmac-sha1.m4: New file.
61707
61708 2005-10-12  Simon Josefsson  <jas@extundo.com>
61709
61710         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
61711
61712         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
61713
61714 2005-10-12  Simon Josefsson  <jas@extundo.com>
61715
61716         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
61717         suggested by Bruno Haible <bruno@clisp.org>.
61718
61719 2005-10-12  Simon Josefsson  <jas@extundo.com>
61720
61721         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
61722
61723 2005-10-12  Simon Josefsson  <jas@extundo.com>
61724
61725         * lib/gc-pbkdf2-sha1.c: New file.
61726
61727         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
61728
61729 2005-10-12  Simon Josefsson  <jas@extundo.com>
61730
61731         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
61732
61733         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
61734
61735 2005-10-12  Simon Josefsson  <jas@extundo.com>
61736
61737         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
61738         GC_USE_HMAC_MD5, respectively.
61739
61740         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
61741         (gc_md5): Fix typo.
61742
61743         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
61744
61745         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
61746
61747         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
61748
61749 2005-10-12  Bruno Haible  <bruno@clisp.org>
61750
61751         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
61752         Reported by Stepan Kasal <kasal@ucw.cz>.
61753
61754 2005-10-11  Simon Josefsson  <jas@extundo.com>
61755
61756         * tests/test-crc.c: New file.
61757
61758         * modules/crc, modules/crc-tests: New files.
61759
61760 2005-10-11  Simon Josefsson  <jas@extundo.com>
61761
61762         * m4/crc.m4: New file.
61763
61764 2005-10-11  Simon Josefsson  <jas@extundo.com>
61765
61766         * lib/gc.h: Add gc_hash and gc_hash_buffer.
61767
61768         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
61769
61770         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
61771
61772 2005-10-11  Simon Josefsson  <jas@extundo.com>
61773
61774         * lib/crc.h, lib/crc.c: New files.
61775
61776         * lib/gc.h (gc_hash_buffer): Add doc.
61777
61778 2005-10-11  Bruno Haible  <bruno@clisp.org>
61779
61780         * modules/c-strcasestr: New file.
61781         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
61782
61783 2005-10-11  Bruno Haible  <bruno@clisp.org>
61784
61785         * modules/c-strcase: New file.
61786         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
61787
61788 2005-10-11  Bruno Haible  <bruno@clisp.org>
61789
61790         * lib/strcasecmp.c: Include limits.h.
61791         (strcasecmp): Avoid integer overflow on exotic platforms.
61792         * lib/strncasecmp.c: Include limits.h.
61793         (strncasecmp): Avoid integer overflow on exotic platforms.
61794         Reported by Paul Eggert.
61795
61796 2005-10-11  Bruno Haible  <bruno@clisp.org>
61797
61798         * lib/c-strcasestr.h: New file, from GNU gettext.
61799         * lib/c-strcasestr.c: New file, from GNU gettext.
61800
61801 2005-10-11  Bruno Haible  <bruno@clisp.org>
61802
61803         * lib/c-strcase.h: New file, from GNU gettext.
61804         * lib/c-strcasecmp.c: New file, from GNU gettext.
61805         * lib/c-strncasecmp.c: New file, from GNU gettext.
61806
61807 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         * modules/mempcpy (License): GPL -> LGPL.
61810         * modules/strchrnul (License): Likewise.
61811         * modules/sysexits (License): Likewise.
61812
61813 2005-10-08  Simon Josefsson  <jas@extundo.com>
61814
61815         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
61816
61817 2005-10-07  Simon Josefsson  <jas@extundo.com>
61818
61819         * m4/memxor.m4: Remove gl_C_RESTRICT call.
61820
61821 2005-10-06  Simon Josefsson  <jas@extundo.com>
61822
61823         * tests/test-hmac-md5.c: New file.
61824
61825         * modules/hmac-md5-tests: New file.
61826
61827         * modules/hmac-md5: New file.
61828
61829 2005-10-06  Simon Josefsson  <jas@extundo.com>
61830
61831         * m4/hmac-md5.m4: New file.
61832
61833         * m4/memxor.m4: Require gl_C_RESTRICT.
61834
61835 2005-10-06  Simon Josefsson  <jas@extundo.com>
61836
61837         * lib/memxor.c (memxor): Avoid casts and warnings.
61838
61839 2005-10-06  Simon Josefsson  <jas@extundo.com>
61840
61841         * lib/hmac-md5.c: New file.
61842
61843         * lib/hmac.h: New file.
61844
61845 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61846
61847         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
61848         promotes to int, not unsigned int, to catch the AIX 5.3
61849         compiler bug.
61850
61851 2005-10-05  Simon Josefsson  <jas@extundo.com>
61852
61853         * modules/memxor: New file.
61854
61855         * modules/iconv (Files): Move config.rpath to havelib, it is used
61856         there.
61857
61858         * modules/havelib (Files): Add config.rpath.
61859
61860 2005-10-05  Simon Josefsson  <jas@extundo.com>
61861
61862         * m4/memxor.m4: New file.
61863
61864 2005-10-05  Simon Josefsson  <jas@extundo.com>
61865
61866         * lib/memxor.c (memxor): Fix compiler error.
61867
61868         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
61869         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
61870
61871         * lib/memxor.h, lib/memxor.c: New files.
61872
61873         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
61874         we assume all systems have it, suggested by Jim Meyering
61875         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
61876         any systems lack sys/socket.h; mingw32 is known to lack it, but we
61877         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
61878         same reasons.
61879
61880 2005-10-05  Simon Josefsson  <jas@extundo.com>
61881
61882         * config/srclist.txt: Add glibc bug 1423 for md5.h.
61883
61884 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61885
61886         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
61887         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
61888         needed, since the source code now assumes these .h files.
61889
61890 2005-10-05  Derek Price  <derek@ximbiot.com>
61891
61892         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
61893
61894 2005-10-05  Bruno Haible  <bruno@clisp.org>
61895
61896         * modules/stdint (License): Change to LGPL.
61897
61898 2005-10-04  Simon Josefsson  <jas@extundo.com>
61899
61900         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
61901         D. Baushke" <mdb@gnu.org>.
61902
61903 2005-10-04  Bruno Haible  <bruno@clisp.org>
61904
61905         * lib/verify.h (verify_true): Provide alternative definition for C++.
61906
61907 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
61908
61909         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
61910         (SSIZE_MAX): New macro, if not already defined.
61911         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
61912         than 2 GiB.
61913
61914 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61915
61916         Sync from coreutils.
61917         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
61918         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
61919         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
61920         ULLONG_MAX doesn't work with 2.7.2.1.
61921
61922 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61923
61924         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
61925         From Ben Pfaff.
61926
61927         * modules/exclude (Depends-on): Depend on verify.
61928         * modules/strtoimax (Depends-on): Likewise.
61929         * modules/utimecmp (Depends-on): Likewise.
61930
61931 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61932
61933         * lib/exclude.c: Include verify.h.
61934         (verify): Remove.  All callers changed to use verify.h's version.
61935         * lib/strtoimax.c: Likewise.
61936         * lib/utimecmp.c: Likewis.e
61937
61938         Sync from coreutils.
61939         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
61940         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
61941         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
61942         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
61943         bother returning ENOSYS if settimeofday or stime fails; just let
61944         them return whatever errno they want to return.
61945         * lib/utimens.c: Include unistd.h, for dup2.
61946         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
61947         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
61948
61949 2005-10-02  Jim Meyering  <jim@meyering.net>
61950
61951         Sync from coreutils.
61952         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
61953         from glibc-2.2.5 that fails for read-only files.
61954
61955 2005-10-02  Jim Meyering  <jim@meyering.net>
61956
61957         Sync from coreutils.
61958         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
61959         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
61960         `#if HAVE_CONFIG_H'.
61961         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
61962         Remove AT_FDCWD test.
61963         Do not consume the fd unless successful.
61964         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
61965         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
61966         block, so that we don't even try to compile it if settimeofday is
61967         available.  This works around a compilation failure on OSF1 V5.1,
61968         due to stime requiring a `long int*' while tv_sec is `int'.
61969
61970 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
61971
61972         Sync from coreutils.
61973         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
61974         against `yes', rather than just testing for nonempty.
61975
61976 2005-10-01  Simon Josefsson  <jas@extundo.com>
61977
61978         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
61979         and Darwin.
61980
61981         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
61982         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
61983         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
61984         freeaddrinfo and gai_strerror are declared by the POSIX headers.
61985         Check if struct addrinfo is declared.
61986
61987 2005-10-01  Simon Josefsson  <jas@extundo.com>
61988
61989         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
61990         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
61991         AI_* and EAI_* definitions.  Protect function declarations.
61992
61993 2005-10-01  Jim Meyering  <jim@meyering.net>
61994
61995         Sync from coreutils.
61996
61997         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
61998         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
61999         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
62000         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62001         in the inet and nsl libraries.  Required on Solaris 5.7.
62002
62003 2005-10-01  Jim Meyering  <jim@meyering.net>
62004
62005         Sync from coreutils.
62006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62007         in the inet and nsl libraries.  Required on Solaris 5.7.
62008
62009 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
62010
62011         * lib/getdelim.c (getdelim): Remove unused variables.
62012
62013 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62014
62015         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
62016         so that the code works even with ancient cpp.  Portability problem
62017         with GCC 2.7.2.1 reported by Thomas M.Ott.
62018
62019 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62020
62021         * modules/regex (Depends-on): Add strcase.
62022
62023         * modules/gethostname (Licence): Change from GPL to LGPL, since
62024         gethostname.c is a trivial implementation of a standard library
62025         function.
62026         * modules/poll (License): Change from GPL to LGPL, since it's
62027         derived from LGPL code.
62028
62029 2005-09-27  Jim Meyering  <jim@meyering.net>
62030
62031         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
62032         HAVE_CONFIG_H.
62033
62034         * lib/intprops.h (signed_type_or_expr__): Define.
62035         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
62036         for unsigned types.
62037
62038 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62039
62040         * lib/verify.h (verify_expr): Remove, replacing with:
62041         (verify_true): New macro that returns true instead of void.
62042         (verify_type__): Remove.
62043         (verify): Use verify_true rather than verify_type__.
62044
62045 2005-09-26  Bruno Haible  <bruno@clisp.org>
62046
62047         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
62048         is necessary.
62049         (lib_SOURCES): Remove mbchar.c.
62050         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
62051         (Files): Add m4/mbrtowc.m4.
62052         * modules/mbiter: Likewise.
62053         * modules/mbuiter: Likewise.
62054
62055 2005-09-26  Bruno Haible  <bruno@clisp.org>
62056
62057         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
62058         compile mbchar.c if they are not both present.
62059         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
62060         * m4/mbiter.m4 (gl_MBITER): Likewise.
62061         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
62062         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
62063         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
62064
62065 2005-09-25  Jim Meyering  <jim@meyering.net>
62066
62067         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
62068         also uses socklen_t.
62069
62070 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * lib/utimens.c (ENOSYS): Define if not already defined.
62073         (futimens): Support having a null PATH if the file descriptor
62074         is nonnegative.
62075
62076         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
62077         Remove.
62078         (__attribute): Define to empty unless GCC 3.1 or later.
62079         This works around a core dump on OpenBSD 3.4, which has GCC
62080         2.95.3, which dumps core when given __attribute__(()).  It also
62081         simplifies other tests, since we really don't want to bother with
62082         worrying about which ancient version of GCC supported what.
62083         Original problem reported by Yoann Vandoorselaere, with part of
62084         the fix suggested by Derek Price.
62085
62086 2005-09-24  Jim Meyering  <jim@meyering.net>
62087
62088         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
62089         so we can once again use a positive bitfield width of 1 -- now we
62090         don't have to explain why we were using a bitfield width of 2.
62091
62092 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62093
62094         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
62095         and similarly for the other external symbols.  Problem reported
62096         by James Gallager.
62097
62098         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
62099         bug reported by Jim Meyering.
62100
62101         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
62102         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
62103         not needed, since socklen is a prerequisite module.
62104
62105 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62106
62107         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
62108         Problem reported by Eric Blake.
62109         (getaddrinfo): Initialize se so that it's not garbage.
62110         Redo internal storage allocation so that it doesn't make unportable
62111         assumptions about alignment.
62112         Fix a memory leak.
62113
62114         * lib/utimens.c (futimens): Use futimesat if available.
62115         Prefer it to futimes since it doesn't have the futimes bug.
62116
62117         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
62118         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
62119         Instead, declare a function that returns a pointer to an array,
62120         and use verify_type__ to declare the size of the array.
62121         Problem and germ of a solution reported by Bruno Haible.
62122         (verify_type__): Use 2, not 1, for bitfield size, to avoid
62123         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
62124
62125 2005-09-23  Jim Meyering  <jim@meyering.net>
62126
62127         Sync from coreutils.
62128         Correct build failure (socklen_t not defined) on at least
62129         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
62130         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
62131
62132 2005-09-23  Jim Meyering  <jim@meyering.net>
62133
62134         * modules/getaddrinfo (Depends-on): Add socklen.
62135
62136 2005-09-23  Bruno Haible  <bruno@clisp.org>
62137
62138         * tests/test-verify.c: New file.
62139
62140 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62141
62142         Sync from coreutils.
62143
62144         * modules/argmatch (Depends-on): Add verify.
62145         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
62146         unistd-safer.
62147         * modules/save-cwd (Depends-on): Likewise.
62148
62149         * modules/openat (Files): Add lib/openat-die.c.
62150         (Depends-on): Remove error, exitfail.
62151         Add dirname.
62152
62153         * modules/verify: New file.
62154         * MODULES.html.sh (Diagnostics <assert.h>): New section,
62155         with "verify" module.
62156
62157 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62158
62159         Sync from coreutils.
62160
62161         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
62162         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
62163         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
62164         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
62165         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
62166         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
62167         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
62168         Don't bother checking for string.h, stdlib.h, unistd.h.
62169         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
62170         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
62171         module's job.
62172         * m4/jm-macros.m4 (gl_MACROS): Likewise.
62173         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
62174
62175         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
62176         (gl_GETDATE): Use it.
62177
62178         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
62179
62180 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62181
62182         Sync from coreutils.
62183
62184         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
62185         stat-time.h.
62186         * lib/argmatch.h: Include verify.h
62187         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
62188         (ARGMATCH_ASSERT): Remove; unused.
62189         * lib/canonicalize.c: Assume STDC_HEADERS.
62190         * lib/exclude.c: Include "strcase.h".
62191         * lib/regex_internal.h [!defined _LIBC]: Likewise.
62192         * lib/getusershell.c: Include stdio--.h rather than stdio.h
62193         and stdio-safer.h.
62194         (getusershell): Call fopen, not fopen_safer.
62195         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
62196         Do not include unistd-safer.h.
62197         (save_cwd): Don't call fd_safer; no longer needed
62198         now that we include fcntl--.h.
62199
62200         * lib/getdate.y (relative_time): New type.
62201         (RELATIVE_TIME_0): New constant.
62202         (parser_control): Use relative_time instead of doing it ourselves.
62203         (%union): Add new relative_time rel member.
62204         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
62205         Now typeless.
62206         (relunit, relunit_snumber): Now of type rel.
62207         (zone, rel, relunit, get_date): Adjust to above changes.
62208
62209         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
62210         Do not include unistd-safer.h.
62211         (getloadavg): Don't call fd_safer; no longer needed
62212         now that we include fcntl--.h.
62213
62214         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
62215         (make_dir_parents): Treat ENOSYS like EEXIST.
62216
62217         Improve quality of diagnostics on restore_cwd failure.
62218         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
62219         (make_dir_parents): Last arg is now int * (for errno), not bool *.
62220         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
62221         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
62222         each time through the loop.  Do not diagnose restore_cwd failure;
62223         that is the caller's job (and perhaps the caller does not care).
62224
62225         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
62226         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
62227         If the file already exists but is not a directory, don't bother
62228         to try to make its parents.
62229         Close potential file descriptor leak if we can't chdir("/") (!).
62230         Don't always return true if chdir($PWD) fails; return true only
62231         if the requested action was done successfully (except for the
62232         chdir($PWD)).
62233         Don't log final directory unless we actually made it.
62234         Refactor to avoid duplicate code to fix up permissions.
62235         Don't attempt to fix up parent permissions if chdir($PWD) fails.
62236
62237         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
62238         to make it a bit faster and (I hope) clearer.
62239         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
62240         Fix bug in formats like %2N.
62241
62242         * lib/verify.h: New file.
62243
62244 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62245
62246         Sync from coreutils.
62247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
62248
62249 2005-09-22  Jim Meyering  <jim@meyering.net>
62250
62251         Sync from coreutils.
62252
62253         * m4/lstat.m4 (gl_FUNC_LSTAT):
62254         Use AC_LIBSOURCES to require lstat.c and lstat.h.
62255         Remove obsolete comment.
62256         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
62257         * m4/xstrtod.m4: Likewise.
62258
62259         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
62260
62261 2005-09-22  Jim Meyering  <jim@meyering.net>
62262
62263         Sync from coreutils.
62264
62265         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
62266
62267         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
62268         the .tm_year member, since otherwise gcc-4.0 would now warn about
62269         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
62270
62271         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
62272         order to avoid an unsuppressible warning from gcc on 64-bit systems.
62273
62274         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
62275         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
62276         when run in a time zone for which daylight savings time is in effect
62277         for the starting date.
62278
62279         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
62280         stop us from restricting permissions of just-created absolute-named
62281         directories.
62282         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
62283         to restore initial working directory.
62284         * lib/mkdir-p.c (make_dir_parents): New parameter:
62285         different_working_dir, to tell caller if/when we change the working
62286         directory and are unable to return to the initial one.
62287         * lib/mkdir-p.h (make_dir_parents): Update prototype.
62288         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
62289         `return false'.  This fixes a bug introduced on 2004-07-30.
62290
62291         * lib/openat.c (fdopendir): Be sure to close the supplied
62292         file descriptor before returning.  This makes our replacement
62293         implementation a little closer to Solaris's, where fdopendir
62294         ties the file descriptor to the returned DIR* pointer.
62295         * lib/openat.c (unlinkat): New function.
62296         * lib/openat.h (unlinkat): Add prototype.
62297         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
62298         (openat_restore_fail): Rename from openat_restore_die.
62299         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
62300
62301         Provide an alternative to exiting immediately upon save_cwd or
62302         restore_cwd failure.  Now, an application can arrange e.g.,
62303         to perform a longjump in that case.
62304         * lib/openat.c: Include dirname.h.
62305         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
62306         (rpl_openat, fdopendir, fstatat): Call openat_save_die
62307         and openat_restore_die rather than calling error directly.
62308         Don't include "error.h" or "exitfail.h"; they're no longer needed.
62309
62310         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
62311         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
62312         define.
62313
62314         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
62315         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
62316                             int utc, int nanoseconds);
62317         Background:
62318         date should not have to allocate a megabyte of virtual memory to
62319         handle a format argument like +%1048575T.  When implemented with
62320         strftime, it must allocate such a buffer, use strftime to fill it
62321         in, print it, then free it.
62322         With fprintftime, it simply prints everything and exits.
62323         With no need for memory allocation, that's one fewer way to fail.
62324         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
62325         optional field width, not before, so we accept %9:z, not %:9z.
62326         (my_strftime): Be sure to use L_('x') for literals.
62327
62328         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
62329         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
62330         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
62331         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
62332         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
62333         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
62334         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
62335         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
62336         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
62337         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
62338         * lib/xgethostname.c, lib/xreadlink.c:
62339         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
62340
62341         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
62342         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
62343         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
62344         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62345         and don't include <sys/file.h>).
62346
62347 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
62348
62349         Sync from coreutils.
62350
62351         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
62352         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
62353         [!LDAV_DONE]: Avoid unused variable warning.
62354
62355 2005-09-21  Bruno Haible  <bruno@clisp.org>
62356
62357         * lib/unicodeio.h (unicode_to_mb): New declaration.
62358
62359 2005-09-20  Derek Price  <derek@ximbiot.com>
62360
62361         * lib/getaddrinfo.c: Don't include <netdb.h> included from
62362         getaddrinfo.h.
62363
62364 2005-09-20  Bruno Haible  <bruno@clisp.org>
62365
62366         * gnulib-tool: Remove trailing slashes from the values specified for
62367         --source-base, --m4-base, --tests-base, --aux-dir.
62368         Suggested by Simon Josefsson <jas@extundo.com>.
62369
62370 2005-09-20  Bruno Haible  <bruno@clisp.org>
62371
62372         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
62373         func_modules_to_filelist, func_import, func_create_testdir): Make all
62374         sorting results locale-independent, so that gnulib-cache.m4 doesn't
62375         change when gnulib-tool is invoked in a different locale.
62376
62377 2005-09-19  Simon Josefsson  <jas@extundo.com>
62378
62379         * m4/socklen.m4: Fix typo.
62380
62381 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62382
62383         Use a consistent style for including <config.h>.
62384         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
62385         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
62386         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
62387         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
62388         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
62389         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
62390         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
62391         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
62392         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
62393         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
62394         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
62395         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
62396         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
62397         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
62398         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
62399         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
62400         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
62401         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
62402         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
62403         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
62404         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
62405         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
62406         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
62407         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
62408         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
62409         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
62410         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
62411         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
62412         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
62413         lib/xstrtoumax.c, lib/yesno.c:
62414         Standardize inclusion of config.h.
62415         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
62416         lib/inttostr.h:  Removed inclusion of config.h from header files.
62417         * lib/inttostr.c:  Adjusted in-tree users.
62418         * lib/timespec.h: Remove superfluous warning to include config.h.
62419         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
62420         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
62421         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
62422         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
62423         config.h with HAVE_CONFIG_H.
62424
62425 2005-09-19  Jim Meyering  <jim@meyering.net>
62426
62427         * modules/pathmax (License): Change to LGPL.
62428
62429 2005-09-19  Derek Price  <derek@ximbiot.com>
62430
62431         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
62432
62433 2005-09-19  Bruno Haible  <bruno@clisp.org>
62434
62435         * gnulib-tool (import): Provide default for --tests-base.
62436
62437 2005-09-19  Bruno Haible  <bruno@clisp.org>
62438
62439         * doc/quote.texi: New file, extracted from gnulib.texi.
62440         * doc/ctime.texi: New file, extracted from gnulib.texi.
62441         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
62442         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
62443         * doc/gnulib.texi: Include them.
62444
62445 2005-09-18  Bruno Haible  <bruno@clisp.org>
62446
62447         Portability fix.
62448         * gnulib-tool (func_readlink): New function.
62449         (func_ln_if_changed): Use it.
62450
62451 2005-09-18  Bruno Haible  <bruno@clisp.org>
62452
62453         * gnulib-tool: Support --with-tests also with --import.
62454         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
62455         (func_import): Use variables $testsbase and $inctests. Emit a
62456         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
62457         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
62458         SUBDIRS += $testsdir.
62459         (func_create_testdir): Update.
62460
62461 2005-09-18  Bruno Haible  <bruno@clisp.org>
62462
62463         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
62464         instead of $dry_run.
62465         (func_cp_if_changed, func_mv_if_changed): Remove functions.
62466         (func_ln_if_changed): Don't handle dry-run here.
62467         (func_import): In dry-run mode, detect more precisely which actions
62468         would be performed, and don't use "...ing" verbs.
62469
62470 2005-09-18  Bruno Haible  <bruno@clisp.org>
62471
62472         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
62473         (func_import): Use join on two temporary files instead of three nested
62474         loops, in order to determine which files are new or old.
62475
62476 2005-09-18  Bruno Haible  <bruno@clisp.org>
62477
62478         * gnulib-tool (func_import): Comment out code that spits out the
62479         new files with --dry-run.
62480
62481 2005-09-18  Bruno Haible  <bruno@clisp.org>
62482
62483         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
62484
62485 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62486
62487         * lib/stat-time.h: New file.
62488         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
62489         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
62490         in a different way.
62491         (timespec_cmp): New function.
62492         * lib/utimecmp.c: Include stat-time.h.
62493         (SYSCALL_RESOLUTION): Depend on whether various struct stat
62494         members exist, not on the obsolescent ST_MTIM_NSEC.
62495         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
62496
62497 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62498
62499         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
62500
62501 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62502
62503         * MODULES.html.sh (File system functions): Add stat-time.
62504         * modules/stat-time: New file.
62505         * modules/timespec (Files): Remove m4/st_mtim.m4; this
62506         is now done in a different way, by the stat-time module.
62507         * modules/utimecmp (Depends-on): Add stat-time.
62508
62509 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62510
62511         * m4/st_mtim.m4: Remove.  Superseded by...
62512         * m4/stat-time.m4: New file.
62513         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
62514         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
62515
62516 2005-09-15  Derek Price  <derek@ximbiot.com>
62517
62518         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
62519
62520 2005-09-15  Derek Price  <derek@ximbiot.com>
62521
62522         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
62523         * lib/regex_internal.c: Ditto, using this...
62524         (__GNUC_PREREQ): ...new macro.
62525         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
62526         using...
62527         (__GNUC_PREREQ): ...this new macro.
62528
62529         * lib/strstr.h: Include string.h. Define strstr as a macro here.
62530
62531 2005-09-15  Derek Price  <derek@ximbiot.com>
62532             Paul Eggert  <eggert@cs.ucla.edu>
62533
62534         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
62535         changes, consolidating in...
62536         * lib/regex_internal.h: ...this file.
62537
62538 2005-09-13  Jim Meyering  <jim@meyering.net>
62539
62540         * lib/canon-host.c: Filter through gnu indent and reword comments
62541         slightly.
62542         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
62543
62544 2005-09-13  Derek Price  <derek@ximbiot.com>
62545
62546         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
62547         failure.
62548         Reported by Jim Meyering  <jim@meyering.net>.
62549
62550 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62551
62552         * lib/base64.c: Typo.
62553         (base64_encode): Put b64str in initialized data section.
62554
62555 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
62556
62557         Merge glibc and coreutils changes into gnulib, plus a few
62558         extra fixes.
62559         * lib/md5.c: Use #error rather than a string.
62560         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
62561         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
62562         (__attribute__): Define to empty for non recent-GCC.
62563         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
62564         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
62565         Renamed from their non-__ counterparts, with new macros replacing
62566         them if not _LIBC.  Add __THROW attribute.
62567         (rol): Remove.
62568         (struct md5_ctx): Align buffer if using GCC.
62569         * lib/sha1.h (struct sha1_ctx): Likewise.
62570         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
62571         The old name was backwards.
62572         (NOTSWAP): Remove; not used.
62573         (rol): New macro, moved here from md5.h.
62574         (sha1_process_block): Remove a FIXME that doesn't make sense.
62575
62576 2005-09-12  Derek Price  <derek@ximbiot.com>
62577
62578         Return usable errors from canon-host.
62579         * lib/canon-host.h: New file.
62580         * lib/canon-host.c (canon_host): Wrap...
62581         (canon_host_r): ...this new function, which now relies exclusively on
62582         getaddrinfo.
62583         (ch_strerror): New function.
62584         (last_cherror): New global.
62585         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
62586         interface.
62587         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
62588         void *.
62589         (freeaddrinfo): Free ai->ai_canonname when set.
62590
62591 2005-09-12  Derek Price  <derek@ximbiot.com>
62592
62593         Make canon-host require getaddrinfo.
62594         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
62595         AC_LIBSOURCE canon-host.h.  Call...
62596         (gl_PREREQ_CANON_HOST): ...this new function, which requires
62597         gl_GETADDRINFO.
62598         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
62599
62600 2005-09-12  Derek Price  <derek@ximbiot.com>
62601
62602         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
62603         LGPL.
62604         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
62605
62606 2005-09-12  Derek Price  <derek@ximbiot.com>
62607
62608         * lib/gai_strerror.c: Include config.h when available.  Include
62609         getaddrinfo.h before other headers to test interface.
62610         Reported by Larry Jones <lawrence.jones@ugs.com>.
62611
62612 2005-09-12  Derek Price  <derek@ximbiot.com>
62613             Paul Eggert  <eggert@cs.ucla.edu>
62614
62615         * modules/glob (Files): Add glob-libc.h.
62616
62617 2005-09-12  Derek Price  <derek@ximbiot.com>
62618             Paul Eggert  <eggert@cs.ucla.edu>
62619
62620         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
62621         glob_.h, glob-libc.h.
62622         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
62623
62624 2005-09-12  Derek Price  <derek@ximbiot.com>
62625             Paul Eggert  <eggert@cs.ucla.edu>
62626
62627         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
62628         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
62629         protecting things that should be done only in gnulib contexts.
62630         * lib/glob_.h: New file, containing only the glob things needed for
62631         gnulib.
62632         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
62633         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
62634         (glob, globfree, glob_pattern_p): Now defined simply in terms of
62635         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
62636         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
62637         and to respect the namespace rules better.
62638
62639 2005-09-08  Simon Josefsson  <jas@extundo.com>
62640
62641         * modules/socklen: New file.
62642
62643 2005-09-08  Simon Josefsson  <jas@extundo.com>
62644
62645         * m4/socklen.m4: New file.
62646
62647 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62648
62649         * modules/utimens (Files): Add m4/utimbuf.m4, since
62650         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
62651         Reported by Sergey Poznyakoff.
62652
62653 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62654
62655         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
62656         definitions, since that's the preferred style in glibc.
62657         Fix a minor spacing issue, and update copyright notice to match
62658         glibc's.
62659
62660 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62661
62662         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
62663
62664 2005-09-06  Simon Josefsson  <jas@extundo.com>
62665
62666         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
62667         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
62668
62669 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62670
62671         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
62672         warning.
62673
62674 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62675
62676         * config/srclist.txt: Add glibc bug 1302.
62677
62678 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
62679
62680         Change bitset word type from unsigned int to unsigned long int,
62681         as this has better performance on typical 64-bit hosts.
62682         Port bitset code to hosts with unusual word sizes.
62683         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
62684         (build_collating_symbol):
62685         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
62686         argument is a bitset.  This is merely a style issue, but it makes
62687         it clearer that an entire array is expected.
62688         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
62689         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
62690         Port to the case where bitset_word is not the same as unsigned int.
62691         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62692         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
62693         Likewise.
62694         * lib/regexec.c (check_dst_limits_calc_pos_1,
62695         check_subexp_matching_top):
62696         (build_trtable, group_nodes_into_DFAstates):
62697         Likewise.
62698         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
62699         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
62700         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
62701         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
62702         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
62703         * lib/regcomp.c (optimize_subexps, lower_subexp):
62704         Work even if bitset_word has holes in its bitwise representation.
62705         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
62706         * lib/regexec.c (check_dst_limits_calc_pos_1,
62707         check_subexp_matching_top):
62708         Likewise.
62709         * lib/regex_internal.c (re_string_reconstruct):
62710         Don't assume UCHAR_MAX == 255.
62711         * lib/regex_internal.h (bitset_set_all): Likewise.
62712         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
62713         All uses changed.
62714         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
62715         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
62716         All uses changed.
62717         (BITSET_WORD_MAX): New macro.
62718         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
62719         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
62720         (bitset_empty, bitset_copy):
62721         Prefer sizeof (bitset) to multiplying it out ourselves.
62722         (bitset_not_merge): Remove; unused.
62723         (bitset_contain): Return bool, not unsigned int with one bit on.
62724         All callers changed.
62725         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
62726         alignment than re_node_set; do this by defining a new internal
62727         type struct dests_alloc and using it to allocate memory.
62728
62729 2005-09-05  Bruno Haible  <bruno@clisp.org>
62730
62731         * gnulib-tool (func_import): Fix comparison in handling of symbolic
62732         links.
62733
62734 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
62735
62736         * modules/size_max (Makefile.am): Add size_max.h
62737
62738 2005-09-04  Derek Price  <derek@ximbiot.com>
62739
62740         * gnulib-tool (func_import): Fix reversed $symbolic logic.
62741
62742 2005-09-03  Simon Josefsson  <jas@extundo.com>
62743
62744         * gnulib-tool: Fix typo.
62745
62746 2005-09-03  Simon Josefsson  <jas@extundo.com>
62747
62748         * config/srclist.txt: Add glibc bug 1293.
62749
62750 2005-09-03  Derek Price  <derek@ximbiot.com>
62751
62752         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
62753         From Larry Jones <lawrence.jones@ugs.com>.
62754
62755 2005-09-02  Simon Josefsson  <jas@extundo.com>
62756
62757         * modules/socklen: New file.
62758
62759 2005-09-02  Simon Josefsson  <jas@extundo.com>
62760
62761         * modules/havelib: New module.
62762
62763         * modules/gettext, modules/iconv, modules/lock, modules/readline:
62764         Use havelib.
62765
62766 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62767
62768         Check for arithmetic overflow when calculating sizes, to prevent
62769         some buffer-overflow issues.  These patches are conservative, in the
62770         sense that when I couldn't determine whether an overflow was possible,
62771         I inserted a run-time check.
62772         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
62773         macros.
62774         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
62775         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
62776         (re_xnrealloc, re_x2nrealloc): New inline functions.
62777         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
62778         parse_bracket_exp):
62779         (build_equiv_class, build_charclass): Check for arithmetic overflow
62780         in size expression calculations.
62781         * lib/regex_internal.c (re_string_realloc_buffers):
62782         (build_wcs_upper_buffer, re_node_set_add_intersect):
62783         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
62784         (re_dfa_add_node, register_state): Likewise.
62785         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
62786         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
62787         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
62788         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
62789
62790 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62791
62792         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62793         m4/ulonglong.m4.  Problem reported by Martin Lambers.
62794
62795 2005-09-02  Bruno Haible  <bruno@clisp.org>
62796
62797         Support for lib vs. lib64 distinction on biarch platforms.
62798         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
62799         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
62800         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
62801
62802 2005-09-02  Bruno Haible  <bruno@clisp.org>
62803
62804         * gnulib-tool (import): In the other first-use case, provide defaults
62805         as well.
62806
62807 2005-09-02  Bruno Haible  <bruno@clisp.org>
62808
62809         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
62810         patches not yet found in the latest gettext release.
62811
62812 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62813
62814         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
62815         to avoid a collision with bits/local_lim.h in glibc.
62816         All uses changed.  Problem reported by Dmitry V. Levin in
62817         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
62818
62819         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
62820         bugs in int versus size_t comparisons.
62821         (re_string_context_at): Fix bug where the code assumed that
62822         Idx is signed.
62823
62824         Use bool where appropriate.
62825         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
62826         All callers changed.
62827         (calc_eclosure_iter): Likewise, for ROOT arg.
62828         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
62829         (build_charclass_op): Likewise, for NON_MATCH arg.
62830         * lib/regex_internal.c (re_string_allocate, re_string_construct):
62831         (re_string_construct_common): Likewise, for ICASE arg.
62832         * lib/regexec.c (re_search_2_stub, re_search_stub):
62833         Likewise, for RET_LEN arg.
62834         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
62835         (set_regs): Likewise, for FL_BACKTRACK arg.
62836         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
62837         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
62838         (calc_eclosure_iter, parse_bracket_exp):
62839         Use bool for internal variables that are booleans.
62840         * lib/regexec.c (re_search_internal, check_matching,
62841         proceed_next_node):
62842         (set_regs, build_sifted_states, sift_states_bkref):
62843         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
62844         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
62845         (find_collation_sequence_value):
62846         Likewise.
62847         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
62848         (re_node_set_compare):
62849         Return bool, not int. All callers changed.
62850         * lib/regexec.c (check_halt_node_context, check_dst_limits):
62851         (build_trtable, check_node_accept): Likewise.
62852         * lib/regex_internal.h: Include stdbool.h.
62853
62854         Fix bugs uncovered when converting to bool.
62855         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
62856         failure instead of charging ahead blindly.
62857         * lib/regex_internal.c (register_state): Likewise.
62858         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
62859         for freeing internal storage.
62860         (group_nodes_into_DFA_states): Use unsigned int, not int, for
62861         bitset pieces used as boolean, to avoid undefined behavior
62862         on hosts that do int overflow checking.
62863
62864 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62865
62866         * config/srclist.txt: Add glibc bugs 1285-1287.
62867
62868 2005-09-01  Jim Meyering  <jim@meyering.net>
62869
62870         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
62871         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
62872         Require gl_STAT_MACROS, too.
62873
62874 2005-09-01  Bruno Haible  <bruno@clisp.org>
62875
62876         * gnulib-tool (import): In the first-use case, provide defaults.
62877
62878 2005-09-01  Bruno Haible  <bruno@clisp.org>
62879
62880         * gnulib-tool (func_import): Remove the .tmp files.
62881
62882 2005-09-01  Bruno Haible  <bruno@clisp.org>
62883
62884         * gnulib-tool (func_import): Fix handling of symbolic links.
62885
62886 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62887
62888         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
62889         old glibc regex code mishandles strings longer than 2**31 bytes.
62890         This patch fixes this when the regex code is used in gnulib
62891         (i.e., outside glibc).
62892
62893         This patch should not affect the use of the regex code inside
62894         glibc.  No doubt this problem also needs to be handled for glibc
62895         as well, but the result will be an incompatible change to the
62896         glibc ABI, and the old ABI will have to be supported too.  That
62897         can be the the subject for another patch.
62898
62899         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
62900         governing whether the rest of this patch is active.  By default,
62901         the macro is disabled and the patch has no effect.
62902         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
62903         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
62904         (struct re_pattern_buffer, re_search, re_search_2, re_match):
62905         (re_match_2, re_set_registers): Use the new types.
62906         * lib/regex_internal.h (Idx, re_hashval_t): New types.
62907         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
62908         New macros.
62909         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
62910         (re_string_context_at, bin_tree_t, re_dfastate_t):
62911         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
62912         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
62913         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
62914         (re_string_char_size_at, re_string_wchar_at):
62915         (re_string_elem_size_at):
62916         Use the new types and macros to port to 64-bit hosts.
62917         Use unsigned types for internal values, so that the code
62918         mostly works even for arrays larger than SSIZE_MAX.
62919         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
62920         (search_duplicated_node, calc_eclosure_iter, fetch_number):
62921         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
62922         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
62923         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
62924         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
62925         (calc_inveclosure, parse_dup_op, build_range_exp):
62926         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
62927         (fetch_number, create_token_tree, mark_opt_subexp):
62928         Likewise.
62929         * lib/regex_internal.c (re_string_construct_common,
62930         create_ci_newstate):
62931         (create_cd_newstate, re_string_allocate, re_string_construct):
62932         (re_string_realloc_buffers, build_wcs_upper_buffer):
62933         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
62934         (re_string_reconstruct, re_string_peek_byte_case):
62935         (re_string_fetch_byte_case, re_string_context_at):
62936         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
62937         (re_node_set_init_copy, re_node_set_add_intersect):
62938         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62939         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62940         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
62941         (re_acquire_state, re_acquire_state_context, register_state):
62942         Likewise.
62943         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
62944         search_cur_bkref_entry):
62945         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
62946         (re_search_internal, re_search_2_stub, re_search_stub)
62947         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
62948         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
62949         (update_cur_sifted_state, check_dst_limits):
62950         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62951         (check_subexp_limits, sift_states_bkref, merge_state_array):
62952         (check_subexp_matching_top, get_subexp, get_subexp_sub):
62953         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
62954         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
62955         (expand_bkref_cache, check_node_accept_bytes):
62956         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
62957         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
62958         (acquire_init_state_context, check_halt_node_context):
62959         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
62960         (sift_states_backward, clean_state_log_if_needed):
62961         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
62962         (find_recover_state, transit_state_sb, transit_state_mb):
62963         (transit_state_bkref, build_trtable, match_ctx_clean):
62964         Likewise.
62965         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
62966         to work around an assumption that REG_MISSING is negative.
62967
62968         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
62969         (seek_collating_symbol_entry) [defined _LIBC]:
62970         (lookup_collation_sequence_value) [defined _LIBC]:
62971         (build_range_exp, build_collating_symbol) [defined _LIBC]:
62972         Use prototypes rather than old-style function definitions.
62973         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
62974         (transit_state_sb) [0]:
62975         (find_collation_sequence_value) [defined _LIBC]: Likewise.
62976
62977         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
62978         rm_eo.
62979
62980         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
62981         (optimize_subexps, lower_subexp):
62982         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
62983         since the signed shift might overflow.  Use 1u<<31 instead.
62984         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62985         Likewise.
62986         * lib/regexec.c (check_dst_limits_calc_pos_1,
62987         check_subexp_matching_top): Likewise.
62988
62989         * lib/regcomp.c (optimize_subexps, lower_subexp):
62990         Use CHAR_BIT rather than 8, for clarity.
62991         * lib/regexec.c (check_dst_limits_calc_pos_1):
62992         (check_subexp_matching_top): Likewise.
62993         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
62994         have to worry about portability issues when shifting it left.
62995         Remove no-longer-needed test for table_size > 0.
62996         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
62997         in a word, as the resulting behavior is undefined.
62998         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
62999         in one case, a <= should have been an <, and in another case the
63000         whole test was missing.
63001         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
63002         the standard name CHAR_BIT.
63003         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
63004         this is not true on one's complement and signed-magnitude hosts.
63005
63006         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
63007         next_last_offset.
63008         (struct re_dfa_t): Remove unused member states_alloc.
63009         * lib/regcomp.c (init_dfa): Don't initialize unused members.
63010
63011 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63012
63013         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
63014         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
63015         and large-file glibc and in 32-bit large-file Solaris.
63016
63017 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63018
63019         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
63020         lengths fit in regoff_t; this isn't true if regoff_t is the same
63021         width as size_t.
63022         * lib/regex.c (re_search_internal): 5th arg is LAST_START
63023         (= START + RANGE) instead of RANGE.  This avoids overflow
63024         problems when regoff_t is the same width as size_t.
63025         All callers changed.
63026         (re_search_2_stub): Check for overflow when adding the
63027         sizes of the two strings.
63028         (re_search_stub): Check for overflow when adding START
63029         to RANGE; if it occurs, substitute the extreme value.
63030
63031 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63032
63033         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
63034
63035 2005-08-31  Jim Meyering  <jim@meyering.net>
63036
63037         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
63038         a pointer-to-const.
63039         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
63040         (register_state): Likewise.
63041         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
63042         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63043         (group_nodes_into_DFAstates): Likewise.
63044
63045 2005-08-31  Jim Meyering  <jim@meyering.net>
63046
63047         * check-module: Add a FIXME comment.
63048
63049 2005-08-31  Eric Blake  <ebb9@byu.net>
63050
63051         * modules/unistd-safer (Files): Add unistd--.h.
63052         * modules/stdio-safer (Files): Add stdio--.h.
63053
63054 2005-08-31  Derek Price  <derek@ximbiot.com>
63055
63056         * lib/getdelim.c (getdelim): Return EOF on EOF.
63057         Reported by Larry Jones <lawrence.jones@ugs.com>.
63058
63059 2005-08-31  Bruno Haible  <bruno@clisp.org>
63060
63061         Avoid unnecessary diffs in the generated lib/Makefile.am.
63062         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
63063         the generated files.
63064         (func_import): Don't set cmd.
63065
63066 2005-08-31  Bruno Haible  <bruno@clisp.org>
63067
63068         * lib/strstr.c: Include <stddef.h>, for NULL.
63069         * lib/strcasestr.c: Likewise.
63070         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63071
63072 2005-08-31  Bruno Haible  <bruno@clisp.org>
63073
63074         * gnulib-tool: New option --macro-prefix.
63075         (func_import): Use macro_prefix.
63076         (import): Handle option --macro-prefix.
63077
63078 2005-08-31  Bruno Haible  <bruno@clisp.org>
63079
63080         * gnulib-tool (import): Rename most ac_* variables to cached_*.
63081         Also use new variables cached_lgpl, cached_libtool.
63082
63083 2005-08-31  Bruno Haible  <bruno@clisp.org>
63084
63085         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
63086         always instantiating them.
63087
63088 2005-08-31  Bruno Haible  <bruno@clisp.org>
63089
63090         * gnulib-tool (func_import): Read the previous cached settings
63091         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
63092         earlier added by gnulib but are now dropped. Warn when a gnulib file
63093         overwrites a non-gnulib file.
63094
63095 2005-08-31  Bruno Haible  <bruno@clisp.org>
63096
63097         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
63098         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
63099         projects that don't keep autogenerated files in CVS. Put into
63100         actioncmd only the specified modules, not the transitive closure.
63101
63102 2005-08-31  Bruno Haible  <bruno@clisp.org>
63103
63104         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
63105         Create directories that shall be filled.
63106         (import): Don't look for gl_* macros in configure.ac. Recurse across
63107         all directories containing a gnulib-cache.m4 files, if meaningful.
63108
63109 2005-08-31  Bruno Haible  <bruno@clisp.org>
63110
63111         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
63112         (import): Set seen_libtool when we see gl_LIBTOOL.
63113
63114 2005-08-31  Bruno Haible  <bruno@clisp.org>
63115
63116         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
63117         declaration macro definitions from generated gnulib.m4.
63118
63119 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
63120
63121         * lib/iconvme.h: Add prototype for iconv_alloc.
63122
63123 2005-08-29  Simon Josefsson  <jas@extundo.com>
63124
63125         * lib/iconvme.c: Fix errno.
63126
63127 2005-08-29  Bruno Haible  <bruno@clisp.org>
63128
63129         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
63130         that it works when the directory contains spaces.
63131
63132 2005-08-29  Bruno Haible  <bruno@clisp.org>
63133
63134         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
63135
63136 2005-08-29  Bruno Haible  <bruno@clisp.org>
63137
63138         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
63139         Emit more advice.
63140
63141 2005-08-29  Bruno Haible  <bruno@clisp.org>
63142         and Stepan Kasal  <kasal@ucw.cz>
63143
63144         * check-module: If more parameters are given, check each of them
63145         separately; add more exceptions, as noted by Jim Meyering.
63146         (check_module): New procedure.
63147         (%exempt_header): Now contains all exceptions.
63148
63149 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
63150
63151         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
63152
63153 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63154
63155         * lib/iconvme.c: Split iconv_string into iconv_alloc.
63156
63157 2005-08-28  Bruno Haible  <bruno@clisp.org>
63158
63159         * m4/gnulib-tool.m4: New file.
63160
63161 2005-08-27  Jim Meyering  <jim@meyering.net>
63162
63163         * modules/unistd-safer (Files): Add pipe-safer.c.
63164         * modules/fcntl-safer (Files): Add creat-safer.c.
63165
63166 2005-08-27  Jim Meyering  <jim@meyering.net>
63167
63168         * m4/stdlib-safer.m4: New file.  From coreutils.
63169         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
63170         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
63171         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
63172         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
63173         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
63174
63175 2005-08-27  Jim Meyering  <jim@meyering.net>
63176
63177         * lib/fopen-safer.c: Merge minor changes from coreutils.
63178         * lib/dup-safer.c: Likewise.
63179         * lib/fd-safer.c: Likewise.
63180
63181         Merge from coreutils.
63182         * lib/stdio--.h: New file.
63183         * lib/stdlib--.h: New file.
63184         * lib/mkstemp-safer.c: New file.
63185
63186         GNU tar needs these.
63187         * lib/pipe-safer.c: New file.
63188         * lib/creat-safer.c: New file.
63189         * lib/fcntl--.h (creat): Define to creat_safer.
63190         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
63191         * lib/unistd--.h (pipe): Define to pipe_safer.
63192         * lib/unistd-safer.h: Declare pipe_safer.
63193
63194 2005-08-26  Simon Josefsson  <jas@extundo.com>
63195
63196         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
63197         Haible <bruno@clisp.org>.
63198
63199 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
63200
63201         * lib/regex_internal.h: Remove all references to
63202         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
63203         or better.
63204         (bitset_not, bitset_merge, bitset_not_merge):
63205         (bitset_mask, re_string_allocate, re_string_construct):
63206         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
63207         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
63208         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
63209         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
63210         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63211         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63212         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
63213         (re_acquire_state_context):
63214         Remove unnecessary forward decls.
63215         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
63216         Put __attribute at function definition,
63217         now that the function decl has been removed.
63218         * lib/regex_internal.c (re_string_peek_byte_case):
63219         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
63220         Likewise.
63221
63222 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
63223
63224         * m4/regex.m4: Add AC_PREREQ(2.50).
63225         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
63226
63227 2005-08-25  Simon Josefsson  <jas@extundo.com>
63228
63229         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
63230         __fsetlocking.
63231
63232 2005-08-25  Simon Josefsson  <jas@extundo.com>
63233
63234         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
63235         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
63236         GLIBC specific code.
63237
63238 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63239
63240         Make regex safe for g++.  This fixes one real bug (an "err"
63241         that should have been "*err").  g++ problem reported by
63242         Sam Steingold.
63243         * lib/regex_internal.h (re_calloc): New macro, consistent with
63244         re_malloc etc.  All callers of calloc changed to use re_calloc.
63245         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
63246         not int.  All callers changed.
63247         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
63248         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
63249         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
63250         (find_recover_state): Change "err" to "*err"; this fixes what
63251         appears to be a real bug.
63252         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
63253         versus int.
63254
63255 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63256
63257         * modules/regex (Depends-on): Add malloc, since the code
63258         assumes that !malloc(0) means failure.
63259
63260 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63261
63262         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
63263
63264         alloca modernization/simplification for regex.
63265         * lib/regex.c: Remove portability cruft for alloca.  This no longer
63266         needs to be at the start of the file, and can be moved into
63267         regex_internal.h and simplified.
63268         * lib/regex_internal.h: Include <alloca.h>.
63269         (__libc_use_alloca) [!defined _LIBC]: New macro.
63270         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
63271         now works outside glibc.
63272
63273 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63274
63275         * config/srclist.txt: Add glibc bugs 1241, 1245.
63276
63277 2005-08-25  Jim Meyering  <jim@meyering.net>
63278
63279         * lib/open-safer.c: Include <config.h>.
63280         Otherwise, we'd lose LARGEFILE support in any file using
63281         e.g. "fcntl--.h"
63282
63283 2005-08-25  Bruno Haible  <bruno@clisp.org>
63284
63285         * m4/minmax.m4: Require autoconf 2.52.
63286         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
63287         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
63288         alternatives of translit over the alphabet.
63289         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
63290
63291 2005-08-24  Simon Josefsson  <jas@extundo.com>
63292
63293         * tests/test-getpass.c: New file.
63294
63295 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63296
63297         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
63298         for GNU regex features.
63299
63300 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63301
63302         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
63303         * lib/regex.h (regerror): Likewise.
63304
63305         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
63306         requires this.  (The code never needed it.)
63307
63308         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
63309         All uses of recently-renamed identifiers changed to use the new,
63310         POSIX-compliant names.  The code will build and run just fine
63311         without these changes, but it's better to eat our own dog food
63312         and use the standard-conforming names.
63313
63314         * lib/regex.h: Fix a multitude of POSIX name space violations.
63315         These changes have an effect only for programs that define
63316         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
63317         do not change anything for programs compiled in the normal way.
63318         Also, there is no effect on the ABI.
63319
63320         (_REGEX_SOURCE): New macro.
63321         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
63322         defined and _GNU_SOURCE is not; this fixes a name space violation.
63323
63324         Rename the following macros to obey POSIX requirements.
63325         The old names are still visible as macros if _REGEX_SOURCE is defined.
63326         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
63327         RE_BACKSLASH_ESCAPE_IN_LISTS.
63328         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
63329         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
63330         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
63331         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
63332         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
63333         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
63334         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
63335         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
63336         (REG_INTERVALS): renamed from RE_INTERVALS.
63337         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
63338         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
63339         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
63340         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
63341         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
63342         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
63343         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
63344         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
63345         RE_UNMATCHED_RIGHT_PAREN_ORD.
63346         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
63347         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
63348         (REG_DEBUG): renamed from RE_DEBUG.
63349         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
63350         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
63351         unusual, since we can't clash with the POSIX REG_ICASE.
63352         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
63353         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
63354         (REG_NO_SUB): renamed from RE_NO_SUB.
63355         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
63356         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
63357         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
63358         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
63359         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
63360         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
63361         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
63362         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
63363         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
63364         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
63365         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
63366         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
63367         RE_SYNTAX_POSIX_MINIMAL_BASIC.
63368         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
63369         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
63370         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
63371         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
63372         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
63373         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
63374         (REG_FIXED): Renamed from REGS_FIXED.
63375         (REG_NREGS): Renamed from RE_NREGS.
63376
63377         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
63378         of other REG_* macros, since POSIX says the user is allowed to
63379         #undef these macros selectively.
63380
63381         (reg_errcode_t): Update comment stating what other tables need
63382         to be consistent.
63383
63384         Rename the following enum values to obey POSIX requirements.
63385         The old names are still visible as macros.
63386         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
63387         is not defined, since GNU is supposed to be a superset of POSIX as
63388         much as possible, and since we want reg_errcode_t to be a signed
63389         type for implementation consistency.
63390         (_REG_NOERROR): Renamed from REG_NOERROR.
63391         (_REG_NOMATCH): Renamed from REG_NOMATCH.
63392         (_REG_BADPAT): Renamed from REG_BADPAT.
63393         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
63394         (_REG_ECTYPE): Renamed from REG_ECTYPE.
63395         (_REG_EESCAPE): Renamed from REG_EESCAPE.
63396         (_REG_ESUBREG): Renamed from REG_ESUBREG.
63397         (_REG_EBRACK): Renamed from REG_EBRACK.
63398         (_REG_EPAREN): Renamed from REG_EPAREN.
63399         (_REG_EBRACE): Renamed from REG_EBRACE.
63400         (_REG_BADBR): Renamed from REG_BADBR.
63401         (_REG_ERANGE): Renamed from REG_ERANGE.
63402         (_REG_ESPACE): Renamed from REG_ESPACE.
63403         (_REG_BADRPT): Renamed from REG_BADRPT.
63404         (_REG_EEND): Renamed from REG_EEND.
63405         (_REG_ESIZE): Renamed from REG_ESIZE.
63406         (_REG_ERPAREN): Renamed from REG_ERPAREN.
63407         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
63408         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
63409         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
63410         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
63411
63412         (_REG_RE_NAME, _REG_RM_NAME): New macros.
63413         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
63414         changed.  But support the old name if the new one is not defined
63415         and if _REGEX_SOURCE.
63416
63417         Change the following member names in struct re_pattern_buffer.
63418         The old names are still supported if !_REGEX_SOURCE.
63419         The new names are always supported, regardless of _REGEX_SOURCE.
63420         (re_buffer): Renamed from buffer.
63421         (re_allocated): Renamed from allocated.
63422         (re_used): Renamed from used.
63423         (re_syntax): Renamed from syntax.
63424         (re_fastmap): Renamed from fastmap.
63425         (re_translate): Renamed from translate.
63426         (re_can_be_null): Renamed from can_be_null.
63427         (re_regs_allocated): Renamed from regs_allocated.
63428         (re_fastmap_accurate): Renamed from fastmap_accurate.
63429         (re_no_sub): Renamed from no_sub.
63430         (re_not_bol): Renamed from not_bol.
63431         (re_not_eol): Renamed from not_eol.
63432         (re_newline_anchor): Renamed from newline_anchor.
63433
63434         Change the following member names in struct re_registers.
63435         The old names are still supported if !_REGEX_SOURCE.
63436         The new names are always supported, regardless of _REGEX_SOURCE.
63437         (rm_num_regs): Renamed from num_regs.
63438         (rm_start): Renamed from start.
63439         (rm_end): Renamed from end.
63440
63441         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
63442         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
63443         Prepend __ to parameter names.
63444
63445         Undo yesterday's changes.
63446
63447 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63448
63449         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
63450         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
63451         lib/regex.c.
63452
63453 2005-08-24  Jim Meyering  <jim@meyering.net>
63454
63455         Sync from coreutils.
63456         * m4/fcntl-safer.m4: New file.
63457
63458         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
63459         and object files for this module.
63460
63461 2005-08-24  Jim Meyering  <jim@meyering.net>
63462
63463         Sync from coreutils.
63464         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
63465
63466 2005-08-24  Jim Meyering  <jim@meyering.net>
63467
63468         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
63469         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
63470
63471 2005-08-24  Jim Meyering  <jim@meyering.net>
63472
63473         * modules/fcntl-safer: New module.
63474         * modules/fts (Depends-on): Add fcntl-safer.
63475         * MODULES.html.sh (File descriptor based Input/Output):
63476         Add fcntl-safer.
63477
63478 2005-08-24  Bruno Haible  <bruno@clisp.org>
63479
63480         Support for unit test modules.
63481         * modules/README: Mention tests modules.
63482         * modules/TEMPLATE-TESTS: New file.
63483         * gnulib-tool: New options --extract-tests-module, --with-tests and
63484         --tests-base (unused for the moment).
63485         (testsbase, inctests): New variables.
63486         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
63487         (func_verify_module): Exclude TEMPLATE-TESTS.
63488         (func_verify_nontests_module, func_verify_tests_module): New functions.
63489         (func_get_dependencies): Add implicit dependency for tests modules.
63490         (func_get_tests_module): New function.
63491         (func_modules_transitive_closure): When --with-tests was specified,
63492         include the unit tests as well, unless explicitly avoided.
63493         (func_emit_lib_Makefile_am): Ignore the tests modules here.
63494         (func_emit_tests_Makefile_am): New function.
63495         (func_create_testdir): When --with-tests was specified, emit a
63496         tests/ directory.
63497         * MODULES.html.sh (Future developments): Update.
63498
63499 2005-08-24  Bruno Haible  <bruno@clisp.org>
63500
63501         * modules/tls-tests: New file.
63502         * tests/test-tls.c: New file, from GNU gettext.
63503
63504 2005-08-24  Bruno Haible  <bruno@clisp.org>
63505
63506         * modules/lock-tests: New file.
63507         * tests/test-lock.c: New file, from GNU gettext.
63508
63509 2005-08-24  Bruno Haible  <bruno@clisp.org>
63510
63511         * lib/lock.h: Add multiple inclusion guard.
63512         * lib/tls.h: Add multiple inclusion guard.
63513
63514 2005-08-24  Bruno Haible  <bruno@clisp.org>
63515
63516         * gnulib-tool: Add support for the --aux-dir option to
63517         --create-testdir, --create-megatestdir, --test, --megatest.
63518         (func_create_testdir, func_create_megatestdir): Optionally emit a
63519         AC_CONFIG_AUX_DIR directive.
63520         (create-testdir, create-megatestdir, test, megatest): Provide a
63521         default value for $auxdir.
63522
63523 2005-08-24  Bruno Haible  <bruno@clisp.org>
63524
63525         * gnulib-tool (import): Use compound statement instead of subshell
63526         where possible.
63527
63528 2005-08-24  Bruno Haible  <bruno@clisp.org>
63529
63530         * gnulib-tool (import): Change --aux-dir default to "build-aux".
63531
63532 2005-08-24  Bruno Haible  <bruno@clisp.org>
63533
63534         * gnulib-tool (func_version): Update.
63535
63536 2005-08-24  Bruno Haible  <bruno@clisp.org>
63537
63538         * gnulib-tool (func_import, func_create_testdir,
63539         func_create_megatestdir): Quote all autoconf macro arguments.
63540
63541 2005-08-24  Bruno Haible  <bruno@clisp.org>
63542
63543         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
63544         option --force, because --force causes the aclocal.m4 of each
63545         subdirectory to be newer than the corresponding config.h.in.
63546
63547 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63548
63549         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
63550         All contents moved to gl_REGEX.
63551         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
63552         assume that it does.
63553
63554 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63555
63556         * lib/regex.h (REG_NOSYS)
63557         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
63558         Define, since POSIX requires it as of 2001.
63559         (_REG_ENOSYS)
63560         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
63561         New private symbol, used to keep the enum signed in all cases.
63562         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
63563         Youngman in
63564         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
63565
63566         * lib/regex_internal.c (re_string_skip_chars, register_state):
63567         (calc_state_hash):
63568         Remove forward decls; no longer needed now that we use prototypes.
63569         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
63570         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
63571         (clean_state_log_if_needed): Likewise.
63572
63573 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63574
63575         * config/srclist.txt: Add glibc bugs 1231-1233.
63576
63577 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63578
63579         Fix problems reported by Sam Steingold in
63580         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
63581         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
63582         assumed that reg_errcode_t is a signed type, which is not
63583         necessarily true if _XOPEN_SOURCE is not defined.
63584         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
63585         since some compilers warn about it otherwise.
63586
63587 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63588
63589         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
63590         (init_word_char, create_initial_state, duplicate_node_closure):
63591         (fetch_token, peek_token_bracket, build_range_exp):
63592         (build_collating_symbol): Remove forward decls; no longer needed
63593         now that we use prototypes.
63594
63595         * lib/regcomp.c:
63596         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
63597         (re_compile_fastmap_iter, regcomp, regerror, regfree):
63598         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
63599         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
63600         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
63601         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
63602         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
63603         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
63604         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
63605         (build_range_exp, build_collating_symbol, parse_bracket_exp):
63606         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
63607         (build_charclass, build_charclass_op, fetch_number, create_tree):
63608         (create_token_tree, mark_opt_subexp, duplicate_tree):
63609         Use prototypes rather than old-style definitions.
63610
63611         * lib/regex_internal.c:
63612         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
63613         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
63614         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63615         (re_string_reconstruct, re_string_peek_byte_case):
63616         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
63617         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63618         (re_node_set_init_copy, re_node_set_add_intersect):
63619         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63620         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63621         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63622         (re_acquire_state, re_acquire_state_context, register_state):
63623         (create_ci_newstate, create_cd_newstate, free_state):
63624         Likewise.
63625         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
63626         re_search_2):
63627         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
63628         (re_search_internal, prune_impossible_nodes):
63629         (acquire_init_state_context, check_matching, static):
63630         (check_halt_node_context, check_halt_state_context, proceed_next_node):
63631         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
63632         (update_regs, sift_states_backward, build_sifted_states):
63633         (clean_state_log_if_needed, merge_state_array):
63634         (update_cur_sifted_state, add_epsilon_src_nodes):
63635         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
63636         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
63637         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
63638         (find_recover_state, check_subexp_matching_top, transit_state_mb):
63639         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
63640         (check_arrival, check_arrival_add_next_nodes):
63641         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63642         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63643         (check_node_accept_bytes, check_node_accept, extend_buffers):
63644         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
63645         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
63646         (sift_ctx_init):
63647         Likewise.
63648
63649         * lib/regex_internal.h:
63650         (re_string_allocate, re_string_construct, re_string_reconstruct):
63651         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
63652         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
63653         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
63654         (re_string_context_at, re_string_peek_byte_case):
63655         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
63656         is defined, since we now use prototypes always.
63657
63658         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
63659         C89 or better.  All uses removed.
63660
63661 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63662
63663         * config/srclist.txt: Add glibc bugs 1220-1227.
63664
63665 2005-08-20  Jim Meyering  <jim@meyering.net>
63666
63667         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
63668         of unused local, dfa.
63669
63670 2005-08-20  Bruno Haible  <bruno@clisp.org>
63671
63672         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
63673
63674 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63675
63676         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
63677         (re_node_set_insert_last, re_dfa_add_node):
63678         Rename local variables to avoid GCC shadowing warnings.
63679
63680 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63681
63682         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
63683         [defined lint]: Suppress bogus uninitialized-variable warnings.
63684
63685         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
63686         and let the caller return REG_ESPACE if out of space.  This
63687         removes an uninitialied-variable warning with GCC 4.0.1, and also
63688         avoids taking the address of a local variable.  All callers
63689         changed.
63690
63691 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63692
63693         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
63694         $LIBCSRC/posix/regexec.c.
63695         Add glibc bug 1217 for regcomp.c.
63696
63697 2005-08-19  Jim Meyering  <jim@meyering.net>
63698
63699         * lib/regexec.c (proceed_next_node): Redo local variables to
63700         avoid GCC shadowing warnings.
63701
63702 2005-08-18  Bruno Haible  <bruno@clisp.org>
63703
63704         * lib/strstr.c (strstr): Fix return value in multibyte case.
63705         * lib/strcasestr.c (strcasestr): Likewise.
63706
63707 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63708
63709         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
63710
63711 2005-08-17  Jim Meyering  <jim@meyering.net>
63712
63713         Make the %s format (seconds since the epoch) work for a negative
63714         number and when used with a zero-padded field width, e.g. %015s.
63715
63716         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
63717         label so that it precedes the code to set `digits'.  Otherwise,
63718         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
63719         print `00-22'.  Now, it prints `-0022', as it should.
63720
63721 2005-08-17  Bruno Haible  <bruno@clisp.org>
63722
63723         * modules/strstr (Files): Add m4/mbrtowc.m4.
63724         (Depends-on): Add mbuiter.
63725
63726 2005-08-17  Bruno Haible  <bruno@clisp.org>
63727
63728         * modules/strcasestr: New file.
63729         * MODULES.html.sh (String handling, based on ANSI C 89): Add
63730         strcasestr.
63731
63732 2005-08-17  Bruno Haible  <bruno@clisp.org>
63733
63734         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
63735
63736 2005-08-17  Bruno Haible  <bruno@clisp.org>
63737
63738         * modules/mbuiter: New file.
63739         * MODULES.html.sh (Extended multibyte and wide character utilities):
63740         Add mbuiter.
63741
63742 2005-08-17  Bruno Haible  <bruno@clisp.org>
63743
63744         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
63745         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
63746
63747 2005-08-17  Bruno Haible  <bruno@clisp.org>
63748
63749         * m4/strcasestr.m4: New file.
63750
63751 2005-08-17  Bruno Haible  <bruno@clisp.org>
63752
63753         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
63754         * lib/strstr.c: Completely rewritten, with multibyte locale support.
63755
63756 2005-08-17  Bruno Haible  <bruno@clisp.org>
63757
63758         * lib/strcasestr.h: New file.
63759         * lib/strcasestr.c: New file.
63760
63761 2005-08-17  Bruno Haible  <bruno@clisp.org>
63762
63763         * lib/strcasecmp.c: Use mbuiter.h.
63764
63765 2005-08-17  Bruno Haible  <bruno@clisp.org>
63766
63767         * lib/mbuiter.h: New file.
63768
63769 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63770
63771         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
63772         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
63773         and gl_GETOPT are both invoked via different paths (as happens
63774         with GNU tar CVS because it uses both argp and getopt), the former
63775         wins.
63776
63777 2005-08-16  Bruno Haible  <bruno@clisp.org>
63778
63779         * modules/tls: New file.
63780         * MODULES.html.sh (Multithreading): Add tls.
63781
63782 2005-08-16  Bruno Haible  <bruno@clisp.org>
63783
63784         * modules/strnlen1: New file.
63785         * MODULES.html.sh (String handling): Add strnlen1.
63786
63787 2005-08-16  Bruno Haible  <bruno@clisp.org>
63788
63789         * modules/strcase (Files): Add m4/mbrtowc.m4.
63790         (Depends-on): Add strnlen1, mbchar.
63791
63792 2005-08-16  Bruno Haible  <bruno@clisp.org>
63793
63794         * modules/mbiter: New file.
63795         * MODULES.html.sh (Extended multibyte and wide character utilities):
63796         Add mbiter.
63797
63798 2005-08-16  Bruno Haible  <bruno@clisp.org>
63799
63800         * modules/mbfile: New file.
63801         * MODULES.html.sh (Extended multibyte and wide character utilities):
63802         Add mbfile.
63803
63804 2005-08-16  Bruno Haible  <bruno@clisp.org>
63805
63806         * modules/mbchar: New file.
63807         * MODULES.html.sh (Extended multibyte and wide character utilities):
63808         New section.
63809
63810 2005-08-16  Bruno Haible  <bruno@clisp.org>
63811
63812         * m4/tls.m4: New file, from GNU gettext.
63813
63814 2005-08-16  Bruno Haible  <bruno@clisp.org>
63815
63816         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
63817         always.
63818         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
63819
63820 2005-08-16  Bruno Haible  <bruno@clisp.org>
63821
63822         * m4/mbiter.m4: New file.
63823
63824 2005-08-16  Bruno Haible  <bruno@clisp.org>
63825
63826         * m4/mbfile.m4: New file.
63827
63828 2005-08-16  Bruno Haible  <bruno@clisp.org>
63829
63830         * m4/mbchar.m4: New file.
63831
63832 2005-08-16  Bruno Haible  <bruno@clisp.org>
63833
63834         * lib/tls.h: New file, from GNU gettext.
63835         * lib/tls.c: New file, from GNU gettext.
63836
63837 2005-08-16  Bruno Haible  <bruno@clisp.org>
63838
63839         * lib/strnlen1.h: New file.
63840         * lib/strnlen1.c: New file.
63841
63842 2005-08-16  Bruno Haible  <bruno@clisp.org>
63843
63844         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
63845         (mbi_init): Update.
63846         (mbi_avail, mbi_advance): Let the iteration end before the terminating
63847         NUL byte, not after it.
63848
63849 2005-08-16  Bruno Haible  <bruno@clisp.org>
63850
63851         * lib/strcase.h (strcasecmp): Add note in comments.
63852         * lib/strncasecmp.c: Use code from strcasecmp.c.
63853         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
63854         (strcasecmp): Work correctly in multibyte locales.
63855
63856 2005-08-16  Bruno Haible  <bruno@clisp.org>
63857
63858         * lib/mbiter.h: New file.
63859
63860 2005-08-16  Bruno Haible  <bruno@clisp.org>
63861
63862         * lib/mbfile.h: New file.
63863
63864 2005-08-16  Bruno Haible  <bruno@clisp.org>
63865
63866         * lib/mbchar.h: New file.
63867         * lib/mbchar.c: New file.
63868
63869 2005-08-16  Bruno Haible  <bruno@clisp.org>
63870
63871         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
63872         the valid ones. Makes the comparison operations transitive:
63873         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
63874         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
63875
63876 2005-08-15  Simon Josefsson  <jas@extundo.com>
63877
63878         * modules/ssize_t (License): Change to 'unlimited'.
63879
63880         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
63881
63882 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63883
63884         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
63885         Add comments for each pending glibc patch.
63886
63887 2005-08-15  Bruno Haible  <bruno@clisp.org>
63888
63889         * lib/regex.h (__restrict_arr): Don't define to __restrict if
63890         __cplusplus is defined.
63891
63892 2005-08-14  Jim Meyering  <jim@meyering.net>
63893
63894         Sync from coreutils.
63895
63896         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
63897         Use the hash-table-based cycle-detection code not just when
63898         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
63899         Reported by James Youngman in
63900         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
63901         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
63902         FTS_TIGHT_CYCLE_CHECK.
63903         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
63904         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
63905         once again.
63906         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
63907         * lib/fts.c (fd_safer): Remove decl.
63908         Include fcntl--.h rather than unistd-safer.h
63909         (fts_safe_changedir): Don't call fd_safer; no longer needed
63910         now that we include fcntl--.h.
63911
63912 2005-08-12  Simon Josefsson  <jas@extundo.com>
63913
63914         * modules/getndelim2: Use ssize_t module.
63915         * modules/getnline: Likewise.
63916         * modules/safe-read: Likewise.
63917         * modules/xreadlink: Likewise.
63918
63919         * modules/ssize_t: New file.
63920
63921 2005-08-12  Simon Josefsson  <jas@extundo.com>
63922
63923         * m4/readline.m4: Look for termcap, curses or ncurses if required.
63924
63925 2005-08-12  Simon Josefsson  <jas@extundo.com>
63926
63927         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63928         ssize_t.
63929
63930 2005-08-12  Simon Josefsson  <jas@extundo.com>
63931
63932         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
63933         readline, getdelim and check_version.
63934         (Support for systems lacking ISO C 99: Sizes of integer types):
63935         Add size_max.
63936
63937 2005-08-12  Bruno Haible  <bruno@clisp.org>
63938
63939         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
63940
63941 2005-08-11  Simon Josefsson  <jas@extundo.com>
63942
63943         * modules/readline: New file.
63944
63945         * modules/strnlen (Files): Add strnlen.h.
63946
63947 2005-08-11  Simon Josefsson  <jas@extundo.com>
63948
63949         * m4/readline.m4: New file.
63950
63951 2005-08-11  Simon Josefsson  <jas@extundo.com>
63952
63953         * lib/readline.h, readline.c: New file.
63954
63955 2005-08-11  Simon Josefsson  <jas@extundo.com>
63956
63957         * doc/gnulib.texi (Initial import, Finishing touches): Mention
63958         gl_AVOID.
63959
63960 2005-08-11  Bruno Haible  <bruno@clisp.org>
63961
63962         * lib/strnlen.h (strnlen): Change parameter name to match comment.
63963
63964 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
63965
63966         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
63967
63968 2005-08-10  Simon Josefsson  <jas@extundo.com>
63969
63970         * tests/test-iconvme.c: New file.
63971
63972 2005-08-10  Simon Josefsson  <jas@extundo.com>
63973
63974         * m4/strnlen.m4: New file.
63975
63976         * m4/strndup.m4: Don't check for strnlen declaration, done in
63977         strnlen.m4.
63978
63979 2005-08-10  Simon Josefsson  <jas@extundo.com>
63980
63981         * lib/strndup.c: Use strnlen.h.
63982
63983         * lib/strnlen.h: New file.
63984
63985 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63986
63987         * README: Typos.
63988
63989 2005-08-02  Simon Josefsson  <jas@extundo.com>
63990
63991         * modules/readline: New file.
63992
63993 2005-08-02  Simon Josefsson  <jas@extundo.com>
63994
63995         * modules/getdelim: New file.
63996
63997         * modules/getline: Rewrite, don't use getndelim2.
63998
63999 2005-08-02  Simon Josefsson  <jas@extundo.com>
64000
64001         * m4/getline.m4: Separate out getdelim stuff into separate module.
64002
64003         * m4/getdelim.m4: New file.
64004
64005 2005-08-02  Simon Josefsson  <jas@extundo.com>
64006
64007         * lib/getline.h, getline.c: Rewrite.
64008
64009         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
64010
64011 2005-07-31  Bruno Haible  <bruno@clisp.org>
64012
64013         * lib/lock.h (gl_lock_initializer): New macro.
64014         (gl_lock_define_initialized): Use it.
64015         (gl_rwlock_initializer): New macro.
64016         (gl_rwlock_define_initialized): Use it.
64017         (gl_recursive_lock_initializer): New macro.
64018         (gl_recursive_lock_define_initialized): Use it.
64019
64020 2005-07-30  Karl Berry  <karl@gnu.org>
64021
64022         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
64023         Report from Ben Pfaff, regarding getopt.
64024
64025 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
64026
64027         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
64028         normal way.
64029         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
64030         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
64031         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
64032         (gl_GETOPT): Use the new macros.  Most of the implementation
64033         is moved to the new macros.  This is for programs like Emacs
64034         that don't want all the functionality of gl_GETOPT.
64035
64036 2005-07-26  Bruno Haible  <bruno@clisp.org>
64037
64038         * m4/lock.m4: Update from GNU gettext.
64039
64040 2005-07-26  Bruno Haible  <bruno@clisp.org>
64041
64042         * lib/lock.h: Update from GNU gettext.
64043         * lib/lock.c: Update from GNU gettext.
64044
64045 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
64048         obsolescent AC_TRY_RUN.  Include the default includes files, for
64049         'exit'.
64050
64051 2005-07-24  Bruno Haible  <bruno@clisp.org>
64052
64053         * modules/visibility: New file.
64054         * MODULES.html.sh (Misc): Add visibility.
64055
64056 2005-07-24  Bruno Haible  <bruno@clisp.org>
64057
64058         * m4/visibility.m4: New file.
64059
64060 2005-07-24  Bruno Haible  <bruno@clisp.org>
64061
64062         * doc/visibility.texi: New file.
64063
64064 2005-07-22  Bruno Haible  <bruno@clisp.org>
64065
64066         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
64067         $(ALLOCA_H), redundant through BUILT_SOURCES.
64068         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
64069         redundant through BUILT_SOURCES.
64070         * modules/byteswap (Makefile.am): Remove explicit dependency on
64071         $(BYTESWAP_H), redundant through BUILT_SOURCES.
64072         * modules/fnmatch (Makefile.am): Remove explicit dependency on
64073         $(FNMATCH_H), redundant through BUILT_SOURCES.
64074         * modules/getopt (Makefile.am): Remove explicit dependency on
64075         $(GETOPT_H), redundant through BUILT_SOURCES.
64076         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
64077         redundant through BUILT_SOURCES.
64078         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
64079         redundant through BUILT_SOURCES.
64080         * modules/stdbool (Makefile.am): Remove explicit dependency on
64081         $(STDBOOL_H), redundant through BUILT_SOURCES.
64082         * modules/stdint (Makefile.am): Remove explicit dependency on
64083         $(STDINT_H), redundant through BUILT_SOURCES.
64084         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
64085         Remove explicit dependency on $(SYSEXITS_H).
64086         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
64087
64088 2005-07-18  Simon Josefsson  <jas@extundo.com>
64089
64090         * lib/check-version.c (check_version): Accept identical versions too.
64091
64092 2005-07-18  Bruno Haible  <bruno@clisp.org>
64093
64094         * modules/lock: New file.
64095         * MODULES.html.sh (Multithreading): New section.
64096
64097 2005-07-18  Bruno Haible  <bruno@clisp.org>
64098
64099         * m4/lock.m4: New file, from GNU gettext.
64100
64101 2005-07-18  Bruno Haible  <bruno@clisp.org>
64102
64103         * lib/lock.h: New file, from GNU gettext.
64104         * lib/lock.c: New file, from GNU gettext.
64105
64106 2005-07-18  Bruno Haible  <bruno@clisp.org>
64107
64108         * lib/lock.h (gl_once_t): New type.
64109         (gl_once_define, gl_once): New macros.
64110         * lib/lock.c (fresh_once): New variable.
64111         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
64112         functions.
64113
64114 2005-07-16  Simon Josefsson  <jas@extundo.com>
64115
64116         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
64117         workaround, suggested by Bruno.
64118
64119 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64120
64121         * modules/xalloc (Depends-on): Add xalloc-die.
64122         * modules/xvasprintf (Depends-on): Add xalloc-die.
64123
64124 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64125
64126         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
64127         with a minor change.
64128
64129 2005-07-15  Bruno Haible  <bruno@clisp.org>
64130
64131         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
64132         When using lib/poll.c, define poll as rpl_poll.
64133
64134 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
64135
64136         * modules/argp (Depends-on): Remove unlocked-io.
64137
64138 2005-07-14  Derek Price  <derek@ximbiot.com>
64139
64140         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
64141         for glob symlink bug.
64142
64143 2005-07-14  Bruno Haible  <bruno@clisp.org>
64144
64145         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
64146         Instead, test for *_unlocked function declarations directly.
64147
64148 2005-07-11  Simon Josefsson  <jas@extundo.com>
64149
64150         * modules/size_max: New file.
64151
64152         * modules/xsize: Depend on size_max module for size_max.m4.
64153
64154 2005-07-11  Simon Josefsson  <jas@extundo.com>
64155
64156         * lib/size_max.h: New file.
64157
64158 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
64159
64160         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
64161         copyright symbol and the year.
64162         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
64163         (version_etc_va): Use parameterized copyright notice.
64164         Reword to conform to the current GNU coding standards.
64165
64166 2005-07-11  Karl Berry  <karl@gnu.org>
64167
64168         * doc/gnulib.texi (Quoting): new node.
64169         (Initial import): more info, from Patrice.
64170
64171 2005-07-11  Bruno Haible  <bruno@clisp.org>
64172
64173         * gnulib-tool (func_usage): Document option --avoid.
64174         (Command line options): Handle --avoid.
64175         (func_acceptable): New function.
64176         (func_modules_transitive_closure): Use it.
64177
64178 2005-07-11  Bruno Haible  <bruno@clisp.org>
64179
64180         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
64181         Reported by Jim Meyering.
64182
64183 2005-07-10  Bruno Haible  <bruno@clisp.org>
64184
64185         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
64186         Needed when size_t is smaller than 'unsigned int'.
64187         Reported by Paul Eggert.
64188
64189 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64190
64191         * modules/argp (Depends-on): Add unlocked-io
64192
64193 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64194
64195         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
64196         block of defines.
64197
64198 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64199
64200         * config/srclist.txt: Comment out regcomp.c, since we have a porting
64201         fix now.
64202
64203 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
64204         and Paul Eggert  <eggert@cs.ucla.edu>
64205
64206         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
64207         in wint_t, not wchar_t.  Remove now-unnecessary cast.
64208
64209 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64210
64211         * modules/regex (Files): Add lib/regex_internal.c,
64212         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
64213         (Depends-on): Add extensions.
64214         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
64215
64216 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64217
64218         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
64219         pathconf.
64220         * m4/same.m4 (gl_SAME): Likewise.
64221         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
64222
64223         * m4/regex.m4: Adjust to new libc regex implementation.
64224         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
64225         all the .c and .h parts of (the new) regex.
64226         Quote the m4 stuff better.
64227         Check for RE_ICASE bug of old gnulib.
64228         Check for REG_STARTEND of recent libc.
64229         Rename local variables from jm_* to gl_*.
64230         Quote operand of "test -f".
64231         Say "recent enough" version of libc, not "version 2".
64232         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
64233         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
64234         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
64235         Remove check for btowc, isascii.
64236         Require AM_LANGINFO_CODESET.
64237
64238 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64239
64240         * lib/regex.c, regex.h: Sync from libc.
64241         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
64242         * lib/regexec.c:
64243         New files, synced from libc, except that regex_internal.h
64244         currently has a small porting fix.
64245
64246 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64247
64248         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
64249         regex_internal.c, regexec.c.
64250         Add regex_internal.h too, but as a comment, since the libc version
64251         is currently broken in gnulib mode.
64252
64253 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64254
64255         Support programs like Emacs that use gnulib but not gettext.
64256         * MODULES.html.sh (Internationalization functions): Add gettext-h.
64257         * modules/gettext-h: New file.
64258         * modules/gettext (Files): Remove lib/gettext.h.
64259         (Depends-on): Add gettext-h.
64260         (Makefile.am): Remove lib_SOURCES.
64261         * modules/argmatch, modules/c-stack, modules/closeout:
64262         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
64263         * modules/execute, modules/file-type, modules/getaddrinfo:
64264         * modules/getopt, modules/human, modules/javacomp:
64265         * modules/javaexec, modules/mkdir-p, modules/obstack:
64266         * modules/openat, modules/pagealign_alloc, modules/pipe:
64267         * modules/quotearg, modules/regex, modules/rpmatch:
64268         * modules/unicodeio, modules/userspec, modules/version-etc:
64269         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
64270         * modules/xsetenv:
64271         Depend on gettext-h, not gettext.
64272
64273 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64274
64275         * gnulib-tool (func_import): Add support for 'public domain' license.
64276         * modules/alloca, modules/atexit, modules/memmove:
64277         Now public domain, not GPL.
64278         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
64279         * modules/realloc, modules/strerror, modules/strtod:
64280         Now LGPL, not GPL.
64281
64282 2005-07-05  Bruno Haible  <bruno@clisp.org>
64283
64284         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
64285         autoconf CVS. Needed for mingw.
64286
64287 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64288
64289         Remove the dependency of the strftime module on the tzset module.
64290         * modules/strftime (Depends-on): Remove dependency on tzset.
64291
64292 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64293
64294         Remove the dependency of the strftime module on the tzset module.
64295         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
64296         gl_FUNC_TZSET_CLOBBER.
64297
64298 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64299
64300         Remove the dependency of the strftime module on the tzset module.
64301         * lib/strftime.c (my_strftime)
64302         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
64303         Copy the input structure, to work around some of the bug with
64304         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
64305         Solaris releases, you should also use the tzset module, but we won't
64306         require it as a dependency any more since we don't want LGPLed code
64307         to depend on GPLed code.
64308
64309 2005-07-02  Jim Meyering  <jim@meyering.net>
64310
64311         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
64312         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
64313         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
64314         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
64315
64316 2005-07-02  Jim Meyering  <jim@meyering.net>
64317
64318         * lib/backupfile.c (backup_args): Change a `0' to NULL.
64319
64320 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64321
64322         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
64323         declares only 'struct timespec;' (!).
64324
64325 2005-07-01  Jim Meyering  <jim@meyering.net>
64326
64327         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
64328         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
64329         * lib/save-cwd.c, tempname.c:
64330         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64331         and don't include <sys/file.h>).
64332
64333 2005-06-29  Jim Meyering  <jim@meyering.net>
64334
64335         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
64336         type name.  Use the variable name instead.
64337         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
64338         Likewise.
64339
64340 2005-06-28  Simon Josefsson  <jas@extundo.com>
64341
64342         * modules/check-version (Files): Add check-version.m4.
64343
64344 2005-06-28  Simon Josefsson  <jas@extundo.com>
64345
64346         * m4/check-version.m4: New file, suggested by Jim Meyering
64347         <jim@meyering.net>.
64348
64349 2005-06-28  Simon Josefsson  <jas@extundo.com>
64350
64351         * lib/check-version.h, lib/check-version.c: New files.
64352
64353 2005-06-28  Simon Josefsson  <jas@extundo.com>
64354
64355         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
64356         collision with global variable.  Better indentation.  Don't
64357         increment buffer pointer beyond buffer end.  Based on comments
64358         from Paul Eggert <eggert@cs.ucla.edu>.
64359
64360         * lib/base64.h: Indent.
64361
64362 2005-06-28  Simon Josefsson  <jas@extundo.com>
64363
64364         * doc/gnulib.texi (Library version handling): New section.
64365
64366 2005-06-28  Jim Meyering  <jim@meyering.net>
64367
64368         * check-module (find_included_lib_files): Hard-code another
64369         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
64370         but modules/fts-lgpl (correctly) does not list those files.
64371
64372         * modules/canonicalize (Files): Add lib/pathmax.h.
64373
64374 2005-06-25  Simon Josefsson  <jas@extundo.com>
64375
64376         * modules/check-version: New file.
64377
64378 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
64379
64380         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
64381         initializer of struct addrinfo, as an indication that we don't
64382         care how many members the structure has.
64383
64384 2005-06-24  Derek Price  <derek@ximbiot.com>
64385         and Bruno Haible  <bruno@clisp.org>
64386
64387         Remove stat module & update lstat.
64388         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
64389         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64390         * m4/stat.m4: Remove this file.
64391
64392 2005-06-24  Derek Price  <derek@ximbiot.com>
64393         and Bruno Haible  <bruno@clisp.org>
64394
64395         Remove stat module & update lstat.
64396         * lib/stat.c: Remove this file...
64397         (slash_aware_lstat): ...moving this content and its support...
64398         * lib/lstat.c (rpl_lstat): ...into here.
64399         * lib/lstat.h: New file.
64400
64401 2005-06-24  Derek Price  <derek@ximbiot.com>
64402         and Bruno Haible  <bruno@clisp.org>
64403
64404         Remove stat module & update lstat.
64405         * config/srclist.txt (libc sources): Remove stat.
64406
64407 2005-06-24  Derek Price  <derek@ximbiot.com>
64408         and Bruno Haible  <bruno@clisp.org>
64409
64410         Remove stat module & update lstat.
64411         * MODULES.html.sh (stat): Remove.
64412         * MODULES.html: Regenerated.
64413         * modules/lstat (Description): Correct function name.
64414         (Files): Add "lstat.h".
64415         (Depends-on): Remove stat, add xalloc, stat-macros.
64416         * modules/stat: Remove this file.
64417         (Include): Add "lstat.h", remove <sys/stat.h>.
64418
64419 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64420
64421         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
64422         (ranged_convert): Don't save conversion in a temporary struct.
64423         This causes a warning with GCC 4.0.0, and anyway in the typical
64424         case it's not worth the extra 100 bytes or so of code.
64425         (ranged_convert, __mktime_internal): When calling a function via a
64426         pointer P, use P () rather than (*P) (), as we now assume C89 or
64427         better.
64428
64429 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64430
64431         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
64432         "who -r" failed to give output.  Problem reported by Tim Waugh.
64433
64434         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
64435         (xcalloc): Use it to avoid needless tests.
64436         Problem reported by Jim Meyering.
64437
64438 2005-06-20  Derek Price  <derek@ximbiot.com>
64439
64440         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
64441         unnecessary for Autoconfs > 2.59c.
64442
64443 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64444
64445         * lib/argp.h (__option_is_short): Check upper limit of
64446         __key. Isprint() requires its argument to have the value
64447         of an unsigned char or EOF.
64448
64449 2005-06-16  Jim Meyering  <jim@meyering.net>
64450
64451         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
64452         when either N or S is zero.
64453
64454 2005-06-16  Derek Price  <derek@ximbiot.com>
64455
64456         * m4/bison.m4: Declare YACC & YFLAGS precious.
64457
64458 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
64459
64460         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
64461         multibyte string or pattern, fall back on unibyte matching.
64462         Problem reported by James Youngman.
64463
64464 2005-06-08  Bruno Haible  <bruno@clisp.org>
64465
64466         * modules/csharpcomp: New file.
64467         * MODULES.html.sh (C#): Add csharpcomp.
64468
64469 2005-06-08  Bruno Haible  <bruno@clisp.org>
64470
64471         * m4/csharpcomp.m4: New file, from GNU gettext.
64472
64473 2005-06-08  Bruno Haible  <bruno@clisp.org>
64474
64475         * lib/csharpcomp.h: New file, from GNU gettext.
64476         * lib/csharpcomp.c: New file, from GNU gettext.
64477         * lib/csharpcomp.sh.in: New file, from GNU gettext.
64478
64479 2005-06-08  Bruno Haible  <bruno@clisp.org>
64480
64481         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
64482         warning on mingw.
64483
64484 2005-06-07  Derek Price  <derek@ximbiot.com>
64485
64486         Sync from CVS.
64487         * lib/glob_.h: Indent nested #ifdef.
64488
64489 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64490
64491         Sync from coreutils.
64492         Use "file name" when talking about file names, instead of "filename"
64493         or "path", as per the GNU coding standards.
64494         * lib/mkdir-p.c: Renamed from makepath.c.
64495         (make_dir_parents): Renamed from make_path.  All callers changed.
64496         * lib/mkdir-p.h: Likewise.  All includers changed.
64497         * lib/filenamecat.c: Renamed from path-concat.c.
64498         (file_name_concat): Renamed from path_concat.  All callers changed.
64499         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
64500         * lib/filenamecat.h: Likewise.  All includers changed.
64501         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
64502         in comments or local variable names.
64503         * lib/basename.c: Likewise.
64504         * lib/canonicalize.c, canonicalize.h: Likewise.
64505         * lib/dirname.c, dirname.h: Likewise.
64506         * lib/euidaccess.c: Likewise.
64507         * lib/exclude.c: Likewise
64508         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
64509         * lib/fsusage.c, fsuage.h: Likewise.
64510         * lib/fts.c, fts_.h: Likewise.
64511         * lib/getcwd.c: Likewise.
64512         * lib/getloadavg.c: Likewise.
64513         * lib/mkstemp.c: Likewise.
64514         * lib/mountlist.c, mountlist.h: Likewise.
64515         * lib/openat.c, openat.h: Likewise.
64516         * lib/readlink-stub.c: Likewise.
64517         * lib/readutmp.c, readutmp.h: Likewise.
64518         * lib/rename.c: Likewise.
64519         * lib/rmdir.c: Likewise.
64520         * lib/same.c: Likewise.
64521         * lib/savedir.c: Likewise.
64522         * lib/stripslash.c: Likewise.
64523         * lib/tempname.c: Likewise.
64524         * lib/xreadlink.c: Likewise.
64525         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
64526         All uses changed.
64527         * lib/exclude.h: Likewise.
64528
64529         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
64530         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64531         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
64532         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64533         * lib/pathmax.h: Include <limits.h> unconditionally, since other
64534         files have been getting away with it for years (MORE/BSD 4.3
64535         is extinct now).
64536         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
64537         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64538
64539         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
64540         Define to 256, not 255, as per modern POSIX.
64541
64542 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64543
64544         Sync from coreutils.
64545         Use "file name" when talking about file names, instead of "filename"
64546         or "path", as per the GNU coding standards.
64547         * MODULES.html.sh: mkdir-p renamed from makepath.
64548         filenamecat renamed from path-concat.
64549         * modules/filenamecat: Renamed from modules/path-concat.
64550         (Files): filenamecat.h and filenamecat.c renamed from
64551         path-concat.h and path-concat.c.
64552         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
64553         (Include): filenamecat.h, not path-concat.h.
64554         * modules/mkdir-p: Renamed from modules/makepath.
64555         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
64556         makepath.c.
64557         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
64558         (Include): mkdir-p.h, not makepath.h.
64559
64560 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64561
64562         Sync from coreutils.
64563         * m4/mkdir-p.m4: Renamed from makepath.m4.
64564         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
64565         Rename files from makepath.c to mkdir-p.c, and from
64566         makepath.h to mkdir-p.h.
64567         * m4/filenamecat.m4: Renamed from path-concat.m4.
64568         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
64569         Rename files from path-concat.c to filenamecat.c,
64570         and from path-concat.h to filenamecat.h.
64571         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
64572         "file name" in local variables or comments.
64573         * m4/rename.m4: Likewise.
64574
64575 2005-06-01  Bruno Haible  <bruno@clisp.org>
64576
64577         * modules/csharpexec: New file.
64578         * MODULES.html.sh (C#): New section.
64579
64580 2005-06-01  Bruno Haible  <bruno@clisp.org>
64581
64582         * m4/csharp.m4: New file, from GNU gettext.
64583         * m4/csharpexec.m4: New file, from GNU gettext.
64584
64585 2005-06-01  Bruno Haible  <bruno@clisp.org>
64586
64587         * lib/csharpexec.h: New file, from GNU gettext.
64588         * lib/csharpexec.c: New file, from GNU gettext.
64589         * lib/csharpexec.sh.in: New file, from GNU gettext.
64590
64591 2005-05-31  Derek Price  <derek@ximbiot.com>
64592             Paul Eggert  <eggert@cs.ucla.edu>
64593
64594         Sync from cvs.
64595         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64596
64597 2005-05-31  Derek Price  <derek@ximbiot.com>
64598             Paul Eggert  <eggert@cs.ucla.edu>
64599
64600         Sync from cvs.
64601         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64602
64603 2005-05-29  Derek Price  <derek@ximbiot.com>
64604
64605         * config/srclist.txt (glob_.h, glob.c): Add these files.
64606
64607 2005-05-29  Derek Price  <derek@ximbiot.com>
64608
64609         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
64610         * modules/glob: New file.
64611         * modules/getlogin_r: Add link to POSIX spec in description.
64612
64613 2005-05-29  Derek Price  <derek@ximbiot.com>
64614             Paul Eggert  <eggert@cs.ucla.edu>
64615
64616         * m4/glob.m4: New file.
64617
64618 2005-05-29  Derek Price  <derek@ximbiot.com>
64619             Paul Eggert  <eggert@cs.ucla.edu>
64620
64621         * lib/glob_.h, lib/glob.c: New files.
64622
64623 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64624
64625         * modules/fts (Files): Remove m4/inttypes-pri.m4.
64626         * modules/fts-lgpl (Depends-on): Remove gettext.
64627
64628 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64629
64630         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
64631         and don't require gt_INTTYPES_PRI.
64632
64633 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64634
64635         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
64636
64637         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
64638         the configuration hassle isn't worth it.
64639         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
64640         (LONGEST_MODIFIER, PRIuMAX): Remove.
64641
64642 2005-05-27  Bruno Haible  <bruno@clisp.org>
64643
64644         * lib/getlogin_r.h: Remove second include of <stddef.h>.
64645
64646 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
64647
64648         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
64649         _POSIX_PTHREAD_SEMANTICS for Solaris.
64650
64651 2005-05-25  Derek Price  <derek@ximbiot.com>
64652
64653         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
64654
64655 2005-05-25  Derek Price  <derek@ximbiot.com>
64656             Paul Eggert  <eggert@cs.ucla.edu>
64657
64658         * modules/getlogin_r, m4/getlogin_r.m4: New files.
64659         * lib/getlogin_r.c, getlogin_r.h: New files.
64660
64661 2005-05-25  Bruno Haible  <bruno@clisp.org>
64662             Derek Price  <derek@ximbiot.com>
64663
64664         * lib/getlogin_r.h: Simplify API documentation.
64665
64666 2005-05-23  Derek Price  <derek@ximbiot.com>
64667
64668         * modules/minmax (Files): Add m4/minmax.m4.
64669         (configure.ac): Add gl_MINMAX.
64670
64671 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64672
64673         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
64674         so that unistd-safer.h (GPL'ed code) need not be included.
64675
64676 2005-05-22  Bruno Haible  <bruno@clisp.org>
64677
64678         * m4/minmax.m4: New file.
64679         Based on a patch by Derek Price <derek@ximbiot.com>.
64680
64681 2005-05-22  Bruno Haible  <bruno@clisp.org>
64682
64683         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
64684         (INT64_MIN): Fix definition.
64685         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
64686
64687         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
64688         NEED_SIGNED_INT_TYPES.
64689
64690         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
64691         HAVE_SYSTEM_INTTYPES.
64692
64693 2005-05-22  Bruno Haible  <bruno@clisp.org>
64694
64695         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
64696         Also include <sys/param.h> if it defines MIN, MAX.
64697         Based on a patch by Derek Price <derek@ximbiot.com>.
64698
64699 2005-05-21  Jim Meyering  <jim@meyering.net>
64700
64701         * modules/fts (Files): Add m4/inttypes-pri.m4.
64702         (Depends-on): Add lstat and remove gettext.  Alphabetize.
64703
64704 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64705
64706         New fts module.
64707         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
64708         (setup_dir, free_dir): New functions.
64709         (enter_dir, leave_dir): Define trivial
64710         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
64711         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
64712         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
64713         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
64714         Move to fts-cycle.c.
64715         (fts_open): Use setup_dir.
64716         (fts_close): Use free_dir.
64717         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
64718         This adds a label and some gotos, but the alternatives were messier.
64719         Check for memory allocation failure when entering a dir.
64720         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
64721         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
64722         (FTS): New member fts_cycle, that is a union that contains the
64723         old active_dir_ht and cycle_state.  All uses changed to mention
64724         fts_cycle.ht and fts_cycle.state.
64725         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
64726         fts.c, with the following changes:
64727         (setup_dir, free_dir): New functions.
64728         (enter_dir): Now returns bool.  Return true if successful, false
64729         if memory exhausted.  All callers changed.
64730         Do not bother partly cleaning up on
64731         memory allocation failure; that is free_dir's job.
64732         However, free ad if hash_insert fails, to avoid memory leak.
64733         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
64734         fts->fts_options to see which union member to use.
64735
64736 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64737
64738         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
64739         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
64740
64741 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64742
64743         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
64744
64745 2005-05-20  Jim Meyering  <jim@meyering.net>
64746
64747         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
64748         Now a macro, to pacify GCC.
64749
64750 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64751
64752         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
64753         of -1.
64754
64755 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64756
64757         * lib/chown.c (rpl_chown): Return -1 on failure.
64758
64759 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64760
64761         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
64762         Don't check for stddef.h.
64763         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
64764         don't use its results.
64765         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
64766         since we include them unconditionally.  Don't require
64767         AM_STDBOOL_H, since stdbool is a prerequisite.
64768         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
64769         since we assume C89 or better.
64770         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
64771         as we don't use their results.
64772         Don't check for fchdir, memmove, memset, strrchr, as we use
64773         them unconditionally.
64774         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
64775         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
64776
64777 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64778
64779         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
64780         Include <stddef.h> unconditionally, since we assume C89 now.
64781         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
64782         * lib/fts.c: Include fts_.h first, to check interface.
64783         Do not include intprops.h; no longer needed.
64784         Include cycle-check.h and hash.h, since fts_.h no longer does.
64785         Remove unnecessary casts of closedir to void.
64786         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
64787         decide whether to decrement nlinks.
64788         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
64789         (FTS): Use struct hash_table * instead of Hash_table, so that
64790         we no longer need to include hash.h here.
64791
64792 2005-05-18  Jim Meyering  <jim@meyering.net>
64793
64794         * modules/dirfd (License): Change to LGPL.  Most of the code
64795         is already in the public domain.
64796
64797 2005-05-18  Jim Meyering  <jim@meyering.net>
64798
64799         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
64800         Reported by Yoann Vandoorselaere.
64801
64802 2005-05-17  Jim Meyering  <jim@meyering.net>
64803
64804         * m4/fts.m4: New file, from coreutils.
64805
64806 2005-05-17  Jim Meyering  <jim@meyering.net>
64807
64808         * lib/fts.c, lib/fts_.h: New files, from coreutils.
64809
64810 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64811
64812         Sync from coreutils.
64813         * m4/unlinkdir.m4: New file.
64814
64815 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64816
64817         Sync from coreutils.
64818         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
64819         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
64820         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
64821         White space changes only.
64822         * lib/makepath.c (make_path): Port to hosts where leading "//" is
64823         special.
64824         * lib/yesno.c: Include getline.h, not ctype.h.
64825         (yesno): Don't remove leading white space; POSIX doesn't allow it.
64826         Use getline to remove arbitrary restriction on response length.
64827
64828 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64829
64830         * config/srclist-update: Spell out "Street" in FSF postal
64831         mail address; this is the style the FSF seems to prefer.
64832
64833         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
64834         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
64835         this updates FSF postal mail address.
64836
64837         Sync from coreutils.
64838         * modules/unlinkdir: New file.
64839         * modules/yesno (Depends-on): Add getline.
64840         * MODULES.html.sh (File system functions): Add unlinkdir.
64841
64842 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64843
64844         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
64845         lib/strsep.h:
64846         Change the initial comment to refer to GPL, not LGPL.
64847         gnulib-tool will change it to LGPL as needed.
64848
64849         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
64850         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
64851         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
64852         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
64853         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
64854         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
64855         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
64856         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
64857         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
64858         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
64859         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
64860         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
64861         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
64862         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
64863         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
64864         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
64865         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
64866         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
64867         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
64868         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
64869         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
64870         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
64871         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
64872         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
64873         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
64874         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
64875         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
64876         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
64877         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
64878         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
64879         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
64880         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
64881         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
64882         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
64883         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
64884         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
64885         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
64886         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
64887         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
64888         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
64889         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
64890         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
64891         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
64892         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
64893         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
64894         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
64895         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
64896         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
64897         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
64898         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
64899         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64900         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
64901         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
64902         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
64903         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
64904         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
64905         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
64906         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
64907         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
64908         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
64909         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
64910         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
64911         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
64912         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
64913         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
64914         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
64915         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
64916         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
64917         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
64918         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
64919         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
64920         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
64921         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
64922         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
64923         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
64924         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
64925         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
64926         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
64927         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
64928         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
64929         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
64930         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
64931         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
64932         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
64933         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
64934         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
64935         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
64936         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
64937         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
64938         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
64939         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
64940         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
64941         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
64942         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
64943         lib/yesno.c, lib/yesno.h:
64944         Update FSF postal mail address.
64945
64946 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64947
64948         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
64949         tests/test-memmem.c, tests/test-stpncpy.c:
64950         Update FSF postal mail address.
64951
64952 2005-05-13  Bruno Haible  <bruno@clisp.org>
64953
64954         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
64955         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
64956         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
64957         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
64958         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
64959         Add support for 64-bit integers in the MSVC compiler.
64960
64961 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64962
64963         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
64964
64965 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
64966
64967         * gnulib-tool (func_import): Sort and uniquify recommended includes.
64968
64969 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
64970
64971         * doc/getdate.texi (General date syntax): Don't say that date
64972         date --iso-8601=ns generates acceptable dates; it doesn't yet.
64973         Problem reported by Nic Ferrier.
64974
64975 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64976
64977         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
64978         specified in ai_socktype. Fix invalid ai_protocol
64979         check. ai_protocol is usually set to 0 or depending on
64980         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
64981         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
64982         ai_socktype / ai_protocol in the returned addrinfo structure.
64983
64984 2005-05-10  Simon Josefsson  <jas@extundo.com>
64985
64986         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
64987         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64988
64989 2005-05-10  Karl Berry  <karl@gnu.org>
64990
64991         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
64992         (from http://www.gnu.org/licenses).
64993         * doc/COPYING.LIB: also rename to COPYING.LESSER.
64994         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
64995         fdl.texi suffices.
64996
64997 2005-05-10  Karl Berry  <karl@gnu.org>
64998
64999         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
65000         (COPYING.DOC): remove.
65001
65002         * config/srclist-update: new FSF address.
65003
65004 2005-05-10  Derek Price  <derek@ximbiot.com>
65005
65006         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
65007         possible.
65008
65009 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65010             Bruno Haible  <bruno@clisp.org>
65011
65012         * modules/inet_ntop: New file.
65013         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65014         inet_ntop.
65015
65016 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65017             Bruno Haible  <bruno@clisp.org>
65018
65019         * m4/inet_ntop.m4: New file.
65020
65021 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65022             Bruno Haible  <bruno@clisp.org>
65023
65024         * lib/inet_ntop.h: New file.
65025         * lib/inet_ntop.c: New file, from glibc with modifications.
65026
65027 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
65028
65029         * modules/time_r (License): Change to LGPL.
65030         * modules/extensions (License): Change to LGPL.  Actually,
65031         the license is more permissive than that, but currently gnulib-tool
65032         doesn't know how to handle more-permissive licenses.
65033
65034         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
65035         Problem reported by Dave Love.
65036
65037 2005-05-08  Jim Meyering  <jim@meyering.net>
65038
65039         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
65040         blank.
65041
65042 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65043
65044         * modules/argmatch (Depends-on): Add stdbool.
65045         * modules/backupfile (Depends-on): Likewise.
65046         * modules/chdir-long (Depends-on): Likewise.
65047         * modules/closeout (Depends-on): Likewise.
65048         * modules/cycle-check (Depends-on): Likewise.
65049         * modules/dirname (Depends-on): Likewise.
65050         * modules/fnmatch (Depends-on): Likewise.
65051         * modules/fsusage (Depends-on): Likewise.
65052         * modules/fwriteerror (Depends-on): Likewise.
65053         * modules/getcwd (Depends-on): Likewise.
65054         * modules/getloadavg (Depends-on): Likewise.
65055         * modules/hard-locale (Depends-on): Likewise.
65056         * modules/makepath (Depends-on): Likewise.
65057         * modules/mountlist (Depends-on): Likewise.
65058         * modules/nanosleep (Depends-on): Likewise.
65059         * modules/posixtm (Depends-on): Likewise.
65060         * modules/quotearg (Depends-on): Likewise.
65061         * modules/readtokens (Depends-on): Likewise.
65062         * modules/readtokens0 (Depends-on): Likewise.
65063         * modules/readutmp (Depends-on): Likewise.
65064         * modules/save-cwd (Depends-on): Likewise.
65065         * modules/strftime (Depends-on): Likewise.
65066         * modules/userspec (Depends-on): Likewise.
65067         * modules/utimecmp (Depends-on): Likewise.
65068         * modules/xgetcwd (Depends-on): Likewise.
65069         * modules/xnanosleep (Depends-on): Likewise.
65070         * modules/xstrtod (Depends-on): Likewise.
65071         * modules/yesno (Depends-on): Likewise.
65072
65073 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65074
65075         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
65076         needless checks.
65077
65078 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65079
65080         Merge from coreutils.  Among other things,
65081         add bulletproofing for cases where stdin, stdout, or stderr are closed.
65082         * lib/fd-safer.c: New file.
65083         * lib/fcntl-safer.h, open-safer.c: Remove.
65084         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
65085         * lib/dup-safer.c: Include unistd-safer.h first.
65086         Don't include errno.h.
65087         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
65088         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
65089         * lib/file-type.c: Rely on file-type.h change.
65090         * lib/getloadavg.c: Include unistd-safer.h.
65091         (getloadavg): Use safer open.
65092         * lib/getusershell.c: Include "stdio-safer.h".
65093         (getusershell): Use safer fopen.
65094         * lib/long-options.c (long_options): Use NULL rather than 0.
65095         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
65096         'free'.
65097         * lib/modechange.c: Likewise.
65098         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
65099         (MODE_DONE): New constant.
65100         (struct mode_change): Remove 'next' member.
65101         (make_node_op_equals): New function; like the old one of the
65102         same name, except it allocates an array.
65103         (mode_compile, mode_create_from_ref): Use it.
65104         (mode_compile): Allocate result as an array, not a linked list.
65105         Parse octal string ourself, so that we catch mistakes like "+0".
65106         (mode_adjust): Arg is an array, not a linked list.
65107         * lib/modechange.c: Include stat-macros.h, xalloc.h.
65108         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
65109         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
65110         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
65111         Remove.  This is now stat-macros.h's job.
65112         (talloc): Remove.  All callers replaced by xalloc, so that
65113         our invokers don't have to worry about reporting memory failures.
65114         (make_node_op_equals): Remove.
65115         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65116         New constants.
65117         (struct mode_change): Moved here from modechange.h.
65118         (mode_append_entry): Remove.
65119         (mode_compile): Remove MASKED_OPS arg, since it encouraged
65120         apps to have incorrect behavior.  Use simpler algorithm for head
65121         and tail.  Don't futz with umask; that's now the job of mode_adjust.
65122         Detect more invalid usages rather than having somewhat-random behavior.
65123         Don't insert an "a=" action, as that leads to incorrect behavior.
65124         (mode_compile, mode_create_from_ref): Return NULL on error instead
65125         of an enum, since now there's only one way to have an error.  All
65126         callers changed.
65127         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
65128         at the correct time.  Simplify calculation of "+u" and its ilk.
65129         Don't mishandle "+X".
65130         (mode_free): Remove "register" and localize decls.
65131         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65132         (struct mode_change): Move to modechange.c; callers don't
65133         need to see this stuff.
65134         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
65135         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
65136         (mode_change, mode_adjust): Reflect the new signatures noted above.
65137         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
65138         that might redefine system include files.
65139         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
65140         (my_usleep): Use NULL rather than (void *) 0.
65141         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
65142         Use siginterrupt to specify that system calls should be interrupted.
65143         (rpl_nanosleep): Move initialization of suspended closer to call of
65144         my_usleep.
65145         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
65146         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
65147         (desirable_utmp_entry): New function.
65148         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
65149         using x2nrealloc, to simplify logic.
65150         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
65151         size calculation.  Do not assume utmp file is a regular file.
65152         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
65153         (READ_UTMP_CHECK_PIDS): New constant.
65154         * lib/save-cwd.c: Include unistd-safer.h.
65155         (save_cwd): Use fd_safer.
65156         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
65157         [!_LIBC] Include "stat-macros.h" instead.
65158         * lib/unistd-safer.h (fd_safer): New decl.
65159
65160 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65161
65162         * modules/getloadavg (Depends-on): Add unistd-safer.
65163         * modules/getusershell (Depends-on): Add stdio-safer.
65164         * modules/lstat (Depends-on): Remove xalloc.
65165         * modules/mkstemp (Depends-on): Add stat-macros.
65166         * modules/modechange (Depends-on): Remove xstrtol.
65167         Add stat-macros, xalloc.
65168         * modules/save-cwd (Depends-on): Add unistd-safer.
65169         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
65170         * modules/unistd-safer (Files): Add lib/fd-safer.c
65171         (Makefile.am): Remove lib_SOURCES.
65172
65173         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
65174         Remove fcntl-safer; unistd-safer supersedes it.
65175
65176 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65177
65178         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
65179         AC_HEADER_STAT.
65180         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
65181         (gl_PREREQ_CHOWN): Remove.
65182         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
65183         it.  Don't require AC_HEADER_STAT.
65184         (gl_PREREQ_LSTAT): Remove.
65185         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
65186         Don't require AC_HEADER_STAT.
65187         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
65188         (gl_PREREQ_RMDIR): Remove.
65189         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
65190         mention stat-macros.h or AC_HEADER_STAT, since we'll make
65191         the stat-macros module a prerequisite.
65192         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
65193         * m4/filemode.m4 (gl_FILEMODE): Likewise.
65194         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
65195         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
65196         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
65197         variable names.
65198         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
65199         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
65200         variable prefixes.
65201         * m4/fcntl-safer.m4: Remove.
65202         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
65203         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
65204         Invoke gl_PREREQ_FD_SAFER.
65205         (gl_PREREQ_FD_SAFER): New macro.
65206         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
65207         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
65208         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
65209         Remove duplicate call to AC_LIBOBJ(readutmp).
65210         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
65211
65212         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
65213         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
65214
65215 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65216
65217         * MODULES.html.sh (Misc): Add byteswap.
65218
65219 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65220
65221         * modules/getcwd (Depends-on): Add extensions.
65222         * modules/openat (Depends-on): Likewise.
65223
65224 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65225
65226         * modules/byteswap: New file.
65227
65228 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65229
65230         * m4/byteswap.m4: New file.
65231
65232 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65233
65234         * lib/byteswap_.h: New file.
65235
65236 2005-04-25  Karl Berry  <karl@gnu.org>
65237
65238         * m4/gettext.m4: Update from GNU gettext 0.14.4.
65239
65240 2005-04-25  Albert Chin  <china@thewrittenword.com>
65241
65242         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
65243         Toolkit C bug.
65244
65245 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
65246
65247         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
65248         (func_ln_if_changed) Remove forcibly for no error message
65249         in case file does not exist.
65250
65251 2005-04-19  Simon Josefsson  <jas@extundo.com>
65252
65253         * gnulib-tool (Options): Make --symlink mean --symbolic.
65254
65255 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
65256
65257         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
65258
65259 2005-04-16  Simon Josefsson  <jas@extundo.com>
65260
65261         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
65262
65263 2005-04-15  Simon Josefsson  <jas@extundo.com>
65264
65265         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
65266
65267 2005-04-15  Simon Josefsson  <jas@extundo.com>
65268
65269         * gnulib-tool: Rename --symlink to --symbolic.
65270
65271 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
65272
65273         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
65274         symbolic links to files instead of copying/moving.  Add --aux-dir,
65275         specifying directory relative --dir where auxiliary build tools
65276         are placed.
65277
65278 2005-04-14  Bruno Haible  <bruno@clisp.org>
65279
65280         * modules/allocsa (License): Change to LGPL.
65281         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
65282
65283 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65284
65285         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
65286         that "UTC +1 second" continues to work.  Problem reported
65287         by Dmitry V. Levin.
65288         (relunit_snumber): New rule.
65289         (relunit): Use it.
65290
65291 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65292
65293         * lib/getdate.y (universal_time_zone_table): New constant.
65294         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
65295         universal_time_zone_table.
65296         (lookup_zone): Prefer universal_time_zone_table to
65297         local_time_zone_table, so that "GMT" time stamps are allowed in
65298         London during the summer.  Problem reported by Ian Abbott.
65299
65300 2005-04-12  Jim Meyering  <jim@meyering.net>
65301
65302         * lib/human.c (humblock): Set *options even when returning due to
65303         xstrtoumax conversion failure.  Thanks to a used-uninitialized
65304         warning from gcc-4.
65305
65306 2005-04-09  Jim Meyering  <jim@meyering.net>
65307
65308         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
65309         -Wuninitialized: initialize tm0.tm_year.
65310
65311 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65312
65313         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
65314         count, since there's no maximum.  All uses changed.
65315         Add member dsts_seen.
65316         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
65317         not being INT_MAX.
65318         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
65319         Use pc_rels_seen to decide whther a date is absolute.
65320
65321         * lib/getdate.y (number): Don't overwrite year.
65322         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
65323         check.
65324
65325 2005-04-02  Simon Josefsson  <jas@extundo.com>
65326
65327         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
65328         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
65329
65330 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
65331
65332         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
65333         where no absolute path name can be longer than PATH_MAX.
65334
65335 2005-03-27  Jim Meyering  <jim@meyering.net>
65336
65337         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
65338
65339 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
65340
65341         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
65342         "one's complement" -> "ones' complement" in comment, as per Knuth.
65343         "value of type" -> "type or expression" in comment.
65344         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
65345
65346 2005-03-26  Jim Meyering  <jim@meyering.net>
65347
65348         Comment nits.
65349         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
65350         Correct typos: s/or/of/.
65351
65352 2005-03-26  Jim Meyering  <jim@meyering.net>
65353
65354         * modules/check-include-files: Move to ../ and rename to...
65355         * check-module: ...this.
65356
65357 2005-03-25  Jim Meyering  <jim@meyering.net>
65358
65359         * modules/xvasprintf (Files): Add xalloc.h.
65360
65361 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
65362
65363         * modules/gettext (Files): config/config.rpath ->
65364         build-aux/config.rpath
65365         * modules/iconv (Files): Likewise.
65366         Problem reported by Oskar Liljeblad.
65367
65368 2005-03-23  Jim Meyering  <jim@meyering.net>
65369
65370         * modules/check-include-files: New script to check for
65371         missing dependencies, multiple includes, etc.
65372
65373         * modules/c-strtold (Depends-on): Add xalloc.
65374         * modules/c-strtod (Depends-on): Add xalloc.
65375         * modules/hash (Depends-on): Add xalloc.
65376         (Files): Remove lib/xalloc.h.
65377
65378         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
65379         * modules/userspec (Files): Add lib/inttostr.h.
65380
65381 2005-03-23  Jim Meyering  <jim@meyering.net>
65382
65383         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
65384
65385 2005-03-22  Jim Meyering  <jim@meyering.net>
65386
65387         * modules/stat-macros: New module.
65388         * modules/canonicalize, modules/euidaccess, modules/file-type,
65389         * modules/filemode, modules/lchown, modules/makepath,
65390         * modules/rmdir, modules/stat: Depend on new stat-macros module
65391         rather than listing lib/stat-macros.h manually.
65392         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
65393
65394 2005-03-22  Jim Meyering  <jim@meyering.net>
65395
65396         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
65397
65398 2005-03-22  Bruno Haible  <bruno@clisp.org>
65399
65400         * config/srclist.txt: Replace target directory 'config' with
65401         'build-aux'.
65402         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
65403         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
65404         ../build-aux/.
65405
65406 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
65407
65408         * modules/chdir-long (Depends-on): Add mempcpy.
65409
65410         * modules/acl, modules/backupfile, modules/c-strtod,
65411         modules/c-strtold, modules/canon-host, modules/canonicalize,
65412         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
65413         modules/exclude, modules/exitfail, modules/file-type,
65414         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
65415         modules/getdate, modules/getline, modules/getpagesize,
65416         modules/getpass, modules/getugroups, modules/group-member,
65417         modules/hard-locale, modules/hash, modules/human, modules/idcache,
65418         modules/inttostr, modules/long-options, modules/makepath,
65419         modules/md5, modules/memcasecmp, modules/memcoll,
65420         modules/modechange, modules/mountlist, modules/path-concat,
65421         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
65422         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
65423         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
65424         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
65425         modules/strftime, modules/strndup, modules/strverscmp,
65426         modules/timespec, modules/unlocked-io, modules/userspec,
65427         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
65428         modules/yesno:
65429         Remove lib_SOURCES line from Makefile.am section, as this is now
65430         done automatically by the corresponding Autoconf macro.
65431
65432 2005-03-21  Jim Meyering  <jim@meyering.net>
65433
65434         Changes imported from coreutils.
65435
65436         * lib/cycle-check.c: Don't include xalloc.h.
65437
65438         * lib/path-concat.c: Don't include assert.h.
65439         (path_concat): Remove assertion that would have triggered
65440         for ABASE starting with more than one slash.
65441         Reported by Andreas Schwab.
65442
65443         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
65444         properly when ABASE is an absolute file name.
65445         Correct the description of this function.
65446         Include <assert.h>.
65447         Add an assertion and a test driver.
65448         This fixes a bug introduced on 2004-07-02.
65449         Andreas Schwab reported the resulting failure of cp --parents:
65450         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
65451
65452 2005-03-21  Jim Meyering  <jim@meyering.net>
65453
65454         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
65455         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
65456
65457 2005-03-21  Jim Meyering  <jim@meyering.net>
65458         and  Paul Eggert  <eggert@cs.ucla.edu>
65459
65460         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
65461         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
65462         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
65463         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
65464         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
65465         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
65466         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
65467         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
65468         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
65469         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
65470         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
65471         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
65472         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
65473         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
65474         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
65475         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
65476         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
65477         for these modules.
65478
65479 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
65480
65481         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
65482         (which shouldn't happen), generate nothing instead of returning 0
65483         immediately, so that nstrftime (NULL, ...) doesn't return 0.
65484
65485 2005-03-16  Bruno Haible  <bruno@clisp.org>
65486
65487         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
65488         HAVE_LONGLONG_64BIT.
65489
65490 2005-03-16  Bruno Haible  <bruno@clisp.org>
65491
65492         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
65493         HAVE_LONGLONG_64BIT.
65494
65495 2005-03-16  Bruno Haible  <bruno@clisp.org>
65496
65497         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
65498         HAVE_LONGLONG_64BIT.
65499
65500 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65501
65502         * lib/strftime.c (my_strftime): Prepend space to format so that we can
65503         reliably distinguish strftime failure from empty output on POSIX
65504         hosts.
65505
65506 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65507
65508         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
65509         (iconv_string): Don't guess a size-zero buffer, as that might cause
65510         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
65511         result would be 'too large', where 'too large' is (heuristically)
65512         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
65513         overflow concerns.  This will prevent some unwanted malloc failures
65514         when the inputs are very large.
65515
65516 2005-03-15  Karl Berry  <karl@gnu.org>
65517
65518         * config/srclist.txt (config.rpath): from gettext.
65519         * config/config.rpath: update.
65520
65521 2005-03-15  Bruno Haible  <bruno@clisp.org>
65522
65523         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
65524         to 'negate'.
65525
65526         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
65527         variable.
65528
65529         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
65530         results.
65531
65532 2005-03-14  Simon Josefsson  <jas@extundo.com>
65533
65534         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
65535         <fx@gnu.org>.
65536
65537 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
65538
65539         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
65540         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
65541         intprops.h.
65542         * lib/strtol.c: Likewise.
65543
65544 2005-03-14  Jim Meyering  <jim@meyering.net>
65545
65546         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
65547         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
65548         to be nonzero so that we (and caller) can detect the difference
65549         between a valid zero-length expansion and an error return, even
65550         when the underlying strftime fails before writing anything into
65551         that location.
65552
65553 2005-03-14  Bruno Haible  <bruno@clisp.org>
65554
65555         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
65556         Update from GNU gettext 0.14.3.
65557
65558 2005-03-10  Jim Meyering  <jim@meyering.net>
65559
65560         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
65561
65562 2005-03-10  Jim Meyering  <jim@meyering.net>
65563
65564         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
65565         so that this module works on systems without fchdir.
65566
65567 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
65568
65569         Factor int-properties macros into a single file, except for
65570         glibc-related files.
65571         * lib/intprops.h: New file.
65572         * lib/getloadavg.c: Include it instead of limits.h.
65573         (INT_STRLEN_BOUND): Remove.
65574         * lib/human.c: Include intprops.h.
65575         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
65576         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
65577         302/1000.
65578         * lib/inttostr.h: Include intprops.h instead of limits.h.
65579         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
65580         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
65581         for consistency with intprops.h.
65582         (time_t_is_integer, twos_complement_arithmetic): Use them.
65583         * lib/sig2str.h: Include <signal.h>, intprops.h.
65584         (INT_STRLEN_BOUND): Remove.
65585         * lib/strftime.c (TYPE_SIGNED): Remove.
65586         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
65587         * lib/strtol.c: Adjust comments to match intprops.h.
65588         * lib/userspec.c: Include intprops.h.
65589         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
65590         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
65591         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
65592         instead of rolling our own expressions.
65593         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
65594
65595         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
65596         instead of int.
65597         (my_strftime): Do not mishandle years close to INT_MAX, by doing
65598         the right thing even if adding 1900 would overflow.  Similarly
65599         for tm_mon + 1 and tm_yday + 1.
65600         Make %Y always equivalent to %C%y, and similarly for %G and %g.
65601         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
65602         (DO_SIGNED_NUMBER): New macro.
65603         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
65604
65605 2005-03-07  Bruno Haible  <bruno@clisp.org>
65606
65607         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
65608
65609 2005-03-07  Bruno Haible  <bruno@clisp.org>
65610
65611         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
65612
65613 2005-03-04  Derek R. Price  <derek@ximbiot.com>
65614
65615         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
65616         (func_import): Only replace files via --import when they have actually
65617         changed.
65618
65619 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65620
65621         * m4/mmap-anon.m4: New file.
65622         * m4/pagealign_alloc.m4: New file.
65623
65624 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65625             Bruno Haible  <bruno@clisp.org>
65626
65627         * modules/pagealign_alloc: New file.
65628         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
65629
65630 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65631             Bruno Haible  <bruno@clisp.org>
65632
65633         * lib/pagealign_alloc.h: New file.
65634         * lib/pagealign_alloc.c: New file.
65635
65636 2005-03-03  Bruno Haible  <bruno@clisp.org>
65637
65638         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
65639         Use an all-permissive copyright notice, recommended by RMS.
65640
65641 2005-03-02  Bruno Haible  <bruno@clisp.org>
65642
65643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
65644         of AIX, the replacement has to be done only after <string.h> is
65645         included, therefore not in config.h. stpncpy.h does the replacement,
65646         and stpncpy.c uses it.
65647
65648 2005-03-02  Bruno Haible  <bruno@clisp.org>
65649
65650         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
65651         stpncpy.c uses it.
65652
65653 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65654
65655         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
65656         The workaround isn't strictly needed for POSIX conformance, and
65657         it's too much of a pain to configure and maintain.  We'll ask
65658         people to fix their kernels instead.
65659         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
65660         (NANOSLEEP_BUG_WORKAROUND): Remove.
65661         (xnanosleep): Remove the workaround.
65662
65663 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65664
65665         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
65666         Reported by Derek Price.
65667         (Include): Add "timespec.h".
65668
65669         * modules/xnanosleep (Depends-on): Remove gethrxtime.
65670
65671 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65672
65673         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
65674         to detect nanosleep bug.
65675
65676 2005-03-01  Bruno Haible  <bruno@clisp.org>
65677
65678         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
65679
65680 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65681
65682         * modules/gethrxtime: New file.
65683         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
65684         (Depends-on): Add gethrxtime.
65685         (configure.ac): Add gl_XNANOSLEEP.
65686         (Makefile.am): Remove lib_SOURCES line.
65687
65688 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65689
65690         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
65691         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
65692
65693 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65694
65695         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
65696         * lib/timespec.h (gettime): Return void, since it always
65697         succeeds now.  All uses changed.
65698         * lib/gettime.c (gettime) Likewise.
65699         [HAVE_NANOTIME]: Prefer nanotime.
65700         Assume gettimeofday succeeds, as POSIX requires.
65701         Assime time () succeeds, since other code already does.
65702         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
65703         (timespec_subtract): Remove.
65704         (NANOSLEEP_BUG_WORKAROUND): New constant.
65705         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
65706         things considerably.  Use it only on GNU/Linux hosts, since the
65707         workaround shouldn't be needed elsewhere.
65708
65709 2005-02-24  Bruno Haible  <bruno@clisp.org>
65710
65711         * modules/gettext (Files): Add m4/glibc2.m4.
65712
65713 2005-02-24  Bruno Haible  <bruno@clisp.org>
65714
65715         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
65716         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
65717         * m4/progtest.m4:
65718         Update from GNU gettext 0.14.2.
65719         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
65720
65721 2005-02-24  Bruno Haible  <bruno@clisp.org>
65722
65723         * lib/localcharset.c: Update from GNU gettext 0.14.2.
65724         * lib/config.charset: Update from GNU gettext 0.14.2.
65725
65726 2005-02-24  Bruno Haible  <bruno@clisp.org>
65727
65728         * lib/gettext.h: Update from GNU gettext 0.14.2.
65729
65730 2005-02-23  Simon Josefsson  <jas@extundo.com>
65731
65732         * m4/iconvme.m4: New file.
65733
65734 2005-02-23  Jim Meyering  <jim@meyering.net>
65735
65736         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
65737         change.
65738         Thanks to Bruno Haible for catching it.
65739
65740 2005-02-22  Simon Josefsson  <jas@extundo.com>
65741
65742         * modules/iconvme: New file.
65743
65744         * MODULES.html.sh: Add iconvme.
65745
65746 2005-02-22  Simon Josefsson  <jas@extundo.com>
65747
65748         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
65749
65750 2005-02-22  Simon Josefsson  <jas@extundo.com>
65751
65752         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
65753
65754 2005-02-22  Jim Meyering  <jim@meyering.net>
65755
65756         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
65757         s/ifndef/ifdef/.
65758
65759 2005-02-20  Neil Conway  <neilc@samurai.com>
65760
65761         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
65762         returned by OSX/Darwin if the specified buffer is not large
65763         enough for the hostname.
65764
65765 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65766
65767         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
65768         pass it to _help, otherwise the latter coredumps trying to
65769         dereference state.root_argp.
65770
65771 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65772
65773         * modules/chdir-long (Depends-on): Add memrchr.
65774         * modules/memrchr (Files): Add lib/memrchr.h.
65775         (Include): "memrchr.h".
65776
65777 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65778
65779         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
65780
65781 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65782
65783         * lib/memrchr.h: New file.
65784         * lib/chdir-long.c: Include it.
65785         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
65786         Don't bother including stddef.h.
65787
65788 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65789
65790         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
65791         inclusion.
65792         Include <sys/types.h>, for dev_t.
65793         (ME_DUMMY, ME_REMOTE): Move from here....
65794         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
65795         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
65796         Dmitry V. Levin.
65797         Include mountlist.h first, to test the interface.
65798
65799 2005-01-29  Bruno Haible  <bruno@clisp.org>
65800
65801         * lib/progname.c (program_name): Initialize.
65802         Needed when linking statically on MacOS X.
65803
65804 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65805
65806         Sync from coreutils.
65807         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
65808         (Depends-on): Add c-strtod.
65809         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
65810
65811 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65812
65813         Sync from coreutils.
65814         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
65815
65816         Remove files that are specific to coreutils.
65817         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
65818
65819 2005-01-28  Bruno Haible  <bruno@clisp.org>
65820
65821         * modules/javacomp: New file.
65822         * MODULES.html.sh (Java): Add javacomp.
65823
65824 2005-01-28  Bruno Haible  <bruno@clisp.org>
65825
65826         * m4/javacomp.m4: New file, from GNU gettext.
65827
65828 2005-01-28  Bruno Haible  <bruno@clisp.org>
65829
65830         * lib/javacomp.sh.in: New file, from GNU gettext.
65831         * lib/javacomp.h: New file, from GNU gettext.
65832         * lib/javacomp.c: New file, from GNU gettext.
65833
65834 2005-01-26  Simon Josefsson  <jas@extundo.com>
65835
65836         * lib/gai_strerror.c: Use GPL in header.
65837
65838 2005-01-26  Bruno Haible  <bruno@clisp.org>
65839
65840         * modules/javaexec: New file.
65841         * MODULES.html.sh (Java): Add javaexec.
65842
65843 2005-01-26  Bruno Haible  <bruno@clisp.org>
65844
65845         * m4/javaexec.m4: New file, from GNU gettext.
65846
65847 2005-01-26  Bruno Haible  <bruno@clisp.org>
65848
65849         * lib/javaexec.sh.in: New file, from GNU gettext.
65850         * lib/javaexec.h: New file, from GNU gettext.
65851         * lib/javaexec.c: New file, from GNU gettext.
65852
65853 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65854
65855         * modules/lchown (Depends-on): Remove lchown.h
65856
65857 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65858
65859         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
65860         must be defined if the header file was not found, in order
65861         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
65862
65863 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65864
65865         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
65866         initializers for struct pentry_state.
65867         (__argp_error): Check return value of __asprintf
65868         (__argp_failure): Translate error message
65869
65870         * lib/argp-parse.c: Removed braces around the expansion of N_()
65871
65872 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65873
65874         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
65875         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
65876         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
65877         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
65878         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
65879         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
65880         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
65881         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
65882         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
65883         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
65884         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
65885         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
65886         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
65887         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
65888         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
65889         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
65890         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
65891         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
65892         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
65893         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
65894         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
65895         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
65896         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
65897         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
65898         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
65899         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
65900         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
65901         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
65902         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
65903         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
65904         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
65905         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
65906         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
65907         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
65908         xstrtol.m4, xstrtoumax.m4, yesno.m4:
65909         Use an all-permissive copyright notice, recommended by RMS.
65910
65911 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
65912
65913         * modules/chdir-long (Depends-on): Remove mempcpy.
65914
65915 2005-01-21  Jim Meyering  <jim@meyering.net>
65916
65917         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
65918         same value as for Solaris 9.
65919
65920         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
65921         component length.  This included changing the parameter to be
65922         of type `char *' rather than `char const *'.
65923         * lib/chdir-long.h (chdir_long): Update prototype.
65924
65925         * lib/openat.c (fdopendir, fstatat): New functions.
65926         * lib/openat.h: Include headers required for use of DIR and struct
65927         stat.
65928         [AT_SYMLINK_NOFOLLOW]: Define.
65929         (fdopendir, fstatat): Add prototypes.
65930
65931 2005-01-21  Bruno Haible  <bruno@clisp.org>
65932
65933         * modules/classpath: New file.
65934         * MODULES.html.sh (Java): Add classpath.
65935
65936 2005-01-21  Bruno Haible  <bruno@clisp.org>
65937
65938         * lib/classpath.h: New file, from GNU gettext.
65939         * lib/classpath.c: New file, from GNU gettext.
65940
65941 2005-01-20  Simon Josefsson  <jas@extundo.com>
65942
65943         * modules/version-etc-fsf: New file.
65944
65945 2005-01-20  Simon Josefsson  <jas@extundo.com>
65946
65947         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
65948         * lib/version-etc.c: Remove version_etc_copyright.
65949         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
65950         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
65951
65952 2005-01-20  Simon Josefsson  <jas@extundo.com>
65953
65954         * lib/base64.h (isbase64): Add.
65955
65956         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
65957         using a unsigned prototype, don't inline.
65958         (base64_decode): Use it.
65959
65960 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65961
65962         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
65963         it.
65964
65965 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65966
65967         * lib/save-cwd.c (save_cwd): Remove code to support the case
65968         where fchdir is missing or flaky.
65969
65970 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65971
65972         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
65973
65974 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65975
65976         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
65977         AC_LIBSOURCES now does this.
65978         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
65979         with new ullong_max module.
65980
65981 2005-01-19  Bruno Haible  <bruno@clisp.org>
65982
65983         * modules/sh-quote: New file.
65984         * MODULES.html.sh (Executing programs): Add sh-quote.
65985
65986 2005-01-19  Bruno Haible  <bruno@clisp.org>
65987
65988         * lib/sh-quote.h: New file, from GNU gettext.
65989         * lib/sh-quote.c: New file, from GNU gettext.
65990
65991 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65992
65993         Merge from coreutils.
65994         * m4/ullong_max.m4: New file.
65995         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
65996         (gl_MACROS): Assume localeconv exists.
65997
65998 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65999
66000         Merge changes from coreutils, as described below in several
66001         changelogs dated today.
66002
66003         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
66004         (O_DIRECTORY): Remove; not needed here, since "." must be
66005         a directory.  All uses removed.
66006         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
66007         universal on Suns, and we also need to test for IRIX.
66008         Revamp code to use 'if' rather than '#if'.
66009         Avoid unnecessary comparison of cwd->desc to 0.
66010
66011         * lib/utimens.c (futimens): Robustify the previous patch, by checking
66012         for known valid error numbers rather than observed invalid ones.
66013
66014 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66015
66016         * modules/ullong_max: New file.
66017
66018         * modules/chdir-long, modules/openat: New files.
66019         * modules/save-cwd (Depends-on): Depend on chdir-long.
66020         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
66021
66022 2005-01-18  Jim Meyering  <jim@meyering.net>
66023
66024         Merge from coreutils.
66025         * m4/chdir-long.m4, m4/openat.m4: New files.
66026         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
66027         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
66028         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
66029         is sane and DOES follow symlinks.  Besides, testing 20 different
66030         systems found no broken chown implementations.
66031         Prompted by a change in rsync's copy of this macro.
66032         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
66033
66034         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
66035
66036         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
66037         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
66038         NULL-means-set-to-current-time semantics.
66039         Remove temporary file immediately, rather than waiting
66040         for configure's at-exit trap code to do it.
66041
66042 2005-01-18  Jim Meyering  <jim@meyering.net>
66043
66044         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66045
66046         * lib/utimens.c (futimens): Account for the fact that futimes
66047         can also fail with errno == ENOSYS or errno == ENOENT.
66048         Patch from Dmitry V. Levin.
66049
66050         Change the name of the robust chdir function from chdir to chdir_long.
66051         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
66052         (restore_cwd): Use chdir_long, not chdir.
66053         * lib/chdir-long.c: Renamed from chdir.c.
66054         * lib/chdir-long.h: Renamed from chdir.h.
66055         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
66056         Hurd.
66057
66058 2005-01-18  Bruno Haible  <bruno@clisp.org>
66059
66060         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
66061         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
66062         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
66063         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
66064         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
66065         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
66066         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
66067         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
66068         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
66069         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
66070         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
66071         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
66072         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
66073         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
66074         Use an all-permissive copyright notice, recommended by RMS.
66075
66076 2005-01-18  Bob Proulx  <bob@proulx.com>
66077
66078         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
66079         simplify offsetof() macro construct to avoid compile failure with
66080         native HP-UX 11.0 ANSI C compiler.
66081
66082 2005-01-17  Bruno Haible  <bruno@clisp.org>
66083
66084         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
66085         redundant because stpncpy.m4 takes care of it.
66086
66087 2005-01-17  Bruno Haible  <bruno@clisp.org>
66088
66089         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
66090
66091 2005-01-17  Bruno Haible  <bruno@clisp.org>
66092
66093         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
66094         used.
66095
66096 2005-01-17  Bruno Haible  <bruno@clisp.org>
66097
66098         * lib/fwriteerror.h (fwriteerror): Change specification to include
66099         fclose.
66100         * lib/fwriteerror.c: Include <stdbool.h>.
66101         (fwriteerror): At the end, close the file stream. Record whether
66102         stdout was already closed.
66103
66104 2005-01-17  Bruno Haible  <bruno@clisp.org>
66105
66106         * lib/execute.c (environ): Declare if needed.
66107         * lib/pipe.c (environ): Likewise.
66108         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
66109
66110 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66111
66112         * modules/argp: Depend on vsnprintf
66113
66114 2005-01-10  Jim Meyering  <jim@meyering.net>
66115
66116         * modules/closeout (Depends-on): Add atexit.
66117
66118 2005-01-06  Bruno Haible  <bruno@clisp.org>
66119
66120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
66121
66122 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66123
66124         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
66125         definitions to be after all include files, to avoid collisions.
66126         Problem reported by Bob Proulx.
66127
66128 2005-01-04  Jim Meyering  <jim@meyering.net>
66129
66130         Changes imported from coreutils.
66131         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
66132         as the mkstemp template, use a temporary directory and an
66133         8.3-friendly template to avoid trouble on systems like DJGPP.
66134         Reported by Juan M. Guerrero via Stepan Kasal.
66135         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
66136         close. Remove the temporary directory right away, rather than waiting
66137         for configure's at-exit trap code to do it.
66138         Suggestion from Stepan Kasal.
66139
66140 2005-01-01  Simon Josefsson  <jas@extundo.com>
66141
66142         * gnulib-tool: Print #include directives when --import'ing.
66143
66144 2004-12-28  Simon Josefsson  <jas@extundo.com>
66145
66146         * tests/test-base64.c: Include required header files.  Remove
66147         unused variables.
66148
66149 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66150
66151         * modules/error (Depends-on): Remove gettext.
66152
66153 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66154
66155         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
66156         not needed.  This removes a dependency on the gettext module.
66157         [defined _LIBC]: Do not include <libintl.h>; not needed.
66158
66159 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66160
66161         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
66162         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
66163
66164 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66165
66166         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
66167         HAVE_DECL_STRTOLD.
66168
66169 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66170
66171         * modules/getdate (Depends-on): Remove alloca-opt.
66172
66173 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66174
66175         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
66176
66177 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66178
66179         * lib/argp-parse.c: Include <stddef.h>.
66180         (alignof, alignto): New macros.
66181         (parser_init): Don't assume that void * is aligned sufficiently
66182         for struct option.
66183
66184         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
66185         need to extend the stack.
66186         (YYINITDEPTH): New macro, so that the initial stack isn't overly
66187         large.
66188
66189 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66190
66191         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
66192
66193 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66194
66195         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
66196         (2004-10-24) change.  Apparently this was a false alarm.
66197
66198         * modules/getdate: Depend on alloca-opt, not alloca.
66199
66200 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66201
66202         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
66203         Remove now-obsolete comment about AIX.
66204         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
66205         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
66206         (YYMAXDEPTH): New macro.
66207
66208 2004-12-18  Simon Josefsson  <jas@extundo.com>
66209
66210         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
66211
66212 2004-12-18  Bruno Haible  <bruno@clisp.org>
66213
66214         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
66215
66216 2004-12-18  Bruno Haible  <bruno@clisp.org>
66217
66218         * lib/fatal-signal.c (fatal_signals): Make non-const.
66219         (init_fatal_signals): New function.
66220         (uninstall_handlers, install_handlers): Ignore signals that were set to
66221         SIG_IGN.
66222         (at_fatal_signal): Call init_fatal_signals.
66223         (init_fatal_signal_set): Likewise. Ignore signals that were set to
66224         SIG_IGN.
66225         Reported by Paul Eggert.
66226
66227 2004-12-18  Bruno Haible  <bruno@clisp.org>
66228
66229         * doc/alloca.texi: New file.
66230         * doc/alloca-opt.texi: New file.
66231
66232 2004-12-17  Jim Meyering  <jim@meyering.net>
66233
66234         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
66235         Otherwise, install-sh could exit with improper exit status when
66236         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
66237
66238 2004-12-16  Simon Josefsson  <jas@extundo.com>
66239
66240         * tests/test-base64.c: Add license.
66241
66242 2004-12-15  Stepan Kasal  <address@hidden>
66243
66244         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
66245
66246 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
66247
66248         * modules/getcwd (Files): Add m4/d-ino.m4.
66249         Suggested by Mark D. Baushke.
66250
66251 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66252
66253         * lib/getdate.y (textint): New member "negative".
66254         (time_zone_hhmm): New function.
66255         Expect 14 shift-reduce conflicts, not 13.
66256         (o_colon_minutes): New rule.
66257         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
66258         (yylex): Set the "negative" member of signed numbers.
66259
66260 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66261
66262         * doc/getdate.texi (Time of day items, Time zone items):
66263         Describe new formats +00:00, UTC+00:00.
66264
66265 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66266
66267         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
66268         spurious "-l"s.  Problem reported by Stepan Kasal.
66269
66270 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
66271
66272         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
66273         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
66274
66275 2004-12-04  Simon Josefsson  <jas@extundo.com>
66276
66277         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
66278         Vandoorselaere <yoann@prelude-ids.org>.
66279
66280 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66281
66282         Changes imported from coreutils.
66283         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
66284         exist.
66285         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
66286
66287 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66288
66289         Changes imported from coreutils.
66290         * lib/hard-locale.c: Assume <locale.h> exists.
66291         Include "strdup.h".
66292         (GLIBC_VERSION): New macro.
66293         (hard_locale): Assume setlocale exists.
66294         Rewrite to avoid #ifdef.
66295         Use strdup rather than malloc + strcpy.
66296         * lib/human.c: Assume <locale.h> exists.
66297         (human_readable): Assume localeconv exists.
66298
66299 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66300
66301         * modules/hard-locale (Depends-on): Add strdup.
66302
66303 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66304
66305         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
66306         convert T2, not T.  (Imported from libc.)
66307
66308 2004-11-30  Simon Josefsson  <jas@extundo.com>
66309
66310         * modules/restrict (License): Change to LGPL.
66311
66312 2004-11-30  Simon Josefsson  <jas@extundo.com>
66313
66314         * m4/restrict.m4: Add copyright and copying conditions.
66315
66316 2004-11-30  Simon Josefsson  <jas@extundo.com>
66317
66318         * m4/base64.m4: New file.
66319
66320 2004-11-30  Simon Josefsson  <jas@extundo.com>
66321
66322         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
66323         base64.
66324
66325         * tests/test-base64.c: New file.
66326
66327         * modules/base64: New file.
66328
66329 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66330
66331         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
66332         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
66333
66334         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
66335
66336 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66337
66338         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
66339         (__getcwd.c): Don't restore errno; glibc doesn't.
66340         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
66341         first, falling back to our code only if its results look suspicious.
66342         Ensure that the resulting buffer is only as large as necessary.
66343
66344         * lib/readutmp.c: Include readutmp.h first.
66345         Include <errno.h>, since readutmp.h no longer does that.
66346         * lib/readutmp.h: Don't include <errno.h>,
66347         <sys/param.h>, <time.h>; not needed to establish interface.
66348         (errno): Remove decl.
66349         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
66350         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
66351         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
66352
66353 2004-11-28  Simon Josefsson  <jas@extundo.com>
66354
66355         * lib/base64.h, base64.c: New file.
66356
66357 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66358
66359         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
66360
66361 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66362
66363         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
66364         (Depends-on): Remove pathmax, same.  Add mempcpy.
66365         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
66366         (Makefile.am): Append getcwd.h to lib_SOURCES.
66367         (Include): Add getcwd.h.
66368         (Maintainer): Change from Jim Meyering to "all, glibc",
66369         since getdate now uses intended-for-glibc code.
66370         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
66371         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
66372
66373 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66374
66375         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
66376         HP's ANSI C compiler.
66377         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
66378         Declaring int functions causes warnings on some modern systems and
66379         shouldn't be needed to compile on ancient ones.
66380         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
66381         defined.
66382
66383         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
66384         with the following changes.
66385         (__set_errno): Parenthesize properly.
66386         Include <stdbool.h>.
66387         (MIN, MAX, MATCHING_INO): New macros.
66388         (__getcwd): Define with prototype, not K&R form.
66389         Use heuristics to allocate default buffer on stack if possible.
66390         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
66391         behavior, and to avoid the PATH_MAX limit when computing
66392         ../../../../...
66393         Use MATCHING_INO to compare inode number to file.
66394         Check for arithmetic overflow in size calculations.
66395         Fix bug in reallocation of dot array that caused getcwd to fail
66396         on directories nested deeper than 75.
66397         Be more careful about saving errno on error.
66398         Do not use realloc; use only free+malloc, as this is a bit
66399         more flexible and avoids a needless copy operation.
66400         Do not inspect st_dev and st_ino for symbolic links; POSIX
66401         doesn't specify the latter.
66402         Check for closedir errors.
66403         Avoid needless casts.
66404         Use "#ifdef weak_alias" around weak_alias, to be like other
66405         glibc code.
66406         The following changes to getcwd.c have effect only when used in
66407         gnulib; they have no effect inside glibc proper.
66408         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
66409         as alloca isn't used.
66410         (alloca, __alloca): Likewise.
66411         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
66412         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66413         unconditionally, as gnulib assumes C89 or better.
66414         Do not include <sys/param.h>.
66415         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
66416         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
66417         better.
66418         (NULL) [!defined NULL]: Remove; we assume C89 or better.
66419         Include <dirent.h> in a way that is compatible with modern Autoconf.
66420         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
66421         New macros, if not already defined.
66422         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
66423         Use "_LIBC", not "defined _LIBC", for consistency.
66424         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
66425         a mempcpy module.
66426         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
66427         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
66428         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
66429         credit only to Jim Meyering and adjust the copyright dates.
66430         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
66431         <stdlib.h>, <unistd.h>, "pathmax.h".
66432         Instead, include "xgetcwd.h" (first) and "getcwd.h".
66433         (INITIAL_BUFFER_SIZE): Remove.
66434         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
66435
66436 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66437
66438         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
66439         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
66440         Use the _ONCE methods, for efficiency.
66441         Check for fcntl.h.  In test program, include <errno.h>
66442         and <fcntl.h> if available.  Remove old K&R cruft from
66443         test program.  Check for common errors in GNU/Linux,
66444         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
66445         don't do AC_LIBOBJ, as that's getcwd.m4's job.
66446         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
66447         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
66448         name accordingly.
66449         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
66450         accommodate new getcwd.c.
66451         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
66452         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
66453         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
66454         that's all we need now.
66455
66456 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66457
66458         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
66459         argp-parse.c depends on getopt internals, that means we should
66460         always use our getopt, to be on the safe side.
66461         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
66462         order not to spoil the result of an eventual previous invocation
66463         of gl_GETOPT_SUBSTITUTE.
66464
66465 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66466
66467         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
66468         redefinition warnings. To avoid them, include the defines
66469         in `#if !defined __need_getopt ... #endif'. The only place
66470         where __getopt_argv_const is used is in definitions
66471         of getopt_long and getopt_long_only below, which are as well
66472         protected by `#ifndef __need_getopt'.
66473         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
66474         __need_getopt after including <stdio.h> and <unistd.h> These
66475         headers might have defined it.
66476
66477 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66478
66479         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
66480
66481 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66482
66483         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
66484         (futimens): New function, which uses futimes if available.
66485         (futimens, utimens): Support timespec==NULL, with same semantics
66486         as utime and utimens.
66487         * lib/utimens.h (futimens): New decl.
66488
66489 2004-11-23  Jim Meyering  <jim@meyering.net>
66490
66491         * lib/getopt_.h: Remove trailing blanks.
66492
66493 2004-11-23  Jim Meyering  <jim@meyering.net>
66494
66495         * lib/__fpending.c: Add comment.
66496
66497 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
66498
66499         * modules/canonicalize (Depends-on): Add xreadlink.
66500         Problem reported by James Youngman.
66501
66502 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66503
66504         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
66505         New macros.
66506         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
66507         optopt): Use them instead of invoking ## directly; otherwise, the
66508         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
66509
66510 2004-11-19  Bruno Haible  <bruno@clisp.org>
66511
66512         * lib/strtok_r.c: Move comments from here...
66513         * lib/strtok_r.h: ... to here.
66514
66515 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66516
66517         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
66518         implementations that mishandle size_t overflow.
66519
66520 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66521
66522         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
66523         might fail.  Problem reported by Yoann Vandoorselaere.
66524         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
66525         implementations that mishandle size_t overflow.
66526
66527 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66528
66529         * modules/canon-host (Depends-on): Add strdup.
66530
66531 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66532
66533         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
66534
66535 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66536
66537         * lib/canon-host.c: Include "strdup.h".
66538         (canon_host): Use getaddrinfo if available, so that IPv6 works.
66539         Use strdup instead of malloc/strcpy to duplicate strings.
66540
66541         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
66542         (human_space_before_unit): New constant.
66543         * lib/human.c (human_readable): Support it.
66544
66545         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
66546         (xgetcwd): Set errno correctly when failing.
66547         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
66548         the failure is actually due to a PATH_MAX problem.
66549
66550         Further getopt changes to make it more likely that glibc will
66551         buy the changes back.
66552         * lib/getopt.c (POSIXLY_CORRECT): New constant.
66553         (getopt): Use it, so to preserve glibc semantic
66554         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
66555         when compiling for libc.
66556         * lib/getopt_.h (__getopt_argv_const): Bring it back.
66557         (getopt_long, getopt_long_only): Use it.
66558
66559         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66560         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
66561         (getopt): Argv is now char * const *, as per standard.
66562         (_getopt_internal_r, _getopt_internal): Argv is now char **,
66563         not char *__getopt_argv_const *.
66564         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66565         _getopt_long_only_r): Likewise.
66566         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
66567         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66568         _getopt_long_r, _getopt_long_only_r): Likewise.
66569         * lib/getopt_.h (__getopt_argv_const): Remove.
66570         (getopt): Argv is now char * const *, as per standard.
66571
66572         * lib/getdate.y (tORDINAL): New token.
66573         (day, relunit): Allow it for relative times.
66574         (relative_time_table): Use tORDINAL for ordinals.
66575
66576 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66577
66578         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
66579         Document that "second" isn't allowed as an ordinal number.
66580
66581 2004-11-16  Jim Meyering  <jim@meyering.net>
66582
66583         * modules/closeout (Depends-on): Add fpending.
66584
66585 2004-11-15  Jim Meyering  <jim@meyering.net>
66586
66587         * lib/closeout.c: Include "__fpending.h" once again.
66588         Include <stdbool.h>.
66589         (close_stdout): Don't fail just because stdout was closed initially,
66590         since some programs don't write to stdout in the normal course of
66591         operation (other than --version and --help), and we don't want this
66592         function to make e.g. `touch file >&-' fail.
66593         But do fail if it was closed and someone has tried to write to it.
66594         E.g., `printf foo >&-' must fail.
66595
66596 2004-11-13  Jim Meyering  <jim@meyering.net>
66597
66598         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
66599
66600 2004-11-12  Simon Josefsson  <jas@extundo.com>
66601
66602         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
66603         small doc fix is still pending.
66604
66605 2004-11-11  Simon Josefsson  <jas@extundo.com>
66606
66607         * modules/strtok_r: New file.
66608
66609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66610         strtok_r.
66611
66612 2004-11-11  Simon Josefsson  <jas@extundo.com>
66613
66614         * m4/strtok_r.m4: New file.
66615
66616         * m4/getopt.m4: Replace opterr.
66617
66618 2004-11-11  Simon Josefsson  <jas@extundo.com>
66619
66620         * lib/strtok_r.h, strtok_r.c: New file.
66621
66622 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66623
66624         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
66625         of replacing opterr, getopt, etc.  This should handle the
66626         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
66627
66628 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66629
66630         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
66631         we can stop lying to compilers about the constness of argv when we
66632         are compiled outside glibc.
66633         (getopt, getopt_long, getopt_long_only): Use it.
66634         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66635         _getopt_internal, getopt): Likewise.
66636         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66637         _getopt_long_only_r): Likewise.
66638         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66639         _getopt_long_r, _getopt_long_only_r): Likewise.
66640
66641         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
66642         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
66643         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
66644         the other external symbols.
66645         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
66646         declaration, since the above renaming now works around collisions.
66647
66648 2004-11-11  Jim Meyering  <jim@meyering.net>
66649
66650         * lib/linebreak.c: Remove trailing blanks.
66651         * lib/alloca_.h: Likewise.
66652         * lib/acosl.c: Likewise.
66653         * lib/euidaccess.c: Likewise.
66654         * lib/allocsa.h: Likewise.
66655
66656 2004-11-10  Simon Josefsson  <jas@extundo.com>
66657
66658         * m4/getaddrinfo.m4: New file.
66659
66660 2004-11-10  Simon Josefsson  <jas@extundo.com>
66661
66662         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
66663
66664 2004-11-10  Simon Josefsson  <jas@extundo.com>
66665
66666         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66667         getaddrinfo.
66668
66669         * modules/getaddrinfo: New file.
66670
66671 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66672
66673         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
66674
66675 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66676
66677         * lib/mktime.c (SHR): New macro, which is a portable
66678         substitute for >> that should work even on Crays.
66679         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
66680         Problem reported by Mark D. Baushke in
66681         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
66682         * lib/getdate.y (SHR): Likewise.
66683         (tm_diff): Use it.
66684         * lib/strftime.c (SHR): Likewise.
66685         (tm_diff): Use it.
66686         * lib/quotearg.c (struct quoting_options): Use unsigned int for
66687         quote_these_too, so that right shifts are well defined.  All uses
66688         changed.
66689
66690 2004-11-10  Jim Meyering  <jim@meyering.net>
66691
66692         Ensure that no close failure goes unreported.
66693         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
66694         return early when it seems there's nothing to flush.
66695         Don't include __fpending.h.
66696
66697 2004-11-10  Jim Meyering  <jim@meyering.net>
66698
66699         * modules/closeout (Depends-on): Remove fpending.
66700
66701 2004-11-10  Jim Meyering  <jim@meyering.net>
66702
66703         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
66704
66705 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66706
66707         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
66708         gl_FUNC_STRFTIME.
66709         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
66710         and AC_REQUIRE when possible, to avoid duplicate checks.
66711         Check for <wchar.h>.
66712
66713 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66714
66715         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
66716
66717 2004-11-09  Bruno Haible  <bruno@clisp.org>
66718
66719         * m4/sockpfaf.m4: New file.
66720
66721 2004-11-05  Bruno Haible  <bruno@clisp.org>
66722
66723         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
66724         Reported by Mark D. Baushke <mdb@cvshome.org>.
66725
66726 2004-11-04  Bruno Haible  <bruno@clisp.org>
66727
66728         2004-09-11  Bruno Haible  <bruno@clisp.org>
66729                 * allocsa.valgrind: New file.
66730         2004-02-06  Bruno Haible  <bruno@clisp.org>
66731                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
66732                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
66733                 Reported by Christopher Seip <chris.seip@hp.com>.
66734
66735 2004-11-04  Bruno Haible  <bruno@clisp.org>
66736
66737         * modules/allocsa (Files): Add lib/allocsa.valgrind.
66738         (Makefile.am): Distribute it.
66739
66740 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66741
66742         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
66743         with errno == ERANGE if the buffer is too small.
66744         Problem reported by Mark D. Baushke.
66745
66746 2004-11-03  Albert Chin  <china@thewrittenword.com>
66747             Paul Eggert  <eggert@cs.ucla.edu>
66748
66749         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
66750         equivalent, substitute $ac_type for equivalent type rather than
66751         blindly using uint32_t *always* which won't work if uint32_t is not
66752         available.  Define _UINT32_T to work around typedef of uint32_t if
66753         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
66754         2.5.1.
66755
66756 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66757
66758         * m4/jm-macros.m4: Sync from coreutils.
66759         (gl_MACROS): Check for mbrlen, for pathchk.
66760         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
66761
66762 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66763
66764         * lib/xreadlink.c (MAXSIZE): New macro.
66765         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
66766         size does not exceed MAXSIZE.  Avoid cast.
66767         As suggested by Mark D. Baushke in
66768         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
66769         if readlink fails with buffer size just under MAXSIZE, try again
66770         with MAXSIZE.
66771
66772 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66773
66774         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
66775
66776 2004-11-02  Derek R. Price  <derek@ximbiot.com>
66777         and  Paul Eggert  <eggert@cs.ucla.edu>
66778
66779         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
66780         (get_date): Overparenthesize to avoid GCC warning.
66781
66782 2004-11-02  Bruno Haible  <bruno@clisp.org>
66783
66784         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
66785         returns void.
66786
66787 2004-11-02  Bruno Haible  <bruno@clisp.org>
66788
66789         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
66790         function returns void.
66791
66792 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66793
66794         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
66795         fflush_unlocked, flockfile, funlockfile, funlockfile,
66796         fputs_unlocked, putc_unlocked.
66797
66798 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66799
66800         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66801         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
66802         already declared.
66803
66804 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66805
66806         * modules/getdate (Files): Add doc/getdate.texi.
66807         (Depends-on): Add setenv, xalloc.
66808
66809 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66810
66811         * lib/getdate.y: Add support for TZ="foo" within a date string.
66812         Fix some bugs near time_t boundaries.  Reject dates with
66813         out-of-range components, e.g., "Sept 31".
66814         Include <stdlib.h>, "setenv.h", "xalloc.h".
66815         (ISDIGIT_LOCALE): Remove; unused.
66816         Note that the TZ and time functions used here are not reentrant.
66817         (mktime_ok, get_tz): New functions.
66818         (TZBUFSIZE): New constant.
66819         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
66820         This requires that we sometimes generate our own TZ="XXX..." setting.
66821
66822 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66823
66824         * doc/getdate.texi: New file, from coreutils with modifications for
66825         the new TZ parsing.
66826
66827 2004-10-27  Derek R. Price  <derek@ximbiot.com>
66828
66829         * lib/mktime.c (not_equal_tm): Remove redundant check.
66830
66831 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66832
66833         * modules/regex (lib_SOURCES): Add regex.c.
66834         Reported by James Youngman in
66835         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
66836
66837 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66838
66839         * lib/getdate.y: Use Bison 1.875 features, and some minor
66840         code cleanups.  This change does not affect semantics.
66841         Don't include <stdlib.h>; no longer needed.
66842         Don't include unlocked-io.h; only the "#if TEST" code uses
66843         stdio, and performance isn't crucial there.
66844         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
66845         Bison 1.875 features as described below.
66846         All uses of "PC." replaced by "pc->".
66847         (YYSTYPE): Add a forward declaration.
66848         (yylex, yyerror): Use full prototypes in forward decls.
66849         Use "%pure-parser" rather than obsolescent "%pure_parser".
66850         Use %parse-param and %lex-param instead of obsolescent
66851         YYPARSE_PARAM and YYLEX_PARAM.
66852         (meridian_table, month_and_day_table, time_units_table,
66853         relative_time_table, time_zone_table, military_table,
66854         lookup_zone, lookup_word, get_date):
66855         Use NULL instead of 0 where appropriate.
66856         (to_hour): Avoid abort (), to avoid a dependency on
66857         stdlib.h.
66858         (yyerror, yylex): Now accepts parser_control * arg.
66859         (main) [TEST]: Use '\0' rather than 0 for char.
66860
66861 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66862
66863         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
66864
66865 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66866
66867         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
66868         It's now the caller's responsibility to handle the case where
66869         !HAVE_GETPAGESIZE && !defined getpagesize.
66870
66871         * lib/mktime.c (leapyear): Arg is long int, not int.
66872
66873 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
66876
66877 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
66880         missing.  Problem reported by James Youngman.
66881
66882 2004-10-16  Simon Josefsson  <jas@extundo.com>
66883
66884         * gnulib-tool: Fix comments.  Fix parse problem.
66885         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
66886
66887 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
66888
66889         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
66890         implementation of getopt_long.  Problem reported by Alexander Taler in:
66891         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
66892
66893 2004-10-15  Bruno Haible  <bruno@clisp.org>
66894
66895         * gnulib-tool: Untabify. Initialize supplied_libname.
66896         (func_usage): More homogenous output.
66897         (func_modules_transitive_closure, func_modules_to_filelist,
66898         func_emit_lib_Makefile_am): New functions.
66899         (func_import): New function, extracted from big case statement. Use
66900         func_get_license, func_modules_transitive_closure,
66901         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
66902         opt_lgpl. Don't use test -a, as it's not portable.
66903         (func_create_testdir): Use func_modules_transitive_closure,
66904         func_modules_to_filelist, func_emit_lib_Makefile_am.
66905
66906 2004-10-15  Bruno Haible  <bruno@clisp.org>
66907
66908         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
66909
66910 2004-10-15  Bruno Haible  <bruno@clisp.org>
66911
66912         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
66913         the portions belonging to each module.
66914         Suggested by Derek Robert Price <derek@ximbiot.com>.
66915
66916 2004-10-12  Simon Josefsson  <jas@extundo.com>
66917
66918         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66919         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
66920         to real functions.
66921
66922 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66923
66924         * modules/vsnprintf: New file.
66925
66926 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66927
66928         * m4/vsnprintf.m4: New file.
66929
66930 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66931
66932         * lib/vsnprintf.h: New file.
66933         * lib/vsnprintf.c: New file.
66934
66935 2004-10-11  Bruno Haible  <bruno@clisp.org>
66936
66937         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
66938         vsnprintf.
66939
66940 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66941
66942         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
66943
66944 2004-10-07  Bruno Haible  <bruno@clisp.org>
66945
66946         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
66947         fits into the provided buffer.
66948
66949 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66950
66951         * lib/diacrit.c, diacrit.h: Add GPL notice.
66952
66953         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
66954         notice.
66955         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
66956         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
66957         This avoids a potential constant-folding bug.
66958
66959 2004-10-05  Bruno Haible  <bruno@clisp.org>
66960
66961         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
66962         for the declaration of strsep.
66963
66964 2004-10-05  Bruno Haible  <bruno@clisp.org>
66965
66966         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
66967
66968 2004-10-04  Simon Josefsson  <jas@extundo.com>
66969
66970         * modules/memmem: New file.
66971         * tests/test-memmem.c: New file.
66972         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
66973
66974 2004-10-04  Simon Josefsson  <jas@extundo.com>
66975
66976         * m4/memmem.m4: New file.
66977
66978 2004-10-04  Simon Josefsson  <jas@extundo.com>
66979
66980         * lib/memmem.h: New file.
66981         * lib/memmem.c: New file, taken from glibc.
66982
66983 2004-10-04  Simon Josefsson  <jas@extundo.com>
66984
66985         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
66986         '#ifdef USE_UNLOCKED_IO'.
66987
66988 2004-10-04  Simon Josefsson  <jas@extundo.com>
66989
66990         * config/srclist.txt: Add memmem from glibc.
66991
66992 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66993
66994         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
66995
66996         * modules/argmatch, modules/argp, modules/closeout, modules/error,
66997         modules/exclude, modules/getdate, modules/getline,
66998         modules/getndelim2, modules/getpass, modules/getpass-gnu,
66999         modules/getusershell, modules/linebuffer, modules/md5,
67000         modules/mountlist, modules/posixtm, modules/readtokens,
67001         modules/readutmp, modules/regex, modules/sha1,
67002         modules/version-etc, modules/yesno:
67003         Remove dependency on unlocked-io.
67004
67005 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
67008
67009         * m4/unlocked-io.m4: Add copyright notice.
67010         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
67011
67012 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67013
67014         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
67015         * lib/xmalloc.c (xmemdup): Likewise.
67016         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
67017         XFREE): Remove these long-obsolescent macros.
67018         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
67019         * lib/xstrdup.c: Remove.
67020
67021         * lib/regex.c (re_comp): Cast gettext return value to char *,
67022         Problem reported by Martin Neitzel via Mark D. Baushke.
67023
67024 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67025
67026         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
67027         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
67028         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
67029         regex.c, sha1.c, version-etc.c, yesno.c:
67030         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
67031         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
67032         the includer's responsibility.
67033
67034         Sync from coreutils.
67035
67036         * lib/modechange.c (mode_compile): Don't decrement a pointer that
67037         points to the start of a string, as the C Standard says the
67038         resulting behavior is undefined.
67039
67040         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
67041         simple -> simple_backups, numbered_existing ->
67042         numbered_existing_backups, numbered -> numbered_backups
67043         to avoid shadowing problems.  All uses changed.
67044         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
67045         * lib/backupfile.c (check_extension, numbered_backup):
67046         Rename locals to avoid shadowing 'basename'.
67047         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
67048         once.
67049
67050         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
67051         * lib/.cvsignore: Add getopt.h.
67052
67053 2004-10-04  Bruno Haible  <bruno@clisp.org>
67054
67055         * modules/README: New file.
67056         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
67057         not a module.
67058
67059 2004-10-02  Jim Meyering  <jim@meyering.net>
67060
67061         * lib/dirfd.h, getpagesize.h: Add copyright notice.
67062
67063 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67064
67065         * modules/strsep: New file.
67066
67067 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67068
67069         * m4/strsep.m4: New file.
67070
67071 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67072
67073         * lib/strsep.h: New file.
67074         * lib/strsep.c: New file.
67075
67076 2004-10-01  Simon Josefsson  <jas@extundo.com>
67077
67078         * lib/snprintf.c (snprintf): Handle size==0.
67079
67080 2004-10-01  Simon Josefsson  <jas@extundo.com>
67081             Bruno Haible  <bruno@clisp.org>
67082
67083         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
67084         (snprintf): Declare 'args'.
67085
67086 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
67087
67088         * lib/snprintf.c: Remove comments as to why each header is needed.
67089
67090 2004-10-01  Bruno Haible  <bruno@clisp.org>
67091
67092         * MODULES.html.sh: Add strsep.
67093
67094 2004-09-30  Simon Josefsson  <jas@extundo.com>
67095
67096         * modules/snprintf: New file.
67097
67098 2004-09-30  Simon Josefsson  <jas@extundo.com>
67099
67100         * m4/snprintf.m4: New file.
67101
67102 2004-09-30  Simon Josefsson  <jas@extundo.com>
67103
67104         * lib/snprintf.h, lib/snprintf.c: New files.
67105
67106 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67107
67108         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
67109         (hol_entry_help): Never translate an empty string.
67110         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
67111         * lib/argp.h (OPTION_NO_TRANS): New option.
67112
67113 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67114
67115         * modules/argp (Maintainer): Replace Simon Josefsson
67116         by Sergey Poznyakoff.
67117
67118 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67119
67120         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
67121         changes merged back into glibc.
67122
67123 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67124
67125         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
67126
67127 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67128
67129         * lib/xvasprintf.c: Include xalloc.h.
67130         (xvasprintf): Use xalloc_die, not xmalloc_die.
67131
67132 2004-09-29  Bruno Haible  <bruno@clisp.org>
67133
67134         * modules/alloca-opt: New file, derived from modules/alloca.
67135         * modules/allocsa: Depend on alloca-opt instead of alloca.
67136         * modules/setenv: Likewise.
67137         * modules/vasnprintf: Likewise.
67138         * MODULES.html.sh: Add alloca-opt.
67139
67140 2004-09-28  Simon Josefsson  <jas@extundo.com>
67141
67142         * gnulib-tool: New parameter --lgpl, to asseert that modules are
67143         LGPL, and to replace license template from GPL to LGPL.
67144
67145 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67146
67147         * modules/dummy: Change license to LGPL.
67148
67149 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67150
67151         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
67152
67153 2004-09-24  Simon Josefsson  <jas@extundo.com>
67154
67155         * modules/minmax (License): Change from GPL to LGPL.
67156
67157 2004-09-23  Simon Josefsson  <jas@extundo.com>
67158
67159         * gnulib-tool (--import): Typo.
67160
67161 2004-09-23  Simon Josefsson  <jas@extundo.com>
67162
67163         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
67164
67165 2004-09-22  Bruno Haible  <bruno@clisp.org>
67166
67167         * modules/*: Add 'License' field.
67168         * gnulib-tool: Accept --extract-license option.
67169         (func_get_license): New function.
67170
67171 2004-09-21  Bruno Haible  <bruno@clisp.org>
67172
67173         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
67174         Reported by Simon Josefsson.
67175
67176 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67177
67178         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
67179         gl_AC_TYPE_LONG_LONG.
67180
67181 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67182
67183         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
67184
67185 2004-09-18  Simon Josefsson  <jas@extundo.com>
67186         and  Paul Eggert  <eggert@cs.ucla.edu>
67187
67188         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
67189         calls with autoreconf.  Define GL_LIB.
67190
67191 2004-09-14  Karl Berry  <karl@gnu.org>
67192
67193         * config/srclist.txt: unsync setenv.c, sigh.
67194
67195 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67196
67197         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
67198         Problem reported by Bruno Haible in:
67199         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
67200
67201 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67202
67203         * config/srclist.txt: Comment out argp-pvh.c.
67204
67205 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
67208         in case some system header has #define'd it.  Problem reported by
67209         Soeren D. Schulze in
67210         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
67211
67212 2004-09-09  Karl Berry  <karl@gnu.org>
67213
67214         * regex.[ch]: delete from the root.  These were supposed to be
67215                 synced with emacs cvs, but this has not happened for about
67216                 a year, and anyway nothing else uses emacs regex.[ch].
67217                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
67218                 lib/regex[.ch] is untouched.
67219
67220 2004-09-09  Bruno Haible  <bruno@clisp.org>
67221
67222         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
67223
67224 2004-09-09  Bruno Haible  <bruno@clisp.org>
67225
67226         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
67227         modifications.
67228         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
67229
67230 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67231
67232         * modules/xvasprintf: New file.
67233         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
67234
67235 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67236
67237         * lib/xvasprintf.h: New file.
67238         * lib/xvasprintf.c: New file.
67239         * lib/xasprintf.c: New file.
67240
67241 2004-09-08  Bruno Haible  <bruno@clisp.org>
67242
67243         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
67244
67245 2004-09-08  Bruno Haible  <bruno@clisp.org>
67246
67247         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
67248         length is > INT_MAX.
67249         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
67250         more.
67251
67252 2004-09-08  Bruno Haible  <bruno@clisp.org>
67253
67254         * lib/stdint_.h: New file, taken from GNU clisp.
67255
67256 2004-09-08  Bruno Haible  <bruno@clisp.org>
67257             Oskar Liljeblad  <oskar@osk.mine.nu>
67258
67259         * modules/stdint: New file.
67260         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
67261
67262 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67263
67264         Import from coreutils.
67265         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
67266         strings on unbounded length.  alloca's performance benefits aren't
67267         that important here.
67268         (V_STRDUP): Remove.
67269         (parse_with_separator): New function, with most of the internals
67270         of the old parse_user_spec.  Allow user to omit both user and group,
67271         for compatibility with FreeBSD.
67272         Clone only the user name, not the entire spec.
67273         Do not set *uid, *gid unless entirely successful.
67274         Avoid memory leak in some failing cases.
67275         Fix regression for USER.GROUP reported by Dmitry V. Levin in
67276         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
67277         (parse_user_spec): Rewrite to use parse_with_separator.
67278
67279 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67280
67281         * modules/userspec: Don't depend on alloca.
67282
67283 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67284
67285         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
67286
67287 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67288
67289         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
67290         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
67291         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
67292
67293 2004-08-16  Simon Josefsson  <jas@extundo.com>
67294
67295         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
67296         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
67297         Add --dry-run for --import.
67298         Let user provided command line parameters override configure.ac
67299         settings.
67300
67301 2004-08-12  Simon Josefsson  <jas@extundo.com>
67302
67303         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
67304         as discussed with Paul Eggert in threads rooted at
67305         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
67306         and
67307         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
67308         Before, the test was empty, and relied on ELIDE_CODE in source
67309         code.)
67310         (gl_PREREQ_GETOPT): New macro.
67311         (gl_GETOPT): Use them.
67312
67313 2004-08-12  Simon Josefsson  <jas@extundo.com>
67314
67315         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
67316         * lib/getopt_.h: Renamed from getopt.h.
67317
67318 2004-08-12  Simon Josefsson  <jas@extundo.com>
67319
67320         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
67321         Change default library name from libfoo to libgnu.
67322         Now, if you have a configure.ac that says:
67323                 gl_SOURCE_BASE(gl)
67324                 gl_M4_BASE(gl/m4)
67325                 gl_MODULES(error getopt etcetera)
67326                 gl_INIT
67327         you can import all you need by running:
67328                 ../gnulib/gnulib-tool --import
67329
67330         * modules/getopt (Files): Rename getopt.h to getopt_.h.
67331         (Makefile.am): Rewrite, use logic from argz.
67332         (Include): Use <getopt.h> instead of "getopt.h".
67333
67334 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67335
67336         * modules/argp (Files): Add m4/unlocked-io.m4.
67337         (Depends-on): Add extensions.
67338
67339 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67340
67341         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
67342         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
67343         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
67344         Check for program_invocation_name, program_invocation_short_name,
67345         flockfile, funlockfile, features.h, _getopt_long_only_r.
67346
67347 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67348
67349         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
67350         its complicated substitute.
67351         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
67352         and program_invocation_name.
67353         (__argp_basename) [!_LIBC]: Remove; the only use was
67354         replaced by its body.
67355         (__argp_short_program_name): Change condition from
67356         !defined __argp_short_program_name to
67357         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
67358         to match argp-namefrob.h.
67359         (__argp_failure): Don't assume strerror_r returns char *.
67360         * lib/argp-parse.c (N_): Define unconditionally.
67361         (argp_default_options): Fill out initializers with 0 to avoid
67362         gcc warnings.
67363
67364 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67365
67366         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
67367         getopt1.c.
67368
67369 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67370
67371         Merge from coreutils.
67372
67373         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
67374
67375         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
67376         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
67377
67378 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67379
67380         Merge from coreutils.
67381
67382         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
67383         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
67384         for Reliant Unix 5.43.
67385
67386         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
67387         (union fooround): Use uintmax_t, not long int.
67388         The rest is a merge from libc:
67389         [defined _LIBC]: Include <shlib-compat.h>.
67390         (_obstack) [defined _LIBC]: Remove after 2.3.4.
67391
67392         * lib/settime.c (settime): Recode to avoid warning with
67393         Sun Forte C 6U2.
67394
67395         * lib/strverscmp.c: Convert to UTF-8.
67396
67397 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67398
67399         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67400         m4/uintmax_t.m4.
67401
67402 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67403
67404         * modules/xalloc-die: New file.
67405         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
67406
67407         * modules/md5 (Files): Add m4/uint32_t.m4.
67408         * modules/sha1: Renamed from modules/sha.
67409         (Files):
67410         Rename lib/sha.h to lib/sha1.h.
67411         Rename lib/sha.c to lib/sha1.c.
67412         Rename m4/sha.m4 to m4/sha1.m4.
67413         (lib_SOURCES): Likewise.
67414         (configure.ac): Rename gl_SHA to gl_SHA1.
67415         (Include): sha.h -> sha1.h.
67416
67417 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67418
67419         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
67420         * m4/sha1.m4: Renamed from sha.m4.
67421         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
67422
67423 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67424
67425         * lib/obstack.h (obstack_empty_p):
67426         Don't assume that chunk->contents is suitably aligned.
67427         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
67428         Likewise. Problem reported by Benno in
67429         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
67430
67431         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
67432         readable.  This could be improved further but it'd take some work.
67433
67434 2004-08-08  Simon Josefsson  <jas@extundo.com>
67435
67436         * modules/xgethostname (Depends-on): Remove exit and error (not
67437         used).
67438
67439         * modules/getpass-gnu: Add getpass.h.
67440         (Depends-on): Add stdbool.
67441         * modules/getpass: Add getpass.h.
67442
67443 2004-08-08  Simon Josefsson  <jas@extundo.com>
67444
67445         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
67446         Check getpass declaration.
67447
67448 2004-08-08  Simon Josefsson  <jas@extundo.com>
67449
67450         * lib/xgethostname.c: Don't include error.h (not used).
67451
67452         * lib/getpass.h: Add.
67453         * lib/getpass.c: Include getpass.h first.
67454
67455 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
67456
67457         * lib/xalloc-die.c: New file.
67458         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
67459         All uses removed.
67460         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
67461         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
67462         xalloc-die.c.
67463         (_, N_, xalloc_die): Move to xalloc-die.c.
67464         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
67465         so that we needn't mess with xalloc_msg_memory_exhausted.
67466
67467         * lib/sha1.h: Renamed from sha.h.
67468         (SHA1_H): Renamed from _SHA_H.
67469         (sha1_ctx): Renamed from sha_ctx.
67470         (sha1_init_ctx): Renamed from sha_init_ctx.
67471         (sha1_process_block): Renamed from sha_process_block.
67472         (sha1_process_bytes): Renamed from sha_process_bytes.
67473         (sha1_finish_ctx): Renamed from sha_finish_ctx.
67474         (sha1_read_ctx): Renamed from sha_read_ctx.
67475         (sha1_stream): Renamed from sha_stream.
67476         (sha1_buffer): Renamed from sha_buffer.
67477         * lib/sha1.c: Likewise; renamed from sha.c.
67478         Do not include <sys/types.h>.
67479         Include <stddef.h> rather than <stdlib.h>.
67480
67481 2004-08-08  Bruno Haible  <bruno@clisp.org>
67482
67483         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
67484         FILESYSTEM_PREFIX_LEN.
67485         * lib/progreloc.c: Likewise.
67486         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
67487
67488 2004-08-06  Simon Josefsson  <jas@extundo.com>
67489
67490         * modules/progname (Depends-on): Don't depend on stdbool.
67491
67492 2004-08-06  Simon Josefsson  <jas@extundo.com>
67493
67494         * modules/getsubopt: New file.
67495         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67496         getsubopt.
67497
67498 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67499
67500         More merge from coreutils.
67501
67502         * m4/utimens.m4, m4/utimecmp.m4: New files.
67503         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
67504         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
67505         prereq.m4, sha.m4: Import changes from coreutils.
67506
67507 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67508
67509         More merge from coreutils.
67510         * modules/raise, modules/readtokens0, modules/utimens:
67511         * modules/utimecmp, module/xnanosleep: New files.
67512         * modules/strftime: Add lib/strftime.h.
67513         Change include from <time.h> to "strftime.h".
67514         * modules/yesno: Add lib/yesno.h.
67515         * modules/backupfile: Remove lib/addext.c.
67516         * modules/euidaccess: Add stat-macros.h.
67517         * modules/canonicalize, modules/euidaccess,
67518         modules/filemode, modules/lchown, modules/makepath,
67519         modules/rmdir, modules/stat: Likewise.
67520
67521 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         Merge from tar.
67524         * lib/argp-help.c (make_hol, hol_append): Don't assume that
67525         SIZE_MAX is a valid preprocessor constant.
67526         (__argp_basename): Change from "#ifndef _LIBC"
67527         to "#ifndef __argp_short_program_name", so that
67528         we don't compile these functions for tar.
67529
67530         More merges from coreutils.
67531         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
67532         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
67533         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
67534         * lib/addext.c: Remove; no longer needed.
67535         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
67536         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
67537         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
67538         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
67539         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
67540         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
67541         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
67542         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
67543         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
67544         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67545         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
67546         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
67547         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
67548         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
67549         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
67550         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
67551         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
67552         Import changes from coreutils.
67553
67554 2004-08-05  Simon Josefsson  <jas@extundo.com>
67555
67556         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
67557
67558 2004-08-05  Simon Josefsson  <jas@extundo.com>
67559
67560         * m4/getsubopt.m4: New file.
67561
67562 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67563
67564         Merge from coreutils.
67565
67566         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
67567         * m4/getcwd-path-max.m4: New files.
67568
67569         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
67570         FILESYSTEM_PREFIX_LEN ->
67571         FILE_SYSTEM_PREFIX_LEN.
67572         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
67573         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
67574         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
67575         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
67576
67577         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
67578         prerequisite modules now handle the DOS stuff.
67579         Don't check for unistd.h.
67580
67581 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67582
67583         Merge from coreutils.
67584
67585         * lib/.gdb-history: Remove; this doesn't belong here.
67586
67587         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
67588         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
67589         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
67590         * lib/getcwd.c: New files.
67591
67592         * lib/dirname.h: Include <stdbool.h>.
67593         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
67594         for consistency with POSIX terminology.  All uses changed.
67595         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
67596         (strip_trailing_slashes): Use bool for booleans.
67597         * lib/stripslash.c (strip_trailing_slashes): Likewise.
67598
67599         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
67600         sometimes returns a positive errno value even when it succeeds.
67601         (print_errno_message) [!LIBC]: Fall back on strerror if
67602         __strerror_r fails.
67603
67604         * lib/path-concat.c (mempcpy): Don't define if a system header defines
67605         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
67606         (longest_relative_suffix): New function.
67607         (path_concat): Use it.  Assume first argument is not NULL.
67608         Port to DOS.  Omit redundant separators.
67609         Report an error instead of returning NULL.
67610         Use mempcpy instead of memcpy.
67611         (xpath_concat): Remove: not declared or used.
67612
67613         * lib/same.h: Include <stdbool.h>
67614         (same_name): Return bool, not int.
67615         * lib/same.c (same_name): Likewise.
67616         (errno): Don't declare; we assume C89 or better now.
67617
67618         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
67619         if not already defined.
67620
67621         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
67622         * lib/dup-safer.c (errno): Likewise.
67623
67624 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67625
67626         Merge from coreutils.
67627         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
67628         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
67629         * modules/path-concat: Don't depend on strdup.
67630
67631 2004-08-03  Simon Josefsson  <jas@extundo.com>
67632
67633         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
67634         * lib/progname.h: Don't include stdbool.h.
67635
67636 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67637
67638         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
67639         * MODULES.html.sh (func_all_modules): Remove fatal.
67640
67641 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67642
67643         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
67644
67645 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67646
67647         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
67648         working.
67649
67650 2004-08-02  Simon Josefsson  <jas@extundo.com>
67651
67652         * lib/getsubopt.h: New file, with comments from Bruno Haible.
67653         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
67654         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
67655
67656 2004-08-01  Simon Josefsson  <jas@extundo.com>
67657
67658         * lib/xgetdomainname.c: Include stdlib.h, for free().
67659
67660 2004-07-19  Bruno Haible  <bruno@clisp.org>
67661
67662         * MODULES.html.sh (func_all_modules): Add dummy.
67663
67664 2004-07-16  Simon Josefsson  <jas@extundo.com>
67665
67666         * modules/dummy: New file.
67667
67668 2004-07-16  Simon Josefsson  <jas@extundo.com>
67669
67670         * lib/dummy.c: New file.
67671
67672 2004-07-16  Bruno Haible  <bruno@clisp.org>
67673
67674         * lib/backupfile.h: Add extern "C" for C++.
67675         * lib/closeout.h: Likewise.
67676         * lib/copy-file.h: Likewise.
67677         * lib/findprog.h: Likewise.
67678         * lib/full-write.h: Likewise.
67679         * lib/pathname.h: Likewise.
67680         * lib/progname.h: Likewise.
67681         * lib/stpcpy.h: Likewise.
67682         * lib/stpncpy.h: Likewise.
67683         * lib/strcase.h: Likewise.
67684         * lib/strstr.h: Likewise.
67685         * lib/xalloc.h: Likewise.
67686
67687         * lib/mbswidth.h: Add extern "C" for C++.
67688         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
67689
67690 2004-07-13  Robert Millan  <robertmh@gnu.org>
67691
67692         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
67693
67694 2004-07-09  Simon Josefsson  <jas@extundo.com>
67695
67696         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
67697         failed without this.)
67698
67699 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         * modules/chown (Files): Add lib/fchown-stub.c, since
67702         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
67703
67704 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * lib/fchown-stub.c: New file.
67707
67708 2004-06-24  Jim Meyering  <jim@meyering.net>
67709
67710         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
67711
67712 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67713
67714         * modules/argz: Omit "#include".
67715
67716         * MODULES.html.sh (func_all_modules): Add calloc, to match
67717         2004-06-01 addition of calloc module.
67718
67719 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67720
67721         * m4/argz.m4: New file, which is autoupdated from libtool.
67722
67723 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67724
67725         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
67726         libtool.
67727
67728 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67729
67730         * config/srclist-update: Don't insist on "USA." before the
67731         close-comment, as libtool omits the period and puts the */ on a
67732         separate line.
67733         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
67734         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
67735
67736 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
67737
67738         * modules/argz: New file.
67739         * MODULES.html.sh (func_all_modules): Add argz.
67740
67741 2004-06-12  Jim Meyering  <jim@meyering.net>
67742         and  Paul Eggert  <eggert@cs.ucla.edu>
67743
67744         * modules/hash (Files): Add lib/xalloc.h.
67745         * modules/pipe (Depends-on): Add wait-process.
67746         * modules/stat (Depends-on): Add xalloc.
67747         * modules/userspec (Files): Add lib/userspec.h.
67748         * modules/xstrto
67749
67750         Upgrade from gettext-0.13.
67751         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
67752         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
67753         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
67754
67755 2004-06-10  Jim Meyering  <jim@meyering.net>
67756
67757         * lib/calloc.c: New file.
67758
67759 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67760
67761         * lib/getdate.y (yylex): Allow space between sign and number.
67762         Problem reported by Dan Jacobson.
67763
67764 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67765
67766         Merge from coreutils CVS.
67767
67768         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
67769         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
67770         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
67771         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
67772         xstrtol.m4: Fix copyright date and/or serial number.
67773
67774         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
67775         See if we need an fchown replacement.
67776         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
67777         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
67778         and use the replacement function if we detect either defect.
67779
67780         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
67781         gl_UTIMECMP.
67782
67783 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67784         and  Jim Meyering  <jim@meyering.net>
67785
67786         Merge from coreutils CVS.
67787
67788         * lib/stat-macros.h: New file, with contents from file-type.h
67789         and coreutils' system.h.
67790         * lib/file-type.c: Include "stat-macros.h".
67791         * lib/file-type.h (file_type): Move all macro definitions to new file,
67792         stat-macros.h.
67793
67794         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
67795         Wrap old code with this conditional.
67796         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
67797         function that does not dereference symlinks.
67798         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
67799
67800         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
67801         dependency problems.
67802         (xreadlink): Accept new arg SIZE, for efficiency.
67803         All decls and uses changed.
67804         * lib/xreadlink.h: Include <stddef.h>, for size_t.
67805
67806         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
67807         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
67808
67809         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
67810         sysexits.h.
67811
67812 2004-06-01  Jim Meyering  <jim@meyering.net>
67813
67814         * m4/calloc.m4: New file.
67815
67816 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
67817
67818         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
67819         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
67820         Also, fix a typo in a diagnostic.
67821
67822 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67823
67824         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
67825         or AC_FUNC_REALLOC.
67826
67827 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67828
67829         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
67830         macros to be defined.
67831         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
67832         the allocator returns NULL because the requested size is zero.
67833
67834 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67835
67836         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
67837         var.  Add comment explaining why libc still defines it.  This
67838         merges the following patch from glibc:
67839         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
67840
67841 2004-05-20  Andreas Schwab  <schwab@suse.de>
67842
67843         * m4/free.m4: Replace free if it not known to work, not the other
67844         way round.
67845
67846 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67847
67848         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
67849         present in glibc since revision 1.1 of this file.
67850         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
67851         obstack_alignment_mask, obstack_alloc, obstack_base,
67852         obstack_blank, obstack_blank_fast, obstack_chunk_size,
67853         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
67854         obstack_grow0, obstack_init, obstack_int_grow,
67855         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
67856         obstack_next_free, obstack_object_size, obstack_ptr_grow,
67857         obstack_ptr_grow_fast, obstack_room): Remove declarations of
67858         nonexistent functions.
67859
67860 2004-05-18  Karl Berry  <karl@gnu.org>
67861
67862         * config/srclist.txt: break link for vasnprintf.c.
67863
67864 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67865
67866         Port obstack to the AS/400, where pointers are 16 bytes wide and
67867         you cannot cast an integer to a valid pointer.  This patch is
67868         currently waiting to be integrated into glibc; see
67869         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
67870
67871         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
67872         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
67873         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
67874         (struct obstack): temp member is now a union of a pointer and
67875         an integer, instead of an integer.  All integer uses changed.
67876         This does not affect the physical layout of struct obstack,
67877         except on hosts (like the AS/400) where the size or alignment of
67878         void * is greater than that of ptrdiff_t.
67879         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
67880         __STDC__)]: Store temporary in pointer member of union, not
67881         integer member.
67882         * lib/obstack.c: Include <stddef.h>, for offsetof.
67883         (struct fooalign): Remove; it doesn't need a name.
67884         (union fooround): Change double to long double, and add void *.
67885         (DEFAULT_ALIGNMENT): Use offsetof to compute.
67886         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
67887         not a macro.  Hence the values are always int; so remove all
67888         casts-to-int in uses.
67889
67890 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67891
67892         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
67893         we can get this patch merged into glibc.
67894
67895 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67896             Paul Eggert  <eggert@cs.ucla.edu>
67897
67898         * m4/argp: Depend on alloca.
67899
67900 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67901             Paul Eggert  <eggert@cs.ucla.edu>
67902
67903         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
67904         freecoding.
67905
67906 2004-05-17  Bruno Haible  <bruno@clisp.org>
67907
67908         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
67909         precision that consists of a '.' followed by an empty digit string.
67910         Patch by Tor Lillqvist <tml@iki.fi>.
67911
67912 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
67915         for backward compatibility with older code.  We need our own
67916         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
67917         it under some other name, and our alloca.h will define it.
67918
67919 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67920             Derek Price  <derek@ximbiot.com>
67921
67922         * lib/alloca.c: Include <alloca.h>, to get our interface.
67923         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
67924         include <alloca.h> first.  Use C89 prototype for alloca; this
67925         requires including <stddef.h> for size_t.  Use extern "C" if C++.
67926         Use #elif for simplicity, since we can assume C89 now.
67927         Don't try to source the system alloca.h since it will not be found
67928         and to prevent recursively including its replacement.
67929         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
67930         * lib/regex.c: Likewise.
67931
67932 2004-05-16  Derek Price  <derek@ximbiot.com>
67933             Paul Eggert  <eggert@cs.ucla.edu>
67934
67935         getline cleanup.  This changes the getndelim2 API: both order of
67936         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
67937         no delimiter).
67938
67939         * lib/getline.c: Don't include stddef.h or stdio.h, since our
67940         interface does that.
67941         (getline): Always use getdelim, so that we don't have two
67942         copies of this code.
67943         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
67944         if available.
67945         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
67946         (GETNDELIM2_MAXIMUM): New macro.
67947         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
67948         instead of the old practice of delim2==0.  All callers changed.
67949         Return -1 on overflow, instead of returning junk.
67950         Do not set *linesize unless allocation succeeds.
67951         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
67952         that we include sys/types.h.
67953         * lib/getnline.h: Likewise.
67954         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
67955         (getndelim2): Reorder arguments.
67956         * lib/getnline.c (getnline, getndelim):
67957         Don't discard the NMAX argument.
67958         (getnline): Invoke getndelim, to avoid code duplication.
67959         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
67960         of (size_t) -1 by callers of the getnline family.
67961
67962 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67963
67964         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
67965         Check for gettimeofday.
67966         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
67967         Check for settimeofday, stime.
67968
67969 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67970
67971         * lib/nanosleep.c (suspended): Change its type from int to
67972         sig_atomic_t volatile.
67973         (first_call): Make it private to rpl_nanosleep, and have it
67974         be zero initially as that's a bit faster.
67975         (my_usleep): Round up fractional times instead of truncating them,
67976         as this is the usual meaning for 'sleep'.
67977
67978         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
67979         doesn't work.
67980         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
67981         (ENOSYS): Define if not defined.
67982         (settime): Fall back on stime if it exists and settimeofday fails.
67983         But don't bother with fallbacks if a method fails with errno == EPERM.
67984
67985 2004-05-11  Jim Meyering  <jim@meyering.net>
67986
67987         Prior to this change, the save_cwd caller required read access to the
67988         current directory on most systems (ones with the fchdir function).
67989
67990         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
67991         fails, try write-only, and finally, resort to using xgetcwd.
67992
67993 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67994
67995         * lib/obstack.c, obstack.h: Import changes from libc.
67996
67997 2004-04-28  Bruno Haible  <bruno@clisp.org>
67998
67999         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
68000         also implicitly appends .exe to executables.
68001         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
68002         accepts Windows pathnames.
68003         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68004         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68005         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68006         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68007         Reported by Derek Robert Price <derek@ximbiot.com>.
68008
68009 2004-04-21  Karl Berry  <karl@gnu.org>
68010
68011         * config/srclist.txt (localcharset.c): break sync.
68012
68013 2004-04-20  Paul Eggert  <eggert@twinsun.com>
68014
68015         * m4/host-os.m4: Add a copyright notice.
68016
68017 2004-04-20  Jim Meyering  <jim@meyering.net>
68018
68019         Change UTILS_ to gl_ in AC_DEFINE'd names.
68020         Change utils_- and jm_-prefixed variables, too.
68021         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
68022         UTILS_FUNC_MKDIR_TRAILING_SLASH.
68023         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
68024
68025         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
68026         Don't emit trailing blanks.
68027         Also rename jm_-prefixed variables to have gl_ prefix.
68028
68029         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
68030         Also rename jm_-prefixed variables to have gl_ prefix.
68031
68032         * m4/jm-macros.m4: Reflect the renamings.
68033         * m4/prereq.m4: Likewise.
68034
68035 2004-04-20  Jim Meyering  <jim@meyering.net>
68036
68037         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
68038         memory.
68039
68040 2004-04-20  Jim Meyering  <jim@meyering.net>
68041             Bruno Haible  <bruno@clisp.org>
68042
68043         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
68044         memory when realloc fails.
68045
68046 2004-04-19  Jim Meyering  <jim@meyering.net>
68047
68048         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
68049         now that readutmp.c may call `free (0)'.
68050
68051 2004-04-19  Bruno Haible  <bruno@clisp.org>
68052
68053         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
68054         * m4/inttypes_h.m4: Likewise.
68055         * m4/stdint_h.m4: Likewise.
68056         * m4/intmax_t.m4: Likewise.
68057         * m4/uintmax_t.m4: Likewise.
68058
68059 2004-04-18  Jim Meyering  <jim@meyering.net>
68060
68061         * m4/prereq.m4: Don't forbid jm_ prefix.
68062
68063         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
68064         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
68065         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
68066         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
68067         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
68068         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
68069         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
68070         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
68071         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
68072         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
68073         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
68074         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
68075         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
68076         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
68077         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
68078         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
68079         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
68080         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
68081         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
68082
68083 2004-04-18  Jim Meyering  <jim@meyering.net>
68084
68085         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
68086         failure, don't leak memory and do call END_UTMP_ENT.
68087
68088 2004-04-16  Jim Meyering  <jim@meyering.net>
68089
68090         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
68091         coreutils' stat program.
68092         (gl_PREREQ): Don't require jm_PREREQ_STAT.
68093
68094 2004-04-11  Paul Eggert  <eggert@twinsun.com>
68095
68096         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
68097         C89.
68098         (CHAR_BIT): Remove, since we assume C89.
68099         Include <stdint.h> if available, as per current Autoconf CVS advice.
68100
68101 2004-03-31  Jim Meyering  <jim@meyering.net>
68102
68103         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
68104         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
68105         * m4/xalloc.m4: Likewise.
68106
68107 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68108
68109         Merge from coreutils.
68110
68111         * m4/inttostr.m4: New file.
68112         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
68113         Require AM_STDBOOL_H and gl_TIMESPEC instead.
68114         Require gl_CLOCK_TIME.
68115         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
68116
68117 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68118
68119         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
68120         not bool, to be more consistent with Unix conventions.
68121         Suggested by Bruno Haible.
68122
68123         Merge from coreutils.
68124
68125         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
68126         * lib/umaxtostr.c: New files.
68127
68128         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
68129         the usual <time.h> dance.
68130         (get_date): Change signature to support fractional time stamps.
68131         All callers changed.
68132         * lib/getdate.y: Include "getdate.h" first, as we can now
68133         assume C89 and don't need to worry about 'const'.
68134         Similarly, include "unlocked-io.h" near start, not in middle.
68135         Include <limits.h>.
68136         (textint.value): Use long int rather than int.
68137         (textint.digits): Use size_t rather than int.
68138         (BILLION, LOG10_BILLION): New constants.
68139         (parser_control): New member rel_ns.  Members day_ordinal,
68140         time_zone, month, day, hour, minutes, rel_year, rel_month,
68141         rel_day, rel_hour, rel_minutes, rel_seconds
68142         are now long int, not int.  Member seconds is now struct timespec,
68143         not int.  New member timespec_seen.  Members dates_seen, days_seen,
68144         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
68145         not int.
68146         (%union.intval): Now long int, not int.
68147         New member timespec.
68148         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
68149         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
68150         (spec): Now is a timespec or an item list.
68151         (timespec, items): New nonterminals.
68152         (time, rel, relunit, number, get_date):
68153         Add support for fractional seconds.
68154         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
68155         (gmtime, localtime, mktime): Remove decls; not needed with C89.
68156         (to_hour): First arg is now long int, not int.
68157         (to_year): Returns long int, not int.
68158         Don't treat year -70 like 70.
68159         (tm_diff): Returns long int, not int.
68160         (lookup_word): Use bool instead of int when appropriate.
68161         (yylex): Use size_t for count, not int.
68162         Detect overflow when parsing large integer constants.
68163         Add support for fractions.
68164         (get_date): Make pointers 'const' if possible.
68165         Use more-portable code to detect integer overflow.
68166         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
68167         Don't use ctime; it's not reliable if the year has >4 digits.
68168
68169         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
68170         This is for compatibility with BSD.
68171
68172         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
68173         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
68174         From coreutils' system.h.
68175
68176         * lib/userspec.c: Don't include "posixver.h".
68177         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
68178         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
68179         compatible extension.  Simplify code by removing a boolean int
68180         that was always nonzero if a string was nonnull.
68181
68182 2004-03-30  Jim Meyering  <jim@meyering.net>
68183
68184         Merge from coreutils.
68185
68186         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
68187         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
68188         on some systems one must include <grp.h> before it.
68189         Reported by Christian Krackowizer.
68190
68191 2004-03-30  Jim Meyering  <jim@meyering.net>
68192
68193         Merge from coreutils.
68194
68195         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
68196
68197         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
68198         an empty input stream.
68199
68200         * lib/readtokens.c: Include <stdbool.h>.
68201         (readtoken): Use `size_t' rather than int/long.
68202         All callers adjusted.
68203         Use `bool' rather than `int' where appropriate.
68204         Use memset rather than an explicit loop.
68205         Use x2nrealloc rather than xrealloc.
68206         Allow the use of `\0' as a delimiter.
68207         (readtokens): Likewise.
68208         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
68209
68210 2004-03-30  Jim Meyering  <jim@meyering.net>
68211
68212         * m4/realloc.m4: Remove file, since now it does no more than
68213         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
68214         the `configure.ac' section of module/realloc.
68215         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
68216
68217 2004-03-30  Bruno Haible  <bruno@clisp.org>
68218
68219         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
68220         nonnull.
68221
68222 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68223
68224         Merge changes to getloadavg.c from coreutils and Emacs.
68225
68226         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
68227         Define to an expression, not to the empty string.
68228         Include cloexec.h and xalloc.h.
68229         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
68230         Use set_cloexec_flag rather than rolling our own.
68231         * lib/cloexec.c, lib/cloexec.h: New files.
68232
68233 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68234
68235         * m4/cloexec.m4: New file.
68236
68237 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68238
68239         * lib/getopt.h: Sync with libc CVS.
68240
68241 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68242             Bruno Haible  <bruno@clisp.org>
68243
68244         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
68245         mbswidth.
68246
68247 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68248             Bruno Haible  <bruno@clisp.org>
68249
68250         * lib/mbswidth.h: Include <wchar.h> only if
68251         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
68252         <wchar.h>.
68253         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
68254
68255 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68256
68257         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
68258         Sync with libc CVS.
68259         * lib/getopt_int.h: New file, also synced from libc.
68260
68261 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68262
68263         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
68264         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
68265         Bring back getopt.c, getopt.h, getopt1.c.
68266
68267 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68268
68269         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
68270         All uses changed.  Check for sa_sigaction member; this fixes
68271         a bug first reported by Jason Andrade in
68272         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68273
68274 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68275
68276         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
68277         '#if' expressions.  Unlike the code it replaces, it does not
68278         depend on (defined _SC_PAGESIZE).  However, it does depend on
68279         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
68280         first reported by Jason Andrade in
68281         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68282
68283 2004-02-25  Simon Josefsson  <jas@extundo.com>
68284
68285         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
68286
68287 2004-02-25  Simon Josefsson  <jas@extundo.com>
68288
68289         * lib/strdup.h: New file.
68290         * lib/strdup.c: Include it.
68291         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
68292         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
68293
68294 2004-02-23  Karl Berry  <karl@gnu.org>
68295
68296         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
68297         (from fencepost.gnu.org:/gd/gnuorg).
68298
68299 2004-02-23  Karl Berry  <karl@gnu.org>
68300
68301         * config/srclistvars.sh (GNUORG) [karl]: redefine.
68302         * config/srclist.txt: add maintain/standards documents.
68303
68304 2004-02-18  Bruno Haible  <bruno@clisp.org>
68305
68306         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
68307         Reported by Derek Robert Price <derek@ximbiot.com>.
68308
68309 2004-02-16  Karl Berry  <karl@gnu.org>
68310
68311         * config/mkinstalldirs, install-sh: update from automake.
68312
68313 2004-02-06  Karl Berry  <karl@gnu.org>
68314
68315         * m4/po.m4: update from gettext 0.14.1.
68316
68317 2004-02-06  Karl Berry  <karl@gnu.org>
68318
68319         * lib/config.charset: update from gettext 0.14.1.
68320
68321 2004-02-05  Paul Eggert  <eggert@twinsun.com>
68322
68323         Add comments and code, prompted by suggestions from Bruno Haible
68324         for sh-quote.
68325         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
68326         describing the enum quoting_style values.
68327         * lib/quotearg.c (quotearg_alloc): New function.
68328         (quotearg_buffer_restyled): Treat lone { and } as special.
68329         Treat = as special.  Work around bug with older shells
68330         that "see" a '\' that is really the 2nd byte of a multibyte char.
68331         Quote empty string with shell_quoting_style.
68332
68333 2004-02-03  Bruno Haible  <bruno@clisp.org>
68334
68335         * m4/pipe.m4: New file, from GNU gettext.
68336
68337 2004-02-03  Bruno Haible  <bruno@clisp.org>
68338
68339         * lib/pipe.h: New file, from GNU gettext.
68340         * lib/pipe.c: New file, from GNU gettext.
68341
68342 2004-01-27  Bruno Haible  <bruno@clisp.org>
68343
68344         * m4/execute.m4: New file, from GNU gettext.
68345
68346 2004-01-27  Bruno Haible  <bruno@clisp.org>
68347
68348         * lib/execute.h: New file, from GNU gettext.
68349         * lib/execute.c: New file, from GNU gettext.
68350         * lib/w32spawn.h: New file, from GNU gettext.
68351
68352 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68353
68354         Merge from diffutils.
68355
68356         * lib/file-type.c (file_type): Add typed memory objects.
68357         * lib/file-type.h (S_TYPEISTMO): New macro.
68358
68359         * lib/c-stack.h (c_stack_action): Remove argv argument.
68360         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
68361         (die): Don't calculate message unless segv_action returns.
68362         (get_stack_location, min_address_from_argv, max_address_from_argv,
68363         volatile stack_base, volatile_stack_size): Remove.
68364         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
68365         that every segmentation violation is a stack overflow.  (Ouch!)
68366         See Debian bug 136249 (still outstanding) for more info about why
68367         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
68368
68369 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68370
68371         Exit-status fix from coreutils.
68372
68373         Use exit_failure consistently in place of EXIT_FAILURE,
68374         so that program exit statuses are consistent on failure.
68375
68376         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
68377         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
68378         * lib/argmatch.h: Comment fix to match the above.
68379         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
68380         Now a macro referring to exit_failure, instead of a separate
68381         variable.  Include "exitfail.h" to get it.
68382         * lib/xstrtol.h: Include "exitfail.h".
68383         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
68384
68385         * lib/long-options.c (parse_long_options): Use prototype
68386         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
68387         for clarity.
68388
68389 2004-01-21  Jim Meyering  <jim@meyering.net>
68390
68391         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
68392         so as not to conflict with a different-sized __mktime_internal
68393         function in GNU libc.
68394         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
68395         Problem building statically-linked `ls' reported by Michael Brunnbauer.
68396
68397 2004-01-20  Karl Berry  <karl@gnu.org>
68398
68399         * config/config.guess: update from config.
68400
68401         * config/srclistvars.sh: GNUWWWLICENSES for karl.
68402
68403 2004-01-20  Bruno Haible  <bruno@clisp.org>
68404
68405         Safer stack allocation.
68406         * lib/setenv.c: Include allocsa.h.
68407         (alloca): Remove fallback definition.
68408         (freea): Remove macro.
68409         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
68410         instead of freea.
68411
68412 2004-01-20  Bruno Haible  <bruno@clisp.org>
68413
68414         * m4/eealloc.m4: New file, from GNU gettext.
68415
68416 2004-01-20  Bruno Haible  <bruno@clisp.org>
68417
68418         * m4/allocsa.m4: New file, from GNU gettext.
68419
68420 2004-01-20  Bruno Haible  <bruno@clisp.org>
68421
68422         * lib/xallocsa.h: New file, from GNU gettext.
68423         * lib/xallocsa.c: New file, from GNU gettext.
68424
68425 2004-01-20  Bruno Haible  <bruno@clisp.org>
68426
68427         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
68428
68429 2004-01-20  Bruno Haible  <bruno@clisp.org>
68430
68431         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
68432         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
68433         specially.
68434
68435 2004-01-20  Bruno Haible  <bruno@clisp.org>
68436
68437         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
68438         patch.
68439
68440 2004-01-20  Bruno Haible  <bruno@clisp.org>
68441
68442         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
68443
68444 2004-01-20  Bruno Haible  <bruno@clisp.org>
68445
68446         * lib/eealloc.h: New file.
68447
68448 2004-01-20  Bruno Haible  <bruno@clisp.org>
68449
68450         * lib/binary-io.h: Avoid warnings on Cygwin.
68451
68452 2004-01-20  Bruno Haible  <bruno@clisp.org>
68453
68454         * lib/allocsa.h: New file, from GNU gettext.
68455         * lib/allocsa.c: New file, from GNU gettext.
68456
68457 2004-01-18  Karl Berry  <karl@gnu.org>
68458
68459         * doc/gpl.texi, doc/lgpl.texi: new files.
68460
68461 2004-01-18  Karl Berry  <karl@gnu.org>
68462
68463         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
68464         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
68465
68466 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68467
68468         Merge from coreutils.
68469
68470         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
68471         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
68472         (gl_DEFAULT_POSIX2_VERSION): Move
68473         the documentation from 'configure' into 'config.hin',
68474         so that 'configure --help' isn't burdened by it and
68475         we don't have to worry about its formatting there.
68476         Reword the documentation so that it's more succinct
68477         and can be run together into a single paragraph.
68478         * m4/same.m4 (gl_SAME): Check for pathconf.
68479
68480 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68481
68482         Merge from coreutils.
68483
68484         * lib/posixver.c: Include posixver.h.
68485
68486         * lib/same.c: Include <stdbool.h>, <limits.h>.
68487         (_POSIX_NAME_MAX): Define if not defined.
68488         (MIN): New macro.
68489         (same_name): If file names are silently truncated, report
68490         that the file names are the same if they are the same after
68491         the silent truncation.
68492
68493         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
68494         conversion function.
68495         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
68496         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
68497         longer needed.
68498
68499 2004-01-15  Jim Meyering  <jim@meyering.net>
68500
68501         Merge from coreutils.
68502
68503         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
68504         if no library is required.
68505         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
68506         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
68507         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
68508         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
68509         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
68510         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
68511         value, $ac_cv_search_crypt, if it's "none required".
68512         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
68513         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
68514         not gl_FUNC_GETLOADAVG.
68515         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
68516         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
68517
68518 2004-01-15  Jim Meyering  <jim@meyering.net>
68519
68520         Merge from coreutils.
68521
68522         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
68523         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
68524         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
68525
68526         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
68527         optional configure-time default.
68528
68529         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68530
68531         * lib/xreadlink.c (xreadlink): Correct outdated comment.
68532
68533 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
68534
68535         Merge from coreutils.
68536
68537         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
68538         value, $ac_cv_search_nanosleep, if it's "none required".
68539
68540 2004-01-14  Paul Eggert  <eggert@twinsun.com>
68541
68542         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
68543         with like-named macro in fnmatch.c.
68544         (EXT): Use an internal constant instead.
68545
68546         Merge fnmatch patches from glibc.
68547         * lib/fnmatch.c (mbsinit): Remove define.
68548         Add libc_hidden_ver (__fnmatch, fnmatch).
68549         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
68550         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
68551
68552 2004-01-14  Karl Berry  <karl@gnu.org>
68553
68554         * config/install-sh: update from automake.
68555
68556 2004-01-13  Karl Berry  <karl@gnu.org>
68557
68558         * config/install-sh: update from automake.
68559
68560 2004-01-09  Karl Berry  <karl@gnu.org>
68561
68562         * config/install-sh: update from automake.
68563
68564 2004-01-05  Karl Berry  <karl@gnu.org>
68565
68566         * config/config.{sub,guess}: update from config.
68567
68568 2003-12-31  Karl Berry  <karl@gnu.org>
68569
68570         * config/depcomp: update from automake.
68571
68572 2003-12-14  Karl Berry  <karl@gnu.org>
68573
68574         * lib/config.charset: update from gettext-runtime.
68575
68576 2003-12-03  Paul Eggert  <eggert@twinsun.com>
68577
68578         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
68579         Bug reported by Alfred M. Szmidt.
68580
68581 2003-12-03  Bruno Haible  <bruno@clisp.org>
68582
68583         * m4/gettext.m4: Upgrade from gettext-0.13.
68584         * m4/po.m4: Upgrade from gettext-0.13.
68585         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
68586         * m4/intmax.m4: New file, from gettext-0.13.
68587         * m4/printf-posix.m4: New file, from gettext-0.13.
68588
68589 2003-11-29  Karl Berry  <karl@gnu.org>
68590
68591         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
68592
68593 2003-11-25  Paul Eggert  <eggert@twinsun.com>
68594             Bruno Haible  <bruno@clisp.org>
68595
68596         * lib/printf-parse.h: Don't include sys/types.h.
68597         (ARG_NONE): New macro.
68598         (char_directive): Change type of *arg_index fields to size_t.
68599         * lib/printf-parse.c: Don't include sys/types.h.
68600         (SSIZE_MAX): Remove macro.
68601         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
68602         Remove unnecessary overflow check.
68603         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
68604         fields.
68605
68606 2003-11-25  Bruno Haible  <bruno@clisp.org>
68607
68608         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
68609
68610 2003-11-25  Bruno Haible  <bruno@clisp.org>
68611
68612         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
68613         gt_TYPE_SSIZE_T.
68614
68615 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68616
68617         * modules/alloca: Remove dependency on xalloc.
68618
68619 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68620
68621         * lib/alloca.c: Remove dependency on xalloc module.
68622         (xalloc_die): Remove.
68623         (memory_full) [!defined emacs]: New macro.
68624         [!defined emacs]: Don't include xalloc.h.
68625         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
68626         address arithmetic overflows.  Change datatypes a bit to avoid
68627         unnecessary casts.
68628
68629 2003-11-22  Jim Meyering  <jim@meyering.net>
68630
68631         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
68632         s/size/size_t/.
68633
68634 2003-11-21  Karl Berry  <karl@gnu.org>
68635
68636         * config/config.{sub,guess}: update from config.
68637
68638 2003-11-18  Karl Berry  <karl@gnu.org>
68639
68640         * config/config.{sub,guess}: update from config.
68641
68642         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
68643
68644 2003-11-17  Paul Eggert  <eggert@twinsun.com>
68645
68646         * README: Mention that S+T cannot overflow if S is the size of
68647         an existing object and T is sufficiently small.
68648
68649 2003-11-17  Jim Meyering  <jim@meyering.net>
68650
68651         On systems without utime and without a utimes function capable of
68652         dealing with a NULL struct utimbuf* argument, this utime replacement
68653         could -- in unusual circumstances -- leak a file descriptor.
68654         * lib/utime.c: Include <unistd.h> and <errno.h>.
68655         (utime_null): Be sure to close `fd' and to preserve errno.
68656         Reported by Geoff Collyer via Arnold Robbins.
68657
68658 2003-11-17  Bruno Haible  <bruno@clisp.org>
68659
68660         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
68661         (Depends-on): Add xsize.
68662
68663 2003-11-17  Bruno Haible  <bruno@clisp.org>
68664
68665         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
68666
68667 2003-11-17  Bruno Haible  <bruno@clisp.org>
68668
68669         * lib/vasnprintf.c (alloca): Remove fallback definition.
68670         (freea): Remove definition.
68671         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
68672         Reported by Paul Eggert.
68673
68674 2003-11-16  Paul Eggert  <eggert@twinsun.com>
68675             Bruno Haible  <bruno@clisp.org>
68676
68677         Protect against address arithmetic overflow.
68678         * lib/printf-args.h: Include stddef.h.
68679         (arguments): Change type of field 'count' to size_t.
68680         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
68681         'unsigned int' where appropriate.
68682         * lib/printf-parse.h: Include sys/types.h.
68683         (char_directive): Change type of *arg_index fields to ssize_t.
68684         (char_directives): Change type of fields 'count', max_*_length to
68685         size_t.
68686         * lib/printf-parse.c: Include sys/types.h and xsize.h.
68687         (SSIZE_MAX): Define fallback value.
68688         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
68689         instead of 'int' where appropriate. Check a_allocated, d_allocated
68690         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
68691         * lib/vasnprintf.c: Include xsize.h.
68692         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
68693         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
68694         overflow. Avoid wraparound when converting a width or precision from
68695         decimal to binary.
68696
68697 2003-11-16  Bruno Haible  <bruno@clisp.org>
68698
68699         Update from GNU gettext.
68700         * lib/printf-parse.c: Generalize to it can be compiled for wide
68701         strings.
68702         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
68703         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
68704         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
68705         SNPRINTF): New macros.
68706         Don't include <alloca.h> if the file is used inside libintl.
68707         (local_wcslen): New function, for Solaris 2.5.1.
68708         (VASNPRINTF): Use it instead of wcslen.
68709
68710 2003-11-16  Bruno Haible  <bruno@clisp.org>
68711
68712         * lib/xsize.h (xmax): New function.
68713         (xsum, xsum3, xsum4): Declare as "pure" functions.
68714
68715 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68716
68717         * modules/xalloc (Files): Undo latest change, since xalloc.h
68718         no longer needs SIZE_MAX or PTRDIFF_MAX.
68719
68720 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68721
68722         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
68723         gl_PTRDIFF_MAX.
68724
68725 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68726
68727         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
68728         "return", to pacify some unknown compiler.  Problem reported
68729         by Joerg Schilling.
68730
68731 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68732
68733         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
68734         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
68735         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
68736         heuristic is just as accurate as far as we know, and it removes a
68737         dependency on size_max.m4 and ptrdiff_max.m4.
68738
68739 2003-11-11  Bruno Haible  <bruno@clisp.org>
68740
68741         * modules/xsize (Files): Add m4/size_max.m4.
68742         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
68743
68744 2003-11-11  Bruno Haible  <bruno@clisp.org>
68745
68746         * m4/size_max.m4: New file.
68747         * m4/ptrdiff_max.m4: New file.
68748         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
68749         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
68750         (gl_XALLOC): Invoke it.
68751
68752 2003-11-11  Bruno Haible  <bruno@clisp.org>
68753
68754         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
68755         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
68756         defined.
68757
68758 2003-11-10  Paul Eggert  <eggert@twinsun.com>
68759
68760         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
68761         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
68762         rejected some allocations of exactly SIZE_MAX - 2 bytes.
68763         From Bruno Haible.
68764         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
68765         not (size_t) -1, since it's defined here.
68766
68767 2003-11-09  Karl Berry  <karl@gnu.org>
68768
68769         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
68770
68771 2003-11-06  Paul Eggert  <eggert@twinsun.com>
68772
68773         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
68774         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
68775         Reject sizes of exactly SIZE_MAX bytes.
68776         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
68777         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
68778
68779 2003-11-05  Bruno Haible  <bruno@clisp.org>
68780
68781         * lib/xsize.h: Include limits.h, to avoid a possible collision with
68782         SIZE_MAX defined in <limits.h> on Solaris.
68783
68784 2003-11-04  Jim Meyering  <jim@meyering.net>
68785
68786         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
68787         variable names, rather than @VAR@.
68788         * modules/poll: Likewise.
68789
68790 2003-11-04  Bruno Haible  <bruno@clisp.org>
68791
68792         * modules/xsize: New file.
68793         * modules/linebreak: Depend on xsize.
68794         * MODULES.html.sh (func_all_modules): Add xsize.
68795
68796 2003-11-04  Bruno Haible  <bruno@clisp.org>
68797
68798         * m4/xsize.m4: New file.
68799
68800 2003-11-04  Bruno Haible  <bruno@clisp.org>
68801
68802         * lib/xsize.h: New file.
68803         * lib/linebreak.c: Include xsize.h.
68804         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
68805         argument for overflow.
68806         Suggested by Paul Eggert.
68807
68808 2003-11-03  Karl Berry  <karl@gnu.org>
68809
68810         * config/config.{guess,sub}: update from config.
68811
68812 2003-11-03  Jim Meyering  <jim@meyering.net>
68813
68814         * modules/userspec (lib_SOURCES): Add userspec.h.
68815         (Include): Add "userspec.h".
68816         Improve description.
68817
68818 2003-11-03  Jim Meyering  <jim@meyering.net>
68819
68820         * lib/userspec.c: Include "userspec.h".
68821         * lib/userspec.h: New file.
68822
68823 2003-11-03  Bruno Haible  <bruno@clisp.org>
68824
68825         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
68826
68827 2003-11-03  Bruno Haible  <bruno@clisp.org>
68828
68829         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
68830         available, to avoid (extremely rare) race condition.
68831         Suggested by Paul Eggert.
68832
68833 2003-11-02  Karl Berry  <karl@gnu.org>
68834
68835         * config/srclist.txt (vasprintf.c): sync broken, sigh.
68836
68837 2003-10-31  Paul Eggert  <eggert@twinsun.com>
68838
68839         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
68840         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
68841         (read_filesystem_list): Set and use me_type_malloced.
68842         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
68843         whatever the type happens to be), for brevity and consistency.
68844         Check for size calculation overflow on Alphas running OSF/1.
68845
68846 2003-10-31  Jim Meyering  <jim@meyering.net>
68847
68848         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
68849
68850         * lib/linebuffer.c: Include <string.h> for declaration of memset.
68851
68852 2003-10-30  Paul Eggert  <eggert@twinsun.com>
68853             Bruno Haible  <bruno@clisp.org>
68854
68855         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
68856         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
68857
68858 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68859
68860         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
68861         netbsd*-gnu*.  Suggested by Robert Millan.
68862
68863 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68864
68865         * modules/group-member: Depend on stdbool.
68866
68867 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68868
68869         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
68870
68871 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68872
68873         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
68874         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
68875         after the 'gnu' in these cases.  This fixes some bugs in the
68876         previous change, and is based on suggestions by Robert Millan.
68877
68878 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68879
68880         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
68881         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
68882         no longer needed.
68883         * lib/quotearg.c (quotearg_n_options): Use it.
68884         * lib/group-member.c: Include <stdbool.h>.
68885         (free_group_info): Arg is now const *; don't free arg.
68886         (get_group_info): Now returns bool and accepts struct group_info *,
68887         rather than returning a malloc'ed struct group_info *.
68888         All uses changed.  Check for overflow in internal size calculation.
68889
68890         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
68891         rather than xmalloc/xrealloc.
68892         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
68893         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
68894         conformance bug: the old code used a pointer after freeing the
68895         storage that it addressed.
68896         * lib/hash.c (hash_initialize): Simplify the code by using
68897         xalloc_oversized rather than doing it by hand.
68898         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
68899         the buffer preserved.  Use free and xmalloc instead.
68900         * lib/quotearg.c (quotearg_n_options): Likewise.
68901         Use a simpler test for size overflow.  Don't use xalloc_oversized
68902         because unsigned int might be wider than size_t (!); this suggests
68903         that we should switch from unsigned int to size_t for slot numbers.
68904
68905 2003-10-28  Paul Eggert  <eggert@twinsun.com>
68906
68907         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
68908         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
68909         NetBSD kernels.  Requested by Richard Stallman.
68910
68911 2003-10-27  Paul Eggert  <eggert@twinsun.com>
68912
68913         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
68914         to allocate the returned structure.  Do not allocate a subarray,
68915         as x2nrealloc will do that.
68916         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
68917         instead of xnrealloc.
68918         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
68919
68920 2003-10-27  Bruno Haible  <bruno@clisp.org>
68921
68922         * lib/stdbool_.h: Better support for BeOS.
68923
68924 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68925
68926         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
68927         now uses inline.
68928
68929 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68930
68931         * lib/xalloc.h (xalloc_oversized): New static inline function, for
68932         callers that want to do their own size-overflow checking.  Include
68933         <stdbool.h>, since xalloc_oversized returns bool.
68934         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
68935         to use xalloc_oversized.
68936
68937         Add two functions x2realloc, x2nrealloc, for programs that grow
68938         arrays dynamically by doubling their sizes.
68939         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
68940         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
68941         New functions.
68942
68943         Port to C99 semantics for 'inline' of external functions.
68944         Bug reported by Bruno Haible.
68945         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
68946         with the old contents of xnmalloc.
68947         (xnmalloc, xmalloc): Use it.
68948         (xnrealloc_inline): New static inline function,
68949         with the old contents of xnrealloc.
68950         (xnrealloc, xrealloc): Use it.
68951
68952         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
68953         that.
68954
68955 2003-10-26  Karl Berry  <karl@gnu.org>
68956
68957         * config/srclist.txt (COPYING.DOC): no longer available from
68958         /gd/gnuorg; don't know where the ultimate source is.
68959
68960 2003-10-25  Paul Eggert  <eggert@twinsun.com>
68961
68962         Fix several address-calculation bugs in the hash modules,
68963         plus some minor code cleanup.
68964
68965         * lib/hash.h: Include <stdbool.h>, for bool.
68966         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
68967         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
68968         hash_get_n_entries, hash_get_max_bucket_length,
68969         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
68970         hash_rehash): Use size_t rather than unsigned.
68971         * lib/hash.c (struct hash_table, hash_get_n_buckets,
68972         hash_get_n_buckets_used, hash_get_n_entries,
68973         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
68974         hash_get_entries, hash_do_for_each, hash_string, is_prime,
68975         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
68976         Likewise.
68977         (SIZE_MAX): Define if not defined.
68978         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
68979         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
68980         hash_print):
68981         Use const * when possible.
68982         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
68983         (check_tuning): Fix bug: if tuning parameters were very close to
68984         0 or 1, rounding errors could have caused subscript violations.
68985         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
68986         (hash_initialize): Add 'fail:' label
68987         to free table and return NULL, and use it to simplify code.
68988         Use calloc rather than clearing the storage ourself.
68989         (hash_initialize, hash_rehash): Check for arithmetic overflow in
68990         buffer size calculations.
68991         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
68992         Include <stddef.h>, for size_t.
68993         * lib/hash-pjw.c (hash_pjw): Likewise.
68994         Switch to method described by Bruno Haible.
68995         Include <limits.h>, for CHAR_BIT.
68996         (SIZE_BITS): New macro.
68997
68998 2003-10-23  Paul Eggert  <eggert@twinsun.com>
68999
69000         * m4/getline.m4 (AM_FUNC_GETLINE):
69001         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
69002         hosts.  Problem reported by Derek Robert Price in
69003         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
69004         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
69005         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
69006
69007 2003-10-21  Paul Eggert  <eggert@twinsun.com>
69008
69009         * lib/getndelim2.c (getndelim2): When size calculation overflows,
69010         ceiling the allocation at NMAX bytes rather than silently
69011         discarding input bytes before NMAX is reached.  This makes
69012         a difference only if NMAX exceeds SIZE_MAX / 2.
69013
69014         * lib/obstack.c: Merge from glibc.
69015         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
69016         Add libc_hidden_def (_obstack_newchunk).
69017         (_obstack_free) [! defined _LIBC]: Remove.
69018         [defined _LIBC]: Make a strong alias from obstack_free, rather than
69019         a clone of the function body.
69020         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
69021         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
69022
69023         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
69024         glibc.
69025         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
69026         arg to memcpy.
69027
69028         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
69029         (obstack_ptr_grow_fast, obstack_int_grow_fast):
69030         Don't use lvalue casts, as GCC plans to remove support for them
69031         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
69032         was also present in the non-GCC version, indicating that this
69033         code had always been buggy and had never been widely used.
69034         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
69035         Use the fast variant of each macro, rather than copying the
69036         definiens of the fast variant; that way, we'll be more likely to
69037         catch future bugs in the fast variants.
69038
69039 2003-10-20  Bruno Haible  <bruno@clisp.org>
69040
69041         * modules/wait-process: New file.
69042         * MODULES.html.sh (func_all_modules): Add wait-process.
69043
69044 2003-10-20  Bruno Haible  <bruno@clisp.org>
69045
69046         * m4/wait-process.m4: New file.
69047
69048 2003-10-20  Bruno Haible  <bruno@clisp.org>
69049
69050         * lib/wait-process.h: New file, from GNU gettext.
69051         * lib/wait-process.c: New file, from GNU gettext.
69052
69053 2003-10-19  Jim Meyering  <jim@meyering.net>
69054
69055         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
69056         HPUX 10.20.
69057
69058 2003-10-18  Karl Berry  <karl@gnu.org>
69059
69060         * config/config.guess: update from config.
69061
69062 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69063
69064         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
69065         (getgroups): First arg is int, not size_t.
69066         Don't let 'free' mangle errno.
69067
69068 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69069
69070         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
69071
69072 2003-10-16  Karl Berry  <karl@gnu.org>
69073
69074         * config/config.{guess,sub}: update from config.
69075
69076 2003-10-16  Jim Meyering  <jim@meyering.net>
69077
69078         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
69079         memcpy.
69080
69081 2003-10-15  Paul Eggert  <eggert@twinsun.com>
69082
69083         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
69084         (SIZE_MAX): Remove.
69085         (new_exclude, add_exclude_file): Initial size no longer needs to
69086         be a power of 2.
69087         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
69088         our own address arithmetic overflow checking.
69089
69090         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
69091         (fnmatch): Do not alloca more than 2000 wide characters;
69092         instead, use malloc for large buffers.
69093         Check for address arithmetic overflow, and return -1
69094         with errno set to ENOMEM in that case.
69095         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
69096         (NEW_PATTERN): Do not alloca more than 8000 bytes;
69097         instead, return -1.  Check for address arithmetic overflow.
69098
69099 2003-10-14  Paul Eggert  <eggert@twinsun.com>
69100
69101         Handle invalid suffixes and overflow independently, so that
69102         callers can treat them independently as needed.  Fix some bugs in
69103         suffix handling, e.g., "100k@" was not diagnosed as an invalid
69104         suffix for a human-readable blocksize.  The major caller-visible
69105         change is the addition of a new
69106         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
69107         that both overflow and suffix chars were found.
69108
69109         * lib/human.c (humblock): Don't check separately for invalid suffix
69110         char; that is xstrtoumax's job (now that its bug is fixed).
69111         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
69112         INTMAX_MAX]: New macros.
69113         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
69114         TYPE_MAXIMUM): New macros.
69115         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
69116         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
69117         if overflow occurs, as it's what __strtol does and it's more useful
69118         in practice.
69119         (__xstrtol): If __strtol reports some error other than ERANGE,
69120         reflect it to the caller as LONGINT_INVALID.  If it reports
69121         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
69122         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
69123         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
69124         value.
69125         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
69126         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
69127         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
69128         [defined UINTMAX_MAX]: New macros.
69129
69130 2003-10-14  Bruno Haible  <bruno@clisp.org>
69131
69132         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
69133
69134 2003-10-14  Bruno Haible  <bruno@clisp.org>
69135
69136         * m4/sig_atomic_t: New file, from GNU gettext.
69137         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
69138
69139 2003-10-14  Bruno Haible  <bruno@clisp.org>
69140
69141         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
69142         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
69143         Also use volatile where needed.
69144
69145 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69146
69147         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
69148         Change maintainer from Bruno Haible to 'all'.
69149
69150 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69151
69152         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
69153
69154 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69155
69156         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
69157         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
69158         and define in terms of the other primitives.
69159         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
69160         (SIZE_MAX): Define if not already defined.
69161         (array_size_overflow): New function.
69162         (xalloc_die): Abort instead of exiting if 'error' returns.
69163         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
69164         (xmalloc, xrealloc): Use them.
69165         (xcalloc): Check for address arithmetic overflow.
69166         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
69167         a bit faster than strcpy.
69168
69169 2003-10-10  Simon Josefsson  <jas@extundo.com>
69170
69171         * modules/argp (Depends-on): Add restrict and strcase.
69172
69173 2003-10-10  Simon Josefsson  <jas@extundo.com>
69174
69175         * m4/argp.m4: Add AC_C_INLINE.
69176
69177 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69178
69179         Merge getpass from libc, plus a few fixes.
69180
69181         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
69182         Include <stdbool.h>.
69183         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
69184         __fsetlocking to empty.
69185         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
69186         do include <bits/libc-lock.h>.
69187         Do not include <fcntl.h>; not needed.
69188         [_LIBC]: Include <wchar.h>.
69189         (NOTCANCEL_MODE): New macro.
69190         (flockfile, funlockfile) [_LIBC]: New macros.
69191         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
69192         [!_LIBC]: New macros.
69193         (call_fclose): New function.
69194         (getpass): Use it.  Save tty stream separately; this simplifies the
69195         code and makes it more reliable if stdin happens to equal stdout.
69196         Invoke __fsetlocking on tty.
69197         Handle thread cancellation if needed.
69198         Namespace cleanup (use __tcgetattr, __getline).
69199         Use bool for Booleans.
69200         [USE_IN_LIBIO]: Handle wide streams.
69201         [!_LIBC]: Unconditionally do the fseek, since we don't know what
69202         stream might go where.
69203
69204         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
69205         doesn't have to include <stdio.h> before us.
69206         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
69207         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
69208         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
69209         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
69210         if not declared, so that we can use getpass.c code from libc without
69211         rewriting it.
69212         (flockfile, ftrylockfile, funlockfile): New macros.
69213
69214 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69215
69216         * modules/getpass: Depend on stdbool.
69217
69218 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69219
69220         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
69221
69222 2003-10-07  Karl Berry  <karl@gnu.org>
69223
69224         * config/config.{guess,sub}: update from config.
69225
69226 2003-10-06  Jim Meyering  <jim@meyering.net>
69227             Bruno Haible  <bruno@clisp.org>
69228
69229         This lets translators provide better translations for the
69230         "Written by ..." part of --version output.
69231         * lib/version-etc.h: Include stdarg.h.
69232         (version_etc_copyright): Declare as readonly.
69233         (version_etc): Make this function variadic with a NULL-terminated list
69234         of author name strings.
69235         (version_etc_va): New declaration.
69236         * lib/version-etc.c: Include stdarg.h, stdlib.h.
69237         (version_etc_copyright): Declare as readonly.
69238         (version_etc_va): New function. Provide a different translatable string
69239         for each possible number of authors < 10. Abbreviate when there are 10
69240         authors or more.
69241         (version_etc): Make this function variadic. Call version_etc_va.
69242         Suggestion from Gary V. Vaughan.
69243
69244         * lib/long-options.h (parse_long_options): Change prototype: the
69245         authors string is moved to the end and becomes variadic.
69246         * lib/long-options.c: Include stdarg.h.
69247         (parse_long_options): Make this function variadic, too.
69248         Call version_etc_va, not version_etc.
69249
69250 2003-10-06  Bruno Haible  <bruno@clisp.org>
69251
69252         * modules/version-etc-2: Remove file.
69253         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
69254
69255 2003-10-06  Bruno Haible  <bruno@clisp.org>
69256
69257         * modules/fatal-signal: New file.
69258         * MODULES.html.sh (func_all_modules): Add fatal-signal.
69259
69260 2003-10-06  Bruno Haible  <bruno@clisp.org>
69261
69262         * m4/fatal-signal.m4: New file.
69263         * m4/signalblocking.m4: New file, from GNU gettext.
69264
69265 2003-10-06  Bruno Haible  <bruno@clisp.org>
69266
69267         * lib/version-etc-2.h: Remove file.
69268         * lib/version-etc-2.c: Remove file.
69269
69270 2003-10-06  Bruno Haible  <bruno@clisp.org>
69271
69272         * lib/fatal-signal.h: New file, from GNU gettext.
69273         * lib/fatal-signal.c: New file, from GNU gettext.
69274
69275 2003-10-05  Paul Eggert  <eggert@twinsun.com>
69276
69277         * README: Rework advice for preventing empty .o files.
69278         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
69279         not <sys/types.h>.
69280
69281 2003-10-04  Karl Berry  <karl@gnu.org>
69282
69283         * lib/argp*: update from libc.
69284
69285 2003-10-04  Karl Berry  <karl@gnu.org>
69286
69287         * config/config.{guess,sub}: update from config.
69288
69289 2003-10-02  Bruno Haible  <bruno@clisp.org>
69290
69291         * modules/lchown (Include): Add lchown.h.
69292         * modules/time_r (Include): Use "..." syntax.
69293         * modules/xgetdomainname (Include): Add xgetdomainname.h.
69294
69295 2003-10-01  Simon Josefsson  <jas@extundo.com>
69296
69297         * MODULES.html.sh (func_all_modules): Move gethostname from section
69298         'based on' to section 'lacking' POSIX:2001.
69299
69300 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
69301
69302         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
69303         to output mode on the same stream.
69304
69305 2003-09-29  Paul Eggert  <eggert@twinsun.com>
69306
69307         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
69308         Fix arg typo in previous patch.
69309
69310 2003-09-28  Jim Meyering  <jim@meyering.net>
69311
69312         * lib/error.c: Correct cpp indentation.
69313
69314 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69315
69316         * modules/free: New file.
69317
69318 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69319
69320         * m4/free.m4: New file.
69321
69322 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69323
69324         * lib/minmax.h (MIN, MAX)
69325         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
69326         Omit the special code that used __typeof__, since we worry that
69327         it could be more trouble than it's worth.  See:
69328         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
69329         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
69330
69331         * lib/free.c: New file.
69332
69333 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
69334
69335         Trivial fixes to Makefile.am parts of module listings.
69336         * modules/strstr: Append strstr.h to lib_SOURCES.
69337         * modules/strcase: Likewise, for strcase.h.
69338
69339 2003-09-27  Karl Berry  <karl@gnu.org>
69340
69341         * config/mkinstalldirs: update from automake.
69342
69343 2003-09-26  Paul Eggert  <eggert@twinsun.com>
69344
69345         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
69346         (error_tail): Do not loop, reallocating temporary buffer, since
69347         the output cannot contain more wide characters than the input
69348         contains bytes, the size must be big enough already.  This avoids
69349         one potential size overflow calculation.  Check for size overflow
69350         when calculating temporary buffer size.  Free temporary buffer
69351         when done, if it was allocated with malloc; this plugs a memory
69352         leak.  Remove casts from void * to pointers, that are no longer
69353         needed now that we're assuming C89 or better.
69354
69355         Merge error changes from glibc.
69356
69357         * lib/error.c, error.h: Update copyright notice header to match glibc.
69358         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
69359         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
69360         Disable cancellation while printing error.
69361         * lib/error.h: Prepend __ to parameter names.
69362
69363 2003-09-26  Jim Meyering  <jim@meyering.net>
69364
69365         * lib/error.c (error_tail): Move some declarations
69366         into inner scope where the local variables are used.
69367
69368 2003-09-26  Bruno Haible  <bruno@clisp.org>
69369
69370         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
69371         stpncpy().
69372         Don't define stpncpy through config.h; it's now done through stpncpy.h.
69373
69374 2003-09-26  Bruno Haible  <bruno@clisp.org>
69375
69376         * lib/stpncpy.h (gnu_stpncpy): New declaration.
69377         (stpncpy): Define as alias for gnu_stpncpy.
69378         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
69379
69380 2003-09-25  Simon Josefsson  <jas@extundo.com>
69381
69382         * lib/xgetdomainname.h: New file.
69383         * lib/xgetdomainname.c: New file.
69384
69385 2003-09-25  Simon Josefsson  <jas@extundo.com>
69386             Bruno Haible  <bruno@clisp.org>
69387
69388         * modules/getdomainname: New file.
69389         * modules/xgetdomainname: New file.
69390         * MODULES.html.sh (func_all_modules): Add getdomainname,
69391         xgetdomainname.
69392
69393 2003-09-25  Simon Josefsson  <jas@extundo.com>
69394             Bruno Haible  <bruno@clisp.org>
69395
69396         * m4/getdomainname.m4: New file.
69397
69398 2003-09-25  Simon Josefsson  <jas@extundo.com>
69399             Bruno Haible  <bruno@clisp.org>
69400
69401         * lib/getdomainname.h: New file.
69402         * lib/getdomainname.c: New file.
69403
69404 2003-09-25  Karl Berry  <karl@gnu.org>
69405
69406         * lib/argp-fmtstream.c, argp-help.c: update from libc.
69407
69408 2003-09-25  Karl Berry  <karl@gnu.org>
69409
69410         * config/install-sh: update from automake.
69411
69412 2003-09-25  Bruno Haible  <bruno@clisp.org>
69413
69414         * modules/version-etc-2: New file, from modules/version-etc with
69415         modifications.
69416         * MODULES.html.sh (func_all_modules): Add version-etc-2.
69417
69418 2003-09-25  Bruno Haible  <bruno@clisp.org>
69419
69420         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
69421         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
69422
69423 2003-09-24  Simon Josefsson  <jas@extundo.com>
69424
69425         * modules/xgethostname: Add xgethostname.h.
69426
69427 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69428
69429         * lib/linebuffer.c (freebuffer): Don't free the argument, just
69430         the buffer associated with the argument.  Bug reported by
69431         Simon Josefsson.
69432
69433 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69434
69435         * README: Document assumptions that 'int' is at least 32 bits
69436         wide, that integer arithmetic is 2's complement without overflow,
69437         that there are no holes in integer values, that adding sizes of
69438         two nonoverlapping objects can't overflow, and that all-bits-zero
69439         yields scalar zero.  Fix spelling and capitalization typos.
69440
69441 2003-09-19  Karl Berry  <karl@gnu.org>
69442
69443         * lib/argp.h: update from libc.
69444
69445 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69446
69447         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
69448         to avoid spurious warnings like "AC_RUN_IFELSE was called before
69449         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
69450
69451 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69452
69453         * gnulib-tool: Use "test -h", not "test -L", for portability
69454         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
69455         (tags_regexp): Remove, since \| doesn't conform to POSIX.
69456         (sed_extract_prog): Issue s commands one-by-one, rather than
69457         using \| in one s command.
69458
69459 2003-09-16  Paul Eggert  <eggert@twinsun.com>
69460
69461         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
69462         input error, instead of returning NULL the next time we are called
69463         (and therefore losing track of errno).
69464
69465 2003-09-16  Bruno Haible  <bruno@clisp.org>
69466
69467         * gnulib-tool (func_create_testdir): Warn about duplicated
69468         dependencies.
69469
69470 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69471
69472         * modules/argmatch, modules/fatal, modules/obstack,
69473         modules/xalloc, modules/xgethostname: Sort dependencies by
69474         importance, not alphabetically.
69475
69476 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69477
69478         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
69479         fails, so that the caller gets the proper errno.
69480
69481         * lib/readutmp.c (read_utmp): Likewise.
69482         Check for fstat error.  Close stream and free storage
69483         when failing.
69484
69485 2003-09-14  Karl Berry  <karl@gnu.org>
69486
69487         * config/srclist.txt (strdup.c): disable for c89 changes.
69488
69489 2003-09-14  Jim Meyering  <jim@meyering.net>
69490
69491         * lib/getloadavg.c: Correct cpp indentation.
69492         * lib/strdup.c: Likewise.
69493         * lib/vasnprintf.c: Likewise.
69494
69495 2003-09-14  Bruno Haible  <bruno@clisp.org>
69496
69497         * modules/fwriteerror: New file.
69498         * MODULES.html.sh (func_all_modules): Add fwriteerror.
69499
69500 2003-09-14  Bruno Haible  <bruno@clisp.org>
69501
69502         * lib/fwriteerror.h: New file.
69503         * lib/fwriteerror.c: New file.
69504
69505 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69506
69507         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
69508         modules/xgethostname, modules/xalloc: Depend on exit.
69509
69510 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69511
69512         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
69513
69514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
69515         and AC_MINIX, too, so that their extensions are available.
69516
69517         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
69518         This macro has been superseded by gl_BACKUPFILE.
69519
69520         More patches to assume C89 or better.
69521
69522         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
69523
69524         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
69525         unconditionally.
69526         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
69527         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
69528         Include <string.h>, <stdlib.h> unconditionally.
69529         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
69530         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
69531         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
69532         headers or for string.h.
69533         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
69534         or strtoul.
69535
69536         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
69537         headers.
69538         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
69539         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69540         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
69541         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
69542         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69543         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
69544         memcpy, memset.
69545         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
69546         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
69547         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
69548         strtol.
69549         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
69550         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
69551         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
69552         strtoul.
69553
69554 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69555
69556         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
69557         * lib/obstack.c [!defined _LIBC]: Likewise.
69558         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
69559         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
69560         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
69561
69562         More changes to assume C89 or better.
69563
69564         * lib/error.c (error_tail): Assume vprintf.
69565
69566         * lib/argmatch.c (getenv): Remove decl.
69567         * lib/progreloc.c (get_full_program_name): Define via prototype.
69568         * lib/setenv.c (clearenv): Likewise.
69569         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
69570         needed.
69571         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
69572         (malloc, memcpy): Remove decls.
69573         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
69574         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
69575         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69576         (memcpy): Remove macro.
69577         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
69578         (__P): Remove.  All uses removed.
69579         (PTR): Remove.  All uses changed to void *.
69580         (CHAR_BIT, NULL): Remove.
69581         (spaces, zeros, memset_space, memset_zero)
69582         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
69583         Remove.
69584         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
69585         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
69586         Define with prototype.
69587         Remove now-unnecessary prototype decl.
69588         (extra_args_spec): Assume ANSI C.  All uses changed.
69589         (extra_args_spec_iso): Remove.
69590         (my_strftime, emacs_strftimeu): Define via prototype.
69591         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
69592         unconditionally.
69593         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
69594         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
69595         (strtoul, strtol): Remove decls.
69596         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
69597         LONG_MAX): Remove.
69598         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69599         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
69600         (LOCALE_PARAM_PROTO): New macro.
69601         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
69602         (INTERNAL (strtol), strtol): Define with a prototype.
69603         (PARAMS): Remove.  All uses removed.
69604         * lib/tempname.c: Include <string.h> unconditionally.
69605         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
69606         * lib/xgethostname.c (main): Define with a prototype.
69607         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
69608         Include <stdlib.h> unconditionally.
69609         (calloc, malloc, realloc, free): Remove decls.
69610         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
69611         Include <stdlib.h> unconditionally.  Sort include file names.
69612         (strtod): Remove.
69613         (xstrtod): Define with a prototype.
69614         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
69615         (strtol, strtoul): Remove decls.
69616
69617 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69618
69619         More patches to assume C89 or better.
69620         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
69621         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
69622         string.h, memchr, STDC_HEADERS.
69623
69624 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69625
69626         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
69627         Include <stdlib.h>, <string.h> unconditionally.
69628         Remove now-unnecessary cast to char *.
69629         * lib/strnlen.c: Include <string.h> unconditionally.
69630         * lib/yesno.c (yesno): Define with a prototype.
69631
69632 2003-09-11  Bruno Haible  <bruno@clisp.org>
69633
69634         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
69635
69636 2003-09-10  Jim Meyering  <jim@meyering.net>
69637
69638         * lib/error.c: Correct indentation of cpp directives.
69639
69640 2003-09-10  Bruno Haible  <bruno@clisp.org>
69641
69642         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
69643         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
69644         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
69645         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
69646         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
69647         <stdlib.h> and <string.h> checks.
69648         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
69649         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
69650
69651 2003-09-10  Bruno Haible  <bruno@clisp.org>
69652
69653         * lib/strcspn.c: Include <string.h> unconditionally.
69654         * lib/strpbrk.c: Include <string.h> unconditionally.
69655         * lib/strstr.c: Include <string.h> unconditionally.
69656         * lib/unicodeio.c: Include <string.h> unconditionally.
69657         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
69658         * lib/unsetenv.c: Likewise.
69659         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
69660         * lib/yesno.c: Include <stdlib.h> unconditionally.
69661         (rpmatch): Add prototype.
69662
69663 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69664
69665         More patches to assume C89 or better.
69666         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
69667         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
69668         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
69669         or for string.h.
69670         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
69671         stdlib.h.
69672         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
69673         C headers.
69674         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
69675         string.h.
69676         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
69677         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
69678         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
69679         or for string.h.
69680         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
69681         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
69682         C headers.
69683         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
69684         memcpy.
69685         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
69686         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
69687         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
69688         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
69689         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
69690         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
69691         string.h, free.
69692         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
69693         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
69694         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
69695         C headers, or for string.h.
69696         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
69697         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
69698         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
69699         headers, memory.h, stdlib.h, string.h, strings.h.
69700         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
69701         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
69702         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
69703         strchr.
69704         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
69705         headers, memory.h, string.h.
69706         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
69707         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
69708         free.
69709         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
69710         headers.
69711         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
69712         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
69713         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
69714         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
69715         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
69716
69717 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69718
69719         More K&R removal.
69720
69721         * lib/acosl.c (main): Use a prototype.
69722         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
69723         tanl.c: Likewise.
69724
69725         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
69726
69727         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
69728         (getopt, etopt_long, getopt_long_only, _getopt_internal)
69729         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
69730         with a prototype.
69731         * lib/getopt.c (const): Remove macro.
69732         Include <string.h> unconditionally.
69733         (my_index): Remove; all uses changed to strchr.
69734         (strlen): Remove decl.
69735         (exchange): Remove forward decl; no longer needed.
69736         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
69737         Define with prototype.
69738         * lib/getopt1.c (const): Remove macro.
69739         (getopt_long, getopt_long_only, main): Define with prototype.
69740
69741         * lib/getugroups.c: Include <string.h> unconditionally.
69742
69743         * lib/getusershell.c: Include <stdlib.h> unconditionally.
69744         (getusershell, setusershell, endusershell, readname, main):
69745         Define with prototypes.
69746
69747         * lib/group-member.c: Include group-member.h first.
69748         Include <stdlib.h> unconditionally.
69749
69750         * lib/hard-locale.c: Include hard-locale.h first.
69751         Include <stdlib.h>, <string.h> unconditionally.
69752
69753         * lib/hash.c (free, malloc): Remove decls.
69754         Include <stdlib.h> unconditionally.
69755
69756         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
69757         (getenv): Do not declare.
69758
69759         * lib/idcache.c: Include <string.h> unconditionally.
69760
69761         * lib/long-options.c: Include long-options.h first, to test interface.
69762         Include <stdlib.h> unconditionally.
69763
69764         * lib/makepath.c: Include makepath.h first, to test interface.
69765         Include <stdlib.h> and <string.h> unconditionally.
69766
69767         * lib/linebuffer.c: Include <stdlib.h>.
69768         (free): Remove decl.
69769
69770         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
69771         stddef.h. rpl_malloc returns void *, not char *.
69772         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
69773         prototype.
69774
69775         * lib/md5.h: Include <limits.h> unconditionally.
69776         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
69777         (__P): Remove; all uses removed.
69778         * lib/md5.c: Include "md5.h" first.
69779         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
69780         md5_buffer, md5_process_bytes, md5_process_block):
69781         Define with prototypes.
69782         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
69783         * lib/sha.c: Include "sha.h" first.
69784         Include <stdlib.h>, <string.h> unconditionally.
69785
69786         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
69787         * lib/memcmp.c (__ptr_t): Likewise.
69788         * lib/memrchr.c (__ptr_t): Likewise.
69789         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
69790         Include <string.h> unconditionally.
69791         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
69792         * lib/memchr.c: Include <stdlib.h> unconditionally.
69793         * lib/memchr.c (LONG_MAX): Remove.
69794         * lib/memrchr.c (LONG_MAX): Likewise.
69795         * lib/memchr.c (__memchr): Define via a prototype.
69796         * lib/memrchr.c (__memrchr): Likewise.
69797         * lib/memcmp.c (__P): Remove, and remove all uses.
69798         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
69799         Remove forward decls; no longer needed.
69800         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
69801         Use types required by C89 in prototype.
69802
69803         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
69804         * lib/savedir.c: Likewise.
69805         * lib/mkdir.c (free): Remove decl.
69806         * lib/rmdir.c (rmdir): Define with a prototype.
69807         * lib/savedir.c: Include savedir.h first, to test interface.
69808
69809         * lib/mktime.c (STDC_HEADERS): Remove.
69810         Include <stdlib.h>, <string.h> unconditionally.
69811
69812         * lib/modechange.c: Include <stdlib.h> unconditionally.
69813         (malloc): Remove decl.
69814
69815         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
69816         (free): Remove decl.
69817
69818         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
69819         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
69820         (This type really should be intptr_t, but that's a C99ism.)
69821         (_obstack_memcpy): Remove: all uses changed to memcpy.
69822         Include <string.h> unconditionally.
69823         (struct obstack): Assume __STDC__ for types of members
69824         chunkfun, freefun, extra_arg.
69825         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
69826         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
69827         obstack_begin, obstack_specify_allocation,
69828         obstack_specify_allocation_with_arg, obstack_chunkfun,
69829         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
69830         Remove unprototyped decls and the macros that use them.
69831         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
69832         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
69833         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
69834         (defined __STDC__ && __STDC__)]:
69835         Remove nonprototyped code.
69836         Include <stdlib.h> unconditionally.
69837         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
69838         _obstack_allocated_p, _obstack_free, obstack_free,
69839         _obstack_memory_used, print_and_abort):
69840         Define using prototypes.
69841         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
69842         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
69843         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
69844         obstack_next_free, obstack_object_size, obstack_room) [0]:
69845         Remove unused, unprototyped code.
69846
69847         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
69848
69849         * lib/physmem.c (physmem_total, physmem_available, main): Define
69850         with prototypes.
69851
69852         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
69853         (main): Define with a prototype.
69854
69855         * lib/posixver.c (getenv): Remove decl.
69856
69857         * lib/putenv.c (malloc): Returns void *, not char *.
69858         Include <string.h> unconditionally.
69859         (strchr, memcpy, NULL): Do not define.
69860
69861         * lib/readtokens.c: Include readtokens.h first, to test interface.
69862         Include <stdlib.h>, <string.h> unconditionally.
69863         (init_tokenbuffer): Define with a prototype.
69864
69865         * lib/regex.c (PARAMS): Remove.  All uses removed.
69866         All uses of _RE_ARGS removed, too.
69867         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69868         unconditionally.
69869         (bzero): Assume memset exists.
69870         (memcmp, memcpy, NULL): Remove.
69871         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
69872         char, or assignments to local vars of type signed char.
69873         (init_syntax_once, PREFIX(extract_number_and_incr),
69874         PREFIX(print_partial_compiled_pattern),
69875         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
69876         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
69877         PREFIX(regex_grow_registers), PREFIX(regex_compile),
69878         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
69879         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
69880         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
69881         wcs_compile_range, byte_compile_range, truncate_wchar,
69882         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
69883         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
69884         count_mbs_length, wcs_re_match_2_internal,
69885         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
69886         PREFIX(alt_match_null_string_p),
69887         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
69888         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
69889         regfree, PREFIX(extract_number)): Define with prototype.  Remove
69890         now-unnecessary declaration, if any.
69891         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
69892         regcomp, regexec):
69893         Remove now-unnecessary casts among pointer types.
69894         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
69895
69896         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
69897         (free): Remove decl.
69898
69899         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
69900
69901         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
69902         (free): Remove decl.
69903
69904         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
69905         * lib/xgetcwd.c: Likewise.
69906
69907         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
69908         (free): Remove decl.
69909
69910         * lib/strchrnul.c (strchrnul): Define with a prototype.
69911         Fix bug: c_in was not converted to char before searching.
69912
69913         The following changes are not K&R related:
69914
69915         * lib/group-member.h: Include <sys/types.h>, so that this file is
69916         self-contained.
69917         * lib/makepath.h: Likewise.
69918
69919         * lib/getusershell.c (readname, default_index, line_size, readname):
69920         Use size_t, not int, for sizes.
69921         (readname): If the size overflows, report an error instead of
69922         looping forever.
69923
69924 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69925
69926         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
69927         libc.
69928
69929 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69930
69931         * README: New section: portability guidelines.
69932
69933 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69934
69935         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
69936         C89 spec.
69937
69938 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69939
69940         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
69941
69942 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69943
69944         Assume C89 or better; remove K&R cruft.
69945         A few of these changes were first proposed by Derek Robert Price
69946         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
69947
69948         * lib/addext.c: Include <string.h> unconditionally.
69949         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
69950         Don't declare getenv or malloc.
69951
69952         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
69953         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
69954         (NULL): Remove.
69955         (find_stack_direction, alloca): Use prototypes.
69956
69957         * lib/atexit.c (atexit): Define using a prototype.
69958
69959         * lib/basename.c, dirname.c, stripslash.c:
69960         Include <string.h> unconditionally.
69961
69962         * lib/bcopy.c: Include <stddef.h>.
69963         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
69964
69965         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
69966
69967         * lib/error.h (error, error_at_line, error_print_progname)
69968         [! (defined (__STDC__) && __STDC__)]: Remove decls.
69969         * lib/error.c: Include error.h first, to check interface.
69970         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69971         (VA_START): Remove; all uses changeed to va_start.
69972         (exit, strerror): Remove decls.
69973         (error_print_progname): Prototype uncondionally.
69974         Don't include <errno.h>; no longer needed.
69975         (private_strerror): Remove.
69976         (error_tail): Always define.
69977         (error, error_at_line): Assume C89 or better; always use prototypes.
69978         * lib/fatal.c: Include "fatal.h" first, to test interface.
69979         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69980         (VA_START): Remove; all uses changed to va_start.
69981         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
69982         this case.
69983         (exit): Remove decl.
69984         (fatal): Prototype unconditionally.  Assume va_start works.
69985         Abort at end, to pacify gcc.
69986
69987         * lib/euidaccess.c (main): Define with a prototype.
69988
69989         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
69990
69991         * lib/exitfail.c: Include <stdlib.h> unconditionally.
69992
69993         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
69994         prototypes.
69995         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
69996         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
69997         (getenv): Remove decl.
69998         (fnmatch): Define using a prototype.
69999         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
70000         (FCT): Define using a prototype.
70001
70002         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
70003
70004         * lib/gethostname.c: Include <stddef.h>.
70005         (gethostname): Define with prototype.  Length is size_t, not int.
70006
70007 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70008
70009         Assume C89 or better; remove K&R cruft.
70010         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
70011         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
70012         string.h, getenv, malloc.
70013         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
70014         headers.
70015         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
70016         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
70017         do not check for strerror.
70018         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
70019         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
70020         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
70021         do not check for doprnt or vprintf.
70022         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
70023         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
70024
70025 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70026
70027         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
70028         getversion.c should have been removed then, but was accidentally
70029         preserved.
70030
70031         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
70032         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
70033
70034 2003-09-08  Karl Berry  <karl@gnu.org>
70035
70036         * config/config.sub, config.guess, srclistvars.sh: update from savannah
70037                 config, forget about prep.
70038
70039         * config/depcomp, missing: update from automake.
70040
70041 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70042
70043         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
70044         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70045
70046 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70047
70048         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
70049         copy_tm_result.  Bug reported by Simon Josefsson in
70050         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70051
70052 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70053
70054         * m4/time_r.m4: New file.
70055         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
70056         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
70057         is. Check for timegm declaration.
70058         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
70059         Do not check for gmtime_r.
70060         Replace mktime if __mktime_internal does not exist and if mktime
70061         hasn't been replaced already.
70062
70063 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70064
70065         * lib/time_r.c, lib/time_r.h: New files.
70066
70067         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
70068         __localtime_r.
70069         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
70070         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
70071
70072         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
70073         __gmtime_r.
70074         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
70075         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
70076         Include <time_r.h>.
70077
70078         * lib/timegm.c: Switch to glibc implementation, with the following
70079         changes:
70080         [defined HAVE_CONFIG_H]: Include <config.h>.
70081         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
70082         (__mktime_internal) [!defined _LIBC]: New decl.
70083         (__gmtime_r) [!defined _LIBC]: New macro and function.
70084         (timegm): Use a prototype, since gnulib assumes C89.
70085         Do not bother declaring tmp to be const, as it's not really usefu.
70086         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
70087         (timegm): Declare only if HAVE_DECL_TIMEGM.
70088
70089 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70090
70091         * MODULES.html.sh (func_all_modules): Add time_r.
70092         * modules/time_r: New file.
70093         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
70094         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
70095
70096 2003-09-03  Paul Eggert  <eggert@twinsun.com>
70097
70098         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
70099         Bug reported by Lute Kamstra in
70100         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
70101
70102         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
70103         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
70104         course with correspondingly smaller numbers for tomorrow and
70105         yesterday.  From Tadayoshi Funaba.  Originally installed into
70106         sh-utils on 1999-08-07, but the patch got lost (I guess during the
70107         coreutils merge?).
70108
70109 2003-08-31  Simon Josefsson  <jas@extundo.com>
70110
70111         * modules/timegm: New file.
70112         * MODULES.html.sh (func_all_modules): Add timegm.
70113
70114 2003-08-31  Simon Josefsson  <jas@extundo.com>
70115
70116         * m4/timegm.m4: New file.
70117
70118 2003-08-31  Simon Josefsson  <jas@extundo.com>
70119
70120         * lib/timegm.h: New file.
70121         * lib/timegm.c: New file.  Based on
70122         wget-1.8.2/src/http.c:mktime_from_utc.
70123
70124 2003-08-31  Karl Berry  <karl@gnu.org>
70125
70126         * lib/argp.h: update from libc.
70127
70128 2003-08-28  Bruno Haible  <bruno@clisp.org>
70129
70130         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
70131         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
70132         followed by '#define fnmatch fnmatch_posix' gives an error.
70133
70134 2003-08-28  Bruno Haible  <bruno@clisp.org>
70135
70136         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
70137         warning on QNX, which defines O_BINARY to 000000.
70138
70139 2003-08-27  Jim Meyering  <jim@meyering.net>
70140
70141         * m4/mkstemp.m4: Require that the system mkstemp be able to create
70142         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
70143         would fail after 32.  Reported by Danny Levinson.  Details here:
70144         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
70145
70146 2003-08-24  Bruno Haible  <bruno@clisp.org>
70147
70148         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
70149         MSVC7 <stdio.h> is included later.
70150
70151 2003-08-22  Simon Josefsson  <jas@extundo.com>
70152
70153         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
70154
70155 2003-08-20  Karl Berry  <karl@gnu.org>
70156
70157         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
70158
70159 2003-08-20  Bruno Haible  <bruno@clisp.org>
70160
70161         * modules/progname: New file.
70162         * MODULES.html.sh (func_all_modules): Add progname.
70163
70164 2003-08-20  Bruno Haible  <bruno@clisp.org>
70165
70166         * lib/progname.h: New file, from GNU gettext.
70167         * lib/progname.c: New file, from GNU gettext.
70168         * lib/progreloc.c: New file, from GNU gettext.
70169
70170 2003-08-19  Jim Meyering  <jim@meyering.net>
70171
70172         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
70173         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
70174
70175 2003-08-19  Bruno Haible  <bruno@clisp.org>
70176
70177         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
70178         more.
70179
70180 2003-08-19  Bruno Haible  <bruno@clisp.org>
70181
70182         * lib/xstrdup.c: Assume <string.h> exists.
70183
70184 2003-08-18  Paul Eggert  <eggert@twinsun.com>
70185
70186         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
70187         in makefile rules.
70188
70189 2003-08-18  Jim Meyering  <jim@meyering.net>
70190
70191         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
70192         * m4/lib-ld.m4: Likewise.
70193
70194 2003-08-18  Jim Meyering  <jim@meyering.net>
70195
70196         * lib/setenv.h: Indent nested cpp directive.
70197         * lib/vasnprintf.c: Remove trailing blanks.
70198
70199 2003-08-17  Simon Josefsson  <jas@extundo.com>
70200
70201         * modules/xstrndup: New file.
70202         * MODULES.html.sh (func_all_modules): Add xstrndup.
70203
70204 2003-08-17  Simon Josefsson  <jas@extundo.com>
70205
70206         * modules/argp: Fix autoconf macro name. Add more dependencies.
70207
70208 2003-08-17  Simon Josefsson  <jas@extundo.com>
70209
70210         * m4/xstrndup.m4: New file.
70211
70212 2003-08-17  Simon Josefsson  <jas@extundo.com>
70213
70214         * m4/argp.m4: New file.
70215
70216 2003-08-17  Simon Josefsson  <jas@extundo.com>
70217             Bruno Haible  <bruno@clisp.org>
70218
70219         * lib/xstrndup.h: New file.
70220         * lib/xstrndup.c: New file.
70221
70222 2003-08-17  Bruno Haible  <bruno@clisp.org>
70223
70224         * modules/strndup (Files, Include): Add lib/strndup.h.
70225
70226 2003-08-17  Bruno Haible  <bruno@clisp.org>
70227
70228         * modules/euidaccess (Files): Add lib/euidaccess.h.
70229
70230 2003-08-17  Bruno Haible  <bruno@clisp.org>
70231
70232         * lib/strndup.h: New file.
70233
70234 2003-08-17  Bruno Haible  <bruno@clisp.org>
70235
70236         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
70237         like AC_GNU_SOURCE.
70238         * modules/extensions (configure.ac): Comment out the invocation of
70239         gl_USE_SYSTEM_EXTENSIONS.
70240
70241 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70242
70243         Merges from coreutils, etc.
70244         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
70245         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
70246         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
70247         fixing a typo.
70248         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
70249         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
70250
70251 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70252
70253         Document merge from coreutils.
70254         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
70255         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
70256         * modules/utime: Add m4/utimes-null.m4.
70257
70258 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70259
70260         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
70261         space, undoing this 2003-08-12 change:
70262         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70263
70264 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70265
70266         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
70267         strtoul.c from libc, undoing this 2003-08-12 change:
70268         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70269
70270 2003-08-16  Jim Meyering  <jim@meyering.net>
70271
70272         Merges from coreutils.
70273         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
70274         prefix.  Adjust cache variables similarly.  Create 500 rather than
70275         just 300 files, to exercise bug on Darwin6.5, too.
70276         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
70277         $missing_dir.
70278         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
70279         AM_SYS_POSIX_TERMIOS.
70280         Reported by mkc@mathdogs.com.
70281         Also change use of $am_cv_sys_posix_termios
70282         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
70283         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
70284         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
70285         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
70286         in /proc/mounts until it finds one with matching device number.  This
70287         is unnecessary when the FILE argument *is* a mount point.  No stat call
70288         is necessary in that case.  So, disable the statvfs-testing code on
70289         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
70290         as RedHat bug# 84846.
70291         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70292         to 1MB, so as not to render systems with no stack size limit (e.g.,
70293         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70294         Include <unistd.h>.  On some systems,
70295         it is required for the definition of _SC_PAGESIZE.
70296
70297 2003-08-16  Jim Meyering  <jim@meyering.net>
70298
70299         Merge from coreutils.
70300         * lib/xstrtoimax.c: #else #if -> #elif.
70301         * lib/xstrtoumax.c: Likewise.
70302
70303 2003-08-16  Jim Meyering  <jim@meyering.net>
70304
70305         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
70306         * m4/utimes.m4: Removed.
70307         * m4/utimes-null.m4: Renamed from utimes.m4.
70308
70309         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70310         to 1MB, so as not to render systems with no stack size limit (e.g.,
70311         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70312         Include <unistd.h>.  On some systems,
70313         it is required for the definition of _SC_PAGESIZE.
70314
70315 2003-08-16  Jim Meyering  <jim@meyering.net>
70316         and Paul Eggert  <eggert@cs.ucla.edu>
70317
70318         Merges from coreutils, etc.
70319
70320         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
70321         using the latest version from cvs.  This avoids problems with #line
70322         directives using a vendor (Sun) compiler.
70323         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
70324         Don't set GETGROUPS_LIB here; now it's
70325         done via getgroups.m4's wrapper function.
70326         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
70327         rather than just in sh-util/configure.in, so that the
70328         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
70329         same.
70330         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
70331         AC_FUNC_GETLOADAVG where to find getloadavg.c.
70332         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
70333         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
70334         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
70335         Remove code that is now done by the newly-required macros.
70336         Append $(EXEEXT) to DF_PROG.
70337         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
70338         Do not invoke or require the following here,
70339         since prereq.m4 or some gnulib .m4 now does this for us:
70340         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
70341         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
70342         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
70343         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
70344         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
70345         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
70346         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
70347         AC_FUNC_OBSTACK.
70348         Do not replace the following functions, as this is now the job
70349         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
70350         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
70351         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
70352         atexit getpass, strdup, getpagesize.
70353         Replace 'raise'.
70354         Do not check for the following functions, as this is now the job
70355         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
70356         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
70357         setregid.
70358         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
70359         Check for sys/sysctl.h.
70360         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
70361         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
70362         of checking for ssize_t ourselves.
70363
70364         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
70365         Require every macro that gnulib/modules/* suggests for us.
70366         (jm_PREREQ_ADDEXT): New macro.
70367         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
70368         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
70369
70370         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
70371         (gl_PHYSMEM): Use it.
70372         Also check for `table' function.
70373         Check for new headers and functions.
70374         Add check for sys/sysmp.h.
70375         With suggestions from Kaveh Ghazi.
70376         Ignore headers that are present but cannot be compiled.  This
70377         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
70378         C 5.4.
70379
70380 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70381
70382         Document merge from coreutils.
70383         * modules/userspec: Depend on posixver.
70384         * modules/strftime: Depend on tzset.
70385
70386 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70387
70388         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
70389         rather than tab, after '#' in shell-script copyright notices.
70390         Suggested by Bruno Haible.
70391
70392 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70393
70394         * config/srclist-update: Use three spaces, rather than tab, after '#'
70395         in shell-script copyright notices.  Suggested by Bruno Haible.
70396         Remove unnecessary parenthesization in regular expression.
70397
70398 2003-08-15  Jim Meyering  <jim@meyering.net>
70399
70400         Merge from coreutils.
70401         * lib/xgethostname.c: Include <stdlib.h>.
70402         (xghostname): Don't exit for anything other than memory-related
70403         failure; just return NULL.
70404         * lib/userspec.c: Include "posixver.h".
70405         (parse_user_spec): Accept `.' as a separator only
70406         in pre-POSIX-200112 mode.
70407         * lib/strtoimax.c: Use #elif rather than #else #if.
70408         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
70409         Remove function, now that we can rely on a working tzset function.
70410         [!_LIBC]: Ensure that the required autoconf test has been run.
70411         [!defined _NL_CURRENT && HAVE_STRFTIME]:
70412         Use underlying_strftime for %r.
70413         * lib/sha.c: Merge in some clean-up and optimization changes from
70414         glibc.
70415         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
70416         Ensure that it is a multiple of 64.
70417         Rearrange loop exit tests so as to avoid performing an
70418         additional fread after encountering an error or EOF.
70419         * lib/realloc.c: Update copyright date.
70420
70421 2003-08-15  Jim Meyering  <jim@meyering.net>
70422         and Paul Eggert  <eggert@twinsun.com>
70423
70424         Merge from coreutils.
70425         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
70426         member but strut utmpx does not.  Needed for AIX 4.3.3.
70427         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
70428
70429 2003-08-15  Jim Meyering  <jim@meyering.net>
70430         and Paul Eggert  <eggert@cs.ucla.edu>
70431
70432         Merges from coreutils, etc.
70433         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
70434         Require gl_FUNC_TZSET_CLOBBER.
70435         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
70436         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
70437         members.
70438
70439 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70440
70441         Help the merge from coreutils.
70442         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
70443         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
70444         * m4/tzset.m4: Use it too.
70445
70446 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70447
70448         * modules/tzset: New file.
70449
70450 2003-08-14  Jim Meyering  <jim@meyering.net>
70451
70452         Merges from coreutils.
70453         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
70454         variable names, rather than @FNMATCH_H@.
70455         * modules/alloca: Likewise for $(ALLOCA_H).
70456
70457         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
70458         the three copies of the literal target, `fnmatch.h'.
70459         * modules/alloca (alloca.h): Likewise.
70460
70461 2003-08-14  Jim Meyering  <jim@meyering.net>
70462
70463         Merge from coreutils.
70464         * m4/tzset.m4: New file.
70465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
70466         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
70467         otherwise, AIX 5.1 systems would end up using the latter.
70468         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
70469         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
70470         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
70471         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
70472
70473 2003-08-14  Jim Meyering  <jim@meyering.net>
70474
70475         Merge from coreutils.
70476         * lib/obstack.h: Whitespace changes.
70477         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
70478         and xcalloc return values.
70479         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
70480         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
70481         hang on OSF/1 5.1 for DIR on both local and remote file systems.
70482         Reported by (and fix confirmed by) Nelson H. F. Beebe.
70483         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
70484         error from mntctl.
70485         Use mntctl's return value to drive the entry-processing loop, since
70486         we can't rely on the value of the vmt_length member in the last
70487         entry.  On some systems doing so could result in exhausting
70488         virtual memory.  Based in part on a patch from Mike Jetzer.
70489
70490 2003-08-14  Jim Meyering  <jim@meyering.net>
70491         and Paul Eggert  <eggert@twinsun.com>
70492
70493         Merges from coreutils, plus other fixes.
70494         * lib/physmem.c: Merge in portability changes from gcc/libiberty
70495         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
70496         for credits and details.  Thanks to Kaveh Ghazi for helping
70497         to keep these files in sync.
70498         (ARRAY_SIZE): Define it.
70499         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
70500         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
70501         (memcasecmp): Don't assume size_t fits in unsigned int.
70502         Remove casts and duplicate code.
70503         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
70504         (memcpy): Remove definition.
70505         Merge in some clean-up and optimization changes from glibc.
70506         [BLOCKSIZE]: Move definition to top of file.
70507         Ensure that it is a multiple of 64.
70508         Rearrange loop exit tests so as to avoid performing an
70509         additional fread after encountering an error or EOF.
70510         * lib/md5.h (md5_uintptr): Define.
70511         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
70512         return to the initial working directory.  Preserve errno
70513         for caller.
70514         * lib/idcache.c: Include "xalloc.h".
70515         (xmalloc, xrealloc): Remove decls.
70516         (getuser): Remove casts no longer required in C89.
70517         * lib/human.c: Include stdio.h, for sprintf.
70518         * lib/group-member.c: Include "xalloc.h".
70519         (xmalloc, xrealloc): Remove decls.
70520         (get_group_info): Remove casts no longer required in C89.
70521         * lib/getusershell.c (readname): Remove casts no longer required in
70522         C89.
70523         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
70524         * lib/getline.c: Whitespace fix, from coreutils.
70525
70526 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70527
70528         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
70529         Check for isascii.
70530
70531         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70532         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70533         Undo previous (whitespace-only) change.
70534
70535 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70536
70537         * lib/exclude.c: Include <ctype.h>
70538         (IN_CTYPE_DOMAIN): New macro.
70539         (is_space): New fn.
70540         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
70541         and empty lines.
70542
70543         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70544         Undo previous (whitespace-only) change.
70545
70546 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70547
70548         * config/srclist-update: Change update back to the old behavior,
70549         leaving whitespace alone.  Use one 'sed' command rather than a
70550         pipeline.
70551         (fixlicense): Now a variable, not a function.
70552         (remove_trailing_blanks): Remove.
70553         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
70554         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70555         Undo previous (whitespace-only) change.
70556
70557 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70558
70559         Merge from coreutils.
70560         * modules/euidaccess: Add lib_SOURCES, include for new
70561         file euidaccess.h
70562
70563 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70564
70565         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70566         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70567         Normalize leading white space and remove trailing white space.
70568
70569         Merge from coreutils
70570         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
70571
70572         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
70573         0.12.1.  These files are now being upgraded automatically by
70574         ../config/srclist-update.
70575
70576 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70577
70578         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70579         Normalize leading white space and remove trailing white space.
70580         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
70581         notice, as per ../config/srclist-update.
70582
70583         Merge from coreutils.
70584         * lib/euidaccess.h: New file.
70585         * lib/euidaccess.c: Include it.
70586         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
70587         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
70588         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
70589
70590 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70591
70592         * config/srclist-update: Add copyright notice.
70593         (remove_id_lines, remove_trailing_blanks): New constants.
70594         (fixfile): Use them to normalize spacing a bit in copied files.
70595         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70596         Normalize leading white space and remove trailing white space.
70597
70598         * config/texinfo.tex: Sync with texinfo.
70599
70600         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
70601         strtoul.c from libc, to merge coreutils whitespace changes.
70602
70603         * config/srclist.txt: Get the following m4 files from gettext:
70604         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
70605         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
70606         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
70607         wint_t.m4.
70608
70609 2003-08-12  Karl Berry  <karl@gnu.org>
70610
70611         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
70612         been made.
70613
70614 2003-08-11  Paul Eggert  <eggert@twinsun.com>
70615
70616         * modules/gnu-source, m4/gnu-source.m4:
70617         Remove; we're assuming Autoconf 2.54 or later now.
70618         Suggested by Bruno Haible.
70619         * MODULES.html.sh (func_all_modules): Remove gnu-source.
70620
70621 2003-08-11  Bruno Haible  <bruno@clisp.org>
70622
70623         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
70624
70625 2003-08-11  Bruno Haible  <bruno@clisp.org>
70626
70627         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
70628         (vasnprintf): Use it instead of wcslen.
70629
70630 2003-08-11  Bruno Haible  <bruno@clisp.org>
70631
70632         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
70633         value to ensure that _Bool promotes to int. Use #define for _Bool when
70634         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
70635
70636 2003-08-10  Karl Berry  <karl@gnu.org>
70637
70638         * lib/regex.h: update from libc (whitespace fix).
70639
70640 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70641
70642         Merge some files from coreutils.  These changes were
70643         originally made by Jim Meyering.
70644         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
70645         many older Unixes require this.
70646         * lib/alloca.c (alloca): Remove cast to argument of free;
70647         no longer needed in C89.
70648         * lib/alloca_.h, regex.h: Fix white space to match
70649         what GNU indent does.
70650
70651 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70652
70653         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
70654         apparently Emacs's Unicode mode got confused before my 2003-08-05
70655         checkin.
70656
70657 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70658
70659         * m4/extensions.m4: New file.
70660         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
70661         Require gl_USE_SYSTEM_EXTENSIONS.
70662         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
70663         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
70664
70665 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70666
70667         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
70668         * modules/extensions, modules/gnu-source: New files.
70669         * modules/timespec, modules/unlocked-io: Depend on extensions.
70670
70671 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70672
70673         * modules/restrict: New file.
70674         * MODULES.html.sh (func_all_modules): Add restrict.
70675         * modules/regex: Depend on restrict.
70676
70677 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70678
70679         * m4/restrict.m4: New file.
70680         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
70681
70682 2003-08-07  Bruno Haible  <bruno@clisp.org>
70683
70684         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
70685         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
70686
70687 2003-08-07  Bruno Haible  <bruno@clisp.org>
70688
70689         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
70690         makes the module 'getndelim2' compatible with the module 'getline'.
70691
70692 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70693
70694         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
70695         byte with "\201" to avoid glitches when editing that source file
70696         with multi-gnome-terminal.
70697
70698 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70699
70700         * lib/bumpalloc.h: Remove.
70701
70702 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70703
70704         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
70705         * modules/bumpalloc: Remove.
70706
70707 2003-08-04  Paul Eggert  <eggert@twinsun.com>
70708
70709         * lib/getloadavg.c: Change copyright notice and spacing to conform to
70710         GNU coding style.
70711
70712         Merge from coreutils.
70713         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
70714         1. From glibc.
70715         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
70716         from Karl Berry, implemented by Jim Meyering.
70717         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
70718         from Dmitry V. Levin.
70719         Remove anachronistic cast of xrealloc.
70720         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
70721         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
70722         type. Otherwise, it wouldn't compile with at least /bin/cc on
70723         ymp-cray-unicos9.0.2.X.
70724         Combine two mostly-identical uses of alloca into one.
70725         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
70726
70727 2003-08-04  Dave Love  <d.love@dl.ac.uk>
70728
70729         [From Emacs.]
70730
70731         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
70732         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
70733         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
70734         obsolete NLIST_NAME_UNION.
70735         [__GNU__]: Undef BSD and FSCALE.
70736         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
70737
70738 2003-08-03  Paul Eggert  <eggert@twinsun.com>
70739
70740         * lib/stdbool_.h (_Bool): Make it signed char, instead of
70741         an enum type, so that it's guaranteed to promote to int.  See:
70742         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
70743
70744 2003-08-03  Karl Berry  <karl@gnu.org>
70745
70746         * config/depcomp: update from automake.
70747
70748 2003-07-31  Paul Eggert  <eggert@twinsun.com>
70749
70750         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
70751         (strerror): Don't assume that a printable int fits in 14 bytes.
70752
70753 2003-07-31  Bruno Haible  <bruno@clisp.org>
70754
70755         * modules/getpass-gnu: New file.
70756         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
70757
70758 2003-07-31  Bruno Haible  <bruno@clisp.org>
70759
70760         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
70761
70762 2003-07-24  Karl Berry  <karl@gnu.org>
70763
70764         * config/missing: update from automake.
70765
70766 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
70767             Bruno Haible  <bruno@clisp.org>
70768
70769         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
70770         * lib/getline.c (getline, getdelim): Likewise.
70771         Remove _GNU_SOURCE define; now it's defined in config.h through
70772         m4/getline.m4.
70773
70774 2003-07-23  Karl Berry  <karl@gnu.org>
70775
70776         * config/config.sub: update from prep.
70777
70778 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70779
70780         * modules/xalloc (Depends-on): Add exitfail.
70781         * modules/xmemcoll: Likewise.
70782
70783 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70784
70785         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
70786         over-parenthesization in macros.
70787
70788         Sync with coreutils.
70789
70790         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
70791         required by C99.
70792
70793         Use `exit_failure' for xalloc and xmemcoll instead of their own
70794         private exit-failure variables.
70795         * lib/xalloc.h (xalloc_exit_failure): Remove.
70796         * lib/xmalloc.c: Likewise.  Include exitfail.h.
70797         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
70798         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
70799         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
70800         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
70801
70802 2003-07-20  Jim Meyering  <jim@meyering.net>
70803
70804         * modules/closeout (Depends-on): Add exitfail.
70805         Suggestion from Bruno Haible.
70806
70807 2003-07-19  Karl Berry  <karl@gnu.org>
70808
70809         * config/config.sub: update from prep.
70810
70811 2003-07-18  Paul Eggert  <eggert@twinsun.com>
70812
70813         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
70814         Remove.
70815         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
70816         to test that it can stand by itself.  Include "exitfail.h".
70817         Clients should set exit_failure instead.
70818         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
70819
70820 2003-07-18  Bruno Haible  <bruno@clisp.org>
70821
70822         * modules/getndelim2: New file.
70823         * modules/getline: Share files with module getndelim2.
70824         * modules/getnline: Depend on getndelim2 instead of sharing files with
70825         it. Add getnline.c to lib_SOURCES.
70826         * MODULES.html.sh (func_all_modules): Add getndelim2.
70827
70828 2003-07-18  Bruno Haible  <bruno@clisp.org>
70829
70830         * m4/getndelim2.m4: New file.
70831         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
70832         invoke gl_PREREQ_GETNDELIM2.
70833         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
70834         gl_PREREQ_GETNDELIM2.
70835         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
70836         gl_GETNDELIM2.
70837
70838 2003-07-18  Bruno Haible  <bruno@clisp.org>
70839
70840         * lib/getndelim2.h: New file.
70841         * lib/getndelim2.c: Make into a module of its own. Include config.h,
70842         getndelim2.h.
70843         (getndelim2): Make non-static. Change return type to ssize_t.
70844         * lib/getline.h: Change argument names.
70845         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
70846         * lib/getnline.c: Include getndelim2.h.
70847
70848 2003-07-18  Andreas Schwab  <schwab@suse.de>
70849
70850         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
70851
70852 2003-07-17  Karl Berry  <karl@gnu.org>
70853
70854         * config/config.sub: update from prep.
70855
70856 2003-07-17  Bruno Haible  <bruno@clisp.org>
70857
70858         * modules/getnline: New file.
70859         * modules/getline: Add lib/getndelim2.c to source file list.
70860         * MODULES.html.sh (func_all_modules): Add getnline.
70861
70862 2003-07-17  Bruno Haible  <bruno@clisp.org>
70863
70864         * m4/getnline.m4: New file.
70865
70866 2003-07-17  Bruno Haible  <bruno@clisp.org>
70867
70868         * m4/Makefile.am.in: Remove file.
70869         * m4/Makefile.am: Remove file.
70870         * m4/Makefile.in: Remove file.
70871
70872 2003-07-17  Bruno Haible  <bruno@clisp.org>
70873
70874         * lib/getnline.h: New file.
70875         * lib/getnline.c: New file.
70876         * lib/getndelim2.c: New file, extracted from getline.c.
70877         (getndelim2): Renamed from getdelim2, with added nmax argument.
70878         * lib/getline.c: Include getndelim2.c.
70879         (getdelim2): Moved out to getndelim2.c.
70880         (getline, getdelim): Update.
70881
70882 2003-07-17  Bruno Haible  <bruno@clisp.org>
70883
70884         * lib/Makefile.am: Remove file.
70885         * lib/Makefile.in: Remove file.
70886
70887 2003-07-17  Bruno Haible  <bruno@clisp.org>
70888
70889         * configure.in: Remove file.
70890         * Makefile.in: Remove file.
70891
70892 2003-07-17  Bruno Haible  <bruno@clisp.org>
70893
70894         * MODULES.html.sh: Put the </BODY> right before </HTML>.
70895
70896 2003-07-16  Karl Berry  <karl@gnu.org>
70897
70898         * config/srclist-update: was running fixlicense twice, which caused
70899                 texinfo.tex to be nullified for some reason.  Simplify,
70900                 $gplsrc is no longer needed as far as I can see?
70901
70902 2003-07-16  Jim Meyering  <jim@meyering.net>
70903
70904         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
70905
70906 2003-07-15  Paul Eggert  <eggert@twinsun.com>
70907
70908         * config/srclist.txt: Get the following files from gettext-runtime/intl
70909         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
70910         ref-del.sin.  From Bruno Haible.
70911         * config/srclist-update (fixfile): Change grep pattern again, since the
70912         previous fix didn't work (there was another trailing $).  Use
70913         '[$]' to escape the $s.
70914
70915 2003-07-15  Karl Berry  <karl@gnu.org>
70916
70917         * lib/vasnprintf.c: update from gettext.
70918
70919 2003-07-15  Karl Berry  <karl@gnu.org>
70920
70921         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
70922         gets expanded when surrounded by '$'.
70923
70924 2003-07-15  Jim Meyering  <jim@meyering.net>
70925
70926         * modules/save-cwd: Don't depend on error.  From Derek Price.
70927
70928 2003-07-15  Jim Meyering  <jim@meyering.net>
70929
70930         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
70931
70932 2003-07-14  Simon Josefsson  <jas@extundo.com>
70933
70934         * modules/mempcpy: New file.
70935         * MODULES.html.sh (func_all_modules): Add mempcpy.
70936
70937 2003-07-14  Simon Josefsson  <jas@extundo.com>
70938
70939         * m4/mempcpy.m4: New file.
70940
70941 2003-07-14  Simon Josefsson  <jas@extundo.com>
70942
70943         * lib/mempcpy.h: New file.
70944         * lib/mempcpy.c: New file.
70945
70946 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70947
70948         * modules/getdate, modules/posixtm: Depend on mktime.
70949
70950 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70951
70952         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
70953         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
70954         unicodeio.c, unicodeio.h, unlocked-io.h:
70955         Switch from LGPL to GPL.
70956
70957 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70958
70959         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
70960         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
70961         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
70962         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
70963         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
70964         updated automatically by ../config/srclist-update.  This changes
70965         their license from LPGL to GPL.
70966
70967 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70968
70969         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
70970         assumed to refer to the root of the most recent stable gettext version.
70971         * config/srclistvars.sh: Add defaults for eggert.
70972         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
70973         Match "This program" as well as "The program".  This is needed
70974         for gettext.
70975
70976 2003-07-14  Jim Meyering  <jim@meyering.net>
70977
70978         Don't emit diagnostics.  Let callers do that.
70979         * lib/save-cwd.c: Don't include "error.h".
70980         (save_cwd): Don't call error.  Ensure that errno is valid
70981         when returning nonzero.
70982
70983         * lib/save-cwd.h (restore_cwd): Update prototype.
70984         * lib/save-cwd.c (restore_cwd): Remove two parameters.
70985         Simplify.  Don't call error upon failure.  Let callers do that.
70986         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
70987         when auditing is enabled.  But don't bother updating the #if.
70988
70989 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
70990
70991         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
70992         it breaks C++ compilation.
70993         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
70994
70995 2003-07-10  Simon Josefsson  <jas@extundo.com>
70996
70997         * modules/strchrnul (Makefile.am): Add strchrnul.h.
70998
70999 2003-07-10  Jim Meyering  <jim@meyering.net>
71000
71001         * m4/clock_time.m4: Remove trailing blank.
71002         * m4/intmax_t.m4: Likewise.
71003
71004 2003-07-10  Jim Meyering  <jim@meyering.net>
71005
71006         * lib/vasnprintf.c: Remove trailing blanks.
71007         Make cpp indentation consistent.
71008
71009 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71010
71011         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
71012         posixver.c, strftime.c, strnlen.c, strverscmp.c:
71013         Switch from LGPL to GPL.
71014
71015 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71016
71017         * config/srclist.txt: Sort sublists.  Add
71018         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
71019         that differ from gnulib for one reason or another; we'd like this list
71020         to be smaller but for now let's document what we have.
71021
71022 2003-07-08  Paul Eggert  <eggert@twinsun.com>
71023
71024         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
71025         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
71026         and sweeter "eval x=$x".
71027         * config/srclist.txt: Get lib/argp* from glibc.
71028
71029 2003-07-07  Paul Eggert  <eggert@twinsun.com>
71030
71031         * lib/mktime.c: Fix some boundary cases and remove need for floating
71032         point.
71033
71034         Issue a compile-time diagnostic if time_t is floating point, or if
71035         two's complement arithmetic is not in effect, or if arithmetic
71036         right shift does not propagate the sign.  These assumptions were
71037         all in the original code but they weren't checked.
71038
71039         (TIME_T_MIDPOINT, verify): New macros.
71040         (__isleap): Remove; it has integer overflow problems.
71041         (leapyear): New function, without those problems.
71042         (ydhms_tm_diff): Remove; splitting into two parts.
71043         (ydhms_diff): New function, containing the arithmetic part of
71044         the old ydhms_tm_diff function.  Issue a compile-time
71045         diagnostic if we are not using C99 integer division.
71046         Avoid casts when possible.
71047         (guess_time_tm): New function, containing the checking part of
71048         the old ydhms_tm_diff function.  Return the new value, rather than
71049         the difference between it and the old.  Accept a new argument T
71050         so that *T specifies the old value.  Check for overflow in the result.
71051
71052         (__mktime_internal): Use a time_t offset, not a long int offset.
71053         This undoes the 2003-06-04 change, which is no longer needed now
71054         that we have better overflow checking.
71055         (localtime_offset): Likewise.
71056
71057         (__mktime_internal): Avoid harmful overflow on hosts where time_t
71058         and long are 64-bit but int is only 32-bit.
71059         (ydhms_diff): Use long int to store year1 and yday1.
71060         Issue a compile-time diagnostic if long int is not wide enough.
71061
71062         (__mktime_internal): Use long int to store adjusted year and yday.
71063         Use plain C rather than preprocessor commands, if that doesn't
71064         affect efficiency.
71065         Check for overflow (and try to repair) after each probe
71066         rather than checking only at the very end.  This avoids some bugs
71067         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
71068         does not equal GMT offset at maximum time).
71069         Use integer to check for overflow rather than floating point; this
71070         is more portable to non-IEEE hosts, and is a tad faster.
71071         When we detect that we are oscillating between two values,
71072         don't check whether tm_isdst has the requested value, since
71073         we already know the answer.  When tm_isdst has the wrong value,
71074         use a different heuristic to find the right one, based on the
71075         extreme values actually observed in practice in tz2003a,
71076         rather than the (overly optimistic) "previous 3 calendar quarters".
71077
71078         (not_equal_tm, print_tm, check_result): Use "const T" rather than
71079         "T const" to accommodate glibc style.
71080         (check_result): Use less-confusing report format.  "long" -> "long int.
71081         (main): Likewise.
71082         Don't loop if the iteration overflows time_t.
71083         Allow a negative step in the iteration.
71084
71085 2003-07-06  Karl Berry  <karl@gnu.org>
71086
71087         * config/depcomp: update from automake.
71088         * config/config.sub: update from prep.
71089
71090 2003-07-03  Karl Berry  <karl@gnu.org>
71091
71092         * config/config.guess: update from prep.
71093
71094 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71095
71096         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
71097         xreadlink.c now includes it unconditionally.
71098
71099 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71100
71101         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
71102         having it depend on HAVE_SYS_TYPES_H.
71103
71104 2003-07-01  Bruno Haible  <bruno@clisp.org>
71105
71106         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
71107         <sys/types.h> should be sufficient.
71108         Reported by Paul Eggert.
71109
71110 2003-06-26  Karl Berry  <karl@gnu.org>
71111
71112         * config/depcomp: update from automake.
71113
71114 2003-06-26  Bruno Haible  <bruno@clisp.org>
71115
71116         * modules/human: Depend on module stdbool.
71117
71118 2003-06-25  Bruno Haible  <bruno@clisp.org>
71119
71120         * modules/readlink: New file.
71121         * modules/xreadlink: Depend on it.
71122         * MODULES.html.sh (func_all_modules): Add readlink.
71123
71124 2003-06-25  Bruno Haible  <bruno@clisp.org>
71125
71126         * m4/readlink.m4: New file.
71127
71128 2003-06-25  Bruno Haible  <bruno@clisp.org>
71129
71130         * lib/readlink.c: New file.
71131
71132 2003-06-22  Karl Berry  <karl@gnu.org>
71133
71134         * config/srclist.txt: update mkinstalldirs from automake.
71135         * config/mkinstalldirs: update.
71136
71137 2003-06-22  Bruno Haible  <bruno@clisp.org>
71138
71139         Portability to mingw32.
71140         * m4/ssize_t.m4: New file, from GNU gettext.
71141         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
71142         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
71143
71144 2003-06-22  Bruno Haible  <bruno@clisp.org>
71145
71146         * modules/safe-read: Add m4/ssize_t.m4.
71147         * modules/xreadlink: Add m4/ssize_t.m4.
71148
71149 2003-06-20  Bruno Haible  <bruno@clisp.org>
71150
71151         Assume C89, so PARAMS isn't needed.
71152         * lib/unicodeio.h (PARAMS): Remove.
71153         * lib/unicodeio.c: Don't use PARAMS.
71154
71155 2003-06-18  Karl Berry  <karl@gnu.org>
71156
71157         * config/config.{guess,sub}: update from prep.
71158
71159 2003-06-18  Jim Meyering  <jim@meyering.net>
71160
71161         Merge changes from coreutils.
71162         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
71163         Remove explicit declarations of xmalloc and realloc.
71164         Include xalloc.h.
71165         (read_utmp): Remove anachronistic cast of xmalloc.
71166
71167 2003-06-17  Paul Eggert  <eggert@twinsun.com>
71168
71169         Assume C89, so PARAMS isn't needed.
71170         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
71171         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
71172         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
71173         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
71174         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
71175         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
71176         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
71177         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
71178         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
71179         lib/xstrtod.h, lib/xstrtol.h: Likewise.
71180         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
71181         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
71182         no longer needed. Anyway, config.h should always be included before any
71183         other file.
71184
71185 2003-06-11  Simon Josefsson  <jas@extundo.com>
71186
71187         * modules/sysexits: New file.
71188         * MODULES.html.sh (func_all_modules): Add sysexits.
71189
71190 2003-06-11  Simon Josefsson  <jas@extundo.com>
71191
71192         * lib/sysexit_.h: New file.
71193
71194 2003-06-11  Derek Price  <derek@ximbiot.com>
71195
71196         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
71197         necessary.
71198
71199 2003-06-11  Bruno Haible  <bruno@clisp.org>
71200
71201         * m4/sysexits.m4: New file.
71202
71203 2003-06-10  Simon Josefsson  <jas@extundo.com>
71204
71205         * lib/argp.h: New file, from glibc.
71206         * lib/argp-ba.c: New file, from glibc.
71207         * lib/argp-eexst.c: New file, from glibc.
71208         * lib/argp-fmtstream.c: New file, from glibc.
71209         * lib/argp-fmtstream.h: New file, from glibc.
71210         * lib/argp-fs-xinl.c: New file, from glibc.
71211         * lib/argp-help.c: New file, from glibc.
71212         * lib/argp-namefrob.h: New file, from glibc.
71213         * lib/argp-parse.c: New file, from glibc.
71214         * lib/argp-pv.c: New file, from glibc.
71215         * lib/argp-pvh.c: New file, from glibc.
71216         * lib/argp-xinl.c: New file, from glibc.
71217
71218 2003-06-10  Simon Josefsson  <jas@extundo.com>
71219
71220         * modules/strchrnul: New file.
71221
71222 2003-06-10  Simon Josefsson  <jas@extundo.com>
71223
71224         * modules/argp: New file.
71225
71226 2003-06-10  Simon Josefsson  <jas@extundo.com>
71227
71228         * m4/strchrnul.m4: New file.
71229
71230 2003-06-10  Simon Josefsson  <jas@extundo.com>
71231
71232         * lib/strchrnul.h: New file.
71233         * lib/strchrnul.c: New file.
71234
71235 2003-06-10  Bruno Haible  <bruno@clisp.org>
71236
71237         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
71238
71239 2003-06-07  Karl Berry  <karl@gnu.org>
71240
71241         * config/config.{guess,sub}: update from prep.
71242
71243 2003-06-07  Jim Meyering  <jim@meyering.net>
71244
71245         * modules/strtod: Use $(...) notation, not @...@ for
71246         AC_REPLACE'd variables.
71247         * modules/localcharset: Likewise.
71248
71249 2003-06-07  Jim Meyering  <jim@meyering.net>
71250
71251         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
71252         in place of my name in the copyright comment.
71253         Remove definition and uses of __P.
71254
71255         From coreutils.
71256         * lib/stat.c: Don't declare xmalloc explicitly.
71257         Instead, include "xalloc.h".
71258         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
71259         xrealloc, and xcalloc return values.
71260         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
71261         Improve comment.
71262         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
71263
71264 2003-06-07  Bruno Haible  <bruno@clisp.org>
71265
71266         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
71267         avoid AC_CONFIG_LINKS.
71268         * modules/fnmatch (Makefile.am): Use explicit creation rule for
71269         fnmatch.h, to avoid AC_CONFIG_LINKS.
71270         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
71271
71272 2003-06-07  Bruno Haible  <bruno@clisp.org>
71273
71274         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
71275         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
71276         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71277         directory.
71278         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
71279         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71280         directory.
71281
71282 2003-06-06  Jim Meyering  <jim@meyering.net>
71283
71284         Merge from coreutils.
71285         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
71286         Consolidate declarations and initializations of *_base* locals.
71287
71288         Merge from coreutils.
71289         This avoids a core dump on systems without GNU putenv,
71290         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
71291         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
71292         (unsetenv): New static function, from GNU libc.
71293         (rpl_putenv): Use it.
71294
71295         * lib/modechange.c: Remove trailing blanks.
71296
71297         Merge from coreutils.
71298         * lib/fsusage.c: Remove declaration of statfs.
71299         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
71300
71301         * lib/posixtm.c: Include <stdbool.h> unconditionally.
71302
71303 2003-06-06  Jim Meyering  <jim@meyering.net>
71304
71305         * lib/stdbool_.h: Renamed from stdbool.h.in.
71306
71307 2003-06-06  Jim Meyering  <jim@meyering.net>
71308             Bruno Haible  <bruno@clisp.org>
71309
71310         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
71311         Adjust Makefile.am snippet not to redirect directly to target.
71312         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
71313
71314 2003-06-05  Paul Eggert  <eggert@twinsun.com>
71315
71316         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
71317         mismatch, look in future quarters as well as past.  This fixes a
71318         bug when processing fall-backwards gaps immediately after a long
71319         period of daylight-saving time.
71320
71321         * lib/mktime.c: Assume freestanding C89 or better.
71322         (HAVE_LIMITS_H): Remove.  Assume it's 1.
71323         (__P): Remove; not used.
71324         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
71325         (mktime, not_equal_tm, print_tm, check_result,
71326         main): Use prototypes.  Use const * where appropriate.
71327         (main): Fix typo in testing code that uncovered by above changes.
71328         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
71329
71330 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71331
71332         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
71333         locale.h, localeconv.  This merges changes from coreutils.
71334
71335         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
71336         It can be removed after the next Autoconf is released.
71337         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
71338         needed.
71339
71340 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71341
71342         * lib/mktime.c: Fix Debian bug 177940
71343         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
71344         (localtime_offset): Now long int, not time_t, because we want it
71345         to be guaranteed to be signed.  All uses changed.
71346         (__mktime_internal): If overflow would occur when adding offset,
71347         don't add it.
71348
71349         Merge 'human' changes from coreutils.  Rewrite to support
71350         locale-specific notations like thousands separators.
71351         * lib/human.c: Simplify authorship notice.
71352         Include human.h immediately after config.h.
71353         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
71354         <limits.h>: Do not include, since human.h does.
71355         (SIZE_MAX, UINTMAX_MAX): New macros.
71356         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
71357         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
71358         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
71359         (power_letter): Renamed from suffixes.
71360         (generate_suffix_backwards): Remove.
71361         (adjust_value): Now takes int style (because of human.h changes)
71362         and long double value (for greater precision on some platforms).
71363         (group_number): New function.
71364         (human_readable): Use it.  Use integer options, not enum.
71365         Put the options before the sizes in the arg list.
71366         Support all the new options.
71367         The old human_readable function has been removed;
71368         use inttostr.h instead.
71369         (human_readable, default_block_size, humblock):
71370         Use uintmax_t, not int, for block sizes.
71371         (human_readable_inexact, block_size_types): Remove.
71372         (block_size_opts): New constant.
71373         (human_options): Renamed from human_block_size, with new signature
71374         that allows block sizes up to UINTMAX_MAX.  All callers changed.
71375         * lib/human.h: Add copyright and authorship notice.
71376         Include <limits.h> and <stdbool.h> unconditionally.
71377         (PARAMS): Remove.  All uses removed.
71378         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
71379         (enum human_inexact_style): Remove tag; now a nameless enum.
71380         (human_floor, human_ceiling, human_round_to_even): Now have
71381         values 2, 0, 1 rather than -1, 1, 0.
71382         (human_group_digits, human_suppress_point_zero, human_autoscale,
71383         human_base_1024, human_SI, human_B): New constants.
71384         (human_readable_inexact, human_block_size): Remove.
71385         (human_readable): Size args are now uintmax_t, not int.
71386         (human_options): New decl.
71387
71388         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
71389         unnecessary now that we assume C89 or better.  This change
71390         imported from coreutils.
71391
71392         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71393         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
71394         in the 2003-05-30 sync from glibc.
71395
71396         .h files should stand alone, but we shouldn't include <sys/types.h>
71397         if we can get away with just <stddef.h>.
71398
71399         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
71400         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
71401         rather than <sys/types.h>, as we merely need size_t.
71402         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
71403         to get size_t.
71404         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
71405         Include <stdio.h>, to get FILE.
71406         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
71407         memcasecmp.h has included <stddef.h> and all we need is size_t.
71408         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
71409         our interface, instead of including <sys/types.h>
71410
71411 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71412
71413         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
71414         now, as glibc mktime is buggy on non-glibc systems.
71415
71416 2003-06-03  Karl Berry  <karl@gnu.org>
71417
71418         * config/config.sub: update from prep.
71419
71420 2003-06-02  Paul Eggert  <eggert@twinsun.com>
71421
71422         [from coreutils]
71423         Fix some minor time-related bugs with POSIX time arguments.
71424         Some valid time stamps were being rejected (notably -1, and
71425         time stamps before 1900 on 64-bit hosts).  And some invalid
71426         time stamps were being accepted, e.g. September 31.
71427
71428         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
71429         that we can return (time_t) -1 successfully.
71430         * lib/posixtm.c: Likewise.
71431         [HAVE_STDBOOL_H]: Include <stdbool.h>.
71432         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
71433         (t): Remove static var.
71434         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
71435         of static var.  All uses changed.
71436         (year): Do not reject years before 1900; they can occur with
71437         64-bit time_t.
71438         (posix_time_parse): Do not check for out-of-range components;
71439         that is now the caller's responsibility, since our checks were
71440         only approximations.
71441         (posixtime): Use mktime to check for out-of-range components,
71442         since it knows them exactly.
71443         If mktime returns (time_t) -1, check whether an error actually occurred
71444         by invoking localtime on -1.
71445         (main) [TEST_POSIXTIME]: Check for input data errors, and report
71446         posixtime failures better.
71447         Improve the test data (in comments only).
71448
71449 2003-06-02  Karl Berry  <karl@gnu.org>
71450
71451         * config/mkinstalldirs (version): new variable.
71452         (--version): new option.
71453         (usage): improve message.
71454
71455 2003-05-30  Karl Berry  <karl@gnu.org>
71456
71457         * lib/mktime.c: update from libc.
71458
71459 2003-05-30  Bruno Haible  <bruno@clisp.org>
71460
71461         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
71462         * config/config.rpath: Upgrade to gettext-0.12.1.
71463
71464 2003-05-30  Bruno Haible  <bruno@clisp.org>
71465
71466         * m4/gettext.m4: Upgrade to gettext-0.12.1.
71467         * m4/nls.m4: New file, from gettext-0.12.1.
71468         * m4/po.m4: New file, from gettext-0.12.1.
71469         * m4/progtest.m4: Upgrade to gettext-0.12.1.
71470
71471 2003-05-30  Bruno Haible  <bruno@clisp.org>
71472
71473         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
71474         * lib/localcharset.h: Likewise.
71475         * lib/localcharset.c: Likewise.
71476
71477 2003-05-29  Karl Berry  <karl@gnu.org>
71478
71479         * config/config.rpath: update from gettext.
71480
71481 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71482
71483         Assume the headers required for C89 freestanding compilers.
71484         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
71485         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
71486         * m4/human.m4 (gl_HUMAN): Likewise.
71487         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
71488         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
71489         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71490         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
71491         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71492         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
71493
71494 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71495
71496         Assume the headers required for C89 freestanding compilers.
71497         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
71498         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
71499         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
71500         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
71501         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
71502         define, since <limits.h> is guaranteed to do that.
71503         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
71504         * lib/exclude.c: Include <stdbool.h> unconditionally.
71505         * lib/tempname.c: Include <stddef.h> unconditionally.
71506         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
71507         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
71508         <stddef.h> does that.
71509         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
71510         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
71511         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
71512         needed.
71513         * lib/xstrtol.c: Likewise.
71514         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
71515         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
71516
71517         * lib/addext.c (addext): Use assignment rather than cast, to avoid
71518         warnings on some platforms.
71519
71520         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71521         arbitrarily.
71522
71523 2003-05-26  Jim Meyering  <jim@meyering.net>
71524
71525         Merge in a change from coreutils:
71526         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
71527         that is guaranteed to be `no'.  Use `no_such_member' to indicate
71528         that condition, rather than `-1' which is slightly misleading.
71529         Change the name of the cache variable to have the gl_ prefix.
71530         Prompted by a patch from Richard Dawe for DJGPP.
71531
71532 2003-05-24  Karl Berry  <karl@gnu.org>
71533
71534         * config/config.guess: update from prep.
71535
71536 2003-05-22  Karl Berry  <karl@gnu.org>
71537
71538         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
71539
71540 2003-05-20  Karl Berry  <karl@gnu.org>
71541
71542         * config/config.guess: update from prep.
71543
71544 2003-05-18  Karl Berry  <karl@gnu.org>
71545
71546         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
71547         might actually be set by the user.
71548
71549         * config/depcomp, install-sh, mdate-sh: update from automake.
71550
71551 2003-05-17  Bruno Haible  <bruno@clisp.org>
71552
71553         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
71554         invalid expansion for AC_EGREP_CPP.
71555         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
71556         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
71557         Suggested by Akim Demaille <akim@epita.fr> in
71558         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
71559
71560 2003-05-12  Jim Meyering  <jim@meyering.net>
71561
71562         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
71563         the space-padded-by-default conversion specifiers, %e, %k, %l.
71564
71565 2003-05-12  Bruno Haible  <bruno@clisp.org>
71566
71567         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
71568         the string is longer than 4 KB.
71569
71570 2003-05-11  Karl Berry  <karl@gnu.org>
71571
71572         * config/config.{guess,sub}: update from prep.
71573
71574 2003-05-09  Bruno Haible  <bruno@clisp.org>
71575
71576         * modules/error: Add m4/strerror_r.m4 to file list.
71577
71578 2003-05-03  Bruno Haible  <bruno@clisp.org>
71579
71580         Upgrade to Unicode-4.0.
71581         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
71582         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
71583         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
71584         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
71585         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
71586         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
71587         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
71588         Change width of U+E0100..U+E01EF from 1 to 0.
71589
71590 2003-04-25  Jim Meyering  <jim@meyering.net>
71591
71592         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
71593         of type size_t, not int.
71594
71595 2003-04-25  Bruno Haible  <bruno@clisp.org>
71596
71597         * lib/copy-file.c: Include <stddef.h>, for size_t.
71598
71599 2003-04-21  Paul Eggert  <eggert@twinsun.com>
71600
71601         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
71602         code which expansion is under static control.  Patch imported from
71603         Akim Demaille's patch to Bison; see
71604         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
71605
71606 2003-04-14  Bruno Haible  <bruno@clisp.org>
71607
71608         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
71609
71610 2003-04-11  Jim Meyering  <jim@meyering.net>
71611
71612         Merge changes from Coreutils.
71613
71614         2003-03-22  Jim Meyering  <jim@meyering.net>
71615
71616         * lib/strftime.c (widen): Cast alloca return value to proper type.
71617
71618         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
71619
71620         From GNU libc.
71621         * lib/strftime.c (my_strftime): Handle very large width
71622         specifications for numeric values correctly.  Improve checks for
71623         overflow.
71624
71625         2003-01-19  Jim Meyering  <jim@meyering.net>
71626
71627         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
71628         definitions.
71629         (nl_get_alt_digit) [! defined my_strftime]: Define.
71630         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
71631         _nl_get_alt_digit and _nl_get_walt_digit.
71632
71633         * lib/strftime.c (my_strftime): Merge in locale-related changes from
71634         libc. These changes have no effect outside of _LIBC.
71635
71636 2003-04-10  Bruno Haible  <bruno@clisp.org>
71637
71638         * modules/findprog: New file.
71639         * MODULES.html.sh (func_all_modules): Add it.
71640
71641 2003-04-10  Bruno Haible  <bruno@clisp.org>
71642
71643         * m4/findprog.m4: New file.
71644         * m4/eaccess.m4: New file.
71645
71646 2003-04-10  Bruno Haible  <bruno@clisp.org>
71647
71648         * lib/findprog.h: New file, from GNU gettext.
71649         * lib/findprog.c: New file, from GNU gettext.
71650
71651 2003-04-05  Jim Meyering  <jim@meyering.net>
71652
71653         Merge changes from Coreutils.
71654
71655         * lib/exclude.h (PARAMS): Remove definition and uses.
71656         * lib/exclude.c: Remove uses of `PARAMS'.
71657
71658         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
71659         Add test-cases for DOS filenames. Declare program_name.
71660         (main): Set up program_name.  Patch by Rich Dawe.
71661
71662         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71663         error from mntctl.
71664         Use mntctl's return value to drive the entry-processing loop, since
71665         we can't rely on the value of the vmt_length member in the last
71666         entry.  On some systems doing so could result in exhausting
71667         virtual memory.  Based in part on a patch from Mike Jetzer.
71668
71669 2003-04-04  Bruno Haible  <bruno@clisp.org>
71670
71671         * modules/linebreak: New file.
71672         * MODULES.html.sh (func_all_modules): Add it.
71673
71674 2003-04-04  Bruno Haible  <bruno@clisp.org>
71675
71676         * m4/linebreak.m4: New file.
71677
71678 2003-04-04  Bruno Haible  <bruno@clisp.org>
71679
71680         * lib/linebreak.h: New file, from GNU gettext.
71681         * lib/linebreak.c: New file, from GNU gettext with slight
71682         modifications.
71683         * lib/lbrkprop.h: New file, from GNU gettext.
71684
71685 2003-04-03  Bruno Haible  <bruno@clisp.org>
71686
71687         * modules/utf8-ucs4: New file.
71688         * modules/utf16-ucs4: New file.
71689         * modules/ucs4-utf8: New file.
71690         * modules/ucs4-utf16: New file.
71691         * MODULES.html.sh (func_all_modules): Add them.
71692
71693 2003-04-03  Bruno Haible  <bruno@clisp.org>
71694
71695         * m4/utf-ucs4.m4: New file.
71696         * m4/ucs4-utf.m4: New file.
71697
71698 2003-04-03  Bruno Haible  <bruno@clisp.org>
71699
71700         * lib/utf8-ucs4.h: New file, from GNU gettext.
71701         * lib/utf16-ucs4.h: New file, from GNU gettext.
71702         * lib/ucs4-utf8.h: New file, from GNU gettext.
71703         * lib/ucs4-utf16.h: New file, from GNU gettext.
71704
71705 2003-04-02  Bruno Haible  <bruno@clisp.org>
71706
71707         * modules/binary-io: New file.
71708         * MODULES.html.sh (func_all_modules): Add it.
71709
71710 2003-04-02  Bruno Haible  <bruno@clisp.org>
71711
71712         * lib/binary-io.h: New file, from GNU gettext.
71713
71714 2003-04-01  Bruno Haible  <bruno@clisp.org>
71715
71716         * modules/pathname: New file.
71717         * MODULES.html.sh (func_all_modules): Add it.
71718
71719 2003-04-01  Bruno Haible  <bruno@clisp.org>
71720
71721         * lib/pathname.h: New file, from GNU gettext.
71722         * lib/concatpath.c: New file, from GNU gettext.
71723
71724 2003-03-30  Bruno Haible  <bruno@clisp.org>
71725
71726         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
71727
71728 2003-03-30  Bruno Haible  <bruno@clisp.org>
71729
71730         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
71731         function chown() doesn't exist.
71732
71733 2003-03-28  Bruno Haible  <bruno@clisp.org>
71734
71735         * modules/copy-file: New file.
71736         * MODULES.html.sh (func_all_modules): Add it.
71737
71738 2003-03-28  Bruno Haible  <bruno@clisp.org>
71739
71740         * m4/copy-file.m4: New file.
71741
71742 2003-03-28  Bruno Haible  <bruno@clisp.org>
71743
71744         * lib/copy-file.h: New file, from GNU gettext.
71745         * lib/copy-file.c: New file, from GNU gettext.
71746
71747 2003-03-18  Jim Meyering  <jim@meyering.net>
71748
71749         * lib/quote.c (quote_n): Fix typo in comment.
71750
71751 2003-03-18  Bruno Haible  <bruno@clisp.org>
71752
71753         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
71754         checking.
71755         * m4/onceonly_2_57.m4: Likewise.
71756
71757 2003-03-17  Bruno Haible  <bruno@clisp.org>
71758
71759         * m4/onceonly.m4: Require autoconf 2.54 or newer.
71760         (m4_quote): Remove macro.
71761         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
71762
71763 2003-03-14  Jim Meyering  <jim@meyering.net>
71764
71765         Merge changes from Coreutils.
71766         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
71767         to be const, in order to avoid warnings.
71768         (obstack_room): Likewise.
71769         (obstack_empty_p): Likewise.
71770
71771 2003-03-14  Bruno Haible  <bruno@clisp.org>
71772
71773         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
71774         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
71775
71776 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71777
71778         Merge changes from Bison.
71779         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
71780         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
71781         when compiling Bison 1.875's `bitset bset = obstack_alloc
71782         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
71783         * lib/hash.c: Include <stdbool.h> unconditionally.
71784
71785 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71786
71787         * m4/onceonly.m4 (m4_quote): New macro.
71788         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
71789         Quote AC_FOREACH variable-expansions properly.
71790
71791 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71792
71793         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
71794
71795 2003-03-09  Paul Eggert  <eggert@twinsun.com>
71796
71797         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
71798         Reported by Bruce Becker; see:
71799         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
71800
71801 2003-03-03  Paul Eggert  <eggert@twinsun.com>
71802             Bruno Haible  <bruno@clisp.org>
71803
71804         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
71805         Reported by John Hughes, see
71806         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
71807
71808 2003-02-20  Bruno Haible  <bruno@clisp.org>
71809
71810         * MODULES.html.sh (func_all_modules): Add poll.
71811
71812 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71813
71814         * modules/poll: New file.
71815
71816 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71817
71818         * lib/poll_.h: New file.
71819         * lib/poll.c: New file.
71820
71821 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71822
71823         * m4/poll.m4: New file.
71824
71825 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71826
71827         * modules/mathl: New file.
71828
71829 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71830
71831         * lib/mathl.h: New file.
71832         * lib/acosl.c: New file.
71833         * lib/asinl.c: New file.
71834         * lib/atanl.c: New file.
71835         * lib/ceill.c: New file.
71836         * lib/cosl.c: New file.
71837         * lib/expl.c: New file.
71838         * lib/floorl.c: New file.
71839         * lib/frexpl.c: New file.
71840         * lib/ldexpl.c: New file.
71841         * lib/logl.c: New file.
71842         * lib/sincosl.c: New file.
71843         * lib/sinl.c: New file.
71844         * lib/sqrtl.c: New file.
71845         * lib/tanl.c: New file.
71846         * lib/trigl.c: New file.
71847         * lib/trigl.h: New file.
71848
71849 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71850
71851         * m4/mathl.m4: New file.
71852
71853 2003-02-18  Bruno Haible  <bruno@clisp.org>
71854
71855         * MODULES.html.sh (func_all_modules): Add mathl.
71856
71857 2003-02-17  Bruno Haible  <bruno@clisp.org>
71858
71859         * modules/mkdtemp: New module.
71860         * MODULES.html.sh (func_all_modules): Add it.
71861
71862 2003-02-17  Bruno Haible  <bruno@clisp.org>
71863
71864         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
71865
71866 2003-02-17  Bruno Haible  <bruno@clisp.org>
71867
71868         * lib/mkdtemp.h: New file, from GNU gettext.
71869         * lib/mkdtemp.c: New file, from GNU gettext.
71870
71871 2003-02-02  Jim Meyering  <jim@meyering.net>
71872
71873         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
71874         e.g. glibc-2.2.93.
71875
71876 2003-01-31  Bruno Haible  <bruno@clisp.org>
71877
71878         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
71879         'rpl_rename'.
71880         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
71881         'rpl_strnlen'.
71882         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
71883         'rpl_strtod'.
71884         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
71885         'rpl_utime'.
71886
71887 2003-01-31  Bruno Haible  <bruno@clisp.org>
71888
71889         * lib/rename.c: #undef rename before defining rpl_rename.
71890         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
71891
71892 2003-01-30  Bruno Haible  <bruno@clisp.org>
71893
71894         * modules/vasnprintf, modules/vasprintf: New modules.
71895         * MODULES.html.sh (func_all_modules): Add them.
71896
71897 2003-01-30  Bruno Haible  <bruno@clisp.org>
71898
71899         * m4/signed.m4: New file, from GNU gettext.
71900         * m4/longdouble.m4: New file, from GNU gettext.
71901         * m4/wchar_t.m4: New file, from GNU gettext.
71902         * m4/wint_t.m4: New file, from GNU gettext.
71903         * m4/vasnprintf.m4: New file.
71904         * m4/vasprintf.m4: New file.
71905
71906 2003-01-30  Bruno Haible  <bruno@clisp.org>
71907
71908         * lib/printf-args.h: New file, from GNU gettext.
71909         * lib/printf-args.c: New file, from GNU gettext.
71910         * lib/printf-parse.h: New file, from GNU gettext.
71911         * lib/printf-parse.c: New file, from GNU gettext.
71912         * lib/vasnprintf.h: New file, from GNU gettext.
71913         * lib/vasnprintf.c: New file, from GNU gettext.
71914         * lib/asnprintf.c: New file, from GNU gettext.
71915         * lib/vasprintf.h: New file, from GNU gettext with modifications.
71916         * lib/vasprintf.c: New file, from GNU gettext.
71917         * lib/asprintf.c: New file, from GNU gettext.
71918
71919 2003-01-29  Bruno Haible  <bruno@clisp.org>
71920
71921         * modules/stpncpy: New module.
71922         * MODULES.html.sh (func_all_modules): Add it.
71923
71924 2003-01-29  Bruno Haible  <bruno@clisp.org>
71925
71926         * m4/stpncpy.m4: New file.
71927
71928 2003-01-29  Bruno Haible  <bruno@clisp.org>
71929
71930         * lib/stpncpy.h: New file, from GNU gettext with modifications.
71931         * lib/stpncpy.c: New file, from GNU gettext with modifications.
71932
71933 2003-01-28  Bruno Haible  <bruno@clisp.org>
71934
71935         * modules/c-ctype: New module.
71936         * MODULES.html.sh (func_all_modules): Add it.
71937
71938 2003-01-28  Bruno Haible  <bruno@clisp.org>
71939
71940         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
71941         Paul Eggert.
71942         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
71943         Paul Eggert.
71944
71945 2003-01-27  Bruno Haible  <bruno@clisp.org>
71946
71947         * modules/xsetenv: New module.
71948         * MODULES.html.sh (func_all_modules): Add it.
71949
71950 2003-01-27  Bruno Haible  <bruno@clisp.org>
71951
71952         * lib/xsetenv.h: New file, from GNU gettext.
71953         * lib/xsetenv.c: New file, from GNU gettext.
71954
71955 2003-01-23  Jim Meyering  <jim@meyering.net>
71956
71957         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
71958         from working on systems without dirfd (at least Irix and OSF1/Tru64).
71959
71960 2003-01-23  Bruno Haible  <bruno@clisp.org>
71961
71962         * modules/minmax: New module.
71963         * MODULES.html.sh (func_all_modules): Add it.
71964
71965 2003-01-23  Bruno Haible  <bruno@clisp.org>
71966
71967         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
71968         Eggert.
71969
71970 2003-01-22  Bruno Haible  <bruno@clisp.org>
71971
71972         * modules/exit: New module.
71973         * MODULES.html.sh (func_all_modules): Add it.
71974
71975 2003-01-22  Bruno Haible  <bruno@clisp.org>
71976
71977         * lib/exit.h: New file, from GNU gettext.
71978
71979 2003-01-19  Bruno Haible  <bruno@clisp.org>
71980
71981         * gnulib-tool: Recognize option --extract-maintainer.
71982         (func_get_maintainer): New function.
71983         * modules/*: Add Maintainer entry.
71984
71985 2003-01-16  Jim Meyering  <jim@meyering.net>
71986
71987         * m4/regex.m4: The `regex' struct is both input and output.
71988         Initialize it before each use.  Patch by Tim Waugh.
71989
71990 2003-01-16  Bruno Haible  <bruno@clisp.org>
71991
71992         * MODULES.html.sh: Add a table of contents. Add the module name as
71993         leftmost column. Add hyperlinks.
71994
71995 2003-01-15  Bruno Haible  <bruno@clisp.org>
71996
71997         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
71998
71999 2003-01-15  Bruno Haible  <bruno@clisp.org>
72000
72001         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
72002         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
72003         suffix.
72004
72005 2003-01-15  Bruno Haible  <bruno@clisp.org>
72006
72007         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
72008
72009 2003-01-15  Bruno Haible  <bruno@clisp.org>
72010
72011         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
72012         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
72013
72014 2003-01-14  Jim Meyering  <jim@meyering.net>
72015
72016         * lib/same.c (same_name): Tweak a comment.
72017
72018 2003-01-14  Bruno Haible  <bruno@clisp.org>
72019
72020         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
72021         when a string comparison is sufficient.
72022
72023 2003-01-14  Bruno Haible  <bruno@clisp.org>
72024
72025         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
72026         'unsigned int'.
72027
72028 2003-01-14  Bruno Haible  <bruno@clisp.org>
72029
72030         * lib/hash-pjw.c: Add comment about low quality of this function.
72031
72032 2003-01-13  Bruno Haible  <bruno@clisp.org>
72033
72034         * modules/stpcpy: Distribute lib/stpcpy.h.
72035         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
72036
72037 2003-01-13  Bruno Haible  <bruno@clisp.org>
72038
72039         * modules/*: Add a description.
72040         * modules/strpbrk: Fix Makefile.am snippet.
72041         * modules/strtoimax: Fix dependencies.
72042         * modules/strtoumax: Likewise.
72043
72044 2003-01-13  Bruno Haible  <bruno@clisp.org>
72045
72046         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
72047         * modules/alloca (Makefile.am): All object files depend on alloca.h.
72048         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
72049
72050 2003-01-13  Bruno Haible  <bruno@clisp.org>
72051
72052         * gnulib-tool (func_create_testdir): Store config/* files in the main
72053         directory.
72054         * config.rpath: Move to ...
72055         * config/config.rpath: ... here.
72056         * modules/gettext: Contains config/config.rpath, not config.rpath.
72057         * modules/iconv: Likewise.
72058
72059 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72060
72061         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72062         to avoid collisions with libcurses and libreadline.
72063
72064         * m4/getstr.m4: Remove.
72065         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
72066
72067 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72068
72069         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72070         to avoid collisions with libcurses and libreadline.
72071
72072         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
72073         * lib/getstr.h, getstr.c: Remove.
72074         * lib/getline.c: Include "getline.h", to check interface.
72075         Move body of old getstr.c here: this defines MIN_CHUNK and
72076         declares getdelim2, which is renamed from getstr.
72077         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
72078
72079         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
72080         All uses changed.
72081         * lib/linebuffer.h: Likewise.
72082         (readline): Remove backward-compatibility macro.
72083
72084 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72085
72086         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72087         to avoid collisions with libcurses and libreadline.
72088         * getstr: Remove.
72089         * MODULES.html.sh: Remove getstr.
72090         * modules/getline: Depend on unlocked-io, not getstr.
72091
72092 2003-01-12  Jim Meyering  <jim@meyering.net>
72093
72094         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
72095
72096 2003-01-10  Bruno Haible  <bruno@clisp.org>
72097
72098         * modules/alloca: Change Makefile.am requirements. Simplify Include
72099         requirements. Add lib/alloca_.h to file list.
72100
72101 2003-01-10  Bruno Haible  <bruno@clisp.org>
72102
72103         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
72104
72105 2003-01-10  Bruno Haible  <bruno@clisp.org>
72106
72107         * lib/alloca_.h: New file.
72108         * lib/getdate.y: Unconditionally include alloca.h.
72109         * lib/makepath.c: Likewise.
72110         * lib/setenv.c: Likewise.
72111         * lib/userspec.c: Likewise.
72112
72113 2003-01-09  Karl Berry  <karl@gnu.org>
72114
72115         * MODULES.html.sh: include `dirname $0` in PATH, to find
72116         gnulib-tool.
72117
72118 2003-01-09  Bruno Haible  <bruno@clisp.org>
72119
72120         * modules/stdbool: Change configure.ac, Makefile.am requirements.
72121         Simplify Include requirements. Add lib/stdbool.h.in to file list.
72122
72123 2003-01-09  Bruno Haible  <bruno@clisp.org>
72124
72125         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
72126
72127 2003-01-09  Bruno Haible  <bruno@clisp.org>
72128
72129         * lib/stdbool.h.in: New file.
72130
72131 2003-01-09  Bruno Haible  <bruno@clisp.org>
72132
72133         * gnulib-tool (func_all_modules): Ignore files ending in ~.
72134         * MODULES.html.sh: Likewise.
72135
72136 2003-01-08  Jim Meyering  <jim@meyering.net>
72137
72138         * lib/full-write.c: Undefine and define-away `const' after inclusion
72139         of errno.h, not before.  Suggestion from Bruno Haible.
72140
72141 2003-01-08  Bruno Haible  <bruno@clisp.org>
72142
72143         * modules/full-read: Depend on full-write.
72144
72145 2003-01-08  Bruno Haible  <bruno@clisp.org>
72146
72147         * lib/safe-read.c: Include specification header first, to ensure its
72148         selfcontainedness.
72149         * lib/full-write.c: Likewise.
72150
72151 2003-01-07  Jim Meyering  <jim@meyering.net>
72152
72153         * lib/full-write.c: Rework so that it may serve to define full_read,
72154         too.
72155         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
72156
72157 2003-01-07  Bruno Haible  <bruno@clisp.org>
72158
72159         * lib/strtoimax.c: Include <stdint.h> as an alternative to
72160         <inttypes.h>.
72161         * lib/xstrtol.h: Likewise.
72162         * lib/xstrtoimax.c: Likewise.
72163         * lib/xstrtoumax.c: Likewise.
72164         * lib/human.h: Likewise.
72165
72166         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
72167         on systems that have <inttypes.h> but not <stdint.h>.
72168
72169 2003-01-07  Bruno Haible  <bruno@clisp.org>
72170
72171         * MODULES.html.sh: Add copyright notice.
72172         (missed_files): Omit CVS directory entries.
72173         (func_module): Make it work with sed-3.02.
72174         * MODULES.txt: Remove file.
72175
72176 2003-01-06  Jim Meyering  <jim@meyering.net>
72177
72178         * lib/version-etc.c: Update year in translatable copyright string.
72179
72180 2003-01-03  Karl Berry  <karl@gnu.org>
72181
72182         * config/config.{guess,sub}: update from prep.
72183
72184 2003-01-02  Karl Berry  <karl@gnu.org>
72185
72186         * doc/COPYING.DOC: belatedly updated to 1.2.
72187
72188 2003-01-01  Karl Berry  <karl@gnu.org>
72189
72190         * gnulib-tool (func_verify_module): report module name $module in
72191         error message, not $1.
72192         * gnulib-tool (create-testdir): don't complain if destdir couldn't
72193         be created, only if it doesn't exist.
72194         * gnulib-tool (last_checkin_date): don't expand the $Date here.
72195
72196 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72197
72198         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
72199
72200 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72201
72202         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
72203         memcmp if strcoll doesn't work.
72204
72205 2002-12-31  Bruno Haible  <bruno@clisp.org>
72206
72207         * lib/utime.c (utime_null): No need to call ftruncate if the file was
72208         nonempty.
72209
72210 2002-12-31  Bruno Haible  <bruno@clisp.org>
72211
72212         * lib/memcoll.c (STRCOLL): New macro.
72213         (memcoll): Use it.
72214
72215 2002-12-31  Bruno Haible  <bruno@clisp.org>
72216
72217         * lib/localcharset.h: New file.
72218         * lib/localcharset.c: Include it.
72219         * lib/unicodeio.c: Likewise.
72220
72221 2002-12-31  Bruno Haible  <bruno@clisp.org>
72222
72223         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
72224         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
72225
72226 2002-12-31  Bruno Haible  <bruno@clisp.org>
72227
72228         * lib/getline.h: Include <stddef.h>, for size_t.
72229
72230         * lib/unicodeio.h: Include <stddef.h>, for size_t.
72231         * lib/unicodeio.c: Don't include <stddef.h>.
72232
72233 2002-12-31  Bruno Haible  <bruno@clisp.org>
72234
72235         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
72236         HAVE_TM_ZONE.
72237
72238 2002-12-24  Karl Berry  <karl@gnu.org>
72239
72240         * config/config.guess: update from prep.
72241
72242 2002-12-24  Bruno Haible  <bruno@clisp.org>
72243
72244         General infrasructure.
72245         * m4/README: Rewritten.
72246         * m4/onceonly.m4: New file.
72247         * m4/onceonly_2_57.m4: New file.
72248
72249         Module atexit.
72250         * m4/atexit.m4: New file.
72251
72252         Module strtod.
72253         * m4/strtod.m4: New file.
72254
72255         Module strtol.
72256         * m4/strtol.m4: New file.
72257
72258         Module strtoul.
72259         * m4/strtoul.m4: New file.
72260
72261         Module memchr.
72262         * m4/memchr.m4: New file.
72263
72264         Module memcmp.
72265         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
72266         (jm_FUNC_MEMCMP): Invoke it.
72267
72268         Module memcpy.
72269         * m4/memcpy.m4: New file.
72270
72271         Module memmove.
72272         * m4/memmove.m4: New file.
72273
72274         Module memset.
72275         * m4/memset.m4: New file.
72276
72277         Module strcspn.
72278         * m4/strcspn.m4: New file.
72279
72280         Module strpbrk.
72281         * m4/strpbrk.m4: New file.
72282
72283         Module strstr.
72284         * m4/strstr.m4: New file.
72285
72286         Module strerror.
72287         * m4/strerror.m4: New file.
72288
72289         Module mktime.
72290         * m4/mktime.m4: Renamed from jm-mktime.m4.
72291         (gl_PREREQ_MKTIME): New macro.
72292         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
72293
72294         Module malloc.
72295         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
72296         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
72297         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
72298
72299         Module realloc.
72300         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
72301         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
72302         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
72303
72304         Module strftime.
72305         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
72306         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
72307         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
72308         gl_TM_GMTOFF.
72309         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
72310
72311         Module xalloc.
72312         * m4/xalloc.m4: New file.
72313
72314         Module alloca.
72315         * m4/alloca.m4: New file.
72316
72317         Module putenv.
72318         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
72319         (jm_FUNC_PUTENV): Invoke it.
72320
72321         Module setenv.
72322         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
72323         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
72324         when invoked twice.
72325         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
72326         gt_FUNC_SETENV.
72327
72328         Module memrchr.
72329         * m4/memrchr.m4: New file.
72330
72331         Module stpcpy.
72332         * m4/stpcpy.m4: New file.
72333
72334         Module strcase.
72335         * m4/strcase.m4: New file.
72336
72337         Module strdup.
72338         * m4/strdup.m4: New file.
72339
72340         Module strnlen.
72341         * m4/strnlen.m4: New file.
72342
72343         Module strndup.
72344         * m4/strndup.m4: New file.
72345
72346         Module xstrtod.
72347         * m4/xstrtod.m4: New file.
72348
72349         Module xstrtol.
72350         * m4/xstrtol.m4: New file.
72351
72352         Module getdate.
72353         * m4/getdate.m4: New file.
72354
72355         Module unlocked-io.
72356         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
72357         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
72358         * m4/jm-glibc-io.m4n: Remove file.
72359
72360         Module long-options.
72361         * m4/long-options.m4: New file.
72362
72363         Module md5.
72364         * m4/md5.m4: New file.
72365
72366         Module sha.
72367         * m4/sha.m4: New file.
72368
72369         Module getstr.
72370         * m4/getstr.m4: New file.
72371
72372         Module getline.
72373         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
72374         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
72375         <sys/types.h>, for size_t. Use the function name gnu_getline, not
72376         simply getline. Infoke gl_PREREQ_GETLINE.
72377
72378         Module obstack.
72379         * m4/obstack.m4: New file.
72380
72381         Module hash.
72382         * m4/hash.m4: New file.
72383
72384         Module readtokens.
72385         * m4/readtokens.m4: New file.
72386
72387         Module strverscmp.
72388         * m4/strverscmp.m4: New file.
72389
72390         Module stdbool.
72391         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
72392         OSF/1.
72393
72394         Module strtoll.
72395         * m4/strtoll.m4: New file.
72396
72397         Module strtoull.
72398         * m4/strtoull.m4: New file.
72399
72400         Module strtoimax.
72401         * m4/strtoimax.m4: New file.
72402
72403         Module strtoumax.
72404         * m4/strtoumax.m4: New file.
72405
72406         Module xstrtoimax.
72407         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
72408         jm_AC_PREREQ_XSTRTOIMAX.
72409         Moved the strtol prerequisites to strtol.m4.
72410         Moved the strtoll prerequisites to strtoll.m4.
72411         Moved the strtoimax prerequisites to strtoimax.m4.
72412
72413         Module xstrtoumax.
72414         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
72415         jm_AC_PREREQ_XSTRTOUMAX.
72416         Moved the strtoul prerequisites to strtoul.m4.
72417         Moved the strtoull prerequisites to strtoull.m4.
72418         Moved the strtoumax prerequisites to strtoumax.m4.
72419
72420         Module chown.
72421         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
72422         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
72423
72424         Module dup2.
72425         * m4/dup2.m4: New file.
72426
72427         Module ftruncate.
72428         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
72429         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
72430
72431         Module getgroups.
72432         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
72433         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
72434
72435         Module gettimeofday.
72436         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
72437         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
72438         gl_PREREQ_GETTIMEOFDAY.
72439
72440         Module mkdir.
72441         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
72442         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
72443
72444         Module mkstemp.
72445         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
72446         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
72447         jm_AC_TYPE_UINTMAX_T.
72448         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
72449
72450         Module stat.
72451         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
72452         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
72453
72454         Module lstat.
72455         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
72456         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
72457
72458         Module timespec.
72459         * m4/timespec.m4 (gl_TIMESPEC): New macro.
72460         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
72461         * m4/st_mtim.m4: Indentation.
72462
72463         Module nanosleep.
72464         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
72465         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
72466         gl_PREREQ_NANOSLEEP.
72467
72468         Module regex.
72469         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
72470         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
72471         (gl_REGEX): New macro.
72472
72473         Module rename.
72474         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
72475         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
72476
72477         Module rmdir.
72478         * m4/rmdir.m4: New file.
72479
72480         Module utime.
72481         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
72482         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
72483         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
72484
72485         Module dirname.
72486         * m4/dirname.m4: New file.
72487
72488         Module getopt.
72489         * m4/getopt.m4: New file.
72490
72491         Module unistd-safer.
72492         * m4/unistd-safer.m4: New file.
72493
72494         Module fnmatch.
72495         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
72496         declaration.
72497         (gl_PREREQ_FNMATCH_EXTRA): New macro.
72498         (gl_FUNC_FNMATCH_POSIX): New macro.
72499         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
72500         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
72501         simply fnmatch.
72502
72503         Module exclude.
72504         * m4/exclude.m4: New file.
72505
72506         Module human.
72507         * m4/human.m4: New file.
72508
72509         Module acl.
72510         * m4/acl.m4: Nop.
72511
72512         Module backupfile.
72513         * m4/backupfile.m4: New file.
72514         * m4/d-ino.m4: Indentation.
72515
72516         Module fsusage.
72517         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
72518         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
72519         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
72520
72521         Module dirfd.
72522         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
72523         requirements.
72524
72525         Module euidaccess.
72526         * m4/euidaccess.m4: New file.
72527
72528         Module file-type.
72529         * m4/file-type.m4: New file.
72530
72531         Module fileblocks.
72532         * m4/fileblocks.m4: New file.
72533
72534         Module filemode.
72535         * m4/filemode.m4: New file.
72536
72537         Module isdir.
72538         * m4/isdir.m4: New file.
72539
72540         Module lchown.
72541         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
72542         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
72543
72544         Module makepath.
72545         * m4/makepath.m4: New file.
72546
72547         Module modechange.
72548         * m4/modechange.m4: New file.
72549
72550         Module mountlist.
72551         * m4/mountlist.m4: New file.
72552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
72553         Indentation.
72554
72555         Module path-concat.
72556         * m4/path-concat.m4: New file.
72557
72558         Module pathmax.
72559         * m4/pathmax.m4: New file.
72560
72561         Module same.
72562         * m4/same.m4: New file.
72563
72564         Module save-cwd.
72565         * m4/save-cwd.m4: New file.
72566
72567         Module savedir.
72568         * m4/savedir.m4: New file.
72569
72570         Module xgetcwd.
72571         * m4/xgetcwd.m4: New file.
72572         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
72573
72574         Module xreadlink.
72575         * m4/xreadlink.m4: New file.
72576
72577         Module safe-read.
72578         * m4/safe-read.m4: New file.
72579
72580         Module safe-write.
72581         * m4/safe-write.m4: New file.
72582
72583         Module closeout.
72584         * m4/closeout.m4: New file.
72585
72586         Module stdio-safer.
72587         * m4/stdio-safer.m4: New file.
72588
72589         Module getpass.
72590         * m4/getpass.m4: New file.
72591
72592         Module getugroups.
72593         * m4/getugroups.m4: New file.
72594
72595         Module group-member.
72596         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
72597         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
72598
72599         Module idcache.
72600         * m4/idcache.m4: New file.
72601
72602         Module userspec.
72603         * m4/userspec.m4: New file.
72604
72605         Module gettime.
72606         * m4/clock_time.m4: New file.
72607         * m4/gettime.m4: New file.
72608
72609         Module settime.
72610         * m4/settime.m4: New file.
72611
72612         Module posixtm.
72613         * m4/posixtm.m4: New file.
72614
72615         Module gethostname.
72616         * m4/gethostname.m4: New file.
72617
72618         Module canon-host.
72619         * m4/canon-host.m4: New file.
72620
72621         Module gettext.
72622         * m4/codeset.m4: New file, from gettext-0.11.5.
72623         * m4/gettext.m4: New file, from gettext-0.11.5.
72624         * m4/glibc21.m4: New file, from gettext-0.11.5.
72625         * m4/iconv.m4: New file, from gettext-0.11.5.
72626         * m4/intdiv0.m4: New file, from gettext-0.11.5.
72627         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
72628         * m4/inttypes.m4: New file, from gettext-0.11.5.
72629         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
72630         * m4/isc-posix.m4: New file, from gettext-0.11.5.
72631         * m4/lcmessage.m4: New file, from gettext-0.11.5.
72632         * m4/lib-ld.m4: New file, from gettext-0.11.5.
72633         * m4/lib-link.m4: New file, from gettext-0.11.5.
72634         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
72635         * m4/progtest.m4: New file, from gettext-0.11.5.
72636         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
72637         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
72638         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
72639
72640         Module localcharset.
72641         * m4/localcharset.m4: New file.
72642
72643         Module hard-locale.
72644         * m4/hard-locale.m4: New file.
72645
72646         Module mbswidth.
72647         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
72648         onceonly macros.
72649         * m4/mbrtowc.m4: Add comment.
72650
72651         Module memcasecmp.
72652         * m4/memcasecmp.m4: New file.
72653
72654         Module memcoll.
72655         * m4/memcoll.m4: New file.
72656
72657         Module unicodeio.
72658         * m4/unicodeio.m4: New file.
72659
72660         Module rpmatch.
72661         * m4/rpmatch.m4: New file.
72662
72663         Module yesno.
72664         * m4/yesno.m4: New file.
72665
72666         Module exitfail.
72667         * m4/exitfail.m4: New file.
72668
72669         Module c-stack.
72670         * m4/c-stack.m4 (gl_C_STACK): New macro.
72671         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
72672
72673         Module error.
72674         * m4/error.m4 (gl_ERROR): New macro.
72675         (jm_PREREQ_ERROR): Use onceonly macros.
72676
72677         Module fatal.
72678         * m4/fatal.m4: New file.
72679
72680         Module getloadavg.
72681         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
72682         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
72683
72684         Module getpagesize.
72685         * m4/getpagesize.m4: New file.
72686
72687         Module getusershell.
72688         * m4/getusershell.m4: New file.
72689
72690         Module physmem.
72691         * m4/physmem.m4: New file.
72692
72693         Module posixver.
72694         * m4/posixver.m4: New file.
72695
72696         Module quotearg.
72697         * m4/quotearg.m4: New file.
72698
72699         Module quote.
72700         * m4/quote.m4: New file.
72701
72702         Module readutmp.
72703         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
72704
72705         Module sig2str.
72706         * m4/sig2str.m4: New file.
72707
72708         Other.
72709         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
72710         ulonglong.m4.
72711         * m4/intmax_t.m4: New file.
72712         * m4/d-type.m4: Indentation.
72713         * m4/jm-macros.m4: Update.
72714         * m4/prereq.m4 (jm_PREREQ): Update.
72715         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
72716         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
72717         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
72718         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
72719         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
72720         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
72721         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
72722         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
72723         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
72724         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
72725         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
72726         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
72727         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
72728         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
72729         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
72730         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
72731         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
72732         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
72733         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
72734
72735 2002-12-24  Bruno Haible  <bruno@clisp.org>
72736
72737         * MODULES.txt: Update according to m4/ changes.
72738
72739         Module gettext.
72740         * config.rpath: New file, from gettext-0.11.5.
72741
72742         * modules/*: New module descriptions.
72743         * gnulib-tool: New file.
72744         * MODULES.html.sh: New file.
72745
72746 2002-12-21  Karl Berry  <karl@gnu.org>
72747
72748         * doc/fdl.texi: update to version 1.2.
72749
72750 2002-12-19  Karl Berry  <karl@gnu.org>
72751
72752         * config/config.guess: update from prep.
72753
72754 2002-12-18  Bruno Haible  <bruno@clisp.org>
72755
72756         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
72757         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
72758
72759 2002-12-17  Bruno Haible  <bruno@clisp.org>
72760
72761         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
72762         stdlib.h, string.h.
72763
72764 2002-12-17  Bruno Haible  <bruno@clisp.org>
72765
72766         * lib/canon-host.c (strdup): Remove unused declaration.
72767
72768         * lib/fsusage.c: Include full_read.h.
72769         (get_fs_usage): Use full_read instead of safe_read.
72770
72771         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
72772
72773 2002-12-12  Karl Berry  <karl@gnu.org>
72774
72775         * config/config.guess: update from prep.
72776
72777 2002-12-11  Bruno Haible  <bruno@clisp.org>
72778
72779         * m4/setenv.m4: New file, from gettext-0.11.5.
72780
72781 2002-12-11  Bruno Haible  <bruno@clisp.org>
72782
72783         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
72784         not unsetenv().
72785         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
72786         modifications:
72787
72788         2002-12-11  Bruno Haible  <bruno@clisp.org>
72789
72790                 * setenv.c (alloca): Fall back to malloc.
72791                 (freea): New macro.
72792                 (setenv): Use freea() to free memory allocated with alloca().
72793
72794         2002-11-13  Bruno Haible  <bruno@clisp.org>
72795
72796                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
72797                 function declarations.
72798                 * unsetenv.c (unsetenv): Likewise.
72799
72800         2002-03-04  Bruno Haible  <bruno@clisp.org>
72801
72802                 Portability to AIX 4.3.3.
72803                 * unsetenv.c: New file, extracted from setenv.c.
72804                 * setenv.c: Move the unsetenv() function to unsetenv.c.
72805
72806         2001-12-20  Bruno Haible  <bruno@clisp.org>
72807
72808                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
72809                 use malloc instead. For SunOS 4.
72810
72811         2001-12-11  Bruno Haible  <bruno@clisp.org>
72812
72813                 * setenv.c: Declare alloca.
72814                 (compar_fn_t): New typedef.
72815                 (KNOWN_VALUE, STORE_VALUE): Use it.
72816
72817         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
72818         setenv.h.
72819
72820 2002-12-10  Paul Eggert  <eggert@twinsun.com>
72821
72822         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
72823         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
72824         Choose values that are less likely to collide with system fnmatch
72825         options.
72826         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
72827         defined (e.g., a pure POSIX system).
72828         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
72829         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
72830
72831 2002-12-06  Paul Eggert  <eggert@twinsun.com>
72832
72833         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
72834         a pain in practice to deal with generated m4 files.  This change
72835         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
72836
72837         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
72838         and jm-glibc-io.m4, as they are no longer a special case.
72839         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
72840         kludge and the auto-generation stuff.  Check only whether the
72841         functions are declared, not whether they exist, since older hosts
72842         that don't declare the functions can't use the optimization anyway.
72843
72844 2002-12-06  Jim Meyering  <jim@meyering.net>
72845
72846         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
72847
72848         Merge in changes from libc's misc/error.c, in preparation
72849         for the merge of gnulib's changes back into libc.
72850
72851         * lib/error.c (_): Define only if not already defined.
72852         Move definition to follow all #include directives.
72853         Include unlocked-io.h only if !_LIBC.
72854         [_LIBC]: Include <libio/libioP.h>.
72855         [USE_IN_LIBIO]: Include <libio/iolibio.h>
72856         (fflush): Tweak definition to use INTUSE.
72857         (putc): Define.
72858
72859 2002-12-05  Paul Eggert  <eggert@twinsun.com>
72860
72861         * lib/alloca.c [defined emacs]: Include "lisp.h".
72862         (xalloc_die) [defined emacs]: New macro.
72863         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
72864         [! defined emacs]: Include <xalloc.h>.
72865         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
72866         (pointer): Typedef to POINTER_TYPE *.
72867         (malloc): Remove decl; we now always use xmalloc.
72868         (alloca): Use old-style definition, since Emacs needs this.
72869         Check for arithmetic overflow when computing combined size.
72870
72871 2002-12-04  Paul Eggert  <eggert@twinsun.com>
72872
72873         Do not generate unlocked-io.h automatically, since it's easier to
72874         maintain it by hand.
72875
72876         * lib/unlocked-io.h: New file, from GNU diffutils,
72877         but with proper copyright notice and attribution.
72878         * lib/gen-uio: Remove.
72879         * lib/Makefile.am: Add copyright notice.
72880         (libfetish_a_SOURCES): Add unlocked-io.h.
72881         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
72882         (DISTCLEANFILES, io_functions): Remove macros.
72883         (EXTRA_DIST): Remove gen_uio.
72884         (unlocked-io.h): Remove rule.
72885
72886 2002-12-04  Jim Meyering  <jim@meyering.net>
72887
72888         Reflect the fact that stat.c and lstat.c are no longer generated.
72889         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
72890         (DISTCLEANFILES): Likewise.
72891         (EXTRA_DIST): Likewise.
72892         (all_local): Don't depend on stat.c or lstat.c.
72893         (stat.c, lstat.c): Remove rules.
72894         (EXTRA_DIST): Remove xstat.in.
72895
72896         * lib/xstat.in: Remove file.  Contents moved into stat.c.
72897         * lib/stat.c: New file.  Contents mostly from xstat.in.
72898         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
72899         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
72900
72901         * lib/safe-read.c: Rework so that it may serve to define safe_write,
72902         too.
72903         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
72904
72905 2002-12-03  Jim Meyering  <jim@meyering.net>
72906
72907         * lib/safe-read.c, safe-write.c: Change variable names and comments,
72908         but not semantics, to minimize the differences between these two files.
72909         (safe_read): Change comment to mention SAFE_READ_ERROR.
72910
72911         * lib/safe-read.c (IS_EINTR): Define.
72912         (safe_read): Use IS_EINTR in place of in-function cpp directives.
72913
72914 2002-12-02  Jim Meyering  <jim@meyering.net>
72915
72916         * lib/safe-read.c (EINTR): Define.
72917         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72918         (INT_MAX): Provide fallback.
72919         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
72920
72921         * lib/safe-read.h (SAFE_READ_ERROR): Define.
72922
72923 2002-12-02  Bruno Haible  <bruno@clisp.org>
72924
72925         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
72926         Define, taken from safe-read.c.
72927         (INT_MAX): Provide fallback.
72928         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
72929         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
72930
72931         * lib/safe-read.c (EINTR): Remove definition.
72932         (safe_read): Don't use EINTR if it is absent.
72933
72934 2002-12-01  Jim Meyering  <jim@meyering.net>
72935
72936         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
72937         zero.
72938         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
72939
72940 2002-11-27  Paul Eggert  <eggert@twinsun.com>
72941
72942         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
72943         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
72944         with `if (! (value < limit)) abort ();', for readability.
72945
72946 2002-11-26  Karl Berry  <karl@gnu.org>
72947
72948         * lib/strdup.c: copy from libc again, with jim's ok.
72949         * lib/.cppi-disable: re-add strdup.c
72950
72951 2002-11-25  Karl Berry  <karl@gnu.org>
72952
72953         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
72954         instead of "strtol.c".
72955
72956 2002-11-25  Karl Berry  <karl@gnu.org>
72957
72958         * config/install-sh: update from automake for variable quoting, $0 in
72959         error msgs, etc.
72960
72961         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
72962         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
72963         entry.
72964
72965 2002-11-25  Jim Meyering  <jim@meyering.net>
72966
72967         * lib/mktime.c: Sync from libc, now that it has the latest fix.
72968
72969 2002-11-24  Karl Berry  <karl@gnu.org>
72970
72971         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
72972         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
72973
72974 2002-11-24  Jim Meyering  <jim@meyering.net>
72975
72976         Update from coreutils:
72977
72978         * lib/mktime.c: Merge in changes from libc.
72979
72980         Avoid a link-time failure on some Linux systems.
72981         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
72982         (otherwise).
72983         (__mon_yday): Declare with the STATIC attribute.
72984         (__mktime_internal): Likewise.
72985         Based on a report from Greg Schafer.
72986
72987 2002-11-23  Jim Meyering  <jim@meyering.net>
72988
72989         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
72990         Use `unsigned', not `int', as type of index.
72991
72992         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
72993
72994         * lib/fsusage.c: Remove unneeded parentheses around operands of
72995         `defined'.
72996
72997 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72998
72999         * lib/quotearg.h: Allow multiple inclusion by surrounding with
73000         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
73001         so that we can be included first.
73002         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
73003         * lib/quotearg.c: Include quotearg.h immediately after config.h.
73004         No need to include stddef.h or sys/types.h any more.
73005         Surround local include files with "", not "<>".
73006         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
73007         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
73008         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
73009         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
73010         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
73011         (ISPRINT): Remove; no longer needed now that we assume C89.
73012
73013         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
73014         Preserve errno.
73015
73016         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
73017         quotearg_char): Use SIZE_MAX rather than
73018         (size_t) -1 when we are talking about "infinity".
73019
73020         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
73021
73022 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73023
73024         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
73025         hint that one should use `if (! x) abort ();' rather than `assert
73026         (x);', and anyway it's one less thing to worry about configuring.
73027         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
73028         hash_rehash, hash_insert): Use abort rather than assert.
73029
73030 2002-11-22  Bruno Haible  <bruno@clisp.org>
73031
73032         * lib/safe-read.h: Assume C89. Add comments.
73033         (safe_read): Change return type to size_t.
73034         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
73035         byte counts > SSIZE_MAX correctly.
73036         * lib/safe-write.h: New file.
73037         * lib/safe-write.c: New file.
73038         * lib/full-read.h: New file.
73039         * lib/full-read.c: New file.
73040         * lib/full-write.h: Assume C89. Add comments.
73041         * lib/full-write.c: Include safe-write.h.
73042         (full_write): Rewritten to use safe_write.
73043         Suggested by Jim Meyering and Paul Eggert.
73044
73045 2002-11-21  Jim Meyering  <jim@meyering.net>
73046
73047         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
73048
73049         Merge in changes from the coreutils.
73050
73051         2002-09-25  Paul Eggert  <eggert@twinsun.com>
73052         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
73053         <stdint.h>.
73054         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
73055         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
73056         int.  Work more efficiently if X is the same width as uintmax_t.
73057         Do not compare X to -1, to avoid bogus compiler warning.
73058         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
73059         Don't assume that f_frsize and f_bsize are the same type.
73060
73061         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
73062         warning on FreeBSD.
73063
73064         * lib/makepath.c (make_path): Restore umask *before* creating the final
73065         component.
73066         (make_path): Minor reformatting.
73067
73068         * lib/xmalloc.c: Adjust to work with new autoconf macros,
73069         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
73070         HAVE_MALLOC/HAVE_REALLOC.
73071
73072         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
73073         dummy ones.  At least on GNU/Linux systems, `auto' means something
73074         else.
73075         From Michael Stone.
73076
73077 2002-11-21  Bruno Haible  <bruno@clisp.org>
73078
73079         Remove case insensitive option matching.
73080         * lib/argmatch.h (argcasematch): Remove declaration.
73081         (ARGCASEMATCH): Remove macro.
73082         (__xargmatch_internal): Remove case_sensitive argument.
73083         (XARGMATCH): Update.
73084         (XARGCASEMATCH): Remove macro.
73085         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
73086         case_sensitive argument.
73087         (argcasematch): Remove function.
73088         (__xargmatch_internal): Remove case_sensitive argument.
73089         (main): Use XARGMATCH instead of XARGCASEMATCH.
73090
73091         * lib/xmalloc.c: Change compile-time error message. Add comment about
73092         required autoconf version.
73093
73094 2002-11-20  Paul Eggert  <eggert@twinsun.com>
73095
73096         Merge argmatch cleanups from Bison.  Assume C89.
73097
73098         * lib/argmatch.c: Include config.h here, not in argmatch.h.
73099         Include stdlib.h, for EXIT_FAILURE.
73100         Always include <string.h>, since we assume C89.
73101         (EXIT_FAILURE): Remove pre-C89 bug workaround.
73102         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
73103         Include <stddef.h> instead, since it's all we need for size_t.
73104         (PARAMS): Remove.  All uses removed.
73105         (ARRAY_CARDINALITY): Do not bother to #undef.
73106         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
73107         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73108         Remove unnecessary parentheses.
73109         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73110         Insert necessary parentheses.
73111         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
73112         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
73113
73114 2002-11-19  Bruno Haible  <bruno@clisp.org>
73115
73116         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
73117         * lib/mbswidth.h: Include <stddef.h>, for size_t.
73118
73119         * lib/mbswidth.h (PARAMS): Remove macro.
73120         (mbswidth, mbsnwidth): Use ANSI C function declarations.
73121         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
73122
73123         * lib/gcd.h (PARAMS): Remove macro.
73124         (gcd): Use ANSI C function declarations.
73125         * lib/gcd.c (gcd): Likewise.
73126
73127 2002-11-15  Bruno Haible  <bruno@clisp.org>
73128
73129         * lib/strcspn.c: Include <stddef.h>.
73130         (strcspn): Use ANSI C function declaration. Change return type to
73131         size_t. Use NULL.
73132         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
73133         (strpbrk): Use NULL.
73134         * lib/strpbrk.h (PARAMS): Remove macro.
73135         (strpbrk): Use ANSI C function declaration.
73136         * lib/strstr.c: Don't include <sys/types.h>.
73137         * lib/strstr.h (PARAMS): Remove macro.
73138         (strstr): Use ANSI C function declarations.
73139
73140 2002-11-14  Karl Berry  <karl@gnu.org>
73141
73142         * config/mkinstalldirs: `do' on separate line, instead of
73143         `for var; do'.
73144
73145 2002-11-06  Bruno Haible  <bruno@clisp.org>
73146
73147         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
73148         * lib/gcd.c (gcd): Likewise.
73149
73150 2002-11-05  Bruno Haible  <bruno@clisp.org>
73151
73152         * lib/gcd.h: New file, from gettext-0.11.5.
73153         * lib/gcd.c: New file, from gettext-0.11.5.
73154
73155 2002-11-05  Bruno Haible  <bruno@clisp.org>
73156
73157         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73158         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73159         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73160         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73161
73162         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
73163         <libintl.h>.
73164         * lib/makepath.c: Include gettext.h instead of <locale.h> and
73165         <libintl.h>.
73166
73167         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
73168         * lib/human.c: Include gettext.h instead of <libintl.h>.
73169         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
73170         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
73171         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
73172         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
73173         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
73174         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
73175         (textdomain): Remove definition.
73176         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
73177
73178         * lib/long-options.c: Remove include of <libintl.h> and definition of
73179         _.
73180         * lib/same.c: Remove include of <libintl.h> and definition of _.
73181
73182 2002-11-04  Owen Taylor  <otaylor@redhat.com>
73183
73184         * lib/config.charset: A few additions for Solaris.
73185
73186 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73187
73188         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
73189         * lib/localcharset.c (locale_charset): Declare as extern "C".
73190
73191 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73192
73193         * lib/config.charset: msdos in uk_UA uses CP1125.
73194
73195 2002-11-04  Bruno Haible  <bruno@clisp.org>
73196
73197         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
73198         * lib/strcase.h: New file, from GNU gettext-0.11.5.
73199         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
73200         * lib/strstr.h: New file, from GNU gettext-0.11.5.
73201         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
73202
73203 2002-11-04  Bruno Haible  <bruno@clisp.org>
73204
73205         * lib/localcharset.c (locale_charset): Don't return an empty string.
73206
73207 2002-11-04  Bruno Haible  <bruno@clisp.org>
73208
73209         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
73210         aliases.
73211
73212 2002-11-04  Bruno Haible  <bruno@clisp.org>
73213
73214         * lib/config.charset: Update for newest glibc. Add canonical names
73215         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
73216
73217 2002-11-04  Bruno Haible  <bruno@clisp.org>
73218
73219         * lib/config.charset: Add support for NetBSD.
73220
73221 2002-11-04  Bruno Haible  <bruno@clisp.org>
73222
73223         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
73224
73225 2002-11-01  Bruno Haible  <bruno@clisp.org>
73226
73227         * configure.in: Add AC_CONFIG_AUX_DIR call.
73228         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
73229         test/Makefile.
73230         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
73231
73232 2002-09-28  Karl Berry  <karl@gnu.org>
73233
73234         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
73235         installed automake until the next release, since changes have been
73236         made.
73237
73238 2002-09-25  Karl Berry  <karl@gnu.org>
73239
73240         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
73241         * lib/getopt*: copy from libc/posix.
73242         * lib/gettext.h: copy from gettext.
73243         * lib/.cppi-disable: add strdup.c, gettext.h.
73244
73245 2002-09-25  Karl Berry  <karl@gnu.org>
73246
73247         * config/srclist.txt: enable gettext.h check.
73248         * config/config.{guess,sub}: update from prep.
73249         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
73250                 from automake 1.6.3.
73251         See srclist*.
73252
73253 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
73254
73255         * regex.c (PATFETCH): Remove the translating fetch.
73256         (PATFETCH_RAW): Rename to PATFETCH.
73257         (set_image_of_range): New fun.
73258         (SET_RANGE_TABLE_WORK_AREA): Use it.
73259         (regex_compile): Don't translate the pattern chars so eagerly.
73260         Only do it when inserting an `exactn' bytecode or when handling
73261         a char-range.
73262         (mutually_exclusive_p): Avoid empty statement.
73263
73264 2002-07-06  Jim Meyering  <meyering@lucent.com>
73265
73266         * m4/README: Don't mention Makefile.am.in.
73267         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
73268
73269 2002-07-01  Jim Meyering  <meyering@lucent.com>
73270
73271         * lib/c-stack.c: Include sys/time.h.
73272         From Volker Borchert.
73273
73274 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73275
73276         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
73277
73278 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73279
73280         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
73281         New macro.  Use it uniformly instead of
73282         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
73283         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
73284         reported by Vin Shelton.
73285
73286 2002-06-22  Paul Eggert  <eggert@twinsun.com>
73287
73288         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
73289         Do not assume SA_SIGINFO behavior.
73290         Bug reported by Jim Meyering on NetBSD 1.5.2.
73291
73292 2002-06-22  Jim Meyering  <meyering@lucent.com>
73293
73294         * m4/c-stack.m4: New file, from diffutils-2.8.2.
73295         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
73296
73297         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
73298         now that configure.ac uses AC_GNU_SOURCE.
73299         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
73300         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
73301
73302         Update to latest tools.  Suggestions from Paul Eggert.
73303         * m4/stdbool.m4: New file, from diffutils-2.8.2.
73304         * m4/gnu-source.m4: Update from diffutils-2.8.2.
73305         * m4/fnmatch.m4: Likewise.
73306         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
73307         to AC_HEADER_STDBOOL
73308
73309 2002-06-22  Jim Meyering  <meyering@lucent.com>
73310
73311         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
73312         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
73313
73314 2002-06-22  Jim Meyering  <meyering@lucent.com>
73315
73316         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
73317
73318         * lib/exitfail.c, exitfail.h: Likewise.
73319         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
73320
73321         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
73322         of fnmatch.h.
73323         (EXTRA_DIST): Add fnmatch_loop.c.
73324         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
73325
73326         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
73327         * lib/fnmatch.c: Update from diffutils-2.8.2.
73328         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
73329         * lib/fnmatch.h: Remove file.
73330
73331 2002-06-21  Jim Meyering  <meyering@lucent.com>
73332
73333         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
73334         * m4/mbrtowc.m4: Likewise.
73335
73336         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
73337         * m4/mbswidth.m4: Reflect name change:
73338         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
73339         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
73340
73341         * m4/lib-link.m4: Update from gettext-0.11.2.
73342         * m4/gettext.m4: Likewise.
73343
73344         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
73345         From Alfred M. Szmidt.
73346
73347 2002-06-18  Paul Eggert  <eggert@twinsun.com>
73348
73349         * lib/file-type.h: Report an error if neither S_ISREG nor
73350         S_IFREG is defined, instead of using a test specific to glibc
73351         2.2.  This should be safe, since POSIX requires S_ISREG and
73352         Unix Version 7 had S_IFREG.  We don't need to check for
73353         <sys/types.h> since we don't use any symbols that it defines.
73354
73355 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
73356
73357         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
73358         $@-t, so that each temporary file name is unique and valid in the first
73359         8 characters, for operation under DOS.
73360
73361 2002-06-15  Paul Eggert  <eggert@twinsun.com>
73362
73363         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
73364
73365 2002-06-15  Jim Meyering  <meyering@lucent.com>
73366
73367         Work even with DJGPP 2.03, which lacks support for symlinks.
73368         From Richard Dawe.
73369         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
73370         is defined.
73371         * lib/lchown.c (S_ISLNK): Likewise.
73372
73373 2002-06-15  Jim Meyering  <meyering@lucent.com>
73374
73375         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
73376         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
73377         have been included before this file.
73378
73379 2002-06-14  Jim Meyering  <meyering@lucent.com>
73380
73381         * lib/file-type.h: Use the version from diffutils-2.8.2.
73382         * lib/file-type.c: Likewise.
73383
73384 2002-06-07  Jim Meyering  <meyering@lucent.com>
73385
73386         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
73387         They're needed at least for NetBSD 1.5.2.
73388         ($statxfs_includes): Include those same headers.
73389         ($statxfs_includes): Include sys/vfs.h if available.
73390         ($statxfs_includes): Likewise for sys/statvfs.h.
73391         Check for the following members in both structs statfs and statvfs:
73392         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
73393
73394 2002-06-01  Jim Meyering  <meyering@lucent.com>
73395
73396         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
73397         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
73398
73399 2002-05-28  Jim Meyering  <meyering@lucent.com>
73400
73401         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
73402         Reported by Volker Borchert.
73403
73404 2002-05-27  Jim Meyering  <meyering@lucent.com>
73405
73406         Fix a problem seen only on nonconforming systems whereby ls.c's
73407         use of localtime, and then of gettimeofday would cause trouble:
73408         the localtime call used to initialize rpl_gettimeofday's save
73409         mechanism would clobber ls's current local time information so
73410         that in any long listing the first file would always be listed
73411         with date 1970-01-01.  Analysis by Volker Borchert.
73412
73413         * lib/gettimeofday.c (localtime): Undefine.
73414         (rpl_localtime): New function.
73415
73416 2002-05-27  Jim Meyering  <meyering@lucent.com>
73417
73418         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
73419         localtime.
73420
73421         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
73422         use the replacement function; it wouldn't resolve at link time.
73423         Reported by Volker Borchert.
73424
73425 2002-05-22  Jim Meyering  <meyering@lucent.com>
73426
73427         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
73428         file-type.h.
73429         * lib/file-type.h: New file.
73430         * lib/file-type.c (file_type): New file/function.  Extracted from
73431         diffutils.
73432
73433 2002-04-30  Jim Meyering  <meyering@lucent.com>
73434
73435         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
73436
73437 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73438
73439         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
73440
73441 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73442
73443         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
73444         Do not check for alloca.h (no longer used) or stdbool.h (was never
73445         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
73446
73447 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73448
73449         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
73450
73451 2002-04-29  Jim Meyering  <meyering@lucent.com>
73452
73453         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
73454         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
73455         Use AC_FUNC_STRNLEN here instead.
73456
73457         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
73458         With autoconf-2.53a, it's part of AC_PROG_CC.
73459
73460 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73461
73462         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
73463         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
73464
73465 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73466
73467         * lib/sig2str.h, lib/sig2str.c: New files.
73468         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
73469
73470 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73471
73472         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
73473         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
73474         of 127, since 64 is the largest conceivable number for ancient
73475         nonstandard hosts.
73476         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
73477
73478 2002-04-28  Jim Meyering  <meyering@lucent.com>
73479
73480         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
73481
73482 2002-04-24  Jim Meyering  <meyering@lucent.com>
73483
73484         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
73485         (jm_PREREQ): Use it.
73486
73487         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
73488         mach/mach.h fcntl.h.
73489         Check for this function: setlocale.
73490
73491 2002-04-24  Jim Meyering  <meyering@lucent.com>
73492
73493         * lib/gettext.h: New file, from Gettext.
73494         * lib/Makefile.am (INCLUDES): Remove -I../intl.
73495         (libfetish_a_SOURCES): Add gettext.h.
73496
73497 2002-04-16  Jim Meyering  <meyering@lucent.com>
73498
73499         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
73500         ut_pid, ut_id, ut_exit.
73501
73502 2002-04-16  Jim Meyering  <meyering@lucent.com>
73503
73504         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
73505         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
73506         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
73507
73508 2002-04-12  Jim Meyering  <meyering@lucent.com>
73509
73510         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
73511         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
73512         existence of the getmntinfo function.  Needed for Darwin 5.3.
73513
73514         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
73515         This is necessary at least on Darwin 5.3.
73516
73517         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
73518         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
73519         strnlen.o in the library, and that makes some versions of ranlib
73520         object.
73521
73522 2002-04-12  Jim Meyering  <meyering@lucent.com>
73523
73524         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
73525
73526 2002-04-09  Jim Meyering  <meyering@lucent.com>
73527
73528         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
73529         to be more precise.  Rather than saying we're checking whether the
73530         function `works', say what we're testing.
73531         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
73532         Reported by Bruno Haible.
73533
73534 2002-03-10  Jim Meyering  <meyering@lucent.com>
73535
73536         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
73537         Suggestion from Santiago Vila.
73538
73539 2002-03-08  Jim Meyering  <meyering@lucent.com>
73540
73541         * lib/rename.c: Mention that this wrapper is needed also on
73542         mips-dec-ultrix4.4 systems.
73543
73544 2002-03-02  Jim Meyering  <meyering@lucent.com>
73545
73546         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
73547         not HAVE_CLOCK_SETTIME.
73548
73549 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73550
73551         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
73552         Check for clock_settime.
73553
73554 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73555
73556         * lib/nanosleep.h: Rename to....
73557         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
73558
73559         * lib/gettime.c: New file.
73560         * lib/settime.c: New file.
73561         * lib/stime.c: Remove.
73562
73563         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
73564         timespec.h.  Remove nanosleep.h.
73565
73566 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73567
73568         * m4/acl.m4: New file.
73569         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
73570         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
73571
73572 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73573
73574         * lib/acl.c, lib/acl.h: New files.
73575         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
73576
73577 2002-02-24  Jim Meyering  <meyering@lucent.com>
73578
73579         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
73580         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
73581         cause trouble.  Reported by Nelson Beebe.
73582
73583 2002-02-23  Paul Eggert  <eggert@twinsun.com>
73584
73585         * lib/path-concat.c (xpath_concat): Reorder code to pacify
73586         compilers that don't know that xalloc_die never returns.
73587
73588 2002-02-20  Jim Meyering  <meyering@lucent.com>
73589
73590         * lib/getdate.c: Regenerate using bison-1.33.
73591
73592 2002-02-17  Jim Meyering  <meyering@lucent.com>
73593
73594         * config/config.guess (main): Don't use `head -1'; it's no longer
73595         portable. Use `sed 1q' instead.
73596
73597 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
73598
73599         * m4/codeset.m4: Upgrade to gettext-0.11.
73600         * m4/gettext.m4: Upgrade to gettext-0.11.
73601         * m4/glibc21.m4: Upgrade to gettext-0.11.
73602         * m4/iconv.m4: Upgrade to gettext-0.11.
73603         * m4/isc-posix.m4: Upgrade to gettext-0.11.
73604         * m4/lcmessage.m4: Upgrade to gettext-0.11.
73605         * m4/lib-ld.m4: New file, from gettext-0.11.
73606         * m4/lib-link.m4: New file, from gettext-0.11.
73607         * m4/lib-prefix.m4: New file, from gettext-0.11.
73608         * m4/progtest.m4: Upgrade to gettext-0.11.
73609
73610 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73611
73612         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
73613         (jm_PREREQ): Use it.
73614
73615 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73616
73617         * lib/posixver.c, lib/posixver.h: New files.
73618         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73619
73620 2002-02-02  Paul Eggert  <eggert@twinsun.com>
73621             Bruno Haible  <bruno@clisp.org>
73622
73623         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
73624         (fwrite_success_callback): New declaration.
73625         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
73626         print_unicode_char. Call failure callback instead of error.
73627         (fwrite_success_callback): New function.
73628         (exit_failure_callback): New function.
73629         (fallback_failure_callback): New function.
73630         (print_unicode_char): Call unicode_to_mb.
73631
73632 2002-01-26  Jim Meyering  <meyering@lucent.com>
73633
73634         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
73635         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
73636
73637 2002-01-26  Jim Meyering  <meyering@lucent.com>
73638
73639         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
73640
73641 2002-01-22  Paul Eggert  <eggert@twinsun.com>
73642
73643         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
73644
73645 2002-01-22  Jim Meyering  <meyering@lucent.com>
73646
73647         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
73648         Otherwise, some versions of automake would omit the rule that makes
73649         Makefile from Makefile.in.
73650
73651 2002-01-21  Paul Eggert  <eggert@twinsun.com>
73652
73653         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
73654         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73655         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
73656         (memcoll): Set errno to zero if there is no error.
73657
73658         * lib/quotearg.c (quotearg_buffer_restyled):
73659         Fix bug with quoting buffers containing NUL when backslashing escapes.
73660         This bug was exposed by the other changes in this patch.
73661         (quotearg_n_options): New arg ARGSIZE.
73662         All callers changed.
73663         (quoting_options_from_style): New function.
73664         (quotearg_n_style): Use it.
73665         (quotearg_n_style_mem): New function.
73666
73667         * lib/quotearg.h (quotearg_n_style_mem): New function.
73668
73669 2002-01-19  Jim Meyering  <meyering@lucent.com>
73670
73671         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
73672         Remove useless quotes: DF_PROG="df".
73673         * m4/strnlen.m4: New file.
73674
73675 2002-01-16  Paul Eggert  <eggert@twinsun.com>
73676
73677         * lib/backupfile.c (ISDIGIT): Comment fix.
73678         * lib/getdate.y (ISDIGIT): Likewise.
73679         * lib/posixtm.c (ISDIGIT, year): Likewise.
73680         * lib/strverscmp.c (ISDIGIT): Likewise.
73681         * lib/userspec.c (ISDIGIT): Likewise.
73682
73683 2002-01-16  Jim Meyering  <meyering@lucent.com>
73684
73685         * lib/getdate.y: Add three semicolons, each just before a closing
73686         brace. Bison (as of version 1.31) no longer papers over that mistake.
73687
73688 2002-01-05  Jim Meyering  <meyering@lucent.com>
73689
73690         * lib/version-etc.c (version_etc_copyright): Update copyright year.
73691
73692 2001-12-19  Paul Eggert  <eggert@twinsun.com>
73693
73694         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
73695         not silently exit merely because the output buffer happens to
73696         have nothing pending.
73697
73698 2001-12-18  Paul Eggert  <eggert@twinsun.com>
73699
73700         See the big note in ../ChangeLog.
73701         * lib/human.c (suffixes): Prefer K to k for 1024.
73702         (generate_suffix_backwards): New function.
73703         (human_readable_inexact): Use it.
73704         * lib/xstrtol.c (__xstrtol): If there is no number but there
73705         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
73706         Accept 'K' as well as 'k'.
73707
73708 2001-12-15  Jim Meyering  <meyering@lucent.com>
73709
73710         * lib/regex.h (__restrict_arr): Update from libc.
73711
73712         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
73713         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
73714         (STREQ): Define.
73715
73716 2001-12-14  Jim Meyering  <meyering@lucent.com>
73717
73718         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
73719         Suggestion from Bruno Haible.
73720
73721 2001-12-10  Jim Meyering  <meyering@lucent.com>
73722
73723         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
73724         xrealloc, Instead, include "xalloc.h".
73725         (initbuffer): Don't cast xmalloc return value to char*.
73726         (readline): Reword comment.
73727         Don't cast xrealloc return value to char*
73728         Return NULL, not 0.
73729
73730 2001-12-09  Jim Meyering  <meyering@lucent.com>
73731
73732         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
73733         about `signed and unsigned type in conditional expression'.
73734         * lib/posixtm.c (posix_time_parse): Likewise.
73735
73736         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
73737
73738         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
73739         to avoid a pedantic warning.
73740
73741         * lib/getstr.c: Don't include assert.h.
73742         (getstr): Remove warning-evoking assertions.
73743         Return -1 if offset parameter is out of bounds.
73744         Change the type of a local from int to size_t.
73745
73746         * lib/strftime.c (my_strftime_localtime_r): Include this function
73747         definition in the `#if ! HAVE_TM_GMTOFF' block.
73748
73749         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
73750         Include xalloc.h instead.
73751
73752 2001-12-02  Jim Meyering  <meyering@lucent.com>
73753
73754         * lib/tempname.c: Don't declare getenv, thus reverting the change of
73755         2001-11-18.  It's no longer necessary, now that stdlib.h is always
73756         included.
73757
73758         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
73759         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
73760
73761 2001-11-30  Akim Demaille  <akim@epita.fr>
73762
73763         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
73764         before being defined.
73765
73766 2001-11-27  Paul Eggert  <eggert@twinsun.com>
73767
73768         * lib/quotearg.h (quotearg_n, quotearg_n_style):
73769         First arg is int, not unsigned.
73770         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
73771         (SIZE_MAX, UINT_MAX): New macros.
73772         (quotearg_n_options): Abort if N is negative.
73773         Avoid overflow check on hosts where size_t is 64 bits and int
73774         is 32 bits, as overflow is impossible there.
73775         Fix off-by-one typo that caused unnecessary reallocation.
73776
73777 2001-11-27  Jim Meyering  <meyering@lucent.com>
73778
73779         * lib/tempname.c: Merge with version from libc.
73780         * lib/regex.c: Likewise.
73781
73782         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
73783         systems for which STDC_HEADERS is 0, it was not included, resulting in
73784         a warning about an integer-to-pointer conversion problem with getenv.
73785         Reported by Volker Borchert.
73786
73787 2001-11-26  Jim Meyering  <meyering@lucent.com>
73788
73789         * lib/gtod.h: Remove file.
73790         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
73791         * lib/gettimeofday.c: Don't include gtod.h.
73792         (GTOD_init): Remove function.
73793         (rpl_gettimeofday): Do its job here instead, rather than aborting.
73794         Suggestion from Volker Borchert.
73795
73796 2001-11-23  Jim Meyering  <meyering@lucent.com>
73797
73798         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
73799         it.
73800         * lib/hash.c (struct hash_table): Define it here instead.
73801
73802 2001-11-22  Jim Meyering  <meyering@lucent.com>
73803
73804         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
73805
73806 2001-11-20  Jim Meyering  <meyering@lucent.com>
73807
73808         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
73809         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
73810
73811 2001-11-19  Jim Meyering  <meyering@lucent.com>
73812
73813         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
73814         directory.  Use "conftestXXXXXX" as the template.
73815         Suggestion from Paul Eggert.
73816
73817         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
73818         immediately, so the test doesn't mistakenly hit the max-open-files
73819         limit.
73820
73821 2001-11-18  Paul Eggert  <eggert@twinsun.com>
73822
73823         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
73824         (TEMPORARIES): New macro.
73825         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
73826         removes an artificial limitation (e.g. HP-UX 10.20, where
73827         TMP_MAX is 17576).
73828
73829 2001-11-18  Jim Meyering  <meyering@lucent.com>
73830
73831         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
73832
73833 2001-11-18  Jim Meyering  <meyering@lucent.com>
73834
73835         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
73836         on SunOS 4.
73837
73838         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
73839         files will be created before anything else.
73840
73841 2001-11-17  Paul Eggert  <eggert@twinsun.com>
73842
73843         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
73844         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
73845
73846 2001-11-17  Jim Meyering  <meyering@lucent.com>
73847
73848         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
73849         Prompted by a report from Bob Proulx.
73850
73851         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
73852         Instead, require UTILS_FUNC_MKSTEMP.
73853
73854 2001-11-17  Jim Meyering  <meyering@lucent.com>
73855
73856         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
73857         Now, that's done as part of AC_FUNC_STRTOD.
73858
73859 2001-11-17  Jim Meyering  <meyering@lucent.com>
73860
73861         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
73862         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
73863         rather than group writable.  Patch by Juan F. Codagnone.
73864
73865         * lib/readtokens.c: Remove explicit declarations of xmalloc and
73866         xrealloc, Instead, include "xalloc.h".
73867
73868         * lib/mountlist.c: Include unlocked-io.h after all system headers.
73869         Remove explicit declarations of xmalloc, xrealloc,
73870         and xstrdup.  Instead, include "xalloc.h".
73871
73872         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
73873         unlocked-io.h.
73874         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
73875         Likewise.
73876         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
73877
73878         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
73879         Reported by Padraig Brady.
73880
73881         * lib/mkstemp.c: #undef mkstemp.
73882         Include config.h.
73883         (rpl_mkstemp): Rename from mkstemp.
73884         Protoize.
73885
73886 2001-11-16  Jim Meyering  <meyering@lucent.com>
73887
73888         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
73889         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
73890         determine the amount of total physical memory, use pstat_getstatic.
73891         HPUX-11 doesn't define _SC_PHYS_PAGES.
73892         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
73893         If sysconf couldn't be used to determine the amount of available
73894         physical memory, use both pstat_getstatic and pstat_getdynamic.
73895         Based on a patch from Bob Proulx.
73896
73897 2001-11-10  Jim Meyering  <meyering@lucent.com>
73898
73899         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
73900         (jm_PREREQ): Use it.
73901
73902 2001-11-09  Jim Meyering  <meyering@lucent.com>
73903
73904         * m4/jm-macros.m4: Require autoconf-2.52f.
73905         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
73906         Use these AC_-prefixed names, not the AM_-prefixed ones.
73907
73908         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
73909
73910 2001-11-05  Jim Meyering  <meyering@lucent.com>
73911
73912         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
73913
73914 2001-11-04  Jim Meyering  <meyering@lucent.com>
73915
73916         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
73917         $DEFS.
73918
73919 2001-11-03  Jim Meyering  <meyering@lucent.com>
73920
73921         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
73922         of AC_DEFUN.
73923
73924         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
73925         know the name of the variable in the macro definition.
73926
73927 2001-11-03  Jim Meyering  <meyering@lucent.com>
73928
73929         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
73930         in argmatch_to_argument call.
73931
73932         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
73933         argument.
73934
73935         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
73936         e.g., a fault due to an attempt to free a NULL pointer.
73937
73938 2001-11-01  Jim Meyering  <meyering@lucent.com>
73939
73940         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
73941         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
73942
73943 2001-11-01  Jim Meyering  <meyering@lucent.com>
73944
73945         * lib/dirfd.c, lib/dirfd.h: New files.
73946         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
73947
73948         * lib/hash.c (hash_print) [TESTING]: Clean up.
73949
73950 2001-10-22  Paul Eggert  <eggert@twinsun.com>
73951
73952         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
73953         to avoid a warning if -Wall.
73954
73955 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
73956
73957         * README: New file
73958         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
73959         (per RMS's instructions, this is now the canonical source)
73960         * lgpl/, gpl/: New directories.
73961
73962 2001-10-21  Paul Eggert  <eggert@twinsun.com>
73963
73964         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
73965
73966 2001-10-21  Jim Meyering  <meyering@lucent.com>
73967
73968         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
73969         this code would end up calling gettext even in packages built
73970         with --disable-nls.
73971         * lib/getopt.c (_): Likewise.
73972         * lib/regex.c (_): Likewise.
73973
73974 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73975
73976         * m4/error.m4 (jm_PREREQ_ERROR):
73977         Do not invoke AC_CHECK_FUNCS with strerror_r, as
73978         AC_FUNC_STRERROR_R does that.
73979         Check for strerror declaration.
73980
73981         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
73982         are supposed to have them these days.
73983         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
73984         Merge changes from latest Autoconf CVS.
73985         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
73986         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
73987         POSIX decided to standardize on the int flavor of strerror_r.
73988
73989 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73990
73991         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
73992         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
73993         Use strerror_r that is only a macro, even if it is not a function.
73994         (strerror): Check for HAVE_DECL_STRERROR before declaring.
73995         (private_strerror): Use prototypes, not old-style function definition.
73996         (print_errno_message): New function.
73997         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
73998         char*-flavored one.
73999         (error_tail, error, error_at_line): Use it.
74000
74001 2001-10-11  Jim Meyering  <meyering@lucent.com>
74002
74003         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
74004         and quote_n (1, ... to avoid clobbering a buffer.
74005
74006 2001-10-05  Jim Meyering  <meyering@lucent.com>
74007
74008         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
74009         hash-pjw.h.
74010         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
74011         * lib/hash-pjw.h: New file.
74012
74013 2001-09-30  Jim Meyering  <meyering@lucent.com>
74014
74015         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
74016         `struct fsstat' has the `f_fstypename' member.
74017         Use that to define FS_TYPE, which is now used to make
74018         the getfsstat link test tighter.
74019
74020 2001-09-30  Jim Meyering  <meyering@lucent.com>
74021
74022         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
74023         Include <sys/ucred.h>, for Apple Darwin.
74024         Include sys/mount.h and sys/fs_types.h only if available.
74025         (FS_TYPE): Define.
74026         (read_filesystem_list): Use FS_TYPE.
74027
74028 2001-09-29  Paul Eggert  <eggert@twinsun.com>
74029
74030         * lib/exclude.c (excluded_filename): 0 -> false, since it's
74031         a boolean context.
74032
74033 2001-09-29  Jim Meyering  <meyering@lucent.com>
74034
74035         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74036         [one-argument getmntent function]): Include stdio.h before mntent.h.
74037         SunOS 4.1.x needs it for the declaration of `FILE'.
74038         Patch by Volker Borchert.
74039
74040         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74041         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
74042         sys/fs_types.h, and make the link-test for getfsstat guard #include
74043         directives with appropriate #if HAVE_*_H tests so that we can
74044         detect getfsstat on Apple Darwin1.3.7 systems.
74045         Reported by Nelson Beebe.
74046         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
74047
74048 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74049
74050         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74051         #defines strtoimax.  Also treat the other strto* functions
74052         like strtoimax.
74053
74054         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74055         Check for strtoul and strtoumax,
74056         as those declarations are made even in the signed case.
74057         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
74058         Likewise, for strtol and strtoimax.
74059
74060 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74061
74062         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74063         #defines strtoimax.  Also treat the other strto* functions
74064         like strtoimax.
74065
74066         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
74067         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
74068         (strtoimax, strtoumax): Do not declare if already defined as a macro.
74069
74070 2001-09-26  Jim Meyering  <meyering@lucent.com>
74071
74072         Most macros in unlocked-io.h had the wrong number of arguments.
74073         * lib/gen-uio: New script.
74074         (USE_UNLOCKED_IO): Define to 1 if not already defined.
74075         * lib/unlocked-io.hin: Remove file.
74076         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
74077         rather than trying to embed it here.
74078         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
74079         Reported by Padraig Brady.
74080
74081 2001-09-25  Volker Borchert  <bt@teknon.de>
74082
74083         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
74084         `result'.
74085
74086 2001-09-24  Jim Meyering  <meyering@lucent.com>
74087
74088         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
74089
74090 2001-09-23  Jim Meyering  <meyering@lucent.com>
74091
74092         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
74093         instead of the mere test for existence of mntent.h.  The latter
74094         would get a false-positive on AIX 3.4 systems.
74095         In the outer getmntent if-block, don't die if neither of the getmntent
74096         tests succeeds.  Instead, just fall through and continue with the
74097         remaining tests.
74098
74099 2001-09-23  Jim Meyering  <meyering@lucent.com>
74100
74101         * lib/mountlist.c: Remove useless parentheses in #if directives.
74102         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
74103         the deprecated MOUNTED symbol is no longer defined in mntent.h.
74104
74105 2001-09-22  Jim Meyering  <meyering@lucent.com>
74106
74107         * m4/gettext.m4: New file.  From gettext.
74108         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
74109         * m4/progtest.m4: Likewise
74110         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
74111         * m4/glibc21.m4: Likewise.
74112
74113         * m4/libintl.m4: Remove.  No longer used.
74114
74115 2001-09-22  Jim Meyering  <meyering@lucent.com>
74116
74117         * lib/localcharset.c: Update from latest gettext.
74118         * lib/config.charset: Likewise.
74119
74120 2001-09-20  Jim Meyering  <meyering@lucent.com>
74121
74122         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
74123         strtoimax.
74124         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
74125         strtoumax.
74126
74127 2001-09-20  Jim Meyering  <meyering@lucent.com>
74128
74129         * lib/xstrtol.c (strtoimax): Guard declaration with
74130         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
74131         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
74132         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
74133         (strtoumax): Likewise, for completeness (it wasn't necessary).
74134
74135 2001-09-17  Paul Eggert  <eggert@twinsun.com>
74136
74137         * lib/strtoimax.c (HAVE_LONG_LONG):
74138         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
74139         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
74140         to work around bug in IBM C compiler.
74141
74142 2001-09-17  Jim Meyering  <meyering@lucent.com>
74143
74144         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
74145         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
74146         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
74147         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
74148         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
74149         whenever the right hand side need not be expanded by the shell.
74150
74151 2001-09-16  Paul Eggert  <eggert@twinsun.com>
74152
74153         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
74154         library.  It's not correct, as some older glibcs are buggy.
74155         fnmatch wasn't fixed until glibc 2.2.
74156
74157         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
74158         special shell magic here.
74159
74160 2001-09-16  Jim Meyering  <meyering@lucent.com>
74161
74162         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
74163         * m4/jm-macros.m4: Require it.
74164
74165 2001-09-16  Jim Meyering  <meyering@lucent.com>
74166
74167         * lib/mkdir.c: New file.
74168
74169 2001-09-15  Jim Meyering  <meyering@lucent.com>
74170
74171         * m4/jm-macros.m4: Check for help2man.
74172
74173 2001-09-11  Jim Meyering  <meyering@lucent.com>
74174
74175         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
74176         The body, by Paul Eggert, was moved here from configure.in.
74177         * m4/jm-macros.m4: Require UTILS_HOST_OS.
74178
74179 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74180
74181         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
74182         (jm_PREREQ): Use it.
74183
74184 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74185
74186         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
74187         Use ssize_t, not int, to store result of readlink.
74188         Check for ssize_t overflow as well as size_t overflow,
74189         as POSIX says the result of readlink is implementation-defined
74190         when ssize_t overflows.
74191         Remove unnecessary cast to char*.
74192         Use free+malloc instead of realloc, as the storage doesn't need
74193         to be preserved and it's clearer and can be more efficient that way.
74194         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
74195         * lib/xreadlink.h (xreadlink): Update prototype.
74196
74197 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74198
74199         * lib/xgetcwd.c: Revert some of the previous change; intead,
74200         fix the HAVE_GETCWD_NULL code to behave more like the
74201         !HAVE_GETCWD_NULL code used to.
74202
74203         Include "xalloc.h".
74204         (xgetcwd): Do not return NULL when memory is exhausted; instead,
74205         invoke xalloc_die.
74206
74207 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74208
74209         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
74210         sys/param.h, as pathmax.h includes them.
74211
74212 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74213
74214         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
74215         (jm_PREREQ_XGETCWD): New macro.
74216
74217         * m4/getcwd.m4: New file.
74218
74219 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74220
74221         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
74222         like the HAVE_GETCWD_NULL code.
74223         Include pathmax.h if not HAVE_GETCWD.
74224         Do not include xalloc.h.
74225         (INITIAL_BUFFER_SIZE): New symbol.
74226         Do not use xmalloc / xrealloc, since the caller is responsible for
74227         handling errors.  Preserve errno around `free' during failure.
74228         Do not overrun buffer when using getwd.
74229
74230 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74231
74232         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
74233         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
74234         getcwd (NULL, 0).
74235
74236 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74237
74238         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
74239         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
74240         spotted by Jim Meyering.
74241
74242 2001-09-03  Jim Meyering  <meyering@lucent.com>
74243
74244         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
74245         failure.
74246
74247 2001-09-02  Jim Meyering  <meyering@lucent.com>
74248
74249         * lib/error.c: Update from GNU libc.
74250
74251 2001-09-01  Jim Meyering  <meyering@lucent.com>
74252
74253         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
74254         Used by df.
74255
74256 2001-09-01  Jim Meyering  <meyering@lucent.com>
74257
74258         * lib/xreadlink.c: New file.
74259         * lib/xreadlink.h: New file.
74260         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
74261         xreadlink.h.
74262
74263         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
74264         doesn't conflict with sparc Solaris 7's definition in
74265         /usr/include/sys/int_types.h.
74266
74267         * lib/exclude.c: Use `""', not `<>' to #include non-system header
74268         files.
74269         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
74270         and strncasecmp as r-values.  Unixware didn't have declarations.
74271
74272 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74273
74274         * lib/xstrtol.h: Add copyright notice.
74275         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
74276         LONGINT_INVALID_SUFFIX_CHAR.
74277
74278 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74279
74280         * lib/xstrtol.c (strtoimax): New decl.
74281
74282 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74283
74284         * lib/xgetcwd.c: Don't include pathmax.h.
74285         Include stdlib.h and unistd.h if available.
74286         Include xalloc.h.
74287         (xmalloc, xstrdup, free): Remove decls.
74288         (xgetcwd): Don't assume sizes fit in unsigned.
74289         Check for overflow when computing sizes.
74290         Simplify reallocation code.
74291
74292 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74293
74294         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
74295         a directory's st_size can have an arbitrary value, so the old
74296         usage could waste an arbitrary amount of memory.  All uses
74297         changed.
74298         * lib/savedir.h: Update prototype.
74299
74300 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74301
74302         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
74303
74304         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
74305         old strtoimax.c.
74306
74307         Also, make the following further changes to make this file's
74308         configuration more similar to that of strtol.c:
74309         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
74310         (strtoumax, uintmax_t, strtoull, strtol): Remove.
74311         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
74312         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
74313         changed to signed values.
74314
74315         And make the following changes as well:
74316         Fix copyright notice, as 1999 was missing.
74317         (verify): New macro.
74318         (strtoimax): Check sizes at compile-time, not run-time.
74319         Prefer strtol to strtoll if both work.
74320         (main): Remove; it was not that useful and was a pain to maintain.
74321
74322         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
74323
74324 2001-08-31  Jim Meyering  <meyering@lucent.com>
74325
74326         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
74327         Use an initial, malloc'd, buffer of length 128 rather than
74328         a statically allocated one of length 1024.
74329
74330 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74331
74332         Simplify code, partly by assuming autoconf 2.52 semantics.
74333
74334         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
74335
74336         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
74337         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
74338         All uses removed.
74339         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
74340         Move AC_REQUIRE to next-to-top level, to avoid confusion.
74341         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
74342         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
74343         jm_AC_HEADER_INTTYPES_H.
74344         * m4/jm-macros.m4 (jm_MACROS): Likewise.
74345
74346         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
74347
74348         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74349         Quote first arg of AC_DEFUN.
74350         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
74351         since they are needed to parse the include file even if we need
74352         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
74353         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
74354         but with opposite signedness.
74355
74356 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74357
74358         Merge 'exclude' changes from tar 1.13.22.
74359         This fixes one or two unlikely storage allocation overflow bugs,
74360         but doesn't change user-visible behavior otherwise.
74361
74362 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74363
74364         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
74365         (jm_PREREQ_EXCLUDE): New macro.
74366
74367 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74368
74369         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
74370         tm to be declared.
74371
74372 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74373
74374         * lib/hash.c: Remove '2001' from copyright notice.
74375
74376 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74377
74378         * lib/full-write.h: New file.
74379         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
74380         * lib/full-write.c: Correct credits, as cccp.c no longer
74381         exists and anyway it was so heavily changed from the old cccp
74382         code as to be unrecognizable.  Include full-write.h.
74383         (full_write) Return size_t, with short writes meaning failure.
74384         All callers changed.  This fixes a bug with large buffers
74385         on 64-bit hosts.
74386         * lib/utime.c: Include full-write.h.
74387
74388 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74389
74390         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
74391         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
74392         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
74393         Include if available.
74394         (<xalloc.h>): Include
74395         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
74396         (verify): New macro.  Use it to verify that EXCLUDE macros do not
74397         collide with FNM macros.
74398         (struct patopts): New struct.
74399         (struct exclude): Use it, as exclude patterns now come with options.
74400         (new_exclude): Support above changes.
74401         (new_exclude, add_exclude_file):
74402         Initial size must now be a power of two to simplify overflow checking.
74403         (free_exclude, fnmatch_no_wildcards): New function.
74404         (excluded_filename): No longer requires options arg, as the options
74405         are determined by add_exclude.  Now returns bool, not int.
74406         (excluded_filename, add_exclude):
74407         Add support for the fancy new exclusion options.
74408         (add_exclude, add_exclude_file): Now takes int options arg.
74409         Check for arithmetic overflow when computing sizes.
74410         (add_exclude_file): xrealloc might modify errno, so don't
74411         realloc until after errno might be used.
74412
74413         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
74414         New macros.
74415         (free_exclude): New decl.
74416         (add_exclude, add_exclude_file): Now takes int options arg.
74417         (excluded_filename): No longer requires options arg, as the options
74418         are determined by add_exclude.  Now returns bool, not int.
74419
74420 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74421
74422         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
74423
74424 2001-08-27  Jim Meyering  <meyering@lucent.com>
74425
74426         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
74427
74428         * lib/version-etc.c (N_): Remove definition.
74429         Revert most of last change.
74430         Instead, simply don't mark the `Copyright...' string for translation.
74431         Based on advice from Paul Eggert.
74432
74433         * lib/strtoxmax.c: Tweak comment.
74434
74435 2001-08-26  Jim Meyering  <meyering@lucent.com>
74436
74437         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
74438
74439         * m4/xstrtoimax.m4: New file.
74440         * m4/xstrtoumax.m4: Add comments explaining why we
74441         AC_REPLACE_FUNCS(strtol).
74442
74443 2001-08-26  Jim Meyering  <meyering@lucent.com>
74444
74445         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
74446         of copyright with `%s' so translators don't get an untranslated
74447         message in 2002.
74448         (COPYRIGHT_YEAR): Define.
74449         (version_etc): Use fprintf rather than fputs.
74450         Suggestion from Ulrich Drepper.
74451
74452         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
74453
74454         * lib/strtoll.c: New file, from GNU libc.
74455         * lib/xstrtoimax.c: New file.
74456
74457         * lib/xstrtol.h: Add xstrtoimax.
74458         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
74459         * lib/strtoimax.c: New file.  Likewise, but first define
74460         STRTOUXMAX_SIGNED.
74461
74462         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
74463         ...
74464         * lib/strtoxmax.c: ... then renamed to this.
74465
74466 2001-08-18  Paul Eggert  <eggert@twinsun.com>
74467
74468         * m4/inttypes.m4: Add AC_PREREQ(2.13).
74469         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
74470         (jm_AC_TYPE_INTMAX_T): New macro.
74471         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
74472
74473         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
74474
74475         * m4/longlong.m4: Renamed from ulonglong.m4.
74476         * m4/inttypes.m4: Renamed from inttypes_h.m4.
74477         * m4/uintmax_t.m4: Removed.
74478
74479 2001-08-13  Paul Eggert  <eggert@twinsun.com>
74480
74481         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
74482         Port to Solaris 8, where 'sed' requires a space after the 'r'
74483         command, and where sh dislikes "$/".  Clean up the spacing a bit.
74484         Redirect output to $tmp just once.
74485
74486 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
74487
74488         * lib/addext.c (<errno.h>): Include.
74489         (errno): Declare if not defined.
74490         (addext): Work correctly when pathconf returns -1 and leaves
74491         errno alone because there is no limit.  Also, work even if
74492         pathconf returns a value greater than SIZE_MAX.
74493
74494 2001-08-12  Jim Meyering  <meyering@lucent.com>
74495
74496         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
74497         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
74498         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
74499         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
74500         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
74501         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
74502         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
74503         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
74504         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
74505         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
74506         utime.m4, utimes.m4, xstrtoumax.m4:
74507         Quote the first argument in each use of AC_DEFUN.
74508
74509 2001-08-12  Jim Meyering  <meyering@lucent.com>
74510
74511         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
74512         Simply `return getcwd (NULL, 0);'.
74513         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
74514         Use 1300 as initial value for length, not PATH_MAX.
74515
74516         * lib/pathmax.h: Clean up cpp syntax.
74517
74518 2001-08-12  Jim Meyering  <meyering@lucent.com>
74519
74520         * lib/gettimeofday.c: New file.
74521         * lib/gtod.h: New file.
74522         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
74523
74524 2001-08-05  Jim Meyering  <meyering@lucent.com>
74525
74526         * m4/jm-macros.m4: Require autoconf-2.52.
74527
74528 2001-08-04  Jim Meyering  <meyering@lucent.com>
74529
74530         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
74531         stmt, to get in sync with glibc.
74532
74533 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74534
74535         The following changes are from gettext 0.10.39 as maintained by
74536         Bruno Haible.
74537
74538         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
74539         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
74540         with inverted sense.  All uses changed.
74541
74542         * lib/mbswidth.c: Don't include <limits.h>.
74543         Include <stdlib.h> and <string.h> unconditionally.
74544         (iswcntrl, mbsinit, ISCNTRL): New macros.
74545         (mbsnwidth): Use K&R style function declarations.
74546         Don't bother checking for MB_LEN_MAX == 1, since the compiler
74547         can optimize it when MB_CUR_MAX == 1.
74548         The width of control characters is zero, not 1.
74549
74550 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74551
74552         The following changes are from gettext 0.10.39 as maintained by
74553         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
74554
74555         * m4/codeset.m4: Upgrade to serial AM1.
74556         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
74557         all uses changed.  Quote first arg of AC_DEFUN.
74558         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
74559
74560         * m4/iconv.m4: Upgrade to serial AM2.
74561         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
74562         Add --with-libconv-prefix.
74563         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
74564         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
74565         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
74566         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
74567         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
74568
74569         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
74570         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
74571         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
74572         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
74573         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
74574         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
74575         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
74576         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
74577         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74578
74579         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
74580         string.h any more.
74581
74582         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
74583         not the default value.
74584
74585         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
74586         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
74587         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
74588         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
74589         Also check for iswcntrl, used for wcwidth fallback.
74590         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
74591         to Autoconf 2.13.
74592
74593 2001-08-03  Jim Meyering  <meyering@lucent.com>
74594
74595         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
74596         as it was in the original.  Reported by Paul Eggert.
74597
74598 2001-07-16  Jim Meyering  <meyering@lucent.com>
74599
74600         * m4/gettimeofday.m4: New file.
74601         Prompted by a report from Bernhard Baehr.
74602
74603 2001-07-15  Jim Meyering  <meyering@lucent.com>
74604
74605         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
74606         stuff. Now it's in ../Makefile.cfg.
74607
74608 2001-07-15  Jim Meyering  <meyering@lucent.com>
74609
74610         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
74611         (BUILT_SOURCES): Add unlocked-io.h.
74612         (io_functions): Define.
74613         (unlocked-io.h): New rule.
74614         (DISTCLEANFILES): Add unlocked-io.h.
74615         (all-local): Depend on unlocked-io.h, to ensure it is created.
74616
74617         * lib/unlocked-io.hin: New file
74618
74619         * lib/regex.c: Update from glibc.
74620
74621 2001-07-05  Jim Meyering  <meyering@lucent.com>
74622
74623         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
74624         recommendation.
74625         (libfetish_a_SOURCES): Put all .h files here instead.
74626         Remove a thus-exposed (better checks in automake) duplicate and
74627         two unnecessary .h files.
74628
74629 2001-07-04  Jim Meyering  <meyering@lucent.com>
74630
74631         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
74632         that generates jm-glibc-io.m4 so that it doesn't trigger any make
74633         distcheck failure.
74634
74635 2001-07-02  Jim Meyering  <meyering@lucent.com>
74636
74637         The following changes were prompted by suggestions from Bruno Haible.
74638
74639         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
74640         is now generated.
74641         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
74642         definition of EXTRA_DIST.
74643         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
74644         ensure that the generated file is created/updated whenever the list
74645         of $(unlocked_functions) is changed.
74646         (jm-glibc-io.m4): New rule.
74647         (unlocked-io.h): New rule -- currently unused.
74648
74649 2001-06-24  Jim Meyering  <meyering@lucent.com>
74650
74651         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
74652         unmatched right bracket, rather than kludging it with an extra,
74653         falsely-matching quote in a comment.  Patch by Akim Demaille.
74654
74655 2001-06-11  Jim Meyering  <meyering@lucent.com>
74656
74657         * lib/regex.c: Update from GNU libc.
74658
74659 2001-05-27  Jim Meyering  <meyering@lucent.com>
74660
74661         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
74662         Check for ut_type in struct utmp.
74663
74664 2001-05-27  Jim Meyering  <meyering@lucent.com>
74665
74666         * lib/readutmp.h (UT_TYPE): Define.
74667
74668 2001-05-24  Jim Meyering  <meyering@lucent.com>
74669
74670         * lib/argmatch.c: Include "quote.h".
74671         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
74672         quote function.  Reported by Göran Uddeborg.
74673
74674 2001-05-22  Jim Meyering  <meyering@lucent.com>
74675
74676         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
74677         now that we use the package-supplied version unconditionally.
74678         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
74679
74680 2001-05-21  Jim Meyering  <meyering@lucent.com>
74681
74682         * m4/regex.m4: Change a couple backticks to single quotes to avoid
74683         shell syntax errors.
74684
74685 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74686
74687         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
74688
74689 2001-05-20  Paul Eggert  <eggert@twinsun.com>
74690
74691         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
74692         Don't bother to check library strftime, since
74693         we'll be using our own my_strftime function anyway.
74694         Define my_strftime instead of strftime.
74695
74696 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
74697
74698         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
74699         which is not yet declared.
74700
74701 2001-05-15  Jim Meyering  <meyering@lucent.com>
74702
74703         * m4/regex.m4: Use proper quoting so brackets appear in the test
74704         program.
74705         Reported by, and with help from, Bruno Haible.
74706
74707 2001-05-13  Jim Meyering  <meyering@lucent.com>
74708
74709         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
74710         undefined.
74711
74712 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74713
74714         dirname code cleanup.  base_name now behaves more compatibly
74715         with POSIX basename when given file names that have trailing
74716         slashes, and similarly for dir_name.  Add new primitives
74717         base_len and dir_len.  Put the directory-name-related decls
74718         into dirname.h.
74719
74720         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
74721         * lib/backupfile.c (base_name): Likewise.
74722         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
74723         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
74724         * lib/makepath.c (strip_trailing_slashes): Likewise.
74725         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
74726         ISSLASH): Likewise.
74727         * lib/rename.c (strip_trailing_slashes): Likewise.
74728         * lib/same.c (base_name): Likewise.
74729         * lib/stripslash.c (ISSLASH): Likewise.
74730
74731         * lib/addext.c: Include <dirname.h> after size_t is defined.
74732         * lib/backupfile.c: Likewise.
74733
74734         * lib/addext.c (addext): Use base_len to trim redundant
74735         trailing slashes instead of doing it ourselves.
74736         But do not trim the last slash if it is not redundant.
74737
74738         * lib/backupfile.c (find_backup_file_name,
74739         max_backup_version): Use base_len instead of rolling it ourselves.
74740         Handle the case of "" and (on DOS) "C:" correctly.
74741
74742         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
74743         needed. Include <string.h>, <dirname.h>.
74744         (base_name): Allow file names ending in slashes, other than names
74745         that are all slashes.  In this case, return the basename followed
74746         by the slashes.  This is more general, and can be used in places
74747         where the original base_name purposely had an assertion failure.
74748         (base_len): New function.
74749
74750         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
74751         Do not include <assert.h>; no longer needed.
74752         Include xalloc.h.
74753         (memrchr): Remove decl.
74754         (dir_name_r): Remove.
74755         (dir_len): Renamed from dirlen.  All callers changed.
74756         Rewrite in terms of base_name, for simplicity and consistency.
74757         (dir_name): Never return NULL.  All callers changed.
74758         Do not include <stdlib.h> in test program; no longer needed.
74759         return 0; is fine for test program.
74760
74761         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
74762         New macros.
74763         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
74764
74765         * lib/path-concat.c (path_concat): Use base_len to compute
74766         base length, not strlen; this means we cannot rely on memcpy
74767         to null-terminate.
74768
74769         * lib/same.c (STREQ): Remove.
74770         (same_name): Handle the case where the basename ends in trailing '/'.
74771
74772         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
74773         a slash was stripped.  Do not strip the last slash after a
74774         file system prefix.
74775
74776 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74777
74778         * lib/Makefile.am (libfetish_a_SOURCES):
74779         Add strftime.c, since we now compile it on all hosts.
74780
74781         * lib/strftime.c (my_strftime):
74782         Define to nstrftime if emacs, but only if my_strftime is not defined.
74783         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
74784         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
74785         Add one more extra argument: a nanoseconds value.
74786         All uses changed.
74787         (ns): New macro.
74788         (my_strftime function): Add %N format.
74789         (emacs_strftimeu): Renamed from emacs_strftime,
74790         with extra ut argument.
74791
74792 2001-05-09  Paul Eggert  <eggert@twinsun.com>
74793
74794         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
74795
74796 2001-04-21  Jim Meyering  <meyering@lucent.com>
74797
74798         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
74799         doesn't interfere.
74800
74801 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74802
74803         * m4/ftruncate.m4: Check for chsize.
74804         Link with ftruncate.o unconditionally if ftruncate is missing.
74805         This was required when cross-compiling to i586-mingw32msvc.
74806
74807 2001-04-08  Jim Meyering  <meyering@lucent.com>
74808
74809         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
74810         recomputed; that's necessary when the offset spans a DST transition.
74811         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
74812
74813 2001-04-02  Jim Meyering  <meyering@lucent.com>
74814
74815         * lib/regex.h, regex.c: Update from GNU libc.
74816
74817 2001-03-24  Jim Meyering  <meyering@lucent.com>
74818
74819         * m4/jm-macros.m4: Require autoconf-2.49d.
74820
74821 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
74822
74823         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
74824
74825 2001-03-19  Paul Eggert  <eggert@twinsun.com>
74826
74827         * lib/version-etc.c (version_etc_copyright): Update to 2001.
74828
74829 2001-03-17  Jim Meyering  <meyering@lucent.com>
74830
74831         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
74832         now that the version in autoconf is equivalent.
74833         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
74834
74835         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
74836         Suggestion from Akim Demaille.
74837
74838         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
74839         (jm_PREREQ_TEMPNAME): New function.
74840
74841 2001-03-16  Paul Eggert  <eggert@twinsun.com>
74842
74843         * lib/tempname.c (uint64_t): Define to uintmax_t if
74844         not defined, and if UINT64_MAX is not defined.
74845         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
74846         Reported by John David Anglin.
74847
74848 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
74849
74850         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
74851         resolve alias if codeset is empty.
74852         * lib/config.charset (BeOS): Use wildcard syntax.
74853
74854 2001-03-13  Jim Meyering  <meyering@lucent.com>
74855
74856         * lib/path-concat.c (path_concat)
74857         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
74858         concatenating e.g., `C:' and `foo'.
74859         From Bruno Haible.
74860
74861 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74862
74863         * lib/localcharset.c (locale_charset): Don't use
74864         setlocale(LC_CTYPE,NULL). Don't return NULL.
74865         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
74866
74867 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74868
74869         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
74870         support for DOS/DJGPP.
74871
74872 2001-03-01  Paul Eggert  <eggert@twinsun.com>
74873
74874         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
74875         lacks mkstemp.  Compile our own tempname.c if we compile our own
74876         mkstemp.c, as mkstemp relies on tempname.
74877
74878 2001-03-01  Jim Meyering  <meyering@lucent.com>
74879
74880         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
74881         AH_VERBATIM really does output its argument verbatim.
74882
74883 2001-02-28  Paul Eggert  <eggert@twinsun.com>
74884
74885         * lib/Makefile.am (libfetish_a_SOURCES):
74886         Add dup-safer.c, fopen-safer.c.
74887         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
74888
74889         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
74890         * lib/unistd-safer.h: New files.
74891
74892 2001-02-25  Paul Eggert  <eggert@twinsun.com>
74893
74894         The mkstemp replacement is taken from glibc 2.2.2, with some
74895         portability fixes for use outside glibc, as follows:
74896
74897         * lib/tempname.c (struct_stat64): New macro.
74898         (direxists, __gen_tempname): Use it.
74899         This avoids a portability problem with Solaris 8.
74900
74901         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
74902         (<stddef.h>, <stdint.h>, <string.h>):
74903         Include only if STDC_HEADERS || _LIBC.
74904         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
74905         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
74906         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
74907         (__set_errno): Define this macro if <errno.h> doesn't.
74908         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
74909         Define these macros if <stdio.h> doesn't.
74910         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
74911         Define these macros if <sys/stat.h>
74912         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
74913         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
74914         __xstat64): Define if not _LIBC.
74915         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
74916         (__gen_tempname): Invoke gettimeofday only if
74917         HAVE_GETTIMEOFDAY || _LIBC;
74918         otherwise, fall back on plain "time".
74919         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
74920
74921         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
74922
74923         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
74924
74925 2001-02-18  Paul Eggert  <eggert@twinsun.com>
74926
74927         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
74928
74929 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74930
74931         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
74932         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
74933         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
74934         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74935
74936 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74937
74938         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
74939         Remove workaround macros for hosts that have mbrtowc but not
74940         mbstate_t, as we now insist on proper declarations for both
74941         before using mbrtowc.
74942
74943 2001-02-17  Jim Meyering  <meyering@lucent.com>
74944
74945         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
74946         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
74947         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
74948         UnixWare 7.1.1.
74949
74950         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
74951         rather than AC_CACHE_VAL.
74952
74953 2001-02-17  Jim Meyering  <meyering@lucent.com>
74954
74955         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
74956         around included file name.
74957
74958         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
74959
74960         * lib/strftime.c: Update from GNU libc (the only changes were to
74961         comments).
74962
74963 2001-02-17  Jim Meyering  <meyering@lucent.com>
74964
74965         * lib/regex.c: Update from libc.
74966
74967 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
74968
74969         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
74970         clash.
74971
74972 2001-02-16  Paul Eggert  <eggert@twinsun.com>
74973
74974         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
74975         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
74976         Reported by Mark Hounschell via Paul Eggert.
74977
74978 2001-02-07  Jim Meyering  <meyering@lucent.com>
74979
74980         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
74981
74982 2001-02-05  Jim Meyering  <meyering@lucent.com>
74983
74984         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
74985         it includes the patch required for `large file' support with at least
74986         HP-UX's 10.20 /bin/cc.
74987
74988 2001-02-03  Jim Meyering  <meyering@lucent.com>
74989
74990         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
74991         AS_IF, now that it works once again (mysteriously).
74992         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74993
74994 2001-01-30  Jim Meyering  <meyering@lucent.com>
74995
74996         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
74997         * m4/chown.m4: Rename conftestchown to conftest.chown.
74998         * m4/rename.m4: s/conftestdir/conftest.d1/ and
74999         s/conftestdir2/conftest.d2/.
75000         * m4/utimes.m4: s/conftestdata/conftest.data/
75001         Inspired by Pavel Roskin's change in autoconf.
75002
75003 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
75004
75005         * lib/config.charset: Update for FreeBSD 4.2.
75006
75007 2001-01-27  Jim Meyering  <meyering@lucent.com>
75008
75009         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
75010         a use of AS_IF.
75011         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75012
75013 2001-01-26  Jim Meyering  <meyering@lucent.com>
75014
75015         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
75016         quotearg.c includes it.
75017
75018 2001-01-26  Jim Meyering  <meyering@lucent.com>
75019
75020         * lib/quotearg.c: Include stddef.h.
75021         * lib/quote.c: Include stddef.h.
75022         Reported by Axel Kittenberger.
75023
75024         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
75025         line in double quotes so that it evokes a better diagnostic.
75026         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
75027         Reported by Axel Kittenberger.
75028
75029 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
75030
75031         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
75032         as if it was a `charset'.
75033
75034 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75035
75036         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
75037         has const.
75038
75039 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75040
75041         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
75042         to avoid a warning.  Add back 'const' to inptr.
75043
75044 2001-01-20  Jim Meyering  <meyering@lucent.com>
75045
75046         Be sure that headers are checked before used in code compiled
75047         for the type checks.
75048         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
75049         In place of that, invoke jm_CHECK_ALL_TYPES.
75050         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
75051         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
75052         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
75053         The check for ssize_t was mistakenly run before the test for unistd.h.
75054
75055         The configure-time check for stdbool.h was missing.
75056         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
75057         (jm_PREREQ_HASH): New function.
75058
75059 2001-01-17  Jim Meyering  <meyering@lucent.com>
75060
75061         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
75062         for autoconf-2.49c.
75063         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
75064
75065 2001-01-16  Jim Meyering  <meyering@lucent.com>
75066
75067         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
75068         From Bruno Haible.
75069
75070 2001-01-14  Jim Meyering  <meyering@lucent.com>
75071
75072         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
75073         foo and bar.  Create conftestdir/ in the script, not in the C code.
75074         Remove directories in the script, not in the C code.
75075         Remove conftestdir{,2} before trying to create the directory.
75076         Make the entire configure script fail if the mkdir fails.
75077
75078 2001-01-14  Jim Meyering  <meyering@lucent.com>
75079
75080         * lib/rename.c: New file.  From Volker Borchert.
75081         Include stdlib.h, string.h or strings.h, and xalloc.h.
75082         Use strip_trailing_slashes rather than open-coding it.
75083
75084 2001-01-03  Paul Eggert  <eggert@twinsun.com>
75085
75086         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
75087
75088 2001-01-03  Jim Meyering  <meyering@lucent.com>
75089
75090         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
75091         of local `inptr' to avoid warning with some system declarations of
75092         iconv.
75093
75094 2001-01-02  Volker Borchert  <bt@teknon.de>
75095
75096         * m4/rename.m4: New file.
75097         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
75098
75099 2001-01-01  Jim Meyering  <meyering@lucent.com>
75100
75101         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
75102         even on systems with utmpx.h.  It's necessary for the declaration of
75103         utmp's ut_user member.  Reported by Andreas Jaeger.
75104
75105         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
75106         available. They are required for the declarations of getgrgid and
75107         getpwuid resp.
75108         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
75109         Reported by Andreas Jaeger.
75110
75111 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
75112
75113         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
75114         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
75115         so `make install' also works in VPATH builds.
75116
75117 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
75118
75119         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
75120         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
75121         can be used in subdirectories.
75122
75123 2000-12-29  Paul Eggert  <eggert@twinsun.com>
75124
75125         * lib/modechange.c: Do not assume that mode_t uses the
75126         traditional octal encoding.  E.g. "chmod 1 FOO" should set
75127         the other-execute bit of FOO even if S_IXOTH != 1.
75128
75129         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
75130         WOTH, XOTH, ALLM): New macros.
75131         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
75132          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
75133         Use them.
75134         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
75135         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
75136         (mode_compile):
75137         No need to use uintmax_t; unsigned long is long enough.
75138         Don't bother to get suffix since we don't use it.
75139
75140 2000-12-26  Jim Meyering  <meyering@lucent.com>
75141
75142         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
75143         better with autoheader.
75144
75145 2000-12-24  Jim Meyering  <meyering@lucent.com>
75146
75147         * lib/hash.c (is_prime): Return explicit boolean values.
75148         (hash_get_first): Return NULL to appease Irix5.6's 89.
75149         Reported by Nelson Beebe.
75150
75151 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
75152
75153         * lib/localcharset.c (locale_charset): Add support for Win32.
75154
75155 2000-12-18  Paul Eggert  <eggert@twinsun.com>
75156
75157         * lib/physmem.h, lib/physmem.c: New files.
75158
75159         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
75160         (noinst_HEADERS): Add physmem.h.
75161
75162         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
75163         't' for compatibility with Solaris 8 sort.
75164
75165 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
75166
75167         * lib/config.charset: Add support for BeOS.
75168
75169 2000-12-17  Jim Meyering  <meyering@lucent.com>
75170
75171         * m4/dos.m4 (jm_AC_DOS): New file and macro.
75172         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
75173
75174 2000-12-16  Jim Meyering  <meyering@lucent.com>
75175
75176         This bug had a serious impact on chown: `chown N:M FILE' (for integer
75177         N and M) would have treated it like `chown N:N FILE'.
75178
75179         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
75180
75181 2000-12-16  Jim Meyering  <meyering@lucent.com>
75182
75183         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
75184         SHELLS_FILE to a file name that's useful on djgpp systems.
75185         Include stdlib.h.
75186         (ADDITIONAL_DEFAULT_SHELLS): Define.
75187         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
75188         Based mostly on a patch from Prashant TR.
75189
75190 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
75191
75192         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
75193         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
75194         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
75195
75196 2000-12-08  Andreas Schwab  <schwab@suse.de>
75197
75198         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
75199         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
75200
75201 2000-12-07  Jim Meyering  <meyering@lucent.com>
75202
75203         * lib/stripslash.c (ISSLASH): Define.
75204         (strip_trailing_slashes): Use ISSLASH rather than comparing against
75205         `/'.
75206         From Prashant TR.
75207
75208         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
75209         (dir_name_r): Declare this function as static.
75210         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
75211         manifest itself on a name containing a mix of slashes and
75212         backslashes.
75213         Make this function work with names starting with a DOS-style
75214         drive letter and colon prefix.
75215         (dir_name): Append `.' if necessary.
75216         Based mostly on patches from Prashant TR and Eli Zaretskii.
75217
75218         * lib/dirname.h (dir_name_r): Remove prototype.
75219
75220 2000-12-06  Paul Eggert  <eggert@twinsun.com>
75221
75222         * m4/off_t-format.m4: Remove this file.
75223         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
75224
75225 2000-12-06  Jim Meyering  <meyering@lucent.com>
75226
75227         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
75228         replacement strtoull, we may well need the replacement strtoul, too.
75229         Check for declarations of strtoul and strtoull.
75230         Check for strtol.  Mainly as a cue to cause automake to include
75231         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
75232         Check for limits.h -- strtol.c needs it.
75233
75234 2000-12-05  Jim Meyering  <meyering@lucent.com>
75235
75236         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
75237
75238 2000-12-04  Jim Meyering  <meyering@lucent.com>
75239
75240         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
75241         Also include memory.h, stdlib.h, unistd.h if appropriate.
75242         Reported by Andreas Jaeger (conflicting declaration of malloc).
75243
75244 2000-12-02  Jim Meyering  <meyering@lucent.com>
75245
75246         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
75247         * m4/jm-macros.m4 (jm_MACROS): require it.
75248
75249 2000-12-02  Jim Meyering  <meyering@lucent.com>
75250
75251         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
75252
75253 2000-12-01  Paul Eggert  <eggert@twinsun.com>
75254
75255         * lib/memrchr.c: Include <config.h> before any system include file.
75256
75257 2000-11-30  Jim Meyering  <meyering@lucent.com>
75258
75259         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
75260
75261 2000-11-30  Jim Meyering  <meyering@lucent.com>
75262
75263         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
75264
75265 2000-11-29  Paul Eggert  <eggert@twinsun.com>
75266
75267         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
75268
75269 2000-11-26  Jim Meyering  <meyering@lucent.com>
75270
75271         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
75272
75273 2000-11-22  Paul Eggert  <eggert@twinsun.com>
75274
75275         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
75276         size of (size_t) -1; it's not portable.
75277
75278 2000-11-17  Jim Meyering  <meyering@lucent.com>
75279
75280         * lib/strstr.c: Update from GNU libc.
75281
75282 2000-11-17  Akim Demaille  <akim@epita.fr>
75283
75284         * lib/obstack.h: Formatting changes.
75285         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
75286         prevent type checking.
75287         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
75288         cast the value to (void *): assigning a `foo *' to a `void *'
75289         variable is valid.
75290         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
75291
75292 2000-11-16  Jim Meyering  <meyering@lucent.com>
75293
75294         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
75295
75296 2000-11-11  Jim Meyering  <meyering@lucent.com>
75297
75298         * lib/error.c: Add a couple #includes, merging from GNU libc version.
75299
75300 2000-11-10  Jim Meyering  <meyering@lucent.com>
75301
75302         * lib/obstack.h: Update from GNU libc.
75303         * lib/obstack.c: Likewise.
75304
75305 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
75306
75307         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
75308
75309 2000-11-06  Paul Eggert  <eggert@twinsun.com>
75310
75311         * lib/getusershell.c (setusershell): Use rewind rather than
75312         fseek/fseeko, to avoid configuration hassles with fseeko.
75313         Don't bother opening SHELLS_FILE if shellstream is NULL;
75314         it's not necessary.
75315
75316 2000-11-05  Jim Meyering  <meyering@lucent.com>
75317
75318         * lib/makepath.h (make_dir): Declare.
75319         * lib/makepath.c (make_dir): Remove `static' attribute.
75320         Tweak a comment.
75321
75322 2000-11-04  Jim Meyering  <meyering@lucent.com>
75323
75324         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
75325
75326 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
75327
75328         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
75329         last one in a bucket, advance to the next bucket.
75330
75331 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
75332
75333         * lib/fnmatch.c: Do not comment out all the code if we are using
75334         the GNU C library, because in some cases we are replacing buggy
75335         code in the GNU C library itself.
75336
75337 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
75338
75339         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
75340         (regex_compile): Catch bogus \(\1\).
75341
75342 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75343
75344         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
75345         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
75346         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
75347
75348 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75349
75350         * lib/error.h, getline.h, modechange.h:
75351         Remove "2000" from Copyright line, as the file hasn't been
75352         changed this year other than in the copyright notice.
75353
75354         * lib/xalloc.h: Add "2000" to Copyright line, as this file
75355         was changed this year.
75356
75357 2000-10-29  Jim Meyering  <meyering@lucent.com>
75358
75359         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
75360         renaming.
75361         * m4/ls-mntd-fs.m4: Likewise
75362
75363 2000-10-29  Jim Meyering  <meyering@lucent.com>
75364
75365         * lib/xstat.in: Fix grammar in comment.
75366
75367 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
75368
75369         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
75370         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
75371         doesn't define __restrict_arr.
75372
75373 2000-10-28  Jim Meyering  <meyering@lucent.com>
75374
75375         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
75376         (jm_PREREQ_MEMCHR): New function.
75377
75378 2000-10-28  Jim Meyering  <meyering@lucent.com>
75379
75380         * lib/memchr.c: Update from libc.
75381         Adjust for portability:
75382         [HAVE_STDLIB_H]: Include stdlib.h.
75383         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
75384         Undef __memchr, too.
75385         [!weak_alias]: Define __memchr to memchr.
75386
75387         * lib/regex.c: Update from libc.
75388         * lib/regex.h: Likewise.
75389         * lib/getopt1.c: Likewise.
75390         * lib/memcmp.c: Likewise.
75391
75392         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
75393         Avoid using fseek, when possible -- it's broken by design.
75394         Patch by Ulrich Drepper.
75395
75396 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
75397
75398         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
75399         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
75400         Giving in to popular pressure to shut up the compiler with casts.
75401
75402 2000-10-26  Jim Meyering  <meyering@lucent.com>
75403
75404         * lib/strftime.c: Update from libc.
75405
75406 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
75407
75408         * regex.c: More `unsigned char' -> `re_char' changes.
75409         Also change several `int' into `re_wchar_t'.
75410         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
75411         (PUSH_FAILURE_POINTER): Don't cast any more.
75412         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
75413         We want GCC to complain, since this piece of code makes
75414         re_match non-reentrant, which *should* be fixed.
75415         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
75416         (EXTEND_BUFFER): Use RETALLOC.
75417         (SET_LIST_BIT): Don't cast.
75418         (re_wchar_t): New type.
75419         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
75420         that those two functions will always properly return.
75421         (IMMEDIATE_QUIT_CHECK): Cast to void.
75422         (analyse_first): Use recursion rather than an explicit stack.
75423         (re_compile_fastmap): Can't fail anymore.
75424         (re_search_2): Don't check re_compile_fastmap for failure.
75425         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
75426         Now also sets the new value (passed in a new argument).
75427         (re_match_2_internal): Use it.
75428         Also, use a new var `reg' of type size_t when looping through regs
75429         rather than reuse the inappropriate `mcnt'.
75430
75431 2000-10-25  Jim Meyering  <meyering@lucent.com>
75432
75433         * lib/obstack.c: Update from libc.
75434
75435 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
75436
75437         * regex.c (regex_compile): Change the way of handling a range from
75438         a char less than 256 to a char not less than 256.
75439
75440 2000-10-24  Andrew Innes  <andrewi@gnu.org>
75441
75442         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
75443         NT-Emacs only.
75444         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
75445         so that re_search functions only quit when callers expect them to.
75446
75447 2000-10-23  Jim Meyering  <meyering@lucent.com>
75448
75449         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
75450         wrong.  That set_locale call must not have any side effects.
75451         From Paul Eggert.
75452
75453 2000-10-22  Jim Meyering  <meyering@lucent.com>
75454
75455         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
75456         [CYCLIC]: Remove now-unused definition.
75457
75458         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
75459         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
75460         Suggestion from Ulrich Drepper.
75461
75462 2000-10-21  Jim Meyering  <meyering@lucent.com>
75463
75464         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
75465         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
75466         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
75467
75468 2000-10-21  Jim Meyering  <meyering@lucent.com>
75469
75470         * lib/dirname.c (memrchr): Declare if necessary.
75471         (dir_name): Remove the restriction that there be no
75472         trailing slashes.  Now, this code skips past them, effectively
75473         ignoring them.
75474         [TEST_DIRNAME] (main): New unit tests.
75475
75476         * lib/memrchr.c: New file from GNU libc.
75477         Undef __memrchr, too.
75478         [!weak_alias]: Define __memrchr to memrchr.
75479         Guard weak_alias use with `#ifdef weak_alias'.
75480
75481 2000-10-21  Jim Meyering  <meyering@lucent.com>
75482
75483         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
75484         (dir_name): Use dir_name_r.
75485         * lib/dirname.h (dir_name_r): Declare it.
75486
75487 2000-10-17  Jim Meyering  <meyering@lucent.com>
75488
75489         * lib/quote.h (PARAMS): Define and use.
75490         Reported by Akim Demaille.
75491
75492         * lib/getopt.c: Update from libc.
75493
75494 2000-10-16  Jim Meyering  <meyering@lucent.com>
75495
75496         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
75497         setlocale.
75498         From Jan Fedak.
75499
75500 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
75501
75502         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
75503
75504 2000-09-25  Jim Meyering  <meyering@lucent.com>
75505
75506         * lib/md5.h (rol): Define (from GnuPG).
75507
75508         * lib/sha.c: Give credit (GnuPG) where due.
75509         (M): Use rol rather than open-coding it.
75510         Add a FIXME comment.
75511
75512 2000-09-21  Jim Meyering  <meyering@lucent.com>
75513
75514         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
75515         Reported by Michael Stone.
75516
75517 2000-09-20  Jim Meyering  <meyering@lucent.com>
75518
75519         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
75520         (noinst_HEADERS): Add sha.h.
75521         Based on code from Scott G. Miller and from GnuPG.
75522
75523 2000-09-18  Jim Meyering  <meyering@lucent.com>
75524
75525         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
75526         LIBS. Otherwise, everyone ends up linking with -lelf for some
75527         configurations.
75528         Reported by Mike Stone.
75529
75530 2000-09-15  Jim Meyering  <meyering@lucent.com>
75531
75532         * lib/regex.c: Update from libc.
75533
75534 2000-09-10  Jim Meyering  <meyering@lucent.com>
75535
75536         * lib/getopt.c (_getopt_internal): Update from glibc.
75537
75538 2000-09-09  Jim Meyering  <meyering@lucent.com>
75539
75540         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
75541         think it should be used as a general replacement for isascii.
75542         * lib/fnmatch.c: Likewise.
75543         * lib/mbswidth.c: Likewise
75544         * lib/regex.c: Likewise.
75545
75546         Don't use atoi.
75547         * lib/userspec.c: Include sys/param.h and limits.h.
75548         Include xstrtol.h.
75549         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75550         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
75551         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
75552         UID, GID.  Check range.
75553
75554 2000-09-06  Jim Meyering  <meyering@lucent.com>
75555
75556         * lib/getopt.c (_getopt_internal): Update from glibc.
75557
75558 2000-08-30  Jim Meyering  <meyering@lucent.com>
75559
75560         * lib/strftime.c: Merge in changes from GNU libc.
75561
75562 2000-08-26  Jim Meyering  <meyering@lucent.com>
75563
75564         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
75565         * m4/fpending.m4: New file.
75566
75567 2000-08-26  Jim Meyering  <meyering@lucent.com>
75568
75569         * lib/closeout.c: Include "__fpending.h".
75570         (close_stdout_status): Return right away if there's nothing to flush.
75571
75572         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
75573         * lib/__fpending.c: New file.
75574         * lib/__fpending.h: New file.
75575
75576 2000-08-20  Jim Meyering  <meyering@lucent.com>
75577
75578         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
75579         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
75580         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
75581
75582 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
75583
75584         Improve fileutils installation on systems where running
75585         programs (like install) can't be unlinked.
75586         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
75587         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
75588
75589 2000-08-07  Paul Eggert  <eggert@twinsun.com>
75590
75591         Standardize on "memory exhausted" instead of "Memory exhausted"
75592         or "virtual memory exhausted".
75593         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
75594         "virtual memory exhausted".
75595         * lib/same.c (same_name): Invoke xalloc_die instead of printing
75596         our own message.
75597         * lib/userspec.c (parse_user_spec): Likewise.
75598         * lib/bumpalloc.h: comment fix
75599         * lib/same.c, userspec.c: Include xalloc.h.
75600
75601         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
75602         not char *const and pointing to a constant array.
75603         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
75604         (xrealloc): Comment fix.
75605
75606         * lib/userspec.c (parse_user_spec):
75607         Don't translate a message until just before returning,
75608         to avoid unnecessary translation.
75609
75610 2000-08-07  Jim Meyering  <meyering@lucent.com>
75611
75612         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
75613         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
75614         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
75615         getgroups.c, gethostname.c, getopt.h, group-member.c,
75616         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
75617         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
75618         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
75619         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
75620         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
75621         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
75622         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
75623         yesno.c: Back out Copyright date changes for each file with no change
75624         this year.  This eases coordination with other programs using the same
75625         source code modules.  From Paul Eggert.
75626
75627 2000-08-06  Paul Eggert  <eggert@twinsun.com>
75628
75629         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
75630         not char, for compatibility with glibc 2.1.3 strftime.c.
75631
75632 2000-08-03  Greg McGary  <greg@mcgary.org>
75633
75634         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
75635         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
75636         (EXTEND_BUFFER): Use them.
75637
75638 2000-08-01  Jim Meyering  <meyering@lucent.com>
75639
75640         * lib/dirname.c (ISSLASH): Define.
75641         (BACKSLASH_IS_PATH_SEPARATOR): Define.
75642         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
75643         both `\' and `/' may be use as path separators.
75644         Based on a patch from Prashant TR.
75645
75646 2000-07-31  Paul Eggert  <eggert@twinsun.com>
75647
75648         * lib/quotearg.c (quotearg_n_options): Don't make the initial
75649         slot vector a constant, since it might get modified.
75650
75651 2000-07-31  Jim Meyering  <meyering@lucent.com>
75652
75653         * lib/xmalloc.c: Use `virtual memory exhausted', not
75654         `Memory exhausted'.
75655         * lib/obstack.c (print_and_abort): Likewise.
75656
75657 2000-07-30  Paul Eggert  <eggert@twinsun.com>
75658
75659         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
75660         buffer, so that the caller can always quote one small
75661         component of a "memory exhausted" message in slot 0.
75662         From a suggestion by Jim Meyering.
75663
75664 2000-07-30  Jim Meyering  <meyering@lucent.com>
75665
75666         * lib/makepath.c (make_path): Quote the other instance, too.
75667
75668         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
75669         (STATIC_BUF_SIZE): Define.
75670         (quotearg_n_options): Use only statically allocated storage when
75671         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
75672         than STATIC_BUF_SIZE.
75673
75674 2000-07-29  Jim Meyering  <meyering@lucent.com>
75675
75676         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
75677         * lib/dirname.c (dir_name): Likewise.
75678
75679         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
75680         `/'.
75681
75682         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
75683         (dir_name): Assert that there are no trailing slashes.
75684
75685 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
75686
75687         * lib/mbswidth.h (mbswidth): Add a flags argument.
75688         (mbswidth): New declaration.
75689         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
75690         * lib/mbswidth.c (mbswidth): Add a flags argument.
75691         (mbsnwidth): New function.
75692
75693 2000-07-24  Jim Meyering  <meyering@lucent.com>
75694
75695         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
75696
75697 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75698
75699         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
75700
75701 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75702
75703         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
75704         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
75705         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
75706         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
75707         invoke multibyte primitives.
75708
75709 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75710
75711         * lib/quotearg.c:
75712         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
75713         so that mbstate_t is always defined.
75714
75715         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
75716         be 1 in at least one GCC installation, and this configuration
75717         error is likely to be common.  Ignoring MB_LEN_MAX hurts
75718         performance on hosts that have mbrtowc but have only unibyte
75719         locales, but I assume these hosts are rare.
75720
75721 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75722
75723         * lib/mbswidth.c (_XOPEN_SOURCE):
75724         Don't define; this causes problems on Solaris 7.
75725         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
75726
75727 2000-07-23  Jim Meyering  <meyering@lucent.com>
75728
75729         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
75730         too: getgrgid, getpwuid, getuid.
75731
75732 2000-07-23  Jim Meyering  <meyering@lucent.com>
75733
75734         * lib/basename.c (base_name): Add an assertion.
75735
75736 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
75737
75738         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
75739         shadow its mbsinit function.
75740
75741 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75742
75743         * lib/mbswidth.h: New file.
75744         * lib/mbswidth.c: New file.
75745         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
75746         (noinst_HEADERS): Add mbswidth.h.
75747
75748 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75749
75750         * lib/config.charset: Add support for FreeBSD. Improve support for
75751         HP-UX and IRIX 6.
75752
75753 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
75754
75755         * m4/mbswidth.m4: New file.
75756         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
75757
75758 2000-07-15  Jim Meyering  <meyering@lucent.com>
75759
75760         * lib/makepath.c: Include quote.h.
75761         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
75762         corresponding argument in a `quote (...)' call.
75763         Give better diagnostics.
75764
75765         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
75766         (noinst_HEADERS): Add quote.h.
75767
75768         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
75769         from tar's src/misc.c.
75770         * lib/quote.h: New file.  Prototypes for same.
75771
75772 2000-07-14  Paul Eggert  <eggert@twinsun.com>
75773
75774         From a suggestion by Bruno Haible.
75775         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
75776         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
75777         to decide whether to define the BeOS workaround macro;
75778         this adjusts to the change to AC_MBSTATE_T.
75779
75780 2000-07-14  Jim Meyering  <meyering@lucent.com>
75781
75782         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
75783         jm_AC_TYPE_UINTMAX_T.
75784
75785 2000-07-13  Paul Eggert  <eggert@twinsun.com>
75786
75787         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
75788
75789         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
75790         quotearg_buffer_restyled): Add support for
75791         clocale_quoting_style.  Undo previous change to
75792         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
75793         and "{RIGHT QUOTATION MARK}" msgids.
75794
75795 2000-07-10  Paul Eggert  <eggert@twinsun.com>
75796
75797         From a suggestion by Bruno Haible.
75798         * m4/mbstate_t.m4 (AC_MBSTATE_T):
75799         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
75800         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
75801         and mbstate_t, to a single-part test that simply defines mbstate_t.
75802         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
75803         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
75804
75805 2000-07-10  Jim Meyering  <meyering@lucent.com>
75806
75807         * m4/strerror_r.m4: Mirror the correction made in autoconf.
75808
75809         * m4/gnu-source.m4: Output to confdefs.h directly.
75810         Suggestion from Akim Demaille.
75811
75812 2000-07-09  Paul Eggert  <eggert@twinsun.com>
75813
75814         The old behavior of quoting `like this' doesn't look good with
75815         newer, ISO-style fonts.  See:
75816         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
75817
75818         Instead, quote "like this" by default.  Let the translator
75819         tailor the locale-specific quoting behavior by providing
75820         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
75821
75822         * lib/quotearg.c (N_): New macro.
75823         (gettext_default): New function.
75824         (quotearg_buffer_restyled): Use
75825         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
75826         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
75827
75828 2000-07-09  Jim Meyering  <meyering@lucent.com>
75829
75830         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
75831         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
75832
75833         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
75834         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
75835
75836 2000-07-09  Jim Meyering  <meyering@lucent.com>
75837
75838         * lib/Most files: Update copyright dates to include 2000.
75839
75840 2000-07-08  Jim Meyering  <meyering@lucent.com>
75841
75842         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
75843         if not defined.
75844         (xgethostname): Remove now-unnecessary #ifdef.
75845         Move declaration of `err' into loop where it's used.
75846
75847 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75848         and Bruno Haible  <haible@clisp.cons.org>
75849
75850         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
75851         only if the test for an object-type mbstate_t fails.  This
75852         prevents us from mistakenly reporting that mbstate_t is a
75853         system object type after we "#define mbstate_t int" to work
75854         around its lack.
75855
75856 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75857         and Bruno Haible  <haible@clisp.cons.org>
75858
75859         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
75860
75861 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75862
75863         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
75864         to strerror_r.
75865         Include <ctype.h> for use of isalpha.
75866
75867 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75868
75869         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
75870         by allocating a larger buffer. Test the gethostname return value for
75871         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
75872         returns an error and ENAMETOOLONG isn't defined.
75873
75874 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75875
75876         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
75877         dimension.
75878
75879 2000-07-04  Jim Meyering  <meyering@lucent.com>
75880
75881         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
75882         of the deprecated AC_CHECKING.
75883
75884 2000-07-04  Jim Meyering  <meyering@lucent.com>
75885
75886         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
75887         Reported by Bruno Haible.
75888
75889 2000-07-04  Jim Meyering  <meyering@lucent.com>
75890
75891         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
75892         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
75893         lacks mbrtowc.
75894
75895 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75896
75897         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
75898         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
75899
75900 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75901         and Bruno Haible  <haible@clisp.cons.org>
75902
75903         * lib/quotearg.c (mbrtowc):
75904         Assign to *pwc, and return 1 only if result is nonzero.
75905         (iswprint): Use ISPRINT when substituting our own mbrtowc.
75906
75907 2000-07-03  Jim Meyering  <meyering@lucent.com>
75908
75909         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
75910
75911 2000-07-03  Jim Meyering  <meyering@lucent.com>
75912
75913         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
75914         This is necessary to get a definition of e.g., UTMP_FILE on
75915         HP-UX 10.20.
75916         From Bob Proulx.
75917
75918 2000-07-02  Jim Meyering  <meyering@lucent.com>
75919
75920         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
75921
75922         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
75923         AC_LIBOBJ(function_name).
75924         * m4/chown.m4: Likewise.
75925         * m4/fnmatch.m4: Likewise.
75926         * m4/ftruncate.m4: Likewise.
75927         * m4/getgroups.m4: Likewise.
75928         * m4/getline.m4: Likewise.
75929         * m4/group-member.m4: Likewise.
75930         * m4/jm-macros.m4: Likewise.
75931         * m4/lstat.m4: Likewise.
75932         * m4/malloc.m4: Likewise.
75933         * m4/memcmp.m4: Likewise.
75934         * m4/nanosleep.m4: Likewise.
75935         * m4/putenv.m4: Likewise.
75936         * m4/realloc.m4: Likewise.
75937         * m4/regex.m4: Likewise.
75938         * m4/stat.m4: Likewise.
75939         * m4/strftime.m4: Likewise.
75940
75941 2000-07-02  Jim Meyering  <meyering@lucent.com>
75942
75943         * lib/quotearg.c (mbstate_t): Don't define here.
75944
75945 2000-07-02  Jim Meyering  <meyering@lucent.com>
75946
75947         * lib/nanosleep.c (SIGCONT): Define if not already defined.
75948
75949 2000-07-01  Jim Meyering  <meyering@lucent.com>
75950
75951         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
75952
75953 2000-07-01  Jim Meyering  <meyering@lucent.com>
75954
75955         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
75956         problem.
75957
75958 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75959
75960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
75961         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
75962
75963 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75964
75965         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
75966         per change in ../m4/ls-mntd-fs.m4.
75967         (read_filesystem_list): Ignore symbolic links.
75968
75969 2000-06-29  Jim Meyering  <meyering@lucent.com>
75970
75971         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
75972         for declaration of strcmp.
75973
75974         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
75975
75976         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
75977         Avoid warning by casting result to `char *' to remove `const'.
75978
75979 2000-06-28  Jim Meyering  <meyering@lucent.com>
75980
75981         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
75982         included by quotearg.c, for which we perform this test.  From
75983         Bruno Haible.
75984
75985 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75986
75987         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
75988         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
75989         <utmpx.h> exists, put readutmp.o into LIBOBJS.
75990
75991 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75992
75993         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
75994
75995 2000-06-26  Paul Eggert  <eggert@twinsun.com>
75996
75997         savedir now sets errno on failure and invokes xmalloc to get memory.
75998         Fix a couple of other minor bugs while we're at it.
75999
76000         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
76001         (NAMLEN): Remove macro.
76002         (malloc, realloc): Remove decls.
76003         (stpcpy): Likewise.
76004         ("xalloc.h"): Include.
76005         (NAME_SIZE_DEFAULT): New macro.
76006         (savedir): Use xmalloc / xrealloc to allocate memory.
76007         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
76008         Skip "" directory entries.
76009         Use strlen to calculate directory entry length, since the old method
76010         is rarely used these days and isn't worth supporting.
76011         Don't use a pointer after freeing it.
76012         Check for integer overflow when calculating allocation size.
76013         Use memcpy to copy entries, instead of stpcpy.
76014         Set errno properly when returning NULL.
76015         Check for readdir error.
76016
76017 2000-06-26  Jim Meyering  <meyering@lucent.com>
76018
76019         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
76020
76021 2000-06-25  Jim Meyering  <meyering@lucent.com>
76022
76023         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
76024         Linux header bug when _XOPEN_SOURCE is defined to 500.
76025
76026 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76027
76028         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
76029         deficiency.
76030
76031 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76032
76033         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
76034         Include xalloc.h.
76035         Don't include <stdlib.h>.  Don't declare malloc, realloc.
76036
76037 2000-06-24  Jim Meyering  <meyering@lucent.com>
76038
76039         * m4/strerror_r.m4: Revive this file -- to try out an experimental
76040         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
76041         for which strerror does return char*, but which lacks a conveniently
76042         accessible declaration of the function.  If the compile-test says
76043         strerror_r doesn't work, then resort to a `run'-test that works on
76044         BeOS and segfaults on DEC Unix.
76045
76046 2000-06-24  Jim Meyering  <meyering@lucent.com>
76047
76048         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
76049
76050 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76051
76052         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
76053         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
76054
76055 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76056
76057         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
76058         (mbrtowc, mbstate_t): Define substitutes if
76059         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
76060         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
76061         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
76062
76063 2000-06-23  Jim Meyering  <meyering@lucent.com>
76064
76065         * m4/afs.m4: Add missing AC_MSG_RESULT.
76066         Reported by Bruno Haible.
76067
76068         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
76069         Suggestion from Bruno Haible.
76070
76071 2000-06-23  Jim Meyering  <meyering@lucent.com>
76072
76073         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
76074
76075 2000-06-21  Jim Meyering  <meyering@lucent.com>
76076
76077         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
76078
76079 2000-06-21  Jim Meyering  <meyering@lucent.com>
76080
76081         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
76082         (noinst_HEADERS): Add getstr.h.
76083
76084         * lib/getline.c (getstr): Move into a separate file.
76085         * lib/getstr.c (getstr): New file, extracted from getline.c, with
76086         the following changes: new parameter, delim2; both delim[12]
76087         parameters have type `int', not `char'.  The latter would lose
76088         with 8-bit delimiters.
76089         * lib/getstr.h: New file.
76090
76091 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76092
76093         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
76094         than 1024, return a memory chunk of least possible size, instead
76095         of size PATH_MAX + 2. In the loop, increment the size proportionally.
76096         Use free/xmalloc instead of xrealloc to avoid copying for very long
76097         paths.
76098
76099 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76100
76101         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
76102         the empty string.
76103
76104 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76105
76106         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
76107         address, not strdup.  Include <stdlib.h> and don't declare free().
76108
76109 2000-06-19  Jim Meyering  <meyering@lucent.com>
76110
76111         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
76112
76113 2000-06-18  Jim Meyering  <meyering@lucent.com>
76114
76115         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
76116
76117         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
76118         `checking whether...' message to be consistent with that of the
76119         lstat test.
76120
76121 2000-06-18  Jim Meyering  <meyering@lucent.com>
76122
76123         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
76124         Besides, these days every porting target provides a mkdir function.
76125
76126         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
76127         needed. (this snippet comes from src/system.h).
76128
76129 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
76130
76131         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
76132
76133 2000-06-15  Paul Eggert  <eggert@twinsun.com>
76134
76135         * lib/human.c (adjust_value): New function.
76136         (human_readable_inexact): Apply rounding style even when
76137         printing approximate values.
76138
76139 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76140
76141         * lib/human.c (human_readable_inexact): Allow an input block
76142         size that is not a multiple of the output block size, and vice versa.
76143         Reported by Piergiorgio Sartor.
76144
76145 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76146
76147         * lib/getdate.y (get_date): Apply relative times after time
76148         zone indicator, not before.  Reported by Todd A. Jacobs.
76149
76150 2000-06-13  Jim Meyering  <meyering@lucent.com>
76151
76152         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
76153
76154         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
76155
76156 2000-06-12  Paul Eggert  <eggert@twinsun.com>
76157
76158         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
76159
76160 2000-06-12  Jim Meyering  <meyering@lucent.com>
76161
76162         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
76163         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
76164         optional argument.
76165         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
76166         the optional argument, `lib'.
76167
76168 2000-06-08  Jim Meyering  <meyering@lucent.com>
76169
76170         * m4/largefile.m4: Remove file (now that it's part of autoconf).
76171
76172 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76173
76174         Rewrite largefile configuration so that we don't need to run
76175         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
76176         AC_CANONICAL_HOST in configure.in -- jmm]
76177
76178         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
76179         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
76180         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
76181         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
76182         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
76183         All uses changed.
76184         Instead of inspecting the output of getconf, try to compile the
76185         test program without and with the macro definition.
76186         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
76187         for getconf.  Instead, check for the needed flags by compiling
76188         test programs.
76189
76190 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76191
76192         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
76193
76194 2000-06-04  Jim Meyering  <meyering@lucent.com>
76195
76196         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
76197         SunOS 4.1.4 for which gid_t is an unsigned type.
76198
76199 2000-06-03  Jim Meyering  <meyering@lucent.com>
76200
76201         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
76202         now that autoconf requires that.
76203
76204         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
76205         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
76206         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
76207
76208 2000-06-03  Jim Meyering  <meyering@lucent.com>
76209
76210         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
76211
76212 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76213
76214         * m4/glibc21.m4: New file.
76215         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
76216
76217 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76218
76219         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
76220         newer, don't install charset.alias.
76221         * lib/config.charset: Change the Linux/glibc rules so they become empty
76222         on glibc-2.1 or newer.
76223
76224 2000-06-02  Jim Meyering  <meyering@lucent.com>
76225
76226         * lib/mountlist.c: Back out last change.  Instead, do this...
76227         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
76228         me_dummy member using the same `ignore'-testing code.
76229         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
76230         fs_type strings.
76231         From Mark D. Roth.
76232
76233 2000-05-29  Jim Meyering  <meyering@lucent.com>
76234
76235         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
76236         mounts with the `ignore' attribute.  Based on a patch from
76237         Mark D. Roth.
76238
76239 2000-05-28  Jim Meyering  <meyering@lucent.com>
76240
76241         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
76242         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76243         * m4/stat.m4: Likewise.
76244         * m4/lstat.m4: Likewise.
76245         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
76246
76247         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
76248         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
76249
76250 2000-05-26  Jim Meyering  <meyering@lucent.com>
76251
76252         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
76253
76254 2000-05-24  Jim Meyering  <meyering@lucent.com>
76255
76256         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
76257         autoconf requires that.
76258         * m4/lib-check.m4: Likewise.
76259         * m4/jm-macros.m4: Likewise.
76260         * m4/strftime.m4: Likewise.
76261
76262         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
76263         AC_CHECK_DECLS, now that autoconf requires that.
76264
76265 2000-05-22  Jim Meyering  <meyering@lucent.com>
76266
76267         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76268         * m4/lstat.m4: Likewise.
76269
76270 2000-05-22  Jim Meyering  <meyering@lucent.com>
76271
76272         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
76273
76274 2000-05-20  Jim Meyering  <meyering@lucent.com>
76275
76276         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
76277         (jm_PREREQ): Use it.
76278
76279 2000-05-18  Jim Meyering  <meyering@lucent.com>
76280
76281         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
76282         back, too, since it may have been modified by allocate_entry.
76283         (hash_delete): Rewrite to use neither the assignment operator
76284         nor the comma operator in an if-expression.
76285
76286 2000-05-15  Paul Eggert  <eggert@twinsun.com>
76287
76288         * lib/closeout.c:
76289         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
76290         Remove; no longer needed.
76291         "quotearg.h": Add include.
76292         (file_name): Do not bother to explicitly initialize to NULL; it's less
76293         efficient on some hosts.
76294         (close_stdout_status): Remove test as to whether stdout was already
76295         closed; it breaks for the case "echo x | sort >&-".
76296         Quote file name colons.
76297         Do not assume that _("write error") lacks format strings.
76298
76299 2000-05-15  Jim Meyering  <meyering@lucent.com>
76300
76301         * lib/version-etc.c (version_etc_copyright): Update the copyright
76302         string used in all --version output.
76303
76304 2000-05-14  Jim Meyering  <meyering@lucent.com>
76305
76306         * lib/closeout.c (close_stdout_set_file_name): New function.
76307         (close_stdout_status): Use new file-scoped global.
76308         Return right away if fstat says the stdout file descriptor is invalid.
76309         * lib/closeout.h (close_stdout_set_file_name): Declare.
76310
76311 2000-05-10  Jim Meyering  <meyering@lucent.com>
76312
76313         * lib/closeout.c [default_exit_status]: New file-scoped variable.
76314         (close_stdout_set_status): New function.
76315         * lib/closeout.h (close_stdout_set_status): Declare.
76316
76317 2000-05-09  Jim Meyering  <meyering@lucent.com>
76318
76319         * m4/gettext.m4: Rename this...
76320         * m4/libintl.m4: ...to this.
76321
76322 2000-05-08  Jim Meyering  <meyering@lucent.com>
76323
76324         * lib/long-options.c: Don't include closeout.h.
76325         (parse_long_options): Don't call close_stdout for --version.
76326
76327 2000-05-06  Paul Eggert  <eggert@twinsun.com>
76328
76329         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
76330         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
76331         2.1.3 bug.  This avoids a clash when files like regex.c define
76332         _GNU_SOURCE.
76333
76334 2000-05-06  Jim Meyering  <meyering@lucent.com>
76335
76336         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
76337         (AC_REPLACE_FUNCS): Add strnlen.
76338
76339         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
76340         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
76341
76342         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
76343         AC_SEARCH_LIBS call for nanosleep.
76344         (LIB_NANOSLEEP): Set and AC_SUBST.
76345
76346 2000-05-06  Jim Meyering  <meyering@lucent.com>
76347
76348         * lib/strnlen.c: Undefine __strnlen and strnlen.
76349         [!weak_alias]: Define __strnlen to strnlen.
76350
76351         * lib/atexit.c: New file, from libiberty.
76352
76353 2000-05-06  Jim Meyering  <meyering@lucent.com>
76354
76355         * lib/closeout.c (close_stdout_status): Also check for errors on the
76356         stderr stream.
76357
76358 2000-05-05  Jim Meyering  <meyering@lucent.com>
76359
76360         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
76361         AC_SEARCH_LIBS call for clock_gettime.
76362         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
76363
76364         * m4/search-libs.m4: Update from autoconf.
76365
76366         su doesn't work on Solaris 2.6.
76367         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
76368         <shadow.h>.  Reported by Dragos Harabor.
76369
76370 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
76371
76372         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
76373         memcpy instead of xmalloc, xrealloc, path_concat.
76374         (locale_charset): Treat empty environment variables as absent.
76375         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
76376
76377 2000-05-04  Jim Meyering  <meyering@lucent.com>
76378
76379         * lib/getopt.c: Update from glibc.
76380         * lib/obstack.c: Likewise.
76381         * lib/obstack.h: Likewise.
76382         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
76383         file
76384
76385         * lib/regex.h: Likewise.
76386         * lib/strndup.c: Likewise.
76387         * lib/strnlen.c: New file, from glibc.
76388
76389 2000-05-03  Jim Meyering  <meyering@lucent.com>
76390
76391         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
76392
76393 2000-05-02  Paul Eggert  <eggert@twinsun.com>
76394
76395         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
76396         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
76397         compile-time test, rather than inspecting host and OS, to
76398         decide whether to define _LARGEFILE_SOURCE.
76399
76400 2000-05-01  Jim Meyering  <meyering@lucent.com>
76401
76402         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
76403
76404         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
76405         Based on a patch from Bruno Haible.
76406
76407 2000-05-01  Jim Meyering  <meyering@lucent.com>
76408
76409         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
76410
76411 2000-04-29  Jim Meyering  <meyering@lucent.com>
76412
76413         * lib/path-concat.c: Declare strdup only if it's not defined.
76414         * lib/canon-host.c: Likewise.
76415
76416 2000-04-28  Jim Meyering  <meyering@lucent.com>
76417
76418         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
76419         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
76420         is included first, then limits.h is included by locale.h by libintl.h.
76421         From John David Anglin.
76422
76423 2000-04-25  Jim Meyering  <meyering@lucent.com>
76424
76425         * lib/makepath.c (S_IRWXUGO): Define.
76426         (make_path): Always perform explicit chmod if MODE specifies any
76427         of the `special' permission bits.  Prompted by a bug report against
76428         install from Mate Wierdl and Joost van Baal.
76429
76430 2000-04-18  Jim Meyering  <meyering@lucent.com>
76431
76432         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
76433         (jm_PREREQ): Use it.
76434
76435 2000-04-18  Jim Meyering  <meyering@lucent.com>
76436
76437         * lib/README: New file.
76438
76439         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
76440         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
76441
76442 2000-04-17  Jim Meyering  <meyering@lucent.com>
76443
76444         Get it right :-)
76445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
76446         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
76447         Suggestion from Akim Demaille.
76448
76449 2000-04-17  Jim Meyering  <meyering@lucent.com>
76450
76451         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
76452         the definition of it to rpl_strftime also defined-away the system's
76453         declaration.
76454
76455 2000-04-15  Jim Meyering  <meyering@lucent.com>
76456
76457         Use `C' to denote so-called `contiguous' files, the same way
76458         that tar does.
76459         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
76460         (ftypelet): Use S_ISCTG.
76461         From Michael Deutschmann.
76462
76463 2000-04-14  Jim Meyering  <meyering@lucent.com>
76464
76465         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
76466         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
76467         clobbered.
76468
76469 2000-04-14  Jim Meyering  <meyering@lucent.com>
76470
76471         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
76472
76473 2000-04-13  Jim Meyering  <meyering@lucent.com>
76474
76475         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
76476         AH_VERBATIM to insert required #ifndef into config.h.in.
76477         Suggestion from Akim Demaille.
76478
76479 2000-04-12  Jim Meyering  <meyering@lucent.com>
76480
76481         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
76482         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
76483         Christian Krackowizer.
76484
76485         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
76486         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
76487         (AC_SYS_LARGEFILE): Require.
76488         (AM_C_PROTOTYPES): Require.
76489
76490 2000-04-08  Jim Meyering  <meyering@lucent.com>
76491
76492         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
76493         names don't conflict.  Reported by Eli Zaretskii.
76494
76495 2000-04-07  Jim Meyering  <meyering@lucent.com>
76496
76497         * lib/putenv.c: Move inclusion of errno.h so it follows that of
76498         sys/types.h, to work around system header problems on AIX 3.2.5.
76499         From Bruno Haible.
76500
76501 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
76502
76503         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
76504         bug.  Deal with the different error behavior of Irix iconv.
76505
76506 2000-04-05  Paul Eggert  <eggert@twinsun.com>
76507
76508         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
76509         IRIX if the installer said otherwise.
76510
76511 2000-04-05  Jim Meyering  <meyering@lucent.com>
76512
76513         Portability tweaks required for ultrix4.3.
76514         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
76515         (jm_CHECK_DECLS): Add getutent to the list of functions.
76516         (_jm_DECL_HEADERS): Add utmpx.h.
76517         From John David Anglin.
76518
76519         * m4/strftime.m4: Back out the 2000-04-02 change.
76520         Instead of that change, simply undefine putenv in the test program.
76521
76522 2000-04-05  Jim Meyering  <meyering@lucent.com>
76523
76524         Portability tweaks required for ultrix4.3.
76525         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
76526         getutent.
76527         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
76528         * lib/canon-host.c: Declare strdup.
76529         * lib/path-concat.c: Likewise.
76530         From John David Anglin.
76531
76532 2000-04-04  Jim Meyering  <meyering@lucent.com>
76533
76534         Be more DOS 8.3-friendly.
76535         * lib/ref-add.sin: Renamed from ref-add.sed.in.
76536         * lib/ref-del.sin: Renamed from ref-del.sed.in.
76537         * lib/Makefile.am: Reflect renaming.
76538         Reported by Eli Zaretskii.
76539
76540         Use a temporary file name that won't clash with `charset.alias'
76541         in the DOS 8.3 name space.
76542         * lib/Makefile.am (charset_tmp): Define.
76543         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
76544         (uninstall-local): Likewise.
76545         Reported by Eli Zaretskii.
76546
76547 2000-04-03  Jim Meyering  <meyering@lucent.com>
76548
76549         * m4/gettext.m4: Fix typo in comment.
76550
76551         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
76552         textutils/configure.in).  Suggestion from Paul Eggert.
76553         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
76554
76555 2000-04-02  Paul Eggert  <eggert@twinsun.com>
76556
76557         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
76558         variable in the shell rather than using putenv, which isn't
76559         portable.  This avoids the configure-time inter-test dependency
76560         on the potentially-renamed putenv function.
76561
76562 2000-03-30  Paul Eggert  <eggert@twinsun.com>
76563
76564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
76565         before checking struct stat.st_blksize, so that
76566         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
76567
76568 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76569
76570         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
76571         since strftime.c uses HAVE_STRFTIME to decide whether to use
76572         the underlying strftime.
76573
76574 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76575
76576         * lib/time/strftime.c (my_strftime): Make sure we call the system
76577         strftime, not ourselves, when invoking the underlying strftime.
76578
76579 2000-03-24  Jim Meyering  <meyering@lucent.com>
76580
76581         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
76582         (charset_alias): Define.
76583         (install-exec-local): Factor out common code.
76584         (uninstall-local): Split lines longer than 80.
76585         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
76586         (SUFFIXES): Define.
76587         (.sed.in.sed): New rule.  Don't redirect directly to $@.
76588         (CLEANFILES): Add ref-add.sed and ref-del.sed.
76589
76590 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
76591
76592         * lib/config.charset: Output a line containing "Packages using this
76593         file".
76594         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
76595         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
76596         ref-del.sed): New rules.
76597
76598 2000-03-17  Jim Meyering  <meyering@lucent.com>
76599
76600         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
76601         Otherwise, include <strings.h>
76602
76603 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
76604
76605         * lib/unicodeio.c (utf8_wctomb): New function.
76606         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
76607         format instead of in UCS-4 with platform dependent endianness.
76608
76609 2000-03-10  Jim Meyering  <meyering@lucent.com>
76610
76611         * m4/lib-check.m4: Look for getspnam in -lgen, too.
76612         From Marco Franzen.
76613
76614 2000-03-07  Paul Eggert  <eggert@twinsun.com>
76615
76616         * lib/savedir.c (savedir): Work even if directory size is
76617         negative; this can happen with some screwy NFS configurations.
76618
76619 2000-03-06  Jim Meyering  <meyering@lucent.com>
76620
76621         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
76622         if it's NULL (because we ran out of memory).  From Bruno Haible.
76623
76624 2000-03-05  Jim Meyering  <meyering@lucent.com>
76625
76626         * lib/localcharset.c ("path-concat.h"): Include.
76627         (get_charset_aliases): Use path_concat instead of ANSI string
76628         concatenation.
76629
76630         * lib/unicodeio.h (PARAMS): Define.
76631         Use it to guard prototype.
76632
76633 2000-03-04  Jim Meyering  <meyering@lucent.com>
76634
76635         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
76636         for lib/localcharset.c.
76637
76638 2000-03-04  Jim Meyering  <meyering@lucent.com>
76639
76640         * lib/Makefile.am (install-exec-local): Create $(libdir) before
76641         installing into it.
76642         (uninstall-local): Uncomment this rule so `make distcheck' works
76643         once again.
76644
76645         * lib/unicodeio.c (<errno.h>): Include it.
76646         (errno): Declare if not defined.
76647
76648         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
76649
76650         * lib/config.charset: New version, incorporating remarks from a linux
76651         i18n mailing list.  From Bruno Haible.
76652
76653 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
76654
76655         * m4/codeset.m4: New file.
76656         * m4/iconv.m4: New file.
76657         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
76658
76659 2000-03-03  Jim Meyering  <meyering@lucent.com>
76660
76661         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
76662
76663 2000-03-02  Jim Meyering  <meyering@lucent.com>
76664
76665         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
76666         the messages come out on separate lines.
76667
76668         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
76669         rather than jm_CHECK_DECLARATIONS.
76670         * m4/decl.m4: Remove now-unused file.
76671
76672         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
76673         geteuid.
76674
76675 2000-03-02  Jim Meyering  <meyering@lucent.com>
76676
76677         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
76678
76679 2000-03-01  Jim Meyering  <meyering@lucent.com>
76680
76681         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
76682         * lib/unicodeio.c: Likewise.
76683
76684 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
76685
76686         * lib/config.charset: New file.
76687         * lib/localcharset.c: New file.
76688         * lib/unicodeio.h, lib/unicodeio.c: New files.
76689         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
76690         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
76691         (noinst_HEADERS): Add unicodeio.h.
76692         (all-local, install-exec-local, charset.alias): New targets.
76693
76694 2000-02-28  Paul Eggert  <eggert@twinsun.com>
76695
76696         * lib/quotearg.c (ALERT_CHAR): New macro.
76697         (quotearg_buffer_restyled): Use it.
76698
76699 2000-02-27  Jim Meyering  <meyering@lucent.com>
76700
76701         * m4/check-decl.m4: Add getenv to the list.
76702
76703 2000-02-27  Jim Meyering  <meyering@lucent.com>
76704
76705         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
76706         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
76707
76708         * lib/backupfile.c: Guard inclusion of stdlib.h with
76709         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
76710         Declare malloc if needed.
76711
76712         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
76713         `#ifndef HAVE_DECL..'
76714         now that autoconf always defines the HAVE_DECL_ symbols.
76715         * lib/human.c: Likewise.
76716         * lib/same.c: Likewise.
76717         * lib/strtoumax.c: Likewise.
76718
76719         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
76720         declaration check was not run.
76721         * lib/hash.c: Likewise.
76722         * lib/human.c: Likewise.
76723         * lib/same.c: Likewise.
76724         * lib/strtoumax.c: Likewise.
76725
76726         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
76727         `.', then first look up the entire `.'-containing string as a login
76728         name.
76729
76730 2000-02-23  Jim Meyering  <meyering@lucent.com>
76731
76732         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
76733         in place of my hack.
76734
76735 2000-02-18  Paul Eggert  <eggert@twinsun.com>
76736
76737         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
76738         (textint): New typedef.
76739         (parser_control): Member year changed from int to textint.
76740         All uses changed.
76741         (YYSTYPE): Removed; replaced by %union with int and textint members.
76742         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
76743         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
76744         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
76745         (tSNUMBER, tUNUMBER): Now of type <textintval>.
76746         (date, number, to_year): Use width of number in digits, not its value,
76747         to determine whether it's a 2-digit year, or a 2-digit time.
76748         (yylex): Store number of digits of numeric tokens.
76749         Reported by John Kendall.
76750
76751         (parser_control): Changed from struct parser_control to typedef (for
76752         consistency).  All uses changed.
76753
76754         (tID): Removed; not used.
76755         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
76756
76757 2000-02-14  Paul Eggert  <eggert@twinsun.com>
76758
76759         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
76760         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
76761
76762 2000-02-12  Jim Meyering  <meyering@lucent.com>
76763
76764         * lib/userspec.c (ISDIGIT): Define it.
76765         (isdigit): Remove definition.
76766         (is_number): Use ISDIGIT, not isdigit.
76767         <libintl.h>: Include.
76768         (_ and N_): Define.
76769         (parse_user_spec): Mark translatable strings.
76770
76771 2000-02-10  Jim Meyering  <meyering@lucent.com>
76772
76773         With these changes, nanosleep.[ch] are finally enough like the other
76774         lib/* replacement files to compile on a few more losing systems.
76775
76776         * lib/nanosleep.h: Don't include config.h.
76777         Remove prototype from declaration of nanosleep.
76778         (PARAMS): Remove now-unneeded definition.
76779         * lib/nanosleep.c: #undef nanosleep.
76780         (rpl_nanosleep): Rename from nanosleep.
76781
76782 2000-02-10  Jim Meyering  <meyering@lucent.com>
76783
76784         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
76785         gnu_nanosleep to rpl_nanosleep.
76786
76787 2000-02-09  Jim Meyering  <meyering@lucent.com>
76788
76789         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
76790         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
76791
76792 2000-02-08  Akim Demaille  <akim@epita.fr>
76793
76794         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
76795         `[' and `]' and remove uses of `changequote'.
76796         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
76797         (AC_SYS_LARGEFILE): Likewise.
76798         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
76799         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
76800         of changequote.
76801         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
76802         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
76803         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
76804         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
76805
76806 2000-02-05  Jim Meyering  <meyering@lucent.com>
76807
76808         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
76809         Remove explicit use of AC_HEADER_TIME.  It is required by
76810         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
76811         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
76812         in autoconf whereby the expansion of the latter ended up preceding
76813         the expansion of its prerequisite, AC_HEADER_TIME.
76814         Reported by Volker Borchert.
76815
76816 2000-02-03  Jim Meyering  <meyering@lucent.com>
76817
76818         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
76819
76820 2000-02-03  Jim Meyering  <meyering@lucent.com>
76821
76822         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
76823         rather than with `#if HAVE_UTMPNAME'.
76824
76825 2000-02-02  Jim Meyering  <meyering@lucent.com>
76826
76827         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
76828         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
76829         Reported by Eli Zaretskii.
76830
76831 2000-02-01  Jim Meyering  <meyering@lucent.com>
76832
76833         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
76834
76835 2000-01-31  Jim Meyering  <meyering@lucent.com>
76836
76837         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
76838         functions.  Add the time.h and sys/time.h headers along with the
76839         AC_REQUIRE'ment of AC_HEADER_TIME.
76840
76841 2000-01-31  Jim Meyering  <meyering@lucent.com>
76842
76843         * lib/nanosleep.h (nanosleep): Guard declaration with
76844         `#if ! HAVE_DECL_NANOSLEEP'.
76845         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
76846         the declaration in that vendor's sys/timers.h.
76847         Reported by Christian Krackowizer.
76848
76849         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
76850         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
76851         (ISPRINT): Likewise.
76852         Reported by Tom Tromey.
76853
76854 2000-01-30  Jim Meyering  <meyering@lucent.com>
76855
76856         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
76857
76858         * m4/prereq.m4 (utmp_includes): Define.
76859         Check for ut_user and ut_name members in both struct utmpx
76860         and struct utmp.
76861
76862 2000-01-30  Jim Meyering  <meyering@lucent.com>
76863
76864         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
76865         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
76866         header files where only utmpx.ut_user is declared.
76867
76868         * lib/readutmp.h (UT_USER): Define.
76869
76870 2000-01-29  Jim Meyering  <meyering@lucent.com>
76871
76872         * m4/lib-check.m4: New file containing library-related checks from
76873         fileutils and sh-utils (textutils had none).
76874
76875 2000-01-28  Jim Meyering  <meyering@lucent.com>
76876
76877         * m4/perl.m4: Change format of warning message to look more like that
76878         from the missing script.  Suggestion from François Pinard.
76879
76880 2000-01-25  Jim Meyering  <meyering@lucent.com>
76881
76882         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
76883         well as time.h in the compile check.
76884         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
76885         Fix typo in cross-compiling case: s/yes/no/.
76886
76887 2000-01-23  Jim Meyering  <meyering@lucent.com>
76888
76889         * m4/jm-macros.m4: Move df-related tests here from
76890         fileutils/configure.in
76891
76892         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
76893         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
76894
76895         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
76896         s/space/ac_fsusage_space/.
76897         (jm_FILE_SYSTEM_USAGE): Take two parameters.
76898
76899         * m4/ftruncate.m4: New file (derived from part of
76900         fileutils/configure.in).
76901         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
76902         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
76903
76904         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
76905         AC_SUBST these here, rather than just in sh-util/configure.in, so
76906         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
76907         all the same.
76908         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
76909         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
76910         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
76911         (AC_SUBST(POW_LIBM)): Likewise.
76912         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
76913
76914 2000-01-23  Jim Meyering  <meyering@lucent.com>
76915
76916         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
76917         obstack.c.
76918
76919 2000-01-22  Jim Meyering  <meyering@lucent.com>
76920
76921         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
76922
76923         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
76924
76925         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
76926         configure.in
76927         (AC_CHECK_HEADERS): Likewise for sh-utils.
76928         (AC_CHECK_HEADERS): Likewise for textutils.
76929         Merge the three lists of headers.
76930
76931         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
76932         from fileutils' configure.in.
76933
76934         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
76935         code. Moved tests into their own function (_jm_DECL_HEADERS) in
76936         check-decl.m4.
76937
76938         * m4/check-decl.m4: Use #if rather than #ifdef.
76939         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
76940         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
76941         (_jm_DECL_HEADERS): Define new function.
76942         (jm_CHECK_DECLARATIONS): Require it.
76943
76944 2000-01-22  Jim Meyering  <meyering@lucent.com>
76945
76946         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
76947         [! HAVE_DECL_STRTOULL]: Declare strtoull.
76948         Required for some AIX systems.  Reported by Christian Krackowizer.
76949         [TESTING] (main): New function.
76950
76951         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
76952         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
76953         letters.
76954
76955         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
76956         iswprint.
76957
76958         * lib/strverscmp.c (ISDIGIT): Define.
76959         (strverscmp): Use ISDIGIT, not isdigit.
76960
76961 2000-01-19  Jim Meyering  <meyering@lucent.com>
76962
76963         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
76964         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
76965         defines `struct timespec' in <sys/time.h>
76966
76967         * m4/c-bs-a.m4: Remove uses of changequote altogether.
76968         Thanks to Akim for explaining.
76969
76970 2000-01-17  Paul Eggert  <eggert@twinsun.com>
76971
76972         * lib/nanosleep.c (nanosleep):
76973         Don't use SA_INTERRUPT to decide whether to call sigaction, as
76974         POSIX.1 doesn't require SA_INTERRUPT and some systems
76975         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
76976         it's been part of POSIX.1 since day 1 (in 1988).
76977
76978 2000-01-17  Jim Meyering  <meyering@lucent.com>
76979
76980         * lib/interlock: Remove unused file.  Reported by François Pinard.
76981
76982 2000-01-16  Paul Eggert  <eggert@twinsun.com>
76983
76984         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
76985         alert, backslash, formfeed, and vertical tab unnecessarily in
76986         shell quoting style.
76987
76988 2000-01-16  Jim Meyering  <meyering@lucent.com>
76989
76990         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
76991         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
76992         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
76993         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
76994
76995 2000-01-16  Jim Meyering  <meyering@lucent.com>
76996
76997         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
76998         because the latter didn't work.
76999
77000 2000-01-15  Jim Meyering  <meyering@lucent.com>
77001
77002         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
77003         (AC_REPLACE_FUNCS): Add memcpy and memset.
77004         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
77005         Add strpbrk.
77006         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
77007
77008 2000-01-12  Jim Meyering  <meyering@lucent.com>
77009
77010         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
77011         (jm_PREREQ): Use it.
77012         (jm_PREREQ_READUTMP): New macro.
77013         (jm_PREREQ): Use it.
77014
77015 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77016
77017         Quote multibyte characters correctly.
77018         * m4/c-bs-a.m4: New file.
77019         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
77020         (jm_PREREQ): Use it.
77021
77022 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77023
77024         * m4/uintmax_t.m4: Port to autoconf 2.13.
77025
77026 2000-01-08  Jim Meyering  <meyering@ascend.com>
77027
77028         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
77029         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
77030
77031 2000-01-04  Jim Meyering  <meyering@ascend.com>
77032
77033         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
77034         jm_STRUCT_DIRENT_D_TYPE.
77035         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
77036         jm_STRUCT_DIRENT_D_INO.
77037         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
77038         jm_STRUCT_UTIMBUF.
77039         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
77040         renamings.
77041         * m4/utime.m4: Likewise.
77042
77043         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
77044         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
77045
77046 2000-01-03  Paul Eggert  <eggert@twinsun.com>
77047
77048         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
77049         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
77050
77051 2000-01-02  Jim Meyering  <meyering@ascend.com>
77052
77053         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
77054         remember if this is necessary.
77055
77056 1999-12-26  Jim Meyering  <meyering@ascend.com>
77057
77058         * m4/jm-macros.m4: Use it here.
77059         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
77060
77061 1999-12-23  Jim Meyering  <meyering@ascend.com>
77062
77063         * m4/jm-macros.m4: Check for clock_gettime (moved from
77064         fileutils/configure.in)
77065         Check for gettimeofday.
77066
77067 1999-12-20  Jim Meyering  <meyering@ascend.com>
77068
77069         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
77070         autoconf-2.14a-1999-12-20.
77071
77072 1999-12-19  Jim Meyering  <meyering@ascend.com>
77073
77074         * m4/lstat-slash.m4: New file.
77075         * m4/jm-macros.m4: Use the new macro:
77076         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77077
77078 1999-12-07  Jim Meyering  <meyering@ascend.com>
77079
77080         * m4/perl.m4: Require that File::Compare be available, too.
77081         Too many systems seem to lack it.
77082
77083         * m4/strftime.m4: Add checks for most of the cpp macros tested in
77084         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
77085
77086 1999-11-18  Paul Eggert  <eggert@twinsun.com>
77087
77088         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
77089         problem with the QNX 4.25 shell, which doesn't propagate exit
77090         status of failed commands inside shell assignments.
77091
77092 1999-11-17  Jim Meyering  <meyering@ascend.com>
77093
77094         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
77095
77096 1999-11-07  Jim Meyering  <meyering@ascend.com>
77097
77098         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
77099
77100 1999-11-06  Jim Meyering  <meyering@ascend.com>
77101
77102         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
77103         * m4/jm-macros.m4 (jm_MACROS): Use it here.
77104
77105 1999-11-05  Jim Meyering  <meyering@ascend.com>
77106
77107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
77108         configure.in of textutils, fileutils, and sh-utils into this one
77109         (shared between those packages) file.
77110         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
77111         AC_STRUCT_ST_BLKSIZE.
77112
77113 1999-11-03  Jim Meyering  <meyering@ascend.com>
77114
77115         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
77116         of AC_CHECK_TYPE checks includes unistd.h.
77117         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
77118         Suggestion from Akim Demaille.
77119
77120 1999-10-30  Jim Meyering  <meyering@ascend.com>
77121
77122         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
77123         m4-quoted string.
77124         * m4/ls-mntd-fs.m4: Likewise.
77125         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
77126         * m4/jm-winsz1.m4: Likewise.
77127
77128         * m4/const.m4: Remove file, since the fix made it into the experimental
77129         version of autoconf.
77130         * m4/mktime.m4: Likewise.
77131
77132         * m4/check-type.m4: Remove file, now that the latest version of
77133         AC_CHECK_TYPE takes a third arg to specify additional #includes.
77134
77135         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
77136         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
77137         AC_CHECK_TYPE.
77138
77139 1999-10-04  Jim Meyering  <meyering@ascend.com>
77140
77141         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
77142
77143 1999-09-22  Paul Eggert  <eggert@twinsun.com>
77144
77145         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
77146         2.95.1 bug with HP-UX 10.20.
77147
77148 1999-09-17  Jim Meyering  <meyering@ascend.com>
77149
77150         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
77151         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
77152         due to missing strdup (against sh-utils-2.0).
77153
77154 1999-08-29  Jim Meyering  <meyering@ascend.com>
77155
77156         * m4/jm-macros.m4: Require jm_BISON.
77157         * m4/bison.m4: New file.
77158
77159 1999-08-17  Paul Eggert  <eggert@twinsun.com>
77160
77161         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
77162         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
77163
77164 1999-08-05  Jim Meyering  <meyering@ascend.com>
77165
77166         * m4/getline.m4: Rename test file from conftestdata to conftest.data
77167         to avoid conflicts with `conftest' on 8+3 filesystems.
77168         Suggestion from Eli Zaretskii.
77169
77170 1999-08-04  Jim Meyering  <meyering@ascend.com>
77171
77172         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
77173         fileutils and sh-utils (textutils's getline test was inadequate).
77174         (AM_FUNC_GETLINE): Run this test.
77175         (AC_CHECK_FUNCS): Check for getdelim.
77176         Reported by Bob Proulx.
77177
77178 1999-08-02  Jim Meyering  <meyering@ascend.com>
77179
77180         * m4/jm-macros.m4: Add a comment.
77181
77182 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77183
77184         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
77185         <inttypes.h> defines strtoumax as a macro (and not as a
77186         function).
77187
77188 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77189
77190         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
77191         that we can shift, multiply and divide unsigned long long
77192         values; Ultrix cc can't do it.
77193
77194 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77195
77196         * m4/mktime.m4: New file, which is a preview of what should appear
77197         in the next public autoconf release.
77198
77199 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77200
77201         * m4/lfs.m4: Remove this file.
77202         * m4/largefile.m4: New file.  It contains the old contents of
77203         lfs.m4, except that all names with prefix AC_LFS have been
77204         changed to use the prefix AC_SYS_LARGEFILE instead, to be
77205         compatible with future autoconf versions.  Also, some minor m4
77206         quoting problems have been fixed.
77207
77208 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77209
77210         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
77211         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
77212         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
77213         and simplify the shell code.
77214
77215 1999-08-01  Jim Meyering  <meyering@ascend.com>
77216
77217         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
77218         m4.
77219
77220 1999-07-20  Jim Meyering  <meyering@ascend.com>
77221
77222         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
77223
77224 1999-07-15  Jim Meyering  <meyering@ascend.com>
77225
77226         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
77227
77228 1999-05-22  Jim Meyering  <meyering@ascend.com>
77229
77230         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
77231
77232 1999-05-20  Jim Meyering  <meyering@ascend.com>
77233
77234         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
77235         Add a colon after each `then' in case $4 is empty.
77236
77237 1999-05-16  Jim Meyering  <meyering@ascend.com>
77238
77239         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
77240
77241 1999-05-10  Jim Meyering  <meyering@ascend.com>
77242
77243         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
77244
77245         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
77246         AC_FUNC_MKTIME.
77247
77248 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
77249
77250         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
77251
77252 1999-05-04  Paul Eggert  <eggert@twinsun.com>
77253
77254         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
77255         not CPPFLAGS, so that linking works correctly in IRIX.
77256
77257 1999-04-30  Paul Eggert  <eggert@twinsun.com>
77258
77259         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
77260
77261 1999-04-20  Paul Eggert  <eggert@twinsun.com>
77262
77263         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
77264         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
77265         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
77266         jm_AC_TYPE_UNSIGNED_LONG_LONG.
77267         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
77268
77269         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
77270
77271 1999-04-20  Jim Meyering  <meyering@ascend.com>
77272
77273         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
77274         AC_REPLACE xstroull if necessary.  From Paul Eggert.
77275         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
77276
77277 1999-04-18  Jim Meyering  <meyering@ascend.com>
77278
77279         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
77280         * m4/jm-macros.m4: Use it.
77281
77282 1999-04-06  Jim Meyering  <meyering@ascend.com>
77283
77284         * m4/strftime.m4: Remove test for %f.
77285
77286 1999-03-29  Jim Meyering  <meyering@ascend.com>
77287
77288         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
77289         superset of the AC_TYPE_* checks in the textutils, fileutils,
77290         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
77291         AC_TYPE_PID_T.
77292
77293 1999-03-28  Jim Meyering  <meyering@ascend.com>
77294
77295         * m4/jm-macros.m4: Define GNU_PACKAGE here.
77296         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
77297         replaced e.g., in the *.sh files of the sh-utils.
77298
77299 1999-03-20  Jim Meyering  <meyering@ascend.com>
77300
77301         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
77302         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
77303         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
77304
77305 1999-03-19  Jim Meyering  <meyering@ascend.com>
77306
77307         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
77308
77309 1999-03-12  Jim Meyering  <meyering@ascend.com>
77310
77311         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
77312
77313 1999-03-07  Jim Meyering  <meyering@ascend.com>
77314
77315         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
77316         declared.
77317
77318 1999-02-17  Jim Meyering  <meyering@ascend.com>
77319
77320         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
77321         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
77322
77323 1999-02-07  Jim Meyering  <meyering@ascend.com>
77324
77325         * m4/group-member.m4: New file -- extracted from sh-utils'
77326         configure.in.
77327
77328         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
77329         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
77330
77331 1999-02-06  Jim Meyering  <meyering@ascend.com>
77332
77333         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
77334         * m4/fnmatch.m4: Likewise.
77335         * m4/getgroups.m4: Likewise.
77336         * m4/lstat.m4: Likewise.
77337         * m4/malloc.m4: Likewise.
77338         * m4/putenv.m4: Likewise.
77339         * m4/realloc.m4: Likewise.
77340         * m4/regex.m4: Likewise.
77341         * m4/stat.m4: Likewise.
77342         * m4/strftime.m4: Likewise.
77343         Suggestion from Alain Magloire.
77344
77345         * m4/chown.m4: Use `.$ac_objext', not `.o'.
77346         * m4/fnmatch.m4: Likewise.
77347         * m4/getgroups.m4: Likewise.
77348         * m4/getline.m4: Likewise.
77349         * m4/lstat.m4: Likewise.
77350         * m4/malloc.m4: Likewise.
77351         * m4/memcmp.m4: Likewise.
77352         * m4/putenv.m4: Likewise.
77353         * m4/realloc.m4: Likewise.
77354         * m4/regex.m4: Likewise.
77355         * m4/stat.m4: Likewise.
77356         * m4/strftime.m4: Likewise.
77357         Suggestion from Alain Magloire.
77358
77359         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
77360         an argument.
77361
77362         * m4/regex.m4: Add a run-time Test for proper operation of
77363         re_compile_pattern.
77364
77365 1999-01-31  Jim Meyering  <meyering@ascend.com>
77366
77367         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
77368
77369 1999-01-30  Jim Meyering  <meyering@ascend.com>
77370
77371         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
77372
77373         * m4/jm-mktime.m4: Make this a wrapper around the official
77374         AM_FUNC_MKTIME rather than my private copy, now that the official one
77375         is up to date.
77376         * m4/mktime.m4: Remove file.
77377
77378         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
77379         * m4/uptime.m4: Likewise.
77380         * m4/uintmax_t.m4: Likewise.
77381
77382 1999-01-28  Jim Meyering  <meyering@ascend.com>
77383
77384         * m4/jm-macros.m4: Use jm_AFS.
77385         * m4/afs.m4: New file (from fileutils' configure.in).
77386
77387         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
77388         * m4/chown.m4: Likewise.
77389         * m4/d-ino.m4: Likewise.
77390         * m4/d-type.m4: Likewise.
77391         * m4/fnmatch.m4: Likewise.
77392         * m4/getgroups.m4: Likewise.
77393         * m4/gettext.m4: Likewise.
77394         * m4/jm-mktime.m4: Likewise.
77395         * m4/jm-winsz2.m4: Likewise.
77396         * m4/lcmessage.m4: Likewise.
77397         * m4/ls-mntd-fs.m4: Likewise.
77398         * m4/malloc.m4: Likewise.
77399         * m4/memcmp.m4: Likewise.
77400         * m4/putenv.m4: Likewise.
77401         * m4/realloc.m4: Likewise.
77402         * m4/st_mtim.m4: Likewise.
77403         * m4/strftime.m4: Likewise.
77404
77405 1999-01-16  Jim Meyering  <meyering@ascend.com>
77406
77407         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
77408         (ARGMATCH_DIE_DECL): Define.
77409
77410 1999-01-12  Jim Meyering  <meyering@ascend.com>
77411
77412         * m4/Makefile.am.in: Rewrite to avoid using fmt.
77413         Reported by Lars Hecking.
77414
77415 1999-01-10  Jim Meyering  <meyering@ascend.com>
77416
77417         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
77418         gross kludge.
77419         * m4/inttypes_h.m4: Likewise.
77420         * m4/lstat.m4: Likewise.
77421         * m4/malloc.m4: Likewise.
77422         * m4/readdir.m4: Likewise.
77423         * m4/realloc.m4: Likewise.
77424         * m4/st_dm_mode.m4: Likewise.
77425         * m4/stat.m4: Likewise.
77426         * m4/utimbuf.m4: Likewise.
77427         * m4/utimes.m4: Likewise.
77428
77429         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
77430         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
77431         comments in config.h.in are meaningful.
77432
77433         * m4/jm-macros.m4: Require autoconf-2.13 here.
77434
77435         * m4/regex.m4: By default, don't use the included regex.c on systems
77436         with glibc 2.  Suggestion from Uli Drepper.
77437
77438 1999-01-02  Jim Meyering  <meyering@ascend.com>
77439
77440         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
77441
77442 1998-12-18  Jim Meyering  <meyering@ascend.com>
77443
77444         * m4/Makefile.am.in (Makefile.am): Simplify rule.
77445         Based on a suggestion from Lars Hecking.
77446
77447 1998-11-16  Paul Eggert  <eggert@twinsun.com>
77448
77449         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
77450
77451 1998-11-16  Jim Meyering  <meyering@ascend.com>
77452
77453         * m4/lfs.m4: Double-quote the `uname...` expression.
77454
77455 1998-11-14  Jim Meyering  <meyering@ascend.com>
77456
77457         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
77458         * m4/stat.m4: Likewise.
77459
77460 1998-11-03  Jim Meyering  <meyering@ascend.com>
77461
77462         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
77463         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
77464
77465 1998-10-18  Jim Meyering  <meyering@ascend.com>
77466
77467         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
77468
77469 1998-10-17  Jim Meyering  <meyering@ascend.com>
77470
77471         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
77472         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
77473         calls for those previously hard-coded headers.  Instead, take a new
77474         parameter.
77475         (jm_CHECK_DECLARATIONS): Reflect interface change.
77476         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
77477         (jm_CHECK_DECL_LOCALTIME_R): New macro.
77478
77479         * m4/mktime.m4: Test for spring-forward gap before long-running test.
77480
77481 1998-10-14  Jim Meyering  <meyering@ascend.com>
77482
77483         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
77484         instead of "TZ=America/Vancouver".  From Paul Eggert.
77485
77486 1998-10-11  Jim Meyering  <meyering@ascend.com>
77487
77488         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
77489         This adds a test for a recently added compatibility fix for mktime.c.
77490         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
77491
77492 1998-09-27  Jim Meyering  <meyering@ascend.com>
77493
77494         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
77495
77496         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
77497         ../configure.in, including a change from Gordon Matzigkeit to allow
77498         cross-compiling for the Hurd.
77499
77500         * m4/glibc.m4: New file/macro to test for the GNU C Library
77501         versions 1 and 2.  From Gordon Matzigkeit.
77502         Indent.
77503
77504 1998-09-21  Jim Meyering  <meyering@ascend.com>
77505
77506         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
77507
77508 1998-08-18  Paul Eggert  <eggert@twinsun.com>
77509
77510         Port nanosecond-resolution times to UnixWare 2.1.2 and
77511         pedantic Solaris 2.6.
77512
77513         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
77514         AC_STRUCT_ST_MTIM.
77515         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
77516         Generate name of ns member, instead of just 1 or undef.
77517         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
77518
77519 1998-08-15  Jim Meyering  <meyering@ascend.com>
77520
77521         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
77522         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
77523         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
77524         instead of jm_TYPE_SSIZE_T.
77525
77526 1998-08-12  Jim Meyering  <meyering@ascend.com>
77527
77528         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
77529
77530 1998-08-02  Jim Meyering  <meyering@ascend.com>
77531
77532         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
77533         in acconfig.h manually.
77534
77535 1998-07-31  Paul Eggert  <eggert@twinsun.com>
77536
77537         * m4/st_mtim.m4: New file.
77538
77539 1998-07-28  Jim Meyering  <meyering@ascend.com>
77540
77541         * m4/utimes.m4: Undef stat.
77542
77543 1998-07-25  Jim Meyering  <meyering@ascend.com>
77544
77545         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
77546         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
77547
77548 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
77549
77550         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
77551         uid and gid actually remain unchanged.
77552
77553 1998-07-07  Jim Meyering  <meyering@ascend.com>
77554
77555         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
77556
77557 1998-07-04  Jim Meyering  <meyering@ascend.com>
77558
77559         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
77560         to prove that this macro can be used in packages without regex.c.
77561
77562 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
77563
77564         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
77565         is to be used.
77566
77567 1998-07-03  Jim Meyering  <meyering@ascend.com>
77568
77569         * m4/gettext.m4: Add -lintl if it's found to be necessary.
77570
77571         * m4/gettext.m4: New file -- from gettext-0.10.35.
77572         * m4/lcmessage.m4: Likewise.
77573         * m4/progtest.m4: Likewise.
77574
77575         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
77576         * m4/jm-macros.m4: Require the new macro.
77577
77578 1998-06-29  Jim Meyering  <meyering@ascend.com>
77579
77580         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
77581         for the definition of NGROUPS (used in a system header included
77582         by sys/mount.h).
77583
77584 1998-06-28  Jim Meyering  <meyering@ascend.com>
77585
77586         * m4/ls-mntd-fs.m4: New file.
77587         * m4/fstypename.m4: New file.
77588
77589         * m4/jm-macros.m4: Require the new macro.
77590         * m4/jm-glibc-io.m4: New file.
77591
77592 1998-05-19  Jim Meyering  <meyering@ascend.com>
77593
77594         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
77595         * m4/lchown.m4: New file.
77596
77597         * m4/Makefile.am.in: New file.
77598         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
77599
77600 1998-05-14  Jim Meyering  <meyering@ascend.com>
77601
77602         * m4/Makefile.am (EXTRA_DIST): Add them.
77603         * m4/jm-macros.m4: New file.
77604         * m4/utimbuf.m4: New file.
77605
77606 1998-05-12  Jim Meyering  <meyering@ascend.com>
77607
77608         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
77609
77610 1998-05-11  Jim Meyering  <meyering@ascend.com>
77611
77612         * m4/isc-posix.m4: New file.
77613
77614 1998-05-10  Jim Meyering  <meyering@ascend.com>
77615
77616         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
77617
77618 1998-05-09  Jim Meyering  <meyering@ascend.com>
77619
77620         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
77621         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
77622         with automake.
77623
77624         * m4/ssize_t.m4: New file.
77625         * m4/mktime.m4: Remove file -- the new automake has this now.
77626
77627 1998-04-26  Jim Meyering  <meyering@ascend.com>
77628
77629         * m4/assert.m4: New file.
77630         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
77631
77632 1998-04-05  Jim Meyering  <meyering@ascend.com>
77633
77634         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
77635         (jm_PREREQ): Use it here.
77636
77637 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
77638
77639         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
77640         in acconfig.h.
77641
77642 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
77643
77644         * m4/prereq.m4: New file.
77645         * m4/error.m4: New file.
77646         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
77647
77648 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
77649
77650         * m4/getline.m4: Don't set am_cv_func_working_getline before the
77651         cache-check for the same variable -- that defeated the purpose of
77652         the test; the test program was never run.  This was a problem only
77653         on systems with losing getline functions -- HP-UX 10.20 is one.
77654         Reported by Bjorn Helgaas.
77655
77656 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
77657
77658         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
77659
77660 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
77661
77662         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
77663
77664         * m4/const.m4: New file.  Use an initializer in this declaration
77665         typedef int charset[2]; const charset x;
77666         Reported by Bob Glickstein.
77667
77668 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
77669
77670         * m4/chown.m4: Fix reversed types on -1 args to chown.
77671         From Kaveh Ghazi.
77672
77673 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
77674
77675         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
77676         Add lseek and memchr.
77677
77678         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
77679         T.E.Dickey <dickey@clark.net> said that some older preprocessors
77680         have a 20-character limit on names.
77681
77682 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
77683
77684         * m4/inttypes_h.m4: New file.
77685         * m4/uintmax_t.m4: New file.
77686         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
77687
77688
77689         -----
77690
77691         Local Variables:
77692         coding: utf-8
77693         End:
77694
77695         Copyright (C) 1997-2011 Free Software Foundation, Inc.
77696
77697         Copying and distribution of this file, with or without
77698         modification, are permitted provided the copyright notice
77699         and this notice are preserved.