18a0984c2fa41d582d241fafcd6310a1103dd7e4
[gnulib.git] / ChangeLog
1 2008-10-19  Bruno Haible  <bruno@clisp.org>
2
3         New module 'sys_wait'.
4         * modules/sys_wait: New file.
5         * lib/sys_wait.in.h: New file, partially copied from
6         lib/wait-process.c.
7         * m4/sys_wait_h.m4: New file.
8         * doc/posix-headers/sys_wait.texi: Mention the new module.
9
10 2008-10-19  Bruno Haible  <bruno@clisp.org>
11
12         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
13
14 2008-10-19  Bruno Haible  <bruno@clisp.org>
15
16         Assume that waitpid() fills an 'int' status, not a 'union wait'.
17         * lib/wait-process.c (WAIT_T): Remove type.
18         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19         (wait_subprocess): Update.
20
21 2008-10-19  Bruno Haible  <bruno@clisp.org>
22
23         New module 'atoll'.
24         * modules/atoll: New file.
25         * lib/stdlib.in.h (atoll): New declaration.
26         * lib/atoll.c: New file, from glibc with modifications.
27         * m4/atoll.m4: New file.
28         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
29         HAVE_ATOLL.
30         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
31         * doc/posix-functions/atoll.texi: Mention the new module.
32
33 2008-10-19  Bruno Haible  <bruno@clisp.org>
34
35         Add strtoull() declaration to <stdlib.h>.
36         * lib/stdlib.in.h (strtoull): New declaration.
37         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38         Set HAVE_STRTOULL.
39         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
40         HAVE_STRTOULL.
41         * modules/strtoull (Depends-on): Add stdlib.
42         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44         HAVE_STRTOULL.
45
46 2008-10-19  Bruno Haible  <bruno@clisp.org>
47
48         Add strtoll() declaration to <stdlib.h>.
49         * lib/stdlib.in.h (strtoll): New declaration.
50         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51         Set HAVE_STRTOLL.
52         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53         HAVE_STRTOLL.
54         * modules/strtoll (Depends-on): Add stdlib.
55         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
57
58 2008-10-19  Bruno Haible  <bruno@clisp.org>
59
60         * modules/bcopy (Depends-on): Add strings.
61         (Include): Specify <strings.h>.
62
63 2008-10-19  Bruno Haible  <bruno@clisp.org>
64
65         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
66
67 2008-10-19  Bruno Haible  <bruno@clisp.org>
68
69         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
70         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
71         mingw.
72
73 2008-10-19  Bruno Haible  <bruno@clisp.org>
74
75         * lib/atanl.c: Don't include isnanl.h.
76         * lib/cosl.c: Likewise.
77         * lib/ldexpl.c: Likewise.
78         * lib/logl.c: Likewise.
79         * lib/sinl.c: Likewise.
80         * lib/sqrtl.c: Likewise.
81         * lib/tanl.c: Likewise.
82
83         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
84         * lib/isnanf.h: Remove file.
85         * lib/isnand.h: Remove file.
86         * lib/isnanl.h: Remove file.
87         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
88         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
89         macros.
90         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
91         HAVE_ISNANF, don't define it as a C macro.
92         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
93         HAVE_ISNAND, don't define it as a C macro.
94         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
95         HAVE_ISNANL, don't define it as a C macro.
96         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
97         HAVE_ISNAN[FDL].
98         * modules/isnanf (Files): Remove lib/isnanf.h.
99         (Depends-on): Add math.
100         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
101         (Include): Specify <math.h> instead of isnanf.h.
102         * modules/isnand (Files): Remove lib/isnand.h.
103         (Depends-on): Add math.
104         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
105         (Include): Specify <math.h> instead of isnand.h.
106         * modules/isnanl (Files): Remove lib/isnanl.h.
107         (Depends-on): Add math.
108         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
109         (Include): Specify <math.h> instead of isnanl.h.
110         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
111         HAVE_ISNAN[FDL].
112         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
113         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
114         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
115         * NEWS: Mention the change.
116
117 2008-10-18  Bruno Haible  <bruno@clisp.org>
118
119         Add getusershell(), setusershell(), endusershell() declarations to
120         <unistd.h>.
121         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
122         declarations.
123         * lib/getusershell.c: Include unistd.h.
124         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
125         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
126         HAVE_GETUSERSHELL.
127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
128         and HAVE_GETUSERSHELL.
129         * modules/getusershell (Depends-on): Add unistd, extensions.
130         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
131         (Include): Specify <unistd.h>.
132         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
133         HAVE_GETUSERSHELL.
134
135 2008-10-18  Bruno Haible  <bruno@clisp.org>
136
137         Add a getloadavg() declaration to <stdlib.h>.
138         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
139         getloadavg declaration.
140         (getloadavg): New declaration.
141         * lib/getloadavg.c: Include <stdlib.h> first.
142         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
143         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
144         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
146         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
147         * modules/getloadavg (Depends-on): Add stdlib, extensions.
148         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
149         (Include): Specify <stdlib.h>.
150         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
151         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
152
153 2008-10-18  Bruno Haible  <bruno@clisp.org>
154
155         * lib/dirchownmod.c: Don't include lchmod.h.
156
157         Move the lchmod() declaration to <sys/stat.h>.
158         * lib/lchmod.h: Remove file.
159         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
160         (lchmod): New declaration, moved here from lib/lchown.h.
161         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
162         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
163         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
164         and HAVE_LCHMOD.
165         * modules/lchmod (Files): Remove lib/lchmod.h.
166         (Depends-on): Add sys_stat, extensions.
167         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
168         (Include): Specify <sys/stat.h> instead of lchmod.h.
169         * modules/sys_stat (Depends-on): Add link-warning.
170         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
171         definition of GL_LINK_WARNING.
172         * NEWS: Mention the change.
173
174 2008-10-18  Bruno Haible  <bruno@clisp.org>
175
176         * lib/fchdir.c: Don't include dirfd.h.
177         * lib/fts.c: Likewise.
178         * lib/getcwd.c: Likewise.
179         * lib/glob.c: Likewise.
180
181         Move the dirfd() declaration to <dirent.h>.
182         * lib/dirfd.h: Remove file.
183         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
184         (dirfd): New declaration.
185         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
186         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
187         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
188         HAVE_DECL_DIRFD.
189         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
190         HAVE_DECL_DIRFD.
191         * modules/dirfd (Files): Remove lib/dirfd.h.
192         (Depends-on): Add dirent, extensions.
193         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
194         (Include): Specify <dirent.h> instead of dirfd.h.
195         * modules/dirent (Depends-on): Add link-warning.
196         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
197         definition of GL_LINK_WARNING.
198         * NEWS: Mention the change.
199
200 2008-10-18  Bruno Haible  <bruno@clisp.org>
201
202         Move the euidaccess() declaration to <unistd.h>.
203         * lib/euidaccess.h: Remove file.
204         * lib/unistd.in.h (euidaccess): New declaration.
205         * lib/euidaccess.c: Don't include euidaccess.h.
206         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
207         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
209         and HAVE_EUIDACCESS.
210         * modules/euidaccess (Files): Remove lib/euidaccess.h.
211         (Depends-on): Add unistd.
212         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
213         (Include): Specify <unistd.h> instead of euidaccess.h.
214         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
215         HAVE_EUIDACCESS.
216         * NEWS: Mention the change.
217
218 2008-10-18  Bruno Haible  <bruno@clisp.org>
219
220         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
221
222         Move the getdomainname() declaration to <unistd.h>.
223         * lib/getdomainname.h: Remove file.
224         * lib/unistd.in.h (getdomainname): New declaration.
225         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
226         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
227         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
228         HAVE_GETDOMAINNAME.
229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
230         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
231         * modules/getdomainname (Files): Remove lib/getdomainname.h.
232         (Depends-on): Add unistd, extensions.
233         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
234         (Includes): Specify <unistd.h> instead of getdomainname.h.
235         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
236         HAVE_GETDOMAINNAME.
237         * NEWS: Mention the change.
238
239 2008-10-18  Bruno Haible  <bruno@clisp.org>
240
241         * modules/dirent: New file.
242         * m4/dirent_h.m4: New file.
243         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
244         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
245         * modules/fchdir (Files): Remove lib/dirent.in.h.
246         (Depends-on): Add dirent.
247         (Makefile.am): Move rules to modules/dirent.
248         * doc/posix-headers/dirent.texi: Mention the new module.
249
250 2008-10-18  Bruno Haible  <bruno@clisp.org>
251
252         Avoid -Wunused-parameter warnings in public gnulib header files.
253         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
254         macro.
255         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
256
257 2008-10-18  Bruno Haible  <bruno@clisp.org>
258
259         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
260         * doc/glibc-functions/error.texi: Mention the module 'error'.
261         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
262         * doc/glibc-functions/getdomainname.texi: Mention the module
263         'getdomainname'.
264         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
265         * doc/glibc-functions/getpagesize.texi: Mention the module
266         'getpagesize'.
267         * doc/glibc-functions/getusershell.texi: Mention the module
268         'getusershell'.
269         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
270         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
271         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
272         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
273         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
274         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
275         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
276         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
277         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
278         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
279         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
280         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
281         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
282         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
283
284 2008-10-17  Bruno Haible  <bruno@clisp.org>
285
286         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
287         HP-UX and IRIX, use -0.0L.
288         * tests/test-ceill.c (minus_zero): Likewise.
289         * tests/test-floorl.c (minus_zero): Likewise.
290         * tests/test-frexpl.c (minus_zero): Likewise.
291         * tests/test-isnan.c (minus_zerol): Likewise.
292         * tests/test-isnanl.h (minus_zero): Likewise.
293         * tests/test-ldexpl.c (minus_zero): Likewise.
294         * tests/test-roundl.c (minus_zero): Likewise.
295         * tests/test-signbit.c (minus_zerol): Likewise.
296         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
297         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
298         * tests/test-truncl.c (minus_zero): Likewise.
299         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
300         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
301         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
302         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
303
304 2008-10-17  Bruno Haible  <bruno@clisp.org>
305
306         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
307         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
308         that it gets activated only for gcc >= 3.0.
309         * lib/dirent.in.h: Likewise.
310         * lib/errno.in.h: Likewise.
311         * lib/fcntl.in.h: Likewise.
312         * lib/float.in.h: Likewise.
313         * lib/iconv.in.h: Likewise.
314         * lib/inttypes.in.h: Likewise.
315         * lib/locale.in.h: Likewise.
316         * lib/math.in.h: Likewise.
317         * lib/netdb.in.h: Likewise.
318         * lib/netinet_in.in.h: Likewise.
319         * lib/search.in.h: Likewise.
320         * lib/signal.in.h: Likewise.
321         * lib/spawn.in.h: Likewise.
322         * lib/stdarg.in.h: Likewise.
323         * lib/stdint.in.h: Likewise.
324         * lib/stdio.in.h: Likewise.
325         * lib/stdlib.in.h: Likewise.
326         * lib/string.in.h: Likewise.
327         * lib/strings.in.h: Likewise.
328         * lib/sys_file.in.h: Likewise.
329         * lib/sys_ioctl.in.h: Likewise.
330         * lib/sys_select.in.h: Likewise.
331         * lib/sys_socket.in.h: Likewise.
332         * lib/sys_stat.in.h: Likewise.
333         * lib/sys_time.in.h: Likewise.
334         * lib/sysexits.in.h: Likewise.
335         * lib/time.in.h: Likewise.
336         * lib/unistd.in.h: Likewise.
337         * lib/wchar.in.h: Likewise.
338         * lib/wctype.in.h: Likewise.
339         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
340
341 2008-10-17  Jim Meyering  <meyering@redhat.com>
342
343         ignore-value: don't depend on inline module
344         * modules/ignore-value (Depends-on): Remove 'inline'.
345         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
346         Suggestion from Bruno Haible.
347
348 2008-10-17  Bruno Haible  <bruno@clisp.org>
349
350         New implementation of condition variables for Win32.
351         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
352         (gl_linked_waitqueue_t): New type.
353         (gl_cond_t): Use it.
354         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
355         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
356         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
357         (glthread_cond_init_func, glthread_cond_wait_func,
358         glthread_cond_timedwait_func, glthread_cond_signal_func,
359         glthread_cond_broadcast_func, glthread_cond_destroy_func):
360         Reimplemented on the basis of gl_linked_waitqueue_t.
361         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
362         gl_waitqueue_t.
363         (gl_rwlock_t): Update.
364         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
365
366 2008-10-17  Simon Josefsson  <simon@josefsson.org>
367
368         * modules/recvfrom (Depends-on): Add dependency on getpeername.
369         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
370
371 2008-10-17  Jim Meyering  <meyering@redhat.com>
372
373         ignore-value: new module
374         * modules/ignore-value: New file.
375         * lib/ignore-value.h: New file.
376         * MODULES.html.sh (Compiler warning management): New section,
377         just for this module.  More to come.
378
379 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
380
381         open-safer.c: avoid 'signed and unsigned in conditional...' warning
382         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
383         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
384
385 2008-10-16  Jim Meyering  <meyering@redhat.com>
386
387         openat-die.c: avoid 'no previous prototype' warning
388         * lib/openat-die.c: Include "openat.h".
389         Reported by Reuben Thomas <rrt@sc3d.org>.
390
391 2008-10-16  Simon Josefsson  <simon@josefsson.org>
392
393         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
394         * lib/netdb.in.h: Fix typo.
395         Reported by Bruno Haible  <bruno@clisp.org>
396
397         * lib/netdb.in.h: Include sys/socket.h for platforms without
398         netdb.h, to get structures like hostent on MinGW.
399         * modules/netdb (Depends-on): Add sys_socket.
400
401 2008-10-15  Simon Josefsson  <simon@josefsson.org>
402
403         * modules/netdb, modules/netdb-tests: New file.
404         * m4/netdb_h.m4: New file.
405         * lib/netdb.in.h: Add, currently just an empty file pending
406         definitions.
407         * tests/test-netdb.c: New file.
408         * doc/posix-headers/netdb.texi: Mention that we replace it if
409         needed.
410         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
411         netdb.
412
413 2008-10-15  Simon Josefsson  <simon@josefsson.org>
414
415         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
416         with code.
417
418 2008-10-13  Bruno Haible  <bruno@clisp.org>
419
420         * lib/glthread/cond.c (glthread_cond_wait_func,
421         glthread_cond_timedwait_func): Add a comment.
422
423 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
424
425         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
426         * tests/test-select.c: Likewise,
427
428 2008-10-13  Bruno Haible  <bruno@clisp.org>
429
430         * lib/glthread/cond.c (glthread_cond_wait_func,
431         glthread_cond_timedwait_func): Fix variable name.
432         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
433
434 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
435
436         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
437         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
438         struct sockaddr.sa_len.
439         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
440
441 2008-10-13  Simon Josefsson  <simon@josefsson.org>
442
443         * build-aux/pmccabe2html: Add css and css_url parameters.
444
445 2008-10-12  Bruno Haible  <bruno@clisp.org>
446
447         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
448         calling aclx_get.
449         Reported by Rainer Tammer <tammer@tammer.net>.
450
451 2008-10-12  Bruno Haible  <bruno@clisp.org>
452
453         Use msvcrt aware primitives for creation/termination of Win32 threads.
454         * lib/glthread/thread.c: Include <process.h>.
455         (glthread_create_func): Use _beginthreadex instead of CreateThread.
456         (wrapper_func): Update signature.
457         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
458
459 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
460             Bruno Haible  <bruno@clisp.org>
461
462         Provide a Win32 implementation of the 'cond' module.
463         * lib/glthread/cond.h [USE_WIN32]: New implementation.
464         * lib/glthread/cond.c (glthread_cond_init_func,
465         glthread_cond_wait_func, glthread_cond_timedwait_func,
466         glthread_cond_signal_func, glthread_cond_broadcast_func,
467         glthread_cond_destroy_func) [USE_WIN32]: New functions.
468         * modules/cond (Dependencies): Add gettimeofday.
469
470 2008-10-11  Bruno Haible  <bruno@clisp.org>
471
472         Make sleep work on older versions of mingw.
473         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
474         only whether it exists.
475         * doc/posix-functions/sleep.texi: Mention the problem with older
476         versions of mingw.
477
478 2008-10-11  Bruno Haible  <bruno@clisp.org>
479
480         New module 'shutdown'.
481         * modules/shutdown: New file.
482         * lib/sys_socket.in.h (shutdown): New declaration.
483         * lib/winsock.c (shutdown): New function.
484         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
485         GNULIB_SHUTDOWN.
486         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
487         * doc/posix-functions/shutdown.texi: Document the new module.
488
489 2008-10-11  Jim Meyering  <meyering@redhat.com>
490
491         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
492
493 2008-10-11  Bruno Haible  <bruno@clisp.org>
494
495         New module 'fclose'.
496         * modules/fclose: New file.
497         * lib/stdio.in.h (fclose): New declaration.
498         * lib/fclose.c: New file.
499         * m4/fclose.m4: New file.
500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
501         REPLACE_FCLOSE.
502         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
503         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
504         REPLACE_FCLOSE.
505         * modules/close (Depends-on): fclose.
506         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
507
508 2008-10-11  Bruno Haible  <bruno@clisp.org>
509
510         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
511         set errno and don't call _close.
512
513 2008-10-10  Bruno Haible  <bruno@clisp.org>
514
515         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
516         ACL, not afterwards. Fixes test failure on Cygwin.
517
518 2008-10-09  Ben Pfaff  <blp@gnu.org>
519
520         * build-aux/announce-gen: Fix gnulib version related part of usage
521         message.  Die with a useful error message if no tarballs are
522         found.
523
524 2008-10-10  Jim Meyering  <meyering@redhat.com>
525
526         bootstrap: use git's --depth=N option only if it's supported
527         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
528         recognize the --depth option.  Reported by Pádraig Brady.
529
530 2008-10-09  Bruno Haible  <bruno@clisp.org>
531
532         New module 'ioctl'.
533         * modules/ioctl: New file.
534         * lib/sys_socket.in.h (ioctl): Remove declaration.
535         * lib/winsock.c: Include <sys/ioctl.h>.
536         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
537         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
538         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
539         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
540         * doc/posix-functions/ioctl.texi: Mention the new module.
541
542 2008-10-09  Bruno Haible  <bruno@clisp.org>
543
544         New module 'sys_ioctl'.
545         * lib/sys_ioctl.in.h: New file.
546         * m4/sys_ioctl_h.m4: New file.
547         * modules/sys_ioctl: New file.
548         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
549
550 2008-10-09  Bruno Haible  <bruno@clisp.org>
551
552         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
553         * lib/winsock.c: Include <stdarg.h>.
554         (rpl_ioctl): Change to second argument 'int' and then varargs.
555
556 2008-10-09  Bruno Haible  <bruno@clisp.org>
557
558         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
559         when the sys_socket module is present and the system has <winsock2.h>.
560
561 2008-10-09  Bruno Haible  <bruno@clisp.org>
562
563         * doc/posix-functions/close.texi: Mention module 'close' instead of
564         module 'sys_socket'.
565
566 2008-10-09  Bruno Haible  <bruno@clisp.org>
567
568         * doc/glibc-headers/sys_ioctl.texi: New file.
569         * doc/gnulib.texi: Include it.
570
571 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
572             Bruno Haible  <bruno@clisp.org>
573
574         Combine the two replacements of 'close'.
575         * lib/sys_socket.in.h (close): Define to a reminder to include
576         <unistd.h>.
577         (_gl_close_fd_maybe_socket): New declaration.
578         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
579         * lib/winsock.c (close): Remove undefinition.
580         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
581         needed for the gnulib module 'close'.
582         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
583         define to an error symbol or to a warning, if suitable.
584         * lib/close.c: Include <sys/socket.h>.
585         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
586         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
587         UNISTD_H_HAVE_WINSOCK2_H.
588         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
590         UNISTD_H_HAVE_WINSOCK2_H.
591         * modules/sys_socket (Files): Add m4/unistd_h.m4.
592         (configure.ac): Set a module indicator.
593         (Makefile.am): Substitute GNULIB_CLOSE.
594         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
595         * modules/poll-tests (Depends-on): Add close.
596         * modules/select-tests (Depends-on): Likewise.
597
598 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
599             Bruno Haible  <bruno@clisp.org>
600
601         New module 'close'.
602         * modules/close: New file.
603         * lib/unistd.in.h (close): Move declaration out of the
604         FCHDIR_REPLACEMENT scope.
605         (_gl_unregister_fd): New declaration.
606         * lib/close.c: New file.
607         * lib/fchdir.c (rpl_close): Remove function.
608         * m4/close.m4: New file.
609         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
610         close.
611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
612         REPLACE_CLOSE.
613         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
614         REPLACE_CLOSE.
615         * modules/fchdir (Depends-on): Add close.
616
617 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
618             Bruno Haible  <bruno@clisp.org>
619
620         * lib/fcntl.in.h (open): Simplify conditionals.
621         (_gl_register_fd): New declaration.
622         * lib/fchdir.c (rpl_open): Remove function.
623         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
624         also.
625         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
627         open.
628
629 2008-10-09  Jim Meyering  <meyering@redhat.com>
630
631         GNUmakefile: use the more name-space-friendly "_version"
632         * top/GNUmakefile (_dummy): Update.
633         (_version): Rename from "version".
634
635 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
636             Bruno Haible  <bruno@clisp.org>
637
638         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
639         rpl_close.
640         (_gl_register_fd): New function, extracted from rpl_open.
641         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
642         (rpl_open, rpl_opendir): Use _gl_register_fd.
643
644 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
645
646         Fix organization of 'open' replacement.
647         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
648         (gl_FUNC_OPEN): Use it.
649         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
650
651 2008-10-08  Bruno Haible  <bruno@clisp.org>
652
653         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
654
655 2008-10-08  Simon Josefsson  <simon@josefsson.org>
656
657         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
658         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
659         listen).
660
661 2008-10-08  Eric Blake  <ebb9@byu.net>
662
663         GNUmakefile: add 'make version' target
664         * top/GNUmakefile (_curr-ver): Split version update rules...
665         (version): ...into a target.
666
667 2008-10-07  Bruno Haible  <bruno@clisp.org>
668
669         Use a more portable replacement expression for -0.0L.
670         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
671         instead of -0.0L. Fix m4 quotation.
672
673         * tests/test-signbit.c: Include <float.h>.
674         (minus_zero): New variable.
675         (test_signbitl): Use minus_zero instead of -zero.
676         * modules/signbit-tests (Depends-on): Add float.
677
678         * tests/test-ceill.c: Include <float.h>.
679         (zero): Remove variable.
680         (minus_zero): New variable.
681         (main): Use minus_zero instead of -zero.
682         * modules/ceill-tests (Depends-on): Add float.
683
684         * tests/test-floorl.c: Include <float.h>.
685         (zero): Remove variable.
686         (minus_zero): New variable.
687         (main): Use minus_zero instead of -zero.
688         * modules/floorl-tests (Depends-on): Add float.
689
690         * tests/test-roundl.c: Include <float.h>.
691         (zero): Remove variable.
692         (minus_zero): New variable.
693         (main): Use minus_zero instead of -zero.
694         * modules/roundl-tests (Depends-on): Add float.
695
696         * tests/test-truncl.c: Include <float.h>.
697         (zero): Remove variable.
698         (minus_zero): New variable.
699         (main): Use minus_zero instead of -zero.
700         * modules/truncl-tests (Depends-on): Add float.
701
702         * tests/test-frexpl.c (zero): Remove variable.
703         (minus_zero): New variable.
704         (main): Use minus_zero instead of -zero.
705         * modules/frexpl-tests (Depends-on): Add float.
706
707         * tests/test-isnan.c (zerol): Remove variable.
708         (minus_zerol): New variable.
709         (test_long_double): Use minus_zerol instead of -zerol.
710         * modules/isnan-tests (Depends-on): Add float.
711
712         * tests/test-isnanl.h (zero): Remove variable.
713         (minus_zero): New variable.
714         (main): Use minus_zero instead of -zero.
715         * modules/isnanl-nolibm-tests (Depends-on): Add float.
716         * modules/isnanl-tests (Depends-on): Add float.
717
718         * tests/test-ldexpl.c (zero): Remove variable.
719         (minus_zero): New variable.
720         (main): Use minus_zero instead of -zero.
721         * modules/ldexpl-tests (Depends-on): Add float.
722
723         * tests/test-snprintf-posix.h (zerol): Remove variable.
724         (minus_zerol): New variable.
725         (test_function): Use minus_zerol instead of -zerol.
726         * modules/snprintf-posix-tests (Depends-on): Add float.
727         * modules/vsnprintf-posix-tests (Depends-on): Add float.
728
729         * tests/test-sprintf-posix.h (zerol): Remove variable.
730         (minus_zerol): New variable.
731         (test_function): Use minus_zerol instead of -zerol.
732         * modules/sprintf-posix-tests (Depends-on): Add float.
733         * modules/vsprintf-posix-tests (Depends-on): Add float.
734
735         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
736         (minus_zerol): New variable.
737         (test_function): Use minus_zerol instead of -zerol.
738         * modules/vasnprintf-posix-tests (Depends-on): Add float.
739
740         * tests/test-vasprintf-posix.c (zerol): Remove variable.
741         (minus_zerol): New variable.
742         (test_function): Use minus_zerol instead of -zerol.
743         * modules/vasprintf-posix-tests (Depends-on): Add float.
744
745 2008-10-07  Simon Josefsson  <simon@josefsson.org>
746
747         * MODULES.html.sh (Support for building documentation): Mention
748         pmccabe2html.  Sort entries.
749
750         Add pmccabe2html module, from gnupdf.
751         * build-aux/pmccabe.css: New file.
752         * build-aux/pmccabe2html: New file.
753         * m4/pmccabe2html.m4: New file.
754         * modules/pmccabe2html: New file.
755
756 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
757
758         flock: new module
759         * MODULES.html.sh: Add to list of modules.
760         * lib/flock.c: flock implementation for Windows and Unix systems
761         which have fcntl.
762         * doc/glibc-functions/flock.texi: Update documentation.
763         * lib/sys_file.in.h: <sys/file.h> header file.
764         * m4/flock.m4: M4 macros.
765         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
766         * modules/flock: flock module.
767         * modules/flock-tests: flock tests module.
768         * modules/sys_file: sys/file.h module.
769         * tests/test-flock.c: test suite for flock.
770
771 2008-10-06  Jim Meyering  <meyering@redhat.com>
772
773         bootstrap: check for LT_INIT more portably still ;-)
774         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
775         Spotted by Bruno Haible.
776
777 2008-10-06  Eric Blake  <ebb9@byu.net>
778
779         test-signbit: avoid tripping Irix cc bug on -0.0L
780         * tests/test-signbit.c (minus_zerol): Delete, and replace with
781         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
782         entire testsuite consistent and avoids an Irix 6.2 bug.
783
784 2008-10-05  Bruno Haible  <bruno@clisp.org>
785             Jim Meyering  <jim@meyering.net>
786
787         Add an option for ignoring EPIPE during close_stdout.
788         * lib/closeout.h: Include <stdbool.h>.
789         (close_stdout_set_ignore_EPIPE): New declaration.
790         * lib/closeout.c: Include <stdbool.h>.
791         (ignore_EPIPE): New variable.
792         (close_stdout_set_ignore_EPIPE): New function.
793         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
794         * lib/close-stream.c (close_stream): Mention the possible EPIPE
795         failure.
796         * modules/closeout (Depends-on): Add stdbool.
797
798 2008-10-05  Bruno Haible  <bruno@clisp.org>
799
800         * modules/accept: New file.
801         * modules/bind: New file.
802         * modules/connect: New file.
803         * modules/getpeername: New file.
804         * modules/getsockname: New file.
805         * modules/getsockopt: New file.
806         * modules/listen: New file.
807         * modules/recv: New file.
808         * modules/recvfrom: New file.
809         * modules/send: New file.
810         * modules/sendto: New file.
811         * modules/setsockopt: New file.
812         * modules/socket: New file.
813         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
814         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
815         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
816         the particular module is requested. Add a link warning when the
817         particular module is not requested.
818         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
819         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
820         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
821         the particular module is requested.
822         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
823         gl_SYS_SOCKET_H_DEFAULTS): New macros.
824         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
825         * modules/sys_socket (Depends-on): Add link-warning.
826         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
827         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
828         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
829         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
830         GL_LINK_WARNING.
831         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
832         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
833         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
834         * doc/posix-functions/getpeername.texi: Mention the new module
835         'getpeername'.
836         * doc/posix-functions/getsockname.texi: Mention the new module
837         'getsockname'.
838         * doc/posix-functions/getsockopt.texi: Mention the new module
839         'getsockopt'.
840         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
841         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
842         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
843         * doc/posix-functions/send.texi: Mention the new module 'send'.
844         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
845         * doc/posix-functions/setsockopt.texi: Mention the new module
846         'setsockopt'.
847         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
848         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
849         listen, connect, accept.
850         * modules/select-tests (Depends-on): Likewise.
851
852 2008-10-05  Bruno Haible  <bruno@clisp.org>
853
854         * lib/winsock.c (strerror): Remove unused #undef.
855         (rpl_close): Remove unused local variable.
856
857         * modules/sys_socket (Depends-on); Add errno.
858
859 2008-10-05  Bruno Haible  <bruno@clisp.org>
860
861         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
862         (select): Add a link warning when the 'select' module is not used.
863         * modules/sys_select (Depends-on): Add link-warning.
864         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
865         Suggested by Paolo Bonzini.
866
867 2008-10-05  Jim Meyering  <meyering@redhat.com>
868
869         bootstrap: check for LT_INIT more portably
870         * build-aux/bootstrap: Avoid using grep -E, since it's not
871         portable enough.  Suggestion from Bruno Haible.
872
873 2008-10-05  Bruno Haible  <bruno@clisp.org>
874
875         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
876         as being fixed by gnulib.
877
878 2008-10-05  Bruno Haible  <bruno@clisp.org>
879
880         * modules/select-tests: New file, mostly copied from
881         modules/sys_select-tests.
882         * tests/test-select.c: New file, mostly copied from
883         tests/test-sys_select.c.
884         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
885         * modules/sys_select-tests (Depends-on): Remove all dependencies.
886         (Makefile.am): Remove test_sys_select_LDADD.
887
888         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
889         to an undefined symbol, for an error message.
890         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
891         (gl_SYS_SELECT_H_DEFAULTS): New macro.
892         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
893         winsock-select.c here.
894         * modules/sys_select (Files): Remove lib/winsock-select.c.
895         (Depends-on): Remove alloca.
896         (Makefile.am): Substitute GNULIB_SELECT.
897         * modules/select: New file.
898         * doc/posix-functions/select.texi: Update.
899
900 2008-10-05  Bruno Haible  <bruno@clisp.org>
901
902         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
903         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
904         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
905         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
906         getdtablesize.
907         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
908         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
909
910 2008-10-05  Bruno Haible  <bruno@clisp.org>
911
912         * modules/getdtablesize-tests: New file.
913         * tests/test-getdtablesize.c: New file.
914
915         New module 'getdtablesize'.
916         * lib/unistd.in.h (getdtablesize): New declaration.
917         * lib/getdtablesize.c: New file.
918         * m4/getdtablesize.m4: New file.
919         * modules/getdtablesize: New file.
920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
921         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
922         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
923         HAVE_GETDTABLESIZE.
924         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
925
926 2008-10-05  Bruno Haible  <bruno@clisp.org>
927
928         * modules/sched (Makefile.am): Fix typo.
929         Reported by Simon Josefsson.
930
931 2008-10-05  Jim Meyering  <meyering@redhat.com>
932
933         bootstrap: check for LT_INIT, too
934         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
935         are deprecated.  Suggestion from Ralf Wildenhues.
936
937 2008-10-05  Bruno Haible  <bruno@clisp.org>
938
939         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
940         overriding them by ours.
941         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
942
943 2008-10-05  Jim Meyering  <meyering@redhat.com>
944
945         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
946         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
947         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
948
949 2008-10-04  Bruno Haible  <bruno@clisp.org>
950
951         * modules/dup2 (License): Change to LGPLv2+.
952         * modules/sleep (License): Likewise.
953         * modules/perror (License): Likewise.
954         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
955         Blake.
956         * modules/signal (License): Likewise.
957         * modules/sigprocmask (License): Likewise.
958         * modules/raise (License): Change to LGPLv2+, with approval by Jim
959         Meyering.
960
961 2008-10-04  Bruno Haible  <bruno@clisp.org>
962
963         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
964         Reported by Rainer Tammer <tammer@tammer.net>.
965
966 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
967             Bruno Haible  <bruno@clisp.org>
968
969         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
970         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
971         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
972
973 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
974
975         filevercmp: new module
976         * lib/filevercmp.h: New function filevercmp comparing version strings.
977         * lib/filevercmp.c: Implementation of filevercmp function.
978         * modules/filevercmp: Module metadata.
979         * tests/test-filevercmp.c: Unit test for new module.
980         * modules/filevercmp-tests: Unit test metadata.
981         * MODULES.html.sh: Add filevercmp module.
982
983 2008-10-03  Bruno Haible  <bruno@clisp.org>
984
985         * lib/c-ctype.h: Add comment.
986         Reported by Jim Meyering.
987
988 2008-10-02  Bruno Haible  <bruno@clisp.org>
989
990         * modules/posix_spawn-internal (Depends-on): Add 'open'.
991
992 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
993
994         * build-aux/bootstrap: Allow renaming bootstrap, and change the
995         name of bootstrap.conf accordingly.
996
997 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
998
999         * build-aux/bootstrap: Install git-merge-changelog configuration
1000         items into .gitconfig if needed.
1001
1002 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1003
1004         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
1005         git repository, and initialize/update it accordingly.
1006
1007 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
1008
1009         * modules/fsync-tests: New file.
1010         * tests/test-fsync.c: New file.
1011
1012         New module 'fsync'.
1013         * lib/fsync.c: New file.
1014         * m4/fsync.m4: New file.
1015         * modules/fsync: New file.
1016         * lib/unistd.in.h (fsync): New declaration.
1017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
1018         GNULIB_FSYNC and HAVE_FSYNC.
1019         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
1020         * MODULES.html.sh (posix_functions): Add fsync.
1021         * doc/posix-functions/fsync.texi: Mention the new module.
1022
1023 2008-10-02  Jim Meyering  <meyering@redhat.com>
1024
1025         fts.c: sync with similar code from coreutils' remove.c
1026         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
1027         Guard also with "#if defined __linux__", since for now at least,
1028         this code is Linux-kernel-specific.
1029
1030 2008-10-02  Jim Meyering  <meyering@redhat.com>
1031
1032         fts: bug fixes
1033         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
1034         Include <sys/vfs.h>, not <sys/statfs.h>.
1035
1036         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
1037         Include <sys/vfs.h>, not <sys/statfs.h>.
1038
1039 2008-10-01  Bruno Haible  <bruno@clisp.org>
1040
1041         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
1042         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
1043         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
1044         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
1045         * doc/posix-functions/posix_spawnp.texi: Likewise.
1046         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
1047         whether posix_spawn actually works.
1048         * m4/pipe.m4 (gl_PIPE): Likewise.
1049         * modules/execute (Files): Add m4/posix_spawn.m4.
1050         * modules/pipe (Files): Add m4/posix_spawn.m4.
1051         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
1052
1053 2008-10-01  Jim Meyering  <meyering@redhat.com>
1054
1055         remove trailing spaces
1056         * NEWS: Likewise.
1057         * lib/poll.c (poll): Likewise.
1058         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
1059         * lib/winsock.c (rpl_close): Likewise.
1060         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
1061         * modules/yield: Likewise.
1062         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
1063         * tests/test-sys_select.c (connect_to_socket): Likewise.
1064
1065         fts.c: adjust a new interface to be more generally useful
1066         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
1067         (fts_build): Adjust caller.
1068
1069 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1070
1071         * modules/cond-tests: New file.
1072         * tests/test-cond.c: New file.
1073
1074 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1075             Bruno Haible  <bruno@clisp.org>
1076
1077         * modules/cond (Dependencies): Add errno, time.
1078         * lib/glthread/cond.h: Include <time.h>.
1079         (gl_cond_define, gl_cond_define_initialized): Use the same definition
1080         across platforms.
1081
1082 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1083             Bruno Haible  <bruno@clisp.org>
1084
1085         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
1086
1087 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1088             Bruno Haible  <bruno@clisp.org>
1089
1090         * modules/tls-tests (Depends-on): Add thread, yield.
1091         (configure.ac): Remove all checks.
1092         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
1093         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1094         gl_thread_self): Remove definitions. Include glthread/thread.h and
1095         glthread/yield.h instead.
1096         (test_tls): Pass an additional NULL argument to gl_thread_join.
1097
1098 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1099             Bruno Haible  <bruno@clisp.org>
1100
1101         * modules/lock-tests (Depends-on): Add thread, yield.
1102         (configure.ac): Remove all checks.
1103         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
1104         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1105         gl_thread_self): Remove definitions. Include glthread/thread.h and
1106         glthread/yield.h instead.
1107         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
1108         additional NULL argument to gl_thread_join.
1109
1110 2008-09-30  Bruno Haible  <bruno@clisp.org>
1111
1112         Fix the Win32 implementation of the 'thread' module.
1113         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
1114         pointer type.
1115         (gl_thread_self): Invoke gl_thread_self_func.
1116         (gl_thread_self_func): New declaration.
1117         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
1118         (do_init_self_key, init_self_key): New functions.
1119         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
1120         Remove some fields.
1121         (running_threads, running_lock): Remove variables.
1122         (get_current_thread_handle): New function.
1123         (gl_thread_self_func, wrapper_func, glthread_create_func,
1124         glthread_join_func, gl_thread_exit_func): Largely rewritten and
1125         simplified.
1126
1127 2008-09-30  Bruno Haible  <bruno@clisp.org>
1128
1129         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
1130         files.
1131
1132 2008-09-30  Jim Meyering  <meyering@redhat.com>
1133
1134         fts.m4: correct the test for statfs.f_type
1135         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
1136         when checking for statfs.f_type.
1137
1138 2008-09-15  Simon Josefsson  <simon@josefsson.org>
1139
1140         tests: avoid some compiler warnings
1141         * tests/test-memchr.c (main): Pass NULL indirectly.
1142         * tests/test-getdate.c (main): Remove unused variable 'ret'.
1143
1144 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
1145
1146         getdate.y: disallow countable dayshifts like "4 yesterday ago"
1147         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
1148         exactly specified dayshifts.
1149         (dayshift): New rule.
1150         (rel): Add dayshift.
1151         (relative_time_table) [tomorrow, yesterday, today, now]:
1152         Use tDAY_SHIFT in place of tDAY_UNIT.
1153         * tests/test-getdate.c: Add tests for now-disallowed countable
1154         dayshifts, e.g., "4 yesterday ago".
1155
1156 2008-09-29  Bruno Haible  <bruno@clisp.org>
1157
1158         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
1159         * tests/test-posix_spawn1.in.sh: Renamed from
1160         tests/test-posix_spawn.in.sh.
1161         * tests/test-posix_spawn2.c: New file.
1162         * tests/test-posix_spawn2.in.sh: New file.
1163         * modules/posix_spawnp-tests (Files): Update.
1164         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
1165
1166 2008-09-29  Bruno Haible  <bruno@clisp.org>
1167
1168         Propagate effects of putenv/setenv/unsetenv to child processes.
1169         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
1170         * lib/pipe.c (create_pipe): Likewise.
1171
1172 2008-09-29  Bruno Haible  <bruno@clisp.org>
1173
1174         Enable use of shell scripts as executables in mingw.
1175         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
1176         run the program as a shell script.
1177         * lib/pipe.c (create_pipe): Likewise.
1178         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
1179         resulting array.
1180
1181 2008-09-29  Eric Blake  <ebb9@byu.net>
1182
1183         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
1184
1185 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
1186
1187         * doc/posix-functions/accept.texi: Update mingw problems.
1188         * doc/posix-functions/bind.texi: Update mingw problems.
1189         * doc/posix-functions/close.texi: Update mingw problems.
1190         * doc/posix-functions/connect.texi: Update mingw problems.
1191         * doc/posix-functions/getpeername.texi: Update mingw problems.
1192         * doc/posix-functions/getsockname.texi: Update mingw problems.
1193         * doc/posix-functions/getsockopt.texi: Update mingw problems.
1194         * doc/posix-functions/ioctl.texi: Update mingw problems.
1195         * doc/posix-functions/listen.texi: Update mingw problems.
1196         * doc/posix-functions/recv.texi: Update mingw problems.
1197         * doc/posix-functions/recvfrom.texi: Update mingw problems.
1198         * doc/posix-functions/select.texi: Update mingw problems.
1199         * doc/posix-functions/send.texi: Update mingw problems.
1200         * doc/posix-functions/sendto.texi: Update mingw problems.
1201         * doc/posix-functions/setsockopt.texi: Update mingw problems.
1202         * doc/posix-functions/socket.texi: Update mingw problems.
1203
1204 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
1205             Bruno Haible  <bruno@clisp.org>
1206
1207         * lib/sys_select.in.h: Include sys/time.h.
1208         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
1209         * modules/sys_select: Depend on sys_time.
1210         * tests/test-sys_select.c: Test that sys/select.h defines struct
1211         timeval fully.
1212
1213 2008-09-29  Bruno Haible  <bruno@clisp.org>
1214
1215         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
1216         * lib/sys_select.in.h: Likewise.
1217
1218 2008-09-29  Bruno Haible  <bruno@clisp.org>
1219
1220         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
1221
1222 2008-09-29  Bruno Haible  <bruno@clisp.org>
1223
1224         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
1225         Set LIBSOCKET instead of augmenting LIBS.
1226         * modules/sockets (Link): New section.
1227         * modules/sockets-tests (test_sockets_LDADD): New variable.
1228         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
1229         * modules/poll-tests (test_poll_LDADD): New variable.
1230         * NEWS: Document the change.
1231
1232 2008-09-29  Bruno Haible  <bruno@clisp.org>
1233
1234         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
1235         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
1236         ARPA_INET_H directly.
1237         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1238
1239 2008-09-28  Bruno Haible  <bruno@clisp.org>
1240
1241         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
1242         from gl_HEADER_SYS_SOCKET.
1243         (gl_HEADER_SYS_SOCKET): Invoke it.
1244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1245
1246 2008-09-28  Bruno Haible  <bruno@clisp.org>
1247
1248         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
1249         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
1250         Needed on OSF/1 4.0.
1251
1252 2008-09-28  Bruno Haible  <bruno@clisp.org>
1253
1254         Override open more carefully.
1255         * lib/open.c (orig_open): New function.
1256         (rpl_open): Use orig_open instead of open.
1257         * lib/fcntl.in.h: Add special invocation convention.
1258         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
1259         (gl_FUNC_OPEN): Invoke it.
1260
1261         Override freopen more carefully.
1262         * lib/freopen.c (orig_freopen): New function.
1263         (rpl_freopen): Use orig_freopen instead of freopen.
1264         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
1265         (gl_FUNC_FREOPEN): Invoke it.
1266
1267         Override fopen more carefully.
1268         * lib/fopen.c (orig_fopen): New function.
1269         (rpl_fopen): Use orig_fopen instead of fopen.
1270         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
1271         (gl_FUNC_FOPEN): Invoke it.
1272         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
1273
1274 2008-09-28  Bruno Haible  <bruno@clisp.org>
1275
1276         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
1277         SIGPIPE.
1278
1279 2008-09-28  Bruno Haible  <bruno@clisp.org>
1280
1281         * tests/test-sigaction.c (handler, main): Disable the check whether
1282         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
1283         glibc systems with LinuxThreads.
1284
1285 2008-09-28  Bruno Haible  <bruno@clisp.org>
1286
1287         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
1288
1289         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
1290         with AIX xlc.
1291         * lib/fcntl.in.h (open): Likewise.
1292         Reported by Rainer Tammer <tammer@tammer.net>.
1293
1294 2008-09-28  Bruno Haible  <bruno@clisp.org>
1295
1296         * modules/posix_spawnp-tests: New file.
1297         * tests/test-posix_spawn.c: New file.
1298         * tests/test-posix_spawn.in.sh: New file.
1299
1300         New module 'posix_spawnp'.
1301         * modules/posix_spawnp: New file.
1302         * lib/spawnp.c: New file, from GNU libc with modifications.
1303         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
1304
1305         New module 'posix_spawn'.
1306         * modules/posix_spawn: New file.
1307         * lib/spawn.c: New file, from GNU libc with modifications.
1308         * doc/posix-functions/posix_spawn.texi: Mention the new module.
1309
1310         New module 'posix_spawnattr_destroy'.
1311         * modules/posix_spawnattr_destroy: New file.
1312         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
1313         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
1314         module.
1315
1316         New module 'posix_spawnattr_setsigmask'.
1317         * modules/posix_spawnattr_setsigmask: New file.
1318         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
1319         modifications.
1320         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
1321         new module.
1322
1323         New module 'posix_spawnattr_getsigmask'.
1324         * modules/posix_spawnattr_getsigmask: New file.
1325         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
1326         modifications.
1327         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
1328         new module.
1329
1330         New module 'posix_spawnattr_setsigdefault'.
1331         * modules/posix_spawnattr_setsigdefault: New file.
1332         * lib/spawnattr_setdefault.c: New file, from GNU libc with
1333         modifications.
1334         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
1335         new module.
1336
1337         New module 'posix_spawnattr_getsigdefault'.
1338         * modules/posix_spawnattr_getsigdefault: New file.
1339         * lib/spawnattr_getdefault.c: New file, from GNU libc with
1340         modifications.
1341         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
1342         new module.
1343
1344         New module 'posix_spawnattr_setschedpolicy'.
1345         * modules/posix_spawnattr_setschedpolicy: New file.
1346         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
1347         modifications.
1348         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
1349         new module.
1350
1351         New module 'posix_spawnattr_getschedpolicy'.
1352         * modules/posix_spawnattr_getschedpolicy: New file.
1353         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
1354         modifications.
1355         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
1356         new module.
1357
1358         New module 'posix_spawnattr_setschedparam'.
1359         * modules/posix_spawnattr_setschedparam: New file.
1360         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
1361         modifications.
1362         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
1363         new module.
1364
1365         New module 'posix_spawnattr_getschedparam'.
1366         * modules/posix_spawnattr_getschedparam: New file.
1367         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
1368         modifications.
1369         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
1370         new module.
1371
1372         New module 'posix_spawnattr_setpgroup'.
1373         * modules/posix_spawnattr_setpgroup: New file.
1374         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
1375         modifications.
1376         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
1377         module.
1378
1379         New module 'posix_spawnattr_getpgroup'.
1380         * modules/posix_spawnattr_getpgroup: New file.
1381         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
1382         modifications.
1383         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
1384         module.
1385
1386         New module 'posix_spawnattr_setflags'.
1387         * modules/posix_spawnattr_setflags: New file.
1388         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
1389         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
1390         module.
1391
1392         New module 'posix_spawnattr_getflags'.
1393         * modules/posix_spawnattr_getflags: New file.
1394         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
1395         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
1396         module.
1397
1398         New module 'posix_spawnattr_init'.
1399         * modules/posix_spawnattr_init: New file.
1400         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
1401         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
1402         module.
1403
1404         New module 'posix_spawn_file_actions_destroy'.
1405         * modules/posix_spawn_file_actions_destroy: New file.
1406         * lib/spawn_faction_destroy.c: New file, from GNU libc with
1407         modifications.
1408         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
1409         the new module.
1410
1411         New module 'posix_spawn_file_actions_addopen'.
1412         * modules/posix_spawn_file_actions_addopen: New file.
1413         * lib/spawn_faction_addopen.c: New file, from GNU libc with
1414         modifications.
1415         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1416         the new module.
1417
1418         New module 'posix_spawn_file_actions_adddup2'.
1419         * modules/posix_spawn_file_actions_adddup2: New file.
1420         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
1421         modifications.
1422         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1423         the new module.
1424
1425         New module 'posix_spawn_file_actions_addclose'.
1426         * modules/posix_spawn_file_actions_addclose: New file.
1427         * lib/spawn_faction_addclose.c: New file, from GNU libc with
1428         modifications.
1429         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1430         the new module.
1431
1432         New module 'posix_spawn_file_actions_init'.
1433         * modules/posix_spawn_file_actions_init: New file.
1434         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
1435         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
1436         new module.
1437
1438         New module 'posix_spawn-internal'.
1439         * modules/posix_spawn-internal: New file.
1440         * lib/spawn_int.h: New file, from GNU libc with modifications.
1441         * lib/spawni.c: New file, from GNU libc with modifications.
1442         * m4/posix_spawn.m4: New file.
1443
1444         New module 'spawn'.
1445         * modules/spawn: New file.
1446         * lib/spawn.in.h: New file, from GNU libc with modifications.
1447         * m4/spawn_h.m4: New file.
1448         * doc/posix-headers/spawn.texi: Mention the new module.
1449
1450 2008-09-28  Bruno Haible  <bruno@clisp.org>
1451
1452         * modules/sched-tests: New file.
1453         * tests/test-sched.c: New file.
1454
1455         New module 'sched'.
1456         * modules/sched: New file.
1457         * lib/sched.in.h: New file.
1458         * m4/sched_h.m4: New file.
1459         * doc/posix-headers/sched.texi: Mention the new module.
1460
1461 2008-09-27  Eric Blake  <ebb9@byu.net>
1462
1463         Fix previous patch, and tweak references to $0.
1464         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
1465         (func_version, func_gnulib_dir): Don't call this program
1466         gnulib-tool.
1467         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
1468         with using $0 in function.
1469         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
1470         (func_fatal_error): Reuse the name the user invoked us with.
1471
1472 2008-09-27  Bruno Haible  <bruno@clisp.org>
1473
1474         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
1475         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
1476         (gl_ICONV_H): Not here.
1477         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1478         instead of assigning ICONV_H directly.
1479
1480         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
1481         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
1482         WCHAR_H directly.
1483
1484 2008-09-27  Bruno Haible  <bruno@clisp.org>
1485
1486         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
1487         * modules/arpa_inet (Depends-on): Add link-warning.
1488         (Makefile.am): Insert the definition of GL_LINK-WARNING.
1489         * modules/unistd (Makefile.am): Likewise.
1490
1491 2008-09-26  Bruno Haible  <bruno@clisp.org>
1492
1493         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
1494         variables.
1495         (func_version): Essentially copied from gnulib-tool.
1496         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
1497         func_readlink): Copied from gnulib-tool.
1498
1499 2008-09-26  Bruno Haible  <bruno@clisp.org>
1500
1501         * gnulib-tool (func_version): Change directory to $gnulib_dir before
1502         invoking git-version-gen.
1503
1504 2008-09-26  Bruno Haible  <bruno@clisp.org>
1505
1506         * posix-modules: Update to directory names changed on 2008-01-19.
1507         Remove commas in output before splitting into words. No more need to
1508         avoid 'ftruncate' since 2007-02-19.
1509
1510 2008-09-26  Bruno Haible  <bruno@clisp.org>
1511
1512         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
1513
1514 2008-09-26  Bruno Haible  <bruno@clisp.org>
1515
1516         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
1517         * modules/fwriteerror (Depends-on): Add errno.
1518
1519 2008-09-26  Bruno Haible  <bruno@clisp.org>
1520
1521         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
1522         * tests/test-vc-list-files-cvs.sh: Likewise.
1523
1524 2008-09-26  Bruno Haible  <bruno@clisp.org>
1525
1526         * doc/posix-headers/sys_resource.texi: Reorder items.
1527
1528 2008-09-26  Jim Meyering  <meyering@redhat.com>
1529
1530         fts: tweak inode comparison function
1531         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
1532         inode numbers, as documented.
1533
1534         fts: sort dirent entries on inode number before traversing
1535         This avoids a quadratic, seek-related performance penalty when
1536         operating on a directory containing many entries (measurable at 10k;
1537         3.5 hours at 2 million entries with a cold cache) on certain types
1538         of file systems, including ext3 and ext4, but not tmpfs.
1539         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
1540         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
1541         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
1542         (fs_handles_readdir_ordered_dirents_efficiently): New function.
1543         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
1544         (fts_build): Set the stat.st_ino member from D_INO.
1545         If it is likely to be useful, sort dirent entries on inode number.
1546
1547         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
1548         and the struct statfs.f_type member.
1549         * modules/fts (Depends-on): Add d-ino.
1550
1551 2008-09-26  Bruno Haible  <bruno@clisp.org>
1552
1553         * modules/sigpipe-die (Depends-on): Add sigpipe.
1554
1555         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
1556         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
1557         and GNULIB_STDIO_H_SIGPIPE are set.
1558         * lib/stdio-write.c: New file.
1559         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
1560         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1561         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1562         REPLACE_STDIO_WRITE_FUNCS.
1563         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
1564         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1565         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1566         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1567         * modules/stdio (Files): Add lib/stdio-write.c.
1568         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
1569         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1570         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1571         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1572         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
1573         REPLACE_FPRINTF_POSIX.
1574         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
1575         REPLACE_PRINTF_POSIX.
1576         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
1577         REPLACE_VFPRINTF_POSIX.
1578         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
1579         REPLACE_VPRINTF_POSIX.
1580         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
1581         SIGPIPE issue.
1582         * doc/posix-functions/fputc.texi: Likewise.
1583         * doc/posix-functions/fputs.texi: Likewise.
1584         * doc/posix-functions/fwrite.texi: Likewise.
1585         * doc/posix-functions/printf.texi: Likewise.
1586         * doc/posix-functions/putc.texi: Likewise.
1587         * doc/posix-functions/putchar.texi: Likewise.
1588         * doc/posix-functions/puts.texi: Likewise.
1589         * doc/posix-functions/vfprintf.texi: Likewise.
1590         * doc/posix-functions/vprintf.texi: Likewise.
1591
1592         * modules/safe-write (Depends-on): Add write.
1593
1594         * modules/sigpipe-tests: New file.
1595         * tests/test-sigpipe.c: New file.
1596         * tests/test-sigpipe.sh: New file.
1597
1598         * modules/write: New file.
1599         * lib/unistd.in.h: Include <sys/types.h>.
1600         (write): New declaration.
1601         * lib/write.c: New file.
1602         * m4/write.m4: New file.
1603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1604         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
1605         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
1606         GNULIB_WRITE, REPLACE_WRITE.
1607         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
1608         and the SIGPIPE issue.
1609
1610         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
1611         (raise): New declaration.
1612         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
1613         (ext_signal): New function.
1614         (rpl_raise): New function.
1615         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1616         GNULIB_SIGNAL_H_SIGPIPE.
1617         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
1618         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
1619
1620         * modules/sigpipe: New file.
1621         * m4/sigpipe.m4: New file.
1622
1623 2008-09-25  Derek Price  <derek@ximbiot.com>
1624             Bruno Haible  <bruno@clisp.org>
1625
1626         * gnulib-tool (func_import): Report all license incompatibilities, not
1627         just the first one.
1628
1629 2008-09-25  Bruno Haible  <bruno@clisp.org>
1630
1631         * gnulib-tool (func_import): When computing the edits, consider not
1632         only the Makefile.ams that exist but also those that will be generated.
1633
1634 2008-09-25  Simon Josefsson  <simon@josefsson.org>
1635
1636         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
1637         fixes gnulib-tool --test warning about duplicate dependency.
1638
1639 2008-09-25  Bruno Haible  <bruno@clisp.org>
1640
1641         * gnulib-tool: Don't ask the user to perform edits in the generated
1642         Makefile.ams.
1643         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
1644         apply to the Makefile.am being generated.
1645         (func_emit_tests_Makefile_am): Execute edits that apply to the
1646         Makefile.am being generated.
1647         (func_import): Setup list of Makefile.am edits before emitting the
1648         Makefile.ams, not at the end.
1649         (func_create_testdir): Update.
1650         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1651
1652 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1653
1654         * gnulib-tool (func_import): Store the --tests-base option in the
1655         comment in gnulib-cache.m4.
1656
1657 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
1658
1659         * NEWS: Document increased portability that sys_select now provides.
1660
1661         * lib/sys_select.in.h: Install select wrapper.
1662         * lib/sys_socket.in.h: Use more descriptive name when there is no
1663         select wrapper.
1664         * lib/winsock-select.c: New.
1665         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
1666         Require gl_HEADER_SYS_SOCKET.
1667         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
1668         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
1669         * tests/test-sys_select.c: Add functional tests.
1670
1671 2008-09-24  Eric Blake  <ebb9@byu.net>
1672
1673         open, fopen: close fd leak in last patch
1674         * lib/open.c (rpl_open): Close fd before returning error.
1675         * lib/fopen.c (rpl_fopen): Close fd before returning error.
1676         * doc/posix-functions/open.texi (open): Document that Irix also
1677         has the bug.
1678         * doc/posix-functions/fopen.texi (fopen): Likewise.
1679         Reported by Paolo Bonzini.
1680
1681 2008-09-24  Bruno Haible  <bruno@clisp.org>
1682
1683         Ensure that a filename ending in a slash cannot be used to access a
1684         non-directory.
1685         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
1686         to check whether it's really a directory.
1687         * lib/fopen.c: Include fcntl.h, unistd.h.
1688         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
1689         and fdopen().
1690         * modules/fopen (Depends-on): Add unistd.
1691         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
1692         * tests/test-fopen.c (main): Likewise.
1693         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
1694         * doc/posix-functions/fopen.texi: Likewise.
1695         Reported by Eric Blake.
1696
1697 2008-09-23  Eric Blake  <ebb9@byu.net>
1698
1699         c-stack: avoid compiler optimizations when provoking overflow
1700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
1701         recursion harder to optimize, to ensure a stack overflow occurs.
1702         * tests/test-c-stack.c (recurse): Likewise.
1703         Borrowed from libsigsegv.
1704
1705         c-stack: work around Irix sigaltstack bug
1706         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
1707         whether sigaltstack uses wrong end of stack_t (copied in part from
1708         libsigsegv).
1709         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
1710         Irix bug, without requiring an over-allocation.
1711         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
1712         bug.
1713
1714         fopen: document mingw bug on directories
1715         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
1716         not allowing a stream visiting a directory, even though reading
1717         from such a stream is not portable.
1718
1719 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1720
1721         * lib/poll.c: Rewrite.
1722         * modules/poll: Depend on alloca.
1723
1724 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1725
1726         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
1727         instead define prototypes for a full set of wrappers.  Ensure
1728         that Cygwin does not use the compatibility code, which is only
1729         for MinGW.
1730         * lib/winsock.c: New.
1731         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
1732         * modules/sys_socket: Add lib/winsock.c.
1733
1734         * modules/poll-tests: Add errno and perror.
1735         * tests/test-poll.c: Use ioctl, not ioctlsocket.
1736
1737 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1738
1739         * tests/test-poll.c: Downgrade minimum needed Winsock version.
1740
1741 2008-09-23  Bruno Haible  <bruno@clisp.org>
1742
1743         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
1744         * doc/glibc-functions/*: Likewise.
1745
1746 2008-09-23  Simon Josefsson  <simon@josefsson.org>
1747
1748         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
1749         success.
1750
1751 2008-09-22  Eric Blake  <ebb9@byu.net>
1752             Bruno Haible  <bruno@clisp.org>
1753
1754         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
1755         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
1756         supply %A but mishandle pseudo-NaN.
1757         Reported by Simon Josefsson.
1758
1759 2008-09-21  Bruno Haible  <bruno@clisp.org>
1760
1761         * tests/test-lock.c (main): Tweak skip message.
1762         * tests/test-tls.c (main): Likewise.
1763
1764 2008-09-21  Bruno Haible  <bruno@clisp.org>
1765
1766         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
1767         whether 'struct sigaction' has sa_sigaction here...
1768         (gl_PREREQ_SIG_HANDLER_H): ... not here.
1769         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
1770
1771 2008-09-21  Bruno Haible  <bruno@clisp.org>
1772
1773         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
1774         section.
1775         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
1776         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
1777         the new section.
1778         (Support for obsolete systems lacking POSIX:2001): New section.
1779         (String handling <string.h>): Move strdup to the new section.
1780         Suggested by Simon Josefsson and Paolo Bonzini.
1781
1782 2008-09-21  Bruno Haible  <bruno@clisp.org>
1783
1784         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
1785         exponents in %e and %g results on 'long double'. Needed for mingw's
1786         improved *printf functions.
1787         * tests/test-vasprintf-posix.c (test_function): Likewise.
1788         * tests/test-snprintf-posix.h (test_function): Likewise.
1789         * tests/test-sprintf-posix.h (test_function): Likewise.
1790         Reported by Eric Blake.
1791
1792 2008-09-21  Bruno Haible  <bruno@clisp.org>
1793
1794         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
1795         * tests/test-sprintf-posix.h (test_function): Likewise.
1796
1797 2008-09-21  Bruno Haible  <bruno@clisp.org>
1798
1799         * modules/getpass (Depends-on): Add strdup-posix.
1800
1801         New module 'strdup-posix'.
1802         * modules/strdup-posix: New file.
1803         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
1804         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
1805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1806         REPLACE_STRDUP.
1807         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
1808         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
1809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1810         strdup-posix.
1811
1812         * modules/strdup (Depends-on): Remove malloc-posix.
1813
1814 2008-09-20  Bruno Haible  <bruno@clisp.org>
1815
1816         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
1817         Wildenhues.
1818
1819 2008-09-20  Bruno Haible  <bruno@clisp.org>
1820
1821         Ensure that wint_t gets defined on IRIX 5.3.
1822         * lib/wchar.in.h (wint_t): Define if not defined by the system.
1823         * lib/wctype.in.h (wint_t): Likewise.
1824         (__wctype_wint_t): Remove type.
1825         (isw*): Use wint_t instead of __wctype_wint_t.
1826         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
1827         * modules/wchar (Files): Add m4/wint_t.m4.
1828         (Makefile.am): Substitute HAVE_WINT_T.
1829         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
1830         * tests/test-wctype.c: Check that wint_t is defined.
1831         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
1832         * doc/posix-headers/wctype.texi: Likewise.
1833         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1834
1835 2008-09-18  Bruno Haible  <bruno@clisp.org>
1836
1837         * gnulib-tool (func_exit): Update comment.
1838
1839 2008-09-18  Simon Josefsson  <simon@josefsson.org>
1840
1841         * modules/getaddrinfo (Depends-on): Remove strdup, this module
1842         assumes strdup exists and does not depend on strdup to return
1843         ENOMEM on out of memory conditions.
1844
1845 2008-09-18  Bruno Haible  <bruno@clisp.org>
1846
1847         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
1848         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
1849         digits for the exponent.
1850
1851 2008-09-18  Jim Meyering  <meyering@redhat.com>
1852             Bruno Haible  <bruno@clisp.org>
1853
1854         * lib/vasnprintf.c (decimal_point_char): Define also if
1855         NEED_PRINTF_INFINITE_LONG_DOUBLE.
1856
1857 2008-09-16  Bruno Haible  <bruno@clisp.org>
1858         and Eric Blake  <ebb9@byu.net>
1859
1860         vasnprintf: support Irix 5.3
1861         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
1862         that mishandle long double infinity.
1863         Reported by Tom G. Christensen.
1864
1865 2008-09-16  Bruno Haible  <bruno@clisp.org>
1866
1867         * doc/glibc-functions/scandir.texi: Mention the function is missing on
1868         Solaris 9.
1869         * doc/glibc-functions/alphasort.texi: Likewise.
1870         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
1871
1872 2008-09-16  Jim Meyering  <meyering@redhat.com>
1873
1874         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
1875         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
1876         a umask modification leak out of a subshell.  Otherwise, the
1877         opensolaris /bin/sh would be accepted and thus cause unwarranted
1878         failures in the coreutils test suite.
1879
1880 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
1881
1882         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
1883         to succeed.
1884
1885 2008-09-16  Jim Meyering  <meyering@redhat.com>
1886
1887         avoid spurious test failure when library is built without ACL support
1888         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
1889         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
1890         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
1891         * tests/test-copy-acl.sh: Likewise.
1892
1893 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1894
1895         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
1896         based on character occurrence counts.
1897
1898 2008-09-15  Eric Blake  <ebb9@byu.net>
1899
1900         tests: avoid some compiler warnings
1901         * tests/test-memchr.c (main): Pass NULL indirectly.
1902         * tests/test-closein.c (main): Avoid unused variable.
1903
1904 2008-09-15  Bruno Haible  <bruno@clisp.org>
1905
1906         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
1907         are missing on OpenBSD 4.0 individually.
1908         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1909
1910 2008-09-15  Bruno Haible  <bruno@clisp.org>
1911
1912         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
1913         * doc/posix-functions/strerror.texi: Mention also Cygwin.
1914         * doc/posix-functions/perror.texi: Likewise.
1915         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
1916         is missing.
1917         Reported by Eric Blake.
1918
1919         * lib/errno.in.h: Use replacement values >= 2000.
1920         Reported by Eric Blake.
1921
1922 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1923
1924         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
1925         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
1926         limit.
1927         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
1928         compareseq was aborted.
1929
1930 2008-09-14  Bruno Haible  <bruno@clisp.org>
1931
1932         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
1933         yvec_edit_count.
1934         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
1935         (fstrcmp_bounded): Simplify result computation accordingly.
1936
1937 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1938
1939         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
1940         (fstrcmp): Define in terms of fstrcmp_bounded.
1941         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
1942         lower_bound argument.
1943         Return quickly if the result is certainly < lower_bound.
1944         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
1945
1946 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1947
1948         * lib/diffseq.h (EARLY_ABORT): New macro.
1949         (compareseq): Change return type to bool. Return true when EARLY_ABORT
1950         evaluates to true.
1951
1952 2008-09-14  Bruno Haible  <bruno@clisp.org>
1953
1954         * modules/perror-tests: New file.
1955         * tests/test-perror.sh: New file.
1956         * tests/test-perror.c: New file.
1957
1958         New module 'perror'.
1959         * lib/stdio.in.h (perror): New declaration.
1960         * lib/perror.c: New file.
1961         * m4/perror.m4: New file.
1962         * modules/perror: New file.
1963         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
1964         * doc/posix-functions/perror.texi: Mention the perror module.
1965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
1966         REPLACE_PERROR.
1967         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
1968         REPLACE_PERROR.
1969
1970 2008-09-14  Bruno Haible  <bruno@clisp.org>
1971
1972         * modules/stdio (Makefile.am): Reorder to match the order in
1973         lib/stdio.in.h.
1974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1975
1976 2008-09-13  Bruno Haible  <bruno@clisp.org>
1977
1978         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
1979
1980 2008-09-13  Bruno Haible  <bruno@clisp.org>
1981
1982         Extend strerror to cover the added errno values.
1983         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
1984         (rpl_strerror): Provide error messages for the added errno values and
1985         for the WSA* values.
1986         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
1987         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
1988         strerror.
1989         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
1990         * modules/strerror (Depends-on): Add errno.
1991         * doc/posix-functions/strerror.texi: Document the change.
1992         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
1993         and EOVERFLOW.
1994
1995 2008-09-13  Bruno Haible  <bruno@clisp.org>
1996
1997         * modules/EOVERFLOW: Remove file.
1998         * m4/eoverflow.m4: Remove file.
1999         * modules/EOVERFLOW-tests: Remove file.
2000         * tests/test-EOVERFLOW.c: Remove file.
2001         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
2002         * modules/ftell (Depends-on): Likewise.
2003         * modules/getdelim (Depends-on): Likewise.
2004         * modules/getugroups (Depends-on): Likewise.
2005         * modules/poll (Depends-on): Likewise.
2006         * modules/snprintf (Depends-on): Likewise.
2007         * modules/sprintf-posix (Depends-on): Likewise.
2008         * modules/vasnprintf (Depends-on): Likewise.
2009         * modules/vasprintf (Depends-on): Likewise.
2010         * modules/vfprintf-posix (Depends-on): Likewise.
2011         * modules/vsnprintf (Depends-on): Likewise.
2012         * modules/vsprintf-posix (Depends-on): Likewise.
2013         * modules/xvasprintf (Depends-on): Likewise.
2014         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2015         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
2016         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
2017         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
2018         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2019         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
2020         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
2021         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
2022         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2023         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
2024         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
2025         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
2026         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2027         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
2028         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
2029         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
2030         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2031         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
2032         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
2033         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
2034         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2035         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
2036         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
2037         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
2038         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
2039         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2040         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
2041         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
2042         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
2043         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
2044         * MODULES.html.sh: Remove EOVERFLOW.
2045         * NEWS: Mention the change.
2046
2047 2008-09-13  Bruno Haible  <bruno@clisp.org>
2048
2049         * modules/errno-tests: New file.
2050         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
2051
2052         * lib/errno.in.h: New file.
2053         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
2054         * modules/errno: New file.
2055         * doc/posix-headers/errno.texi: Update documentation.
2056         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
2057
2058 2008-09-13  Bruno Haible  <bruno@clisp.org>
2059
2060         * tests/test-poll.c: Use #if for native Windows, rather than testing
2061         __MSVCRT__.
2062
2063 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2064             Bruno Haible  <bruno@clisp.org>
2065
2066         * lib/glob.c: Don't include <pwd.h> on native Windows.
2067         (WINDOWS32): New macro.
2068         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
2069
2070 2008-09-13  Bruno Haible  <bruno@clisp.org>
2071
2072         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
2073         (ETIMEDOUT): Remove macro.
2074         (glthread_cond_timedwait_multithreaded): New declaration.
2075         (glthread_cond_timedwait): Use it.
2076         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
2077         (glthread_cond_timedwait_multithreaded): New function.
2078
2079 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2080
2081         * modules/poll-tests: Do not check for io.h.
2082         * tests/test-poll.c: Check for __MSVCRT__ instead.
2083
2084 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2085
2086         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
2087         * modules/poll-tests: Add inet_pton, stdbool, sockets.
2088         * tests/test-poll.c: Use them.  Use _pipe on Windows.
2089
2090 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2091
2092         * modules/poll-tests: New.
2093         * tests/test-poll.c: New.
2094
2095 2008-09-12  Eric Blake  <ebb9@byu.net>
2096
2097         frexp: test for NetBSD failure on -0.0
2098         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
2099         not all, bugs from NetBSD 3.0 have been fixed.
2100         * doc/posix-functions/frexp.texi (frexp): Document bug.
2101         Reported by Thomas Klausner.
2102
2103         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
2104         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
2105         literal -0.0.
2106         Reported by Jonathan C. Patschke <jp@centtech.com>.
2107
2108 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2109
2110         * lib/glthread/cond.h: Use dummy implementation also if
2111         USE_WIN32_THREADS.
2112
2113 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2114
2115         * modules/fnmatch-posix (License): Change to LGPLv2+.
2116         * modules/fnmatch-gnu (License): Likewise.
2117
2118 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2119
2120         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
2121
2122 2008-09-11  Jim Meyering  <meyering@redhat.com>
2123
2124         * users.txt: Add gtk-vnc.
2125
2126 2008-09-08  Simon Josefsson  <simon@josefsson.org>
2127
2128         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
2129         rotate amounts.
2130
2131         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
2132         required for 16-bit and 8-bit rotates.
2133         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
2134         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
2135         UINT8_MAX instead of hard-coded constants.
2136         Suggested by Paul Eggert.
2137
2138 2008-09-07  Bruno Haible  <bruno@clisp.org>
2139
2140         * tests/test-striconveh.c (main): Check behaviour when converting from
2141         UTF-7.
2142
2143         Make striconveh work better with stateful encodings.
2144         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
2145         that iconv does not increment the inptr when returning -1/EINVAL.
2146
2147 2008-09-07  Bruno Haible  <bruno@clisp.org>
2148
2149         * build-aux/config.rpath: Update according to libtool-2.2.6.
2150         * build-aux/config.libpath: Likewise.
2151
2152 2008-09-06  Bruno Haible  <bruno@clisp.org>
2153
2154         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
2155         * lib/freadptr.c (freadptr): Likewise.
2156         * lib/freadseek.c (freadptrinc): Likewise.
2157         Reported by Simon Josefsson.
2158
2159 2008-09-06  Bruno Haible  <bruno@clisp.org>
2160
2161         * modules/freadptr (License): Change to LGPLv2+.
2162         * modules/freadseek (License): Likewise.
2163         Suggested by Eric Blake.
2164
2165         * modules/memchr2 (License): Change to LGPLv2+.
2166         Approved by Eric Blake.
2167
2168 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2169             Bruno Haible  <bruno@clisp.org>
2170
2171         Make gnulib-tool work with native 'sed' on AIX.
2172         * gnulib-tool (sed_noop): New variable.
2173         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
2174         func_add_or_update, func_create_testdir): Use it to initialize sed
2175         script variables.
2176         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2177
2178 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
2179             Bruno Haible  <bruno@clisp.org>
2180
2181         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
2182         also works after #include directives.
2183
2184 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
2185
2186         getdate.y: reject an out-of-range timezone value
2187         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
2188         the range [-24...+24].  When specified with only one or two digits,
2189         * tests/test-getdate.c: Tests for the fix.
2190         * doc/getdate.texi: Document this change.
2191
2192 2008-09-03  Bruno Haible  <bruno@clisp.org>
2193
2194         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
2195
2196 2008-09-02  Simon Josefsson  <simon@josefsson.org>
2197
2198         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
2199         <bruce.korb@gmail.com> with ideas from Ben Pfaff
2200         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
2201         Blake <ebb9@byu.net>.
2202
2203         * tests/test-bitrotate.c: Add more test vectors.
2204
2205 2008-09-02  Eric Blake  <ebb9@byu.net>
2206
2207         vasnprintf-posix: handle large precision via %.*d
2208         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
2209         when handling it ourselves.
2210         * tests/test-vasnprintf-posix.c (test_function): Add test.
2211         * tests/test-snprintf-posix.h (test_function): Likewise.
2212         * tests/test-sprintf-posix.h (test_function): Likewise.
2213         * tests/test-vasprintf-posix.c (test_function): Likewise.
2214         Reported by Alain Guibert.
2215
2216 2008-09-01  Eric Blake  <ebb9@byu.net>
2217
2218         c-stack: make configure-time check more robust
2219         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
2220         successful sigaction call.
2221         Reported by Tom G. Christensen.
2222
2223 2008-09-01  Bruno Haible  <bruno@clisp.org>
2224
2225         New module 'findprog-lgpl'.
2226         * modules/findprog-lgpl: New file.
2227         * lib/findprog-lgpl.c: New file.
2228         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
2229         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
2230         to decide whether to use strdup or xstrdup, concatenated_filename or
2231         xconcatenated_filename.
2232
2233 2008-09-01  Bruno Haible  <bruno@clisp.org>
2234
2235         Split module 'concat-filename' into 'concat-filename' (LGPL) and
2236         'xconcat-filename' (GPL).
2237         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
2238         (License): Change to LGPLv2+.
2239         * modules/xconcat-filename: New file.
2240         * lib/concat-filename.h (concatenated_filename): Change specification.
2241         (xconcatenated_filename): New declaration.
2242         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
2243         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
2244         memory situations.
2245         * lib/xconcat-filename.c: New file.
2246         * NEWS: Mention the change.
2247         * lib/findprog.c: Include concat-filename.h, not filename.h.
2248         (find_in_path): Use xconcatenated_filename instead of
2249         concatenated_filename.
2250         * lib/javacomp.c: Include concat-filename.h, not filename.h.
2251         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
2252         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
2253         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
2254         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
2255         instead of concatenated_filename.
2256         * lib/javaexec.c: Include concat-filename.h, not filename.h.
2257         (execute_java_class): Use xconcatenated_filename instead of
2258         concatenated_filename.
2259         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
2260         * modules/javacomp (Depends-on): Likewise.
2261         * modules/javaexec (Depends-on): Likewise.
2262
2263 2008-09-01  Bruno Haible  <bruno@clisp.org>
2264
2265         Split module 'filename' into 'filename' and 'concat-filename'.
2266         * modules/filename: Keep only lib/filename.h.
2267         (License): Change to LGPLv2+.
2268         * modules/concat-filename: New file, extracted from modules/filename.
2269         * lib/filename.h (concatenated_filename): Remove declaration.
2270         * lib/concat-filename.h: New file, extracted from lib/filename.h.
2271         * lib/concat-filename.c: Include concat-filename.h.
2272         * NEWS: Mention the change.
2273
2274 2008-09-01  Simon Josefsson  <simon@josefsson.org>
2275
2276         * lib/bitrotate.h (rotl8, rotr8): Add.
2277
2278         * modules/bitrotate (configure.ac): Need
2279         AC_REQUIRE([AC_C_INLINE]).
2280         (Description): Mention stdint.h.  Reported by Bruno Haible
2281         <bruno@clisp.org>.
2282
2283         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
2284         Paolo Bonzini <bonzini@gnu.org>.
2285
2286 2008-08-31  Bruno Haible  <bruno@clisp.org>
2287
2288         Assume Solaris specific bi-arch conventions on Solaris systems.
2289         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
2290         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
2291         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
2292         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
2293         like acl_libdirstem.
2294         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
2295         acl_libdirstem.
2296         * NEWS: Mention the change.
2297         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
2298
2299 2008-08-31  Jim Meyering  <meyering@redhat.com>
2300
2301         * lib/strftime.h: Add comments describing the two added arguments.
2302
2303         remove duplicate #include directives
2304         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
2305         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
2306
2307 2008-08-31  Bruno Haible  <bruno@clisp.org>
2308
2309         New module 'sigpipe-die'.
2310         * modules/sigpipe-die: New file.
2311         * lib/sigpipe-die.h: New file.
2312         * lib/sigpipe-die.c: New file.
2313         * MODULES.html.sh (Signal handling): Add sigpipe-die.
2314
2315 2008-08-31  Bruno Haible  <bruno@clisp.org>
2316
2317         Don't override previously installed signal handlers.
2318         * lib/fatal-signal.c (saved_sigactions): New variable.
2319         (uninstall_handlers): Reset the signal to the saved handler, not
2320         to SIG_DFL (except when ignored).
2321         (install_handlers): Save the previous handlers.
2322
2323 2008-08-30  Bruno Haible  <bruno@clisp.org>
2324
2325         * gnulib-tool (func_reset_sigpipe): New function.
2326         (func_get_automake_snippet, func_modules_transitive_closure,
2327         func_import): Invoke it before a join command that reads from stdin,
2328         to avoid "echo: write error: Broken pipe" error messages on stderr.
2329         Reported by Sam Steingold <sds@gnu.org>.
2330
2331 2008-08-30  Bruno Haible  <bruno@clisp.org>
2332
2333         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
2334         Code copied from m4/open.m4.
2335         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
2336         access and the filename ends in a slash. Code copied from lib/open.c.
2337         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
2338         * tests/test-fopen.c (main): Check against bug with trailing slash.
2339
2340 2008-08-29  Bruno Haible  <bruno@clisp.org>
2341
2342         Avoid some "gcc -pedantic" warnings.
2343         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
2344         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
2345         * lib/dirent.in.h: Likewise.
2346         * lib/fcntl.in.h: Likewise.
2347         * lib/float.in.h: Likewise.
2348         * lib/iconv.in.h: Likewise.
2349         * lib/inttypes.in.h: Likewise.
2350         * lib/locale.in.h: Likewise.
2351         * lib/math.in.h: Likewise.
2352         * lib/netinet_in.in.h: Likewise.
2353         * lib/search.in.h: Likewise.
2354         * lib/signal.in.h: Likewise.
2355         * lib/stdarg.in.h: Likewise.
2356         * lib/stdint.in.h: Likewise.
2357         * lib/stdio.in.h: Likewise.
2358         * lib/stdlib.in.h: Likewise.
2359         * lib/string.in.h: Likewise.
2360         * lib/strings.in.h: Likewise.
2361         * lib/sys_select.in.h: Likewise.
2362         * lib/sys_socket.in.h: Likewise.
2363         * lib/sys_stat.in.h: Likewise.
2364         * lib/sys_time.in.h: Likewise.
2365         * lib/sysexits.in.h: Likewise.
2366         * lib/time.in.h: Likewise.
2367         * lib/unistd.in.h: Likewise.
2368         * lib/wchar.in.h: Likewise.
2369         * lib/wctype.in.h: Likewise.
2370         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
2371         * modules/fchdir (Makefile.am): Likewise.
2372         * modules/fcntl (Makefile.am): Likewise.
2373         * modules/float (Makefile.am): Likewise.
2374         * modules/iconv_open (Makefile.am): Likewise.
2375         * modules/inttypes (Makefile.am): Likewise.
2376         * modules/locale (Makefile.am): Likewise.
2377         * modules/math (Makefile.am): Likewise.
2378         * modules/netinet_in (Makefile.am): Likewise.
2379         * modules/search (Makefile.am): Likewise.
2380         * modules/signal (Makefile.am): Likewise.
2381         * modules/stdarg (Makefile.am): Likewise.
2382         * modules/stdint (Makefile.am): Likewise.
2383         * modules/stdio (Makefile.am): Likewise.
2384         * modules/stdlib (Makefile.am): Likewise.
2385         * modules/string (Makefile.am): Likewise.
2386         * modules/strings (Makefile.am): Likewise.
2387         * modules/sys_select (Makefile.am): Likewise.
2388         * modules/sys_socket (Makefile.am): Likewise.
2389         * modules/sys_stat (Makefile.am): Likewise.
2390         * modules/sys_time (Makefile.am): Likewise.
2391         * modules/sysexits (Makefile.am): Likewise.
2392         * modules/time (Makefile.am): Likewise.
2393         * modules/unistd (Makefile.am): Likewise.
2394         * modules/wchar (Makefile.am): Likewise.
2395         * modules/wctype (Makefile.am): Likewise.
2396         Reported by Reuben Thomas <rrt@sc3d.org>.
2397
2398 2008-08-29  Bruno Haible  <bruno@clisp.org>
2399
2400         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
2401         any more.
2402
2403 2008-08-29  Simon Josefsson  <simon@josefsson.org>
2404
2405         * MODULES.html.sh (Misc): Add bitrotate.
2406
2407         * modules/bitrotate: New file.
2408
2409         * lib/bitrotate.h: New file.
2410
2411         * modules/bitrotate-tests: New file.
2412
2413         * tests/test-bitrotate.c: New file.
2414
2415         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
2416         on the bitrotate module.
2417
2418         * lib/arctwo.c: Use new bitrotate module.
2419
2420 2008-08-29  Jim Meyering  <meyering@redhat.com>
2421
2422         bootstrap: merge changes from coreutils
2423         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
2424         of copied files.  Remove a kludge, now that this is fixed.
2425         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
2426         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
2427         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
2428
2429 2008-08-29  Bruno Haible  <bruno@clisp.org>
2430
2431         * MODULES.html.sh: Remove --cvs-urls option.
2432
2433 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
2434
2435         maint.mk: adjust to file name change
2436         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
2437
2438 2008-08-28  Jim Meyering  <meyering@redhat.com>
2439
2440         * modules/getndelim2 (License): Relicense to LGPLv2+.
2441         Approved by Richard Stallman for the version of 1995, and by
2442         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
2443
2444 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
2445
2446         * lib/getdelim.c (flockfile, funlockfile): Make all of them
2447         dummy if one is not available.  Do not touch them if
2448         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
2449         (getc_maybe_unlocked): New.
2450         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
2451
2452 2008-08-26  Eric Blake  <ebb9@byu.net>
2453
2454         doc/INSTALL: resync from autoconf
2455         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
2456         (INSTALL_PRELUDE): Delete; this is done more efficiently by
2457         moving...
2458         * install.texi [!autoconf]: ...here.  Resync from autoconf.
2459         * INSTALL: Regenerate.
2460         * INSTALL.ISO: New file.
2461         * INSTALL.UTF-8: Likewise.
2462
2463 2008-08-26  Jim Meyering  <meyering@redhat.com>
2464
2465         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
2466         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
2467         these definitions conditional, so that they may be overridden, too.
2468
2469 2008-08-26  Bruno Haible  <bruno@clisp.org>
2470
2471         Generate INSTALL file variants with prettier quotes.
2472         * doc/Makefile (INSTALL_PRELUDE): New macro.
2473         (INSTALL): Use it.
2474         (INSTALL.ISO, INSTALL.UTF-8): New rules.
2475
2476 2008-08-26  Bruno Haible  <bruno@clisp.org>
2477
2478         Run makeinfo in an English locale.
2479         * doc/Makefile (MAKEINFO): New variable.
2480
2481 2008-08-26  Bruno Haible  <bruno@clisp.org>
2482
2483         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
2484         Suggested by Eric Blake.
2485
2486 2008-08-25  Bruno Haible  <bruno@clisp.org>
2487
2488         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
2489
2490 2008-08-25  Eric Blake  <ebb9@byu.net>
2491
2492         c-stack: test that stack overflow can be caught
2493         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
2494         that platform allows handling stack overflow; at least OS/2 EMX
2495         has sigaltstack, but crashes before transferring control to
2496         handler on stack overflow.
2497         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
2498         check for HAVE_STACK_OVERFLOW_HANDLING.
2499         Reported by Elbert Pol.
2500
2501 2008-08-25  Bruno Haible  <bruno@clisp.org>
2502
2503         * doc/posix-functions/strftime.texi: Fix description of strftime
2504         module.
2505
2506 2008-08-24  Bruno Haible  <bruno@clisp.org>
2507
2508         * tests/uniwidth/test-uc_width2.c: New file.
2509         * tests/uniwidth/test-uc_width2.sh: New file.
2510         * modules/uniwidth/width-tests (Files): Add the new files.
2511         (TESTS): Add uniwidth/test-uc_width2.sh.
2512         (TESTS_ENVIRONMENT): New variable.
2513         (check_PROGRAMS): Add test-uc_width2.
2514         (test_uc_width2_SOURCES): New variable.
2515
2516         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
2517         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
2518         not 0x00AB.
2519         Reported by Alexander V. Lukyanov <lav@netis.ru>.
2520
2521 2008-08-22  Eric Blake  <ebb9@byu.net>
2522
2523         test-lock, test-tls: mention why a test is skipped
2524         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
2525         skipped.
2526         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
2527
2528         count-one-bits: relax license
2529         * modules/count-one-bits (License): Relicense to LGPLv2+.
2530         Suggested by Ludovic Courtès, approved by Ben Pfaff.
2531
2532 2008-08-22  Andreas Schwab  <schwab@suse.de>
2533
2534         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2535         Remove spurious space in assignment.
2536
2537 2008-08-21  Simon Josefsson  <simon@josefsson.org>
2538
2539         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
2540         Paul Eggert <eggert@CS.UCLA.EDU>.
2541
2542 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
2543
2544         * modules/gettext: Add m4/threadlib.m4.
2545
2546 2008-08-19  Eric Blake  <ebb9@byu.net>
2547
2548         test-c-stack: fix compilation failure on FreeBSD 5.0
2549         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
2550         headers before <sys/resource.h>.
2551         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
2552         the bug.
2553         Reported by Nelson H. F. Beebe.
2554
2555         strverscmp: migrate from "strverscmp.h" to <string.h>
2556         * modules/string (Makefile.am): Add new hooks.
2557         * modules/strverscmp (Files): Remove strverscmp.h.
2558         (Depends-on): Add string.
2559         (configure.ac): Add indicator.
2560         (Include): Mention new header.
2561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
2562         defaults.
2563         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
2564         results.
2565         * lib/strverscmp.h: Delete.
2566         * lib/string.in.h (strverscmp): Provide declaration, when needed.
2567         * tests/test-strverscmp.c (includes): Adjust client.
2568         * lib/check-version.c (includes): Likewise.
2569         * NEWS: Document the change.
2570
2571         strverscmp: add unit test
2572         * modules/strverscmp-tests: New file.
2573         * tests/test-strverscmp.c: Likewise.
2574
2575 2008-08-19  Simon Josefsson  <simon@josefsson.org>
2576
2577         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
2578         regarding Windows crypto stuff, from Mono.
2579
2580 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
2581
2582         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
2583         if present, for intel RND.  Return error on failures.
2584
2585 2008-08-18  Ben Pfaff  <blp@gnu.org>
2586
2587         gitlog-to-changelog: give better diagnostic for failed pipe-open
2588         * build-aux/gitlog-to-changelog: Improve error message: suggest
2589         that the version of Git may be too old.
2590
2591 2008-08-18  Simon Josefsson  <simon@josefsson.org>
2592
2593         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
2594         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
2595
2596 2008-08-18  Bruno Haible  <bruno@clisp.org>
2597
2598         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
2599         pthread_in_use().
2600
2601 2008-08-18  Bruno Haible  <bruno@clisp.org>
2602
2603         * lib/glthread/threadlib.c: Include <pthread.h>.
2604
2605 2008-08-18  Bruno Haible  <bruno@clisp.org>
2606
2607         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
2608         glthread_recursive_lock_* macros.
2609         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
2610         Fix syntax error.
2611
2612 2008-08-18  Bruno Haible  <bruno@clisp.org>
2613
2614         * lib/glthread/thread.c: Avoid forcing a context switch right after
2615         thread creation.
2616
2617 2008-08-17  Bruno Haible  <bruno@clisp.org>
2618
2619         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
2620         * lib/glthread/thread.h: Provide Win32 specific implementation.
2621         * modules/thread (Files): Add lib/glthread/thread.c.
2622         (Depends-on): Add lock.
2623         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
2624
2625 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2626
2627         New module 'yield'.
2628         * modules/yield: New file.
2629         * lib/glthread/yield.h: New file.
2630         * m4/yield.m4: New file.
2631         * MODULES.html.sh (Multithreading): Add yield.
2632
2633 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2634
2635         New module 'thread'.
2636         * modules/thread: New file.
2637         * lib/glthread/thread.h: New file.
2638         * m4/thread.m4: New file.
2639         * MODULES.html.sh (Multithreading): Add thread.
2640
2641 2008-08-17  Bruno Haible  <bruno@clisp.org>
2642
2643         * lib/glthread/lock.h: Include <stdlib.h> always.
2644         * lib/glthread/tls.h: Likewise.
2645         * lib/glthread/cond.h: Likewise.
2646
2647 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2648
2649         New module 'cond'.
2650         * modules/cond: New file.
2651         * lib/glthread/cond.h: New file.
2652         * lib/glthread/cond.c: New file.
2653         * m4/cond.m4: New file.
2654         * MODULES.html.sh (Multithreading): Add cond.
2655
2656 2008-08-16  Eric Blake  <ebb9@byu.net>
2657
2658         c-stack: fix regression on Irix 5.3 from 2008-06-21
2659         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
2660         sa_sigaction...
2661         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
2662         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
2663         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
2664         * modules/signal (Makefile.am): Use the value.
2665         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
2666         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
2667         * doc/posix-headers/signal.texi (signal.h): Document this
2668         portability issue.
2669         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
2670         Reported by Tom G. Christensen.
2671
2672 2008-08-17  Bruno Haible  <bruno@clisp.org>
2673
2674         New module 'threadlib'.
2675         * modules/threadlib: New file.
2676         * lib/glthread/threadlib.c: New file, extracted from
2677         lib/glthread/lock.c.
2678         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
2679         functions.
2680         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
2681         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
2682         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
2683         macros.
2684         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
2685         (gl_DISABLE_THREADS): Remove macro.
2686         * modules/lock (Files): Remove build-aux/config.rpath.
2687         (Depends-on): Remove havelib. Add threadlib.
2688         (configure.ac-early): Remove section.
2689         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
2690         * modules/tls (Depends-on): Remove lock. Add threadlib.
2691         (Link): New section, copied from threadlib.
2692         * MODULES.html.sh (Multithreading): Add threadlib.
2693
2694 2008-08-14  Bruno Haible  <bruno@clisp.org>
2695
2696         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
2697         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
2698         glthread_rwlock_unlock, glthread_rwlock_destroy,
2699         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
2700         glthread_recursive_lock_destroy): Define as macros always.
2701         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
2702         glthread_lock_lock.
2703         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
2704         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
2705         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
2706         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
2707         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
2708         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
2709         (glthread_recursive_lock_lock_func): Renamed from
2710         glthread_recursive_lock_lock.
2711         (glthread_recursive_lock_unlock_func): Renamed from
2712         glthread_recursive_lock_unlock.
2713         (glthread_recursive_lock_destroy_func): Renamed from
2714         glthread_recursive_lock_destroy.
2715
2716 2008-08-14  Bruno Haible  <bruno@clisp.org>
2717
2718         * lib/glthread/lock.h: Renamed from lib/lock.h.
2719         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
2720         * lib/glthread/tls.h: Renamed from lib/tls.h.
2721         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
2722         * lib/fstrcmp.c: Update includes.
2723         * lib/strsignal.c: Update includes.
2724         * modules/lock (Files, Makefile.am): Update.
2725         (Include): Change to "glthread/lock.h".
2726         * modules/tls (Files, Makefile.am): Update.
2727         (Include): Change to "glthread/tls.h".
2728         * tests/test-lock.c: Update includes.
2729         * tests/test-tls.c: Update includes.
2730         * NEWS: Mention the renamed header files.
2731
2732 2008-08-11  Jim Meyering  <meyering@redhat.com>
2733
2734         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
2735
2736 2008-08-11  Eric Blake  <ebb9@byu.net>
2737
2738         test-c-stack: avoid C99-ism
2739         * tests/test-c-stack.c (main): Fix whitespace, move declaration
2740         before statement.
2741         Reported by Alain Guibert.
2742
2743 2008-08-10  Jim Meyering  <meyering@redhat.com>
2744
2745         ensure that return value of uinttostr et al are not ignored
2746         * lib/inttostr.h (__GNUC_PREREQ): Define.
2747         (__attribute_warn_unused_result__): Define.
2748         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
2749
2750 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
2751
2752         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
2753         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
2754
2755 2008-08-07  Jim Meyering  <meyering@redhat.com>
2756
2757         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
2758
2759         * modules/mkstemp (License): Relicense under LGPLv2+.
2760         * modules/tempname (License): Likewise.
2761
2762 2008-08-06  Bruno Haible  <bruno@clisp.org>
2763
2764         * lib/poll.c (poll): Further micro-optimization.
2765
2766 2008-08-06  Jim Meyering  <meyering@redhat.com>
2767
2768         inet_pton.c: use locale-independent tolower
2769         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
2770         (inet_pton6): Use c_tolower rather than tolower.
2771         * modules/inet_pton (Depends-on): Add c-ctype.
2772
2773 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
2774
2775         * lib/poll.c (poll): Avoid division when timeout is 0, cache
2776         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
2777
2778 2008-08-06  Jim Meyering  <meyering@redhat.com>
2779
2780         * modules/inet_pton (License): Relicense under LGPLv2+.
2781
2782 2008-08-03  Bruno Haible  <bruno@clisp.org>
2783
2784         Additional non-aborting API for lock and tls.
2785         * lib/lock.h: Include <errno.h>.
2786         (glthread_lock_init): New macro/function.
2787         (gl_lock_init): Define as wrapper around glthread_lock_init.
2788         (glthread_lock_lock): New macro/function.
2789         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
2790         (glthread_lock_unlock): New macro/function.
2791         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
2792         (glthread_lock_destroy): New macro/function.
2793         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
2794         (glthread_rwlock_init): New macro/function.
2795         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
2796         (glthread_rwlock_rdlock): New macro/function.
2797         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
2798         (glthread_rwlock_wrlock): New macro/function.
2799         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
2800         (glthread_rwlock_unlock): New macro/function.
2801         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
2802         (glthread_rwlock_destroy): New macro/function.
2803         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
2804         (glthread_recursive_lock_init): New macro/function.
2805         (gl_recursive_lock_init): Define as wrapper around
2806         glthread_recursive_lock_init.
2807         (glthread_recursive_lock_lock): New macro/function.
2808         (gl_recursive_lock_lock): Define as wrapper around
2809         glthread_recursive_lock_lock.
2810         (glthread_recursive_lock_unlock): New macro/function.
2811         (gl_recursive_lock_unlock): Define as wrapper around
2812         glthread_recursive_lock_unlock.
2813         (glthread_recursive_lock_destroy): New macro/function.
2814         (gl_recursive_lock_destroy): Define as wrapper around
2815         glthread_recursive_lock_destroy.
2816         (glthread_once): New macro/function.
2817         (gl_once): Define as wrapper around glthread_once.
2818         Update function declarations.
2819         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
2820         glthread_rwlock_init. Return error code.
2821         (glthread_rwlock_rdlock_multithreaded): Renamed from
2822         glthread_rwlock_rdlock. Return error code.
2823         (glthread_rwlock_wrlock_multithreaded): Renamed from
2824         glthread_rwlock_wrlock. Return error code.
2825         (glthread_rwlock_unlock_multithreaded): Renamed from
2826         glthread_rwlock_unlock. Return error code.
2827         (glthread_rwlock_destroy_multithreaded): Renamed from
2828         glthread_rwlock_destroy. Return error code.
2829         (glthread_recursive_lock_init_multithreaded): Renamed from
2830         glthread_recursive_lock_init. Return error code.
2831         (glthread_recursive_lock_lock_multithreaded): Renamed from
2832         glthread_recursive_lock_lock. Return error code.
2833         (glthread_recursive_lock_unlock_multithreaded): Renamed from
2834         glthread_recursive_lock_unlock. Return error code.
2835         (glthread_recursive_lock_destroy_multithreaded): Renamed from
2836         glthread_recursive_lock_destroy. Return error code.
2837         (glthread_once_call): Make static.
2838         (glthread_once_multithreaded): Renamed from glthread_once.
2839         * lib/tls.h: Include <errno.h>.
2840         (glthread_tls_key_init): New macro/function.
2841         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
2842         (glthread_tls_set): New macro/function.
2843         (gl_tls_set): Define as wrapper around glthread_tls_set.
2844         (glthread_tls_key_destroy): New macro/function.
2845         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
2846         Update function declarations.
2847         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
2848         glthread_tls_get.
2849         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
2850
2851 2008-08-04  Eric Blake  <ebb9@byu.net>
2852
2853         gnumakefile: use space, not TAB, outside of targets
2854         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
2855
2856 2008-08-02  Jim Meyering  <meyering@redhat.com>
2857
2858         getdate.y: avoid locale-dependent date parsing failure
2859         In Turkish locales, getdate would fail to recognize keywords
2860         containing a lowercase "i".  The solution is not to rely on
2861         locale-sensitive case-conversion.
2862         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
2863         (lookup_word): Use c_toupper in place of toupper.
2864         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
2865         Reported by Vefa Bicakci <bicave@superonline.com> in
2866         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
2867         * modules/getdate (Depends-on): Add c-ctype.
2868
2869 2008-08-02  Bruno Haible  <bruno@clisp.org>
2870
2871         * gnulib-tool (func_import): When updating or creating a .gitignore
2872         file, prepend each added line with a slash, and ignore leading slashes
2873         from the existing lines.
2874         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
2875
2876 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2877
2878         Portability fix for GNU make 3.79.1.
2879         * top/GNUmakefile: Avoid 'else COND', which older GNU make
2880         versions do not understand.
2881
2882 2008-08-01  Bruno Haible  <bruno@clisp.org>
2883
2884         Work around bug of HP-UX 10.20 cc with -0.0 literal.
2885         * tests/test-isnanf.h (zero): New variable.
2886         (main): Avoid literal -0.0f.
2887         * tests/test-isnand.h (zero): New variable.
2888         (main): Avoid literal -0.0.
2889         * tests/test-isnanl.h (zero): New variable.
2890         (main): Avoid literal -0.0L.
2891         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
2892         (test_float, test_double, test_long_double): Avoid literals -0.0f,
2893         -0.0, -0.0L.
2894         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
2895         (test_signbitd): Avoid literal -0.0.
2896         (test_signbitl): Avoid literal -0.0L.
2897         * tests/test-ceilf1.c (zero): New variable.
2898         (main): Avoid literal -0.0f.
2899         * tests/test-ceill.c (zero): New variable.
2900         (main): Avoid literal -0.0L.
2901         * tests/test-floorf1.c (zero): New variable.
2902         (main): Avoid literal -0.0f.
2903         * tests/test-floorl.c (zero): New variable.
2904         (main): Avoid literal -0.0L.
2905         * tests/test-roundf1.c (zero): New variable.
2906         (main): Avoid literal -0.0f.
2907         * tests/test-round1.c (zero): New variable.
2908         (main): Avoid literal -0.0.
2909         * tests/test-roundl.c (zero): New variable.
2910         (main): Avoid literal -0.0L.
2911         * tests/test-truncf1.c (zero): New variable.
2912         (main): Avoid literal -0.0f.
2913         * tests/test-trunc1.c (zero): New variable.
2914         (main): Avoid literal -0.0.
2915         * tests/test-truncl.c (zero): New variable.
2916         (main): Avoid literal -0.0L.
2917         * tests/test-frexp.c (zero): New variable.
2918         (main): Avoid literal -0.0.
2919         * tests/test-frexpl.c (zero): New variable.
2920         (main): Avoid literal -0.0L.
2921         * tests/test-ldexpl.c (zero): New variable.
2922         (main): Avoid literal -0.0L.
2923         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2924         (zerod, zerol): New variables.
2925         (test_function): Avoid literals -0.0, -0.0L.
2926         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2927         (zerod, zerol): New variables.
2928         (test_function): Avoid literals -0.0, -0.0L.
2929         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2930         (zerod, zerol): New variables.
2931         (test_function): Avoid literals -0.0, -0.0L.
2932         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2933         (zerod, zerol): New variables.
2934         (test_function): Avoid literals -0.0, -0.0L.
2935         * tests/test-strtod.c (zero): New variable.
2936         (main): Avoid literal -0.0.
2937         Reported by Jonathan C. Patschke <jp@centtech.com>.
2938
2939 2008-07-31  Jim Meyering  <meyering@redhat.com>
2940
2941         sha256.h: correct definition of SHA224_DIGEST_SIZE
2942         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
2943         Reported by Paulie Pena IV <paulie4@gmail.com>.
2944         Define as 224 / 8, rather than as a literal.
2945         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
2946         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
2947         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
2948
2949 2008-07-31  Bruno Haible  <bruno@clisp.org>
2950
2951         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
2952         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
2953         Reported by Jonathan Patschke <jp@centtech.com>.
2954
2955 2008-07-31  Bruno Haible  <bruno@clisp.org>
2956
2957         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
2958         Reported by Paolo Bonzini <bonzini@gnu.org>.
2959
2960 2008-07-30  Eric Blake  <ebb9@byu.net>
2961
2962         test-strtod: allow compilation without -lm
2963         * tests/test-strtod.c (main): Avoid link dependence on fabs.
2964         Reported by Dennis Clarke <blastwave@gmail.com>.
2965
2966 2008-07-28  Jim Meyering  <meyering@redhat.com>
2967
2968         bootstrap: work also when there are no .po files in po/
2969         * build-aux/bootstrap (update_po_files): Complete the change
2970         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
2971
2972 2008-07-27  Jim Meyering  <meyering@redhat.com>
2973
2974         * users.txt: Add zile.
2975
2976 2008-07-26  Ben Pfaff  <blp@gnu.org>
2977
2978         Add missing dependencies on new m4/exponent[fdl].m4 files.
2979         * modules/isnanf-nolibm: Add m4/exponentf.m4.
2980         * modules/isnand-nolibm: Add m4/exponentd.m4.
2981         * modules/isnanl-nolibm: Add m4/exponentl.m4.
2982         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
2983         m4/isnan[fdl].m4, because the macros actually used moved.
2984         Reported by Jim Meyering.
2985
2986 2008-07-14  Ben Pfaff  <blp@gnu.org>
2987
2988         Add isinf module.
2989         * lib/isinf.c: New file.
2990         * lib/math.in.h: Define isinf macro if we have decided to replace
2991         it.
2992         * m4/isinf.m4: New file.
2993         * m4/math_h.m4: Initialize and substitute variables for isinf
2994         module.
2995         * modules/isinf: New file.
2996         * modules/isinf-tests: New file.
2997         * modules/math: Add substitutions for new module.
2998         * tests/test-isinf.c: New file.
2999         * doc/posix-functions/isinf.texi: Mention new module.
3000         * MODULES.html.sh: Mention new module.
3001
3002 2008-07-14  Ben Pfaff  <blp@gnu.org>
3003
3004         Factor out some macros for use by additional modules.
3005         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
3006         exponentf.m4.
3007         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
3008         exponentd.m4.
3009         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
3010         file exponentl.m4.
3011         * m4/exponentf.m4: New file.
3012         * m4/exponentd.m4: New file.
3013         * m4/exponentl.m4: New file.
3014         * modules/isnanf: Use new file m4/exponentf.m4.
3015         * modules/isnand: Use new file m4/exponentd.m4.
3016         * modules/isnanl: Use new file m4/exponentl.m4.
3017
3018 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
3019
3020         mktime.c: normalize tp->tm_isdst value to -1/0/1.
3021         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3022         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
3023         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
3024
3025         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
3026         readlink on platforms without PATH_MAX.
3027
3028 2008-07-21  Eric Blake  <ebb9@byu.net>
3029
3030         Warn, not fail, on stale version.
3031         * top/GNUmakefile (_curr-ver): Tone down previous patch.
3032
3033         Don't allow installation with stale devel version number.
3034         * top/GNUmakefile (_is-install-target): New macro.
3035         (_curr-ver): Forbid installation with stale version number.
3036
3037 2008-07-20  Bruno Haible  <bruno@clisp.org>
3038
3039         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
3040         TESTS_ENVIRONMENT.
3041         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
3042
3043 2008-07-20  Bruno Haible  <bruno@clisp.org>
3044
3045         * lib/c-stack.h (c_stack_action): Add documentation.
3046         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
3047
3048 2008-07-20  Bruno Haible  <bruno@clisp.org>
3049
3050         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
3051         * modules/readlink (License): Likewise.
3052
3053 2008-07-17  Eric Blake  <ebb9@byu.net>
3054
3055         * modules/c-stack (Link): Fix typo.
3056
3057         Make c-stack use libsigsegv, when available.
3058         * modules/c-stack (Depends-on): Add libsigsegv.
3059         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
3060         needed.
3061         * lib/c-stack.c (SIGSTKSZ): Define fallback.
3062         (segv_handler, overflow_handler, c_stack_action)
3063         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
3064         implementation when libsigsegv is available, but only when using
3065         the library is necessary.
3066         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
3067         comment, explaining why XSI check fails on Linux.
3068         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
3069         * tests/test-c-stack2.sh: Tweak skip message.
3070         * NEWS: Document new link-time requirements.
3071
3072 2008-07-16  Eric Blake  <ebb9@byu.net>
3073
3074         c-stack: Expose false positives when not using libsigsegv.
3075         * modules/c-stack-tests (Files): Expand test.
3076         * tests/test-c-stack.c (main): Add means to conditionally trigger
3077         non-overflow SIGSEGV.
3078         * tests/test-c-stack2.sh: New file.
3079
3080 2008-07-14  Bruno Haible  <bruno@clisp.org>
3081
3082         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
3083         Reported by Eric Blake.
3084
3085 2008-07-14  Sam Steingold  <sds@gnu.org>
3086             Bruno Haible  <bruno@clisp.org>
3087
3088         New module libsigsegv.
3089         * modules/libsigsegv: New file.
3090         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
3091         modifications.
3092         * MODULES.html.sh (Signal handling): New section.
3093
3094 2008-07-14  Bruno Haible  <bruno@clisp.org>
3095
3096         * modules/unictype/ctype-* (Description): Add the word "function".
3097         Improves the resulting doc in MODULES.html.
3098
3099 2008-07-12  Ben Pfaff  <blp@gnu.org>
3100
3101         Add longlong module.
3102         * modules/longlong: New file.
3103
3104 2008-07-12  Bruno Haible  <bruno@clisp.org>
3105
3106         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
3107         to empty.
3108
3109 2008-07-10  Ben Pfaff  <blp@gnu.org>
3110
3111         Add isnan module.
3112         * doc/posix-functions/isnan.texi: Mention new module.
3113         * lib/math.in.h: Define isnan macro if we have decided to replace
3114         it.
3115         * m4/isnan.m4: New file.
3116         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
3117         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
3118         also.
3119         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
3120         redundancy.
3121         * m4/math_h.m4: Initialize and substitute variables for isnan
3122         module.
3123         * modules/isnan: New file.
3124         * modules/isnan-tests: New file.
3125         * modules/math: Add substitutions for new module.
3126         * tests/test-isnan.c: New file.
3127         * MODULES.html.sh: Mention new module.
3128
3129 2008-07-10  Ben Pfaff  <blp@gnu.org>
3130
3131         Add isnanf module.
3132         * lib/isnanf.m4: New file.
3133         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
3134         (gl_HAVE_ISNANF_IN_LIBM): New macro.
3135         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
3136         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
3137         * modules/isnanf: New file.
3138         * modules/isnanf-tests: New file.
3139         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
3140         files.
3141         * tests/test-isnanf-nolibm.c: factored most of its contents into
3142         new file tests/test-isnanf.h.
3143         * tests/test-isnanf.h: New file.
3144         * tests/test-isnanf.c: New file.
3145         * MODULES.html.sh: Mention new module.
3146         * doc/glibc-functions/isnanf.texi: Mention new module.
3147
3148 2008-07-10  Ben Pfaff  <blp@gnu.org>
3149
3150         Add isnand module.
3151         * lib/isnand.h: New file.
3152         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
3153         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
3154         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
3155         functionality also.
3156         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
3157         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
3158         (gl_HAVE_ISNAND_IN_LIBM): New macro.
3159         * modules/isnand: New file.
3160         * modules/isnand-tests: New file.
3161         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
3162         files.
3163         * tests/test-isnand-nolibm.c: factored most of its contents into
3164         new file tests/test-isnand.h.
3165         * tests/test-isnand.h: New file.
3166         * tests/test-isnand.c: New file.
3167         * MODULES.html.sh: Mention new module.
3168
3169 2008-07-10  Ben Pfaff  <blp@gnu.org>
3170
3171         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
3172         * lib/isnand.h: Rename lib/isnand-nolibm.h.
3173         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
3174         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
3175         * modules/isnanf-nolibm: Update references to renamed files.
3176         * modules/isnand-nolibm: Likewise.
3177         * modules/isnanf-nolibm-tests: Likewise.
3178         * modules/isnand-nolibm-tests: Likewise.
3179         * lib/frexp.c: Likewise.
3180         * lib/isfinite.c: Likewise.
3181         * lib/signbitd.c: Likewise.
3182         * lib/signbitf.c: Likewise.
3183         * lib/vasnprintf.c: Likewise.
3184         * tests/test-ceilf1.c: Likewise.
3185         * tests/test-ceilf2.c: Likewise.
3186         * tests/test-floorf1.c: Likewise.
3187         * tests/test-floorf2.c: Likewise.
3188         * tests/test-frexp.c: Likewise.
3189         * tests/test-round1.c: Likewise.
3190         * tests/test-round2.c: Likewise.
3191         * tests/test-roundf1.c: Likewise.
3192         * tests/test-strtod.c: Likewise.
3193         * tests/test-trunc1.c: Likewise.
3194         * tests/test-trunc2.c: Likewise.
3195         * tests/test-truncf1.c: Likewise.
3196         * tests/test-truncf2.c: Likewise.
3197         * NEWS: Mention the renamed header files.
3198
3199 2008-07-11  Jim Meyering  <meyering@redhat.com>
3200
3201         vc-list-files: make the last-resort awk code more portable
3202         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
3203         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
3204         does not support it.
3205
3206 2008-07-10  Eric Blake  <ebb9@byu.net>
3207
3208         Work with tar's bootstrap.
3209         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
3210         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
3211         an m4 comment.
3212
3213 2008-07-09  Jim Meyering  <meyering@redhat.com>
3214
3215         posix-shell.m4: fix typo that made this test malfunction
3216         * m4/posix-shell.m4: Remove capitalization in variable name.
3217
3218 2008-07-08  Bruno Haible  <bruno@clisp.org>
3219
3220         * m4/onceonly.m4: Update comments.
3221         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3222
3223 2008-07-04  Jim Meyering  <meyering@redhat.com>
3224
3225         * users.txt: Add vc-dwim.
3226         (bison, coreutils): Use the gitweb URL.
3227
3228 2008-07-03  Jim Meyering  <meyering@redhat.com>
3229
3230         * users.txt: Add libffcall.  From Sam Steingold.
3231
3232 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
3233
3234         getdate.y: do not ignore TZ with relative day, month or year offset
3235         * lib/getdate.y (get_date): Move the tz-handling block to follow the
3236         relative-date-handling, since otherwise, the latter would clobber the
3237         sole output (an updated Start value) of the tz-handling block.
3238         * tests/test-getdate.c: Tests for the fix
3239
3240 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3241
3242         Recognize 'foo_LIBRARIES += libgnu.a'.
3243         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
3244         makefile snippet has already specified an installation location,
3245         also using '+='.
3246
3247 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
3248
3249         getdate.y: factor out common actions
3250         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
3251         Use them in place of open-coded actions.
3252
3253 2008-07-01  Simon Josefsson  <simon@josefsson.org>
3254
3255         Add self-test for getdate module.
3256         * modules/getdate-tests: New file.
3257         * tests/test-getdate.c: New file.
3258
3259 2008-06-29  Bruno Haible  <bruno@clisp.org>
3260
3261         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
3262         .gitignore.
3263         Reported by Sylvain Beucler <beuc@beuc.net>.
3264
3265 2008-06-29  Bruno Haible  <bruno@clisp.org>
3266
3267         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
3268         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
3269
3270 2008-06-29  Bruno Haible  <bruno@clisp.org>
3271
3272         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
3273         EXTRA_DIST.
3274         Reported by Sylvain Beucler <beuc@beuc.net>.
3275
3276 2008-06-26  Jim Meyering  <meyering@redhat.com>
3277
3278         make several modules depend on the "open" module
3279         This provides slightly increased consistency when opening-for-write
3280         the name of a non-directory spelled with a trailing slash.
3281         * modules/chdir-safer: Likewise.
3282         * modules/chown: Likewise.
3283         * modules/clean-temp: Likewise.
3284         * modules/copy-file: Likewise.
3285         * modules/fchdir: Likewise.
3286         * modules/fcntl-safer: Likewise.
3287         * modules/pipe: Likewise.
3288         * modules/utime: Likewise.
3289         Prompted by Eric Blake and Bruno Haible.
3290
3291 2008-06-24  Andreas Schwab  <schwab@suse.de>
3292
3293         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
3294         literals can be used as initializers for global variables.
3295
3296 2008-06-23  Eric Blake  <ebb9@byu.net>
3297
3298         Make gnulib-cache.m4 easier to diff.
3299         * gnulib-tool (func_import): Allow newlines when reading cached
3300         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
3301
3302 2008-06-23  Bruno Haible  <bruno@clisp.org>
3303
3304         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
3305         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
3306         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
3307         m4/signalblocking.m4.
3308         (gl_PREREQ_SIGACTION): Don't invoke it.
3309         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
3310         gl_PREREQ_SIG_HANDLER_H.
3311         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3312         Don't check for sigaction here.
3313
3314 2008-06-23  Bruno Haible  <bruno@clisp.org>
3315
3316         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
3317         (install_handlers): Don't set the SA_RESETHAND flag.
3318
3319 2008-06-23  Bruno Haible  <bruno@clisp.org>
3320
3321         * m4/sigaction.m4: Comment fixes.
3322         * lib/signal.in.h: Likewise.
3323
3324 2008-06-23  Eric Blake  <ebb9@byu.net>
3325
3326         Fix typo.
3327         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
3328
3329         Avoid SA_ namespace.
3330         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
3331         Reported by Ralf Wildenhues.
3332
3333         Avoid test failure due to SA_RESTORER.
3334         * tests/test-sigaction.c (SA_MASK): New macro.
3335         (main): Avoid failing due to extension flags being set.
3336         Reported by Jim Meyering.
3337
3338         Revert use of sig-handler.h in sigprocmask.c.
3339         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
3340         it requires the existence of struct sigaction.
3341         * lib/sigprocmask.c (handler_t): Restore typedef.
3342         (rpl_signal, old_handlers): Use local type.
3343
3344 2008-06-22  Bruno Haible  <bruno@clisp.org>
3345
3346         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
3347         conditionally.
3348         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3349
3350 2008-06-22  Bruno Haible  <bruno@clisp.org>
3351
3352         * doc/posix-functions/siginterrupt.texi: Move note.
3353
3354         * lib/signal.in.h (SA_RESTART): New macro.
3355         * lib/sigaction.c: Update comment.
3356
3357         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
3358
3359         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
3360         (gl_PREREQ_SIGPROCMASK): Invoke it.
3361         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
3362
3363         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
3364
3365         * lib/sigprocmask.c: Update a comment.
3366
3367 2008-06-21  Eric Blake  <ebb9@byu.net>
3368
3369         Use sigaction module rather than signal().
3370         * modules/c-stack (Depends-on): Add sigaction.
3371         * modules/fatal-signal (Depends-on): Likewise.
3372         * modules/nanosleep (Depends-on): Likewise.
3373         * modules/sigprocmask (Files): Add sig-handler.h.
3374         * modules/sigaction (Files): Likewise.
3375         * lib/sig-handler.h (get_handler): New file, suggested by Paul
3376         Eggert.
3377         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
3378         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
3379         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3380         (init_fatal_signals): Likewise.
3381         * lib/nanosleep.c (rpl_nanosleep): Likewise.
3382         (siginterrupt): Delete fallback.
3383         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
3384         instead.
3385         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
3386         siginterrupt.
3387
3388         New module sigaction, for mingw.
3389         * modules/sigaction: New module...
3390         * modules/sigaction-tests: ...and its test.
3391         * m4/sigaction.m4: New file.
3392         * lib/sigaction.c: Likewise.
3393         * tests/test-sigaction.c: Likewise.
3394         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
3395         * modules/signal (Makefile.am): Likewise.
3396         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
3397         needed.
3398         * doc/posix-headers/signal.texi (signal.h): Mention provided
3399         types.
3400         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
3401         that sigaction is preferable.
3402         * doc/posix-functions/sigaction.texi (sigaction): Mention new
3403         module.
3404         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3405         sigaction.
3406
3407         Improve robustness of sigprocmask by overriding signal.
3408         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
3409         is in use.
3410         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
3411         (SIGKILL, SIGSTOP): Provide fallbacks.
3412         (rpl_signal): Implement.
3413         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
3414         signal can be called inside handlers.
3415
3416         Fix nanosleep module on mingw.
3417         * modules/nanosleep (Depends-on): Add sys_select.
3418         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
3419
3420         Fix licensing of sigprocmask.
3421         * modules/raise (License): Relicense as LGPL.
3422
3423 2008-06-21  Bruno Haible  <bruno@clisp.org>
3424
3425         * lib/propername.c (proper_name_utf8): Don't use the transliterated
3426         result if it contains question marks.
3427         Reported by Michael Geng <linux@michaelgeng.de>.
3428
3429 2008-06-19  Bruno Haible  <bruno@clisp.org>
3430
3431         Fix CVS-ism.
3432         * doc/gnulib.texi: Include updated-stamp.texi.
3433         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
3434         (updated-stamp.texi): New rule.
3435         (gnulib.info): Depend on it.
3436         * doc/.gitignore: Add updated-stamp.texi.
3437         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
3438
3439 2008-06-19  Bruno Haible  <bruno@clisp.org>
3440
3441         * doc/Makefile (gnulib.info): Update and simplify dependencies.
3442         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3443
3444 2008-06-19  Eric Blake  <ebb9@byu.net>
3445
3446         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
3447         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
3448         Reported by Stepan Kasal.
3449
3450 2008-06-18  Bruno Haible  <bruno@clisp.org>
3451
3452         * lib/fatal-signal.c (init_fatal_signals): Add comment.
3453         Reported by Eric Blake.
3454
3455 2008-06-18  Eric Blake  <ebb9@byu.net>
3456
3457         Work around cygwin 1.5.25 strsignal bug.
3458         * tests/test-strsignal.c: Allow for const char *.
3459         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
3460
3461 2008-06-18  Simon Josefsson  <simon@josefsson.org>
3462
3463         * users.txt: Update URL to article and add author/date
3464         information.
3465
3466 2008-06-17  Bruno Haible  <bruno@clisp.org>
3467
3468         New macro gl_DISABLE_THREADS.
3469         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
3470         if the user did not pass --enable-threads or --disable-threads option.
3471         (gl_DISABLE_THREADS): New macro.
3472         Reported by Eric Blake <ebb9@byu.net>.
3473
3474 2008-06-17  Bruno Haible  <bruno@clisp.org>
3475
3476         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
3477         when the macro ignores it.
3478         Based on a patch by Eric Blake <ebb9@byu.net>.
3479
3480 2008-06-17  Bruno Haible  <bruno@clisp.org>
3481
3482         * modules/tls (License): Change to LGPLv2+.
3483         Reported by Eric Blake.
3484
3485 2008-06-17  Eric Blake  <ebb9@byu.net>
3486
3487         Simplify c-stack prerequisites.
3488         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
3489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
3490         no longer requires <ucontext.h> to exist.  Optimize setrlimit
3491         check.
3492         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
3493         <sys/resource.h>.
3494
3495         Move c-stack test into testsuite.
3496         * modules/c-stack-tests: New file.
3497         * lib/c-stack.c [DEBUG]: Move test program...
3498         * tests/test-c-stack.c: ...into this new file.  Skip rather than
3499         fail test if sigaltstack is lacking.
3500         * tests/test-c-stack.sh: New driver file.
3501
3502 2008-06-16  Eric Blake  <ebb9@byu.net>
3503
3504         Use raise module consistently.
3505         * modules/fatal-signal (Depends-on): Add raise.
3506         * modules/sigprocmask (Depends-on): Likewise.
3507         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
3508         * lib/sigprocmask.c (sigprocmask): Likewise.
3509         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3510         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
3511
3512         Fix compliance bug in sigpending.
3513         * lib/sigprocmask.c (sigpending): Return pending array via
3514         parameter, not return value.
3515
3516 2008-06-14  Eric Blake  <ebb9@byu.net>
3517
3518         Improve obstack-printf test code.
3519         * tests/test-obstack-printf.c (test_function): Fix comment, and
3520         simplify usage of obstack_* in macros.  Add a test for coverage.
3521         Reported by Bruno Haible.
3522
3523 2008-06-14  Bruno Haible  <bruno@clisp.org>
3524
3525         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
3526         array size as a constant, not as a const variable.
3527         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
3528         AC_USE_SYSTEM_EXTENSIONS.
3529         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3530         Test whether the obstack_printf function actually exists.
3531         * modules/obstack-printf (Depends-on): Add extensions.
3532         (Include): Remove obstack.h.
3533         * modules/obstack-printf-posix (Depends-on): Add extensions.
3534         (Include): Remove obstack.h.
3535
3536 2008-06-13  Eric Blake  <ebb9@byu.net>
3537
3538         Add obstack-printf and obstack-printf-posix modules.
3539         * modules/obstack-printf: New file.
3540         * modules/obstack-printf-posix: Likewise.
3541         * MODULES.html.sh (Misc): Mention them.
3542         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3543         Likewise.
3544         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3545         Likewise.
3546         * modules/stdio (Makefile.am): Accomodate new modules.
3547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3548         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
3549         Declare.
3550         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
3551         functions.
3552         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
3553         (gl_REPLACE_OBSTACK_PRINTF): New macros
3554         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
3555         * tests/test-obstack-printf.c: New file.
3556         * modules/obstack-printf-tests: Likewise.
3557         * modules/obstack-printf-posix-tests: Likewise.
3558
3559 2008-06-11  Bruno Haible  <bruno@clisp.org>
3560
3561         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
3562         * lib/open.c: Include errno.h.
3563         (open): Fail when attempting to write to a file that has a trailing
3564         slash.
3565         * tests/test-open.c (main): Test against trailing slash bug.
3566         * doc/posix-functions/open.texi: Mention the trailing slash bug.
3567
3568 2008-06-10  Bruno Haible  <bruno@clisp.org>
3569
3570         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
3571         for $? to work inside the trap command, with various /bin/sh-s.
3572         * tests/test-vc-list-files-cvs.sh: Likewise.
3573
3574 2008-06-10  Bruno Haible  <bruno@clisp.org>
3575
3576         * lib/acl-internal.h: Don't include gettext.h here.
3577         * lib/set-mode-acl.c: Include gettext.h here.
3578         * lib/copy-acl.c: Likewise.
3579
3580 2008-06-10  Bruno Haible  <bruno@clisp.org>
3581
3582         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
3583         * lib/wait-process.c (wait_subprocess): Likewise.
3584         * lib/execute.h (execute): Add termsigp argument.
3585         * lib/execute.c (execute): Likewise.
3586         * lib/csharpcomp.c (compile_csharp_using_pnet,
3587         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
3588         * lib/csharpexec.c (execute_csharp_using_pnet,
3589         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
3590         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
3591         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
3592         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
3593         is_jikes_present): Update.
3594         * lib/javaexec.c (execute_java_class): Update.
3595         * lib/javaversion.c (execute_and_read_line): Update.
3596         * NEWS: Document the changes.
3597         Reported by Eric Blake.
3598
3599 2008-06-10  Eric Blake  <ebb9@byu.net>
3600
3601         Add missing include.
3602         * tests/test-strstr.c (includes): Add <signal.h>.
3603         * tests/test-strcasestr.c (includes): Likewise.
3604         * tests/test-memmem.c (includes): Likewise.
3605
3606 2008-06-10  Bruno Haible  <bruno@clisp.org>
3607
3608         * lib/wait-process.c (wait_subprocess): Add an assertion.
3609
3610 2008-06-10  Bruno Haible  <bruno@clisp.org>
3611
3612         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
3613
3614 2008-06-10  Bruno Haible  <bruno@clisp.org>
3615
3616         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
3617         using alarm().
3618         * tests/test-strcasestr.c (main): Likewise.
3619         * tests/test-strstr.c (main): Likewise.
3620
3621 2008-06-09  Bruno Haible  <bruno@clisp.org>
3622
3623         Work around the Solaris 10 ACE ACLs ABI change.
3624         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
3625         declare if ACL_NO_TRIVIAL is present.
3626         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
3627         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
3628         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
3629         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
3630         define if ACL_NO_TRIVIAL is present.
3631         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
3632         and use the current ABI.
3633         (file_has_acl): Use same #if condition as elsewhere.
3634         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
3635         in use, and use the current ABI.
3636         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
3637         Reported by Jim Meyering.
3638
3639 2008-06-09  Eric Blake  <ebb9@byu.net>
3640
3641         Work around environments that (stupidly) ignore SIGALRM.
3642         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
3643         before using alarm().
3644         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3645         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3646         Reported by Ian Beckwith <ianb@erislabs.net>.
3647
3648         Produce autobuild blurb earlier in log.
3649         * modules/autobuild (configure.ac-early): Move AB_INIT here.
3650
3651 2008-06-09  Jim Meyering  <meyering@redhat.com>
3652         and OndÅ™ej Vašík  <ovasik@redhat.com>
3653
3654         utimens.c: correct kernel bug work-around
3655         OndÅ™ej Vašík found that the invalid return value of 280 indicates
3656         failure, not success, and the kernel bug we're trying to work
3657         around affects not just the utimensat call, but also the fallback
3658         futimens call.
3659         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
3660         not success.
3661         [HAVE_FUTIMENS]: Use the same work-around, here.
3662
3663 2008-06-09  Jim Meyering  <meyering@redhat.com>
3664
3665         add more guards around definition of ACE_-related code
3666         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
3667         ALLOW and ACE_OWNER are also defined.
3668
3669 2008-06-08  Bruno Haible  <bruno@clisp.org>
3670
3671         * lib/acl-internal.h: Add me as co-author.
3672         * lib/file-has-acl.c: Likewise.
3673         * lib/set-mode-acl.c: Likewise.
3674         * lib/copy-acl.c: Likewise.
3675
3676 2008-06-08  Bruno Haible  <bruno@clisp.org>
3677
3678         Add support for AIX ACLs.
3679         * lib/acl-internal.h (acl_nontrivial): New declaration.
3680         * lib/file-has-acl.c (acl_nontrivial): New function.
3681         (file_has_acl): Add implementation using AIX 4 ACL API.
3682         * lib/set-mode-acl.c (qset_acl): Likewise.
3683         * lib/copy-acl.c (qcopy_acl): Likewise.
3684
3685 2008-06-08  Bruno Haible  <bruno@clisp.org>
3686
3687         Add support for HP-UX ACLs.
3688         * lib/acl-internal.h (acl_nontrivial): New declaration.
3689         * lib/file-has-acl.c (acl_nontrivial): New function.
3690         (file_has_acl): Add implementation using HP-UX 11 ACL API.
3691         * lib/set-mode-acl.c (qset_acl): Likewise.
3692         * lib/copy-acl.c (qcopy_acl): Likewise.
3693
3694 2008-06-08  Bruno Haible  <bruno@clisp.org>
3695
3696         Add support for Cygwin ACLs.
3697         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
3698         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
3699         the chmod_or_fchmod call.
3700         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
3701
3702 2008-06-08  Bruno Haible  <bruno@clisp.org>
3703
3704         Fix bug with setuid modes in Solaris 10+ code.
3705         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
3706         succeeded, when the mode contains some special bits.
3707
3708 2008-06-08  Bruno Haible  <bruno@clisp.org>
3709
3710         Add support for Solaris 7..10 ACLs.
3711         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
3712         declarations.
3713         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
3714         functions.
3715         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
3716         * lib/set-mode-acl.c (qset_acl): Likewise.
3717         * lib/copy-acl.c (qcopy_acl): Likewise.
3718
3719 2008-06-08  Bruno Haible  <bruno@clisp.org>
3720
3721         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
3722         declaration.
3723         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
3724         (acl_access_nontrivial): Remove MacOS X case.
3725         (file_has_acl): Use acl_extended_nontrivial.
3726         * lib/copy-acl.c (qcopy_acl): Likewise.
3727
3728 2008-06-08  Bruno Haible  <bruno@clisp.org>
3729
3730         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
3731
3732 2008-06-08  Jim Meyering  <meyering@redhat.com>
3733
3734         * modules/acl (Maintainer): Add Bruno Haible.
3735
3736 2008-06-07  Bruno Haible  <bruno@clisp.org>
3737
3738         Improve support for Tru64 ACLs.
3739         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
3740         ACL on OSF/1.
3741
3742 2008-06-07  Bruno Haible  <bruno@clisp.org>
3743
3744         Add support for MacOS X ACLs.
3745         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
3746         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
3747         * lib/set-mode-acl.c (qset_acl): Likewise.
3748         * lib/copy-acl.c (qcopy_acl): Likewise.
3749
3750 2008-06-07  Bruno Haible  <bruno@clisp.org>
3751
3752         Fix memory leak introduced on 2008-05-22.
3753         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
3754         use.
3755
3756 2008-06-07  Bruno Haible  <bruno@clisp.org>
3757
3758         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
3759         to construct an empty ACL.
3760
3761 2008-06-07  Bruno Haible  <bruno@clisp.org>
3762
3763         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
3764         precisely.
3765         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
3766
3767 2008-06-07  Bruno Haible  <bruno@clisp.org>
3768
3769         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
3770         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
3771
3772 2008-06-07  Bruno Haible  <bruno@clisp.org>
3773
3774         * doc/posix-functions/_setjmp.texi: Explain the use of this function
3775         regardless of POSIX.
3776         * doc/posix-functions/_longjmp.texi: Likewise.
3777         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
3778         SystemV platform in this case.
3779
3780 2008-06-06  Eric Blake  <ebb9@byu.net>
3781
3782         Document abort() bugs.
3783         * doc/posix-functions/abort.texi (abort): Mention anomalies.
3784
3785         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
3786         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
3787         sigsetjmp.
3788         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
3789         siglongjmp, but only as a macro.
3790         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
3791         is obsolete.
3792         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
3793
3794         Tweak documentation to cover cygwin argz bugs.
3795         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
3796         argz bug fix; no code change needed since no cygwin releases
3797         occurred between the last fix and the bug being tested.
3798         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
3799         module and recently fixed cygwin bugs.
3800         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
3801         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
3802         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
3803         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
3804         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
3805         Likewise.
3806         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
3807         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
3808         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
3809         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
3810         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
3811         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
3812         Likewise.
3813
3814         Avoid gcc warning on cygwin.
3815         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
3816         !ACL_NO_TRIVIAL]: Avoid unused variable.
3817
3818 2008-06-05  Eric Blake  <ebb9@byu.net>
3819
3820         Be tolerant of UNKNOWN version in gnulib-tool test dir.
3821         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
3822         git-version-gen fails to come up with a version.
3823         Reported by Simon Josefsson.
3824
3825 2008-06-05  Jim Meyering  <meyering@redhat.com>
3826             Paul Eggert  <eggert@cs.ucla.edu>
3827
3828         utimens.c: work around a probable Linux kernel bug
3829         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
3830         appears to be a kernel bug that causes utimensat to return 280
3831         instead of 0, indicating success.
3832
3833 2008-06-04  Bruno Haible  <bruno@clisp.org>
3834
3835         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
3836         2008-06-01 commit.
3837
3838 2008-06-04  Bruno Haible  <bruno@clisp.org>
3839
3840         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
3841         * lib/file-has-acl.c (acl_access_nontrivial): New function.
3842         (file_has_acl): Use it. Save errno afterwards.
3843         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
3844
3845 2008-06-03  Bruno Haible  <bruno@clisp.org>
3846
3847         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
3848         draft code. Simplify #ifs.
3849         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
3850         Put Solaris code after POSIX-draft code. Fix comments regarding
3851         Solaris 10, HP-UX. Mention Cygwin.
3852         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
3853
3854 2008-06-03  Eric Blake  <ebb9@byu.net>
3855
3856         Provide fallback for older kernels.
3857         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
3858         Provide runtime fallback if kernel lacks support.
3859         Reported by Mike Frysinger.
3860
3861 2008-06-02  Bruno Haible  <bruno@clisp.org>
3862
3863         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
3864         it exists.
3865
3866 2008-06-02  Bruno Haible  <bruno@clisp.org>
3867
3868         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
3869         * lib/copy-acl.c (qcopy_acl): Update comment.
3870
3871 2008-06-02  Bruno Haible  <bruno@clisp.org>
3872
3873         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
3874         like ACL APIs.
3875
3876 2008-06-02  Bruno Haible  <bruno@clisp.org>
3877
3878         * tests/test-file-has-acl.sh: Use different code for Cygwin.
3879         * tests/test-set-mode-acl.sh: Likewise.
3880         * tests/test-copy-acl.sh: Likewise.
3881         * tests/test-copy-file.sh: Likewise.
3882
3883 2008-06-02  Bruno Haible  <bruno@clisp.org>
3884
3885         * tests/test-file-has-acl.sh: Remove unused code.
3886
3887 2008-06-01  Bruno Haible  <bruno@clisp.org>
3888
3889         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
3890         (copy_acl): Just a wrapper around qcopy_acl that emits the error
3891         messages.
3892         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
3893
3894 2008-06-01  Bruno Haible  <bruno@clisp.org>
3895
3896         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
3897         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
3898         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
3899         APIs.
3900         * modules/acl-tests (configure.ac): Remove tests now contained in
3901         m4/acl.m4.
3902
3903 2008-06-02  Jim Meyering  <meyering@redhat.com>
3904
3905         announce-gen: use a better key-server host name
3906         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
3907         it may be more consistently reliable.  Suggested by Werner Koch
3908         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
3909
3910 2008-06-01  Bruno Haible  <bruno@clisp.org>
3911
3912         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
3913         Reported by Voroskoi Andras <voroskoi@gmail.com>.
3914
3915 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
3916
3917         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
3918
3919 2008-06-01  Bruno Haible  <bruno@clisp.org>
3920
3921         New ACL tests.
3922         * tests/test-file-has-acl.sh: New file.
3923         * tests/test-file-has-acl.c: New file.
3924         * tests/test-set-mode-acl.sh: New file.
3925         * tests/test-set-mode-acl.c: New file.
3926         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
3927         * tests/test-copy-acl.c: New file.
3928         * modules/acl-tests: New file, based on modules/copy-file-tests.
3929         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
3930         (Depends-on): Add acl-tests.
3931         (configure.ac): Remove checks.
3932         (Makefile.am): Don't create test-sameacls program here any more.
3933
3934 2008-06-01  Bruno Haible  <bruno@clisp.org>
3935
3936         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
3937         * tests/test-sameacls.c: Include progname.h.
3938         (main): Invoke set_program_name. Portability fixes for MacOS X,
3939         Solaris, HP-UX.
3940
3941 2008-06-01  Bruno Haible  <bruno@clisp.org>
3942
3943         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
3944         function.
3945         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
3946
3947 2008-06-01  Bruno Haible  <bruno@clisp.org>
3948
3949         * modules/rpmatch (Depends-on): Add strdup.
3950
3951 2008-06-01  Bruno Haible  <bruno@clisp.org>
3952
3953         * lib/pipe.c: Include unistd-safer.h.
3954         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
3955         * modules/pipe (Depends-on): Add unistd-safer.
3956
3957 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3958
3959         * modules/autobuild (configure.ac): Call AB_INIT.
3960
3961 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3962
3963         * tests/test-getaddrinfo.c: Don't print debug messages by default.
3964         Suggested by Bruno Haible <bruno@clisp.org>.
3965
3966 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3967
3968         * tests/test-base64.c: Cast size_t to unsigned long when invoking
3969         printf.  Use %lu instead of %d.  Reported by Bruno Haible
3970         <bruno@clisp.org>.
3971
3972 2008-05-29  Eric Blake  <ebb9@byu.net>
3973
3974         Prefer new POSIX 200x interfaces over futimesat.
3975         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
3976         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
3977         when available.
3978         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
3979
3980 2008-05-28  Bruno Haible  <bruno@clisp.org>
3981
3982         * modules/stpcpy (License): Change to LGPLv2+.
3983         Requested by David Lutterkort <dlutter@redhat.com>.
3984
3985 2008-05-27  Bruno Haible  <bruno@clisp.org>
3986
3987         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
3988         current mingw.
3989         Reported by Jose E. Marchesi <jemarch@gnu.org>.
3990
3991 2008-05-27  Bruno Haible  <bruno@clisp.org>
3992
3993         * modules/iconv_open (Link): New section, from module 'iconv'.
3994         * modules/striconv (Link): Likewise.
3995         * modules/striconveh (Link): Likewise.
3996         * modules/xstriconv (Link): Likewise.
3997         * modules/unicodeio (Link): Likewise.
3998         * modules/propername (Link): Likewise.
3999         Reported by Jim Meyering.
4000
4001 2008-05-26  Jim Meyering  <meyering@redhat.com>
4002
4003         sha256: do not artificially restrict buffer length to be < 2^32
4004         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
4005         uint32_t to size_t.
4006         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
4007         to match.
4008
4009         avoid unaligned access errors, e.g., on sparc
4010         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
4011         direct access through a possibly-unaligned uint64* pointer.
4012         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
4013         direct access through a possibly-unaligned uint32* pointer.
4014         Prompted by this patch from Tom "spot" Callaway:
4015         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
4016
4017         sha512.c: fix typo in comment
4018         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
4019
4020 2008-05-25  Bruno Haible  <bruno@clisp.org>
4021
4022         * lib/set-mode-acl.c: Renamed from lib/acl.c.
4023         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
4024         (Makefile.am): Update lib_SOURCES.
4025
4026 2008-05-25  Bruno Haible  <bruno@clisp.org>
4027
4028         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
4029
4030 2008-05-25  Jim Meyering  <meyering@redhat.com>
4031
4032         useless-if-before-free: freed expr may have white-space differences
4033         * build-aux/useless-if-before-free: Recognize cases in which the
4034         freed expression differs from the tested one in embedded white
4035         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
4036         $1 was used, so we can't make any regexp shy.  Improved tests now
4037         detect this.
4038
4039         useless-if-before-free: accept white space in the expression.
4040         * build-aux/useless-if-before-free: For now, any white space
4041         in the expression must be identical in the free argument.
4042
4043         useless-if-before-free: efficiency tweak
4044         * build-aux/useless-if-before-free: Make the expression-matching
4045         regexp "shy".
4046         Make the *outer* regexp shy, not the expr-matching one.
4047
4048         update code-in-comment to accept cast of free arg
4049         * build-aux/useless-if-before-free: Update regexp.
4050
4051 2008-05-25  Bruno Haible  <bruno@clisp.org>
4052
4053         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
4054         * modules/copy-file-tests (Files, Makefile.am): Update.
4055         * tests/test-copy-file.c (func_test_copy): Update.
4056
4057 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
4058
4059         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
4060
4061 2008-05-23  Bruno Haible  <bruno@clisp.org>
4062
4063         Improve support for ACLs on OSF/1.
4064         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
4065         Remove fallback for unknown flavors of ACLs.
4066
4067 2008-05-22  Bruno Haible  <bruno@clisp.org>
4068
4069         Add support for ACLs on OSF/1.
4070         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
4071         replacements.
4072         (acl_free_text): New macro fallback.
4073         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
4074         acl_free.
4075         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
4076         acl_free_text function. Require AC_C_INLINE.
4077
4078 2008-05-22  Bruno Haible  <bruno@clisp.org>
4079
4080         Make copy_acl work on MacOS X 10.5.
4081         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
4082         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
4083         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
4084         If MODE_INSIDE_ACL, don't assume that every system has the same text
4085         representation for ACLs as FreeBSD.
4086         * lib/copy-acl.c (copy_acl): Add support for platforms with
4087         !MODE_INSIDE_ACL.
4088         * lib/file-has-acl.c (file_has_acl): Likewise.
4089         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
4090         FreeBSD, MacOS X, or IRIX, respectively.
4091
4092 2008-05-22  Bruno Haible  <bruno@clisp.org>
4093
4094         * lib/acl.h: Don't include <sys/acl.h>.
4095         (GETACLCNT): Move fallback to lib/acl-internal.h.
4096         * lib/acl-internal.h: Include <sys/acl.h> here.
4097         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
4098
4099 2008-05-22  Bruno Haible  <bruno@clisp.org>
4100
4101         Split off copy_acl function to separate file.
4102         * lib/copy-acl.c: New file, extracted from lib/acl.c.
4103         * lib/acl.c (copy_acl): Moved function to separate file.
4104         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
4105         * modules/acl (Files): Add lib/copy-acl.c.
4106         (Makefiles.am): Augment lib_SOURCES.
4107
4108 2008-05-22  Bruno Haible  <bruno@clisp.org>
4109
4110         * modules/copy-file-tests: New file.
4111         * tests/test-copy-file.sh: New file.
4112         * tests/test-copy-file.c: New file.
4113         * tests/test-copy-file-sameacls.c: New file.
4114
4115 2008-05-22  Eric Blake  <ebb9@byu.net>
4116
4117         Avoid gcc warning.
4118         * tests/test-memcmp.c (main): Pass NULL indirectly.
4119
4120 2008-05-21  Bruno Haible  <bruno@clisp.org>
4121
4122         Add reference doc about ACLs.
4123         * doc/acl-resources.txt: New file.
4124         * doc/acl-cygwin.txt: New file.
4125
4126 2008-05-21  Bruno Haible  <bruno@clisp.org>
4127
4128         Avoid one more warning from gcc.
4129         * lib/vasnprintf.c (IF_LINT): Update comments.
4130         (VASNPRINTF): Use it also for the 'prefix' array initializer.
4131
4132 2008-05-21  Jim Meyering  <meyering@redhat.com>
4133
4134         avoid a warning from gcc
4135         * lib/vasnprintf.c (IF_LINT): Define.
4136         (scale10_round_decimal_long_double):
4137         Use it to avoid a "may be used uninitialized" warning.
4138         (scale10_round_decimal_double): Likewise.
4139
4140 2008-05-21  Simon Josefsson  <simon@josefsson.org>
4141
4142         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
4143         declared.
4144
4145 2008-05-20  Bruno Haible  <bruno@clisp.org>
4146
4147         * tests/test-memcmp.c (main): Test also the sign of the result. Test
4148         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
4149
4150 2008-05-20  Simon Josefsson  <simon@josefsson.org>
4151
4152         * modules/memcmp-tests: New file.
4153         * tests/test-memcmp.c: New file.
4154
4155 2008-05-19  Bruno Haible  <bruno@clisp.org>
4156
4157         * modules/propername (Notice, configure.ac): Put quoted "..." into
4158         --keyword option.
4159         * lib/propername.h: Update comments accordingly.
4160         Reported by Eric Blake.
4161
4162 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
4163
4164         * modules/getpass-gnu (Depends-on): Add fseeko.
4165
4166 2008-05-19  Simon Josefsson  <simon@josefsson.org>
4167
4168         * modules/base64-tests: New file.
4169
4170 2008-05-19  Bo Borgerson <gigabo@gmail.com>
4171
4172         * lib/base64.c (base64_decode_ctx): If a decode context structure
4173         was passed in use it to ignore newlines.  If a context structure
4174         was _not_ passed in, continue to treat newlines as garbage (this
4175         is the historical behavior).  Formerly base64_decode.
4176         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
4177         takes a decode context structure.
4178         * lib/base64.h (base64_decode): Macro for four-argument calls.
4179         (base64_decode_alloc): Likewise.
4180         * lib/base64.c (base64_decode_ctx): If a decode context structure
4181         was passed in use it to ignore newlines.  If a context structure
4182         was _not_ passed in, continue to treat newlines as garbage (this
4183         is the historical behavior).  Formerly base64_decode.
4184         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
4185         takes a decode context structure.
4186         * lib/base64.h (base64_decode): Macro for four-argument calls.
4187         (base64_decode_alloc): Likewise.
4188
4189 2008-05-19  Jim Meyering  <meyering@redhat.com>
4190
4191         avoid a warning from gcc
4192         * lib/trim.c (IF_LINT): Define.
4193         (trim2): Use it to avoid a "may be used uninitialized" warning.
4194
4195         Fix doc typo.
4196         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
4197
4198 2008-05-19  Bruno Haible  <bruno@clisp.org>
4199
4200         * doc/glibc-functions/getpass.texi: Document limits of other
4201         implementations.
4202
4203 2008-05-19  Simon Josefsson  <simon@josefsson.org>
4204             Bruno Haible <bruno@clisp.org>
4205
4206         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
4207
4208 2008-05-18  Bruno Haible  <bruno@clisp.org>
4209
4210         * modules/propername: New file, from GNU gettext.
4211         * lib/propername.h: New file, from GNU gettext.
4212         * lib/propername.c: New file, from GNU gettext.
4213         * MODULES.html.sh (Internationalization functions): Add propername.
4214
4215 2008-05-16  Jim Meyering  <meyering@redhat.com>
4216             Bruno Haible  <bruno@clisp.org>
4217
4218         Avoid some warnings from "gcc -Wshadow".
4219         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
4220
4221 2008-05-15  Eric Blake  <ebb9@byu.net>
4222
4223         Extend previous patch to cygwin 1.7.0.
4224         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
4225         fast implementation in cygwin >= 1.7.0.
4226         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4228
4229 2008-05-15  Bruno Haible  <bruno@clisp.org>
4230
4231         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
4232         implementation in glibc >= 2.9.
4233         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4234         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4235
4236 2008-05-15  Bruno Haible  <bruno@clisp.org>
4237
4238         * MODULES.html.sh (Internationalization functions): Remove linebreak.
4239         (Unicode string functions): Add unilbrk/*.
4240         Reported by Karl Berry.
4241
4242 2008-05-15  Eric Blake  <ebb9@byu.net>
4243
4244         Fix violation of <stdbool.h> replacement in regex.
4245         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
4246         * lib/regexec.c (re_search_internal): Likewise.
4247         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
4248
4249 2008-05-15  Jim Meyering  <meyering@redhat.com>
4250
4251         avoid distracting test output when git or cvs is not found
4252         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
4253         * tests/test-vc-list-files-git.sh: Likewise.
4254
4255 2008-05-15  Eric Blake  <ebb9@byu.net>
4256
4257         Glibc finally accepted the memmem speedup code, bugzilla #5514.
4258         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
4259         glibc version.
4260         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4261         * doc/posix-functions/strstr.texi (strstr): Likewise.
4262         * lib/str-two-way.h (MAX): Sychronize with glibc.
4263
4264 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
4265
4266         * lib/regcomp.c (optimize_utf8): Add a note on why we test
4267         opr.ctx_type.
4268         (calc_first): Initialize constraint field.
4269         (duplicate_node_closure): Use it instead of special casing ANCHORS.
4270         Fix grammar.
4271         (duplicate_node): Merge constraint field for all node types.
4272         (calc_eclosure_iter): Look at constraint field for all node types.
4273         * lib/regex_internal.c (create_cd_newstate): Don't look at
4274         opr.ctx_type.
4275
4276 2008-05-14  Bruno Haible  <bruno@clisp.org>
4277
4278         Help GCC to do better code generation.
4279         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
4280         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
4281         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
4282         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
4283         Declare with attribute 'malloc' if supported.
4284
4285 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
4286
4287         use "echo STR|wc -c" rather than unportable "expr length STR"
4288         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
4289         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
4290
4291 2008-05-14  Jim Meyering  <meyering@redhat.com>
4292
4293         use dd ibs=$n count=1 ... rather than less-portable head -c$n
4294         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
4295         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
4296         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
4297         via Collin Lasse.
4298
4299 2008-05-14  Eric Blake  <ebb9@byu.net>
4300
4301         Avoid quadratic growth in gl_LIBSOURCES.
4302         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
4303         Suggested by Bruno Haible.
4304
4305         Test xmemdup0.
4306         * modules/xmemdup0-tests: New file.
4307         * tests/test-xmemdup0.c: Likewise.
4308
4309 2008-05-13  Eric Blake  <ebb9@byu.net>
4310
4311         Split xmemdup0 into its own module.
4312         * modules/xmemdup0: New file.
4313         * lib/xmemdup0.h: Likewise.
4314         * lib/xmemdup0.c: Likewise.
4315         * MODULES.html.sh (Memory management functions): Add xmemdup0.
4316         * lib/xalloc.h (xmemdup0): Remove.
4317         * lib/xmalloc.c (xmemdup0): Likewise.
4318
4319 2008-05-13  Eric Blake  <ebb9@byu.net>
4320             Bruno Haible  <bruno@clisp.org>
4321
4322         Reduce number of forks required during autoconf.
4323         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
4324         and gl_LIBSOURCES_DIR.
4325         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
4326         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
4327         m4_syscmd per file.
4328         <m4_foreach_w>: Move...
4329         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
4330
4331 2008-05-13  Eric Blake  <ebb9@byu.net>
4332
4333         * gnulib-tool: Fix various comment typos.
4334
4335 2008-05-12  Bruno Haible  <bruno@clisp.org>
4336
4337         Tailor the linebreaking algorithm.
4338         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
4339
4340 2008-05-12  Bruno Haible  <bruno@clisp.org>
4341
4342         Update to Unicode 5.0.0.
4343         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4344         LBP_JV, LBP_JT. Redistribute values.
4345         (unilbrk_table): Change size.
4346         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
4347         Unicode TR#14 rev. 22.
4348         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4349         LBP_JV, LBP_JT. Redistribute values.
4350         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
4351         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
4352         Update.
4353         * lib/unilbrk/lbrkprop1.h: Regenerated.
4354         * lib/unilbrk/lbrkprop2.h: Regenerated.
4355         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
4356         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
4357         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
4358         Likewise.
4359         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
4360         Likewise.
4361         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
4362         result.
4363         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4364         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4365         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4366         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
4367         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
4368         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
4369
4370 2008-05-11  Bruno Haible  <bruno@clisp.org>
4371
4372         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
4373
4374 2008-05-11  Bruno Haible  <bruno@clisp.org>
4375
4376         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
4377         * modules/unilbrk/gen-lbrk: New file.
4378
4379 2008-05-11  Bruno Haible  <bruno@clisp.org>
4380
4381         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
4382         * m4/sha512.m4 (gl_SHA512): Likewise.
4383
4384 2008-05-11  Jim Meyering  <meyering@redhat.com>
4385
4386         New modules: crypto/sha256, crypto/sha512 (from coreutils)
4387         * modules/crypto/sha256: New file.
4388         * modules/crypto/sha512: Likewise.
4389         * lib/sha256.c: Likewise.
4390         * lib/sha256.h: Likewise.
4391         * lib/sha512.c: Likewise.
4392         * lib/sha512.h: Likewise.
4393         * lib/u64.h: Likewise.
4394         * m4/sha256.m4: Likewise.
4395         * m4/sha512.m4: Likewise.
4396         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
4397
4398 2008-05-10  Bruno Haible  <bruno@clisp.org>
4399
4400         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
4401         (Input/Output <stdio.h>): Add xprintf.
4402         (Signal handling <signal.h>): Add strsignal.
4403         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
4404         (Core language properties): Add func.
4405         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
4406         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
4407         strings.
4408         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
4409         (Input/output): New section.
4410         (File system functions): Add openat-die, stat-macros.
4411         (Networking functions): Add sockets.
4412         (Unicode string functions): Add unictype/*.
4413         (Support for building libraries and executables): Add gperf.
4414         (Support for building documentation): Add agpl-3.0.
4415         (Misc): Add nocrash.
4416
4417 2008-05-10  Bruno Haible  <bruno@clisp.org>
4418
4419         * modules/unictype/gen-ctype: New file.
4420
4421 2008-05-10  Jim Meyering  <meyering@redhat.com>
4422
4423         Make chdir-safer.c more efficient on a system with no symlinks.
4424         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
4425         also if ELOOP is zero.  Suggested by Bruno Haible.
4426
4427         Make chdir-safer.c slightly safer.
4428         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
4429         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
4430
4431         Avoid compile failure on systems without ELOOP (like mingw).
4432         * lib/chdir-safer.c (ELOOP): Define if not already defined.
4433         Reported by Bruno Haible.
4434
4435 2008-05-10  Bruno Haible  <bruno@clisp.org>
4436
4437         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
4438         (is_utf8_encoding): Use a case-insensitive comparison.
4439         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
4440         streq.
4441
4442 2008-05-10  Bruno Haible  <bruno@clisp.org>
4443
4444         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
4445         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
4446         * lib/unilbrk/ulc-common.h (iconv_string_length,
4447         iconv_string_keeping_offsets): Remove declarations.
4448         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
4449         Don't include <iconv.h>, streq.h, xsize.h.
4450         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
4451         conversion.
4452         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
4453         <iconv.h>, streq.h, xsize.h.
4454         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
4455         conversion.
4456         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
4457         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
4458         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
4459         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
4460
4461 2008-05-10  Bruno Haible  <bruno@clisp.org>
4462
4463         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
4464         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
4465
4466         * modules/unilbrk/u32-width-linebreaks-tests: New file.
4467         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
4468
4469         * modules/unilbrk/u16-width-linebreaks-tests: New file.
4470         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
4471
4472         * modules/unilbrk/u8-width-linebreaks-tests: New file.
4473         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
4474
4475         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
4476         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
4477
4478         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
4479         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
4480
4481         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
4482         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
4483
4484         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
4485         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
4486
4487 2008-05-10  Bruno Haible  <bruno@clisp.org>
4488
4489         Split up 'linebreak' module.
4490         * lib/unilbrk.h: New file, based on lib/linebreak.h.
4491         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
4492         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
4493         modifications.
4494         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
4495         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
4496         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
4497         lib/linebreak.c.
4498         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
4499         lib/linebreak.c.
4500         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
4501         lib/linebreak.c.
4502         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
4503         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
4504         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
4505         lib/linebreak.c.
4506         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
4507         lib/linebreak.c.
4508         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
4509         lib/linebreak.c.
4510         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
4511         lib/linebreak.c.
4512         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
4513         lib/linebreak.c.
4514         * modules/unilbrk/base: New file.
4515         * modules/unilbrk/tables: New file.
4516         * modules/unilbrk/u8-possible-linebreaks: New file.
4517         * modules/unilbrk/u16-possible-linebreaks: New file.
4518         * modules/unilbrk/u32-possible-linebreaks: New file.
4519         * modules/unilbrk/ulc-common: New file.
4520         * modules/unilbrk/ulc-possible-linebreaks: New file.
4521         * modules/unilbrk/u8-width-linebreaks: New file.
4522         * modules/unilbrk/u16-width-linebreaks: New file.
4523         * modules/unilbrk/u32-width-linebreaks: New file.
4524         * modules/unilbrk/ulc-width-linebreaks: New file.
4525         * lib/linebreak.h: Remove file.
4526         * lib/linebreak.c: Remove file.
4527         * m4/linebreak.m4: Remove file.
4528         * modules/linebreak: Remove file.
4529         * NEWS: Mention the changes.
4530
4531 2008-05-09  Eric Blake  <ebb9@byu.net>
4532
4533         Add xmemdup0.
4534         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
4535         implementation.
4536         * lib/xmalloc.c (xmemdup0): New C implementation.
4537
4538 2008-05-08  Bruno Haible  <bruno@clisp.org>
4539
4540         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
4541
4542 2008-05-07  Eric Blake  <ebb9@byu.net>
4543
4544         Support cross-compilation of <wctype.h>.
4545         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
4546         AC_CACHE_CHECK.
4547
4548 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
4549
4550         * build-aux/vc-list-files: Add support for bzr.
4551
4552 2008-05-03  Jim Meyering  <meyering@redhat.com>
4553
4554         avoid failed assertion with tight malloc
4555         * tests/test-getndelim2.c: Correct an off-by-one assertion.
4556
4557 2008-05-03  Simon Josefsson  <simon@josefsson.org>
4558
4559         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
4560         are needed from arpa/inet.h.
4561         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
4562         Reported by Bruno Haible.
4563
4564 2008-05-02  Jim Meyering  <meyering@redhat.com>
4565
4566         avoid compilation error on FreeBSD 6
4567         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
4568
4569 2008-05-01  Jim Meyering  <meyering@redhat.com>
4570
4571         useless-if-before-free: correct --help's exit status description
4572         * build-aux/useless-if-before-free (usage): Like grep, exit 0
4573         for one or more matches, etc.  Reported by Bruno Haible.
4574
4575         vc-list-files: make the stand-alone gnulib test work
4576         * modules/vc-list-files-tests (configure.ac):
4577         Define and AC_SUBST abs_aux_dir.
4578         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
4579         $(abs_top_srcdir) to each script and having each of them
4580         duplicate the work of setting PATH, set PATH here, using
4581         the new variable, abs_aux_dir instead.
4582         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
4583         * tests/test-vc-list-files-git.sh: Likewise.
4584         Reported by Bruno Haible.
4585
4586 2008-05-01  Bruno Haible  <bruno@clisp.org>
4587
4588         * lib/getndelim2.c (getndelim2): Fix newsize computation during
4589         reallocation. Rename 'done' to 'found_delimiter'.
4590
4591 2008-05-01  Jim Meyering  <meyering@redhat.com>
4592
4593         vc-list-files: accommodate /bin/sh like the one from Solaris 10
4594         * build-aux/vc-list-files: Use `...`, not $(...).
4595
4596 2008-04-30  Jim Meyering  <meyering@redhat.com>
4597
4598         add tests for vc-list-files
4599         * modules/vc-list-files-tests: New module.
4600         * tests/test-vc-list-files-cvs.sh: New file.
4601         * tests/test-vc-list-files-git.sh: New file.
4602
4603         avoid a warning from gcc
4604         * lib/getndelim2.c (IF_LINT): Define.
4605         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
4606
4607         vc-list-files: work properly with build-aux/cvsu, too
4608         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
4609         to all cvs-based clauses.
4610
4611         vc-list-files: work properly in the CVS+awk case, too
4612         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
4613
4614         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
4615         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
4616         take more than one file argument, so .  Add quotes, just in case $dir
4617         ever contains a shell meta-character.  Prompted by Soren Hansen in
4618         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
4619
4620 2008-04-29  Eric Blake  <ebb9@byu.net>
4621
4622         Optimize getndelim2 to use block operations when possible.
4623         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
4624         freadseek, and memchr2.
4625         * lib/getndelim2.c (getndelim2): Use them for block reads.
4626
4627 2008-04-29  Bruno Haible  <bruno@clisp.org>
4628
4629         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
4630         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4631         * modules/inet_ntop (Depends-on): Add extensions.
4632         * modules/inet_pton (Depends-on): Likewise.
4633         Reported by Simon Josefsson.
4634
4635 2008-04-29  Jim Meyering  <meyering@redhat.com>
4636
4637         When the is more than one match in a block, match all of them.
4638         * build-aux/useless-if-before-free: Iterate through each block
4639         until there are no more matches.
4640
4641         Fix broken useless-if-before-free script.
4642         * build-aux/useless-if-before-free: Fix typo: missing "?" after
4643         the expression to match cast of argument to free-like function.
4644
4645 2008-04-29  Eric Blake  <ebb9@byu.net>
4646
4647         Use new header.
4648         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
4649
4650 2008-04-29  Jim Meyering  <meyering@redhat.com>
4651
4652         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
4653         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
4654         by gnulib to exist and to declare e.g., inet_ntop.
4655         Don't include "inet_ntop.h", now removed.
4656
4657         * m4/arpa_inet_h.m4: Remove trailing blanks.
4658
4659 2008-04-29  Eric Blake  <ebb9@byu.net>
4660
4661         Silence valgrind on safe reads beyond potential array bounds.
4662         * lib/rawmemchr.valgrind: New file.
4663         * lib/strchrnul.valgrind: Likewise.
4664         * modules/rawmemchr (Files): Distribute new file.
4665         * modules/strchrnul (Files): Likewise.
4666         Suggested by Bruno Haible.
4667
4668 2008-04-29  Bruno Haible  <bruno@clisp.org>
4669
4670         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
4671         (inet_ntop, inet_pton): Change portability warning's wording.
4672         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
4673         Invoke gl_CHECK_NEXT_HEADERS.
4674         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
4675         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
4676         set ARPA_INET_H.
4677         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4678         * modules/arpa_inet (Description): No longer only for systems that
4679         lack it.
4680         (Depends-on): Add include_next.
4681         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
4682         HAVE_ARPA_INET_H.
4683
4684 2008-04-29  Jim Meyering  <meyering@redhat.com>
4685
4686         * modules/mkdir (License): Re-license as LGPLv2+.
4687
4688 2008-04-29  Bruno Haible  <bruno@clisp.org>
4689
4690         * modules/rawmemchr (Maintainer): Set to Eric.
4691         * modules/strchrnul (Maintainer): Likewise.
4692
4693 2008-04-29  Simon Josefsson  <simon@josefsson.org>
4694
4695         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
4696         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
4697
4698         * modules/arpa_inet (arpa/inet.h): Use them.
4699
4700 2008-04-28  Eric Blake  <ebb9@byu.net>
4701
4702         Test getndelim2.
4703         * modules/getndelim2-tests: New file.
4704         * tests/test-getndelim2.c: Likewise.
4705         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
4706         stream.
4707         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
4708
4709         * MODULES.html.sh: Document new module.
4710
4711 2008-04-20  Bruno Haible  <bruno@clisp.org>
4712
4713         * lib/c-stack.c (die): Use raise.
4714         * modules/c-stack (Depends-on): Add raise.
4715
4716 2008-04-28  Bruno Haible  <bruno@clisp.org>
4717
4718         Expect rpmatch to be declared.
4719         * lib/yesno.c (rpmatch): Remove declaration.
4720
4721         Declare rpmatch.
4722         * lib/stdlib.in.h (rpmatch): New declaration.
4723         * lib/rpmatch.c: Include <stdlib.h> first.
4724         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
4725         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
4726         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
4727         HAVE_RPMATCH.
4728         * modules/rpmatch (Depends-on): Add stdlib, extensions.
4729         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4730         (Include): Set to <stdlib.h>.
4731         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
4732         HAVE_RPMATCH.
4733         * NEWS: Document the change.
4734
4735 2008-04-28  Bruno Haible  <bruno@clisp.org>
4736
4737         Change rpmatch to use nl_langinfo when appropriate.
4738         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
4739         (N_): New macro.
4740         (localized_pattern): New function/macro.
4741         (try): Remove match, nomatch arguments. Copy the pattern into safe
4742         memory before caching it.
4743         (rpmatch): Use localized_pattern. Add translator comments.
4744         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
4745         Suggested by Eric Blake.
4746         * modules/rpmatch (Depends-on): Add stdbool.
4747
4748 2008-04-28  Eric Blake  <ebb9@byu.net>
4749
4750         Add rawmemchr module, matching glibc.
4751         * modules/string (Makefile.am): New indicator.
4752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
4753         * lib/string.in.h (rawmemchr): Declare when appropriate.
4754         * modules/rawmemchr: New file.
4755         * m4/rawmemchr.m4: Likewise.
4756         * lib/rawmemchr.c: Likewise.
4757         * modules/rawmemchr-tests: Likewise.
4758         * tests/test-rawmemchr.c: Likewise.
4759         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
4760         module.
4761         * modules/strchrnul (Depends-on): Add rawmemchr.
4762         * lib/strchrnul.c (strchrnul): Optimize a corner case.
4763
4764         Whitespace cleanup.
4765         * tests/test-strchrnul.c: Reindent.
4766         * lib/strchrnul.c: Likewise.
4767
4768         Optimize and test strchrnul.
4769         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
4770         * modules/strchrnul-tests: New file.
4771         * tests/test-strchrnul.c: Likewise.
4772
4773         Remove intprops dependency.
4774         * modules/memchr (Depends-on): Remove intprops.
4775         * modules/memrchr (Depends-on): Likewise.
4776         * modules/memchr2 (Depends-on): Likewise.
4777         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
4778         * lib/memrchr.c (__memrchr): Likewise.
4779         * lib/memrchr2.c (memchr2): Likewise.
4780         Reported by Simon Josefsson.
4781
4782 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4783
4784         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
4785         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4786
4787 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4788
4789         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
4790
4791         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
4792
4793         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
4794
4795         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
4796         declarations.
4797         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
4798
4799         * m4/inet_pton.m4: Don't check for header files.
4800
4801         * m4/inet_ntop.m4: Don't check for header files.
4802
4803 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4804
4805         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
4806         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
4807         trigger for cygwin).
4808         Reported by Bruno Haible  <bruno@clisp.org>.
4809
4810 2008-04-28  Bruno Haible  <bruno@clisp.org>
4811
4812         * doc/posix-functions/strdup.texi: Mention mingw problem.
4813
4814 2008-04-27  Bruno Haible  <bruno@clisp.org>
4815
4816         * modules/stat-time-tests (Depends-on): Add sleep.
4817         * tests/test-stat-time.c (force_unlink): New function.
4818         (cleanup): Use it.
4819         (test_mtime): Remove the ctime related tests.
4820         (test_ctime): New function, containing the ctime related tests.
4821         (main): Call test_ctime, except on native Windows platforms.
4822
4823 2008-04-27  Bruno Haible  <bruno@clisp.org>
4824
4825         * lib/rpmatch.c (rpmatch): Add some comments.
4826         Reported by James Youngman <jay@gnu.org>.
4827
4828 2008-04-27  Bruno Haible  <bruno@clisp.org>
4829
4830         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
4831         quiet NaNs.
4832
4833 2008-04-27  Bruno Haible  <bruno@clisp.org>
4834
4835         Make test-yesno.sh work on mingw.
4836         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
4837         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
4838         (main): Set stdin to binary mode.
4839         * modules/yesno-tests (Depends-on): Add binary-io.
4840
4841 2008-04-27  Bruno Haible  <bruno@clisp.org>
4842
4843         Fix 'isfinite' on x86, x86_64, ia64 platforms.
4844         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
4845         argument that lie outside the IEEE 854 domain.
4846         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
4847         (gl_ISFINITE): Use it.
4848         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
4849
4850 2008-04-27  Bruno Haible  <bruno@clisp.org>
4851
4852         Allow local renaming in config.h.
4853         * lib/memrchr.c (memrchr): Don't undefine outside libc.
4854
4855 2008-04-27  Bruno Haible  <bruno@clisp.org>
4856
4857         * lib/memchr.c (__memchr): Change type of 'i'.
4858         * lib/memchr2.c (memchr2): Likewise.
4859
4860 2008-04-26  Eric Blake  <ebb9@byu.net>
4861         and Bruno Haible  <bruno@clisp.org>
4862
4863         Optimize and test memrchr.
4864         * modules/memrchr (Depends-on): Add intprops.
4865         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
4866         * modules/memrchr-tests: New file.
4867         * tests/test-memrchr.c: New file.
4868
4869 2008-04-26  Bruno Haible  <bruno@clisp.org>
4870
4871         Add tentative support for DragonFly BSD.
4872         * lib/stdio-impl.h: Add macros for DragonFly BSD.
4873         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
4874         fp.
4875         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4876         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
4877         * lib/fpurge.c (fpurge): Likewise.
4878         * lib/freadable.c (freaadable): Likewise.
4879         * lib/freadahead.c (freadahead): Likewise.
4880         * lib/freading.c (freading): Likewise.
4881         * lib/freadptr.c (freadptr): Likewise.
4882         * lib/freadseek.c (freadptrinc): Likewise.
4883         * lib/fseeko.c (fseeko): Likewise.
4884         * lib/fseterr.c (fseterr): Likewise.
4885         * lib/fwritable.c (fwritable): Likewise.
4886         * lib/fwriting.c (fwriting): Likewise.
4887
4888 2008-04-26  Bruno Haible  <bruno@clisp.org>
4889
4890         * lib/stdio-impl.h: New file.
4891         * lib/fbufmode.c: Include stdio-impl.h.
4892         (fbufmode): Use fp_, remove redundant #defines.
4893         * lib/fflush.c: Include stdio-impl.h.
4894         (clear_ungetc_buffer): Remove redundant #defines.
4895         * lib/fpurge.c: Include stdio-impl.h.
4896         (fpurge): Remove redundant #defines.
4897         * lib/freadable.c: Include stdio-impl.h.
4898         (freadable): Remove redundant #defines.
4899         * lib/freadahead.c: Include stdio-impl.h.
4900         (freadahead): Remove redundant #defines.
4901         * lib/freading.c: Include stdio-impl.h.
4902         (freading): Remove redundant #defines.
4903         * lib/freadptr.c: Include stdio-impl.h.
4904         (freadptr): Remove redundant #defines.
4905         * lib/freadseek.c: Include stdio-impl.h.
4906         (freadptrinc): Remove redundant #defines.
4907         * lib/fseeko.c: Include stdio-impl.h.
4908         (rpl_fseeko): Remove redundant #defines.
4909         * lib/fseterr.c: Include stdio-impl.h.
4910         (fseterr): Remove redundant #defines.
4911         * lib/fwritable.c: Include stdio-impl.h.
4912         (fwritable: Remove redundant #defines.
4913         * lib/fwriting.c: Include stdio-impl.h.
4914         (fwriting): Remove redundant #defines.
4915         * modules/fbufmode (Files): Add lib/stdio-impl.h.
4916         * modules/fflush (Files): Likewise.
4917         * modules/fpurge (Files): Likewise.
4918         * modules/freadable (Files): Likewise.
4919         * modules/freadahead (Files): Likewise.
4920         * modules/freading (Files): Likewise.
4921         * modules/freadptr (Files): Likewise.
4922         * modules/freadseek (Files): Likewise.
4923         * modules/fseeko (Files): Likewise.
4924         * modules/fseterr (Files): Likewise.
4925         * modules/fwritable (Files): Likewise.
4926         * modules/fwriting (Files): Likewise.
4927
4928 2008-04-26  Bruno Haible  <bruno@clisp.org>
4929
4930         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4931         restore_seek_optimization, update_fpos_cache): New functions, extracted
4932         from rpl_fflush.
4933         (rpl_fflush): Use them.
4934         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
4935         (gl_REPLACE_FFLUSH): Use it.
4936
4937 2008-04-26  Bruno Haible  <bruno@clisp.org>
4938
4939         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
4940         on Solaris.
4941         * tests/test-xstrtoimax.sh: Likewise.
4942         * tests/test-xstrtoumax.sh: Likewise.
4943         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4944
4945 2008-04-26  Bruno Haible  <bruno@clisp.org>
4946
4947         * modules/memchr-tests: New file.
4948         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
4949
4950 2008-04-26  Eric Blake  <ebb9@byu.net>
4951             Bruno Haible  <bruno@clisp.org>
4952
4953         * lib/memchr.c: Include intprops.h.
4954         (__memchr): Optimize parallel detection of matching bytes. Rename local
4955         variables. Add explanatory comments.
4956
4957 2008-04-26  Bruno Haible  <bruno@clisp.org>
4958
4959         Fix module 'memchr', broken since 2000-10-28.
4960         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
4961
4962 2008-04-26  Bruno Haible  <bruno@clisp.org>
4963
4964         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
4965         comments.
4966
4967 2008-04-25  Eric Blake  <ebb9@byu.net>
4968
4969         Use native fstatat on cygwin 1.7.0.
4970         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
4971         first.
4972
4973 2008-04-23  Eric Blake  <ebb9@byu.net>
4974
4975         Improve memchr2 performance.
4976         * lib/memchr2.c (memchr2): Further optimize parallel detection of
4977         NUL bytes.
4978         * modules/memchr2 (Depends-on): Use intprops.h.
4979
4980 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4981
4982         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
4983         an inline function instead of a CPP macro.  Patch by Ben Pfaff
4984         <blp@cs.stanford.edu>.
4985
4986 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4987
4988         * lib/arpa_inet.in.h: New file.
4989
4990         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
4991         (Makefile.am): Sed in substitute header file.
4992
4993         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
4994         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
4995
4996         * modules/inet_ntop (configure.ac): Use
4997         gl_ARPA_INET_MODULE_INDICATOR.
4998
4999         * modules/inet_pton (configure.ac): Use
5000         gl_ARPA_INET_MODULE_INDICATOR.
5001
5002 2008-04-22  Jim Meyering  <meyering@redhat.com>
5003
5004         * modules/verify (License): Re-license as LGPLv2+.
5005
5006 2008-04-22  Simon Josefsson  <simon@josefsson.org>
5007
5008         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
5009         parameter to void* as per POSIX standard (MinGW uses char*).
5010
5011 2008-04-21  Bruno Haible  <bruno@clisp.org>
5012
5013         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5014         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
5015         Define to replacements if REPLACE_ISWCNTRL is 1.
5016         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
5017         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
5018         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
5019         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
5020         what it fixes.
5021         * doc/posix-functions/iswalpha.texi: Likewise.
5022         * doc/posix-functions/iswblank.texi: Likewise.
5023         * doc/posix-functions/iswcntrl.texi: Likewise.
5024         * doc/posix-functions/iswdigit.texi: Likewise.
5025         * doc/posix-functions/iswgraph.texi: Likewise.
5026         * doc/posix-functions/iswlower.texi: Likewise.
5027         * doc/posix-functions/iswprint.texi: Likewise.
5028         * doc/posix-functions/iswpunct.texi: Likewise.
5029         * doc/posix-functions/iswspace.texi: Likewise.
5030         * doc/posix-functions/iswupper.texi: Likewise.
5031         * doc/posix-functions/iswxdigit.texi: Likewise.
5032         Reported by Alain Guibert.
5033
5034 2008-04-21  Bruno Haible  <bruno@clisp.org>
5035
5036         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
5037         Patch by Alain Guibert.
5038
5039 2008-04-21  Bruno Haible  <bruno@clisp.org>
5040
5041         Fix test failures on mingw.
5042         * tests/test-xstrtol.c (print_no_progname): New function.
5043         (main): Install it in error_print_progname hook.
5044         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
5045         * tests/test-xstrtoimax.sh: Likewise.
5046         * tests/test-xstrtoumax.sh: Likewise.
5047
5048 2008-04-21  Bruno Haible  <bruno@clisp.org>
5049
5050         Fix test failure on mingw.
5051         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
5052
5053 2008-04-21  Bruno Haible  <bruno@clisp.org>
5054
5055         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
5056         Actually assign a value.
5057
5058 2008-04-20  Bruno Haible  <bruno@clisp.org>
5059
5060         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
5061         take 2.
5062         * lib/canonicalize.c (canonicalize_file_name): Elide if the
5063         'canonicalize-lgpl' module is also used.
5064         * lib/canonicalize-lgpl.c: Undo last change.
5065         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
5066
5067 2008-04-20  Bruno Haible  <bruno@clisp.org>
5068
5069         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
5070         config.h. Provide _mkdir based fallback for mingw.
5071         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
5072         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
5073         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
5074         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
5075         rather than defining mkdir in config.h.
5076         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
5077         (gl_SYS_STAT_H_DEFAULTS): New macro.
5078         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
5079         HAVE_IO_H any more.
5080         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
5081         HAVE_DECL_MKDIR and HAVE_IO_H.
5082
5083 2008-04-20  Bruno Haible  <bruno@clisp.org>
5084
5085         * lib/isapipe.c: Port to native Windows platforms.
5086
5087 2008-04-20  Bruno Haible  <bruno@clisp.org>
5088
5089         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
5090
5091 2008-04-21  Eric Blake  <ebb9@byu.net>
5092
5093         Work around preprocessors that don't handle UINTMAX_MAX.
5094         * lib/memchr2.c (memchr2): Avoid embedded #if.
5095         Reported by Alain Guibert, fix suggested by Bruno Haible.
5096
5097 2008-04-21  Simon Josefsson  <simon@josefsson.org>
5098
5099         * doc/posix-functions/strftime.texi (strftime): Explain better
5100         Windows incompatibility.  Suggested by Micah Cowan
5101         <micah@cowan.name>.
5102
5103 2008-04-20  Bruno Haible  <bruno@clisp.org>
5104
5105         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
5106         unistr/u8-mblen.
5107
5108 2008-04-20  Bruno Haible  <bruno@clisp.org>
5109
5110         Fix test failure on platforms with non-GNU iconv.
5111         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
5112         (U_TO_U8): Use it, rather than u16_to_u8.
5113         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
5114         units at the end of the input string.
5115         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
5116
5117 2008-04-20  Bruno Haible  <bruno@clisp.org>
5118
5119         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
5120         when the resulting length is 0.
5121         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
5122
5123 2008-04-20  Bruno Haible  <bruno@clisp.org>
5124
5125         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
5126         works.
5127         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
5128
5129 2008-04-20  Bruno Haible  <bruno@clisp.org>
5130
5131         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
5132         * modules/tsearch-tests (configure.ac): Test for initstate function.
5133
5134 2008-04-20  Bruno Haible  <bruno@clisp.org>
5135
5136         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
5137         for nlink_t if missing.
5138         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
5139
5140 2008-04-19  Bruno Haible  <bruno@clisp.org>
5141
5142         Work around snprintf bug on Linux libc5.
5143         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
5144         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
5145         gl_SNPRINTF_SIZE1.
5146         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5147         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
5148         that test failed.
5149         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5150         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
5151         * modules/snprintf (Files): Add m4/printf.m4.
5152         * modules/vsnprintf (Files): Likewise.
5153         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
5154         * doc/posix-functions/vsnprintf.texi: Likewise.
5155
5156 2008-04-19  Bruno Haible  <bruno@clisp.org>
5157
5158         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
5159         from 0.0058 to less than 10^-7.
5160
5161 2008-04-19  Bruno Haible  <bruno@clisp.org>
5162
5163         Fix rounding when a precision is given.
5164         * lib/vasnprintf.c (is_borderline): New function.
5165         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
5166         9...9x.
5167         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
5168         %e, %g.
5169         * tests/test-vasprintf-posix.c (test_function): Likewise.
5170         * tests/test-snprintf-posix.h (test_function): Likewise.
5171         * tests/test-sprintf-posix.h (test_function): Likewise.
5172         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
5173         * tests/test-printf-posix.h (test_function): Likewise.
5174         * tests/test-printf-posix.output: Update.
5175         Reported by John Darrington <john@darrington.wattle.id.au> via
5176         Ben Pfaff <blp@cs.stanford.edu>.
5177
5178 2008-04-18  Simon Josefsson  <simon@josefsson.org>
5179
5180         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
5181         Suggested by Bruno Haible <bruno@clisp.org>.
5182
5183 2008-04-17  Bruno Haible  <bruno@clisp.org>
5184
5185         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
5186         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
5187         implementation.
5188         Patch by Bruce Merry <bmerry@gmail.com>.
5189
5190 2008-04-17  Simon Josefsson  <simon@josefsson.org>
5191
5192         * doc/posix-functions/strftime.texi (strftime): Mention that %e
5193         doesn't work under Windows.
5194
5195 2008-04-16  Bruno Haible  <bruno@clisp.org>
5196
5197         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
5198         New macros.
5199         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
5200         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
5201         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
5202         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
5203         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
5204         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
5205         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
5206         macros.
5207         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
5208         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
5209         Northern Sotho, Uighur.
5210
5211 2008-04-16  Bruno Haible  <bruno@clisp.org>
5212
5213         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
5214         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
5215         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
5216         Reported by Daniel Bergström <daniel@octocode.com>.
5217
5218 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
5219             Bruno Haible  <bruno@clisp.org>
5220
5221         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
5222         function.
5223         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
5224         New functions, mostly extracted from gl_locale_name_default.
5225         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
5226
5227 2008-04-16  Eric Blake  <ebb9@byu.net>
5228
5229         Adjust strtod detection to catch glibc 2.7 bug.
5230         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
5231         Reported by John Gatewood Ham.
5232
5233 2008-04-16  Bruno Haible  <bruno@clisp.org>
5234
5235         Add tentative support for Linux libc5.
5236         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
5237         * lib/fpurge.c (fpurge): Likewise.
5238         * lib/freadable.c (freadable): Likewise.
5239         * lib/freadahead.c (freadahead): Likewise.
5240         * lib/freading.c (freading): Likewise.
5241         * lib/freadptr.c (freadptr): Likewise.
5242         * lib/freadseek.c (freadptrinc): Likewise.
5243         * lib/fseeko.c (rpl_fseeko): Likewise.
5244         * lib/fseterr.c (fseterr): Likewise.
5245         * lib/fwritable.c (fwritable): Likewise.
5246         * lib/fwriting.c (fwriting): Likewise.
5247         Reported by Alain Guibert <alguibert+bts@free.fr>.
5248
5249 2008-04-15  Bruno Haible  <bruno@clisp.org>
5250
5251         * modules/mathl (configure.ac): Define module indicator.
5252
5253 2008-04-15  Bruno Haible  <bruno@clisp.org>
5254
5255         * lib/logl.c (logl): Remove unused variables.
5256
5257 2008-04-15  Bruno Haible  <bruno@clisp.org>
5258
5259         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
5260         fails.
5261
5262 2008-04-15  Bruno Haible  <bruno@clisp.org>
5263
5264         * lib/trim.c (trim2): Fix argument of isspace() macro.
5265
5266 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
5267
5268         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
5269         to 0.
5270         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
5271
5272 2008-04-14  Bruno Haible  <bruno@clisp.org>
5273
5274         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
5275         AC_LANG_PROGRAM argument.
5276         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
5277         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
5278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5279         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5280         * m4/math_h.m4 (gl_MATH_H): Likewise.
5281         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5282         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5283         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
5284         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
5285         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5286         * m4/regex.m4 (gl_REGEX): Likewise.
5287         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
5288         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
5289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5290         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
5291         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5292         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5293         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5294         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5295
5296 2008-04-14  Jim Meyering  <meyering@redhat.com>
5297
5298         test-strtod: fix typos: s/abs/fabs/
5299         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
5300
5301 2008-04-13  Bruno Haible  <bruno@clisp.org>
5302
5303         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
5304         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
5305         module is also used and while not building the reloc-wrapper.
5306
5307 2008-04-13  Bruno Haible  <bruno@clisp.org>
5308
5309         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
5310
5311 2008-04-13  Bruno Haible  <bruno@clisp.org>
5312
5313         Fix AIX compilation failure introduced on 2008-04-02.
5314         * tests/test-frexp.c (exp): Undefine before redefining.
5315         * tests/test-frexpl.c (exp): Likewise.
5316
5317 2008-04-13  Bruno Haible  <bruno@clisp.org>
5318
5319         Work around a HP-UX stdio bug.
5320         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
5321         * tests/test-ftello.c (main): Likewise.
5322         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
5323         * doc/posix-functions/ftello.texi: Likewise.
5324
5325 2008-04-13  Bruno Haible  <bruno@clisp.org>
5326
5327         Make test-signbit pass on HP-UX/hppa.
5328         * tests/test-signbit.c (minus_zerol): New variable.
5329         (test_signbitl): Use it.
5330
5331 2008-04-13  Bruno Haible  <bruno@clisp.org>
5332
5333         Make truncl work on OSF/1 4.0.
5334         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
5335         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5336         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
5338         HAVE_DECL_TRUNCL.
5339         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
5340         HAVE_DECL_TRUNCL.
5341         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
5342
5343 2008-04-13  Bruno Haible  <bruno@clisp.org>
5344
5345         * lib/unictype.h: Remove trailing comma from enumeration definitions.
5346
5347 2008-04-13  Bruno Haible  <bruno@clisp.org>
5348
5349         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
5350         expression, so as to avoid HP-UX 11 cc compiler bug.
5351
5352 2008-04-13  Bruno Haible  <bruno@clisp.org>
5353
5354         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
5355
5356 2008-04-13  Bruno Haible  <bruno@clisp.org>
5357
5358         * lib/git-merge-changelog.c: Remove empty declaration outside of
5359         functions.
5360
5361 2008-04-13  Bruno Haible  <bruno@clisp.org>
5362
5363         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
5364
5365 2008-04-13  Bruno Haible  <bruno@clisp.org>
5366
5367         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
5368         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
5369         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
5370         also if it exists but lacks definitions of the SHUT_* macros.
5371         * modules/sys_socket (Description): Update.
5372         Reported by Elbert Pol <e.pol@chello.nl>.
5373
5374 2008-04-13  Bruno Haible  <bruno@clisp.org>
5375
5376         * lib/localcharset.c (OS2): Don't redefine if already defined.
5377         Reported by Elbert Pol <e.pol@chello.nl>.
5378
5379 2008-04-13  Bruno Haible  <bruno@clisp.org>
5380
5381         * lib/binary-io.h [__EMX__]: Include <io.h>.
5382         Reported by Elbert Pol <e.pol@chello.nl>.
5383
5384 2008-04-12  Bruno Haible  <bruno@clisp.org>
5385
5386         * lib/fpucw.h: Enable the definitions also for x86_64.
5387         Needed for NetBSD/x86_64.
5388         Reported by Thomas Klausner <tk@giga.or.at>.
5389
5390 2008-04-12  Bruno Haible  <bruno@clisp.org>
5391
5392         * tests/test-strtod.c: Include isnand.h.
5393         (main): Use isnand instead of isnan.
5394         Reported by Jim Meyering.
5395
5396 2008-04-12  Bruno Haible  <bruno@clisp.org>
5397
5398         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
5399         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5400
5401 2008-04-12  Jim Meyering  <meyering@redhat.com>
5402
5403         * m4/math_h.m4 (gl_MATH_H): Fix typos.
5404
5405 2008-04-12  Bruno Haible  <bruno@clisp.org>
5406
5407         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
5408         Reported by Elbert Pol <e.pol@chello.nl>.
5409
5410 2008-04-12  Eric Blake  <ebb9@byu.net>
5411
5412         Work around Solaris 10 math.h bug.
5413         * m4/math_h.m4 (gl_MATH_H): Check for bug.
5414         (gl_MATH_H_DEFAULTS): Set up default.
5415         * modules/math (Makefile.am): Replace new indicators.
5416         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
5417         * tests/test-math.c (main): Test this.
5418         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
5419         * doc/posix-headers/math.texi (math.h): Mention bug.
5420         Reported by Nelson H. F. Beebe and Jim Meyering.
5421
5422 2008-04-11  Bruno Haible  <bruno@clisp.org>
5423
5424         Adapt to future versions of Apple GCC.
5425         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
5426         Reported by Peter O'Gorman <peter@pogma.com>.
5427
5428 2008-04-11  Bruno Haible  <bruno@clisp.org>
5429
5430         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
5431
5432 2008-04-11  Bruno Haible  <bruno@clisp.org>
5433
5434         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
5435
5436         * modules/getaddrinfo-tests (Makefile.am): Define
5437         test_getaddrinfo_LDADD.
5438
5439 2008-04-11  Bruno Haible  <bruno@clisp.org>
5440
5441         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
5442         (init): Fix syntax error.
5443         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
5444         is declared.
5445
5446 2008-04-11  Bruno Haible  <bruno@clisp.org>
5447
5448         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
5449         * modules/glob (Depends-on): Add stdbool.
5450
5451 2008-04-11  Bruno Haible  <bruno@clisp.org>
5452
5453         * lib/trim.c: Include <string.h>.
5454
5455 2008-04-11  Eric Blake  <ebb9@byu.net>
5456
5457         Avoid compile failure on OS/2.
5458         * lib/regex_internal.h (internal_function): Disable optimization
5459         on OS/2 (__EMX__), where it caused compiler error.
5460         Reported by Elbert Pol.
5461
5462 2008-04-11  Bruno Haible  <bruno@clisp.org>
5463
5464         Flush the standard error stream before aborting. Needed on mingw.
5465         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
5466         * tests/test-array_list.c (ASSERT): Likewise.
5467         * tests/test-array_oset.c (ASSERT): Likewise.
5468         * tests/test-avltree_list.c (ASSERT): Likewise.
5469         * tests/test-avltree_oset.c (ASSERT): Likewise.
5470         * tests/test-avltreehash_list.c (ASSERT): Likewise.
5471         * tests/test-binary-io.c (ASSERT): Likewise.
5472         * tests/test-byteswap.c (ASSERT): Likewise.
5473         * tests/test-c-ctype.c (ASSERT): Likewise.
5474         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
5475         * tests/test-c-strcasestr.c (ASSERT): Likewise.
5476         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
5477         * tests/test-c-strstr.c (ASSERT): Likewise.
5478         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
5479         * tests/test-canonicalize.c (ASSERT): Likewise.
5480         * tests/test-carray_list.c (ASSERT): Likewise.
5481         * tests/test-ceilf1.c (ASSERT): Likewise.
5482         * tests/test-ceilf2.c (ASSERT): Likewise.
5483         * tests/test-ceill.c (ASSERT): Likewise.
5484         * tests/test-count-one-bits.c (ASSERT): Likewise.
5485         * tests/test-fbufmode.c (ASSERT): Likewise.
5486         * tests/test-fflush2.c (ASSERT): Likewise.
5487         * tests/test-floorf1.c (ASSERT): Likewise.
5488         * tests/test-floorf2.c (ASSERT): Likewise.
5489         * tests/test-floorl.c (ASSERT): Likewise.
5490         * tests/test-fopen.c (ASSERT): Likewise.
5491         * tests/test-fpending.c (ASSERT): Likewise.
5492         * tests/test-fprintf-posix.c (ASSERT): Likewise.
5493         * tests/test-fpurge.c (ASSERT): Likewise.
5494         * tests/test-freadable.c (ASSERT): Likewise.
5495         * tests/test-freadahead.c (ASSERT): Likewise.
5496         * tests/test-freading.c (ASSERT): Likewise.
5497         * tests/test-freadptr.c (ASSERT): Likewise.
5498         * tests/test-freadptr2.c (ASSERT): Likewise.
5499         * tests/test-freadseek.c (ASSERT): Likewise.
5500         * tests/test-freopen.c (ASSERT): Likewise.
5501         * tests/test-frexp.c (ASSERT): Likewise.
5502         * tests/test-frexpl.c (ASSERT): Likewise.
5503         * tests/test-fseek.c (ASSERT): Likewise.
5504         * tests/test-fseeko.c (ASSERT): Likewise.
5505         * tests/test-fstrcmp.c (ASSERT): Likewise.
5506         * tests/test-ftell.c (ASSERT): Likewise.
5507         * tests/test-ftello.c (ASSERT): Likewise.
5508         * tests/test-func.c (ASSERT): Likewise.
5509         * tests/test-fwritable.c (ASSERT): Likewise.
5510         * tests/test-fwriting.c (ASSERT): Likewise.
5511         * tests/test-getdelim.c (ASSERT): Likewise.
5512         * tests/test-getline.c (ASSERT): Likewise.
5513         * tests/test-i-ring.c (ASSERT): Likewise.
5514         * tests/test-iconv-utf.c (ASSERT): Likewise.
5515         * tests/test-iconv.c (ASSERT): Likewise.
5516         * tests/test-isfinite.c (ASSERT): Likewise.
5517         * tests/test-isnand.c (ASSERT): Likewise.
5518         * tests/test-isnanf.c (ASSERT): Likewise.
5519         * tests/test-isnanl.h (ASSERT): Likewise.
5520         * tests/test-ldexpl.c (ASSERT): Likewise.
5521         * tests/test-linked_list.c (ASSERT): Likewise.
5522         * tests/test-linkedhash_list.c (ASSERT): Likewise.
5523         * tests/test-localename.c (ASSERT): Likewise.
5524         * tests/test-lseek.c (ASSERT): Likewise.
5525         * tests/test-mbscasecmp.c (ASSERT): Likewise.
5526         * tests/test-mbscasestr1.c (ASSERT): Likewise.
5527         * tests/test-mbscasestr2.c (ASSERT): Likewise.
5528         * tests/test-mbscasestr3.c (ASSERT): Likewise.
5529         * tests/test-mbscasestr4.c (ASSERT): Likewise.
5530         * tests/test-mbschr.c (ASSERT): Likewise.
5531         * tests/test-mbscspn.c (ASSERT): Likewise.
5532         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
5533         * tests/test-mbspbrk.c (ASSERT): Likewise.
5534         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
5535         * tests/test-mbsrchr.c (ASSERT): Likewise.
5536         * tests/test-mbsspn.c (ASSERT): Likewise.
5537         * tests/test-mbsstr1.c (ASSERT): Likewise.
5538         * tests/test-mbsstr2.c (ASSERT): Likewise.
5539         * tests/test-mbsstr3.c (ASSERT): Likewise.
5540         * tests/test-memchr2.c (ASSERT): Likewise.
5541         * tests/test-memmem.c (ASSERT): Likewise.
5542         * tests/test-open.c (ASSERT): Likewise.
5543         * tests/test-printf-frexp.c (ASSERT): Likewise.
5544         * tests/test-printf-frexpl.c (ASSERT): Likewise.
5545         * tests/test-printf-posix.c (ASSERT): Likewise.
5546         * tests/test-quotearg.c (ASSERT): Likewise.
5547         * tests/test-rbtree_list.c (ASSERT): Likewise.
5548         * tests/test-rbtree_oset.c (ASSERT): Likewise.
5549         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
5550         * tests/test-round1.c (ASSERT): Likewise.
5551         * tests/test-roundf1.c (ASSERT): Likewise.
5552         * tests/test-roundl.c (ASSERT): Likewise.
5553         * tests/test-signbit.c (ASSERT): Likewise.
5554         * tests/test-sleep.c (ASSERT): Likewise.
5555         * tests/test-snprintf-posix.c (ASSERT): Likewise.
5556         * tests/test-snprintf.c (ASSERT): Likewise.
5557         * tests/test-sprintf-posix.c (ASSERT): Likewise.
5558         * tests/test-stat-time.c (ASSERT): Likewise.
5559         * tests/test-strcasestr.c (ASSERT): Likewise.
5560         * tests/test-strerror.c (ASSERT): Likewise.
5561         * tests/test-striconv.c (ASSERT): Likewise.
5562         * tests/test-striconveh.c (ASSERT): Likewise.
5563         * tests/test-striconveha.c (ASSERT): Likewise.
5564         * tests/test-strsignal.c (ASSERT): Likewise.
5565         * tests/test-strstr.c (ASSERT): Likewise.
5566         * tests/test-strtod.c (ASSERT): Likewise.
5567         * tests/test-trunc1.c (ASSERT): Likewise.
5568         * tests/test-trunc2.c (ASSERT): Likewise.
5569         * tests/test-truncf1.c (ASSERT): Likewise.
5570         * tests/test-truncf2.c (ASSERT): Likewise.
5571         * tests/test-truncl.c (ASSERT): Likewise.
5572         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
5573         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
5574         * tests/test-vasnprintf.c (ASSERT): Likewise.
5575         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
5576         * tests/test-vasprintf.c (ASSERT): Likewise.
5577         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
5578         * tests/test-vprintf-posix.c (ASSERT): Likewise.
5579         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
5580         * tests/test-vsnprintf.c (ASSERT): Likewise.
5581         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
5582         * tests/test-wcwidth.c (ASSERT): Likewise.
5583         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
5584         * tests/test-xprintf-posix.c (ASSERT): Likewise.
5585         * tests/test-xvasprintf.c (ASSERT): Likewise.
5586         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
5587         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
5588         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
5589         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
5590         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
5591         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
5592         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
5593         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
5594         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
5595         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
5596         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
5597         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
5598         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
5599         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
5600         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
5601         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
5602         * tests/unictype/test-block_list.c (ASSERT): Likewise.
5603         * tests/unictype/test-block_of.c (ASSERT): Likewise.
5604         * tests/unictype/test-block_test.c (ASSERT): Likewise.
5605         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
5606         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
5607         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
5608         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
5609         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
5610         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
5611         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
5612         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
5613         * tests/unictype/test-combining.c (ASSERT): Likewise.
5614         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
5615         * tests/unictype/test-digit.c (ASSERT): Likewise.
5616         * tests/unictype/test-mirror.c (ASSERT): Likewise.
5617         * tests/unictype/test-numeric.c (ASSERT): Likewise.
5618         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
5619         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
5620         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
5621         * tests/unictype/test-scripts.c (ASSERT): Likewise.
5622         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
5623         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
5624         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
5625         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
5626         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
5627         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
5628         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
5629         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
5630         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
5631         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
5632         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
5633         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
5634         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
5635         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
5636         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
5637         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
5638         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
5639         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
5640         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
5641         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
5642         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
5643         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
5644         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
5645         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
5646         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
5647         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
5648         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
5649         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
5650         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
5651         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
5652         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
5653         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
5654         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
5655         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
5656         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
5657         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
5658         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
5659         Reported by Eric Blake.
5660
5661 2008-04-11  Bruno Haible  <bruno@clisp.org>
5662
5663         * lib/wchar.in.h: Tweak comment.
5664
5665 2008-04-11  Bruno Haible  <bruno@clisp.org>
5666
5667         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
5668         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
5669         gl_COMMON.
5670         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
5671
5672 2008-04-11  Bruno Haible  <bruno@clisp.org>
5673
5674         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
5675
5676 2008-04-11  Simon Josefsson  <simon@josefsson.org>
5677
5678         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
5679         of attempting to use non-existing /dev/*random.  Based on patch
5680         from Adam Strzelecki <ono@java.pl> in
5681         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
5682
5683 2008-04-08  Bruno Haible  <bruno@clisp.org>
5684
5685         Add tentative support for emx+gcc.
5686         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
5687         * lib/fpurge.c (fpurge): Likewise.
5688         * lib/freadable.c (freadable): Likewise.
5689         * lib/freadahead.c (freadahead): Likewise.
5690         * lib/freading.c (freading): Likewise.
5691         * lib/freadptr.c (freadptr): Likewise.
5692         * lib/freadseek.c (freadptrinc): Likewise.
5693         * lib/fseeko.c (rpl_fseeko): Likewise.
5694         * lib/fseterr.c (fseterr): Likewise.
5695         * lib/fwritable.c (fwritable): Likewise.
5696         * lib/fwriting.c (fwriting): Likewise.
5697         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
5698
5699 2008-04-09  Eric Blake  <ebb9@byu.net>
5700
5701         Avoid some autoconf warnings.
5702         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
5703         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
5704         * m4/afs.m4 (gl_AFS): Likewise.
5705         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
5706         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
5707         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5708         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
5709         (gl_INTEGER_TYPE_SUFFIX): Likewise.
5710         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
5711         (AC_CHECK_DECLS_ONCE): Likewise.
5712         Rename file...
5713         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
5714         gnulib-tool requires autoconf 2.59 or better.
5715         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
5716
5717 2008-04-08  Eric Blake  <ebb9@byu.net>
5718
5719         Use 'git describe --match' if present (added in git 1.5.5).
5720         * build-aux/git-version-gen: Limit result to tags that match 'v*'
5721         if possible.
5722
5723 2008-04-08  Bruno Haible  <bruno@clisp.org>
5724
5725         Add tentative support for OpenServer.
5726         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
5727         _ptr, _cnt.
5728         * lib/fpurge.c (fpurge): Likewise.
5729         * lib/freadable.c (freadable): Likewise.
5730         * lib/freadahead.c (freadahead): Likewise.
5731         * lib/freading.c (freading): Likewise.
5732         * lib/freadptr.c (freadptr): Likewise.
5733         * lib/freadseek.c (freadptrinc): Likewise.
5734         * lib/fseeko.c (rpl_fseeko): Likewise.
5735         * lib/fseterr.c (fseterr): Likewise.
5736         * lib/fwritable.c (fwritable): Likewise.
5737         * lib/fwriting.c (fwriting): Likewise.
5738         Reported by Roger Cornelius <rac@tenzing.org> and
5739         Brian K. White <brian@aljex.com>.
5740
5741 2008-04-06  Jim Meyering  <meyering@redhat.com>
5742
5743         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
5744
5745 2008-04-06  Bruno Haible  <bruno@clisp.org>
5746
5747         Avoid possible error with non-ASCII bytes in UTF-8 locales.
5748         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
5749         * tests/test-printf-posix.sh: Likewise.
5750         * tests/test-vfprintf-posix.sh: Likewise.
5751         * tests/test-vprintf-posix.sh: Likewise.
5752         * tests/test-xprintf-posix.sh: Likewise.
5753
5754 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5755
5756         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
5757         hide error from 'ls', needed on OS/2.
5758         Report by Elbert Pol <elbert.pol@gmail.com>.
5759
5760 2008-04-04  Eric Blake  <ebb9@byu.net>
5761
5762         Make test-fseeko.c failures meaningful.
5763         * tests/test-fseeko.c: Print line number on failure.
5764         * tests/test-fseek.c: Likewise.
5765         Reported by Nelson H. F. Beebe.
5766
5767         Improve strtod bug detection check.
5768         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
5769         required for Solaris 10.
5770         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
5771
5772 2008-04-04  Bruno Haible  <bruno@clisp.org>
5773
5774         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
5775         by m4/setenv.m4.
5776
5777 2008-04-03  Eric Blake  <ebb9@byu.net>
5778
5779         Ensure sane .version contents.
5780         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
5781         version string.
5782         * build-aux/git-version-gen: Improve documentation.
5783
5784         Make GNU make output nicer.
5785         * top/GNUmakefile [!_have-Makefile]: Add dependency on
5786         MAKECMDGOALS to enforce message for all command line targets.  Set
5787         srcdir for use in maint.mk.
5788
5789         Another maintainer tweak.
5790         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
5791         a target that regenerates version.
5792
5793 2008-04-03  Jim Meyering  <meyering@redhat.com>
5794
5795         vc-list-files: don't cause coreutils "make po-check" failure
5796         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
5797
5798 2008-04-03  Eric Blake  <ebb9@byu.net>
5799
5800         Allow VPATH usage of vc-list-files.
5801         * build-aux/vc-list-files (scriptversion): Add timestamp.
5802         (options): Add --help, --version, -C.
5803         (CVS): Support installed cvsu.
5804
5805 2008-04-02  Bruno Haible  <bruno@clisp.org>
5806
5807         Avoid some "statement with no effect" warnings from gcc.
5808         * tests/test-wctype.c (main): Explicitly ignore unused values.
5809         Reported by Jim Meyering.
5810
5811 2008-04-02  Jim Meyering  <meyering@redhat.com>
5812
5813         Avoid some warnings from "gcc -Wshadow".
5814         * tests/test-frexp.c (exp): Define to a different identifier.
5815         * tests/test-frexpl.c (exp): Likewise.
5816
5817 2008-04-03  Jim Meyering  <meyering@redhat.com>
5818
5819         bootstrap: remove dangling *.[ch] symlinks from lib
5820         * build-aux/bootstrap [dangling symlink removal]: Move find's
5821         -depth option to precede all others, to avoid a warning.
5822         Remove *.[ch] files too, and from "$source_base" (usually lib/).
5823
5824 2008-04-02  Bruno Haible  <bruno@clisp.org>
5825
5826         Avoid some warnings from "gcc -Wshadow".
5827         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
5828         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
5829         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
5830         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
5831         Reported by Jim Meyering.
5832
5833 2008-04-01  Bruno Haible  <bruno@clisp.org>
5834
5835         Fix test to work on IRIX 6.5 with cc.
5836         * tests/test-math.c (numeric_equal): New function.
5837         (main): Use it.
5838
5839 2008-04-01  Bruno Haible  <bruno@clisp.org>
5840
5841         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
5842
5843 2008-04-01  Bruno Haible  <bruno@clisp.org>
5844
5845         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
5846         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5847         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
5848         (Depends-on): Remove math.
5849
5850         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
5851         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5852         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
5853         (Depends-on): Remove math.
5854
5855         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
5856         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5857         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
5858         (Depends-on): Remove math.
5859         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
5860         (Depends-on): Remove math.
5861
5862         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
5863         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5864         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
5865         (Depends-on): Remove math.
5866         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
5867         (Depends-on): Remove math.
5868
5869         * tests/test-round1.c: Include nan.h.
5870         (main): Use NaNd instead of NAN.
5871         * modules/round-tests (Files): Add tests/nan.h.
5872
5873         * tests/test-trunc1.c: Include nan.h.
5874         (main): Use NaNd instead of NAN.
5875         * modules/trunc-tests (Files): Add tests/nan.h.
5876
5877         * tests/test-roundf1.c: Include nan.h.
5878         (main): Use NaNf instead of NAN.
5879         * modules/roundf-tests (Files): Add tests/nan.h.
5880
5881         * tests/test-truncf1.c: Include nan.h.
5882         (main): Use NaNf instead of NAN.
5883         * modules/truncf-tests (Files): Add tests/nan.h.
5884
5885         * tests/test-ceilf1.c: Include nan.h.
5886         (main): Use NaNf instead of NAN.
5887         * modules/ceilf-tests (Files): Add tests/nan.h.
5888
5889         * tests/test-floorf1.c: Include nan.h.
5890         (main): Use NaNf instead of NAN.
5891         * modules/floorf-tests (Files): Add tests/nan.h.
5892
5893         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
5894         (main): Use NaNf instead of NAN.
5895         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
5896
5897         * tests/test-isnand.c: Include nan.h instead of <math.h>.
5898         (main): Use NaNd instead of NAN.
5899         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
5900
5901         * tests/test-frexp.c: Include nan.h.
5902         (main): Use NaNd instead of NAN.
5903         * modules/frexp-tests (Files): Add tests/nan.h.
5904
5905         * lib/isnan.c: Don't include <math.h>.
5906         (FUNC): Don't use NAN macro.
5907         * modules/isnand-nolibm (Depends-on): Remove math.
5908         * modules/isnanf-nolibm (Depends-on): Remove math.
5909         * modules/isnanl (Depends-on): Remove math.
5910         * modules/isnanl-nolibm (Depends-on): Remove math.
5911
5912         * tests/nan.h: New file.
5913
5914 2008-04-01  Eric Blake  <ebb9@byu.net>
5915
5916         Fix typos.
5917         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
5918         values to be the right type.
5919
5920         For now, cater to gnulib strtod inaccuracies.
5921         * tests/test-strtod.c (main): Allow 1-ulp error on expected
5922         fractional results.  While not as nice from a QoI perspective, it
5923         is a quicker patch than correctly implementing decimal to binary
5924         rounding.
5925
5926 2008-03-31  Eric Blake  <ebb9@byu.net>
5927
5928         Guarantee a definition of NAN.
5929         * lib/math.in.h (NAN): Define if missing.
5930         * tests/test-math.c (main): Test it.
5931         * doc/posix-headers/math.texi (math.h): Document this.
5932         * lib/isnan.c (rpl_isnand): Use it.
5933         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
5934         * tests/test-floorf1.c (NaN): Likewise.
5935         * tests/test-frexp.c (NaN): Likewise.
5936         * tests/test-isnand.c (NaN): Likewise.
5937         * tests/test-isnanf.c (NaN): Likewise.
5938         * tests/test-round1.c (NaN): Likewise.
5939         * tests/test-roundf1.c (NaN): Likewise.
5940         * tests/test-snprintf-posix.h (NaN): Likewise.
5941         * tests/test-sprintf-posix.h (NaN): Likewise.
5942         * tests/test-trunc1.c (NaN): Likewise.
5943         * tests/test-truncf1.c (NaN): Likewise.
5944         * tests/test-vasnprintf-posix.c (NaN): Likewise.
5945         * tests/test-vasprintf-posix.c (NaN): Likewise.
5946         * modules/isnand-nolibm (Depends-on): Add math.
5947         * modules/isnanf-nolibm (Depends-on): Likewise.
5948         * modules/isnanl (Depends-on): Likewise.
5949         * modules/isnanl-nolibm (Depends-on): Likewise.
5950         * modules/snprintf-posix-tests (Depends-on): Likewise.
5951         * modules/sprintf-posix-tests (Depends-on): Likewise.
5952         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
5953         * modules/vsprintf-posix-tests (Depends-on): Likewise.
5954         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
5955         * modules/vasprintf-posix-tests (Depends-on): Likewise.
5956
5957 2008-03-31  Bruno Haible  <bruno@clisp.org>
5958
5959         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
5960         * doc/posix-functions/strtod.texi: Likewise.
5961
5962 2008-03-31  Bruno Haible  <bruno@clisp.org>
5963
5964         * tests/test-strtod.c (main): Don't use C99 syntax.
5965
5966 2008-03-31  Bruno Haible  <bruno@clisp.org>
5967
5968         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
5969         Reported by Eric Blake.
5970
5971 2008-03-31  Jim Meyering  <meyering@redhat.com>
5972
5973         Don't compare actual signbit return values.
5974         * tests/test-strtod.c (main): Rather, compare only their
5975         zero/non-zero nature.
5976
5977 2008-03-31  Eric Blake  <ebb9@byu.net>
5978
5979         More strtod documentation.
5980         * doc/posix-functions/strtod.texi (strtod): Interpret more test
5981         failures as distinct bugs.
5982
5983 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5984
5985         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
5986         Problem reported by Erik Benada in
5987         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
5988
5989 2008-03-30  Bruno Haible  <bruno@clisp.org>
5990
5991         * tests/test-strtod.c: Add comments about which assertion fails on which
5992         platform.
5993         * doc/posix-functions/strtod.texi: Add info about many more platforms.
5994
5995 2008-03-30  Eric Blake  <ebb9@byu.net>
5996
5997         Test signbit behavior on zeros.
5998         * tests/test-signbit.c (test_signbitf): Add tests for zero.
5999         (test_signbitd, test_signbitl): Likewise.
6000
6001         More strtod touchups.
6002         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
6003         sign of negative underflow, for now.  Use .5, not .1.
6004         * doc/posix-functions/strtod.texi (strtod): Mention these
6005         limitations.
6006         Reported by Jim Meyering.
6007
6008 2008-03-30  Bruno Haible  <bruno@clisp.org>
6009
6010         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
6011         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
6012
6013 2008-03-30  Bruno Haible  <bruno@clisp.org>
6014
6015         Avoid failure when attempting to return empty iconv results on some
6016         platforms.
6017         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
6018         allocation, don't report ENOMEM when the resulting string is empty.
6019
6020 2008-03-30  Bruno Haible  <bruno@clisp.org>
6021
6022         Fix buffer overrun.
6023         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
6024         Don't consider the width for tmp_length. Check count against tmp_length
6025         before doing the padding. Ensure enough allocation during padding.
6026
6027 2008-03-30  Eric Blake  <ebb9@byu.net>
6028
6029         strtod touchups.
6030         * lib/strtod.c (strtod): Avoid compiler warnings.
6031         Reported by Jim Meyering.
6032
6033 2008-03-30  Bruno Haible  <bruno@clisp.org>
6034
6035         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
6036         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
6037         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
6038         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
6039         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
6040         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
6041         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
6042         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
6043
6044         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
6045         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
6046         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
6047         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
6048         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
6049         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
6050         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
6051         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
6052
6053         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
6054         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
6055         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
6056         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
6057         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
6058         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
6059         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
6060         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
6061
6062         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
6063         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
6064
6065         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
6066         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
6067
6068         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
6069         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
6070
6071         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
6072         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
6073         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
6074
6075         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
6076         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
6077         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
6078
6079         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
6080         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
6081         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
6082
6083         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
6084         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
6085         * modules/vasprintf (Depends-on): Add EOVERFLOW.
6086
6087         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
6088         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
6089         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
6090         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
6091         (Depends-on): Add EOVERFLOW.
6092         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
6093         (Depends-on): Add EOVERFLOW.
6094         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6095         (Depends-on): Add EOVERFLOW.
6096         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6097         (Depends-on): Add EOVERFLOW.
6098         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6099         (Depends-on): Add EOVERFLOW.
6100         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6101         (Depends-on): Add EOVERFLOW.
6102         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6103         (Depends-on): Add EOVERFLOW.
6104         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6105         (Depends-on): Add EOVERFLOW.
6106
6107         * lib/sprintf.c (EOVERFLOW): Remove fallback.
6108         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
6109         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
6110
6111         * lib/snprintf.c (EOVERFLOW): Remove fallback.
6112         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
6113         * modules/snprintf (Depends-on): Add EOVERFLOW.
6114
6115         * lib/poll.c (EOVERFLOW): Remove fallback.
6116         * modules/poll (Depends-on): Add EOVERFLOW.
6117
6118         * lib/getugroups.c (EOVERFLOW): Remove fallback.
6119         * modules/getugroups (Depends-on): Add EOVERFLOW.
6120
6121         * lib/getdelim.c (EOVERFLOW): Remove fallback.
6122         * modules/getdelim (Depends-on): Add EOVERFLOW.
6123
6124         * lib/ftell.c (EOVERFLOW): Remove fallback.
6125         * modules/ftell (Depends-on): Add EOVERFLOW.
6126
6127         * lib/fprintf.c (EOVERFLOW): Remove fallback.
6128         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
6129         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
6130
6131         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
6132
6133         * modules/EOVERFLOW-tests: New file.
6134         * tests/test-EOVERFLOW.c: New file.
6135
6136         * modules/EOVERFLOW: New file.
6137         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
6138
6139 2008-03-30  Bruno Haible  <bruno@clisp.org>
6140
6141         Fix bug introduced on 2007-06-10.
6142         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
6143         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
6144
6145 2008-03-30  Bruno Haible  <bruno@clisp.org>
6146
6147         Improve freadseek's efficiency after ungetc.
6148         * lib/freadseek.c: Include freadahead.h.
6149         (freadptrinc): New function, extracted from freadseek.
6150         (freadseek): Use it in a loop. Use freadahead to determine the number
6151         of loop iterations.
6152         * modules/freadseek (Depends-on): Add freadahead.
6153         (configure.ac): Require AC_C_INLINE.
6154
6155 2008-03-30  Bruno Haible  <bruno@clisp.org>
6156
6157         * lib/freadseek.c (freadseek): Don't ignore the return value of
6158         freadptr.
6159
6160 2008-03-29  Eric Blake  <ebb9@byu.net>
6161
6162         Add hex float support.
6163         * modules/strtod (Depends-on): Add c-ctype.
6164         (Link): Mention POW_LIB.
6165         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
6166         whitespace between 'e' and exponent.
6167         * tests/test-strtod.c (main): Enable hex float tests.
6168         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
6169         now provides.
6170
6171         Document various strtod bugs, with some fixes.
6172         * doc/posix-functions/strtod.texi (strtod): Document bugs with
6173         "-0x", "inf", "nan", and hex constants.
6174         * doc/posix-functions/atof.texi (atof): Likewise.
6175         * modules/stdlib (Makefile.am): Support strtod.
6176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6177         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
6178         detect additional strtod bugs.
6179         * lib/stdlib.in.h (rpl_strtod): Add declarations.
6180         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
6181         bool where appropriate.  Parse 'inf' and 'nan'.
6182         * tests/test-strtod.c: New file.
6183         * modules/strtod (Depends-on): Add stdbool, stdlib.
6184         (configure.ac): Turn on module indicator.
6185         * modules/strtod-tests: New module.
6186
6187 2008-03-29  Eric Blake  <ebb9@byu.net>
6188
6189         Fix ftell on mingw.
6190         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
6191         * modules/ftell-tests (Depends-on): Add binary-io.
6192         * modules/ftello-tests (Depends-on): Likewise.
6193         * tests/test-ftell.c (main): Enhance test to cover behavior after
6194         ungetc.  Enforce binary mode.
6195         * tests/test-ftello.c (main): Likewise.
6196
6197         Pass test-freadseek on cygwin.
6198         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
6199         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
6200         ungetc buffer.
6201
6202         * tests/test-fflush2.c (main): Fix typo.
6203
6204 2008-03-29  Bruno Haible  <bruno@clisp.org>
6205
6206         * tests/test-fflush2.c (main): Temporarily disable the contents of
6207         this test.
6208         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
6209         Reported by Eric Blake.
6210
6211 2008-03-28  Simon Josefsson  <simon@josefsson.org>
6212
6213         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
6214         (GC_SHA224_DIGEST_SIZE): Add.
6215
6216         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
6217         (gc_hash_digest_length): Likewise.
6218         (gc_hash_buffer): Likewise.
6219
6220 2008-03-25  Bruno Haible  <bruno@clisp.org>
6221
6222         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
6223         detail which gettext release to use.
6224         Reported by Simon Josefsson.
6225
6226 2008-03-26  Jim Meyering  <meyering@redhat.com>
6227
6228         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
6229         * modules/gnumakefile (clean-GNUmakefile): Also, use
6230         test ... && ... || : syntax rather than if-then ... fi.
6231
6232         gnumakefile: Don't double-quote-expand $(VPATH) value.
6233         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
6234
6235 2008-03-24  Eric Blake  <ebb9@byu.net>
6236
6237         Alter GNUmakefile to install into top directory.
6238         * modules/maintainer-makefile: Split, and add dependency...
6239         * modules/gnumakefile: to this new module.
6240         * build-aux/GNUmakefile: Move...
6241         * top/GNUmakefile: ...here.
6242         * build-aux/maint.mk: Move...
6243         * top/maint.mk: ...here.
6244         * MODULES.html.sh (Support for maintaining...): Document new
6245         module.
6246
6247 2008-03-23  Bruno Haible  <bruno@clisp.org>
6248
6249         * gnulib-tool: New options --vc-files, --no-vc-files.
6250         (func_usage): Document them.
6251         (vc_files): New variable.
6252         (func_import): Consider vc_files.
6253         (func_create_testdir): Set vc_files to empty.
6254         Suggested by Jim Meyering and Karl Berry.
6255
6256 2008-03-23  Bruno Haible  <bruno@clisp.org>
6257
6258         Fix regex compilation error on HP-UX 11.
6259         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
6260         * modules/regex (Files): Add m4/mbstate_t.m4.
6261         Reported by Ton Voon <ton.voon@altinity.com>.
6262
6263 2008-03-23  Bruno Haible  <bruno@clisp.org>
6264
6265         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
6266
6267 2008-03-23  Eric Blake  <ebb9@byu.net>
6268             Bruno Haible  <bruno@clisp.org>
6269
6270         Install files from top/ in the destination directory.
6271         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
6272         augmentation also for the files from top/.
6273         (func_import, func_create_testdir): Rewrite file names:
6274         top/filename -> filename.
6275
6276 2008-03-23  Bruno Haible  <bruno@clisp.org>
6277
6278         Tweak "gnulib --version" output.
6279         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
6280
6281 2008-03-23  Bruno Haible  <bruno@clisp.org>
6282
6283         Tweak "gnulib --version" output.
6284         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
6285         rather than contents of ChangeLog, when possible.
6286
6287 2008-03-21  Eric Blake  <ebb9@byu.net>
6288
6289         More --version tweaks.
6290         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
6291         date of last ChangeLog entry.
6292
6293 2008-03-21  Jim Meyering  <meyering@redhat.com>
6294
6295         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
6296
6297 2008-03-20  Eric Blake  <ebb9@byu.net>
6298
6299         VPATH fix.
6300         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
6301
6302 2008-03-20  Simon Josefsson  <simon@josefsson.org>
6303
6304         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
6305         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
6306
6307 2008-03-20  Eric Blake  <ebb9@byu.net>
6308
6309         Sync GNUmakefile with coreutils.
6310         * build-aux/GNUmakefile (have-Makefile): Rename...
6311         (_have-Makefile): ...to this, for namespace consideration.
6312         (GNUmakefile.cfg): Include, if present.
6313         (_autoreconf): Define a default.
6314         (_is-dist-target): New rule for rebuilds to pick up intra-release
6315         version.
6316         (maint-cfg.mk): Rename...
6317         (cfg.mk): ...to this.
6318
6319 2008-03-18  Jim Meyering  <meyering@redhat.com>
6320
6321         New script and module: mktempd
6322         * MODULES.html.sh (maint+release support): Add mktempd.
6323         * build-aux/mktempd: New file.
6324         * modules/mktempd: New file.
6325
6326 2008-03-15  Jim Meyering  <meyering@redhat.com>
6327
6328         Undo last change.
6329         * lib/sha1.c, lib/md5.c: 63 != ~63.
6330         Reported by Andreas Schwab.
6331
6332         sha1.c, md5.c: Hoist a redundant expression.
6333         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
6334         "ctx->buflen" only once, before calling *_process_block.
6335         * lib/md5.c (md5_process_bytes): Likewise.
6336
6337 2008-03-14  Eric Blake  <ebb9@byu.net>
6338
6339         Bump copyright year in files generated by gnulib-tool.
6340         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
6341         gnulib-tool, rather than hard-coding it.
6342
6343         Fix 'gnulib-tool --version' output to work with git.
6344         * gnulib-tool (func_gnulib_dir): New function, extracted from...
6345         (startup): ...here.
6346         (func_version): Use it to invoke git-version-gen, rather than
6347         relying on CVS keyword expansion.  Modernize wording.
6348         (cvsdatestamp, last_checkin_date, version): Kill unused
6349         variables.
6350
6351 2008-03-12  Jim Meyering  <meyering@redhat.com>
6352
6353         Recognize optional cast of the argument to free.
6354         * build-aux/useless-if-before-free: Update regexps.
6355
6356         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
6357
6358 2008-03-11  Bruno Haible  <bruno@clisp.org>
6359
6360         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
6361         by a single package.
6362         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
6363         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
6364         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
6365         Reported by Sam Steingold <sds@gnu.org>.
6366
6367 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
6368
6369         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
6370         repositories.
6371
6372 2008-03-11  Bruno Haible  <bruno@clisp.org>
6373
6374         Avoid conflicts between local macro definitions.
6375         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6376         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
6377
6378 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
6379             Bruno Haible  <bruno@clisp.org>
6380
6381         Make va_copy work with some version of xlc on AIX 5.1.
6382         * lib/stdarg.in.h: New file.
6383         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
6384         On AIX, use a <stdarg.h> file substitute.
6385         * modules/stdarg (Files): Add lib/stdarg.in.h.
6386         (Depends-on): Add include_next.
6387         (Makefile.am): Build a stdarg.h substitute if requested.
6388         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
6389
6390 2008-03-10  Bruno Haible  <bruno@clisp.org>
6391
6392         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
6393         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6394         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6395
6396 2008-03-10  Bruno Haible  <bruno@clisp.org>
6397
6398         * modules/stdlib (Depends-on): Add include_next, remove
6399         absolute-header.
6400
6401 2008-03-09  Bruno Haible  <bruno@clisp.org>
6402
6403         * lib/freadahead.h (freadahead): Document more precisely.
6404         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
6405         the sum of both buffer sizes.
6406         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
6407         * NEWS: Document the change.
6408
6409 2008-03-09  Bruno Haible  <bruno@clisp.org>
6410
6411         Extend freadptr to return also the buffer size.
6412         * lib/freadptr.h (freadptr): Add sizep argument.
6413         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
6414         (freadptr): Add sizep argument. Determine buffer size like freadahead
6415         does.
6416         * tests/test-freadptr.c: Don't include freadahead.h.
6417         (main): Adapt for new calling convention of freadptr.
6418         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
6419         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
6420         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
6421         tests/test-freadptr2.sh.
6422         (Depends): Remove freadahead.
6423         (TESTS): Add test-freadptr2.sh.
6424         (check_PROGRAMS): Add test-freadptr2.
6425
6426 2008-03-09  Bruno Haible  <bruno@clisp.org>
6427
6428         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
6429         Report and solution by Simon Josefsson.
6430
6431 2008-03-06  Bruno Haible  <bruno@clisp.org>
6432
6433         Make fflush after ungetc work on BSD platforms.
6434         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
6435         * tests/test-fflush2.c: New file.
6436         * tests/test-fflush2.sh: New file.
6437         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
6438         tests/test-fflush2.c.
6439         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
6440         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
6441
6442 2008-03-06  Eric Blake  <ebb9@byu.net>
6443
6444         Likewise for ftello.
6445         * modules/ftello (Dependencies): Add extensions.
6446         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
6447
6448 2008-03-06  Bruno Haible  <bruno@clisp.org>
6449
6450         * modules/fseeko (Dependencies): Add extensions.
6451         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
6452         Needed on glibc systems.
6453
6454 2008-03-06  Bruno Haible  <bruno@clisp.org>
6455
6456         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
6457         email address.
6458         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6459
6460 2008-03-06  Bruno Haible  <bruno@clisp.org>
6461
6462         * users.txt: Add libgnupdf.
6463
6464 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6465
6466         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
6467         (Header File Substitutes, Function Substitutes,
6468         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
6469         (Build robot for gnulib): Fix typo.
6470
6471 2008-03-06  Bruno Haible  <bruno@clisp.org>
6472
6473         * doc/gnulib-tool.texi (VCS Issues): Small updates.
6474         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6475
6476 2008-03-06  Bruno Haible  <bruno@clisp.org>
6477
6478         * doc/func.texi: New file, extracted from doc/gnulib.texi.
6479         * doc/gnulib.texi: Include it.
6480
6481 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6482
6483         * modules/func (License): Change license to unlimited; there was
6484         no LGPL parts in the module anyway.
6485
6486 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6487
6488         * modules/__func__: Renamed to modules/func.
6489         * modules/__func__-tests: Renamed to modules/func-tests.
6490         * tests/test-__func__.c: Renamed to tests/test-func.c.
6491         * m4/__func__.m4: Renamed to m4/func.m4.
6492         * doc/gnulib.texi (__func__): Section renamed to func.
6493         Suggested by Eric Blake <ebb9@byu.net>.
6494
6495 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6496
6497         * doc/gnulib.texi (__func__): Use C99 terminology when talking
6498         about __func__.  Make example self-contained.  Suggested by Eric
6499         Blake <ebb9@byu.net>.
6500
6501         * tests/test-__func__.c (main): Avoid extraneous () around __func.
6502         Suggested by Eric Blake <ebb9@byu.net>.
6503
6504 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6505
6506         * modules/__func__: New file.
6507         * modules/__func__-tests: New file.
6508         * tests/test-__func__.c: New file.
6509         * m4/__func__.m4: New file.
6510         * doc/gnulib.texi (__func__): Document __func__ module.
6511
6512 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6513
6514         * modules/byteswap (License): Re-license as LGPLv2+.
6515
6516 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6517
6518         * doc/Makefile: Add pdf target.
6519
6520 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6521
6522         * modules/inline (License): Use 'unlimited', since there are only
6523         *.m4 files in this module.
6524
6525 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6526             Bruno Haible  <bruno@clisp.org>
6527
6528         Add support for HP C 7.1 on OpenVMS 8.3.
6529         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
6530
6531 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6532
6533         Update VMS specifics.
6534         * lib/getopt.c [VMS]: Remove include of unixlib.h.
6535
6536 2008-03-02  Jim Meyering  <meyering@redhat.com>
6537
6538         Remove the last dependency on the "free" module.
6539         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
6540         Reported by Bob Proulx.
6541
6542         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
6543
6544         Remove useless "if" tests before free.  Deprecate "free" module.
6545         * doc/posix-functions/free.texi: Mention that this
6546         module is no longer useful.
6547         * modules/free (Notice): Say this module is obsolete.
6548         * modules/readutmp (Depends-on): Remove free.
6549         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
6550         * lib/putenv.c (putenv): Likewise.
6551         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
6552         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
6553         * tests/test-c-strcasestr.c (main): Likewise.
6554         * tests/test-c-strstr.c (main): Likewise.
6555         * tests/test-mbscasestr1.c (main): Likewise.
6556         * tests/test-mbscasestr2.c (main): Likewise.
6557         * tests/test-mbsstr1.c (main): Likewise.
6558         * tests/test-mbsstr2.c (main): Likewise.
6559         * tests/test-memmem.c (main): Likewise.
6560         * tests/test-strcasestr.c (main): Likewise.
6561         * tests/test-striconv.c (main): Likewise.
6562         * tests/test-striconveh.c (main): Likewise.
6563         * tests/test-striconveha.c (main): Likewise.
6564         * tests/test-strstr.c (main): Likewise.
6565
6566         * build-aux/git-version-gen: Adjust a comment and the Usage string.
6567
6568         bootstrap: sync from coreutils again
6569         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
6570
6571 2008-03-01  Jim Meyering  <meyering@redhat.com>
6572
6573         bootstrap: sync from coreutils
6574         * build-aux/bootstrap (update_po_files): Copy a .po file into place
6575         also when the target doesn't exist.
6576
6577 2008-03-01  Eric Blake  <ebb9@byu.net>
6578
6579         Fix bugs in last patch.
6580         * lib/memchr2.c (memchr2): Fix typo.
6581         * tests/test-memchr2.c: Test previous bug, and don't use GNU
6582         extension.
6583         Reported by Bruce Korb.
6584
6585         New module 'memchr2'.
6586         * modules/memchr2: New file.
6587         * modules/memchr2-tests: Likewise.
6588         * lib/memchr2.h: Likewise.
6589         * lib/memchr2.c: Likewise, based on memchr.c.
6590         * tests/test-memchr2.c: New test.
6591         * MODULES.html.sh (String handling): Add memchr2.
6592
6593 2008-02-29  Bruno Haible  <bruno@clisp.org>
6594
6595         * modules/freadseek-tests: New file.
6596         * tests/test-freadseek.sh: New file.
6597         * tests/test-freadseek.c: New file.
6598
6599         New module 'freadseek'.
6600         * modules/freadseek: New file.
6601         * lib/freadseek.h: New file.
6602         * lib/freadseek.c: New file.
6603         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
6604
6605 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
6606
6607         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
6608         wydawca.
6609
6610         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
6611         program_invocation_name and program_invocation_short_name are
6612         present.
6613
6614 2008-02-28  Bruno Haible  <bruno@clisp.org>
6615
6616         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
6617         * tests/test-freadptr.sh: Also test non-seekable stdin.
6618
6619 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
6620
6621         * build-aux/bootstrap (source_base, m4_base)
6622         (doc_base, tests_base): New variables.
6623         (gnulib_tool_options): Do not hardcode base directories, use
6624         the above variables instead.
6625
6626 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
6627
6628         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
6629
6630 2008-02-28  Bruno Haible  <bruno@clisp.org>
6631
6632         * modules/freadptr-tests: New file.
6633         * tests/test-freadptr.sh: New file.
6634         * tests/test-freadptr.c: New file.
6635
6636         New module 'freadptr'.
6637         * modules/freadptr: New file.
6638         * lib/freadptr.h: New file.
6639         * lib/freadptr.c: New file.
6640         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
6641
6642 2008-02-26  Karl Berry  <karl@freefriends.org>
6643
6644         Sync from Libtool:
6645         * libltdl/argz.c (argz_add, argz_count): New functions.
6646         * libltdl/argz.in.h: Declare them.
6647         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
6648
6649 2008-02-22  Bruno Haible  <bruno@clisp.org>
6650
6651         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
6652         is a pointer type.  Needed for HP-UX 10.
6653         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
6654         * doc/posix-functions/gmtime_r.texi: Likewise.
6655         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6656
6657 2008-02-24  Bruno Haible  <bruno@clisp.org>
6658
6659         * modules/environ-tests: New file.
6660         * tests/test-environ.c: New file.
6661
6662         New module 'environ'.
6663         * modules/environ: New file.
6664         * lib/unistd.in.h (environ): New declaration.
6665         * m4/environ.m4: New file.
6666         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
6667         after use.
6668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
6669         HAVE_DECL_ENVIRON.
6670         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
6671         HAVE_DECL_ENVIRON.
6672         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
6673         wrong claim that 'environ' is missing on some systems.
6674         * modules/execute (Depends-on): Add environ.
6675         * lib/execute.c (environ): Remove fallback declaration.
6676         * modules/pipe (Depends-on): Add environ.
6677         * lib/pipe.c (environ): Remove fallback declaration.
6678         * modules/setenv (Depends-on): Add environ.
6679         * lib/setenv.c (environ): Remove fallback declaration.
6680         * modules/unsetenv (Depends-on): Add environ.
6681         * lib/unsetenv.c (environ): Remove fallback declaration.
6682         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
6683         m4/environ.m4.
6684         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
6685         (gl_PREREQ_UNSETENV): Likewise.
6686
6687 2008-02-24  Bruno Haible  <bruno@clisp.org>
6688
6689         * doc/posix-functions/environ.texi: Document the MacOS X problem.
6690
6691 2008-02-20  Bob Proulx  <bob@proulx.com>
6692
6693         Enable use of older two part flavor 'git describe'.
6694         * build-aux/git-version-gen: If using the older two part flavor of
6695         git version then recreate the third part now present in the
6696         newer three part flavor of git describe.
6697
6698 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
6699
6700         * lib/fts.c (fts_build): Typo correction to comment.
6701
6702 2008-02-17  Bruno Haible  <bruno@clisp.org>
6703
6704         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
6705         generating no-op conflicts.
6706
6707 2008-02-17  Bruno Haible  <bruno@clisp.org>
6708
6709         Speed up by 10%.
6710         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
6711         result_entries, rather than an index-based loop.
6712
6713 2008-02-17  Bruno Haible  <bruno@clisp.org>
6714
6715         Speed up by 25%.
6716         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
6717         'hashcode_cached'.
6718         (entry_create): New function.
6719         (entry_hashcode): Use the cached hashcode if possible.
6720         (read_changelog_file, try_split_merged_entry): Use entry_create.
6721
6722 2008-02-17  Bruno Haible  <bruno@clisp.org>
6723
6724         Speed up from O(n^2) to O(n) for long ChangeLog files.
6725         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
6726         (read_changelog_file): Change implementation of entries_reversed list
6727         to rbtreehash.
6728         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
6729
6730 2008-02-17  Bruno Haible  <bruno@clisp.org>
6731
6732         New option --split-merged-entry.
6733         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
6734         (find_paragraph_end, try_split_merged_entry): New functions.
6735         (long_options): Add option --split-merged-entry.
6736         (usage): Document option --split-merged-entry.
6737         (main): Implement option --split-merged-entry.
6738         Reported by Eric Blake.
6739
6740 2008-02-17  Bruno Haible  <bruno@clisp.org>
6741
6742         * lib/git-merge-changelog.c: Include c-strstr.h.
6743         (main): Support the "git pull --rebase" situation.
6744         * modules/git-merge-changelog (Depends-on): Add c-strstr.
6745         Reported by Eric Blake.
6746
6747 2008-02-16  Eric Blake  <ebb9@byu.net>
6748
6749         Avoid doubling \ in common case of "c-maybe" quoting style.
6750         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
6751         eliding outer quotes.
6752         * lib/quotearg.h: Document this.
6753         * tests/test-quotearg.c (result_strings, inputs, results_g)
6754         (flag_results, locale_results): Test it by adding a new string to
6755         each test group.
6756         (compare_strings): Test new string.
6757
6758 2008-02-13  Eric Blake  <ebb9@byu.net>
6759
6760         Avoid trigraph quoting in default output.
6761         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
6762         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
6763         unless explicitly requested.
6764         * tests/test-quotearg.c (flag_results, main): Add additional tests.
6765
6766 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
6767
6768         Don't rely on signed integer overflowing to negative value.
6769         * lib/getugroups.c (getugroups): Include <limits.h>.
6770         Instead, compare against INT_MAX, and increment only if the test passes.
6771
6772 2008-02-13  Jim Meyering  <meyering@redhat.com>
6773         and Eric Blake  <ebb9@byu.net>
6774
6775         Avoid shadowing warning and compile errors on Linux.
6776         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
6777         forwarding macros on Linux.
6778         (dcgettext): Define a stub, for Linux.
6779         (results_g, main): Avoid warnings.
6780
6781 2008-02-12  Eric Blake  <ebb9@byu.net>
6782
6783         Silence warning in last patch.
6784         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
6785
6786         Quotearg part 4: add tests, fix c-maybe colon quoting.
6787         * lib/quotearg.h: Improve documentation.
6788         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
6789         escapes when adding outer quotes.  When quoting trigraphs, use
6790         valid C notation.  When quoting NUL, omit extra characters if next
6791         character is not digit.  Alter prototype.
6792         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
6793         callers.
6794         * modules/quotearg-tests: New module.
6795         * tests/test-quotearg.c: New test.
6796
6797 2008-02-07  Eric Blake  <ebb9@byu.net>
6798
6799         Quotearg part 3: add flag to control outer quote elision.
6800         * lib/quotearg.h (c_maybe_quoting_style): New style.
6801         (enum quoting_flags): Better documentation of flags.
6802         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
6803         c-maybe style.
6804         (quotearg_buffer_restyled): Handle new flag to elide outer
6805         quotes.
6806
6807         Quotearg part 2: add flag that can control NUL elision.
6808         * lib/quotearg.h (set_quoting_flags): New prototype.
6809         * lib/quotearg.c (struct quoting_options): Add flag field.
6810         (set_quoting_flags): New function.
6811         (quotearg_buffer_restyled): Add flags parameter.
6812         (quotearg_alloc_mem): Set the flag if length cannot be returned.
6813         (quotearg_n_options): Set the flag, since length cannot be
6814         returned.
6815         (quoting_options_from_style): Default flags correctly.
6816
6817         Quotearg part 1: more wrappers, restore quotearg_char state.
6818         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
6819         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
6820         (quotearg_colon_mem): New wrappers.
6821         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
6822         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
6823         functions.
6824         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
6825         (quotearg_colon_mem): New functions.
6826
6827 2008-02-11  Bruno Haible  <bruno@clisp.org>
6828
6829         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
6830         library in the current directory: it does not work with parallel make.
6831         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6832
6833 2008-02-11  Bruno Haible  <bruno@clisp.org>
6834
6835         * .gitattributes: New file.
6836
6837 2008-02-11  Jim Meyering  <meyering@redhat.com>
6838
6839         useless-if-before-free: Fix reversed exit values.
6840         * build-aux/useless-if-before-free: Use correct values
6841         for EXIT_MATCH and EXIT_NO_MATCH.
6842
6843         * build-aux/useless-if-before-free: Close stdout carefully.
6844
6845 2008-02-10  Bruno Haible  <bruno@clisp.org>
6846
6847         New module 'git-merge-changelog'.
6848         * modules/git-merge-changelog: New file.
6849         * lib/git-merge-changelog.c: New file.
6850
6851 2008-02-10  Jim Meyering  <meyering@redhat.com>
6852
6853         useless-if-before-free: New option: --list (-l).
6854
6855         useless-if-before-free: Don't exit immediately upon open failure.
6856         * build-aux/useless-if-before-free: Exit 2 for errors.
6857         Upon failure to open a file, don't exit immediately.
6858         Rather, just warn and continue with any remaining files.
6859
6860 2008-02-10  Bruno Haible  <bruno@clisp.org>
6861
6862         New abstract list operation 'node_set_value'.
6863         * lib/gl_list.h (gl_list_node_set_value): New function.
6864         (struct gl_list_implementation): New field node_set_value.
6865         * lib/gl_list.c (gl_list_node_set_value): New function.
6866         * lib/gl_array_list.c (gl_array_node_set_value): New function.
6867         (gl_array_list_implementation): Update.
6868         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
6869         (gl_carray_list_implementation): Update.
6870         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
6871         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6872         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6873         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
6874         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6875         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6876         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6877         Update.
6878         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
6879         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
6880         (gl_sublist_list_implementation): Update.
6881
6882 2008-02-10  Bruno Haible  <bruno@clisp.org>
6883
6884         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
6885         Needed when ELEMENT is #defined to 'some_type *'.
6886
6887 2008-02-10  Jim Meyering  <meyering@redhat.com>
6888
6889         New script and module: useless-if-before-free
6890         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
6891         * build-aux/useless-if-before-free: New file.
6892         * modules/useless-if-before-free: New file.
6893
6894         * build-aux/gitlog-to-changelog: Use committer date, not author date.
6895
6896         xstrtol_error: Fix typo.
6897         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
6898         s/exit_failure/exit_status/.
6899
6900 2008-02-09  Jim Meyering  <meyering@redhat.com>
6901
6902         New script and module: gitlog-to-changelog
6903         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
6904         * modules/gitlog-to-changelog: New file.
6905         * build-aux/gitlog-to-changelog: New file.
6906
6907 2008-02-08  Jim Meyering  <meyering@redhat.com>
6908
6909         Avoid two "parameter unused" warnings.
6910         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
6911         Mark "st" as used.
6912
6913         Use "git COMMAND", not "git-COMMAND".
6914         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
6915         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
6916         * build-aux/git-version-gen: Use "git status", not "git-status".
6917
6918 2008-02-07  Bruno Haible  <bruno@clisp.org>
6919
6920         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
6921         Avoids a crash on Windows Vista.
6922         Reported by Adam Strzelecki <ono@java.pl> via
6923         Simon Josefsson <simon@josefsson.org>.
6924
6925 2008-02-06  Bruno Haible  <bruno@clisp.org>
6926
6927         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
6928         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
6929         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
6930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
6931         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6932         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6933         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
6934         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
6935         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6936         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6937         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6938         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6939         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6940         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6941         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6942         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
6943         left-adjust flag.
6944         * tests/test-snprintf-posix.h (test_function): Likewise.
6945         * tests/test-sprintf-posix.h (test_function): Likewise.
6946         * tests/test-vasprintf-posix.c (test_function): Likewise.
6947         * doc/posix-functions/fprintf.texi: Update.
6948         * doc/posix-functions/printf.texi: Update.
6949         * doc/posix-functions/snprintf.texi: Update.
6950         * doc/posix-functions/sprintf.texi: Update.
6951         * doc/posix-functions/vfprintf.texi: Update.
6952         * doc/posix-functions/vprintf.texi: Update.
6953         * doc/posix-functions/vsnprintf.texi: Update.
6954         * doc/posix-functions/vsprintf.texi: Update.
6955         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6956
6957 2008-02-06  Bruno Haible  <bruno@clisp.org>
6958
6959         Fix bug introduced on 2008-01-26.
6960         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
6961
6962 2008-02-06  Bruno Haible  <bruno@clisp.org>
6963
6964         Fix bug introduced on 2007-06-10.
6965         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
6966         !NEED_PRINTF_FLAG_ZERO.
6967
6968 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
6969
6970         getloadavg: use libperfstat on AIX5
6971         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
6972
6973 2008-02-03  Bruno Haible  <bruno@clisp.org>
6974
6975         * lib/diffseq.h: Add comments about required #includes.
6976         Reported by Michael Biggs <gnulib@doubleplum.net>.
6977
6978 2008-02-01  Bruno Haible  <bruno@clisp.org>
6979
6980         * users.txt: Add gnuit.
6981
6982 2008-01-31  Bruno Haible  <bruno@clisp.org>
6983
6984         * lib/md4.c (set_uint32): Mark as inline.
6985         * lib/md5.c (set_uint32): Likewise.
6986         * lib/sha1.c (set_uint32): Likewise.
6987         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
6988         * m4/md5.m4 (gl_MD5): Likewise.
6989         * m4/sha1.m4 (gl_SHA1): Likewise.
6990
6991 2008-01-31  Jim Meyering  <meyering@redhat.com>
6992
6993         Use "sizeof VAR", rather than a literal "4".
6994         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
6995         * lib/md4.c (md4_read_ctx): Likewise.
6996         * lib/sha1.c (sha1_read_ctx): Likewise.
6997
6998 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6999
7000         * tests/test-sha1.c: New file, based on test-md5.c.
7001
7002         * modules/crypto/sha1-tests: New file.
7003
7004 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7005
7006         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
7007
7008 2008-01-31  Jim Meyering  <meyering@redhat.com>
7009
7010         Prefer "sizeof v" over the equivalent "4".
7011         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
7012         * lib/md5.c (set_uint32): Likewise.
7013         * lib/sha1.c (set_uint32): Likewise.
7014
7015 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7016
7017         * lib/sha1.c (set_uint32): Mark function as static.
7018
7019 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7020
7021         md2: clarify comments to say that alignment is not required.
7022         * lib/md2.h: Remove warning about alignment in comment.
7023         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
7024         never been required.
7025
7026 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7027
7028         md4: adapt alignment constraint fix from sha1.
7029         * lib/md4.c (set_uint32): New function, from sha1.c
7030         (md4_read_ctx): Use it.
7031         (md4_finish_ctx): Doc fix.
7032         * lib/md4.h: Doc fix.
7033
7034 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7035
7036         md5: adapt alignment constraint fix from sha1.
7037         * lib/md5.c (set_uint32): New function, from sha1.c
7038         (md5_read_ctx): Use it.
7039         (md5_finish_ctx): Doc fix.
7040         * lib/md5.h: Doc fix.
7041
7042 2008-01-30  Peter Palfrader  <weasel@debian.org>
7043
7044         sha1: remove the result buffer alignment constraint
7045         * lib/sha1.c (set_uint32): New function.
7046         (sha1_read_ctx): Rewrite to remove the result buffer alignment
7047         constraint.
7048         (sha1_finish_ctx): Remove comment warning about alignment constraint.
7049         * lib/sha1.h: Likewise.
7050
7051 2008-01-30  Andreas Schwab  <schwab@suse.de>
7052             Bruno Haible  <bruno@clisp.org>
7053
7054         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
7055         correct definition of LDBL_MIN_EXP.
7056
7057 2008-01-30  Karl Berry  <karl@gnu.org>
7058
7059         * config/srclist-update: try to preserve x bit on updates.
7060         * config/srclistvars.sh: update for karl.
7061
7062 2008-01-29  Jim Meyering  <meyering@redhat.com>
7063
7064         vasnprintf.c: Avoid warning about unused label
7065         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
7066         "overflow" label definition and associated code with the
7067         same cpp condition that guards the sole use of that label.
7068
7069 2008-01-26  Bruno Haible  <bruno@clisp.org>
7070
7071         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7072         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
7073         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
7074         * lib/isnanl-nolibm.h (isnanl): Likewise.
7075         Reported by Paul Eggert <eggert@cs.ucla.edu>.
7076
7077 2008-01-26  Bruno Haible  <bruno@clisp.org>
7078
7079         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
7080         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
7081
7082 2008-01-26  Bruno Haible  <bruno@clisp.org>
7083
7084         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
7085         GCC >= 4.0 built-in.
7086         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
7087
7088 2008-01-26  Bruno Haible  <bruno@clisp.org>
7089
7090         Rename isnan, applicable to 'double' only, to isnand.
7091         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
7092         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
7093         (configure.ac): Update.
7094         (Include): Replace "isnan.h" with "isnand.h".
7095         * m4/isnand.m4: Renamed from m4/isnan.m4.
7096         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
7097         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
7098         instead of isnan.c.
7099         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
7100         instead of HAVE_ISNAN_IN_LIBC.
7101         (isnand): Renamed from isnan.
7102         * lib/isnand.c: New file.
7103         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
7104         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
7105         (Makefile.am): Update.
7106         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
7107         Include isnand.h instead of isnan.h.
7108         (main): Test isnand instead of isnan.
7109         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
7110         isnan-nolibm.
7111         * modules/frexp (Depends-on): Likewise.
7112         * modules/frexp-tests (Depends-on): Likewise.
7113         * modules/frexp-nolibm (Depends-on): Likewise.
7114         * modules/frexp-nolibm-tests (Depends-on): Likewise.
7115         * modules/isfinite (Depends-on): Likewise.
7116         * modules/round-tests (Depends-on): Likewise.
7117         * modules/signbit (Depends-on): Likewise.
7118         * modules/signbit-tests (Depends-on): Likewise.
7119         * modules/snprintf-posix (Depends-on): Likewise.
7120         * modules/sprintf-posix (Depends-on): Likewise.
7121         * modules/trunc-tests (Depends-on): Likewise.
7122         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7123         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7124         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7125         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7126         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7127         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7128         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7129         * modules/vasnprintf-posix (Depends-on): Likewise.
7130         * modules/vasprintf-posix (Depends-on): Likewise.
7131         * modules/vfprintf-posix (Depends-on): Likewise.
7132         * modules/vsnprintf-posix (Depends-on): Likewise.
7133         * modules/vsprintf-posix (Depends-on): Likewise.
7134         * lib/frexp.c: Include isnand.h instead of isnan.h.
7135         (ISNAN): Set to isnand instead of isnan.
7136         * lib/isfinite.c: Include isnand.h instead of isnan.h.
7137         (gl_isfinited): Use isnand instead of isnan.
7138         * lib/signbitd.c: Include isnand.h instead of isnan.h.
7139         (gl_signbitd): Use isnand instead of isnan.
7140         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
7141         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
7142         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
7143         (main): Use isnand instead of isnan.
7144         * tests/test-round1.c: Include isnand.h.
7145         (main): Use isnand instead of isnan.
7146         * tests/test-round2.c: Include isnand.h instead of isnan.h.
7147         (ISNAN): Set to isnand instead of isnan.
7148         * tests/test-trunc1.c: Include isnand.h.
7149         (main): Use isnand instead of isnan.
7150         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
7151         (equal): Use isnand instead of isnan.
7152         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
7153         isnand-nolibm.
7154         * NEWS: Mention the change.
7155
7156 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7157             Bruno Haible  <bruno@clisp.org>
7158
7159         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
7160         the GCC builtins for signbits are present and set
7161         REPLACE_SIGNBIT_USING_GCC if so.
7162         * lib/math.in.h (signbit): Define using GCC builtins if
7163         REPLACE_SIGNBIT_USING_GCC is set.
7164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
7165         REPLACE_SIGNBIT_USING_GCC.
7166         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
7167
7168 2008-01-25  Jim Meyering  <meyering@redhat.com>
7169
7170         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
7171         * lib/poll.c: Include <config.h>, not "config.h".
7172         * tests/test-getaddrinfo.c: Likewise.
7173
7174 2008-01-25  Simon Josefsson  <simon@josefsson.org>
7175
7176         * modules/sockets-tests: New file.
7177
7178 2008-01-24  Simon Josefsson  <simon@josefsson.org>
7179
7180         * modules/sockets: New module, can be used to call WSA_Startup and
7181         WSA_Cleanup when needed.
7182
7183         * lib/sockets.h, lib/sockets.c: New files.
7184
7185         * m4/sockets.m4: New file.
7186
7187         * tests/test-sockets.c: New file.
7188
7189 2008-01-19  Bruno Haible  <bruno@clisp.org>
7190
7191         * doc/posix-headers: Renamed from doc/headers.
7192         * doc/posix-functions: Renamed from doc/functions.
7193         * doc/gnulib.texi: Update.
7194
7195 2008-01-19  Bruno Haible  <bruno@clisp.org>
7196
7197         * doc/glibc-functions/strcasestr.texi: Include contents of
7198         doc/functions/strcasestr.texi, fixing the list of platforms.
7199         * doc/functions/strcasestr.texi: Remove file.
7200
7201 2008-01-19  Bruno Haible  <bruno@clisp.org>
7202
7203         * doc/glibc-functions/memmem.texi: Include contents of
7204         doc/functions/memmem.texi.
7205         * doc/functions/memmem.texi: Remove file.
7206
7207 2008-01-18  Bruno Haible  <bruno@clisp.org>
7208
7209         * doc/glibc-functions/*.texi: New files.
7210         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
7211         to use the new files.
7212
7213 2008-01-17  Bruno Haible  <bruno@clisp.org>
7214
7215         * tests/test-gethostname.c (main): Fix printf statement.
7216
7217 2008-01-17  Simon Josefsson  <simon@josefsson.org>
7218
7219         * modules/gethostname-tests: New file.
7220
7221         * tests/test-gethostname.c: New file.
7222
7223 2008-01-17  Simon Josefsson  <simon@josefsson.org>
7224
7225         * lib/gethostname.c: Include string.h unconditionally, strncpy is
7226         used by the UNAME case.  Reported by Bruno Haible
7227         <bruno@clisp.org>.
7228
7229 2008-01-17  Eric Blake  <ebb9@byu.net>
7230
7231         Convert c-strcasestr to be more efficient.
7232         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
7233         (Depends-on): Add c-strcase, remove malloca, strnlen.
7234         * tests/test-c-strcasestr.c (main): Enhance test.
7235         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
7236
7237 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
7238
7239         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
7240         Use it in creating po/Makevars.
7241
7242 2008-01-15  Simon Josefsson  <simon@josefsson.org>
7243
7244         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
7245         Applications that requires it should initialize libgcrypt
7246         manually.
7247
7248 2008-01-16  Simon Josefsson  <simon@josefsson.org>
7249
7250         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
7251
7252 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7253
7254         Fix problem with getdate on mingw32 reported by Simon Josefsson
7255         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
7256         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
7257         tzname", when deciding whether to declare tzname.
7258         * lib/strftime.c (tzname): Likewise.
7259
7260 2008-01-15  Bruno Haible  <bruno@clisp.org>
7261
7262         Work around a MacOS X 10.5 bug in frexpl().
7263         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
7264         * doc/functions/frexpl.texi: Document the bug.
7265         Reported by Elias Pipping <pipping@gentoo.org>.
7266
7267 2008-01-14  Eric Blake  <ebb9@byu.net>
7268
7269         Touch up previous patch.
7270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
7271         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
7272
7273         Convert strcasestr module to use Two-Way algorithm.
7274         * modules/strcasestr-simple: New module, based on the old
7275         strcasestr, but with Two-Way rather than KMP.
7276         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
7277         * lib/string.in.h (rpl_strcasestr): Declare.
7278         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
7279         performance.
7280         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
7281         * modules/string (Makefile.am): Support strcasestr.
7282         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
7283         * modules/strcasestr-tests (Depends-on): Check for alarm.
7284         * tests/test-strcasestr.c: Augment test.
7285         * lib/str-two-way.h: Clean up stray macro.
7286         * NEWS: Document new module.
7287         * MODULES.html.sh (string handling): Likewise.
7288         * doc/functions/strcasestr.texi: New file.
7289         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
7290         here, since it is not a POSIX function.
7291
7292 2008-01-14  Colin Watson  <cjwatson@debian.org>
7293             Bruno Haible  <bruno@clisp.org>
7294
7295         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
7296         works fine; if not, set REPLACE_STRSIGNAL.
7297         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
7298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7299         REPLACE_STRSIGNAL.
7300         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
7301         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
7302         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
7303
7304 2008-01-14  Bruno Haible  <bruno@clisp.org>
7305
7306         * modules/strsignal (Include): Change to <string.h>.
7307
7308 2008-01-14  Colin Watson  <cjwatson@debian.org>
7309
7310         * modules/argp (Notice): Add a notice recommending to change
7311         XGETTEXT_OPTIONS.
7312         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
7313
7314 2008-01-13  Colin Watson  <cjwatson@debian.org>
7315
7316         * modules/strsignal-tests: New file.
7317         * tests/test-strsignal.c: New file.
7318
7319         * lib/strsignal.c: New file, from glibc with modifications.
7320         * lib/siglist.h: New file, from glibc with modifications.
7321         * lib/string.in.h (strsignal): New declaration.
7322         * m4/strsignal.m4: New file.
7323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7324         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
7325         * modules/strsignal: New file.
7326         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
7327         HAVE_DECL_STRSIGNAL.
7328
7329 2008-01-13  Bruno Haible  <bruno@clisp.org>
7330
7331         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
7332         locale encoding is not ASCII. Needed for OpenBSD 4.0.
7333         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7334         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7335
7336 2008-01-13  Bruno Haible  <bruno@clisp.org>
7337
7338         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
7339         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
7340         * lib/argp.h (__attribute__): Likewise.
7341         * lib/c-stack.c (__attribute__): Likewise.
7342         * lib/error.h (__attribute__): Likewise.
7343         * lib/fts.c (__attribute__): Likewise.
7344         * lib/openat.h (__attribute__): Likewise.
7345         * lib/stdio.in.h (__attribute__): Likewise.
7346         * lib/string.in.h (__attribute__): Likewise.
7347         * lib/utimens.c (__attribute__): Likewise.
7348         * lib/vasnprintf.h (__attribute__): Likewise.
7349         * lib/xalloc.h (__attribute__): Likewise.
7350         * lib/xprintf.h (__attribute__): Likewise.
7351         * lib/xstrtol.h (__attribute__): Likewise.
7352         * lib/xvasprintf.h (__attribute__): Likewise.
7353
7354 2008-01-12  Bruno Haible  <bruno@clisp.org>
7355
7356         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
7357         * doc/glibc-headers/a.out.texi: New file.
7358         * doc/glibc-headers/aliases.texi: New file.
7359         * doc/glibc-headers/alloca.texi: New file.
7360         * doc/glibc-headers/ar.texi: New file.
7361         * doc/glibc-headers/argp.texi: New file.
7362         * doc/glibc-headers/argz.texi: New file.
7363         * doc/glibc-headers/byteswap.texi: New file.
7364         * doc/glibc-headers/crypt.texi: New file.
7365         * doc/glibc-headers/endian.texi: New file.
7366         * doc/glibc-headers/envz.texi: New file.
7367         * doc/glibc-headers/err.texi: New file.
7368         * doc/glibc-headers/error.texi: New file.
7369         * doc/glibc-headers/execinfo.texi: New file.
7370         * doc/glibc-headers/fpu_control.texi: New file.
7371         * doc/glibc-headers/fstab.texi: New file.
7372         * doc/glibc-headers/fts.texi: New file.
7373         * doc/glibc-headers/getopt.texi: New file.
7374         * doc/glibc-headers/ieee754.texi: New file.
7375         * doc/glibc-headers/ifaddrs.texi: New file.
7376         * doc/glibc-headers/libintl.texi: New file.
7377         * doc/glibc-headers/mcheck.texi: New file.
7378         * doc/glibc-headers/mntent.texi: New file.
7379         * doc/glibc-headers/obstack.texi: New file.
7380         * doc/glibc-headers/paths.texi: New file.
7381         * doc/glibc-headers/printf.texi: New file.
7382         * doc/glibc-headers/pty.texi: New file.
7383         * doc/glibc-headers/resolv.texi: New file.
7384         * doc/glibc-headers/shadow.texi: New file.
7385         * doc/glibc-headers/sysexits.texi: New file.
7386         * doc/glibc-headers/ttyent.texi: New file.
7387
7388 2008-01-12  Jim Meyering  <meyering@redhat.com>
7389
7390         announce-gen: emit Gnulib's git-based version string.
7391         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
7392         New option --gnulib-version=V, where V is expected to be
7393         the output of running git describe in the gnulib directory.
7394         (get_tool_versions): Request feedback on xdelta.  I suspect it's
7395         not useful, and plan to stop publishing an xdelta file with each
7396         coreutils release.
7397
7398         * build-aux/announce-gen: Also check for lzma-compressed files.
7399
7400 2008-01-11  Bruno Haible  <bruno@clisp.org>
7401
7402         * tests/test-memmem.c (main): Increase maximum allowed time.
7403         * tests/test-strstr.c (main): Likewise.
7404
7405 2008-01-11  Bruno Haible  <bruno@clisp.org>
7406
7407         * doc/functions/memmem.texi: Add more precisions about platforms.
7408         * doc/functions/strstr.texi: Likewise.
7409
7410 2008-01-10  Eric Blake  <ebb9@byu.net>
7411
7412         * m4/strstr.m4: Delete cruft from copy-n-paste.
7413         Reported by Bruno Haible.
7414
7415 2008-01-10  Bruno Haible  <bruno@clisp.org>
7416
7417         Make c-strstr rely on strstr.
7418         * lib/c-strstr.c: Don't include str-kmp.h.
7419         (c_strstr): Define in terms of strstr.
7420         * modules/c-strstr (Files): Remove lib/str-kmp.h.
7421         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
7422
7423 2008-01-10  Bruno Haible  <bruno@clisp.org>
7424
7425         * doc/gnulib.texi (String Functions in C Locale): New section.
7426         * doc/c-ctype.texi: New file.
7427         * doc/c-strcase.texi: New file.
7428         * doc/c-strcaseeq.texi: New file.
7429         * doc/c-strcasestr.texi: New file.
7430         * doc/c-strstr.texi: New file.
7431         * doc/c-strtod.texi: New file.
7432         * doc/c-strtold.texi: New file.
7433
7434 2008-01-10  Eric Blake  <ebb9@byu.net>
7435
7436         * lib/relocatable.h: Fix a comment.
7437
7438 2008-01-10  Eric Blake  <ebb9@byu.net>
7439
7440         Share two-way algorithm.
7441         * lib/str-two-way.h: New file, merged from...
7442         * lib/memmem.c: ...here...
7443         * lib/strstr.c: ...and here.
7444         * modules/memmem (Files): Use it.
7445         * modules/strstr (Files): Likewise.
7446
7447         Avoid quadratic strstr implementations.
7448         * lib/strstr.c: New file.
7449         * m4/strstr.m4: Likewise.
7450         * modules/strstr: Likewise.
7451         * modules/strstr-tests: Likewise.
7452         * tests/test-strstr.c: Likewise.
7453         * lib/string.in.h (rpl_strstr): Declare.
7454         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
7455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
7456         * modules/string (Makefile.am): Likewise.
7457         * MODULES.html.sh (string handling): Mention new module.
7458         * doc/functions/strstr.texi (strstr): Document the bug.
7459
7460 2008-01-10  Bruno Haible  <bruno@clisp.org>
7461
7462         * lib/relocatable.h (relocate): State whether result is freshly
7463         allocated or not.
7464         * lib/relocatable.c (relocate): Return a freshly allocated string
7465         instead of a pointer to a privately held string.
7466         Reported by Sylvain Beucler <beuc@gnu.org>.
7467
7468 2008-01-10  Colin Watson  <cjwatson@debian.org>
7469
7470         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
7471         s/S_ISNLK/S_ISLNK/.
7472
7473 2008-01-09  Bruno Haible  <bruno@clisp.org>
7474
7475         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
7476         and other files.
7477         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
7478         if it's only a guess.
7479         * modules/memmem: Simplify by depending on memmem-simple.
7480
7481 2008-01-09  Bruno Haible  <bruno@clisp.org>
7482
7483         Work around OpenBSD 4.0 tdelete() bug.
7484         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
7485         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
7486         macros and don't redefine the enum values.
7487         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
7488         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
7489         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
7490
7491 2008-01-09  Bruno Haible  <bruno@clisp.org>
7492
7493         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
7494         (main): Don't perform the tests if setlocale did not install a UTF-8
7495         locale. Needed on OpenBSD 4.0.
7496         * modules/wcwidth-tests (Depends-on): Add localcharset.
7497
7498 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7499
7500         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
7501         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
7502         * NEWS: announce this.
7503         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
7504
7505 2008-01-09  Simon Josefsson  <simon@josefsson.org>
7506         and Eric Blake  <ebb9@byu.net>
7507
7508         Add memmem-simple module.
7509         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
7510         (gl_FUNC_MEMMEM): Separate performance from presence checks.
7511         * modules/memmem-simple: New file.
7512         * modules/memmem (Description): Tweak.
7513         * MODULES.html.sh (string handling): Mention new module.
7514         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
7515         addressed by memmem-simple.
7516         * NEWS: Document the difference.
7517
7518 2008-01-09  Eric Blake  <ebb9@byu.net>
7519
7520         Give gcc some memmem optimization hints.
7521         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
7522         (strcasestr): Declare as pure.
7523         * modules/memmem (Maintainer): Claim my implementation.
7524
7525 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7526
7527         Support AIX 6.1 and higher.
7528         * build-aux/config.libpath: Likewise.
7529         * build-aux/config.rpath: Likewise.
7530
7531 2008-01-08  Jim Meyering  <meyering@redhat.com>
7532             Bruno Haible  <bruno@clisp.org>
7533
7534         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
7535         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
7536         Reported by Peter Fales in
7537         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
7538
7539 2008-01-08  Bruno Haible  <bruno@clisp.org>
7540
7541         * modules/unictype/category-of (Depends-on): Add
7542         unictype/category-none.
7543         * modules/unictype/category-and-tests (Depends-on): Add
7544         unictype/category-{L,N,Lu,Nd}.
7545         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
7546         * modules/unictype/category-or-tests (Depends-on): Add
7547         unictype/category-{L,N}.
7548         * modules/unictype/category-name-tests (Depends-on): Add
7549         unictype/category-{Z,Nl}.
7550         Reported by Simon Josefsson.
7551
7552 2008-01-08  Bruno Haible  <bruno@clisp.org>
7553
7554         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
7555         convention better.
7556         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
7557         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
7558         Reported by Peter Miller <millerp@canb.auug.org.au>.
7559
7560 2008-01-08  Eric Blake  <ebb9@byu.net>
7561
7562         Rewrite memmem to guarantee linear complexity without malloc.
7563         * lib/memmem.c (memmem): Use Two-Way rather than
7564         Knuth-Morris-Pratt, to allow O(1) space usage.
7565         (critical_factorization, two_way_short_needle)
7566         (two_way_long_needle): New functions.
7567         (knuth_morris_pratt): Delete.
7568         * modules/memmem (Depends-on): No longer need malloca or stdbool.
7569         Add stdint.
7570         * tests/test-memmem.c (main): Add tests for periodic needle and
7571         sublinear performance.
7572         * doc/functions/memmem.texi (memmem): Document other deficiencies
7573         in cygwin and older glibc.
7574
7575 2008-01-08  Bruno Haible  <bruno@clisp.org>
7576
7577         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
7578         augmentation.
7579
7580 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
7581
7582         Add a configure time option: --disable-acl.
7583         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
7584         AC_ARG_ENABLE(acl).
7585
7586 2008-01-06  Simon Josefsson  <simon@josefsson.org>
7587
7588         * tests/test-localename.c: Don't include obsolete "setenv.h".
7589
7590         * modules/localename-tests (Depends-on): Need unsetenv.
7591
7592 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7593
7594         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
7595
7596 2008-01-06  Colin Watson  <cjwatson@debian.org>
7597
7598         * users.txt: Add man-db.
7599
7600 2008-01-07  Bruno Haible  <bruno@clisp.org>
7601
7602         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
7603         previous section name.
7604
7605 2008-01-07  Bruno Haible  <bruno@clisp.org>
7606
7607         * lib/progname.c (set_program_name): Don't strip off a leading
7608         "lt-" prefix outside a .libs directory.
7609         Suggested by Paul Eggert.
7610
7611 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
7612             Bruno Haible  <bruno@clisp.org>
7613
7614         Improve memory cleanup in 'relocatable' module.
7615         * lib/relocatable.h (compute_curr_prefix): Change return type to
7616         'char *'.
7617         * lib/relocatable.c (compute_curr_prefix): Change return type to
7618         'char *'. Free curr_installdir after use.
7619         (relocate): Free curr_prefix_better after use.
7620         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
7621
7622 2008-01-01  Bruno Haible  <bruno@clisp.org>
7623
7624         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
7625         failure on older glibc systems.
7626         Reported by Peter Fales <psfales@alcatel-lucent.com>.
7627
7628 2008-01-05  Eric Blake  <ebb9@byu.net>
7629
7630         Avoid quadratic system memmem.
7631         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
7632         Reported by Ralf Wildenhues.
7633
7634         Fix memmem test for mingw.
7635         * modules/memmem-tests (configure.ac): Check for alarm.
7636         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
7637         it.
7638         * doc/functions/memmem.texi: New file.
7639         * doc/gnulib.texi (Function Substitutes): Add memmem.
7640         Reported by Bruno Haible.
7641
7642 2008-01-04  Bruno Haible  <bruno@clisp.org>
7643
7644         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
7645         Require gl_HEADER_STRINGS_H_DEFAULTS, not
7646         gl_HEADER_STRING_H_DEFAULTS.
7647
7648 2008-01-04  Eric Blake  <ebb9@byu.net>
7649
7650         Shorten duration of memmem test.
7651         * tests/test-memmem.c (main): Use alarm to declare failure if test
7652         is taking too long.
7653         Reported by Ralf Wildenhues.
7654
7655 2007-12-21  Simon Josefsson  <simon@josefsson.org>
7656
7657         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
7658         string, needed by strerror.
7659
7660 2008-01-03  Colin Watson  <cjwatson@debian.org>
7661             Bruno Haible  <bruno@clisp.org>
7662
7663         * doc/gnulib-tool.texi (Localization): New section.
7664
7665 2008-01-02  Bruno Haible  <bruno@clisp.org>
7666
7667         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
7668         variables to 'unsigned char *' type.
7669         Reported by Paul Eggert.
7670
7671 2008-01-02  Jim Meyering  <jim@meyering.net>
7672
7673         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
7674
7675 2007-12-31  Jim Meyering  <jim@meyering.net>
7676
7677         Avoid use of private FTS type name.
7678         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
7679
7680 2007-12-30  Karl Berry  <karl@gnu.org>
7681
7682         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
7683         work around defect in Texinfo and/or the standalone Info browser.
7684
7685 2007-12-30  Bruno Haible  <bruno@clisp.org>
7686
7687         Unify 5 copies of the KMP code.
7688         * lib/str-kmp.h: New file.
7689         * lib/c-strcasestr.c: Include str-kmp.h.
7690         (knuth_morris_pratt): Remove function.
7691         (c_strcasestr): Update.
7692         * lib/c-strstr.c: Include str-kmp.h.
7693         (knuth_morris_pratt): Remove function.
7694         (c_strcasestr): Update.
7695         * lib/mbscasestr.c: Include str-kmp.h.
7696         (knuth_morris_pratt_unibyte): Remove function.
7697         * lib/mbsstr.c: Include str-kmp.h.
7698         (knuth_morris_pratt_unibyte): Remove function.
7699         * lib/strcasestr.c: Include str-kmp.h.
7700         (knuth_morris_pratt): Remove function.
7701         (strcasestr): Update.
7702         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
7703         * modules/c-strstr (Files): Likewise.
7704         * modules/mbscasestr (Files): Likewise.
7705         * modules/mbsstr (Files): Likewise.
7706         * modules/strcasestr (Files): Likewise.
7707         Suggested by Paul Eggert.
7708
7709 2007-12-30  Bruno Haible  <bruno@clisp.org>
7710
7711         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
7712         defined.
7713
7714 2007-12-30  Bruno Haible  <bruno@clisp.org>
7715
7716         * lib/xmalloca.h: Include xalloc.h.
7717         (xnmalloca): New macro.
7718
7719 2007-12-30  Bruno Haible  <bruno@clisp.org>
7720
7721         * lib/malloca.h (nmalloca): New macro.
7722         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
7723         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
7724         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
7725         knuth_morris_pratt_multibyte): Likewise.
7726         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
7727         knuth_morris_pratt_multibyte): Likewise.
7728         * lib/memmem.c (knuth_morris_pratt): Likewise.
7729         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
7730
7731 2007-12-25  Bruno Haible  <bruno@clisp.org>
7732
7733         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
7734         * lib/glob.c: Don't include openat.h.
7735         (link_exists2_p): Add back the code that deals with the
7736         !GLOB_ALTDIRFUNC case.
7737         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
7738         let it do the filename concatenation.
7739         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
7740         * modules/glob (Depends-on): Remove openat.
7741
7742 2007-12-31  Bruno Haible  <bruno@clisp.org>
7743
7744         * modules/dirfd (License): Change to LGPLv2+.
7745         Approved by Jim Meyering.
7746
7747 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7748
7749         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
7750         when multiplying M by sizeof (size_t).
7751
7752 2007-12-10  Martin Lambers  <marlam@marlam.de>
7753
7754         Override getpagesize on mingw.
7755         * lib/getpagesize.c: New file.
7756         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
7757         * modules/getpagesize (Files): Add lib/getpagesize.c.
7758         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
7759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7760         REPLACE_GETPAGESIZE.
7761         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
7762
7763 2007-12-25  Bruno Haible  <bruno@clisp.org>
7764
7765         * modules/localcharset (Notice): New field.
7766         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
7767         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7768
7769 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7770             Bruno Haible  <bruno@clisp.org>
7771
7772         Avoid using the syntax symbol() in formatted documentation.
7773         * MODULES.html.sh (func_module): When replacing symbol() with a
7774         hyperlink, remove the parentheses. Show an error if some remain.
7775         Recognize and render the '...' syntax.
7776         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
7777         Rework. Add paragraph about GCC's inlining.
7778         * doc/alloca.texi: Likewise.
7779         * doc/error.texi: Remove parentheses from symbol reference.
7780         * doc/gnulib-intro.texi: Likewise.
7781         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
7782         * modules/fnmatch (Description): Reword to say "the ... function".
7783         * modules/full-read (Description): Likewise.
7784         * modules/full-write (Description): Likewise.
7785         * modules/safe-read (Description): Likewise.
7786         * modules/safe-write (Description): Likewise.
7787         * modules/strchrnul (Description): Likewise.
7788         * modules/trim (Description): Likewise.
7789         * modules/error (Description): Remove parentheses from symbol
7790         references.
7791         * modules/verror (Description): Likewise.
7792         Reported by Karl Berry.
7793
7794 2007-12-25  Bruno Haible  <bruno@clisp.org>
7795
7796         Fixup after 2007-10-16 commit.
7797         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
7798
7799 2007-12-24  Bruno Haible  <bruno@clisp.org>
7800
7801         Make --enable-relocatable work with DESTDIR.
7802         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
7803         to compute installdir from destprog.
7804         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
7805         also set the RELOC_DESTDIR variable.
7806         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
7807
7808 2007-12-24  Bruno Haible  <bruno@clisp.org>
7809
7810         Fix link error due to xalloc_die().
7811         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
7812         of xreadlink.
7813         * lib/relocwrapper.c: Update comments.
7814         * build-aux/install-reloc: Remove xreadlink.c from file list.
7815         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
7816         xreadlink.c.
7817         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
7818
7819 2007-12-24  Bruno Haible  <bruno@clisp.org>
7820
7821         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
7822         * lib/setenv.h: Remove file.
7823         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
7824         lib/setenv.h.
7825         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
7826         (Depends-on): Add stdlib.
7827         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
7828         gl_FUNC_UNSETENV.
7829         (Include): Replace setenv.h with <stdlib.h>.
7830         * modules/unsetenv: New file.
7831         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
7832         * lib/unsetenv.c: Include <stdlib.h> first.
7833         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
7834         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
7835         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
7836         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
7837         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
7838         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
7840         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7841         * doc/functions/unsetenv.texi: Update.
7842         * modules/xsetenv (Depends-on): Add unsetenv.
7843         * modules/getdate (Depends-on): Likewise.
7844         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
7845         * lib/xsetenv.c: Don't include setenv.h.
7846         * lib/getdate.y: Likewise.
7847         * lib/relocwrapper.c: Likewise.
7848         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
7849         (Depends-on): Add stdlib.
7850         * NEWS: Mention the changes.
7851         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
7852
7853 2007-12-23  Bruno Haible  <bruno@clisp.org>
7854
7855         * lib/memmem.c (memmem): Use lowercase variable names. Tab
7856         indentation.
7857
7858 2007-12-23  Bruno Haible  <bruno@clisp.org>
7859
7860         * lib/c-strcasestr.c: Add more comments.
7861         * lib/c-strstr.c: Likewise.
7862         * lib/mbscasestr.c: Likewise.
7863         * lib/mbsstr.c: Likewise.
7864         * lib/strcasestr.c: Likewise.
7865         * lib/memmem.c: Likewise.
7866
7867 2007-12-23  Bruno Haible  <bruno@clisp.org>
7868
7869         * tests/test-memmem.c: Include <string.h> first.
7870
7871 2007-12-22  Bruno Haible  <bruno@clisp.org>
7872
7873         * gnulib-tool (func_create_testdir): Change $auxdir while generating
7874         the contents of $testsbase.
7875         Reported by Ralf Wildenhues.
7876
7877 2007-12-22  Bruno Haible  <bruno@clisp.org>
7878
7879         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
7880         two variables local_ldadd_before, local_ldadd_last.
7881
7882 2007-12-20  Eric Blake  <ebb9@byu.net>
7883
7884         Work around circular library issue when cross-compiling.
7885         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
7886         that progname.o does not need to pull in rpl_memcmp.
7887
7888 2007-12-19  Eric Blake  <ebb9@byu.net>
7889
7890         Fix memmem to avoid O(n^2) worst-case complexity.
7891         * lib/memmem.c (knuth_morris_pratt): New function.
7892         (memmem): Use it if first few naive iterations fail.
7893         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
7894         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
7895         * modules/memchr (License): Likewise.
7896         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
7897         malloca.
7898         * tests/test-memmem.c: Rewrite, borrowing ideas from
7899         test-mbsstr1.c; the old version wouldn't even compile!
7900         * modules/memmem-tests: New file.
7901         * lib/string.in.h (rpl_memmem): Add declaration.
7902         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
7903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
7904         REPLACE_MEMMEM.
7905
7906 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7907
7908         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
7909         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
7910         before any system include files, and undef after them all.  This
7911         should fix a problem on VMS reported by John E. Malmberg in
7912         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
7913
7914 2007-12-17  Eric Blake  <ebb9@byu.net>
7915
7916         Revert addition of verify, for BSD/OS.
7917         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
7918         can't handle large files, for the sake of obsolete platforms.
7919         * modules/fseeko (Depends-on): Remove verify.
7920         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
7921         * doc/functions/ftello.texi (ftello): Likewise.
7922         * doc/functions/fgetpos.texi (fgetpos): Likewise.
7923         Reported by Larry Jones.
7924
7925 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
7926
7927         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
7928         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
7929
7930 2007-12-17  Jim Meyering  <meyering@redhat.com>
7931
7932         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
7933         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
7934         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
7935         * modules/getcwd (Depends-on): Add openat.
7936         Reported by Petr Salinger.
7937
7938 2007-12-17  Bruno Haible  <bruno@clisp.org>
7939
7940         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
7941         avoid a segmentation fault of the configure test on x86_64 systems.
7942
7943 2007-12-15  Jim Meyering  <meyering@redhat.com>
7944
7945         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
7946
7947 2007-12-13  Eric Blake  <ebb9@byu.net>
7948
7949         Another fseek test.
7950         * tests/test-fseek.c (main): Also test ungetc handling.
7951         * tests/test-fseeko.c (main): Likewise.
7952         * modules/fseeko (Depends-on): Add verify.
7953         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
7954         large.
7955         Reported by Larry Jones.
7956
7957         Fix fseeko on mingw.
7958         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
7959         seek.
7960
7961         Beef up fseek tests.
7962         * tests/test-fseek.c (main): Also test eof handling.
7963         * tests/test-fseeko.c (main): Likewise.
7964         Reported by Larry Jones.
7965
7966 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
7967
7968         Fix fseeko on BSD-based platforms.
7969         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
7970         successful seek.
7971
7972 2007-12-12  Eric Blake  <ebb9@byu.net>
7973
7974         Allow circular dependency of separate libtests.a
7975         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
7976         when use_libtests.
7977
7978 2007-12-11  Eric Blake  <ebb9@byu.net>
7979
7980         Fix bug with -0.0L in previous patch.
7981         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
7982         * tests/test-isnan.c (main): Also test on zeroes.
7983         * tests/test-isnanf.c (main): Likewise.
7984         * tests/test-isnanl.h (main): Likewise.
7985
7986         Detect pseudo-denormals on x86 even when cross-compiling.
7987         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
7988         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
7989         invalid bit patterns that happen to satisfy ==.
7990
7991         Avoid link failures with separate libtests.a.
7992         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
7993         last, to satisfy circular dependencies.
7994
7995 2007-12-11  Eric Blake  <ebb9@byu.net>
7996         and Bruno Haible  <bruno@clisp.org>
7997
7998         Fix OpenBSD 4.0 <float.h> handling of long double.
7999         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
8000         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
8001         * doc/headers/float.texi (float.h): Document OpenBSD bug.
8002
8003 2007-12-11  Jim Meyering  <meyering@redhat.com>
8004
8005         * users.txt: Add libvirt.
8006
8007         Support versions of autoconf prior to 2.59c.
8008         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
8009         if it is not already defined.
8010
8011 2007-12-09  Bruno Haible  <bruno@clisp.org>
8012
8013         Let 'gnulib-tool --import' collect sources needed for the tests in
8014         tests/ rather than in lib/.
8015         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
8016         argument. If true, add rules to generate libtests.a, and put libtests.a
8017         into $(LDADD). Consider source files in subdirectories and set
8018         uses_subdirs.
8019         (func_emit_initmacro_start, func_emit_initmacro_end,
8020         func_emit_initmacro_done): Pass all arguments explicitly.
8021         (func_import): Determine two module lists main_modules,
8022         testsrelated_modules. Determine use_libtests. Determine two variables
8023         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
8024         instead of just sed_transform_lib_file. Determine two variables
8025         main_files and testsrelated_files. Compute 'files' as the union of
8026         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
8027         func_add_or_update. In the generated gnulib-comp.m4, collect the
8028         object files for tests/ in different variables than those for lib/.
8029         Substitute LIBTESTS_LIBDEPS.
8030         (func_create_testdir): Combine the uses_subdirs results from
8031         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
8032
8033 2007-12-09  Bruno Haible  <bruno@clisp.org>
8034
8035         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
8036         the build-aux directory.
8037
8038 2007-12-09  Bruno Haible  <bruno@clisp.org>
8039
8040         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
8041         introduced on 2006-09-09.
8042
8043 2007-12-07  Jim Meyering  <meyering@redhat.com>
8044
8045         Let these macros work also with autoconf-2.59.
8046         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
8047         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
8048         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8049
8050 2007-12-06  Jim Meyering  <meyering@redhat.com>
8051
8052         Avoid a configure-time syntax error in gl_FUNC_ACL.
8053         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
8054         function in each branch, before testing the cache variable.
8055
8056 2007-12-04  Eric Blake  <ebb9@byu.net>
8057
8058         Make scripts executable.
8059         * build-aux/config.guess: Add execute permissions.
8060         * build-aux/config.sub: Likewise.
8061         * build-aux/gendocs.sh: Likewise.
8062
8063         Fix frexp on mingw.
8064         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
8065         cross-compiling.
8066         * doc/functions/frexp.texi (frexp): Document the bug.
8067
8068         Make cygwin fseeko check more reliable.
8069         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
8070         version numbers, rather than unrelated feature check.
8071         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
8072         * doc/functions/ftello.texi (ftello): Likewise.
8073         Reported by Bruno Haible.
8074
8075         * m4/strerror.m4: Bump version number.
8076
8077 2007-12-03  Bruno Haible  <bruno@clisp.org>
8078
8079         * doc/functions/mprotect.texi: Mention the mingw problem.
8080
8081 2007-12-03  Eric Blake  <ebb9@byu.net>
8082
8083         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
8084         REPLACE_STRERROR is initialized before this macro.
8085
8086 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
8087
8088         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
8089         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
8090         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
8091         put -lsec in even for programs other than 'ls'.  This fixes a problem
8092         for gettext reported by Bruno Haible in
8093         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
8094         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
8095         Add support for Solaris 10.  This isn't efficient, but should get the
8096         job done for now.
8097
8098 2007-12-03  James Youngman  <jay@gnu.org>
8099
8100         * doc/regexprops-generic.texi: change "an close-group" to "a
8101         close-group" and "illegal" to "not allowed".
8102
8103 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8104
8105         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
8106         pr_byname.h. Needed for the rare case when the maintainer has done
8107         "make maintainer-clean" in the source directory and then attempts a
8108         build outside the source directory.
8109         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
8110         scripts_byname.h.
8111
8112 2007-12-02  Martin Lambers <marlam@marlam.de>
8113             Bruno Haible  <bruno@clisp.org>
8114
8115         * lib/getpagesize.h: Remove file.
8116         * lib/unistd.in.h: Include declaration of getpagesize here.
8117         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
8118         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
8119         HAVE_SYS_PARAM_H.
8120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
8121         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8122         * modules/getpagesize (Files): Remove lib/getpagesize.h.
8123         (Depends-on): Add unistd.
8124         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8125         (Include): Use <unistd.h> instead of getpagesize.h.
8126         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
8127         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8128         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
8129         gl_GETPAGESIZE invocation, already handled by module dependency.
8130         * lib/pagealign_alloc.c: Don't include getpagesize.h.
8131
8132 2007-12-02  Bruno Haible  <bruno@clisp.org>
8133
8134         * modules/strings-tests: New file.
8135         * tests/test-strings.c: New file.
8136
8137         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
8138         * lib/strings.in.h: New file.
8139         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
8140         * m4/strings_h.m4: New file.
8141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
8142         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
8143         * modules/strings: New file.
8144         * modules/string (Makefile.am): Update.
8145         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
8146         Reported by Karl Berry.
8147
8148 2007-12-01  Eric Blake  <ebb9@byu.net>
8149
8150         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
8151         accomodate fix in cygwin 1.5.25.
8152
8153 2007-12-01  Jim Meyering  <meyering@redhat.com>
8154
8155         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
8156         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
8157         that would inhibit utf8-optimization of a regexp containing line-
8158         or buffer-anchors, e.g., `^', `$'.
8159
8160 2007-11-30  Bruno Haible  <bruno@clisp.org>
8161
8162         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
8163         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
8164         glthread_recursive_lock_init.
8165         * lib/lock.c (glthread_recursive_lock_init)
8166         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
8167         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8168
8169 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
8170
8171         New function qset_acl, like set_acl but with syscall semantics.
8172         * lib/acl.h (qset_acl): New decl.
8173         * lib/acl.c (qset_acl): New function.
8174         (set_acl): Use new function.  Use more-consistent diagnostics.
8175
8176 2007-11-28  Jim Meyering  <meyering@redhat.com>
8177
8178         * modules/physmem (License): Change from GPL to LGPLv2+.
8179
8180 2007-11-26  Bruno Haible  <bruno@clisp.org>
8181
8182         * lib/vasnprintf.c (decode_long_double): Don't abort if the
8183         'long double' type has excess precision.
8184         Reported by Jim Meyering in
8185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
8186
8187 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8188
8189         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
8190         Sync from <http://gnu.org/licenses>.
8191         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
8192         with license text from same location.
8193         * doc/maintain.texi, doc/standards.texi:  Sync from
8194         <http://savannah.gnu.org/projects/gnustandards>.
8195
8196 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
8197         and Jim Meyering  <meyering@redhat.com>
8198
8199         Adjust getdate' grammar to accept a slightly more regular language.
8200         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
8201         Before, the former was rejected.
8202         * lib/getdate.y (digits_to_date_time): New function, factored
8203         out of ...
8204         (number): ...here.  Just call digits_to_date_time.
8205         (hybrid): New non-terminal to handle an <unsigned number,
8206         signed relative offset> sequence consistently.
8207
8208 2007-11-18  Jim Meyering  <meyering@redhat.com>
8209
8210         Pull my changes from coreutils:
8211         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
8212         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
8213         use of $gnulib_tool_option_extras, so that it's separated from the
8214         preceding argument.
8215
8216         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
8217         * build-aux/bootstrap (cp_mark_as_generated): Create any required
8218         parent destination directories before copying a file into place.
8219
8220 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
8221
8222         bootstrap: work also with 4-argument variant of AC_INIT
8223         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
8224
8225 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
8226
8227         Port test-getaddrinfo to Solaris.
8228         Problem reported by Bruno Haible in
8229         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
8230         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
8231         explanation of setting 'hints'.
8232         Don't reject an implementation merely because it returns EAI_SERVICE.
8233         (EAI_SERVICE): Define to 0 if not defined.
8234
8235 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8236
8237         The license of gnu-make and posix-shell is now "GPLed build tool".
8238         * modules/gnu-make (License): Likewise.
8239         * modules/posix-shell (License): Likewise.
8240
8241         New module posix-shell, for determining a POSIX shell
8242         or perhaps something that is close enough to a POSIX shell.
8243         * m4/posix-shell.m4: New file.
8244         * modules/posix-shell: New file.
8245
8246         * MODULES.html.sh: Mention new module.
8247
8248         New module gnu-make, for determining whether we're using GNU Make.
8249         * m4/gnu-make.m4: New file.
8250         * modules/gnu-make: New file.
8251         * MODULES.html.sh: Mention new module.
8252
8253 2007-11-14  Jim Meyering  <meyering@redhat.com>
8254
8255         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
8256         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
8257         use this macro to create a function _definition_.
8258         Remove useless "#undef ARGMATCH_DIE".
8259
8260 2007-11-14  Bruno Haible  <bruno@clisp.org>
8261
8262         * lib/config.charset: Update for OpenBSD 4.1.
8263         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
8264
8265 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
8266
8267         Document 64-bit #if problems in stdint.texi.
8268         * doc/headers/stdint.texi (stdint.h): Mention problems with
8269         64-bit-#if, and how to work around them.
8270
8271         Don't insist on 'long long int' support in the preprocessor.  It
8272         breaks too many things.  For example, PRIdMAX still uses a 'long
8273         long int' format with the latest Sun compiler, even though
8274         HAVE_LONG_LONG_INT isn't defined due to that compiler's
8275         preprocessor problem.  This causes the latest coreutils to dump
8276         core on Solaris 10 sparc with the Sun C compiler.
8277         Instead, fix the 2007-10-16 problem in a different way, by evaluating
8278         the troublesome expressions at configure-time, not at #if-time.
8279         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
8280         preprocessor.
8281         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
8282         compile-time C checks, done at 'configure'-time.
8283         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
8284         * modules/inttypes (Makefile): Substitute the new symbols that
8285         gl_INTTYPES_H now generates.
8286         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
8287
8288 2007-11-12  Bruno Haible  <bruno@clisp.org>
8289
8290         Tests for Unicode character classification functions.
8291
8292         * modules/unictype/bidicategory-byname-tests: New file.
8293         * modules/unictype/bidicategory-name-tests: New file.
8294         * modules/unictype/bidicategory-of-tests: New file.
8295         * modules/unictype/bidicategory-test-tests: New file.
8296         * modules/unictype/block-list-tests: New file.
8297         * modules/unictype/block-of-tests: New file.
8298         * modules/unictype/block-test-tests: New file.
8299         * modules/unictype/category-C-tests: New file.
8300         * modules/unictype/category-Cc-tests: New file.
8301         * modules/unictype/category-Cf-tests: New file.
8302         * modules/unictype/category-Cn-tests: New file.
8303         * modules/unictype/category-Co-tests: New file.
8304         * modules/unictype/category-Cs-tests: New file.
8305         * modules/unictype/category-L-tests: New file.
8306         * modules/unictype/category-Ll-tests: New file.
8307         * modules/unictype/category-Lm-tests: New file.
8308         * modules/unictype/category-Lo-tests: New file.
8309         * modules/unictype/category-Lt-tests: New file.
8310         * modules/unictype/category-Lu-tests: New file.
8311         * modules/unictype/category-M-tests: New file.
8312         * modules/unictype/category-Mc-tests: New file.
8313         * modules/unictype/category-Me-tests: New file.
8314         * modules/unictype/category-Mn-tests: New file.
8315         * modules/unictype/category-N-tests: New file.
8316         * modules/unictype/category-Nd-tests: New file.
8317         * modules/unictype/category-Nl-tests: New file.
8318         * modules/unictype/category-No-tests: New file.
8319         * modules/unictype/category-P-tests: New file.
8320         * modules/unictype/category-Pc-tests: New file.
8321         * modules/unictype/category-Pd-tests: New file.
8322         * modules/unictype/category-Pe-tests: New file.
8323         * modules/unictype/category-Pf-tests: New file.
8324         * modules/unictype/category-Pi-tests: New file.
8325         * modules/unictype/category-Po-tests: New file.
8326         * modules/unictype/category-Ps-tests: New file.
8327         * modules/unictype/category-S-tests: New file.
8328         * modules/unictype/category-Sc-tests: New file.
8329         * modules/unictype/category-Sk-tests: New file.
8330         * modules/unictype/category-Sm-tests: New file.
8331         * modules/unictype/category-So-tests: New file.
8332         * modules/unictype/category-Z-tests: New file.
8333         * modules/unictype/category-Zl-tests: New file.
8334         * modules/unictype/category-Zp-tests: New file.
8335         * modules/unictype/category-Zs-tests: New file.
8336         * modules/unictype/category-and-not-tests: New file.
8337         * modules/unictype/category-and-tests: New file.
8338         * modules/unictype/category-byname-tests: New file.
8339         * modules/unictype/category-name-tests: New file.
8340         * modules/unictype/category-none-tests: New file.
8341         * modules/unictype/category-of-tests: New file.
8342         * modules/unictype/category-or-tests: New file.
8343         * modules/unictype/category-test-withtable-tests: New file.
8344         * modules/unictype/combining-class-tests: New file.
8345         * modules/unictype/ctype-alnum-tests: New file.
8346         * modules/unictype/ctype-alpha-tests: New file.
8347         * modules/unictype/ctype-blank-tests: New file.
8348         * modules/unictype/ctype-cntrl-tests: New file.
8349         * modules/unictype/ctype-digit-tests: New file.
8350         * modules/unictype/ctype-graph-tests: New file.
8351         * modules/unictype/ctype-lower-tests: New file.
8352         * modules/unictype/ctype-print-tests: New file.
8353         * modules/unictype/ctype-punct-tests: New file.
8354         * modules/unictype/ctype-space-tests: New file.
8355         * modules/unictype/ctype-upper-tests: New file.
8356         * modules/unictype/ctype-xdigit-tests: New file.
8357         * modules/unictype/decimal-digit-tests: New file.
8358         * modules/unictype/digit-tests: New file.
8359         * modules/unictype/mirror-tests: New file.
8360         * modules/unictype/numeric-tests: New file.
8361         * modules/unictype/property-alphabetic-tests: New file.
8362         * modules/unictype/property-ascii-hex-digit-tests: New file.
8363         * modules/unictype/property-bidi-arabic-digit-tests: New file.
8364         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
8365         * modules/unictype/property-bidi-block-separator-tests: New file.
8366         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
8367         * modules/unictype/property-bidi-common-separator-tests: New file.
8368         * modules/unictype/property-bidi-control-tests: New file.
8369         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
8370         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
8371         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
8372         * modules/unictype/property-bidi-european-digit-tests: New file.
8373         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
8374         * modules/unictype/property-bidi-left-to-right-tests: New file.
8375         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
8376         * modules/unictype/property-bidi-other-neutral-tests: New file.
8377         * modules/unictype/property-bidi-pdf-tests: New file.
8378         * modules/unictype/property-bidi-segment-separator-tests: New file.
8379         * modules/unictype/property-bidi-whitespace-tests: New file.
8380         * modules/unictype/property-byname-tests: New file.
8381         * modules/unictype/property-combining-tests: New file.
8382         * modules/unictype/property-composite-tests: New file.
8383         * modules/unictype/property-currency-symbol-tests: New file.
8384         * modules/unictype/property-dash-tests: New file.
8385         * modules/unictype/property-decimal-digit-tests: New file.
8386         * modules/unictype/property-default-ignorable-code-point-tests: New file.
8387         * modules/unictype/property-deprecated-tests: New file.
8388         * modules/unictype/property-diacritic-tests: New file.
8389         * modules/unictype/property-extender-tests: New file.
8390         * modules/unictype/property-format-control-tests: New file.
8391         * modules/unictype/property-grapheme-base-tests: New file.
8392         * modules/unictype/property-grapheme-extend-tests: New file.
8393         * modules/unictype/property-grapheme-link-tests: New file.
8394         * modules/unictype/property-hex-digit-tests: New file.
8395         * modules/unictype/property-hyphen-tests: New file.
8396         * modules/unictype/property-id-continue-tests: New file.
8397         * modules/unictype/property-id-start-tests: New file.
8398         * modules/unictype/property-ideographic-tests: New file.
8399         * modules/unictype/property-ids-binary-operator-tests: New file.
8400         * modules/unictype/property-ids-trinary-operator-tests: New file.
8401         * modules/unictype/property-ignorable-control-tests: New file.
8402         * modules/unictype/property-iso-control-tests: New file.
8403         * modules/unictype/property-join-control-tests: New file.
8404         * modules/unictype/property-left-of-pair-tests: New file.
8405         * modules/unictype/property-line-separator-tests: New file.
8406         * modules/unictype/property-logical-order-exception-tests: New file.
8407         * modules/unictype/property-lowercase-tests: New file.
8408         * modules/unictype/property-math-tests: New file.
8409         * modules/unictype/property-non-break-tests: New file.
8410         * modules/unictype/property-not-a-character-tests: New file.
8411         * modules/unictype/property-numeric-tests: New file.
8412         * modules/unictype/property-other-alphabetic-tests: New file.
8413         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
8414         * modules/unictype/property-other-grapheme-extend-tests: New file.
8415         * modules/unictype/property-other-id-continue-tests: New file.
8416         * modules/unictype/property-other-id-start-tests: New file.
8417         * modules/unictype/property-other-lowercase-tests: New file.
8418         * modules/unictype/property-other-math-tests: New file.
8419         * modules/unictype/property-other-uppercase-tests: New file.
8420         * modules/unictype/property-paired-punctuation-tests: New file.
8421         * modules/unictype/property-paragraph-separator-tests: New file.
8422         * modules/unictype/property-pattern-syntax-tests: New file.
8423         * modules/unictype/property-pattern-white-space-tests: New file.
8424         * modules/unictype/property-private-use-tests: New file.
8425         * modules/unictype/property-punctuation-tests: New file.
8426         * modules/unictype/property-quotation-mark-tests: New file.
8427         * modules/unictype/property-radical-tests: New file.
8428         * modules/unictype/property-sentence-terminal-tests: New file.
8429         * modules/unictype/property-soft-dotted-tests: New file.
8430         * modules/unictype/property-space-tests: New file.
8431         * modules/unictype/property-terminal-punctuation-tests: New file.
8432         * modules/unictype/property-test-tests: New file.
8433         * modules/unictype/property-titlecase-tests: New file.
8434         * modules/unictype/property-unassigned-code-value-tests: New file.
8435         * modules/unictype/property-unified-ideograph-tests: New file.
8436         * modules/unictype/property-uppercase-tests: New file.
8437         * modules/unictype/property-variation-selector-tests: New file.
8438         * modules/unictype/property-white-space-tests: New file.
8439         * modules/unictype/property-xid-continue-tests: New file.
8440         * modules/unictype/property-xid-start-tests: New file.
8441         * modules/unictype/property-zero-width-tests: New file.
8442         * modules/unictype/scripts-tests: New file.
8443         * modules/unictype/syntax-c-ident-tests: New file.
8444         * modules/unictype/syntax-c-whitespace-tests: New file.
8445         * modules/unictype/syntax-java-ident-tests: New file.
8446         * modules/unictype/syntax-java-whitespace-tests: New file.
8447         * tests/unictype/test-bidi_byname.c: New file.
8448         * tests/unictype/test-bidi_name.c: New file.
8449         * tests/unictype/test-bidi_of.c: New file.
8450         * tests/unictype/test-bidi_test.c: New file.
8451         * tests/unictype/test-block_list.c: New file.
8452         * tests/unictype/test-block_of.c: New file.
8453         * tests/unictype/test-block_test.c: New file.
8454         * tests/unictype/test-categ_and.c: New file.
8455         * tests/unictype/test-categ_and_not.c: New file.
8456         * tests/unictype/test-categ_byname.c: New file.
8457         * tests/unictype/test-categ_name.c: New file.
8458         * tests/unictype/test-categ_none.c: New file.
8459         * tests/unictype/test-categ_of.c: New file.
8460         * tests/unictype/test-categ_or.c: New file.
8461         * tests/unictype/test-categ_test_withtable.c: New file.
8462         * tests/unictype/test-combining.c: New file.
8463         * tests/unictype/test-decdigit.c: New file.
8464         * tests/unictype/test-digit.c: New file.
8465         * tests/unictype/test-mirror.c: New file.
8466         * tests/unictype/test-numeric.c: New file.
8467         * tests/unictype/test-pr_byname.c: New file.
8468         * tests/unictype/test-pr_test.c: New file.
8469         * tests/unictype/test-predicate-part1.h: New file.
8470         * tests/unictype/test-predicate-part2.h: New file.
8471         * tests/unictype/test-scripts.c: New file.
8472         * tests/unictype/test-sy_c_ident.c: New file.
8473         * tests/unictype/test-sy_java_ident.c: New file.
8474
8475         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
8476         for Unicode 5.0.0.
8477         * tests/unictype/test-categ_Cc.c: Likewise.
8478         * tests/unictype/test-categ_Cf.c: Likewise.
8479         * tests/unictype/test-categ_Cn.c: Likewise.
8480         * tests/unictype/test-categ_Co.c: Likewise.
8481         * tests/unictype/test-categ_Cs.c: Likewise.
8482         * tests/unictype/test-categ_L.c: Likewise.
8483         * tests/unictype/test-categ_Ll.c: Likewise.
8484         * tests/unictype/test-categ_Lm.c: Likewise.
8485         * tests/unictype/test-categ_Lo.c: Likewise.
8486         * tests/unictype/test-categ_Lt.c: Likewise.
8487         * tests/unictype/test-categ_Lu.c: Likewise.
8488         * tests/unictype/test-categ_M.c: Likewise.
8489         * tests/unictype/test-categ_Mc.c: Likewise.
8490         * tests/unictype/test-categ_Me.c: Likewise.
8491         * tests/unictype/test-categ_Mn.c: Likewise.
8492         * tests/unictype/test-categ_N.c: Likewise.
8493         * tests/unictype/test-categ_Nd.c: Likewise.
8494         * tests/unictype/test-categ_Nl.c: Likewise.
8495         * tests/unictype/test-categ_No.c: Likewise.
8496         * tests/unictype/test-categ_P.c: Likewise.
8497         * tests/unictype/test-categ_Pc.c: Likewise.
8498         * tests/unictype/test-categ_Pd.c: Likewise.
8499         * tests/unictype/test-categ_Pe.c: Likewise.
8500         * tests/unictype/test-categ_Pf.c: Likewise.
8501         * tests/unictype/test-categ_Pi.c: Likewise.
8502         * tests/unictype/test-categ_Po.c: Likewise.
8503         * tests/unictype/test-categ_Ps.c: Likewise.
8504         * tests/unictype/test-categ_S.c: Likewise.
8505         * tests/unictype/test-categ_Sc.c: Likewise.
8506         * tests/unictype/test-categ_Sk.c: Likewise.
8507         * tests/unictype/test-categ_Sm.c: Likewise.
8508         * tests/unictype/test-categ_So.c: Likewise.
8509         * tests/unictype/test-categ_Z.c: Likewise.
8510         * tests/unictype/test-categ_Zl.c: Likewise.
8511         * tests/unictype/test-categ_Zp.c: Likewise.
8512         * tests/unictype/test-categ_Zs.c: Likewise.
8513         * tests/unictype/test-ctype_alnum.c: Likewise.
8514         * tests/unictype/test-ctype_alpha.c: Likewise.
8515         * tests/unictype/test-ctype_blank.c: Likewise.
8516         * tests/unictype/test-ctype_cntrl.c: Likewise.
8517         * tests/unictype/test-ctype_digit.c: Likewise.
8518         * tests/unictype/test-ctype_graph.c: Likewise.
8519         * tests/unictype/test-ctype_lower.c: Likewise.
8520         * tests/unictype/test-ctype_print.c: Likewise.
8521         * tests/unictype/test-ctype_punct.c: Likewise.
8522         * tests/unictype/test-ctype_space.c: Likewise.
8523         * tests/unictype/test-ctype_upper.c: Likewise.
8524         * tests/unictype/test-ctype_xdigit.c: Likewise.
8525         * tests/unictype/test-decdigit.h: Likewise.
8526         * tests/unictype/test-digit.h: Likewise.
8527         * tests/unictype/test-numeric.h: Likewise.
8528         * tests/unictype/test-pr_alphabetic.c: Likewise.
8529         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
8530         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8531         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8532         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
8533         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8534         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
8535         * tests/unictype/test-pr_bidi_control.c: Likewise.
8536         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
8537         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
8538         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8539         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8540         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8541         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8542         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8543         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8544         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
8545         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
8546         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
8547         * tests/unictype/test-pr_combining.c: Likewise.
8548         * tests/unictype/test-pr_composite.c: Likewise.
8549         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8550         * tests/unictype/test-pr_dash.c: Likewise.
8551         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8552         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
8553         * tests/unictype/test-pr_deprecated.c: Likewise.
8554         * tests/unictype/test-pr_diacritic.c: Likewise.
8555         * tests/unictype/test-pr_extender.c: Likewise.
8556         * tests/unictype/test-pr_format_control.c: Likewise.
8557         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8558         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8559         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8560         * tests/unictype/test-pr_hex_digit.c: Likewise.
8561         * tests/unictype/test-pr_hyphen.c: Likewise.
8562         * tests/unictype/test-pr_id_continue.c: Likewise.
8563         * tests/unictype/test-pr_id_start.c: Likewise.
8564         * tests/unictype/test-pr_ideographic.c: Likewise.
8565         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
8566         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
8567         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8568         * tests/unictype/test-pr_iso_control.c: Likewise.
8569         * tests/unictype/test-pr_join_control.c: Likewise.
8570         * tests/unictype/test-pr_left_of_pair.c: Likewise.
8571         * tests/unictype/test-pr_line_separator.c: Likewise.
8572         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8573         * tests/unictype/test-pr_lowercase.c: Likewise.
8574         * tests/unictype/test-pr_math.c: Likewise.
8575         * tests/unictype/test-pr_non_break.c: Likewise.
8576         * tests/unictype/test-pr_not_a_character.c: Likewise.
8577         * tests/unictype/test-pr_numeric.c: Likewise.
8578         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8579         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
8580         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
8581         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8582         * tests/unictype/test-pr_other_id_start.c: Likewise.
8583         * tests/unictype/test-pr_other_lowercase.c: Likewise.
8584         * tests/unictype/test-pr_other_math.c: Likewise.
8585         * tests/unictype/test-pr_other_uppercase.c: Likewise.
8586         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
8587         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
8588         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
8589         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
8590         * tests/unictype/test-pr_private_use.c: Likewise.
8591         * tests/unictype/test-pr_punctuation.c: Likewise.
8592         * tests/unictype/test-pr_quotation_mark.c: Likewise.
8593         * tests/unictype/test-pr_radical.c: Likewise.
8594         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8595         * tests/unictype/test-pr_soft_dotted.c: Likewise.
8596         * tests/unictype/test-pr_space.c: Likewise.
8597         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8598         * tests/unictype/test-pr_titlecase.c: Likewise.
8599         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8600         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8601         * tests/unictype/test-pr_uppercase.c: Likewise.
8602         * tests/unictype/test-pr_variation_selector.c: Likewise.
8603         * tests/unictype/test-pr_white_space.c: Likewise.
8604         * tests/unictype/test-pr_xid_continue.c: Likewise.
8605         * tests/unictype/test-pr_xid_start.c: Likewise.
8606         * tests/unictype/test-pr_zero_width.c: Likewise.
8607         * tests/unictype/test-sy_c_whitespace.c: Likewise.
8608         * tests/unictype/test-sy_java_whitespace.c: Likewise.
8609
8610 2007-11-12  Bruno Haible  <bruno@clisp.org>
8611
8612         Unicode character classification functions.
8613         * lib/unictype.h: New file.
8614         * modules/unictype/base: New file.
8615         * modules/unictype/category-L: New file.
8616         * modules/unictype/category-Lu: New file.
8617         * modules/unictype/category-Ll: New file.
8618         * modules/unictype/category-Lt: New file.
8619         * modules/unictype/category-Lm: New file.
8620         * modules/unictype/category-Lo: New file.
8621         * modules/unictype/category-M: New file.
8622         * modules/unictype/category-Mn: New file.
8623         * modules/unictype/category-Mc: New file.
8624         * modules/unictype/category-Me: New file.
8625         * modules/unictype/category-N: New file.
8626         * modules/unictype/category-Nd: New file.
8627         * modules/unictype/category-Nl: New file.
8628         * modules/unictype/category-No: New file.
8629         * modules/unictype/category-P: New file.
8630         * modules/unictype/category-Pc: New file.
8631         * modules/unictype/category-Pd: New file.
8632         * modules/unictype/category-Ps: New file.
8633         * modules/unictype/category-Pe: New file.
8634         * modules/unictype/category-Pi: New file.
8635         * modules/unictype/category-Pf: New file.
8636         * modules/unictype/category-Po: New file.
8637         * modules/unictype/category-S: New file.
8638         * modules/unictype/category-Sm: New file.
8639         * modules/unictype/category-Sc: New file.
8640         * modules/unictype/category-Sk: New file.
8641         * modules/unictype/category-So: New file.
8642         * modules/unictype/category-Z: New file.
8643         * modules/unictype/category-Zs: New file.
8644         * modules/unictype/category-Zl: New file.
8645         * modules/unictype/category-Zp: New file.
8646         * modules/unictype/category-C: New file.
8647         * modules/unictype/category-Cc: New file.
8648         * modules/unictype/category-Cf: New file.
8649         * modules/unictype/category-Cs: New file.
8650         * modules/unictype/category-Co: New file.
8651         * modules/unictype/category-Cn: New file.
8652         * modules/unictype/category-or: New file.
8653         * modules/unictype/category-of: New file.
8654         * modules/unictype/category-test: New file.
8655         * modules/unictype/category-test-withtable: New file.
8656         * modules/unictype/category-byname: New file.
8657         * modules/unictype/category-none: New file.
8658         * modules/unictype/category-and: New file.
8659         * modules/unictype/category-and-not: New file.
8660         * modules/unictype/category-name: New file.
8661         * modules/unictype/combining-class: New file.
8662         * modules/unictype/category-all: New file.
8663         * modules/unictype/bidicategory-all: New file.
8664         * modules/unictype/bidicategory-byname: New file.
8665         * modules/unictype/bidicategory-name: New file.
8666         * modules/unictype/bidicategory-of: New file.
8667         * modules/unictype/bidicategory-test: New file.
8668         * modules/unictype/decimal-digit: New file.
8669         * modules/unictype/digit: New file.
8670         * modules/unictype/numeric: New file.
8671         * modules/unictype/mirror: New file.
8672         * modules/unictype/property-white-space: New file.
8673         * modules/unictype/property-alphabetic: New file.
8674         * modules/unictype/property-other-alphabetic: New file.
8675         * modules/unictype/property-not-a-character: New file.
8676         * modules/unictype/property-default-ignorable-code-point: New file.
8677         * modules/unictype/property-other-default-ignorable-code-point: New
8678         file.
8679         * modules/unictype/property-deprecated: New file.
8680         * modules/unictype/property-logical-order-exception: New file.
8681         * modules/unictype/property-variation-selector: New file.
8682         * modules/unictype/property-private-use: New file.
8683         * modules/unictype/property-unassigned-code-value: New file.
8684         * modules/unictype/property-uppercase: New file.
8685         * modules/unictype/property-other-uppercase: New file.
8686         * modules/unictype/property-lowercase: New file.
8687         * modules/unictype/property-other-lowercase: New file.
8688         * modules/unictype/property-titlecase: New file.
8689         * modules/unictype/property-soft-dotted: New file.
8690         * modules/unictype/property-id-start: New file.
8691         * modules/unictype/property-other-id-start: New file.
8692         * modules/unictype/property-id-continue: New file.
8693         * modules/unictype/property-other-id-continue: New file.
8694         * modules/unictype/property-xid-start: New file.
8695         * modules/unictype/property-xid-continue: New file.
8696         * modules/unictype/property-pattern-white-space: New file.
8697         * modules/unictype/property-pattern-syntax: New file.
8698         * modules/unictype/property-join-control: New file.
8699         * modules/unictype/property-grapheme-base: New file.
8700         * modules/unictype/property-grapheme-extend: New file.
8701         * modules/unictype/property-other-grapheme-extend: New file.
8702         * modules/unictype/property-grapheme-link: New file.
8703         * modules/unictype/property-bidi-control: New file.
8704         * modules/unictype/property-bidi-left-to-right: New file.
8705         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
8706         * modules/unictype/property-bidi-arabic-right-to-left: New file.
8707         * modules/unictype/property-bidi-european-digit: New file.
8708         * modules/unictype/property-bidi-eur-num-separator: New file.
8709         * modules/unictype/property-bidi-eur-num-terminator: New file.
8710         * modules/unictype/property-bidi-arabic-digit: New file.
8711         * modules/unictype/property-bidi-common-separator: New file.
8712         * modules/unictype/property-bidi-block-separator: New file.
8713         * modules/unictype/property-bidi-segment-separator: New file.
8714         * modules/unictype/property-bidi-whitespace: New file.
8715         * modules/unictype/property-bidi-non-spacing-mark: New file.
8716         * modules/unictype/property-bidi-boundary-neutral: New file.
8717         * modules/unictype/property-bidi-pdf: New file.
8718         * modules/unictype/property-bidi-embedding-or-override: New file.
8719         * modules/unictype/property-bidi-other-neutral: New file.
8720         * modules/unictype/property-hex-digit: New file.
8721         * modules/unictype/property-ascii-hex-digit: New file.
8722         * modules/unictype/property-ideographic: New file.
8723         * modules/unictype/property-unified-ideograph: New file.
8724         * modules/unictype/property-radical: New file.
8725         * modules/unictype/property-ids-binary-operator: New file.
8726         * modules/unictype/property-ids-trinary-operator: New file.
8727         * modules/unictype/property-zero-width: New file.
8728         * modules/unictype/property-space: New file.
8729         * modules/unictype/property-non-break: New file.
8730         * modules/unictype/property-iso-control: New file.
8731         * modules/unictype/property-format-control: New file.
8732         * modules/unictype/property-dash: New file.
8733         * modules/unictype/property-hyphen: New file.
8734         * modules/unictype/property-punctuation: New file.
8735         * modules/unictype/property-line-separator: New file.
8736         * modules/unictype/property-paragraph-separator: New file.
8737         * modules/unictype/property-quotation-mark: New file.
8738         * modules/unictype/property-sentence-terminal: New file.
8739         * modules/unictype/property-terminal-punctuation: New file.
8740         * modules/unictype/property-currency-symbol: New file.
8741         * modules/unictype/property-math: New file.
8742         * modules/unictype/property-other-math: New file.
8743         * modules/unictype/property-paired-punctuation: New file.
8744         * modules/unictype/property-left-of-pair: New file.
8745         * modules/unictype/property-combining: New file.
8746         * modules/unictype/property-composite: New file.
8747         * modules/unictype/property-decimal-digit: New file.
8748         * modules/unictype/property-numeric: New file.
8749         * modules/unictype/property-diacritic: New file.
8750         * modules/unictype/property-extender: New file.
8751         * modules/unictype/property-ignorable-control: New file.
8752         * modules/unictype/property-test: New file.
8753         * modules/unictype/property-byname: New file.
8754         * modules/unictype/property-all: New file.
8755         * modules/unictype/scripts: New file.
8756         * modules/unictype/scripts-all: New file.
8757         * modules/unictype/block-of: New file.
8758         * modules/unictype/block-test: New file.
8759         * modules/unictype/block-list: New file.
8760         * modules/unictype/block-all: New file.
8761         * modules/unictype/syntax-c-whitespace: New file.
8762         * modules/unictype/syntax-java-whitespace: New file.
8763         * modules/unictype/syntax-c-ident: New file.
8764         * modules/unictype/syntax-java-ident: New file.
8765         * modules/unictype/ctype-alnum: New file.
8766         * modules/unictype/ctype-alpha: New file.
8767         * modules/unictype/ctype-cntrl: New file.
8768         * modules/unictype/ctype-digit: New file.
8769         * modules/unictype/ctype-graph: New file.
8770         * modules/unictype/ctype-lower: New file.
8771         * modules/unictype/ctype-print: New file.
8772         * modules/unictype/ctype-punct: New file.
8773         * modules/unictype/ctype-space: New file.
8774         * modules/unictype/ctype-upper: New file.
8775         * modules/unictype/ctype-xdigit: New file.
8776         * modules/unictype/ctype-blank: New file.
8777         * lib/unictype/bidi_byname.c: New file.
8778         * lib/unictype/bidi_name.c: New file.
8779         * lib/unictype/bidi_of.c: New file.
8780         * lib/unictype/bidi_test.c: New file.
8781         * lib/unictype/bitmap.h: New file.
8782         * lib/unictype/block_test.c: New file.
8783         * lib/unictype/blocks.c: New file.
8784         * lib/unictype/categ_C.c: New file.
8785         * lib/unictype/categ_Cc.c: New file.
8786         * lib/unictype/categ_Cf.c: New file.
8787         * lib/unictype/categ_Cn.c: New file.
8788         * lib/unictype/categ_Co.c: New file.
8789         * lib/unictype/categ_Cs.c: New file.
8790         * lib/unictype/categ_L.c: New file.
8791         * lib/unictype/categ_Ll.c: New file.
8792         * lib/unictype/categ_Lm.c: New file.
8793         * lib/unictype/categ_Lo.c: New file.
8794         * lib/unictype/categ_Lt.c: New file.
8795         * lib/unictype/categ_Lu.c: New file.
8796         * lib/unictype/categ_M.c: New file.
8797         * lib/unictype/categ_Mc.c: New file.
8798         * lib/unictype/categ_Me.c: New file.
8799         * lib/unictype/categ_Mn.c: New file.
8800         * lib/unictype/categ_N.c: New file.
8801         * lib/unictype/categ_Nd.c: New file.
8802         * lib/unictype/categ_Nl.c: New file.
8803         * lib/unictype/categ_No.c: New file.
8804         * lib/unictype/categ_P.c: New file.
8805         * lib/unictype/categ_Pc.c: New file.
8806         * lib/unictype/categ_Pd.c: New file.
8807         * lib/unictype/categ_Pe.c: New file.
8808         * lib/unictype/categ_Pf.c: New file.
8809         * lib/unictype/categ_Pi.c: New file.
8810         * lib/unictype/categ_Po.c: New file.
8811         * lib/unictype/categ_Ps.c: New file.
8812         * lib/unictype/categ_S.c: New file.
8813         * lib/unictype/categ_Sc.c: New file.
8814         * lib/unictype/categ_Sk.c: New file.
8815         * lib/unictype/categ_Sm.c: New file.
8816         * lib/unictype/categ_So.c: New file.
8817         * lib/unictype/categ_Z.c: New file.
8818         * lib/unictype/categ_Zl.c: New file.
8819         * lib/unictype/categ_Zp.c: New file.
8820         * lib/unictype/categ_Zs.c: New file.
8821         * lib/unictype/categ_and.c: New file.
8822         * lib/unictype/categ_and_not.c: New file.
8823         * lib/unictype/categ_byname.c: New file.
8824         * lib/unictype/categ_name.c: New file.
8825         * lib/unictype/categ_none.c: New file.
8826         * lib/unictype/categ_of.c: New file.
8827         * lib/unictype/categ_or.c: New file.
8828         * lib/unictype/categ_test.c: New file.
8829         * lib/unictype/combining.c: New file.
8830         * lib/unictype/ctype_alnum.c: New file.
8831         * lib/unictype/ctype_alpha.c: New file.
8832         * lib/unictype/ctype_blank.c: New file.
8833         * lib/unictype/ctype_cntrl.c: New file.
8834         * lib/unictype/ctype_digit.c: New file.
8835         * lib/unictype/ctype_graph.c: New file.
8836         * lib/unictype/ctype_lower.c: New file.
8837         * lib/unictype/ctype_print.c: New file.
8838         * lib/unictype/ctype_punct.c: New file.
8839         * lib/unictype/ctype_space.c: New file.
8840         * lib/unictype/ctype_upper.c: New file.
8841         * lib/unictype/ctype_xdigit.c: New file.
8842         * lib/unictype/decdigit.c: New file.
8843         * lib/unictype/digit.c: New file.
8844         * lib/unictype/identsyntaxmap.h: New file.
8845         * lib/unictype/mirror.c: New file.
8846         * lib/unictype/numeric.c: New file.
8847         * lib/unictype/pr_alphabetic.c: New file.
8848         * lib/unictype/pr_ascii_hex_digit.c: New file.
8849         * lib/unictype/pr_bidi_arabic_digit.c: New file.
8850         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
8851         * lib/unictype/pr_bidi_block_separator.c: New file.
8852         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
8853         * lib/unictype/pr_bidi_common_separator.c: New file.
8854         * lib/unictype/pr_bidi_control.c: New file.
8855         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
8856         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
8857         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
8858         * lib/unictype/pr_bidi_european_digit.c: New file.
8859         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
8860         * lib/unictype/pr_bidi_left_to_right.c: New file.
8861         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
8862         * lib/unictype/pr_bidi_other_neutral.c: New file.
8863         * lib/unictype/pr_bidi_pdf.c: New file.
8864         * lib/unictype/pr_bidi_segment_separator.c: New file.
8865         * lib/unictype/pr_bidi_whitespace.c: New file.
8866         * lib/unictype/pr_byname.c: New file.
8867         * lib/unictype/pr_byname.gperf: New file.
8868         * lib/unictype/pr_combining.c: New file.
8869         * lib/unictype/pr_composite.c: New file.
8870         * lib/unictype/pr_currency_symbol.c: New file.
8871         * lib/unictype/pr_dash.c: New file.
8872         * lib/unictype/pr_decimal_digit.c: New file.
8873         * lib/unictype/pr_default_ignorable_code_point.c: New file.
8874         * lib/unictype/pr_deprecated.c: New file.
8875         * lib/unictype/pr_diacritic.c: New file.
8876         * lib/unictype/pr_extender.c: New file.
8877         * lib/unictype/pr_format_control.c: New file.
8878         * lib/unictype/pr_grapheme_base.c: New file.
8879         * lib/unictype/pr_grapheme_extend.c: New file.
8880         * lib/unictype/pr_grapheme_link.c: New file.
8881         * lib/unictype/pr_hex_digit.c: New file.
8882         * lib/unictype/pr_hyphen.c: New file.
8883         * lib/unictype/pr_id_continue.c: New file.
8884         * lib/unictype/pr_id_start.c: New file.
8885         * lib/unictype/pr_ideographic.c: New file.
8886         * lib/unictype/pr_ids_binary_operator.c: New file.
8887         * lib/unictype/pr_ids_trinary_operator.c: New file.
8888         * lib/unictype/pr_ignorable_control.c: New file.
8889         * lib/unictype/pr_iso_control.c: New file.
8890         * lib/unictype/pr_join_control.c: New file.
8891         * lib/unictype/pr_left_of_pair.c: New file.
8892         * lib/unictype/pr_line_separator.c: New file.
8893         * lib/unictype/pr_logical_order_exception.c: New file.
8894         * lib/unictype/pr_lowercase.c: New file.
8895         * lib/unictype/pr_math.c: New file.
8896         * lib/unictype/pr_non_break.c: New file.
8897         * lib/unictype/pr_not_a_character.c: New file.
8898         * lib/unictype/pr_numeric.c: New file.
8899         * lib/unictype/pr_other_alphabetic.c: New file.
8900         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
8901         * lib/unictype/pr_other_grapheme_extend.c: New file.
8902         * lib/unictype/pr_other_id_continue.c: New file.
8903         * lib/unictype/pr_other_id_start.c: New file.
8904         * lib/unictype/pr_other_lowercase.c: New file.
8905         * lib/unictype/pr_other_math.c: New file.
8906         * lib/unictype/pr_other_uppercase.c: New file.
8907         * lib/unictype/pr_paired_punctuation.c: New file.
8908         * lib/unictype/pr_paragraph_separator.c: New file.
8909         * lib/unictype/pr_pattern_syntax.c: New file.
8910         * lib/unictype/pr_pattern_white_space.c: New file.
8911         * lib/unictype/pr_private_use.c: New file.
8912         * lib/unictype/pr_punctuation.c: New file.
8913         * lib/unictype/pr_quotation_mark.c: New file.
8914         * lib/unictype/pr_radical.c: New file.
8915         * lib/unictype/pr_sentence_terminal.c: New file.
8916         * lib/unictype/pr_soft_dotted.c: New file.
8917         * lib/unictype/pr_space.c: New file.
8918         * lib/unictype/pr_terminal_punctuation.c: New file.
8919         * lib/unictype/pr_test.c: New file.
8920         * lib/unictype/pr_titlecase.c: New file.
8921         * lib/unictype/pr_unassigned_code_value.c: New file.
8922         * lib/unictype/pr_unified_ideograph.c: New file.
8923         * lib/unictype/pr_uppercase.c: New file.
8924         * lib/unictype/pr_variation_selector.c: New file.
8925         * lib/unictype/pr_white_space.c: New file.
8926         * lib/unictype/pr_xid_continue.c: New file.
8927         * lib/unictype/pr_xid_start.c: New file.
8928         * lib/unictype/pr_zero_width.c: New file.
8929         * lib/unictype/scripts.c: New file.
8930         * lib/unictype/sy_c_ident.c: New file.
8931         * lib/unictype/sy_c_whitespace.c: New file.
8932         * lib/unictype/sy_java_ident.c: New file.
8933         * lib/unictype/sy_java_whitespace.c: New file.
8934
8935         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
8936         Unicode 5.0.0.
8937         * lib/unictype/blocks.h: Likewise.
8938         * lib/unictype/categ_C.h: Likewise.
8939         * lib/unictype/categ_Cc.h: Likewise.
8940         * lib/unictype/categ_Cf.h: Likewise.
8941         * lib/unictype/categ_Cn.h: Likewise.
8942         * lib/unictype/categ_Co.h: Likewise.
8943         * lib/unictype/categ_Cs.h: Likewise.
8944         * lib/unictype/categ_L.h: Likewise.
8945         * lib/unictype/categ_Ll.h: Likewise.
8946         * lib/unictype/categ_Lm.h: Likewise.
8947         * lib/unictype/categ_Lo.h: Likewise.
8948         * lib/unictype/categ_Lt.h: Likewise.
8949         * lib/unictype/categ_Lu.h: Likewise.
8950         * lib/unictype/categ_M.h: Likewise.
8951         * lib/unictype/categ_Mc.h: Likewise.
8952         * lib/unictype/categ_Me.h: Likewise.
8953         * lib/unictype/categ_Mn.h: Likewise.
8954         * lib/unictype/categ_N.h: Likewise.
8955         * lib/unictype/categ_Nd.h: Likewise.
8956         * lib/unictype/categ_Nl.h: Likewise.
8957         * lib/unictype/categ_No.h: Likewise.
8958         * lib/unictype/categ_P.h: Likewise.
8959         * lib/unictype/categ_Pc.h: Likewise.
8960         * lib/unictype/categ_Pd.h: Likewise.
8961         * lib/unictype/categ_Pe.h: Likewise.
8962         * lib/unictype/categ_Pf.h: Likewise.
8963         * lib/unictype/categ_Pi.h: Likewise.
8964         * lib/unictype/categ_Po.h: Likewise.
8965         * lib/unictype/categ_Ps.h: Likewise.
8966         * lib/unictype/categ_S.h: Likewise.
8967         * lib/unictype/categ_Sc.h: Likewise.
8968         * lib/unictype/categ_Sk.h: Likewise.
8969         * lib/unictype/categ_Sm.h: Likewise.
8970         * lib/unictype/categ_So.h: Likewise.
8971         * lib/unictype/categ_Z.h: Likewise.
8972         * lib/unictype/categ_Zl.h: Likewise.
8973         * lib/unictype/categ_Zp.h: Likewise.
8974         * lib/unictype/categ_Zs.h: Likewise.
8975         * lib/unictype/categ_of.h: Likewise.
8976         * lib/unictype/combining.h: Likewise.
8977         * lib/unictype/ctype_alnum.h: Likewise.
8978         * lib/unictype/ctype_alpha.h: Likewise.
8979         * lib/unictype/ctype_blank.h: Likewise.
8980         * lib/unictype/ctype_cntrl.h: Likewise.
8981         * lib/unictype/ctype_digit.h: Likewise.
8982         * lib/unictype/ctype_graph.h: Likewise.
8983         * lib/unictype/ctype_lower.h: Likewise.
8984         * lib/unictype/ctype_print.h: Likewise.
8985         * lib/unictype/ctype_punct.h: Likewise.
8986         * lib/unictype/ctype_space.h: Likewise.
8987         * lib/unictype/ctype_upper.h: Likewise.
8988         * lib/unictype/ctype_xdigit.h: Likewise.
8989         * lib/unictype/decdigit.h: Likewise.
8990         * lib/unictype/digit.h: Likewise.
8991         * lib/unictype/mirror.h: Likewise.
8992         * lib/unictype/numeric.h: Likewise.
8993         * lib/unictype/pr_alphabetic.h: Likewise.
8994         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8995         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8996         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8997         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8998         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8999         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9000         * lib/unictype/pr_bidi_control.h: Likewise.
9001         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9002         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9003         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9004         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9005         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9006         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9007         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9008         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9009         * lib/unictype/pr_bidi_pdf.h: Likewise.
9010         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9011         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9012         * lib/unictype/pr_combining.h: Likewise.
9013         * lib/unictype/pr_composite.h: Likewise.
9014         * lib/unictype/pr_currency_symbol.h: Likewise.
9015         * lib/unictype/pr_dash.h: Likewise.
9016         * lib/unictype/pr_decimal_digit.h: Likewise.
9017         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9018         * lib/unictype/pr_deprecated.h: Likewise.
9019         * lib/unictype/pr_diacritic.h: Likewise.
9020         * lib/unictype/pr_extender.h: Likewise.
9021         * lib/unictype/pr_format_control.h: Likewise.
9022         * lib/unictype/pr_grapheme_base.h: Likewise.
9023         * lib/unictype/pr_grapheme_extend.h: Likewise.
9024         * lib/unictype/pr_grapheme_link.h: Likewise.
9025         * lib/unictype/pr_hex_digit.h: Likewise.
9026         * lib/unictype/pr_hyphen.h: Likewise.
9027         * lib/unictype/pr_id_continue.h: Likewise.
9028         * lib/unictype/pr_id_start.h: Likewise.
9029         * lib/unictype/pr_ideographic.h: Likewise.
9030         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9031         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9032         * lib/unictype/pr_ignorable_control.h: Likewise.
9033         * lib/unictype/pr_iso_control.h: Likewise.
9034         * lib/unictype/pr_join_control.h: Likewise.
9035         * lib/unictype/pr_left_of_pair.h: Likewise.
9036         * lib/unictype/pr_line_separator.h: Likewise.
9037         * lib/unictype/pr_logical_order_exception.h: Likewise.
9038         * lib/unictype/pr_lowercase.h: Likewise.
9039         * lib/unictype/pr_math.h: Likewise.
9040         * lib/unictype/pr_non_break.h: Likewise.
9041         * lib/unictype/pr_not_a_character.h: Likewise.
9042         * lib/unictype/pr_numeric.h: Likewise.
9043         * lib/unictype/pr_other_alphabetic.h: Likewise.
9044         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9045         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9046         * lib/unictype/pr_other_id_continue.h: Likewise.
9047         * lib/unictype/pr_other_id_start.h: Likewise.
9048         * lib/unictype/pr_other_lowercase.h: Likewise.
9049         * lib/unictype/pr_other_math.h: Likewise.
9050         * lib/unictype/pr_other_uppercase.h: Likewise.
9051         * lib/unictype/pr_paired_punctuation.h: Likewise.
9052         * lib/unictype/pr_paragraph_separator.h: Likewise.
9053         * lib/unictype/pr_pattern_syntax.h: Likewise.
9054         * lib/unictype/pr_pattern_white_space.h: Likewise.
9055         * lib/unictype/pr_private_use.h: Likewise.
9056         * lib/unictype/pr_punctuation.h: Likewise.
9057         * lib/unictype/pr_quotation_mark.h: Likewise.
9058         * lib/unictype/pr_radical.h: Likewise.
9059         * lib/unictype/pr_sentence_terminal.h: Likewise.
9060         * lib/unictype/pr_soft_dotted.h: Likewise.
9061         * lib/unictype/pr_space.h: Likewise.
9062         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9063         * lib/unictype/pr_titlecase.h: Likewise.
9064         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9065         * lib/unictype/pr_unified_ideograph.h: Likewise.
9066         * lib/unictype/pr_uppercase.h: Likewise.
9067         * lib/unictype/pr_variation_selector.h: Likewise.
9068         * lib/unictype/pr_white_space.h: Likewise.
9069         * lib/unictype/pr_xid_continue.h: Likewise.
9070         * lib/unictype/pr_xid_start.h: Likewise.
9071         * lib/unictype/pr_zero_width.h: Likewise.
9072         * lib/unictype/scripts.h: Likewise.
9073         * lib/unictype/scripts_byname.gperf: Likewise.
9074         * lib/unictype/sy_c_ident.h: Likewise.
9075         * lib/unictype/sy_c_whitespace.h: Likewise.
9076         * lib/unictype/sy_java_ident.h: Likewise.
9077         * lib/unictype/sy_java_whitespace.h: Likewise.
9078
9079         * lib/unictype/Makefile: New file.
9080         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
9081         glibc.
9082         * lib/unictype/3level.h: New file, copied from glibc.
9083         * lib/unictype/3levelbit.h: New file.
9084
9085 2007-11-11  Bruno Haible  <bruno@clisp.org>
9086
9087         * modules/gperf: New file.
9088         * modules/iconv_open (Depends-on): Add it.
9089         (Makefile.am): Remove the GPERF definition.
9090
9091 2007-11-11  Bruno Haible  <bruno@clisp.org>
9092
9093         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
9094         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
9095
9096 2007-11-11  Bruno Haible  <bruno@clisp.org>
9097
9098         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
9099         (usage): Remove function.
9100
9101 2007-11-11  Bruno Haible  <bruno@clisp.org>
9102
9103         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
9104         gl_FUNC_CEILF_LIBS.
9105         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
9106         gl_FUNC_CEIL_LIBS.
9107         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
9108         gl_FUNC_CEILL_LIBS.
9109         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
9110         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
9111         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
9112
9113 2007-11-11  Bruno Haible  <bruno@clisp.org>
9114
9115         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
9116         roundf were declared but do not exist on functions.
9117         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
9118         roundl were declared but do not exist on functions.
9119         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
9120         HAVE_FLOORL_AND_CEILL, respectively.
9121         Needed for Sun C on Solaris 10.
9122
9123 2007-11-11  Bruno Haible  <bruno@clisp.org>
9124
9125         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
9126         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
9127         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
9128         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
9129         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
9130         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
9131         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
9132         HAVE_DECL_ROUNDF.
9133         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
9134         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
9135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
9136         of HAVE_DECL_ROUND*.
9137         * modules/math (Makefile.am): Update.
9138
9139 2007-11-10  Bruno Haible  <bruno@clisp.org>
9140
9141         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
9142         ptrdiff_t as m4/intl.m4.
9143
9144 2007-11-10  Jim Meyering  <meyering@redhat.com>
9145
9146         Avoid link failure for the argmatch test.
9147         * tests/test-argmatch.c (usage): Define function to avoid a link
9148         failure: argmatch_die requires a usage function.
9149
9150 2007-11-09  Bruno Haible  <bruno@clisp.org>
9151
9152         * doc/functions/snprintf.texi: Mention BeOS deficiency.
9153         * doc/functions/vsnprintf.texi: Likewise.
9154         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
9155         with a size argument < 2.
9156
9157 2007-11-09  Bruno Haible  <bruno@clisp.org>
9158
9159         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
9160         buffer. Fixes an inefficiency introduced on 2007-11-03.
9161
9162 2007-11-09  Bruno Haible  <bruno@clisp.org>
9163
9164         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
9165         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
9166
9167 2007-11-08  Jim Meyering  <meyering@redhat.com>
9168
9169         Change cache variable name prefix "jm_" to "gl_" everywhere.
9170         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
9171         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
9172         * m4/uptime.m4: s/gl_/jm_/
9173
9174 2007-11-07  Bruno Haible  <bruno@clisp.org>
9175
9176         Update to GNU gettext 0.17.
9177         * m4/intl.m4: Update to GNU gettext 0.17.
9178         * m4/po.m4: Likewise.
9179         * modules/gettext (Files): Remove m4/ulonglong.m4.
9180         (configure.ac): Require gettext infrastructure from version 0.17.
9181
9182 2007-11-06  Bruno Haible  <bruno@clisp.org>
9183
9184         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
9185         symbolic values are not defined in a public header.
9186         * lib/freadable.c (freadable) [QNX]: Likewise.
9187         * lib/freadahead.c (freadahead) [QNX]: Likewise.
9188         * lib/freading.c (freading) [QNX]: Likewise.
9189         * lib/fseterr.c (fseterr) [QNX]: Likewise.
9190         * lib/fwritable.c (fwritable) [QNX]: Likewise.
9191         * lib/fwriting.c (fwriting) [QNX]: Likewise.
9192         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
9193         Reported by Alain Magloire.
9194
9195         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
9196
9197 2007-11-05  Bruno Haible  <bruno@clisp.org>
9198
9199         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
9200         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
9201         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
9202         Reported by Eric Blake.
9203
9204 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9205             Bruno Haible  <bruno@clisp.org>
9206
9207         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
9208         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
9209         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
9210         (malloc): Undefine also before including <stdlib.h>.
9211         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
9212         Needed on OSF/1 4.0.
9213
9214 2007-11-05  Jim Meyering  <meyering@redhat.com>
9215
9216         git-version-gen: sync from coreutils.
9217         * build-aux/git-version-gen: Add comments.
9218         Change the first '-' to '.' in the snapshot version string,
9219         e.g., 6.9-377-08144 -> 6.9.377-08144
9220         Remove first parameter.
9221         Don't declare a version "-dirty" merely because a time
9222         stamp has changed.
9223
9224 2007-11-04  Bruno Haible  <bruno@clisp.org>
9225
9226         * lib/lock.h: Protect all macro definitions containing an 'if'
9227         statement through a "do { ... } while (0)".
9228         * lib/tls.h: Likewise.
9229
9230 2007-11-04  Bruno Haible  <bruno@clisp.org>
9231
9232         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
9233
9234 2007-11-04  Bruno Haible  <bruno@clisp.org>
9235
9236         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
9237         * modules/fprintf-posix (Depends-on): Add nocrash.
9238         * modules/snprintf-posix (Depends-on): Likewise.
9239         * modules/sprintf-posix (Depends-on): Likewise.
9240         * modules/vasnprintf-posix (Depends-on): Likewise.
9241         * modules/vasprintf-posix (Depends-on): Likewise.
9242         * modules/vfprintf-posix (Depends-on): Likewise.
9243         * modules/vsnprintf-posix (Depends-on): Likewise.
9244         * modules/vsprintf-posix (Depends-on): Likewise.
9245         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9246         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9247         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9248         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9249         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9250         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9251         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9252
9253 2007-11-04  Bruno Haible  <bruno@clisp.org>
9254
9255         * modules/nocrash: New file.
9256         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
9257         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
9258
9259 2007-11-04  Bruno Haible  <bruno@clisp.org>
9260
9261         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
9262         precision handling.
9263         * tests/test-vasprintf-posix.c (test_function): Likewise.
9264         * tests/test-snprintf-posix.h (test_function): Likewise.
9265         * tests/test-sprintf-posix.h (test_function): Likewise.
9266
9267         Fix *printf behaviour for large precisions on mingw and BeOS.
9268         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
9269         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
9270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
9271         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9272         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9273         gl_PRINTF_PRECISION and test its result. Invoke
9274         gl_PREREQ_VASNPRINTF_PRECISION.
9275         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9276         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9277         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9278         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9279         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9280         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9281         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9282         * doc/functions/fprintf.texi: Update.
9283         * doc/functions/printf.texi: Update.
9284         * doc/functions/snprintf.texi: Update.
9285         * doc/functions/sprintf.texi: Update.
9286         * doc/functions/vfprintf.texi: Update.
9287         * doc/functions/vprintf.texi: Update.
9288         * doc/functions/vsnprintf.texi: Update.
9289         * doc/functions/vsprintf.texi: Update.
9290
9291 2007-11-04  Bruno Haible  <bruno@clisp.org>
9292
9293         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
9294
9295 2007-11-04  Bruno Haible  <bruno@clisp.org>
9296
9297         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
9298         Reported by Sylvain Beucler <beuc@gnu.org>.
9299
9300 2007-11-03  Bruno Haible  <bruno@clisp.org>
9301
9302         * tests/test-fprintf-posix2.sh: New file.
9303         * tests/test-fprintf-posix2.c: New file.
9304         * modules/fprintf-posix-tests (Files): Add them.
9305         (TESTS): Add test-fprintf-posix2.sh.
9306         (configure.ac): Check for getrlimit and setrlimit.
9307         (check_PROGRAMS): Add test-fprintf-posix2.
9308
9309         * tests/test-printf-posix2.sh: New file.
9310         * tests/test-printf-posix2.c: New file.
9311         * modules/printf-posix-tests (Files): Add them.
9312         (TESTS): Add test-printf-posix2.sh.
9313         (configure.ac): Check for getrlimit and setrlimit.
9314         (check_PROGRAMS): Add test-printf-posix2.
9315
9316         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
9317         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
9318         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
9319         (decode_double): New function, copied from decode_long_double.
9320         (scale10_round_decimal_decoded): New function, extracted from
9321         scale10_round_decimal_long_double.
9322         (scale10_round_decimal_long_double): Use it.
9323         (scale10_round_decimal_double): New function.
9324         (floorlog10): New function.
9325         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
9326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
9327         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9328         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9329         gl_PRINTF_ENOMEM and test its result. Invoke
9330         gl_PREREQ_VASNPRINTF_ENOMEM.
9331         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9332         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9333         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9334         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9335         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9336         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9337         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9338         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
9339         * modules/snprintf-posix (Depends-on): Likewise.
9340         * modules/sprintf-posix (Depends-on): Likewise.
9341         * modules/vasnprintf-posix (Depends-on): Likewise.
9342         * modules/vasprintf-posix (Depends-on): Likewise.
9343         * modules/vfprintf-posix (Depends-on): Likewise.
9344         * modules/vsnprintf-posix (Depends-on): Likewise.
9345         * modules/vsprintf-posix (Depends-on): Likewise.
9346         * doc/functions/fprintf.texi: Update.
9347         * doc/functions/printf.texi: Update.
9348         * doc/functions/snprintf.texi: Update.
9349         * doc/functions/sprintf.texi: Update.
9350         * doc/functions/vfprintf.texi: Update.
9351         * doc/functions/vprintf.texi: Update.
9352         * doc/functions/vsnprintf.texi: Update.
9353         * doc/functions/vsprintf.texi: Update.
9354
9355 2007-11-03  Bruno Haible  <bruno@clisp.org>
9356
9357         * modules/frexp-nolibm-tests: New file.
9358
9359         * modules/frexp-nolibm: New file.
9360         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
9361
9362 2007-11-03  Bruno Haible  <bruno@clisp.org>
9363
9364         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
9365         value is C99 compliant.
9366         Needed for OSF/1 5.1.
9367
9368 2007-11-03  Bruno Haible  <bruno@clisp.org>
9369
9370         Fix out-of-memory handling of vasnprintf.
9371         * lib/printf-parse.c: Include <errno.h>.
9372         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
9373         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
9374         is already set.
9375
9376 2007-11-02  Eric Blake  <ebb9@byu.net>
9377
9378         Fix tests on cygwin.
9379         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
9380
9381 2007-11-01  Bruno Haible  <bruno@clisp.org>
9382
9383         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
9384         warning.
9385         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
9386         needed for POSIX compatibility.
9387
9388 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9389
9390         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
9391         for compatibility with GNU.
9392
9393 2007-11-01  Bruno Haible  <bruno@clisp.org>
9394
9395         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
9396         (putenv): Renamed from rpl_putenv. Change argument type from
9397         'const char *' to 'char *'.
9398         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
9399         of defining putenv in config.h, just set REPLACE_PUTENV.
9400         * modules/putenv (Depends-on): Add stdlib.
9401         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9402         (Include): Use <stdlib.h>.
9403         * lib/stdlib.in.h (putenv): New declaration.
9404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
9405         REPLACE_PUTENV.
9406         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
9407         REPLACE_PUTENV.
9408         Needed for MacOS X 10.5.0.
9409         Reported by Peter O'Gorman <peter@pogma.com>.
9410
9411 2007-11-01  Jim Meyering  <meyering@redhat.com>
9412
9413         Treat an empty date string exactly like "0".
9414         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
9415         if the remaining date string (to be parsed) is empty, use "0".
9416         Reported by Mischa Molhoek and discussed in this thread:
9417         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
9418
9419 2007-10-31  Bruno Haible  <bruno@clisp.org>
9420
9421         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
9422         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
9423         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
9424         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
9425         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
9426         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
9427
9428 2007-10-31  Bruno Haible  <bruno@clisp.org>
9429
9430         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
9431         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
9432         (AC_TYPE_LONG_LONG_INT): Use it.
9433         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
9434         it as well.
9435         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
9436         to m4/longlong.m4.
9437         * modules/stdint (Files): Remove m4/ulonglong.m4.
9438         * modules/strtoull (Files): Use m4/longlong.m4 instead of
9439         m4/ulonglong.m4.
9440         * modules/strtoumax (Files): Likewise.
9441
9442 2007-10-30  Bruno Haible  <bruno@clisp.org>
9443
9444         * modules/xvasprintf-posix: New file.
9445         Suggested by Eric Blake.
9446
9447 2007-10-30  Bruno Haible  <bruno@clisp.org>
9448
9449         * modules/xprintf-posix-tests: New file.
9450         * tests/test-xprintf-posix.sh: New file.
9451         * tests/test-xprintf-posix.c: New file.
9452         * tests/test-xfprintf-posix.c: New file.
9453
9454         * modules/xprintf-posix: New file.
9455
9456 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9457
9458         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
9459         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
9460         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
9461
9462 2007-10-29  Bruno Haible  <bruno@clisp.org>
9463
9464         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
9465         contain the special marker '_cv_'.
9466         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9467         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9468         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9469         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9470         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9471         Reported by Ralf Wildenhues.
9472
9473 2007-10-29  Bruno Haible  <bruno@clisp.org>
9474
9475         * gnulib-tool (func_import): When --lgpl is not specified, set
9476         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
9477         GPLv3.
9478         Reported by Simon Josefsson.
9479
9480 2007-10-28  Bruno Haible  <bruno@clisp.org>
9481
9482         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
9483         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
9484         HAVE_DECL_ISFINITE.
9485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9486         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
9487         HAVE_DECL_ISFINITE.
9488
9489 2007-10-28  Bruno Haible  <bruno@clisp.org>
9490
9491         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
9492         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
9493
9494 2007-10-28  Bruno Haible  <bruno@clisp.org>
9495
9496         Fix link errors with Sun C 5.0 on Solaris 10.
9497         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
9498         function is declared but not present in the compiler's libm.
9499         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9500         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9501         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
9502         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
9503         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
9504         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
9505         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
9506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9507         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
9508         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
9509         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
9510         HAVE_DECL_FLOORL.
9511
9512 2007-10-28  Bruno Haible  <bruno@clisp.org>
9513
9514         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
9515         gl_FUNC_FLOORL. Cache the result.
9516         (gl_FUNC_FLOORL): Use it.
9517         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
9518         gl_FUNC_CEILL. Cache the result.
9519         (gl_FUNC_CEILL): Use it.
9520
9521         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
9522         gl_FUNC_FLOOR. Cache the result.
9523         (gl_FUNC_FLOOR): Use it.
9524         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
9525         gl_FUNC_CEIL. Cache the result.
9526         (gl_FUNC_CEIL): Use it.
9527
9528         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
9529         gl_FUNC_FLOORF. Cache the result.
9530         (gl_FUNC_FLOORF): Use it.
9531         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
9532         gl_FUNC_CEILF. Cache the result.
9533         (gl_FUNC_CEILF): Use it.
9534
9535 2007-10-28  Bruno Haible  <bruno@clisp.org>
9536
9537         * gnulib-tool: Allow specifying the LGPL version number through
9538         --lgpl=2 or --lgpl=3.
9539         (func_usage): Document --lgpl with argument.
9540         Handle --lgpl=... arguments.
9541         (func_import): Recognize also gl_LGPL calls with an argument. When
9542         --lgpl=2 is used and the module's license is just LGPL, report an
9543         error. Set sed_transform_lib_file according to the lgpl variable. In
9544         the generated files, use --lgpl or gl_LGPL invocations with argument,
9545         if necessary.
9546         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
9547         an LGPv2+ license.
9548         * doc/gnulib-tool.texi (Modified imports): Update explanation of
9549         gl_LGPL macro.
9550
9551 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9552             Bruno Haible  <bruno@clisp.org>
9553
9554         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
9555         (u16_uctomb_aux): Likewise.
9556         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
9557         !HAVE_INLINE.
9558         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
9559
9560 2007-10-28  Bruno Haible  <bruno@clisp.org>
9561
9562         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
9563         Invoke AM_GETTEXT_OPTION if it exists.
9564         * modules/vasprintf: Likewise.
9565         * modules/verror: Likewise.
9566         * modules/xprintf: Likewise.
9567         * modules/xvasprintf: Likewise.
9568
9569 2007-10-27  Ben Pfaff  <blp@gnu.org>
9570
9571         * lib/math.in.h: Define isfinite macro and prototypes for
9572         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
9573         implementations.
9574         * m4/math_h.m4: New substitutions for isfinite module.
9575         * lib/isfinite.c: New file.
9576         * m4/isfinite.m4: New file.
9577         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
9578         * modules/isfinite: New file.
9579         * modules/isfinite-tests: New file.
9580         * tests/tests-isfinite.c: New file.
9581         * doc/functions/isfinite.texi: Mention isfinite module.
9582         * MODULES.html.sh: Mention new module.
9583
9584 2007-10-27  Ben Pfaff  <blp@gnu.org>
9585
9586         Ralf Wildenhues reported that Tru64 4.0D declares the round
9587         functions but does not have definitions.
9588         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
9589         cannot be found in any library, set the output variable to
9590         "missing" instead of "".
9591         * m4/round.m4: Also use our substitute if we cannot find round in
9592         any library, even if it is declared.
9593         * m4/roundf.m4: Likewise for roundf.
9594         * m4/roundl.m4: Likewise for roundl.
9595         * lib/math.in.h: Undefine roundf, round, roundl before defining
9596         their replacements, to allow for hypothetical systems where these
9597         may be defined as macros but not available in libraries.
9598
9599 2007-10-27  Bruno Haible  <bruno@clisp.org>
9600
9601         * doc/gnulib.texi: Invoke @firstparagraphindent.
9602         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
9603         changes in gnulib.
9604         (Source changes): New section.
9605
9606 2007-10-26  Bruno Haible  <bruno@clisp.org>
9607
9608         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
9609         borrowed from autoconf.
9610
9611 2007-10-26  Bruno Haible  <bruno@clisp.org>
9612
9613         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
9614         strerror returned the empty string. Needed on HP-UX 11.00.
9615
9616 2007-10-24  Micah Cowan  <micah@cowan.name>
9617
9618         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
9619         * build-aux/bootstrap: Remove support for now-unnecessary option,
9620         --cvs-user, and envvars CVS_USER, CVS_RSH.
9621
9622 2007-10-24  Jim Meyering  <meyering@redhat.com>
9623
9624         Avoid diagnostics from sha1sum when there is no cached checksum.
9625         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
9626         if the po.s1 file hasn't been created yet.
9627
9628         * build-aux/bootstrap: Sync from coreutils:
9629         2007-10-24  Jim Meyering  <meyering@redhat.com>
9630         Get gnulib from the git repository, not from an obsolete cvs one.
9631         * build-aux/bootstrap: Suggestion from Micah Cowan.
9632         2007-10-04  Jim Meyering  <jim@meyering.net>
9633         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
9634         (update_po_files): Work also when there are no .po files in po/.
9635
9636 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9637
9638         * README: Append ".git" to git and cg examples.
9639         Problem reported by Benoit Sigoure.
9640
9641 2007-10-23  Micah Cowan  <micah@cowan.name>
9642
9643         * users.txt: Add wget.
9644
9645 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9646
9647         Fix linking of some unistdio tests on FreeBSD.
9648         * modules/unistdio/u16-vsnprintf-tests
9649         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
9650         * modules/unistdio/u16-vsprintf-tests
9651         (test_u16_vsnprintf1_LDADD): Likewise.
9652         * modules/unistdio/u32-vsnprintf-tests
9653         (test_u32_vsnprintf1_LDADD): Likewise.
9654         * modules/unistdio/u32-vsprintf-tests
9655         (test_u32_vsprintf1_LDADD): Likewise.
9656         * modules/unistdio/u8-vsnprintf-tests
9657         (test_u8_vsnprintf1_LDADD): Likewise.
9658         * modules/unistdio/u8-vsprintf-tests
9659         (test_u8_vsprintf1_LDADD): Likewise.
9660         * modules/unistdio/ulc-vsnprintf-tests
9661         (test_ulc_vsnprintf1_LDADD): Likewise.
9662         * modules/unistdio/ulc-vsprintf-tests
9663         (test_ulc_vsprintf1_LDADD): Likewise.
9664
9665         Fix linking of some uniconv tests on FreeBSD.
9666         * modules/uniconv/u16-conv-from-enc-tests
9667         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
9668         * modules/uniconv/u16-conv-to-enc-tests
9669         (test_u16_conv_to_enc_LDADD): Likewise.
9670         * modules/uniconv/u16-strconv-from-enc-tests
9671         (test_u16_strconv_from_enc_LDADD): Likewise.
9672         * modules/uniconv/u16-strconv-to-enc-tests
9673         (test_u16_strconv_to_enc_LDADD): Likewise.
9674         * modules/uniconv/u32-conv-from-enc-tests
9675         (test_u32_conv_from_enc_LDADD): Likewise.
9676         * modules/uniconv/u32-conv-to-enc-tests
9677         (test_u32_conv_to_enc_LDADD): Likewise.
9678         * modules/uniconv/u32-strconv-from-enc-tests
9679         (test_u32_strconv_from_enc_LDADD): Likewise.
9680         * modules/uniconv/u32-strconv-to-enc-tests
9681         (test_u32_strconv_to_enc_LDADD): Likewise.
9682         * modules/uniconv/u8-conv-from-enc-tests
9683         (test_u8_conv_from_enc_LDADD): Likewise.
9684         * modules/uniconv/u8-conv-to-enc-tests
9685         (test_u8_conv_to_enc_LDADD): Likewise.
9686         * modules/uniconv/u8-strconv-from-enc-tests
9687         (test_u8_strconv_from_enc_LDADD): Likewise.
9688         * modules/uniconv/u8-strconv-to-enc-tests
9689         (test_u8_strconv_to_enc_LDADD): Likewise.
9690
9691 2007-10-22  Bruno Haible  <bruno@clisp.org>
9692
9693         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
9694         size.
9695
9696 2007-10-22  Eric Blake  <ebb9@byu.net>
9697
9698         Tweak x*printf documentation.
9699         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
9700         variable name and comments.
9701         Suggested by Bruno Haible.
9702
9703 2007-10-22  Bruno Haible  <bruno@clisp.org>
9704
9705         * lib/acl.c (copy_acl): Fix file name in comment.
9706
9707 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9708
9709         Fix Tru64 problem with stdbool.h.
9710         * lib/stdbool.in.h (false, true):
9711         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
9712         Don't declare as an enum in this situation; it runs afoul of Tru64.
9713         Problem reported by Steven M. Schweda in
9714         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
9715
9716 2007-10-22  Eric Blake  <ebb9@byu.net>
9717
9718         Also wrap vf?printf.
9719         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
9720         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
9721         (xvprintf, xvfprintf): New functions.
9722
9723 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9724
9725         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
9726         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
9727
9728         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
9729         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
9730
9731 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9732
9733         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
9734         by Bruno Haible.
9735
9736 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9737
9738         * lib/getloadavg.c
9739         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
9740         Undef `sys' after including sys/table.h, for Tru64 4.0D.
9741
9742         * tests/test-i-ring.c: Work for C89.
9743
9744 2007-10-22  Bruno Haible  <bruno@clisp.org>
9745
9746         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
9747         -1u, in preprocessor expression, so that we don't test for the bug
9748         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
9749         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
9750
9751 2007-10-22  Eric Blake  <ebb9@byu.net>
9752
9753         * tests/test-yesno.sh: Silence stderr during test.
9754
9755 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9756
9757         * modules/crypto/gc-camellia: New file.
9758
9759         * m4/gc-camellia.m4: New file.
9760
9761         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
9762
9763         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
9764
9765 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9766
9767         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
9768         --help to stdout.  Reported by sms@antinode.org (Steven
9769         M. Schweda).
9770
9771 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9772
9773         * users.txt: Fix link to libksba.
9774
9775 2007-10-21  Ben Pfaff  <blp@gnu.org>
9776
9777         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
9778         round.c roundf implementation that depends on floorf and ceilf to
9779         be tested unconditionally.
9780
9781 2007-10-21  Ben Pfaff  <blp@gnu.org>
9782
9783         * m4/check-libm-func.m4: Removed.
9784         * m4/check-math-lib.m4: New file.
9785         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
9786         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
9787         definition and lack of AC_LIBOBJ([roundf]).
9788         * m4/roundl.m4: Ditto, and similarly for roundl.
9789         * modules/round: Reference new m4 file.
9790         * modules/roundf: Ditto.
9791         * modules/roundl: Ditto.
9792         * tests/test-round2.c (main): Use ROUND instead of round.
9793         Bug report from Bruno Haible.
9794
9795 2007-10-21  Bruno Haible  <bruno@clisp.org>
9796
9797         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
9798         context.
9799
9800 2007-10-21  Bruno Haible  <bruno@clisp.org>
9801
9802         * tests/test-wcwidth.c (main): Allow negative result for some control
9803         characters.
9804
9805         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
9806         Needed on OSF/1 5.1.
9807
9808 2007-10-21  Bruno Haible  <bruno@clisp.org>
9809
9810         * tests/test-floorf1.c: Include isnanf.h.
9811         (main): Use isnanf() instead of isnan().
9812         * tests/test-ceilf1.c: Include isnanf.h.
9813         (main): Use isnanf() instead of isnan().
9814         * tests/test-truncf1.c: Include isnanf.h.
9815         (main): Use isnanf() instead of isnan().
9816         * tests/test-roundf1.c: Include isnanf.h.
9817         (main): Use isnanf() instead of isnan().
9818
9819 2007-10-21  Eric Blake  <ebb9@byu.net>
9820
9821         * users.txt: Update URL for m4.
9822
9823 2007-10-21  Bruno Haible  <bruno@clisp.org>
9824
9825         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
9826
9827 2007-10-21  Bruno Haible  <bruno@clisp.org>
9828
9829         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
9830         Git's management files if the CVS files are not present.
9831
9832 2007-10-20  Bruno Haible  <bruno@clisp.org>
9833
9834         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
9835         gcc-3.4.x.
9836
9837 2007-10-20  Ben Pfaff  <blp@gnu.org>
9838
9839         * lib/math.in.h: Declare round, roundf, roundl if we are providing
9840         implementations.
9841         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
9842         * lib/round.c: New file.
9843         * lib/roundf.c: New file.
9844         * lib/roundl.c: New file.
9845         * m4/round.m4: New file.
9846         * m4/roundf.m4: New file.
9847         * m4/roundl.m4: New file.
9848         * m4/check-libm-func-m4: New file.
9849         * modules/math: Replace round, roundf, roundl related @VARS@ in
9850         math.in.h.
9851         * modules/round: New file.
9852         * modules/round-tests: New file.
9853         * modules/roundf: New file.
9854         * modules/roundf-tests: New file.
9855         * modules/roundl: New file.
9856         * modules/roundl-tests: New file.
9857         * tests/test-round1.c: New file.
9858         * tests/test-round2.c: New file.
9859         * tests/test-roundf1.c: New file.
9860         * tests/test-roundf2.c: New file.
9861         * tests/test-roundl.c: New file.
9862         * doc/functions/round.texi: Mention round module.
9863         * doc/functions/roundf.texi: Mention roundf module.
9864         * doc/functions/roundl.texi: Mention roundl module.
9865         * MODULES.html.sh: Mention new modules.
9866         Thanks to Bruno Haible for suggestions.
9867
9868 2007-10-20  Jim Meyering  <meyering@redhat.com>
9869
9870         * lib/xprintf.c: Include <config.h> unconditionally.
9871
9872         Change xprintf's license to GPL.
9873         * modules/xprintf (License): s/LGPL/GPL/, since this module
9874         depends on modules (exit and exitfail) which are GPL.
9875         Suggestion from Bruno Haible.
9876
9877         xprintf fixes.
9878         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
9879         Use a clearer diagnostic.
9880         Patch from Bruno Haible.
9881
9882 2007-10-20  Bruno Haible  <bruno@clisp.org>
9883
9884         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
9885         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
9886         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9887
9888 2007-10-20  Bruno Haible  <bruno@clisp.org>
9889
9890         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
9891         precision in the comparison result > x - 1 or similar.
9892         * tests/test-ceilf2.c (correct_result_p): Likewise.
9893         * tests/test-truncf2.c (correct_result_p): Likewise.
9894         * tests/test-trunc2.c (correct_result_p): Likewise.
9895         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9896
9897 2007-10-20  Bruno Haible  <bruno@clisp.org>
9898
9899         * modules/ceil: New file.
9900         * m4/ceil.m4: New file.
9901         * doc/functions/ceil.texi: Mention the 'ceil' module.
9902
9903 2007-10-20  Bruno Haible  <bruno@clisp.org>
9904
9905         * modules/floor: New file.
9906         * m4/floor.m4: New file.
9907         * doc/functions/floor.texi: Mention the 'floor' module.
9908
9909 2007-10-20  Bruno Haible  <bruno@clisp.org>
9910
9911         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
9912         of %a.
9913         * modules/floorf-tests (Depends-on): Likewise.
9914         * modules/truncf-tests (Depends-on): Likewise.
9915         * modules/trunc-tests (Depends-on): Likewise.
9916         Reported by Ben Pfaff.
9917
9918 2007-10-19  Jim Meyering  <meyering@redhat.com>
9919
9920         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
9921         Don't bother testing specific errno values.  Just test ferror.
9922
9923         New module: xprintf
9924         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
9925
9926 2007-10-19  Bruno Haible  <bruno@clisp.org>
9927
9928         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
9929         syntax.
9930         * modules/javaexec (Makefile.am): Likewise.
9931         * modules/relocatable-prog (Makefile.am): Likewise.
9932         Suggested by Jim Meyering.
9933
9934 2007-10-18  Bruno Haible  <bruno@clisp.org>
9935
9936         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
9937         Reported by Jim Meyering.
9938
9939 2007-10-18  Eric Blake  <ebb9@byu.net>
9940
9941         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
9942
9943 2007-10-18  Bruno Haible  <bruno@clisp.org>
9944
9945         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
9946         the format string into writable memory. Needed in Fortify conditions.
9947
9948 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
9949             Bruno Haible  <bruno@clisp.org>
9950
9951         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
9952         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
9953         * modules/trim (Depends-on): Add mbchar.
9954         (configure.ac): Add gl_FUNC_MBRTOWC.
9955         (Makefile.am): Augment lib_SOURCES.
9956
9957 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
9958
9959         Modify glob.c to use fstatat and dirfd, to simplify it.
9960         Suggested by Eric Blake.
9961         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
9962         Don't include <stdbool.h>; not used.
9963         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
9964         (link_exists_p): Simplify implementation, since we can now assume
9965         dirfd and fstatat.
9966         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
9967
9968 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9969
9970         * gnulib-tool (func_get_dependencies): Fix sed script to
9971         match only tests.
9972
9973 2007-10-17  Bruno Haible  <bruno@clisp.org>
9974
9975         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
9976         allow locale names without encoding suffix.
9977         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9978         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9979
9980 2007-10-16  Bruno Haible  <bruno@clisp.org>
9981
9982         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
9983         * lib/getgroups.c (getgroups): Likewise.
9984         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
9985
9986 2007-10-16  Bruno Haible  <bruno@clisp.org>
9987
9988         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
9989         * modules/malloc-posix (License): Likewise.
9990         * modules/realloc-posix (License): Likewise.
9991         * modules/calloc-posix (License): Likewise.
9992         * modules/intprops (License): Change from GPL to LGPL, with
9993         Paul Eggert's approval.
9994
9995 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9996
9997         Merge glibc changes into lib/glob.c.
9998
9999         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
10000         2007-10-15 04:59:03 UTC.  Here are the changes:
10001
10002         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
10003
10004         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
10005
10006         * lib/glob.c: Add some branch prediction throughout.
10007
10008         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
10009
10010         [BZ #5103]
10011         * lib/glob.c (glob): Recognize patterns starting \/.
10012
10013         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10014
10015         [BZ #3996]
10016         * lib/glob.c (attribute_hidden): Define if not defined.
10017         (glob): Unescape dirname, filename or username when needed and not
10018         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10019         is NULL.  Handle unescaped [ in pattern without closing ].
10020         Don't pass GLOB_CHECK down to recursive glob for directories.
10021         (__glob_pattern_type): New function.
10022         (__glob_pattern_p): Implement using __glob_pattern_type.
10023         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10024         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10025         Remove unreachable code.
10026
10027         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10028
10029         * lib/glob.c (glob_in_dir): Add some comments and asserts to
10030         explain why there are no leaks.
10031
10032         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10033
10034         [BZ #3253]
10035         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10036         time, rather allocate increasingly bigger arrays of pointers, if
10037         possible with alloca, if too large with malloc.
10038
10039 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10040
10041         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
10042         Problem reported by H.Merijn Brand in
10043         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
10044         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
10045         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10046
10047 2007-10-15  Bruno Haible  <bruno@clisp.org>
10048
10049         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
10050         with explicit rpl_ prefix.
10051         * lib/fopen.c (fopen): Likewise.
10052         * lib/freopen.c (freopen): Likewise.
10053         * lib/iconv.c (iconv): Likewise.
10054         * lib/iconv_close.c (iconv_close): Likewise.
10055
10056 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10057
10058         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
10059
10060 2007-10-15  Bruno Haible  <bruno@clisp.org>
10061
10062         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
10063         <stddef.h> instead of <stdlib.h> since we only need NULL.
10064         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10065
10066 2007-10-15  Bruno Haible  <bruno@clisp.org>
10067
10068         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
10069         Replace paragraph talking about LIBOBJS.
10070         Reported by Colin Watson <cjwatson@debian.org>.
10071
10072 2007-10-15  Bruno Haible  <bruno@clisp.org>
10073
10074         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
10075         <stdlib.h> before using NULL.
10076
10077 2007-10-15  Simon Josefsson  <simon@josefsson.org>
10078
10079         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
10080         Reported by Albert Chin <china@thewrittenword.com>.
10081
10082 2007-10-14  Bruno Haible  <bruno@clisp.org>
10083
10084         * modules/iconv_open-utf-tests: New file.
10085         * tests/test-iconv-utf.c: New file.
10086
10087         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
10088         * modules/iconv_open-utf: New file.
10089         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
10090         (iconv, iconv_close): New declarations.
10091         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
10092         be defined.
10093         (iconv_open): Add special handling of conversion between UTF-8 and
10094         UTF-{16,32}{BE,LE}.
10095         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
10096         * lib/iconv_close.c: New file.
10097         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
10098         gl_FUNC_ICONV_OPEN.
10099         (gl_FUNC_ICONV_OPEN): Use it.
10100         (gl_FUNC_ICONV_OPEN_UTF): New macro.
10101         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
10102         and REPLACE_ICONV_UTF.
10103         * modules/iconv_open (Depends-on): Add c-strcase.
10104         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
10105         ICONV_CONST.
10106         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
10107
10108 2007-10-13  Albert Chin  <china@thewrittenword.com>
10109             Bruno Haible  <bruno@clisp.org>
10110
10111         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
10112         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
10113
10114 2007-10-13  Bruno Haible  <bruno@clisp.org>
10115
10116         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
10117         defined, use the ISO C99 inline semantics.
10118         * lib/argp.h (ARGP_EI): Likewise.
10119
10120 2007-10-13  Bruno Haible  <bruno@clisp.org>
10121
10122         Handle 'inline' change in gcc 4.3.0.
10123         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
10124         argp_fmtstream_write, argp_fmtstream_set_lmargin,
10125         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
10126         argp_fmtstream_point): Disable 'extern' declaration if the function
10127         definition is going to be provided inline.
10128         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
10129         semantics, not the ISO C99 inline semantics.
10130         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
10131         'extern' declaration if the function definition is going to be provided
10132         inline.
10133         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
10134         the GNU C inline semantics, not the ISO C99 inline semantics. With
10135         GCC 4.2, avoid a warning.
10136
10137 2007-10-13  Bruno Haible  <bruno@clisp.org>
10138
10139         * lib/freading.h (freading): Enable the use of __freading for
10140         glibc >= 2.7.
10141         * lib/freading.c (freading): Likewise.
10142
10143 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10144
10145         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
10146         "warning: C99 inline functions are not supported; using GNU89".
10147
10148 2007-10-12  Bruno Haible  <bruno@clisp.org>
10149
10150         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
10151         of 2.
10152         * tests/test-ceilf2.c: New file.
10153         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
10154
10155         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
10156         * modules/ceilf-tests: Update.
10157
10158 2007-10-12  Bruno Haible  <bruno@clisp.org>
10159
10160         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
10161         of 2.
10162         * tests/test-floorf2.c: New file.
10163         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
10164
10165         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
10166         * modules/floorf-tests: Update.
10167
10168 2007-10-12  Bruno Haible  <bruno@clisp.org>
10169
10170         * tests/test-trunc2.c: New file.
10171         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
10172
10173         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
10174         * modules/trunc-tests: Update.
10175
10176 2007-10-12  Bruno Haible  <bruno@clisp.org>
10177
10178         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
10179         of 2.
10180         * tests/test-truncf2.c: New file.
10181         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
10182
10183         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
10184         * modules/truncf-tests: Update.
10185
10186 2007-10-11  Eric Blake  <ebb9@byu.net>
10187
10188         Don't claim strerror is broken on Interix.
10189         * doc/functions/strerror.texi (strerror): Known broken systems are
10190         now Solaris 8, and not Interix.
10191         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
10192         Interix on cross-compile.
10193         Reported by Martin Koeppe in
10194         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
10195
10196 2007-10-11  Bruno Haible  <bruno@clisp.org>
10197
10198         * modules/i-ring-tests: New file.
10199         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
10200         instead of assert.
10201
10202 2007-10-11  Bruno Haible  <bruno@clisp.org>
10203
10204         * modules/filenamecat-tests: New file.
10205         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
10206         * lib/filenamecat.c: Remove test code.
10207
10208 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10209
10210         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
10211
10212         * lib/strerror.c: Include <string.h> always, to test interface,
10213         and to remove the need for the dummy.
10214         Include intprops.h to compute width instead of doing it ourselves
10215         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
10216         (strerror): Define it to return NULL if there's no system strerror.
10217         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
10218         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
10219         ancient pre-strerror Unix systems well any more.  Saying "unknown
10220         system error" is enough.
10221         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
10222         simpler strerror.c implementation.
10223         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
10224         Simplify the tests to reflect the simpler strerror implementation.
10225         * modules/strerror (Depends-on): Add intprops.
10226
10227 2007-10-09  Eric Blake  <ebb9@byu.net>
10228
10229         Silence test-fpending.
10230         * modules/fpending-tests (Files): Add wrapper script.
10231         * tests/test-fpending.sh: New file.
10232
10233 2007-10-09  Bruno Haible  <bruno@clisp.org>
10234
10235         * MODULES.html.sh (func_module): Don't create a hyperlink for
10236         function names like 'printf_frexp'.
10237         (Misc): Add crc, memxor.
10238         (Characteristics of floating types): New section.
10239         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
10240         isnanf-nolibm, signbit, trunc, truncf, truncl.
10241         (Enhancements for ISO C 99 functions): New subsection Input/output.
10242         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
10243         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
10244         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
10245         (Compatibility checks for POSIX:2001 functions): Add clock-time.
10246         (Enhancements for POSIX:2001 functions): Add chdir-long.
10247         (File system functions): Add areadlink, chdir-safer, read-file.
10248         Remove cycle-check.
10249         (File system as inode set): New section.
10250         (Date and time): Add gethrxtime.
10251         (Multithreading): Add openmp.
10252         (Internationalization functions): Add localename.
10253         (Unicode string functions): Add unistr/u*-mbsnlen.
10254         (Support for maintaining and releasing projects): Add git-version-gen.
10255         (Lone files): Remove directories.
10256
10257 2007-10-08  Ben Pfaff  <blp@gnu.org>
10258
10259         * lib/xmalloca.h: Fix typo in comment.
10260
10261 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10262
10263         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
10264         when avoiding problems with integer overflow.  Use a portable test
10265         instead.
10266
10267 2007-10-08  Simon Josefsson  <simon@josefsson.org>
10268
10269         * modules/dummy (License): Change to LGPLv2+.
10270         * modules/float (License): Likewise
10271         * modules/realloc (License): Likewise
10272         * modules/stdlib (License): Likewise
10273
10274 2007-10-07  Bruno Haible  <bruno@clisp.org>
10275
10276         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
10277         * floor.c (TWO_MANT_DIG): Likewise.
10278         * ceil.c (TWO_MANT_DIG): Likewise.
10279         Reported by Ben Pfaff.
10280
10281 2007-10-07  Bruno Haible  <bruno@clisp.org>
10282
10283         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
10284         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
10285         * lib/frexp.c (FUNC): Likewise.
10286         * lib/printf-frexp.h (printf_frexp): Likewise.
10287         * lib/printf-frexpl.h (printf_frexpl): Likewise.
10288         * lib/printf-frexp.c (FUNC): Likewise.
10289         Suggested by Jim Meyering.
10290
10291 2007-10-07  Jim Meyering  <meyering@redhat.com>
10292
10293         Make xnanosleep's integer overflow test more robust.
10294         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
10295         so that gcc-4.3.0 doesn't optimize away this test for overflow.
10296
10297 2007-10-07  Bruno Haible  <bruno@clisp.org>
10298
10299         * NEWS: Mention the license change.
10300
10301         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
10302         abbreviations in the modules files.
10303
10304         Change copyright notice from GPLv2+ to GPLv3+.
10305         * README: Change copyright notice.
10306         * MODULES.html.sh: Likewise.
10307         * build-aux/bootstrap.conf: Likewise.
10308         * build-aux/config.libpath: Likewise.
10309         * build-aux/csharpcomp.sh.in: Likewise.
10310         * build-aux/csharpexec.sh.in: Likewise.
10311         * build-aux/install-reloc: Likewise.
10312         * build-aux/javacomp.sh.in: Likewise.
10313         * build-aux/javaexec.sh.in: Likewise.
10314         * build-aux/ldd.sh.in: Likewise.
10315         * build-aux/reloc-ldflags: Likewise.
10316         * build-aux/relocatable.sh.in: Likewise.
10317         * build-aux/x-to-1.in: Likewise.
10318         * check-module: Likewise.
10319         * config/srclistvars.sh: Likewise.
10320         * gnulib-tool: Likewise.
10321         * lib/acl-internal.h: Likewise.
10322         * lib/acl.c: Likewise.
10323         * lib/acl.h: Likewise.
10324         * lib/acl_entries.c: Likewise.
10325         * lib/areadlink-with-size.c: Likewise.
10326         * lib/areadlink.c: Likewise.
10327         * lib/areadlink.h: Likewise.
10328         * lib/argmatch.c: Likewise.
10329         * lib/argmatch.h: Likewise.
10330         * lib/argp-ba.c: Likewise.
10331         * lib/argp-eexst.c: Likewise.
10332         * lib/argp-fmtstream.c: Likewise.
10333         * lib/argp-fmtstream.h: Likewise.
10334         * lib/argp-fs-xinl.c: Likewise.
10335         * lib/argp-help.c: Likewise.
10336         * lib/argp-namefrob.h: Likewise.
10337         * lib/argp-parse.c: Likewise.
10338         * lib/argp-pin.c: Likewise.
10339         * lib/argp-pv.c: Likewise.
10340         * lib/argp-pvh.c: Likewise.
10341         * lib/argp-xinl.c: Likewise.
10342         * lib/argp.h: Likewise.
10343         * lib/at-func.c: Likewise.
10344         * lib/atanl.c: Likewise.
10345         * lib/backupfile.c: Likewise.
10346         * lib/backupfile.h: Likewise.
10347         * lib/basename.c: Likewise.
10348         * lib/binary-io.h: Likewise.
10349         * lib/byteswap.in.h: Likewise.
10350         * lib/c-stack.c: Likewise.
10351         * lib/c-stack.h: Likewise.
10352         * lib/c-strcasestr.c: Likewise.
10353         * lib/c-strcasestr.h: Likewise.
10354         * lib/c-strstr.c: Likewise.
10355         * lib/c-strstr.h: Likewise.
10356         * lib/c-strtod.c: Likewise.
10357         * lib/calloc.c: Likewise.
10358         * lib/canon-host.c: Likewise.
10359         * lib/canon-host.h: Likewise.
10360         * lib/canonicalize-lgpl.c: Likewise.
10361         * lib/canonicalize.c: Likewise.
10362         * lib/canonicalize.h: Likewise.
10363         * lib/ceil.c: Likewise.
10364         * lib/ceilf.c: Likewise.
10365         * lib/ceill.c: Likewise.
10366         * lib/chdir-long.c: Likewise.
10367         * lib/chdir-long.h: Likewise.
10368         * lib/chdir-safer.c: Likewise.
10369         * lib/chdir-safer.h: Likewise.
10370         * lib/chown.c: Likewise.
10371         * lib/classpath.c: Likewise.
10372         * lib/classpath.h: Likewise.
10373         * lib/clean-temp.c: Likewise.
10374         * lib/clean-temp.h: Likewise.
10375         * lib/cloexec.c: Likewise.
10376         * lib/close-stream.c: Likewise.
10377         * lib/closein.c: Likewise.
10378         * lib/closein.h: Likewise.
10379         * lib/closeout.c: Likewise.
10380         * lib/closeout.h: Likewise.
10381         * lib/concat-filename.c: Likewise.
10382         * lib/copy-file.c: Likewise.
10383         * lib/copy-file.h: Likewise.
10384         * lib/count-one-bits.h: Likewise.
10385         * lib/crc.c: Likewise.
10386         * lib/crc.h: Likewise.
10387         * lib/creat-safer.c: Likewise.
10388         * lib/csharpcomp.c: Likewise.
10389         * lib/csharpcomp.h: Likewise.
10390         * lib/csharpexec.c: Likewise.
10391         * lib/csharpexec.h: Likewise.
10392         * lib/cycle-check.c: Likewise.
10393         * lib/cycle-check.h: Likewise.
10394         * lib/diacrit.c: Likewise.
10395         * lib/diacrit.h: Likewise.
10396         * lib/diffseq.h: Likewise.
10397         * lib/dirchownmod.c: Likewise.
10398         * lib/dirent.in.h: Likewise.
10399         * lib/dirfd.c: Likewise.
10400         * lib/dirfd.h: Likewise.
10401         * lib/dirname.c: Likewise.
10402         * lib/dirname.h: Likewise.
10403         * lib/dummy.c: Likewise.
10404         * lib/dup-safer.c: Likewise.
10405         * lib/dup2.c: Likewise.
10406         * lib/eealloc.h: Likewise.
10407         * lib/error.c: Likewise.
10408         * lib/error.h: Likewise.
10409         * lib/euidaccess.c: Likewise.
10410         * lib/exclude.c: Likewise.
10411         * lib/exclude.h: Likewise.
10412         * lib/execute.c: Likewise.
10413         * lib/execute.h: Likewise.
10414         * lib/exitfail.c: Likewise.
10415         * lib/exitfail.h: Likewise.
10416         * lib/expl.c: Likewise.
10417         * lib/fatal-signal.c: Likewise.
10418         * lib/fatal-signal.h: Likewise.
10419         * lib/fbufmode.c: Likewise.
10420         * lib/fbufmode.h: Likewise.
10421         * lib/fchdir.c: Likewise.
10422         * lib/fchmodat.c: Likewise.
10423         * lib/fchownat.c: Likewise.
10424         * lib/fcntl--.h: Likewise.
10425         * lib/fcntl-safer.h: Likewise.
10426         * lib/fcntl.in.h: Likewise.
10427         * lib/fd-safer.c: Likewise.
10428         * lib/fflush.c: Likewise.
10429         * lib/file-has-acl.c: Likewise.
10430         * lib/file-set.c: Likewise.
10431         * lib/file-type.c: Likewise.
10432         * lib/file-type.h: Likewise.
10433         * lib/fileblocks.c: Likewise.
10434         * lib/filemode.c: Likewise.
10435         * lib/filemode.h: Likewise.
10436         * lib/filename.h: Likewise.
10437         * lib/filenamecat.c: Likewise.
10438         * lib/filenamecat.h: Likewise.
10439         * lib/findprog.c: Likewise.
10440         * lib/findprog.h: Likewise.
10441         * lib/float.in.h: Likewise.
10442         * lib/floor.c: Likewise.
10443         * lib/floorf.c: Likewise.
10444         * lib/floorl.c: Likewise.
10445         * lib/fopen-safer.c: Likewise.
10446         * lib/fopen.c: Likewise.
10447         * lib/fpending.c: Likewise.
10448         * lib/fpending.h: Likewise.
10449         * lib/fprintf.c: Likewise.
10450         * lib/fprintftime.h: Likewise.
10451         * lib/fpucw.h: Likewise.
10452         * lib/fpurge.c: Likewise.
10453         * lib/fpurge.h: Likewise.
10454         * lib/freadable.c: Likewise.
10455         * lib/freadable.h: Likewise.
10456         * lib/freadahead.c: Likewise.
10457         * lib/freadahead.h: Likewise.
10458         * lib/freading.c: Likewise.
10459         * lib/freading.h: Likewise.
10460         * lib/free.c: Likewise.
10461         * lib/freopen.c: Likewise.
10462         * lib/frexp.c: Likewise.
10463         * lib/frexpl.c: Likewise.
10464         * lib/fseek.c: Likewise.
10465         * lib/fseterr.c: Likewise.
10466         * lib/fseterr.h: Likewise.
10467         * lib/fstatat.c: Likewise.
10468         * lib/fstrcmp.c: Likewise.
10469         * lib/fstrcmp.h: Likewise.
10470         * lib/fsusage.c: Likewise.
10471         * lib/fsusage.h: Likewise.
10472         * lib/ftell.c: Likewise.
10473         * lib/ftello.c: Likewise.
10474         * lib/fts-cycle.c: Likewise.
10475         * lib/fts.c: Likewise.
10476         * lib/fts_.h: Likewise.
10477         * lib/full-read.c: Likewise.
10478         * lib/full-read.h: Likewise.
10479         * lib/full-write.c: Likewise.
10480         * lib/full-write.h: Likewise.
10481         * lib/fwritable.c: Likewise.
10482         * lib/fwritable.h: Likewise.
10483         * lib/fwriteerror.c: Likewise.
10484         * lib/fwriteerror.h: Likewise.
10485         * lib/fwriting.c: Likewise.
10486         * lib/fwriting.h: Likewise.
10487         * lib/gcd.c: Likewise.
10488         * lib/gcd.h: Likewise.
10489         * lib/getcwd.c: Likewise.
10490         * lib/getdate.h: Likewise.
10491         * lib/getdate.y: Likewise.
10492         * lib/getdomainname.c: Likewise.
10493         * lib/getdomainname.h: Likewise.
10494         * lib/getgroups.c: Likewise.
10495         * lib/gethostname.c: Likewise.
10496         * lib/gethrxtime.c: Likewise.
10497         * lib/gethrxtime.h: Likewise.
10498         * lib/getloadavg.c: Likewise.
10499         * lib/getndelim2.c: Likewise.
10500         * lib/getndelim2.h: Likewise.
10501         * lib/getnline.c: Likewise.
10502         * lib/getnline.h: Likewise.
10503         * lib/getopt.c: Likewise.
10504         * lib/getopt.in.h: Likewise.
10505         * lib/getopt1.c: Likewise.
10506         * lib/getopt_int.h: Likewise.
10507         * lib/getpagesize.h: Likewise.
10508         * lib/getsubopt.c: Likewise.
10509         * lib/gettime.c: Likewise.
10510         * lib/getugroups.c: Likewise.
10511         * lib/getugroups.h: Likewise.
10512         * lib/getusershell.c: Likewise.
10513         * lib/gl_anyavltree_list1.h: Likewise.
10514         * lib/gl_anyavltree_list2.h: Likewise.
10515         * lib/gl_anyhash_list1.h: Likewise.
10516         * lib/gl_anyhash_list2.h: Likewise.
10517         * lib/gl_anylinked_list1.h: Likewise.
10518         * lib/gl_anylinked_list2.h: Likewise.
10519         * lib/gl_anyrbtree_list1.h: Likewise.
10520         * lib/gl_anyrbtree_list2.h: Likewise.
10521         * lib/gl_anytree_list1.h: Likewise.
10522         * lib/gl_anytree_list2.h: Likewise.
10523         * lib/gl_anytree_oset.h: Likewise.
10524         * lib/gl_anytreehash_list1.h: Likewise.
10525         * lib/gl_anytreehash_list2.h: Likewise.
10526         * lib/gl_array_list.c: Likewise.
10527         * lib/gl_array_list.h: Likewise.
10528         * lib/gl_array_oset.c: Likewise.
10529         * lib/gl_array_oset.h: Likewise.
10530         * lib/gl_avltree_list.c: Likewise.
10531         * lib/gl_avltree_list.h: Likewise.
10532         * lib/gl_avltree_oset.c: Likewise.
10533         * lib/gl_avltree_oset.h: Likewise.
10534         * lib/gl_avltreehash_list.c: Likewise.
10535         * lib/gl_avltreehash_list.h: Likewise.
10536         * lib/gl_carray_list.c: Likewise.
10537         * lib/gl_carray_list.h: Likewise.
10538         * lib/gl_linked_list.c: Likewise.
10539         * lib/gl_linked_list.h: Likewise.
10540         * lib/gl_linkedhash_list.c: Likewise.
10541         * lib/gl_linkedhash_list.h: Likewise.
10542         * lib/gl_list.c: Likewise.
10543         * lib/gl_list.h: Likewise.
10544         * lib/gl_oset.c: Likewise.
10545         * lib/gl_oset.h: Likewise.
10546         * lib/gl_rbtree_list.c: Likewise.
10547         * lib/gl_rbtree_list.h: Likewise.
10548         * lib/gl_rbtree_oset.c: Likewise.
10549         * lib/gl_rbtree_oset.h: Likewise.
10550         * lib/gl_rbtreehash_list.c: Likewise.
10551         * lib/gl_rbtreehash_list.h: Likewise.
10552         * lib/gl_sublist.c: Likewise.
10553         * lib/gl_sublist.h: Likewise.
10554         * lib/group-member.c: Likewise.
10555         * lib/group-member.h: Likewise.
10556         * lib/hard-locale.c: Likewise.
10557         * lib/hard-locale.h: Likewise.
10558         * lib/hash-pjw.c: Likewise.
10559         * lib/hash-pjw.h: Likewise.
10560         * lib/hash-triple.c: Likewise.
10561         * lib/hash.c: Likewise.
10562         * lib/hash.h: Likewise.
10563         * lib/human.c: Likewise.
10564         * lib/human.h: Likewise.
10565         * lib/i-ring.c: Likewise.
10566         * lib/i-ring.h: Likewise.
10567         * lib/idcache.c: Likewise.
10568         * lib/imaxabs.c: Likewise.
10569         * lib/imaxdiv.c: Likewise.
10570         * lib/inet_pton.c: Likewise.
10571         * lib/inet_pton.h: Likewise.
10572         * lib/intprops.h: Likewise.
10573         * lib/inttostr.c: Likewise.
10574         * lib/inttostr.h: Likewise.
10575         * lib/inttypes.in.h: Likewise.
10576         * lib/isapipe.c: Likewise.
10577         * lib/isdir.c: Likewise.
10578         * lib/isnan.c: Likewise.
10579         * lib/isnan.h: Likewise.
10580         * lib/isnanf.c: Likewise.
10581         * lib/isnanf.h: Likewise.
10582         * lib/isnanl-nolibm.h: Likewise.
10583         * lib/isnanl.c: Likewise.
10584         * lib/isnanl.h: Likewise.
10585         * lib/javacomp.c: Likewise.
10586         * lib/javacomp.h: Likewise.
10587         * lib/javaexec.c: Likewise.
10588         * lib/javaexec.h: Likewise.
10589         * lib/javaversion.c: Likewise.
10590         * lib/javaversion.h: Likewise.
10591         * lib/javaversion.java: Likewise.
10592         * lib/lbrkprop.h: Likewise.
10593         * lib/lchmod.h: Likewise.
10594         * lib/lchown.c: Likewise.
10595         * lib/ldexpl.c: Likewise.
10596         * lib/linebreak.c: Likewise.
10597         * lib/linebreak.h: Likewise.
10598         * lib/linebuffer.c: Likewise.
10599         * lib/linebuffer.h: Likewise.
10600         * lib/locale.in.h: Likewise.
10601         * lib/logl.c: Likewise.
10602         * lib/long-options.c: Likewise.
10603         * lib/long-options.h: Likewise.
10604         * lib/lstat.c: Likewise.
10605         * lib/lstat.h: Likewise.
10606         * lib/math.in.h: Likewise.
10607         * lib/mbchar.c: Likewise.
10608         * lib/mbchar.h: Likewise.
10609         * lib/mbfile.h: Likewise.
10610         * lib/mbiter.h: Likewise.
10611         * lib/mbscasecmp.c: Likewise.
10612         * lib/mbscasestr.c: Likewise.
10613         * lib/mbschr.c: Likewise.
10614         * lib/mbscspn.c: Likewise.
10615         * lib/mbslen.c: Likewise.
10616         * lib/mbsncasecmp.c: Likewise.
10617         * lib/mbsnlen.c: Likewise.
10618         * lib/mbspbrk.c: Likewise.
10619         * lib/mbspcasecmp.c: Likewise.
10620         * lib/mbsrchr.c: Likewise.
10621         * lib/mbssep.c: Likewise.
10622         * lib/mbsspn.c: Likewise.
10623         * lib/mbsstr.c: Likewise.
10624         * lib/mbstok_r.c: Likewise.
10625         * lib/mbswidth.c: Likewise.
10626         * lib/mbswidth.h: Likewise.
10627         * lib/mbuiter.h: Likewise.
10628         * lib/memcasecmp.c: Likewise.
10629         * lib/memcasecmp.h: Likewise.
10630         * lib/memchr.c: Likewise.
10631         * lib/memcmp.c: Likewise.
10632         * lib/memcoll.c: Likewise.
10633         * lib/memcoll.h: Likewise.
10634         * lib/memcpy.c: Likewise.
10635         * lib/memrchr.c: Likewise.
10636         * lib/mkancesdirs.c: Likewise.
10637         * lib/mkdir-p.c: Likewise.
10638         * lib/mkdir-p.h: Likewise.
10639         * lib/mkdir.c: Likewise.
10640         * lib/mkdirat.c: Likewise.
10641         * lib/mkdtemp.c: Likewise.
10642         * lib/mkstemp-safer.c: Likewise.
10643         * lib/mkstemp.c: Likewise.
10644         * lib/modechange.c: Likewise.
10645         * lib/modechange.h: Likewise.
10646         * lib/mountlist.c: Likewise.
10647         * lib/mountlist.h: Likewise.
10648         * lib/mpsort.c: Likewise.
10649         * lib/nanosleep.c: Likewise.
10650         * lib/obstack.c: Likewise.
10651         * lib/obstack.h: Likewise.
10652         * lib/open-safer.c: Likewise.
10653         * lib/open.c: Likewise.
10654         * lib/openat-die.c: Likewise.
10655         * lib/openat-priv.h: Likewise.
10656         * lib/openat-proc.c: Likewise.
10657         * lib/openat.c: Likewise.
10658         * lib/openat.h: Likewise.
10659         * lib/pagealign_alloc.c: Likewise.
10660         * lib/pagealign_alloc.h: Likewise.
10661         * lib/physmem.c: Likewise.
10662         * lib/physmem.h: Likewise.
10663         * lib/pipe-safer.c: Likewise.
10664         * lib/pipe.c: Likewise.
10665         * lib/pipe.h: Likewise.
10666         * lib/posixtm.c: Likewise.
10667         * lib/posixtm.h: Likewise.
10668         * lib/posixver.c: Likewise.
10669         * lib/printf-frexp.c: Likewise.
10670         * lib/printf-frexp.h: Likewise.
10671         * lib/printf-frexpl.c: Likewise.
10672         * lib/printf-frexpl.h: Likewise.
10673         * lib/printf.c: Likewise.
10674         * lib/progname.c: Likewise.
10675         * lib/progname.h: Likewise.
10676         * lib/progreloc.c: Likewise.
10677         * lib/putenv.c: Likewise.
10678         * lib/quote.c: Likewise.
10679         * lib/quote.h: Likewise.
10680         * lib/quotearg.c: Likewise.
10681         * lib/quotearg.h: Likewise.
10682         * lib/raise.c: Likewise.
10683         * lib/readline.c: Likewise.
10684         * lib/readline.h: Likewise.
10685         * lib/readlink.c: Likewise.
10686         * lib/readtokens.c: Likewise.
10687         * lib/readtokens.h: Likewise.
10688         * lib/readtokens0.c: Likewise.
10689         * lib/readtokens0.h: Likewise.
10690         * lib/readutmp.c: Likewise.
10691         * lib/readutmp.h: Likewise.
10692         * lib/realloc.c: Likewise.
10693         * lib/relocwrapper.c: Likewise.
10694         * lib/rename-dest-slash.c: Likewise.
10695         * lib/rename.c: Likewise.
10696         * lib/rmdir.c: Likewise.
10697         * lib/rpmatch.c: Likewise.
10698         * lib/safe-read.c: Likewise.
10699         * lib/safe-read.h: Likewise.
10700         * lib/safe-write.c: Likewise.
10701         * lib/safe-write.h: Likewise.
10702         * lib/same-inode.h: Likewise.
10703         * lib/same.c: Likewise.
10704         * lib/same.h: Likewise.
10705         * lib/save-cwd.c: Likewise.
10706         * lib/save-cwd.h: Likewise.
10707         * lib/savedir.c: Likewise.
10708         * lib/savedir.h: Likewise.
10709         * lib/savewd.c: Likewise.
10710         * lib/savewd.h: Likewise.
10711         * lib/search.in.h: Likewise.
10712         * lib/setenv.c: Likewise.
10713         * lib/setenv.h: Likewise.
10714         * lib/settime.c: Likewise.
10715         * lib/sh-quote.c: Likewise.
10716         * lib/sh-quote.h: Likewise.
10717         * lib/sig2str.c: Likewise.
10718         * lib/sig2str.h: Likewise.
10719         * lib/signal.in.h: Likewise.
10720         * lib/signbitd.c: Likewise.
10721         * lib/signbitf.c: Likewise.
10722         * lib/signbitl.c: Likewise.
10723         * lib/sigprocmask.c: Likewise.
10724         * lib/sincosl.c: Likewise.
10725         * lib/sleep.c: Likewise.
10726         * lib/sprintf.c: Likewise.
10727         * lib/sqrtl.c: Likewise.
10728         * lib/stat-time.h: Likewise.
10729         * lib/stdio--.h: Likewise.
10730         * lib/stdio-safer.h: Likewise.
10731         * lib/stdlib--.h: Likewise.
10732         * lib/stdlib-safer.h: Likewise.
10733         * lib/stdlib.in.h: Likewise.
10734         * lib/stpcpy.c: Likewise.
10735         * lib/stpncpy.c: Likewise.
10736         * lib/strchrnul.c: Likewise.
10737         * lib/strcspn.c: Likewise.
10738         * lib/strerror.c: Likewise.
10739         * lib/strftime.c: Likewise.
10740         * lib/strftime.h: Likewise.
10741         * lib/striconveh.c: Likewise.
10742         * lib/striconveh.h: Likewise.
10743         * lib/striconveha.c: Likewise.
10744         * lib/striconveha.h: Likewise.
10745         * lib/stripslash.c: Likewise.
10746         * lib/strnlen1.c: Likewise.
10747         * lib/strnlen1.h: Likewise.
10748         * lib/strtod.c: Likewise.
10749         * lib/strtoimax.c: Likewise.
10750         * lib/strtok_r.c: Likewise.
10751         * lib/strtol.c: Likewise.
10752         * lib/strtoll.c: Likewise.
10753         * lib/strtoul.c: Likewise.
10754         * lib/strtoull.c: Likewise.
10755         * lib/sysexits.in.h: Likewise.
10756         * lib/tempname.c: Likewise.
10757         * lib/tempname.h: Likewise.
10758         * lib/timespec.h: Likewise.
10759         * lib/tls.c: Likewise.
10760         * lib/tls.h: Likewise.
10761         * lib/tmpdir.c: Likewise.
10762         * lib/tmpdir.h: Likewise.
10763         * lib/tmpfile-safer.c: Likewise.
10764         * lib/tmpfile.c: Likewise.
10765         * lib/trigl.c: Likewise.
10766         * lib/trigl.h: Likewise.
10767         * lib/trim.c: Likewise.
10768         * lib/trim.h: Likewise.
10769         * lib/trunc.c: Likewise.
10770         * lib/truncf.c: Likewise.
10771         * lib/truncl.c: Likewise.
10772         * lib/tsearch.c: Likewise.
10773         * lib/unicodeio.c: Likewise.
10774         * lib/unicodeio.h: Likewise.
10775         * lib/unistd--.h: Likewise.
10776         * lib/unistd-safer.h: Likewise.
10777         * lib/unistdio/ulc-fprintf.c: Likewise.
10778         * lib/unistdio/ulc-vfprintf.c: Likewise.
10779         * lib/unlinkdir.c: Likewise.
10780         * lib/unlinkdir.h: Likewise.
10781         * lib/unlocked-io.h: Likewise.
10782         * lib/unsetenv.c: Likewise.
10783         * lib/userspec.c: Likewise.
10784         * lib/utime.c: Likewise.
10785         * lib/utimecmp.c: Likewise.
10786         * lib/utimecmp.h: Likewise.
10787         * lib/utimens.c: Likewise.
10788         * lib/verify.h: Likewise.
10789         * lib/verror.c: Likewise.
10790         * lib/verror.h: Likewise.
10791         * lib/version-etc-fsf.c: Likewise.
10792         * lib/version-etc.c: Likewise.
10793         * lib/version-etc.h: Likewise.
10794         * lib/vfprintf.c: Likewise.
10795         * lib/vprintf.c: Likewise.
10796         * lib/vsprintf.c: Likewise.
10797         * lib/w32spawn.h: Likewise.
10798         * lib/wait-process.c: Likewise.
10799         * lib/wait-process.h: Likewise.
10800         * lib/wcwidth.c: Likewise.
10801         * lib/write-any-file.c: Likewise.
10802         * lib/xalloc-die.c: Likewise.
10803         * lib/xalloc.h: Likewise.
10804         * lib/xasprintf.c: Likewise.
10805         * lib/xgetcwd.c: Likewise.
10806         * lib/xgetcwd.h: Likewise.
10807         * lib/xgetdomainname.c: Likewise.
10808         * lib/xgetdomainname.h: Likewise.
10809         * lib/xgethostname.c: Likewise.
10810         * lib/xmalloc.c: Likewise.
10811         * lib/xmalloca.c: Likewise.
10812         * lib/xmalloca.h: Likewise.
10813         * lib/xmemcoll.c: Likewise.
10814         * lib/xnanosleep.c: Likewise.
10815         * lib/xreadlink.c: Likewise.
10816         * lib/xreadlink.h: Likewise.
10817         * lib/xsetenv.c: Likewise.
10818         * lib/xsetenv.h: Likewise.
10819         * lib/xstriconv.c: Likewise.
10820         * lib/xstriconv.h: Likewise.
10821         * lib/xstrndup.c: Likewise.
10822         * lib/xstrndup.h: Likewise.
10823         * lib/xstrtod.c: Likewise.
10824         * lib/xstrtod.h: Likewise.
10825         * lib/xstrtol-error.c: Likewise.
10826         * lib/xstrtol.c: Likewise.
10827         * lib/xstrtol.h: Likewise.
10828         * lib/xtime.h: Likewise.
10829         * lib/xvasprintf.c: Likewise.
10830         * lib/xvasprintf.h: Likewise.
10831         * lib/yesno.c: Likewise.
10832         * lib/yesno.h: Likewise.
10833         * posix-modules: Likewise.
10834         * tests/test-alloca-opt.c: Likewise.
10835         * tests/test-arcfour.c: Likewise.
10836         * tests/test-arctwo.c: Likewise.
10837         * tests/test-argmatch.c: Likewise.
10838         * tests/test-argp-2.sh: Likewise.
10839         * tests/test-argp.c: Likewise.
10840         * tests/test-arpa_inet.c: Likewise.
10841         * tests/test-array_list.c: Likewise.
10842         * tests/test-array_oset.c: Likewise.
10843         * tests/test-atexit.c: Likewise.
10844         * tests/test-avltree_list.c: Likewise.
10845         * tests/test-avltree_oset.c: Likewise.
10846         * tests/test-avltreehash_list.c: Likewise.
10847         * tests/test-base64.c: Likewise.
10848         * tests/test-binary-io.c: Likewise.
10849         * tests/test-byteswap.c: Likewise.
10850         * tests/test-c-ctype.c: Likewise.
10851         * tests/test-c-strcasecmp.c: Likewise.
10852         * tests/test-c-strcasestr.c: Likewise.
10853         * tests/test-c-strncasecmp.c: Likewise.
10854         * tests/test-c-strstr.c: Likewise.
10855         * tests/test-canonicalize-lgpl.c: Likewise.
10856         * tests/test-canonicalize.c: Likewise.
10857         * tests/test-carray_list.c: Likewise.
10858         * tests/test-ceilf.c: Likewise.
10859         * tests/test-ceill.c: Likewise.
10860         * tests/test-count-one-bits.c: Likewise.
10861         * tests/test-crc.c: Likewise.
10862         * tests/test-dirname.c: Likewise.
10863         * tests/test-fbufmode.c: Likewise.
10864         * tests/test-fcntl.c: Likewise.
10865         * tests/test-fflush.c: Likewise.
10866         * tests/test-floorf.c: Likewise.
10867         * tests/test-floorl.c: Likewise.
10868         * tests/test-fopen.c: Likewise.
10869         * tests/test-fprintf-posix.c: Likewise.
10870         * tests/test-fprintf-posix.h: Likewise.
10871         * tests/test-fpurge.c: Likewise.
10872         * tests/test-freadable.c: Likewise.
10873         * tests/test-freadahead.c: Likewise.
10874         * tests/test-freading.c: Likewise.
10875         * tests/test-freopen.c: Likewise.
10876         * tests/test-frexp.c: Likewise.
10877         * tests/test-frexpl.c: Likewise.
10878         * tests/test-fseek.c: Likewise.
10879         * tests/test-fseeko.c: Likewise.
10880         * tests/test-fseterr.c: Likewise.
10881         * tests/test-fstrcmp.c: Likewise.
10882         * tests/test-ftell.c: Likewise.
10883         * tests/test-ftello.c: Likewise.
10884         * tests/test-fwritable.c: Likewise.
10885         * tests/test-fwriting.c: Likewise.
10886         * tests/test-getaddrinfo.c: Likewise.
10887         * tests/test-getpass.c: Likewise.
10888         * tests/test-gettimeofday.c: Likewise.
10889         * tests/test-hmac-md5.c: Likewise.
10890         * tests/test-hmac-sha1.c: Likewise.
10891         * tests/test-iconv.c: Likewise.
10892         * tests/test-iconvme.c: Likewise.
10893         * tests/test-inttypes.c: Likewise.
10894         * tests/test-isnan.c: Likewise.
10895         * tests/test-isnanf.c: Likewise.
10896         * tests/test-isnanl-nolibm.c: Likewise.
10897         * tests/test-isnanl.c: Likewise.
10898         * tests/test-isnanl.h: Likewise.
10899         * tests/test-ldexpl.c: Likewise.
10900         * tests/test-linked_list.c: Likewise.
10901         * tests/test-linkedhash_list.c: Likewise.
10902         * tests/test-locale.c: Likewise.
10903         * tests/test-localename.c: Likewise.
10904         * tests/test-lock.c: Likewise.
10905         * tests/test-lseek.c: Likewise.
10906         * tests/test-malloca.c: Likewise.
10907         * tests/test-math.c: Likewise.
10908         * tests/test-mbscasecmp.c: Likewise.
10909         * tests/test-mbscasestr1.c: Likewise.
10910         * tests/test-mbscasestr2.c: Likewise.
10911         * tests/test-mbscasestr3.c: Likewise.
10912         * tests/test-mbscasestr4.c: Likewise.
10913         * tests/test-mbschr.c: Likewise.
10914         * tests/test-mbscspn.c: Likewise.
10915         * tests/test-mbsncasecmp.c: Likewise.
10916         * tests/test-mbspbrk.c: Likewise.
10917         * tests/test-mbspcasecmp.c: Likewise.
10918         * tests/test-mbsrchr.c: Likewise.
10919         * tests/test-mbsspn.c: Likewise.
10920         * tests/test-mbsstr1.c: Likewise.
10921         * tests/test-mbsstr2.c: Likewise.
10922         * tests/test-mbsstr3.c: Likewise.
10923         * tests/test-md5.c: Likewise.
10924         * tests/test-memmem.c: Likewise.
10925         * tests/test-netinet_in.c: Likewise.
10926         * tests/test-open.c: Likewise.
10927         * tests/test-printf-frexp.c: Likewise.
10928         * tests/test-printf-frexpl.c: Likewise.
10929         * tests/test-printf-posix.c: Likewise.
10930         * tests/test-printf-posix.h: Likewise.
10931         * tests/test-rbtree_list.c: Likewise.
10932         * tests/test-rbtree_oset.c: Likewise.
10933         * tests/test-rbtreehash_list.c: Likewise.
10934         * tests/test-read-file.c: Likewise.
10935         * tests/test-rijndael.c: Likewise.
10936         * tests/test-search.c: Likewise.
10937         * tests/test-signbit.c: Likewise.
10938         * tests/test-sleep.c: Likewise.
10939         * tests/test-snprintf-posix.c: Likewise.
10940         * tests/test-snprintf-posix.h: Likewise.
10941         * tests/test-snprintf.c: Likewise.
10942         * tests/test-sprintf-posix.c: Likewise.
10943         * tests/test-sprintf-posix.h: Likewise.
10944         * tests/test-stat-time.c: Likewise.
10945         * tests/test-stdbool.c: Likewise.
10946         * tests/test-stdint.c: Likewise.
10947         * tests/test-stdio.c: Likewise.
10948         * tests/test-stdlib.c: Likewise.
10949         * tests/test-stpncpy.c: Likewise.
10950         * tests/test-strcasestr.c: Likewise.
10951         * tests/test-striconv.c: Likewise.
10952         * tests/test-striconveh.c: Likewise.
10953         * tests/test-striconveha.c: Likewise.
10954         * tests/test-string.c: Likewise.
10955         * tests/test-sys_select.c: Likewise.
10956         * tests/test-sys_socket.c: Likewise.
10957         * tests/test-sys_stat.c: Likewise.
10958         * tests/test-sys_time.c: Likewise.
10959         * tests/test-sysexits.c: Likewise.
10960         * tests/test-time.c: Likewise.
10961         * tests/test-tls.c: Likewise.
10962         * tests/test-trunc.c: Likewise.
10963         * tests/test-truncf.c: Likewise.
10964         * tests/test-truncl.c: Likewise.
10965         * tests/test-unistd.c: Likewise.
10966         * tests/test-vasnprintf-posix.c: Likewise.
10967         * tests/test-vasnprintf-posix2.c: Likewise.
10968         * tests/test-vasnprintf.c: Likewise.
10969         * tests/test-vasprintf-posix.c: Likewise.
10970         * tests/test-vasprintf.c: Likewise.
10971         * tests/test-verify.c: Likewise.
10972         * tests/test-vfprintf-posix.c: Likewise.
10973         * tests/test-vprintf-posix.c: Likewise.
10974         * tests/test-vsnprintf-posix.c: Likewise.
10975         * tests/test-vsnprintf.c: Likewise.
10976         * tests/test-vsprintf-posix.c: Likewise.
10977         * tests/test-wchar.c: Likewise.
10978         * tests/test-wctype.c: Likewise.
10979         * tests/test-wcwidth.c: Likewise.
10980         * tests/test-xstrtol.c: Likewise.
10981         * tests/test-xvasprintf.c: Likewise.
10982         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10983         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10984         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10985         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10986         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10987         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10988         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10989         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10990         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10991         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10992         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10993         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10994         * tests/uniname/test-uninames.c: Likewise.
10995         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10996         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
10997         * tests/unistdio/test-u16-printf1.h: Likewise.
10998         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10999         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11000         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11001         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11002         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11003         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11004         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11005         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
11006         * tests/unistdio/test-u32-printf1.h: Likewise.
11007         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11008         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11009         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11010         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11011         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11012         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11013         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11014         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
11015         * tests/unistdio/test-u8-printf1.h: Likewise.
11016         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11017         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11018         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11019         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11020         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11021         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11022         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11023         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
11024         * tests/unistdio/test-ulc-printf1.h: Likewise.
11025         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11026         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11027         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11028         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11029         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11030         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11031         * tests/uniwidth/test-u16-strwidth.c: Likewise.
11032         * tests/uniwidth/test-u16-width.c: Likewise.
11033         * tests/uniwidth/test-u32-strwidth.c: Likewise.
11034         * tests/uniwidth/test-u32-width.c: Likewise.
11035         * tests/uniwidth/test-u8-strwidth.c: Likewise.
11036         * tests/uniwidth/test-u8-width.c: Likewise.
11037         * tests/uniwidth/test-uc_width.c: Likewise.
11038         * config/srclist-update: Likewise.
11039         (fixlicense): Update to GPLv3+.
11040
11041         Change copyright notice from LGPLv2.1+ to LGPLv3+.
11042         * tests/test-tsearch.c: Change copyright notice.
11043
11044         Change copyright notice from LGPLv2.0+ to LGPLv3+.
11045         * lib/c-strcaseeq.h: Change copyright notice.
11046         * lib/streq.h: Likewise.
11047         * lib/uniconv.h: Likewise.
11048         * lib/uniconv/u-conv-from-enc.h: Likewise.
11049         * lib/uniconv/u-conv-to-enc.h: Likewise.
11050         * lib/uniconv/u-strconv-from-enc.h: Likewise.
11051         * lib/uniconv/u-strconv-to-enc.h: Likewise.
11052         * lib/uniconv/u16-conv-from-enc.c: Likewise.
11053         * lib/uniconv/u16-conv-to-enc.c: Likewise.
11054         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
11055         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
11056         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
11057         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
11058         * lib/uniconv/u32-conv-from-enc.c: Likewise.
11059         * lib/uniconv/u32-conv-to-enc.c: Likewise.
11060         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
11061         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
11062         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
11063         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
11064         * lib/uniconv/u8-conv-from-enc.c: Likewise.
11065         * lib/uniconv/u8-conv-to-enc.c: Likewise.
11066         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
11067         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
11068         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
11069         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
11070         * lib/uniname.h: Likewise.
11071         * lib/uniname/uniname.c: Likewise.
11072         * lib/unistdio.h: Likewise.
11073         * lib/unistdio/u-asnprintf.h: Likewise.
11074         * lib/unistdio/u-asprintf.h: Likewise.
11075         * lib/unistdio/u-printf-args.c: Likewise.
11076         * lib/unistdio/u-printf-args.h: Likewise.
11077         * lib/unistdio/u-printf-parse.h: Likewise.
11078         * lib/unistdio/u-snprintf.h: Likewise.
11079         * lib/unistdio/u-sprintf.h: Likewise.
11080         * lib/unistdio/u-vasprintf.h: Likewise.
11081         * lib/unistdio/u-vsnprintf.h: Likewise.
11082         * lib/unistdio/u-vsprintf.h: Likewise.
11083         * lib/unistdio/u16-asnprintf.c: Likewise.
11084         * lib/unistdio/u16-asprintf.c: Likewise.
11085         * lib/unistdio/u16-printf-parse.c: Likewise.
11086         * lib/unistdio/u16-snprintf.c: Likewise.
11087         * lib/unistdio/u16-sprintf.c: Likewise.
11088         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
11089         * lib/unistdio/u16-u16-asprintf.c: Likewise.
11090         * lib/unistdio/u16-u16-snprintf.c: Likewise.
11091         * lib/unistdio/u16-u16-sprintf.c: Likewise.
11092         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
11093         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
11094         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
11095         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
11096         * lib/unistdio/u16-vasnprintf.c: Likewise.
11097         * lib/unistdio/u16-vasprintf.c: Likewise.
11098         * lib/unistdio/u16-vsnprintf.c: Likewise.
11099         * lib/unistdio/u16-vsprintf.c: Likewise.
11100         * lib/unistdio/u32-asnprintf.c: Likewise.
11101         * lib/unistdio/u32-asprintf.c: Likewise.
11102         * lib/unistdio/u32-printf-parse.c: Likewise.
11103         * lib/unistdio/u32-snprintf.c: Likewise.
11104         * lib/unistdio/u32-sprintf.c: Likewise.
11105         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
11106         * lib/unistdio/u32-u32-asprintf.c: Likewise.
11107         * lib/unistdio/u32-u32-snprintf.c: Likewise.
11108         * lib/unistdio/u32-u32-sprintf.c: Likewise.
11109         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
11110         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
11111         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
11112         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
11113         * lib/unistdio/u32-vasnprintf.c: Likewise.
11114         * lib/unistdio/u32-vasprintf.c: Likewise.
11115         * lib/unistdio/u32-vsnprintf.c: Likewise.
11116         * lib/unistdio/u32-vsprintf.c: Likewise.
11117         * lib/unistdio/u8-asnprintf.c: Likewise.
11118         * lib/unistdio/u8-asprintf.c: Likewise.
11119         * lib/unistdio/u8-printf-parse.c: Likewise.
11120         * lib/unistdio/u8-snprintf.c: Likewise.
11121         * lib/unistdio/u8-sprintf.c: Likewise.
11122         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
11123         * lib/unistdio/u8-u8-asprintf.c: Likewise.
11124         * lib/unistdio/u8-u8-snprintf.c: Likewise.
11125         * lib/unistdio/u8-u8-sprintf.c: Likewise.
11126         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
11127         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
11128         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
11129         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
11130         * lib/unistdio/u8-vasnprintf.c: Likewise.
11131         * lib/unistdio/u8-vasprintf.c: Likewise.
11132         * lib/unistdio/u8-vsnprintf.c: Likewise.
11133         * lib/unistdio/u8-vsprintf.c: Likewise.
11134         * lib/unistdio/ulc-asnprintf.c: Likewise.
11135         * lib/unistdio/ulc-asprintf.c: Likewise.
11136         * lib/unistdio/ulc-printf-parse.c: Likewise.
11137         * lib/unistdio/ulc-snprintf.c: Likewise.
11138         * lib/unistdio/ulc-sprintf.c: Likewise.
11139         * lib/unistdio/ulc-vasnprintf.c: Likewise.
11140         * lib/unistdio/ulc-vasprintf.c: Likewise.
11141         * lib/unistdio/ulc-vsnprintf.c: Likewise.
11142         * lib/unistdio/ulc-vsprintf.c: Likewise.
11143         * lib/unistr.h: Likewise.
11144         * lib/unistr/u-cpy-alloc.h: Likewise.
11145         * lib/unistr/u-cpy.h: Likewise.
11146         * lib/unistr/u-endswith.h: Likewise.
11147         * lib/unistr/u-move.h: Likewise.
11148         * lib/unistr/u-set.h: Likewise.
11149         * lib/unistr/u-startswith.h: Likewise.
11150         * lib/unistr/u-stpcpy.h: Likewise.
11151         * lib/unistr/u-stpncpy.h: Likewise.
11152         * lib/unistr/u-strcat.h: Likewise.
11153         * lib/unistr/u-strcpy.h: Likewise.
11154         * lib/unistr/u-strcspn.h: Likewise.
11155         * lib/unistr/u-strdup.h: Likewise.
11156         * lib/unistr/u-strlen.h: Likewise.
11157         * lib/unistr/u-strncat.h: Likewise.
11158         * lib/unistr/u-strncpy.h: Likewise.
11159         * lib/unistr/u-strnlen.h: Likewise.
11160         * lib/unistr/u-strpbrk.h: Likewise.
11161         * lib/unistr/u-strspn.h: Likewise.
11162         * lib/unistr/u-strstr.h: Likewise.
11163         * lib/unistr/u-strtok.h: Likewise.
11164         * lib/unistr/u16-check.c: Likewise.
11165         * lib/unistr/u16-chr.c: Likewise.
11166         * lib/unistr/u16-cmp.c: Likewise.
11167         * lib/unistr/u16-cpy-alloc.c: Likewise.
11168         * lib/unistr/u16-cpy.c: Likewise.
11169         * lib/unistr/u16-endswith.c: Likewise.
11170         * lib/unistr/u16-mblen.c: Likewise.
11171         * lib/unistr/u16-mbsnlen.c: Likewise.
11172         * lib/unistr/u16-mbtouc-aux.c: Likewise.
11173         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
11174         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
11175         * lib/unistr/u16-mbtouc.c: Likewise.
11176         * lib/unistr/u16-mbtoucr.c: Likewise.
11177         * lib/unistr/u16-move.c: Likewise.
11178         * lib/unistr/u16-next.c: Likewise.
11179         * lib/unistr/u16-prev.c: Likewise.
11180         * lib/unistr/u16-set.c: Likewise.
11181         * lib/unistr/u16-startswith.c: Likewise.
11182         * lib/unistr/u16-stpcpy.c: Likewise.
11183         * lib/unistr/u16-stpncpy.c: Likewise.
11184         * lib/unistr/u16-strcat.c: Likewise.
11185         * lib/unistr/u16-strchr.c: Likewise.
11186         * lib/unistr/u16-strcmp.c: Likewise.
11187         * lib/unistr/u16-strcpy.c: Likewise.
11188         * lib/unistr/u16-strcspn.c: Likewise.
11189         * lib/unistr/u16-strdup.c: Likewise.
11190         * lib/unistr/u16-strlen.c: Likewise.
11191         * lib/unistr/u16-strmblen.c: Likewise.
11192         * lib/unistr/u16-strmbtouc.c: Likewise.
11193         * lib/unistr/u16-strncat.c: Likewise.
11194         * lib/unistr/u16-strncmp.c: Likewise.
11195         * lib/unistr/u16-strncpy.c: Likewise.
11196         * lib/unistr/u16-strnlen.c: Likewise.
11197         * lib/unistr/u16-strpbrk.c: Likewise.
11198         * lib/unistr/u16-strrchr.c: Likewise.
11199         * lib/unistr/u16-strspn.c: Likewise.
11200         * lib/unistr/u16-strstr.c: Likewise.
11201         * lib/unistr/u16-strtok.c: Likewise.
11202         * lib/unistr/u16-to-u32.c: Likewise.
11203         * lib/unistr/u16-to-u8.c: Likewise.
11204         * lib/unistr/u16-uctomb-aux.c: Likewise.
11205         * lib/unistr/u16-uctomb.c: Likewise.
11206         * lib/unistr/u32-check.c: Likewise.
11207         * lib/unistr/u32-chr.c: Likewise.
11208         * lib/unistr/u32-cmp.c: Likewise.
11209         * lib/unistr/u32-cpy-alloc.c: Likewise.
11210         * lib/unistr/u32-cpy.c: Likewise.
11211         * lib/unistr/u32-endswith.c: Likewise.
11212         * lib/unistr/u32-mblen.c: Likewise.
11213         * lib/unistr/u32-mbsnlen.c: Likewise.
11214         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
11215         * lib/unistr/u32-mbtouc.c: Likewise.
11216         * lib/unistr/u32-mbtoucr.c: Likewise.
11217         * lib/unistr/u32-move.c: Likewise.
11218         * lib/unistr/u32-next.c: Likewise.
11219         * lib/unistr/u32-prev.c: Likewise.
11220         * lib/unistr/u32-set.c: Likewise.
11221         * lib/unistr/u32-startswith.c: Likewise.
11222         * lib/unistr/u32-stpcpy.c: Likewise.
11223         * lib/unistr/u32-stpncpy.c: Likewise.
11224         * lib/unistr/u32-strcat.c: Likewise.
11225         * lib/unistr/u32-strchr.c: Likewise.
11226         * lib/unistr/u32-strcmp.c: Likewise.
11227         * lib/unistr/u32-strcpy.c: Likewise.
11228         * lib/unistr/u32-strcspn.c: Likewise.
11229         * lib/unistr/u32-strdup.c: Likewise.
11230         * lib/unistr/u32-strlen.c: Likewise.
11231         * lib/unistr/u32-strmblen.c: Likewise.
11232         * lib/unistr/u32-strmbtouc.c: Likewise.
11233         * lib/unistr/u32-strncat.c: Likewise.
11234         * lib/unistr/u32-strncmp.c: Likewise.
11235         * lib/unistr/u32-strncpy.c: Likewise.
11236         * lib/unistr/u32-strnlen.c: Likewise.
11237         * lib/unistr/u32-strpbrk.c: Likewise.
11238         * lib/unistr/u32-strrchr.c: Likewise.
11239         * lib/unistr/u32-strspn.c: Likewise.
11240         * lib/unistr/u32-strstr.c: Likewise.
11241         * lib/unistr/u32-strtok.c: Likewise.
11242         * lib/unistr/u32-to-u16.c: Likewise.
11243         * lib/unistr/u32-to-u8.c: Likewise.
11244         * lib/unistr/u32-uctomb.c: Likewise.
11245         * lib/unistr/u8-check.c: Likewise.
11246         * lib/unistr/u8-chr.c: Likewise.
11247         * lib/unistr/u8-cmp.c: Likewise.
11248         * lib/unistr/u8-cpy-alloc.c: Likewise.
11249         * lib/unistr/u8-cpy.c: Likewise.
11250         * lib/unistr/u8-endswith.c: Likewise.
11251         * lib/unistr/u8-mblen.c: Likewise.
11252         * lib/unistr/u8-mbsnlen.c: Likewise.
11253         * lib/unistr/u8-mbtouc-aux.c: Likewise.
11254         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
11255         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
11256         * lib/unistr/u8-mbtouc.c: Likewise.
11257         * lib/unistr/u8-mbtoucr.c: Likewise.
11258         * lib/unistr/u8-move.c: Likewise.
11259         * lib/unistr/u8-next.c: Likewise.
11260         * lib/unistr/u8-prev.c: Likewise.
11261         * lib/unistr/u8-set.c: Likewise.
11262         * lib/unistr/u8-startswith.c: Likewise.
11263         * lib/unistr/u8-stpcpy.c: Likewise.
11264         * lib/unistr/u8-stpncpy.c: Likewise.
11265         * lib/unistr/u8-strcat.c: Likewise.
11266         * lib/unistr/u8-strchr.c: Likewise.
11267         * lib/unistr/u8-strcmp.c: Likewise.
11268         * lib/unistr/u8-strcpy.c: Likewise.
11269         * lib/unistr/u8-strcspn.c: Likewise.
11270         * lib/unistr/u8-strdup.c: Likewise.
11271         * lib/unistr/u8-strlen.c: Likewise.
11272         * lib/unistr/u8-strmblen.c: Likewise.
11273         * lib/unistr/u8-strmbtouc.c: Likewise.
11274         * lib/unistr/u8-strncat.c: Likewise.
11275         * lib/unistr/u8-strncmp.c: Likewise.
11276         * lib/unistr/u8-strncpy.c: Likewise.
11277         * lib/unistr/u8-strnlen.c: Likewise.
11278         * lib/unistr/u8-strpbrk.c: Likewise.
11279         * lib/unistr/u8-strrchr.c: Likewise.
11280         * lib/unistr/u8-strspn.c: Likewise.
11281         * lib/unistr/u8-strstr.c: Likewise.
11282         * lib/unistr/u8-strtok.c: Likewise.
11283         * lib/unistr/u8-to-u16.c: Likewise.
11284         * lib/unistr/u8-to-u32.c: Likewise.
11285         * lib/unistr/u8-uctomb-aux.c: Likewise.
11286         * lib/unistr/u8-uctomb.c: Likewise.
11287         * lib/unitypes.h: Likewise.
11288         * lib/uniwidth.h: Likewise.
11289         * lib/uniwidth/cjk.h: Likewise.
11290         * lib/uniwidth/u16-strwidth.c: Likewise.
11291         * lib/uniwidth/u16-width.c: Likewise.
11292         * lib/uniwidth/u32-strwidth.c: Likewise.
11293         * lib/uniwidth/u32-width.c: Likewise.
11294         * lib/uniwidth/u8-strwidth.c: Likewise.
11295         * lib/uniwidth/u8-width.c: Likewise.
11296         * lib/uniwidth/width.c: Likewise.
11297
11298 2007-10-07  Bruno Haible  <bruno@clisp.org>
11299
11300         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
11301         The file is still under LGPL (see modules/inttypes).
11302
11303 2007-10-06  Bruno Haible  <bruno@clisp.org>
11304
11305         * modules/trunc (Dependencies): Add 'extensions'.
11306         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
11307         Reported by Ben Pfaff <blp@gnu.org>.
11308
11309 2007-10-06  Bruno Haible  <bruno@clisp.org>
11310
11311         * modules/freopen-tests: New file.
11312         * tests/test-freopen.c: New file.
11313
11314         * modules/fopen-tests: New file.
11315         * tests/test-fopen.c: New file.
11316
11317         * modules/fopen: New file.
11318         * lib/fopen.c: New file.
11319         * m4/fopen.m4: New file.
11320         * modules/freopen: New file.
11321         * lib/freopen.c: New file.
11322         * m4/freopen.m4: New file.
11323         * lib/stdio.in.h (fopen, freopen): New declarations.
11324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
11325         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11326         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
11327         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11328         * doc/functions/fopen.texi: Mention the 'fopen' module.
11329         * doc/functions/freopen.texi: Mention the 'freopen' module.
11330
11331 2007-10-06  Bruno Haible  <bruno@clisp.org>
11332
11333         * modules/open-tests: New file.
11334         * tests/test-open.c: New file.
11335
11336         * modules/open: New file.
11337         * lib/open.c: New file.
11338         * m4/open.m4: New file.
11339         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
11340         lib/open.c does.
11341         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
11342         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
11343         macros.
11344         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
11345         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
11346         REPLACE_OPEN.
11347         * doc/functions/open.texi: Mention the 'open' module.
11348
11349 2007-10-04  Bruno Haible  <bruno@clisp.org>
11350
11351         * modules/ceill-tests: New file.
11352         * tests/test-ceill.c: New file.
11353
11354         * modules/ceill: New file.
11355         * lib/ceill.c: Replace entire file.
11356         * m4/ceill.m4: New file.
11357         * lib/math.in.h (ceill): Replace declaration.
11358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
11359         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
11360         * doc/functions/ceill.texi: Mention the 'ceill' module.
11361         * modules/mathl (Files): Remove lib/ceill.c.
11362         (Depends-on): Add ceill.
11363
11364 2007-10-04  Bruno Haible  <bruno@clisp.org>
11365
11366         * modules/ceilf-tests: New file.
11367         * tests/test-ceilf.c: New file.
11368
11369         * modules/ceilf: New file.
11370         * lib/ceil.c: New file.
11371         * lib/ceilf.c: New file.
11372         * m4/ceilf.m4: New file.
11373         * lib/math.in.h (ceilf): New declaration.
11374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
11375         HAVE_DECL_CEILF.
11376         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
11377         HAVE_DECL_CEILF.
11378         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
11379
11380 2007-10-04  Bruno Haible  <bruno@clisp.org>
11381
11382         * modules/floorl-tests: New file.
11383         * tests/test-floorl.c: New file.
11384
11385         * modules/floorl: New file.
11386         * lib/floorl.c: Replace entire file.
11387         * m4/floorl.m4: New file.
11388         * lib/math.in.h (floorl): Replace declaration.
11389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
11390         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
11391         * doc/functions/floorl.texi: Mention the 'floorl' module.
11392         * modules/mathl (Files): Remove lib/floorl.c.
11393         (Depends-on): Add floorl.
11394
11395 2007-10-04  Bruno Haible  <bruno@clisp.org>
11396
11397         * modules/floorf-tests: New file.
11398         * tests/test-floorf.c: New file.
11399
11400         * modules/floorf: New file.
11401         * lib/floor.c: New file.
11402         * lib/floorf.c: New file.
11403         * m4/floorf.m4: New file.
11404         * lib/math.in.h (floorf): New declaration.
11405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
11406         HAVE_DECL_FLOORF.
11407         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
11408         HAVE_DECL_FLOORF.
11409         * doc/functions/floorf.texi: Mention the 'floorf' module.
11410
11411 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
11412             Bruno Haible  <bruno@clisp.org>
11413
11414         Advertise for the Git server instead of the CVS server.
11415         * doc/gnulib-intro.texi (Steady Development): Mention the Git
11416         repository instead of the CVS one.
11417         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
11418         about all VCS systems generically.
11419         * doc/gnulib.texi (Introduction): Capitalize `Git'.
11420
11421 2007-10-04  Bruno Haible  <bruno@clisp.org>
11422
11423         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
11424         means.
11425         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
11426
11427 2007-10-04  Bruno Haible  <bruno@clisp.org>
11428
11429         * modules/truncl-tests: New file.
11430         * tests/test-truncl.c: New file.
11431
11432         * modules/truncl: New file.
11433         * lib/truncl.c: New file.
11434         * m4/truncl.m4: New file.
11435         * lib/math.in.h (truncl): New declaration.
11436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
11437         HAVE_DECL_TRUNCL.
11438         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
11439         HAVE_DECL_TRUNCL.
11440         * doc/functions/truncl.texi: Mention the 'truncl' module.
11441
11442 2007-10-04  Bruno Haible  <bruno@clisp.org>
11443
11444         * modules/truncf-tests: New file.
11445         * tests/test-truncf.c: New file.
11446
11447         * modules/truncf: New file.
11448         * lib/trunc.c: Make paramerizable through USE_* macros.
11449         * lib/truncf.c: New file.
11450         * m4/truncf.m4: New file.
11451         * lib/math.in.h (truncf): New declaration.
11452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
11453         HAVE_DECL_TRUNCF.
11454         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
11455         HAVE_DECL_TRUNCF.
11456         * doc/functions/truncf.texi: Mention the 'truncf' module.
11457
11458 2007-10-03  Bruno Haible  <bruno@clisp.org>
11459
11460         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11461         augmentation also for tests modules.
11462         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
11463         * modules/atexit-tests (Makefile.am): Likewise.
11464         * modules/binary-io-tests (Makefile.am): Likewise.
11465         * modules/c-strcase-tests (Makefile.am): Likewise.
11466         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
11467         * modules/canonicalize-tests (Makefile.am): Likewise.
11468         * modules/closein-tests (Makefile.am): Likewise.
11469         * modules/fprintf-posix-tests (Makefile.am): Likewise.
11470         * modules/freadahead-tests (Makefile.am): Likewise.
11471         * modules/fseek-tests (Makefile.am): Likewise.
11472         * modules/fseeko-tests (Makefile.am): Likewise.
11473         * modules/ftell-tests (Makefile.am): Likewise.
11474         * modules/ftello-tests (Makefile.am): Likewise.
11475         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
11476         * modules/isnanl-tests (Makefile.am): Likewise.
11477         * modules/lseek-tests (Makefile.am): Likewise.
11478         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11479         * modules/mbscasestr-tests (Makefile.am): Likewise.
11480         * modules/mbschr-tests (Makefile.am): Likewise.
11481         * modules/mbscspn-tests (Makefile.am): Likewise.
11482         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11483         * modules/mbspbrk-tests (Makefile.am): Likewise.
11484         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11485         * modules/mbsrchr-tests (Makefile.am): Likewise.
11486         * modules/mbsspn-tests (Makefile.am): Likewise.
11487         * modules/mbsstr-tests (Makefile.am): Likewise.
11488         * modules/printf-posix-tests (Makefile.am): Likewise.
11489         * modules/snprintf-posix-tests (Makefile.am): Likewise.
11490         * modules/sprintf-posix-tests (Makefile.am): Likewise.
11491         * modules/tsearch-tests (Makefile.am): Likewise.
11492         * modules/uniname/uniname-tests (Makefile.am): Likewise.
11493         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11494         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11495         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11496         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11497         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11498         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11499         * modules/vprintf-posix-tests (Makefile.am): Likewise.
11500         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
11501         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
11502         * modules/xstrtoimax-tests (Makefile.am): Likewise.
11503         * modules/xstrtol-tests (Makefile.am): Likewise.
11504         * modules/xstrtoumax-tests (Makefile.am): Likewise.
11505         * modules/yesno-tests (Makefile.am): Likewise.
11506
11507 2007-10-03  Bruno Haible  <bruno@clisp.org>
11508
11509         * modules/trunc-tests: New file.
11510         * tests/test-trunc.c: New file.
11511
11512         * modules/trunc: New file.
11513         * lib/trunc.c: New file.
11514         * m4/trunc.m4: New file.
11515         * lib/math.in.h (trunc): New declaration.
11516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
11517         HAVE_DECL_TRUNC.
11518         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
11519         HAVE_DECL_TRUNC.
11520         * doc/functions/trunc.texi: Mention the 'trunc' module.
11521
11522 2007-10-03  Bruno Haible  <bruno@clisp.org>
11523
11524         * tests/test-fpending.c: New file, mostly copied
11525         from coreutils/lib/t-fpending.c.
11526         * modules/fpending-tests: New file.
11527
11528 2007-10-03  Bruno Haible  <bruno@clisp.org>
11529
11530         Port the stdio extensions to QNX (untested).
11531         * lib/fseterr.c (fseterr): Add support for QNX.
11532         * lib/fbufmode.c (fbufmode): Likewise.
11533         * lib/freadable.c (freadable): Likewise.
11534         * lib/fwritable.c (fwritable): Likewise.
11535         * lib/freading.c (freading): Likewise.
11536         * lib/fwriting.c (fwriting): Likewise.
11537         * lib/freadahead.c (freadahed): Likewise.
11538         * lib/fpurge.c (fpurge): Likewise.
11539         * lib/fseeko.c (rpl_fseeko): Likewise.
11540
11541 2007-10-03  Bruno Haible  <bruno@clisp.org>
11542             Jim Meyering  <jim@meyering.net>
11543             Eric Blake  <ebb9@byu.net>
11544
11545         * doc/relocatable.texi: Use @command instead of @program.
11546
11547 2007-10-02  Jim Meyering  <jim@meyering.net>
11548
11549         Perform one more "_.h" -> ".in.h" substitution.
11550         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
11551         instead of unistd_.h here, too.
11552
11553 2007-10-01  Bruno Haible  <bruno@clisp.org>
11554
11555         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
11556         Needed for the alloca-opt module.
11557
11558 2007-09-30  Bruno Haible  <bruno@clisp.org>
11559
11560         * lib/alloca.in.h: Renamed from lib/alloca_.h.
11561         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
11562         alloca_.h.
11563         * lib/argz.in.h: Renamed from lib/argz_.h.
11564         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
11565         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
11566         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
11567         byteswap_.h.
11568         * lib/dirent.in.h: Renamed from lib/dirent_.h.
11569         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
11570         dirent_.h.
11571         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
11572         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
11573         fcntl_.h.
11574         * lib/float.in.h: Renamed from lib/float_.h.
11575         * modules/float (Files, Makefile.am): Use float.in.h instead of
11576         float_.h.
11577         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
11578         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
11579         fnmatch_.h.
11580         * lib/getopt.in.h: Renamed from lib/getopt_.h.
11581         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
11582         getopt_.h.
11583         * lib/glob.in.h: Renamed from lib/glob_.h.
11584         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
11585         * lib/iconv.in.h: Renamed from lib/iconv_.h.
11586         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
11587         iconv_.h.
11588         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
11589         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
11590         inttypes_.h.
11591         * lib/locale.in.h: Renamed from lib/locale_.h.
11592         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
11593         locale_.h.
11594         * lib/math.in.h: Renamed from lib/math_.h.
11595         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
11596         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
11597         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
11598         of netinet_in_.h. Add dependency.
11599         * lib/poll.in.h: Renamed from lib/poll_.h.
11600         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
11601         * lib/search.in.h: Renamed from lib/search_.h.
11602         * modules/search (Files, Makefile.am): Use search.in.h instead of
11603         search_.h.
11604         * lib/signal.in.h: Renamed from lib/signal_.h.
11605         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
11606         _signal.h.
11607         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
11608         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
11609         stdbool_.h.
11610         * lib/stdint.in.h: Renamed from lib/stdint_.h.
11611         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
11612         stdint_.h.
11613         * lib/stdio.in.h: Renamed from lib/stdio_.h.
11614         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
11615         stdio_.h.
11616         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
11617         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
11618         stdlib_.h.
11619         * lib/string.in.h: Renamed from lib/string_.h.
11620         * modules/string (Files, Makefile.am): Use string.in.h instead of
11621         string_.h.
11622         * doc/gnulib-tool.texi (Initial import): Update.
11623         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
11624         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
11625         of sys_select_.h. Add dependency.
11626         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
11627         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
11628         of sys_socket_.h.
11629         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
11630         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
11631         sys_stat_.h.
11632         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
11633         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
11634         sys_time_.h.
11635         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
11636         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
11637         sysexits_.h.
11638         * lib/time.in.h: Renamed from lib/time_.h.
11639         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
11640         * lib/unistd.in.h: Renamed from lib/unistd_.h.
11641         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
11642         unistd_.h.
11643         * lib/wchar.in.h: Renamed from lib/wchar_.h.
11644         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
11645         wchar_.h.
11646         * lib/wctype.in.h: Renamed from lib/wctype_.h.
11647         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
11648         wctype_.h.
11649         * build-aux/bootstrap (slurp): Update.
11650         * lib/.cppi-disable: Update.
11651
11652 2007-09-30  Bruno Haible  <bruno@clisp.org>
11653
11654         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
11655         Needed on BeOS.
11656
11657 2007-09-30  Bruno Haible  <bruno@clisp.org>
11658
11659         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
11660
11661 2007-09-29  Bruno Haible  <bruno@clisp.org>
11662
11663         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
11664
11665 2007-09-29  Bruno Haible  <bruno@clisp.org>
11666
11667         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
11668         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
11669         * build-aux/install-reloc: Compile also areadlink.c.
11670         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
11671
11672 2007-09-29  Bruno Haible  <bruno@clisp.org>
11673
11674         * gnulib-tool (func_emit_initmacro_done): Indentation.
11675
11676 2007-09-29  Bruno Haible  <bruno@clisp.org>
11677
11678         * README: Add CVS checkout update instructions.
11679         Info from Bob Proulx <bob@proulx.com>.
11680
11681 2007-09-28  Eric Blake  <ebb9@byu.net>
11682
11683         Provide move-if-change.
11684         * build-aux/move-if-change: New file, based on best practice
11685         rather than any canonical upstream location.
11686
11687 2007-09-28  Jim Meyering  <jim@meyering.net>
11688
11689         Fix canonicalize loop-detection corner case.
11690         Do not attempt to stat the symlink values stored via seen_triple.
11691         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
11692         on linux-2.6.18, (but not 2.6.22).
11693         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
11694         triple_compare.  The former compares dev,ino,filename, while the latter
11695         would actually stat dirname(filename) when dev and ino were equal.
11696         * lib/hash-triple.c: Install <string.h>.
11697         (STREQ): Define.
11698         (triple_compare_ino_str): New function.
11699         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
11700
11701 2007-09-28  Eric Blake  <ebb9@byu.net>
11702
11703         Enforce that AC_REPLACE_FUNCS files exist.
11704         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
11705         override check for typos.
11706
11707         Fix test-closein on Solaris 10.
11708         * tests/test-closein.c (main): Don't assume stdin can be inherited
11709         closed on all systems.
11710         * tests/test-closein.sh: Likewise.
11711         Reported by Piotr Tarnowski.
11712
11713 2007-09-28  Jim Meyering  <jim@meyering.net>
11714
11715         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
11716
11717 2007-09-27  Jim Meyering  <jim@meyering.net>
11718
11719         canonicalize: Avoid a false-positive cycle failure.
11720         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
11721         Sort.  Remove cycle-check.
11722         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
11723         not cycle-check.h.
11724         (seen_triple): New function.
11725         (canonicalize_filename_mode): Use it instead of cycle-check.
11726         * tests/test-canonicalize.c: Add a test for this bug.
11727         * tests/test-canonicalize.sh: Set up and run the test.
11728
11729         New module, file-set, from coreutils.
11730         * modules/file-set: Define it.
11731         * lib/file-set.c, lib/file-set.h: Implement.
11732
11733         New module, hash-triple, from coreutils.
11734         * modules/hash-triple: Define it.
11735         * lib/hash-triple.c, lib/hash-triple.h: Implement.
11736
11737 2007-09-25  Eric Blake  <ebb9@byu.net>
11738
11739         Fix strerror on Interix.
11740         * lib/string_.h (strerror): Declare replacement.
11741         * doc/functions/strerror.texi (strerror): Document the Interix
11742         shortcoming.
11743         * modules/string (Makefile.am): Support new hooks.
11744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
11745         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
11746         gl_FUNC_STRERROR_SEPARATE.
11747         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
11748         * lib/strerror.c (rpl_strerror): Provide replacement.
11749         * modules/strerror (Depends-on): Add string.
11750         (configure.ac): Detect use of module.
11751         * tests/test-strerror.c: New file.
11752         * modules/strerror-tests: New test module.
11753         * modules/argp (Depends-on): Add strerror.
11754         * modules/error (Depends-on): Likewise.
11755         Reported by Martin Koeppe.
11756
11757 2007-09-24  Bruno Haible  <bruno@clisp.org>
11758
11759         * README: Update git instructions.
11760
11761 2007-09-24  Eric Blake  <ebb9@byu.net>
11762
11763         Revert fpending breakage from 2007-09-08.
11764         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
11765         __fpending.c.
11766
11767 2007-09-24  Jim Meyering  <jim@meyering.net>
11768
11769         filenamecat.c: Add a test.
11770         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
11771         showing how the function works when DIR is the empty string.
11772
11773 2007-09-21  Simon Josefsson  <simon@josefsson.org>
11774
11775         * tests/test-canonicalize.sh: Turn on executable bit.
11776
11777 2007-09-19  Eric Blake  <ebb9@byu.net>
11778
11779         * README: Update CVS instructions.
11780
11781 2007-09-18  Bruno Haible  <bruno@clisp.org>
11782
11783         * modules/areadlink: New file.
11784         * lib/areadlink.h (areadlink): New declaration.
11785         * lib/areadlink.c: New file, based on lib/xreadlink.c.
11786
11787 2007-09-17  Jim Meyering  <jim@meyering.net>
11788
11789         * lib/savewd.c (ESTALE) [!defined]: Define.
11790         Reported to be required on Interix by Martin Koeppe.
11791
11792 2007-09-17  Bruno Haible  <bruno@clisp.org>
11793
11794         * gnulib-tool (func_version): Use $version.
11795
11796 2007-09-16  Bruno Haible  <bruno@clisp.org>
11797
11798         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
11799         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
11800         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
11801         Reported by Greg Schafer <gschafer@zip.com.au>.
11802
11803 2007-09-15  Bruno Haible  <bruno@clisp.org>
11804
11805         * gnulib-tool (sed): Try a little harder to make bash understand the
11806         alias.
11807         Reported by Bruce Korb <bruce.korb@gmail.com>.
11808
11809 2007-09-13  Eric Blake  <ebb9@byu.net>
11810
11811         * ChangeLog: Remove conflict markers.
11812
11813 2007-09-13  Simon Josefsson  <simon@josefsson.org>
11814
11815         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
11816         Reported by Bruno Haible <bruno@clisp.org>.
11817
11818 2007-09-12  Bruno Haible  <bruno@clisp.org>
11819
11820         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
11821         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
11822         is not defined.
11823
11824 2007-09-12  Eric Blake  <ebb9@byu.net>
11825
11826         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
11827         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
11828         Autoconf definition.
11829         * modules/euidaccess (Depends-on): Add extensions, for
11830         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
11831         * modules/fnmatch (Depends-on): Likewise.
11832         * modules/getaddrinfo (Depends-on): Likewise.
11833         * modules/getdelim (Depends-on): Likewise.
11834         * modules/getline (Depends-on): Likewise.
11835         * modules/getsubopt (Depends-on): Likewise.
11836         * modules/gettext (Depends-on): Likewise.
11837         * modules/group-member (Depends-on): Likewise.
11838         * modules/mbchar (Depends-on): Likewise.
11839         * modules/memmem (Depends-on): Likewise.
11840         * modules/mempcpy (Depends-on): Likewise.
11841         * modules/memrchr (Depends-on): Likewise.
11842         * modules/pagealign_alloc (Depends-on): Likewise.
11843         * modules/readutmp (Depends-on): Likewise.
11844         * modules/stpcpy (Depends-on): Likewise.
11845         * modules/stpncpy (Depends-on): Likewise.
11846         * modules/strchrnul (Depends-on): Likewise.
11847         * modules/strndup (Depends-on): Likewise.
11848         * modules/strsep (Depends-on): Likewise.
11849         * modules/strverscmp (Depends-on): Likewise.
11850         * modules/vasprintf (Depends-on): Likewise.
11851         * modules/wcwidth (Depends-on): Likewise.
11852         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
11853         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
11854         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
11855         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
11856         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11857         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11858         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
11859         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11860         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
11861         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11862         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11863         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
11864         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
11865         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11866         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
11867         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11868         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11869         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
11870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11871         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
11872         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11873         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
11874         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
11875         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
11876         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
11877         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11878         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
11879         so that lock.m4 can be used in gettext without extensions module.
11880
11881 2007-09-11  Bruno Haible  <bruno@clisp.org>
11882
11883         * m4/isc-posix.m4: Remove file.
11884         Suggested by Eric Blake.
11885
11886 2007-09-11  Eric Blake  <ebb9@byu.net>
11887
11888         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
11889
11890 2007-09-10  Bruno Haible  <bruno@clisp.org>
11891
11892         * posix-modules: Fix typo in error message.
11893         Reported by Matt <mkraai@beckman.com>.
11894
11895 2007-09-09  Bruno Haible  <bruno@clisp.org>
11896
11897         * doc/functions/getdelim.texi: Update list of platforms lacking the
11898         function.
11899         * doc/functions/getline.texi: Likewise.
11900
11901 2007-09-09  Jim Meyering  <jim@meyering.net>
11902
11903         * lib/hash.c (hash_initialize): Detect calloc failure.
11904         Reported by Bruno Haible.
11905
11906 2007-09-09  Bruno Haible  <bruno@clisp.org>
11907
11908         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
11909         malloc or realloc fails.
11910
11911 2007-09-09  Bruno Haible  <bruno@clisp.org>
11912
11913         * modules/getcwd (Depends-on): Add malloc-posix.
11914         * modules/glob (Depends-on): Likewise.
11915         * modules/putenv (Depends-on): Likewise.
11916         * modules/strdup (Depends-on): Likewise.
11917         * modules/getdelim (Depends-on): Add realloc-posix.
11918         * modules/read-file (Depends-on): Likewise.
11919
11920 2007-09-09  Bruno Haible  <bruno@clisp.org>
11921
11922         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
11923         (gl_FUNC_MALLOC_POSIX): Require it.
11924         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
11925         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
11926         * modules/realloc (Files): Add m4/malloc.m4.
11927         * modules/calloc (Files): Likewise.
11928
11929 2007-09-09  Bruno Haible  <bruno@clisp.org>
11930
11931         * modules/malloc-posix: New file.
11932         * modules/malloc (Depends-on): Add malloc-posix.
11933         * lib/malloc.c: Include errno.h.
11934         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
11935         and a POSIX-compatible malloc into a single function. Set ENOMEM
11936         when returning NULL.
11937         * m4/malloc.m4: New file.
11938         * doc/functions/malloc.texi: Mention the malloc-posix module.
11939         * lib/stdlib_.h (malloc): New declaration.
11940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11941         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
11942         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
11943         and HAVE_MALLOC_POSIX.
11944
11945 2007-09-09  Bruno Haible  <bruno@clisp.org>
11946
11947         * modules/realloc-posix: New file.
11948         * modules/realloc (Depends-on): Add realloc-posix.
11949         * lib/realloc.c: Include errno.h.
11950         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
11951         and a POSIX-compatible realloc into a single function. Set ENOMEM
11952         when returning NULL.
11953         * m4/realloc.m4: New file.
11954         * doc/functions/realloc.texi: Mention the realloc-posix module.
11955         * lib/stdlib_.h (realloc): New declaration.
11956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11957         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
11958         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
11959         and HAVE_REALLOC_POSIX.
11960
11961 2007-09-09  Bruno Haible  <bruno@clisp.org>
11962
11963         * modules/calloc-posix: New file.
11964         * modules/calloc (Depends-on): Add calloc-posix.
11965         * lib/calloc.c: Include errno.h.
11966         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
11967         and a POSIX-compatible calloc into a single function. Set ENOMEM
11968         when returning NULL.
11969         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
11970         * doc/functions/calloc.texi: Mention the calloc-posix module.
11971         * lib/stdlib_.h (calloc): New declaration.
11972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11973         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
11974         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
11975         and HAVE_CALLOC_POSIX.
11976
11977 2007-09-09  Bruno Haible  <bruno@clisp.org>
11978
11979         Allow for modules to show an arbitrary notice.
11980         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
11981         * gnulib-tool: New option --extract-notice.
11982         (func_usage): Document it.
11983         (sed_extract_prog): Update.
11984         (func_get_notice): New function.
11985         (func_modules_notice): New function.
11986         (func_import, func_create_testdir): Invoke it.
11987         Suggested by Jim Meyering.
11988
11989 2007-09-09  Bruno Haible  <bruno@clisp.org>
11990
11991         * gnulib-tool: New options --verbose, --quiet.
11992         (func_usage): Document them.
11993         (verbose): New variable.
11994         (func_execute_command): New function.
11995         (func_import): Don't show the module list and the file list if
11996         $verbose < 0.
11997         (func_create_testdir): Likewise. Use func_execute_command.
11998         (func_create_megatestdir): Use func_execute_command.
11999
12000 2007-09-08  Bruno Haible  <bruno@clisp.org>
12001
12002         * gnulib-tool (func_import): Prefer rsync over wget when available,
12003         for fetching the PO files.
12004
12005 2007-09-08  Bruno Haible  <bruno@clisp.org>
12006
12007         * posix-modules: New file. Portions copied from gnulib-tool.
12008         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
12009
12010 2007-09-08  Jim Meyering  <jim@meyering.net>
12011
12012         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
12013         * lib/fpending.h: Rename from __fpending.h.
12014         * lib/fpending.c: Rename from __fpending.c.
12015         Include "fpending.h", not "__fpending.h".
12016         * lib/__fpending.h, lib/__fpending.c: Remove files.
12017         * modules/fpending (Files): Reflect new file names.
12018         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
12019
12020 2007-09-08  Bruno Haible  <bruno@clisp.org>
12021
12022         * m4/inttypes-h.m4: Remove stub file.
12023
12024 2007-09-07  Simon Josefsson  <simon@josefsson.org>
12025
12026         * doc/headers/stdint.texi: Discuss #include_next issue.
12027
12028 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
12029
12030         * build-aux/bootstrap: Remove obsolete comment about wget --help.
12031
12032 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12033
12034         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
12035         in variable name.
12036
12037 2007-09-03  Jim Meyering  <jim@meyering.net>
12038
12039         New module: git-version-gen.
12040         * modules/git-version-gen: New file.
12041
12042         Import changes from coreutils for bootstrap script.
12043
12044         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
12045
12046         bootstrap: uses rsync to download the .po files
12047         * build-aux/bootstrap (po_download_command_format): New global.
12048         (download_po_files): Use rsync.
12049         (update_po_files): Don't remove .po files after download,
12050         so future rsync runs can take advantage of the copies.
12051
12052         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
12053
12054         Solve the unnecessary-.po-file-regeneration problem once and for all.
12055         * build-aux/bootstrap (download_po_files): New function, renamed from
12056         get_translations.  Now, downloads, but doesn't update LINGUAS.
12057         (update_po_files): New function.
12058
12059         bootstrap: Ignore more.
12060         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
12061         uniwidth to e.g., lib/.gitignore.
12062         (slurp): Handle the sys_stat_.h -> sys mapping, too.
12063
12064         * build-aux/bootstrap: New setting: vc_ignore.
12065         (insert_sorted_if_absent): Create $file if absent.
12066         Adapt to new, possibly empty, list: $vc_ignore.
12067
12068         bootstrap: generate more ignorable names
12069         * build-aux/bootstrap (slurp): When generating ignorable names,
12070         also map .sin to .sed, .gperf to .c, and .y to .c.
12071
12072 2007-09-03  Jim Meyering  <jim@meyering.net>
12073
12074         * build-aux/git-version-gen: New file, from coreutils.  For details, see
12075         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
12076
12077 2007-09-02  Bruno Haible  <bruno@clisp.org>
12078
12079         Fix mis-recognition of 'mcs' on QNX 6.
12080         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
12081         output contains the string "Mono".
12082         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
12083         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
12084
12085 2007-09-01  Bruno Haible  <bruno@clisp.org>
12086
12087         Fix collision between uniwidth/* and linebreak modules.
12088         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
12089         u32_width): Remove declarations.
12090         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
12091         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
12092         streq3, streq2, streq1, streq0): Remove functions.
12093         (STREQ): Remove macro.
12094         (is_cjk_encoding): Remove function.
12095         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
12096         (uc_width, u8_width, u16_width, u32_width): Remove functions.
12097         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
12098         * NEWS: Document the change.
12099
12100 2007-09-01  Bruno Haible  <bruno@clisp.org>
12101
12102         * lib/streq.h: Add double-inclusion guard.
12103
12104 2007-09-01  Karl Berry  <karl@gnu.org>
12105
12106         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
12107
12108 2007-08-28  Jim Meyering  <jim@meyering.net>
12109
12110         Rename mreadlink_with_size to areadlink_with_size.
12111         * NEWS: Document the change.
12112         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
12113         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
12114         * lib/mreadlink.h: Rename this to...
12115         * lib/areadlink.h: ...this.
12116         * modules/mreadlink-with-size: Rename this to...
12117         * modules/areadlink-with-size: ...this.
12118         * lib/canonicalize.c: Reflect the renaming.
12119         * modules/canonicalize: Likewise.
12120
12121 2007-08-26  Bruno Haible  <bruno@clisp.org>
12122
12123         * gnulib-tool (func_import): When deciding which files to remove,
12124         consider also dangling symbolic links.
12125         Reported by Eric Blake.
12126
12127 2007-08-26  Bruno Haible  <bruno@clisp.org>
12128
12129         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
12130
12131 2007-08-23  Simon Josefsson  <simon@josefsson.org>
12132
12133         * lib/readline.c: Don't include getline.h, the prototype is now
12134         found in stdio.h.
12135
12136 2007-08-23  Jim Meyering  <jim@meyering.net>
12137
12138         Getdelim touchup.
12139         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
12140         around the funlockfile call, since funlockfile never sets errno.
12141         Don't set errno upon failed realloc.
12142
12143 2007-08-22  Eric Blake  <ebb9@byu.net>
12144
12145         Getline touchups.
12146         * lib/getdelim.c (getdelim): Revert regression that required *n to
12147         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
12148         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
12149         getdelim, rather than whether implementation is missing.
12150         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
12151         * lib/stdio_.h (getline): Also declare if replacement is
12152         required.
12153         * doc/functions/getdelim.texi: New file.
12154         * doc/functions/getline.texi: Likewise.
12155         * doc/gnulib.texi (Function Substitutes): Add new files.
12156         Reported by Bruno Haible.
12157
12158 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
12159
12160         * users.txt: Add Guile.
12161
12162 2007-08-22  Eric Blake  <ebb9@byu.net>
12163
12164         * tests/test-getdelim.c (main): Use remove, not unlink.
12165         * tests/test-getline.c (main): Likewise.
12166
12167         Move getline and getdelim into stdio.h, per POSIX 200x.
12168         * modules/getline (Files): Remove getline.h.
12169         (Depends-on): Add stdio.
12170         (configure.ac): Add module indicator.
12171         * modules/getdelim (Files): Remove getdelim.h.
12172         (Depends-on): Add stdio.
12173         (configure.ac): Add module indicator.
12174         * modules/stdio (Makefile.am): Work with new indicators.
12175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
12176         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
12177         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12178         * lib/getdelim.h: Delete.
12179         * lib/getline.h: Delete.
12180         * lib/stdio_.h (getdelim, getline): Declare.
12181         * modules/getdelim-tests: New module.
12182         * modules/getline-tests: Likewise.
12183         * tests/test-getdelim.c: New file.
12184         * tests/test-getline.c: Likewise.
12185         * NEWS: Document the change.
12186         * lib/getline.c: Update choice of header.
12187         * lib/csharpcomp.c: Likewise.
12188         * lib/getpass.c: Likewise.
12189         * lib/javacomp.c: Likewise.
12190         * lib/javaversion.c: Likewise.
12191         * lib/yesno.c: Likewise.
12192         * lib/getdelim.c: Likewise.
12193         (getdelim): Set errno on failure, and avoid memory leak.
12194
12195 2007-08-19  Bruno Haible  <bruno@clisp.org>
12196
12197         * modules/closein (Depends-on): Add freadahead.
12198         * lib/closein.c: Include freadahead.h.
12199         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
12200         is zero.
12201
12202 2007-08-19  Bruno Haible  <bruno@clisp.org>
12203
12204         * modules/freadahead-tests: New file.
12205         * tests/test-freadahead.sh: New file.
12206         * tests/test-freadahead.c: New file.
12207
12208         * modules/freadahead: New file.
12209         * lib/freadahead.h: New file.
12210         * lib/freadahead.c: New file.
12211         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
12212         fbufmode, fpurge, freadable, fwritable.
12213
12214 2007-08-19  Eric Blake  <ebb9@byu.net>
12215
12216         Test yesno in combination with closein.
12217         * lib/yesno.c (yesno): Document use of stdin.
12218         * modules/yesno-tests (Files): New module.
12219         * tests/test-yesno.c (main): New file.
12220         * tests/test-yesno.sh: Likewise.
12221
12222 2007-08-19  Bruno Haible  <bruno@clisp.org>
12223
12224         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
12225         * lib/fseeko.c (rpl_fseeko): Likewise.
12226         * lib/fseterr.c (fseterr): Likewise.
12227
12228 2007-08-19  Bruno Haible  <bruno@clisp.org>
12229
12230         * tests/test-lseek.c (main): Disable a test for BeOS.
12231         * doc/functions/lseek.texi: Document the BeOS bug.
12232
12233 2007-08-19  Bruno Haible  <bruno@clisp.org>
12234             Eric Blake  <ebb9@byu.net>
12235
12236         * lib/lseek.c: Include <sys/stat.h>.
12237         (rpl_lseek): Add workaround code also for Unix platforms.
12238         Needed for BeOS.
12239         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
12240         * doc/functions/lseek.texi: Document BeOS definiency.
12241
12242 2007-08-18  Bruno Haible  <bruno@clisp.org>
12243
12244         * modules/fstrcmp-tests: New file.
12245         * tests/test-fstrcmp.c: New file.
12246
12247 2007-08-18  Bruno Haible  <bruno@clisp.org>
12248
12249         * modules/fstrcmp: New file, from GNU gettext with modifications.
12250         * lib/fstrcmp.h: New file, from GNU gettext.
12251         * lib/fstrcmp.c: New file, from GNU gettext.
12252         * MODULES.html.sh (String handling): Add fstrcmp.
12253
12254 2007-08-18  Bruno Haible  <bruno@clisp.org>
12255
12256         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
12257         'bool'.
12258         (diag, compareseq): Remove const from the ctxt argument.
12259         (USE_HEURISTIC): Undefine at the end.
12260
12261 2007-08-18  Jim Meyering  <jim@meyering.net>
12262
12263         New file: lib/idcache.h
12264         * NEWS: Mention the addition.
12265         * modules/idcache (Files): Add lib/idcache.h
12266         * lib/idcache.c: Include "idcache.h".
12267         Don't include <sys/types.h>.
12268         Add a FIXME comment.
12269         Move file-scoped "static" declarations to the top.
12270         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
12271
12272 2007-08-17  Bruno Haible  <bruno@clisp.org>
12273         and Paul Eggert  <eggert@cs.ucla.edu>
12274
12275         * MODULES.html.sh: Add diffseq.
12276         * modules/diffseq: New file.
12277         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
12278         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
12279
12280 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12281
12282         Import changes from coreutils for bootstrap script.
12283
12284         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
12285
12286         * build-aux/bootstrap (slurp): Work even in environments where
12287         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
12288         current code does not slurp files whose names start with ".", and
12289         this looks like it might be a troublesome area.
12290
12291         2007-07-11  Jim Meyering  <jim@meyering.net>
12292
12293         If there's a GPL vN copyright comment, require that N == 3.
12294
12295         2007-07-08  Jim Meyering  <jim@meyering.net>
12296
12297         Run the coreutils-specific code only if tests/Makefile.am.in exists.
12298         * build-aux/bootstrap (mam_template): Move definition out of loop.
12299
12300         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
12301
12302         * build-aux/bootstrap (symlink_to_dir): Rename function from
12303         symlink_to_gnulib.  Add a directory parameter.  Update all
12304         callers.
12305         (cp_mark_as_generated): Also check for -- and link to -- files in
12306         gl/.
12307
12308         2007-07-08  Jim Meyering  <jim@meyering.net>
12309
12310         Adapt to deeper hierarchy in gnulib.
12311         * build-aux/bootstrap (symlink_to_dir): If the destination
12312         directory doesn't exist, create it. This is required at least for
12313         "lib/uniwidth/cjk.h".
12314
12315         2007-05-15  Jim Meyering  <jim@meyering.net>
12316
12317         * build-aux/bootstrap: Now that generated Makefile.am files
12318         are no longer under version control, they must be created at
12319         bootstrap time.
12320
12321 2007-08-14  Ben Pfaff  <blp@gnu.org>
12322
12323         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
12324
12325 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12326
12327         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
12328         given the changes below.
12329         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
12330         even on hosts that have padding bits beyond the supported 64.
12331
12332 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12333
12334         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
12335         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
12336         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
12337         depends on it.
12338         (xstrtol_error): Remove.
12339         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
12340         but with a different signature.
12341         (ATTRIBUTE_NORETURN, __attribute__): New macros.
12342         * lib/xstrtol-error.c: Include exitfail.h.
12343         (xstrtol_fatal): New function, with a different signature from the
12344         old xstrtol_error, so that the caller need not worry about passing
12345         in an exit status, or about storage management of the option argument.
12346         (xstrtol_error): Now a static function.  Redo signature to
12347         implement xstrtol_fatal.  Output the correct number of hyphens in
12348         front of the option so that the caller need not worry about
12349         storage management.
12350         (N_): New macro.
12351         (_): Remove; not used now.
12352         * modules/xstrtol: Depend on getopt.
12353         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
12354         of old STRTOL_FATAL_ERROR macro.
12355         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
12356         of test program.
12357         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
12358         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
12359
12360 2007-08-08  Eric Blake  <ebb9@byu.net>
12361
12362         * lib/xstrtol-error.c: Add missing include.
12363
12364         Move xstrtol messages into gnulib domain, when --pobase is used.
12365         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
12366         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
12367         * modules/xstrtol (Files): Distribute new file.
12368         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
12369         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
12370         * tests/test-xstrtol.c: ...into new file.
12371         * tests/test-xstrtoul.c: Also test xstrtoul.
12372         * tests/test-xstrtoimax.c: Also test xstrtoimax.
12373         * tests/test-xstrtoumax.c: Also test xstrtoumax.
12374         * tests/test-xstrtol.sh: Drive the tests.
12375         * tests/test-xstrtoimax.sh: Likewise.
12376         * tests/test-xstrtoumax.sh: Likewise.
12377         * modules/xstrtol-tests: New module.
12378         * modules/xstrtoimax-tests: Likewise.
12379         * modules/xstrtoumax-tests: Likewise.
12380
12381 2007-08-08  Jim Meyering  <jim@meyering.net>
12382
12383         New function: mfile_name_concat.
12384         * lib/filenamecat.c (mfile_name_concat): New function, just like
12385         file_name_concat, but return NULL upon failure rather than exiting
12386         with a diagnostic.
12387         * lib/filenamecat.h: Declare it.
12388
12389 2007-08-07  Bruno Haible  <bruno@clisp.org>
12390
12391         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
12392         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
12393         warning from gcc.
12394         Reported by Eric Blake.
12395
12396 2007-08-07  Simon Josefsson  <simon@josefsson.org>
12397
12398         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
12399         * modules/crypto/arcfour (License): Likewise.
12400         * modules/crypto/des-tests (License): Likewise.
12401         * modules/crypto/gc-arctwo-tests (License): Likewise.
12402         * modules/crypto/gc-des-tests (License): Likewise.
12403         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
12404         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
12405         * modules/crypto/gc-md2-tests (License): Likewise.
12406         * modules/crypto/gc-md4-tests (License): Likewise.
12407         * modules/crypto/gc-md5-tests (License): Likewise.
12408         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
12409         * modules/crypto/gc-rijndael-tests (License): Likewise.
12410         * modules/crypto/gc-sha1-tests (License): Likewise.
12411         * modules/crypto/gc-tests (License): Likewise.
12412         * modules/crypto/hmac-md5 (License): Likewise.
12413         * modules/crypto/hmac-sha1 (License): Likewise.
12414         * modules/crypto/md2-tests (License): Likewise.
12415         * modules/crypto/md4-tests (License): Likewise.
12416         * modules/crypto/md5 (License): Likewise.
12417         * modules/crypto/rijndael (License): Likewise.
12418         * modules/crypto/sha1 (License): Likewise.
12419         * modules/memxor (License): Likewise.
12420
12421 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
12422         and Bruno Haible  <bruno@clisp.org>
12423
12424         * NEWS: Describe interface changes to human, xstrtol.
12425         * lib/human.h: Include <xstrtol.h>.
12426         (human_options): Return enum strtol_error, not int.  Remove
12427         bool arg; take int * instead.
12428         * lib/human.c: Don't include "gettext.h".
12429         (_): Remove; no longer used.
12430         Don't include <xstrtol.h>, since human.h does it.
12431         (human_options): Adjust to abovementioned interface changes.
12432         Do not report error to stderr; that's now the caller's
12433         responsibility.
12434         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
12435         interface change.
12436         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
12437         Str, Argument_type_string.  All uses changed.  Put " argument"
12438         in diagnostics to make them clearer.  Change wording of suffix
12439         message for clarity.
12440         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
12441         Argument_type_string.
12442         (STRTOL_FATAL_WARN): Remove; no longer used.
12443         * modules/human (Depends-on): Remove gettext-h.
12444
12445 2007-08-06  Simon Josefsson  <simon@josefsson.org>
12446
12447         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
12448
12449 2007-07-31  Bruno Haible  <bruno@clisp.org>
12450
12451         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
12452         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
12453         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
12454
12455 2007-07-31  Bruno Haible  <bruno@clisp.org>
12456
12457         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
12458         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
12459
12460 2007-07-30  Bruno Haible  <bruno@clisp.org>
12461
12462         * modules/base64 (License): Use the synonymous term "LGPLv2+".
12463         * modules/c-ctype (License): Likewise.
12464         * modules/c-strcase (License): Likewise.
12465         * modules/check-version (License): Likewise.
12466         * modules/iconv (License): Likewise.
12467         * modules/iconv_open (License): Likewise.
12468         * modules/read-file (License): Likewise.
12469         * modules/striconv (License): Likewise.
12470         * modules/strverscmp (License): Likewise.
12471         * modules/vasprintf (License): Likewise.
12472         * modules/crypto/des (License): Likewise.
12473         * modules/crypto/gc (License): Likewise.
12474         * modules/crypto/gc-arcfour (License): Likewise.
12475         * modules/crypto/gc-arctwo (License): Likewise.
12476         * modules/crypto/gc-des (License): Likewise.
12477         * modules/crypto/gc-hmac-md5 (License): Likewise.
12478         * modules/crypto/gc-hmac-sha1 (License): Likewise.
12479         * modules/crypto/gc-md2 (License): Likewise.
12480         * modules/crypto/gc-md4 (License): Likewise.
12481         * modules/crypto/gc-md5 (License): Likewise.
12482         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
12483         * modules/crypto/gc-random (License): Likewise.
12484         * modules/crypto/gc-rijndael (License): Likewise.
12485         * modules/crypto/gc-sha1 (License): Likewise.
12486         * modules/crypto/md2 (License): Likewise.
12487         * modules/crypto/md4 (License): Likewise.
12488
12489 2007-07-30  Jim Meyering  <jim@meyering.net>
12490
12491         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
12492         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
12493         it has valid stat data.  This bug would cause du not to count the
12494         sizes of inaccessible directories.
12495         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
12496         in <http://bugzilla.redhat.com/250077>.
12497
12498 2007-07-25  Peter O'Gorman  <peter@pogma.com>
12499             Bruno Haible  <bruno@clisp.org>
12500
12501         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
12502         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
12503         #include_next, gives a diagnostic about it, but reports no error in
12504         the exit code.
12505         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
12506
12507 2007-07-24  Ben Pfaff  <blp@gnu.org>
12508
12509         Improve name: "count-one-bits" is better than "popcount".
12510         * MODULES.html.sh: Update name.
12511         * lib/popcount.h: Renamed lib/count-one-bits.h.
12512         (popcount): Renamed count_one_bits.
12513         (popcountl): Renamed count_one_bits_l.
12514         (popcountll): Renamed count_one_bits_ll.
12515         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
12516         * modules/popcount: Renamed module/count-one-bits.
12517         * modules/popcount-tests: Renamed module/count-one-bits-tests.
12518         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
12519
12520 2007-07-23  Ben Pfaff  <blp@gnu.org>
12521
12522         * lib/popcount.h (popcount32): Reduce size of constants, to allow
12523         better code generation, and add U to large constants to avoid
12524         warnings, in non-GCC case.
12525         Suggested by Bruno Haible.
12526
12527 2007-07-23  Ben Pfaff  <blp@gnu.org>
12528
12529         * lib/popcount.h: Use verify_true instead of if...abort.
12530         * modules/popcount: Depend on verify module.
12531         Suggested by Jim Meyering.
12532
12533 2007-07-23  Bruno Haible  <bruno@clisp.org>
12534
12535         * gnulib-tool (func_import): Create a .cvsignore file also when the
12536         directory is not yet in CVS but the toplevel directory is. When
12537         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
12538         Reported by Karl Berry.
12539
12540 2007-07-22  Ben Pfaff  <blp@gnu.org>
12541
12542         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
12543         case.
12544         Suggested by Eric Blake.
12545
12546 2007-07-22  Ben Pfaff  <blp@gnu.org>
12547
12548         New module: popcount.
12549         * MODULES.html.sh: Add popcount.
12550         * modules/popcount: New file.
12551         * modules/popcount-tests: New file.
12552         * tests/test-popcount.c: New file.
12553         * lib/popcount.h: New file.
12554         * m4/popcount.m4: New file.
12555
12556 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12557
12558         * build-aux/announce-gen: Update to GPLv3.
12559
12560         * build-aux/config.guess: Update from config.
12561
12562 2007-07-21  Bruno Haible  <bruno@clisp.org>
12563
12564         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
12565         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
12566
12567 2007-07-20  Jim Meyering  <jim@meyering.net>
12568
12569         * check-module: Diagnose a self-dependency.
12570
12571 2007-07-19  Bruno Haible  <bruno@clisp.org>
12572
12573         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
12574         empty.
12575         Reported by Eric Blake.
12576
12577 2007-07-18  Bruno Haible  <bruno@clisp.org>
12578
12579         * gnulib-tool: New options --po-base, --po-domain.
12580         (func_usage): Document them.
12581         (pobase, po_domain): New variables.
12582         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
12583         DEFAULT_TEXT_DOMAIN.
12584         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
12585         (func_import): Consider pobase and po_domain. Create a po/ directory.
12586         (func_create_testdir): Set pobase and po_domain to empty.
12587         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
12588         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
12589
12590 2007-07-18  Bruno Haible  <bruno@clisp.org>
12591
12592         * gnulib-tool (func_get_automake_snippet): Synthesize also an
12593         EXTRA_DIST augmentation for files in build-aux/.
12594
12595 2007-07-16  Bruno Haible  <bruno@clisp.org>
12596
12597         * modules/lseek (License): Use the synonymous term "LGPLv2+".
12598         * modules/getdelim (License): Likewise.
12599
12600 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12601
12602         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
12603         * modules/d-type (License): Likewise.
12604         * modules/extensions (License): Likewise.
12605         * modules/fnmatch (License): Likewise.
12606         * modules/fseeko (License): Likewise.
12607         * modules/getaddrinfo (License): Likewise.
12608         * modules/getline (License): Likewise.
12609         * modules/getlogin_r (License): Likewise.
12610         * modules/getpass (License): Likewise.
12611         * modules/gettimeofday (License): Likewise.
12612         * modules/glob (License): Likewise.
12613         * modules/inet_ntop (License): Likewise.
12614         * modules/malloc (License): Likewise.
12615         * modules/malloca (License): Likewise.
12616         * modules/memmem (License): Likewise.
12617         * modules/mempcpy (License): Likewise.
12618         * modules/memset (License): Likewise.
12619         * modules/minmax (License): Likewise.
12620         * modules/mktime (License): Likewise.
12621         * modules/netinet_in (License): Likewise.
12622         * modules/pathmax (License): Likewise.
12623         * modules/poll (License): Likewise.
12624         * modules/regex (License): Likewise.
12625         * modules/snprintf (License): Likewise.
12626         * modules/stdbool (License): Likewise.
12627         * modules/stdint (License): Likewise.
12628         * modules/stdio (License): Likewise.
12629         * modules/strcase (License): Likewise.
12630         * modules/strcasestr (License): Likewise.
12631         * modules/strdup (License): Likewise.
12632         * modules/string (License): Likewise.
12633         * modules/strndup (License): Likewise.
12634         * modules/strnlen (License): Likewise.
12635         * modules/strpbrk (License): Likewise.
12636         * modules/strptime (License): Likewise.
12637         * modules/strsep (License): Likewise.
12638         * modules/sys_select (License): Likewise.
12639         * modules/sys_socket (License): Likewise.
12640         * modules/sys_stat (License): Likewise.
12641         * modules/sys_time (License): Likewise.
12642         * modules/time (License): Likewise.
12643         * modules/time_r (License): Likewise.
12644         * modules/timegm (License): Likewise.
12645         * modules/unistd (License): Likewise.
12646         * modules/vsnprintf (License): Likewise.
12647         * modules/wctype (License): Likewise.
12648
12649 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12650
12651         * modules/argz (License): LGPLv2+.
12652
12653 2007-07-15  Karl Berry  <karl@gnu.org>
12654
12655         * doc/gnulib.texi: revise node structure per new fdl.texi.
12656
12657 2007-07-14  Bruno Haible  <bruno@clisp.org>
12658
12659         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
12660         the output file.
12661         * lib/uniname/uninames.h: Regenerated.
12662
12663 2007-07-14  Karl Berry  <karl@gnu.org>
12664
12665         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
12666         omitting sectioning and index commands.
12667
12668 2007-07-13  Bruno Haible  <bruno@clisp.org>
12669
12670         New gnulib-tool option --more-symlinks.
12671         * gnulib-tool (func_usage): Document --more-symlinks.
12672         (do_copyrights): New variable.
12673         Recognize option --more-symlinks.
12674         (func_import): Don't add a copyright notice transform to
12675         sed_transform_lib_file if do_copyrights is empty.
12676
12677 2007-07-13  Bruno Haible  <bruno@clisp.org>
12678
12679         * lib/vasnprintf.c (decimal_point_char): Define also if
12680         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
12681         && !NEED_PRINTF_DIRECTIVE_A.
12682         Reported by Clemens Koller <clemens.koller@anagramm.de> via
12683         Gary V. Vaughan <gary@gnu.org>.
12684
12685 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12686
12687         * lib/inttypes_.h: Undo previous change, since it was fixed
12688         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
12689
12690 2007-07-13  Bruno Haible  <bruno@clisp.org>
12691
12692         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
12693         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
12694
12695 2007-07-13  Jim Meyering  <jim@meyering.net>
12696
12697         df: Don't fail for Tru64's "file-on-file mount".
12698         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
12699         so we fall through and use statfs instead.  Details here:
12700         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
12701         Reported by Albert Chin.
12702
12703 2007-07-13  Bruno Haible  <bruno@clisp.org>
12704
12705         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
12706         * modules/configmake (License): Likewise.
12707         * modules/gettext (License): Likewise.
12708         * modules/gettext-h (License): Likewise.
12709         * modules/include_next (License): Likewise.
12710         * modules/link-warning (License): Likewise.
12711         * modules/localcharset (License): Likewise.
12712         * modules/localename (License): Likewise.
12713         * modules/lock (License): Likewise.
12714         * modules/relocatable-lib-lgpl (License): Likewise.
12715         * modules/size_max (License): Likewise.
12716         * modules/vasnprintf (License): Likewise.
12717         * modules/wchar (License): Likewise.
12718         * modules/xsize (License): Likewise.
12719
12720 2007-07-13  Bruno Haible  <bruno@clisp.org>
12721
12722         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
12723         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
12724
12725 2007-07-12  Bruno Haible  <bruno@clisp.org>
12726
12727         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
12728         in the modules files.
12729
12730 2007-07-11  Karl Berry  <karl@gnu.org>
12731
12732         * MODULES.html.sh (func_module): use
12733          sed -e '\|^'"${includefile}"'$|d'
12734          instead of /.../d, to avoid errors on $includefile's containing /.
12735
12736 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
12737
12738         * gnulib-tool (func_import): Avoid duplication of --avoid
12739         statements
12740         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
12741         names to `_' in variable names.
12742
12743 2007-07-10  Eric Blake  <ebb9@byu.net>
12744
12745         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
12746         * NEWS: Document this change.
12747
12748 2007-07-08  Bruno Haible  <bruno@clisp.org>
12749
12750         Update to Unicode 5.0.
12751         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
12752         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
12753         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
12754         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
12755         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
12756         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
12757         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
12758         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
12759         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
12760         U+10A3F, U+1D242..U+1D244.
12761         (nonspacing_table_ind): Update.
12762         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
12763         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
12764
12765 2007-07-08  Bruno Haible  <bruno@clisp.org>
12766
12767         Update to Unicode 5.0.
12768         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
12769         code transform. Extend the name index field of unicode_name_to_code and
12770         unicode_code_to_name from 16 to 24 bits.
12771         * lib/uniname/uniname.c (unicode_character_name,
12772         unicode_name_character): Add the range 0x12xxx to the code transform.
12773         * lib/uniname/uninames.h: Regenerated.
12774         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
12775
12776 2007-07-07  Bruno Haible  <bruno@clisp.org>
12777
12778         * modules/wcwidth-tests: New file.
12779         * tests/test-wcwidth.c: New file.
12780
12781         Work around MacOS X wcwidth() bug.
12782         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
12783         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
12784         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
12785         original wcwidth in non-UTF-8 locales.
12786         * modules/wcwidth (Depends-on): Add localcharset, streq,
12787         uniwidth/width.
12788         * doc/functions/wcwidth.texi: Update.
12789
12790 2007-07-07  Bruno Haible  <bruno@clisp.org>
12791
12792         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
12793         (wcwidth): New declaration.
12794         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
12795         macros.
12796         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
12797         here. Prepare for creating <wchar.h> unconditionally.
12798         * modules/wchar (Depends-on): Add link-warning.
12799         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
12800         REPLACE_WCWIDTH, and GL_LINK_WARNING.
12801         * lib/wcwidth.h: Remove file.
12802         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
12803         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
12804         * modules/wcwidth (Files): Remove lib/wcwidth.h.
12805         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
12806         (Include): Replace wcwidth.h with <wchar.h>.
12807         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
12808         * lib/mbchar.h: Don't include wcwidth.h.
12809         * lib/mbswidth.c: Likewise.
12810         * NEWS: Mention the change.
12811
12812 2007-07-07  Bruno Haible  <bruno@clisp.org>
12813
12814         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
12815         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
12816         definition with an external declaration.
12817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
12818         defined as a function. Remove AC_C_INLINE requirement.
12819         * modules/wcwidth (Files): Add lib/wcwidth.c.
12820         (Makefile.am): Remove redundant statement.
12821
12822 2007-07-07  Bruno Haible  <bruno@clisp.org>
12823
12824         * MODULES.html.sh (Unicode string functions): Add the new modules.
12825
12826         * tests/uniwidth/test-u32-strwidth.c: New file.
12827         * modules/uniwidth/u32-strwidth-tests: New file.
12828
12829         * lib/uniwidth/u32-strwidth.c: New file.
12830         * modules/uniwidth/u32-strwidth: New file.
12831
12832         * tests/uniwidth/test-u16-strwidth.c: New file.
12833         * modules/uniwidth/u16-strwidth-tests: New file.
12834
12835         * lib/uniwidth/u16-strwidth.c: New file.
12836         * modules/uniwidth/u16-strwidth: New file.
12837
12838         * tests/uniwidth/test-u8-strwidth.c: New file.
12839         * modules/uniwidth/u8-strwidth-tests: New file.
12840
12841         * lib/uniwidth/u8-strwidth.c: New file.
12842         * modules/uniwidth/u8-strwidth: New file.
12843
12844         * tests/uniwidth/test-u32-width.c: New file.
12845         * modules/uniwidth/u32-width-tests: New file.
12846
12847         * lib/uniwidth/u32-width.c: New file.
12848         * modules/uniwidth/u32-width: New file.
12849
12850         * tests/uniwidth/test-u16-width.c: New file.
12851         * modules/uniwidth/u16-width-tests: New file.
12852
12853         * lib/uniwidth/u16-width.c: New file.
12854         * modules/uniwidth/u16-width: New file.
12855
12856         * tests/uniwidth/test-u8-width.c: New file.
12857         * modules/uniwidth/u8-width-tests: New file.
12858
12859         * lib/uniwidth/u8-width.c: New file.
12860         * modules/uniwidth/u8-width: New file.
12861
12862         * tests/uniwidth/test-uc_width.c: New file.
12863         * modules/uniwidth/width-tests: New file.
12864
12865         * lib/uniwidth/width.c: New file, from GNU libiconv.
12866         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
12867         * modules/uniwidth/width: New file.
12868
12869         * lib/uniwidth.h: New file, from GNU libiconv.
12870         * modules/uniwidth/base: New file.
12871
12872 2007-07-07  Bruno Haible  <bruno@clisp.org>
12873
12874         * lib/uniname.h: New file, from GNU gettext.
12875         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
12876         * lib/uniname/uninames.h: New file, from GNU gettext.
12877         * lib/uniname/uniname.c: New file, from GNU gettext.
12878         * tests/uniname/test-uninames.sh: New file.
12879         * tests/uniname/test-uninames.c: New file, from GNU gettext.
12880         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
12881         * modules/uniname/base: New file.
12882         * modules/uniname/uniname: New file.
12883         * modules/uniname/uniname-tests: New file.
12884         * MODULES.html.sh (Unicode string functions): Add the new modules.
12885
12886 2007-07-06  Bruno Haible  <bruno@clisp.org>
12887
12888         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
12889
12890 2007-07-06  Bruno Haible  <bruno@clisp.org>
12891
12892         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
12893         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
12894         includes <cygwin/sys_time.h> which includes <sys/select.h> which
12895         include <sys/time.h>.
12896         Reported by Eric Blake.
12897
12898 2007-07-06  Eric Blake  <ebb9@byu.net>
12899
12900         Fix testing canonicalize on cygwin.
12901         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12902         Revert patch from 2007-06-19.
12903         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
12904         canonicalize module is also in use.
12905         * tests/test-canonicalize.c: New file.
12906         * tests/test-canonicalize.sh: Likewise.
12907         * modules/canonicalize-tests: Likewise.
12908
12909 2007-07-06  Jim Meyering  <jim@meyering.net>
12910
12911         * lib/getugroups.c (getugroups): Detect getgrent failure.
12912         Adjust comment to reflect reality: this function may return -1.
12913
12914 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12915
12916         * build-aux/bootstrap (TP_URL,get_translations): Update to use
12917         the new TP address.
12918         (usage): Fix typo
12919         (gnulib_mk): New variable.
12920
12921 2007-07-05  Jim Meyering  <jim@meyering.net>
12922
12923         Don't let endgrent clobber errno, no matter how improbable.
12924         * lib/getugroups.c (getugroups): Save and restore errno around
12925         endgrent call.
12926
12927         Close the group DB even when failing with 2^31 or more members.
12928         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
12929
12930 2007-07-04  Jim Meyering  <jim@meyering.net>
12931
12932         * lib/getugroups.h: New file.
12933         * lib/getugroups.c: Include "getugroups.h".
12934         Remove uses of "register" keyword.
12935         Move local variable, "cp", down into scope where used.
12936         Give "username" parameter the "const" attribute.
12937         * modules/getugroups (Files): Add lib/getugroups.h
12938
12939 2007-07-04  Karl Berry  <karl@gnu.org>
12940
12941         * MODULES.html.sh (func_all_modules): Complete rename of
12942         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
12943
12944 2007-07-02  Bruno Haible  <bruno@clisp.org>
12945
12946         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
12947         mode, when inttypes.h comes from gnulib.
12948         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12949
12950 2007-07-02  Simon Josefsson  <simon@josefsson.org>
12951
12952         * NEWS: Mention lgpl module name change.
12953
12954         * modules/lgpl-2.1: Renamed from lgpl.
12955
12956         * NEWS: Mention gpl module name change.
12957
12958         * modules/gpl-3.0: New file, based on gpl-2.0.
12959
12960         * modules/gpl-2.0: Renamed from gpl.
12961
12962         * modules/gpl: Fix filename, doc/gpl.texi is now found at
12963         doc/gpl-2.0.texi.
12964
12965 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12966
12967         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
12968         #define __STDC_LIMIT_MACROS temporarily while including
12969         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
12970         Problem reported by Joel E. Denny in
12971         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
12972
12973 2007-07-01  Bruno Haible  <bruno@clisp.org>
12974
12975         * lib/unistdio.h: New file.
12976         * lib/unistdio/u-asnprintf.h: New file.
12977         * lib/unistdio/u-asprintf.h: New file.
12978         * lib/unistdio/u-printf-args.c: New file.
12979         * lib/unistdio/u-printf-args.h: New file.
12980         * lib/unistdio/u-printf-parse.h: New file.
12981         * lib/unistdio/u-snprintf.h: New file.
12982         * lib/unistdio/u-sprintf.h: New file.
12983         * lib/unistdio/u-vasprintf.h: New file.
12984         * lib/unistdio/u-vsnprintf.h: New file.
12985         * lib/unistdio/u-vsprintf.h: New file.
12986         * lib/unistdio/ulc-asnprintf.c: New file.
12987         * lib/unistdio/ulc-asprintf.c: New file.
12988         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
12989         * lib/unistdio/ulc-printf-parse.c: New file.
12990         * lib/unistdio/ulc-snprintf.c: New file.
12991         * lib/unistdio/ulc-sprintf.c: New file.
12992         * lib/unistdio/ulc-vasnprintf.c: New file.
12993         * lib/unistdio/ulc-vasprintf.c: New file.
12994         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
12995         * lib/unistdio/ulc-vsnprintf.c: New file.
12996         * lib/unistdio/ulc-vsprintf.c: New file.
12997         * lib/unistdio/u8-asnprintf.c: New file.
12998         * lib/unistdio/u8-asprintf.c: New file.
12999         * lib/unistdio/u8-printf-parse.c: New file.
13000         * lib/unistdio/u8-snprintf.c: New file.
13001         * lib/unistdio/u8-sprintf.c: New file.
13002         * lib/unistdio/u8-vasnprintf.c: New file.
13003         * lib/unistdio/u8-vasprintf.c: New file.
13004         * lib/unistdio/u8-vsnprintf.c: New file.
13005         * lib/unistdio/u8-vsprintf.c: New file.
13006         * lib/unistdio/u8-u8-asnprintf.c: New file.
13007         * lib/unistdio/u8-u8-asprintf.c: New file.
13008         * lib/unistdio/u8-u8-snprintf.c: New file.
13009         * lib/unistdio/u8-u8-sprintf.c: New file.
13010         * lib/unistdio/u8-u8-vasnprintf.c: New file.
13011         * lib/unistdio/u8-u8-vasprintf.c: New file.
13012         * lib/unistdio/u8-u8-vsnprintf.c: New file.
13013         * lib/unistdio/u8-u8-vsprintf.c: New file.
13014         * lib/unistdio/u16-asnprintf.c: New file.
13015         * lib/unistdio/u16-asprintf.c: New file.
13016         * lib/unistdio/u16-printf-parse.c: New file.
13017         * lib/unistdio/u16-snprintf.c: New file.
13018         * lib/unistdio/u16-sprintf.c: New file.
13019         * lib/unistdio/u16-vasnprintf.c: New file.
13020         * lib/unistdio/u16-vasprintf.c: New file.
13021         * lib/unistdio/u16-vsnprintf.c: New file.
13022         * lib/unistdio/u16-vsprintf.c: New file.
13023         * lib/unistdio/u16-u16-asnprintf.c: New file.
13024         * lib/unistdio/u16-u16-asprintf.c: New file.
13025         * lib/unistdio/u16-u16-snprintf.c: New file.
13026         * lib/unistdio/u16-u16-sprintf.c: New file.
13027         * lib/unistdio/u16-u16-vasnprintf.c: New file.
13028         * lib/unistdio/u16-u16-vasprintf.c: New file.
13029         * lib/unistdio/u16-u16-vsnprintf.c: New file.
13030         * lib/unistdio/u16-u16-vsprintf.c: New file.
13031         * lib/unistdio/u32-asnprintf.c: New file.
13032         * lib/unistdio/u32-asprintf.c: New file.
13033         * lib/unistdio/u32-printf-parse.c: New file.
13034         * lib/unistdio/u32-snprintf.c: New file.
13035         * lib/unistdio/u32-sprintf.c: New file.
13036         * lib/unistdio/u32-vasnprintf.c: New file.
13037         * lib/unistdio/u32-vasprintf.c: New file.
13038         * lib/unistdio/u32-vsnprintf.c: New file.
13039         * lib/unistdio/u32-vsprintf.c: New file.
13040         * lib/unistdio/u32-u32-asnprintf.c: New file.
13041         * lib/unistdio/u32-u32-asprintf.c: New file.
13042         * lib/unistdio/u32-u32-snprintf.c: New file.
13043         * lib/unistdio/u32-u32-sprintf.c: New file.
13044         * lib/unistdio/u32-u32-vasnprintf.c: New file.
13045         * lib/unistdio/u32-u32-vasprintf.c: New file.
13046         * lib/unistdio/u32-u32-vsnprintf.c: New file.
13047         * lib/unistdio/u32-u32-vsprintf.c: New file.
13048         * tests/unistdio/test-ulc-asnprintf1.c: New file.
13049         * tests/unistdio/test-ulc-asnprintf1.h: New file.
13050         * tests/unistdio/test-ulc-printf1.h: New file.
13051         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
13052         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
13053         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
13054         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
13055         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
13056         * tests/unistdio/test-ulc-vasprintf1.c: New file.
13057         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
13058         * tests/unistdio/test-ulc-vsprintf1.c: New file.
13059         * tests/unistdio/test-u8-asnprintf1.c: New file.
13060         * tests/unistdio/test-u8-asnprintf1.h: New file.
13061         * tests/unistdio/test-u8-printf1.h: New file.
13062         * tests/unistdio/test-u8-vasnprintf1.c: New file.
13063         * tests/unistdio/test-u8-vasnprintf2.c: New file.
13064         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
13065         * tests/unistdio/test-u8-vasnprintf3.c: New file.
13066         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
13067         * tests/unistdio/test-u8-vasprintf1.c: New file.
13068         * tests/unistdio/test-u8-vsnprintf1.c: New file.
13069         * tests/unistdio/test-u8-vsprintf1.c: New file.
13070         * tests/unistdio/test-u16-asnprintf1.c: New file.
13071         * tests/unistdio/test-u16-asnprintf1.h: New file.
13072         * tests/unistdio/test-u16-printf1.h: New file.
13073         * tests/unistdio/test-u16-vasnprintf1.c: New file.
13074         * tests/unistdio/test-u16-vasnprintf2.c: New file.
13075         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
13076         * tests/unistdio/test-u16-vasnprintf3.c: New file.
13077         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
13078         * tests/unistdio/test-u16-vasprintf1.c: New file.
13079         * tests/unistdio/test-u16-vsnprintf1.c: New file.
13080         * tests/unistdio/test-u16-vsprintf1.c: New file.
13081         * tests/unistdio/test-u32-asnprintf1.c: New file.
13082         * tests/unistdio/test-u32-asnprintf1.h: New file.
13083         * tests/unistdio/test-u32-printf1.h: New file.
13084         * tests/unistdio/test-u32-vasnprintf1.c: New file.
13085         * tests/unistdio/test-u32-vasnprintf2.c: New file.
13086         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
13087         * tests/unistdio/test-u32-vasnprintf3.c: New file.
13088         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
13089         * tests/unistdio/test-u32-vasprintf1.c: New file.
13090         * tests/unistdio/test-u32-vsnprintf1.c: New file.
13091         * tests/unistdio/test-u32-vsprintf1.c: New file.
13092         * modules/unistdio/base: New file.
13093         * modules/unistdio/u-printf-args: New file.
13094         * modules/unistdio/ulc-asnprintf: New file.
13095         * modules/unistdio/ulc-asprintf: New file.
13096         * modules/unistdio/ulc-fprintf: New file.
13097         * modules/unistdio/ulc-printf-parse: New file.
13098         * modules/unistdio/ulc-snprintf: New file.
13099         * modules/unistdio/ulc-sprintf: New file.
13100         * modules/unistdio/ulc-vasnprintf: New file.
13101         * modules/unistdio/ulc-vasprintf: New file.
13102         * modules/unistdio/ulc-vfprintf: New file.
13103         * modules/unistdio/ulc-vsnprintf: New file.
13104         * modules/unistdio/ulc-vsprintf: New file.
13105         * modules/unistdio/u8-asnprintf: New file.
13106         * modules/unistdio/u8-asprintf: New file.
13107         * modules/unistdio/u8-printf-parse: New file.
13108         * modules/unistdio/u8-snprintf: New file.
13109         * modules/unistdio/u8-sprintf: New file.
13110         * modules/unistdio/u8-vasnprintf: New file.
13111         * modules/unistdio/u8-vasprintf: New file.
13112         * modules/unistdio/u8-vsnprintf: New file.
13113         * modules/unistdio/u8-vsprintf: New file.
13114         * modules/unistdio/u8-u8-asnprintf: New file.
13115         * modules/unistdio/u8-u8-asprintf: New file.
13116         * modules/unistdio/u8-u8-snprintf: New file.
13117         * modules/unistdio/u8-u8-sprintf: New file.
13118         * modules/unistdio/u8-u8-vasnprintf: New file.
13119         * modules/unistdio/u8-u8-vasprintf: New file.
13120         * modules/unistdio/u8-u8-vsnprintf: New file.
13121         * modules/unistdio/u8-u8-vsprintf: New file.
13122         * modules/unistdio/u16-asnprintf: New file.
13123         * modules/unistdio/u16-asprintf: New file.
13124         * modules/unistdio/u16-printf-parse: New file.
13125         * modules/unistdio/u16-snprintf: New file.
13126         * modules/unistdio/u16-sprintf: New file.
13127         * modules/unistdio/u16-vasnprintf: New file.
13128         * modules/unistdio/u16-vasprintf: New file.
13129         * modules/unistdio/u16-vsnprintf: New file.
13130         * modules/unistdio/u16-vsprintf: New file.
13131         * modules/unistdio/u16-u16-asnprintf: New file.
13132         * modules/unistdio/u16-u16-asprintf: New file.
13133         * modules/unistdio/u16-u16-snprintf: New file.
13134         * modules/unistdio/u16-u16-sprintf: New file.
13135         * modules/unistdio/u16-u16-vasnprintf: New file.
13136         * modules/unistdio/u16-u16-vasprintf: New file.
13137         * modules/unistdio/u16-u16-vsnprintf: New file.
13138         * modules/unistdio/u16-u16-vsprintf: New file.
13139         * modules/unistdio/u32-asnprintf: New file.
13140         * modules/unistdio/u32-asprintf: New file.
13141         * modules/unistdio/u32-printf-parse: New file.
13142         * modules/unistdio/u32-snprintf: New file.
13143         * modules/unistdio/u32-sprintf: New file.
13144         * modules/unistdio/u32-vasnprintf: New file.
13145         * modules/unistdio/u32-vasprintf: New file.
13146         * modules/unistdio/u32-vsnprintf: New file.
13147         * modules/unistdio/u32-vsprintf: New file.
13148         * modules/unistdio/u32-u32-asnprintf: New file.
13149         * modules/unistdio/u32-u32-asprintf: New file.
13150         * modules/unistdio/u32-u32-snprintf: New file.
13151         * modules/unistdio/u32-u32-sprintf: New file.
13152         * modules/unistdio/u32-u32-vasnprintf: New file.
13153         * modules/unistdio/u32-u32-vasprintf: New file.
13154         * modules/unistdio/u32-u32-vsnprintf: New file.
13155         * modules/unistdio/u32-u32-vsprintf: New file.
13156         * modules/unistdio/ulc-asnprintf-tests: New file.
13157         * modules/unistdio/ulc-vasnprintf-tests: New file.
13158         * modules/unistdio/ulc-vasprintf-tests: New file.
13159         * modules/unistdio/ulc-vsnprintf-tests: New file.
13160         * modules/unistdio/ulc-vsprintf-tests: New file.
13161         * modules/unistdio/u8-asnprintf-tests: New file.
13162         * modules/unistdio/u8-vasnprintf-tests: New file.
13163         * modules/unistdio/u8-vasprintf-tests: New file.
13164         * modules/unistdio/u8-vsnprintf-tests: New file.
13165         * modules/unistdio/u8-vsprintf-tests: New file.
13166         * modules/unistdio/u16-asnprintf-tests: New file.
13167         * modules/unistdio/u16-vasnprintf-tests: New file.
13168         * modules/unistdio/u16-vasprintf-tests: New file.
13169         * modules/unistdio/u16-vsnprintf-tests: New file.
13170         * modules/unistdio/u16-vsprintf-tests: New file.
13171         * modules/unistdio/u32-asnprintf-tests: New file.
13172         * modules/unistdio/u32-vasnprintf-tests: New file.
13173         * modules/unistdio/u32-vasprintf-tests: New file.
13174         * modules/unistdio/u32-vsnprintf-tests: New file.
13175         * modules/unistdio/u32-vsprintf-tests: New file.
13176         * MODULES.html.sh (Unicode string functions): Add the new modules.
13177
13178 2007-07-01  Bruno Haible  <bruno@clisp.org>
13179
13180         * lib/sprintf.c (sprintf): Limit the available length estimation,
13181         to avoid address wraparound.
13182         * lib/vsprintf.c (vsprintf): Likewise.
13183         * modules/sprintf-posix (Dependencies): Add stdint.
13184         * modules/vsprintf-posix (Dependencies): Likewise.
13185
13186 2007-07-01  Bruno Haible  <bruno@clisp.org>
13187
13188         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
13189         Windows PATH as well. Conservative double-quoting. Comments.
13190
13191 2007-07-01  Bruno Haible  <bruno@clisp.org>
13192             Eric Blake  <ebb9@byu.net>
13193             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13194
13195         * gnulib-tool (self_abspathname): Fix algorithm to cope with
13196         empty components in $PATH, denoting '.'.
13197
13198 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13199
13200         * gnulib-tool: Fix indentation.
13201         (func_create_megatestdir): Likewise.
13202         Report by Bruno Haible.
13203
13204 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13205
13206         Sync from Automake.
13207         * build-aux/gnupload: Fix shell portability issues with for loops.
13208         Report by Karl Berry.
13209
13210 2007-06-29  Simon Josefsson  <simon@josefsson.org>
13211
13212         * build-aux/maint.mk (POURL): Use translationproject.org.
13213
13214 2007-06-27  Simon Josefsson  <simon@josefsson.org>
13215             Bruno Haible  <bruno@clisp.org>
13216
13217         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
13218         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
13219         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
13220         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
13221         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
13222
13223 2007-06-27  Bruno Haible  <bruno@clisp.org>
13224
13225         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
13226         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
13227
13228 2007-06-26  Karl Berry  <karl@gnu.org>
13229
13230         * MODULES.html.sh: remove xreadlink-with-size.
13231
13232 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13233
13234         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
13235         method that I hope also handles the double-include problem noted
13236         by Bruno Haible in
13237         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
13238
13239 2007-06-23  Bruno Haible  <bruno@clisp.org>
13240
13241         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13242         Don't let the 'mostlyclean' target fail if the last subdirectory could
13243         not be removed.
13244         Reported by Karl Berry.
13245
13246 2007-06-23  Bruno Haible  <bruno@clisp.org>
13247
13248         * gnulib-tool (echo): Add a speedier workaround for ksh.
13249         * tests/test-echo.sh: Likewise.
13250
13251 2007-06-23  Bruno Haible  <bruno@clisp.org>
13252
13253         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
13254         * tests/test-echo.sh: Likewise.
13255
13256 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13257
13258         * gnulib-tool (IFS): Initialize early, so we don't set it to
13259         empty later.
13260         (self_abspathname): Rewrite algorithm to set it, reindent.
13261         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
13262         (func_create_megatestdir): Merge some sed scripts.
13263
13264 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13265
13266         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
13267         exposed by Sun Studio 11 cc on Solaris 8.
13268
13269 2007-06-22  Bruno Haible  <bruno@clisp.org>
13270
13271         * gnulib-tool (echo): Ensure the echo primitive does not interpret
13272         backslashes.
13273         * tests/test-echo.sh: New file.
13274
13275 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13276
13277         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
13278         simplify `sed_replace_build_aux' scripts, they are portable but
13279         echoing them with `echo' is not.
13280         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
13281
13282 2007-06-21  Karl Berry  <karl@gnu.org>
13283
13284         * config/srclist.txt: guess we can't handle the licenses via
13285         srclist at the moment.
13286
13287 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13288
13289         * MODULES.html.sh: Add include_next.
13290         * modules/include_next: New file.
13291
13292 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13293
13294         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
13295         INCLUDE_NEXT.
13296         (gl_CHECK_NEXT_HEADERS): New macro.
13297         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
13298         the obsolescent gl_ABSOLUTE_HEADER.
13299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
13300         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
13301         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
13302         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13303         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13304         * m4/math_h.m4 (gl_MATH_H): Likewise.
13305         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
13306         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13307         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13308         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13309         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13310         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13311         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13312         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13313         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13314         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13315         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13316         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
13317         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13318         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13319         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13320         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13321         * m4/inttypes.m4 (gl_INTTYPES_H): Define
13322         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
13323         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
13324         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
13325         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
13326         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
13327         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
13328         * lib/float_.h: Likewise.
13329         * lib/inttypes_.h: Likewise.
13330         * lib/math_.h: Likewise.
13331         * lib/search_.h: Likewise.
13332         * lib/signal_.h: Likewise.
13333         * lib/stdint_.h: Likewise.
13334         * lib/stdio_.h: Likewise.
13335         * lib/stdlib_.h: Likewise.
13336         * lib/string_.h: Likewise.
13337         * lib/sys_stat_.h: Likewise.
13338         * lib/sys_time_.h: Likewise.
13339         * lib/time_.h: Likewise.
13340         * lib/unistd_.h: Likewise.
13341         * lib/wchar_.h: Likewise.
13342         * lib/wctype_.h: Likewise.
13343         * lib/dirent_.h: Likewise.
13344         * lib/iconv_.h: Likewise.
13345         * lib/locale_.h: Likewise.
13346         * lib/netinet_in_.h: Likewise.
13347         * lib/sys_select_.h: Likewise.
13348         * lib/sys_socket_.h: Likewise.
13349         * lib/sysexits_.h: Likewise.
13350         * modules/fcntl (Depends-on): Depend on include_next, not
13351         absolute_header.
13352         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
13353         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
13354         * modules/fchdir: Likewise.
13355         * modules/float: Likewise.
13356         * modules/iconv_open: Likewise.
13357         * modules/inttypes: Likewise.
13358         * modules/locale: Likewise.
13359         * modules/math: Likewise.
13360         * modules/netinet_in: Likewise.
13361         * modules/search: Likewise.
13362         * modules/signal: Likewise.
13363         * modules/stdint: Likewise.
13364         * modules/stdio: Likewise.
13365         * modules/stdlib: Likewise.
13366         * modules/string: Likewise.
13367         * modules/sys_select: Likewise.
13368         * modules/sys_socket: Likewise.
13369         * modules/sys_stat: Likewise.
13370         * modules/sys_time: Likewise.
13371         * modules/sysexits: Likewise.
13372         * modules/time: Likewise.
13373         * modules/unistd: Likewise.
13374         * modules/wchar: Likewise.
13375         * modules/wctype: Likewise.
13376         * modules/sys_stat: Change maintainer to "all".
13377         * modules/unistd: Likewise.
13378
13379 2007-06-20  Karl Berry  <karl@gnu.org>
13380
13381         * config/srclist.txt: track www changes in license files.
13382
13383 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
13384
13385         * build-aux/bootstrap: Remove stray dot.
13386         Make sure build_aux settings are honored when linking
13387         gnulib_extra_files.
13388
13389 2007-06-19  Eric Blake  <ebb9@byu.net>
13390
13391         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13392         Allow compilation on cygwin.
13393
13394 2007-06-19  Jim Meyering  <jim@meyering.net>
13395
13396         xreadlink-with-size: Remove module.  No longer used.
13397         Ex-callers now use xreadlink or mreadlink-with-size.
13398         * modules/xreadlink-with-size: Remove module.
13399         * lib/xreadlink-with-size.c: Remove file.
13400         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
13401         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
13402         just before the function definition *is* accurate.
13403
13404         Eliminate one way canonicalize_filename_mode could exit.
13405         * lib/canonicalize.c (canonicalize_filename_mode):
13406         Use mreadlink_with_size, not xreadlink_with_size.
13407
13408 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13409
13410         Detect porting problems to FreeBSD/arm, which has time_t wider than
13411         long int.  Original problem reported for GNU diff by Xin Li in
13412         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
13413         * modules/getdate (Depends-on): Add intprops, verify.
13414         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
13415         is an integer type no wider than long int.
13416
13417 2007-06-18  Jim Meyering  <jim@meyering.net>
13418
13419         New module: mreadlink-with-size.
13420         * MODULES.html.sh: Add mreadlink-with-size.
13421         * modules/mreadlink-with-size: New module
13422         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
13423         not xreadlink-with-size.
13424         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
13425
13426 2007-06-16  Bruno Haible  <bruno@clisp.org>
13427
13428         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
13429         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
13430         Reported by Gary V. Vaughan <gary@gnu.org>.
13431
13432 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13433
13434         Revamp lchown so that it lives in unistd.h where it belongs.
13435         * lib/lchown.h: Remove.
13436         * lib/dirchownmod.c: Don't include lib/lchown.h.
13437         * lib/fchownat.c: Likewise.
13438         * lib/openat.c: Likewise.
13439         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
13440         does not follow symlinks.
13441         (EOPNOTSUPP): Define if not defined.
13442         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
13443         is defined to 0.
13444         (lchown): New decl.
13445         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
13446         Do not check for lchown decl.
13447         Set REPLACE_LCHOWN.
13448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
13449         REPLACE_LCHOWN.
13450         * modules/chown: Make it clear it follows symlinks.
13451         * modules/lchown: Make it clear it doesn't follow symlinks.
13452         (Files): Remove lib/lchown.h
13453         (Depends-on): Add unistd.
13454         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
13455         (Include): Include <unistd.h>, not "lchown.h".
13456         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
13457         REPLACE_LCHOWN.
13458
13459 2007-06-15  Jim Meyering  <jim@meyering.net>
13460
13461         Change license (GPL to LGPL) of fsusage and dependents.
13462         * modules/fsusage (License): Change to LGPL.
13463         * modules/full-read (License): Likewise.
13464         * modules/full-write (License): Likewise.
13465         * modules/safe-read (License): Likewise.
13466         * modules/safe-write (License): Likewise.
13467
13468 2007-06-14  Ben Pfaff  <blp@gnu.org>
13469
13470         Missing part of allocsa -> malloca transition.
13471         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
13472         gl_MALLOCA.
13473
13474 2007-06-12  Bruno Haible  <bruno@clisp.org>
13475
13476         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
13477         to ia64, x86_64, i386.
13478         Reported by Eric Blake.
13479
13480 2007-06-12  Bruno Haible  <bruno@clisp.org>
13481
13482         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
13483         cross-compiling to x86_64.
13484
13485 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
13486
13487         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
13488         glitch reported by Ralf Wildenhues in
13489         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
13490
13491         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
13492         Vin Shelton.
13493
13494 2007-06-11  Bruno Haible  <bruno@clisp.org>
13495
13496         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
13497         replacement string.
13498         Reported by Eric Blake.
13499
13500 2007-06-10  Bruno Haible  <bruno@clisp.org>
13501
13502         Prepare vasnprintf code for use with Unicode strings.
13503         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
13504         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
13505         TYPE_U32_STRING.
13506         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
13507         a_u32_string variants.
13508         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13509         * lib/printf-args.c: Don't include config.h and the specification
13510         header if PRINTF_FETCHARGS is already defined.
13511         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13512         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
13513         TYPE_U16_STRING, TYPE_U32_STRING.
13514         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
13515         u16_directive, u16_directives, u32_directive, u32_directives): New
13516         types.
13517         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
13518         New declarations.
13519         * lib/printf-parse.c: Don't include config.h and the specification
13520         header if PRINTF_PARSE is already defined. Eliminate the set of
13521         parameters for WIDE_CHAR_VERSION; the user of this file must provide
13522         them now. Include c-ctype.h.
13523         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
13524         directive and CHAR_T_ONLY_ASCII.
13525         * lib/vasnprintf.c: Don't include config.h and the specification header
13526         if VASNPRINTF is already defined.
13527         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
13528         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
13529         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
13530         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
13531         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
13532         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
13533         code accordingly.
13534         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
13535         pad_ourselves also in this case, with the 'c' and 's' directives, and
13536         with a different notion of "width".
13537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
13538
13539 2007-06-10  Bruno Haible  <bruno@clisp.org>
13540
13541         * modules/unistr/u32-mbsnlen: New file.
13542         * lib/unistr/u32-mbsnlen.c: New file.
13543
13544         * modules/unistr/u16-mbsnlen: New file.
13545         * lib/unistr/u16-mbsnlen.c: New file.
13546
13547         * modules/unistr/u8-mbsnlen: New file.
13548         * lib/unistr/u8-mbsnlen.c: New file.
13549
13550         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
13551         declarations.
13552
13553 2007-06-10  Bruno Haible  <bruno@clisp.org>
13554
13555         * lib/string_.h (mbsnlen): New declaration.
13556         * lib/mbsnlen.c: New file.
13557         * m4/mbsnlen.m4: New file.
13558         * modules/mbsnlen: New file.
13559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
13560         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
13561         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
13562
13563 2007-06-10  Bruno Haible  <bruno@clisp.org>
13564
13565         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
13566
13567 2007-06-10  Bruno Haible  <bruno@clisp.org>
13568
13569         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
13570         * lib/mbuiter.h: Likewise.
13571
13572 2007-06-10  Bruno Haible  <bruno@clisp.org>
13573
13574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
13575         declaration.
13576
13577 2007-06-10  Karl Berry  <karl@gnu.org>
13578
13579         * config/srclist.txt: remove gettext entries, Bruno prefers
13580         to update individually.
13581
13582 2007-06-10  Bruno Haible  <bruno@clisp.org>
13583
13584         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
13585         'maxlen'. Ensure only length + width bytes are allocated, not
13586         length + 1 + width.
13587
13588 2007-06-09  Bruno Haible  <bruno@clisp.org>
13589
13590         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
13591         (CHAR_T): Remove macro.
13592         (VASNPRINTF): Update.
13593
13594 2007-06-09  Bruno Haible  <bruno@clisp.org>
13595
13596         * MODULES.html.sh (Unicode string functions): Add the new modules.
13597
13598         * modules/uniconv/u32-conv-to-enc: New file.
13599         * lib/uniconv/u32-conv-to-enc.c: New file.
13600         * modules/uniconv/u32-conv-to-enc-tests: New file.
13601         * tests/uniconv/test-u32-conv-to-enc.c: New file.
13602
13603         * modules/uniconv/u16-conv-to-enc: New file.
13604         * lib/uniconv/u16-conv-to-enc.c: New file.
13605         * lib/uniconv/u-conv-to-enc.h: New file.
13606         * modules/uniconv/u16-conv-to-enc-tests: New file.
13607         * tests/uniconv/test-u16-conv-to-enc.c: New file.
13608
13609         * modules/uniconv/u8-conv-to-enc: New file.
13610         * lib/uniconv/u8-conv-to-enc.c: New file.
13611         * modules/uniconv/u8-conv-to-enc-tests: New file.
13612         * tests/uniconv/test-u8-conv-to-enc.c: New file.
13613
13614         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13615         u32_conv_to_encoding): New declarations.
13616
13617 2007-06-09  Bruno Haible  <bruno@clisp.org>
13618
13619         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
13620
13621 2007-06-09  Bruno Haible  <bruno@clisp.org>
13622
13623         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
13624         * modules/malloca: Renamed from modules/allocsa, updated.
13625         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
13626         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
13627         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
13628         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
13629         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
13630         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
13631         * modules/xmalloca: Renamed from modules/xallocsa, updated.
13632         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
13633         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
13634         * modules/c-strcasestr (Depends-on): Update.
13635         * lib/c-strcasestr.c: Update.
13636         * modules/c-strstr (Depends-on): Update.
13637         * lib/c-strstr.c: Update.
13638         * modules/canonicalize-lgpl (Depends-on): Update.
13639         * lib/canonicalize-lgpl.c: Update.
13640         * modules/clean-temp (Depends-on): Update.
13641         * lib/clean-temp.c: Update.
13642         * modules/csharpcomp (Depends-on): Update.
13643         * lib/csharpcomp.c: Update.
13644         * modules/csharpexec (Depends-on): Update.
13645         * lib/csharpexec.c: Update.
13646         * modules/javacomp (Depends-on): Update.
13647         * lib/javacomp.c: Update.
13648         * modules/javaexec (Depends-on): Update.
13649         * lib/javaexec.c: Update.
13650         * modules/mbscasestr (Depends-on): Update.
13651         * lib/mbscasestr.c: Update.
13652         * modules/mbsstr (Depends-on): Update.
13653         * lib/mbsstr.c: Update.
13654         * modules/setenv (Depends-on): Update.
13655         * lib/setenv.c: Update.
13656         * modules/strcasestr (Depends-on): Update.
13657         * lib/strcasestr.c: Update.
13658         * modules/striconveha (Depends-on): Update.
13659         * lib/striconveha.c: Update.
13660         * modules/relocatable-prog-wrapper (Files): Update.
13661         * lib/relocwrapper.c: Update.
13662         * build-aux/install-reloc: Update.
13663         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
13664
13665 2007-06-08  Bruno Haible  <bruno@clisp.org>
13666
13667         Port to uClibc.
13668         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
13669         * lib/fpurge.c (fpurge): Likewise.
13670         * lib/freading.c (freading): Likewise.
13671         * lib/fseeko.c (rpl_fseeko): Likewise.
13672         * lib/fseterr.c (fseterr): Likewise.
13673         * lib/fwriting.c (fwriting): Likewise.
13674         * tests/test-fflush.c (main): Avoid a failure on uClibc.
13675
13676 2007-06-08  Bruno Haible  <bruno@clisp.org>
13677
13678         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
13679         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
13680         * modules/gettext (Files): Add m4/intlmacosx.m4.
13681
13682 2007-06-07  Bruno Haible  <bruno@clisp.org>
13683
13684         * modules/localename-tests: New file.
13685         * tests/test-localename.c: New file.
13686
13687         New module 'localename'.
13688         * lib/localename.h: New file.
13689         * lib/localename.c: New file, from GNU gettext.
13690         * m4/localename.m4: New file.
13691         * modules/localename: New file.
13692
13693 2007-06-07  Bruno Haible  <bruno@clisp.org>
13694
13695         Work around the lack of <wchar.h> on some builds of uClibc.
13696         * doc/headers/wchar.texi: Update.
13697         * lib/wchar_.h: Include <wchar.h> only if it exists.
13698         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
13699         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
13700         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
13701         doesn't exist.
13702         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
13703         * modules/mbfile (Depends-on): Add wchar.
13704         * modules/mbiter (Depends-on): Likewise.
13705         * modules/mbuiter (Depends-on): Likewise.
13706         Reported by Simon Josefsson.
13707
13708 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13709
13710         Work around problem reported by Steven M. Schweda in
13711         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
13712         Tru64 5.1B with the Compaq compiler environment installed declares
13713         an 'isblank' function but does not define it in the C library.
13714         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
13715         * lib/regex_internal.h (isblank): Likewise.
13716         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
13717         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13718
13719 2007-06-05  Bruno Haible  <bruno@clisp.org>
13720
13721         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
13722         ia64.
13723         * modules/printf-safe: New file.
13724         * modules/fprintf-posix (Depends-on): Add printf-safe.
13725         * modules/printf-posix (Depends-on): Likewise.
13726         * modules/snprintf-posix (Depends-on): Likewise.
13727         * modules/sprintf-posix (Depends-on): Likewise.
13728         * modules/vasnprintf-posix (Depends-on): Likewise.
13729         * modules/vasprintf-posix (Depends-on): Likewise.
13730         * modules/vfprintf-posix (Depends-on): Likewise.
13731         * modules/vprintf-posix (Depends-on): Likewise.
13732         * modules/vsnprintf-posix (Depends-on): Likewise.
13733         * modules/vsprintf-posix (Depends-on): Likewise.
13734         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13735         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
13736         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
13737         "no" on i386, x86_64, ia64.
13738         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
13739         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13740         on i386, x86_64, ia64.
13741         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
13742         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13743         on i386, x86_64, ia64.
13744         * tests/test-vasnprintf-posix.c: Include float.h.
13745         (LDBL80_WORDS): New macro.
13746         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13747         on i386, x86_64, ia64.
13748         * tests/test-vasprintf-posix.c: Include float.h.
13749         (LDBL80_WORDS): New macro.
13750         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13751         on i386, x86_64, ia64.
13752         * tests/test-snprintf-posix.c: Include float.h.
13753         * tests/test-sprintf-posix.c: Likewise.
13754         * tests/test-vsnprintf-posix.c: Likewise.
13755         * tests/test-vsprintf-posix.c: Likewise.
13756
13757 2007-06-05  Bruno Haible  <bruno@clisp.org>
13758
13759         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
13760         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
13761         non-IEEE numbers on i386, x86_64, ia64.
13762         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
13763         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
13764         * tests/test-isnanl.h: Include float.h.
13765         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
13766
13767 2007-06-05  Bruno Haible  <bruno@clisp.org>
13768
13769         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
13770         also the %a / %A. Handle the %a / %A code before this extra handling.
13771
13772 2007-06-05  Bruno Haible  <bruno@clisp.org>
13773
13774         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
13775         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
13776
13777 2007-06-05  Bruno Haible  <bruno@clisp.org>
13778
13779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
13780         typo in variable name.
13781
13782 2007-06-05  Eric Blake  <ebb9@byu.net>
13783
13784         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
13785         Reported by Simon Josefsson.
13786
13787 2007-06-04  Bruno Haible  <bruno@clisp.org>
13788
13789         Avoid test failures on some PowerPC platforms.
13790         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
13791         Define differently for PowerPC.
13792         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
13793         Reported by Gary V. Vaughan <gary@gnu.org>.
13794
13795 2007-06-02  Bruno Haible  <bruno@clisp.org>
13796
13797         Fix test-stdint failure on FreeBSD/ia64.
13798         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
13799         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
13800         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
13801         * doc/headers/stdint.texi: Update.
13802
13803 2007-06-01  Bruno Haible  <bruno@clisp.org>
13804
13805         * tests/test-binary-io.c (main): Pass a third argument to open().
13806         Reported by Gary V. Vaughan <gary@gnu.org>.
13807
13808 2007-06-01  Bruno Haible  <bruno@clisp.org>
13809
13810         * doc/functions/frexpl.texi: Update for mingw.
13811
13812 2007-06-01  Bruno Haible  <bruno@clisp.org>
13813
13814         * tests/test-lseek.c (main): Disable test of errno for invalid third
13815         argument.
13816         * doc/functions/lseek.texi: Update.
13817         Reported by Gary V. Vaughan <gary@gnu.org>.
13818
13819 2007-05-28  Bruno Haible  <bruno@clisp.org>
13820
13821         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
13822
13823 2007-05-31  Eric Blake  <ebb9@byu.net>
13824
13825         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
13826         cross compiling.
13827
13828 2007-05-30  Eric Blake  <ebb9@byu.net>
13829         and Bruno Haible  <bruno@clisp.org>
13830
13831         Work around mingw test failures exposed by m4-1.4.9b.
13832         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
13833         * tests/test-unistd.c: Disable uid_t and git_t tests for the
13834         moment.
13835
13836 2007-05-30  Bruno Haible  <bruno@clisp.org>
13837
13838         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
13839         assuming that they are closed. Needed on HP-UX 11.
13840
13841 2007-05-29  Bruno Haible  <bruno@clisp.org>
13842
13843         Fix a problem with #include_next.
13844         * lib/dirent_.h: Split the double-inclusion guard.
13845         * lib/fcntl_.h: Likewise.
13846         * lib/float_.h: Likewise.
13847         * lib/iconv_.h: Likewise.
13848         * lib/inttypes_.h: Likewise.
13849         * lib/locale_.h: Likewise.
13850         * lib/math_.h: Likewise.
13851         * lib/netinet_in_.h: Likewise.
13852         * lib/search_.h: Likewise.
13853         * lib/signal_.h: Likewise.
13854         * lib/stdint_.h: Likewise.
13855         * lib/stdio_.h: Likewise.
13856         * lib/stdlib_.h: Likewise.
13857         * lib/string_.h: Likewise.
13858         * lib/sys_select_.h: Likewise.
13859         * lib/sys_socket_.h: Likewise.
13860         * lib/sys_stat_.h: Likewise.
13861         * lib/sys_time_.h: Likewise.
13862         * lib/sysexits_.h: Likewise.
13863         * lib/time_.h: Likewise.
13864         * lib/unistd_.h: Likewise.
13865         * lib/wchar_.h: Likewise.
13866         * lib/wctype_.h: Likewise.
13867
13868 2007-05-29  Bruno Haible  <bruno@clisp.org>
13869
13870         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
13871         for the moment.
13872
13873 2007-05-29  Bruno Haible  <bruno@clisp.org>
13874
13875         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
13876         invocation.
13877         Reported by Eric Blake.
13878
13879 2007-05-29  Bruno Haible  <bruno@clisp.org>
13880
13881         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
13882         compiling case.
13883
13884 2007-05-29  Eric Blake  <ebb9@byu.net>
13885             Bruno Haible  <bruno@clisp.org>
13886
13887         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
13888         cross compiles.
13889
13890 2007-05-28  Eric Blake  <ebb9@byu.net>
13891
13892         * modules/closein-tests (test_closein_LDADD): Support test on
13893         cygwin with libtool.
13894
13895 2007-05-28  Bruno Haible  <bruno@clisp.org>
13896
13897         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
13898         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13899         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13900         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13901         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13902         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13903         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13904         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13905         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13906
13907 2007-05-28  Eric Blake  <ebb9@byu.net>
13908
13909         Unconditionally include <config.h> in unit tests.
13910         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
13911         * tests/test-allocsa.c, tests/test-arcfour.c,
13912         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
13913         tests/test-array_list.c, tests/test-array_oset.c,
13914         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
13915         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
13916         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
13917         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
13918         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
13919         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
13920         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
13921         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
13922         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
13923         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
13924         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
13925         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
13926         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
13927         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
13928         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
13929         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
13930         test-md5.c, test-memmem.c, test-printf-posix.c,
13931         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
13932         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
13933         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
13934         test-strcasestr.c, test-striconv.c, test-striconveh.c,
13935         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
13936         test-vasnprintf-posix2.c, test-vasnprintf.c,
13937         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
13938         test-vfprintf-posix.c, test-vprintf-posix.c,
13939         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
13940         test-xvasprintf.c: Likewise.
13941
13942 2007-05-28  Bruno Haible  <bruno@clisp.org>
13943
13944         * gnulib-tool (func_import): Remember the --with-tests command-line
13945         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
13946         Reported by Eric Blake.
13947
13948 2007-05-28  Bruno Haible  <bruno@clisp.org>
13949
13950         * modules/ftell-tests: New file.
13951         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
13952         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
13953
13954         * lib/ftell.c: New file.
13955         * modules/ftell: New file.
13956         * m4/ftell.m4: New file.
13957         * doc/functions/ftell.texi: Update.
13958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
13959         REPLACE_FTELL.
13960         * lib/stdio_.h (rpl_ftell): New declaration.
13961         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
13962         REPLACE_FTELL.
13963
13964 2007-05-28  Eric Blake  <ebb9@byu.net>
13965
13966         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
13967
13968 2007-05-28  Bruno Haible  <bruno@clisp.org>
13969
13970         * modules/fseek-tests: New file.
13971         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
13972         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
13973
13974         * lib/fseek.c: New file.
13975         * modules/fseek: New file.
13976         * m4/fseek.m4: New file.
13977         * doc/functions/fseek.texi: Update.
13978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
13979         REPLACE_FSEEK.
13980         * lib/stdio_.h (rpl_fseek): New declaration.
13981         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
13982         REPLACE_FSEEK.
13983
13984 2007-05-28  Bruno Haible  <bruno@clisp.org>
13985
13986         * lib/stdio_.h (fflush): More comments.
13987
13988 2007-05-28  Bruno Haible  <bruno@clisp.org>
13989
13990         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
13991         runtime test.
13992
13993 2007-05-28  Eric Blake  <ebb9@byu.net>
13994
13995         Improve lseek module.
13996         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
13997         * lib/unistd_.h (lseek): Scale back link warning message.
13998         * tests/test-lseek.c: Beef up test.
13999         * tests/test-lseek.sh: Exercise more facets of lseek.
14000         Reported by Bruno Haible.
14001
14002 2007-05-28  Bruno Haible  <bruno@clisp.org>
14003
14004         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
14005         to define.
14006
14007 2007-05-27  Bruno Haible  <bruno@clisp.org>
14008
14009         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
14010
14011 2007-05-27  Bruno Haible  <bruno@clisp.org>
14012
14013         * modules/openmp: New file.
14014         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
14015         Noah Misch.
14016
14017 2007-05-26  Bruno Haible  <bruno@clisp.org>
14018
14019         * modules/chdir-long (Depends-on): Add fchdir.
14020         * modules/chdir-safer (Depends-on): Likewise.
14021         * modules/fts (Depends-on): Likewise.
14022         * modules/fts-lgpl (Depends-on): Likewise.
14023         * modules/openat (Depends-on): Likewise.
14024         * modules/savewd (Depends-on): Likewise.
14025
14026 2007-05-24  Eric Blake  <ebb9@byu.net>
14027
14028         Fix lseek on mingw.
14029         * modules/lseek: New module.
14030         * m4/lseek.m4: New file.
14031         * lib/lseek.c: New file.
14032         * modules/lseek-tests: New file.
14033         * tests/test-lseek.c: New file.
14034         * tests/test-lseek.sh: New file.
14035         * MODULES.html.sh: Document lseek module.
14036         * modules/fflush (Depends-on): Add lseek, fseeko.
14037         * modules/fseeko (Depends-on): Likewise.
14038         * modules/ftello (Depends-on): Likewise.
14039         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
14040         broken.
14041         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
14042         broken.
14043         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
14044         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
14045         * lib/ftello.c (rpl_ftello): Likewise.
14046         * tests/test-fseeko.c (main): Test this.
14047         * tests/test-fseeko.sh: Likewise.
14048         * tests/test-ftello.c (main): Likewise.
14049         * tests/test-ftello.sh: Likewise.
14050         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
14051         implies replacing fseek.
14052         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
14053         HAVE_FTELLO.
14054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
14055         * modules/unistd (Makefile.am): Likewise.
14056         * lib/unistd_.h (lseek): Declare a replacement.
14057         * doc/functions/lseek.texi (lseek): Document this fix.
14058         * doc/functions/fseek.texi (fseek): Likewise.
14059         * doc/functions/ftell.texi (ftell): Likewise.
14060
14061 2007-05-24  Bruno Haible  <bruno@clisp.org>
14062
14063         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
14064         in the printed representation of a NaN.
14065         * tests/test-vasprintf-posix.c (test_function): Likewise.
14066         * tests/test-snprintf-posix.h (test_function): Likewise.
14067         * tests/test-sprintf-posix.h (test_function): Likewise.
14068         Reported by Eric Blake.
14069
14070 2007-05-23  Eric Blake  <ebb9@byu.net>
14071
14072         Fix fseeko/ftello on cygwin 1.5.24.
14073         * doc/functions/fseeko.texi (fseeko): Document the fix.
14074         * doc/functions/ftello.texi (ftello): Document the fix.
14075         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
14076         * doc/functions/stdout.text (stdout): New file.
14077         * doc/functions/stderr.text (stderr): New file.
14078         * doc/gnulib.texi (Function Substitutes): Use new files.
14079         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
14080         prior to 1.7.0.
14081         * tests/test-ftello.c (main): Likewise for ftello.
14082         * tests/test-fseeko.sh: New file.
14083         * tests/test-ftello.sh: New file.
14084         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
14085         with seekable stdin.
14086         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
14087         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
14088         (gl_REPLACE_FSEEKO): New macro.
14089         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
14090         * modules/fseeko (Files): Distribute fseeko.c.
14091         * modules/ftello (Files): Distribute ftello.c.
14092         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
14093         mode.
14094         * lib/ftello.c (rpl_ftello): New file.
14095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
14096         fseeko, ftello.
14097         (gl_STDIN_LARGE_OFFSET): New macro.
14098         * modules/stdio (Makefile.am): Perform the replacement.
14099         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
14100
14101 2007-05-23  Bruno Haible  <bruno@clisp.org>
14102
14103         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
14104         GNULIB_POSIXCHECK is defined.
14105
14106 2007-05-21  Bruno Haible  <bruno@clisp.org>
14107
14108         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
14109         Check also the output for NaN arguments. When cross-compiling, guess
14110         no on IRIX.
14111         * lib/vasnprintf.c: Update comments.
14112         * tests/test-vasnprintf-posix.c (strisnan): New function.
14113         (test_function): Use it.
14114         * tests/test-vasprintf-posix.c (strisnan): New function.
14115         (test_function): Use it.
14116         * tests/test-snprintf-posix.h (strisnan): New function.
14117         (test_function): Use it.
14118         * tests/test-sprintf-posix.h (strisnan): New function.
14119         (test_function): Use it.
14120         Reported by Eric Blake.
14121
14122 2007-05-20  Bruno Haible  <bruno@clisp.org>
14123
14124         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
14125         numbers that fails on BeOS.
14126         * doc/functions/frexpl.texi: Update.
14127
14128 2007-05-20  Jim Meyering  <jim@meyering.net>
14129
14130         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
14131         forced upon us by glibc-2.6.
14132
14133 2007-05-20  Bruno Haible  <bruno@clisp.org>
14134
14135         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
14136         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
14137         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
14138         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
14139         NEED_PRINTF_INFINITE.
14140         (is_infinitel): New function.
14141         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
14142         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
14143         gl_PREREQ_VASNPRINTF_INFINITE.
14144         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
14145         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14146         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
14147         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
14148         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
14149         gl_PREREQ_VASNPRINTF_INFINITE.
14150         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14151         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14152         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14153         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14154         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14155         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14156         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14157         * doc/functions/fprintf.texi: Update.
14158         * doc/functions/printf.texi: Update.
14159         * doc/functions/snprintf.texi: Update.
14160         * doc/functions/sprintf.texi: Update.
14161         * doc/functions/vfprintf.texi: Update.
14162         * doc/functions/vprintf.texi: Update.
14163         * doc/functions/vsnprintf.texi: Update.
14164         * doc/functions/vsprintf.texi: Update.
14165
14166 2007-05-20  Bruno Haible  <bruno@clisp.org>
14167
14168         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
14169         was not found in libc.
14170         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14171
14172 2007-05-20  Bruno Haible  <bruno@clisp.org>
14173
14174         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14175         printed as "-nan" instead of "nan".
14176         * tests/test-vasprintf-posix.c (test_function): Likewise.
14177         * tests/test-snprintf-posix.h (test_function): Likewise.
14178         * tests/test-sprintf-posix.h (test_function): Likewise.
14179         Needed for HP-UX 11.
14180
14181 2007-05-20  Jim Meyering  <jim@meyering.net>
14182
14183         Fix buggy test for the fchownat-deref bug.
14184         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
14185         symlink required for the run-test.  Without it, this test would
14186         always declare that fchownat doesn't work, and client code would
14187         unnecessarily use the replacement function with fixed libc.
14188         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
14189         Reported by Greg Schafer.
14190
14191 2007-05-19  Bruno Haible  <bruno@clisp.org>
14192
14193         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
14194         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
14195         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
14196         Needed for IRIX 6.5 and Solaris 2.5.1.
14197
14198 2007-05-19  Bruno Haible  <bruno@clisp.org>
14199
14200         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
14201         (test_function): Skip tests involving -0.0 on platforms where
14202         -0.0 = 0.0.
14203         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
14204         (test_function): Skip tests involving -0.0 on platforms where
14205         -0.0 = 0.0.
14206         * tests/test-snprintf-posix.h (have_minus_zero): New function.
14207         (test_function): Skip tests involving -0.0 on platforms where
14208         -0.0 = 0.0.
14209         * tests/test-sprintf-posix.h (have_minus_zero): New function.
14210         (test_function): Skip tests involving -0.0 on platforms where
14211         -0.0 = 0.0.
14212         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
14213         tests.
14214         * tests/test-printf-posix.h (test_function): Likewise.
14215         * tests/test-printf-posix.output: Remove all -0.0 related results.
14216         Needed for IRIX 6.5.
14217
14218 2007-05-19  Bruno Haible  <bruno@clisp.org>
14219
14220         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14221         printed as "nan0x7fffffff" instead of "nan".
14222         * tests/test-vasprintf-posix.c (test_function): Likewise.
14223         * tests/test-snprintf-posix.h (test_function): Likewise.
14224         * tests/test-sprintf-posix.h (test_function): Likewise.
14225         * tests/test-fprintf-posix.h (NaN): Remove macro.
14226         (test_function): Remove all NaN related tests.
14227         * tests/test-printf-posix.h (NaN): Remove macro.
14228         (test_function): Remove all NaN related tests.
14229         * tests/test-printf-posix.output: Remove all NaN related results.
14230         Needed for IRIX 6.5.
14231
14232 2007-05-19  Bruno Haible  <bruno@clisp.org>
14233
14234         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
14235         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14236
14237 2007-05-19  Bruno Haible  <bruno@clisp.org>
14238
14239         * lib/float_.h: New file.
14240         * m4/float_h.m4: New file.
14241         * modules/float: New file.
14242         * modules/isnanl (Dependencies): Add float.
14243         * modules/isnanl-nolibm (Dependencies): Likewise.
14244         * modules/mathl (Dependencies): Likewise.
14245         * modules/printf-frexpl (Dependencies): Likewise.
14246         * modules/signbit (Dependencies): Likewise.
14247         * modules/vasnprintf (Dependencies): Likewise.
14248         * doc/headers/float.texi: Update.
14249
14250 2007-05-19  Jim Meyering  <jim@meyering.net>
14251
14252         * lib/utimens.c (gl_futimens): Rename from futimens,
14253         now that glibc-2.6 declares futimens.
14254         * lib/utimens.h: Likewise.
14255
14256 2007-05-19  Bruno Haible  <bruno@clisp.org>
14257
14258         Avoid test failures on mingw.
14259         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
14260         * tests/test-printf-posix.sh: Likewise.
14261         * tests/test-vfprintf-posix.sh: Likewise.
14262         * tests/test-vprintf-posix.sh: Likewise.
14263
14264 2007-05-19  Bruno Haible  <bruno@clisp.org>
14265
14266         Fix *printf result for NaN, Inf, -0.0 on mingw.
14267         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
14268         * lib/vasnprintf.c: Include math.h and isnan.h.
14269         (is_infinite_or_zero): New function.
14270         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
14271         values in the %f, %F, %e, %E, %g, %G directives.
14272         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
14273         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14274         gl_PRINTF_INFINITE and test its result. Invoke
14275         gl_PREREQ_VASNPRINTF_INFINITE.
14276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14278         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14280         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14281         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14282         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14283         * doc/functions/fprintf.texi: Update.
14284         * doc/functions/printf.texi: Update.
14285         * doc/functions/snprintf.texi: Update.
14286         * doc/functions/sprintf.texi: Update.
14287         * doc/functions/vfprintf.texi: Update.
14288         * doc/functions/vprintf.texi: Update.
14289         * doc/functions/vsnprintf.texi: Update.
14290         * doc/functions/vsprintf.texi: Update.
14291
14292 2007-05-19  Bruno Haible  <bruno@clisp.org>
14293
14294         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
14295         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
14296         Instead of multiplying with 10^k, set extra_zeroes to k.
14297         (scale10_round_long_double): Remove function.
14298
14299 2007-05-18  Bruno Haible  <bruno@clisp.org>
14300
14301         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
14302         introduced on 2007-05-06.
14303
14304 2007-05-18  Bruno Haible  <bruno@clisp.org>
14305
14306         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
14307         %g directives.
14308         * tests/test-vasprintf-posix.c (test_function): Likewise.
14309         * tests/test-snprintf-posix.h (test_function): Likewise.
14310         * tests/test-sprintf-posix.h (test_function): Likewise.
14311
14312 2007-05-18  Bruno Haible  <bruno@clisp.org>
14313
14314         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
14315         (strmatch): New function.
14316         (test_function): Test the %f directive on numbers of various exponents.
14317         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
14318         (strmatch): New function.
14319         (test_function): Test the %f directive on numbers of various exponents.
14320         * tests/test-snprintf-posix.h (strmatch): New function.
14321         (test_function): Test the %f directive on numbers of various exponents.
14322         * tests/test-sprintf-posix.h (strmatch): New function.
14323         (test_function): Test the %f directive on numbers of various exponents.
14324         * tests/test-snprintf-posix.c (SIZEOF): New macro.
14325         * tests/test-sprintf-posix.c (SIZEOF): New macro.
14326         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
14327         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
14328
14329 2007-05-18  Bruno Haible  <bruno@clisp.org>
14330
14331         Add support for 'long double' number output.
14332         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
14333         * lib/vasnprintf.c: Include math.h and float+.h.
14334         (mp_limb_t): New type.
14335         (GMP_LIMB_BITS): New macro.
14336         (mp_twolimb_t): New type.
14337         (GMP_TWOLIMB_BITS): New macro.
14338         (mpn_t): New type.
14339         (multiply, divide, convert_to_decimal, decode_long_double,
14340         scale10_round_long_double, scale10_round_decimal_long_double,
14341         floorlog10l): New functions.
14342         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
14343         for the %f, %F, %e, %E, %g, %G directives.
14344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
14345         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14346         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
14347         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
14348         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14349         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14350         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14351         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14352         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14353         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14354         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14355         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
14356         * modules/snprintf-posix (Depends-on): Likewise.
14357         * modules/sprintf-posix (Depends-on): Likewise.
14358         * modules/vasnprintf-posix (Depends-on): Likewise.
14359         * modules/vasprintf-posix (Depends-on): Likewise.
14360         * modules/vfprintf-posix (Depends-on): Likewise.
14361         * modules/vsnprintf-posix (Depends-on): Likewise.
14362         * modules/vsprintf-posix (Depends-on): Likewise.
14363         * modules/vasnprintf (Files): Add lib/float+.h.
14364         * doc/functions/fprintf.texi: Update.
14365         * doc/functions/printf.texi: Update.
14366         * doc/functions/snprintf.texi: Update.
14367         * doc/functions/sprintf.texi: Update.
14368         * doc/functions/vfprintf.texi: Update.
14369         * doc/functions/vprintf.texi: Update.
14370         * doc/functions/vsnprintf.texi: Update.
14371         * doc/functions/vsprintf.texi: Update.
14372
14373 2007-05-18  Bruno Haible  <bruno@clisp.org>
14374
14375         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
14376
14377 2007-05-18  Bruno Haible  <bruno@clisp.org>
14378
14379         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
14380         for printing 64-bit integers. Needed for mingw.
14381
14382 2007-05-18  Bruno Haible  <bruno@clisp.org>
14383
14384         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14385         gl_FUNC_FREXPL_WORKS.
14386         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
14387
14388 2007-05-18  Bruno Haible  <bruno@clisp.org>
14389
14390         * modules/frexpl-nolibm-tests: New file.
14391
14392         * modules/frexpl-nolibm: New file.
14393         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
14394
14395 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14396
14397         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
14398         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
14399         GCC 4.2, which otherwise issues a lot of warnings.
14400         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
14401         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
14402         Likewise.
14403         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
14404         * modules/iconv_open (iconv.h): Likewise.
14405         * modules/locale (locale.h): Likewise.
14406         * modules/netinet_in (netinet/in.h): Likewise.
14407         * modules/sys_select (sys_select.h): Likewise.
14408         * modules/sys_socket (sys/socket.h): Likewise.
14409         * modules/sys_stat (sys/stat.h): Likewise.
14410         * modules/sysexits (sysexits.h): Likewise.
14411         * modules/unistd (unistd.h): Likewise.
14412
14413 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14414
14415         * modules/closein-tests (Makefile.am): Distribute
14416         `test-closein.sh'.
14417
14418 2007-05-17  Bruno Haible  <bruno@clisp.org>
14419
14420         * tests/test-printf-posix.output: Renamed from
14421         tests/test-fprintf-posix.out.
14422         * modules/fprintf-posix-tests: Update.
14423         * modules/printf-posix-tests: Update.
14424         * modules/vfprintf-posix-tests: Update.
14425         * modules/vprintf-posix-tests: Update.
14426         * tests/test-fprintf-posix.sh: Update.
14427         * tests/test-printf-posix.sh: Update.
14428         * tests/test-vfprintf-posix.sh: Update.
14429         * tests/test-vprintf-posix.sh: Update.
14430         Reported by Ralf Wildenhues.
14431
14432 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14433
14434         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
14435         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
14436         GCC 4.2, which otherwise issues a lot of warnings.
14437         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
14438         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
14439         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
14440         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
14441         it should no longer be needed.
14442         * lib/string_.h: Likewise.
14443         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
14444         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
14445         * modules/inttypes (inttypes.h): Likewise.
14446         * modules/math (math.h): Likewise.
14447         * modules/search (search.h): Likewise.
14448         * modules/signal (signal.h): Likewise.
14449         * modules/stdint (stdint.h): Likewise.
14450         * modules/stdio (stdio.h): Likewise.
14451         * modules/stdlib (stdlib.h): Likewise.
14452         * modules/string (string.h): Likewise.
14453         * modules/sys_time (sys/time.h): Likewise.
14454         * modules/time (time.h): Likewise.
14455         * modules/wchar (wchar.h): Likewise.
14456         * modules/wctype (wtype.h): Likewise.
14457
14458 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14459
14460         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
14461
14462 2007-05-13  Bruno Haible  <bruno@clisp.org>
14463
14464         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
14465         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14466         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
14467         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14468         (gl_PREREQ_STRTOK_R): Don't require it here.
14469
14470 2007-05-13  Bruno Haible  <bruno@clisp.org>
14471
14472         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
14473         when used in C++ mode.
14474
14475 2007-05-12  Bruno Haible  <bruno@clisp.org>
14476
14477         * lib/linebuffer.h: Tweak doc.
14478         * lib/linebuffer.c: Likewise.
14479
14480 2007-05-12  James Youngman  <jay@gnu.org>
14481
14482         * lib/linebuffer.c (readlinebuffer_delim): New function,
14483         like readlinebuffer, but use a caller-specified delimiter.
14484         (readlinebuffer): Just call readlinebuffer_delim with '\n'
14485         as the delimiter.
14486         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
14487
14488 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14489
14490         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
14491         * modules/openat (Files): Remove openat-die.c.
14492         (Depends-on): Add openat-die.
14493         * modules/openat-die: New module.
14494
14495 2007-05-06  Bruno Haible  <bruno@clisp.org>
14496
14497         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
14498         Update with info about Cygwin.
14499         * doc/functions/fprintf.texi: Update.
14500         * doc/functions/printf.texi: Update.
14501         * doc/functions/snprintf.texi: Update.
14502         * doc/functions/sprintf.texi: Update.
14503         * doc/functions/vfprintf.texi: Update.
14504         * doc/functions/vprintf.texi: Update.
14505         * doc/functions/vsnprintf.texi: Update.
14506         * doc/functions/vsprintf.texi: Update.
14507         Reported by Eric Blake.
14508
14509 2007-05-06  Bruno Haible  <bruno@clisp.org>
14510
14511         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
14512         padding ourselves for the floating-point directives.
14513         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
14514         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
14515         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14516         gl_PRINTF_FLAG_ZERO and test its result. Invoke
14517         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
14518         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14519         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14521         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14524         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14525         * tests/test-snprintf-posix.h (test_function): Also check the width
14526         and some flags in the %f directive.
14527         * tests/test-sprintf-posix.h (test_function): Likewise.
14528         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14529         * tests/test-vasprintf-posix.c (test_function): Likewise.
14530         * doc/functions/fprintf.texi: Update.
14531         * doc/functions/printf.texi: Update.
14532         * doc/functions/snprintf.texi: Update.
14533         * doc/functions/sprintf.texi: Update.
14534         * doc/functions/vfprintf.texi: Update.
14535         * doc/functions/vprintf.texi: Update.
14536         * doc/functions/vsnprintf.texi: Update.
14537         * doc/functions/vsprintf.texi: Update.
14538
14539 2007-05-06  Bruno Haible  <bruno@clisp.org>
14540
14541         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
14542         pass the ' flag character to sprintf or snprintf.
14543         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
14544         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
14545         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14546         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
14547         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
14548         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14549         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14550         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14551         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14552         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14553         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14554         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14555         * tests/test-snprintf-posix.h (test_function): Also check the grouping
14556         flag.
14557         * tests/test-sprintf-posix.h (test_function): Likewise.
14558         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14559         * tests/test-vasprintf-posix.c (test_function): Likewise.
14560         * doc/functions/fprintf.texi: Update.
14561         * doc/functions/printf.texi: Update.
14562         * doc/functions/snprintf.texi: Update.
14563         * doc/functions/sprintf.texi: Update.
14564         * doc/functions/vfprintf.texi: Update.
14565         * doc/functions/vprintf.texi: Update.
14566         * doc/functions/vsnprintf.texi: Update.
14567         * doc/functions/vsprintf.texi: Update.
14568
14569 2007-05-01  Bruno Haible  <bruno@clisp.org>
14570
14571         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
14572
14573 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14574
14575         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
14576         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
14577
14578 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
14579
14580         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
14581         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
14582         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
14583
14584 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
14585
14586         * lib/argp-help.c (struct hol_entry): New member `ord'.
14587         (HOL_ENTRY_PTRCMP): Use ord for comparison
14588         (hol_sort): Initialize ord.
14589
14590 2007-05-01  Bruno Haible  <bruno@clisp.org>
14591
14592         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
14593         Reported by Eric Blake.
14594         * doc/gnulib.texi (Function Substitutes): Update.
14595
14596 2007-05-01  Bruno Haible  <bruno@clisp.org>
14597
14598         * doc/functions.texi: Remove file, now redundant through
14599         doc/functions/*.texi.
14600
14601 2007-05-01  Bruno Haible  <bruno@clisp.org>
14602
14603         * modules/argp (Depends-on): Add sleep.
14604
14605 2007-05-01  Bruno Haible  <bruno@clisp.org>
14606
14607         * modules/sleep-tests: New file.
14608         * tests/test-sleep.c: New file.
14609
14610         * modules/sleep: New file.
14611         * lib/sleep.c: New file.
14612         * m4/sleep.m4: New file.
14613         * lib/unistd_.h (sleep): New declaration.
14614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
14615         HAVE_SLEEP.
14616         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
14617         * doc/functions/sleep.texi: Document the sleep module.
14618
14619 2007-05-01  Bruno Haible  <bruno@clisp.org>
14620
14621         * lib/sigprocmask.h: Remove file.
14622         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
14623         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
14624         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
14625         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
14626         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14627         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
14628         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
14629         HAVE_SIGSET_T as a shell variable.
14630         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
14631         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
14632         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
14633         (Depends-on): Add signal. Remove verify.
14634         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
14635         (Include): Mention <signal.h> instead of sigprocmask.h.
14636         * NEWS: Mention the change.
14637         * lib/fatal-signal.c: Don't include sigprocmask.h.
14638
14639 2007-05-01  Bruno Haible  <bruno@clisp.org>
14640
14641         * modules/signal: New file.
14642         * lib/signal_.h: New file.
14643         * m4/signal_h.m4: New file.
14644
14645 2007-05-01  Bruno Haible  <bruno@clisp.org>
14646
14647         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
14648         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
14649         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
14650         HAVE_WCTYPE_CTMP_BUG into wctype.h.
14651
14652 2007-05-01  Bruno Haible  <bruno@clisp.org>
14653
14654         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
14655         configure time.
14656         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
14657         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
14658         * modules/sys_stat (Makefile.am): Substitute their values into
14659         sys/stat.h.
14660
14661 2007-05-01  Bruno Haible  <bruno@clisp.org>
14662
14663         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
14664         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
14665         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
14666
14667 2007-05-01  Bruno Haible  <bruno@clisp.org>
14668
14669         * doc/header/assert.texi: Undo last change: don't mention the gnulib
14670         'assert' module here.
14671
14672 2007-05-01  Bruno Haible  <bruno@clisp.org>
14673
14674         * doc/functions/*.texi: New files.
14675         * doc/functions/google-ranking.txt: New file.
14676         * doc/gnulib.texi (Function Substitutes): New chapter.
14677         (ctime, inet_ntoa): Remove sections.
14678         * doc/ctime.texi: Remove file.
14679         * doc/inet_ntoa.texi: Remove file.
14680         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
14681         dependencies.
14682         (%.info): New rule, specifying a --reference-limit.
14683
14684 2007-05-01  Bruno Haible  <bruno@clisp.org>
14685
14686         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
14687
14688 2007-05-01  Bruno Haible  <bruno@clisp.org>
14689
14690         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
14691         the portability of 'mkdir' to mingw systems.
14692
14693 2007-05-01  Bruno Haible  <bruno@clisp.org>
14694
14695         * doc/headers/google-ranking.txt: New file.
14696
14697 2007-04-30  Eric Blake  <ebb9@byu.net>
14698
14699         Prefer fseeko to fseek.
14700         * modules/getpass (Depends-on): Add fseeko.
14701         * lib/getpass.c (getpass): Use fseeko, not fseek.
14702
14703 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
14704
14705         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
14706         assumes the sorting is stable, while most qsort implementations
14707         are not.  Use argument addresses to ensure they never compare as
14708         equal.
14709
14710         * tests/test-argp-2.sh (usage-indent test): Fix output
14711         (func_compare): Restore diff options
14712         * tests/test-argp.c: Restore #include "progname.h"
14713
14714 2007-04-29  Bruno Haible  <bruno@clisp.org>
14715
14716         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
14717         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14718         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
14719         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14720         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
14721         (configure.ac): Define CHECK_SNPRINTF_POSIX.
14722         (TESTS, check_PROGRAMS): Add test-snprintf.
14723         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
14724         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
14725         (TESTS, check_PROGRAMS): Add test-vsnprintf.
14726         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
14727         assertions that fail on HP-UX, OSF/1, or IRIX.
14728         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
14729
14730 2007-04-29  Bruno Haible  <bruno@clisp.org>
14731
14732         * MODULES.html.sh (posix_functions): Remove 'contents'.
14733
14734 2007-04-29  Karl Berry  <karl@gnu.org>
14735
14736         * config/srclist.txt (gendocs_template_min): new entry.
14737
14738 2007-04-29  Bruno Haible  <bruno@clisp.org>
14739
14740         Work around fpurge bug on BSD systems.
14741         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
14742         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
14743         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
14744         fpurge to rpl_fpurge if the system already has this function.
14745         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
14746         the case where the system already has this function. Correct invariants
14747         on BSD systems.
14748         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
14749         BSD systems.
14750
14751 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
14752
14753         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
14754         proposed by Sven Verdoolaege.
14755
14756         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
14757         options.
14758         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
14759         (usage and help tests): Update
14760
14761 2007-04-29  Bruno Haible  <bruno@clisp.org>
14762
14763         * tests/test-fflush.c (main): Use a file of size 17, not 10.
14764         Print more information in case of failure. Disable a test on BeOS.
14765
14766 2007-04-29  Bruno Haible  <bruno@clisp.org>
14767
14768         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
14769         This helps debugging on systems on which no gdb is available.
14770
14771 2007-04-29  Bruno Haible  <bruno@clisp.org>
14772
14773         * lib/freading.h: Improve comments.
14774         * lib/fwriting.h: Likewise.
14775         * tests/test-freading.c (main): Don't check freading immediately after
14776         repositioning. Needed for glibc.
14777
14778 2007-04-29  Bruno Haible  <bruno@clisp.org>
14779
14780         * lib/freading.c (freading): Trivial simplification.
14781
14782 2007-04-28  Bruno Haible  <bruno@clisp.org>
14783
14784         * tests/test-fwriting.c (main): Also test the interaction between
14785         fflush and fwriting.
14786         * modules/fwriting-tests (Depends-on): Add fflush.
14787
14788         * tests/test-freading.c (main): Also test the interaction between
14789         fflush and freading.
14790         * modules/freading-tests (Depends-on): Add fflush.
14791
14792 2007-04-28  Bruno Haible  <bruno@clisp.org>
14793
14794         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
14795         fseeko and ftello.
14796         Suggested by Eric Blake.
14797
14798 2007-04-28  Jim Meyering  <jim@meyering.net>
14799
14800         Avoid false-negative in gl_STDINT_H's C99 conformance test.
14801         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
14802         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
14803
14804 2007-04-27  Eric Blake  <ebb9@byu.net>
14805
14806         * doc/headers/assert.texi (assert.h): Document assert module use.
14807
14808 2007-04-27  Bruno Haible  <bruno@clisp.org>
14809
14810         * doc/headers/*.texi: New files.
14811         * doc/gnulib.texi (Header File Substitutes): New chapter.
14812         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
14813         dependencies.
14814         (standards.info ,standards.html, standards.dvi): Update dependencies.
14815         (mostlyclean, clean): New targets.
14816
14817 2007-04-27  Bruno Haible  <bruno@clisp.org>
14818
14819         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
14820         * modules/sysexits (Files, Makefile.am): Update.
14821
14822         * lib/sys_socket_.h: Renamed from lib/socket_.h.
14823         * modules/sys_socket (Files, Makefile.am): Update.
14824
14825         * lib/sys_stat_.h: Renamed from lib/stat_.h.
14826         * modules/sys_stat (Files, Makefile.am): Update.
14827
14828 2007-04-27  Eric Blake  <ebb9@byu.net>
14829
14830         * lib/freading.h: Improve comments.
14831         * lib/fwriting.h: Likewise.
14832         * lib/fflush.c: Likewise.
14833
14834         Fix closein for mingw.
14835         * modules/closein-tests: Add tests for closein.
14836         * tests/test-closein.c: New file.
14837         * tests/test-closein.sh: Likewise.
14838         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
14839         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
14840
14841 2007-04-27  Bruno Haible  <bruno@clisp.org>
14842
14843         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
14844         version is < 6.
14845         * lib/math_.h [__DECC]: Likewise.
14846         * lib/stdio_.h [__DECC]: Likewise.
14847         * lib/stdlib_.h [__DECC]: Likewise.
14848         * lib/string_.h [__DECC]: Likewise.
14849         * lib/time_.h [__DECC]: Likewise.
14850         * lib/wchar_.h [__DECC]: Likewise.
14851         * lib/wctype_.h [__DECC]: Likewise.
14852
14853 2007-04-27  Bruno Haible  <bruno@clisp.org>
14854
14855         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
14856
14857 2007-04-27  Bruno Haible  <bruno@clisp.org>
14858
14859         * lib/fflush.c: Add comments.
14860         * modules/fpurge-tests (Depends-on): Add fflush.
14861         * modules/freadable-tests (Depends-on): Likewise.
14862         * modules/fwritable-tests (Depends-on): Likewise.
14863
14864 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
14865
14866         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
14867         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
14868         Report by Bruno Haible <bruno@clisp.org>.
14869
14870 2007-04-26  Eric Blake  <ebb9@byu.net>
14871
14872         Fix fflush on mingw.
14873         * modules/fflush (Depends-on): Add freading.
14874         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
14875         but unread data.
14876
14877 2007-04-26  Eric Blake  <ebb9@byu.net>
14878         and Bruno Haible  <bruno@clisp.org>
14879
14880         Implement freading and fwriting.
14881         * lib/freading.c: New file.
14882         * lib/freading.h: Likewise.
14883         * m4/freading.m4: Likewise.
14884         * modules/freading: Likewise.
14885         * modules/freading-tests: Likewise.
14886         * tests/test-freading.c: Likewise.
14887         * lib/fwriting.c: New file.
14888         * lib/fwriting.h: Likewise.
14889         * m4/fwriting.m4: Likewise.
14890         * modules/fwriting: Likewise.
14891         * modules/fwriting-tests: Likewise.
14892         * tests/test-fwriting.c: Likewise.
14893         * MODULES.html.sh (File stream based Input/Output): Mention them.
14894
14895 2007-04-26  Bruno Haible  <bruno@clisp.org>
14896
14897         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
14898         'long' when we assume it.
14899         Suggested by Eric Blake.
14900
14901 2007-04-26  Bruno Haible  <bruno@clisp.org>
14902
14903         Ensure fseeko, ftello are declared on glibc systems.
14904         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
14905         * modules/fseeko (configure.ac-early): Likewise.
14906         * modules/ftello (configure.ac-early): Likewise.
14907         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
14908         AC_FUNC_FSEEKO for this.
14909         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
14910         (gl_CHECK_FSEEKO): Remove macro.
14911
14912 2007-04-26  Bruno Haible  <bruno@clisp.org>
14913
14914         * tests/test-fflush.c (main): Also check the ftell result after
14915         fflush and fseek/fseeko.
14916         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
14917         file descriptor position cache in the stream.
14918         * lib/fseeko.c (rpl_fseeko): Likewise.
14919
14920 2007-04-26  Bruno Haible  <bruno@clisp.org>
14921
14922         * modules/fflush-tests (Depends-on): Add fseeko.
14923
14924 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
14925             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14926
14927         * lib/argz_.h: ensure error_t definition is obtained in same
14928         mechanism system argz.h would have.
14929         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
14930         argz facilities are known bad.  Err on the side of caution if
14931         cross-compiling.
14932
14933 2007-04-25  Eric Blake  <ebb9@byu.net>
14934
14935         * lib/fpurge.c (includes): Use stdlib.h for free.
14936         * tests/test-fflush.c (main): Also test fflush-fseeko.
14937
14938 2007-04-25  Bruno Haible  <bruno@clisp.org>
14939
14940         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
14941         * lib/fseeko.c: New file.
14942         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
14943         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
14944         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
14945         gl_FUNC_FSEEKO.
14946         (gl_FUNC_FSEEKO): Invoke it.
14947         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
14948         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
14949         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
14950
14951 2007-04-25  Bruno Haible  <bruno@clisp.org>
14952
14953         * modules/fflush (Depends-on): Add ftello.
14954
14955 2007-04-25  Bruno Haible  <bruno@clisp.org>
14956
14957         * modules/ftello-tests: New file.
14958         * tests/test-ftello.c: New file.
14959
14960         * modules/ftello: New file.
14961         * m4/ftello.m4: New file.
14962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
14963         HAVE_FTELLO.
14964         * lib/stdio_.h (ftello): New declaration.
14965         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
14966         HAVE_FTELLO.
14967
14968 2007-04-25  Bruno Haible  <bruno@clisp.org>
14969
14970         * modules/fseeko-tests: New file.
14971         * tests/test-fseeko.c: New file.
14972
14973         * modules/fseeko: New file.
14974         * m4/fseeko.m4: New file.
14975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
14976         HAVE_FSEEKO.
14977         * lib/stdio_.h (fseeko): New declaration.
14978         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
14979         HAVE_FSEEKO.
14980
14981 2007-04-25  Bruno Haible  <bruno@clisp.org>
14982
14983         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
14984
14985 2007-04-25  Bruno Haible  <bruno@clisp.org>
14986
14987         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
14988         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
14989         * tests/test-unistd.c: Likewise.
14990         * tests/test-fcntl.c: Likewise.
14991
14992 2007-04-23  Eric Blake  <ebb9@byu.net>
14993
14994         * lib/fflush.c: Fix missing include.
14995         Reported by Bruno Haible.
14996
14997 2007-04-23  Bruno Haible  <bruno@clisp.org>
14998
14999         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
15000         Reported by Eric Blake.
15001
15002 2007-04-23  Bruno Haible  <bruno@clisp.org>
15003
15004         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
15005
15006 2007-04-23  Bruno Haible  <bruno@clisp.org>
15007
15008         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
15009
15010 2007-04-23  Bruno Haible  <bruno@clisp.org>
15011
15012         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
15013         Needed on HP-UX 11.
15014
15015 2007-04-16  Eric Blake  <ebb9@byu.net>
15016
15017         Make fflush rely on fpurge.
15018         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
15019         open coding all variants.
15020         * modules/fflush (Depends-on): Add fpurge and unistd.
15021         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
15022         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
15023
15024         Fix --with-tests compilation on cygwin.
15025         * modules/argmatch-tests (Makefile.am): List gnulib library first
15026         in LDADD.
15027         * modules/argp-tests (Makefile.am): Likewise.
15028         * modules/array-list-tests (Makefile.am): Likewise.
15029         * modules/array-oset-tests (Makefile.am): Likewise.
15030         * modules/avltree-list-tests (Makefile.am): Likewise.
15031         * modules/avltree-oset-tests (Makefile.am): Likewise.
15032         * modules/avltreehash-list-tests (Makefile.am): Likewise.
15033         * modules/carray-list-tests (Makefile.am): Likewise.
15034         * modules/dirname-tests (Makefile.am): Likewise.
15035         * modules/frexp-tests (Makefile.am): Likewise.
15036         * modules/isnanl-tests (Makefile.am): Likewise.
15037         * modules/linked-list-tests (Makefile.am): Likewise.
15038         * modules/linkedhash-list-tests (Makefile.am): Likewise.
15039         * modules/lock-tests (Makefile.am): Likewise.
15040         * modules/rbtree-list-tests (Makefile.am): Likewise.
15041         * modules/rbtree-oset-tests (Makefile.am): Likewise.
15042         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
15043         * modules/tls-tests (Makefile.am): Likewise.
15044         * modules/tsearch-tests (Makefile.am): Likewise.
15045         * modules/xvasprintf-tests (Makefile.am): Likewise.
15046
15047         Fix fpurge for cygwin.
15048         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
15049         value.
15050         * modules/fpurge-tests (Depends-on): Clean up trash.
15051
15052 2007-04-16  Simon Josefsson  <simon@josefsson.org>
15053
15054         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
15055
15056         * m4/autobuild.m4: Re-indent.
15057
15058 2007-04-13  Bruno Haible  <bruno@clisp.org>
15059
15060         * modules/fpurge-tests: New file.
15061         * tests/test-fpurge.c: New file.
15062
15063         * modules/fpurge: New file.
15064         * lib/fpurge.h: New file.
15065         * lib/fpurge.c: New file.
15066         * m4/fpurge.m4: New file.
15067
15068 2007-04-13  Bruno Haible  <bruno@clisp.org>
15069
15070         * modules/fbufmode-tests: New file.
15071         * tests/test-fbufmode.c: New file.
15072
15073         * modules/fbufmode: New file.
15074         * lib/fbufmode.h: New file.
15075         * lib/fbufmode.c: New file.
15076         * m4/fbufmode.m4: New file.
15077
15078 2007-04-13  Bruno Haible  <bruno@clisp.org>
15079
15080         * modules/fwritable-tests: New file.
15081         * tests/test-fwritable.c: New file.
15082
15083         * modules/fwritable: New file.
15084         * lib/fwritable.h: New file.
15085         * lib/fwritable.c: New file.
15086         * m4/fwritable.m4: New file.
15087
15088 2007-04-13  Bruno Haible  <bruno@clisp.org>
15089
15090         * modules/freadable-tests: New file.
15091         * tests/test-freadable.c: New file.
15092
15093         * modules/freadable: New file.
15094         * lib/freadable.h: New file.
15095         * lib/freadable.c: New file.
15096         * m4/freadable.m4: New file.
15097
15098 2007-04-13  Bruno Haible  <bruno@clisp.org>
15099
15100         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
15101         MOSTLYCLEANFILES.
15102
15103 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
15104
15105         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
15106         gzip bootstrap.conf to avoid dragging in i18n machinery.
15107         (gnulib_tool_option): Use it.
15108
15109 2007-04-13  Bruno Haible  <bruno@clisp.org>
15110
15111         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
15112         %F directives.
15113         * tests/test-vasprintf-posix.c (test_function): Likewise.
15114         * tests/test-snprintf-posix.h (test_function): Likewise.
15115         * tests/test-sprintf-posix.h (test_function): Likewise.
15116         * tests/test-fprintf-posix.h (test_function): Likewise.
15117         * tests/test-printf-posix.h (test_function): Likewise.
15118         * tests/test-fprintf-posix.out: Likewise.
15119
15120 2007-04-13  Bruno Haible  <bruno@clisp.org>
15121
15122         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
15123         * modules/tls-tests (configure.ac): Likewise.
15124         Reported by Arto C. Nirkko <anirkko@insel.ch>.
15125
15126 2007-04-13  Bruno Haible  <bruno@clisp.org>
15127
15128         * lib/tls.c (glthread_tls_get): Fix return type.
15129         Patch by Arto C. Nirkko <anirkko@insel.ch>.
15130
15131 2007-04-12  Eric Blake  <ebb9@byu.net>
15132
15133         * modules/gettime (Depends-on): Remove gettime.
15134         Reported by Dmitry V. Levin.
15135
15136 2007-04-12  Bruno Haible  <bruno@clisp.org>
15137
15138         * modules/fflush (Include): Mention <stdio.h>.
15139         * modules/strtoimax (Include): Mention <inttypes.h>.
15140         * modules/strtoumax (Include): Likewise.
15141
15142 2007-04-12  Eric Blake  <ebb9@byu.net>
15143
15144         * .cvsignore: New file.
15145         * .gitignore: Likewise.
15146
15147 2007-04-12  Bruno Haible  <bruno@clisp.org>
15148
15149         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
15150         not before, since $(LDADD) often contains libgnu.a.
15151         * modules/striconv-tests (test_striconv_LDADD): Likewise.
15152         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
15153         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
15154         Needed on Cygwin.
15155
15156 2007-04-12  Eric Blake  <ebb9@byu.net>
15157
15158         Work around glibc's failure to flush stdin on fclose.
15159         * lib/closein.c (close_stdin): Flush stdin before closing.
15160
15161         Work around glibc's failure to reset seekable stdin on exit.
15162         * modules/closein: New module.
15163         * lib/closein.c: New file.
15164         * lib/closein.h: Likewise.
15165         * m4/closein.m4: Likewise.
15166         * MODULES.html.sh (File stream based Input/Output): Document it.
15167
15168 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15169
15170         * gnulib-tool: Rename generated 'autobuild' script to
15171         'do-autobuild' in --create-megatestdir output.
15172
15173         * doc/gnulib.texi (Build robot for gnulib): Fix.
15174
15175 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15176
15177         * modules/sysexits (Depends-on): Add absolute-header.
15178
15179 2007-04-12  Eric Blake  <ebb9@byu.net>
15180
15181         No need to preserve errno on success.
15182         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
15183         Reported by Bruno Haible.
15184
15185 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15186
15187         * MODULES.html.sh (Support for maintaining and releasing
15188         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
15189
15190 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15191
15192         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
15193
15194 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15195
15196         * modules/autobuild: New module.
15197
15198         * m4/autobuild.m4: New file.
15199
15200 2007-04-11  Bruno Haible  <bruno@clisp.org>
15201
15202         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
15203         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
15204         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
15205         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
15206         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15207         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15208         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15209         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15210         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15211         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
15213         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15214         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
15216         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15217         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
15219         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15220         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15221         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
15222         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15223         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15224         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
15225         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15226         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
15228         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15229         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15230         Reported by Eric Blake.
15231
15232 2007-04-11  Bruno Haible  <bruno@clisp.org>
15233
15234         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
15235
15236 2007-04-10  Bruno Haible  <bruno@clisp.org>
15237
15238         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
15239         for NaN and Infinity. Needed on FreeBSD 6.1.
15240         * tests/test-vasnprintf-posix.c (test_function): Undo last change
15241         regarding results for "%010a" of Infinity and NaN.
15242         * tests/test-vasprintf-posix.c (test_function): Likewise.
15243         * tests/test-snprintf-posix.h (test_function): Likewise.
15244         * tests/test-sprintf-posix.h (test_function): Likewise.
15245         * tests/test-fprintf-posix.h (test_function): Likewise.
15246         * tests/test-printf-posix.h (test_function): Likewise.
15247         * tests/test-fprintf-posix.out: Likewise.
15248
15249 2007-04-10  Bruno Haible  <bruno@clisp.org>
15250
15251         * modules/locale-tests: New file.
15252         * tests/test-locale.c: New file.
15253
15254         * modules/locale: New file.
15255         * lib/locale_.h: New file.
15256         * m4/locale_h.m4: New file.
15257
15258 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
15259             Bruno Haible  <bruno@clisp.org>
15260
15261         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
15262         be determined, test for availability of the copysignf, copysign,
15263         copysignl functions.
15264         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
15265         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
15266         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
15267
15268 2007-04-09  Eric Blake  <ebb9@byu.net>
15269
15270         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
15271         * modules/stdio (Makefile.am): Support fflush.
15272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15273         * modules/fflush: New file.
15274         * lib/fflush.c: Likewise.
15275         * m4/fflush.m4: Likewise.
15276         * modules/fflush-tests: New test.
15277         * tests/test-fflush.c: Likewise.
15278         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
15279
15280 2007-04-06  Bruno Haible  <bruno@clisp.org>
15281
15282         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
15283         (VASNPRINTF): Use signbit for faster determination whether to print a
15284         minus sign.
15285         * modules/vasnprintf (Files): Remove lib/float+.h.
15286         * modules/fprintf-posix (Depends-on): Add signbit.
15287         * modules/snprintf-posix (Depends-on): Likewise.
15288         * modules/sprintf-posix (Depends-on): Likewise.
15289         * modules/vasnprintf-posix (Depends-on): Likewise.
15290         * modules/vasprintf-posix (Depends-on): Likewise.
15291         * modules/vfprintf-posix (Depends-on): Likewise.
15292         * modules/vsnprintf-posix (Depends-on): Likewise.
15293         * modules/vsprintf-posix (Depends-on): Likewise.
15294
15295 2007-04-06  Bruno Haible  <bruno@clisp.org>
15296
15297         * tests/test-frexp.c (main): Test also the sign bit of zero results.
15298         * tests/test-frexpl.c (main): Likewise.
15299         * tests/test-ldexpl.c (main): Likewise.
15300         * modules/frexp-tests (Depends-on): Add signbit.
15301         * modules/frexpl-tests (Depdends-on): Likewise.
15302         * modules/ldexpl-tests (Depdends-on): Likewise.
15303
15304 2007-04-06  Bruno Haible  <bruno@clisp.org>
15305
15306         * modules/signbit-tests: New file.
15307         * tests/test-signbit.c: New file.
15308
15309         * modules/signbit: New file.
15310         * lib/signbitf.c: New file.
15311         * lib/signbitd.c: New file.
15312         * lib/signbitl.c: New file.
15313         * m4/signbit.m4: New file.
15314         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
15315         (signbit): New macro.
15316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
15317         REPLACE_SIGNBIT.
15318         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
15319         REPLACE_FREXPL into math.h.
15320
15321 2007-04-06  Bruno Haible  <bruno@clisp.org>
15322
15323         * modules/isnanf-nolibm-tests: New file.
15324         * tests/test-isnanf.c: New file.
15325
15326         * modules/isnanf-nolibm: New file.
15327         * lib/isnanf.h: New file.
15328         * lib/isnanf.c: New file.
15329         * lib/isnan.c: Consider the USE_FLOAT macro.
15330         * m4/isnanf.m4: New file.
15331
15332 2007-04-06  Bruno Haible  <bruno@clisp.org>
15333
15334         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
15335         (Link): New section.
15336
15337         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
15338
15339 2007-04-06  Bruno Haible  <bruno@clisp.org>
15340
15341         Assume the 'long double' type.
15342         * m4/longdouble.m4: Remove file.
15343         * config/srclist.txt: Don't mention longdouble.m4.
15344         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
15345         * lib/float+.h: Likewise.
15346         * lib/frexp.c: Likewise.
15347         * lib/printf-args.h: Likewise.
15348         * lib/printf-args.c: Likewise.
15349         * lib/printf-frexp.c: Likewise.
15350         * lib/printf-parse.c: Likewise.
15351         * lib/vasnprintf.c: Likewise.
15352         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
15353         * m4/intl.m4: Likewise.
15354         * m4/isnanl.m4: Likewise.
15355         * m4/printf.m4: Likewise.
15356         * m4/printf-frexpl.m4: Likewise.
15357         * m4/vasnprintf.m4: Likewise.
15358         * modules/allocsa (Files): Remove m4/longdouble.m4.
15359         * modules/gettext (Files): Likewise.
15360         * modules/relocatable-prog-wrapper (Files): Likewise.
15361         * modules/vasnprintf (Files): Likewise.
15362         * modules/isnanl (Files): Likewise.
15363         (Include): Simplify.
15364         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
15365         (Include): Simplify.
15366         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
15367         (Include): Simplify.
15368         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
15369         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15370         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
15371         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15372         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15373         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15374         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
15375         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15376         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15377         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15378         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
15379         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15380         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
15381         * tests/test-isnanl.c: Likewise.
15382         * tests/test-snprintf-posix.h: Likewise.
15383         * tests/test-sprintf-posix.h: Likewise.
15384         * tests/test-vasnprintf-posix.c: Likewise.
15385         * tests/test-vasnprintf-posix2.c: Likewise.
15386         * tests/test-vasprintf-posix.c: Likewise.
15387
15388 2007-04-06  Bruno Haible  <bruno@clisp.org>
15389
15390         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
15391         * lib/math_.h [__DECC]: Include the overridden include file through
15392         #include_next, outside the double-inclusion guard.
15393         * lib/stdio_.h [__DECC]: Likewise.
15394         * lib/stdlib_.h [__DECC]: Likewise.
15395         * lib/string_.h [__DECC]: Likewise.
15396         * lib/time_.h [__DECC]: Likewise.
15397         * lib/wchar_.h [__DECC]: Likewise.
15398         * lib/wctype_.h [__DECC]: Likewise.
15399         * lib/inttypes_.h [__DECC]: Likewise.
15400         Reported by Albert Chin <china@thewrittenword.com> in
15401         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
15402
15403 2007-04-04  Eric Blake  <ebb9@byu.net>
15404
15405         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
15406         1.5.x.
15407
15408 2007-04-04  Bruno Haible  <bruno@clisp.org>
15409
15410         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
15411         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
15412
15413 2007-04-04  Bruno Haible  <bruno@clisp.org>
15414
15415         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
15416         results for "%010a" of Infinity and NaN.
15417         * tests/test-vasprintf-posix.c (test_function): Likewise.
15418         * tests/test-snprintf-posix.h (test_function): Likewise.
15419         * tests/test-sprintf-posix.h (test_function): Likewise.
15420         * tests/test-fprintf-posix.h (test_function): Remove these tests.
15421         * tests/test-printf-posix.h (test_function): Likewise.
15422         * tests/test-fprintf-posix.out: Update.
15423         Needed for FreeBSD 6.1.
15424
15425 2007-04-04  Bruno Haible  <bruno@clisp.org>
15426
15427         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
15428         directly used by the gnulib modules nor by gnulib-tool.
15429
15430 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
15431
15432         * DEPENDENCIES: Give overall description of version dependency
15433         desirability.  Use more-typical names for apps.
15434         Add shell, coreutils, diffutils, grep, tar, gzip.
15435
15436 2007-04-04  Simon Josefsson  <simon@josefsson.org>
15437
15438         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
15439
15440 2007-04-04  Karl Berry  <karl@gnu.org>
15441
15442         * MODULES.html.sh (func_module): missing '.
15443
15444 2007-04-03  Bruno Haible  <bruno@clisp.org>
15445
15446         * modules/argmatch-tests (Makefile.am): New variable
15447         test_argmatch_LDADD.
15448         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
15449         * modules/array-list-tests (Makefile.am): New variable
15450         test_array_list_LDADD.
15451         * modules/array-oset-tests (Makefile.am): New variable
15452         test_array_oset_LDADD.
15453         * modules/avltree-list-tests (Makefile.am): New variable
15454         test_avltree_list_LDADD.
15455         * modules/avltree-oset-tests (Makefile.am): New variable
15456         test_avltree_oset_LDADD.
15457         * modules/avltreehash-list-tests (Makefile.am): New variable
15458         test_avltreehash_list_LDADD.
15459         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
15460         test_canonicalize_lgpl_LDADD.
15461         * modules/carray-list-tests (Makefile.am): New variable
15462         test_carray_list_LDADD.
15463         * modules/dirname-tests (Makefile.am): New variable
15464         test_dirname_LDADD.
15465         * modules/linked-list-tests (Makefile.am): New variable
15466         test_linked_list_LDADD.
15467         * modules/linkedhash-list-tests (Makefile.am): New variable
15468         test_linkedhash_list_LDADD.
15469         * modules/rbtree-list-tests (Makefile.am): New variable
15470         test_rbtree_list_LDADD.
15471         * modules/rbtree-oset-tests (Makefile.am): New variable
15472         test_rbtree_oset_LDADD.
15473         * modules/rbtreehash-list-tests (Makefile.am): New variable
15474         test_rbtreehash_list_LDADD.
15475         * modules/xvasprintf-tests (Makefile.am): New variable
15476         test_xvasprintf_LDADD.
15477         Reported by Eric Blake.
15478
15479 2007-04-03  Eric Blake  <ebb9@byu.net>
15480
15481         * DEPENDENCIES: Weaken m4 requirements.
15482
15483 2007-04-03  Bruno Haible  <bruno@clisp.org>
15484
15485         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
15486         * modules/isnanl-tests (configure.ac): Likewise.
15487
15488 2007-04-03  Ben Pfaff  <blp@gnu.org>
15489
15490         * modules/iconv_open: Add $(srcdir)/ to source directory
15491         references in Makefile fragments that call gperf, to fix VPATH
15492         builds.
15493
15494 2007-04-03  Bruno Haible  <bruno@clisp.org>
15495
15496         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
15497         * lib/ldexpl.c: Undo last change.
15498
15499 2007-04-03  Bruno Haible  <bruno@clisp.org>
15500
15501         * modules/printf-frexpl (Depends-on): Undo last change.
15502         (Files): Add m4/ldexpl.m4.
15503
15504 2007-04-03  Bruno Haible  <bruno@clisp.org>
15505
15506         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
15507         * modules/isnanl (Link): New section.
15508
15509         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
15510         * modules/frexp (Link): New section.
15511
15512         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
15513         * modules/frexpl (Link): New section.
15514
15515         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
15516         * modules/ldexpl (Link): New section.
15517
15518 2007-04-03  Bruno Haible  <bruno@clisp.org>
15519
15520         * modules/TEMPLATE-EXTENDED: New file.
15521         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
15522
15523 2007-04-03  Bruno Haible  <bruno@clisp.org>
15524
15525         * DEPENDENCIES: New file.
15526         Suggested by Simon Josefsson.
15527
15528 2007-04-03  Bruno Haible  <bruno@clisp.org>
15529
15530         * doc/gnulib.texi: Escape @.
15531
15532 2007-04-03  James Youngman  <jay@gnu.org>
15533         and Paul Eggert  <eggert@cs.ucla.edu>
15534
15535         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
15536         birthtime on all systems that have birthtime, not just those which
15537         use st_birthtimensec rather than st_birthtim.  Putting zero in
15538         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
15539         that the birth time is not available for files on an NFS mount.
15540
15541 2007-04-03  Simon Josefsson  <simon@josefsson.org>
15542
15543         * modules/memxor: Move back from crypto/, suggested by Bruno.
15544         * modules/crypto/hmac-sha1: Fix memxor dependency.
15545
15546         * modules/crypto/gc: Moved from ../.
15547
15548 2007-04-02  Eric Blake  <ebb9@byu.net>
15549
15550         * lib/ldexpl.c (includes): Avoid libm.
15551
15552         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
15553
15554 2007-04-02  Bruno Haible  <bruno@clisp.org>
15555
15556         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
15557         on IRIX.
15558
15559 2007-04-02  Bruno Haible  <bruno@clisp.org>
15560
15561         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
15562         x86 or x86_64 platforms running MacOS X.
15563         Reported by Ryan Schmidt <@ryandesign.com>.
15564
15565 2007-04-02  Bruno Haible  <bruno@clisp.org>
15566
15567         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
15568         i386.
15569
15570 2007-04-01  Simon Josefsson  <simon@josefsson.org>
15571
15572         * modules/crypto/arcfour: Moved from ../.
15573         * modules/crypto/arcfour-tests: Moved from ../.
15574         * modules/crypto/arctwo: Moved from ../.
15575         * modules/crypto/arctwo-tests: Moved from ../.
15576         * modules/crypto/des: Moved from ../.
15577         * modules/crypto/des-tests: Moved from ../.
15578         * modules/crypto/gc-arcfour: Moved from ../.
15579         * modules/crypto/gc-arcfour-tests: Moved from ../.
15580         * modules/crypto/gc-arctwo: Moved from ../.
15581         * modules/crypto/gc-arctwo-tests: Moved from ../.
15582         * modules/crypto/gc-des: Moved from ../.
15583         * modules/crypto/gc-des-tests: Moved from ../.
15584         * modules/crypto/gc-hmac-md5: Moved from ../.
15585         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
15586         * modules/crypto/gc-hmac-sha1: Moved from ../.
15587         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
15588         * modules/crypto/gc-md2: Moved from ../.
15589         * modules/crypto/gc-md2-tests: Moved from ../.
15590         * modules/crypto/gc-md4: Moved from ../.
15591         * modules/crypto/gc-md4-tests: Moved from ../.
15592         * modules/crypto/gc-md5: Moved from ../.
15593         * modules/crypto/gc-md5-tests: Moved from ../.
15594         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
15595         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
15596         * modules/crypto/gc-random: Moved from ../.
15597         * modules/crypto/gc-rijndael: Moved from ../.
15598         * modules/crypto/gc-rijndael-tests: Moved from ../.
15599         * modules/crypto/gc-sha1: Moved from ../.
15600         * modules/crypto/gc-sha1-tests: Moved from ../.
15601         * modules/crypto/gc-tests: Moved from ../.
15602         * modules/crypto/hmac-md5: Moved from ../.
15603         * modules/crypto/hmac-md5-tests: Moved from ../.
15604         * modules/crypto/hmac-sha1: Moved from ../.
15605         * modules/crypto/hmac-sha1-tests: Moved from ../.
15606         * modules/crypto/md2: Moved from ../.
15607         * modules/crypto/md2-tests: Moved from ../.
15608         * modules/crypto/md4: Moved from ../.
15609         * modules/crypto/md4-tests: Moved from ../.
15610         * modules/crypto/md5: Moved from ../.
15611         * modules/crypto/md5-tests: Moved from ../.
15612         * modules/crypto/memxor: Moved from ../.
15613         * modules/crypto/rijndael: Moved from ../.
15614         * modules/crypto/rijndael-tests: Moved from ../.
15615         * modules/crypto/sha1: Moved from ../.
15616
15617 2007-03-30  James Youngman  <jay@gnu.org>
15618
15619         * tests/test-stat-time.c (prepare_test): use chmod() rather than
15620         rename() to change the ctime of a file (because ctime is unaffected
15621         by rename on jfs2 on AIX 5.1).
15622         (main): Start by doing cleanup, in case a previous run failed leaving
15623         test files behind.
15624
15625 2007-03-31  Bruno Haible  <bruno@clisp.org>
15626
15627         Support old proprietary implementations of iconv.
15628         * modules/iconv_open: New file.
15629         * lib/iconv_.h: New file.
15630         * m4/iconv_h.m4: New file.
15631         * lib/iconv_open.c: New file.
15632         * lib/iconv_open-aix.gperf: New file.
15633         * lib/iconv_open-hpux.gperf: New file.
15634         * lib/iconv_open-irix.gperf: New file.
15635         * lib/iconv_open-osf.gperf: New file.
15636         * m4/iconv_open.m4: New file.
15637         * modules/linebreak (Depends-on): Add iconv_open.
15638         * modules/striconv (Depends-on): Likewise.
15639         * modules/striconveh (Depends-on): Likewise.
15640         * modules/unicodeio (Depends-on): Likewise.
15641         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
15642         (iconv_t)(-1).
15643         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
15644         conversion if cd is (iconv_t)(-1).
15645         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
15646         is not possible.
15647
15648 2007-03-31  Bruno Haible  <bruno@clisp.org>
15649
15650         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15651         work on Solaris either. Protect also second use of "autodetect_jp".
15652
15653 2007-03-31  Bruno Haible  <bruno@clisp.org>
15654
15655         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
15656         the function is not present.
15657
15658 2007-03-31  Bruno Haible  <bruno@clisp.org>
15659
15660         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
15661         the function is not present.
15662
15663 2007-03-31  Bruno Haible  <bruno@clisp.org>
15664
15665         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
15666         a bug in HP-UX iconv_open().
15667
15668 2007-03-31  Bruno Haible  <bruno@clisp.org>
15669
15670         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
15671         (Mathematics <math.h>): New section, add fpieee.
15672         (Input/output <stdio.h>): Add fseterr.
15673         (Mathematics <math.h>): New section, add printf-frexp.
15674         (Container data structures): Add sublist.
15675         (Core language properties): Add fpucw, inline.
15676         (Functions for greatest-width integer types <inttypes.h>): Add
15677         imaxabs, imaxdiv, inttypes.
15678         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
15679         isnanl-nolibm, ldexp.
15680         (Mathematics <math.h>): New section, add printf-frexpl.
15681         (Support for systems lacking POSIX:2001): Add fprintf-posix,
15682         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
15683         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
15684         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
15685         (Unicode string functions): Add unistr/u*-mbtoucr.
15686         (Java): Add javacomp-script, javaexec-script.
15687         (C#): Add csharpcomp-script, csharpexec-script.
15688         (Support for building libraries and executables): Add havelib,
15689         relocatable-*.
15690         (Support for maintaining and releasing projects): Renamed from
15691         'Support for maintaining and release projects'. Add announce-gen.
15692
15693 2007-03-31  Bruno Haible  <bruno@clisp.org>
15694
15695         * README: Talk primarily about git.
15696         (git and CVS): Renamed from CVS.
15697         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
15698         gnulib is available through git.
15699         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
15700
15701 2007-03-30  Bruno Haible  <bruno@clisp.org>
15702
15703         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
15704         * lib/poll_.h: Likewise.
15705         * lib/stat_.h: Likewise.
15706         * lib/sys_time_.h: Likewise.
15707         * lib/sysexit_.h: Likewise.
15708         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
15709         * lib/stdbool_.h: Likewise.
15710         * lib/byteswap_.h: Add double-inclusion guard.
15711
15712 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
15713
15714         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
15715
15716 2007-03-30  Karl Berry  <karl@gnu.org>
15717
15718         * config/srclist-update: double space after USA in the license
15719         substitution, since that's how it's usually (?) written.
15720
15721 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15722
15723         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
15724         reported by Bruno Haible.
15725
15726 2007-03-29  Bruno Haible  <bruno@clisp.org>
15727
15728         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
15729         a bug in AIX iconv().
15730
15731 2007-03-29  Bruno Haible  <bruno@clisp.org>
15732
15733         * modules/ldexpl-tests: New file.
15734         * tests/test-ldexpl.c: New file.
15735
15736 2007-03-29  Bruno Haible  <bruno@clisp.org>
15737
15738         * lib/ldexpl.c: Include fpucw.h.
15739         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
15740         multiplication.
15741         * modules/ldexpl (Depends-on): Add fpucw.
15742
15743 2007-03-29  Bruno Haible  <bruno@clisp.org>
15744
15745         * modules/ldexpl: New file.
15746         * m4/ldexpl.m4: New file.
15747         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
15748         set.
15749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
15750         REPLACE_LDEXPL.
15751         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
15752         REPLACE_LDEXPL.
15753         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15754         gl_FUNC_LDEXPL_WORKS.
15755         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
15756         * modules/mathl (Files): Remove lib/ldexpl.c.
15757         (Depends-on): Add ldexpl.
15758
15759 2007-03-29  Bruno Haible  <bruno@clisp.org>
15760
15761         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
15762
15763 2007-03-29  Bruno Haible  <bruno@clisp.org>
15764
15765         * tests/test-striconveh.c (main): Don't assume that a direct conversion
15766         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
15767         and possibly also HP-UX.
15768         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15769         work on AIX, IRIX, HP-UX, OSF/1.
15770         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15771         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15772         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15773         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15774         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15775         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15776
15777 2007-03-29  Bruno Haible  <bruno@clisp.org>
15778
15779         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
15780
15781 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15782
15783         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
15784         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
15785
15786 2007-03-29  Eric Blake  <ebb9@byu.net>
15787
15788         * lib/acl-internal.h: Remove redundant include.
15789         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
15790         Cygwin when a file is locked.
15791
15792 2007-03-29  Bruno Haible  <bruno@clisp.org>
15793
15794         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
15795         file.
15796         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
15797
15798 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15799
15800         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
15801         try to remove a parent directory if the child couldn't be removed
15802         (except for the first rmdir, which could fail because the child
15803         doesn't exist).  Problem reported by Jeff Blaine in
15804         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
15805
15806 2007-03-28  Bruno Haible  <bruno@clisp.org>
15807
15808         * lib/striconveh.c (utf8conv_carefully): New function.
15809         (mem_cd_iconveh_internal): Invoke it.
15810
15811 2007-03-28  Bruno Haible  <bruno@clisp.org>
15812
15813         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
15814         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
15815         input.
15816         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
15817         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
15818         unistr/u8-uctomb.
15819
15820 2007-03-28  Bruno Haible  <bruno@clisp.org>
15821
15822         * modules/unistr/u8-mbtoucr: New file.
15823         * lib/unistr/u8-mbtoucr.c: New file.
15824         * modules/unistr/u16-mbtoucr: New file.
15825         * lib/unistr/u16-mbtoucr.c: New file.
15826         * modules/unistr/u16-mbtoucr: New file.
15827         * lib/unistr/u16-mbtoucr.c: New file.
15828         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
15829
15830 2007-03-27  Simon Josefsson  <simon@josefsson.org>
15831             Bruno Haible  <bruno@clisp.org>
15832
15833         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
15834         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
15835         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
15836
15837         * m4/stdio_h.m4: Add stubs for vasprintf too.
15838
15839         * modules/stdio: Support vasprintf in sed command.
15840
15841         * modules/vasprintf: Depend on stdio for prototypes.  Remove
15842         vasprintf.h.  Add stdio module indicator.
15843
15844         * lib/stdio_.h: Declare asprintf and vasprintf, based on
15845         vasprintf.h.
15846
15847         * lib/vasprintf.h: File removed.
15848
15849         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
15850         * lib/vasprintf.c: Ditto.
15851         * lib/xvasprintf.c: Ditto.
15852         * tests/test-vasprintf-posix.c: Ditto.
15853         * tests/test-vasprintf.c: Ditto.
15854
15855 2007-03-27  Bruno Haible  <bruno@clisp.org>
15856
15857         Make vasnprintf multithread-safe.
15858         * lib/vasnprintf.c (decimal_point_char): New function.
15859         (VASNPRINTF): Use it.
15860         Suggested by Simon Josefsson.
15861
15862 2007-03-27  Eric Blake  <ebb9@byu.net>
15863
15864         Support sub-second birthtime on cygwin.
15865         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
15866         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
15867         (get_stat_birthtime): Also work with st_birthtim.
15868
15869 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15870
15871         * lib/stat-time.h (USE_BIRTHTIME): Remove.
15872         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
15873         (get_stat_birthtime_ns): Do not try to use "spare" fields.
15874         (get_stat_birthtime_ns): Simplify compile-time tests.
15875         (get_stat_birthtime): Change the API to look like
15876         get_stat_mtime etc., except return a negative tv_nsec on error.
15877         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
15878         Don't check for "spare" fields.
15879         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
15880         or for struct stat.st_birthtime, as these tests aren't used.
15881         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
15882
15883 2007-03-27  Bruno Haible  <bruno@clisp.org>
15884
15885         * lib/stat-time.h: Include <sys/stat.h>.
15886
15887 2007-03-27  James Youngman  <jay@gnu.org>
15888
15889         * lib/stat-time.h (get_stat_birthtime): New function for
15890           retrieving st_birthtime as provided by UFS2 (hence *BSD).
15891         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
15892           and its variants.
15893         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
15894         * modules/stat-time-test: New file.
15895         * tests/test-stat-time.c: New test, devised by Bruno Haible.
15896
15897 2007-03-26  Bruno Haible  <bruno@clisp.org>
15898
15899         Better support of signalling NaNs.
15900         * lib/atanl.c: Include isnanl.h.
15901         (atanl): Perform test for NaN at the beginning of the function and
15902         through a call to isnanl.
15903         * lib/cosl.c: Include isnanl.h.
15904         (cosl): Perform test for NaN at the beginning of the function and
15905         through a call to isnanl.
15906         * lib/ldexpl.c: Include isnanl.h.
15907         (ldexpl): Perform test for NaN through a call to isnanl.
15908         * lib/logl.c: Include isnanl.h.
15909         (logl): Perform test for NaN at the beginning of the function and
15910         through a call to isnanl.
15911         * lib/sinl.c: Include isnanl.h.
15912         (sinl): Perform test for NaN at the beginning of the function and
15913         through a call to isnanl.
15914         * lib/sqrtl.c: Include isnanl.h.
15915         (sqrtl): Perform test for NaN at the beginning of the function and
15916         through a call to isnanl.
15917         * lib/tanl.c: Include isnanl.h.
15918         (tanl): Perform test for NaN at the beginning of the function and
15919         through a call to isnanl.
15920         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
15921         * modules/mathl (Depends-on): Add isnanl.
15922
15923 2007-03-26  Eric Blake  <ebb9@byu.net>
15924
15925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
15926         regression in logic sense of previous patch.
15927
15928 2007-03-26  Bruno Haible  <bruno@clisp.org>
15929
15930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
15931         unportable shell command "if ! ...".
15932         Reported by Ralf Wildenhues.
15933
15934 2007-03-25  Bruno Haible  <bruno@clisp.org>
15935
15936         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
15937         <sysexits.h> file, and only add EX_CONFIG.
15938         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
15939         absolute file name and whether it is sufficient. Substitute also
15940         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
15941         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
15942         ABSOLUTE_SYSEXITS_H into sysexits.h.
15943
15944 2007-03-25  Bruno Haible  <bruno@clisp.org>
15945
15946         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
15947         hints is NULL.
15948
15949 2007-03-25  Bruno Haible  <bruno@clisp.org>
15950
15951         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
15952         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
15953
15954 2007-03-25  Bruno Haible  <bruno@clisp.org>
15955
15956         * lib/vasnprintf.c: Include langinfo.h.
15957         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
15958         multithread-safe.
15959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
15960         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
15961         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15962         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15963         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15964         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15965         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15966         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
15967         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15968         Reported by Simon Josefsson.
15969
15970 2007-03-25  Bruno Haible  <bruno@clisp.org>
15971
15972         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
15973         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
15974         * modules/vasnprintf (Depends-on): Add stdint.
15975
15976 2007-03-25  Bruno Haible  <bruno@clisp.org>
15977
15978         * modules/fpieee: New file.
15979         * m4/fpieee.m4: New file.
15980         * modules/isnan-nolibm (Depends-on): Add fpieee.
15981         * modules/isnanl-nolibm (Depends-on): Add fpieee.
15982         * modules/isnanl (Depends-on): Add fpieee.
15983
15984 2007-03-25  Bruno Haible  <bruno@clisp.org>
15985
15986         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
15987
15988 2007-03-25  Bruno Haible  <bruno@clisp.org>
15989
15990         Avoid test failures on IRIX 6.5.
15991         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
15992         (main): Use it.
15993         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
15994         macros.
15995         (main): Use them.
15996
15997 2007-03-25  Bruno Haible  <bruno@clisp.org>
15998
15999         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
16000         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
16001         exists but doesn't work.
16002         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
16003         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
16004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
16005         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
16006
16007 2007-03-25  Bruno Haible  <bruno@clisp.org>
16008
16009         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
16010         returns inf. Needed on IRIX 6.5.
16011
16012 2007-03-25  Bruno Haible  <bruno@clisp.org>
16013
16014         * tests/test-frexpl.c: Include isnanl-nolibm.h.
16015         (main): Use isnanl instead of x != x idiom.
16016         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
16017
16018         * tests/test-frexp.c: Include isnan.h.
16019         (main): Use isnan instead of x != x idiom.
16020         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
16021
16022 2007-03-25  Bruno Haible  <bruno@clisp.org>
16023
16024         * tests/test-frexp.c (NaN): New function/macro.
16025         (main): Use it instead of 0.0 / 0.0.
16026         * tests/test-isnan.c (NaN): New function/macro.
16027         (main): Use it instead of 0.0 / 0.0.
16028         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
16029         (test_function): Use it instead of 0.0 / 0.0.
16030         * tests/test-vasprintf-posix.c (NaN): New function/macro.
16031         (test_function): Use it instead of 0.0 / 0.0.
16032         * tests/test-snprintf-posix.h (NaN): New function/macro.
16033         (test_function): Use it instead of 0.0 / 0.0.
16034         * tests/test-sprintf-posix.h (NaN): New function/macro.
16035         (test_function): Use it instead of 0.0 / 0.0.
16036         * tests/test-fprintf-posix.h (NaN): New function/macro.
16037         (test_function): Use it instead of 0.0 / 0.0.
16038         * tests/test-printf-posix.h (NaN): New function/macro.
16039         (test_function): Use it instead of 0.0 / 0.0.
16040
16041         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
16042
16043 2007-03-25  Bruno Haible  <bruno@clisp.org>
16044
16045         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
16046
16047 2007-03-25  Bruno Haible  <bruno@clisp.org>
16048
16049         * lib/regexec.c (merge_state_with_log): Make static.
16050
16051 2007-03-25  Bruno Haible  <bruno@clisp.org>
16052
16053         * lib/trigl.c (kernel_rem_pio2): Make static.
16054
16055 2007-03-25  Bruno Haible  <bruno@clisp.org>
16056
16057         * lib/sincosl.c (sincosl_table): Make static.
16058
16059 2007-03-25  Bruno Haible  <bruno@clisp.org>
16060
16061         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
16062         if the compiler does not support C99.
16063
16064 2007-03-25  Bruno Haible  <bruno@clisp.org>
16065
16066         * modules/time (Makefile.am): Ensure all rule action lines start with a
16067         tab.
16068
16069 2007-03-24  Bruno Haible  <bruno@clisp.org>
16070
16071         * modules/tsearch-tests: New file.
16072         * tests/test-tsearch.sh: New file.
16073         * tests/test-tsearch.c: New file, mostly copied from glibc.
16074
16075         * modules/search-tests: New file.
16076         * tests/test-search.c: New file.
16077
16078         * modules/search: New file.
16079         * lib/search_.h: New file, incorporating lib/tsearch.h.
16080         * m4/search_h.m4: New file.
16081         * lib/tsearch.h: Remove file.
16082         * lib/tsearch.c: Include search.h instead of tsearch.h.
16083         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
16084         HAVE_TSEARCH.
16085         * modules/tsearch (Files): Remove lib/tsearch.h.
16086         (Depends-on): Add search.
16087         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
16088         (Include): Change tsearch.h into search.h.
16089
16090 2007-03-24  Bruno Haible  <bruno@clisp.org>
16091
16092         * modules/fpucw: New file.
16093         * lib/fpucw.h: New file.
16094         * lib/frexp.c: Include fpucw.h.
16095         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16096         (FUNC): Use them.
16097         * lib/printf-frexp.c: Include fpucw.h.
16098         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16099         (FUNC): Use them.
16100         * lib/vasnprintf.c: Include fpucw.h.
16101         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
16102         'long double' calculations.
16103         * tests/test-frexpl.c: Include fpucw.h.
16104         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16105         * tests/test-printf-frexpl.c: Include fpucw.h.
16106         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16107         * modules/frexpl (Depends-on): Add fpucw.
16108         * modules/printf-frexpl (Depends-on): Likewise.
16109         * modules/fprintf-posix (Depends-on): Likewise.
16110         * modules/snprintf-posix (Depends-on): Likewise.
16111         * modules/sprintf-posix (Depends-on): Likewise.
16112         * modules/vasnprintf-posix (Depends-on): Likewise.
16113         * modules/vasprintf-posix (Depends-on): Likewise.
16114         * modules/vfprintf-posix (Depends-on): Likewise.
16115         * modules/vsnprintf-posix (Depends-on): Likewise.
16116         * modules/vsprintf-posix (Depends-on): Likewise.
16117         * modules/frexpl-tests (Depends-on): Likewise.
16118         * modules/printf-frexpl-tests (Depends-on): Likewise.
16119
16120 2007-03-24  Bruno Haible  <bruno@clisp.org>
16121
16122         * lib/float+.h: New file.
16123         * lib/isnan.c: Include float+.h.
16124         (SIZE): New macro.
16125         (FUNC): Compare only SIZE bytes of the value.
16126         * lib/vasnprintf.c: Include float+.h.
16127         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
16128         SIZEOF_LDBL or SIZEOF_DBL bytes.
16129         * modules/isnan-nolibm (Files): Add lib/float+.h.
16130         * modules/isnanl-nolibm (Files): Add lib/float+.h.
16131         * modules/isnanl (Files): Add lib/float+.h.
16132         * modules/vasnprintf (Files): Add lib/float+.h.
16133
16134 2007-03-24  Bruno Haible  <bruno@clisp.org>
16135
16136         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
16137         include isnanl-nolibm.h.
16138
16139 2007-03-24  Bruno Haible  <bruno@clisp.org>
16140
16141         * tests/test-read-file.c (main): Don't produce spurious output for
16142         expected situations. Make the test fail if it encountered unexpected
16143         results.
16144
16145 2007-03-24  Bruno Haible  <bruno@clisp.org>
16146
16147         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
16148         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
16149
16150 2007-03-24  Bruno Haible  <bruno@clisp.org>
16151
16152         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
16153
16154 2007-03-24  Bruno Haible  <bruno@clisp.org>
16155
16156         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
16157         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
16158
16159         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
16160         * modules/utf8-ucs4: Turn into a symbolic link to module
16161         unistr/u8-mbtouc.
16162
16163         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
16164         utf8-ucs4-unsafe.
16165         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
16166         unistr/u8-mbtouc-unsafe.
16167
16168         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
16169         * modules/utf16-ucs4: Turn into a symbolic link to module
16170         unistr/u16-mbtouc.
16171
16172         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
16173         utf16-ucs4-unsafe.
16174         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
16175         unistr/u16-mbtouc-unsafe.
16176
16177         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
16178         * modules/ucs4-utf8: Turn into a symbolic link to module
16179         unistr/u8-ubtomb.
16180
16181         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
16182         * modules/ucs4-utf16: Turn into a symbolic link to module
16183         unistr/u16-ubtomb.
16184
16185 2007-03-24  Bruno Haible  <bruno@clisp.org>
16186
16187         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
16188         Enable the function only if HAVE_INLINE.
16189         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
16190         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16191         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
16192         Enable the function only if HAVE_INLINE.
16193         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
16194         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16195         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
16196         Enable the function only if HAVE_INLINE.
16197         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
16198         Enable the function only if HAVE_INLINE.
16199         * modules/utf8-ucs4: Update.
16200         * modules/utf8-ucs4-unsafe: Update.
16201         * modules/utf16-ucs4: Update.
16202         * modules/utf16-ucs4-unsafe: Update.
16203         * modules/ucs4-utf8: Update.
16204         * modules/ucs4-utf16: Update.
16205
16206 2007-03-24  Bruno Haible  <bruno@clisp.org>
16207
16208         * lib/utf8-ucs4.h: Remove file.
16209         * lib/utf8-ucs4-unsafe.h: Remove file.
16210         * lib/utf16-ucs4.h: Remove file.
16211         * lib/utf16-ucs4-unsafe.h: Remove file.
16212         * lib/ucs4-utf8.h: Remove file.
16213         * lib/ucs4-utf16.h: Remove file.
16214         * lib/unistr.h: Include their previous contents.
16215         * m4/utf-ucs4.m4: Remove file.
16216         * m4/ucs4-utf.m4: Remove file.
16217         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
16218         (Depends-on): Add unistr/base.
16219         (configure.ac): Remove gl_UTF_UCS4.
16220         (Makefile.am): Update.
16221         (Include): Change to unistr.h.
16222         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
16223         (Depends-on): Add unistr/base.
16224         (configure.ac): Remove gl_UTF_UCS4.
16225         (Makefile.am): Update.
16226         (Include): Change to unistr.h.
16227         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
16228         (Depends-on): Add unistr/base.
16229         (configure.ac): Remove gl_UTF_UCS4.
16230         (Makefile.am): Update.
16231         (Include): Change to unistr.h.
16232         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
16233         (Depends-on): Add unistr/base.
16234         (configure.ac): Remove gl_UTF_UCS4.
16235         (Makefile.am): Update.
16236         (Include): Change to unistr.h.
16237         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
16238         (Depends-on): Add unistr/base.
16239         (configure.ac): Remove gl_UCS4_UTF.
16240         (Makefile.am): Update.
16241         (Include): Change to unistr.h.
16242         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
16243         (Depends-on): Add unistr/base.
16244         (configure.ac): Remove gl_UCS4_UTF.
16245         (Makefile.am): Update.
16246         (Include): Change to unistr.h.
16247         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
16248         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
16249         utf8-ucs4-unsafe.h.
16250         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
16251         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
16252         utf16-ucs4-unsafe.h.
16253         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
16254         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
16255         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
16256         * lib/unistr/u8-strchr.c: Likewise.
16257         * lib/unistr/u8-strrchr.c: Likewise.
16258         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
16259         * lib/unistr/u16-strchr.c: Likewise.
16260         * lib/unistr/u16-strrchr.c: Likewise.
16261         * lib/striconveh.c: Update.
16262         * lib/linebreak.c: Update.
16263
16264 2007-03-24  Bruno Haible  <bruno@clisp.org>
16265
16266         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
16267         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
16268
16269 2007-03-22  Bruno Haible  <bruno@clisp.org>
16270
16271         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
16272
16273 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
16274
16275         * MODULES.html.sh (File system functions): New module write-any-file.
16276         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
16277         * m4/write-any-file.m4: New files.
16278
16279 2007-03-23  Eric Blake  <ebb9@byu.net>
16280
16281         * gnulib-tool: Rearrange space-tab sequences, since some editors
16282         like to eat them.
16283
16284 2007-03-23  Eric Blake  <ebb9@byu.net>
16285
16286         * lib/version-etc.c (version_etc_va): Update license wording to
16287         be more concise.  Recommended by Richard Stallman.
16288
16289 2007-03-22  Bruno Haible  <bruno@clisp.org>
16290
16291         * lib/poll.c (MSG_PEEK): New fallback definition.
16292
16293 2007-03-22  Bruno Haible  <bruno@clisp.org>
16294
16295         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
16296         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
16297         (main): Update.
16298         Fixes a compilation error on BeOS.
16299
16300 2007-03-22  Bruno Haible  <bruno@clisp.org>
16301
16302         * modules/frexpl-tests: New file.
16303         * tests/test-frexpl.c: New file.
16304
16305         * modules/frexpl: New file.
16306         * m4/frexpl.m4: New file.
16307         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
16308         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
16309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
16310         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
16311         (Depends-on): Add frexpl. Remove isnanl-nolibm.
16312         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
16313
16314 2007-03-22  Bruno Haible  <bruno@clisp.org>
16315
16316         * lib/frexpl.c: Share code with lib/frexp.c.
16317         * modules/mathl (Files): Add lib/frexp.c.
16318         (Depends-on): Add isnanl-nolibm.
16319
16320 2007-03-22  Bruno Haible  <bruno@clisp.org>
16321
16322         * modules/printf-frexp (Files): Add m4/frexp.m4.
16323         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
16324         only if the found frexp function actually works.
16325
16326 2007-03-22  Bruno Haible  <bruno@clisp.org>
16327
16328         * lib/frexp.c: Remove older implementation that uses divisions.
16329
16330 2007-03-21  Bruno Haible  <bruno@clisp.org>
16331
16332         * modules/frexp-tests: New file.
16333         * tests/test-frexp.c: New file.
16334
16335         * modules/frexp: New file.
16336         * lib/frexp.c: New file.
16337         * m4/frexp.m4: New file.
16338         * lib/math_.h (frexp): New declaration.
16339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
16340         REPLACE_FREXP.
16341         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
16342
16343 2007-03-21  Bruno Haible  <bruno@clisp.org>
16344
16345         * modules/isnanl-tests: New file.
16346         * tests/test-isnanl.c: New file.
16347
16348         * modules/isnanl: New file.
16349         * lib/isnanl.h: New file.
16350         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
16351         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
16352         gl_FUNC_ISNANL_WORKS.
16353         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
16354         New macros.
16355
16356 2007-03-21  Bruno Haible  <bruno@clisp.org>
16357
16358         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
16359         lib/isnanl.h.
16360         (Include): Update.
16361         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
16362         * lib/vasnprintf.c: Update.
16363         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
16364         tests/test-isnanl.h, remove tests/test-isnanl.c.
16365         (Makefile.am): Update.
16366         * tests/test-isnanl-nolibm.c: New file.
16367         * tests/test-isnanl.h: New file.
16368         * tests/test-isnanl.c: Remove file.
16369
16370 2007-03-21  Jim Meyering  <jim@meyering.net>
16371
16372         When trying to open ".", treat ESTALE like EACCES.
16373         * lib/savewd.c (savewd_save): Resort to forking not just upon
16374         failure with EACCES, but also when errno is ESTALE.
16375
16376 2007-03-20  Bruno Haible  <bruno@clisp.org>
16377
16378         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
16379         Needed on AIX 5.1. Reported by Matthew Woehlke.
16380
16381 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16382
16383         Suggestions by Bruno Haible:
16384         * lib/acl-internal.h: Include "gettext.h" rather than rolling
16385         our own.
16386         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
16387         * modules/acl (Depends-on): Add gettext.
16388
16389 2007-03-19  Bruno Haible  <bruno@clisp.org>
16390
16391         * modules/iconvme: Remove file.
16392         * lib/iconvme.h: Remove file.
16393         * lib/iconvme.c: Remove file.
16394         * m4/iconvme.m4: Remove file.
16395
16396 2007-03-19  Bruno Haible  <bruno@clisp.org>
16397
16398         * doc/relocatable-maint.texi: Break long shell script line.
16399         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16400
16401 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16402
16403         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
16404         handle file_has_acl.
16405         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
16406         * lib/acl.c: Move header inclusions and related macro defns into
16407         lib/acl-internal.h.
16408         (S_ISLNK): Remove defn, since that's now done for us.
16409         (file_has_acl): Move to lib/file-has-acl.c.
16410         Call acl_trivial if available.  This is the crucial part of the fix.
16411         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
16412         shared within the library.  Rewrite a bit, partly to make it compatible
16413         with the GNU coding style.
16414         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
16415         Remove unnecessary double-quotes.
16416         Don't test for acl_to_text; the build will catch that.
16417         Replace acl_entries if it doesn't exist and it is needed.
16418         Check for -lsec and acl_trivial (as used on Solaris 10).
16419         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
16420         lib/file-has-acl.c.
16421         (Depends-on): Add sys_stat, for S_ISLNK.
16422
16423 2007-03-19  Ben Pfaff  <blp@gnu.org>
16424
16425         * doc/gnulib.texi: Fix typos.
16426         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16427
16428 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16429
16430         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
16431         If size is zero here, buf must be zero.
16432
16433 2007-03-19  Simon Josefsson  <simon@josefsson.org>
16434
16435         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
16436         <bruno@clisp.org>.
16437
16438 2007-03-18  Bruno Haible  <bruno@clisp.org>
16439
16440         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
16441         Suggested by Eric Blake.
16442
16443 2007-03-18  Ben Pfaff  <blp@gnu.org>
16444
16445         * doc/relocatable.texi: Recommend using as prefix a directory
16446         that does not exist and will never be created.  Based on
16447         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
16448         and others.
16449
16450 2007-03-17  Bruno Haible  <bruno@clisp.org>
16451
16452         * lib/fchownat.c: Include lchown.h.
16453
16454 2007-03-17  Bruno Haible  <bruno@clisp.org>
16455
16456         Fix endless loop when the given allocated size was > INT_MAX.
16457         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
16458         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
16459         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
16460         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
16461         * lib/sprintf.c (sprintf): Likewise.
16462
16463 2007-03-17  Bruno Haible  <bruno@clisp.org>
16464
16465         * tests/test-argp-2.sh (func_compare): Output a context diff.
16466
16467 2007-03-17  Bruno Haible  <bruno@clisp.org>
16468
16469         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
16470         locale's decimal-point character.
16471
16472 2007-03-17  Bruno Haible  <bruno@clisp.org>
16473
16474         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
16475         before comparing it. Needed because on some platforms (e.g. x86) a
16476         'long double' occupies less bytes than sizeof (long double).
16477
16478 2007-03-17  Bruno Haible  <bruno@clisp.org>
16479
16480         * tests/test-crc.c (main): Make printf statements 64-bit clean.
16481         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
16482         * tests/test-getaddrinfo.c (simple): Likewise.
16483         * tests/test-read-file.c (main): Likewise.
16484
16485 2007-03-17  Bruno Haible  <bruno@clisp.org>
16486
16487         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
16488
16489 2007-03-17  Bruno Haible  <bruno@clisp.org>
16490
16491         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
16492         unused variable.
16493
16494 2007-03-17  Bruno Haible  <bruno@clisp.org>
16495
16496         * tests/test-c-strcasecmp.c: Include c-strcase.h.
16497         * tests/test-c-strncasecmp.c: Likewise.
16498
16499 2007-03-17  Bruno Haible  <bruno@clisp.org>
16500
16501         * modules/stdlib (Depends-on): Add unistd.
16502         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
16503         Needed for MacOS X 10.3.
16504
16505 2007-03-17  Bruno Haible  <bruno@clisp.org>
16506
16507         * lib/unistr/u-strdup.h: Include <stdlib.h>.
16508
16509 2007-03-17  Bruno Haible  <bruno@clisp.org>
16510
16511         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
16512
16513 2007-03-17  Bruno Haible  <bruno@clisp.org>
16514
16515         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
16516         to reflect files copied from gnulib (with or without modifications).
16517         Suggested by Jim Meyering.
16518
16519 2007-03-17  Eric Blake  <ebb9@byu.net>
16520
16521         * NEWS: Document stdlib change from 2007-02-18.
16522
16523 2007-03-17  Jim Meyering  <jim@meyering.net>
16524
16525         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
16526         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
16527         someone uses a name containing shell meta-characters.
16528         Reported by Alfred M. Szmidt.
16529
16530         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
16531
16532 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16533
16534         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
16535         and copy gettext configuration files only if configure.ac contains
16536         a use of AM_GNU_GETTEXT_VERSION.
16537
16538 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16539
16540         * build-aux/bootstrap (gnulib_name): New variable.
16541         (gnulib_tool_options): Use it.
16542
16543 2007-03-13  Simon Josefsson  <simon@josefsson.org>
16544
16545         * tests/test-des.c: Use new namespace.
16546
16547 2007-03-15  Bruno Haible  <bruno@clisp.org>
16548
16549         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
16550         Reported by James Youngman <jay@gnu.org>.
16551
16552 2007-03-15  Bruno Haible  <bruno@clisp.org>
16553
16554         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
16555         declared prototype. Needed with cc on OSF/1 5.1.
16556
16557 2007-03-15  Bruno Haible  <bruno@clisp.org>
16558
16559         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
16560         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
16561         (struct gl_list_implementation): Add dispose_fn argument to the
16562         'create_empty', 'create' methods.
16563         (struct gl_list_impl_base): Add field 'dispose_fn'.
16564         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
16565         argument.
16566         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
16567         dispose_fn argument.
16568         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
16569         dispose_fn on the dropped values.
16570         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
16571         dispose_fn argument.
16572         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
16573         dropped values.
16574         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
16575         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16576         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
16577         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16578         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
16579         argument.
16580         (gl_tree_list_free): Call dispose_fn on the dropped values.
16581         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
16582         the dropped values.
16583         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
16584         Add dispose_fn argument.
16585         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
16586         Call dispose_fn on the dropped values.
16587         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
16588         Add dispose_fn argument.
16589         (gl_sublist_create): Initialize the 'dispose_fn' field.
16590         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
16591         * tests/test-array_list.c (main): Update.
16592         * tests/test-carray_list.c (main): Update.
16593         * tests/test-avltree_list.c (main): Update.
16594         * tests/test-rbtree_list.c (main): Update.
16595         * tests/test-avltreehash_list.c (main): Update.
16596         * tests/test-rbtreehash_list.c (main): Update.
16597         * tests/test-linked_list.c (main): Update.
16598         * tests/test-linkedhash_list.c (main): Update.
16599         * tests/test-array_oset.c (main): Update.
16600
16601 2007-03-15  Bruno Haible  <bruno@clisp.org>
16602
16603         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
16604         (gl_oset_create_empty): Add dispose_fn argument.
16605         (struct gl_oset_implementation): Add dispose_fn argument to
16606         'create_empty' method.
16607         (struct gl_oset_impl_base): Add dispose_fn field.
16608         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
16609         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
16610         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
16611         values.
16612         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
16613         (gl_tree_oset_free): Call dispose_fn on the dropped values.
16614         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16615         dropped value.
16616         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16617         dropped value.
16618         * tests/test-array_oset.c (main): Update.
16619         * tests/test-avltree_oset.c (main): Update.
16620         * tests/test-rbtree_oset.c (main): Update.
16621         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
16622
16623 2007-03-13  Bruno Haible  <bruno@clisp.org>
16624
16625         * tests/test-stdbool.c (i): Update after last patch.
16626
16627 2007-03-12  Bruno Haible  <bruno@clisp.org>
16628
16629         * lib/quotearg.c: Include <wctype.h> early, before the definition of
16630         the iswprint macro. Needed on Solaris 2.5.1.
16631
16632 2007-03-12  Bruno Haible  <bruno@clisp.org>
16633
16634         * tests/test-printf-frexp.c (main): Declare x as volatile.
16635
16636 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16637
16638         * doc/gnulib.texi (Build robot for gnulib): New section.
16639
16640 2007-03-12  Jim Meyering  <jim@meyering.net>
16641
16642         * build-aux/bootstrap: New file.
16643         * build-aux/bootstrap.conf: New file, from coreutils.
16644
16645 2007-03-11  Bruno Haible  <bruno@clisp.org>
16646
16647         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
16648
16649 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16650
16651         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
16652         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
16653         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
16654
16655 2007-03-11  Bruno Haible  <bruno@clisp.org>
16656
16657         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
16658         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
16659
16660 2007-03-11  Bruno Haible  <bruno@clisp.org>
16661
16662         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
16663         formula. Needed for SunPRO C 5.0.
16664
16665 2007-03-11  Bruno Haible  <bruno@clisp.org>
16666
16667         * modules/long-options (Depends-on): Add getopt.
16668
16669 2007-03-11  Bruno Haible  <bruno@clisp.org>
16670
16671         * modules/modechange (Depends-on): Add stdbool.
16672
16673 2007-03-11  Bruno Haible  <bruno@clisp.org>
16674
16675         * modules/i-ring (Depends-on): Add stdbool.
16676
16677 2007-03-11  Bruno Haible  <bruno@clisp.org>
16678
16679         * modules/gc-des (Depends-on): Add stdbool.
16680
16681 2007-03-11  Bruno Haible  <bruno@clisp.org>
16682
16683         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
16684
16685 2007-03-11  Bruno Haible  <bruno@clisp.org>
16686
16687         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
16688
16689 2007-03-11  Bruno Haible  <bruno@clisp.org>
16690
16691         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
16692
16693 2007-03-11  Bruno Haible  <bruno@clisp.org>
16694
16695         * lib/vasnprintf.c (sprintf): Undefine.
16696
16697 2007-03-11  Bruno Haible  <bruno@clisp.org>
16698
16699         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
16700         initializers in SunPRO C and Compaq C compilers.
16701
16702 2007-03-11  Bruno Haible  <bruno@clisp.org>
16703
16704         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
16705         decrementing code ANSI C compliant.
16706
16707 2007-03-11  Bruno Haible  <bruno@clisp.org>
16708
16709         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
16710         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
16711
16712 2007-03-11  Bruno Haible  <bruno@clisp.org>
16713
16714         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
16715         <stdbool.h> substitute doesn't pass.
16716
16717 2007-03-11  Bruno Haible  <bruno@clisp.org>
16718
16719         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
16720
16721 2007-03-11  Bruno Haible  <bruno@clisp.org>
16722
16723         * gnulib-tool (func_create_megatestdir): Create also an autobuild
16724         script, for submission to autobuild.josefsson.org.
16725
16726 2007-03-10  Bruno Haible  <bruno@clisp.org>
16727
16728         * modules/canonicalize-lgpl-tests: New file.
16729         * tests/test-canonicalize-lgpl.sh: New file.
16730         * tests/test-canonicalize-lgpl.c: New file.
16731
16732         * modules/c-strcase-tests: New file.
16733         * tests/test-c-strcase.sh: New file.
16734         * tests/test-c-strcasecmp.c: New file.
16735         * tests/test-c-strncasecmp.c: New file.
16736
16737         * modules/atexit-tests: New file.
16738         * tests/test-atexit.sh: New file.
16739         * tests/test-atexit.c: New file.
16740
16741 2007-03-10  Bruno Haible  <bruno@clisp.org>
16742
16743         * tests/test-binary-io.sh: Use temporary filenames that are not so
16744         likely to clash with those of other tests (in a parallel make).
16745         * tests/test-binary-io.c: Likewise.
16746
16747 2007-03-10  Bruno Haible  <bruno@clisp.org>
16748
16749         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
16750         fallback; use #error instead.
16751         Suggested by Simon Josefsson.
16752
16753 2007-03-10  Bruno Haible  <bruno@clisp.org>
16754
16755         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
16756         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
16757         first and the last.
16758
16759 2007-03-10  Bruno Haible  <bruno@clisp.org>
16760
16761         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
16762
16763 2007-03-10  Bruno Haible  <bruno@clisp.org>
16764
16765         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
16766         "make distcheck".
16767         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
16768         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
16769         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
16770
16771 2007-03-10  Bruno Haible  <bruno@clisp.org>
16772
16773         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
16774         variable.
16775         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
16776         variable.
16777
16778 2007-03-09  Eric Blake  <ebb9@byu.net>
16779         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
16780
16781         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
16782         types are not being provided by gnulib.
16783         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
16784         types are supported.
16785
16786 2007-03-10  Bruno Haible  <bruno@clisp.org>
16787
16788         * lib/stdio_.h (__attribute__): New macro.
16789         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
16790         vsprintf): Specify __attribute__ __format__ for GCC.
16791         Suggested by Eric Blake.
16792
16793 2007-03-09  Bruno Haible  <bruno@clisp.org>
16794
16795         * modules/printf-posix-tests: New file.
16796         * tests/test-printf-posix.sh: New file.
16797         * tests/test-printf-posix.c: New file.
16798
16799         * modules/printf-posix: New file.
16800         * lib/printf.c: New file.
16801         * m4/printf-posix-rpl.m4: New file.
16802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
16803         REPLACE_PRINTF.
16804         * lib/stdio_.h (printf): New declaration.
16805         (format, __format__, ____printf____, ____scanf____, ____strftime____,
16806         ____strfmon____): New macros.
16807         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
16808         REPLACE_PRINTF.
16809
16810 2007-03-09  Bruno Haible  <bruno@clisp.org>
16811
16812         * tests/test-vasnprintf-posix2.sh: New file.
16813         * tests/test-vasnprintf-posix2.c: New file.
16814         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
16815         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16816         (Makefile.am): Activate test-vasnprintf-posix2.sh.
16817
16818         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
16819         a locale dependent decimal point, rather than always '.'.
16820
16821 2007-03-09  Eric Blake  <ebb9@byu.net>
16822
16823         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
16824         spite of platforms like Tandem/NSK that define it to -1.
16825
16826 2007-03-08  Bruno Haible  <bruno@clisp.org>
16827
16828         * modules/vprintf-posix-tests: New file.
16829         * tests/test-vprintf-posix.sh: New file.
16830         * tests/test-vprintf-posix.c: New file.
16831         * tests/test-printf-posix.h: New file.
16832
16833         * modules/vprintf-posix: New file.
16834         * lib/vprintf.c: New file.
16835         * m4/vprintf-posix.m4: New file.
16836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
16837         REPLACE_VPRINTF.
16838         * lib/stdio_.h (vprintf): New declaration.
16839         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
16840         REPLACE_VPRINTF.
16841
16842 2007-03-08  Bruno Haible  <bruno@clisp.org>
16843
16844         * modules/fprintf-posix-tests: New file.
16845         * tests/test-fprintf-posix.sh: New file.
16846         * tests/test-fprintf-posix.c: New file.
16847
16848         * modules/fprintf-posix: New file.
16849         * lib/fprintf.c: New file.
16850         * m4/fprintf-posix.m4: New file.
16851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
16852         REPLACE_FPRINTF.
16853         * lib/stdio_.h (fprintf): New declaration.
16854         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
16855         REPLACE_FPRINTF.
16856
16857 2007-03-08  Bruno Haible  <bruno@clisp.org>
16858
16859         * modules/vfprintf-posix-tests: New file.
16860         * tests/test-vfprintf-posix.sh: New file.
16861         * tests/test-vfprintf-posix.c: New file.
16862         * tests/test-fprintf-posix.h: New file.
16863         * tests/test-fprintf-posix.out: New file.
16864
16865         * modules/vfprintf-posix: New file.
16866         * lib/vfprintf.c: New file.
16867         * m4/vfprintf-posix.m4: New file.
16868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
16869         REPLACE_VFPRINTF.
16870         * lib/stdio_.h (vfprintf): New declaration.
16871         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
16872         REPLACE_VFPRINTF.
16873
16874 2007-03-08  Bruno Haible  <bruno@clisp.org>
16875
16876         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
16877
16878 2007-03-08  Bruno Haible  <bruno@clisp.org>
16879
16880         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
16881         instead of 'expr' invocations.
16882         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16883         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16884         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16885         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16886         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16887         Suggested by Paul Eggert.
16888
16889 2007-03-08  Bruno Haible  <bruno@clisp.org>
16890
16891         * modules/fseterr-tests: New file.
16892         * tests/test-fseterr.c: New file.
16893
16894         * modules/fseterr: New file.
16895         * lib/fseterr.h: New file.
16896         * lib/fseterr.c: New file.
16897
16898 2007-03-08  Bruno Haible  <bruno@clisp.org>
16899
16900         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
16901         * lib/getopt_.h: Likewise.
16902         * lib/mbswidth.h: Likewise.
16903         * lib/setenv.h: Likewise.
16904         * lib/vasnprintf.h: Likewise.
16905         * lib/vasprintf.h: Likewise.
16906         * lib/verror.h: Likewise.
16907         * lib/xsetenv.h: Likewise.
16908         * lib/xvasprintf.h: Likewise.
16909
16910 2007-03-08  Jim Meyering  <jim@meyering.net>
16911
16912         * users.txt: Add parted.
16913
16914         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
16915
16916 2007-03-07  Bruno Haible  <bruno@clisp.org>
16917
16918         * m4/printf.m4: Make the shell script snippets copy&pastable.
16919
16920 2007-03-02  Bruno Haible  <bruno@clisp.org>
16921
16922         * lib/netinet_in_.h: New file.
16923         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
16924         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
16925         * modules/netinet_in (Files): Add lib/netinet_in_.h.
16926         (Depends-on): Add absolute-header.
16927         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
16928         into netinet/in.h.
16929
16930 2007-03-03  Bruno Haible  <bruno@clisp.org>
16931
16932         * lib/sys_select_.h: New file.
16933         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
16934         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
16935         * modules/sys_select (Files): Add lib/sys_select_.h.
16936         (Depends-on): Add absolute-header.
16937         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
16938         into sys/select.h.
16939
16940 2007-03-02  Bruno Haible  <bruno@clisp.org>
16941
16942         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
16943         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
16944         values.
16945         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
16946         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
16947         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
16948         * modules/sys_socket (Depends-on): Add absolute-header.
16949         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
16950         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
16951         (Include): Remove requirement of inclusion of <sys/types.h>.
16952
16953 2007-03-02  Bruno Haible  <bruno@clisp.org>
16954
16955         * lib/byteswap_.h (bswap_32): Fix formula.
16956
16957 2007-03-06  Bruno Haible  <bruno@clisp.org>
16958
16959         * modules/sprintf-posix-tests: New file.
16960         * tests/test-sprintf-posix.c: New file.
16961
16962         * modules/sprintf-posix: New file.
16963         * lib/sprintf.c: New file.
16964         * m4/sprintf-posix.m4: New file.
16965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
16966         REPLACE_SPRINTF.
16967         * lib/stdio_.h (sprintf): New declaration.
16968         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
16969         REPLACE_SPRINTF.
16970
16971 2007-03-06  Bruno Haible  <bruno@clisp.org>
16972
16973         * modules/vsprintf-posix-tests: New file.
16974         * tests/test-vsprintf-posix.c: New file.
16975         * tests/test-sprintf-posix.h: New file.
16976
16977         * modules/vsprintf-posix: New file.
16978         * lib/vsprintf.c: New file.
16979         * m4/vsprintf-posix.m4: New file.
16980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
16981         REPLACE_VSPRINTF.
16982         * lib/stdio_.h (vsprintf): New declaration.
16983         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
16984         REPLACE_VSPRINTF.
16985
16986 2007-03-06  Bruno Haible  <bruno@clisp.org>
16987
16988         * modules/vsnprintf (Depend-on): Remove minmax.
16989
16990 2007-03-06  Bruno Haible  <bruno@clisp.org>
16991
16992         * modules/snprintf-posix-tests: New file.
16993         * tests/test-snprintf-posix.c: New file.
16994
16995         * modules/snprintf-posix: New file.
16996         * m4/snprintf-posix.m4: New file.
16997         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
16998         gl_FUNC_SNPRINTF.
16999         (gl_FUNC_SNPRINTF): Invoke it.
17000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
17001         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
17002         is set.
17003         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
17004
17005 2007-03-06  Bruno Haible  <bruno@clisp.org>
17006
17007         * modules/vsnprintf-posix-tests: New file.
17008         * tests/test-vsnprintf-posix.c: New file.
17009         * tests/test-snprintf-posix.h: New file.
17010
17011         * modules/vsnprintf-posix: New file.
17012         * m4/vsnprintf-posix.m4: New file.
17013         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
17014         gl_FUNC_VSNPRINTF.
17015         (gl_FUNC_VSNPRINTF): Invoke it.
17016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
17017         * lib/stdio_.h (vsnprintf): Define as a replacement if
17018         REPLACE_VSNPRINTF is set.
17019         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
17020
17021 2007-03-06  Bruno Haible  <bruno@clisp.org>
17022
17023         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
17024         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
17025
17026 2007-03-06  Bruno Haible  <bruno@clisp.org>
17027
17028         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
17029         (asinl): Declare also if HAVE_DECL_ASINL is set.
17030         (atanl): Declare also if HAVE_DECL_ATANL is set.
17031         (ceill): Declare also if HAVE_DECL_CEILL is set.
17032         (cosl): Declare also if HAVE_DECL_COSL is set.
17033         (expl): Declare also if HAVE_DECL_EXPL is set.
17034         (floorl): Declare also if HAVE_DECL_FLOORL is set.
17035         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
17036         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
17037         (logl): Declare also if HAVE_DECL_LOGL is set.
17038         (sinl): Declare also if HAVE_DECL_SINL is set.
17039         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
17040         (tanl): Declare also if HAVE_DECL_TANL is set.
17041         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
17042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
17043         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
17044         declaration of frexpl, ldexpl.
17045         * modules/printf-frexpl (Depends-on): Add math.
17046         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
17047
17048 2007-03-05  Bruno Haible  <bruno@clisp.org>
17049
17050         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
17051         frexpl and ldexpl are declared.
17052         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
17053
17054 2007-03-05  Bruno Haible  <bruno@clisp.org>
17055
17056         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
17057         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
17058
17059 2007-03-05  Bruno Haible  <bruno@clisp.org>
17060
17061         * lib/stdio_.h: Include <stddef.h>.
17062
17063 2007-03-05  Bruno Haible  <bruno@clisp.org>
17064
17065         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
17066
17067 2007-03-05  Bruno Haible  <bruno@clisp.org>
17068
17069         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
17070         NetBSD 4, from Ralf Wildenhues.
17071
17072 2007-03-04  Bruno Haible  <bruno@clisp.org>
17073
17074         * lib/vasprintf.h: Update #if logic for the case when the functions
17075         exist but are overridden.
17076
17077 2007-03-04  Bruno Haible  <bruno@clisp.org>
17078
17079         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
17080         implementations: glibc-2.4 and MacOS X 10.3.
17081         * tests/test-vasnprintf-posix.c (test_function): Test also the case
17082         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
17083         * tests/test-vasprintf-posix.c (test_function): Likewise.
17084
17085 2007-03-04  Bruno Haible  <bruno@clisp.org>
17086
17087         * modules/vasprintf-posix-tests: New file.
17088         * tests/test-vasprintf-posix.c: New file.
17089
17090         * modules/vasprintf-posix: New file.
17091         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
17092         defined.
17093         * m4/vasprintf-posix.m4: New file.
17094         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
17095         gl_FUNC_VASPRINTF.
17096         (gl_FUNC_VASPRINTF): Invoke it.
17097         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
17098         here.
17099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
17100
17101 2007-03-04  Bruno Haible  <bruno@clisp.org>
17102
17103         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
17104         REPLACE_GETTIMEOFDAY.
17105         * modules/sys_time (Makefile.am): Likewise.
17106         * m4/sys_time_h.m4: Likewise.
17107         * m4/gettimeofday.m4: Likewise.
17108
17109 2007-03-04  Bruno Haible  <bruno@clisp.org>
17110
17111         * modules/vasnprintf-posix-tests: New file.
17112         * tests/test-vasnprintf-posix.c: New file.
17113
17114         * modules/vasnprintf-posix: New file.
17115         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
17116         printf-frexpl.h.
17117         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
17118         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
17119         REPLACE_VASNPRINTF is defined.
17120         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
17121         gl_FUNC_VASNPRINTF.
17122         (gl_FUNC_VASNPRINTF): Invoke it.
17123         * m4/vasnprintf-posix.m4: New file.
17124         * m4/printf.m4: New file.
17125
17126 2007-03-04  Bruno Haible  <bruno@clisp.org>
17127
17128         Compile progreloc.c only if --enable-relocatable is specified.
17129         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
17130         if --enable-relocatable was specified.
17131         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
17132         lib_SOURCES.
17133
17134 2007-03-04  Jim Meyering  <jim@meyering.net>
17135
17136         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
17137         Use it consistently, rather than enumerating errno constants.
17138
17139 2007-03-04  Bruno Haible  <bruno@clisp.org>
17140
17141         * modules/xvasprintf-tests: New file.
17142         * tests/test-xvasprintf.c: New file.
17143
17144         * modules/vasprintf-tests: New file.
17145         * tests/test-vasprintf.c: New file.
17146
17147         * modules/vasnprintf-tests: New file.
17148         * tests/test-vasnprintf.c: New file.
17149
17150         * modules/vsnprintf-tests: New file.
17151         * tests/test-vsnprintf.c: New file.
17152
17153         * modules/snprintf-tests: New file.
17154         * tests/test-snprintf.c: New file.
17155
17156 2007-03-04  Bruno Haible  <bruno@clisp.org>
17157
17158         Compile relocatable.c only if --enable-relocatable is specified.
17159         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
17160         gl_RELOCATABLE_LIBRARY.
17161         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
17162         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
17163         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
17164         gl_RELOCATABLE_LIBRARY.
17165         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
17166         (Makefile.am): Remove lib_SOURCES.
17167         * modules/relocatable-lib-lgpl (configure.ac): Invoke
17168         gl_RELOCATABLE_LIBRARY.
17169         (Makefile.am): Remove lib_SOURCES.
17170         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
17171         always.
17172         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17173         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
17174
17175 2007-03-04  Bruno Haible  <bruno@clisp.org>
17176
17177         * modules/argmatch-tests: New file.
17178         * tests/test-argmatch.c: New file.
17179
17180         * tests/test-allocsa.c (main): Halve the number of loop runs.
17181
17182         * modules/alloca-opt-tests: New file.
17183         * tests/test-alloca-opt.c: New file.
17184
17185 2007-03-04  Jim Meyering  <jim@meyering.net>
17186
17187         Work around difference between Linux ACLs and Solaris 10 ZFS.
17188         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
17189         for EINVAL.
17190
17191 2007-03-03  Bruno Haible  <bruno@clisp.org>
17192
17193         * modules/relocatable-prog (Depends-on): Add back progreloc's
17194         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
17195
17196 2007-03-03  Bruno Haible  <bruno@clisp.org>
17197
17198         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
17199         * modules/relocatable-lib: New file.
17200
17201 2007-03-03  Bruno Haible  <bruno@clisp.org>
17202
17203         * modules/relocatable-prog: Renamed from modules/relocatable.
17204         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
17205
17206 2007-03-03  Bruno Haible  <bruno@clisp.org>
17207
17208         * modules/relocatable-script (Files): Add doc/relocatable.texi,
17209         m4/relocatable-lib.m4.
17210         (Depends-on): Remove 'relocatable'.
17211         (configure.ac): Add gl_RELOCATABLE_NOP.
17212
17213 2007-03-03  Bruno Haible  <bruno@clisp.org>
17214
17215         * modules/relocatable-prog-wrapper: New file.
17216         * modules/relocatable (Depends-on): Add it. Remove all other
17217         dependencies except progname.
17218         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
17219
17220         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
17221         (gl_FUNC_STRERROR): Nop.
17222         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
17223
17224         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
17225         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
17226
17227         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
17228         (gl_FUNC_READLINK): Update.
17229
17230         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
17231
17232 2007-03-03  Bruno Haible  <bruno@clisp.org>
17233
17234         * lib/xreadlink.c: Include <unistd.h> unconditionally.
17235         * modules/xreadlink (Depends-on): Add unistd.
17236         * modules/xreadlink-with-size (Depends-on): Likewise.
17237
17238 2007-03-03  Bruno Haible  <bruno@clisp.org>
17239
17240         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
17241         extracted from gt_FUNC_SETENV.
17242         (gt_FUNC_SETENV): Remove macro.
17243         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
17244         remove gt_FUNC_SETENV.
17245
17246 2007-03-03  Bruno Haible  <bruno@clisp.org>
17247
17248         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
17249         ENABLE_RELOCATABLE here.
17250         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
17251
17252 2007-03-03  Bruno Haible  <bruno@clisp.org>
17253
17254         * modules/rbtreehash-list-tests (Depends-on): Add progname.
17255         * tests/test-rbtreehash_list.c: Include progname.h.
17256         (main): Call set_program_name.
17257
17258         * modules/rbtree-oset-tests (Depends-on): Add progname.
17259         * tests/test-rbtree_oset.c: Include progname.h.
17260         (main): Call set_program_name.
17261
17262         * modules/rbtree-list-tests (Depends-on): Add progname.
17263         * tests/test-rbtree_list.c: Include progname.h.
17264         (main): Call set_program_name.
17265
17266         * modules/linked-list-tests (Depends-on): Add progname.
17267         * tests/test-linked_list.c: Include progname.h.
17268         (main): Call set_program_name.
17269
17270 2007-03-03  Bruno Haible  <bruno@clisp.org>
17271
17272         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
17273         All uses of __restrict changed to _Restrict_.
17274         * lib/glob_.h (__restrict): Remove macro.
17275
17276 2007-03-02  Bruno Haible  <bruno@clisp.org>
17277
17278         * modules/gettext (configure.ac): Require gettext infrastructure
17279         from version 0.16.1.
17280
17281 2007-03-02  Bruno Haible  <bruno@clisp.org>
17282
17283         * modules/linkedhash-list-tests (Depends-on): Add progname.
17284         * tests/test-linkedhash_list.c: Include progname.h.
17285         (main): Call set_program_name.
17286
17287         * modules/carray-list-tests (Depends-on): Add progname.
17288         * tests/test-carray_list.c: Include progname.h.
17289         (main): Call set_program_name.
17290
17291         * modules/avltreehash-list-tests (Depends-on): Add progname.
17292         * tests/test-avltreehash_list.c: Include progname.h.
17293         (main): Call set_program_name.
17294
17295         * modules/avltree-oset-tests (Depends-on): Add progname.
17296         * tests/test-avltree_oset.c: Include progname.h.
17297         (main): Call set_program_name.
17298
17299         * modules/avltree-list-tests (Depends-on): Add progname.
17300         * tests/test-avltree_list.c: Include progname.h.
17301         (main): Call set_program_name.
17302
17303         * modules/array-oset-tests (Depends-on): Add progname.
17304         * tests/test-array_oset.c: Include progname.h.
17305         (main): Call set_program_name.
17306
17307         * modules/array-list-tests (Depends-on): Add progname.
17308         * tests/test-array_list.c: Include progname.h.
17309         (main): Call set_program_name.
17310
17311         * modules/argp-tests (Depends-on): Add progname.
17312         * tests/test-argp.c: Include argp.h first. Include progname.h.
17313         (main): Call set_program_name.
17314
17315 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
17316
17317         * doc/gnulib-tool.texi (Initial import): Reword description of
17318         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
17319         limited effect even if defined after the first system include.
17320
17321 2007-03-01  Bruno Haible  <bruno@clisp.org>
17322
17323         * build-aux/config.libpath: Update to libtool-1.5.22.
17324         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17325
17326 2007-03-01  Bruno Haible  <bruno@clisp.org>
17327
17328         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
17329         foo_CFLAGS.
17330         Reported by Ralf Wildenhues.
17331
17332 2007-03-01  Bruno Haible  <bruno@clisp.org>
17333
17334         * build-aux/install-reloc: Remove object files left over by some
17335         compilers.
17336         Reported by Ralf Wildenhues.
17337
17338 2007-03-01  Bruno Haible  <bruno@clisp.org>
17339
17340         * build-aux/install-reloc: Break long lines.
17341
17342 2007-03-01  Bruno Haible  <bruno@clisp.org>
17343
17344         * doc/relocatable.texi: Document that it may not work on OpenBSD.
17345         Reported by Ralf Wildenhues.
17346
17347 2007-03-01  Bruno Haible  <bruno@clisp.org>
17348
17349         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
17350         include ordering constraints.
17351
17352 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
17353
17354         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
17355         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
17356         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
17357         as another example.
17358         * lib/time_.h: Fix misspelling.
17359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17360         Require gl_HEADER_TIME_H_DEFAULTS.
17361         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
17362         * m4/time_r.m4 (gl_TIME_R): Likewise.
17363         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
17364
17365 2007-03-01  Bruno Haible  <bruno@clisp.org>
17366
17367         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
17368         * m4/utimens.m4 (gl_UTIMENS): Likewise.
17369
17370 2007-03-01  Jim Meyering  <jim@meyering.net>
17371
17372         * modules/xreadlink (Maintainer): Add my name.
17373         * modules/xreadlink-with-size (Depends-on): Alphabetize.
17374
17375 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
17376             Bruno Haible  <bruno@clisp.org>
17377
17378         * build-aux/install-reloc: Compile also c-ctype.c.
17379         * build-aux/relocatable.sh.in: New file.
17380         * doc/relocatable.texi: New file.
17381         * doc/relocatable-maint.texi: New file.
17382         * doc/gnulib.texi: Include relocatable-maint.texi.
17383         * lib/progreloc.c: Include unistd.h unconditionally.
17384         * lib/relocwrapper.c: Include unistd.h unconditionally.
17385         Include c-ctype.h.
17386         (add_dotbin): Use c_tolower.
17387         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
17388         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
17389         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
17390         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
17391         to m4/relocatable-lib.m4.
17392         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
17393         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
17394         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
17395         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
17396         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
17397         * modules/relocatable: New file.
17398         * modules/relocatable-lib: New file.
17399         * modules/relocatable-script: New file.
17400
17401 2007-02-28  Bruno Haible  <bruno@clisp.org>
17402
17403         Import --enable-relocatable infrastructure.
17404         * build-aux/config.libpath: New file, from GNU gettext.
17405         * build-aux/install-reloc: New file, from GNU gettext.
17406         * build-aux/reloc-ldflags: New file, from GNU gettext.
17407         * lib/relocatable.h: New file, from GNU gettext.
17408         * lib/relocatable.c: New file, from GNU gettext.
17409         * lib/relocwrapper.c: New file, from GNU gettext.
17410         * m4/relocatable.m4: New file, from GNU gettext.
17411
17412 2007-02-28  Bruno Haible  <bruno@clisp.org>
17413
17414         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
17415
17416         * modules/xreadlink: New file, from GNU gettext with modifications.
17417         * lib/xreadlink.c: New file, from GNU gettext.
17418         * lib/xreadlink.h: Add comments.
17419         (xreadlink): New declaration.
17420
17421         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
17422         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
17423         lib/xreadlink-with-size.c.
17424         (configure.ac): Remove gl_XREADLINK invocation.
17425         (Makefile.am): Augment lib_SOURCES.
17426         * m4/xreadlink.m4: Remove file.
17427         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
17428         (xreadlink_with_size): Renamed from xreadink.
17429         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
17430         * modules/canonicalize (Depends-on): Replace xreadlink with
17431         xreadlink-with-size.
17432         * lib/canonicalize.c (canonicalize_filename_mode): Update.
17433
17434 2007-02-25  Jim Meyering  <jim@meyering.net>
17435
17436         * build-aux/announce-gen: When complaining about excess arguments,
17437         list them.
17438
17439 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17440
17441         * README: Document signed integer overflow situation more
17442         accurately.
17443
17444 2007-02-25  Bruno Haible  <bruno@clisp.org>
17445
17446         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
17447         'a' or 'A' conversion.
17448
17449 2007-02-25  Bruno Haible  <bruno@clisp.org>
17450
17451         * modules/filename: Renamed from modules/pathname.
17452         (Files): Replace lib/pathname.h with lib/filename.h. Replace
17453         lib/concatpath.c with lib/concat-filename.c.
17454         (Makefile.am): Update.
17455         (Include): Replace pathname.h with filename.h.
17456         * lib/filename.h: Renamed from lib/pathname.h.
17457         (concatenated_filename): Renamed from concatenated_pathname.
17458         * lib/concat-filename.c: Renamed from lib/concatpath.c.
17459         (concatenated_filename): Renamed from concatenated_pathname.
17460         * lib/findprog.c: Include filename.h instead of pathname.h.
17461         (find_in_path): Update.
17462         * lib/javacomp.c: Include filename.h instead of pathname.h.
17463         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
17464         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
17465         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
17466         is_oldgcj_14_13_usable, is_javac_usable): Update.
17467         * lib/javaexec.c: Include filename.h instead of pathname.h.
17468         (execute_java_class): Update.
17469         * modules/findprog: Update.
17470         * modules/javacomp: Update.
17471         * modules/javaexec: Update.
17472         * MODULES.html.sh (File system functions): Add 'filename', remove
17473         'pathname'.
17474
17475 2007-02-25  Bruno Haible  <bruno@clisp.org>
17476
17477         * modules/printf-frexpl-tests: New file.
17478         * tests/test-printf-frexpl.c: New file.
17479
17480         * modules/printf-frexpl: New file.
17481         * lib/printf-frexpl.h: New file.
17482         * lib/printf-frexpl.c: New file.
17483         * m4/printf-frexpl.m4: New file.
17484
17485 2007-02-25  Bruno Haible  <bruno@clisp.org>
17486
17487         * modules/printf-frexp-tests: New file.
17488         * tests/test-printf-frexp.c: New file.
17489
17490         * modules/printf-frexp: New file.
17491         * lib/printf-frexp.h: New file.
17492         * lib/printf-frexp.c: New file.
17493         * m4/printf-frexp.m4: New file.
17494
17495 2007-02-25  Bruno Haible  <bruno@clisp.org>
17496
17497         Assume automake >= 1.10 for the tests.
17498         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
17499         * modules/arctwo-tests: Likewise.
17500         * modules/argp-tests: Likewise.
17501         * modules/avltree-list-tests: Likewise.
17502         * modules/avltree-oset-tests: Likewise.
17503         * modules/avltreehash-list-tests: Likewise.
17504         * modules/carray-list-tests: Likewise.
17505         * modules/crc-tests: Likewise.
17506         * modules/des-tests: Likewise.
17507         * modules/gc-arcfour-tests: Likewise.
17508         * modules/gc-arctwo-tests: Likewise.
17509         * modules/gc-des-tests: Likewise.
17510         * modules/gc-hmac-md5-tests: Likewise.
17511         * modules/gc-hmac-sha1-tests: Likewise.
17512         * modules/gc-md2-tests: Likewise.
17513         * modules/gc-md4-tests: Likewise.
17514         * modules/gc-md5-tests: Likewise.
17515         * modules/gc-pbkdf2-sha1-tests: Likewise.
17516         * modules/gc-rijndael-tests: Likewise.
17517         * modules/gc-sha1-tests: Likewise.
17518         * modules/gc-tests: Likewise.
17519         * modules/getaddrinfo-tests: Likewise.
17520         * modules/hmac-md5-tests: Likewise.
17521         * modules/hmac-sha1-tests: Likewise.
17522         * modules/linked-list-tests: Likewise.
17523         * modules/linkedhash-list-tests: Likewise.
17524         * modules/lock-tests: Likewise.
17525         * modules/md2-tests: Likewise.
17526         * modules/md4-tests: Likewise.
17527         * modules/md5-tests: Likewise.
17528         * modules/rbtree-list-tests: Likewise.
17529         * modules/rbtree-oset-tests: Likewise.
17530         * modules/rbtreehash-list-tests: Likewise.
17531         * modules/read-file-tests: Likewise.
17532         * modules/rijndael-tests: Likewise.
17533         * modules/stdint-tests: Likewise.
17534         * modules/tls-tests: Likewise.
17535
17536 2007-02-24  Bruno Haible  <bruno@clisp.org>
17537
17538         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
17539         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
17540         function; instead check whether isnan with a double argument links.
17541         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
17542         function; instead check whether isnan with a 'long double' argument
17543         links.
17544         Reported by Eric Blake <ebb9@byu.net>.
17545
17546 2007-02-24  Bruno Haible  <bruno@clisp.org>
17547
17548         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
17549         defined.
17550         * lib/isnanl.c: Remove all code. Just include isnan.c.
17551         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
17552
17553 2007-02-25  Jim Meyering  <jim@meyering.net>
17554
17555         Avoid conflicting types for 'unsetenv' on FreeBSD.
17556         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
17557         conflicting with FreeBSD's (5.0 and 6.1) function declaration
17558         in stdlib.h.
17559
17560 2007-02-24  Bruno Haible  <bruno@clisp.org>
17561
17562         * modules/isnanl-nolibm-tests: New file.
17563         * tests/test-isnanl.c: New file.
17564
17565         * modules/isnanl-nolibm: New file.
17566         * lib/isnanl.h: New file.
17567         * lib/isnanl.c: New file.
17568         * m4/isnanl.m4: New file.
17569
17570 2007-02-24  Bruno Haible  <bruno@clisp.org>
17571
17572         * modules/isnan-nolibm-tests: New file.
17573         * tests/test-isnan.c: New file.
17574
17575         * modules/isnan-nolibm: New file.
17576         * lib/isnan.h: New file.
17577         * lib/isnan.c: New file.
17578         * m4/isnan.m4: New file.
17579
17580 2007-02-24  Bruno Haible  <bruno@clisp.org>
17581
17582         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
17583         assume that an exponent fits in 20 bits.
17584
17585 2007-02-24  Jim Meyering  <jim@meyering.net>
17586
17587         * m4/regex.m4: Update the description of the configure-time option,
17588         --without-included-regex, to state accurately what the defaults are,
17589         and perhaps to give people an idea why using this option is risky.
17590
17591 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17592
17593         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
17594         loops on small arguments.  This attempts to avoid the problem
17595         Bruno Haible reported for AIX 4.3.2 in
17596         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
17597
17598 2007-02-23  Bruno Haible  <bruno@clisp.org>
17599
17600         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
17601         Needed for help2man.
17602
17603 2007-02-23  Karl Berry  <karl@gnu.org>
17604
17605         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
17606         exists, foo.h should be cvs-ignored, not committed.
17607
17608 2007-02-23  Eric Blake  <ebb9@byu.net>
17609
17610         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
17611         * lib/stat-time.h (includes): Likewise.
17612         * lib/utimecmp.c (includes): Likewise.
17613         * lib/utimens.h (includes): Likewise.
17614         * lib/getdate.y (includes): Also include "timespec.h" for use
17615         internal to the module.
17616         * modules/utimens (Depends-on): Revert yesterday's patch.
17617         * modules/nanosleep (Depends-on): Add missing dependency.
17618
17619 2007-02-22  Bruno Haible  <bruno@clisp.org>
17620
17621         * lib/glob.c: Don't include getlogin_r.h.
17622
17623 2007-02-22  Jim Meyering  <jim@meyering.net>
17624
17625         * modules/utimens (Depends-on): Add timespec, required for
17626         utimens.h's inclusion of timespec.h.
17627
17628 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
17629
17630         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
17631         long unreadable paths in GNU/Linux.  Problem reported by Andreas
17632         Schwab in
17633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
17634         I'll try to think of a better way to fix the Solaris problem.
17635
17636         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
17637         like glibc; on Solaris 10, it fails with errno == EINVAL.
17638         POSIX says the behavior is unspecified if the first argument is NULL,
17639         so play it safe and never pass NULL to the system getcwd.
17640
17641 2007-02-21  Jim Meyering  <jim@meyering.net>
17642
17643         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
17644         of gettimeofday.  It would conflict with the one now always
17645         provided via sys_time_.h.  Reported by Matthew Woehlke, as
17646         an IRIX 6.5 build failure.
17647
17648 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17649
17650         Minor fixups to port to Solaris 10 with Sun C 5.8.
17651         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
17652         * modules/getcwd (Depends-on): Add dirfd.
17653         * lib/putenv.c (putenv): #undef it.
17654         (rpl_putenv): New decl.
17655         (malloc, free): Include <stdlib.h> rather than prototyping separately.
17656
17657 2007-02-20  Bruno Haible  <bruno@clisp.org>
17658
17659         * modules/stdio-tests: New file.
17660         * tests/test-stdio.c: New file.
17661
17662         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
17663         (Depends-on): Add stdio.
17664         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17665         (Include): Use <stdio.h> instead of vsnprintf.h.
17666         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17667         HAVE_DECL_VSNPRINTF.
17668         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
17669
17670         * modules/snprintf (Files): Remove lib/snprintf.h.
17671         (Depends-on): Add stdio.
17672         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17673         (Include): Use <stdio.h> instead of snprintf.h.
17674         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17675         HAVE_DECL_SNPRINTF.
17676         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
17677         * lib/getaddrinfo.c: Likewise.
17678
17679         * modules/stdio: New file.
17680         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
17681         * lib/snprintf.h: Remove file.
17682         * lib/vsnprintf.h: Remove file.
17683         * lib/.cppi-disable: Remove snprintf.h.
17684         * m4/stdio_h.m4: New file.
17685         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
17686
17687 2007-02-20  Jim Meyering  <jim@meyering.net>
17688
17689         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
17690         used by e.g., mingw.  From Bruno Haible.
17691
17692 2007-02-19  Bruno Haible  <bruno@clisp.org>
17693
17694         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
17695         warnings.
17696         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17697
17698 2007-02-19  Bruno Haible  <bruno@clisp.org>
17699
17700         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
17701         from mingw users.
17702
17703 2007-02-19  Bruno Haible  <bruno@clisp.org>
17704
17705         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
17706         warnings.
17707         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
17708
17709 2007-02-19  Jim Meyering  <jim@meyering.net>
17710
17711         Don't use FD after a successful "fdopendir (fd)".
17712         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
17713         Reset it by calling dirfd on the just-obtained DIR*.
17714
17715         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
17716         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
17717
17718 2007-02-18  Bruno Haible  <bruno@clisp.org>
17719
17720         * lib/readlink.c: Include <unistd.h>.
17721         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
17722         HAVE_READLINK.
17723         * modules/readlink (Depends-on): Add unistd.
17724         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17725         (Include): Add <unistd.h>.
17726
17727         * lib/getlogin_r.h: Remove file.
17728         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
17729         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
17730         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
17731         HAVE_DECL_GETLOGIN_R.
17732         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
17733         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17734         (Include): Use <unistd.h> instead of getlogin_r.h.
17735
17736         * lib/getcwd.h: Remove file.
17737         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
17738         * lib/xgetcwd.c: Likewise.
17739         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
17740         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
17741         * modules/getcwd (Files): Remove lib/getcwd.h.
17742         (Depends-on): Add unistd.
17743         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17744         (Include): Use <unistd.h> instad of getcwd.h.
17745
17746         * lib/ftruncate.c: Include <unistd.h> first.
17747         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
17748         Set HAVE_FTRUNCATE.
17749         * modules/ftruncate (Depends-on): Add unistd.
17750         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17751
17752         * lib/fchdir.c: Include <unistd.h> first.
17753         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
17754         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
17755         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
17756         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17757         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
17758
17759         * lib/dup2.c: Include <unistd.h> first.
17760         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
17761         HAVE_DUP2.
17762         * modules/dup2 (Depends-on): Add unistd.
17763         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17764
17765         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
17766         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
17767         REPLACE_CHOWN. Don't define chown as a macro here.
17768         * modules/chown (Depends-on): Add unistd.
17769         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17770
17771         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
17772         Add definition for GL_LINK_WARNING.
17773         (chown, dup2): New declarations.
17774         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
17775         link warning.
17776         (ftruncate): New declaration.
17777         (getcwd): New declaration, taken from old getcwd.h.
17778         (getlogin_r): New declaration, taken from old getlogin_r.h.
17779         (readlink): New declaration.
17780         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
17781         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
17782         (gl_PREREQ_UNISTD): Remove macro.
17783         (gl_UNISTD_MODULE_INDICATOR): New macro.
17784         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
17785         many new variables. Don't set UNISTD_H.
17786         * modules/unistd (Description): Change.
17787         (Depends-on): Add link-warning.
17788         (configure.ac): Update.
17789         (Makefile.am): Create unistd.h always. Substitute many new variables
17790         into it.
17791
17792 2007-02-18  Bruno Haible  <bruno@clisp.org>
17793
17794         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
17795         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
17796         HAVE_GETSUBOPT.
17797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
17798         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
17799         * lib/getsubopt.h: Remove file.
17800         * modules/getsubopt (Files): Remove lib/getsubopt.h.
17801         (Depends-on): Add stdlib.
17802         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17803         (Includes): Use <stdlib.h> instead of getsubopt.h.
17804         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
17805         Set HAVE_GETSUBOPT.
17806         * lib/getsubopt.c: Don't include getsubopt.h.
17807
17808 2007-02-18  Bruno Haible  <bruno@clisp.org>
17809
17810         * modules/fchdir (Depends-on): Add dup2.
17811
17812 2007-02-18  Bruno Haible  <bruno@clisp.org>
17813
17814         * lib/stdlib_.h: Handle glibc's special invocation convention
17815         specially.
17816
17817 2007-02-18  Bruno Haible  <bruno@clisp.org>
17818
17819         * modules/stdlib-tests: New file.
17820         * tests/test-stdlib.c: New file.
17821
17822         * modules/mkstemp (Files): Remove lib/mkstemp.h.
17823         (Depends-on): Add stdlib.
17824         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17825         (Includes): Use <stdlib.h> instead of mkstemp.h.
17826         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17827         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
17828         * lib/mkstemp.c: Don't include mkstemp.h.
17829         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
17830         * lib/stdlib--.h: Don't include mkstemp.h.
17831
17832         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
17833         (Depends-on): Add stdlib.
17834         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17835         (Includes): Use <stdlib.h> instead of mkdtemp.h.
17836         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17837         HAVE_MKDTEMP.
17838         * lib/mkdtemp.c: Don't include mkdtemp.h.
17839         * lib/clean-temp.c: Don't include mkdtemp.h.
17840
17841         * modules/exit (Files): Remove lib/exit.h.
17842         (Depends-on): Add stdlib.
17843         (Makefile.am): Remove lib_SOURCES.
17844         (Include): Use <stdlib.h> instead of exit.h.
17845         * lib/argmatch.c: Don't include exit.h.
17846         * lib/execute.c: Likewise.
17847         * lib/pagealign_alloc.c: Likewise.
17848         * lib/pipe.c: Likewise.
17849         * lib/wait-process.c: Likewise.
17850         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
17851         * lib/exitfail.c: Likewise.
17852         * lib/savewd.c: Likewise.
17853         * lib/xsetenv.c: Likewise.
17854
17855         * modules/stdlib: New file.
17856         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
17857         and extra comments about mkstemp().
17858         * lib/exit.h: Remove file.
17859         * lib/mkdtemp.h: Remove file.
17860         * lib/mkstemp.h: Remove file.
17861         * m4/stdlib_h.m4: New file.
17862         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
17863
17864 2007-02-18  Bruno Haible  <bruno@clisp.org>
17865
17866         * modules/math-tests: New file.
17867         * tests/test-math.c: New file.
17868
17869         * modules/math: New file.
17870         * modules/mathl (Files): Remove lib/mathl.h.
17871         (Depends-on): Add math.
17872         (Makefile.am): Don't mention mathl.h.
17873         (Include): Use <math.h> instead of mathl.h.
17874         * lib/math_.h: New file.
17875         * lib/mathl.h: Remove file.
17876         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
17877         mathl.h.
17878         * lib/asinl.c: Likewise.
17879         * lib/atanl.c: Likewise.
17880         * lib/ceill.c: Likewise.
17881         * lib/cosl.c: Likewise.
17882         * lib/expl.c: Likewise.
17883         * lib/floorl.c: Likewise.
17884         * lib/frexpl.c: Likewise.
17885         * lib/ldexpl.c: Likewise.
17886         * lib/logl.c: Likewise.
17887         * lib/sincosl.c: Likewise.
17888         * lib/sinl.c: Likewise.
17889         * lib/sqrtl.c: Likewise.
17890         * lib/tanl.c: Likewise.
17891         * lib/trigl.c: Likewise.
17892         * m4/math_h.m4: New file.
17893         * MODULES.html.sh (Mathematics): Add math.
17894
17895 2007-02-17  Bruno Haible  <bruno@clisp.org>
17896
17897         * modules/wctype-tests: New file.
17898         * tests/test-wctype.c: New file.
17899
17900         * modules/wchar-tests: New file.
17901         * tests/test-wchar.c: New file.
17902
17903         * modules/unistd-tests: New file.
17904         * tests/test-unistd.c: New file.
17905
17906         * modules/time-tests: New file.
17907         * tests/test-time.c: New file.
17908
17909         * modules/sysexits-tests: New file.
17910         * tests/test-sysexits.c: New file.
17911
17912         * modules/sys_time-tests: New file.
17913         * tests/test-sys_time.c: New file.
17914
17915         * modules/sys_stat-tests: New file.
17916         * tests/test-sys_stat.c: New file.
17917
17918         * modules/sys_socket-tests: New file.
17919         * tests/test-sys_socket.c: New file.
17920
17921         * modules/sys_select-tests: New file.
17922         * tests/test-sys_select.c: New file.
17923
17924         * modules/string-tests: New file.
17925         * tests/test-string.c: New file.
17926
17927         * modules/stdbool-tests: New file.
17928         * tests/test-stdbool.c: New file.
17929
17930         * modules/netinet_in-tests: New file.
17931         * tests/test-netinet_in.c: New file.
17932
17933         * modules/inttypes-tests: New file.
17934         * tests/test-inttypes.c: New file.
17935
17936         * modules/fcntl-tests: New file.
17937         * tests/test-fcntl.c: New file.
17938
17939         * modules/byteswap-tests: New file.
17940         * tests/test-byteswap.c: New file.
17941
17942         * modules/arpa_inet-tests: New file.
17943         * tests/test-arpa_inet.c: New file.
17944
17945 2007-02-17  Bruno Haible  <bruno@clisp.org>
17946
17947         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
17948         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
17949         if the corresponding module is not enabled. Emit link warnings if
17950         the function is used nevertheless.
17951         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
17952         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
17953         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
17954         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
17955         * modules/inttypes (Depends-on): Add link-warning.
17956         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17957         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
17958         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
17959         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
17960         * modules/imaxdiv (configure.ac): Likewise.
17961         * modules/strtoimax (configure.ac): Likewise.
17962         * modules/strtoumax (configure.ac): Likewise.
17963
17964 2007-02-17  Bruno Haible  <bruno@clisp.org>
17965
17966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
17967         gl_STRING_MODULE_INDICATOR_DEFAULTS.
17968         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
17969         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
17970
17971 2007-02-17  Bruno Haible  <bruno@clisp.org>
17972
17973         * modules/link-warning: New file.
17974         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
17975         * lib/string_.h (GL_LINK_WARNING): Remove definition.
17976         * modules/string (Depends-on): Add link-warning.
17977         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17978         string.h.
17979         * MODULES.html.sh (Support for building libraries and executables): Add
17980         link-warning.
17981
17982 2007-02-17  Bruno Haible  <bruno@clisp.org>
17983
17984         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
17985         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
17986         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
17987         long lines.
17988
17989 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
17990             Bruno Haible  <bruno@clisp.org>
17991
17992         * modules/tmpfile: New file.
17993         * lib/tmpfile.c: New file.
17994         * m4/tmpfile.m4: New file.
17995         * MODULES.html.sh (func_all_modules): New section "Input/output".
17996
17997 2007-02-15  Bruno Haible  <bruno@clisp.org>
17998
17999         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
18000         (supports_delete_on_close): New function.
18001         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
18002
18003 2007-02-14  Bruno Haible  <bruno@clisp.org>
18004
18005         * modules/mbspcasecmp-tests: New file.
18006         * tests/test-mbspcasecmp.sh: New file.
18007         * tests/test-mbspcasecmp.c: New file.
18008
18009         New module mbspcasecmp.
18010         * modules/mbspcasecmp: New file.
18011         * lib/mbspcasecmp.c: New file.
18012         * lib/string_.h (strncasecmp): Change warning message.
18013         (mbspcasecmp): New declaration.
18014         * m4/mbspcasecmp.m4: New file.
18015         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18016         GNULIB_MBSPCASECMP.
18017         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
18018         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
18019
18020 2007-02-14  Bruno Haible  <bruno@clisp.org>
18021
18022         * modules/mbsncasecmp-tests: New file.
18023         * tests/test-mbsncasecmp.sh: New file.
18024         * tests/test-mbsncasecmp.c: New file.
18025
18026         New module mbsncasecmp.
18027         * modules/mbsncasecmp: New file.
18028         * lib/mbsncasecmp.c: New file.
18029         * lib/string_.h (mbsncasecmp): New declaration.
18030         * m4/mbsncasecmp.m4: New file.
18031         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18032         GNULIB_MBSNCASECMP.
18033         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
18034         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
18035
18036 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
18037
18038         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
18039         Verify that it doesn't overlap with our flags.
18040         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
18041         do not have the desired effect in multibyte locales; instead, use
18042         mbscasecmp.
18043         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
18044         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
18045         we don't require GNU fnmatch ourselves (if our users require it, they
18046         should do so explicitly).
18047
18048         Fix regex code so it doesn't rely on strcasecmp.
18049         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
18050         Otherwise, include gnulib's langinfo.h.
18051         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
18052         undesirable behavior in non-C locales.  Instead, rely on localecharset.
18053         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
18054         * modules/regex (FILES): Remove m4/codeset.m4.
18055         (Depends-on): Add localcharset.  Remove strcase.
18056
18057 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18058
18059         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
18060         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18061
18062 2007-02-13  Bruno Haible  <bruno@clisp.org>
18063
18064         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
18065         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18066
18067 2007-02-12  Bruno Haible  <bruno@clisp.org>
18068
18069         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18070         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
18071         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
18072         time warning rather than a link error.
18073
18074 2007-02-12  Bruno Haible  <bruno@clisp.org>
18075
18076         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
18077         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18078         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18079
18080 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18081
18082         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
18083         args, not 2.
18084
18085 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18086
18087         New module 'time', so that apps can include <time.h> as per
18088         POSIX and GNU instead of separate include files like time_r.h
18089         and timegm.h.  This implementation tries out a simpler approach
18090         for replacing decls in standard include files (as compared to
18091         the string module), somewhat as an experiment.
18092
18093         * config/srclist.txt: Comment out mktime.c for now.
18094         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
18095         since it doesn't apply any more.  Use generic wording instead.
18096         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
18097         'time'.
18098         * lib/time_.h, m4/time_h.m4, modules/time: New files.
18099         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
18100         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
18101         Don't include <sys/types.h>; no longer needed since we assume C89.
18102         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
18103         * lib/strftime.c: Likewise.
18104         * lib/time_r.c: Likewise.
18105         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
18106         * lib/nanosleep.c: Include <time.h> first, to check interface.
18107         * lib/strptime.c: Likewise.
18108         * lib/time_r.c: Likewise.
18109         * lib/timegm.c: Likewise.
18110         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
18111         needed.
18112         * lib/timegm.c: Don't include timegm.h; no longer needed.
18113         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
18114         time.h now handles any problems in that area.
18115         (struct timespec, nanosleep): Remove; time.h now arranges for these.
18116         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
18117         that time.h defines struct timespec.
18118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
18119         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
18120         handles that.
18121         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
18122         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
18123         needed.  Set REPLACE_LOCALTIME.
18124         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
18125         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
18126         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
18127         nanosleep; time_h.m4 now does that.  Don't require
18128         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
18129         module handles this now.
18130         * modules/getdate (Depends-on): Remove timespec.  Add time.
18131         * modules/nanosleep (Depends-on): Likewise.
18132         * modules/stat-time (Depends-on): Likewise.
18133         * modules/nanosleep (Include): Include time.h, not timespec.h.
18134         * modules/strptime (Files): Remove lib/strptime.h.
18135         (Depends-on): Add extensions, time.
18136         (Include): Include time.h, not strptime.h.
18137         * modules/time_r (Files): Remove lib/time_r.h.
18138         (Depends-on): Add time.
18139         (Include): Include time.h, not time_r.h.
18140         * modules/timegm: Likewise.
18141         * modules/timespec (Description): Now does timespec-related decls
18142         of our own, instead of struct timespec itself.
18143         (Depends-on): Add time; remove extensions.
18144         (Maintainer): Add self.
18145         * modules/utimecmp (Depends-on): Add time; remove timespec.
18146         * modules/utimens (Depends-on): Likewise.
18147         * modules/xnanosleep (Depends-on): Likewise.
18148
18149 2007-02-11  Bruno Haible  <bruno@clisp.org>
18150
18151         * lib/c-strstr.c: Include allocsa.h.
18152         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18153         * lib/c-strcasestr.c: Include allocsa.h.
18154         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18155         * lib/strcasestr.c: Include allocsa.h.
18156         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18157         * lib/mbsstr.c: Include allocsa.h.
18158         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18159         allocsa/freesa instead of malloc/free.
18160         * lib/mbscasestr.c: Include allocsa.h.
18161         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18162         allocsa/freesa instead of malloc/free.
18163         * modules/c-strstr (Depends-on): Add allocsa.
18164         * modules/c-strcasestr (Depends-on): Likewise.
18165         * modules/strcasestr (Depends-on): Likewise.
18166         * modules/mbsstr (Depends-on): Likewise.
18167         * modules/mbscasestr (Depends-on): Likewise.
18168
18169 2007-02-11  Bruno Haible  <bruno@clisp.org>
18170
18171         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
18172
18173         * modules/mbsspn-tests: New file.
18174         * tests/test-mbsspn.sh: New file.
18175         * tests/test-mbsspn.c: New file.
18176
18177 2007-02-11  Bruno Haible  <bruno@clisp.org>
18178
18179         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
18180
18181         * modules/mbspbrk-tests: New file.
18182         * tests/test-mbspbrk.sh: New file.
18183         * tests/test-mbspbrk.c: New file.
18184
18185 2007-02-11  Bruno Haible  <bruno@clisp.org>
18186
18187         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
18188         unneeded cast.
18189
18190         * modules/mbscspn-tests: New file.
18191         * tests/test-mbscspn.sh: New file.
18192         * tests/test-mbscspn.c: New file.
18193
18194 2007-02-11  Bruno Haible  <bruno@clisp.org>
18195
18196         * modules/mbscasecmp-tests: New file.
18197         * tests/test-mbscasecmp.sh: New file.
18198         * tests/test-mbscasecmp.c: New file.
18199
18200 2007-02-11  Bruno Haible  <bruno@clisp.org>
18201
18202         Ensure O(n) worst-case complexity of mbscasestr.
18203         * lib/mbscasestr.c: Include stdbool.h.
18204         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18205         functions.
18206         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
18207         the bookkeeping indicates that it's worth it.
18208         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
18209
18210         * modules/mbscasestr-tests: New file.
18211         * tests/test-mbscasestr1.c: New file.
18212         * tests/test-mbscasestr2.sh: New file.
18213         * tests/test-mbscasestr2.c: New file.
18214         * tests/test-mbscasestr3.sh: New file.
18215         * tests/test-mbscasestr3.c: New file.
18216         * tests/test-mbscasestr4.sh: New file.
18217         * tests/test-mbscasestr4.c: New file.
18218         * m4/locale-tr.m4: New file.
18219
18220 2007-02-11  Bruno Haible  <bruno@clisp.org>
18221
18222         Ensure O(n) worst-case complexity of mbsstr.
18223         * lib/mbsstr.c: Include stdbool.h.
18224         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18225         functions.
18226         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
18227         bookkeeping indicates that it's worth it.
18228         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
18229
18230         * modules/mbsstr-tests: New file.
18231         * tests/test-mbsstr1.c: New file.
18232         * tests/test-mbsstr2.sh: New file.
18233         * tests/test-mbsstr2.c: New file.
18234         * tests/test-mbsstr3.sh: New file.
18235         * tests/test-mbsstr3.c: New file.
18236         * m4/locale-fr.m4: New file.
18237
18238 2007-02-11  Bruno Haible  <bruno@clisp.org>
18239
18240         * lib/mbsrchr.c (mbsrchr): Fix bug.
18241
18242         * modules/mbsrchr-tests: New file.
18243         * tests/test-mbsrchr.sh: New file.
18244         * tests/test-mbsrchr.c: New file.
18245
18246 2007-02-11  Bruno Haible  <bruno@clisp.org>
18247
18248         * lib/mbschr.c (mbschr): Fix bug.
18249
18250         * modules/mbschr-tests: New file.
18251         * tests/test-mbschr.sh: New file.
18252         * tests/test-mbschr.c: New file.
18253         * m4/locale-zh.m4: New file.
18254
18255 2007-02-11  Bruno Haible  <bruno@clisp.org>
18256
18257         Support for copying multibyte string iterators.
18258         * lib/mbiter.h: Include <string.h>.
18259         (mbiter_multi_copy): New function.
18260         (mbi_copy): New macro.
18261         * lib/mbuiter.h: Include <string.h>.
18262         (mbuiter_multi_copy): New function.
18263         (mbui_copy): New macro.
18264
18265 2007-02-11  Bruno Haible  <bruno@clisp.org>
18266
18267         New module mbslen.
18268         * modules/mbslen: New file.
18269         * lib/mbslen.c: New file.
18270         * lib/string_.h (mbslen): New declaration.
18271         * m4/mbslen.m4: New file.
18272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18273         GNULIB_MBSLEN.
18274         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
18275         * MODULES.html.sh (Internationalization functions): Add mbslen.
18276
18277 2007-02-11  Bruno Haible  <bruno@clisp.org>
18278
18279         Ensure O(n) worst-case complexity of strcasestr substitute.
18280         * lib/strcasestr.c: Include stdbool.h.
18281         (knuth_morris_pratt): New function.
18282         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18283         bookkeeping indicates that it's worth it.
18284         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
18285
18286         * modules/strcasestr-tests: New file.
18287         * tests/test-strcasestr.c: New file.
18288
18289 2007-02-11  Bruno Haible  <bruno@clisp.org>
18290
18291         Ensure O(n) worst-case complexity of c_strcasestr.
18292         * lib/c-strcasestr.c: Include stdbool.h, string.h.
18293         (knuth_morris_pratt): New function.
18294         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
18295         the bookkeeping indicates that it's worth it.
18296         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
18297
18298         * modules/c-strcasestr-tests: New file.
18299         * tests/test-c-strcasestr.c: New file.
18300
18301 2007-02-11  Bruno Haible  <bruno@clisp.org>
18302
18303         Ensure O(n) worst-case complexity of c_strstr.
18304         * lib/c-strstr.c: Include stdbool.h, string.h.
18305         (knuth_morris_pratt): New function.
18306         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18307         bookkeeping indicates that it's worth it.
18308         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
18309
18310         * lib/c-strstr.c: Complete rewrite for maintainability.
18311
18312         * modules/c-strstr-tests: New file.
18313         * tests/test-c-strstr.c: New file.
18314
18315 2007-02-11  Bruno Haible  <bruno@clisp.org>
18316
18317         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
18318         5.2.1 and earlier, whereby \055 was treated just like the range
18319         delimiter '-'.
18320         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18321
18322 2007-02-08  Bruno Haible  <bruno@clisp.org>
18323
18324         * modules/regex (Depends-on): Add stdbool.
18325         Reported by Dalibor Topic <robilad@kaffe.org>.
18326
18327 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
18328
18329         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
18330         Prefer returning from main to exiting from it.
18331         Remove unnecessary parens after sizeof.
18332
18333 2007-02-05  Bruno Haible  <bruno@clisp.org>
18334
18335         New module mbssep.
18336         * modules/mbssep: New file.
18337         * lib/mbssep.c: New file.
18338         * lib/string_.h (strsep): Add a conditional link warning.
18339         (mbssep): New declaration.
18340         * m4/mbssep.m4: New file.
18341         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18342         GNULIB_MBSSEP.
18343         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
18344         * MODULES.html.sh (Internationalization functions): Add mbssep.
18345
18346 2007-02-05  Bruno Haible  <bruno@clisp.org>
18347
18348         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
18349         Optimize search in case of 1 delimiter.
18350
18351 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
18352
18353         * lib/acl.h: Include sys/types.h before sys/acl.h.
18354
18355 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
18356
18357         Merge upstream fix for glibc bugzilla #3957:
18358
18359         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
18360
18361         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
18362         bit for RE_HAT_LISTS_NOT_NEWLINE.
18363         (build_charclass_op): Remove bogus comment.
18364
18365 2007-02-05  Simon Josefsson  <simon@josefsson.org>
18366
18367         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
18368
18369 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18370
18371         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
18372         * lib/memmem.c [!defined _LIBC]: Include config.h.
18373
18374 2007-02-04  Bruno Haible  <bruno@clisp.org>
18375
18376         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
18377         warning message.
18378
18379 2007-02-04  Bruno Haible  <bruno@clisp.org>
18380
18381         New module mbstok_r.
18382         * modules/mbstok_r: New file.
18383         * lib/mbstok_r.c: New file.
18384         * lib/string_.h (strtok_r): Change argument names to match the
18385         comments. Add a conditional link warning.
18386         (mbstok_r): New declaration.
18387         * m4/mbstok_r.m4: New file.
18388         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18389         GNULIB_MBSTOK_R.
18390         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
18391         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
18392
18393 2007-02-04  Bruno Haible  <bruno@clisp.org>
18394
18395         New module mbsspn.
18396         * modules/mbsspn: New file.
18397         * lib/mbsspn.c: New file.
18398         * lib/string_.h (strspn): Add a conditional link warning.
18399         (mbsspn): New declaration.
18400         * m4/mbsspn.m4: New file.
18401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18402         GNULIB_MBSSPN.
18403         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
18404         * MODULES.html.sh (Internationalization functions): Add mbsspn.
18405
18406 2007-02-04  Bruno Haible  <bruno@clisp.org>
18407
18408         New module mbspbrk.
18409         * modules/mbspbrk: New file.
18410         * lib/mbspbrk.c: New file.
18411         * lib/string_.h (strpbrk): Add a conditional link warning.
18412         (mbspbrk): New declaration.
18413         * m4/mbspbrk.m4: New file.
18414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18415         GNULIB_MBSPBRK.
18416         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
18417         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
18418
18419 2007-02-04  Bruno Haible  <bruno@clisp.org>
18420
18421         New module mbscspn.
18422         * modules/mbscspn: New file.
18423         * lib/mbscspn.c: New file.
18424         * lib/string_.h (strcspn): Add a conditional link warning.
18425         (mbscspn): New declaration.
18426         * m4/mbscspn.m4: New file.
18427         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18428         GNULIB_MBSCSPN.
18429         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
18430         * MODULES.html.sh (Internationalization functions): Add mbscspn.
18431
18432 2007-02-04  Bruno Haible  <bruno@clisp.org>
18433
18434         New module mbscasestr, reduced goal of strcasestr.
18435         * modules/mbscasestr: New file.
18436         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
18437         (mbscasestr): Renamed from strcasestr.
18438         * lib/strcasestr.c: Don't include mbuiter.h.
18439         (strcasestr): Remove support for multibyte locales.
18440         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
18441         Change the conditional link warning.
18442         (mbscasestr): New declaration.
18443         * m4/mbscasestr.m4: New file.
18444         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
18445         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
18446         REPLACE_STRCASESTR.
18447         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
18448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18449         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18450         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
18451         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
18452         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18453         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
18454         (Depends-on): Remove mbuiter.
18455         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
18456
18457 2007-02-04  Bruno Haible  <bruno@clisp.org>
18458
18459         Simplify handling of strncasecmp.
18460         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
18461         the conditional link warning.
18462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18463         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
18464         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
18465         * modules/strcase (configure.ac): Don't invoke
18466         gl_STRING_MODULE_INDICATOR.
18467         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
18468
18469 2007-02-04  Bruno Haible  <bruno@clisp.org>
18470
18471         New module mbscasecmp, reduced goal of strcasecmp.
18472         * modules/mbscasecmp: New file.
18473         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
18474         (mbscasecmp): Renamed from strcasecmp.
18475         * lib/strcasecmp.c: Don't include mbuiter.h.
18476         (strcasecmp): Remove support for multibyte locales.
18477         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
18478         Change the conditional link warning.
18479         (mbscasecmp): New declaration.
18480         * m4/mbscasecmp.m4: New file.
18481         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
18482         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
18483         REPLACE_STRCASECMP.
18484         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
18485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18486         GNULIB_MBSCASECMP.
18487         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
18488         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
18489         * modules/strcase (Files): Remove m4/mbrtowc.m4.
18490         (Depends-on): Remove mbuiter.
18491         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
18492
18493 2007-02-04  Bruno Haible  <bruno@clisp.org>
18494
18495         New module mbsstr. Remove module strstr.
18496         * modules/mbsstr: New file.
18497         * modules/strstr: Remove file.
18498         * lib/mbsstr.c: Renamed from lib/strstr.c.
18499         (mbsstr): Renamed from strstr.
18500         * lib/string_.h (strstr): Remove declaration. Change the conditional
18501         link warning.
18502         (mbsstr): New declaration.
18503         * m4/mbsstr.m4: New file.
18504         * m4/strstr.m4: Remove file.
18505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18506         REPLACE_STRSTR.
18507         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
18508         Don't initialize GNULIB_STRSTR.
18509         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
18510         substitute GNULIB_STRSTR and REPLACE_STRSTR.
18511         * MODULES.html.sh (Internationalization functions): Add mbsstr.
18512         (Support for systems lacking ANSI C 89): Remove strstr.
18513
18514 2007-02-04  Bruno Haible  <bruno@clisp.org>
18515
18516         New module mbsrchr.
18517         * modules/mbsrchr: New file.
18518         * lib/mbsrchr.c: New file.
18519         * lib/string_.h (strrchr): Add a conditional link warning.
18520         (mbsrchr): New declaration.
18521         * m4/mbsrchr.m4: New file.
18522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18523         GNULIB_MBSRCHR.
18524         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
18525         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
18526
18527 2007-02-04  Bruno Haible  <bruno@clisp.org>
18528
18529         New module mbschr.
18530         * modules/mbschr: New file.
18531         * lib/mbschr.c: New file.
18532         * lib/string_.h (strchr): Add a conditional link warning.
18533         (mbschr): New declaration.
18534         * m4/mbschr.m4: New file.
18535         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18536         GNULIB_MBSCHR.
18537         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
18538         * MODULES.html.sh (Internationalization functions): Add mbschr.
18539
18540 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18541
18542         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
18543
18544         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
18545
18546 2007-02-04  Bruno Haible  <bruno@clisp.org>
18547
18548         New module description section 'configure.ac-early'.
18549         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
18550         (func_get_autoconf_early_snippet): New function.
18551         (func_import, func_create_testdir): Use it. Remove special cases for
18552         modules 'extensions' and 'lock'.
18553         * modules/extensions (configure.ac-early): Require
18554         gl_USE_SYSTEM_EXTENSIONS.
18555         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
18556
18557 2007-02-04  Bruno Haible  <bruno@clisp.org>
18558
18559         Make use of gcj-4.3's -fsource and -ftarget option.
18560         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
18561         and if so try the options -fsource and -ftarget.
18562         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
18563         source_version, ftarget_option, target_version arguments.
18564         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
18565         (is_envjavac_oldgcj_14_14_usable): Renamed from
18566         is_envjavac_gcj_14_14_usable.
18567         (is_envjavac_oldgcj_14_13_usable): Renamed from
18568         is_envjavac_gcj_14_13_usable.
18569         (is_gcj_present): Update.
18570         (is_gcj_43, is_gcj43_usable): New functions.
18571         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
18572         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
18573         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
18574         try the options -fsource and -ftarget.
18575
18576 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18577
18578         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
18579         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
18580         larger value.
18581
18582 2007-02-03  Jim Meyering  <jim@meyering.net>
18583
18584         Give tools a better chance to allocate space for very large buffers.
18585         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
18586
18587         Make pwd and readlink work also when run with an unreadable parent dir
18588         on systems with openat support.
18589         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
18590         provided getcwd function, even when we have openat support.
18591         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
18592
18593 2007-02-02  Bruno Haible  <bruno@clisp.org>
18594
18595         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18596         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
18597         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
18598         portability problems if one of these functions is only used on specific
18599         platforms.
18600         Reported by Paul Eggert.
18601
18602 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
18603
18604         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
18605         is causing more trouble than it's curing.
18606         * lib/regex_internal.h (__mempcpy): Remove.
18607         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
18608         (and make the code a tad smaller to boot).
18609         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
18610
18611 2007-02-02  Jim Meyering  <jim@meyering.net>
18612
18613         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
18614         section, not in the Makefile.am: one.
18615
18616 2007-02-02  Eric Blake  <ebb9@byu.net>
18617
18618         * lib/strchrnul.c: Always include config.h first.
18619
18620         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
18621         gnulib strstr is not necessary here.
18622
18623 2007-02-02  Simon Josefsson  <simon@josefsson.org>
18624
18625         * m4/socklen.m4: Fix typo.
18626
18627 2007-02-02  Eric Blake  <ebb9@byu.net>
18628
18629         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
18630         * modules/netinet_in (Makefile.am): Likewise.
18631
18632 2007-02-01  Bruno Haible  <bruno@clisp.org>
18633
18634         * lib/string_.h (GL_LINK_WARNING): New macro.
18635         (strcasecmp, strstr, strcasestr): If provided by the system,
18636         conditionally define as a macro that leads to a warning instead of to
18637         an error.
18638         (strncasecmp): Conditionally define as a macro that leads to a warning.
18639
18640 2007-02-01  Karl Berry  <karl@gnu.org>
18641
18642         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
18643
18644 2007-02-01  Bruno Haible  <bruno@clisp.org>
18645
18646         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
18647         renamings.
18648
18649 2007-02-01  Eric Blake  <ebb9@byu.net>
18650
18651         * modules/regex (Depends-on): Revert dependence on mempcpy.
18652         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
18653         module's definition of mempcpy.
18654         Reported by Paul Eggert.
18655
18656 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
18657
18658         * lib/string_.h: If the gnulib module XYZ is not present, undefine
18659         the symbol XYZ before redefining it.  This fixes a problem with
18660         programs that don't use XYZ, when compiled on systems that define
18661         XYZ to something else.
18662
18663 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
18664
18665         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
18666         occurs when "mkdir -m foo" creates a setgid directory that is (1)
18667         writeable to group or other and (2) is intended to have a special
18668         mode bit that is set or cleared.  In such a case, the directory
18669         should be neither group- nor other-writeable until the special
18670         mode bits are right.
18671
18672 2007-01-31  Eric Blake  <ebb9@byu.net>
18673
18674         * modules/mountlist (Depends-on): Add strstr.
18675
18676         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
18677         bug.
18678         * modules/string (Makefile.am): Remove redundant replacement.
18679         * modules/regex (Depends-on): Add mempcpy.
18680
18681 2007-01-31  Bruno Haible  <bruno@clisp.org>
18682
18683         New module description field 'Link'.
18684         * gnulib-tool (func_usage): Document --extract-link-directive.
18685         (sed_extract_prog): Recognize 'Link' directive.
18686         (func_get_link_directive): New function.
18687         (func_import): Show summary of link directives.
18688         Handle --extract-link-directive option.
18689         * modules/acl (Link): New section.
18690         * modules/clock-time (Link): New section.
18691         * modules/euidaccess (Link): New section.
18692         * modules/gettext (Link): New section.
18693         * modules/iconv (Link): New section.
18694         * modules/lock (Link): New section.
18695         * modules/nanosleep (Link): New section.
18696         * modules/readline (Link): New section.
18697
18698 2007-01-27  Bruno Haible  <bruno@clisp.org>
18699
18700         Enforce the use of gnulib modules for unportable <string.h> functions.
18701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
18702         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
18703         (gl_HEADER_STRING_H_BODY): Require it.
18704         * lib/string_.h: If the gnulib module XYZ is not present, redefine
18705         the symbol XYZ to one that gives a link error.
18706         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
18707         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
18708         * modules/mempcpy (configure.ac): Likewise.
18709         * modules/memrchr (configure.ac): Likewise.
18710         * modules/stpcpy (configure.ac): Likewise.
18711         * modules/stpncpy (configure.ac): Likewise.
18712         * modules/strcase (configure.ac): Likewise.
18713         * modules/strcasestr (configure.ac): Likewise.
18714         * modules/strchrnul (configure.ac): Likewise.
18715         * modules/strdup (configure.ac): Likewise.
18716         * modules/strndup (configure.ac): Likewise.
18717         * modules/strnlen (configure.ac): Likewise.
18718         * modules/strpbrk (configure.ac): Likewise.
18719         * modules/strsep (configure.ac): Likewise.
18720         * modules/strstr (configure.ac): Likewise.
18721         * modules/strtok_r (configure.ac): Likewise.
18722
18723 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
18724
18725         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
18726
18727 2007-01-30  Jim Meyering  <jim@meyering.net>
18728
18729         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
18730
18731 2007-01-29  Bruno Haible  <bruno@clisp.org>
18732
18733         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
18734         * lib/execute.c: Likewise.
18735         * lib/pipe.c: Likewise.
18736         * lib/printf-args.h: Likewise.
18737         * lib/printf-args.c: Likewise.
18738         * lib/printf-parse.c: Likewise.
18739         * lib/vasnprintf.c: Likewise.
18740
18741 2007-01-29  Eric Blake  <ebb9@byu.net>
18742
18743         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
18744         declaration.
18745
18746 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
18747
18748         * lib/strptime.h (strptime): Use 'restrict' for args where
18749         POSIX requires this.
18750         * lib/strptime.c (strptime): Likewise.
18751         Change license notice from LGPL to GPL, since gnulib-tool will
18752         change this as needed.
18753         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
18754         defined.
18755         Include "strptime.h" first, to check interface.
18756         Do not #undef _LIBC and _NL_CURRENT.
18757         Do not include <stdlib.h>; no longer needed.
18758         Include "time_r.h" and declare ptime_locale_status
18759         only if _LIBC is not defined.
18760         (__P): Remove unused macro.
18761         (match_string): Bring back glibc version, but use it only if _LIBC
18762         is defined.
18763         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
18764         Remove unnecessary assertion and abort() call.
18765         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
18766         * m4/strptime.m4: Fix serial number comment.
18767         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
18768         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
18769         (Depends-on): Add time_r.
18770
18771 2007-01-29  Bruno Haible  <bruno@clisp.org>
18772
18773         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18774         strptime.
18775         * modules/strptime (Depends-on): Add stdbool.
18776         * lib/strptime.h: Include <time.h> always. Add comments.
18777
18778 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18779
18780         * modules/strptime: New file.
18781         * lib/strptime.h: New file.
18782         * lib/strptime.c: New file.
18783         * m4/strptime.m4: New file.
18784
18785 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18786
18787         * MODULES.html.sh: New module mpsort.
18788         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
18789
18790         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
18791         a circularity problem with HP-UX ia64 reported by Bob Proulx in
18792         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
18793         All uses changed.
18794         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
18795         All uses changed.
18796         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
18797         to _Restrict_.
18798         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
18799         the parameter matches the prototype.
18800
18801 2007-01-28  Jim Meyering  <jim@meyering.net>
18802
18803         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
18804         sys/time.h here, reverting that part of the previous patch:
18805         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
18806
18807 2007-01-28  Bruno Haible  <bruno@clisp.org>
18808
18809         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
18810         value of $(SYS_TIME_H).
18811         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
18812         remove it conditionally, too. [added by Jim Meyering]
18813         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
18814         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18815         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
18816         GETTIMEOFDAY_REPLACEMENT to 1.
18817
18818 2007-01-28  Bruno Haible  <bruno@clisp.org>
18819
18820         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
18821         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
18822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
18823         Set UNISTD_H instead of UNISTD_H2.
18824         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
18825
18826 2007-01-28  Bruno Haible  <bruno@clisp.org>
18827
18828         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
18829         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
18830
18831 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18832
18833         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
18834         (func_create_testdir): Ensure C locale for `grep' and `tr'
18835         character ranges.
18836         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
18837         ACLOCAL_AMFLAGS parsing state machine.
18838
18839 2007-01-27  Bruno Haible  <bruno@clisp.org>
18840
18841         * modules/unistr/base: Update.
18842
18843 2007-01-27  Bruno Haible  <bruno@clisp.org>
18844
18845         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
18846         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
18847         * modules/unistr/u32-mbtouc-unsafe: Renamed from
18848         modules/unistr/u32-mbtouc.
18849         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
18850         * lib/unistr.h: Update.
18851         * lib/linebreak.c: Update.
18852         * modules/unistr/u32-mbtouc: Renamed from
18853         modules/unistr/u32-mbtouc-safe.
18854         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
18855         * lib/unistr.h: Update.
18856         * lib/unistr/u32-to-u8.c: Update.
18857         * lib/unistr/u32-to-u16.c: Update.
18858
18859 2007-01-27  Bruno Haible  <bruno@clisp.org>
18860
18861         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
18862         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
18863         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
18864         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
18865         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
18866         * modules/unistr/u16-mbtouc-unsafe: Renamed from
18867         modules/unistr/u16-mbtouc.
18868         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
18869         * lib/unistr.h: Update.
18870         * lib/linebreak.c: Update.
18871         * modules/linebreak: Update.
18872         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
18873         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
18874         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
18875         * modules/unistr/u16-mbtouc: Renamed from
18876         modules/unistr/u16-mbtouc-safe.
18877         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
18878         * lib/unistr.h: Update.
18879         * lib/unistr/u16-to-u8.c: Update.
18880         * modules/unistr/u16-to-u8: Update.
18881         * lib/unistr/u16-to-u32.c: Update.
18882         * modules/unistr/u16-to-u32: Update.
18883
18884 2007-01-27  Bruno Haible  <bruno@clisp.org>
18885
18886         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
18887         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
18888         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
18889         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
18890         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
18891         * modules/unistr/u8-mbtouc-unsafe: Renamed from
18892         modules/unistr/u8-mbtouc.
18893         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
18894         * lib/unistr.h: Update.
18895         * lib/striconveh.c: Update.
18896         * modules/striconveh: Update.
18897         * lib/linebreak.c: Update.
18898         * modules/linebreak: Update.
18899         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
18900         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
18901         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
18902         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
18903         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
18904         * lib/unistr.h: Update.
18905         * lib/striconveh.c: Update.
18906         * modules/striconveh: Update.
18907         * lib/unistr/u8-to-u16.c: Update.
18908         * modules/unistr/u8-to-u16: Update.
18909         * lib/unistr/u8-to-u32.c: Update.
18910         * modules/unistr/u8-to-u32: Update.
18911
18912 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18913
18914         Sync from Libtool.
18915         * lib/argz.c: Do not include strings.h nor memory.h, include
18916         string.h unconditionally.  Patch by Simon Josefsson.
18917
18918 2007-01-27  Bruno Haible  <bruno@clisp.org>
18919
18920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
18921         from gl_HEADER_STRING_H_BODY.
18922         (gl_HEADER_STRING_H_BODY): Require it.
18923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
18924         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
18925         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
18926         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
18927         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18928         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
18929         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18930         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
18931         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
18932         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18933         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
18934         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
18935         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
18936         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18937         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18938
18939 2007-01-27  Bruno Haible  <bruno@clisp.org>
18940
18941         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
18942         check_PROGRAMS into noinst_PROGRAMS.
18943         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
18944         check_PROGRAMS in this case.
18945         (func_import): Set for_test to false.
18946         (func_create_testdir): Set for_test to true.
18947
18948 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18949             Bruno Haible  <bruno@clisp.org>
18950
18951         * modules/strcasestr (Files): Remove lib/strcasestr.h.
18952         (Depends-on): Add string.
18953         (Includes): Use <string.h> instead of strcasestr.h.
18954         * modules/string (Makefile.am): Also substitute the value of
18955         REPLACE_STRCASESTR.
18956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
18957         assume strcasestr is declared in <string.h> not <strings.h>. Also
18958         set REPLACE_STRCASESTR.
18959         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
18960         REPLACE_STRCASESTR.
18961         * lib/strcasestr.h: Remove file.
18962         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
18963         * lib/string_.h (strcasestr): New declaration.
18964
18965 2007-01-27  Bruno Haible  <bruno@clisp.org>
18966
18967         * lib/string_.h: Use 'extern'.
18968
18969 2007-01-27  Jim Meyering  <jim@meyering.net>
18970
18971         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
18972         of set-but-not-used local, "q".
18973
18974         * lib/mempcpy.c: Include <config.h> before <string.h>.
18975         This fixes a compilation error on HP-UX, due to the system's
18976         "restrict"-using mempcpy prototype.
18977
18978 2007-01-26  Bruno Haible  <bruno@clisp.org>
18979
18980         Small optimization.
18981         * lib/javacomp.c: Include c-strstr.h.
18982          (is_envjavac_gcj): Use c_strstr instead of strstr.
18983         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
18984
18985 2007-01-26  Bruno Haible  <bruno@clisp.org>
18986
18987         * MODULES.html.sh (Unicode string functions): Add the new modules.
18988
18989         * modules/uniconv/u32-strconv-to-locale: New file.
18990         * lib/uniconv/u32-strconv-to-locale.c: New file.
18991
18992         * modules/uniconv/u16-strconv-to-locale: New file.
18993         * lib/uniconv/u16-strconv-to-locale.c: New file.
18994
18995         * modules/uniconv/u8-strconv-to-locale: New file.
18996         * lib/uniconv/u8-strconv-to-locale.c: New file.
18997
18998         * modules/uniconv/u32-strconv-from-locale: New file.
18999         * lib/uniconv/u32-strconv-from-locale.c: New file.
19000
19001         * modules/uniconv/u16-strconv-from-locale: New file.
19002         * lib/uniconv/u16-strconv-from-locale.c: New file.
19003
19004         * modules/uniconv/u8-strconv-from-locale: New file.
19005         * lib/uniconv/u8-strconv-from-locale.c: New file.
19006
19007         * modules/uniconv/u32-strconv-to-enc: New file.
19008         * lib/uniconv/u32-strconv-to-enc.c: New file.
19009         * modules/uniconv/u32-strconv-to-enc-tests: New file.
19010         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
19011
19012         * modules/uniconv/u16-strconv-to-enc: New file.
19013         * lib/uniconv/u16-strconv-to-enc.c: New file.
19014         * lib/uniconv/u-strconv-to-enc.h: New file.
19015         * modules/uniconv/u16-strconv-to-enc-tests: New file.
19016         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
19017
19018         * modules/uniconv/u8-strconv-to-enc: New file.
19019         * lib/uniconv/u8-strconv-to-enc.c: New file.
19020         * modules/uniconv/u8-strconv-to-enc-tests: New file.
19021         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
19022
19023         * modules/uniconv/u32-strconv-from-enc: New file.
19024         * lib/uniconv/u32-strconv-from-enc.c: New file.
19025         * modules/uniconv/u32-strconv-from-enc-tests: New file.
19026         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
19027
19028         * modules/uniconv/u16-strconv-from-enc: New file.
19029         * lib/uniconv/u16-strconv-from-enc.c: New file.
19030         * modules/uniconv/u16-strconv-from-enc-tests: New file.
19031         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
19032
19033         * modules/uniconv/u8-strconv-from-enc: New file.
19034         * lib/uniconv/u8-strconv-from-enc.c: New file.
19035         * lib/uniconv/u-strconv-from-enc.h: New file.
19036         * modules/uniconv/u8-strconv-from-enc-tests: New file.
19037         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
19038
19039         * modules/uniconv/u32-conv-from-enc: New file.
19040         * lib/uniconv/u32-conv-from-enc.c: New file.
19041         * modules/uniconv/u32-conv-from-enc-tests: New file.
19042         * tests/uniconv/test-u32-conv-from-enc.c: New file.
19043
19044         * modules/uniconv/u16-conv-from-enc: New file.
19045         * lib/uniconv/u16-conv-from-enc.c: New file.
19046         * lib/uniconv/u-conv-from-enc.h: New file.
19047         * modules/uniconv/u16-conv-from-enc-tests: New file.
19048         * tests/uniconv/test-u16-conv-from-enc.c: New file.
19049
19050         * modules/uniconv/u8-conv-from-enc: New file.
19051         * lib/uniconv/u8-conv-from-enc.c: New file.
19052         * modules/uniconv/u8-conv-from-enc-tests: New file.
19053         * tests/uniconv/test-u8-conv-from-enc.c: New file.
19054
19055         * modules/uniconv/base: New file.
19056         * lib/uniconv.h: New file.
19057
19058 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19059
19060         * doc/gnulib-tool.texi (Initial import): Update to match current
19061         behavior with strdup module.
19062         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
19063         * lib/memmem.h: Remove; all uses removed.  This is now done
19064         by <string.h>.
19065         * lib/mempcpy.h: Likewise.
19066         * lib/memrchr.h: Likewise.
19067         * lib/stpcpy.h: Likewise.
19068         * lib/stpncpy.h: Likewise.
19069         * lib/strcase.h: Likewise.
19070         * lib/strchrnul.h: Likewise.
19071         * lib/strdup.h: Likewise.
19072         * lib/strndup.h: Likewise.
19073         * lib/strnlen.h: Likewise.
19074         * lib/strpbrk.h: Likewise.
19075         * lib/strsep.h: Likewise.
19076         * lib/strstr.h: Likewise.
19077         * lib/strtok_r.h: Likewise.
19078         * lib/string_.h: New file.
19079         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
19080         Rely on <string.h> instead.
19081         * lib/canon-host.c: Likewise.
19082         * lib/chdir-long.c: Likewise.
19083         * lib/concatpath.c: Likewise.
19084         * lib/exclude.c: Likewise.
19085         * lib/fchdir.c: Likewise.
19086         * lib/getaddrinfo.c: Likewise.
19087         * lib/getcwd.c: Likewise.
19088         * lib/getsubopt.c: Likewise.
19089         * lib/glob.c: Likewise.
19090         * lib/hard-locale.c: Likewise.
19091         * lib/iconvme.c: Likewise.
19092         * lib/javacomp.c: Likewise.
19093         * lib/mempcpy.c: Likewise.
19094         * lib/memrchr.c: Likewise.
19095         * lib/regex_internal.h: Likewise.
19096         * lib/stpncpy.c: Likewise.
19097         * lib/strcasecmp.c: Likewise.
19098         * lib/strchrnul.c: Likewise.
19099         * lib/strdup.c: Likewise.
19100         * lib/striconv.c: Likewise.
19101         * lib/striconveh.c: Likewise.
19102         * lib/striconveha.c: Likewise.
19103         * lib/strncasecmp.c: Likewise.
19104         * lib/strndup.c: Likewise.
19105         * lib/strnlen.c: Likewise.
19106         * lib/strsep.c: Likewise.
19107         * lib/strstr.c: Likewise.
19108         * lib/strtok_r.c: Likewise.
19109         * lib/userspec.c: Likewise.
19110         * lib/w32spawn.h: Likewise.
19111         * lib/xstrndup.c: Likewise.
19112         * lib/mountlist.c (strstr): Remove decl.
19113         * m4/string_h.m4: New file.
19114         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
19115         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
19116         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
19117         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
19118         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
19119         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
19120         Set REPLACE_STRCASECMP if necessary.
19121         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
19122         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
19123         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
19124         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
19125         HAVE_DECL_STRDUP if necessary.
19126         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
19127         since gl_FUNC_STRNDUP does that now.
19128         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
19129         Check for decl here...
19130         (gl_PREREQ_STRNLEN): ... not here.
19131         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
19132         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
19133         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
19134         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
19135         necessary.
19136         * modules/string: New file.
19137         * modules/memmem (Files): Remove special-purpose include file.
19138         (Depends-on): Add string.
19139         (Include): Include <string.h>, not the removed file.
19140         * modules/mempcpy: Likewise.
19141         * modules/memrchr: Likewise.
19142         * modules/stpcpy: Likewise.
19143         * modules/stpncpy: Likewise.
19144         * modules/strcase: Likewise.
19145         * modules/strchrnul: Likewise.
19146         * modules/strdup: Likewise.
19147         * modules/strndup: Likewise.
19148         * modules/strnlen: Likewise.
19149         * modules/strpbrk: Likewise.
19150         * modules/strsep: Likewise.
19151         * modules/strstr: Likewise.
19152         * modules/strtok_r: Likewise.
19153         * tests/test-dirname.c: Don't include "strdup.h", since
19154         <string.h> now suffices.
19155         * tests/test-memmem.c: Don't include "memmem.h", since
19156         <string.h> now suffices.
19157
19158 2007-01-25  Bruno Haible  <bruno@clisp.org>
19159
19160         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
19161         *resultp is 0.
19162
19163         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
19164         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
19165         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
19166         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
19167
19168         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
19169         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
19170         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
19171         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
19172         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
19173         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
19174
19175 2007-01-24  Bruno Haible  <bruno@clisp.org>
19176
19177         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
19178         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
19179         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
19180         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
19181         gl_FUNC_FTS_CORE.
19182         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
19183         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
19184         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19185         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
19186         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
19187         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
19188         gl_FUNC_FCHOWNAT.
19189         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
19190         gl_FUNC_STRFTIME.
19191         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
19192         Reported by Ralf Wildenhues.
19193
19194 2007-01-24  Bruno Haible  <bruno@clisp.org>
19195
19196         Drop AC_REQUIRE calls that are redundant with the module dependencies.
19197         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
19198         gl_GETADDRINFO.
19199         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
19200         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
19201         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
19202
19203 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
19204
19205         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
19206         Don't use 'exit'; just return from 'main'.
19207         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
19208
19209         * lib/fnmatch_.h: Readjust white space and comments to match
19210         glibc, to avoid spurious diffs.
19211
19212 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19213
19214         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
19215         2004-12-01 change by Jakub Jelinek, since this code won't compile
19216         if !LIBC.  Problem reported by Bob Proulx.
19217
19218 2007-01-23  Bruno Haible  <bruno@clisp.org>
19219
19220         * lib/striconveh.c: Include c-strcaseeq.h.
19221         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
19222         * modules/striconveh (Depends-on): Add c-strcaseeq.
19223
19224 2007-01-23  Bruno Haible  <bruno@clisp.org>
19225
19226         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
19227
19228         * modules/c-strcaseeq: New file.
19229         * lib/c-strcaseeq.h: New file.
19230
19231         * modules/streq: New file.
19232         * lib/streq.h: New file.
19233
19234 2007-01-23  Bruno Haible  <bruno@clisp.org>
19235
19236         * modules/striconveha-tests: New file.
19237         * tests/test-striconveha.c: New file.
19238
19239         * lib/striconveha.h: Include <stdbool.h>.
19240         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
19241         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
19242         (mem_iconveha_notranslit): Renamed from mem_iconveha.
19243         (mem_iconveha): New function.
19244         (str_iconveha_notranslit): Renamed from str_iconveha.
19245         (str_iconveha): New function.
19246         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
19247         c-strcase.
19248
19249 2007-01-23  Bruno Haible  <bruno@clisp.org>
19250
19251         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
19252         encodings without forgiving before trying any encoding with handler.
19253         (str_iconveha): Try all encodings without forgiving before trying any
19254         encoding with handler.
19255
19256 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19257
19258         Import the following changes from libc.
19259
19260         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
19261
19262         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
19263
19264         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
19265
19266         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
19267         normal_bracket label.
19268
19269         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
19270
19271         [BZ #361]
19272         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
19273         to normal_bracket after fetching the next character.
19274
19275 2007-01-22  Bruno Haible  <bruno@clisp.org>
19276
19277         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
19278         argument.
19279         * lib/striconveh.c (iconv_carefully_1): New function.
19280         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
19281         argument.
19282         (str_cd_iconveh): Update.
19283         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
19284         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
19285         * tests/test-striconveh.c (MAGIC): New macro.
19286         (new_offsets): New function.
19287         (main): Test call with and without offsets.
19288
19289 2007-01-22  Bruno Haible  <bruno@clisp.org>
19290
19291         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
19292         * modules/sys_select (Makefile.am): Likewise.
19293         * modules/sys_socket (Makefile.am): Likewise.
19294         * modules/sys_time (Makefile.am): Likewise.
19295
19296 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19297
19298         * modules/gettimeofday (License): Change from GPL to LGPL, since
19299         gettimeofday is a library function.
19300
19301 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19302
19303         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
19304
19305 2007-01-21  Bruno Haible  <bruno@clisp.org>
19306
19307         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
19308
19309 2007-01-21  Bruno Haible  <bruno@clisp.org>
19310
19311         * modules/striconveha: New file.
19312         * lib/striconveha.h: New file.
19313         * lib/striconveha.c: New file.
19314         * MODULES.html.sh (Internationalization functions): Add striconveha.
19315         * lib/striconv.c (str_iconv): Optimize the case of an empty input
19316         string.
19317         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
19318
19319 2007-01-21  Bruno Haible  <bruno@clisp.org>
19320
19321         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
19322         * lib/striconveh.c (str_iconveh): Likewise.
19323
19324 2007-01-21  Bruno Haible  <bruno@clisp.org>
19325
19326         * lib/striconveh.h (mem_iconveh): New declaration.
19327         * lib/striconveh.c (mem_iconveh): New function.
19328         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
19329
19330 2007-01-21  Bruno Haible  <bruno@clisp.org>
19331
19332         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
19333
19334         * lib/striconveh.h (mem_cd_iconveh): Change specification.
19335         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
19336         original result buffer.
19337         (str_cd_iconveh): Update.
19338         * tests/test-striconveh.c (main): Update.
19339
19340         * lib/striconv.h (mem_cd_iconv): Change specification.
19341         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
19342         result buffer.
19343         (str_cd_iconv): Update.
19344         * tests/test-striconv.c (main): Update.
19345
19346 2007-01-21  Bruno Haible  <bruno@clisp.org>
19347
19348         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
19349
19350 2007-01-20  Jim Meyering  <jim@meyering.net>
19351
19352         * lib/userspec.c (parse_with_separator): If a user or group string
19353         starts with "+", skip the corresponding name-to-ID look-up, since
19354         such a look-up must fail: user and group names may not include "+".
19355
19356 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
19357
19358         * lib/poll.c: Include sys/time.h and time.h unconditionally,
19359         since we now assume the sys_time module.
19360         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
19361         check for sys/time.h; no longer needed.
19362         * modules/poll (Depends-on): Depend on sys_time.
19363
19364 2007-01-18  Bruno Haible  <bruno@clisp.org>
19365
19366         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
19367         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19368
19369         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
19370         gettimeofday.
19371
19372         * tests/test-gettimeofday.c: Include <time.h>.
19373         (dummy): Remove variable.
19374
19375         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
19376         gl_HEADER_SYS_TIME_H.
19377         (gl_HEADER_SYS_TIME_H): New macro.
19378
19379         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
19380         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19381         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19382         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
19383         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19384         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
19385         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
19386         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19387         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
19388         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
19389         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19390
19391         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
19392         last change; it caused a compilation error when cross-compiling to
19393         Cygwin.
19394
19395 2007-01-18  Jim Meyering  <jim@meyering.net>
19396
19397         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
19398         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
19399         than the race-prone "test -d sys || mkdir sys".
19400         (configure.ac): Use AC_PROG_MKDIR_P.
19401         * modules/sys_select: Likewise.
19402         * modules/sys_socket: Likewise.
19403         * modules/sys_time: Likewise.
19404
19405 2007-01-18  Eric Blake  <ebb9@byu.net>
19406
19407         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
19408         replace gettimeofday.
19409         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
19410         name, to avoid infinite recursion.
19411
19412 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
19413
19414         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
19415         module sys_time.
19416         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
19417         assume timespec.h defines struct timeval.
19418         * lib/settime.c: Likewise.
19419         * lib/utimens.c: Likewise.
19420         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
19421         since we now assume the gettimeofday module.
19422         * lib/tempname.c (__gen_tempname): Likewise.
19423         * lib/gettimeofday.h: Remove.
19424         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
19425         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
19426         Include <time.h>, for 'time()'.
19427         (localtime_buffer_addr): Also use this workaround if
19428         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
19429         to simplify the uses.  All uses changed.
19430         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
19431         that #undef is inside {}, and 'const' follows type name consistently.
19432         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
19433         (gettimeofday): Do not use the maximum possible value for
19434         tv->tv_usec, since that might break usages other than ls.c.
19435         Instead, we'll leave ls.c alone.  This undoes today's patch
19436         by Bruno.  Add a compile-time warning for 1s-clock resolution;
19437         we've never observed the problem but might as well keep the
19438         canary.
19439         * lib/nanosleep.c: Include timespec.h first, for interface check.
19440         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
19441         now assume the sys_time module.
19442         * lib/tempname.c: Likewise.
19443         * lib/timespec.h: Likewise.
19444         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
19445         needed.
19446         * lib/strftime.c: Likewise.
19447         * lib/timespec.h: Likewise.
19448         * lib/posixtm.c: Include posixtm.h first, for interface check.
19449         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
19450         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
19451         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
19452         * lib/sys_time_.h: New file.
19453         * lib/timespec.h (struct timespec): Use long int, not long.
19454         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19455         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
19456         Remove obsolescent call to AC_HEADER_TIME.
19457         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19458         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19459         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19460         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
19461         Likewise.
19462         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19463         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
19464         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
19465         into the sys_time module.  Check for gettimeofday just once.
19466         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
19467         for gettimeofday signature to just check the signature.  Merely
19468         compile it, since linking doesn't test signature.  Improve test for
19469         whether gettimeofday.o is actually needed.
19470         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
19471         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
19472         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
19473         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19474         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
19475         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
19476         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
19477         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
19478         than worrying about sys/time.h.
19479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
19480         Don't bother worrying about TIME_WITH_SYS_TIME.
19481         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19482         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
19483         * m4/sys_time_h.m4: New file.
19484         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
19485         Don't include sys/time.h.  Return from main rather than exiting.
19486         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
19487         all uses changed.
19488         * modules/gethrxtime (Depends-on): Add sys_time.
19489         * modules/gettime (Depends-on): Likewise.
19490         * modules/gettimeofday (Depends-on): Likewise.
19491         * modules/nanosleep (Depends-on): Likewise.
19492         * modules/settime (Depends-on): Likewise.
19493         * modules/tempname (Depends-on): Likewise.
19494         * modules/utimens (Depends-on): Likewise.
19495         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
19496         (Include:) Change back to <sys/time.h>.
19497         (Maintainer:) Add self.
19498         * modules/sys_time: New file.
19499         * modules/tempname (Depends-on): Add gettimeofday.
19500         * tests/test-gettimeofday.c: Include <sys/time.h>
19501         rather than gettimeofday.h.
19502
19503 2007-01-17  Bruno Haible  <bruno@clisp.org>
19504
19505         * gnulib-tool (func_get_license): Revert last patch. Instead, let
19506         the license default to GPL.
19507         (func_create_testdir): Don't complain if a module is LGPL and its
19508         tests module depends on GPLed modules.
19509
19510 2007-01-17  Bruno Haible  <bruno@clisp.org>
19511
19512         * lib/gettimeofday.c (gettimeofday): Add code for the case
19513         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
19514         maximum possible value for tv->tv_usec, rather than the minimum one.
19515
19516 2005-10-08  Martin Lambers  <marlam@marlam.de>
19517 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19518 2007-01-16  Bruno Haible  <bruno@clisp.org>
19519
19520         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
19521         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
19522         gl_FUNC_GETTIMEOFDAY.
19523         (Include): Add gettimeofday.h.
19524         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
19525         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
19526         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
19527         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
19528         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
19529         * lib/gettimeofday.h: New file.
19530         * lib/gettimeofday.c: Include <sys/timeb.h>.
19531         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
19532         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19533         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
19534         fall back on time().
19535
19536         * tests/test-gettimeofday.c: New file.
19537         * modules/gettimeofday-tests: New file.
19538
19539 2007-01-16  Eric Blake  <ebb9@byu.net>
19540
19541         * modules/fnmatch (Depends-on): Depend on wchar.
19542         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
19543         * m4/fnmatch.m4: Likewise.
19544         * modules/mbchar (Makefile.am): Assume <wchar.h>.
19545         * m4/mbchar.m4: Likewise.
19546         * modules/mbswidth (Depends-on): Depend on wchar.
19547         * lib/mbswidth.c: Assume <wchar.h>.
19548         * m4/mbswidth.m4: Likewise.
19549         * modules/quotearg (Depends-on): Depend on wchar.
19550         * lib/quotearg.c: Assume <wchar.h>.
19551         * m4/quotearg.m4: Likewise.
19552         * modules/regex (Depends-on): Depend on wchar.
19553         * lib/regex_internal.h: Assume <wchar.h>.
19554         * m4/regex.m4: Likewise.
19555         * modules/stdint (Depends-on): Depend on wchar.
19556         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
19557         * m4/stdint.m4: Likewise.
19558         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
19559         * modules/strftime (Depends-on): Depend on wchar.
19560         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
19561         * modules/strtol (Depends-on): Depend on wchar.
19562         * lib/strtol.c: Assume <wchar.h>.
19563         * modules/wcwidth (Depends-on): Depend on wchar.
19564         * lib/wcwidth.h: Assume <wchar.h>.
19565         * m4/wcwidth.m4: Likewise.
19566
19567 2007-01-16  Bruno Haible  <bruno@clisp.org>
19568
19569         * modules/csharpexec-script: New, created from...
19570         * modules/csharpexec: ... this.
19571
19572 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
19573
19574         * modules/javaexec-script: New, created from...
19575         * modules/javaexec: ... this.
19576
19577 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19578
19579         * modules/poll (Dependencies): Add sys_select.
19580
19581 2007-01-15  Jim Meyering  <jim@meyering.net>
19582
19583         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
19584         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
19585         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
19586         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
19587
19588 2007-01-15  Bruno Haible  <bruno@clisp.org>
19589
19590         * modules/striconveh: New file.
19591         * lib/striconveh.h: New file.
19592         * lib/striconveh.c: New file.
19593         * MODULES.html.sh (Internationalization functions): Add striconveh.
19594
19595         * modules/striconveh-tests: New file.
19596         * tests/test-striconveh.c: New file.
19597
19598 2007-01-15  Bruno Haible  <bruno@clisp.org>
19599
19600         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
19601         not from GNU libiconv or GNU libc.
19602
19603 2007-01-15  Bruno Haible  <bruno@clisp.org>
19604
19605         * doc/gnulib-intro.texi (Copyright): Explain the different license
19606         terms for module descriptions, autoconf macros, tests, documentation.
19607
19608 2007-01-14  Bruno Haible  <bruno@clisp.org>
19609
19610         * modules/striconv-tests: New file.
19611         * tests/test-striconv.c: New file.
19612
19613 2007-01-14  Bruno Haible  <bruno@clisp.org>
19614
19615         * modules/iconv-tests: New file.
19616         * tests/test-iconv.c: New file.
19617
19618 2007-01-14  Bruno Haible  <bruno@clisp.org>
19619
19620         * gnulib-tool (func_get_license): For test modules, use the license of
19621         the main module.
19622
19623 2007-01-14  Bruno Haible  <bruno@clisp.org>
19624
19625         * modules/iconv (Include): Clarify that <iconv.h> can only be included
19626         if iconv is found to exist.
19627
19628 2007-01-14  Bruno Haible  <bruno@clisp.org>
19629
19630         * modules/c-ctype-tests: New file.
19631         * tests/test-c-ctype.c: New file.
19632
19633 2007-01-14  Bruno Haible  <bruno@clisp.org>
19634
19635         * modules/binary-io-tests: New file.
19636         * tests/test-binary-io.sh: New file.
19637         * tests/test-binary-io.c: New file.
19638
19639 2007-01-14  Bruno Haible  <bruno@clisp.org>
19640
19641         * modules/array-oset-tests: New file.
19642         * tests/test-array_oset.c: New file.
19643
19644 2007-01-14  Bruno Haible  <bruno@clisp.org>
19645
19646         * modules/array-list-tests: New file.
19647         * tests/test-array_list.c: New file.
19648
19649 2007-01-14  Bruno Haible  <bruno@clisp.org>
19650
19651         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
19652         and make.
19653         Reported by Simon Josefsson in
19654         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
19655
19656 2007-01-14  Bruno Haible  <bruno@clisp.org>
19657
19658         * modules/allocsa-tests: New file.
19659         * tests/test-allocsa.c: New file.
19660
19661 2007-01-14  Bruno Haible  <bruno@clisp.org>
19662
19663         * modules/fchdir (Depends-on): Add absolute-header.
19664         * modules/unistd (Depends-on): Likewise.
19665
19666 2006-12-30  Bruno Haible  <bruno@clisp.org>
19667
19668         * modules/fchdir: New file.
19669         * modules/unistd (Files): Add lib/unistd_.h.
19670         (Makefile.am): Generate unistd.h from unistd_.h.
19671         * lib/fchdir.c: New file.
19672         * lib/dirent_.h: New file.
19673         * lib/unistd_.h: New file.
19674         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
19675         * m4/fchdir.m4: New file.
19676         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
19677         (gl_HEADER_UNISTD): Invoke it.
19678         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
19679         function.
19680         * lib/backupfile.c (opendir, closedir): Undefine.
19681         * lib/chown.c (open, close): Undefine.
19682         * lib/clean-temp.c (open, close): Undefine.
19683         * lib/copy-file.c (open, close): Undefine.
19684         * lib/execute.c (open, close): Undefine.
19685         * lib/fsusage.c (open, close): Undefine.
19686         * lib/gc-gnulib.c (open, close): Undefine.
19687         * lib/getcwd.c (opendir, closedir): Undefine.
19688         * lib/glob.c (opendir, closedir): Undefine.
19689         * lib/javacomp.c (open, close): Undefine.
19690         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
19691         * lib/openat-proc.c (open, close): Undefine.
19692         * lib/pagealign_alloc.c (open, close): Undefine.
19693         * lib/pipe.c (open, close): Undefine.
19694         * lib/progreloc.c (open, close): Undefine.
19695         * lib/savedir.c (opendir, closedir): Undefine.
19696         * lib/utime.c (open, close): Undefine.
19697         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
19698
19699 2007-01-10  Bruno Haible  <bruno@clisp.org>
19700
19701         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
19702
19703 2007-01-12  Eric Blake  <ebb9@byu.net>
19704
19705         Provide a robust <wchar.h>.  Further simplifications are now
19706         possible in other modules, but not included here.
19707         * modules/wchar: New module.
19708         * m4/wchar.m4: New file.
19709         * lib/wchar_.h: Likewise.
19710         * modules/mbchar (Depends-on): Depend on wchar, as the first use
19711         of the new module.
19712         * MODULES.html.sh (Extended multibyte and wide character utilities):
19713         New section.
19714
19715 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
19716
19717         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
19718         to a reasonable default for memory allocation.
19719         (xreadlink): Don't allocate a huge buffer, to work around a buggy
19720         file system that reports garbage st_size values for symlinks.
19721         Problem reported by Liyang Hu.
19722
19723 2007-01-11  Simon Josefsson  <simon@josefsson.org>
19724
19725         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
19726         Emacs .#* auto-save files).
19727
19728 2007-01-11  Bruno Haible  <bruno@clisp.org>
19729
19730         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
19731         directory.
19732
19733 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19734
19735         Use @...@ consistently in lib/wctype_.h.
19736         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
19737         on it being set to 1 or 0.
19738         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
19739         go back to AC_SUBSTing it.
19740         * modules/wctype (Makefile.am): Undo previous change.
19741
19742 2007-01-10  Eric Blake  <ebb9@byu.net>
19743
19744         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
19745         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
19746         * modules/wctype (Makefile.am): Likewise.
19747         Reported by Chris McGuire.
19748
19749 2007-01-10  Jim Meyering  <jim@meyering.net>
19750
19751         fts.c: a small readability/maintainability improvement
19752         * lib/fts.c (fts_read): Make this code slightly more readable and
19753         maintainable by hoisting the "sp->fts_cur = p" assignments to
19754         immediately follow the statements that set P.  Derived from
19755         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
19756
19757 2007-01-10  Eric Blake  <ebb9@byu.net>
19758
19759         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
19760         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
19761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19762         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19763         Reported by Chris McGuire.
19764
19765 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19766
19767         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
19768         in sed script.
19769
19770 2007-01-09  Bruno Haible  <bruno@clisp.org>
19771
19772         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
19773         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
19774         variables.
19775         (func_module): Use them.
19776
19777 2007-01-09  Bruno Haible  <bruno@clisp.org>
19778
19779         * modules/unistr/base: New file.
19780         * lib/unistr.h: New file.
19781
19782         * modules/unistr/u8-to-u16: New file.
19783         * lib/unistr/u8-to-u16.c: New file.
19784
19785         * modules/unistr/u8-to-u32: New file.
19786         * lib/unistr/u8-to-u32.c: New file.
19787
19788         * modules/unistr/u16-to-u8: New file.
19789         * lib/unistr/u16-to-u8.c: New file.
19790
19791         * modules/unistr/u16-to-u32: New file.
19792         * lib/unistr/u16-to-u32.c: New file.
19793
19794         * modules/unistr/u32-to-u8: New file.
19795         * lib/unistr/u32-to-u8.c: New file.
19796
19797         * modules/unistr/u32-to-u16: New file.
19798         * lib/unistr/u32-to-u16.c: New file.
19799
19800         * modules/unistr/u8-check: New file.
19801         * modules/unistr/u16-check: New file.
19802         * modules/unistr/u32-check: New file.
19803         * lib/unistr/u8-check.c: New file.
19804         * lib/unistr/u16-check.c: New file.
19805         * lib/unistr/u32-check.c: New file.
19806
19807         * modules/unistr/u8-chr: New file.
19808         * modules/unistr/u16-chr: New file.
19809         * modules/unistr/u32-chr: New file.
19810         * lib/unistr/u8-chr.c: New file.
19811         * lib/unistr/u16-chr.c: New file.
19812         * lib/unistr/u32-chr.c: New file.
19813
19814         * modules/unistr/u8-cmp: New file.
19815         * modules/unistr/u16-cmp: New file.
19816         * modules/unistr/u32-cmp: New file.
19817         * lib/unistr/u8-cmp.c: New file.
19818         * lib/unistr/u16-cmp.c: New file.
19819         * lib/unistr/u32-cmp.c: New file.
19820
19821         * modules/unistr/u8-cpy: New file.
19822         * modules/unistr/u16-cpy: New file.
19823         * modules/unistr/u32-cpy: New file.
19824         * lib/unistr/u8-cpy.c: New file.
19825         * lib/unistr/u16-cpy.c: New file.
19826         * lib/unistr/u32-cpy.c: New file.
19827         * lib/unistr/u-cpy.h: New file.
19828
19829         * modules/unistr/u8-cpy-alloc: New file.
19830         * modules/unistr/u16-cpy-alloc: New file.
19831         * modules/unistr/u32-cpy-alloc: New file.
19832         * lib/unistr/u8-cpy-alloc.c: New file.
19833         * lib/unistr/u16-cpy-alloc.c: New file.
19834         * lib/unistr/u32-cpy-alloc.c: New file.
19835         * lib/unistr/u-cpy-alloc.h: New file.
19836
19837         * modules/unistr/u8-endswith: New file.
19838         * modules/unistr/u16-endswith: New file.
19839         * modules/unistr/u32-endswith: New file.
19840         * lib/unistr/u8-endswith.c: New file.
19841         * lib/unistr/u16-endswith.c: New file.
19842         * lib/unistr/u32-endswith.c: New file.
19843         * lib/unistr/u-endswith.h: New file.
19844
19845         * modules/unistr/u8-mblen: New file.
19846         * modules/unistr/u16-mblen: New file.
19847         * modules/unistr/u32-mblen: New file.
19848         * lib/unistr/u8-mblen.c: New file.
19849         * lib/unistr/u16-mblen.c: New file.
19850         * lib/unistr/u32-mblen.c: New file.
19851
19852         * modules/unistr/u8-mbtouc: New file.
19853         * modules/unistr/u16-mbtouc: New file.
19854         * modules/unistr/u32-mbtouc: New file.
19855         * lib/unistr/u8-mbtouc.c: New file.
19856         * lib/unistr/u16-mbtouc.c: New file.
19857         * lib/unistr/u32-mbtouc.c: New file.
19858
19859         * modules/unistr/u8-mbtouc-safe: New file.
19860         * modules/unistr/u16-mbtouc-safe: New file.
19861         * modules/unistr/u32-mbtouc-safe: New file.
19862         * lib/unistr/u8-mbtouc-safe.c: New file.
19863         * lib/unistr/u16-mbtouc-safe.c: New file.
19864         * lib/unistr/u32-mbtouc-safe.c: New file.
19865
19866         * modules/unistr/u8-move: New file.
19867         * modules/unistr/u16-move: New file.
19868         * modules/unistr/u32-move: New file.
19869         * lib/unistr/u8-move.c: New file.
19870         * lib/unistr/u16-move.c: New file.
19871         * lib/unistr/u32-move.c: New file.
19872         * lib/unistr/u-move.h: New file.
19873
19874         * modules/unistr/u8-next: New file.
19875         * modules/unistr/u16-next: New file.
19876         * modules/unistr/u32-next: New file.
19877         * lib/unistr/u8-next.c: New file.
19878         * lib/unistr/u16-next.c: New file.
19879         * lib/unistr/u32-next.c: New file.
19880
19881         * modules/unistr/u8-prev: New file.
19882         * modules/unistr/u16-prev: New file.
19883         * modules/unistr/u32-prev: New file.
19884         * lib/unistr/u8-prev.c: New file.
19885         * lib/unistr/u16-prev.c: New file.
19886         * lib/unistr/u32-prev.c: New file.
19887
19888         * modules/unistr/u8-set: New file.
19889         * modules/unistr/u16-set: New file.
19890         * modules/unistr/u32-set: New file.
19891         * lib/unistr/u8-set.c: New file.
19892         * lib/unistr/u16-set.c: New file.
19893         * lib/unistr/u32-set.c: New file.
19894         * lib/unistr/u-set.h: New file.
19895
19896         * modules/unistr/u8-startswith: New file.
19897         * modules/unistr/u16-startswith: New file.
19898         * modules/unistr/u32-startswith: New file.
19899         * lib/unistr/u8-startswith.c: New file.
19900         * lib/unistr/u16-startswith.c: New file.
19901         * lib/unistr/u32-startswith.c: New file.
19902         * lib/unistr/u-startswith.h: New file.
19903
19904         * modules/unistr/u8-stpcpy: New file.
19905         * modules/unistr/u16-stpcpy: New file.
19906         * modules/unistr/u32-stpcpy: New file.
19907         * lib/unistr/u8-stpcpy.c: New file.
19908         * lib/unistr/u16-stpcpy.c: New file.
19909         * lib/unistr/u32-stpcpy.c: New file.
19910         * lib/unistr/u-stpcpy.h: New file.
19911
19912         * modules/unistr/u8-stpncpy: New file.
19913         * modules/unistr/u16-stpncpy: New file.
19914         * modules/unistr/u32-stpncpy: New file.
19915         * lib/unistr/u8-stpncpy.c: New file.
19916         * lib/unistr/u16-stpncpy.c: New file.
19917         * lib/unistr/u32-stpncpy.c: New file.
19918         * lib/unistr/u-stpncpy.h: New file.
19919
19920         * modules/unistr/u8-strcat: New file.
19921         * modules/unistr/u16-strcat: New file.
19922         * modules/unistr/u32-strcat: New file.
19923         * lib/unistr/u8-strcat.c: New file.
19924         * lib/unistr/u16-strcat.c: New file.
19925         * lib/unistr/u32-strcat.c: New file.
19926         * lib/unistr/u-strcat.h: New file.
19927
19928         * modules/unistr/u8-strchr: New file.
19929         * modules/unistr/u16-strchr: New file.
19930         * modules/unistr/u32-strchr: New file.
19931         * lib/unistr/u8-strchr.c: New file.
19932         * lib/unistr/u16-strchr.c: New file.
19933         * lib/unistr/u32-strchr.c: New file.
19934
19935         * modules/unistr/u8-strcmp: New file.
19936         * modules/unistr/u16-strcmp: New file.
19937         * modules/unistr/u32-strcmp: New file.
19938         * lib/unistr/u8-strcmp.c: New file.
19939         * lib/unistr/u16-strcmp.c: New file.
19940         * lib/unistr/u32-strcmp.c: New file.
19941
19942         * modules/unistr/u8-strcpy: New file.
19943         * modules/unistr/u16-strcpy: New file.
19944         * modules/unistr/u32-strcpy: New file.
19945         * lib/unistr/u8-strcpy.c: New file.
19946         * lib/unistr/u16-strcpy.c: New file.
19947         * lib/unistr/u32-strcpy.c: New file.
19948         * lib/unistr/u-strcpy.h: New file.
19949
19950         * modules/unistr/u8-strcspn: New file.
19951         * modules/unistr/u16-strcspn: New file.
19952         * modules/unistr/u32-strcspn: New file.
19953         * lib/unistr/u8-strcspn.c: New file.
19954         * lib/unistr/u16-strcspn.c: New file.
19955         * lib/unistr/u32-strcspn.c: New file.
19956         * lib/unistr/u-strcspn.h: New file.
19957
19958         * modules/unistr/u8-strdup: New file.
19959         * modules/unistr/u16-strdup: New file.
19960         * modules/unistr/u32-strdup: New file.
19961         * lib/unistr/u8-strdup.c: New file.
19962         * lib/unistr/u16-strdup.c: New file.
19963         * lib/unistr/u32-strdup.c: New file.
19964         * lib/unistr/u-strdup.h: New file.
19965
19966         * modules/unistr/u8-strlen: New file.
19967         * modules/unistr/u16-strlen: New file.
19968         * modules/unistr/u32-strlen: New file.
19969         * lib/unistr/u8-strlen.c: New file.
19970         * lib/unistr/u16-strlen.c: New file.
19971         * lib/unistr/u32-strlen.c: New file.
19972         * lib/unistr/u-strlen.h: New file.
19973
19974         * modules/unistr/u8-strmblen: New file.
19975         * modules/unistr/u16-strmblen: New file.
19976         * modules/unistr/u32-strmblen: New file.
19977         * lib/unistr/u8-strmblen.c: New file.
19978         * lib/unistr/u16-strmblen.c: New file.
19979         * lib/unistr/u32-strmblen.c: New file.
19980
19981         * modules/unistr/u8-strmbtouc: New file.
19982         * modules/unistr/u16-strmbtouc: New file.
19983         * modules/unistr/u32-strmbtouc: New file.
19984         * lib/unistr/u8-strmbtouc.c: New file.
19985         * lib/unistr/u16-strmbtouc.c: New file.
19986         * lib/unistr/u32-strmbtouc.c: New file.
19987
19988         * modules/unistr/u8-strncat: New file.
19989         * modules/unistr/u16-strncat: New file.
19990         * modules/unistr/u32-strncat: New file.
19991         * lib/unistr/u8-strncat.c: New file.
19992         * lib/unistr/u16-strncat.c: New file.
19993         * lib/unistr/u32-strncat.c: New file.
19994         * lib/unistr/u-strncat.h: New file.
19995
19996         * modules/unistr/u8-strncmp: New file.
19997         * modules/unistr/u16-strncmp: New file.
19998         * modules/unistr/u32-strncmp: New file.
19999         * lib/unistr/u8-strncmp.c: New file.
20000         * lib/unistr/u16-strncmp.c: New file.
20001         * lib/unistr/u32-strncmp.c: New file.
20002
20003         * modules/unistr/u8-strncpy: New file.
20004         * modules/unistr/u16-strncpy: New file.
20005         * modules/unistr/u32-strncpy: New file.
20006         * lib/unistr/u8-strncpy.c: New file.
20007         * lib/unistr/u16-strncpy.c: New file.
20008         * lib/unistr/u32-strncpy.c: New file.
20009         * lib/unistr/u-strncpy.h: New file.
20010
20011         * modules/unistr/u8-strnlen: New file.
20012         * modules/unistr/u16-strnlen: New file.
20013         * modules/unistr/u32-strnlen: New file.
20014         * lib/unistr/u8-strnlen.c: New file.
20015         * lib/unistr/u16-strnlen.c: New file.
20016         * lib/unistr/u32-strnlen.c: New file.
20017         * lib/unistr/u-strnlen.h: New file.
20018
20019         * modules/unistr/u8-strpbrk: New file.
20020         * modules/unistr/u16-strpbrk: New file.
20021         * modules/unistr/u32-strpbrk: New file.
20022         * lib/unistr/u8-strpbrk.c: New file.
20023         * lib/unistr/u16-strpbrk.c: New file.
20024         * lib/unistr/u32-strpbrk.c: New file.
20025         * lib/unistr/u-strpbrk.h: New file.
20026
20027         * modules/unistr/u8-strrchr: New file.
20028         * modules/unistr/u16-strrchr: New file.
20029         * modules/unistr/u32-strrchr: New file.
20030         * lib/unistr/u8-strrchr.c: New file.
20031         * lib/unistr/u16-strrchr.c: New file.
20032         * lib/unistr/u32-strrchr.c: New file.
20033
20034         * modules/unistr/u8-strspn: New file.
20035         * modules/unistr/u16-strspn: New file.
20036         * modules/unistr/u32-strspn: New file.
20037         * lib/unistr/u8-strspn.c: New file.
20038         * lib/unistr/u16-strspn.c: New file.
20039         * lib/unistr/u32-strspn.c: New file.
20040         * lib/unistr/u-strspn.h: New file.
20041
20042         * modules/unistr/u8-strstr: New file.
20043         * modules/unistr/u16-strstr: New file.
20044         * modules/unistr/u32-strstr: New file.
20045         * lib/unistr/u8-strstr.c: New file.
20046         * lib/unistr/u16-strstr.c: New file.
20047         * lib/unistr/u32-strstr.c: New file.
20048         * lib/unistr/u-strstr.h: New file.
20049
20050         * modules/unistr/u8-strtok: New file.
20051         * modules/unistr/u16-strtok: New file.
20052         * modules/unistr/u32-strtok: New file.
20053         * lib/unistr/u8-strtok.c: New file.
20054         * lib/unistr/u16-strtok.c: New file.
20055         * lib/unistr/u32-strtok.c: New file.
20056         * lib/unistr/u-strtok.h: New file.
20057
20058         * modules/unistr/u8-uctomb: New file.
20059         * modules/unistr/u16-uctomb: New file.
20060         * modules/unistr/u32-uctomb: New file.
20061         * lib/unistr/u8-uctomb.c: New file.
20062         * lib/unistr/u16-uctomb.c: New file.
20063         * lib/unistr/u32-uctomb.c: New file.
20064
20065         * MODULES.html.sh (Unicode string functions): Add the new modules.
20066
20067 2007-01-08  Bruno Haible  <bruno@clisp.org>
20068
20069         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
20070         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
20071         subdirectories.
20072
20073 2007-01-08  Karl Berry  <karl@gnu.org>
20074
20075         * doc/error.texi: mention that main() fns must set program_name
20076         when progname is used.
20077
20078 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
20079
20080         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
20081         WCTYPE_H is empty, for the benefit of builds from non-distclean
20082         directories.  Problem reported by Eric Blake in
20083         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
20084
20085 2007-01-08  Bruno Haible  <bruno@clisp.org>
20086
20087         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
20088         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
20089         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
20090         PROVIDE_CANONICALIZE_FILENAME_MODE.
20091         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
20092
20093 2007-01-08  Bruno Haible  <bruno@clisp.org>
20094
20095         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
20096         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
20097         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
20098         * lib/fts.c: Likewise.
20099         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
20100
20101 2006-12-25  Bruno Haible  <bruno@clisp.org>
20102
20103         * modules/utf8-ucs4-safe: New file.
20104         * lib/utf8-ucs4-safe.h: New file.
20105         * lib/unistr/utf8-ucs4-safe.c: New file.
20106
20107         * modules/utf16-ucs4-safe: New file.
20108         * lib/utf16-ucs4-safe.h: New file.
20109         * lib/unistr/utf16-ucs4-safe.c: New file.
20110
20111         * MODULES.html.sh (Unicode string functions): Add the new modules.
20112
20113 2007-01-08  Bruno Haible  <bruno@clisp.org>
20114
20115         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
20116         (Depends-on): Add unitypes.
20117         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20118         (u8_mbtouc_aux): Move out to separate file.
20119         (u8_mbtouc): Use ucs4_t, uint8_t types.
20120         * lib/unistr/utf8-ucs4.c: New file.
20121
20122         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
20123         (Depends-on): Add unitypes.
20124         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20125         (u16_mbtouc_aux): Move out to separate file.
20126         (u16_mbtouc): Use ucs4_t, uint16_t types.
20127         * lib/unistr/utf16-ucs4.c: New file.
20128
20129         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
20130         (Depends-on): Add unitypes.
20131         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
20132         (u8_uctomb_aux): Move out to separate file.
20133         (u8_uctomb): Use ucs4_t, uint8_t types.
20134         * lib/unistr/ucs4-utf8.c: New file.
20135
20136         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
20137         (Depends-on): Add unitypes.
20138         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
20139         (u16_uctomb_aux): Move out to separate file.
20140         (u16_uctomb): Use ucs4_t, uint16_t types.
20141         * lib/unistr/ucs4-utf16.c: New file.
20142
20143 2006-12-25  Bruno Haible  <bruno@clisp.org>
20144
20145         * modules/unitypes: New file.
20146         * lib/unitypes.h: New file.
20147         * MODULES.html.sh (func_all_modules): New section "Unicode string
20148         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
20149         this section. Add unitypes.
20150
20151 2007-01-08  Bruno Haible  <bruno@clisp.org>
20152
20153         Avoid variable names that conflict with those from libtool.
20154         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
20155         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
20156         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
20157         library_names_spec to acl_library_names_spec, hardcode_* to
20158         acl_hardcode_*.
20159         Reported by Ralf Wildenhues.
20160
20161 2007-01-08  Bruno Haible  <bruno@clisp.org>
20162
20163         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
20164         definition.
20165         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
20166         definition.
20167         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
20168         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
20169         definition.
20170         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
20171         definition.
20172         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
20173         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
20174         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
20175         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
20176         definition.
20177         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
20178         definition.
20179         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
20180         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
20181         GC_USE_<algorithm>.
20182         * lib/gc-libgcrypt.c: Likewise.
20183         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
20184         * modules/gc-arctwo (configure.ac): Likewise.
20185         * modules/gc-des (configure.ac): Likewise.
20186         * modules/gc-hmac-md5 (configure.ac): Likewise.
20187         * modules/gc-hmac-sha1 (configure.ac): Likewise.
20188         * modules/gc-md2 (configure.ac): Likewise.
20189         * modules/gc-md4 (configure.ac): Likewise.
20190         * modules/gc-md5 (configure.ac): Likewise.
20191         * modules/gc-random (configure.ac): Likewise.
20192         * modules/gc-rijndael (configure.ac): Likewise.
20193         * modules/gc-sha1 (configure.ac): Likewise.
20194
20195 2007-01-08  Bruno Haible  <bruno@clisp.org>
20196
20197         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
20198         macro definition.
20199         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
20200         definition.
20201         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
20202         definition.
20203         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
20204         * modules/fcntl-safer (configure.ac): Likewise.
20205         * modules/fopen-safer (configure.ac): Likewise.
20206         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
20207         GNULIB_FWRITEERROR macro definition.
20208
20209 2007-01-08  Bruno Haible  <bruno@clisp.org>
20210
20211         * m4/gnulib-common.m4: New file.
20212         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
20213         (func_get_filelist): Add m4/gnulib-common.m4.
20214
20215 2007-01-08  Bruno Haible  <bruno@clisp.org>
20216
20217         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
20218         command.
20219
20220 2007-01-08  Jim Meyering  <jim@meyering.net>
20221
20222         Use a more robust test for a "can't happen" condition.
20223         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
20224         narrowed the st_size value.  Presuming the "can't happen" condition
20225         is true, that narrowing could conceivably convert an invalid st_size
20226         value into a valid one.  Instead, use a change based on Matthew
20227         Woehlke's original patch.
20228
20229         Slight readability improvement: use an assert-like macro
20230         in place of literal "abort ()" uses.
20231         * lib/fts.c (fts_assert): Define.
20232         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
20233         Use this macro instead of a bare 'abort'.
20234
20235 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
20236
20237         Don't worry about using IRIX 5.3's wctype.h broken definitions;
20238         simply work around them.
20239         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
20240         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
20241         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
20242         declaring.
20243         Don't bother to define as macros, since the standard doesn't require it.
20244         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
20245         longer worry about IRIX 5.3.
20246         (HAVE_WCTYPE_CTMP_BUG): Remove.
20247
20248 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20249
20250         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
20251         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
20252         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20253         Problems reported by Georg Schwarz for IRIX 5.3.
20254
20255         * gnulib-tool (autoconf_minversion): Take the maximum version number
20256         found, not the minimum.  Problem reported by James Youngman.
20257
20258 2007-01-03  Karl Berry  <karl@gnu.org>
20259
20260         * doc/error.texi: new file, explaining interaction with progname.
20261         * doc/gnulib.texi: include it.  Update copyright.
20262
20263 2007-01-03  Simon Josefsson  <simon@josefsson.org>
20264
20265         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
20266         AC_CANONICAL_HOST, to improve autobuild outputs.
20267
20268 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
20269             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20270
20271         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
20272         sockets, server sockets, and other file descriptors.  Count errors
20273         to compute the return value.  Reorder the code a bit to be easier
20274         to follow.  Don't set event bits that were not requested (except
20275         POLLERR and POLLHUP).
20276
20277 2007-01-01  Bruno Haible  <bruno@clisp.org>
20278
20279         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
20280
20281 2007-01-03  Jim Meyering  <jim@meyering.net>
20282
20283         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
20284
20285 2007-01-02  Bruno Haible  <bruno@clisp.org>
20286
20287         * modules/settime (Include): Require timespec.h.
20288         * modules/nanosleep (Include): Likewise.
20289
20290 2007-01-01  Bruno Haible  <bruno@clisp.org>
20291
20292         * gnulib-tool (func_emit_copyright_notice): Bump year.
20293         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
20294
20295 2007-01-01  Bruno Haible  <bruno@clisp.org>
20296
20297         Improve support for OpenBSD.
20298         * build-aux/config.rpath (libname_spec): Export.
20299         (library_names_spec): New variable. Export.
20300         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
20301         library_names_spec from the config.rpath output. Locate shared library
20302         through the name pattern in library_names_spec.
20303
20304 2007-01-01  Eric Blake  <ebb9@byu.net>
20305
20306         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
20307
20308 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20309
20310         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
20311         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
20312         assume the C locale, and avoid an "eval" that could cause trouble.
20313         Problem with SORT reported by Bob Proulx.
20314
20315         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
20316         Define.  Trivial patch from Henning Nielsen Lund, originally
20317         sent to bug-grep@gnu.org today.
20318
20319 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20320
20321         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
20322         struct stat.  Problem reported by Henning Nielsen Lund.
20323         * lib/acl.c: Include acl.h first, to check interface.  Don't
20324         bother to include sys/types.h and sys/stat.h again.
20325
20326 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20327
20328         Import the following change from libc; problem reported by
20329         Sven Verdoolaege.
20330
20331         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
20332
20333         [BZ #1373]
20334         * lib/argp.h: Remove __NTH for __argp_usage inline function.
20335
20336 2006-12-28  Jim Meyering  <jim@meyering.net>
20337
20338         * build-aux/announce-gen: Do not assume that the package
20339         builds any of tar.gz, tar.bz2, and .xdelta files.
20340         Suggestion from Simon Josefsson.
20341
20342 2006-12-28  Simon Josefsson  <simon@josefsson.org>
20343
20344         * modules/announce-gen: New file.
20345
20346 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20347
20348         * lib/mbchar.h: Just include <wctype.h>; the wctype module
20349         handles its gotchas now.
20350         * lib/mbswidth.c: Likewise.
20351         * lib/wcwidth.h: Likewise.
20352         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
20353         and iswcntrl; the wctype module does this stuff now.
20354         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20355         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20356         * modules/mbchar (Depends-on): Add wctype.
20357         * modules/mbswidth (Depends-on): Likewise.
20358         * modules/wcwidth (Depends-on): Likewise.
20359
20360 2006-12-27  Eric Blake  <ebb9@byu.net>
20361
20362         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
20363         module uses more than what <wctype.h> is required to provide.
20364
20365 2006-12-26  Eric Blake  <ebb9@byu.net>
20366
20367         * gnulib-tool (sed_extract_prog): Avoid space-tab.
20368
20369 2006-12-26  Eric Blake  <ebb9@byu.net>
20370
20371         * modules/absolute-header: New module.
20372         * modules/fcntl (Depends-on): Depend on it.
20373         * modules/inttypes (Depends-on): Likewise.
20374         * modules/stdint (Depends-on): Likewise.
20375         * modules/sys_stat (Depends-on): Likewise.
20376         * modules/wctype (Depends-on): Likewise.
20377         * MODULES.html.sh (Support for building libraries and
20378         executables): Document it.
20379
20380 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
20381
20382         * gnulib-tool (SED): Remove, undoing previous change.
20383         The problem was that it broke coreutils on Solaris, because
20384         "sed --posix" leaked into a makefile.
20385         (sed): New alias, if 'alias' and GNU sed.
20386
20387 2006-12-24  Jim Meyering  <jim@meyering.net>
20388
20389         Work around an fchownat bug in glibc-2.4:
20390         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
20391         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
20392         in spite of the -P option.
20393         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
20394         New macros.
20395         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
20396         * modules/openat (Files): Add lib/fchownat.c.
20397         * lib/openat.c (fchownat): Don't define here.  Move to...
20398         * lib/fchownat.c: ...this new file.
20399
20400 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20401
20402         Fix bug reported by Bruno Haible in
20403         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
20404         where quotearg.c didn't compile on Mac OS X 10.2 because it
20405         lacks <wchar.h> and wint_t.
20406         * lib/wctype_.h (__wctype_wint_t): New type.
20407         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
20408         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
20409         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
20410         Arg is now of type __wctype_wint_t, not wint_t.
20411         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
20412         substitute HAVE_WINT_T.
20413         * modules/wctype (Files): Add m4/wint_t.m4.
20414         (wctype.h): Substitute HAVE_WINT_T.
20415
20416 2006-12-23  Bruno Haible  <bruno@clisp.org>
20417
20418         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
20419
20420 2006-12-23  Bruno Haible  <bruno@clisp.org>
20421
20422         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
20423         S_ISLNK.
20424         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
20425         mingw.
20426
20427 2006-12-22  Bruno Haible  <bruno@clisp.org>
20428
20429         * lib/copy-file.c: Include acl.h.
20430         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
20431         Close the file descriptors only after being done with copy_acl.
20432         * modules/copy-file (Depends-on): Add acl.
20433
20434 2006-12-22  Bruno Haible  <bruno@clisp.org>
20435
20436         * gnulib-tool (SED): New variable.
20437         Use $SED instead of sed everywhere.
20438
20439 2006-12-22  Bruno Haible  <bruno@clisp.org>
20440
20441         * modules/no-c++: New file.
20442         * m4/no-c++.m4: New file.
20443         * MODULES.html.sh (Support for building libraries and executables):
20444         Add no-c++.
20445
20446 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20447
20448         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
20449         Include <limits.h>, and use its INT_MAX to rewrite the
20450         j loop so that it does not overflow 'int'.  Problem reported by
20451         Ralf Wildenhues in
20452         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
20453         Play it safe by shifting left by 1 rather than multiplying by 2,
20454         as GCC is less likely to optimize this away when the value
20455         is signed (when it assumes overflow leads to undefined behavior).
20456         Also, don't assume time_t uses two's complement.
20457
20458 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20459
20460         * MODULES.html.sh: New module wctype.
20461         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
20462         * lib/fnmatch.c: Don't bother to include <wchar.h> before
20463         <wctype.h>, since the new wctype module should fix this.
20464         * lib/quotearg.c: Include <wctype.h> unconditionally, since
20465         the wctype module should arrange for it.
20466         * lib/regex_internal.h: Likewise.
20467         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
20468         since the wctype module should handle this now.
20469         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
20470         * modules/fnmatch (Depends-on): Add wctype.
20471         * modules/quotearg (Depends-on): Likewise.
20472         * modules/regex (Depends-on): Likewise.
20473
20474 2006-12-19  Bruno Haible  <bruno@clisp.org>
20475
20476         * lib/strdup.h [C++]: Wrap definitions in extern "C".
20477         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
20478
20479 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20480
20481         * modules/savewd (Depends-on): Fix dependency on fcntl.
20482
20483 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20484
20485         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
20486         conforms to C99, rather than relying on the user's environment
20487         setting of STDINT_H.
20488
20489 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20490         and Eric Blake  <ebb9@byu.net>
20491
20492         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
20493         This is more consistent with the other defines here.
20494         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
20495         Port to z/OS.  Problem reported by Paul Gilmartin.
20496         Change local vars to use gl_ prefix rather than ac_.
20497         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
20498         with other defines.
20499         * modules/double-slash-root: New module.
20500         * modules/dirname (Files): Remove m4/double-slash-root.m4.
20501         (Depends-on): Add double-slash-root.
20502         * MODULES.html.sh (File system functions): Mention new module.
20503
20504 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
20505
20506         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
20507         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
20508         This is for the benefit of gzip, which doesn't do i18n.
20509
20510 2006-12-12  Jim Meyering  <jim@meyering.net>
20511
20512         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
20513         Reported by Andreas Schwab <schwab@suse.de>.
20514
20515 2006-12-12  Bruno Haible  <bruno@clisp.org>
20516
20517         Merge these changes.
20518         2006-09-05  Bruno Haible  <bruno@clisp.org>
20519         * lib/iconvme.c (iconv_string): No need to save and restore errno when
20520         iconv_alloc succeeded.
20521         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
20522         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
20523         test for " && dest " at the end - dest is always != NULL there. Call
20524         iconv with 4xNULL arguments initially, to reset the state. Call iconv
20525         with 2xNULL arguments, also to flush the state storage. Handle the
20526         IRIX iconv behaviour. Realloc the final result, to throw away unused
20527         memory.
20528
20529 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20530
20531         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
20532         and fchmodat unconditionally, since glibc 2.4 has them.
20533         Problem reported by Arkadiusz Miskiewicz.
20534
20535 2006-12-10  Bruno Haible  <bruno@clisp.org>
20536
20537         * gnulib-tool (func_import): Show the include files only for those
20538         modules that are copied and specified.
20539         Reported by Karl Berry.
20540
20541 2006-12-08  Jim Meyering  <jim@meyering.net>
20542
20543         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
20544         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
20545
20546         * build-aux/announce-gen: Add two new options, both optional:
20547         --bootstrap-tools=TOOL_LIST
20548               a comma-separated list of tools, e.g.,
20549               autoconf,automake,bison,gnulib
20550         --gnulib-snapshot-date=DATE
20551               if gnulib is in the bootstrap tool list,
20552               then report this as the snapshot date.
20553               If not specified, use the current date/time.
20554               If you specify a date here, be sure it's UTC.
20555
20556 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20557
20558         * tests/test-argp-2.sh: Fix test to match actual output.
20559         (func_compare): Fix sed script to be portable.
20560
20561 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20562
20563         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
20564         workaround for this case.  It is not autoconfigured now; offhand
20565         it's hard to see how to autoconfigure it.
20566
20567 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
20568
20569         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
20570         a directory that is about to be chowned.  Such a directory's
20571         initial file permissions should permit the owner only and this
20572         should not be changed until after the chown, since the group and
20573         other bits would be incorrect if they granted permission before
20574         the chown.
20575
20576         Fix porting problem for iswctype reported by Georg Schwarz in:
20577         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
20578         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
20579         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
20580         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
20581         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20582
20583 2006-12-03  Jim Meyering  <jim@meyering.net>
20584
20585         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
20586         p->fts_statp may not yet be defined.
20587         (fts_read): Instead, set it in the caller, once p->fts_statp is
20588         sure to be defined, and corresponds to a top-level directory.
20589         This bug made du -x fail.  Here's the coreutils test case:
20590         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
20591         Reported by Mike Frysinger.
20592
20593 2006-12-01  Jim Meyering  <jim@meyering.net>
20594
20595         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
20596         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
20597         Reported by Simon Josefsson.
20598
20599 2006-11-30  Jim Meyering  <jim@meyering.net>
20600
20601         * m4/warning.m4: Use the all-permissive copyright notice
20602         recommended by RMS (rather than LGPL).
20603         * m4/vararrays.m4: Likewise.
20604         * m4/flexmember.m4: Likewise.
20605
20606 2006-11-29  Bruno Haible  <bruno@clisp.org>
20607
20608         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20609         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
20610         using +=.
20611         Reported by Simon Josefsson <simon@josefsson.org>.
20612
20613 2006-11-28  James Youngman <jay@gnu.org>
20614
20615         * README: Advise users that they might find the bug-gnulib@gnu.org
20616         and autotools-announce@gnu.org mailing lists useful.
20617
20618 2006-11-28  Bruno Haible  <bruno@clisp.org>
20619
20620         * m4/ptrdiff_max.m4: Remove file.
20621
20622 2006-11-21  Bruno Haible  <bruno@clisp.org>
20623
20624         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
20625         _AC_COMPUTE_INT.
20626         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20627         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
20628         _AC_COMPUTE_INT.
20629         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20630         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
20631         _AC_COMPUTE_INT.
20632         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20633
20634 2006-11-28  Jim Meyering  <jim@meyering.net>
20635
20636         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
20637         warning from "gcc -Wshadow" about shadowing the builtin.
20638
20639 2006-11-27  Bruno Haible  <bruno@clisp.org>
20640
20641         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
20642         _AC_COMPUTE_INT.
20643         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20644
20645 2006-11-27  Bruno Haible  <bruno@clisp.org>
20646             Paul Eggert  <eggert@cs.ucla.edu>
20647
20648         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
20649
20650 2006-11-26  Bruno Haible  <bruno@clisp.org>
20651
20652         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20653         noinst_LTLIBRARIES.
20654
20655 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
20656             Bruno Haible  <bruno@clisp.org>
20657
20658         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
20659         if compiling with "gcc -ansi".
20660
20661 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
20662
20663         Fix some incompatibilities with gcc -ansi -pedantic.
20664         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
20665         if compiling pedantically with GCC, unless it's C99 or later.
20666         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
20667         it mishandles gcc -ansi -pedantic as well.
20668         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
20669         if gcc -pedantic.
20670         * lib/regexec.c (check_node_accept_bytes): Don't use auto
20671         initializers for struct if -pedantic, unless it's C99 or later.
20672
20673 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
20674
20675         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
20676         Don't close an fd more than once. Identical atimes indicate
20677         success, not failure.
20678
20679 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
20680
20681         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
20682
20683 2006-11-23  Jim Meyering  <jim@meyering.net>
20684
20685         * build-aux/announce-gen: New file.  From coreutils.
20686
20687 2006-11-22  Jim Meyering  <jim@meyering.net>
20688
20689         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
20690         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
20691         (fts_read): Use a temporary to narrow the overused st_size member
20692         before using it in a switch statement.  Reported by Matthew Woehlke.
20693
20694         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
20695         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20696
20697 2006-11-20  Bruno Haible  <bruno@clisp.org>
20698
20699         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
20700         changequote instead of pairs of brackets.
20701         Reported by Andreas Schwab <schwab@suse.de>.
20702
20703 2006-11-21  Jim Meyering  <jim@meyering.net>
20704
20705         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
20706         so as to remain compatible with older compilers.
20707         Patch from Michael Deutschmann.
20708
20709 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20710
20711         * MODULES.html.sh (File system functions): Add openat.
20712
20713         * lib/openat.h (rpl_fstatat): New macro, if
20714         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
20715         (fstatat): Define to rpl_fstatat under the same conditions,
20716         unless COMPILING_FSTATAT.
20717         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
20718         seems to have the bug.
20719         * lib/fstatat.c: New file.
20720         * modules/openat (Files): Add it.
20721
20722 2006-11-20  Bruno Haible  <bruno@clisp.org>
20723
20724         * Makefile: New file.
20725
20726 2006-11-20  Jim Meyering  <jim@meyering.net>
20727
20728         The beginnings of syntax-related checks for gnulib.
20729         * lib/Makefile: New file.
20730         * lib/t-idcache: New script.  Ensure that the two halves of
20731         idcache.c stay in sync.
20732
20733         * lib/idcache.c: Adjust comments in user- and group- portions to
20734         be more accurate, and to be consistent with one another.
20735
20736 2006-11-20  Jim Meyering  <jim@meyering.net>
20737
20738         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
20739         continue using the flexible array member (thus, this module performs
20740         half as many malloc calls), with the addition that...
20741         (getgroup, getuser): Consistently record a non-match via an empty
20742         "name" string, and map an empty string match to a NULL return value.
20743         * modules/idcache (Depends-on): Re-add flexmember.
20744
20745         * lib/idcache.c (getuser): Remove all uses of the register keyword.
20746         (getuidbyname, getgroup, getgidbyname): Likewise.
20747
20748         Use cleaner syntax: NULL rather than 0.
20749         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
20750
20751 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20752
20753         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
20754         It mishandled the case where the group was missing.
20755         Problem reported by Greg Schafer.
20756         * modules/idcache: Likewise.
20757
20758 2006-11-18  Jim Meyering  <jim@meyering.net>
20759
20760         * check-module (%exempt_header): Add exception for some
20761         conditionally-included headers.
20762
20763         * modules/i-ring (Depends-on): Add verify.
20764         (License): Change to LGPL.
20765
20766 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20767
20768         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
20769         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
20770         and inttostr.h.  Use snprintf rather than uinttostr, so that
20771         LGPLed code doesn't depend on GPLed.
20772
20773 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20774
20775         * modules/inline (License): Change from GPL to LGPL.
20776
20777 2006-11-17  Jim Meyering  <jim@meyering.net>
20778
20779         * modules/d-type (License): Switch to LGPL.
20780
20781 2006-11-15  Bruno Haible  <bruno@clisp.org>
20782
20783         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
20784
20785 2006-11-15  Eric Blake  <ebb9@byu.net>
20786
20787         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
20788         the module dependency.
20789
20790 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20791             Bruno Haible  <bruno@clisp.org>
20792
20793         * gnulib-tool (func_create_testdir): Add license consistency check.
20794
20795 2006-11-15  Eric Blake  <ebb9@byu.net>
20796
20797         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
20798         random "(cached)" in configure output.
20799
20800 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20801
20802         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
20803         test for conforming inttypes.h is both announced and cached.
20804
20805         * MODULES.html.sh (seen_modules, seen_files): New variables.
20806         (func_module): Rewrite to use a few less gnulib-tool and sed
20807         invocations.  Avoid a couple of quadratic algorithms for ...
20808         (missed_modules, missed_files): ... these, with ...
20809         (func_append, func_tmpdir): ... these new functions, from
20810         gnulib-tool.  Analogously, install traps for cleanup.
20811
20812         * tests/test-gc.c (main): Remove unused variables.
20813         * tests/test-read-file.c: Include stdlib.h, for 'free'.
20814
20815 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
20816
20817         * modules/inttostr (License): Change to LGPL.
20818
20819 2006-11-14  Eric Blake  <ebb9@byu.net>
20820
20821         * modules/tempname (License): Change to LGPL.
20822
20823 2006-11-14  Eric Blake  <ebb9@byu.net>
20824
20825         * doc/functions.texi (Function Portability): *printf functions on
20826         Cygwin now understand all POSIX size specifiers.
20827
20828 2006-11-14  Bruno Haible  <bruno@clisp.org>
20829
20830         * modules/c-ctype (License): Change to LGPL.
20831
20832 2006-11-12  Bruno Haible  <bruno@clisp.org>
20833
20834         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20835         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
20836         for GNOME libraries, for which the include files are installed in
20837         subdirectories of $prefix/include.
20838
20839 2006-11-12  Bruno Haible  <bruno@clisp.org>
20840
20841         * m4/lib-link.m4: Require at least autoconf-2.54.
20842         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
20843         name to underscores for the --with option.
20844
20845 2006-11-13  Bruno Haible  <bruno@clisp.org>
20846
20847         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
20848         the tests directory.
20849         Reported by Ralf Wildenhues.
20850
20851 2006-11-13  Bruno Haible  <bruno@clisp.org>
20852
20853         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
20854         (func_emit_initmacro_end): Undo the override here.
20855         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
20856         Works around the famous automake error in coreutils.
20857
20858 2006-11-13  Eric Blake  <ebb9@byu.net>
20859
20860         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
20861         element, not its node.
20862
20863 2006-11-12  Bruno Haible  <bruno@clisp.org>
20864
20865         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
20866         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
20867
20868 2006-11-12  Bruno Haible  <bruno@clisp.org>
20869
20870         * gnulib-tool: New option --local-symlink.
20871         (func_usage): Document it.
20872         (lsymbolic): New variable.
20873         (func_import, func_create_testdir): If --symlink was not specified,
20874         test whether --local-symlink was specified and the file comes from
20875         the local_gnulib_dir.
20876
20877 2006-11-12  Bruno Haible  <bruno@clisp.org>
20878
20879         * gnulib-tool (func_ln): New function.
20880         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
20881
20882 2006-11-12  Bruno Haible  <bruno@clisp.org>
20883
20884         Finish support for source files in subdirectories.
20885         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
20886         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
20887         AUTOMAKE_OPTIONS.
20888         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
20889
20890 2006-11-12  Bruno Haible  <bruno@clisp.org>
20891
20892         * gnulib-tool (func_get_automake_snippet): Synthesize also an
20893         EXTRA_lib_SOURCES augmentation.
20894         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
20895
20896 2006-11-12  Jim Meyering  <jim@meyering.net>
20897
20898         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
20899         file descriptors.  This also averts a failure on systems with
20900         native openat support when a traversed directory lacks "x" access.
20901         * lib/fts_.h: Include "i-ring.h"
20902         (struct FTS) [fts_fd_ring]: New member.
20903         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
20904         (FCHDIR): Add parentheses.
20905         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
20906         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
20907         When descending, rather than simply closing the previous
20908         fts_cwd_fd value, push that file descriptor onto the ring.
20909         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
20910         (fts_open): Initialize the new fd_ring member.
20911         (fts_close): Clear the ring.
20912         (fts_safe_changedir): When possible, use our new fd_ring to skip
20913         the diropen and fstat and dev/ino comparison that would normally
20914         accompany a virtual `chdir ("..")'.
20915
20916         * modules/fts (Depends-on): Add i-ring.
20917         * modules/i-ring: New module.
20918         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
20919         * m4/i-ring.m4: New file.
20920
20921 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20922
20923         * gnulib-tool (func_create_testdir): Fix replacement of
20924         `build-aux' in configure.ac.  Run autotools in gltests
20925         subdirectory.
20926         (func_create_testdir, func_create_megatestdir, test): There is
20927         no need for '--force' in most autotool invocations in a new
20928         tree.  Actually fail the whole test if any of the tools, or the
20929         configure or make stages fail.
20930
20931         Sync from Automake.
20932         * build-aux/gnupload: Revert last change.  Add pointer to upload
20933         instructions of the GNU Maintenance Instructions.
20934         Suggestion by Karl Berry.
20935
20936 2006-11-10  Jim Meyering  <jim@meyering.net>
20937
20938         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
20939
20940 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20941
20942         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
20943         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
20944         (bind_textdomain_codeset) [! ENABLE_NLS]:
20945         Evaluate all the arguments.  That way, callers get compatible behavior
20946         if the arguments have side effects.  Also, it avoids some GCC
20947         diagnostics in some cases; Joel E. Denny reported problems when Bison
20948         was configured with --enable-gcc-warnigs.
20949
20950 2006-11-10  Jim Meyering  <jim@meyering.net>
20951
20952         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
20953         relevant options in CFLAGS (like -O, -fno-inline) are taken into
20954         account.
20955
20956 2006-11-10  Jim Meyering  <jim@meyering.net>
20957
20958         * modules/inline: New file/module.
20959         * modules/xalloc (Files): Remove m4/inline.m4.
20960         (Depends-on): Add inline, instead.
20961         * modules/oset: Likewise.
20962         * modules/list: Likewise.
20963
20964 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20965
20966         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
20967         Problem reported by Matthew Woehlke.
20968
20969 2006-11-09  Bruno Haible  <bruno@clisp.org>
20970
20971         * lib/tempname.c (gen_tempname): Remove variant that invokes
20972         __gen_tempname.
20973         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
20974         __gen_tempname.
20975
20976 2006-11-08  Bruno Haible  <bruno@clisp.org>
20977
20978         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
20979         to 'yes' instead of 'cross-compiling'.
20980
20981 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20982
20983         * lib/quotearg.h (quotearg_free): New decl.
20984         * lib/quotearg.c (quotearg_free): New function.
20985         (slot0, nslots, slotvec0, slotvec):
20986         Now file-scope so that quotearg_free can get at them.
20987
20988 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20989
20990         Sync from Automake.
20991         * build-aux/gnupload: Add missing 'gnu' to example URL.
20992         Report by Karl Berry.
20993
20994 2006-11-08  Bruno Haible  <bruno@clisp.org>
20995
20996         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
20997         Suggested by Paul Eggert.
20998
20999 2006-11-08  Jim Meyering  <jim@meyering.net>
21000
21001         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
21002         It's already included if !_LIBC.
21003         (fts_safe_changedir): Add a comment.
21004
21005 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21006
21007         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
21008         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
21009         Matthew Woehlke.
21010
21011         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
21012         definitions up, to avoid colliding with change below.
21013         (static_inline) [HAVE_INLINE]: New macro.
21014         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
21015         Provide extern decls when !HAVE_INLINE.  Do not define unless
21016         static_inline is defined, either by us or by xmalloc.c.  Use
21017         static_inline rather than static inline.
21018         (XCALLOC): Optimize sizeof(T) = 1 case.
21019         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
21020
21021 2006-11-07  Bruno Haible  <bruno@clisp.org>
21022
21023         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
21024         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
21025         AC_C_INLINE.
21026         * modules/xalloc (Files): Add m4/inline.m4.
21027
21028 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21029
21030         * README: Fix typo.
21031         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
21032         (Miscellanous Notes): ...from this.
21033
21034 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21035
21036         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21037         Mention that offsetof should be used instead of sizeof.
21038         From Bruno Haible.
21039
21040 2006-11-07  Bruno Haible  <bruno@clisp.org>
21041
21042         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
21043
21044 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21045
21046         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21047         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
21048         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21049         (gl_tree_add_before, gl_tree_add_after):
21050         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
21051         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
21052         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
21053         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
21054         (gl_linked_add_after, gl_linked_add_at): Likewise.
21055         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
21056         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21057         (gl_tree_add_before, gl_tree_add_after): Likewise.
21058         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
21059         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
21060         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21061
21062 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21063
21064         * lib/gl_oset.h: Use C comment style, not C++ comment style.
21065
21066 2006-11-06  Bruno Haible  <bruno@clisp.org>
21067
21068         * m4/inline.m4: New file.
21069         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
21070         * modules/list (Files): Add m4/inline.m4.
21071         * modules/oset (Files): Likewise.
21072
21073 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21074
21075         * lib/idcache.c: Include <stddef.h>, for offsetof.
21076         (struct userid.name): Change from char * to a flexible array member.
21077         All uses changed.
21078         * modules/idcache (Depends-on): Add flexmember.
21079
21080         * MODULES.html.sh (Core language properties): New module flexmember.
21081         * modules/flexmember, m4/flexmember.m4: New files.
21082
21083         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
21084         inline functions that are identical with the old xnmalloc_inline,
21085         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
21086         that we can avoid some unnecessary integer multiplications and
21087         divisions in the common case where the element size is known at
21088         compile time.
21089         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
21090         needed.
21091         (xnboundedmalloc): Remove.
21092         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
21093         arguments, for consistency with rest of this header.
21094         (xcharalloc): Rewrite using XNMALLOC.
21095         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
21096         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
21097         versions have been moved to lib/xalloc.h and renamed to be the
21098         non-*_inline versions.
21099         (xmalloc, xrealloc): Implement without reference to the xnmalloc
21100         and xnrealloc functions, since those functions are now inline and
21101         now call us.
21102         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
21103         renaming described above.
21104         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
21105         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
21106         captures the dependency in AC_C_INLINE.
21107
21108         New module canonicalize-lgpl, proposed by Charles Wilson in
21109         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
21110         with a few small changes afterwards.
21111         * MODULES.html.sh (File system functions): New module
21112         canonicalize-lgpl.
21113         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
21114         and canonicalize_file_name.
21115         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
21116         * modules/canonicalize-lgpl: New files.
21117
21118 2006-11-05  Bruno Haible  <bruno@clisp.org>
21119
21120         * gnulib-tool (func_import, func_create_testdir): Create directories
21121         also for files in subdirectories of lib/.
21122
21123 2006-11-05  Bruno Haible  <bruno@clisp.org>
21124
21125         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
21126         ANSI C compliant.
21127
21128 2006-11-03  Bruno Haible  <bruno@clisp.org>
21129
21130         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21131         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
21132         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
21133         (xnboundedmalloc): New inline function.
21134         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
21135         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
21136         xmalloc.
21137         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
21138         xmalloc.
21139         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
21140         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
21141         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
21142         xmalloc.
21143         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21144         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
21145         xmalloc.
21146         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
21147         gl_tree_add_after): Use XMALLOC instead of xmalloc.
21148         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
21149         xmalloc.
21150         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21151         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
21152         gl_tree_add_after): Use XMALLOC instead of xmalloc.
21153         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
21154         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
21155         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
21156         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
21157
21158 2006-11-03  Bruno Haible  <bruno@clisp.org>
21159
21160         * lib/c-ctype.h [C++]: Define functions without name mangling.
21161         * lib/fwriteerror.h [C++]: Likewise.
21162         * lib/gcd.h [C++]: Likewise.
21163         * lib/linebreak.h [C++]: Likewise.
21164
21165 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
21166
21167         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
21168         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
21169         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
21170         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
21171         Check for functions and headers just once.
21172         Check for declaration of canonicalize_file_name.
21173         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
21174
21175 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21176
21177         * gnulib-tool (func_import): Fix typo in actioncmd.
21178
21179 2006-11-02  Bruno Haible  <bruno@clisp.org>
21180
21181         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
21182         newline sequence in the Makefile.am snippet as a space, like "make"
21183         does.
21184         Reported by Roger Persson <perrog@gmail.com>.
21185
21186 2006-11-01  Bruno Haible  <bruno@clisp.org>
21187
21188         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
21189         already declared in <string.h>.
21190         * lib/strcase.h (strncasecmp): Don't declare it if yes.
21191
21192 2006-11-01  Bruno Haible  <bruno@clisp.org>
21193
21194         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
21195         * lib/strcase.h: Include <string.h>.
21196         (strcasecmp): Define to rpl_strcasecmp here.
21197
21198 2006-11-01  Bruno Haible  <bruno@clisp.org>
21199
21200         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
21201
21202 2006-11-01  Eric Blake  <ebb9@byu.net>
21203
21204         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
21205
21206         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
21207
21208 2006-10-29  Bruno Haible  <bruno@clisp.org>
21209
21210         Make it compile in C++ mode.
21211         * lib/full-write.c (full_rw): Add a cast.
21212
21213 2006-11-01  Bruno Haible  <bruno@clisp.org>
21214
21215         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
21216         be POSIX compliant.
21217         Reported by Roger Persson <perrog@gmail.com>.
21218
21219 2006-11-01  Eric Blake  <ebb9@byu.net>
21220
21221         * lib/getopt_.h: Fix comments.
21222
21223 2006-10-31  Eric Blake  <ebb9@byu.net>
21224
21225         * modules/tmpdir (Depends-on): Add sys_stat.
21226         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
21227         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
21228         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
21229         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
21230         tempname.
21231
21232 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
21233
21234         Avoid some C++ diagnostics reported by Bruno Haible.
21235         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
21236         xmalloc.
21237         (quotearg_alloc): Use xcharalloc rather than xmalloc.
21238         (struct slotvec): Move to top level.
21239         (quotearg_n_options): Rewrite to avoid xmalloc.
21240         * lib/xalloc.h (xcharalloc): New function.
21241         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
21242         [defined __cplusplus]: Add function template that provides result
21243         type propagation.  This part of the change is from Bruno Haible.
21244
21245 2006-10-29  Bruno Haible  <bruno@clisp.org>
21246
21247         Make it compile in C++ mode.
21248         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
21249         * lib/strnlen1.c (strnlen1): Cast memchr result.
21250         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
21251         * lib/clean-temp.c (string_equals, string_hash): Add casts.
21252         (create_temp_dir): Rename local variable 'template'.
21253         (compile_csharp_using_sscli): Add cast.
21254         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
21255         * lib/findprog.c (find_in_path): Likewise.
21256         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
21257         * lib/wait-process.c (register_slave_subprocess): Likewise.
21258
21259 2006-10-22  Bruno Haible  <bruno@clisp.org>
21260
21261         * modules/tsearch: New file.
21262         * lib/tsearch.h: New file.
21263         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
21264         * m4/tsearch.m4: New file.
21265         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
21266
21267 2006-10-29  Eric Blake  <ebb9@byu.net>
21268
21269         * lib/arcfour.c: Assume config.h.
21270         * lib/arctwo.c: Likewise.
21271         * lib/base64.c: Likewise.
21272         * lib/check-version.c: Likewise.
21273         * lib/crc.c: Likewise.
21274         * lib/des.c: Likewise.
21275         * lib/gc-gnulib.c: Likewise.
21276         * lib/gc-libgcrypt.c: Likewise.
21277         * lib/gc-pbkdf2-sha1.c: Likewise.
21278         * lib/getaddrinfo.c: Likewise.
21279         * lib/getdelim.c: Likewise.
21280         * lib/getline.c: Likewise.
21281         * lib/hmac-md5.c: Likewise.
21282         * lib/hmac-sha1.c: Likewise.
21283         * lib/iconvme.c: Likewise.
21284         * lib/md2.c: Likewise.
21285         * lib/md4.c: Likewise.
21286         * lib/memxor.c: Likewise.
21287         * lib/read-file.c: Likewise.
21288         * lib/readline.c: Likewise.
21289         * lib/rijndael-alg-fst.c: Likewise.
21290         * lib/rijndael-api-fst.c: Likewise.
21291         * lib/xgetdomainname.c: Likewise.
21292
21293 2006-10-28  Eric Blake  <ebb9@byu.net>
21294
21295         * lib/xstrndup.c: Assume config.h.
21296
21297 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
21298
21299         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
21300         stat-macros.h is now for our own macros, whereas stat_h is for
21301         macros in the <sys/stat.h> name space.
21302         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
21303         (STAT_MACROS_H): Remove.
21304         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
21305         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
21306         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
21307         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
21308         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
21309         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
21310         Move these macros to ...
21311         * lib/stat_.h: here.  Don't include stat-macros.h.
21312         * lib/canonicalize.c: Don't include stat-macros.h.
21313         * lib/chown.c: Likewise.
21314         * lib/euidaccess.c: Likewise.
21315         * lib/file-type.c: Likewise.
21316         * lib/filemode.c: Likewise.
21317         * lib/glob.c: Likewise.
21318         * lib/isapipe.c: Likewise.
21319         * lib/lchown.c: Likewise.
21320         * lib/lstat.c: Likewise.
21321         * lib/mkdir-p.c: Likewise.
21322         * lib/rmdir.c: Likewise.
21323         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
21324         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
21325         unless mkdir isn't declared, to speed up 'configure'.
21326         Always create sys/stat.h, since it's unlikely any real sys/stat.h
21327         would define all the S_* symbols.
21328         * modules/canonicalize (Depends-on):
21329         Depend on sys_stat, not stat-macros.
21330         * modules/chown: Likewise.
21331         * modules/euidaccess: Likewise.
21332         * modules/filemode: Likewise.
21333         * modules/file-type: Likewise.
21334         * modules/glob: Likewise.
21335         * modules/isapipe: Likewise.
21336         * modules/lchown: Likewise.
21337         * modules/lstat: Likewise.
21338         * modules/mkancesdirs: Likewise.
21339         * modules/rmdir: Likewise.
21340         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
21341         * modules/modechange: Likewise.
21342         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
21343         (configure.ac): Remove gl_STAT_MACROS.
21344         * modules/sys_stat (Depends-on): Remove stat-macros.
21345
21346 2006-10-27  Bruno Haible  <bruno@clisp.org>
21347
21348         * m4/signed.m4: Remove file.
21349         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
21350         invocation.
21351         * modules/vasnprintf (Files): Remove m4/signed.m4.
21352
21353 2006-10-27  Bruno Haible  <bruno@clisp.org>
21354
21355         Update to GNU gettext 0.16.
21356         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
21357         m4/inttypes-h.m4, m4/signed.m4.
21358         * m4/gettext.m4: Update to GNU gettext 0.16.
21359         * m4/intl.m4: New file, from GNU gettext.
21360         * m4/intldir.m4: New file, from GNU gettext.
21361         * config/srclist.txt: Update
21362
21363 2006-10-27  Eric Blake  <ebb9@byu.net>
21364
21365         * MODULES.html.sh: Document tempname.
21366         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
21367         dependencies.
21368         (Files): Move lib/tempname.c...
21369         * modules/tempname: ...to this new module.
21370         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
21371         (gl_PREREQ_TEMPNAME): Move...
21372         * m4/tempname.m4: ...to this new file.
21373         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
21374         * modules/sys_stat (Depends-on): Add stat-macros.
21375         * lib/stat_.h (includes): Pick up stat macros.
21376         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
21377         if stat macros are broken.
21378         * lib/tempname.c (includes): No need to include "stat-macros.h".
21379         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
21380         (direxists, __path_search) [!_LIBC]: Don't compile these in
21381         gnulib; the tmpdir module covers that.
21382         * lib/tempname.h: New file.
21383
21384 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21385
21386         * COPYING: Explain how gnulib-tool converts licence headers.
21387         Almost all wording by Eric Blake.
21388
21389 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
21390
21391         * lib/mbchar.h (is_basic_table): Make read-only.
21392         * lib/mbchar.c (is_basic_table): Likewise.
21393         Reported by John Darrington.
21394
21395 2006-10-25  Bruno Haible  <bruno@clisp.org>
21396
21397         * lib/progname.h (set_program_name): Undefine before defining.
21398
21399 2006-10-25  Bruno Haible  <bruno@clisp.org>
21400
21401         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
21402         false for non-gcc C++ compilers.
21403         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21404
21405 2006-10-24  Bruno Haible  <bruno@clisp.org>
21406
21407         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
21408         iconv implementations like Irix iconv.
21409
21410 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21411
21412         * modules/vararrays: New file.
21413         * m4/vararrays.m4: New file, taken from diffutils.
21414         * MODULES.html.sh: New module vararrays.
21415
21416 2006-10-24  Karl Berry  <karl@gnu.org>
21417
21418         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
21419         Don't call GNU Unix.
21420
21421 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21422
21423         * users.txt: Add Libtool.
21424
21425         Sync from Libtool:
21426
21427         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21428
21429         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
21430         to gnulib's policy of including config.h unconditionally.
21431
21432 2006-10-24  Bruno Haible  <bruno@clisp.org>
21433
21434         * modules/wcwidth (Files): Add m4/wint_t.m4.
21435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
21436         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
21437
21438 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21439
21440         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
21441         to pacify GCC with some -W flags enabled.  Problem reported by
21442         Bruno Haible.
21443
21444 2006-10-24  Jim Meyering  <jim@meyering.net>
21445
21446         * MODULES.html.sh: Remove uinttostr.  It's not a module.
21447         Reported by Karl Berry.
21448
21449 2006-10-23  Bruno Haible  <bruno@clisp.org>
21450
21451         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
21452
21453 2006-10-24  Bruno Haible  <bruno@clisp.org>
21454
21455         * lib/gl_list.h: Use C comment style, not C++ comment style.
21456
21457 2006-10-23  Eric Blake  <ebb9@byu.net>
21458
21459         * lib/getaddrinfo.c (includes): Add missing include.
21460
21461 2006-10-23  Bruno Haible  <bruno@clisp.org>
21462             Paul Eggert  <eggert@cs.ucla.edu>
21463
21464         Ability to rename obstack_free.
21465         * lib/obstack.h (__obstack_free): New macro. Declare instead of
21466         obstack_free.
21467         (obstack_free): Invoke the __obstack_free macro.
21468         * lib/obstack.c (obstack_free): Use __obstack_free macro.
21469
21470 2006-10-23  Bruno Haible  <bruno@clisp.org>
21471             Paul Eggert  <eggert@cs.ucla.edu>
21472
21473         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
21474         __argc, __argv from the declaration. (They are defined as macros on
21475         mingw.)
21476
21477 2006-10-22  Bruno Haible  <bruno@clisp.org>
21478
21479         * doc/gnulib-intro.texi: New file.
21480         * doc/gnulib.texi: Include it.
21481
21482 2006-10-21  Bruno Haible  <bruno@clisp.org>
21483
21484         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
21485         "Introduction", "Miscellanous Notes", "Particular Modules".
21486
21487 2006-10-21  Bruno Haible  <bruno@clisp.org>
21488
21489         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21490         Change mostlyclean-local rule to avoid sh syntax error from bash
21491         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
21492
21493 2006-10-23  Jim Meyering  <jim@meyering.net>
21494
21495         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
21496         in place of snprintf.
21497
21498         * modules/inttostr (Files): Add lib/uinttostr.c.
21499         * lib/uinttostr.c (inttostr): New file/function.
21500         * lib/inttostr.h (uinttostr): Declare.
21501         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
21502         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21503         Add uinttostr.
21504         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
21505
21506 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21507
21508         * lib/canonicalize.c (ELOOP): Define if not already defined.
21509         Problem reported by Bruno Haible in
21510         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
21511
21512 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21513
21514         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
21515         Problem reported by Perry Smith and Ville Laurikari.
21516
21517         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
21518         uses.
21519
21520 2006-10-19  Bruno Haible  <bruno@clisp.org>
21521
21522         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
21523         for mingw.
21524
21525 2006-10-19  Bruno Haible  <bruno@clisp.org>
21526
21527         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
21528         Needed for mingw.
21529
21530 2006-10-19  Bruno Haible  <bruno@clisp.org>
21531
21532         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
21533
21534 2006-10-19  Bruno Haible  <bruno@clisp.org>
21535
21536         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
21537         it.
21538
21539 2006-10-19  Bruno Haible  <bruno@clisp.org>
21540
21541         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
21542         invocation.
21543
21544 2006-10-19  Bruno Haible  <bruno@clisp.org>
21545
21546         * gnulib-tool (func_create_testdir): Don't include ftruncate and
21547         mountlist by default.
21548
21549 2006-10-16  Bruno Haible  <bruno@clisp.org>
21550
21551         * lib/c-strstr.c: Include c-strstr.h.
21552
21553 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21554
21555         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
21556         in a slash.
21557
21558 2006-10-18  Bruno Haible  <bruno@clisp.org>
21559
21560         * lib/lock.h [C++]: Wrap definitions in extern "C".
21561
21562 2006-10-18  Bruno Haible  <bruno@clisp.org>
21563
21564         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
21565         gl_LIBOBJS list.
21566
21567 2006-10-18  Bruno Haible  <bruno@clisp.org>
21568
21569         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
21570
21571 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21572
21573         * lib/xstrtol.h: Include gettext.h.
21574         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
21575         Problem reported by Eric Blake.
21576         * modules/xstrtol (Depends-on): Add gettext-h.
21577
21578 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
21579
21580         * lib/strftime.c (advance): New macro.
21581         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
21582         incomplete type, so you can't add 0 to it.  Problem and patch
21583         reported by Eelco Dolstra for dietlibc.
21584
21585 2006-10-18  Jim Meyering  <jim@meyering.net>
21586
21587         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
21588         type for a local, and rename it: s/up/user_proc/.
21589
21590 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
21591
21592         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
21593         READ_UTMP_USER_PROCESS.
21594         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
21595
21596 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
21597
21598         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
21599         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
21600
21601 2006-10-17  Eric Blake  <ebb9@byu.net>
21602
21603         * lib/sigprocmask.c (sigprocmask): Fix typo.
21604
21605         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
21606
21607         * modules/clean-temp (Makefile.am): Don't add to make output...
21608         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
21609         config.h.
21610
21611 2006-10-17  Bruno Haible  <bruno@clisp.org>
21612
21613         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
21614         differently if DEFAULT_TEXT_DOMAIN is set.
21615
21616 2006-10-16  Bruno Haible  <bruno@clisp.org>
21617
21618         * lib/clean-temp.c: Include fwriteerror.h.
21619
21620 2006-10-16  Bruno Haible  <bruno@clisp.org>
21621
21622         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
21623
21624 2006-10-16  Bruno Haible  <bruno@clisp.org>
21625
21626         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
21627         * lib/sigprocmask.h: Include <sys/types.h>.
21628         (sigset_t): Use the system's definition if present.
21629
21630 2006-10-17  Eric Blake  <ebb9@byu.net>
21631
21632         * lib/xvasprintf.c (includes): Assume config.h.
21633         * lib/xasprintf.c (includes): Likewise.
21634
21635 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21636
21637         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
21638         at least as wide as intmax_t.
21639
21640 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
21641
21642         (Imported from Automake.)
21643         * build-aux/gnupload: Update to version 1.1 of directive file.
21644
21645 2006-10-16  Eric Blake  <ebb9@byu.net>
21646
21647         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
21648         match Automake 1.10a.
21649
21650 2006-10-14  Bruno Haible  <bruno@clisp.org>
21651
21652         * modules/sigprocmask: New file.
21653         * lib/sigprocmask.h: New file.
21654         * lib/sigprocmask.c: New file.
21655         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
21656         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
21657         request sigprocmask.o.
21658         (gl_PREREQ_SIGPROCMASK): New macro.
21659         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
21660         (Depends-on): Add sigprocmask.
21661         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
21662         gt_SIGNALBLOCKING. Test for 'raise' only once.
21663         * lib/fatal-signal.c: Include sigprocmask.h.
21664         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
21665         unblock_fatal_signals): Define always.
21666         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21667         sigprocmask.
21668
21669 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21670
21671         Sync from Automake.
21672         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
21673         which incorrectly sets the mode of an existing destination
21674         directory.  In some cases the unpatched install-sh could do the
21675         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
21676         system.  We hope this is rare in practice, but it's clearly worth
21677         fixing.  Problem reported by Alex Unleashed in
21678         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
21679         Also, don't bother to check for -m bugs unless we're using -m;
21680         suggested by Stepan Kasal.
21681
21682 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21683
21684         Sync from Automake.
21685         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
21686         `-c' flag, so they appear at the same position as in %FASTDEP%
21687         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
21688         which ignores unknown options only after the first non-option.
21689         Bug report against M4 by Nelson H. F. Beebe.
21690
21691 2006-10-13  Jim Meyering  <jim@meyering.net>
21692
21693         Fix a bug in yesterday's change.
21694         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
21695         p->fts_statp->st_dev would be used uninitialized.
21696         Ensures that we always call fts_stat on the very first entry.
21697         Miklos Szeredi reported that find -xdev stopped working.
21698
21699 2006-10-12  Bruno Haible  <bruno@clisp.org>
21700
21701         * gnulib-tool (func_get_automake_snippet): Append an automatically
21702         computed EXTRA_DIST augmentation.
21703         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
21704         * modules/alloca-opt (Makefile.am): Likewise.
21705         * modules/allocsa (Makefile.am): Likewise.
21706         * modules/arcfour (Makefile.am): Likewise.
21707         * modules/arctwo (Makefile.am): Likewise.
21708         * modules/argmatch (Makefile.am): Likewise.
21709         * modules/argz (Makefile.am): Likewise.
21710         * modules/atexit (Makefile.am): Likewise.
21711         * modules/backupfile (Makefile.am): Likewise.
21712         * modules/byteswap (Makefile.am): Likewise.
21713         * modules/c-strtod (Makefile.am): Likewise.
21714         * modules/c-strtold (Makefile.am): Likewise.
21715         * modules/calloc (Makefile.am): Likewise.
21716         * modules/canon-host (Makefile.am): Likewise.
21717         * modules/canonicalize (Makefile.am): Likewise.
21718         * modules/chdir-long (Makefile.am): Likewise.
21719         * modules/chdir-safer (Makefile.am): Likewise.
21720         * modules/check-version (Makefile.am): Likewise.
21721         * modules/chown (Makefile.am): Likewise.
21722         * modules/cloexec (Makefile.am): Likewise.
21723         * modules/close-stream (Makefile.am): Likewise.
21724         * modules/closeout (Makefile.am): Likewise.
21725         * modules/crc (Makefile.am): Likewise.
21726         * modules/csharpexec (Makefile.am): Likewise.
21727         * modules/cycle-check (Makefile.am): Likewise.
21728         * modules/des (Makefile.am): Likewise.
21729         * modules/dev-ino (Makefile.am): Likewise.
21730         * modules/dirfd (Makefile.am): Likewise.
21731         * modules/dirname (Makefile.am): Likewise.
21732         * modules/dup2 (Makefile.am): Likewise.
21733         * modules/eealloc (Makefile.am): Likewise.
21734         * modules/error (Makefile.am): Likewise.
21735         * modules/euidaccess (Makefile.am): Likewise.
21736         * modules/exclude (Makefile.am): Likewise.
21737         * modules/exitfail (Makefile.am): Likewise.
21738         * modules/fcntl-safer (Makefile.am): Likewise.
21739         * modules/fcntl (Makefile.am): Likewise.
21740         * modules/file-type (Makefile.am): Likewise.
21741         * modules/fileblocks (Makefile.am): Likewise.
21742         * modules/filemode (Makefile.am): Likewise.
21743         * modules/filenamecat (Makefile.am): Likewise.
21744         * modules/fnmatch (Makefile.am): Likewise.
21745         * modules/fopen-safer (Makefile.am): Likewise.
21746         * modules/fpending (Makefile.am): Likewise.
21747         * modules/fprintftime (Makefile.am): Likewise.
21748         * modules/free (Makefile.am): Likewise.
21749         * modules/fsusage (Makefile.am): Likewise.
21750         * modules/ftruncate (Makefile.am): Likewise.
21751         * modules/fts (Makefile.am): Likewise.
21752         * modules/gc-arcfour (Makefile.am): Likewise.
21753         * modules/gc-des (Makefile.am): Likewise.
21754         * modules/gc-hmac-md5 (Makefile.am): Likewise.
21755         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
21756         * modules/gc-md4 (Makefile.am): Likewise.
21757         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21758         * modules/gc-sha1 (Makefile.am): Likewise.
21759         * modules/gc (Makefile.am): Likewise.
21760         * modules/getaddrinfo (Makefile.am): Likewise.
21761         * modules/getcwd (Makefile.am): Likewise.
21762         * modules/getdelim (Makefile.am): Likewise.
21763         * modules/getdomainname (Makefile.am): Likewise.
21764         * modules/getgroups (Makefile.am): Likewise.
21765         * modules/gethostname (Makefile.am): Likewise.
21766         * modules/gethrxtime (Makefile.am): Likewise.
21767         * modules/getline (Makefile.am): Likewise.
21768         * modules/getloadavg (Makefile.am): Likewise.
21769         * modules/getlogin_r (Makefile.am): Likewise.
21770         * modules/getndelim2 (Makefile.am): Likewise.
21771         * modules/getopt (Makefile.am): Likewise.
21772         * modules/getpagesize (Makefile.am): Likewise.
21773         * modules/getpass-gnu (Makefile.am): Likewise.
21774         * modules/getpass (Makefile.am): Likewise.
21775         * modules/getsubopt (Makefile.am): Likewise.
21776         * modules/gettime (Makefile.am): Likewise.
21777         * modules/gettimeofday (Makefile.am): Likewise.
21778         * modules/getugroups (Makefile.am): Likewise.
21779         * modules/getusershell (Makefile.am): Likewise.
21780         * modules/glob (Makefile.am): Likewise.
21781         * modules/group-member (Makefile.am): Likewise.
21782         * modules/hard-locale (Makefile.am): Likewise.
21783         * modules/hash (Makefile.am): Likewise.
21784         * modules/hmac-md5 (Makefile.am): Likewise.
21785         * modules/hmac-sha1 (Makefile.am): Likewise.
21786         * modules/human (Makefile.am): Likewise.
21787         * modules/idcache (Makefile.am): Likewise.
21788         * modules/imaxabs (Makefile.am): Likewise.
21789         * modules/imaxdiv (Makefile.am): Likewise.
21790         * modules/inet_ntop (Makefile.am): Likewise.
21791         * modules/inet_pton (Makefile.am): Likewise.
21792         * modules/intprops (Makefile.am): Likewise.
21793         * modules/inttostr (Makefile.am): Likewise.
21794         * modules/inttypes (Makefile.am): Likewise.
21795         * modules/isapipe (Makefile.am): Likewise.
21796         * modules/javaversion (Makefile.am): Likewise.
21797         * modules/lchmod (Makefile.am): Likewise.
21798         * modules/lchown (Makefile.am): Likewise.
21799         * modules/localcharset (Makefile.am): Likewise.
21800         * modules/long-options (Makefile.am): Likewise.
21801         * modules/lstat (Makefile.am): Likewise.
21802         * modules/malloc (Makefile.am): Likewise.
21803         * modules/mathl (Makefile.am): Likewise.
21804         * modules/mbchar (Makefile.am): Likewise.
21805         * modules/md2 (Makefile.am): Likewise.
21806         * modules/md4 (Makefile.am): Likewise.
21807         * modules/md5 (Makefile.am): Likewise.
21808         * modules/memcasecmp (Makefile.am): Likewise.
21809         * modules/memchr (Makefile.am): Likewise.
21810         * modules/memcmp (Makefile.am): Likewise.
21811         * modules/memcoll (Makefile.am): Likewise.
21812         * modules/memcpy (Makefile.am): Likewise.
21813         * modules/memmem (Makefile.am): Likewise.
21814         * modules/memmove (Makefile.am): Likewise.
21815         * modules/mempcpy (Makefile.am): Likewise.
21816         * modules/memrchr (Makefile.am): Likewise.
21817         * modules/memset (Makefile.am): Likewise.
21818         * modules/memxor (Makefile.am): Likewise.
21819         * modules/mkancesdirs (Makefile.am): Likewise.
21820         * modules/mkdir-p (Makefile.am): Likewise.
21821         * modules/mkdir (Makefile.am): Likewise.
21822         * modules/mkdtemp (Makefile.am): Likewise.
21823         * modules/mkstemp (Makefile.am): Likewise.
21824         * modules/mktime (Makefile.am): Likewise.
21825         * modules/modechange (Makefile.am): Likewise.
21826         * modules/mountlist (Makefile.am): Likewise.
21827         * modules/nanosleep (Makefile.am): Likewise.
21828         * modules/obstack (Makefile.am): Likewise.
21829         * modules/openat (Makefile.am): Likewise.
21830         * modules/pagealign_alloc (Makefile.am): Likewise.
21831         * modules/pathmax (Makefile.am): Likewise.
21832         * modules/physmem (Makefile.am): Likewise.
21833         * modules/poll (Makefile.am): Likewise.
21834         * modules/posixtm (Makefile.am): Likewise.
21835         * modules/posixver (Makefile.am): Likewise.
21836         * modules/putenv (Makefile.am): Likewise.
21837         * modules/quote (Makefile.am): Likewise.
21838         * modules/quotearg (Makefile.am): Likewise.
21839         * modules/raise (Makefile.am): Likewise.
21840         * modules/read-file (Makefile.am): Likewise.
21841         * modules/readline (Makefile.am): Likewise.
21842         * modules/readlink (Makefile.am): Likewise.
21843         * modules/readtokens (Makefile.am): Likewise.
21844         * modules/readutmp (Makefile.am): Likewise.
21845         * modules/realloc (Makefile.am): Likewise.
21846         * modules/regex (Makefile.am): Likewise.
21847         * modules/rename-dest-slash (Makefile.am): Likewise.
21848         * modules/rename (Makefile.am): Likewise.
21849         * modules/rijndael (Makefile.am): Likewise.
21850         * modules/rmdir (Makefile.am): Likewise.
21851         * modules/rpmatch (Makefile.am): Likewise.
21852         * modules/safe-read (Makefile.am): Likewise.
21853         * modules/safe-write (Makefile.am): Likewise.
21854         * modules/same-inode (Makefile.am): Likewise.
21855         * modules/same (Makefile.am): Likewise.
21856         * modules/save-cwd (Makefile.am): Likewise.
21857         * modules/savedir (Makefile.am): Likewise.
21858         * modules/setenv (Makefile.am): Likewise.
21859         * modules/settime (Makefile.am): Likewise.
21860         * modules/sha1 (Makefile.am): Likewise.
21861         * modules/sig2str (Makefile.am): Likewise.
21862         * modules/snprintf (Makefile.am): Likewise.
21863         * modules/stat-macros (Makefile.am): Likewise.
21864         * modules/stat-time (Makefile.am): Likewise.
21865         * modules/stdbool (Makefile.am): Likewise.
21866         * modules/stdint (Makefile.am): Likewise.
21867         * modules/stdlib-safer (Makefile.am): Likewise.
21868         * modules/stpcpy (Makefile.am): Likewise.
21869         * modules/stpncpy (Makefile.am): Likewise.
21870         * modules/strcase (Makefile.am): Likewise.
21871         * modules/strcasestr (Makefile.am): Likewise.
21872         * modules/strchrnul (Makefile.am): Likewise.
21873         * modules/strcspn (Makefile.am): Likewise.
21874         * modules/strdup (Makefile.am): Likewise.
21875         * modules/strerror (Makefile.am): Likewise.
21876         * modules/strftime (Makefile.am): Likewise.
21877         * modules/strndup (Makefile.am): Likewise.
21878         * modules/strnlen (Makefile.am): Likewise.
21879         * modules/strpbrk (Makefile.am): Likewise.
21880         * modules/strsep (Makefile.am): Likewise.
21881         * modules/strstr (Makefile.am): Likewise.
21882         * modules/strtod (Makefile.am): Likewise.
21883         * modules/strtoimax (Makefile.am): Likewise.
21884         * modules/strtok_r (Makefile.am): Likewise.
21885         * modules/strtol (Makefile.am): Likewise.
21886         * modules/strtoll (Makefile.am): Likewise.
21887         * modules/strtoul (Makefile.am): Likewise.
21888         * modules/strtoull (Makefile.am): Likewise.
21889         * modules/strtoumax (Makefile.am): Likewise.
21890         * modules/strverscmp (Makefile.am): Likewise.
21891         * modules/sys_socket (Makefile.am): Likewise.
21892         * modules/sys_stat (Makefile.am): Likewise.
21893         * modules/sysexits (Makefile.am): Likewise.
21894         * modules/time_r (Makefile.am): Likewise.
21895         * modules/timegm (Makefile.am): Likewise.
21896         * modules/timespec (Makefile.am): Likewise.
21897         * modules/tmpfile-safer (Makefile.am): Likewise.
21898         * modules/trim (Makefile.am): Likewise.
21899         * modules/unistd-safer (Makefile.am): Likewise.
21900         * modules/unlinkdir (Makefile.am): Likewise.
21901         * modules/unlocked-io (Makefile.am): Likewise.
21902         * modules/userspec (Makefile.am): Likewise.
21903         * modules/utime (Makefile.am): Likewise.
21904         * modules/utimecmp (Makefile.am): Likewise.
21905         * modules/utimens (Makefile.am): Likewise.
21906         * modules/vasnprintf (Makefile.am): Likewise.
21907         * modules/vasprintf (Makefile.am): Likewise.
21908         * modules/vsnprintf (Makefile.am): Likewise.
21909         * modules/xalloc (Makefile.am): Likewise.
21910         * modules/xgetcwd (Makefile.am): Likewise.
21911         * modules/xnanosleep (Makefile.am): Likewise.
21912         * modules/xreadlink (Makefile.am): Likewise.
21913         * modules/xstrtod (Makefile.am): Likewise.
21914         * modules/xstrtol (Makefile.am): Likewise.
21915         * modules/xstrtold (Makefile.am): Likewise.
21916         * modules/yesno (Makefile.am): Likewise.
21917         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
21918
21919 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21920
21921         * modules/error (Makefile.am): Distribute files through
21922         EXTRA_DIST, not lib_SOURCES.
21923
21924 2006-10-12  Eric Blake  <ebb9@byu.net>
21925
21926         * modules/error (Makefile.am): Distribute files in /lib.
21927         * modules/obstack (Makefile.am): Likewise.
21928
21929 2006-10-12  Bruno Haible  <bruno@clisp.org>
21930
21931         * modules/acl (Makefile.am): Distribute all files in lib/ through
21932         EXTRA_DIST.
21933         * modules/arcfour (Makefile.am): Likewise.
21934         * modules/arctwo (Makefile.am): Likewise.
21935         * modules/argmatch (Makefile.am): Likewise.
21936         * modules/argz (Makefile.am): Likewise.
21937         * modules/atexit (Makefile.am): Likewise.
21938         * modules/backupfile (Makefile.am): Likewise.
21939         * modules/c-strtod (Makefile.am): Likewise.
21940         * modules/c-strtold (Makefile.am): Likewise.
21941         * modules/calloc (Makefile.am): Likewise.
21942         * modules/canon-host (Makefile.am): Likewise.
21943         * modules/canonicalize (Makefile.am): Likewise.
21944         * modules/chdir-long (Makefile.am): Likewise.
21945         * modules/chdir-safer (Makefile.am): Likewise.
21946         * modules/check-version (Makefile.am): Likewise.
21947         * modules/chown (Makefile.am): Likewise.
21948         * modules/cloexec (Makefile.am): Likewise.
21949         * modules/close-stream (Makefile.am): Likewise.
21950         * modules/closeout (Makefile.am): Likewise.
21951         * modules/crc (Makefile.am): Likewise.
21952         * modules/cycle-check (Makefile.am): Likewise.
21953         * modules/des (Makefile.am): Likewise.
21954         * modules/dirfd (Makefile.am): Likewise.
21955         * modules/dirname (Makefile.am): Likewise.
21956         * modules/dup2 (Makefile.am): Likewise.
21957         * modules/euidaccess (Makefile.am): Likewise.
21958         * modules/exclude (Makefile.am): Likewise.
21959         * modules/exitfail (Makefile.am): Likewise.
21960         * modules/fcntl-safer (Makefile.am): Likewise.
21961         * modules/file-type (Makefile.am): Likewise.
21962         * modules/fileblocks (Makefile.am): Likewise.
21963         * modules/filemode (Makefile.am): Likewise.
21964         * modules/filenamecat (Makefile.am): Likewise.
21965         * modules/fnmatch (Makefile.am): Likewise.
21966         * modules/fopen-safer (Makefile.am): Likewise.
21967         * modules/fpending (Makefile.am): Likewise.
21968         * modules/fprintftime (Makefile.am): Likewise.
21969         * modules/free (Makefile.am): Likewise.
21970         * modules/fsusage (Makefile.am): Likewise.
21971         * modules/ftruncate (Makefile.am): Likewise.
21972         * modules/fts (Makefile.am): Likewise.
21973         * modules/gc (Makefile.am): Likewise.
21974         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21975         * modules/getaddrinfo (Makefile.am): Likewise.
21976         * modules/getcwd (Makefile.am): Likewise.
21977         * modules/getdelim (Makefile.am): Likewise.
21978         * modules/getdomainname (Makefile.am): Likewise.
21979         * modules/getgroups (Makefile.am): Likewise.
21980         * modules/gethostname (Makefile.am): Likewise.
21981         * modules/gethrxtime (Makefile.am): Likewise.
21982         * modules/getline (Makefile.am): Likewise.
21983         * modules/getloadavg (Makefile.am): Likewise.
21984         * modules/getlogin_r (Makefile.am): Likewise.
21985         * modules/getopt (Makefile.am): Likewise.
21986         * modules/getpass (Makefile.am): Likewise.
21987         * modules/getpass-gnu (Makefile.am): Likewise.
21988         * modules/getsubopt (Makefile.am): Likewise.
21989         * modules/gettime (Makefile.am): Likewise.
21990         * modules/gettimeofday (Makefile.am): Likewise.
21991         * modules/getugroups (Makefile.am): Likewise.
21992         * modules/getusershell (Makefile.am): Likewise.
21993         * modules/glob (Makefile.am): Likewise.
21994         * modules/group-member (Makefile.am): Likewise.
21995         * modules/hard-locale (Makefile.am): Likewise.
21996         * modules/hash (Makefile.am): Likewise.
21997         * modules/hmac-md5 (Makefile.am): Likewise.
21998         * modules/hmac-sha1 (Makefile.am): Likewise.
21999         * modules/human (Makefile.am): Likewise.
22000         * modules/idcache (Makefile.am): Likewise.
22001         * modules/imaxabs (Makefile.am): Likewise.
22002         * modules/imaxdiv (Makefile.am): Likewise.
22003         * modules/inet_ntop (Makefile.am): Likewise.
22004         * modules/inet_pton (Makefile.am): Likewise.
22005         * modules/inttostr (Makefile.am): Likewise.
22006         * modules/isapipe (Makefile.am): Likewise.
22007         * modules/lchown (Makefile.am): Likewise.
22008         * modules/long-options (Makefile.am): Likewise.
22009         * modules/lstat (Makefile.am): Likewise.
22010         * modules/malloc (Makefile.am): Likewise.
22011         * modules/mathl (Makefile.am): Likewise.
22012         * modules/mbchar (Makefile.am): Likewise.
22013         * modules/md2 (Makefile.am): Likewise.
22014         * modules/md4 (Makefile.am): Likewise.
22015         * modules/md5 (Makefile.am): Likewise.
22016         * modules/memcasecmp (Makefile.am): Likewise.
22017         * modules/memchr (Makefile.am): Likewise.
22018         * modules/memcmp (Makefile.am): Likewise.
22019         * modules/memcoll (Makefile.am): Likewise.
22020         * modules/memcpy (Makefile.am): Likewise.
22021         * modules/memmem (Makefile.am): Likewise.
22022         * modules/memmove (Makefile.am): Likewise.
22023         * modules/mempcpy (Makefile.am): Likewise.
22024         * modules/memrchr (Makefile.am): Likewise.
22025         * modules/memset (Makefile.am): Likewise.
22026         * modules/memxor (Makefile.am): Likewise.
22027         * modules/mkancesdirs (Makefile.am): Likewise.
22028         * modules/mkdir (Makefile.am): Likewise.
22029         * modules/mkdir-p (Makefile.am): Likewise.
22030         * modules/mkdtemp (Makefile.am): Likewise.
22031         * modules/mkstemp (Makefile.am): Likewise.
22032         * modules/mktime (Makefile.am): Likewise.
22033         * modules/modechange (Makefile.am): Likewise.
22034         * modules/mountlist (Makefile.am): Likewise.
22035         * modules/nanosleep (Makefile.am): Likewise.
22036         * modules/openat (Makefile.am): Likewise.
22037         * modules/pagealign_alloc (Makefile.am): Likewise.
22038         * modules/physmem (Makefile.am): Likewise.
22039         * modules/poll (Makefile.am): Likewise.
22040         * modules/posixtm (Makefile.am): Likewise.
22041         * modules/posixver (Makefile.am): Likewise.
22042         * modules/putenv (Makefile.am): Likewise.
22043         * modules/quote (Makefile.am): Likewise.
22044         * modules/quotearg (Makefile.am): Likewise.
22045         * modules/raise (Makefile.am): Likewise.
22046         * modules/read-file (Makefile.am): Likewise.
22047         * modules/readline (Makefile.am): Likewise.
22048         * modules/readlink (Makefile.am): Likewise.
22049         * modules/readtokens (Makefile.am): Likewise.
22050         * modules/readutmp (Makefile.am): Likewise.
22051         * modules/realloc (Makefile.am): Likewise.
22052         * modules/regex (Makefile.am): Likewise.
22053         * modules/rename (Makefile.am): Likewise.
22054         * modules/rename-dest-slash (Makefile.am): Likewise.
22055         * modules/rijndael (Makefile.am): Likewise.
22056         * modules/rmdir (Makefile.am): Likewise.
22057         * modules/rpmatch (Makefile.am): Likewise.
22058         * modules/safe-read (Makefile.am): Likewise.
22059         * modules/safe-write (Makefile.am): Likewise.
22060         * modules/same (Makefile.am): Likewise.
22061         * modules/save-cwd (Makefile.am): Likewise.
22062         * modules/savedir (Makefile.am): Likewise.
22063         * modules/setenv (Makefile.am): Likewise.
22064         * modules/settime (Makefile.am): Likewise.
22065         * modules/sha1 (Makefile.am): Likewise.
22066         * modules/sig2str (Makefile.am): Likewise.
22067         * modules/snprintf (Makefile.am): Likewise.
22068         * modules/stdlib-safer (Makefile.am): Likewise.
22069         * modules/stpcpy (Makefile.am): Likewise.
22070         * modules/stpncpy (Makefile.am): Likewise.
22071         * modules/strcase (Makefile.am): Likewise.
22072         * modules/strcasestr (Makefile.am): Likewise.
22073         * modules/strchrnul (Makefile.am): Likewise.
22074         * modules/strcspn (Makefile.am): Likewise.
22075         * modules/strdup (Makefile.am): Likewise.
22076         * modules/strerror (Makefile.am): Likewise.
22077         * modules/strftime (Makefile.am): Likewise.
22078         * modules/strndup (Makefile.am): Likewise.
22079         * modules/strnlen (Makefile.am): Likewise.
22080         * modules/strpbrk (Makefile.am): Likewise.
22081         * modules/strsep (Makefile.am): Likewise.
22082         * modules/strstr (Makefile.am): Likewise.
22083         * modules/strtod (Makefile.am): Likewise.
22084         * modules/strtoimax (Makefile.am): Likewise.
22085         * modules/strtok_r (Makefile.am): Likewise.
22086         * modules/strtol (Makefile.am): Likewise.
22087         * modules/strtoll (Makefile.am): Likewise.
22088         * modules/strtoul (Makefile.am): Likewise.
22089         * modules/strtoull (Makefile.am): Likewise.
22090         * modules/strtoumax (Makefile.am): Likewise.
22091         * modules/strverscmp (Makefile.am): Likewise.
22092         * modules/time_r (Makefile.am): Likewise.
22093         * modules/timegm (Makefile.am): Likewise.
22094         * modules/tmpfile-safer (Makefile.am): Likewise.
22095         * modules/unistd-safer (Makefile.am): Likewise.
22096         * modules/unlinkdir (Makefile.am): Likewise.
22097         * modules/userspec (Makefile.am): Likewise.
22098         * modules/utime (Makefile.am): Likewise.
22099         * modules/utimecmp (Makefile.am): Likewise.
22100         * modules/utimens (Makefile.am): Likewise.
22101         * modules/vasnprintf (Makefile.am): Likewise.
22102         * modules/vasprintf (Makefile.am): Likewise.
22103         * modules/vsnprintf (Makefile.am): Likewise.
22104         * modules/xalloc (Makefile.am): Likewise.
22105         * modules/xgetcwd (Makefile.am): Likewise.
22106         * modules/xnanosleep (Makefile.am): Likewise.
22107         * modules/xreadlink (Makefile.am): Likewise.
22108         * modules/xstrtod (Makefile.am): Likewise.
22109         * modules/xstrtol (Makefile.am): Likewise.
22110         * modules/xstrtold (Makefile.am): Likewise.
22111         * modules/yesno (Makefile.am): Likewise.
22112
22113 2006-10-12  Jim Meyering  <jim@meyering.net>
22114
22115         * m4/getloadavg.m4: Revert the change below.
22116
22117         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
22118         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
22119         fail with a symlink, which is what coreutils' ./bootstrap now
22120         creates by default.
22121
22122 2006-10-12  Bruno Haible  <bruno@clisp.org>
22123
22124         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
22125         mingw.
22126         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
22127         MSVC and mingw explicitly.
22128
22129 2006-10-11  Simon Josefsson  <jas@extundo.com>
22130             Bruno Haible  <bruno@clisp.org>
22131
22132         Add support for multiple gnulib-tool invocations in the scope of a
22133         single configure.ac file.
22134         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
22135         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
22136         with the same contents as the _LIBADD variable.
22137         (func_emit_initmacro_start, func_emit_initmacro_end,
22138         func_emit_initmacro_done): New functions.
22139         (func_import, func_create_testdir): Invoke them. Allow the identifiers
22140         gl_LIBOBJS and gl_LTLIBOBJS.
22141
22142 2006-10-11  Bruno Haible  <bruno@clisp.org>
22143
22144         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
22145         (func_create_testdir): Don't create po/Makefile.am, don't invoke
22146         autoreconf. Instead, invoke autopoint explicitly but move back the
22147         *.m4 files from gnulib.
22148
22149 2006-10-11  Bruno Haible  <bruno@clisp.org>
22150
22151         * gnulib-tool (func_usage): Make module names after --create-testdir
22152         optional.
22153         (func_create_testdir): If no module was specified, use nearly all
22154         modules.
22155
22156 2006-10-12  Jim Meyering  <jim@meyering.net>
22157
22158         Big performance improvement for fts-based tools that use FTS_NOSTAT.
22159         Avoid spurious inode-mismatch problems on non-POSIX file systems.
22160         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
22161         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
22162         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
22163         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
22164         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
22165         (fts_set_stat_required): New function.
22166         (fts_open): Defer the calls to fts_stat, if possible or requested.
22167         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
22168         into fts_stat itself.
22169         (fts_read): Perform any required (deferred) fts_stat call.
22170         (fts_build): Likewise, for the directory we're about to open and read.
22171         In the readdir loop, carefully decide whether each entry will require
22172         an eventual call to fts_stat, using dirent.d_type info if available.
22173         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
22174         a command line argument into this function.  Update all callers.
22175         Map a return value of FTS_DOT to FTS_D for a command line argument.
22176         * modules/fts (Depends-on): Add d-type.  Alphabetize.
22177         Thanks to Miklos Szeredi for his tenacity and for the initial
22178         bug report about "find" failing on a FUSE-based file system.
22179
22180         * lib/fts.c (fts_open): Use consistent indentation.
22181
22182 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
22183
22184         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
22185         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
22186         reported by Jim Meyering.  All uses of cache variables renamed
22187         to match Autoconf's.
22188         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
22189         the other one.
22190
22191         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22192         Fix misspelling in diagnostic.
22193
22194 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22195
22196         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
22197         defined.  Problem reported by Matthew Woehlke.
22198
22199         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
22200         Add support for Tandem NonStop R series.
22201         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
22202         Use new macro.
22203
22204         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
22205         (has_trailing_slash): Omit size arg; all callers changed.
22206         Omit 'inline', since it doesn't help performance and we'd
22207         need to configure it.
22208         Don't count //, ///, etc. as having a trailing slash.
22209         As a side effect, this removes a C99ism reported by Matthew Woehlke.
22210         (rpl_rename_dest_slash): On failure, use rename's errno rather
22211         than (in some cases) an incorrect or junk errno.
22212         Simplify code by removing need to compute length; this does
22213         cause it to make two passes instead of one over the file name,
22214         but it's worth it.
22215
22216         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
22217         change, since Autoconf's version may no longer be appropriate now
22218         that we are using CVS Autoconf's version.  Add support for Tandem.
22219
22220 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22221             Bruno Haible  <bruno@clisp.org>
22222
22223         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
22224         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
22225         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
22226         gl_AC_TYPE_LONG_LONG.
22227
22228         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
22229         instead of HAVE_LONG_LONG.
22230         * lib/printf-args.c (printf_fetchargs): Likewise.
22231         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22232         * lib/vasnprintf.c (VASNPRINTF): Likewise.
22233         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
22234         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
22235         gl_AC_TYPE_LONG_LONG.
22236
22237 2006-10-11  Bruno Haible  <bruno@clisp.org>
22238
22239         * m4/longlong.m4: Add comments.
22240         * m4/ulonglong.m4: Likewise.
22241
22242 2006-10-10  Bruno Haible  <bruno@clisp.org>
22243
22244         Make it possible to #define stpcpy, strdup to aliases.
22245         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
22246         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
22247
22248 2006-10-10  Bruno Haible  <bruno@clisp.org>
22249
22250         Make it possible to #define gcd to an alias.
22251         * lib/gcd.c: Include config.h.
22252
22253 2006-10-10  Bruno Haible  <bruno@clisp.org>
22254
22255         Make it possible to #define c_isascii to an alias.
22256         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
22257         defined. Undefine the macros before defining them, to avoid gcc
22258         warnings.
22259         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
22260         define NO_C_CTYPE_MACROS early.
22261
22262 2006-10-10  Bruno Haible  <bruno@clisp.org>
22263
22264         Make it possible to #define set_program_name to an alias.
22265         * lib/progname.c: Don't undefine set_program_name; instead, undefine
22266         ENABLE_RELOCATABLE early.
22267
22268 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22269
22270         Port to Tandem NSK OSS, which has 64-bit signed int but at most
22271         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
22272         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
22273         More generally, don't assume that 64-bit signed int is available
22274         if unsigned int is, and vice versa.
22275         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
22276         unsigned symbols, not on their signed counterparts.
22277         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
22278         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
22279         (UINT64_C, UINTMAX_C):
22280         Likewise.
22281         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
22282         unsigned counterparts.
22283         (Have_long_long, Unsigned): New macros.
22284         (Int): Renamed from INT.
22285         (strtoimax): Use the new macros.
22286         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
22287         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
22288         * modules/inttypes (inttypes.h): Substitute
22289         HAVE_UNSIGNED_LONG_LONG_INT.
22290         * modules/stdint (stdint.h): Likewise.
22291         (Files): Add m4/ulonglong.m4.
22292
22293 2006-10-10  Bruno Haible  <bruno@clisp.org>
22294
22295         Fix a gcc -Wshadow warning.
22296         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
22297         to 'bucket'.
22298         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
22299         gl_linked_indexof_from_to): Likewise.
22300         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
22301         Likewise.
22302         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
22303         Likewise.
22304         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
22305         Reported by Eric Blake.
22306
22307 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
22308
22309         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
22310         for NetBSD.  Problem reported by Bruno Haible.
22311
22312 2006-10-09  Jim Meyering  <jim@meyering.net>
22313
22314         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
22315         Patch from Bruno Haible.
22316
22317 2006-10-09  Jim Meyering  <jim@meyering.net>
22318
22319         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
22320         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
22321         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
22322
22323 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
22324
22325         Don't include <config.h> twice; this doesn't work in some cases,
22326         e.g., when config.h has "#define intmax_t long long int" and
22327         we include <config.h>, <inttypes.h>, <config.h> in that order.
22328         Problem reported by Matthew Woehlke in:
22329         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
22330         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
22331         * lib/fts-cycle.c: Don't include config.h.
22332         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
22333         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
22334         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
22335         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
22336         inttypes.h.
22337         * lib/xstrtoumax.c: Likewise.
22338         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
22339         __strtol and the like, so that this module is more like its siblings.
22340         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
22341         Remove; no longer needed now that we assume gnulib inttypes.h.
22342
22343 2006-10-08  Bruno Haible  <bruno@clisp.org>
22344
22345         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
22346         option.
22347
22348 2006-10-07  Jim Meyering  <jim@meyering.net>
22349
22350         * modules/inttypes (inttypes.h): Revert what seems to have been
22351         an inadvertent part of today's change: use "|", not "/" in the
22352         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
22353
22354 2006-10-07  Bruno Haible  <bruno@clisp.org>
22355
22356         * modules/sublist: New file.
22357
22358 2006-10-07  Bruno Haible  <bruno@clisp.org>
22359
22360         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
22361         * modules/argz (argz.h): Likewise.
22362         * modules/arpa_inet (arpa/inet.h): Likewise.
22363         * modules/byteswap (byteswap.h): Likewise.
22364         * modules/configmake (configmake.h): Likewise.
22365         * modules/fcntl (fcntl.h): Likewise.
22366         * modules/fnmatch (fnmatch.h): Likewise.
22367         * modules/getopt (getopt.h): Likewise.
22368         * modules/glob (glob.h): Likewise.
22369         * modules/inttypes (inttypes.h): Likewise.
22370         * modules/netinet_in (netinet/in.h): Likewise.
22371         * modules/poll (poll.h): Likewise.
22372         * modules/stdbool (stdbool.h): Likewise.
22373         * modules/stdint (stdint.h): Likewise.
22374         * modules/sys_select (sys/select.h): Likewise.
22375         * modules/sys_socket (sys/socket.h): Likewise.
22376         * modules/sys_stat (sys/stat.h): Likewise.
22377         * modules/sysexits (sysexits.h): Likewise.
22378         * modules/unistd (unistd.h): Likewise.
22379         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22380         Add a "DO NOT EDIT" comment to the generated file.
22381         (func_import): Likewise for gnulib-comp.m4.
22382
22383 2006-10-07  Bruno Haible  <bruno@clisp.org>
22384
22385         * lib/gl_sublist.h: New file.
22386         * lib/gl_sublist.c: New file.
22387
22388 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
22389
22390         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
22391         name (relative to the original working directory) and the file
22392         name component (relative to the temporary working directory).  All
22393         callers changed.
22394         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
22395         * lib/mkdir-p.c (make_dir_parents): Likewise.
22396         * lib/mkdir-p.h (make_dir_parents): Likewise.
22397
22398 2006-10-06  Eric Blake  <ebb9@byu.net>
22399
22400         Define several macros for use by the clean-temp module.
22401         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
22402         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
22403         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
22404
22405         * lib/clean-temp.h (close_stream_temp): New declaration.
22406         * lib/clean-temp.c (includes): Pull in headers according to what
22407         other modules are in use.
22408         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
22409
22410 2006-10-06  Bruno Haible  <bruno@clisp.org>
22411
22412         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
22413         instead of fopen, fwriteerror.
22414
22415 2006-10-06  Bruno Haible  <bruno@clisp.org>
22416
22417         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
22418         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
22419         int.
22420         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
22421         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
22422         Return an error indicator.
22423         Suggested by Eric Blake.
22424
22425 2006-10-06  Bruno Haible  <bruno@clisp.org>
22426
22427         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
22428         Reported by Eric Blake.
22429
22430 2006-10-06  Bruno Haible  <bruno@clisp.org>
22431
22432         * modules/closeout (Description): Mention stderr too.
22433
22434 2006-10-06  Bruno Haible  <bruno@clisp.org>
22435         and Paul Eggert  <eggert@cs.ucla.edu>
22436
22437         * lib/closeout.c (close_stdout): Also close stderr.
22438         * lib/closeout.h: Update comment.
22439
22440 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22441
22442         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
22443         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
22444         * lib/dirchownmod.c: Include lchown.h.
22445         * lib/lchown.c: Don't include files that lchown.h now includes.
22446         Don't declare chown, since lchown.h now does that.
22447         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
22448         (lchown): Define to rpl_chown if lchown is declared but
22449         does not exist.  Declare using a prototype if lchown is not
22450         declared.  Add a copyright notice.
22451         * lib/mkstemp.h: Include <unistd.h>.
22452         * lib/openat.c: Include lchown.h.
22453
22454         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
22455         we now test for that separately.
22456         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
22457         rather than O_NOFOLLOW, when testing whether it's possible to
22458         avoid a race condition reliably.
22459         * lib/savewd.c (savewd_chdir): Likewise.
22460
22461         Remove macros that are no longer needed now that stdint.h is
22462         reliable.
22463         * lib/fsusage.c (UINTMAX_MAX): Remove.
22464         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
22465         * lib/utimecmp.c (SIZE_MAX): Remove.
22466
22467         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
22468
22469         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
22470         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
22471         O_NOATIME works.
22472
22473 2006-10-05  Bruno Haible  <bruno@clisp.org>
22474
22475         * lib/gl_list.h (gl_sortedlist_search_from_to,
22476         gl_sortedlist_indexof_from_to): New declarations.
22477         (gl_list_implementation): New fields sortedlist_search_from_to,
22478         sortedlist_indexof_from_to.
22479         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
22480         inline functions.
22481         * lib/gl_list.c (gl_sortedlist_search_from_to,
22482         gl_sortedlist_indexof_from_to): New functions.
22483         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
22484         function.
22485         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
22486         (gl_array_sortedlist_search_from_to): New function.
22487         (gl_array_list_implementation): Update.
22488         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
22489         function.
22490         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
22491         (gl_carray_sortedlist_search_from_to): New function.
22492         (gl_carray_list_implementation): Update.
22493         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
22494         gl_linked_sortedlist_indexof_from_to): New functions.
22495         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22496         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22497         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
22498         gl_tree_sortedlist_indexof_from_to): New functions.
22499         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22500         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22501         Update.
22502         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22503         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
22504         Update.
22505
22506 2006-10-05  Bruno Haible  <bruno@clisp.org>
22507
22508         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
22509         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
22510         (struct gl_list_implementation): Add fields search_from_to,
22511         indexof_from_to. Remove fields search, indexof.
22512         (gl_list_search): Use the search_from_to method.
22513         (gl_list_search_from, gl_list_search_from_to): New functions.
22514         (gl_list_indexof): Use the indexof_from_to method.
22515         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22516         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
22517         (gl_list_search_from, gl_list_search_from_to): New functions.
22518         (gl_list_indexof): Use the indexof_from_to method.
22519         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22520         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
22521         gl_array_indexof. Add start_index, end_index arguments.
22522         (gl_array_search_from_to): Renamed from gl_array_search. Add
22523         start_index, end_index arguments.
22524         (gl_array_remove, gl_array_list_implementation): Update.
22525         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
22526         gl_carray_indexof. Add start_index, end_index arguments.
22527         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
22528         start_index, end_index arguments.
22529         (gl_carray_remove, gl_carray_list_implementation): Update.
22530         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
22531         gl_linked_search. Add start_index, end_index arguments.
22532         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
22533         start_index, end_index arguments.
22534         (gl_linked_remove): Update.
22535         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22536         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22537         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
22538         field to 'size_t'.
22539         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
22540         gl_tree_search. Add start_index, end_index arguments.
22541         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22542         start_index, end_index arguments.
22543         (gl_tree_remove): Update.
22544         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22545         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22546         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
22547         function.
22548         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
22549         gl_tree_search. Add start_index, end_index arguments.
22550         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22551         start_index, end_index arguments.
22552         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22553         Update.
22554         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22555
22556 2006-10-05  Bruno Haible  <bruno@clisp.org>
22557
22558         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
22559
22560         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
22561         fwriteerror_temp): New declarations.
22562         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
22563         (descriptors): New variable.
22564         (cleanup): First, close the descriptors.
22565         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
22566         fclose_temp, fwriteerror_temp): New functions.
22567
22568 2006-10-04  Jim Meyering  <jim@meyering.net>
22569
22570         * lib/fts.c (fts_open): Tiny comment change.
22571
22572 2006-10-04  Bruno Haible  <bruno@clisp.org>
22573
22574         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
22575         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
22576         gl_LOCK_BODY.
22577         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
22578         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
22579         gl_LOCK_EARLY_BODY.
22580         (gl_LOCK): Require gl_LOCK_BODY.
22581
22582 2006-10-04  Bruno Haible  <bruno@clisp.org>
22583
22584         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
22585         (gl_oset_search_atleast): New declaration.
22586         (struct gl_oset_implementation): Add field 'search_atleast'.
22587         (gl_oset_search_atleast): New inline function.
22588         * lib/gl_oset.c (gl_oset_search_atleast): New function.
22589         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
22590         (gl_array_oset_implementation): Update.
22591         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
22592         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
22593         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
22594
22595 2006-10-04  Bruno Haible  <bruno@clisp.org>
22596
22597         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
22598
22599 2006-10-03  Bruno Haible  <bruno@clisp.org>
22600
22601         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
22602         from gl_avltreehash_list_implementation.
22603
22604 2006-10-03  Bruno Haible  <bruno@clisp.org>
22605
22606         * lib/gl_oset.c (gl_oset_add): Fix return type.
22607
22608 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
22609
22610         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
22611
22612 2006-10-02  Eric Blake  <ebb9@byu.net>
22613
22614         * modules/strnlen (Depends-on): Add extensions.
22615
22616 2006-10-02  Eric Blake  <ebb9@byu.net>
22617
22618         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
22619         definition in 2.60+.
22620
22621 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
22622
22623         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
22624         checks.
22625
22626 2006-10-02  Bruno Haible  <bruno@clisp.org>
22627
22628         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
22629         to the AUTOMAKE_OPTIONS.
22630         Reported by Jim Meyering.
22631
22632 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
22633
22634         Work around bug in Solaris 10 /proc file system:
22635         /proc/self/fd/NNN/.. isn't the parent directory of
22636         the directory whose file descriptor is NNN.  This needs to
22637         be worked around at run time, not compile time, since a
22638         program might be built on Solaris 8, where things work, and
22639         run on Solaris 10.
22640         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
22641         to use the following interface instead:
22642         (OPENAT_BUFFER_SIZE): New macro.
22643         (openat_proc_name): New function.
22644         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
22645         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
22646         Likewise.
22647         * lib/openat-proc.c: New file.
22648         * modules/openat (Files): Add lib/openat-proc.c.
22649         (Depends-on): Add same-inode, stdbool.
22650         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
22651
22652 2006-09-29  Bruno Haible  <bruno@clisp.org>
22653
22654         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
22655         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
22656         argument. Set stdout_closed before testing for ferror, not after.
22657         (fwriteerror, fwriteerror_no_ebadf): New functions.
22658
22659 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22660
22661         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
22662
22663 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
22664
22665         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
22666         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
22667
22668 2006-09-28  Jim Meyering  <jim@meyering.net>
22669
22670         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
22671         Include <unistd.h>.
22672
22673 2006-09-28  Bruno Haible  <bruno@clisp.org>
22674
22675         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
22676         * modules/linkedhash-list (Depends-on): Likewise.
22677         * modules/rbtreehash-list (Depends-on): Likewise.
22678
22679 2006-09-28  Bruno Haible  <bruno@clisp.org>
22680
22681         * lib/strndup.h: Simplify the redefinition of strndup.
22682         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
22683         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
22684
22685 2006-09-28  Bruno Haible  <bruno@clisp.org>
22686
22687         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
22688         * lib/gl_linkedhash_list.c: Likewise.
22689         * lib/gl_rbtreehash_list.c: Likewise.
22690
22691 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
22692
22693         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
22694         getaddrinfo.
22695
22696         * lib/__fpending.h: Don't include <stdio_ext.h> unless
22697         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
22698         it causes <stdio_ext.h> to cause a compile-time error.
22699         Problem reported by Nelson H. F. Beebe.
22700         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
22701         of HAVE_DECL___PENDING.
22702
22703         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
22704         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
22705         declaration.
22706
22707 2006-09-27  Jim Meyering  <jim@meyering.net>
22708
22709         This file could end up with a definition for a function
22710         named __strndup, rather than rpl_strndup on a system with
22711         incomplete weak_alias support.
22712         * lib/strndup.c (strndup): Rename from __strndup.
22713         Remove #defines that used to map __strndup to strndup.
22714         Don't use K&R prototypes.
22715         Remove LIBC-related code, since this file is not sync'd with glibc.
22716         * lib/strndup.h: Revamp, accordingly.
22717         * m4/strndup.m4: Modernize.
22718
22719 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22720
22721         * modules/savewd (Depends-on): Add 'raise'.
22722         * lib/savewd.c: Include <signal.h>, for 'raise'.
22723
22724 2006-09-26  Jim Meyering  <jim@meyering.net>
22725
22726         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
22727         when we detect Darwin 8.7.0's acl_get_file bug.
22728         Rearrange to perform the new (below) run-test while $LIBS
22729         contains any acl-related library.  Set USE_ACL at the end.
22730         (gl_ACL_GET_FILE): New function.
22731
22732 2006-09-26  Eric Blake  <ebb9@byu.net>
22733
22734         * lib/verror.c: Include <config.h> unconditionally.
22735
22736 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
22737
22738         * modules/clock-time (Maintainer): Add self.
22739         * modules/getlogin_r (Depends-on): Add extensions.
22740
22741 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22742
22743         * modules/clock-time: New module.
22744         * modules/nanosleep (Depends-on): Add clock-time.
22745         * modules/gethrxtime (Depends-on): Likewise.
22746         * modules/gettime (Depends-on): Likewise.
22747         * modules/settime (Depends-on): Likewise.
22748
22749         * modules/fts-lgpl: Depend on openat.
22750         * modules/mkancesdirs: Depend on savewd.
22751         * modules/mkdir-p: Likewise.
22752
22753 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22754
22755         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
22756
22757         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
22758         `gl_have_arbitrary_file_name_length_limit' to
22759         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
22760         actually works between configure runs.
22761
22762 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22763             Bruno Haible  <bruno@clisp.org>
22764
22765         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
22766
22767 2006-09-25  Jim Meyering  <jim@meyering.net>
22768
22769         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
22770         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
22771
22772 2006-09-25  Eric Blake  <ebb9@byu.net>
22773
22774         * gnulib-tool (func_import, func_create_testdir): Fix typos in
22775         exec's in 2006-09-18 patch when shuffling fds.
22776
22777 2006-09-25  Bruno Haible  <bruno@clisp.org>
22778
22779         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
22780         Reported by Jim Meyering.
22781
22782 2006-09-24  Jim Meyering  <jim@meyering.net>
22783
22784         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
22785         compare a pointer against a literal "0".  That caused failures with
22786         at least HP-UX's hpcc.
22787
22788 2006-09-22  Simon Josefsson  <jas@extundo.com>
22789
22790         * modules/gc-sha1:
22791         * modules/gc-md4:
22792         * modules/gc-hmac-sha1:
22793         * modules/gc-hmac-md5:
22794         * modules/gc-des:
22795         * modules/gc-arcfour: Distribute more files.
22796
22797 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22798
22799         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
22800         (gl_linked_iterator_from_to): Initialize struct completely.
22801         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
22802         (gl_tree_iterator_from_to): Likewise
22803         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
22804         * lib/gl_array_list.c [lint] (gl_array_iterator)
22805         (gl_array_iterator_from_to): Likewise.
22806         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
22807         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
22808         (gl_carray_iterator_from_to): Likewise.
22809
22810         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
22811         * lib/md4.c (md4_process_block): Remove unused variable.
22812         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
22813         parentheses for clarity.
22814
22815 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22816
22817         * modules/bison-i18n (Depends-on): Add gettext.
22818
22819 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22820
22821         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
22822         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22823         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
22824         also add missing comma that caused broken test.
22825         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
22826         stdlib.h, for `abort'.
22827         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
22828         variables.
22829         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
22830         include unistd.h if present, for `rmdir'.
22831         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
22832         variables.
22833         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
22834         in the process include standard headers for prototypes.
22835         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
22836         gets declared on GNU/Linux.
22837         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
22838         unistd.h, for `rmdir'.
22839         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
22840
22841         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
22842         always true.
22843         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
22844
22845         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
22846
22847 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22848
22849         * gnulib-tool (func_version): Create output all at once.  This
22850         may help avoid triggering unnecessary SIGPIPEs, and at any
22851         rate it doesn't hurt.
22852
22853 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22854             Bruno Haible  <bruno@clisp.org>
22855
22856         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
22857         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22858         * m4/signed.m4 (bh_C_SIGNED): Likewise.
22859
22860         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
22861         (gl_FUNC_VASPRINTF): Invoke it.
22862
22863 2006-09-22  Bruno Haible  <bruno@clisp.org>
22864
22865         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
22866         getloadavg.c as first argument.
22867
22868 2006-09-22  Bruno Haible  <bruno@clisp.org>
22869
22870         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
22871         at the beginning of the gl_INIT macro.
22872         * modules/getloadavg (configure.ac): Pass $gl_source_base to
22873         gl_GETLOADAVG.
22874
22875 2006-09-22  Bruno Haible  <bruno@clisp.org>
22876
22877         * gnulib-tool (func_create_megatestdir): Don't include the config-h
22878         module.
22879         Suggested by Ralf Wildenhues.
22880
22881 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22882
22883         Import this patch from libc:
22884
22885         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
22886
22887         * lib/regex_internal.c (re_string_reconstruct): Handle
22888         offset < pstr->valid_raw_len && pstr->offsets_needed case.
22889         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
22890         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
22891         re_string_context_at.
22892
22893         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
22894         now requires it.
22895         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
22896         gl_REGEX now does it for us.
22897         (gl_REGEX): Add test taken from
22898         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
22899
22900         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
22901         Check that large offsets work.  Modernize Autoconf usages.
22902         Prefer "yes" to mean a good thing rather than a bad.
22903         Don't put "#define mkstemp" in config.h, as this might interfere
22904         with standard system headers that "#define mkstemp mkstemp64".
22905
22906         * modules/mkstemp (Depends-on): Add extensions, so that
22907         mkstemp is visible on some platforms.
22908         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
22909         (Include): Change to "mkstemp.h" from <stdlib.h>.
22910         (Files): Add mkstemp.h.
22911
22912         * lib/mkstemp.h: New file, since some standard headers
22913         #define mkstemp.
22914         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
22915         Include "mkstemp.h".
22916         Make the _LIBC code resemble glibc original more,
22917         e.g., use K&R style.
22918         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
22919         (mkstemp): Remove, since mkstemp.h does this for us.
22920         * lib/stdlib--.h: Include mkstemp.h.
22921
22922         Import this patch from libc:
22923
22924         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22925
22926         * lib/tempname.c (__gen_tempname): Change attempts_min
22927         into a macro.  Use preprocessor to decide how to initialize
22928         attempts [Coverity CID 67].
22929
22930 2006-09-20  Bruno Haible  <bruno@clisp.org>
22931
22932         * lib/mkdtemp.c: Import from libc.
22933         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22934                 * sysdeps/posix/tempname.c (__gen_tempname): Change
22935                 attempts_min into a macro.  Use preprocessor to decide how to
22936                 initialize attempts [Coverity CID 67].
22937         2001-11-27  Paul Eggert  <eggert@twinsun.com>
22938                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
22939                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
22940
22941 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22942
22943         * gnulib-tool (func_exit): New function, to allow to pass the
22944         exit status portably through the trap.  Use everywhere.
22945         (--help, --version): Signal a write error.
22946         (trap): catch SIGPIPE, for write errors.
22947         Exit at the end of the trap, with the correct exit status.
22948
22949 2006-09-19  Karl Berry  <karl@gnu.org>
22950
22951         * doc/gnulib.texi: note about the license texinfo files.
22952
22953 2006-09-19  Eric Blake  <ebb9@byu.net>
22954
22955         * gnulib-tool: Avoid space-tab.
22956
22957 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22958
22959         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
22960         that prevented coreutils 6.1 from building.  Problem reported
22961         by Petter Reinholdtsen.
22962
22963 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22964
22965         * gnulib-tool (avoidlist): Fix typo that broke options like
22966         --avoid=lock that are used by coreutils bootstrap.
22967
22968 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
22969
22970         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
22971         more systematically.
22972
22973 2006-09-18  Jim Meyering  <jim@meyering.net>
22974
22975         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
22976
22977 2006-09-18  Bruno Haible  <bruno@clisp.org>
22978
22979         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
22980
22981 2006-09-18  Bruno Haible  <bruno@clisp.org>
22982
22983         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
22984         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
22985         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
22986         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
22987         * m4/gettext.m4: Require autoconf >= 2.52.
22988         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
22989         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
22990         of gl_cv_header_inttypes_h.
22991
22992 2006-09-18  Bruno Haible  <bruno@clisp.org>
22993
22994         * lib/javaversion.c: Include configmake.h.
22995
22996 2006-09-18  Bruno Haible  <bruno@clisp.org>
22997
22998         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
22999         avoid that the while loops be executed in a subshell.
23000
23001 2006-09-18  Bruno Haible  <bruno@clisp.org>
23002
23003         * MODULES.html.sh (func_module): Break long lines.
23004         Suggested by Bruce Korb <bkorb@gnu.org>.
23005
23006 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23007
23008         Speed up by a factor of 1.12.
23009         * gnulib-tool (nl): New variable.
23010         (func_import): Rewrite include directive extraction to only read each
23011         directive once.
23012
23013 2006-09-17  Bruno Haible  <bruno@clisp.org>
23014
23015         * modules/javaversion (Makefile.am): Remove DEFS setting.
23016         (Depends-on): Add configmake, for PKGDATADIR definition.
23017
23018 2006-09-17  Bruno Haible  <bruno@clisp.org>
23019
23020         * gnulib-tool (func_create_testdir): Rewrite all files at once.
23021
23022 2006-09-17  Bruno Haible  <bruno@clisp.org>
23023
23024         * gnulib-tool (func_append): New function, stolen from libtool.m4.
23025         (func_modules_transitive_closure, func_modules_add_dummy,
23026         func_modules_to_filelist, func_import, func_create_testdir,
23027         func_create_megatestdir, ...): Use it wherever possible.
23028         Suggested by Ralf Wildenhues.
23029
23030 2006-09-16  Karl Berry  <karl@gnu.org>
23031
23032         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
23033         to avoid sectioning errors.
23034         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
23035         [ifinfo]: blank line after @center-ed titles.
23036         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
23037         Spell FSF address consistently with others.
23038         (These changes approved by rms.)
23039
23040 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23041
23042         Speed up by a factor of 1.61.
23043         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
23044         already checked module names again.
23045
23046 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23047
23048         Speed up by a factor of 1.13.
23049         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
23050         for new_files, and the input to func_add_or_update.
23051
23052 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23053
23054         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
23055         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
23056
23057 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23058
23059         * modules/mkancesdirs (Depends-on): Add fcntl.
23060         * modules/savewd: New file.
23061         * MODULES.html.sh (File system functions): Add savewd.
23062
23063         * modules/configmake (Makefile.am): Add support for the
23064         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
23065
23066 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23067
23068         * m4/savewd.m4: New file.
23069
23070 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23071
23072         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
23073         (dirchownmod): New arg FD.  All callers changed.
23074         Use FD rather than opening the directory ourself, as opening is
23075         now the caller's responsibility.
23076         * lib/dirchownmod.h: Likewise.
23077         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
23078         hosts that require <sys/types.h> before <sys/stat.h>.  Include
23079         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
23080         (test_dir): Remove.
23081         (mkancesdirs): Return length of prefix of FILE that has already
23082         been made, or -2 if there is a child doing the work.  Redo
23083         algorithm so that it is O(N) rather than O(N**2).  Optimize away
23084         ".", and treat ".." specially since it might stray back into
23085         already-created areas.  Use a subprocess if necessary.  New arg
23086         WD; all users changed.  MAKE_DIR function should now return 1
23087         if it creates a directory that is not readable.  Return -2 if
23088         a child process is spun off.
23089         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
23090         Adjust signature to match code.
23091         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
23092         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
23093         all users changed.
23094         * lib/savewd.c, lib/savewd.h: New files.
23095
23096 2006-09-15  Jim Meyering  <jim@meyering.net>
23097
23098         * modules/rename-dest-slash: New module.
23099         * MODULES.html.sh (posix_compat): Add it here.
23100
23101         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
23102
23103 2006-09-15  Jim Meyering  <jim@meyering.net>
23104
23105         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
23106         file.
23107
23108         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
23109
23110 2006-09-15  Jim Meyering  <jim@meyering.net>
23111
23112         * lib/rename-dest-slash.c (has_trailing_slash): Use
23113         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
23114         (rpl_rename_dest_slash): Perform the cheaper trailing slash
23115         test before testing whether SRC is a directory.
23116         Suggestions from Bruno Haible.
23117
23118         Avoid a warning about an unused variable.
23119         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
23120         into the #ifdef block where it's used.
23121
23122         * lib/rename-dest-slash.c: New file.
23123
23124 2006-09-14  Bruno Haible  <bruno@clisp.org>
23125
23126         * lib/allocsa.c: Include <config.h> unconditionally.
23127         * lib/asnprintf.c: Likewise.
23128         * lib/asprintf.c: Likewise.
23129         * lib/c-strcasecmp.c: Likewise.
23130         * lib/c-strcasestr.c: Likewise.
23131         * lib/c-strncasecmp.c: Likewise.
23132         * lib/c-strstr.c: Likewise.
23133         * lib/classpath.c: Likewise.
23134         * lib/clean-temp.c: Likewise.
23135         * lib/concatpath.c: Likewise.
23136         * lib/copy-file.c: Likewise.
23137         * lib/csharpcomp.c: Likewise.
23138         * lib/csharpexec.c: Likewise.
23139         * lib/execute.c: Likewise.
23140         * lib/fatal-signal.c: Likewise.
23141         * lib/findprog.c: Likewise.
23142         * lib/fwriteerror.c: Likewise.
23143         * lib/gl_array_list.c: Likewise.
23144         * lib/gl_array_oset.c: Likewise.
23145         * lib/gl_avltree_list.c: Likewise.
23146         * lib/gl_avltree_oset.c: Likewise.
23147         * lib/gl_avltreehash_list.c: Likewise.
23148         * lib/gl_carray_list.c: Likewise.
23149         * lib/gl_linked_list.c: Likewise.
23150         * lib/gl_linkedhash_list.c: Likewise.
23151         * lib/gl_list.c: Likewise.
23152         * lib/gl_oset.c: Likewise.
23153         * lib/gl_rbtree_list.c: Likewise.
23154         * lib/gl_rbtree_oset.c: Likewise.
23155         * lib/gl_rbtreehash_list.c: Likewise.
23156         * lib/imaxabs.c: Likewise.
23157         * lib/imaxdiv.c: Likewise.
23158         * lib/javacomp.c: Likewise.
23159         * lib/javaexec.c: Likewise.
23160         * lib/javaversion.c: Likewise.
23161         * lib/linebreak.c: Likewise.
23162         * lib/localcharset.c: Likewise.
23163         * lib/lock.c: Likewise.
23164         * lib/mbchar.c: Likewise.
23165         * lib/mbswidth.c: Likewise.
23166         * lib/mkdtemp.c: Likewise.
23167         * lib/pipe.c: Likewise.
23168         * lib/printf-args.c: Likewise.
23169         * lib/printf-parse.c: Likewise.
23170         * lib/progname.c: Likewise.
23171         * lib/progreloc.c: Likewise.
23172         * lib/readlink.c: Likewise.
23173         * lib/sh-quote.c: Likewise.
23174         * lib/stpcpy.c: Likewise.
23175         * lib/stpncpy.c: Likewise.
23176         * lib/strcasecmp.c: Likewise.
23177         * lib/strcasestr.c: Likewise.
23178         * lib/strcspn.c: Likewise.
23179         * lib/striconv.c: Likewise.
23180         * lib/strncasecmp.c: Likewise.
23181         * lib/strnlen1.c: Likewise.
23182         * lib/strstr.c: Likewise.
23183         * lib/strtok_r.c: Likewise.
23184         * lib/tls.c: Likewise.
23185         * lib/tmpdir.c: Likewise.
23186         * lib/unicodeio.c: Likewise.
23187         * lib/unsetenv.c: Likewise.
23188         * lib/vasnprintf.c: Likewise.
23189         * lib/vasprintf.c: Likewise.
23190         * lib/wait-process.c: Likewise.
23191         * lib/xallocsa.c: Likewise.
23192         * lib/xsetenv.c: Likewise.
23193         * lib/xstriconv.c: Likewise.
23194
23195 2006-09-13  Simon Josefsson  <jas@extundo.com>
23196
23197         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
23198         that internally, suggested by Ralf Wildenhues
23199         <Ralf.Wildenhues@gmx.de>.
23200
23201 2006-09-13  Simon Josefsson  <jas@extundo.com>
23202
23203         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
23204         @LIBOBJS@.
23205         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23206
23207 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23208
23209         * lib/_fpending.c: Include <config.h> unconditionally, since we no
23210         longer worry about uses that don't define HAVE_CONFIG_H.
23211         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
23212         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
23213         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
23214         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
23215         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
23216         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
23217         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
23218         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
23219         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
23220         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
23221         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
23222         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
23223         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
23224         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
23225         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
23226         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
23227         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
23228         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
23229         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
23230         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
23231         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
23232         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
23233         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
23234         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
23235         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
23236         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
23237         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
23238         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
23239         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
23240         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
23241         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
23242         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
23243         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
23244         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
23245         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
23246         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
23247         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
23248         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
23249         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
23250         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
23251         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
23252         Likewise.
23253
23254 2006-09-13  Eric Blake  <ebb9@byu.net>
23255
23256         * lib/getopt.c: Fix typo in last commit.
23257
23258 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23259
23260         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
23261         dgettext.
23262
23263 2006-09-12  Jim Meyering  <jim@meyering.net>
23264
23265         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
23266         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
23267         Reported by Nelson H. F. Beebe.
23268
23269 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
23270
23271         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
23272         program_invocation_name and program_invocation_short_name are
23273         initialized.
23274         * lib/argp-namefrob.h: Move declarations of program_invocation_name
23275         and program_invocation_short_name to argp.h, so they are visible
23276         to user programs.
23277         * lib/argp.h: Likewise
23278
23279 2006-09-10  Bruno Haible  <bruno@clisp.org>
23280
23281         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23282         m4/inttypes_h.m4, m4/uintmax_t.m4.
23283
23284 2006-09-10  Bruno Haible  <bruno@clisp.org>
23285
23286         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
23287         gl_AC_TYPE_UINTMAX_T.
23288
23289 2006-09-10  Bruno Haible  <bruno@clisp.org>
23290
23291         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
23292
23293 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23294
23295         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
23296         convention.  Text proposed by Bruno Haible.
23297         (struct argp_option): Document the use of N_() wrappers.
23298
23299         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
23300         '\v', and translate the two parts separately, instead of feeding
23301         the whole string to gettext.  This allows to exclude
23302         '\v' from the strings visible to the translator by writing doc
23303         strings as N_("..") "\v" N_("..").
23304
23305 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
23306
23307         * config/srclist.txt: Undo latest change; the bug was fixed.
23308
23309 2006-09-09  Bruno Haible  <bruno@clisp.org>
23310
23311         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
23312         assignments if building a library without libtool.
23313         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
23314         in func_emit_lib_Makefile_am.
23315         (func_import): When building a static library libfoo.a, arrange to
23316         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
23317         (func_create_testdir): Likewise.
23318         * modules/gc (configure.ac, Makefile.am): If building statically,
23319         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
23320         * modules/iconvme (configure.ac, Makefile.am): Likewise.
23321         * modules/striconv (configure.ac, Makefile.am): Likewise.
23322         Based on a suggestion by Ralf Wildenhues.
23323
23324 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23325
23326         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
23327         Check for unistd.h too, since Autoconf doesn't assume POSIX.
23328         Also:
23329
23330         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23331         Add year_2050_test to catch glibc bug 2821
23332         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23333
23334         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23335         Prefer #ifdef to #if.
23336
23337         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
23338         Return from 'main' instead of calling 'exit'.
23339
23340 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23341
23342         * lib/mktime.c (guess_time_tm): Fix bug where mktime
23343         returned the maximum time_t value rather than (time_t) -1.
23344         Problem originally reported by William Bardwell
23345         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23346
23347         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23348         Moved to here ...
23349         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23350         ... from here.
23351
23352 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23353
23354         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
23355         2821 is fixed.
23356
23357 2006-09-08  Jim Meyering  <jim@meyering.net>
23358
23359         Don't make generated files read-only.  That would bother too many
23360         people.  However, do retain the ability to work when targets are
23361         read-only: remove the destination and temporary files before writing
23362         them (when generated via sed or echo), or by using the -f option for
23363         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
23364         * modules/alloca-opt, modules/argz, modules/arpa_inet:
23365         * modules/byteswap, modules/configmake, modules/fcntl:
23366         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23367         * modules/localcharset, modules/netinet_in, modules/poll:
23368         * modules/stdbool, modules/stdint, modules/sys_select:
23369         * modules/sys_socket, modules/sys_stat, modules/sysexits:
23370
23371 2006-09-08  Jim Meyering  <jim@meyering.net>
23372
23373         Avoid new build failure on FreeBSD 6.0.
23374         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
23375         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
23376         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
23377
23378 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23379
23380         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
23381
23382 2006-09-07  Jim Meyering  <jim@meyering.net>
23383
23384         Fix global typo in last change: use chmod u-w, not chmod u-x.
23385         Spotted by Paul Eggert and Bruce Korb.
23386         * modules/alloca-opt, modules/argz, modules/arpa_inet:
23387         * modules/byteswap, modules/configmake, modules/fcntl:
23388         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23389         * modules/localcharset, modules/netinet_in, modules/poll:
23390         * modules/stdbool, modules/stdint, modules/sys_select:
23391         * modules/sys_socket, modules/sys_stat, modules/sysexits:
23392
23393 2006-09-06  Jim Meyering  <jim@meyering.net>
23394
23395         Make generated files be read-only.
23396         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
23397         Ensure that each generated file is now read-only.
23398         * modules/argz: Likewise.
23399         * modules/arpa_inet: Likewise.
23400         * modules/byteswap: Likewise.
23401         * modules/configmake: Likewise.
23402         * modules/fcntl: Likewise.
23403         * modules/fnmatch: Likewise.
23404         * modules/getopt: Likewise.
23405         * modules/glob: Likewise.
23406         * modules/inttypes: Likewise.
23407         * modules/netinet_in: Likewise.
23408         * modules/poll: Likewise.
23409         * modules/stdbool: Likewise.
23410         * modules/stdint: Likewise.
23411         * modules/sys_select: Likewise.
23412         * modules/sys_socket: Likewise.
23413         * modules/sys_stat: Likewise.
23414         * modules/sysexits: Likewise.
23415         * modules/localcharset: Same as above, but continue using temporary
23416         file named "t-$@" (why different?) rather than the "$@-t" used
23417         everywhere else.
23418
23419         * modules/sysexits (Makefile.am): Replace literal occurrences
23420         of "sysexit.h" more readable, and more consistent, "$@".
23421
23422 2006-09-06  Bruno Haible  <bruno@clisp.org>
23423
23424         * modules/striconv: New file.
23425         * modules/xstriconv: New file.
23426         * MODULES.html.sh (Internationalization functions): Add striconv,
23427         xstriconv.
23428
23429 2006-09-06  Bruno Haible  <bruno@clisp.org>
23430
23431         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
23432         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
23433         not using libtool correctly.
23434
23435 2006-09-06  Bruno Haible  <bruno@clisp.org>
23436
23437         * lib/striconv.h: New file.
23438         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
23439         iconvstring.c.
23440         * lib/xstriconv.h: New file.
23441         * lib/xstriconv.c: New file.
23442
23443 2006-09-06  Bruno Haible  <bruno@clisp.org>
23444
23445         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
23446         lib_..._LDFLAGS.
23447
23448 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23449
23450         * lib/argz_.h: Sync from Libtool.
23451
23452         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
23453                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23454
23455         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
23456
23457 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
23458
23459         * modules/trim: New file.
23460
23461 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
23462
23463         * lib/trim.h: New file.
23464         * lib/trim.c: New file.
23465
23466 2006-09-05  Bruno Haible  <bruno@clisp.org>
23467
23468         * MODULES.html.sh (String handling): Add trim.
23469
23470 2006-09-04  Karl Berry  <karl@gnu.org>
23471
23472         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
23473         until next release.
23474
23475 2006-09-03  Bruno Haible  <bruno@clisp.org>
23476
23477         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
23478         correctly.
23479
23480 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23481
23482         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
23483         not gl_GETLOADAVG.  Omit unneeded semicolons.
23484         Problems reported by Ralf Wildenhues in
23485         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23486         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
23487         at the end, which is the usual gnulib style.
23488
23489         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
23490         of doing all the work ourselves.
23491         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
23492         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
23493
23494 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23495
23496         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
23497         Problem reported by Ralf Wildenhues in
23498         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23499
23500         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
23501         HAVE_STRUCT_STATFS_F_FSTYPENAME.
23502
23503 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23504
23505         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
23506         yesterday's patch by changing test -n to test -z.
23507
23508 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23509
23510         * modules/getloadavg (Files): Add m4/getloadavg.m4.
23511         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
23512         the former is now obsolescent.
23513
23514         * modules/chdir-long (Depends-on): Add fcntl.
23515
23516 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23517
23518         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
23519         obsolescent, and programs should use gnulib instead.
23520         * m4/getloadavg.m4: New file, with contents taken from Autoconf
23521         but with prefixes changed.
23522
23523 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23524
23525         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
23526         or stdbool.h, because they might not exist while configuring.
23527
23528         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
23529         Don't include unistd.h or limits.h; not needed, since chdir-long.h
23530         does that for us.
23531         (O_DIRECTORY): Remove.
23532
23533 2006-08-31  Eric Blake  <ebb9@byu.net>
23534
23535         * gnulib-tool: Don't let emacs change spaces to TAB.
23536
23537 2006-08-31  Bruno Haible  <bruno@clisp.org>
23538
23539         * gnulib-tool: When calling func_import more than once, do it in a
23540         subshell.
23541         Reported by Eric Blake <ebb9@byu.net>.
23542
23543 2006-08-31  Bruno Haible  <bruno@clisp.org>
23544
23545         * gnulib-tool (nl): Remove variable.
23546         (sed_transform_lib_file): Use more robust test for config-h module.
23547         (func_import): Fix typo in 2006-08-25 patch.
23548
23549 2006-08-31  Bruno Haible  <bruno@clisp.org>
23550
23551         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
23552         specified, augment Makefile.am variables instead of assigning them.
23553
23554 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23555
23556         Work around a bug in both the Linux and SunOS 64-bit kernels:
23557         nanosleep mishandles sleeps for longer than 2**31 seconds.
23558         Problem reported by Frank v Waveren in
23559         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
23561         Check for nanosleep bug.
23562         (LIB_NANOSLEEP): Append clock_gettime library if needed.
23563
23564 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23565
23566         Work around a bug in both the Linux and SunOS 64-bit kernels:
23567         nanosleep mishandles sleeps for longer than 2**31 seconds.
23568         Problem reported by Frank v Waveren in
23569         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23570         * lib/nanosleep.c (BILLION): New constant.
23571         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
23572         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
23573         implementation.
23574
23575 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23576
23577         * modules/nanosleep (Depends-on): Add gettime.
23578
23579 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23580         and Simon Josefsson  <jas@extundo.com>
23581         and Oskar Liljeblad  <oskar@osk.mine.nu>
23582
23583         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
23584         * gnulib-tool (func_import): New license type 'unmodifiable license
23585         text'.
23586         * modules/fdl: Use it.  Longer description.
23587         * module/gpl, module/lgpl: New files.
23588
23589 2006-08-30  Jim Meyering  <jim@meyering.net>
23590
23591         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
23592         shadowing the parameter.
23593
23594 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23595
23596         Sync from Libtool:
23597
23598         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23599
23600         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
23601         sharing with gnulib.  Report by Eric Blake.
23602
23603 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23604
23605         * modules/isapipe: New file.
23606         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
23607
23608 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23609
23610         * modules/configmake (Makefile.am): Add a comment, and omit
23611         the CONFIGMAKE_ prefix from generated macro names.  Suggested
23612         by Bruno Haible.
23613
23614 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23615
23616         * m4/isapipe.m4: New file.
23617
23618 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23619
23620         * lib/isapipe.c, lib/isapipe.h: New files.
23621
23622 2006-08-29  Jim Meyering  <jim@meyering.net>
23623
23624         * modules/configmake (Makefile.am): Make configmake.h depend on
23625         Makefile.  Otherwise, a stale configmake.h could hang around.
23626
23627 2006-08-29  Eric Blake  <ebb9@byu.net>
23628
23629         * lib/error.c (error_at_line, print_errno_message): Match libc, after
23630         resolution of upstream bug 3044.
23631
23632 2006-08-29  Bruno Haible  <bruno@clisp.org>
23633
23634         * modules/localcharset (Depends-on): Add configmake.
23635         (Makefile.am): Remove setting of LIBDIR through DEFS.
23636
23637 2006-08-29  Bruno Haible  <bruno@clisp.org>
23638
23639         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
23640         defined.
23641
23642 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23643
23644         * modules/fcntl: New file.
23645         * modules/chdir-safer (Depends-on): Add fcntl.
23646         * modules/fts: Likewise.
23647         * modules/mkdir-p: Likewise.
23648
23649         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
23650         This undoes the most recent change, since we're now addressing the
23651         problem in a different way.
23652
23653         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
23654         into output, since the output might be called Makefile.am even
23655         if $makefile_name is something different.
23656         (func_import): Use $makefile_am rather than
23657         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
23658         empty.
23659
23660         * modules/inttypes (Files): Add m4/inttypes-h.m4.
23661
23662 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23663
23664         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
23665         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
23666         recent change to stdint.m4, since we're now addressing the problem in a
23667         different way.
23668
23669 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23670
23671         * m4/fcntl_h.m4: New file.
23672
23673 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23674
23675         * lib/fcntl_.h: New file.
23676         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
23677         the fcntl module.
23678         * lib/dirchownmod.c: Likewise.
23679         * lib/fts.c: Likewise.
23680
23681         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
23682         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
23683         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
23684         just before including <inttypes.h>, to avoid circular inclusion.
23685
23686 2006-08-28  Jim Meyering  <jim@meyering.net>
23687
23688         * doc/visibility.texi: Actually read and correct the grammar of the
23689         sentence affected by yesterday's change.
23690
23691 2006-08-28  Eric Blake  <ebb9@byu.net>
23692
23693         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
23694         needs wrapper.
23695
23696 2006-08-28  Eric Blake  <ebb9@byu.net>
23697
23698         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
23699
23700 2006-08-28  Eric Blake  <ebb9@byu.net>
23701
23702         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
23703
23704 2006-08-28  Bruno Haible  <bruno@clisp.org>
23705
23706         * modules/c-strstr: New file, from GNU gettext.
23707         * MODULES.html.sh (String handling): Add c-strstr.
23708
23709 2006-08-28  Bruno Haible  <bruno@clisp.org>
23710
23711         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
23712         macros.
23713         Reported by Eric Blake.
23714
23715 2006-08-28  Bruno Haible  <bruno@clisp.org>
23716
23717         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
23718         (VASNPRINTF): Return a string of length > INT_MAX without failing.
23719         * lib/vasprintf.c: Include errno.h, limits.h.
23720         (EOVERFLOW): New fallback definition.
23721         (vasprintf): Test here whether the string length is > INT_MAX.
23722         * lib/vsnprintf.c: Include errno.h, limits.h.
23723         (EOVERFLOW): New fallback definition.
23724         (vsnprintf): Fix bug when generated string was too long for the buffer.
23725         Test here whether the string length is > INT_MAX.
23726
23727 2006-08-28  Bruno Haible  <bruno@clisp.org>
23728
23729         * lib/inttypes_.h (SCNX*): Remove definitions.
23730         Reported by Eric Blake.
23731
23732 2006-08-28  Bruno Haible  <bruno@clisp.org>
23733
23734         * lib/c-strstr.h: New file, from GNU gettext.
23735         * lib/c-strstr.c: New file, from GNU gettext.
23736
23737 2006-08-28  Bruno Haible  <bruno@clisp.org>
23738
23739         * gnulib-tool: Reorder some statements.
23740
23741 2006-08-28  Bruno Haible  <bruno@clisp.org>
23742
23743         * gnulib-tool: New option --makefile-name.
23744         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
23745         $makefile_name.
23746         (func_import): Write $makefile_name to the cache file, and read it from
23747         there unless explicitly specified. Use $makefile_name as file name
23748         instead of Makefile.am. Adjust the recommendations accordingly.
23749
23750 2006-08-28  Bruno Haible  <bruno@clisp.org>
23751
23752         * gnulib-tool (func_verify_module): Check against misapplying patch.
23753
23754 2006-08-28  Bruno Haible  <bruno@clisp.org>
23755
23756         * gnulib-tool (func_relativize, func_relconcat): New functions.
23757         Give an error if --local-dir is given with --update.
23758         Remove trailing slashes from $local_gnulib_dir.
23759         (func_import): Store the relativized $local_gnulib_dir in
23760         gnulib-cache.m4, and read it from there if not specified explicitly.
23761
23762 2006-08-28  Bruno Haible  <bruno@clisp.org>
23763
23764         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
23765         is the current directory. Respect also $local_gnulib_dir.
23766
23767 2006-08-28  Bruno Haible  <bruno@clisp.org>
23768             Simon Josefsson  <jas@extundo.com>
23769
23770         BeOS portability.
23771         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
23772
23773 2006-08-27  Jim Meyering  <jim@meyering.net>
23774
23775         * doc/visibility.texi: Remove duplicate word: "pointer".
23776
23777 2006-08-26  Bruno Haible  <bruno@clisp.org>
23778
23779         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
23780         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
23781         (Makefile.am): Create inttypes.h from inttypes_.h.
23782         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
23783
23784         * modules/imaxabs: New file.
23785
23786         * modules/imaxdiv: New file.
23787
23788 2006-08-26  Bruno Haible  <bruno@clisp.org>
23789
23790         * m4/inttypes.m4: New file.
23791         * m4/_inttypes_h.m4: Remove file.
23792         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
23793         PRI_MACROS_BROKEN.
23794         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
23795
23796         * m4/imaxabs.m4: New file.
23797
23798         * m4/imaxdiv.m4: New file.
23799
23800 2006-08-26  Bruno Haible  <bruno@clisp.org>
23801
23802         * lib/inttypes_.h: New file.
23803         * lib/inttypes.h: Remove file.
23804         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
23805
23806         * lib/imaxabs.c: New file.
23807
23808         * lib/imaxdiv.c: New file.
23809
23810 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23811
23812         New config-h module, so that "make" output needn't be cluttered
23813         by -DHAVE_CONFIG_H.
23814         * MODULES.html.sh (Support for building libraries and executables):
23815         Add config-h.
23816         * modules/config-h: New file.
23817         * gnulib-tool (nl, sed_transform_lib_file): New vars.
23818         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
23819         the config-h module is used.
23820
23821         New configmake module, so that "make" output needn't be cluttered
23822         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
23823         * MODULES.html.sh (Support for building libraries and executables):
23824         Add configmake.
23825         * modules/configmake: New file.
23826
23827 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23828
23829         * m4/config-h.m4: New file.
23830
23831 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23832
23833         * config/srclist.txt: Add elisp-comp.
23834
23835 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23836
23837         * MODULES.html.sh (Support for building libraries and executables):
23838         Add elisp-comp.
23839         * build-aux/elisp-comp: New file.
23840         * modules/elisp-comp: New file.
23841
23842 2006-08-24  Bruno Haible  <bruno@clisp.org>
23843
23844         * gnulib-tool (func_create_testdir): Use non-default values of
23845         sourcebase and m4base.
23846
23847 2006-08-24  Bruno Haible  <bruno@clisp.org>
23848
23849         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
23850         HTML structure.
23851
23852 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23853
23854         * modules/openat (Depends-on): Add lchown.
23855
23856 2006-08-23  Bruno Haible  <bruno@clisp.org>
23857
23858         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
23859         of gl_LOCK_EARLY instead of gl_LOCK.
23860
23861 2006-08-23  Bruno Haible  <bruno@clisp.org>
23862
23863         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
23864         on OSF/1 to no.
23865         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
23866
23867 2006-08-23  Bruno Haible  <bruno@clisp.org>
23868
23869         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
23870         as unusable.
23871
23872         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
23873         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
23874         (gl_LOCK): New macro.
23875
23876 2006-08-22  Simon Josefsson  <jas@extundo.com>
23877
23878         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
23879         to md5 module.
23880
23881 2006-08-22  Simon Josefsson  <jas@extundo.com>
23882
23883         * MODULES.html.sh: Add "Support for maintaining and release
23884         projects".
23885
23886         * build-aux/gnupload: New file, from coreutils.
23887
23888 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23889
23890         Avoid the need for AC_LIBSOURCES in m4 macros.
23891         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
23892         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
23893         * modules/check-version (EXTRA_DIST): Add check-version.h.
23894         * modules/crc (EXTRA_DIST): Add crc.h.
23895         * modules/des (EXTRA_DIST): Add des.h.
23896         * modules/gc (EXTRA_DIST): Add gc.h.
23897         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
23898         * modules/getline (EXTRA_DIST): Add getline.h.
23899         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
23900         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
23901         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
23902         * modules/md2 (EXTRA_DIST): Add md2.h.
23903         * modules/md4 (EXTRA_DIST): Add md4.h.
23904         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
23905         * modules/read-file (EXTRA_DIST): Add read-file.h.
23906         * modules/readline (EXTRA_DIST): Add readline.h.
23907         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
23908         rijndael-api-fst.h.
23909
23910 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23911
23912         * m4/rijndael.m4 (gl_ARCFOUR):
23913         * m4/arctwo.m4 (gl_ARCTWO):
23914         * m4/check-version.m4 (gl_CHECK_VERSION):
23915         * m4/crc.m4 (gl_CRC):
23916         * m4/des.m4 (gl_DES):
23917         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
23918         * m4/gc.m4 (gl_GC):
23919         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
23920         * m4/getline.m4 (gl_FUNC_GETLINE):
23921         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
23922         * m4/hmac-md5.m4 (gl_HMAC_MD5):
23923         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
23924         * m4/md2.m4 (gl_MD2):
23925         * m4/md4.m4 (gl_MD4):
23926         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
23927         * m4/read-file.m4 (gl_FUNC_READ_FILE):
23928         * m4/readline.m4 (gl_FUNC_READLINE):
23929         * m4/rijndael.m4 (gl_RIJNDAEL):
23930         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23931         to get the necessary .h files and whatnot.
23932
23933 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23934
23935         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
23936         gnulib rather than the other way around.
23937         * config/srclistvars.sh (COREUTILS): Remove.
23938
23939 2006-08-22  Jim Meyering  <jim@meyering.net>
23940
23941         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
23942
23943         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
23944
23945 2006-08-22  Eric Blake  <ebb9@byu.net>
23946
23947         * modules/regexprops-generic: New file.
23948         * MODULES.html.sh (Support for building documentation): List it.
23949
23950 2006-08-22  Eric Blake  <ebb9@byu.net>
23951
23952         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
23953         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23954         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
23955         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23956
23957 2006-08-22  Bruno Haible  <bruno@clisp.org>
23958
23959         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
23960         and lib_LTLIBRARIES like the other lib_* variables.
23961
23962 2006-08-22  Bruno Haible  <bruno@clisp.org>
23963
23964         * build-aux/x-to-1.in: New file, from GNU gettext.
23965
23966 2006-08-22  Bruno Haible  <bruno@clisp.org>
23967
23968         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
23969         <utmpx.h> exists.
23970
23971 2006-08-22  Bruno Haible  <bruno@clisp.org>
23972
23973         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
23974         <utmpx.h> exists.
23975
23976 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23977
23978         BeOS portability.
23979         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
23980         exist.
23981         Problem reported by Bruno Haible.
23982
23983 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23984
23985         Avoid the need for AC_LIBSOURCES in m4 macros.
23986         * modules/acl (EXTRA_DIST): Add acl.h.
23987         * modules/argmatch (Files): Add m4/argmatch.m4.
23988         (configure.ac): Add gl_ARGMATCH.
23989         (EXTRA_DIST): Renamed from lib_SOURCES, for
23990         consistency with the other modules.  Remove argmatch.c.
23991         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
23992         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
23993         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
23994         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
23995         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
23996         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
23997         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
23998         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
23999         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
24000         * modules/closeout (EXTRA_DIST): Add closeout.h.
24001         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
24002         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
24003         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
24004         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
24005         dirname.h; remove basename.c and stripslash.c.
24006         * modules/exclude (EXTRA_DIST): Add exclude.h.
24007         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
24008         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
24009         * modules/file-type (EXTRA_DIST): Add file-type.h.
24010         * modules/filemode (EXTRA_DIST): Add filemode.h.
24011         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
24012         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24013         * modules/fpending (EXTRA_DIST): Add __fpending.h.
24014         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
24015         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
24016         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
24017         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
24018         * modules/getdate (EXTRA_DIST): Add getdate.c.
24019         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
24020         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
24021         * modules/getpass (EXTRA_DIST): Add getpass.h.
24022         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
24023         * modules/group-member (EXTRA_DIST): Add group-member.h.
24024         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
24025         * modules/hash (EXTRA_DIST): Add hash.h.
24026         * modules/human (EXTRA_DIST): Add human.h.
24027         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
24028         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
24029         * modules/lchown (EXTRA_DIST): Add lchown.h.
24030         * modules/long-options (EXTRA_DIST): Add long-options.h.
24031         * modules/lstat (EXTRA_DIST): Add lstat.h.
24032         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
24033         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
24034         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
24035         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
24036         * modules/memxor (EXTRA_DIST): Add memxor.h.
24037         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
24038         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
24039         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
24040         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
24041         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
24042         * modules/physmem (EXTRA_DIST): Add physmem.h.
24043         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
24044         * modules/posixver (EXTRA_DIST): Add posixver.h.
24045         * modules/quote (EXTRA_DIST): Add quote.h.
24046         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
24047         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
24048         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
24049         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
24050         regex_internal.h regexec.c.
24051         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
24052         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
24053         * modules/same (EXTRA_DIST): Add same.h.
24054         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
24055         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
24056         * modules/savedir (EXTRA_DIST): Add savedir.h.
24057         * modules/sha1 (EXTRA_DIST): Add sha1.h.
24058         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
24059         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
24060         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
24061         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
24062         * modules/strdup (EXTRA_DIST): Add strdup.h.
24063         * modules/strftime (EXTRA_DIST): Add strftime.h.
24064         * modules/strndup (EXTRA_DIST): Add strndup.h.
24065         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
24066         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
24067         * modules/time_r (EXTRA_DIST): Add time_r.h.
24068         * modules/timespec (EXTRA_DIST): Add timespec.h.
24069         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24070         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
24071         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
24072         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
24073         * modules/userspec (EXTRA_DIST): Add userspec.h.
24074         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
24075         * modules/utimens (EXTRA_DIST): Add utimens.h.
24076         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
24077         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
24078         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
24079         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
24080         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
24081         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
24082         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
24083         * modules/yesno (EXTRA_DIST): Add yesno.h.
24084
24085 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24086
24087         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
24088
24089         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
24090         * m4/dev-ino.m4, same-inode.m4: Remove.
24091
24092         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
24093         * m4/acl.m4 (AC_FUNC_ACL):
24094         * m4/backupfile.m4 (gl_BACKUPFILE):
24095         * m4/c-strtod.m4 (gl_C99_STRTOLD):
24096         * m4/canon-host.m4 (gl_CANON_HOST):
24097         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
24098         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
24099         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
24100         * m4/cloexec.m4 (gl_CLOEXEC):
24101         * m4/close-stream.m4 (gl_CLOSE_STREAM):
24102         * m4/closeout.m4 (gl_CLOSEOUT):
24103         * m4/dirfd.m4 (gl_FUNC_DIRFD):
24104         * m4/dirname.m4 (gl_DIRNAME):
24105         * m4/exclude.m4 (gl_EXCLUDE):
24106         * m4/exitfail.m4 (gl_EXITFAIL):
24107         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
24108         * m4/file-type.m4 (gl_FILE_TYPE):
24109         * m4/filemode.m4 (gl_FILEMODE):
24110         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
24111         * m4/fpending.m4 (gl_FUNC_FPENDING):
24112         * m4/fprintftime.m4 (gl_FPRINTFTIME):
24113         * m4/fts.m4 (gl_FUNC_FTS):
24114         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24115         * m4/getdate.m4 (gl_GETDATE):
24116         * m4/gethrxtime.m4 (gl_GETHRXTIME):
24117         * m4/getpagesize.m4 (gl_GETPAGESIZE):
24118         * m4/getpass.m4 (gl_FUNC_GETPASS):
24119         * m4/gettime.m4 (gl_GETTIME):
24120         * m4/getugroups.m4 (gl_GETUGROUPS):
24121         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
24122         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
24123         * m4/hard-locale.m4 (gl_HARD_LOCALE):
24124         * m4/hash.m4 (gl_HASH):
24125         * m4/idcache.m4 (gl_IDCACHE):
24126         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
24127         * m4/lchown.m4 (gl_FUNC_LCHOWN):
24128         * m4/long-options.m4 (gl_LONG_OPTIONS):
24129         * m4/lstat.m4 (gl_FUNC_LSTAT):
24130         * m4/md5.m4 (gl_MD5):
24131         * m4/memcasecmp.m4 (gl_MEMCASECMP):
24132         * m4/memcoll.m4 (gl_MEMCOLL):
24133         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
24134         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
24135         * m4/memxor.m4 (gl_MEMXOR):
24136         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
24137         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
24138         * m4/modechange.m4 (gl_MODECHANGE):
24139         * m4/mountlist.m4 (gl_MOUNTLIST):
24140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
24141         * m4/openat.m4 (gl_FUNC_OPENAT):
24142         * m4/pathmax.m4 (gl_PATHMAX):
24143         * m4/physmem.m4 (gl_PHYSMEM):
24144         * m4/posixtm.m4 (gl_POSIXTM):
24145         * m4/posixver.m4 (gl_POSIXVER):
24146         * m4/quote.m4 (gl_QUOTE):
24147         * m4/quotearg.m4 (gl_QUOTEARG):
24148         * m4/readtokens.m4 (gl_READTOKENS):
24149         * m4/readutmp.m4 (gl_READUTMP):
24150         * m4/regex.m4 (gl_REGEX):
24151         * m4/safe-read.m4 (gl_SAFE_READ):
24152         * m4/safe-write.m4 (gl_SAFE_WRITE):
24153         * m4/same.m4 (gl_SAME):
24154         * m4/save-cwd.m4 (gl_SAVE_CWD):
24155         * m4/savedir.m4 (gl_SAVEDIR):
24156         * m4/settime.m4 (gl_SETTIME):
24157         * m4/sha1.m4 (gl_SHA1):
24158         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
24159         * m4/stat-macros.m4 (gl_STAT_MACROS):
24160         * m4/stat-time.m4 (gl_STAT_TIME):
24161         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
24162         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
24163         * m4/strdup.m4 (gl_FUNC_STRDUP):
24164         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
24165         * m4/strndup.m4 (gl_FUNC_STRNDUP):
24166         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
24167         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
24168         * m4/time_r.m4 (gl_TIME_R):
24169         * m4/timespec.m4 (gl_TIMESPEC):
24170         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
24171         * m4/unlinkdir.m4 (gl_UNLINKDIR):
24172         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
24173         * m4/userspec.m4 (gl_USERSPEC):
24174         * m4/utimecmp.m4 (gl_UTIMECMP):
24175         * m4/utimens.m4 (gl_UTIMENS):
24176         * m4/xalloc.m4 (gl_XALLOC):
24177         * m4/xgetcwd.m4 (gl_XGETCWD):
24178         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
24179         * m4/xreadlink.m4 (gl_XREADLINK):
24180         * m4/xstrtod.m4 (gl_XSTRTOD):
24181         * m4/yesno.m4 (gl_YESNO):
24182         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24183         to get the necessary .h files and whatnot.
24184
24185 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
24186             Bruno Haible  <bruno@clisp.org>
24187
24188         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
24189         /bin/sh understanding of '!' conditional negation.
24190
24191 2006-08-21  Jim Meyering  <jim@meyering.net>
24192
24193         * modules/openat (Depends-on): Really alphabetize.
24194
24195         * modules/acl (Depends-on): Add error and quote.
24196
24197         * check-module (find_included_lib_files): Add at-func.c to the
24198         ok-to-include-more-than-once white list.
24199
24200         * modules/openat (Depends-on): Add lstat.  Alphabetize.
24201
24202 2006-08-21  Bruno Haible  <bruno@clisp.org>
24203
24204         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24205         Emit a pkgdata_DATA variable only if some snippets add contents to it.
24206         Reported by Martin Lambers <marlam@marlam.de>.
24207
24208 2006-08-21  Bruno Haible  <bruno@clisp.org>
24209
24210         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
24211         specify an installation location, don't emit a noinst_LIBRARIES or
24212         noinst_LTLIBRARIES assignment.
24213
24214 2006-08-21  Bruno Haible  <bruno@clisp.org>
24215
24216         BeOS portability.
24217         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
24218         BeOS has mbrtowc() but no <wctype.h>.
24219
24220 2006-08-21  Bruno Haible  <bruno@clisp.org>
24221
24222         BeOS portability.
24223         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
24224         exist.
24225
24226 2006-08-21  Bruno Haible  <bruno@clisp.org>
24227
24228         BeOS portability.
24229         * lib/mbchar.h: Include <wctype.h> only if it exists.
24230
24231 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24232
24233         Remove files that are no longer needed by their respective modules.
24234         * m4/obstack.m4: Remove.
24235         * m4/strerror_r.m4: Remove.
24236         * m4/uint32_t.m4: Remove.
24237         * m4/uintptr_t.m4: Remove.
24238         * m4/ullong_max.m4: Remove.
24239         * m4/xstrtoimax.m4: Remove.
24240         * m4/xstrtoumax.m4: Remove.
24241
24242         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
24243         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
24244         dependencies now capture this.
24245
24246         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
24247         Do not use AC_LIBSOURCES, since gnulib modules now do this.
24248         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
24249         * m4/human.m4 (gl_HUMAN): Likewise.
24250         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
24251         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
24252
24253         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
24254
24255         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
24256         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
24257         stdint.
24258         * m4/human.m4 (gl_HUMAN): Likewise.
24259         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
24260         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
24261         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24262         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24263         * m4/xstrtol (gl_XSTRTOL): Likewise.
24264
24265         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
24266         AC_TYPE_LONG_LONG_INT.
24267         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24268         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
24269         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
24270         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24271
24272         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
24273         on stdbool.
24274
24275         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
24276         (gl_PREREQ_XSTRTOUL): Remove.
24277
24278         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
24279
24280         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
24281         mode.
24282
24283 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24284
24285         Add and change modules to make it easier for coreutils to use
24286         gnulib-tool.
24287         * modules/backupfile (Files): Remove m4/d-ino.m4.
24288         (Depends-on): Add d-ino.
24289         * modules/cycle-check (Depends-on): Add stdint.
24290         (lib_SOURCES): Add cycle-check.h.
24291         * modules/d-ino: New module.
24292         * modules/d-type: New module.
24293         * modules/error (Files): Remove m4/strerror_r.m4.
24294         * modules/filemode (Files): Add m4/st_dm_mode.m4.
24295         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24296         m4/inttypes_h.m4, m4/uintmax_t.m4.
24297         (Depends-on): Add stdint.
24298         (lib_SOURCES): Add fsusage.h.
24299         * modules/getcwd (Files): Remove d-ino.m4.
24300         (Depends-on): Add d-ino.
24301         * modules/getndelim2 (Depends-on): Add stdint.
24302         * modules/glob (Files): Remove m4/d-type.m4.
24303         (Depends-on): Add d-type.
24304         * modules/host-os: New module.
24305         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
24306         m4/inttypes_h.m4, m4/uintmax_t.m4.
24307         * Depends-on: Add stdint.
24308         (lib_SOURCES): Add human.h.
24309         * modules/inttostr (Files): Remove m4/intmax_t.m4,
24310         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
24311         m4/uintmax_t.m4, m4/ulonglong.m4.
24312         (Depends-on): Add stdint.
24313         (EXTRA_DIST): Add inttostr.h.
24314         * modules/lchmod: New module.
24315         * modules/link-follow: New module.
24316         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
24317         (Depends-on): Add lchmod.
24318         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
24319         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
24320         (Depends-on): Add stdint.
24321         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
24322         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
24323         (Depends-on): Add stdint.
24324         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
24325         * modules/perl: New module.
24326         * modules/regex (Depends-on): Add stdint.
24327         * modules/rmdir-errno: New module.
24328         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24329         m4/intmax_t.m4.
24330         (Depends-on): Add stdint.
24331         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24332         m4/uintmax_t.m4.
24333         (Depends-on): Add stdint.
24334         * modules/unlink-busy: New module.
24335         * modules/utimecmp (Depends-on): Add stdint.
24336         * modules/uptime: New module.
24337         * modules/winsz-ioctl: New module.
24338         * modules/winsz-termios: New module.
24339         * modules/xnanosleep (Depends-on): Add nanosleep.
24340         * modules/ullong_max: Remove.
24341         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
24342         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
24343         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
24344         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
24345         (Depends-on): Add inttypes.
24346         (lib_SOURCES): Add xstrtol.h.
24347         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
24348         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
24349         * MODULES.html.sh: Move 'assert' into the assert section.
24350         Move 'dummy' into the linking section.
24351         Remove ullong_max.
24352         Add section for compatibility checks for POSIX:2001 functions,
24353         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
24354         winsz-ioctl, and winsz-termios into it.
24355         Add lchmod.
24356         Add top-level Misc section and put host-os, perl, and uptime
24357         into it.
24358
24359 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24360
24361         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
24362         now assume the stdint module.  Do not include inttypes.h.
24363         * lib/fsusage.h: Likewise.
24364         * lib/getndelim2.c: Likewise.
24365         * lib/human.h: Likewise.
24366         * lib/inttostr.h: Likewise.
24367         * lib/obstack.c: Likewise.
24368         * lib/regex_internal.h: Likewise.
24369         * lib/tempname.c: Likewise.
24370         * lib/utimecmp.c: Likewise.
24371         * lib/xstrtol.h: Likewise.
24372
24373         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
24374
24375         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
24376         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
24377         * lib/xtime.h: Likewise.
24378
24379 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24380
24381         * modules/openat (Files): Add lib/fchmodat.c.
24382         Fixes problem reported by Jay Youngman.
24383
24384 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24385
24386         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
24387         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
24388
24389 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24390             Bruno Haible  <bruno@clisp.org>
24391
24392         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
24393         and is a script that invokes bison. Tighten the code. Add comments.
24394
24395 2006-08-18  Jim Meyering  <jim@meyering.net>
24396
24397         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
24398         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
24399         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
24400         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
24401
24402 2006-08-18  Bruno Haible  <bruno@clisp.org>
24403
24404         * modules/bison-i18n: New file.
24405         * MODULES.html.sh (Internationalization functions): Add it.
24406
24407 2006-08-18  Bruno Haible  <bruno@clisp.org>
24408
24409         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
24410         sys/statvfs.h. When getmntinfo was found, check its declaration and
24411         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
24412
24413 2006-08-18  Bruno Haible  <bruno@clisp.org>
24414
24415         * m4/bison-i18n.m4: New file, from bison.
24416
24417 2006-08-18  Bruno Haible  <bruno@clisp.org>
24418
24419         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
24420         (ME_DUMMY): Treat "kernfs" as a dummy.
24421         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
24422
24423 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24424
24425         Update from coreutils.
24426
24427         2006-08-15  Jim Meyering  <jim@meyering.net>
24428
24429         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
24430
24431         2006-01-17  Jim Meyering  <jim@meyering.net>
24432
24433         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
24434
24435         2006-01-11  Jim Meyering  <jim@meyering.net>
24436
24437         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
24438         Check for the lchmod function.
24439
24440 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24441
24442         Update from coreutils.
24443
24444         * lib/__fpending.h: Add copyright notice.
24445         * lib/fprintftime.h: Likewise.
24446         * lib/savedir.c: Use (C) in copyright notice.
24447         * lib/savedir.h: Likewise.
24448
24449         2006-08-15  Jim Meyering  <jim@meyering.net>
24450
24451         * lib/at-func.c: New file, with the logic of all emulated at-functions.
24452         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
24453         in support of the EXPECTED_ERRNO macro.
24454         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
24455         definitions.  Instead, define the appropriate symbols and include
24456         "at-func.c".
24457         * lib/mkdirat.c (mkdirat): Likewise.
24458         * lib/fchmodat.c (fchmodat): Likewise.
24459         (ENOSYS): Remove definition.
24460         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
24461         it.  Don't include "unistd--.h" -- it wasn't ever used.
24462
24463         2006-01-17  Jim Meyering  <jim@meyering.net>
24464
24465         Rewrite fts.c not to change the current working directory,
24466         by using openat, fstatat, fdopendir, etc..
24467
24468         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
24469         (HAVE_OPENAT_SUPPORT): Define.
24470         [_LIBC] (fchdir): Don't undef or define; no longer used.
24471         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
24472         Now, this `function' always succeeds, and consumes its file descriptor
24473         parameter -- so callers must not close such FDs.  Update callers.
24474         (diropen_fd, opendirat, cwd_advance_fd): New functions.
24475         (diropen): Add parameter, SP.  Adjust all callers.
24476         Implement using diropen_fd, rather than open.
24477         (fts_open): Initialize new member, fts_cwd_fd.
24478         Remove fts_rft-setting code.
24479         (fts_close): Close fts_cwd_fd, if necessary.
24480         (__opendir2): Define in terms of opendir or opendirat,
24481         depending on whether the FST_NOCHDIR flag is set.
24482         (fts_build): Since fts_safe_changedir consumes its FD, and since
24483         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
24484         and close the dup'd file descriptor upon failure.
24485         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
24486         (fts_safe_changedir): Tweak semantics to reflect that this function
24487         now calls cwd_advance_fd and hence consumes its FD argument.
24488         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
24489         [struct FTS] (fts_rft): Remove now-unused member.
24490         [struct FTS] (fts_cycle.state): Improve comment.
24491
24492         * lib/openat.c (openat_needs_fchdir): New function.
24493         * lib/openat.h (openat_needs_fchdir): Declare it.
24494
24495 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24496
24497         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
24498         Problem and fix reported by Pádraig Brady in
24499         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
24500
24501 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24502
24503         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
24504
24505 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24506
24507         * lib/memcoll.c (memcoll): Optimize for the common case where the
24508         arguments are bytewise equal.
24509
24510 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24511
24512         * doc/regexprops-generic.texi: Add a copyright notice.
24513
24514 2006-08-15  Bruno Haible  <bruno@clisp.org>
24515
24516         * modules/tmpdir (License): Change to LGPL.
24517
24518 2006-08-15  Bruno Haible  <bruno@clisp.org>
24519
24520         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
24521         module.
24522
24523 2006-08-14  Simon Josefsson  <jas@extundo.com>
24524
24525         * config/srclist.txt: Add gnupload.
24526
24527 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24528
24529         Change copyright notice from LGPL 2 to GPL 2, since that's the
24530         standard form used in the gnulib repository.
24531         * tests/test-lock.c: Likewise.
24532         * tests/test-stdint.c: Likewise.
24533         * tests/test-tls.c: Likewise.
24534
24535         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
24536         prelude-manager.  User shorter URLs for GNU projects, without '?'.
24537         Add copyright notice.
24538
24539         * check-module: Add copyright notice.  Output a copyright
24540         notice if "--version" is specified.
24541         * modules/COPYING: New file.
24542         * tests/test-getaddrinfo.c: Add copyright notice.
24543         * tests/test-verify.c: Likewise.
24544
24545 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24546
24547         Change copyright notice from LGPL 2 to GPL 2, since that's the
24548         standard form used in the gnulib repository.
24549         * lib/lock.c: LGPL -> GPL.
24550         * lib/lock.h: Likewise.
24551         * lib/strnlen1.c: Likewise.
24552         * lib/strnlen1.h: Likewise.
24553         * lib/tls.c: Likewise.
24554         * lib/tls.h: Likewise.
24555         * lib/tmpdir.c: Likewise.
24556
24557         * lib/TODO: Remove; this belongs only in coreutils.
24558
24559 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24560
24561         Add copyright notices to long-enough files that lack them, since
24562         otherwise the files aren't clearly free.  Use the same notice that
24563         getdate.texi already uses.
24564         * doc/alloca-opt.texi: Add copyright notice.
24565         * doc/alloca.texi: Likewise.
24566         * doc/ctime.texi: Likewise.
24567         * doc/functions.texi: Likewise.
24568         * doc/gcd.texi: Likewise.
24569         * doc/gnulib-tool.texi: Likewise.
24570         * doc/inet_ntoa.texi: Likewise.
24571         * doc/visibility.texi: Likewise.
24572
24573         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
24574         * doc/quote.texi: Add copyright notice.
24575
24576         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
24577         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
24578         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
24579         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
24580         is now obsolete, and give a pointer to the Sun list.
24581         Add copyright notice.
24582
24583 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24584
24585         * config/srclistvars.sh: Add copyright notice.
24586
24587 2006-08-14  Eric Blake  <ebb9@byu.net>
24588
24589         Import the following change from libc:
24590
24591         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
24592
24593         Upstream bug 2997.
24594         * lib/misc/error.c: Add space between program name and message if file
24595         name is missing.
24596
24597 2006-08-12  Karl Berry  <karl@gnu.org>
24598
24599         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
24600         remove, these originate in gnulib now.
24601
24602 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24603
24604         * doc/Makefile (standards.info standards.html standards.dvi):
24605         Also depend on make-stds.texi.
24606
24607 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24608
24609         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
24610         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
24611
24612         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
24613         in wchar_t.  Problem reported by Eric Blake.
24614
24615         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
24616         LEN is smaller than SIZE.  Suggested by Bruno Haible.
24617         Also, help the compiler to keep LEN in a register.
24618
24619 2006-08-11  Eric Blake  <ebb9@byu.net>
24620
24621         * users.txt: Sort.  Add tar.
24622
24623 2006-08-11  Bruno Haible  <bruno@clisp.org>
24624
24625         * users.txt: New file.
24626
24627 2006-08-11  Bruno Haible  <bruno@clisp.org>
24628
24629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
24630         before <wchar.h>. Needed for OSF/1 and BSD/OS.
24631
24632 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24633
24634         * modules/snprintf (Depends-on): Remove minmax.
24635         (Maintainer): Add self and Bruno.
24636
24637 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24638
24639         * lib/.cppi-disable: Add snprintf.h, socket_.h.
24640         * lib/snprintf.c: Include <errno.h> and <limits.h>.
24641         (EOVERFLOW): Define if the system does not.
24642         Do not include "minmax.h"; it wasn't used.
24643         (snprintf): Don't assume size_t promotes to an unsigned type.
24644         Fix bug when generated string was too long for the buffer: the
24645         buffer's contents are supposed to be the initial prefix of the
24646         output.  Don't assume vasnprintf returns EOVERFLOW if the size
24647         exceeds INT_MAX; do the check ourselves.
24648
24649         Import the following changes from libc:
24650
24651         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
24652
24653         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
24654         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
24655         set wc to the byte which couldn't be converted.
24656         (re_string_reconstruct): Don't clear valid_raw_len before calling
24657         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
24658         tip_context using re_string_context_at.
24659
24660         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
24661
24662         * lib/posix/regex.h: g++ still cannot handled [restrict].
24663
24664         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
24665
24666         * lib/posix/regex.h: Remove special handling for VMS.
24667
24668 2006-08-10  Jim Meyering  <jim@meyering.net>
24669
24670         * modules/same-inode: New module.
24671         * modules/dev-ino: New module.
24672         * modules/cycle-check: Depend on these modules, rather than simply
24673         including their .h files.
24674         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
24675         required via m4/cycle-check.m4.
24676         * modules/same: Depend on new same-inode module, rather than
24677         including same-inode.h.
24678         * modules/chdir-safer: New file.
24679
24680         * modules/chown (Depends-on): Add stat-macros.
24681
24682 2006-08-10  Jim Meyering  <jim@meyering.net>
24683
24684         * m4/cycle-check.m4: New file.
24685         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
24686         * m4/dev-ino.m4, m4/same-inode.m4: New files.
24687
24688 2006-08-10  Eric Blake  <ebb9@byu.net>
24689
24690         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
24691         in from original proposal.
24692
24693 2006-08-10  Eric Blake  <ebb9@byu.net>
24694         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24695
24696         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
24697         namespace.
24698
24699 2006-08-10  Bruno Haible  <bruno@clisp.org>
24700
24701         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
24702         as well.
24703
24704 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24705
24706         Sync from coreutils.
24707
24708         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
24709
24710         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
24711         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
24712
24713 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24714
24715         * modules/restrict: Remove; no longer needed now that we assume
24716         Autoconf 2.59 or later.
24717         * MODULES.html.sh: Remove 'restrict'.
24718         * modules/argp (Depends-on): Remove 'restrict'.
24719         * modules/base64 (Depends-on): Likewise.
24720         * modules/gc (Depends-on): Likewise.
24721         * modules/getaddrinfo (Depends-on): Likewise.
24722         * modules/glob (Depends-on): Likewise.
24723         * modules/inet_ntop (Depends-on): Likewise.
24724         * modules/inet_pton (Depends-on): Likewise.
24725         * modules/memxor (Depends-on): Likewise.
24726         * modules/regex (Depends-on): Likewise.
24727         * modules/strtok_r (Depends-on): Likewise.
24728         * modules/time_r (Depends-on): Likewise.
24729
24730 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24731
24732         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
24733         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
24734         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24735         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
24736         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24737         * m4/memxor.m4 (gl_MEMXOR): Likewise.
24738         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
24739         gl_C_RESTRICT replaced by AC_C_RESTRICT.
24740
24741         Merge from coreutils.
24742         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
24743         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
24744         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24745         * m4/time_r.m4 (gl_TIME_R): Likewise.
24746
24747 2006-08-09  Karl Berry  <karl@gnu.org>
24748
24749         * config/srclist.txt: no more gettext-tools, per Bruno.
24750
24751 2006-08-08  Eric Blake  <ebb9@byu.net>
24752
24753         * modules/verror: New module.
24754         * MODULES.html.sh: Document it.
24755
24756 2006-08-08  Eric Blake  <ebb9@byu.net>
24757
24758         * lib/verror.h, lib/verror.c: New files.
24759
24760 2006-08-08  Eric Blake  <ebb9@byu.net>
24761
24762         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
24763         verror_at_line output complies with GNU Coding Standards even when
24764         file is NULL.
24765
24766 2006-08-07  Bruno Haible  <bruno@clisp.org>
24767
24768         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
24769         versions of AIX.
24770         Reported by Ralf Wildenhues.
24771
24772 2006-08-07  Bruno Haible  <bruno@clisp.org>
24773
24774         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
24775         in an AC_DEFUN. Needed so that the autoconf snippets can use
24776         AC_REQUIRE.
24777
24778 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24779
24780         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24781         Initialize pkgdata_DATA.
24782         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
24783         overriding it.
24784
24785 2006-08-06  Eric Blake  <ebb9@byu.net>
24786
24787         * lib/error.h: Fold in some upstream changes from glibc.
24788         * lib/error.c: Likewise.
24789
24790 2006-08-04  Bruno Haible  <bruno@clisp.org>
24791
24792         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24793         Make the mostlyclean-local rule depend on mostlyclean-generic.
24794         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
24795
24796 2006-07-31  Bruno Haible  <bruno@clisp.org>
24797
24798         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
24799         <stdlib.h>, <string.h>.
24800
24801 2006-07-30  Bruno Haible  <bruno@clisp.org>
24802
24803         * modules/readlink (License): Change to LGPL.
24804
24805 2006-07-30  Bruno Haible  <bruno@clisp.org>
24806
24807         * modules/javaversion (Makefile.am): Distribute javaversion.java and
24808         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
24809         set PKGDATADIR to point to it.
24810
24811 2006-07-30  Bruno Haible  <bruno@clisp.org>
24812
24813         * modules/csharpexec (configure.ac): Comment out macro invocation.
24814         * modules/javaexec (configure.ac): Likewise.
24815         * modules/javacomp-script (configure.ac): Likewise.
24816
24817         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
24818
24819 2006-07-30  Bruno Haible  <bruno@clisp.org>
24820
24821         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
24822         linked-list.
24823
24824 2006-07-30  Bruno Haible  <bruno@clisp.org>
24825
24826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
24827
24828 2006-07-30  Bruno Haible  <bruno@clisp.org>
24829
24830         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24831         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
24832         get removed.
24833
24834 2006-07-29  Bruno Haible  <bruno@clisp.org>
24835
24836         Make it possible for gnulib-tool to work with locally modified or
24837         augmented gnulib repositories.
24838         * gnulib-tool (func_usage): Document --local-dir option.
24839         (local_gnulib_dir): New variable.
24840         Handle --local-dir option.
24841         (func_lookup_file): New function.
24842         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
24843         (func_get_description, func_get_filelist, func_get_description,
24844         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
24845         func_get_automake_snippet, func_get_include_directive,
24846         func_get_license, func_get_maintainer): Use func_lookup_file.
24847         (func_import, func_create_testdir): Use func_lookup_file.
24848
24849 2006-07-29  Bruno Haible  <bruno@clisp.org>
24850
24851         * modules/setenv (Depends-on): Add unistd.
24852
24853 2006-07-29  Bruno Haible  <bruno@clisp.org>
24854
24855         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
24856
24857 2006-07-29  Bruno Haible  <bruno@clisp.org>
24858
24859         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
24860
24861 2006-07-29  Bruno Haible  <bruno@clisp.org>
24862
24863         * gnulib-tool (import, update): If there is no Makefile.am, look at
24864         aclocal.m4, instead of bailing out.
24865
24866 2006-07-29  Bruno Haible  <bruno@clisp.org>
24867
24868         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
24869         Categorize the options by when they are useful.
24870
24871 2006-07-29  Bruno Haible  <bruno@clisp.org>
24872
24873         * gnulib-tool (func_usage): Document option --no-libtool.
24874         Handle option --no-libtool.
24875         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
24876         for changed semantics of $libtool variable.
24877         (func_import): Likewise. If libtool is not used, show this through
24878         an option --no-libtool.
24879         (func_create_testdir): Update.
24880
24881 2006-07-29  Bruno Haible  <bruno@clisp.org>
24882
24883         * gnulib-tool (func_import): Extend error message about missing
24884         --doc-base.
24885
24886 2006-07-29  Bruno Haible  <bruno@clisp.org>
24887
24888         * gnulib-tool (func_import): Don't create the $docbase directory if
24889         there is no file to store there.
24890
24891 2006-07-29  Bruno Haible  <bruno@clisp.org>
24892
24893         * gnulib-tool (autoconf_minversion): If a --dir option is given and
24894         relevant, look for configure.ac there, not in the current directory.
24895         Also use a simple search for AC_PREREQ, not "autoconf --trace".
24896
24897 2006-07-29  Bruno Haible  <bruno@clisp.org>
24898
24899         * gnulib-tool (SORT): New variable.
24900         (func_usage): Undocument --assume-autoconf option.
24901         Remove --assume-autoconf option handling.
24902         (autoconf_minversion): Determine from the contents of configure.ac.
24903         (func_import): Remove autoconf_minversion handling.
24904         Suggested by Eric Blake.
24905
24906 2006-07-29  Bruno Haible  <bruno@clisp.org>
24907
24908         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
24909
24910 2006-07-29  Bruno Haible  <bruno@clisp.org>
24911
24912         * config/srclist.txt (*setenv.[ch]): Remove rules.
24913
24914 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24915
24916         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
24917
24918 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24919
24920         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
24921         arpa/inet.h.
24922
24923 2006-07-28  Simon Josefsson  <jas@extundo.com>
24924
24925         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
24926         * modules/inet_pton (Depends-on): Likewise.
24927
24928 2006-07-28  Simon Josefsson  <jas@extundo.com>
24929
24930         * m4/netinet_in_h.m4: New file.
24931
24932 2006-07-28  Simon Josefsson  <jas@extundo.com>
24933
24934         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
24935         #include's.
24936
24937 2006-07-28  Simon Josefsson  <jas@extundo.com>
24938
24939         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
24940         #include's.
24941
24942 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
24943
24944         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
24945         setgid on directories only if they set these bits.
24946         * lib/modechange.h: Remove obsolete comment about masks.
24947
24948 2006-07-28  Eric Blake  <ebb9@byu.net>
24949
24950         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
24951         macro expansion.
24952
24953 2006-07-28  Bruno Haible  <bruno@clisp.org>
24954
24955         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
24956
24957 2006-07-28  Bruno Haible  <bruno@clisp.org>
24958
24959         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
24960
24961 2006-07-28  Bruno Haible  <bruno@clisp.org>
24962
24963         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24964         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24965         Define fallbacks.
24966         Avoids link error on FreeBSD 4.x.
24967         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24968
24969         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
24970         encoding.
24971         * lib/mbswidth.c (iswcntrl): Likewise.
24972
24973 2006-07-27  Bruno Haible  <bruno@clisp.org>
24974
24975         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
24976         test.
24977
24978 2006-07-27  Bruno Haible  <bruno@clisp.org>
24979
24980         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
24981         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
24982         defined.
24983
24984 2006-07-26  Eric Blake  <ebb9@byu.net>
24985
24986         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
24987
24988 2006-07-26  Eric Blake  <ebb9@byu.net>
24989
24990         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
24991         like mingw that lack mkstemp.
24992         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
24993         avoid compilation warning on mingw.
24994
24995 2006-07-26  Bruno Haible  <bruno@clisp.org>
24996
24997         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
24998         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
24999         INT_FAST*_MIN, INTPTR_MIN.
25000
25001 2006-07-25  Bruno Haible  <bruno@clisp.org>
25002
25003         * modules/version-etc (Depends-on): Add stdarg.
25004
25005 2006-07-25  Bruno Haible  <bruno@clisp.org>
25006
25007         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
25008         complex commands.
25009
25010 2006-07-25  Bruno Haible  <bruno@clisp.org>
25011
25012         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
25013         defined in <stdarg.h> or config.h.
25014
25015 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
25016
25017         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
25018         (gl_STDIO_SAFER): Remove.
25019
25020 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
25021
25022         * MODULES.html.sh (File stream based Input/Output):
25023         Add fopen-safer, tmpfile-safer; remove stdio-safer.
25024         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
25025         * modules/fopen-safer, modules/tmpfile-safer: New files.
25026         * modules/stdio-safer: Remove.
25027
25028 2006-07-24  Bruno Haible  <bruno@clisp.org>
25029
25030         * modules/tmpdir: New file.
25031         * MODULES.html.sh (File system functions): Add it.
25032
25033 2006-07-24  Bruno Haible  <bruno@clisp.org>
25034
25035         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
25036         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
25037
25038 2006-07-24  Bruno Haible  <bruno@clisp.org>
25039
25040         * modules/clean-temp: New file.
25041
25042 2006-07-24  Bruno Haible  <bruno@clisp.org>
25043
25044         * m4/tmpdir.m4: New file, from GNU gettext.
25045
25046 2006-07-24  Bruno Haible  <bruno@clisp.org>
25047
25048         * lib/tmpdir.h: New file, from GNU gettext.
25049         * lib/tmpdir.c: New file, from GNU gettext.
25050
25051 2006-07-24  Bruno Haible  <bruno@clisp.org>
25052
25053         * lib/clean-temp.h: New file, from GNU gettext.
25054         * lib/clean-temp.c: New file, from GNU gettext.
25055
25056 2006-07-23  Eric Blake  <ebb9@byu.net>
25057
25058         * modules/stdio-safer (Files): Add tmpfile-safer.c.
25059         (Depends-on): Add binary-io.
25060
25061 2006-07-23  Eric Blake  <ebb9@byu.net>
25062
25063         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
25064
25065 2006-07-23  Eric Blake  <ebb9@byu.net>
25066
25067         * lib/tmpfile-safer.c: New file.
25068         * lib/stdio-safer.h (fopen_safer): Add prototype.
25069         * lib/stdio--.h (tmpfile): Make safer.
25070
25071 2006-07-23  Bruno Haible  <bruno@clisp.org>
25072
25073         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
25074         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
25075         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
25076         gl_linked_remove_at): Use it.
25077
25078 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25079         and Simon Josefsson <jas@extundo.com>
25080
25081         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
25082
25083         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
25084
25085 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25086
25087         * modules/close-stream: New file.
25088         * modules/closeout (Description): Make it clear that it exits
25089         with a diagnostic on error.
25090         (Depends-on): Add close-stream.  Remove fpending, stdbool.
25091         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
25092
25093 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25094
25095         * m4/close-stream.m4: New file.
25096
25097 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25098
25099         * lib/close-stream.c, lib/close-stream.h: New files.
25100
25101 2006-07-22  Bruno Haible  <bruno@clisp.org>
25102
25103         Merge from GNU gettext 0.15.
25104
25105         2006-05-01  Bruno Haible  <bruno@clisp.org>
25106
25107                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
25108
25109         2006-07-22  Bruno Haible  <bruno@clisp.org>
25110
25111                 * modules/javaversion: New file.
25112                 * MODULES.html.sh (Java): Add javaversion.
25113
25114         2006-03-12  Bruno Haible  <bruno@clisp.org>
25115
25116                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
25117
25118         2005-12-04  Bruno Haible  <bruno@clisp.org>
25119
25120                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
25121                 (untested).
25122
25123         2006-06-21  Bruno Haible  <bruno@clisp.org>
25124
25125                 Avoid warnings from recent versions of mcs.
25126                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
25127                 -o, -L, -r any more. Use options documented since mcs-1.0
25128                 instead. Similarly for -g.
25129
25130         2005-12-04  Bruno Haible  <bruno@clisp.org>
25131
25132                 * build-aux/csharpcomp.sh.in: Suffix for resources is
25133                 .resources, not .resource.
25134
25135         2005-07-09  Bruno Haible  <bruno@clisp.org>
25136
25137                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
25138                 add a .dll suffix.
25139                 Reported by Mark Junker <mjscod@gmx.de>.
25140
25141         2006-07-22  Bruno Haible  <bruno@clisp.org>
25142
25143                 * modules/gettext: Upgrade to gettext-0.15.
25144                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
25145                 m4/visibility.m4.
25146                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
25147
25148 2006-07-22  Bruno Haible  <bruno@clisp.org>
25149
25150         Merge from GNU gettext 0.15.
25151
25152         2006-03-25  Bruno Haible  <bruno@clisp.org>
25153
25154                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
25155
25156         2006-07-21  Bruno Haible  <bruno@clisp.org>
25157
25158                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
25159                 "1.1".
25160
25161         2006-05-09  Bruno Haible  <bruno@clisp.org>
25162
25163                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
25164                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
25165                 for the conftestver execution.
25166
25167         2006-05-01  Bruno Haible  <bruno@clisp.org>
25168
25169                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
25170                 optional target-version argument. Verify that the compiler
25171                 groks source of the specified source-version, or add -source
25172                 option as necessary. Verify that the compiler produces
25173                 bytecode in the specified target-version, or add -target and
25174                 -source options as necessary. Make the result of the test
25175                 available as variable CONF_JAVAC. Also log error output in
25176                 config.log.
25177
25178         2006-03-11  Bruno Haible  <bruno@clisp.org>
25179
25180                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
25181
25182         2006-05-09  Bruno Haible  <bruno@clisp.org>
25183
25184                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
25185                 CLASSPATH_SEPARATOR to a semicolon.
25186
25187         2006-03-12  Bruno Haible  <bruno@clisp.org>
25188
25189                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
25190                 available as variable CONF_JAVA, for subsequent autoconf
25191                 tests. Also log error output in config.log.
25192
25193         2006-07-19  Bruno Haible  <bruno@clisp.org>
25194
25195                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
25196                 that getline works on glibc2 systems. Needed to avoid trouble
25197                 in relocatable.c.
25198                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
25199
25200         2005-12-04  Bruno Haible  <bruno@clisp.org>
25201
25202                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
25203                 launcher (untested).
25204
25205         2005-12-04  Bruno Haible  <bruno@clisp.org>
25206
25207                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
25208
25209         2006-07-22  Bruno Haible  <bruno@clisp.org>
25210
25211                 * gettext.m4: Update from GNU gettext-0.15.
25212                 * nls.m4: Likewise.
25213                 * po.m4: Likewise.
25214                 * inttypes-pri.m4: Likewise.
25215                 * inttypes-h.m4: Renamed from inttypes.m4.
25216                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
25217
25218 2006-07-22  Bruno Haible  <bruno@clisp.org>
25219
25220         Merge from GNU gettext 0.15.
25221
25222         2005-07-05  Bruno Haible  <bruno@clisp.org>
25223
25224                 * printf-args.c (printf_fetchargs): Work around broken
25225                 definition of wint_t on mingw.
25226
25227         2005-02-12  Bruno Haible  <bruno@clisp.org>
25228
25229                 * xallocsa.h: Add extern "C" for C++.
25230
25231         2006-05-17  Bruno Haible  <bruno@clisp.org>
25232
25233                 Cygwin portability.
25234                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
25235
25236         2006-04-30  Bruno Haible  <bruno@clisp.org>
25237
25238                 * progreloc.c: Include <mach-o/dyld.h> if available.
25239                 (find_executable): Use _NSGetExecutablePath when possible.
25240
25241         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
25242
25243                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
25244                 function.
25245
25246         2005-12-29  Bruno Haible  <bruno@clisp.org>
25247
25248                 * progreloc.c (set_program_name_and_installdir): Fix
25249                 compilation error.
25250
25251         2005-12-04  Bruno Haible  <bruno@clisp.org>
25252
25253                 Cygwin portability.
25254                 * progreloc.c: Include <windows.h> also on Cygwin.
25255                 (find_executable): Add support for Cygwin.
25256                 (set_program_name_and_installdir): Handle also platforms with
25257                 nonempty EXEEXT.
25258
25259         2006-07-11  Bruno Haible  <bruno@clisp.org>
25260
25261                 * javacomp.c: Fix a comment.
25262                 Reported by Jim Meyering.
25263
25264         2006-04-30  Bruno Haible  <bruno@clisp.org>
25265
25266                 * javacomp.h (compile_java_class): Add source_version,
25267                 target_version arguments.
25268                 * javacomp.c: Rewritten to choose only a compiler that
25269                 respects the specified source_version and target_version.
25270
25271         2006-06-27  Bruno Haible  <bruno@clisp.org>
25272
25273                 Assume correct S_ISDIR macro.
25274                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
25275
25276         2006-07-22  Bruno Haible  <bruno@clisp.org>
25277
25278                 * javaversion.h: New file, from GNU gettext.
25279                 * javaversion.c: New file, from GNU gettext.
25280                 * javaversion.java: New file, from GNU gettext.
25281                 * javaversion.class: New file, from GNU gettext.
25282
25283         2006-05-17  Bruno Haible  <bruno@clisp.org>
25284
25285                 Cygwin portability.
25286                 * javaexec.c (execute_java_class): Test for jview program
25287                 also on Cygwin.
25288
25289         2006-04-09  Bruno Haible  <bruno@clisp.org>
25290
25291                 * fatal-signal.c: Don't include string.h.
25292                 (at_fatal_signal): Use a copying loop instead of memcpy.
25293
25294         2005-12-04  Bruno Haible  <bruno@clisp.org>
25295
25296                 * csharpexec.c: Add support for 'clix' launcher (untested).
25297                 (execute_csharp_using_sscli): New function.
25298                 (execute_csharp_program): Call it.
25299
25300         2006-06-21  Bruno Haible  <bruno@clisp.org>
25301
25302                 Avoid warnings from recent versions of mcs.
25303                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
25304                 -o, -L, -r any more. Use options documented since mcs-1.0
25305                 instead. Similarly for -g.
25306
25307         2005-07-09  Bruno Haible  <bruno@clisp.org>
25308
25309                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
25310                 add a .dll suffix.
25311                 Reported by Mark Junker <mjscod@gmx.de>.
25312
25313         2006-06-17  Bruno Haible  <bruno@clisp.org>
25314
25315                 * config.charset: Update for NetBSD 3.0.
25316
25317         2006-05-17  Bruno Haible  <bruno@clisp.org>
25318
25319                 Cygwin portability.
25320                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
25321
25322         2006-05-16  Bruno Haible  <bruno@clisp.org>
25323
25324                 * localcharset.c [CYGWIN]: Include <windows.h>.
25325                 (get_charset_aliases): For Cygwin, return the same CPxxx
25326                 aliases list as under WIN32.
25327                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
25328                 the environment variables. Fall back to GetACP().
25329
25330         2006-04-05  Bruno Haible  <bruno@clisp.org>
25331
25332                 * config.charset: Update Juan Manuel Guerrero's address.
25333
25334         2005-02-12  Bruno Haible  <bruno@clisp.org>
25335
25336                 * allocsa.h: Add extern "C" for C++.
25337
25338         2005-02-10  Bruno Haible  <bruno@clisp.org>
25339
25340                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
25341                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
25342
25343         2006-07-22  Bruno Haible  <bruno@clisp.org>
25344
25345                 * gettext.h: Update to GNU gettext-0.15.
25346
25347 2006-07-22  Bruno Haible  <bruno@clisp.org>
25348
25349         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
25350         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
25351         lib-prefix.m4, longdouble.m4, ssize_t.m4.
25352
25353 2006-07-21  Eric Blake  <ebb9@byu.net>
25354
25355         * modules/stdlib-safer: New file.
25356         * MODULES.html.sh (File stream based Input/Output): Add
25357         stdlib-safer.
25358
25359 2006-07-21  Eric Blake  <ebb9@byu.net>
25360
25361         * lib/stdlib-safer.h: New file from coreutils, required by
25362         stdlib--.h.
25363
25364 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
25365
25366         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
25367
25368 2006-07-20  Bruno Haible  <bruno@clisp.org>
25369
25370         * gnulib-tool: Recognize new option --assume-autoconf.
25371         (autoconf_minversion): New variable.
25372         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
25373
25374 2006-07-20  Bruno Haible  <bruno@clisp.org>
25375
25376         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
25377
25378 2006-07-19  Derek R. Price  <derek@ximbiot.com>
25379
25380         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
25381         Reindent and repaginate.
25382
25383 2006-07-19  Derek Price  <derek@ximbiot.com>
25384
25385         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
25386         Correct grammar.
25387
25388 2006-07-17  Bruno Haible  <bruno@clisp.org>
25389
25390         * modules/list: New file.
25391         * modules/array-list: New file.
25392         * modules/carray-list, modules/carray-list-tests: New files.
25393         * modules/linked-list, modules/linked-list-tests: New files.
25394         * modules/avltree-list, modules/avltree-list-tests: New files.
25395         * modules/rbtree-list, modules/rbtree-list-tests: New files.
25396         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
25397         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
25398         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
25399         * modules/oset: New file.
25400         * modules/array-oset: New file.
25401         * modules/avltree-oset, modules/avltree-oset-tests: New files.
25402         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
25403         * tests/test-carray_list.c: New file.
25404         * tests/test-linked_list.c: New file.
25405         * tests/test-avltree_list.c: New file.
25406         * tests/test-rbtree_list.c: New file.
25407         * tests/test-linkedhash_list.c: New file.
25408         * tests/test-avltreehash_list.c: New file.
25409         * tests/test-rbtreehash_list.c: New file.
25410         * tests/test-avltree_oset.c: New file.
25411         * tests/test-rbtree_oset.c: New file.
25412         * MODULES.html.sh (Container data structures): New section.
25413
25414 2006-07-17  Bruno Haible  <bruno@clisp.org>
25415
25416         * m4/gl_list.m4: New file.
25417
25418 2006-07-17  Bruno Haible  <bruno@clisp.org>
25419
25420         * lib/gl_list.h: New file.
25421         * lib/gl_list.c: New file.
25422         * lib/gl_array_list.h: New file.
25423         * lib/gl_array_list.c: New file.
25424         * lib/gl_carray_list.h: New file.
25425         * lib/gl_carray_list.c: New file.
25426         * lib/gl_linked_list.h: New file.
25427         * lib/gl_linked_list.c: New file.
25428         * lib/gl_anylinked_list1.h: New file.
25429         * lib/gl_anylinked_list2.h: New file.
25430         * lib/gl_avltree_list.h: New file.
25431         * lib/gl_avltree_list.c: New file.
25432         * lib/gl_anyavltree_list1.h: New file.
25433         * lib/gl_anyavltree_list2.h: New file.
25434         * lib/gl_rbtree_list.h: New file.
25435         * lib/gl_rbtree_list.c: New file.
25436         * lib/gl_anyrbtree_list1.h: New file.
25437         * lib/gl_anyrbtree_list2.h: New file.
25438         * lib/gl_anytree_list1.h: New file.
25439         * lib/gl_anytree_list2.h: New file.
25440         * lib/gl_linkedhash_list.h: New file.
25441         * lib/gl_linkedhash_list.c: New file.
25442         * lib/gl_anyhash_list1.h: New file.
25443         * lib/gl_anyhash_list2.h: New file.
25444         * lib/gl_avltreehash_list.h: New file.
25445         * lib/gl_avltreehash_list.c: New file.
25446         * lib/gl_rbtreehash_list.h: New file.
25447         * lib/gl_rbtreehash_list.c: New file.
25448         * lib/gl_anytreehash_list1.h: New file.
25449         * lib/gl_anytreehash_list2.h: New file.
25450
25451         * lib/gl_oset.h: New file.
25452         * lib/gl_oset.c: New file.
25453         * lib/gl_array_oset.h: New file.
25454         * lib/gl_array_oset.c: New file.
25455         * lib/gl_avltree_oset.h: New file.
25456         * lib/gl_avltree_oset.c: New file.
25457         * lib/gl_rbtree_oset.h: New file.
25458         * lib/gl_rbtree_oset.c: New file.
25459         * lib/gl_anytree_oset.h: New file.
25460
25461 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25462
25463         * m4/mkancesdirs.m4: New file.
25464         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
25465         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
25466         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
25467         it.
25468
25469 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25470
25471         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
25472         * lib/mkancesdirs.h: New files.
25473         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
25474         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
25475         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
25476         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
25477         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
25478         callers changed.  Revamp internals significantly, by not
25479         attempting to create directories that are temporarily more
25480         permissive than the final results.  Do not attempt to use
25481         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
25482         This removes some race conditions, fixes some bugs, and simplifies
25483         things.  Use new dirchownmod function to do owner and mode changes.
25484         * lib/mkdir-p.h: Likewise.
25485         * lib/modechange.c (octal_to_mode): New function.
25486         (struct mode_change): New member mentioned.
25487         (make_node_op_equals): New arg mentioned.  All callers changed.
25488         (mode_compile): Keep track of which mode bits the user has explicitly
25489         mentioned.
25490         (mode_adjust): New arg DIR, so that we implement the X op correctly.
25491         New arg PMODE_BITS, to keep track of which mode bits the user
25492         mentioned; it treats S_ISUID and S_ISGID speciall.
25493         All callers changed.
25494         * lib/modechange.h: Likewise.
25495
25496 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25497
25498         * MODULES.html.sh: Add mkancestors.
25499         * modules/mkancesdirs: New module.
25500         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
25501         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
25502         The chdir-safer and afs files are now orphans; I'll remove them
25503         unless someone speaks up.
25504         Add lib/dirchownmod.c, lib/dirchownmod.h.
25505         (Depends-on): Remove alloca, chown, save-cwd, dirname.
25506         Add lchown, mkancesdirs.
25507         (Maintainer): Add self.
25508
25509 2006-07-15  Karl Berry  <karl@gnu.org>
25510
25511         * gnulib-tool: help message wording/arrangement.
25512
25513 2006-07-14  Simon Josefsson  <jas@extundo.com>
25514
25515         * doc/gnulib.texi (Libtool and Windows): New section.
25516
25517 2006-07-12  Simon Josefsson  <jas@extundo.com>
25518
25519         * modules/gendocs (License): Fix license, approved by Karl.
25520
25521 2006-07-12  Eric Blake  <ebb9@byu.net>
25522
25523         * MODULES.html.sh: Add gendocs.
25524
25525 2006-07-11  Eric Blake  <ebb9@byu.net>
25526
25527         * modules/fdl: New module, to install doc/fdl.texi.
25528         * MODULES.html.sh: Add new section for documentation modules.
25529         * gnulib-tool: Avoid space-tab.
25530         (--doc-base): New option, to manage files from doc.
25531
25532 2006-07-11  Eric Blake  <ebb9@byu.net>
25533
25534         * m4/absolute-header.m4: Fix comments to match recent change.
25535
25536 2006-07-11  Eric Blake  <ebb9@byu.net>
25537
25538         * gnulib-tool: List --doc-base before --tests-base.
25539
25540 2006-07-11  Derek R. Price  <derek@ximbiot.com>
25541
25542         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
25543
25544 2006-07-11  Bruno Haible  <bruno@clisp.org>
25545
25546         * README: Mention where to put documentation.
25547
25548 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25549
25550         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
25551
25552 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25553
25554         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
25555         to stdint.m4.
25556
25557 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25558
25559         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
25560         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
25561         "no/such/file/stdint.h" when there is no such file, so that
25562         the resulting C code can be parsed by dodgy compilers.
25563         Problems reported by Bob Proulx.
25564
25565 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25566
25567         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
25568         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25569         macros into the GNU _D_EXACT_NAMLEN.
25570         * lib/savedir.c:  Likewise.
25571         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
25572
25573 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25574         and Paul Eggert  <eggert@cs.ucla.edu>
25575
25576         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
25577         * m4/savedir.m4:
25578         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25579         macros into the GNU _D_EXACT_NAMLEN.
25580
25581 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25582
25583         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
25584         around the absolute name, to work around a problem with the HP-UX
25585         11.23 native C compiler, reported by Bob Proulx.
25586
25587 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25588
25589         * doc/maintain.texi, make-stds.texi: Sync from
25590         <http://savannah.gnu.org/projects/gnustandards>.
25591
25592 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25593
25594         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
25595
25596 2006-07-09  Jim Meyering  <jim@meyering.net>
25597
25598         * m4/glob.m4: Remove a doubled word in a comment.
25599
25600 2006-07-09  Jim Meyering  <jim@meyering.net>
25601
25602         * lib/argp-pv.c: Remove a doubled word in a comment.
25603         * lib/check-version.c (check_version): Likewise.
25604         * lib/javacomp.c (compile_java_class): Likewise.
25605
25606 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25607
25608         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
25609         for the benefit of people using Autoconf 2.60.  If you want to
25610         support older Autoconf versions you can copy m4/onceonly_2_57.m4
25611         (or m4/onceonly.m4, if pre-2.57) manually.
25612
25613 2006-07-08  Jim Meyering  <jim@meyering.net>
25614
25615         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
25616         comment.
25617         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
25618         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
25619         comment.
25620
25621 2006-07-08  Jim Meyering  <jim@meyering.net>
25622
25623         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
25624
25625 2006-07-07  Simon Josefsson  <jas@extundo.com>
25626
25627         * tests/test-crc.c: Change expected crc value, the test vector
25628         were probably computed using the old broken crc.c?
25629
25630 2006-07-06  Simon Josefsson  <jas@extundo.com>
25631
25632         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
25633         now the canonical place for the M4 file).
25634
25635         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
25636         from the sys_socket dependency now.
25637
25638         * modules/inet_pton (Files): Ditto.
25639
25640         * modules/inet_ntop (Files): Ditto.
25641
25642 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25643
25644         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
25645         not gl_PREREQ_GETUSERSHELL.
25646
25647 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25648
25649         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
25650         with only one argument, for Autoconf 2.60.
25651         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
25652         expand to nothing, so add a shell command to avoid syntax error.
25653         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25654
25655 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25656
25657         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
25658
25659 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25660
25661         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
25662         no longer needed.  Check for isblank decl.
25663         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
25664         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
25665         of existence.
25666
25667 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25668
25669         * lib/getloadavg.c: Use __VMS, not VMS.
25670         * lib/getopt.c: Likewise.
25671         * lib/getpagesize.h: Likewise.
25672         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
25673         and probably does not work.
25674
25675 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25676
25677         * lib/.cppi-disable: Add wcwidth.
25678         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
25679         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
25680         (ISGRAPH): Remove.  All uses changed to isgraph.
25681         (FOLD) [!defined _LIBC]: Remove special case.
25682         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
25683         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
25684         HAVE_ISBLANK.
25685         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
25686         case.
25687
25688 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
25689
25690         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
25691         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
25692         brackets.  Other minor changes to suppress some compiler
25693         warnings.
25694
25695 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25696         and Paul Eggert  <eggert@cs.ucla.edu>
25697
25698         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
25699         of invoking obsolescent AC_HEADER_DIRENT macro.
25700         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25701         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
25702         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25703         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25704         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
25705         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25706         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
25707         * m4/readdir.m4: Remove; no longer needed.
25708
25709 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25710         and Paul Eggert  <eggert@cs.ucla.edu>
25711
25712         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
25713         Don't worry about this obsolete case any more.
25714         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
25715         directories.
25716         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
25717         worry about this obsolete case any more.
25718         * lib/fts.c: Likewise.
25719         * lib/getcwd.c: Likewise.
25720         * lib/glob.h: Likewise.
25721         * lib/savedir.c: Likewise.
25722
25723 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25724
25725         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
25726         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
25727         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
25728         needed.
25729         All uses removed.
25730         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25731         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25732         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
25733         needed.
25734         * m4/getdate.m4 (gl_GETDATE): Likewise.
25735         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25736         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25737         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25738         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25739         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25740         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25741         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
25742         needed.
25743
25744 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25745
25746         * lib/memcasecmp.c: Include <limits.h>.
25747         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
25748         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
25749         Don't assume isdigit succeeds only on '0' through '9'.
25750
25751 2006-07-05  Eric Blake  <ebb9@byu.net>
25752
25753         * modules/getaddrinfo (Depends-on): Add snprintf.
25754
25755 2006-07-05  Eric Blake  <ebb9@byu.net>
25756
25757         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
25758         to avoid 'header present but could not be compiled' on cygwin.
25759
25760 2006-07-05  Eric Blake  <ebb9@byu.net>
25761
25762         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
25763         missing from netdb.h.
25764         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
25765
25766 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25767
25768         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
25769         no longer needed.
25770         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
25771         * m4/getdate.m4 (gl_GETDATE): Likewise.
25772         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25773         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25774         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25775         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25776         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25777
25778 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25779
25780         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
25781         All uses of is_space replaced by isspace.
25782         * lib/exit.h: Don't talk about STDC_HEADERS.
25783         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
25784         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
25785         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
25786         replaced by isprint etc.
25787         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
25788         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25789         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
25790         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
25791         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
25792         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25793
25794 2006-07-05  Bruno Haible  <bruno@clisp.org>
25795
25796         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
25797         the function exists, before testing against AIX.
25798         Reported by Martin Lambers <marlam@marlam.de>.
25799
25800 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25801
25802         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
25803         From Mark D. Baushke.
25804
25805 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25806
25807         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
25808         to the absolute name, not just one, to bypass Sun C 5.8's
25809         "warning: #include of /usr/include/... may be non-portable".
25810
25811 2006-07-04  Eric Blake  <ebb9@byu.net>
25812
25813         * modules/dirname-tests: New test module.
25814         * tests/test-dirname.c: New file, replacing dirname.c
25815         TEST_DIRNAME section that was recently deleted.
25816
25817 2006-07-04  Bruno Haible  <bruno@clisp.org>
25818
25819         Assume ANSI C header files and <ctype.h> functions.
25820         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
25821         (mbsnwidth): Use isprint, iscntrl instead.
25822
25823 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25824
25825         Merge from coreutils.
25826         * MODULES.html.sh: Add xstrtold.
25827         * modules/xstrtold: New file.
25828         * modules/cycle-check (Files): Add lib/same-inode.h.
25829         * modules/dirname (Files): Add m4/double-slash-root.m4.
25830         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
25831         * modules/mkdir-p (Files): Add lib/same-inode.h.
25832         * modules/same (Files): Add lib/same-inode.h.
25833
25834 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25835
25836         * m4/absolute-header.m4: Renamed from full-header-path.m4.
25837         This is to keep the terminology clean; POSIX talks about
25838         "absolute pathnames", not "full pathnames", but the GNU
25839         Coding Standards say to use "path" for something else;
25840         so use "absolute" to keep both sides happy.
25841         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
25842         Set gl_absolute_header, not gl_full_header_path.
25843         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
25844         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
25845         All uses changed.
25846
25847         Merge from coreutils.
25848
25849         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25850
25851         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
25852         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
25853         want to require the building of c-strtod.o.
25854         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
25855         needs -lm directly.
25856         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
25857
25858         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
25859
25860         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
25861         --as-needed option if available.  Problem reported by Albert Chin in
25862         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
25863         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
25864         cc merely issues a bunch of annoying warnings for --as-needed
25865         (this problem was reported by Bob Proulx).  Also, try linking with
25866         -lm to detect a bug in binutils 2.16 (this problem was reported
25867         by Ralf Wildenhues).
25868
25869         2006-06-18  Jim Meyering  <jim@meyering.net>
25870
25871         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
25872         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
25873         macro.
25874         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
25875         also check for glibc-2.4's abort-inducing bug.
25876
25877         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
25878         Low-probability clean-up should be to use rmdir to get rid of
25879         the just-created directory, not unlink.
25880
25881         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
25882         configure fail, and request a bug report to inform us about it.
25883         Add a comment that, barring reports to the contrary, in 2007 we'll
25884         assume ftruncate is universally available.
25885
25886         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25887
25888         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
25889
25890         2006-03-12  Jim Meyering  <jim@meyering.net>
25891
25892         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
25893         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
25894         * m4/same.m4 (gl_SAME): Likewise.
25895         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
25896
25897         2006-03-11  Eric Blake  <ebb9@byu.net>
25898
25899         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
25900         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
25901         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
25902         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
25903
25904 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25905
25906         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
25907         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
25908         reported by Mark D. Baushke, one in
25909         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
25910
25911         Merge from coreutils.
25912
25913         * lib/.cppi-disable: Add stdint_.h.
25914         * lib/.cvsignore: Add stdint.h.
25915
25916         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25917
25918         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
25919         both double and long double versions.
25920         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
25921         * lib/xstrtold.c: New file.
25922         * lib/xstrtod.h (xstrtold): New decl.
25923
25924         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
25925
25926         * lib/filemode.c (setst): Remove.
25927         (strmode): Rewrite to avoid setst.  This makes the code shorter,
25928         (arguably) clearer, and the generated code is a bit smaller on my
25929         Debian GNU/Linux stable x86 host.
25930
25931         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25932
25933         * lib/filemode.c: Include "filemode.h" first, to test the interface.
25934         Assume that filemode.h includes sys/types.h and sys/stat.h.
25935         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
25936         (ftypelet): Reorder to put common cases first, for efficiency.
25937         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
25938         to do 'M'.
25939         (strmode): Renamed from mode_string, and now stores 12 bytes instead
25940         of 10, for compatibility with FreeBSD.  All callers changed.
25941         (filemodestring): Now stores 12 bytes instead of 10, and sets file
25942         types that can't be deduced solely from st_mode.  First arg is now a
25943         const pointer.
25944         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
25945         (strmode): Renamed from mode_string.
25946         (filemodestring): New decl.
25947         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
25948         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
25949         needed.
25950         (S_ISPORT, S_ISWHT): New macros, if not already defined.
25951
25952         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
25953
25954         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
25955         fsusage.h now does that.  Include fsusage.h first, to test interface.
25956         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
25957         at most one method (the old code could have generated decls that
25958         didn't conform to C89, not that this was ever exercised).
25959         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
25960
25961         2006-03-19  Jim Meyering  <jim@meyering.net>
25962
25963         Work even in a chroot where d_ino values for entries in "/"
25964         don't match the stat.st_ino values for the same names.
25965         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
25966         number, iterate through all entries again, using lstat instead.
25967         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
25968         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
25969
25970         * lib/getcwd.c (__getcwd): Clarify a comment.
25971         Use memcpy in place of a call to strcpy.
25972
25973         2006-03-12  Jim Meyering  <jim@meyering.net>
25974
25975         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
25976         matches that of the current directory (which we're about to chdir ".."
25977         out of), then save the dev-ino of the parent, instead.
25978
25979         * lib/same-inode.h (SAME_INODE): New file/macro.
25980         * lib/chdir-safer.c (SAME_INODE): Remove definition.
25981         Include "same-inode.h", instead.
25982         * lib/same.c: Likewise.
25983         * lib/cycle-check.h: Include "same-inode.h".
25984         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
25985         * lib/cycle-check.c (SAME_INODE): Remove definition.
25986         * lib/root-dev-ino.h: Include "same-inode.h".
25987
25988         2006-03-11  Eric Blake  <ebb9@byu.net>
25989
25990         * lib/same.c (same_name): s/base_name/last_component/
25991         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
25992         * lib/filenamecat.c (file_name_concat): Likewise.
25993
25994         2006-03-11  Eric Blake  <ebb9@byu.net>,
25995                     Paul Eggert  <eggert@cs.ucla.edu>
25996
25997         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
25998         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
25999         drive prefix.
26000         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
26001         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
26002         (last_component): New method.
26003         * lib/dirname.c (dir_len): Determine when drive letters need a
26004         subsequent slash.  Preserve // when it is special.
26005         (dir_name): Don't append dot when drive letter is absolute.
26006         [TEST_DIRNAME]: Move into a full-blown gnulib test.
26007         * lib/basename.c (base_name): New semantics - malloc the result.
26008         Preserve // when it is special.  Preserve relative files that look
26009         like drive letters.
26010         (base_len): Preserve // when it is special.
26011         (last_component): New method, similar to old base_name semantics.
26012         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
26013         base_name.  Strip redundant slashes from ///.
26014
26015 2006-07-03  Jim Meyering  <jim@meyering.net>
26016
26017         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
26018         macro is used before the first cycle_check call.
26019
26020 2006-07-03  Eric Blake  <ebb9@byu.net>
26021
26022         * modules/dirname (Depends-on): Add xstrndup.
26023
26024 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
26025
26026         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
26027         test cases, so that config.log is a bit easier to follow.
26028
26029 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
26030
26031         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
26032         both are 64 bits, since this seems to be the tradition, and this
26033         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
26034         we ever run into a host that prefers long long to long in this
26035         case, we'll need another configure-time test.  Problem reported by
26036         Jim Meyering.
26037
26038 2006-07-02  Eric Blake  <ebb9@byu.net>
26039
26040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
26041
26042 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26043
26044         * modules/inttypes (Depends-on): No longer depends on stdint.
26045         * modules/stdint (Description): Say more about assumptions.
26046         Say that the fast types might differ.  Say macros are used.
26047         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
26048         (Makefile.am): Revise list of substituted symbols to match
26049         new stdint.m4.
26050         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
26051         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
26052         * tests/test-stdint.c (verify_same_types)
26053         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
26054         the code conforms to C99/C89.
26055         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
26056         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
26057
26058 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26059
26060         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
26061         but fix a bug, by requiring at least 64 bits.
26062         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26063         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
26064         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
26065         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
26066
26067         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
26068         changes.  Make 2.59 a prerequisite.  Check and substitute for
26069         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
26070         inttypes.h.  Do not use special include files; just use the
26071         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
26072         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
26073         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
26074         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
26075         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
26076         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
26077         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
26078         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
26079         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
26080         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
26081         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
26082         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
26083         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
26084         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
26085         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
26086         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
26087         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
26088         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
26089         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
26090         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
26091         WINT_MAX.  Check for C99 conformance more strictly, by detecting
26092         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
26093         not check for things that C99 does not require, e.g., int8_t.  If
26094         a test isn't needed unless <stdint.h> isn't working, and is
26095         unlikely to be needed for any other reason, then don't do it
26096         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
26097         size_t, since we assume C89 freestanding at least.  Do not check
26098         for sig_atomic_t, wchar_t, or wint_t, since the code now does
26099         the right thing even if the types are not defined.  Instead use:
26100         (gl_STDINT_TYPE_PROPERTIES): New macro.
26101         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
26102         testing whether <sys/types.h> clashes, as Autoconf does this for
26103         us now.  All uses removed.
26104         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
26105         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
26106         (gl_CHECK_TYPE_SAME):
26107         Remove; no longer needed.
26108         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
26109         exists, since we'll return 0 anyway in that case.
26110         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
26111
26112 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26113
26114         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
26115         possible collision with system files.
26116         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
26117         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
26118         WCHAR_MIN and WCHAR_MAX in this case.
26119         (<stddef.h>): Do not include; no longer needed.
26120         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
26121         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
26122         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
26123         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
26124         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
26125         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
26126         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
26127         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
26128         !defined(__c99))]: Include in this case too, since it's harmless
26129         now.
26130         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
26131         dangerous to do so.
26132         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
26133         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
26134         (_STDINT_MIN, _STDINT_MAX): New macros.
26135         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
26136         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
26137         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
26138         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
26139         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
26140         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
26141         macros, not typedefs; this simplifies things quite a bit.
26142         Use long int for all types narrower than int64_t.
26143         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
26144         Define in terms of long long int or int64_t or long int,
26145         not int64_t or int32_t.  This saves some compile-time testing.
26146         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
26147         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
26148         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
26149         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
26150         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
26151         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
26152         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
26153         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
26154         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
26155         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
26156         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26157         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26158         undef any previous version and define our own version, for
26159         simplicity and consistency with the new macros for types.
26160         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26161         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26162         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
26163         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
26164         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
26165         @WINT_T_SUFFIX@ to keep things simple here.
26166         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
26167         Simplify by assuming typical 8/16/32/64 host, since we're
26168         already doing that elsewhere anyway.
26169         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
26170         and assume long long int is 64 bits if available.  This
26171         speeds up 'configure'.
26172
26173 2006-07-01  Eric Blake  <ebb9@byu.net>
26174
26175         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
26176         Reported by Andreas Buening.
26177
26178 2006-07-01  Eric Blake  <ebb9@byu.net>
26179
26180         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
26181
26182 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
26183
26184         * lib/getaddrinfo.c: fixed typo
26185
26186 2006-06-29  Jim Meyering  <jim@meyering.net>
26187
26188         * modules/strftime (Maintainer): Add my name, since with the
26189         FPRINTFTIME changes strftime.c has forked from glibc.
26190
26191 2006-06-29  Eric Blake  <ebb9@byu.net>
26192
26193         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
26194
26195 2006-06-29  Eric Blake  <ebb9@byu.net>
26196
26197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
26198
26199 2006-06-29  Eric Blake  <ebb9@byu.net>
26200
26201         * lib/stat_.h: New file.
26202
26203 2006-06-29  Eric Blake  <ebb9@byu.net>
26204
26205         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
26206         unused static function.
26207
26208 2006-06-29  Eric Blake  <ebb9@byu.net>
26209
26210         * doc/functions.texi (Function Portability): Document missing lstat
26211         on mingw.
26212
26213 2006-06-29  Eric Blake  <ebb9@byu.net>
26214
26215         * MODULES.html.sh: Add sys_stat.
26216         * modules/sys_stat: New module.
26217         * modules/mkstemp (Depends-on): Add sys_stat.
26218
26219 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26220
26221         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
26222
26223 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26224
26225         * m4/c-bs-a.m4: Removed.
26226
26227 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26228
26229         * lib/strftime.c: Assume strftime() exists.
26230
26231 2006-06-29  Derek Price  <derek@ximbiot.com>
26232
26233         * modules/c-bs-a: Removed - \a is C89.
26234         * MODULES.html.sh: Remove c-bs-a.
26235
26236 2006-06-29  Bruno Haible  <bruno@clisp.org>
26237
26238         * modules/wcwidth (License): Change to LGPL.
26239
26240 2006-06-28  Simon Josefsson  <jas@extundo.com>
26241
26242         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
26243         on _WIN32.
26244
26245         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
26246         getnameinfo.
26247
26248 2006-06-28  Simon Josefsson  <jas@extundo.com>
26249
26250         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
26251
26252 2006-06-28  Simon Josefsson  <jas@extundo.com>
26253
26254         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
26255         functions there.  It will succeed on Windows XP, but on Windows
26256         2000 and (presumably) earlier, it will fail, and use the internal
26257         re-implementation.
26258         (use_win32_p): New function.
26259         (getaddrinfo): Use strtoul on servname, to support numeric ports.
26260         Support AI_NUMERICSERV to disable getservbyname.
26261         (getnameinfo): New function, only supports
26262         NI_NUMERICHOST|NI_NUMERICSERV for now.
26263
26264         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
26265         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
26266         getnameinfo.
26267
26268 2006-06-28  Eric Blake  <ebb9@byu.net>
26269
26270         * modules/wcwidth: New file.
26271         * modules/mbchar (Depends-on): Add wcwidth.
26272         * modules/mbswidth (Depends-on): Add wcwidth.
26273         * MODULES.html.sh: Add wcwidth.
26274
26275 2006-06-28  Eric Blake  <ebb9@byu.net>
26276
26277         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
26278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
26279
26280 2006-06-28  Eric Blake  <ebb9@byu.net>
26281
26282         * lib/xvasprintf.h: Fix comments.
26283
26284 2006-06-28  Eric Blake  <ebb9@byu.net>
26285
26286         * lib/mbchar.h (wcwidth): Include wcwidth.h.
26287         * lib/mbswidth.c (wcwidth): Move from here...
26288         * lib/wcwidth.h: ...to this new file.
26289
26290 2006-06-28  Derek R. Price  <derek@ximbiot.com>
26291
26292         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
26293
26294         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
26295         it's obsolete.
26296         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
26297
26298 2006-06-28  Derek R. Price  <derek@ximbiot.com>
26299
26300         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
26301         Autoconf 2.60 says this stuff was obsolete.
26302
26303 2006-06-28  Bruno Haible  <bruno@clisp.org>
26304
26305         * modules/wcwidth (Files): Add m4/wchar_t.m4.
26306
26307 2006-06-28  Bruno Haible  <bruno@clisp.org>
26308
26309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
26310         gt_TYPE_WCHAR_T.
26311
26312 2006-06-28  Bruno Haible  <bruno@clisp.org>
26313
26314         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
26315         declaration for wcwidth.
26316         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
26317
26318 2006-06-28  Bruno Haible  <bruno@clisp.org>
26319
26320         * lib/mkdtemp.c [MINGW]: Include <io.h>.
26321         (mkdir): Define using _mkdir.
26322
26323 2006-06-28  Bruno Haible  <bruno@clisp.org>
26324
26325         * lib/getaddrinfo.h: Fix POSIX URL.
26326         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
26327         _WIN32.
26328         (use_win32_p): Make static.
26329         (getaddrinfo): Reject service name if it is empty or does not consist
26330         solely of decimal digits, or if its value is > 65535.
26331         (getnameinfo): Remove useless casts.
26332
26333 2006-06-27  Simon Josefsson  <jas@extundo.com>
26334
26335         * modules/sys_select: New file, suggested by Bruno Haible, Paul
26336         Eggert and Martin Lambers.
26337
26338 2006-06-27  Simon Josefsson  <jas@extundo.com>
26339
26340         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
26341         Eggert and Martin Lambers.
26342
26343 2006-06-27  Bruno Haible  <bruno@clisp.org>
26344
26345         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
26346         result to 0, not to empty.
26347         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
26348
26349 2006-06-27  Bruno Haible  <bruno@clisp.org>
26350
26351         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
26352
26353 2006-06-26  Simon Josefsson  <jas@extundo.com>
26354
26355         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
26356         present.
26357
26358 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
26359
26360         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
26361         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
26362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
26363
26364 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
26365
26366         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
26367
26368 2006-06-26  Bruno Haible  <bruno@clisp.org>
26369
26370         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
26371
26372 2006-06-26  Bruno Haible  <bruno@clisp.org>
26373
26374         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
26375
26376 2006-06-26  Bruno Haible  <bruno@clisp.org>
26377
26378         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
26379         SGI C compiler in pre-C99 mode.
26380         Suggested by Mark D. Baushke and Larry Jones.
26381
26382 2006-06-26  Bruno Haible  <bruno@clisp.org>
26383
26384         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
26385         WCHAR_MAX.
26386         Reported by Mark D. Baushke and Larry Jones.
26387
26388 2006-06-26  Bruno Haible  <bruno@clisp.org>
26389
26390         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
26391         in pre-C99 mode.
26392         Suggested by Mark D. Baushke and Larry Jones.
26393
26394 2006-06-23  Simon Josefsson  <jas@extundo.com>
26395             Bruno Haible  <bruno@clisp.org>
26396
26397         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
26398         Emit mostlyclean-local rule.
26399         (func_emit_tests_Makefile_am): Likewise.
26400         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
26401
26402 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
26403
26404         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
26405
26406 2006-06-23  Bruno Haible  <bruno@clisp.org>
26407
26408         * tests/test-stdint.c: Update to match ISO C 99 Technical
26409         Corrigendum 1.
26410
26411 2006-06-23  Bruno Haible  <bruno@clisp.org>
26412
26413         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
26414
26415 2006-06-23  Bruno Haible  <bruno@clisp.org>
26416
26417         * lib/stdint_.h: Treat IRIX like OpenBSD.
26418
26419 2006-06-23  Bruno Haible  <bruno@clisp.org>
26420
26421         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
26422         ISO C 99 Technical Corrigendum 1.
26423
26424 2006-06-22  Simon Josefsson  <jas@extundo.com>
26425
26426         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
26427         MinGW.
26428
26429 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26430
26431         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
26432         needed.  Some compiler complained about some of them.  Problem reported
26433         by Larry Jones in
26434         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
26435
26436 2006-06-21  Simon Josefsson  <jas@extundo.com>
26437
26438         * tests/test-getaddrinfo.c: New file.
26439
26440         * modules/getaddrinfo-tests: New file.
26441
26442         * MODULES.html.sh: Add inet_pton.
26443
26444         * modules/inet_pton: New file.
26445
26446 2006-06-21  Simon Josefsson  <jas@extundo.com>
26447
26448         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
26449         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
26450         of using the (limited) gnulib implementation on Windows XP.
26451
26452         * m4/inet_pton.m4: New file.
26453
26454 2006-06-21  Simon Josefsson  <jas@extundo.com>
26455
26456         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
26457         variable.
26458
26459         * lib/socket_.h: Don't define WINVER.
26460
26461         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
26462         slightly modified to work in gnulib.
26463
26464 2006-06-21  Simon Josefsson  <jas@extundo.com>
26465
26466         * doc/gnulib.texi (Windows sockets): Add.
26467
26468 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
26469
26470         * lib/read-file.c (fread_file): Start with buffer allocation of
26471         0 bytes rather than 1 byte; this simplifies the code.
26472         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
26473         code to free buffer and save/restore errno.
26474         (internal_read_file): Remove unused local.
26475
26476 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26477
26478         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
26479         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
26480         Problem reported by Denis Excoffier in
26481         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
26482
26483 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26484
26485         * modules/sys_socket, modules/socklen: Include sys/types since
26486         FreeBSD 4.x's sys/socket.h needs it.
26487
26488 2006-06-19  Simon Josefsson  <jas@extundo.com>
26489
26490         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
26491
26492 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
26493
26494         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
26495
26496 2006-06-19  Bruno Haible  <bruno@clisp.org>
26497
26498         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
26499         and FULL_PATH_INTTYPES_H in angle brackets.
26500         Reported by Mark D. Baushke <mdb@gnu.org>.
26501
26502 2006-06-17  Eric Blake  <ebb9@byu.net>
26503
26504         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
26505         errno.
26506
26507 2006-06-17  Bruno Haible  <bruno@clisp.org>
26508
26509         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
26510         <sys/inttypes.h>.
26511
26512 2006-06-17  Bruno Haible  <bruno@clisp.org>
26513
26514         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
26515         whether errno is declared. Assume <errno.h> declares errno.
26516
26517 2006-06-17  Bruno Haible  <bruno@clisp.org>
26518
26519         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
26520
26521 2006-06-17  Bruno Haible  <bruno@clisp.org>
26522
26523         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
26524         problem on Solaris 2.5.1.
26525
26526 2006-06-16  Eric Blake  <ebb9@byu.net>
26527
26528         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
26529         * lib/unicodeio.c [!defined errno]: Likewise.
26530         * lib/strtol.c [!defined errno]: Likewise.
26531         * lib/strtod.c [!defined errno]: Likewise.
26532
26533 2006-06-15  Eric Blake  <ebb9@byu.net>
26534
26535         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
26536
26537 2006-06-15  Eric Blake  <ebb9@byu.net>
26538
26539         * config/srclist.txt (ssize_t.m4): Lose sync.
26540
26541 2006-06-15  Bruno Haible  <bruno@clisp.org>
26542
26543         * modules/stdint (Files): Include m4/full-header-path.m4,
26544         m4/size_max.m4, m4/wchar_t.m4.
26545         (Makefile.am): Many more substitutions.
26546         * modules/stdint-tests: New file.
26547         * tests/test-stdint.c: New file.
26548
26549 2006-06-15  Bruno Haible  <bruno@clisp.org>
26550
26551         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
26552         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
26553         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
26554         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
26555         gl_CHECK_TYPE_SAME): New macros.
26556
26557 2006-06-15  Bruno Haible  <bruno@clisp.org>
26558
26559         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
26560
26561 2006-06-15  Bruno Haible  <bruno@clisp.org>
26562
26563         * lib/stdint_.h: Rewritten to be fully auto-configured.
26564         Fixes bug on HP-UX/IA64.
26565
26566 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
26567
26568         * lib/getdate.y (__attribute__): Don't define if already defined.
26569         Problem reported by Larry Jones.
26570         * lib/utimens.c (__attribute__): Likewise.
26571
26572 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
26573
26574         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
26575         reported by Andreas Schwab.
26576
26577 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26578             Bruno Haible  <bruno@clisp.org>
26579
26580         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
26581         check for the declaration of strnlen and a run test that exposes the
26582         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
26583         rpl_strndup.
26584
26585 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26586             Bruno Haible  <bruno@clisp.org>
26587
26588         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
26589
26590 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26591
26592         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
26593         compile test, for Tru64 4.0D.
26594
26595 2006-05-28  Karl Berry  <karl@gnu.org>
26596
26597         * config/srclist.txt (printf-args.c): lose sync.
26598
26599 2006-05-26  Martin Lambers  <marlam@marlam.de>
26600
26601         * lib/getpass.c: Updates the test for the native W32 API, and adds
26602         missing includes, thus fixing compilation warnings.
26603
26604 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26605
26606         * lib/exclude.c (exclude_fnmatch): New function.
26607         (excluded_file_name): Call exclude_fnmatch.
26608         * lib/exclude.h (excluded_file_name): New prototype
26609
26610 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
26611
26612         * lib/tempname.c (small_open, large_open): New macros.
26613         (__open, __open64) [!_LIBC]: Remove.
26614         (__gen_tempname): Use small_open and large_open instead of __open
26615         and __open64.  This fixes a portability bug on HP-UX 11.11i
26616         reported by Simon Wing-Tang in
26617         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
26618
26619 2006-05-24  Bruno Haible  <bruno@clisp.org>
26620
26621         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
26622         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
26623         Reported by Thorsten Maerz <torte@netztorte.de> via
26624         Aaron Stone <aaron@serendipity.cx>.
26625
26626 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26627
26628         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
26629         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
26630         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
26631         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
26632         not really conditional on the cache.
26633         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
26634
26635 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26636
26637         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
26638         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
26639         (my_usleep): Don't mishandle maximum value.
26640
26641 2006-05-19  Jim Meyering  <jim@meyering.net>
26642
26643         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
26644
26645 2006-05-17  Bruno Haible  <bruno@clisp.org>
26646
26647         Cygwin portability.
26648         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
26649
26650 2006-05-17  Bruno Haible  <bruno@clisp.org>
26651
26652         * lib/stdint_.h: Fix recognition of Cygwin.
26653
26654 2006-05-15  Bruno Haible  <bruno@clisp.org>
26655
26656         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
26657         on libtool patch by Ralf Wildenhues.
26658
26659 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26660
26661         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
26662         test for C99 conformance; (bool) 0.5 is an integer constant
26663         expression, but (bool) -0.5 is not.  Problem reported by Fedor
26664         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
26665
26666 2006-05-11  Simon Josefsson  <jas@extundo.com>
26667
26668         * m4/xvasprintf.m4: Fix obvious typo.
26669
26670 2006-05-11  Jim Meyering  <jim@meyering.net>
26671
26672         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
26673         James Lemley.
26674
26675 2006-05-10  Simon Josefsson  <jas@extundo.com>
26676
26677         * lib/md4.c: Typo fix, update copyright years.
26678         (K1, K2): Don't use L because it turn computations into 64-bit on
26679         64-bit platforms.
26680
26681 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
26682
26683         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
26684         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
26685         unwanted sign propagation, e.g., on hosts with 64-bit int.
26686         There still are some problems with reeelly weird theoretical hosts
26687         (e.g., 33-bit int) but it's not worth worrying about now.
26688         * lib/sha1.c (rol): Likewise.
26689         (K1, K2, K3, K4): Remove unnecessary L suffix.
26690
26691 2006-05-10  Bruno Haible  <bruno@clisp.org>
26692
26693         * lib/des.c: Cast to avoid warnings.
26694
26695 2006-05-09  Bruno Haible  <bruno@clisp.org>
26696
26697         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
26698         (Depends-on): Depend also on xsize, stdarg.
26699         (configure.ac): Add gl_XVASPRINTF.
26700
26701 2006-05-09  Bruno Haible  <bruno@clisp.org>
26702
26703         * m4/xvasprintf.m4: New file.
26704
26705 2006-05-09  Bruno Haible  <bruno@clisp.org>
26706
26707         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
26708         (EOVERFLOW): Define fallback value.
26709         (xstrcat): New function.
26710         (xvasprintf): Recognize the special case of a string concatenation.
26711
26712 2006-05-08  Eric Blake  <ebb9@byu.net>
26713
26714         * gnulib-tool (func_version): Base copyright year on CVS date.
26715         (func_emit_copyright_notice): New function.
26716         (func_emit_lib_Makefile_am): Use it.
26717         (func_emit_tests_Makefile_am): Likewise.
26718         (func_import): Likewise.
26719
26720 2006-05-08  Bruno Haible  <bruno@clisp.org>
26721
26722         * modules/stdarg: New file.
26723         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
26724
26725 2006-05-08  Bruno Haible  <bruno@clisp.org>
26726
26727         * m4/stdarg.m4: New file, from GNU gettext.
26728
26729 2006-05-08  Bruno Haible  <bruno@clisp.org>
26730
26731         * config/srclist.txt (build-aux/config.rpath): different from latest
26732         release.
26733
26734 2006-05-08  Bruno Haible  <bruno@clisp.org>
26735
26736         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
26737
26738 2006-05-05  Jim Meyering  <jim@meyering.net>
26739
26740         * m4/warning.m4: New file, derived from bison's file by the same name.
26741
26742 2006-05-03  Bruno Haible  <bruno@clisp.org>
26743
26744         * lib/stdint_.h: Shorter URL.
26745         * lib/inttypes.h: Likewise.
26746
26747 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26748
26749         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
26750
26751 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26752
26753         * lib/verify.h: Document the internals better.  Most of this change
26754         was written by Bruno Haible.
26755
26756 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26757
26758         * doc/verify.texi: New file, partly based on a proposal by
26759         Bruno Haible.
26760
26761 2006-05-02  Bruno Haible  <bruno@clisp.org>
26762
26763         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
26764         test from here...
26765         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
26766
26767 2006-04-29  Bruno Haible  <bruno@clisp.org>
26768
26769         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
26770         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
26771
26772 2006-04-29  Bruno Haible  <bruno@clisp.org>
26773
26774         * gnulib-tool: Make --update option actually work.
26775
26776 2006-04-29  Bruno Haible  <bruno@clisp.org>
26777
26778         * doc/gcd.texi: New file.
26779         * doc/gnulib.texi: Include it.
26780
26781 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26782
26783         * lib/getdate.y (get_date): When adding relative date, start with the
26784         initial time, not with the result of the first mktime call.
26785
26786 2006-04-25  Bruno Haible  <bruno@clisp.org>
26787
26788         * gnulib-tool (func_import): Output the include directives in three
26789         blocks, sorted separately.
26790         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26791
26792 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26793
26794         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
26795         to define main with arguments, for C++.  Reported by Eric Blake.
26796         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
26797         Prefer 'int main ()' to 'int main (void)', for C++.
26798         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26799         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
26800         for 'main', for C99 and C++.
26801
26802 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26803
26804         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
26805         Don't assume that exit status -1 is valid.
26806         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26807         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26808         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26809         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
26810         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
26811         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
26812         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
26813         functions can be used without declaring them, or that you can
26814         exit with status -1.
26815         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26816
26817 2006-04-24  Karl Berry  <karl@gnu.org>
26818
26819         * config/srclist.txt (longdouble.m4): sync lost.
26820
26821 2006-04-24  Eric Blake  <ebb9@byu.net>
26822
26823         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
26824
26825 2006-04-24  Bruno Haible  <bruno@clisp.org>
26826
26827         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
26828         poll() implementation in AIX.
26829         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26830
26831 2006-04-24  Bruno Haible  <bruno@clisp.org>
26832
26833         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
26834         assigned exactly once.
26835
26836 2006-04-23  Claudio Fontana  <claudio@gnu.org>
26837             Bruno Haible  <bruno@clisp.org>
26838
26839         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
26840         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
26841         for AM_CPPFLAGS.
26842
26843 2006-04-23  Bruno Haible  <bruno@clisp.org>
26844
26845         * modules/copy-file: Depend on unistd.
26846         * modules/execute: Likewise.
26847         * modules/fatal-signal: Likewise.
26848         * modules/findprog: Likewise.
26849         * modules/mkdtemp : Likewise.
26850         * modules/pipe: Likewise.
26851         * modules/wait-process: Likewise.
26852
26853 2006-04-23  Bruno Haible  <bruno@clisp.org>
26854
26855         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
26856         condition was already detected.
26857         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26858
26859 2006-04-23  Bruno Haible  <bruno@clisp.org>
26860
26861         * lib/copy-file.c: Include <unistd.h> unconditionally.
26862         * lib/execute.c: Likewise.
26863         * lib/fatal-signal.c: Likewise.
26864         * lib/findprog.c: Likewise.
26865         * lib/mkdtemp.c: Likewise.
26866         * lib/pipe.h: Likewise.
26867         * lib/pipe.c: Likewise.
26868         * lib/wait-process.h: Likewise.
26869
26870 2006-04-23  Bruno Haible  <bruno@clisp.org>
26871
26872         * gnulib-tool (func_usage): Fix --import description. Document
26873         --update.
26874         (func_import): Create temporary file in a temporary directory, if
26875         --dry-run is specified. Silence errors from 'grep' when there are no
26876         m4 files in $m4dir.
26877         (func_create_testdir): Silence errors from 'grep' when there are no
26878         m4 files in $m4dir.
26879         Reported by Karl Berry <karl@freefriends.org>.
26880
26881 2006-04-20  Bruno Haible  <bruno@clisp.org>
26882
26883         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
26884         one argument, so that the code will be portable to Autoconf 2.60.
26885         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
26886         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26887         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
26888
26889 2006-04-19  Derek Price  <derek@ximbiot.com>
26890             Eric Blake  <ebb9@byu.net>
26891
26892         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
26893         rather than "/full/path.h".  Update comment to match.  Shorten &
26894         generalize m4_translit call via AS_TR_CPP.
26895
26896 2006-04-19  Derek Price  <derek@ximbiot.com>
26897             Eric Blake  <ebb9@byu.net>
26898
26899         * lib/inttypes.h: Correct grammar in comment.
26900
26901 2006-04-18  Derek Price  <derek@ximbiot.com>
26902             Paul Eggert  <eggert@cs.ucla.edu>
26903
26904         * modules/inttypes: New file.
26905         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
26906
26907 2006-04-18  Derek Price  <derek@ximbiot.com>
26908             Paul Eggert  <eggert@cs.ucla.edu>
26909
26910         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
26911         New files.
26912
26913 2006-04-18  Derek Price  <derek@ximbiot.com>
26914             Paul Eggert  <eggert@cs.ucla.edu>
26915
26916         * lib/inttypes.h: New file.
26917         * lib/strtoimax.c: Assume <inttypes.h>.
26918
26919 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
26920
26921         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
26922         isn't mounted.  Problem reported by Kir Kolyshkin.
26923
26924 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26925
26926         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
26927         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
26928         Derek R. Price.
26929         * lib/regex.h (RE_DUP_MAX): Update comment to match current
26930         implementation.
26931
26932 2006-04-12  Eric Blake  <ebb9@byu.net>
26933
26934         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
26935         is now done automatically by the corresponding Autoconf macro.
26936
26937 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
26938
26939         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
26940         time_r.h.
26941
26942 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26943
26944         Merge regex changes from libc, removing some of our
26945         POSIX-conformance changes that were rejected and redoing them in a
26946         less-intrusive way.
26947
26948         * lib/regcomp.c (re_compile_internal, init_dfa):
26949         Length arg is now size_t, not Idx.  All uses changed.
26950         (peek_token): Forward decl now says internal_function.
26951         (__re_error_msgid, __re_error_msgid_idx):
26952         Now static rather than extern with attribute_hidden.
26953         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
26954         For some reason libc prefers K&R style defns for external functions.
26955         (regerror) [!defined _LIBC]: Likewise.
26956         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
26957         (seek_collating_symbol_entry, lookup_collation_sequence_value):
26958         (build_range_exp, build_collating_symbol):
26959         Use K&R-style defn.
26960         (re_compile_fastmap): Use '\0' to memset, not 0.
26961         (utf8_sb_map): Make the calculations more obvious.
26962         (init_dfa, parse_bracket_exp, build_charclass_op):
26963         Call calloc and cast result, as glibc does.
26964         (init_word_char, fetch_token, peek_token, peek_token_bracket):
26965         (build_range_exp, build_collating_symbol):
26966         Now internal functions.
26967
26968         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
26969
26970         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
26971         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
26972         Don't depend on VMS; depend on __VMS instead, for POSIX
26973         namespace cleanness.
26974         (regoff_t): Define to ssize_t, not long int.
26975
26976         Remove the REG_ macros named below.  Instead, make the old names
26977         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
26978         __USE_GNU_REGEX.
26979         (REG_BACKSLASH_ESCAPE_IN_LISTS):
26980         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
26981         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
26982         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
26983         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
26984         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
26985         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
26986         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
26987         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
26988         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
26989         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
26990         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
26991         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
26992         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
26993         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
26994         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
26995         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
26996         (REG_NREGS):
26997         Remove.  All uses replaced by the old RE_* names.
26998         (RE_BACKSLASH_ESCAPE_IN_LISTS):
26999         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
27000         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
27001         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
27002         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
27003         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
27004         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
27005         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
27006         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
27007         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
27008         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
27009         Don't bother having these macros be independent of each others'
27010         values, since they no longer exist in the POSIX name space.
27011
27012         Rename the following member names back to their old names,
27013         unless !__USE_GNU_REGEX.  All uses changed back.
27014         (buffer): Renamed from re_buffer.
27015         (allocated): Renamed from re_allocated.
27016         (used): Renamed from re_used.
27017         (syntax): Renamed from re_syntax.
27018         (fastmap): Renamed from re_fastmap.
27019         (translate): Renamed from re_translate.
27020         (can_be_null): Renamed from re_can_be_null.
27021         (regs_allocated): Renamed from re_regs_allocated.
27022         (fastmap_accurate): Renamed from re_fastmap_accurate.
27023         (no_sub): Renamed from re_no_sub.
27024         (not_bol): Renamed from re_not_bol.
27025         (not_eol): Renamed from re_not_eol.
27026         (newline_anchor): Renamed from re_newline_anchor.
27027         (num_regs): Renamed from rm_num_regs.
27028         (start): Renamed from rm_start.
27029         (end): Renamed from rm_end.
27030
27031         (free_state): Move up a bit.
27032
27033         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
27034         #define to be empty.
27035         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
27036         when that is what is intended.
27037         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
27038         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
27039         (MAX): New macro.
27040         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
27041         All uses changed back to re_malloc, etc.  It's now the caller's
27042         responsibility to check for overflow; all callers changed.
27043         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
27044         (re_x2nrealloc): Remove.
27045         (free_state): Remove decl.
27046
27047         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
27048         (re_set_registers, re_exec):
27049         Use K&R-style defn.
27050
27051         2006-01-31  Roland McGrath  <roland@redhat.com>
27052
27053         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
27054         Reported by Mike Frysinger <vapier@gentoo.org>.
27055
27056         2006-01-15  Andreas Jaeger  <aj@suse.de>
27057
27058         [BZ #1950]
27059         * lib/regex_internal.c (re_string_reconstruct): Adjust for
27060         build_wcs_upper_buffer change.
27061         (build_wcs_upper_buffer): Change return type.
27062
27063         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
27064
27065         * lib/regex_internal.h: Include <stdint.h> if available.
27066
27067         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
27068
27069         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
27070
27071         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
27072
27073         * lib/regcomp.c: Adjust for changed secondary hash function.
27074
27075         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
27076
27077         * lib/regex.h: Pretty printing.
27078         Clean up namespace a bit.
27079
27080         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
27081
27082         * lib/regexec.c (update_cur_sifted_state, check_arrival,
27083         check_arrival_add_next_nodes): Avoid using uninitialized variable.
27084
27085         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27086                     Ulrich Drepper  <drepper@redhat.com>
27087
27088         [BZ #1302]
27089         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
27090         changed.
27091         (bitset_word_t): Renamed from bitset_word.  All uses changed.
27092
27093         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
27094
27095         [BZ #281]
27096         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
27097         * lib/regcomp.c: Remove unnecessary uses of
27098         unsigned RE_TRANSLATE_TYPE.
27099         * lib/regex_internal.h: Likewise.
27100         * lib/regex_internal.c: Likewise.
27101         * lib/regexec.c: Likewise.
27102         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
27103
27104         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
27105
27106         * lib/regexec.c (find_recover_state): Remove unnecessary
27107         initialization.
27108         (transit_state_bkref): Make DFA a const pointer.
27109         (get_subexp): Likewise.
27110         (check_arrival): Likewise.
27111         (update_cur_sifted_state): Likewise.
27112         (re_search_internal): Likewise.
27113         (prune_impossible_nodes): Likewise.
27114         (acquire_init_state_context): Likewise.
27115         (proceed_next_node): Likewise.
27116         (set_regs): Likewise.
27117         (free_fail_stack_return): Likewise.
27118         (check_arrival_expand_ecl): Mark DFA parameter as const.
27119         (check_arrival_expand_ecl_sub): Likewise.
27120         (check_subexp_limits): Likewise.
27121         (sub_epsilon_src_nodes):  Likewise.
27122         (add_epsilon_src_nodes):  Likewise.
27123         (merge_state_array): Likewise.
27124         (update_regs): Likewise.
27125         (build_trtable): Likewise.
27126         (sift_states_backward): Mark MCTX parameter as const.
27127         (build_sifted_states): Likewise.
27128         (update_cur_sifted_state): Likewise.
27129         (sift_states_mkref): Likewise.
27130         (check_arrival_expand_ecl): Mark eclosure as const.
27131         (check_dst_limits_calc_pos_1): Likewise.
27132         * lib/regex_internal.h (re_match_context_t): Make dfa a const
27133         pointer.
27134
27135         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
27136
27137         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
27138         (transit_state_sb): Likewise.
27139         (transit_state_mb): Likewise.
27140         (sift_states_iter_mb): Likewise.
27141         (check_arrival_add_next_nodes): Likewise.
27142         (check_node_accept_bytes): Change first parameter to pointer-to-const.
27143         [_LIBC] (re_search_2_stub): Use mempcpy.
27144
27145         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
27146         mbrtowc for very simple UTF-8 case.
27147
27148         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
27149         a pointer-to-const.
27150         (re_acquire_state_context): Likewise.
27151         * lib/regex_internal.h: Adjust prototypes.
27152
27153         * lib/regex.c: Prevent using C++ compilers.
27154
27155         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
27156         (re_acquire_state_context): Likewise.
27157
27158 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27159
27160         * modules/regex (Depends-on): Add ssize_t.
27161
27162 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27163
27164         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
27165         translation table.
27166
27167 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27168
27169         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
27170
27171 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
27172             Bruno Haible  <bruno@clisp.org>
27173
27174         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
27175         <sys/types.h> and <inttypes.h>.
27176
27177 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27178
27179         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
27180         `__error_t_defined', so argp.h will not typedef the former.
27181
27182 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27183
27184         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
27185         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
27186         glibc names.  Even if glibc is changed to conform to POSIX, the
27187         traditional names will be available anyway, since regex depends on
27188         the extensions module.  Also, fix a longstanding typo in the
27189         implementation of Spencer ERE test #75 from grep 2.3.  Problems
27190         reported by Emanuele Giaquinta.  Also, change sense of cached
27191         variable, so that the message makes sense.
27192
27193 2006-03-24  Simon Josefsson  <jas@extundo.com>
27194
27195         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
27196         including some doc fixes.
27197         (base64_encode_alloc): Fix +1 bug on allocation failures.
27198
27199 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27200
27201         * lib/base64.c (base64_encode): Do not read past end of array with
27202         unsanitized input on systems with CHAR_BIT > 8.
27203
27204 2006-03-24  Eric Blake  <ebb9@byu.net>
27205
27206         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
27207
27208 2006-03-22  Karl Berry  <karl@gnu.org>
27209
27210         * config/srclist.txt (*setenv.[ch]): get from coreutils.
27211         * config/srclistvars.sh (COREUTILS): new var.
27212
27213 2006-03-17  Jim Meyering  <jim@meyering.net>
27214
27215         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
27216         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
27217
27218 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
27219
27220         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
27221         no longer needs it.  Instead, check that regoff_t is as least
27222         as wide as ptrdiff_t.
27223
27224         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
27225         so that our regex.h stays compatible with the installed regex.
27226         This is helpful for installers who configure --without-included-regex.
27227         Problem reported by Emanuele Giaquinta.
27228
27229 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
27230
27231         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
27232         Typedef to long int, not to off_, as POSIX will likely change
27233         in that direction.
27234
27235 2006-03-15  Eric Blake  <ebb9@byu.net>
27236
27237         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
27238
27239 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
27240
27241         * lib/argp-help.c (validate_uparams): Fix typo
27242         * lib/argp-parse.c (argp_default_options): Consistently begin help
27243         messages with a lowercase letter.
27244
27245 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
27246
27247         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
27248         overrun buffers and shouldn't be used (much as gets shouldn't be
27249         used).
27250         * lib/time_r.c (asctime_r, ctime_r): Likewise.
27251
27252 2006-03-08  Simon Josefsson  <jas@extundo.com>
27253
27254         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
27255         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27256
27257 2006-03-08  Simon Josefsson  <jas@extundo.com>
27258
27259         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
27260         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27261
27262 2006-03-08  Simon Josefsson  <jas@extundo.com>
27263
27264         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
27265         signal that configure disabled the device.
27266
27267 2006-03-08  Simon Josefsson  <jas@extundo.com>
27268
27269         * build-aux/maint.mk: Fix refresh-po, to handle no translated
27270         languages.
27271
27272 2006-03-07  Simon Josefsson  <jas@extundo.com>
27273
27274         * modules/getopt (Depends-on): Add unistd.
27275
27276         * modules/unistd: New file.
27277
27278 2006-03-07  Simon Josefsson  <jas@extundo.com>
27279
27280         * modules/gc-random: New file.
27281
27282 2006-03-07  Simon Josefsson  <jas@extundo.com>
27283
27284         * m4/unistd_h.m4: New file.
27285
27286 2006-03-07  Simon Josefsson  <jas@extundo.com>
27287
27288         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
27289         test to be side-effect free by storing the result in the cache
27290         variable gl_cv_lib_readline, and moving the assignment of
27291         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
27292         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27293
27294 2006-03-07  Simon Josefsson  <jas@extundo.com>
27295
27296         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
27297         error on missing devices (the functions will return an error).
27298
27299         * m4/gc.m4: Move random stuff to gc-random.m4
27300
27301 2006-03-07  Simon Josefsson  <jas@extundo.com>
27302
27303         * lib/unistd_.h: New file.
27304
27305 2006-03-07  Simon Josefsson  <jas@extundo.com>
27306
27307         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
27308
27309 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27310
27311         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
27312         Problem reported by Juan Manuel Guerrero.
27313
27314 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27315
27316         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
27317         the unistd module.
27318         * lib/getlogin_r.c: Likewise.
27319         * lib/getlogin_r.h: Likewise.
27320         * lib/glob.c: Likewise.
27321         * lib/pagealign_alloc.c: Likewise.
27322         * lib/unistd_.h: Remove; no longer needed.
27323
27324 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27325
27326         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27327         Add unistd.
27328         * modules/c-stack (Depends-on): Add unistd.
27329         * modules/getlogin_r: Likewise.
27330         * modules/glob: Likewise.
27331         * modules/pagealign_alloc: Likewise.
27332         * modules/unistd (Files): Remove lib/unistd_.h.
27333         (EXTRA_DIST): Remove.
27334         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
27335         need unistd_.h.
27336         (MOSTLYCLEANFILES): Remove unistd.h-t.
27337
27338 2006-03-03  Simon Josefsson  <jas@extundo.com>
27339
27340         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
27341
27342 2006-03-03  Simon Josefsson  <jas@extundo.com>
27343
27344         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
27345         libidn and bison.
27346
27347 2006-03-03  Simon Josefsson  <jas@extundo.com>
27348
27349         * build-aux/maint.mk: Add indent target.
27350
27351 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
27352
27353         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
27354         our replacement poll.h in any case, to avoid a differing
27355         declaration from a system header.  Seen on AIX.
27356
27357 2006-03-01  Simon Josefsson  <jas@extundo.com>
27358
27359         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
27360         <kasal@ucw.cz>.
27361
27362 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27363
27364         * modules/gettime (Depends-on): Add extensions module.
27365         * modules/nanosleep (Depends-on): Likewise.
27366         * modules/settime (Depends-on): Likewise.
27367
27368 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27369
27370         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
27371         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
27372         pedantically.
27373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27374         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
27375
27376         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
27377         not "==".  Reported by Ralf Wildenhues.
27378
27379 2006-03-01  Karl Berry  <karl@gnu.org>
27380
27381         * doc/Copyright/request-*: new files, synced from gnuorg.
27382
27383 2006-03-01  Karl Berry  <karl@gnu.org>
27384
27385         * config/srclist.txt (Copyright/*): new entries.
27386
27387 2006-02-28  Simon Josefsson  <jas@extundo.com>
27388
27389         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
27390
27391 2006-02-27  Simon Josefsson  <jas@extundo.com>
27392
27393         * lib/base64.h: Indent #define's.  From Jim Meyering
27394         <jim@meyering.net>.
27395
27396 2006-02-27  Jim Meyering  <jim@meyering.net>
27397
27398         Revert the change of 2006-02-24, so these files can continue
27399         to be sync'd from gettext.
27400         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
27401         of `config.h'.
27402
27403 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27404
27405         * modules/intprops: New file.
27406         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27407         Add intprops.
27408         * modules/getloadavg (Files): Remove lib/intprops.h.
27409         (Depends-on): Add intprops.
27410         * modules/human: Likewise.
27411         * modules/inttostr: Likewise.
27412         * modules/openat: Likewise.
27413         * modules/sig2str: Likewise.
27414         * modules/userspec: Likewise.
27415         * modules/utimecmp: Likewise.
27416         * modules/xnanosleep: Likewise.
27417         * modules/xstrtol: Likewise.
27418
27419 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
27420
27421         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
27422         * modules/lock-tests (TESTS): Use $(EXEEXT).
27423         * modules/tls-tests: Likewise.
27424         * modules/argp-tests: Likewise.
27425         (check_PROGRAMS): New var, replacing...
27426         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
27427
27428 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27429
27430         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
27431         `config.h'.
27432
27433 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27434
27435         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
27436
27437 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27438
27439         Sync from coreutils.
27440         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
27441         gl_CHDIR_SAFER.
27442
27443 2006-02-22  Jim Meyering  <jim@meyering.net>
27444
27445         Sync from coreutils.
27446         * m4/chdir-safer.m4: New file.
27447
27448 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27449
27450         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
27451         AT_FDCWD exceeds INT_MAX.
27452         * lib/openat.h (AT_FDCWD): Likewise.
27453
27454 2006-02-17  Eric Blake  <address@hidden>
27455
27456         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
27457
27458 2006-02-16  Simon Josefsson  <jas@extundo.com>
27459
27460         * modules/getaddrinfo (Depends-on): Add sys_socket.
27461
27462 2006-02-15  Simon Josefsson  <jas@extundo.com>
27463
27464         * build-aux/maint.mk: Add dsyntax-check rule.
27465
27466 2006-02-15  Eric Blake  <ebb9@byu.net>
27467
27468         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
27469         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
27470         'present but cannot compile' warnings on cygwin.
27471         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
27472         use ws2tcpip.h if sys/socket.h works.
27473         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
27474         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
27475
27476 2006-02-14  Simon Josefsson  <jas@extundo.com>
27477
27478         * modules/maintainer-makefile (Files): Rename.
27479
27480         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
27481         and (the local) Makefile.cfg to maint-cfg.mk.
27482
27483         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
27484         to the latter.
27485
27486         * modules/maintainer-makefile: New module.
27487
27488         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
27489         severaly stripped to make it possible to build it up from scratch
27490         with reliable tests.
27491
27492         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
27493         fixes to permit overriding the default actions when configure and
27494         makefile are not available.
27495
27496 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27497
27498         Sync from coreutils.
27499         * modules/lstat (Depends-on): Don't depend on xalloc.
27500         (License): Change from GPL to LGPL, since this is now simply a
27501         replacement for a libc function.
27502
27503 2006-02-14  Jim Meyering  <jim@meyering.net>
27504
27505         Sync from coreutils.
27506
27507         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
27508         failure on deficient systems, and simplify gnulib lgpl dependencies.
27509         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
27510         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
27511
27512         * lib/xalloc-die.c: Remove unused definition of N_.
27513
27514 2006-02-14  Jim Meyering  <jim@meyering.net>
27515
27516         Sync from coreutils.
27517         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
27518         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
27519         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
27520         double-quote uses of that variable, to accommodate the rare case in
27521         which getmntent is available in none of the libraries checked.  This
27522         happens at least on FreeBSD 5.0.
27523
27524 2006-02-13  Simon Josefsson  <jas@extundo.com>
27525
27526         * gnulib-tool (Usage): Fix --import, from
27527         karl@freefriends.org (Karl Berry).
27528
27529 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
27530
27531         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
27532
27533 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
27534
27535         * lib/argp-namefrob.h: Restore changes accidentally lost during the
27536         "autoupdate" on 2005-12-12.
27537
27538 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27539
27540         * modules/closeout (Depends-on): Remove atexit.
27541
27542 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27543
27544         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
27545         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
27546
27547 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
27548
27549         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
27550         __EXTENSIONS__ if this causes compilation to fail.  Problem
27551         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
27552         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
27553
27554 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27555
27556         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
27557         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
27558         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
27559         All uses changed.
27560
27561 2006-01-26  Simon Josefsson  <jas@extundo.com>
27562
27563         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
27564         prototype is visible on mingw32.
27565
27566         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
27567         for mingw32.
27568
27569         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
27570         mingw32).
27571
27572 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
27573
27574         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
27575         attempt to open for write; this always fails, at least on POSIX
27576         hosts.  This reinstates the 2006-01-09 change, which was
27577         inadvertently removed.
27578
27579 2006-01-26  Bruno Haible  <bruno@clisp.org>
27580
27581         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
27582         Reported by Paul Eggert.
27583
27584 2006-01-26  Bruno Haible  <bruno@clisp.org>
27585             Paul Eggert  <eggert@cs.ucla.edu>
27586
27587         * lib/stdbool_.h (_Bool)
27588         [(! (defined __cplusplus || defined __BEOS__)
27589           && !defined __GNUC__
27590           && !(defined __HP_cc || defined __xlc__
27591                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
27592                || defined __sgi))]:
27593         #define to signed char in these cases too; this simplifies
27594         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
27595         etc., separately) and makes it more conservative.
27596
27597 2006-01-25  Simon Josefsson  <jas@extundo.com>
27598
27599         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
27600         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
27601         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
27602
27603 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27604
27605         * lib/argp-namefrob.h: Bugfix. Remove stray #
27606
27607 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27608
27609         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
27610         so that we test the test.
27611         Check for yet another HP-UX cc bug involving *bool |= bool.
27612
27613 2006-01-25  Karl Berry  <karl@gnu.org>
27614
27615         * config/srclist.txt (vasnprintf.c): sync lost.
27616
27617 2006-01-25  Jim Meyering  <jim@meyering.net>
27618
27619         Sync from the stable (b5) branch of coreutils:
27620
27621         * lib/fts.c (fts_children): Don't let close() clobber errno from
27622         failed fchdir().
27623
27624         * lib/fts.c (fts_stat): When following a symlink-to-directory,
27625         don't necessarily interpret stat-fails+lstat-succeeds as indicating
27626         a dangling symlink.  That can also happen at least for ELOOP.
27627         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
27628         FYI, this bug predates the inclusion of fts.c in coreutils.
27629
27630         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
27631         in their own block, so pre-c99 compilers don't object.
27632
27633         Avoid the double-free (first in fts_read, second in fts_close) that
27634         would occur when an `active' directory is made inaccessible (e.g.,
27635         via chmod a-x) during a traversal.
27636         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27637         before returning.  Reproduce this failure by
27638         mkdir -p a/b; cd a; chmod a-x . b
27639         Reported by Stavros Passas.
27640
27641 2006-01-25  Jim Meyering  <jim@meyering.net>
27642
27643         * lib/fileblocks.c: Remove more useless parentheses.
27644         * lib/readutmp.h: Likewise.
27645
27646 2006-01-25  Bruno Haible  <bruno@clisp.org>
27647
27648         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
27649         warnings.
27650         Reported by Paul Eggert.
27651
27652 2006-01-25  Bruno Haible  <bruno@clisp.org>
27653
27654         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
27655         rid of a trap command. For Solaris sh.