742c0c4ad6b67270f2ec129e47ad40399f1beeba
[pspp] / ChangeLog
1 2008-10-19  Bruno Haible  <bruno@clisp.org>
2
3         Add strtoll() declaration to <stdlib.h>.
4         * lib/stdlib.in.h (strtoll): New declaration.
5         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
6         Set HAVE_STRTOLL.
7         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
8         HAVE_STRTOLL.
9         * modules/strtoll (Depends-on): Add stdlib.
10         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
12
13 2008-10-19  Bruno Haible  <bruno@clisp.org>
14
15         * modules/bcopy (Depends-on): Add strings.
16         (Include): Specify <strings.h>.
17
18 2008-10-19  Bruno Haible  <bruno@clisp.org>
19
20         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
21
22 2008-10-19  Bruno Haible  <bruno@clisp.org>
23
24         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
25         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
26         mingw.
27
28 2008-10-19  Bruno Haible  <bruno@clisp.org>
29
30         * lib/atanl.c: Don't include isnanl.h.
31         * lib/cosl.c: Likewise.
32         * lib/ldexpl.c: Likewise.
33         * lib/logl.c: Likewise.
34         * lib/sinl.c: Likewise.
35         * lib/sqrtl.c: Likewise.
36         * lib/tanl.c: Likewise.
37
38         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39         * lib/isnanf.h: Remove file.
40         * lib/isnand.h: Remove file.
41         * lib/isnanl.h: Remove file.
42         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
43         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44         macros.
45         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46         HAVE_ISNANF, don't define it as a C macro.
47         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
48         HAVE_ISNAND, don't define it as a C macro.
49         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50         HAVE_ISNANL, don't define it as a C macro.
51         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52         HAVE_ISNAN[FDL].
53         * modules/isnanf (Files): Remove lib/isnanf.h.
54         (Depends-on): Add math.
55         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56         (Include): Specify <math.h> instead of isnanf.h.
57         * modules/isnand (Files): Remove lib/isnand.h.
58         (Depends-on): Add math.
59         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
60         (Include): Specify <math.h> instead of isnand.h.
61         * modules/isnanl (Files): Remove lib/isnanl.h.
62         (Depends-on): Add math.
63         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
64         (Include): Specify <math.h> instead of isnanl.h.
65         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
66         HAVE_ISNAN[FDL].
67         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
68         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
69         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
70         * NEWS: Mention the change.
71
72 2008-10-18  Bruno Haible  <bruno@clisp.org>
73
74         Add getusershell(), setusershell(), endusershell() declarations to
75         <unistd.h>.
76         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
77         declarations.
78         * lib/getusershell.c: Include unistd.h.
79         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
80         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
81         HAVE_GETUSERSHELL.
82         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
83         and HAVE_GETUSERSHELL.
84         * modules/getusershell (Depends-on): Add unistd, extensions.
85         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86         (Include): Specify <unistd.h>.
87         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
88         HAVE_GETUSERSHELL.
89
90 2008-10-18  Bruno Haible  <bruno@clisp.org>
91
92         Add a getloadavg() declaration to <stdlib.h>.
93         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
94         getloadavg declaration.
95         (getloadavg): New declaration.
96         * lib/getloadavg.c: Include <stdlib.h> first.
97         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
98         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
99         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
101         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
102         * modules/getloadavg (Depends-on): Add stdlib, extensions.
103         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104         (Include): Specify <stdlib.h>.
105         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
106         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
107
108 2008-10-18  Bruno Haible  <bruno@clisp.org>
109
110         * lib/dirchownmod.c: Don't include lchmod.h.
111
112         Move the lchmod() declaration to <sys/stat.h>.
113         * lib/lchmod.h: Remove file.
114         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
115         (lchmod): New declaration, moved here from lib/lchown.h.
116         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
117         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
118         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
119         and HAVE_LCHMOD.
120         * modules/lchmod (Files): Remove lib/lchmod.h.
121         (Depends-on): Add sys_stat, extensions.
122         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
123         (Include): Specify <sys/stat.h> instead of lchmod.h.
124         * modules/sys_stat (Depends-on): Add link-warning.
125         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
126         definition of GL_LINK_WARNING.
127         * NEWS: Mention the change.
128
129 2008-10-18  Bruno Haible  <bruno@clisp.org>
130
131         * lib/fchdir.c: Don't include dirfd.h.
132         * lib/fts.c: Likewise.
133         * lib/getcwd.c: Likewise.
134         * lib/glob.c: Likewise.
135
136         Move the dirfd() declaration to <dirent.h>.
137         * lib/dirfd.h: Remove file.
138         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
139         (dirfd): New declaration.
140         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
141         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
142         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
143         HAVE_DECL_DIRFD.
144         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
145         HAVE_DECL_DIRFD.
146         * modules/dirfd (Files): Remove lib/dirfd.h.
147         (Depends-on): Add dirent, extensions.
148         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
149         (Include): Specify <dirent.h> instead of dirfd.h.
150         * modules/dirent (Depends-on): Add link-warning.
151         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
152         definition of GL_LINK_WARNING.
153         * NEWS: Mention the change.
154
155 2008-10-18  Bruno Haible  <bruno@clisp.org>
156
157         Move the euidaccess() declaration to <unistd.h>.
158         * lib/euidaccess.h: Remove file.
159         * lib/unistd.in.h (euidaccess): New declaration.
160         * lib/euidaccess.c: Don't include euidaccess.h.
161         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
162         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
164         and HAVE_EUIDACCESS.
165         * modules/euidaccess (Files): Remove lib/euidaccess.h.
166         (Depends-on): Add unistd.
167         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
168         (Include): Specify <unistd.h> instead of euidaccess.h.
169         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
170         HAVE_EUIDACCESS.
171         * NEWS: Mention the change.
172
173 2008-10-18  Bruno Haible  <bruno@clisp.org>
174
175         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
176
177         Move the getdomainname() declaration to <unistd.h>.
178         * lib/getdomainname.h: Remove file.
179         * lib/unistd.in.h (getdomainname): New declaration.
180         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
181         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
182         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
183         HAVE_GETDOMAINNAME.
184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
185         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
186         * modules/getdomainname (Files): Remove lib/getdomainname.h.
187         (Depends-on): Add unistd, extensions.
188         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
189         (Includes): Specify <unistd.h> instead of getdomainname.h.
190         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
191         HAVE_GETDOMAINNAME.
192         * NEWS: Mention the change.
193
194 2008-10-18  Bruno Haible  <bruno@clisp.org>
195
196         * modules/dirent: New file.
197         * m4/dirent_h.m4: New file.
198         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
199         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
200         * modules/fchdir (Files): Remove lib/dirent.in.h.
201         (Depends-on): Add dirent.
202         (Makefile.am): Move rules to modules/dirent.
203         * doc/posix-headers/dirent.texi: Mention the new module.
204
205 2008-10-18  Bruno Haible  <bruno@clisp.org>
206
207         Avoid -Wunused-parameter warnings in public gnulib header files.
208         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
209         macro.
210         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
211
212 2008-10-18  Bruno Haible  <bruno@clisp.org>
213
214         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
215         * doc/glibc-functions/error.texi: Mention the module 'error'.
216         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
217         * doc/glibc-functions/getdomainname.texi: Mention the module
218         'getdomainname'.
219         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
220         * doc/glibc-functions/getpagesize.texi: Mention the module
221         'getpagesize'.
222         * doc/glibc-functions/getusershell.texi: Mention the module
223         'getusershell'.
224         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
225         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
226         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
227         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
228         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
229         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
230         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
231         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
232         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
233         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
234         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
235         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
236         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
237         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
238
239 2008-10-17  Bruno Haible  <bruno@clisp.org>
240
241         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
242         HP-UX and IRIX, use -0.0L.
243         * tests/test-ceill.c (minus_zero): Likewise.
244         * tests/test-floorl.c (minus_zero): Likewise.
245         * tests/test-frexpl.c (minus_zero): Likewise.
246         * tests/test-isnan.c (minus_zerol): Likewise.
247         * tests/test-isnanl.h (minus_zero): Likewise.
248         * tests/test-ldexpl.c (minus_zero): Likewise.
249         * tests/test-roundl.c (minus_zero): Likewise.
250         * tests/test-signbit.c (minus_zerol): Likewise.
251         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
252         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
253         * tests/test-truncl.c (minus_zero): Likewise.
254         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
255         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
256         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
257         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
258
259 2008-10-17  Bruno Haible  <bruno@clisp.org>
260
261         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
262         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
263         that it gets activated only for gcc >= 3.0.
264         * lib/dirent.in.h: Likewise.
265         * lib/errno.in.h: Likewise.
266         * lib/fcntl.in.h: Likewise.
267         * lib/float.in.h: Likewise.
268         * lib/iconv.in.h: Likewise.
269         * lib/inttypes.in.h: Likewise.
270         * lib/locale.in.h: Likewise.
271         * lib/math.in.h: Likewise.
272         * lib/netdb.in.h: Likewise.
273         * lib/netinet_in.in.h: Likewise.
274         * lib/search.in.h: Likewise.
275         * lib/signal.in.h: Likewise.
276         * lib/spawn.in.h: Likewise.
277         * lib/stdarg.in.h: Likewise.
278         * lib/stdint.in.h: Likewise.
279         * lib/stdio.in.h: Likewise.
280         * lib/stdlib.in.h: Likewise.
281         * lib/string.in.h: Likewise.
282         * lib/strings.in.h: Likewise.
283         * lib/sys_file.in.h: Likewise.
284         * lib/sys_ioctl.in.h: Likewise.
285         * lib/sys_select.in.h: Likewise.
286         * lib/sys_socket.in.h: Likewise.
287         * lib/sys_stat.in.h: Likewise.
288         * lib/sys_time.in.h: Likewise.
289         * lib/sysexits.in.h: Likewise.
290         * lib/time.in.h: Likewise.
291         * lib/unistd.in.h: Likewise.
292         * lib/wchar.in.h: Likewise.
293         * lib/wctype.in.h: Likewise.
294         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
295
296 2008-10-17  Jim Meyering  <meyering@redhat.com>
297
298         ignore-value: don't depend on inline module
299         * modules/ignore-value (Depends-on): Remove 'inline'.
300         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
301         Suggestion from Bruno Haible.
302
303 2008-10-17  Bruno Haible  <bruno@clisp.org>
304
305         New implementation of condition variables for Win32.
306         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
307         (gl_linked_waitqueue_t): New type.
308         (gl_cond_t): Use it.
309         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
310         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
311         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
312         (glthread_cond_init_func, glthread_cond_wait_func,
313         glthread_cond_timedwait_func, glthread_cond_signal_func,
314         glthread_cond_broadcast_func, glthread_cond_destroy_func):
315         Reimplemented on the basis of gl_linked_waitqueue_t.
316         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
317         gl_waitqueue_t.
318         (gl_rwlock_t): Update.
319         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
320
321 2008-10-17  Simon Josefsson  <simon@josefsson.org>
322
323         * modules/recvfrom (Depends-on): Add dependency on getpeername.
324         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
325
326 2008-10-17  Jim Meyering  <meyering@redhat.com>
327
328         ignore-value: new module
329         * modules/ignore-value: New file.
330         * lib/ignore-value.h: New file.
331         * MODULES.html.sh (Compiler warning management): New section,
332         just for this module.  More to come.
333
334 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
335
336         open-safer.c: avoid 'signed and unsigned in conditional...' warning
337         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
338         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
339
340 2008-10-16  Jim Meyering  <meyering@redhat.com>
341
342         openat-die.c: avoid 'no previous prototype' warning
343         * lib/openat-die.c: Include "openat.h".
344         Reported by Reuben Thomas <rrt@sc3d.org>.
345
346 2008-10-16  Simon Josefsson  <simon@josefsson.org>
347
348         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
349         * lib/netdb.in.h: Fix typo.
350         Reported by Bruno Haible  <bruno@clisp.org>
351
352         * lib/netdb.in.h: Include sys/socket.h for platforms without
353         netdb.h, to get structures like hostent on MinGW.
354         * modules/netdb (Depends-on): Add sys_socket.
355
356 2008-10-15  Simon Josefsson  <simon@josefsson.org>
357
358         * modules/netdb, modules/netdb-tests: New file.
359         * m4/netdb_h.m4: New file.
360         * lib/netdb.in.h: Add, currently just an empty file pending
361         definitions.
362         * tests/test-netdb.c: New file.
363         * doc/posix-headers/netdb.texi: Mention that we replace it if
364         needed.
365         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
366         netdb.
367
368 2008-10-15  Simon Josefsson  <simon@josefsson.org>
369
370         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
371         with code.
372
373 2008-10-13  Bruno Haible  <bruno@clisp.org>
374
375         * lib/glthread/cond.c (glthread_cond_wait_func,
376         glthread_cond_timedwait_func): Add a comment.
377
378 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
379
380         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
381         * tests/test-select.c: Likewise,
382
383 2008-10-13  Bruno Haible  <bruno@clisp.org>
384
385         * lib/glthread/cond.c (glthread_cond_wait_func,
386         glthread_cond_timedwait_func): Fix variable name.
387         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
388
389 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
390
391         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
392         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
393         struct sockaddr.sa_len.
394         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
395
396 2008-10-13  Simon Josefsson  <simon@josefsson.org>
397
398         * build-aux/pmccabe2html: Add css and css_url parameters.
399
400 2008-10-12  Bruno Haible  <bruno@clisp.org>
401
402         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
403         calling aclx_get.
404         Reported by Rainer Tammer <tammer@tammer.net>.
405
406 2008-10-12  Bruno Haible  <bruno@clisp.org>
407
408         Use msvcrt aware primitives for creation/termination of Win32 threads.
409         * lib/glthread/thread.c: Include <process.h>.
410         (glthread_create_func): Use _beginthreadex instead of CreateThread.
411         (wrapper_func): Update signature.
412         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
413
414 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
415             Bruno Haible  <bruno@clisp.org>
416
417         Provide a Win32 implementation of the 'cond' module.
418         * lib/glthread/cond.h [USE_WIN32]: New implementation.
419         * lib/glthread/cond.c (glthread_cond_init_func,
420         glthread_cond_wait_func, glthread_cond_timedwait_func,
421         glthread_cond_signal_func, glthread_cond_broadcast_func,
422         glthread_cond_destroy_func) [USE_WIN32]: New functions.
423         * modules/cond (Dependencies): Add gettimeofday.
424
425 2008-10-11  Bruno Haible  <bruno@clisp.org>
426
427         Make sleep work on older versions of mingw.
428         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
429         only whether it exists.
430         * doc/posix-functions/sleep.texi: Mention the problem with older
431         versions of mingw.
432
433 2008-10-11  Bruno Haible  <bruno@clisp.org>
434
435         New module 'shutdown'.
436         * modules/shutdown: New file.
437         * lib/sys_socket.in.h (shutdown): New declaration.
438         * lib/winsock.c (shutdown): New function.
439         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
440         GNULIB_SHUTDOWN.
441         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
442         * doc/posix-functions/shutdown.texi: Document the new module.
443
444 2008-10-11  Jim Meyering  <meyering@redhat.com>
445
446         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
447
448 2008-10-11  Bruno Haible  <bruno@clisp.org>
449
450         New module 'fclose'.
451         * modules/fclose: New file.
452         * lib/stdio.in.h (fclose): New declaration.
453         * lib/fclose.c: New file.
454         * m4/fclose.m4: New file.
455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
456         REPLACE_FCLOSE.
457         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
458         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
459         REPLACE_FCLOSE.
460         * modules/close (Depends-on): fclose.
461         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
462
463 2008-10-11  Bruno Haible  <bruno@clisp.org>
464
465         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
466         set errno and don't call _close.
467
468 2008-10-10  Bruno Haible  <bruno@clisp.org>
469
470         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
471         ACL, not afterwards. Fixes test failure on Cygwin.
472
473 2008-10-09  Ben Pfaff  <blp@gnu.org>
474
475         * build-aux/announce-gen: Fix gnulib version related part of usage
476         message.  Die with a useful error message if no tarballs are
477         found.
478
479 2008-10-10  Jim Meyering  <meyering@redhat.com>
480
481         bootstrap: use git's --depth=N option only if it's supported
482         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
483         recognize the --depth option.  Reported by Pádraig Brady.
484
485 2008-10-09  Bruno Haible  <bruno@clisp.org>
486
487         New module 'ioctl'.
488         * modules/ioctl: New file.
489         * lib/sys_socket.in.h (ioctl): Remove declaration.
490         * lib/winsock.c: Include <sys/ioctl.h>.
491         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
492         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
493         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
494         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
495         * doc/posix-functions/ioctl.texi: Mention the new module.
496
497 2008-10-09  Bruno Haible  <bruno@clisp.org>
498
499         New module 'sys_ioctl'.
500         * lib/sys_ioctl.in.h: New file.
501         * m4/sys_ioctl_h.m4: New file.
502         * modules/sys_ioctl: New file.
503         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
504
505 2008-10-09  Bruno Haible  <bruno@clisp.org>
506
507         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
508         * lib/winsock.c: Include <stdarg.h>.
509         (rpl_ioctl): Change to second argument 'int' and then varargs.
510
511 2008-10-09  Bruno Haible  <bruno@clisp.org>
512
513         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
514         when the sys_socket module is present and the system has <winsock2.h>.
515
516 2008-10-09  Bruno Haible  <bruno@clisp.org>
517
518         * doc/posix-functions/close.texi: Mention module 'close' instead of
519         module 'sys_socket'.
520
521 2008-10-09  Bruno Haible  <bruno@clisp.org>
522
523         * doc/glibc-headers/sys_ioctl.texi: New file.
524         * doc/gnulib.texi: Include it.
525
526 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
527             Bruno Haible  <bruno@clisp.org>
528
529         Combine the two replacements of 'close'.
530         * lib/sys_socket.in.h (close): Define to a reminder to include
531         <unistd.h>.
532         (_gl_close_fd_maybe_socket): New declaration.
533         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
534         * lib/winsock.c (close): Remove undefinition.
535         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
536         needed for the gnulib module 'close'.
537         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
538         define to an error symbol or to a warning, if suitable.
539         * lib/close.c: Include <sys/socket.h>.
540         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
541         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
542         UNISTD_H_HAVE_WINSOCK2_H.
543         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
545         UNISTD_H_HAVE_WINSOCK2_H.
546         * modules/sys_socket (Files): Add m4/unistd_h.m4.
547         (configure.ac): Set a module indicator.
548         (Makefile.am): Substitute GNULIB_CLOSE.
549         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
550         * modules/poll-tests (Depends-on): Add close.
551         * modules/select-tests (Depends-on): Likewise.
552
553 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
554             Bruno Haible  <bruno@clisp.org>
555
556         New module 'close'.
557         * modules/close: New file.
558         * lib/unistd.in.h (close): Move declaration out of the
559         FCHDIR_REPLACEMENT scope.
560         (_gl_unregister_fd): New declaration.
561         * lib/close.c: New file.
562         * lib/fchdir.c (rpl_close): Remove function.
563         * m4/close.m4: New file.
564         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
565         close.
566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
567         REPLACE_CLOSE.
568         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
569         REPLACE_CLOSE.
570         * modules/fchdir (Depends-on): Add close.
571
572 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
573             Bruno Haible  <bruno@clisp.org>
574
575         * lib/fcntl.in.h (open): Simplify conditionals.
576         (_gl_register_fd): New declaration.
577         * lib/fchdir.c (rpl_open): Remove function.
578         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
579         also.
580         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
582         open.
583
584 2008-10-09  Jim Meyering  <meyering@redhat.com>
585
586         GNUmakefile: use the more name-space-friendly "_version"
587         * top/GNUmakefile (_dummy): Update.
588         (_version): Rename from "version".
589
590 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
591             Bruno Haible  <bruno@clisp.org>
592
593         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
594         rpl_close.
595         (_gl_register_fd): New function, extracted from rpl_open.
596         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
597         (rpl_open, rpl_opendir): Use _gl_register_fd.
598
599 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
600
601         Fix organization of 'open' replacement.
602         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
603         (gl_FUNC_OPEN): Use it.
604         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
605
606 2008-10-08  Bruno Haible  <bruno@clisp.org>
607
608         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
609
610 2008-10-08  Simon Josefsson  <simon@josefsson.org>
611
612         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
613         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
614         listen).
615
616 2008-10-08  Eric Blake  <ebb9@byu.net>
617
618         GNUmakefile: add 'make version' target
619         * top/GNUmakefile (_curr-ver): Split version update rules...
620         (version): ...into a target.
621
622 2008-10-07  Bruno Haible  <bruno@clisp.org>
623
624         Use a more portable replacement expression for -0.0L.
625         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
626         instead of -0.0L. Fix m4 quotation.
627
628         * tests/test-signbit.c: Include <float.h>.
629         (minus_zero): New variable.
630         (test_signbitl): Use minus_zero instead of -zero.
631         * modules/signbit-tests (Depends-on): Add float.
632
633         * tests/test-ceill.c: Include <float.h>.
634         (zero): Remove variable.
635         (minus_zero): New variable.
636         (main): Use minus_zero instead of -zero.
637         * modules/ceill-tests (Depends-on): Add float.
638
639         * tests/test-floorl.c: Include <float.h>.
640         (zero): Remove variable.
641         (minus_zero): New variable.
642         (main): Use minus_zero instead of -zero.
643         * modules/floorl-tests (Depends-on): Add float.
644
645         * tests/test-roundl.c: Include <float.h>.
646         (zero): Remove variable.
647         (minus_zero): New variable.
648         (main): Use minus_zero instead of -zero.
649         * modules/roundl-tests (Depends-on): Add float.
650
651         * tests/test-truncl.c: Include <float.h>.
652         (zero): Remove variable.
653         (minus_zero): New variable.
654         (main): Use minus_zero instead of -zero.
655         * modules/truncl-tests (Depends-on): Add float.
656
657         * tests/test-frexpl.c (zero): Remove variable.
658         (minus_zero): New variable.
659         (main): Use minus_zero instead of -zero.
660         * modules/frexpl-tests (Depends-on): Add float.
661
662         * tests/test-isnan.c (zerol): Remove variable.
663         (minus_zerol): New variable.
664         (test_long_double): Use minus_zerol instead of -zerol.
665         * modules/isnan-tests (Depends-on): Add float.
666
667         * tests/test-isnanl.h (zero): Remove variable.
668         (minus_zero): New variable.
669         (main): Use minus_zero instead of -zero.
670         * modules/isnanl-nolibm-tests (Depends-on): Add float.
671         * modules/isnanl-tests (Depends-on): Add float.
672
673         * tests/test-ldexpl.c (zero): Remove variable.
674         (minus_zero): New variable.
675         (main): Use minus_zero instead of -zero.
676         * modules/ldexpl-tests (Depends-on): Add float.
677
678         * tests/test-snprintf-posix.h (zerol): Remove variable.
679         (minus_zerol): New variable.
680         (test_function): Use minus_zerol instead of -zerol.
681         * modules/snprintf-posix-tests (Depends-on): Add float.
682         * modules/vsnprintf-posix-tests (Depends-on): Add float.
683
684         * tests/test-sprintf-posix.h (zerol): Remove variable.
685         (minus_zerol): New variable.
686         (test_function): Use minus_zerol instead of -zerol.
687         * modules/sprintf-posix-tests (Depends-on): Add float.
688         * modules/vsprintf-posix-tests (Depends-on): Add float.
689
690         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
691         (minus_zerol): New variable.
692         (test_function): Use minus_zerol instead of -zerol.
693         * modules/vasnprintf-posix-tests (Depends-on): Add float.
694
695         * tests/test-vasprintf-posix.c (zerol): Remove variable.
696         (minus_zerol): New variable.
697         (test_function): Use minus_zerol instead of -zerol.
698         * modules/vasprintf-posix-tests (Depends-on): Add float.
699
700 2008-10-07  Simon Josefsson  <simon@josefsson.org>
701
702         * MODULES.html.sh (Support for building documentation): Mention
703         pmccabe2html.  Sort entries.
704
705         Add pmccabe2html module, from gnupdf.
706         * build-aux/pmccabe.css: New file.
707         * build-aux/pmccabe2html: New file.
708         * m4/pmccabe2html.m4: New file.
709         * modules/pmccabe2html: New file.
710
711 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
712
713         flock: new module
714         * MODULES.html.sh: Add to list of modules.
715         * lib/flock.c: flock implementation for Windows and Unix systems
716         which have fcntl.
717         * doc/glibc-functions/flock.texi: Update documentation.
718         * lib/sys_file.in.h: <sys/file.h> header file.
719         * m4/flock.m4: M4 macros.
720         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
721         * modules/flock: flock module.
722         * modules/flock-tests: flock tests module.
723         * modules/sys_file: sys/file.h module.
724         * tests/test-flock.c: test suite for flock.
725
726 2008-10-06  Jim Meyering  <meyering@redhat.com>
727
728         bootstrap: check for LT_INIT more portably still ;-)
729         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
730         Spotted by Bruno Haible.
731
732 2008-10-06  Eric Blake  <ebb9@byu.net>
733
734         test-signbit: avoid tripping Irix cc bug on -0.0L
735         * tests/test-signbit.c (minus_zerol): Delete, and replace with
736         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
737         entire testsuite consistent and avoids an Irix 6.2 bug.
738
739 2008-10-05  Bruno Haible  <bruno@clisp.org>
740             Jim Meyering  <jim@meyering.net>
741
742         Add an option for ignoring EPIPE during close_stdout.
743         * lib/closeout.h: Include <stdbool.h>.
744         (close_stdout_set_ignore_EPIPE): New declaration.
745         * lib/closeout.c: Include <stdbool.h>.
746         (ignore_EPIPE): New variable.
747         (close_stdout_set_ignore_EPIPE): New function.
748         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
749         * lib/close-stream.c (close_stream): Mention the possible EPIPE
750         failure.
751         * modules/closeout (Depends-on): Add stdbool.
752
753 2008-10-05  Bruno Haible  <bruno@clisp.org>
754
755         * modules/accept: New file.
756         * modules/bind: New file.
757         * modules/connect: New file.
758         * modules/getpeername: New file.
759         * modules/getsockname: New file.
760         * modules/getsockopt: New file.
761         * modules/listen: New file.
762         * modules/recv: New file.
763         * modules/recvfrom: New file.
764         * modules/send: New file.
765         * modules/sendto: New file.
766         * modules/setsockopt: New file.
767         * modules/socket: New file.
768         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
769         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
770         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
771         the particular module is requested. Add a link warning when the
772         particular module is not requested.
773         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
774         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
775         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
776         the particular module is requested.
777         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
778         gl_SYS_SOCKET_H_DEFAULTS): New macros.
779         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
780         * modules/sys_socket (Depends-on): Add link-warning.
781         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
782         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
783         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
784         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
785         GL_LINK_WARNING.
786         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
787         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
788         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
789         * doc/posix-functions/getpeername.texi: Mention the new module
790         'getpeername'.
791         * doc/posix-functions/getsockname.texi: Mention the new module
792         'getsockname'.
793         * doc/posix-functions/getsockopt.texi: Mention the new module
794         'getsockopt'.
795         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
796         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
797         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
798         * doc/posix-functions/send.texi: Mention the new module 'send'.
799         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
800         * doc/posix-functions/setsockopt.texi: Mention the new module
801         'setsockopt'.
802         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
803         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
804         listen, connect, accept.
805         * modules/select-tests (Depends-on): Likewise.
806
807 2008-10-05  Bruno Haible  <bruno@clisp.org>
808
809         * lib/winsock.c (strerror): Remove unused #undef.
810         (rpl_close): Remove unused local variable.
811
812         * modules/sys_socket (Depends-on); Add errno.
813
814 2008-10-05  Bruno Haible  <bruno@clisp.org>
815
816         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
817         (select): Add a link warning when the 'select' module is not used.
818         * modules/sys_select (Depends-on): Add link-warning.
819         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
820         Suggested by Paolo Bonzini.
821
822 2008-10-05  Jim Meyering  <meyering@redhat.com>
823
824         bootstrap: check for LT_INIT more portably
825         * build-aux/bootstrap: Avoid using grep -E, since it's not
826         portable enough.  Suggestion from Bruno Haible.
827
828 2008-10-05  Bruno Haible  <bruno@clisp.org>
829
830         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
831         as being fixed by gnulib.
832
833 2008-10-05  Bruno Haible  <bruno@clisp.org>
834
835         * modules/select-tests: New file, mostly copied from
836         modules/sys_select-tests.
837         * tests/test-select.c: New file, mostly copied from
838         tests/test-sys_select.c.
839         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
840         * modules/sys_select-tests (Depends-on): Remove all dependencies.
841         (Makefile.am): Remove test_sys_select_LDADD.
842
843         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
844         to an undefined symbol, for an error message.
845         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
846         (gl_SYS_SELECT_H_DEFAULTS): New macro.
847         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
848         winsock-select.c here.
849         * modules/sys_select (Files): Remove lib/winsock-select.c.
850         (Depends-on): Remove alloca.
851         (Makefile.am): Substitute GNULIB_SELECT.
852         * modules/select: New file.
853         * doc/posix-functions/select.texi: Update.
854
855 2008-10-05  Bruno Haible  <bruno@clisp.org>
856
857         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
858         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
859         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
860         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
861         getdtablesize.
862         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
863         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
864
865 2008-10-05  Bruno Haible  <bruno@clisp.org>
866
867         * modules/getdtablesize-tests: New file.
868         * tests/test-getdtablesize.c: New file.
869
870         New module 'getdtablesize'.
871         * lib/unistd.in.h (getdtablesize): New declaration.
872         * lib/getdtablesize.c: New file.
873         * m4/getdtablesize.m4: New file.
874         * modules/getdtablesize: New file.
875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
876         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
877         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
878         HAVE_GETDTABLESIZE.
879         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
880
881 2008-10-05  Bruno Haible  <bruno@clisp.org>
882
883         * modules/sched (Makefile.am): Fix typo.
884         Reported by Simon Josefsson.
885
886 2008-10-05  Jim Meyering  <meyering@redhat.com>
887
888         bootstrap: check for LT_INIT, too
889         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
890         are deprecated.  Suggestion from Ralf Wildenhues.
891
892 2008-10-05  Bruno Haible  <bruno@clisp.org>
893
894         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
895         overriding them by ours.
896         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
897
898 2008-10-05  Jim Meyering  <meyering@redhat.com>
899
900         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
901         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
902         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
903
904 2008-10-04  Bruno Haible  <bruno@clisp.org>
905
906         * modules/dup2 (License): Change to LGPLv2+.
907         * modules/sleep (License): Likewise.
908         * modules/perror (License): Likewise.
909         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
910         Blake.
911         * modules/signal (License): Likewise.
912         * modules/sigprocmask (License): Likewise.
913         * modules/raise (License): Change to LGPLv2+, with approval by Jim
914         Meyering.
915
916 2008-10-04  Bruno Haible  <bruno@clisp.org>
917
918         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
919         Reported by Rainer Tammer <tammer@tammer.net>.
920
921 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
922             Bruno Haible  <bruno@clisp.org>
923
924         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
925         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
926         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
927
928 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
929
930         filevercmp: new module
931         * lib/filevercmp.h: New function filevercmp comparing version strings.
932         * lib/filevercmp.c: Implementation of filevercmp function.
933         * modules/filevercmp: Module metadata.
934         * tests/test-filevercmp.c: Unit test for new module.
935         * modules/filevercmp-tests: Unit test metadata.
936         * MODULES.html.sh: Add filevercmp module.
937
938 2008-10-03  Bruno Haible  <bruno@clisp.org>
939
940         * lib/c-ctype.h: Add comment.
941         Reported by Jim Meyering.
942
943 2008-10-02  Bruno Haible  <bruno@clisp.org>
944
945         * modules/posix_spawn-internal (Depends-on): Add 'open'.
946
947 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
948
949         * build-aux/bootstrap: Allow renaming bootstrap, and change the
950         name of bootstrap.conf accordingly.
951
952 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
953
954         * build-aux/bootstrap: Install git-merge-changelog configuration
955         items into .gitconfig if needed.
956
957 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
958
959         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
960         git repository, and initialize/update it accordingly.
961
962 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
963
964         * modules/fsync-tests: New file.
965         * tests/test-fsync.c: New file.
966
967         New module 'fsync'.
968         * lib/fsync.c: New file.
969         * m4/fsync.m4: New file.
970         * modules/fsync: New file.
971         * lib/unistd.in.h (fsync): New declaration.
972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
973         GNULIB_FSYNC and HAVE_FSYNC.
974         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
975         * MODULES.html.sh (posix_functions): Add fsync.
976         * doc/posix-functions/fsync.texi: Mention the new module.
977
978 2008-10-02  Jim Meyering  <meyering@redhat.com>
979
980         fts.c: sync with similar code from coreutils' remove.c
981         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
982         Guard also with "#if defined __linux__", since for now at least,
983         this code is Linux-kernel-specific.
984
985 2008-10-02  Jim Meyering  <meyering@redhat.com>
986
987         fts: bug fixes
988         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
989         Include <sys/vfs.h>, not <sys/statfs.h>.
990
991         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
992         Include <sys/vfs.h>, not <sys/statfs.h>.
993
994 2008-10-01  Bruno Haible  <bruno@clisp.org>
995
996         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
997         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
998         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
999         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
1000         * doc/posix-functions/posix_spawnp.texi: Likewise.
1001         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
1002         whether posix_spawn actually works.
1003         * m4/pipe.m4 (gl_PIPE): Likewise.
1004         * modules/execute (Files): Add m4/posix_spawn.m4.
1005         * modules/pipe (Files): Add m4/posix_spawn.m4.
1006         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
1007
1008 2008-10-01  Jim Meyering  <meyering@redhat.com>
1009
1010         remove trailing spaces
1011         * NEWS: Likewise.
1012         * lib/poll.c (poll): Likewise.
1013         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
1014         * lib/winsock.c (rpl_close): Likewise.
1015         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
1016         * modules/yield: Likewise.
1017         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
1018         * tests/test-sys_select.c (connect_to_socket): Likewise.
1019
1020         fts.c: adjust a new interface to be more generally useful
1021         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
1022         (fts_build): Adjust caller.
1023
1024 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1025
1026         * modules/cond-tests: New file.
1027         * tests/test-cond.c: New file.
1028
1029 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1030             Bruno Haible  <bruno@clisp.org>
1031
1032         * modules/cond (Dependencies): Add errno, time.
1033         * lib/glthread/cond.h: Include <time.h>.
1034         (gl_cond_define, gl_cond_define_initialized): Use the same definition
1035         across platforms.
1036
1037 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1038             Bruno Haible  <bruno@clisp.org>
1039
1040         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
1041
1042 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1043             Bruno Haible  <bruno@clisp.org>
1044
1045         * modules/tls-tests (Depends-on): Add thread, yield.
1046         (configure.ac): Remove all checks.
1047         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
1048         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1049         gl_thread_self): Remove definitions. Include glthread/thread.h and
1050         glthread/yield.h instead.
1051         (test_tls): Pass an additional NULL argument to gl_thread_join.
1052
1053 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1054             Bruno Haible  <bruno@clisp.org>
1055
1056         * modules/lock-tests (Depends-on): Add thread, yield.
1057         (configure.ac): Remove all checks.
1058         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
1059         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1060         gl_thread_self): Remove definitions. Include glthread/thread.h and
1061         glthread/yield.h instead.
1062         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
1063         additional NULL argument to gl_thread_join.
1064
1065 2008-09-30  Bruno Haible  <bruno@clisp.org>
1066
1067         Fix the Win32 implementation of the 'thread' module.
1068         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
1069         pointer type.
1070         (gl_thread_self): Invoke gl_thread_self_func.
1071         (gl_thread_self_func): New declaration.
1072         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
1073         (do_init_self_key, init_self_key): New functions.
1074         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
1075         Remove some fields.
1076         (running_threads, running_lock): Remove variables.
1077         (get_current_thread_handle): New function.
1078         (gl_thread_self_func, wrapper_func, glthread_create_func,
1079         glthread_join_func, gl_thread_exit_func): Largely rewritten and
1080         simplified.
1081
1082 2008-09-30  Bruno Haible  <bruno@clisp.org>
1083
1084         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
1085         files.
1086
1087 2008-09-30  Jim Meyering  <meyering@redhat.com>
1088
1089         fts.m4: correct the test for statfs.f_type
1090         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
1091         when checking for statfs.f_type.
1092
1093 2008-09-15  Simon Josefsson  <simon@josefsson.org>
1094
1095         tests: avoid some compiler warnings
1096         * tests/test-memchr.c (main): Pass NULL indirectly.
1097         * tests/test-getdate.c (main): Remove unused variable 'ret'.
1098
1099 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
1100
1101         getdate.y: disallow countable dayshifts like "4 yesterday ago"
1102         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
1103         exactly specified dayshifts.
1104         (dayshift): New rule.
1105         (rel): Add dayshift.
1106         (relative_time_table) [tomorrow, yesterday, today, now]:
1107         Use tDAY_SHIFT in place of tDAY_UNIT.
1108         * tests/test-getdate.c: Add tests for now-disallowed countable
1109         dayshifts, e.g., "4 yesterday ago".
1110
1111 2008-09-29  Bruno Haible  <bruno@clisp.org>
1112
1113         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
1114         * tests/test-posix_spawn1.in.sh: Renamed from
1115         tests/test-posix_spawn.in.sh.
1116         * tests/test-posix_spawn2.c: New file.
1117         * tests/test-posix_spawn2.in.sh: New file.
1118         * modules/posix_spawnp-tests (Files): Update.
1119         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
1120
1121 2008-09-29  Bruno Haible  <bruno@clisp.org>
1122
1123         Propagate effects of putenv/setenv/unsetenv to child processes.
1124         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
1125         * lib/pipe.c (create_pipe): Likewise.
1126
1127 2008-09-29  Bruno Haible  <bruno@clisp.org>
1128
1129         Enable use of shell scripts as executables in mingw.
1130         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
1131         run the program as a shell script.
1132         * lib/pipe.c (create_pipe): Likewise.
1133         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
1134         resulting array.
1135
1136 2008-09-29  Eric Blake  <ebb9@byu.net>
1137
1138         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
1139
1140 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
1141
1142         * doc/posix-functions/accept.texi: Update mingw problems.
1143         * doc/posix-functions/bind.texi: Update mingw problems.
1144         * doc/posix-functions/close.texi: Update mingw problems.
1145         * doc/posix-functions/connect.texi: Update mingw problems.
1146         * doc/posix-functions/getpeername.texi: Update mingw problems.
1147         * doc/posix-functions/getsockname.texi: Update mingw problems.
1148         * doc/posix-functions/getsockopt.texi: Update mingw problems.
1149         * doc/posix-functions/ioctl.texi: Update mingw problems.
1150         * doc/posix-functions/listen.texi: Update mingw problems.
1151         * doc/posix-functions/recv.texi: Update mingw problems.
1152         * doc/posix-functions/recvfrom.texi: Update mingw problems.
1153         * doc/posix-functions/select.texi: Update mingw problems.
1154         * doc/posix-functions/send.texi: Update mingw problems.
1155         * doc/posix-functions/sendto.texi: Update mingw problems.
1156         * doc/posix-functions/setsockopt.texi: Update mingw problems.
1157         * doc/posix-functions/socket.texi: Update mingw problems.
1158
1159 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
1160             Bruno Haible  <bruno@clisp.org>
1161
1162         * lib/sys_select.in.h: Include sys/time.h.
1163         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
1164         * modules/sys_select: Depend on sys_time.
1165         * tests/test-sys_select.c: Test that sys/select.h defines struct
1166         timeval fully.
1167
1168 2008-09-29  Bruno Haible  <bruno@clisp.org>
1169
1170         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
1171         * lib/sys_select.in.h: Likewise.
1172
1173 2008-09-29  Bruno Haible  <bruno@clisp.org>
1174
1175         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
1176
1177 2008-09-29  Bruno Haible  <bruno@clisp.org>
1178
1179         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
1180         Set LIBSOCKET instead of augmenting LIBS.
1181         * modules/sockets (Link): New section.
1182         * modules/sockets-tests (test_sockets_LDADD): New variable.
1183         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
1184         * modules/poll-tests (test_poll_LDADD): New variable.
1185         * NEWS: Document the change.
1186
1187 2008-09-29  Bruno Haible  <bruno@clisp.org>
1188
1189         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
1190         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
1191         ARPA_INET_H directly.
1192         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1193
1194 2008-09-28  Bruno Haible  <bruno@clisp.org>
1195
1196         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
1197         from gl_HEADER_SYS_SOCKET.
1198         (gl_HEADER_SYS_SOCKET): Invoke it.
1199         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1200
1201 2008-09-28  Bruno Haible  <bruno@clisp.org>
1202
1203         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
1204         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
1205         Needed on OSF/1 4.0.
1206
1207 2008-09-28  Bruno Haible  <bruno@clisp.org>
1208
1209         Override open more carefully.
1210         * lib/open.c (orig_open): New function.
1211         (rpl_open): Use orig_open instead of open.
1212         * lib/fcntl.in.h: Add special invocation convention.
1213         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
1214         (gl_FUNC_OPEN): Invoke it.
1215
1216         Override freopen more carefully.
1217         * lib/freopen.c (orig_freopen): New function.
1218         (rpl_freopen): Use orig_freopen instead of freopen.
1219         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
1220         (gl_FUNC_FREOPEN): Invoke it.
1221
1222         Override fopen more carefully.
1223         * lib/fopen.c (orig_fopen): New function.
1224         (rpl_fopen): Use orig_fopen instead of fopen.
1225         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
1226         (gl_FUNC_FOPEN): Invoke it.
1227         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
1228
1229 2008-09-28  Bruno Haible  <bruno@clisp.org>
1230
1231         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
1232         SIGPIPE.
1233
1234 2008-09-28  Bruno Haible  <bruno@clisp.org>
1235
1236         * tests/test-sigaction.c (handler, main): Disable the check whether
1237         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
1238         glibc systems with LinuxThreads.
1239
1240 2008-09-28  Bruno Haible  <bruno@clisp.org>
1241
1242         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
1243
1244         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
1245         with AIX xlc.
1246         * lib/fcntl.in.h (open): Likewise.
1247         Reported by Rainer Tammer <tammer@tammer.net>.
1248
1249 2008-09-28  Bruno Haible  <bruno@clisp.org>
1250
1251         * modules/posix_spawnp-tests: New file.
1252         * tests/test-posix_spawn.c: New file.
1253         * tests/test-posix_spawn.in.sh: New file.
1254
1255         New module 'posix_spawnp'.
1256         * modules/posix_spawnp: New file.
1257         * lib/spawnp.c: New file, from GNU libc with modifications.
1258         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
1259
1260         New module 'posix_spawn'.
1261         * modules/posix_spawn: New file.
1262         * lib/spawn.c: New file, from GNU libc with modifications.
1263         * doc/posix-functions/posix_spawn.texi: Mention the new module.
1264
1265         New module 'posix_spawnattr_destroy'.
1266         * modules/posix_spawnattr_destroy: New file.
1267         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
1268         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
1269         module.
1270
1271         New module 'posix_spawnattr_setsigmask'.
1272         * modules/posix_spawnattr_setsigmask: New file.
1273         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
1274         modifications.
1275         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
1276         new module.
1277
1278         New module 'posix_spawnattr_getsigmask'.
1279         * modules/posix_spawnattr_getsigmask: New file.
1280         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
1281         modifications.
1282         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
1283         new module.
1284
1285         New module 'posix_spawnattr_setsigdefault'.
1286         * modules/posix_spawnattr_setsigdefault: New file.
1287         * lib/spawnattr_setdefault.c: New file, from GNU libc with
1288         modifications.
1289         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
1290         new module.
1291
1292         New module 'posix_spawnattr_getsigdefault'.
1293         * modules/posix_spawnattr_getsigdefault: New file.
1294         * lib/spawnattr_getdefault.c: New file, from GNU libc with
1295         modifications.
1296         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
1297         new module.
1298
1299         New module 'posix_spawnattr_setschedpolicy'.
1300         * modules/posix_spawnattr_setschedpolicy: New file.
1301         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
1302         modifications.
1303         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
1304         new module.
1305
1306         New module 'posix_spawnattr_getschedpolicy'.
1307         * modules/posix_spawnattr_getschedpolicy: New file.
1308         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
1309         modifications.
1310         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
1311         new module.
1312
1313         New module 'posix_spawnattr_setschedparam'.
1314         * modules/posix_spawnattr_setschedparam: New file.
1315         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
1316         modifications.
1317         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
1318         new module.
1319
1320         New module 'posix_spawnattr_getschedparam'.
1321         * modules/posix_spawnattr_getschedparam: New file.
1322         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
1323         modifications.
1324         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
1325         new module.
1326
1327         New module 'posix_spawnattr_setpgroup'.
1328         * modules/posix_spawnattr_setpgroup: New file.
1329         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
1330         modifications.
1331         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
1332         module.
1333
1334         New module 'posix_spawnattr_getpgroup'.
1335         * modules/posix_spawnattr_getpgroup: New file.
1336         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
1337         modifications.
1338         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
1339         module.
1340
1341         New module 'posix_spawnattr_setflags'.
1342         * modules/posix_spawnattr_setflags: New file.
1343         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
1344         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
1345         module.
1346
1347         New module 'posix_spawnattr_getflags'.
1348         * modules/posix_spawnattr_getflags: New file.
1349         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
1350         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
1351         module.
1352
1353         New module 'posix_spawnattr_init'.
1354         * modules/posix_spawnattr_init: New file.
1355         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
1356         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
1357         module.
1358
1359         New module 'posix_spawn_file_actions_destroy'.
1360         * modules/posix_spawn_file_actions_destroy: New file.
1361         * lib/spawn_faction_destroy.c: New file, from GNU libc with
1362         modifications.
1363         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
1364         the new module.
1365
1366         New module 'posix_spawn_file_actions_addopen'.
1367         * modules/posix_spawn_file_actions_addopen: New file.
1368         * lib/spawn_faction_addopen.c: New file, from GNU libc with
1369         modifications.
1370         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1371         the new module.
1372
1373         New module 'posix_spawn_file_actions_adddup2'.
1374         * modules/posix_spawn_file_actions_adddup2: New file.
1375         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
1376         modifications.
1377         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1378         the new module.
1379
1380         New module 'posix_spawn_file_actions_addclose'.
1381         * modules/posix_spawn_file_actions_addclose: New file.
1382         * lib/spawn_faction_addclose.c: New file, from GNU libc with
1383         modifications.
1384         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1385         the new module.
1386
1387         New module 'posix_spawn_file_actions_init'.
1388         * modules/posix_spawn_file_actions_init: New file.
1389         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
1390         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
1391         new module.
1392
1393         New module 'posix_spawn-internal'.
1394         * modules/posix_spawn-internal: New file.
1395         * lib/spawn_int.h: New file, from GNU libc with modifications.
1396         * lib/spawni.c: New file, from GNU libc with modifications.
1397         * m4/posix_spawn.m4: New file.
1398
1399         New module 'spawn'.
1400         * modules/spawn: New file.
1401         * lib/spawn.in.h: New file, from GNU libc with modifications.
1402         * m4/spawn_h.m4: New file.
1403         * doc/posix-headers/spawn.texi: Mention the new module.
1404
1405 2008-09-28  Bruno Haible  <bruno@clisp.org>
1406
1407         * modules/sched-tests: New file.
1408         * tests/test-sched.c: New file.
1409
1410         New module 'sched'.
1411         * modules/sched: New file.
1412         * lib/sched.in.h: New file.
1413         * m4/sched_h.m4: New file.
1414         * doc/posix-headers/sched.texi: Mention the new module.
1415
1416 2008-09-27  Eric Blake  <ebb9@byu.net>
1417
1418         Fix previous patch, and tweak references to $0.
1419         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
1420         (func_version, func_gnulib_dir): Don't call this program
1421         gnulib-tool.
1422         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
1423         with using $0 in function.
1424         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
1425         (func_fatal_error): Reuse the name the user invoked us with.
1426
1427 2008-09-27  Bruno Haible  <bruno@clisp.org>
1428
1429         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
1430         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
1431         (gl_ICONV_H): Not here.
1432         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1433         instead of assigning ICONV_H directly.
1434
1435         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
1436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
1437         WCHAR_H directly.
1438
1439 2008-09-27  Bruno Haible  <bruno@clisp.org>
1440
1441         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
1442         * modules/arpa_inet (Depends-on): Add link-warning.
1443         (Makefile.am): Insert the definition of GL_LINK-WARNING.
1444         * modules/unistd (Makefile.am): Likewise.
1445
1446 2008-09-26  Bruno Haible  <bruno@clisp.org>
1447
1448         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
1449         variables.
1450         (func_version): Essentially copied from gnulib-tool.
1451         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
1452         func_readlink): Copied from gnulib-tool.
1453
1454 2008-09-26  Bruno Haible  <bruno@clisp.org>
1455
1456         * gnulib-tool (func_version): Change directory to $gnulib_dir before
1457         invoking git-version-gen.
1458
1459 2008-09-26  Bruno Haible  <bruno@clisp.org>
1460
1461         * posix-modules: Update to directory names changed on 2008-01-19.
1462         Remove commas in output before splitting into words. No more need to
1463         avoid 'ftruncate' since 2007-02-19.
1464
1465 2008-09-26  Bruno Haible  <bruno@clisp.org>
1466
1467         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
1468
1469 2008-09-26  Bruno Haible  <bruno@clisp.org>
1470
1471         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
1472         * modules/fwriteerror (Depends-on): Add errno.
1473
1474 2008-09-26  Bruno Haible  <bruno@clisp.org>
1475
1476         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
1477         * tests/test-vc-list-files-cvs.sh: Likewise.
1478
1479 2008-09-26  Bruno Haible  <bruno@clisp.org>
1480
1481         * doc/posix-headers/sys_resource.texi: Reorder items.
1482
1483 2008-09-26  Jim Meyering  <meyering@redhat.com>
1484
1485         fts: tweak inode comparison function
1486         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
1487         inode numbers, as documented.
1488
1489         fts: sort dirent entries on inode number before traversing
1490         This avoids a quadratic, seek-related performance penalty when
1491         operating on a directory containing many entries (measurable at 10k;
1492         3.5 hours at 2 million entries with a cold cache) on certain types
1493         of file systems, including ext3 and ext4, but not tmpfs.
1494         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
1495         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
1496         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
1497         (fs_handles_readdir_ordered_dirents_efficiently): New function.
1498         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
1499         (fts_build): Set the stat.st_ino member from D_INO.
1500         If it is likely to be useful, sort dirent entries on inode number.
1501
1502         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
1503         and the struct statfs.f_type member.
1504         * modules/fts (Depends-on): Add d-ino.
1505
1506 2008-09-26  Bruno Haible  <bruno@clisp.org>
1507
1508         * modules/sigpipe-die (Depends-on): Add sigpipe.
1509
1510         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
1511         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
1512         and GNULIB_STDIO_H_SIGPIPE are set.
1513         * lib/stdio-write.c: New file.
1514         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
1515         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1516         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1517         REPLACE_STDIO_WRITE_FUNCS.
1518         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
1519         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1520         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1521         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1522         * modules/stdio (Files): Add lib/stdio-write.c.
1523         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
1524         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1525         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1526         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1527         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
1528         REPLACE_FPRINTF_POSIX.
1529         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
1530         REPLACE_PRINTF_POSIX.
1531         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
1532         REPLACE_VFPRINTF_POSIX.
1533         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
1534         REPLACE_VPRINTF_POSIX.
1535         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
1536         SIGPIPE issue.
1537         * doc/posix-functions/fputc.texi: Likewise.
1538         * doc/posix-functions/fputs.texi: Likewise.
1539         * doc/posix-functions/fwrite.texi: Likewise.
1540         * doc/posix-functions/printf.texi: Likewise.
1541         * doc/posix-functions/putc.texi: Likewise.
1542         * doc/posix-functions/putchar.texi: Likewise.
1543         * doc/posix-functions/puts.texi: Likewise.
1544         * doc/posix-functions/vfprintf.texi: Likewise.
1545         * doc/posix-functions/vprintf.texi: Likewise.
1546
1547         * modules/safe-write (Depends-on): Add write.
1548
1549         * modules/sigpipe-tests: New file.
1550         * tests/test-sigpipe.c: New file.
1551         * tests/test-sigpipe.sh: New file.
1552
1553         * modules/write: New file.
1554         * lib/unistd.in.h: Include <sys/types.h>.
1555         (write): New declaration.
1556         * lib/write.c: New file.
1557         * m4/write.m4: New file.
1558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1559         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
1560         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
1561         GNULIB_WRITE, REPLACE_WRITE.
1562         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
1563         and the SIGPIPE issue.
1564
1565         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
1566         (raise): New declaration.
1567         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
1568         (ext_signal): New function.
1569         (rpl_raise): New function.
1570         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1571         GNULIB_SIGNAL_H_SIGPIPE.
1572         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
1573         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
1574
1575         * modules/sigpipe: New file.
1576         * m4/sigpipe.m4: New file.
1577
1578 2008-09-25  Derek Price  <derek@ximbiot.com>
1579             Bruno Haible  <bruno@clisp.org>
1580
1581         * gnulib-tool (func_import): Report all license incompatibilities, not
1582         just the first one.
1583
1584 2008-09-25  Bruno Haible  <bruno@clisp.org>
1585
1586         * gnulib-tool (func_import): When computing the edits, consider not
1587         only the Makefile.ams that exist but also those that will be generated.
1588
1589 2008-09-25  Simon Josefsson  <simon@josefsson.org>
1590
1591         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
1592         fixes gnulib-tool --test warning about duplicate dependency.
1593
1594 2008-09-25  Bruno Haible  <bruno@clisp.org>
1595
1596         * gnulib-tool: Don't ask the user to perform edits in the generated
1597         Makefile.ams.
1598         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
1599         apply to the Makefile.am being generated.
1600         (func_emit_tests_Makefile_am): Execute edits that apply to the
1601         Makefile.am being generated.
1602         (func_import): Setup list of Makefile.am edits before emitting the
1603         Makefile.ams, not at the end.
1604         (func_create_testdir): Update.
1605         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1606
1607 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1608
1609         * gnulib-tool (func_import): Store the --tests-base option in the
1610         comment in gnulib-cache.m4.
1611
1612 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
1613
1614         * NEWS: Document increased portability that sys_select now provides.
1615
1616         * lib/sys_select.in.h: Install select wrapper.
1617         * lib/sys_socket.in.h: Use more descriptive name when there is no
1618         select wrapper.
1619         * lib/winsock-select.c: New.
1620         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
1621         Require gl_HEADER_SYS_SOCKET.
1622         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
1623         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
1624         * tests/test-sys_select.c: Add functional tests.
1625
1626 2008-09-24  Eric Blake  <ebb9@byu.net>
1627
1628         open, fopen: close fd leak in last patch
1629         * lib/open.c (rpl_open): Close fd before returning error.
1630         * lib/fopen.c (rpl_fopen): Close fd before returning error.
1631         * doc/posix-functions/open.texi (open): Document that Irix also
1632         has the bug.
1633         * doc/posix-functions/fopen.texi (fopen): Likewise.
1634         Reported by Paolo Bonzini.
1635
1636 2008-09-24  Bruno Haible  <bruno@clisp.org>
1637
1638         Ensure that a filename ending in a slash cannot be used to access a
1639         non-directory.
1640         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
1641         to check whether it's really a directory.
1642         * lib/fopen.c: Include fcntl.h, unistd.h.
1643         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
1644         and fdopen().
1645         * modules/fopen (Depends-on): Add unistd.
1646         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
1647         * tests/test-fopen.c (main): Likewise.
1648         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
1649         * doc/posix-functions/fopen.texi: Likewise.
1650         Reported by Eric Blake.
1651
1652 2008-09-23  Eric Blake  <ebb9@byu.net>
1653
1654         c-stack: avoid compiler optimizations when provoking overflow
1655         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
1656         recursion harder to optimize, to ensure a stack overflow occurs.
1657         * tests/test-c-stack.c (recurse): Likewise.
1658         Borrowed from libsigsegv.
1659
1660         c-stack: work around Irix sigaltstack bug
1661         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
1662         whether sigaltstack uses wrong end of stack_t (copied in part from
1663         libsigsegv).
1664         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
1665         Irix bug, without requiring an over-allocation.
1666         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
1667         bug.
1668
1669         fopen: document mingw bug on directories
1670         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
1671         not allowing a stream visiting a directory, even though reading
1672         from such a stream is not portable.
1673
1674 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1675
1676         * lib/poll.c: Rewrite.
1677         * modules/poll: Depend on alloca.
1678
1679 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1680
1681         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
1682         instead define prototypes for a full set of wrappers.  Ensure
1683         that Cygwin does not use the compatibility code, which is only
1684         for MinGW.
1685         * lib/winsock.c: New.
1686         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
1687         * modules/sys_socket: Add lib/winsock.c.
1688
1689         * modules/poll-tests: Add errno and perror.
1690         * tests/test-poll.c: Use ioctl, not ioctlsocket.
1691
1692 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1693
1694         * tests/test-poll.c: Downgrade minimum needed Winsock version.
1695
1696 2008-09-23  Bruno Haible  <bruno@clisp.org>
1697
1698         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
1699         * doc/glibc-functions/*: Likewise.
1700
1701 2008-09-23  Simon Josefsson  <simon@josefsson.org>
1702
1703         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
1704         success.
1705
1706 2008-09-22  Eric Blake  <ebb9@byu.net>
1707             Bruno Haible  <bruno@clisp.org>
1708
1709         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
1710         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
1711         supply %A but mishandle pseudo-NaN.
1712         Reported by Simon Josefsson.
1713
1714 2008-09-21  Bruno Haible  <bruno@clisp.org>
1715
1716         * tests/test-lock.c (main): Tweak skip message.
1717         * tests/test-tls.c (main): Likewise.
1718
1719 2008-09-21  Bruno Haible  <bruno@clisp.org>
1720
1721         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
1722         whether 'struct sigaction' has sa_sigaction here...
1723         (gl_PREREQ_SIG_HANDLER_H): ... not here.
1724         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
1725
1726 2008-09-21  Bruno Haible  <bruno@clisp.org>
1727
1728         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
1729         section.
1730         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
1731         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
1732         the new section.
1733         (Support for obsolete systems lacking POSIX:2001): New section.
1734         (String handling <string.h>): Move strdup to the new section.
1735         Suggested by Simon Josefsson and Paolo Bonzini.
1736
1737 2008-09-21  Bruno Haible  <bruno@clisp.org>
1738
1739         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
1740         exponents in %e and %g results on 'long double'. Needed for mingw's
1741         improved *printf functions.
1742         * tests/test-vasprintf-posix.c (test_function): Likewise.
1743         * tests/test-snprintf-posix.h (test_function): Likewise.
1744         * tests/test-sprintf-posix.h (test_function): Likewise.
1745         Reported by Eric Blake.
1746
1747 2008-09-21  Bruno Haible  <bruno@clisp.org>
1748
1749         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
1750         * tests/test-sprintf-posix.h (test_function): Likewise.
1751
1752 2008-09-21  Bruno Haible  <bruno@clisp.org>
1753
1754         * modules/getpass (Depends-on): Add strdup-posix.
1755
1756         New module 'strdup-posix'.
1757         * modules/strdup-posix: New file.
1758         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
1759         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
1760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1761         REPLACE_STRDUP.
1762         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
1763         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
1764         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1765         strdup-posix.
1766
1767         * modules/strdup (Depends-on): Remove malloc-posix.
1768
1769 2008-09-20  Bruno Haible  <bruno@clisp.org>
1770
1771         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
1772         Wildenhues.
1773
1774 2008-09-20  Bruno Haible  <bruno@clisp.org>
1775
1776         Ensure that wint_t gets defined on IRIX 5.3.
1777         * lib/wchar.in.h (wint_t): Define if not defined by the system.
1778         * lib/wctype.in.h (wint_t): Likewise.
1779         (__wctype_wint_t): Remove type.
1780         (isw*): Use wint_t instead of __wctype_wint_t.
1781         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
1782         * modules/wchar (Files): Add m4/wint_t.m4.
1783         (Makefile.am): Substitute HAVE_WINT_T.
1784         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
1785         * tests/test-wctype.c: Check that wint_t is defined.
1786         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
1787         * doc/posix-headers/wctype.texi: Likewise.
1788         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1789
1790 2008-09-18  Bruno Haible  <bruno@clisp.org>
1791
1792         * gnulib-tool (func_exit): Update comment.
1793
1794 2008-09-18  Simon Josefsson  <simon@josefsson.org>
1795
1796         * modules/getaddrinfo (Depends-on): Remove strdup, this module
1797         assumes strdup exists and does not depend on strdup to return
1798         ENOMEM on out of memory conditions.
1799
1800 2008-09-18  Bruno Haible  <bruno@clisp.org>
1801
1802         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
1803         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
1804         digits for the exponent.
1805
1806 2008-09-18  Jim Meyering  <meyering@redhat.com>
1807             Bruno Haible  <bruno@clisp.org>
1808
1809         * lib/vasnprintf.c (decimal_point_char): Define also if
1810         NEED_PRINTF_INFINITE_LONG_DOUBLE.
1811
1812 2008-09-16  Bruno Haible  <bruno@clisp.org>
1813         and Eric Blake  <ebb9@byu.net>
1814
1815         vasnprintf: support Irix 5.3
1816         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
1817         that mishandle long double infinity.
1818         Reported by Tom G. Christensen.
1819
1820 2008-09-16  Bruno Haible  <bruno@clisp.org>
1821
1822         * doc/glibc-functions/scandir.texi: Mention the function is missing on
1823         Solaris 9.
1824         * doc/glibc-functions/alphasort.texi: Likewise.
1825         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
1826
1827 2008-09-16  Jim Meyering  <meyering@redhat.com>
1828
1829         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
1830         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
1831         a umask modification leak out of a subshell.  Otherwise, the
1832         opensolaris /bin/sh would be accepted and thus cause unwarranted
1833         failures in the coreutils test suite.
1834
1835 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
1836
1837         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
1838         to succeed.
1839
1840 2008-09-16  Jim Meyering  <meyering@redhat.com>
1841
1842         avoid spurious test failure when library is built without ACL support
1843         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
1844         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
1845         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
1846         * tests/test-copy-acl.sh: Likewise.
1847
1848 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1849
1850         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
1851         based on character occurrence counts.
1852
1853 2008-09-15  Eric Blake  <ebb9@byu.net>
1854
1855         tests: avoid some compiler warnings
1856         * tests/test-memchr.c (main): Pass NULL indirectly.
1857         * tests/test-closein.c (main): Avoid unused variable.
1858
1859 2008-09-15  Bruno Haible  <bruno@clisp.org>
1860
1861         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
1862         are missing on OpenBSD 4.0 individually.
1863         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1864
1865 2008-09-15  Bruno Haible  <bruno@clisp.org>
1866
1867         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
1868         * doc/posix-functions/strerror.texi: Mention also Cygwin.
1869         * doc/posix-functions/perror.texi: Likewise.
1870         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
1871         is missing.
1872         Reported by Eric Blake.
1873
1874         * lib/errno.in.h: Use replacement values >= 2000.
1875         Reported by Eric Blake.
1876
1877 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1878
1879         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
1880         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
1881         limit.
1882         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
1883         compareseq was aborted.
1884
1885 2008-09-14  Bruno Haible  <bruno@clisp.org>
1886
1887         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
1888         yvec_edit_count.
1889         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
1890         (fstrcmp_bounded): Simplify result computation accordingly.
1891
1892 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1893
1894         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
1895         (fstrcmp): Define in terms of fstrcmp_bounded.
1896         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
1897         lower_bound argument.
1898         Return quickly if the result is certainly < lower_bound.
1899         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
1900
1901 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1902
1903         * lib/diffseq.h (EARLY_ABORT): New macro.
1904         (compareseq): Change return type to bool. Return true when EARLY_ABORT
1905         evaluates to true.
1906
1907 2008-09-14  Bruno Haible  <bruno@clisp.org>
1908
1909         * modules/perror-tests: New file.
1910         * tests/test-perror.sh: New file.
1911         * tests/test-perror.c: New file.
1912
1913         New module 'perror'.
1914         * lib/stdio.in.h (perror): New declaration.
1915         * lib/perror.c: New file.
1916         * m4/perror.m4: New file.
1917         * modules/perror: New file.
1918         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
1919         * doc/posix-functions/perror.texi: Mention the perror module.
1920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
1921         REPLACE_PERROR.
1922         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
1923         REPLACE_PERROR.
1924
1925 2008-09-14  Bruno Haible  <bruno@clisp.org>
1926
1927         * modules/stdio (Makefile.am): Reorder to match the order in
1928         lib/stdio.in.h.
1929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1930
1931 2008-09-13  Bruno Haible  <bruno@clisp.org>
1932
1933         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
1934
1935 2008-09-13  Bruno Haible  <bruno@clisp.org>
1936
1937         Extend strerror to cover the added errno values.
1938         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
1939         (rpl_strerror): Provide error messages for the added errno values and
1940         for the WSA* values.
1941         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
1942         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
1943         strerror.
1944         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
1945         * modules/strerror (Depends-on): Add errno.
1946         * doc/posix-functions/strerror.texi: Document the change.
1947         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
1948         and EOVERFLOW.
1949
1950 2008-09-13  Bruno Haible  <bruno@clisp.org>
1951
1952         * modules/EOVERFLOW: Remove file.
1953         * m4/eoverflow.m4: Remove file.
1954         * modules/EOVERFLOW-tests: Remove file.
1955         * tests/test-EOVERFLOW.c: Remove file.
1956         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
1957         * modules/ftell (Depends-on): Likewise.
1958         * modules/getdelim (Depends-on): Likewise.
1959         * modules/getugroups (Depends-on): Likewise.
1960         * modules/poll (Depends-on): Likewise.
1961         * modules/snprintf (Depends-on): Likewise.
1962         * modules/sprintf-posix (Depends-on): Likewise.
1963         * modules/vasnprintf (Depends-on): Likewise.
1964         * modules/vasprintf (Depends-on): Likewise.
1965         * modules/vfprintf-posix (Depends-on): Likewise.
1966         * modules/vsnprintf (Depends-on): Likewise.
1967         * modules/vsprintf-posix (Depends-on): Likewise.
1968         * modules/xvasprintf (Depends-on): Likewise.
1969         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1970         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
1971         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
1972         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
1973         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1974         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
1975         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
1976         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
1977         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1978         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
1979         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
1980         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
1981         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1982         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
1983         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
1984         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
1985         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1986         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
1987         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
1988         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
1989         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1990         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
1991         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
1992         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
1993         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
1994         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1995         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
1996         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
1997         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
1998         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
1999         * MODULES.html.sh: Remove EOVERFLOW.
2000         * NEWS: Mention the change.
2001
2002 2008-09-13  Bruno Haible  <bruno@clisp.org>
2003
2004         * modules/errno-tests: New file.
2005         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
2006
2007         * lib/errno.in.h: New file.
2008         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
2009         * modules/errno: New file.
2010         * doc/posix-headers/errno.texi: Update documentation.
2011         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
2012
2013 2008-09-13  Bruno Haible  <bruno@clisp.org>
2014
2015         * tests/test-poll.c: Use #if for native Windows, rather than testing
2016         __MSVCRT__.
2017
2018 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2019             Bruno Haible  <bruno@clisp.org>
2020
2021         * lib/glob.c: Don't include <pwd.h> on native Windows.
2022         (WINDOWS32): New macro.
2023         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
2024
2025 2008-09-13  Bruno Haible  <bruno@clisp.org>
2026
2027         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
2028         (ETIMEDOUT): Remove macro.
2029         (glthread_cond_timedwait_multithreaded): New declaration.
2030         (glthread_cond_timedwait): Use it.
2031         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
2032         (glthread_cond_timedwait_multithreaded): New function.
2033
2034 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2035
2036         * modules/poll-tests: Do not check for io.h.
2037         * tests/test-poll.c: Check for __MSVCRT__ instead.
2038
2039 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2040
2041         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
2042         * modules/poll-tests: Add inet_pton, stdbool, sockets.
2043         * tests/test-poll.c: Use them.  Use _pipe on Windows.
2044
2045 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2046
2047         * modules/poll-tests: New.
2048         * tests/test-poll.c: New.
2049
2050 2008-09-12  Eric Blake  <ebb9@byu.net>
2051
2052         frexp: test for NetBSD failure on -0.0
2053         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
2054         not all, bugs from NetBSD 3.0 have been fixed.
2055         * doc/posix-functions/frexp.texi (frexp): Document bug.
2056         Reported by Thomas Klausner.
2057
2058         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
2059         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
2060         literal -0.0.
2061         Reported by Jonathan C. Patschke <jp@centtech.com>.
2062
2063 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2064
2065         * lib/glthread/cond.h: Use dummy implementation also if
2066         USE_WIN32_THREADS.
2067
2068 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2069
2070         * modules/fnmatch-posix (License): Change to LGPLv2+.
2071         * modules/fnmatch-gnu (License): Likewise.
2072
2073 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2074
2075         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
2076
2077 2008-09-11  Jim Meyering  <meyering@redhat.com>
2078
2079         * users.txt: Add gtk-vnc.
2080
2081 2008-09-08  Simon Josefsson  <simon@josefsson.org>
2082
2083         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
2084         rotate amounts.
2085
2086         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
2087         required for 16-bit and 8-bit rotates.
2088         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
2089         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
2090         UINT8_MAX instead of hard-coded constants.
2091         Suggested by Paul Eggert.
2092
2093 2008-09-07  Bruno Haible  <bruno@clisp.org>
2094
2095         * tests/test-striconveh.c (main): Check behaviour when converting from
2096         UTF-7.
2097
2098         Make striconveh work better with stateful encodings.
2099         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
2100         that iconv does not increment the inptr when returning -1/EINVAL.
2101
2102 2008-09-07  Bruno Haible  <bruno@clisp.org>
2103
2104         * build-aux/config.rpath: Update according to libtool-2.2.6.
2105         * build-aux/config.libpath: Likewise.
2106
2107 2008-09-06  Bruno Haible  <bruno@clisp.org>
2108
2109         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
2110         * lib/freadptr.c (freadptr): Likewise.
2111         * lib/freadseek.c (freadptrinc): Likewise.
2112         Reported by Simon Josefsson.
2113
2114 2008-09-06  Bruno Haible  <bruno@clisp.org>
2115
2116         * modules/freadptr (License): Change to LGPLv2+.
2117         * modules/freadseek (License): Likewise.
2118         Suggested by Eric Blake.
2119
2120         * modules/memchr2 (License): Change to LGPLv2+.
2121         Approved by Eric Blake.
2122
2123 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2124             Bruno Haible  <bruno@clisp.org>
2125
2126         Make gnulib-tool work with native 'sed' on AIX.
2127         * gnulib-tool (sed_noop): New variable.
2128         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
2129         func_add_or_update, func_create_testdir): Use it to initialize sed
2130         script variables.
2131         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2132
2133 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
2134             Bruno Haible  <bruno@clisp.org>
2135
2136         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
2137         also works after #include directives.
2138
2139 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
2140
2141         getdate.y: reject an out-of-range timezone value
2142         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
2143         the range [-24...+24].  When specified with only one or two digits,
2144         * tests/test-getdate.c: Tests for the fix.
2145         * doc/getdate.texi: Document this change.
2146
2147 2008-09-03  Bruno Haible  <bruno@clisp.org>
2148
2149         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
2150
2151 2008-09-02  Simon Josefsson  <simon@josefsson.org>
2152
2153         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
2154         <bruce.korb@gmail.com> with ideas from Ben Pfaff
2155         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
2156         Blake <ebb9@byu.net>.
2157
2158         * tests/test-bitrotate.c: Add more test vectors.
2159
2160 2008-09-02  Eric Blake  <ebb9@byu.net>
2161
2162         vasnprintf-posix: handle large precision via %.*d
2163         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
2164         when handling it ourselves.
2165         * tests/test-vasnprintf-posix.c (test_function): Add test.
2166         * tests/test-snprintf-posix.h (test_function): Likewise.
2167         * tests/test-sprintf-posix.h (test_function): Likewise.
2168         * tests/test-vasprintf-posix.c (test_function): Likewise.
2169         Reported by Alain Guibert.
2170
2171 2008-09-01  Eric Blake  <ebb9@byu.net>
2172
2173         c-stack: make configure-time check more robust
2174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
2175         successful sigaction call.
2176         Reported by Tom G. Christensen.
2177
2178 2008-09-01  Bruno Haible  <bruno@clisp.org>
2179
2180         New module 'findprog-lgpl'.
2181         * modules/findprog-lgpl: New file.
2182         * lib/findprog-lgpl.c: New file.
2183         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
2184         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
2185         to decide whether to use strdup or xstrdup, concatenated_filename or
2186         xconcatenated_filename.
2187
2188 2008-09-01  Bruno Haible  <bruno@clisp.org>
2189
2190         Split module 'concat-filename' into 'concat-filename' (LGPL) and
2191         'xconcat-filename' (GPL).
2192         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
2193         (License): Change to LGPLv2+.
2194         * modules/xconcat-filename: New file.
2195         * lib/concat-filename.h (concatenated_filename): Change specification.
2196         (xconcatenated_filename): New declaration.
2197         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
2198         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
2199         memory situations.
2200         * lib/xconcat-filename.c: New file.
2201         * NEWS: Mention the change.
2202         * lib/findprog.c: Include concat-filename.h, not filename.h.
2203         (find_in_path): Use xconcatenated_filename instead of
2204         concatenated_filename.
2205         * lib/javacomp.c: Include concat-filename.h, not filename.h.
2206         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
2207         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
2208         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
2209         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
2210         instead of concatenated_filename.
2211         * lib/javaexec.c: Include concat-filename.h, not filename.h.
2212         (execute_java_class): Use xconcatenated_filename instead of
2213         concatenated_filename.
2214         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
2215         * modules/javacomp (Depends-on): Likewise.
2216         * modules/javaexec (Depends-on): Likewise.
2217
2218 2008-09-01  Bruno Haible  <bruno@clisp.org>
2219
2220         Split module 'filename' into 'filename' and 'concat-filename'.
2221         * modules/filename: Keep only lib/filename.h.
2222         (License): Change to LGPLv2+.
2223         * modules/concat-filename: New file, extracted from modules/filename.
2224         * lib/filename.h (concatenated_filename): Remove declaration.
2225         * lib/concat-filename.h: New file, extracted from lib/filename.h.
2226         * lib/concat-filename.c: Include concat-filename.h.
2227         * NEWS: Mention the change.
2228
2229 2008-09-01  Simon Josefsson  <simon@josefsson.org>
2230
2231         * lib/bitrotate.h (rotl8, rotr8): Add.
2232
2233         * modules/bitrotate (configure.ac): Need
2234         AC_REQUIRE([AC_C_INLINE]).
2235         (Description): Mention stdint.h.  Reported by Bruno Haible
2236         <bruno@clisp.org>.
2237
2238         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
2239         Paolo Bonzini <bonzini@gnu.org>.
2240
2241 2008-08-31  Bruno Haible  <bruno@clisp.org>
2242
2243         Assume Solaris specific bi-arch conventions on Solaris systems.
2244         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
2245         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
2246         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
2247         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
2248         like acl_libdirstem.
2249         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
2250         acl_libdirstem.
2251         * NEWS: Mention the change.
2252         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
2253
2254 2008-08-31  Jim Meyering  <meyering@redhat.com>
2255
2256         * lib/strftime.h: Add comments describing the two added arguments.
2257
2258         remove duplicate #include directives
2259         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
2260         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
2261
2262 2008-08-31  Bruno Haible  <bruno@clisp.org>
2263
2264         New module 'sigpipe-die'.
2265         * modules/sigpipe-die: New file.
2266         * lib/sigpipe-die.h: New file.
2267         * lib/sigpipe-die.c: New file.
2268         * MODULES.html.sh (Signal handling): Add sigpipe-die.
2269
2270 2008-08-31  Bruno Haible  <bruno@clisp.org>
2271
2272         Don't override previously installed signal handlers.
2273         * lib/fatal-signal.c (saved_sigactions): New variable.
2274         (uninstall_handlers): Reset the signal to the saved handler, not
2275         to SIG_DFL (except when ignored).
2276         (install_handlers): Save the previous handlers.
2277
2278 2008-08-30  Bruno Haible  <bruno@clisp.org>
2279
2280         * gnulib-tool (func_reset_sigpipe): New function.
2281         (func_get_automake_snippet, func_modules_transitive_closure,
2282         func_import): Invoke it before a join command that reads from stdin,
2283         to avoid "echo: write error: Broken pipe" error messages on stderr.
2284         Reported by Sam Steingold <sds@gnu.org>.
2285
2286 2008-08-30  Bruno Haible  <bruno@clisp.org>
2287
2288         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
2289         Code copied from m4/open.m4.
2290         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
2291         access and the filename ends in a slash. Code copied from lib/open.c.
2292         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
2293         * tests/test-fopen.c (main): Check against bug with trailing slash.
2294
2295 2008-08-29  Bruno Haible  <bruno@clisp.org>
2296
2297         Avoid some "gcc -pedantic" warnings.
2298         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
2299         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
2300         * lib/dirent.in.h: Likewise.
2301         * lib/fcntl.in.h: Likewise.
2302         * lib/float.in.h: Likewise.
2303         * lib/iconv.in.h: Likewise.
2304         * lib/inttypes.in.h: Likewise.
2305         * lib/locale.in.h: Likewise.
2306         * lib/math.in.h: Likewise.
2307         * lib/netinet_in.in.h: Likewise.
2308         * lib/search.in.h: Likewise.
2309         * lib/signal.in.h: Likewise.
2310         * lib/stdarg.in.h: Likewise.
2311         * lib/stdint.in.h: Likewise.
2312         * lib/stdio.in.h: Likewise.
2313         * lib/stdlib.in.h: Likewise.
2314         * lib/string.in.h: Likewise.
2315         * lib/strings.in.h: Likewise.
2316         * lib/sys_select.in.h: Likewise.
2317         * lib/sys_socket.in.h: Likewise.
2318         * lib/sys_stat.in.h: Likewise.
2319         * lib/sys_time.in.h: Likewise.
2320         * lib/sysexits.in.h: Likewise.
2321         * lib/time.in.h: Likewise.
2322         * lib/unistd.in.h: Likewise.
2323         * lib/wchar.in.h: Likewise.
2324         * lib/wctype.in.h: Likewise.
2325         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
2326         * modules/fchdir (Makefile.am): Likewise.
2327         * modules/fcntl (Makefile.am): Likewise.
2328         * modules/float (Makefile.am): Likewise.
2329         * modules/iconv_open (Makefile.am): Likewise.
2330         * modules/inttypes (Makefile.am): Likewise.
2331         * modules/locale (Makefile.am): Likewise.
2332         * modules/math (Makefile.am): Likewise.
2333         * modules/netinet_in (Makefile.am): Likewise.
2334         * modules/search (Makefile.am): Likewise.
2335         * modules/signal (Makefile.am): Likewise.
2336         * modules/stdarg (Makefile.am): Likewise.
2337         * modules/stdint (Makefile.am): Likewise.
2338         * modules/stdio (Makefile.am): Likewise.
2339         * modules/stdlib (Makefile.am): Likewise.
2340         * modules/string (Makefile.am): Likewise.
2341         * modules/strings (Makefile.am): Likewise.
2342         * modules/sys_select (Makefile.am): Likewise.
2343         * modules/sys_socket (Makefile.am): Likewise.
2344         * modules/sys_stat (Makefile.am): Likewise.
2345         * modules/sys_time (Makefile.am): Likewise.
2346         * modules/sysexits (Makefile.am): Likewise.
2347         * modules/time (Makefile.am): Likewise.
2348         * modules/unistd (Makefile.am): Likewise.
2349         * modules/wchar (Makefile.am): Likewise.
2350         * modules/wctype (Makefile.am): Likewise.
2351         Reported by Reuben Thomas <rrt@sc3d.org>.
2352
2353 2008-08-29  Bruno Haible  <bruno@clisp.org>
2354
2355         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
2356         any more.
2357
2358 2008-08-29  Simon Josefsson  <simon@josefsson.org>
2359
2360         * MODULES.html.sh (Misc): Add bitrotate.
2361
2362         * modules/bitrotate: New file.
2363
2364         * lib/bitrotate.h: New file.
2365
2366         * modules/bitrotate-tests: New file.
2367
2368         * tests/test-bitrotate.c: New file.
2369
2370         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
2371         on the bitrotate module.
2372
2373         * lib/arctwo.c: Use new bitrotate module.
2374
2375 2008-08-29  Jim Meyering  <meyering@redhat.com>
2376
2377         bootstrap: merge changes from coreutils
2378         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
2379         of copied files.  Remove a kludge, now that this is fixed.
2380         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
2381         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
2382         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
2383
2384 2008-08-29  Bruno Haible  <bruno@clisp.org>
2385
2386         * MODULES.html.sh: Remove --cvs-urls option.
2387
2388 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
2389
2390         maint.mk: adjust to file name change
2391         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
2392
2393 2008-08-28  Jim Meyering  <meyering@redhat.com>
2394
2395         * modules/getndelim2 (License): Relicense to LGPLv2+.
2396         Approved by Richard Stallman for the version of 1995, and by
2397         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
2398
2399 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
2400
2401         * lib/getdelim.c (flockfile, funlockfile): Make all of them
2402         dummy if one is not available.  Do not touch them if
2403         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
2404         (getc_maybe_unlocked): New.
2405         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
2406
2407 2008-08-26  Eric Blake  <ebb9@byu.net>
2408
2409         doc/INSTALL: resync from autoconf
2410         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
2411         (INSTALL_PRELUDE): Delete; this is done more efficiently by
2412         moving...
2413         * install.texi [!autoconf]: ...here.  Resync from autoconf.
2414         * INSTALL: Regenerate.
2415         * INSTALL.ISO: New file.
2416         * INSTALL.UTF-8: Likewise.
2417
2418 2008-08-26  Jim Meyering  <meyering@redhat.com>
2419
2420         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
2421         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
2422         these definitions conditional, so that they may be overridden, too.
2423
2424 2008-08-26  Bruno Haible  <bruno@clisp.org>
2425
2426         Generate INSTALL file variants with prettier quotes.
2427         * doc/Makefile (INSTALL_PRELUDE): New macro.
2428         (INSTALL): Use it.
2429         (INSTALL.ISO, INSTALL.UTF-8): New rules.
2430
2431 2008-08-26  Bruno Haible  <bruno@clisp.org>
2432
2433         Run makeinfo in an English locale.
2434         * doc/Makefile (MAKEINFO): New variable.
2435
2436 2008-08-26  Bruno Haible  <bruno@clisp.org>
2437
2438         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
2439         Suggested by Eric Blake.
2440
2441 2008-08-25  Bruno Haible  <bruno@clisp.org>
2442
2443         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
2444
2445 2008-08-25  Eric Blake  <ebb9@byu.net>
2446
2447         c-stack: test that stack overflow can be caught
2448         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
2449         that platform allows handling stack overflow; at least OS/2 EMX
2450         has sigaltstack, but crashes before transferring control to
2451         handler on stack overflow.
2452         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
2453         check for HAVE_STACK_OVERFLOW_HANDLING.
2454         Reported by Elbert Pol.
2455
2456 2008-08-25  Bruno Haible  <bruno@clisp.org>
2457
2458         * doc/posix-functions/strftime.texi: Fix description of strftime
2459         module.
2460
2461 2008-08-24  Bruno Haible  <bruno@clisp.org>
2462
2463         * tests/uniwidth/test-uc_width2.c: New file.
2464         * tests/uniwidth/test-uc_width2.sh: New file.
2465         * modules/uniwidth/width-tests (Files): Add the new files.
2466         (TESTS): Add uniwidth/test-uc_width2.sh.
2467         (TESTS_ENVIRONMENT): New variable.
2468         (check_PROGRAMS): Add test-uc_width2.
2469         (test_uc_width2_SOURCES): New variable.
2470
2471         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
2472         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
2473         not 0x00AB.
2474         Reported by Alexander V. Lukyanov <lav@netis.ru>.
2475
2476 2008-08-22  Eric Blake  <ebb9@byu.net>
2477
2478         test-lock, test-tls: mention why a test is skipped
2479         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
2480         skipped.
2481         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
2482
2483         count-one-bits: relax license
2484         * modules/count-one-bits (License): Relicense to LGPLv2+.
2485         Suggested by Ludovic Courtès, approved by Ben Pfaff.
2486
2487 2008-08-22  Andreas Schwab  <schwab@suse.de>
2488
2489         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2490         Remove spurious space in assignment.
2491
2492 2008-08-21  Simon Josefsson  <simon@josefsson.org>
2493
2494         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
2495         Paul Eggert <eggert@CS.UCLA.EDU>.
2496
2497 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
2498
2499         * modules/gettext: Add m4/threadlib.m4.
2500
2501 2008-08-19  Eric Blake  <ebb9@byu.net>
2502
2503         test-c-stack: fix compilation failure on FreeBSD 5.0
2504         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
2505         headers before <sys/resource.h>.
2506         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
2507         the bug.
2508         Reported by Nelson H. F. Beebe.
2509
2510         strverscmp: migrate from "strverscmp.h" to <string.h>
2511         * modules/string (Makefile.am): Add new hooks.
2512         * modules/strverscmp (Files): Remove strverscmp.h.
2513         (Depends-on): Add string.
2514         (configure.ac): Add indicator.
2515         (Include): Mention new header.
2516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
2517         defaults.
2518         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
2519         results.
2520         * lib/strverscmp.h: Delete.
2521         * lib/string.in.h (strverscmp): Provide declaration, when needed.
2522         * tests/test-strverscmp.c (includes): Adjust client.
2523         * lib/check-version.c (includes): Likewise.
2524         * NEWS: Document the change.
2525
2526         strverscmp: add unit test
2527         * modules/strverscmp-tests: New file.
2528         * tests/test-strverscmp.c: Likewise.
2529
2530 2008-08-19  Simon Josefsson  <simon@josefsson.org>
2531
2532         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
2533         regarding Windows crypto stuff, from Mono.
2534
2535 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
2536
2537         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
2538         if present, for intel RND.  Return error on failures.
2539
2540 2008-08-18  Ben Pfaff  <blp@gnu.org>
2541
2542         gitlog-to-changelog: give better diagnostic for failed pipe-open
2543         * build-aux/gitlog-to-changelog: Improve error message: suggest
2544         that the version of Git may be too old.
2545
2546 2008-08-18  Simon Josefsson  <simon@josefsson.org>
2547
2548         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
2549         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
2550
2551 2008-08-18  Bruno Haible  <bruno@clisp.org>
2552
2553         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
2554         pthread_in_use().
2555
2556 2008-08-18  Bruno Haible  <bruno@clisp.org>
2557
2558         * lib/glthread/threadlib.c: Include <pthread.h>.
2559
2560 2008-08-18  Bruno Haible  <bruno@clisp.org>
2561
2562         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
2563         glthread_recursive_lock_* macros.
2564         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
2565         Fix syntax error.
2566
2567 2008-08-18  Bruno Haible  <bruno@clisp.org>
2568
2569         * lib/glthread/thread.c: Avoid forcing a context switch right after
2570         thread creation.
2571
2572 2008-08-17  Bruno Haible  <bruno@clisp.org>
2573
2574         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
2575         * lib/glthread/thread.h: Provide Win32 specific implementation.
2576         * modules/thread (Files): Add lib/glthread/thread.c.
2577         (Depends-on): Add lock.
2578         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
2579
2580 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2581
2582         New module 'yield'.
2583         * modules/yield: New file.
2584         * lib/glthread/yield.h: New file.
2585         * m4/yield.m4: New file.
2586         * MODULES.html.sh (Multithreading): Add yield.
2587
2588 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2589
2590         New module 'thread'.
2591         * modules/thread: New file.
2592         * lib/glthread/thread.h: New file.
2593         * m4/thread.m4: New file.
2594         * MODULES.html.sh (Multithreading): Add thread.
2595
2596 2008-08-17  Bruno Haible  <bruno@clisp.org>
2597
2598         * lib/glthread/lock.h: Include <stdlib.h> always.
2599         * lib/glthread/tls.h: Likewise.
2600         * lib/glthread/cond.h: Likewise.
2601
2602 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2603
2604         New module 'cond'.
2605         * modules/cond: New file.
2606         * lib/glthread/cond.h: New file.
2607         * lib/glthread/cond.c: New file.
2608         * m4/cond.m4: New file.
2609         * MODULES.html.sh (Multithreading): Add cond.
2610
2611 2008-08-16  Eric Blake  <ebb9@byu.net>
2612
2613         c-stack: fix regression on Irix 5.3 from 2008-06-21
2614         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
2615         sa_sigaction...
2616         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
2617         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
2618         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
2619         * modules/signal (Makefile.am): Use the value.
2620         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
2621         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
2622         * doc/posix-headers/signal.texi (signal.h): Document this
2623         portability issue.
2624         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
2625         Reported by Tom G. Christensen.
2626
2627 2008-08-17  Bruno Haible  <bruno@clisp.org>
2628
2629         New module 'threadlib'.
2630         * modules/threadlib: New file.
2631         * lib/glthread/threadlib.c: New file, extracted from
2632         lib/glthread/lock.c.
2633         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
2634         functions.
2635         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
2636         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
2637         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
2638         macros.
2639         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
2640         (gl_DISABLE_THREADS): Remove macro.
2641         * modules/lock (Files): Remove build-aux/config.rpath.
2642         (Depends-on): Remove havelib. Add threadlib.
2643         (configure.ac-early): Remove section.
2644         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
2645         * modules/tls (Depends-on): Remove lock. Add threadlib.
2646         (Link): New section, copied from threadlib.
2647         * MODULES.html.sh (Multithreading): Add threadlib.
2648
2649 2008-08-14  Bruno Haible  <bruno@clisp.org>
2650
2651         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
2652         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
2653         glthread_rwlock_unlock, glthread_rwlock_destroy,
2654         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
2655         glthread_recursive_lock_destroy): Define as macros always.
2656         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
2657         glthread_lock_lock.
2658         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
2659         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
2660         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
2661         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
2662         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
2663         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
2664         (glthread_recursive_lock_lock_func): Renamed from
2665         glthread_recursive_lock_lock.
2666         (glthread_recursive_lock_unlock_func): Renamed from
2667         glthread_recursive_lock_unlock.
2668         (glthread_recursive_lock_destroy_func): Renamed from
2669         glthread_recursive_lock_destroy.
2670
2671 2008-08-14  Bruno Haible  <bruno@clisp.org>
2672
2673         * lib/glthread/lock.h: Renamed from lib/lock.h.
2674         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
2675         * lib/glthread/tls.h: Renamed from lib/tls.h.
2676         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
2677         * lib/fstrcmp.c: Update includes.
2678         * lib/strsignal.c: Update includes.
2679         * modules/lock (Files, Makefile.am): Update.
2680         (Include): Change to "glthread/lock.h".
2681         * modules/tls (Files, Makefile.am): Update.
2682         (Include): Change to "glthread/tls.h".
2683         * tests/test-lock.c: Update includes.
2684         * tests/test-tls.c: Update includes.
2685         * NEWS: Mention the renamed header files.
2686
2687 2008-08-11  Jim Meyering  <meyering@redhat.com>
2688
2689         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
2690
2691 2008-08-11  Eric Blake  <ebb9@byu.net>
2692
2693         test-c-stack: avoid C99-ism
2694         * tests/test-c-stack.c (main): Fix whitespace, move declaration
2695         before statement.
2696         Reported by Alain Guibert.
2697
2698 2008-08-10  Jim Meyering  <meyering@redhat.com>
2699
2700         ensure that return value of uinttostr et al are not ignored
2701         * lib/inttostr.h (__GNUC_PREREQ): Define.
2702         (__attribute_warn_unused_result__): Define.
2703         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
2704
2705 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
2706
2707         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
2708         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
2709
2710 2008-08-07  Jim Meyering  <meyering@redhat.com>
2711
2712         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
2713
2714         * modules/mkstemp (License): Relicense under LGPLv2+.
2715         * modules/tempname (License): Likewise.
2716
2717 2008-08-06  Bruno Haible  <bruno@clisp.org>
2718
2719         * lib/poll.c (poll): Further micro-optimization.
2720
2721 2008-08-06  Jim Meyering  <meyering@redhat.com>
2722
2723         inet_pton.c: use locale-independent tolower
2724         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
2725         (inet_pton6): Use c_tolower rather than tolower.
2726         * modules/inet_pton (Depends-on): Add c-ctype.
2727
2728 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
2729
2730         * lib/poll.c (poll): Avoid division when timeout is 0, cache
2731         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
2732
2733 2008-08-06  Jim Meyering  <meyering@redhat.com>
2734
2735         * modules/inet_pton (License): Relicense under LGPLv2+.
2736
2737 2008-08-03  Bruno Haible  <bruno@clisp.org>
2738
2739         Additional non-aborting API for lock and tls.
2740         * lib/lock.h: Include <errno.h>.
2741         (glthread_lock_init): New macro/function.
2742         (gl_lock_init): Define as wrapper around glthread_lock_init.
2743         (glthread_lock_lock): New macro/function.
2744         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
2745         (glthread_lock_unlock): New macro/function.
2746         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
2747         (glthread_lock_destroy): New macro/function.
2748         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
2749         (glthread_rwlock_init): New macro/function.
2750         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
2751         (glthread_rwlock_rdlock): New macro/function.
2752         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
2753         (glthread_rwlock_wrlock): New macro/function.
2754         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
2755         (glthread_rwlock_unlock): New macro/function.
2756         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
2757         (glthread_rwlock_destroy): New macro/function.
2758         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
2759         (glthread_recursive_lock_init): New macro/function.
2760         (gl_recursive_lock_init): Define as wrapper around
2761         glthread_recursive_lock_init.
2762         (glthread_recursive_lock_lock): New macro/function.
2763         (gl_recursive_lock_lock): Define as wrapper around
2764         glthread_recursive_lock_lock.
2765         (glthread_recursive_lock_unlock): New macro/function.
2766         (gl_recursive_lock_unlock): Define as wrapper around
2767         glthread_recursive_lock_unlock.
2768         (glthread_recursive_lock_destroy): New macro/function.
2769         (gl_recursive_lock_destroy): Define as wrapper around
2770         glthread_recursive_lock_destroy.
2771         (glthread_once): New macro/function.
2772         (gl_once): Define as wrapper around glthread_once.
2773         Update function declarations.
2774         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
2775         glthread_rwlock_init. Return error code.
2776         (glthread_rwlock_rdlock_multithreaded): Renamed from
2777         glthread_rwlock_rdlock. Return error code.
2778         (glthread_rwlock_wrlock_multithreaded): Renamed from
2779         glthread_rwlock_wrlock. Return error code.
2780         (glthread_rwlock_unlock_multithreaded): Renamed from
2781         glthread_rwlock_unlock. Return error code.
2782         (glthread_rwlock_destroy_multithreaded): Renamed from
2783         glthread_rwlock_destroy. Return error code.
2784         (glthread_recursive_lock_init_multithreaded): Renamed from
2785         glthread_recursive_lock_init. Return error code.
2786         (glthread_recursive_lock_lock_multithreaded): Renamed from
2787         glthread_recursive_lock_lock. Return error code.
2788         (glthread_recursive_lock_unlock_multithreaded): Renamed from
2789         glthread_recursive_lock_unlock. Return error code.
2790         (glthread_recursive_lock_destroy_multithreaded): Renamed from
2791         glthread_recursive_lock_destroy. Return error code.
2792         (glthread_once_call): Make static.
2793         (glthread_once_multithreaded): Renamed from glthread_once.
2794         * lib/tls.h: Include <errno.h>.
2795         (glthread_tls_key_init): New macro/function.
2796         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
2797         (glthread_tls_set): New macro/function.
2798         (gl_tls_set): Define as wrapper around glthread_tls_set.
2799         (glthread_tls_key_destroy): New macro/function.
2800         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
2801         Update function declarations.
2802         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
2803         glthread_tls_get.
2804         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
2805
2806 2008-08-04  Eric Blake  <ebb9@byu.net>
2807
2808         gnumakefile: use space, not TAB, outside of targets
2809         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
2810
2811 2008-08-02  Jim Meyering  <meyering@redhat.com>
2812
2813         getdate.y: avoid locale-dependent date parsing failure
2814         In Turkish locales, getdate would fail to recognize keywords
2815         containing a lowercase "i".  The solution is not to rely on
2816         locale-sensitive case-conversion.
2817         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
2818         (lookup_word): Use c_toupper in place of toupper.
2819         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
2820         Reported by Vefa Bicakci <bicave@superonline.com> in
2821         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
2822         * modules/getdate (Depends-on): Add c-ctype.
2823
2824 2008-08-02  Bruno Haible  <bruno@clisp.org>
2825
2826         * gnulib-tool (func_import): When updating or creating a .gitignore
2827         file, prepend each added line with a slash, and ignore leading slashes
2828         from the existing lines.
2829         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
2830
2831 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2832
2833         Portability fix for GNU make 3.79.1.
2834         * top/GNUmakefile: Avoid 'else COND', which older GNU make
2835         versions do not understand.
2836
2837 2008-08-01  Bruno Haible  <bruno@clisp.org>
2838
2839         Work around bug of HP-UX 10.20 cc with -0.0 literal.
2840         * tests/test-isnanf.h (zero): New variable.
2841         (main): Avoid literal -0.0f.
2842         * tests/test-isnand.h (zero): New variable.
2843         (main): Avoid literal -0.0.
2844         * tests/test-isnanl.h (zero): New variable.
2845         (main): Avoid literal -0.0L.
2846         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
2847         (test_float, test_double, test_long_double): Avoid literals -0.0f,
2848         -0.0, -0.0L.
2849         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
2850         (test_signbitd): Avoid literal -0.0.
2851         (test_signbitl): Avoid literal -0.0L.
2852         * tests/test-ceilf1.c (zero): New variable.
2853         (main): Avoid literal -0.0f.
2854         * tests/test-ceill.c (zero): New variable.
2855         (main): Avoid literal -0.0L.
2856         * tests/test-floorf1.c (zero): New variable.
2857         (main): Avoid literal -0.0f.
2858         * tests/test-floorl.c (zero): New variable.
2859         (main): Avoid literal -0.0L.
2860         * tests/test-roundf1.c (zero): New variable.
2861         (main): Avoid literal -0.0f.
2862         * tests/test-round1.c (zero): New variable.
2863         (main): Avoid literal -0.0.
2864         * tests/test-roundl.c (zero): New variable.
2865         (main): Avoid literal -0.0L.
2866         * tests/test-truncf1.c (zero): New variable.
2867         (main): Avoid literal -0.0f.
2868         * tests/test-trunc1.c (zero): New variable.
2869         (main): Avoid literal -0.0.
2870         * tests/test-truncl.c (zero): New variable.
2871         (main): Avoid literal -0.0L.
2872         * tests/test-frexp.c (zero): New variable.
2873         (main): Avoid literal -0.0.
2874         * tests/test-frexpl.c (zero): New variable.
2875         (main): Avoid literal -0.0L.
2876         * tests/test-ldexpl.c (zero): New variable.
2877         (main): Avoid literal -0.0L.
2878         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2879         (zerod, zerol): New variables.
2880         (test_function): Avoid literals -0.0, -0.0L.
2881         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2882         (zerod, zerol): New variables.
2883         (test_function): Avoid literals -0.0, -0.0L.
2884         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2885         (zerod, zerol): New variables.
2886         (test_function): Avoid literals -0.0, -0.0L.
2887         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2888         (zerod, zerol): New variables.
2889         (test_function): Avoid literals -0.0, -0.0L.
2890         * tests/test-strtod.c (zero): New variable.
2891         (main): Avoid literal -0.0.
2892         Reported by Jonathan C. Patschke <jp@centtech.com>.
2893
2894 2008-07-31  Jim Meyering  <meyering@redhat.com>
2895
2896         sha256.h: correct definition of SHA224_DIGEST_SIZE
2897         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
2898         Reported by Paulie Pena IV <paulie4@gmail.com>.
2899         Define as 224 / 8, rather than as a literal.
2900         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
2901         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
2902         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
2903
2904 2008-07-31  Bruno Haible  <bruno@clisp.org>
2905
2906         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
2907         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
2908         Reported by Jonathan Patschke <jp@centtech.com>.
2909
2910 2008-07-31  Bruno Haible  <bruno@clisp.org>
2911
2912         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
2913         Reported by Paolo Bonzini <bonzini@gnu.org>.
2914
2915 2008-07-30  Eric Blake  <ebb9@byu.net>
2916
2917         test-strtod: allow compilation without -lm
2918         * tests/test-strtod.c (main): Avoid link dependence on fabs.
2919         Reported by Dennis Clarke <blastwave@gmail.com>.
2920
2921 2008-07-28  Jim Meyering  <meyering@redhat.com>
2922
2923         bootstrap: work also when there are no .po files in po/
2924         * build-aux/bootstrap (update_po_files): Complete the change
2925         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
2926
2927 2008-07-27  Jim Meyering  <meyering@redhat.com>
2928
2929         * users.txt: Add zile.
2930
2931 2008-07-26  Ben Pfaff  <blp@gnu.org>
2932
2933         Add missing dependencies on new m4/exponent[fdl].m4 files.
2934         * modules/isnanf-nolibm: Add m4/exponentf.m4.
2935         * modules/isnand-nolibm: Add m4/exponentd.m4.
2936         * modules/isnanl-nolibm: Add m4/exponentl.m4.
2937         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
2938         m4/isnan[fdl].m4, because the macros actually used moved.
2939         Reported by Jim Meyering.
2940
2941 2008-07-14  Ben Pfaff  <blp@gnu.org>
2942
2943         Add isinf module.
2944         * lib/isinf.c: New file.
2945         * lib/math.in.h: Define isinf macro if we have decided to replace
2946         it.
2947         * m4/isinf.m4: New file.
2948         * m4/math_h.m4: Initialize and substitute variables for isinf
2949         module.
2950         * modules/isinf: New file.
2951         * modules/isinf-tests: New file.
2952         * modules/math: Add substitutions for new module.
2953         * tests/test-isinf.c: New file.
2954         * doc/posix-functions/isinf.texi: Mention new module.
2955         * MODULES.html.sh: Mention new module.
2956
2957 2008-07-14  Ben Pfaff  <blp@gnu.org>
2958
2959         Factor out some macros for use by additional modules.
2960         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
2961         exponentf.m4.
2962         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
2963         exponentd.m4.
2964         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
2965         file exponentl.m4.
2966         * m4/exponentf.m4: New file.
2967         * m4/exponentd.m4: New file.
2968         * m4/exponentl.m4: New file.
2969         * modules/isnanf: Use new file m4/exponentf.m4.
2970         * modules/isnand: Use new file m4/exponentd.m4.
2971         * modules/isnanl: Use new file m4/exponentl.m4.
2972
2973 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
2974
2975         mktime.c: normalize tp->tm_isdst value to -1/0/1.
2976         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2977         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
2978         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
2979
2980         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
2981         readlink on platforms without PATH_MAX.
2982
2983 2008-07-21  Eric Blake  <ebb9@byu.net>
2984
2985         Warn, not fail, on stale version.
2986         * top/GNUmakefile (_curr-ver): Tone down previous patch.
2987
2988         Don't allow installation with stale devel version number.
2989         * top/GNUmakefile (_is-install-target): New macro.
2990         (_curr-ver): Forbid installation with stale version number.
2991
2992 2008-07-20  Bruno Haible  <bruno@clisp.org>
2993
2994         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
2995         TESTS_ENVIRONMENT.
2996         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
2997
2998 2008-07-20  Bruno Haible  <bruno@clisp.org>
2999
3000         * lib/c-stack.h (c_stack_action): Add documentation.
3001         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
3002
3003 2008-07-20  Bruno Haible  <bruno@clisp.org>
3004
3005         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
3006         * modules/readlink (License): Likewise.
3007
3008 2008-07-17  Eric Blake  <ebb9@byu.net>
3009
3010         * modules/c-stack (Link): Fix typo.
3011
3012         Make c-stack use libsigsegv, when available.
3013         * modules/c-stack (Depends-on): Add libsigsegv.
3014         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
3015         needed.
3016         * lib/c-stack.c (SIGSTKSZ): Define fallback.
3017         (segv_handler, overflow_handler, c_stack_action)
3018         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
3019         implementation when libsigsegv is available, but only when using
3020         the library is necessary.
3021         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
3022         comment, explaining why XSI check fails on Linux.
3023         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
3024         * tests/test-c-stack2.sh: Tweak skip message.
3025         * NEWS: Document new link-time requirements.
3026
3027 2008-07-16  Eric Blake  <ebb9@byu.net>
3028
3029         c-stack: Expose false positives when not using libsigsegv.
3030         * modules/c-stack-tests (Files): Expand test.
3031         * tests/test-c-stack.c (main): Add means to conditionally trigger
3032         non-overflow SIGSEGV.
3033         * tests/test-c-stack2.sh: New file.
3034
3035 2008-07-14  Bruno Haible  <bruno@clisp.org>
3036
3037         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
3038         Reported by Eric Blake.
3039
3040 2008-07-14  Sam Steingold  <sds@gnu.org>
3041             Bruno Haible  <bruno@clisp.org>
3042
3043         New module libsigsegv.
3044         * modules/libsigsegv: New file.
3045         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
3046         modifications.
3047         * MODULES.html.sh (Signal handling): New section.
3048
3049 2008-07-14  Bruno Haible  <bruno@clisp.org>
3050
3051         * modules/unictype/ctype-* (Description): Add the word "function".
3052         Improves the resulting doc in MODULES.html.
3053
3054 2008-07-12  Ben Pfaff  <blp@gnu.org>
3055
3056         Add longlong module.
3057         * modules/longlong: New file.
3058
3059 2008-07-12  Bruno Haible  <bruno@clisp.org>
3060
3061         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
3062         to empty.
3063
3064 2008-07-10  Ben Pfaff  <blp@gnu.org>
3065
3066         Add isnan module.
3067         * doc/posix-functions/isnan.texi: Mention new module.
3068         * lib/math.in.h: Define isnan macro if we have decided to replace
3069         it.
3070         * m4/isnan.m4: New file.
3071         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
3072         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
3073         also.
3074         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
3075         redundancy.
3076         * m4/math_h.m4: Initialize and substitute variables for isnan
3077         module.
3078         * modules/isnan: New file.
3079         * modules/isnan-tests: New file.
3080         * modules/math: Add substitutions for new module.
3081         * tests/test-isnan.c: New file.
3082         * MODULES.html.sh: Mention new module.
3083
3084 2008-07-10  Ben Pfaff  <blp@gnu.org>
3085
3086         Add isnanf module.
3087         * lib/isnanf.m4: New file.
3088         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
3089         (gl_HAVE_ISNANF_IN_LIBM): New macro.
3090         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
3091         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
3092         * modules/isnanf: New file.
3093         * modules/isnanf-tests: New file.
3094         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
3095         files.
3096         * tests/test-isnanf-nolibm.c: factored most of its contents into
3097         new file tests/test-isnanf.h.
3098         * tests/test-isnanf.h: New file.
3099         * tests/test-isnanf.c: New file.
3100         * MODULES.html.sh: Mention new module.
3101         * doc/glibc-functions/isnanf.texi: Mention new module.
3102
3103 2008-07-10  Ben Pfaff  <blp@gnu.org>
3104
3105         Add isnand module.
3106         * lib/isnand.h: New file.
3107         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
3108         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
3109         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
3110         functionality also.
3111         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
3112         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
3113         (gl_HAVE_ISNAND_IN_LIBM): New macro.
3114         * modules/isnand: New file.
3115         * modules/isnand-tests: New file.
3116         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
3117         files.
3118         * tests/test-isnand-nolibm.c: factored most of its contents into
3119         new file tests/test-isnand.h.
3120         * tests/test-isnand.h: New file.
3121         * tests/test-isnand.c: New file.
3122         * MODULES.html.sh: Mention new module.
3123
3124 2008-07-10  Ben Pfaff  <blp@gnu.org>
3125
3126         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
3127         * lib/isnand.h: Rename lib/isnand-nolibm.h.
3128         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
3129         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
3130         * modules/isnanf-nolibm: Update references to renamed files.
3131         * modules/isnand-nolibm: Likewise.
3132         * modules/isnanf-nolibm-tests: Likewise.
3133         * modules/isnand-nolibm-tests: Likewise.
3134         * lib/frexp.c: Likewise.
3135         * lib/isfinite.c: Likewise.
3136         * lib/signbitd.c: Likewise.
3137         * lib/signbitf.c: Likewise.
3138         * lib/vasnprintf.c: Likewise.
3139         * tests/test-ceilf1.c: Likewise.
3140         * tests/test-ceilf2.c: Likewise.
3141         * tests/test-floorf1.c: Likewise.
3142         * tests/test-floorf2.c: Likewise.
3143         * tests/test-frexp.c: Likewise.
3144         * tests/test-round1.c: Likewise.
3145         * tests/test-round2.c: Likewise.
3146         * tests/test-roundf1.c: Likewise.
3147         * tests/test-strtod.c: Likewise.
3148         * tests/test-trunc1.c: Likewise.
3149         * tests/test-trunc2.c: Likewise.
3150         * tests/test-truncf1.c: Likewise.
3151         * tests/test-truncf2.c: Likewise.
3152         * NEWS: Mention the renamed header files.
3153
3154 2008-07-11  Jim Meyering  <meyering@redhat.com>
3155
3156         vc-list-files: make the last-resort awk code more portable
3157         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
3158         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
3159         does not support it.
3160
3161 2008-07-10  Eric Blake  <ebb9@byu.net>
3162
3163         Work with tar's bootstrap.
3164         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
3165         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
3166         an m4 comment.
3167
3168 2008-07-09  Jim Meyering  <meyering@redhat.com>
3169
3170         posix-shell.m4: fix typo that made this test malfunction
3171         * m4/posix-shell.m4: Remove capitalization in variable name.
3172
3173 2008-07-08  Bruno Haible  <bruno@clisp.org>
3174
3175         * m4/onceonly.m4: Update comments.
3176         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3177
3178 2008-07-04  Jim Meyering  <meyering@redhat.com>
3179
3180         * users.txt: Add vc-dwim.
3181         (bison, coreutils): Use the gitweb URL.
3182
3183 2008-07-03  Jim Meyering  <meyering@redhat.com>
3184
3185         * users.txt: Add libffcall.  From Sam Steingold.
3186
3187 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
3188
3189         getdate.y: do not ignore TZ with relative day, month or year offset
3190         * lib/getdate.y (get_date): Move the tz-handling block to follow the
3191         relative-date-handling, since otherwise, the latter would clobber the
3192         sole output (an updated Start value) of the tz-handling block.
3193         * tests/test-getdate.c: Tests for the fix
3194
3195 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3196
3197         Recognize 'foo_LIBRARIES += libgnu.a'.
3198         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
3199         makefile snippet has already specified an installation location,
3200         also using '+='.
3201
3202 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
3203
3204         getdate.y: factor out common actions
3205         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
3206         Use them in place of open-coded actions.
3207
3208 2008-07-01  Simon Josefsson  <simon@josefsson.org>
3209
3210         Add self-test for getdate module.
3211         * modules/getdate-tests: New file.
3212         * tests/test-getdate.c: New file.
3213
3214 2008-06-29  Bruno Haible  <bruno@clisp.org>
3215
3216         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
3217         .gitignore.
3218         Reported by Sylvain Beucler <beuc@beuc.net>.
3219
3220 2008-06-29  Bruno Haible  <bruno@clisp.org>
3221
3222         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
3223         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
3224
3225 2008-06-29  Bruno Haible  <bruno@clisp.org>
3226
3227         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
3228         EXTRA_DIST.
3229         Reported by Sylvain Beucler <beuc@beuc.net>.
3230
3231 2008-06-26  Jim Meyering  <meyering@redhat.com>
3232
3233         make several modules depend on the "open" module
3234         This provides slightly increased consistency when opening-for-write
3235         the name of a non-directory spelled with a trailing slash.
3236         * modules/chdir-safer: Likewise.
3237         * modules/chown: Likewise.
3238         * modules/clean-temp: Likewise.
3239         * modules/copy-file: Likewise.
3240         * modules/fchdir: Likewise.
3241         * modules/fcntl-safer: Likewise.
3242         * modules/pipe: Likewise.
3243         * modules/utime: Likewise.
3244         Prompted by Eric Blake and Bruno Haible.
3245
3246 2008-06-24  Andreas Schwab  <schwab@suse.de>
3247
3248         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
3249         literals can be used as initializers for global variables.
3250
3251 2008-06-23  Eric Blake  <ebb9@byu.net>
3252
3253         Make gnulib-cache.m4 easier to diff.
3254         * gnulib-tool (func_import): Allow newlines when reading cached
3255         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
3256
3257 2008-06-23  Bruno Haible  <bruno@clisp.org>
3258
3259         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
3260         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
3261         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
3262         m4/signalblocking.m4.
3263         (gl_PREREQ_SIGACTION): Don't invoke it.
3264         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
3265         gl_PREREQ_SIG_HANDLER_H.
3266         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3267         Don't check for sigaction here.
3268
3269 2008-06-23  Bruno Haible  <bruno@clisp.org>
3270
3271         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
3272         (install_handlers): Don't set the SA_RESETHAND flag.
3273
3274 2008-06-23  Bruno Haible  <bruno@clisp.org>
3275
3276         * m4/sigaction.m4: Comment fixes.
3277         * lib/signal.in.h: Likewise.
3278
3279 2008-06-23  Eric Blake  <ebb9@byu.net>
3280
3281         Fix typo.
3282         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
3283
3284         Avoid SA_ namespace.
3285         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
3286         Reported by Ralf Wildenhues.
3287
3288         Avoid test failure due to SA_RESTORER.
3289         * tests/test-sigaction.c (SA_MASK): New macro.
3290         (main): Avoid failing due to extension flags being set.
3291         Reported by Jim Meyering.
3292
3293         Revert use of sig-handler.h in sigprocmask.c.
3294         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
3295         it requires the existence of struct sigaction.
3296         * lib/sigprocmask.c (handler_t): Restore typedef.
3297         (rpl_signal, old_handlers): Use local type.
3298
3299 2008-06-22  Bruno Haible  <bruno@clisp.org>
3300
3301         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
3302         conditionally.
3303         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3304
3305 2008-06-22  Bruno Haible  <bruno@clisp.org>
3306
3307         * doc/posix-functions/siginterrupt.texi: Move note.
3308
3309         * lib/signal.in.h (SA_RESTART): New macro.
3310         * lib/sigaction.c: Update comment.
3311
3312         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
3313
3314         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
3315         (gl_PREREQ_SIGPROCMASK): Invoke it.
3316         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
3317
3318         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
3319
3320         * lib/sigprocmask.c: Update a comment.
3321
3322 2008-06-21  Eric Blake  <ebb9@byu.net>
3323
3324         Use sigaction module rather than signal().
3325         * modules/c-stack (Depends-on): Add sigaction.
3326         * modules/fatal-signal (Depends-on): Likewise.
3327         * modules/nanosleep (Depends-on): Likewise.
3328         * modules/sigprocmask (Files): Add sig-handler.h.
3329         * modules/sigaction (Files): Likewise.
3330         * lib/sig-handler.h (get_handler): New file, suggested by Paul
3331         Eggert.
3332         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
3333         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
3334         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3335         (init_fatal_signals): Likewise.
3336         * lib/nanosleep.c (rpl_nanosleep): Likewise.
3337         (siginterrupt): Delete fallback.
3338         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
3339         instead.
3340         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
3341         siginterrupt.
3342
3343         New module sigaction, for mingw.
3344         * modules/sigaction: New module...
3345         * modules/sigaction-tests: ...and its test.
3346         * m4/sigaction.m4: New file.
3347         * lib/sigaction.c: Likewise.
3348         * tests/test-sigaction.c: Likewise.
3349         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
3350         * modules/signal (Makefile.am): Likewise.
3351         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
3352         needed.
3353         * doc/posix-headers/signal.texi (signal.h): Mention provided
3354         types.
3355         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
3356         that sigaction is preferable.
3357         * doc/posix-functions/sigaction.texi (sigaction): Mention new
3358         module.
3359         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3360         sigaction.
3361
3362         Improve robustness of sigprocmask by overriding signal.
3363         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
3364         is in use.
3365         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
3366         (SIGKILL, SIGSTOP): Provide fallbacks.
3367         (rpl_signal): Implement.
3368         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
3369         signal can be called inside handlers.
3370
3371         Fix nanosleep module on mingw.
3372         * modules/nanosleep (Depends-on): Add sys_select.
3373         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
3374
3375         Fix licensing of sigprocmask.
3376         * modules/raise (License): Relicense as LGPL.
3377
3378 2008-06-21  Bruno Haible  <bruno@clisp.org>
3379
3380         * lib/propername.c (proper_name_utf8): Don't use the transliterated
3381         result if it contains question marks.
3382         Reported by Michael Geng <linux@michaelgeng.de>.
3383
3384 2008-06-19  Bruno Haible  <bruno@clisp.org>
3385
3386         Fix CVS-ism.
3387         * doc/gnulib.texi: Include updated-stamp.texi.
3388         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
3389         (updated-stamp.texi): New rule.
3390         (gnulib.info): Depend on it.
3391         * doc/.gitignore: Add updated-stamp.texi.
3392         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
3393
3394 2008-06-19  Bruno Haible  <bruno@clisp.org>
3395
3396         * doc/Makefile (gnulib.info): Update and simplify dependencies.
3397         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3398
3399 2008-06-19  Eric Blake  <ebb9@byu.net>
3400
3401         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
3402         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
3403         Reported by Stepan Kasal.
3404
3405 2008-06-18  Bruno Haible  <bruno@clisp.org>
3406
3407         * lib/fatal-signal.c (init_fatal_signals): Add comment.
3408         Reported by Eric Blake.
3409
3410 2008-06-18  Eric Blake  <ebb9@byu.net>
3411
3412         Work around cygwin 1.5.25 strsignal bug.
3413         * tests/test-strsignal.c: Allow for const char *.
3414         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
3415
3416 2008-06-18  Simon Josefsson  <simon@josefsson.org>
3417
3418         * users.txt: Update URL to article and add author/date
3419         information.
3420
3421 2008-06-17  Bruno Haible  <bruno@clisp.org>
3422
3423         New macro gl_DISABLE_THREADS.
3424         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
3425         if the user did not pass --enable-threads or --disable-threads option.
3426         (gl_DISABLE_THREADS): New macro.
3427         Reported by Eric Blake <ebb9@byu.net>.
3428
3429 2008-06-17  Bruno Haible  <bruno@clisp.org>
3430
3431         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
3432         when the macro ignores it.
3433         Based on a patch by Eric Blake <ebb9@byu.net>.
3434
3435 2008-06-17  Bruno Haible  <bruno@clisp.org>
3436
3437         * modules/tls (License): Change to LGPLv2+.
3438         Reported by Eric Blake.
3439
3440 2008-06-17  Eric Blake  <ebb9@byu.net>
3441
3442         Simplify c-stack prerequisites.
3443         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
3444         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
3445         no longer requires <ucontext.h> to exist.  Optimize setrlimit
3446         check.
3447         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
3448         <sys/resource.h>.
3449
3450         Move c-stack test into testsuite.
3451         * modules/c-stack-tests: New file.
3452         * lib/c-stack.c [DEBUG]: Move test program...
3453         * tests/test-c-stack.c: ...into this new file.  Skip rather than
3454         fail test if sigaltstack is lacking.
3455         * tests/test-c-stack.sh: New driver file.
3456
3457 2008-06-16  Eric Blake  <ebb9@byu.net>
3458
3459         Use raise module consistently.
3460         * modules/fatal-signal (Depends-on): Add raise.
3461         * modules/sigprocmask (Depends-on): Likewise.
3462         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
3463         * lib/sigprocmask.c (sigprocmask): Likewise.
3464         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3465         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
3466
3467         Fix compliance bug in sigpending.
3468         * lib/sigprocmask.c (sigpending): Return pending array via
3469         parameter, not return value.
3470
3471 2008-06-14  Eric Blake  <ebb9@byu.net>
3472
3473         Improve obstack-printf test code.
3474         * tests/test-obstack-printf.c (test_function): Fix comment, and
3475         simplify usage of obstack_* in macros.  Add a test for coverage.
3476         Reported by Bruno Haible.
3477
3478 2008-06-14  Bruno Haible  <bruno@clisp.org>
3479
3480         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
3481         array size as a constant, not as a const variable.
3482         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
3483         AC_USE_SYSTEM_EXTENSIONS.
3484         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3485         Test whether the obstack_printf function actually exists.
3486         * modules/obstack-printf (Depends-on): Add extensions.
3487         (Include): Remove obstack.h.
3488         * modules/obstack-printf-posix (Depends-on): Add extensions.
3489         (Include): Remove obstack.h.
3490
3491 2008-06-13  Eric Blake  <ebb9@byu.net>
3492
3493         Add obstack-printf and obstack-printf-posix modules.
3494         * modules/obstack-printf: New file.
3495         * modules/obstack-printf-posix: Likewise.
3496         * MODULES.html.sh (Misc): Mention them.
3497         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3498         Likewise.
3499         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3500         Likewise.
3501         * modules/stdio (Makefile.am): Accomodate new modules.
3502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3503         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
3504         Declare.
3505         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
3506         functions.
3507         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
3508         (gl_REPLACE_OBSTACK_PRINTF): New macros
3509         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
3510         * tests/test-obstack-printf.c: New file.
3511         * modules/obstack-printf-tests: Likewise.
3512         * modules/obstack-printf-posix-tests: Likewise.
3513
3514 2008-06-11  Bruno Haible  <bruno@clisp.org>
3515
3516         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
3517         * lib/open.c: Include errno.h.
3518         (open): Fail when attempting to write to a file that has a trailing
3519         slash.
3520         * tests/test-open.c (main): Test against trailing slash bug.
3521         * doc/posix-functions/open.texi: Mention the trailing slash bug.
3522
3523 2008-06-10  Bruno Haible  <bruno@clisp.org>
3524
3525         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
3526         for $? to work inside the trap command, with various /bin/sh-s.
3527         * tests/test-vc-list-files-cvs.sh: Likewise.
3528
3529 2008-06-10  Bruno Haible  <bruno@clisp.org>
3530
3531         * lib/acl-internal.h: Don't include gettext.h here.
3532         * lib/set-mode-acl.c: Include gettext.h here.
3533         * lib/copy-acl.c: Likewise.
3534
3535 2008-06-10  Bruno Haible  <bruno@clisp.org>
3536
3537         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
3538         * lib/wait-process.c (wait_subprocess): Likewise.
3539         * lib/execute.h (execute): Add termsigp argument.
3540         * lib/execute.c (execute): Likewise.
3541         * lib/csharpcomp.c (compile_csharp_using_pnet,
3542         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
3543         * lib/csharpexec.c (execute_csharp_using_pnet,
3544         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
3545         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
3546         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
3547         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
3548         is_jikes_present): Update.
3549         * lib/javaexec.c (execute_java_class): Update.
3550         * lib/javaversion.c (execute_and_read_line): Update.
3551         * NEWS: Document the changes.
3552         Reported by Eric Blake.
3553
3554 2008-06-10  Eric Blake  <ebb9@byu.net>
3555
3556         Add missing include.
3557         * tests/test-strstr.c (includes): Add <signal.h>.
3558         * tests/test-strcasestr.c (includes): Likewise.
3559         * tests/test-memmem.c (includes): Likewise.
3560
3561 2008-06-10  Bruno Haible  <bruno@clisp.org>
3562
3563         * lib/wait-process.c (wait_subprocess): Add an assertion.
3564
3565 2008-06-10  Bruno Haible  <bruno@clisp.org>
3566
3567         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
3568
3569 2008-06-10  Bruno Haible  <bruno@clisp.org>
3570
3571         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
3572         using alarm().
3573         * tests/test-strcasestr.c (main): Likewise.
3574         * tests/test-strstr.c (main): Likewise.
3575
3576 2008-06-09  Bruno Haible  <bruno@clisp.org>
3577
3578         Work around the Solaris 10 ACE ACLs ABI change.
3579         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
3580         declare if ACL_NO_TRIVIAL is present.
3581         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
3582         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
3583         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
3584         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
3585         define if ACL_NO_TRIVIAL is present.
3586         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
3587         and use the current ABI.
3588         (file_has_acl): Use same #if condition as elsewhere.
3589         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
3590         in use, and use the current ABI.
3591         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
3592         Reported by Jim Meyering.
3593
3594 2008-06-09  Eric Blake  <ebb9@byu.net>
3595
3596         Work around environments that (stupidly) ignore SIGALRM.
3597         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
3598         before using alarm().
3599         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3600         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3601         Reported by Ian Beckwith <ianb@erislabs.net>.
3602
3603         Produce autobuild blurb earlier in log.
3604         * modules/autobuild (configure.ac-early): Move AB_INIT here.
3605
3606 2008-06-09  Jim Meyering  <meyering@redhat.com>
3607         and OndÅ™ej Vašík  <ovasik@redhat.com>
3608
3609         utimens.c: correct kernel bug work-around
3610         OndÅ™ej Vašík found that the invalid return value of 280 indicates
3611         failure, not success, and the kernel bug we're trying to work
3612         around affects not just the utimensat call, but also the fallback
3613         futimens call.
3614         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
3615         not success.
3616         [HAVE_FUTIMENS]: Use the same work-around, here.
3617
3618 2008-06-09  Jim Meyering  <meyering@redhat.com>
3619
3620         add more guards around definition of ACE_-related code
3621         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
3622         ALLOW and ACE_OWNER are also defined.
3623
3624 2008-06-08  Bruno Haible  <bruno@clisp.org>
3625
3626         * lib/acl-internal.h: Add me as co-author.
3627         * lib/file-has-acl.c: Likewise.
3628         * lib/set-mode-acl.c: Likewise.
3629         * lib/copy-acl.c: Likewise.
3630
3631 2008-06-08  Bruno Haible  <bruno@clisp.org>
3632
3633         Add support for AIX ACLs.
3634         * lib/acl-internal.h (acl_nontrivial): New declaration.
3635         * lib/file-has-acl.c (acl_nontrivial): New function.
3636         (file_has_acl): Add implementation using AIX 4 ACL API.
3637         * lib/set-mode-acl.c (qset_acl): Likewise.
3638         * lib/copy-acl.c (qcopy_acl): Likewise.
3639
3640 2008-06-08  Bruno Haible  <bruno@clisp.org>
3641
3642         Add support for HP-UX ACLs.
3643         * lib/acl-internal.h (acl_nontrivial): New declaration.
3644         * lib/file-has-acl.c (acl_nontrivial): New function.
3645         (file_has_acl): Add implementation using HP-UX 11 ACL API.
3646         * lib/set-mode-acl.c (qset_acl): Likewise.
3647         * lib/copy-acl.c (qcopy_acl): Likewise.
3648
3649 2008-06-08  Bruno Haible  <bruno@clisp.org>
3650
3651         Add support for Cygwin ACLs.
3652         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
3653         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
3654         the chmod_or_fchmod call.
3655         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
3656
3657 2008-06-08  Bruno Haible  <bruno@clisp.org>
3658
3659         Fix bug with setuid modes in Solaris 10+ code.
3660         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
3661         succeeded, when the mode contains some special bits.
3662
3663 2008-06-08  Bruno Haible  <bruno@clisp.org>
3664
3665         Add support for Solaris 7..10 ACLs.
3666         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
3667         declarations.
3668         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
3669         functions.
3670         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
3671         * lib/set-mode-acl.c (qset_acl): Likewise.
3672         * lib/copy-acl.c (qcopy_acl): Likewise.
3673
3674 2008-06-08  Bruno Haible  <bruno@clisp.org>
3675
3676         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
3677         declaration.
3678         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
3679         (acl_access_nontrivial): Remove MacOS X case.
3680         (file_has_acl): Use acl_extended_nontrivial.
3681         * lib/copy-acl.c (qcopy_acl): Likewise.
3682
3683 2008-06-08  Bruno Haible  <bruno@clisp.org>
3684
3685         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
3686
3687 2008-06-08  Jim Meyering  <meyering@redhat.com>
3688
3689         * modules/acl (Maintainer): Add Bruno Haible.
3690
3691 2008-06-07  Bruno Haible  <bruno@clisp.org>
3692
3693         Improve support for Tru64 ACLs.
3694         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
3695         ACL on OSF/1.
3696
3697 2008-06-07  Bruno Haible  <bruno@clisp.org>
3698
3699         Add support for MacOS X ACLs.
3700         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
3701         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
3702         * lib/set-mode-acl.c (qset_acl): Likewise.
3703         * lib/copy-acl.c (qcopy_acl): Likewise.
3704
3705 2008-06-07  Bruno Haible  <bruno@clisp.org>
3706
3707         Fix memory leak introduced on 2008-05-22.
3708         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
3709         use.
3710
3711 2008-06-07  Bruno Haible  <bruno@clisp.org>
3712
3713         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
3714         to construct an empty ACL.
3715
3716 2008-06-07  Bruno Haible  <bruno@clisp.org>
3717
3718         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
3719         precisely.
3720         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
3721
3722 2008-06-07  Bruno Haible  <bruno@clisp.org>
3723
3724         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
3725         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
3726
3727 2008-06-07  Bruno Haible  <bruno@clisp.org>
3728
3729         * doc/posix-functions/_setjmp.texi: Explain the use of this function
3730         regardless of POSIX.
3731         * doc/posix-functions/_longjmp.texi: Likewise.
3732         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
3733         SystemV platform in this case.
3734
3735 2008-06-06  Eric Blake  <ebb9@byu.net>
3736
3737         Document abort() bugs.
3738         * doc/posix-functions/abort.texi (abort): Mention anomalies.
3739
3740         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
3741         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
3742         sigsetjmp.
3743         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
3744         siglongjmp, but only as a macro.
3745         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
3746         is obsolete.
3747         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
3748
3749         Tweak documentation to cover cygwin argz bugs.
3750         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
3751         argz bug fix; no code change needed since no cygwin releases
3752         occurred between the last fix and the bug being tested.
3753         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
3754         module and recently fixed cygwin bugs.
3755         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
3756         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
3757         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
3758         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
3759         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
3760         Likewise.
3761         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
3762         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
3763         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
3764         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
3765         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
3766         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
3767         Likewise.
3768
3769         Avoid gcc warning on cygwin.
3770         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
3771         !ACL_NO_TRIVIAL]: Avoid unused variable.
3772
3773 2008-06-05  Eric Blake  <ebb9@byu.net>
3774
3775         Be tolerant of UNKNOWN version in gnulib-tool test dir.
3776         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
3777         git-version-gen fails to come up with a version.
3778         Reported by Simon Josefsson.
3779
3780 2008-06-05  Jim Meyering  <meyering@redhat.com>
3781             Paul Eggert  <eggert@cs.ucla.edu>
3782
3783         utimens.c: work around a probable Linux kernel bug
3784         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
3785         appears to be a kernel bug that causes utimensat to return 280
3786         instead of 0, indicating success.
3787
3788 2008-06-04  Bruno Haible  <bruno@clisp.org>
3789
3790         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
3791         2008-06-01 commit.
3792
3793 2008-06-04  Bruno Haible  <bruno@clisp.org>
3794
3795         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
3796         * lib/file-has-acl.c (acl_access_nontrivial): New function.
3797         (file_has_acl): Use it. Save errno afterwards.
3798         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
3799
3800 2008-06-03  Bruno Haible  <bruno@clisp.org>
3801
3802         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
3803         draft code. Simplify #ifs.
3804         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
3805         Put Solaris code after POSIX-draft code. Fix comments regarding
3806         Solaris 10, HP-UX. Mention Cygwin.
3807         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
3808
3809 2008-06-03  Eric Blake  <ebb9@byu.net>
3810
3811         Provide fallback for older kernels.
3812         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
3813         Provide runtime fallback if kernel lacks support.
3814         Reported by Mike Frysinger.
3815
3816 2008-06-02  Bruno Haible  <bruno@clisp.org>
3817
3818         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
3819         it exists.
3820
3821 2008-06-02  Bruno Haible  <bruno@clisp.org>
3822
3823         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
3824         * lib/copy-acl.c (qcopy_acl): Update comment.
3825
3826 2008-06-02  Bruno Haible  <bruno@clisp.org>
3827
3828         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
3829         like ACL APIs.
3830
3831 2008-06-02  Bruno Haible  <bruno@clisp.org>
3832
3833         * tests/test-file-has-acl.sh: Use different code for Cygwin.
3834         * tests/test-set-mode-acl.sh: Likewise.
3835         * tests/test-copy-acl.sh: Likewise.
3836         * tests/test-copy-file.sh: Likewise.
3837
3838 2008-06-02  Bruno Haible  <bruno@clisp.org>
3839
3840         * tests/test-file-has-acl.sh: Remove unused code.
3841
3842 2008-06-01  Bruno Haible  <bruno@clisp.org>
3843
3844         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
3845         (copy_acl): Just a wrapper around qcopy_acl that emits the error
3846         messages.
3847         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
3848
3849 2008-06-01  Bruno Haible  <bruno@clisp.org>
3850
3851         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
3852         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
3853         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
3854         APIs.
3855         * modules/acl-tests (configure.ac): Remove tests now contained in
3856         m4/acl.m4.
3857
3858 2008-06-02  Jim Meyering  <meyering@redhat.com>
3859
3860         announce-gen: use a better key-server host name
3861         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
3862         it may be more consistently reliable.  Suggested by Werner Koch
3863         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
3864
3865 2008-06-01  Bruno Haible  <bruno@clisp.org>
3866
3867         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
3868         Reported by Voroskoi Andras <voroskoi@gmail.com>.
3869
3870 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
3871
3872         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
3873
3874 2008-06-01  Bruno Haible  <bruno@clisp.org>
3875
3876         New ACL tests.
3877         * tests/test-file-has-acl.sh: New file.
3878         * tests/test-file-has-acl.c: New file.
3879         * tests/test-set-mode-acl.sh: New file.
3880         * tests/test-set-mode-acl.c: New file.
3881         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
3882         * tests/test-copy-acl.c: New file.
3883         * modules/acl-tests: New file, based on modules/copy-file-tests.
3884         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
3885         (Depends-on): Add acl-tests.
3886         (configure.ac): Remove checks.
3887         (Makefile.am): Don't create test-sameacls program here any more.
3888
3889 2008-06-01  Bruno Haible  <bruno@clisp.org>
3890
3891         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
3892         * tests/test-sameacls.c: Include progname.h.
3893         (main): Invoke set_program_name. Portability fixes for MacOS X,
3894         Solaris, HP-UX.
3895
3896 2008-06-01  Bruno Haible  <bruno@clisp.org>
3897
3898         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
3899         function.
3900         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
3901
3902 2008-06-01  Bruno Haible  <bruno@clisp.org>
3903
3904         * modules/rpmatch (Depends-on): Add strdup.
3905
3906 2008-06-01  Bruno Haible  <bruno@clisp.org>
3907
3908         * lib/pipe.c: Include unistd-safer.h.
3909         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
3910         * modules/pipe (Depends-on): Add unistd-safer.
3911
3912 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3913
3914         * modules/autobuild (configure.ac): Call AB_INIT.
3915
3916 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3917
3918         * tests/test-getaddrinfo.c: Don't print debug messages by default.
3919         Suggested by Bruno Haible <bruno@clisp.org>.
3920
3921 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3922
3923         * tests/test-base64.c: Cast size_t to unsigned long when invoking
3924         printf.  Use %lu instead of %d.  Reported by Bruno Haible
3925         <bruno@clisp.org>.
3926
3927 2008-05-29  Eric Blake  <ebb9@byu.net>
3928
3929         Prefer new POSIX 200x interfaces over futimesat.
3930         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
3931         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
3932         when available.
3933         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
3934
3935 2008-05-28  Bruno Haible  <bruno@clisp.org>
3936
3937         * modules/stpcpy (License): Change to LGPLv2+.
3938         Requested by David Lutterkort <dlutter@redhat.com>.
3939
3940 2008-05-27  Bruno Haible  <bruno@clisp.org>
3941
3942         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
3943         current mingw.
3944         Reported by Jose E. Marchesi <jemarch@gnu.org>.
3945
3946 2008-05-27  Bruno Haible  <bruno@clisp.org>
3947
3948         * modules/iconv_open (Link): New section, from module 'iconv'.
3949         * modules/striconv (Link): Likewise.
3950         * modules/striconveh (Link): Likewise.
3951         * modules/xstriconv (Link): Likewise.
3952         * modules/unicodeio (Link): Likewise.
3953         * modules/propername (Link): Likewise.
3954         Reported by Jim Meyering.
3955
3956 2008-05-26  Jim Meyering  <meyering@redhat.com>
3957
3958         sha256: do not artificially restrict buffer length to be < 2^32
3959         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
3960         uint32_t to size_t.
3961         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
3962         to match.
3963
3964         avoid unaligned access errors, e.g., on sparc
3965         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
3966         direct access through a possibly-unaligned uint64* pointer.
3967         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
3968         direct access through a possibly-unaligned uint32* pointer.
3969         Prompted by this patch from Tom "spot" Callaway:
3970         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
3971
3972         sha512.c: fix typo in comment
3973         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
3974
3975 2008-05-25  Bruno Haible  <bruno@clisp.org>
3976
3977         * lib/set-mode-acl.c: Renamed from lib/acl.c.
3978         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
3979         (Makefile.am): Update lib_SOURCES.
3980
3981 2008-05-25  Bruno Haible  <bruno@clisp.org>
3982
3983         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
3984
3985 2008-05-25  Jim Meyering  <meyering@redhat.com>
3986
3987         useless-if-before-free: freed expr may have white-space differences
3988         * build-aux/useless-if-before-free: Recognize cases in which the
3989         freed expression differs from the tested one in embedded white
3990         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
3991         $1 was used, so we can't make any regexp shy.  Improved tests now
3992         detect this.
3993
3994         useless-if-before-free: accept white space in the expression.
3995         * build-aux/useless-if-before-free: For now, any white space
3996         in the expression must be identical in the free argument.
3997
3998         useless-if-before-free: efficiency tweak
3999         * build-aux/useless-if-before-free: Make the expression-matching
4000         regexp "shy".
4001         Make the *outer* regexp shy, not the expr-matching one.
4002
4003         update code-in-comment to accept cast of free arg
4004         * build-aux/useless-if-before-free: Update regexp.
4005
4006 2008-05-25  Bruno Haible  <bruno@clisp.org>
4007
4008         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
4009         * modules/copy-file-tests (Files, Makefile.am): Update.
4010         * tests/test-copy-file.c (func_test_copy): Update.
4011
4012 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
4013
4014         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
4015
4016 2008-05-23  Bruno Haible  <bruno@clisp.org>
4017
4018         Improve support for ACLs on OSF/1.
4019         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
4020         Remove fallback for unknown flavors of ACLs.
4021
4022 2008-05-22  Bruno Haible  <bruno@clisp.org>
4023
4024         Add support for ACLs on OSF/1.
4025         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
4026         replacements.
4027         (acl_free_text): New macro fallback.
4028         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
4029         acl_free.
4030         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
4031         acl_free_text function. Require AC_C_INLINE.
4032
4033 2008-05-22  Bruno Haible  <bruno@clisp.org>
4034
4035         Make copy_acl work on MacOS X 10.5.
4036         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
4037         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
4038         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
4039         If MODE_INSIDE_ACL, don't assume that every system has the same text
4040         representation for ACLs as FreeBSD.
4041         * lib/copy-acl.c (copy_acl): Add support for platforms with
4042         !MODE_INSIDE_ACL.
4043         * lib/file-has-acl.c (file_has_acl): Likewise.
4044         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
4045         FreeBSD, MacOS X, or IRIX, respectively.
4046
4047 2008-05-22  Bruno Haible  <bruno@clisp.org>
4048
4049         * lib/acl.h: Don't include <sys/acl.h>.
4050         (GETACLCNT): Move fallback to lib/acl-internal.h.
4051         * lib/acl-internal.h: Include <sys/acl.h> here.
4052         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
4053
4054 2008-05-22  Bruno Haible  <bruno@clisp.org>
4055
4056         Split off copy_acl function to separate file.
4057         * lib/copy-acl.c: New file, extracted from lib/acl.c.
4058         * lib/acl.c (copy_acl): Moved function to separate file.
4059         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
4060         * modules/acl (Files): Add lib/copy-acl.c.
4061         (Makefiles.am): Augment lib_SOURCES.
4062
4063 2008-05-22  Bruno Haible  <bruno@clisp.org>
4064
4065         * modules/copy-file-tests: New file.
4066         * tests/test-copy-file.sh: New file.
4067         * tests/test-copy-file.c: New file.
4068         * tests/test-copy-file-sameacls.c: New file.
4069
4070 2008-05-22  Eric Blake  <ebb9@byu.net>
4071
4072         Avoid gcc warning.
4073         * tests/test-memcmp.c (main): Pass NULL indirectly.
4074
4075 2008-05-21  Bruno Haible  <bruno@clisp.org>
4076
4077         Add reference doc about ACLs.
4078         * doc/acl-resources.txt: New file.
4079         * doc/acl-cygwin.txt: New file.
4080
4081 2008-05-21  Bruno Haible  <bruno@clisp.org>
4082
4083         Avoid one more warning from gcc.
4084         * lib/vasnprintf.c (IF_LINT): Update comments.
4085         (VASNPRINTF): Use it also for the 'prefix' array initializer.
4086
4087 2008-05-21  Jim Meyering  <meyering@redhat.com>
4088
4089         avoid a warning from gcc
4090         * lib/vasnprintf.c (IF_LINT): Define.
4091         (scale10_round_decimal_long_double):
4092         Use it to avoid a "may be used uninitialized" warning.
4093         (scale10_round_decimal_double): Likewise.
4094
4095 2008-05-21  Simon Josefsson  <simon@josefsson.org>
4096
4097         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
4098         declared.
4099
4100 2008-05-20  Bruno Haible  <bruno@clisp.org>
4101
4102         * tests/test-memcmp.c (main): Test also the sign of the result. Test
4103         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
4104
4105 2008-05-20  Simon Josefsson  <simon@josefsson.org>
4106
4107         * modules/memcmp-tests: New file.
4108         * tests/test-memcmp.c: New file.
4109
4110 2008-05-19  Bruno Haible  <bruno@clisp.org>
4111
4112         * modules/propername (Notice, configure.ac): Put quoted "..." into
4113         --keyword option.
4114         * lib/propername.h: Update comments accordingly.
4115         Reported by Eric Blake.
4116
4117 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
4118
4119         * modules/getpass-gnu (Depends-on): Add fseeko.
4120
4121 2008-05-19  Simon Josefsson  <simon@josefsson.org>
4122
4123         * modules/base64-tests: New file.
4124
4125 2008-05-19  Bo Borgerson <gigabo@gmail.com>
4126
4127         * lib/base64.c (base64_decode_ctx): If a decode context structure
4128         was passed in use it to ignore newlines.  If a context structure
4129         was _not_ passed in, continue to treat newlines as garbage (this
4130         is the historical behavior).  Formerly base64_decode.
4131         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
4132         takes a decode context structure.
4133         * lib/base64.h (base64_decode): Macro for four-argument calls.
4134         (base64_decode_alloc): Likewise.
4135         * lib/base64.c (base64_decode_ctx): If a decode context structure
4136         was passed in use it to ignore newlines.  If a context structure
4137         was _not_ passed in, continue to treat newlines as garbage (this
4138         is the historical behavior).  Formerly base64_decode.
4139         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
4140         takes a decode context structure.
4141         * lib/base64.h (base64_decode): Macro for four-argument calls.
4142         (base64_decode_alloc): Likewise.
4143
4144 2008-05-19  Jim Meyering  <meyering@redhat.com>
4145
4146         avoid a warning from gcc
4147         * lib/trim.c (IF_LINT): Define.
4148         (trim2): Use it to avoid a "may be used uninitialized" warning.
4149
4150         Fix doc typo.
4151         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
4152
4153 2008-05-19  Bruno Haible  <bruno@clisp.org>
4154
4155         * doc/glibc-functions/getpass.texi: Document limits of other
4156         implementations.
4157
4158 2008-05-19  Simon Josefsson  <simon@josefsson.org>
4159             Bruno Haible <bruno@clisp.org>
4160
4161         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
4162
4163 2008-05-18  Bruno Haible  <bruno@clisp.org>
4164
4165         * modules/propername: New file, from GNU gettext.
4166         * lib/propername.h: New file, from GNU gettext.
4167         * lib/propername.c: New file, from GNU gettext.
4168         * MODULES.html.sh (Internationalization functions): Add propername.
4169
4170 2008-05-16  Jim Meyering  <meyering@redhat.com>
4171             Bruno Haible  <bruno@clisp.org>
4172
4173         Avoid some warnings from "gcc -Wshadow".
4174         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
4175
4176 2008-05-15  Eric Blake  <ebb9@byu.net>
4177
4178         Extend previous patch to cygwin 1.7.0.
4179         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
4180         fast implementation in cygwin >= 1.7.0.
4181         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4182         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4183
4184 2008-05-15  Bruno Haible  <bruno@clisp.org>
4185
4186         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
4187         implementation in glibc >= 2.9.
4188         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4189         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4190
4191 2008-05-15  Bruno Haible  <bruno@clisp.org>
4192
4193         * MODULES.html.sh (Internationalization functions): Remove linebreak.
4194         (Unicode string functions): Add unilbrk/*.
4195         Reported by Karl Berry.
4196
4197 2008-05-15  Eric Blake  <ebb9@byu.net>
4198
4199         Fix violation of <stdbool.h> replacement in regex.
4200         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
4201         * lib/regexec.c (re_search_internal): Likewise.
4202         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
4203
4204 2008-05-15  Jim Meyering  <meyering@redhat.com>
4205
4206         avoid distracting test output when git or cvs is not found
4207         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
4208         * tests/test-vc-list-files-git.sh: Likewise.
4209
4210 2008-05-15  Eric Blake  <ebb9@byu.net>
4211
4212         Glibc finally accepted the memmem speedup code, bugzilla #5514.
4213         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
4214         glibc version.
4215         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4216         * doc/posix-functions/strstr.texi (strstr): Likewise.
4217         * lib/str-two-way.h (MAX): Sychronize with glibc.
4218
4219 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
4220
4221         * lib/regcomp.c (optimize_utf8): Add a note on why we test
4222         opr.ctx_type.
4223         (calc_first): Initialize constraint field.
4224         (duplicate_node_closure): Use it instead of special casing ANCHORS.
4225         Fix grammar.
4226         (duplicate_node): Merge constraint field for all node types.
4227         (calc_eclosure_iter): Look at constraint field for all node types.
4228         * lib/regex_internal.c (create_cd_newstate): Don't look at
4229         opr.ctx_type.
4230
4231 2008-05-14  Bruno Haible  <bruno@clisp.org>
4232
4233         Help GCC to do better code generation.
4234         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
4235         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
4236         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
4237         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
4238         Declare with attribute 'malloc' if supported.
4239
4240 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
4241
4242         use "echo STR|wc -c" rather than unportable "expr length STR"
4243         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
4244         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
4245
4246 2008-05-14  Jim Meyering  <meyering@redhat.com>
4247
4248         use dd ibs=$n count=1 ... rather than less-portable head -c$n
4249         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
4250         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
4251         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
4252         via Collin Lasse.
4253
4254 2008-05-14  Eric Blake  <ebb9@byu.net>
4255
4256         Avoid quadratic growth in gl_LIBSOURCES.
4257         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
4258         Suggested by Bruno Haible.
4259
4260         Test xmemdup0.
4261         * modules/xmemdup0-tests: New file.
4262         * tests/test-xmemdup0.c: Likewise.
4263
4264 2008-05-13  Eric Blake  <ebb9@byu.net>
4265
4266         Split xmemdup0 into its own module.
4267         * modules/xmemdup0: New file.
4268         * lib/xmemdup0.h: Likewise.
4269         * lib/xmemdup0.c: Likewise.
4270         * MODULES.html.sh (Memory management functions): Add xmemdup0.
4271         * lib/xalloc.h (xmemdup0): Remove.
4272         * lib/xmalloc.c (xmemdup0): Likewise.
4273
4274 2008-05-13  Eric Blake  <ebb9@byu.net>
4275             Bruno Haible  <bruno@clisp.org>
4276
4277         Reduce number of forks required during autoconf.
4278         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
4279         and gl_LIBSOURCES_DIR.
4280         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
4281         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
4282         m4_syscmd per file.
4283         <m4_foreach_w>: Move...
4284         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
4285
4286 2008-05-13  Eric Blake  <ebb9@byu.net>
4287
4288         * gnulib-tool: Fix various comment typos.
4289
4290 2008-05-12  Bruno Haible  <bruno@clisp.org>
4291
4292         Tailor the linebreaking algorithm.
4293         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
4294
4295 2008-05-12  Bruno Haible  <bruno@clisp.org>
4296
4297         Update to Unicode 5.0.0.
4298         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4299         LBP_JV, LBP_JT. Redistribute values.
4300         (unilbrk_table): Change size.
4301         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
4302         Unicode TR#14 rev. 22.
4303         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4304         LBP_JV, LBP_JT. Redistribute values.
4305         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
4306         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
4307         Update.
4308         * lib/unilbrk/lbrkprop1.h: Regenerated.
4309         * lib/unilbrk/lbrkprop2.h: Regenerated.
4310         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
4311         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
4312         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
4313         Likewise.
4314         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
4315         Likewise.
4316         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
4317         result.
4318         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4319         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4320         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4321         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
4322         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
4323         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
4324
4325 2008-05-11  Bruno Haible  <bruno@clisp.org>
4326
4327         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
4328
4329 2008-05-11  Bruno Haible  <bruno@clisp.org>
4330
4331         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
4332         * modules/unilbrk/gen-lbrk: New file.
4333
4334 2008-05-11  Bruno Haible  <bruno@clisp.org>
4335
4336         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
4337         * m4/sha512.m4 (gl_SHA512): Likewise.
4338
4339 2008-05-11  Jim Meyering  <meyering@redhat.com>
4340
4341         New modules: crypto/sha256, crypto/sha512 (from coreutils)
4342         * modules/crypto/sha256: New file.
4343         * modules/crypto/sha512: Likewise.
4344         * lib/sha256.c: Likewise.
4345         * lib/sha256.h: Likewise.
4346         * lib/sha512.c: Likewise.
4347         * lib/sha512.h: Likewise.
4348         * lib/u64.h: Likewise.
4349         * m4/sha256.m4: Likewise.
4350         * m4/sha512.m4: Likewise.
4351         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
4352
4353 2008-05-10  Bruno Haible  <bruno@clisp.org>
4354
4355         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
4356         (Input/Output <stdio.h>): Add xprintf.
4357         (Signal handling <signal.h>): Add strsignal.
4358         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
4359         (Core language properties): Add func.
4360         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
4361         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
4362         strings.
4363         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
4364         (Input/output): New section.
4365         (File system functions): Add openat-die, stat-macros.
4366         (Networking functions): Add sockets.
4367         (Unicode string functions): Add unictype/*.
4368         (Support for building libraries and executables): Add gperf.
4369         (Support for building documentation): Add agpl-3.0.
4370         (Misc): Add nocrash.
4371
4372 2008-05-10  Bruno Haible  <bruno@clisp.org>
4373
4374         * modules/unictype/gen-ctype: New file.
4375
4376 2008-05-10  Jim Meyering  <meyering@redhat.com>
4377
4378         Make chdir-safer.c more efficient on a system with no symlinks.
4379         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
4380         also if ELOOP is zero.  Suggested by Bruno Haible.
4381
4382         Make chdir-safer.c slightly safer.
4383         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
4384         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
4385
4386         Avoid compile failure on systems without ELOOP (like mingw).
4387         * lib/chdir-safer.c (ELOOP): Define if not already defined.
4388         Reported by Bruno Haible.
4389
4390 2008-05-10  Bruno Haible  <bruno@clisp.org>
4391
4392         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
4393         (is_utf8_encoding): Use a case-insensitive comparison.
4394         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
4395         streq.
4396
4397 2008-05-10  Bruno Haible  <bruno@clisp.org>
4398
4399         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
4400         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
4401         * lib/unilbrk/ulc-common.h (iconv_string_length,
4402         iconv_string_keeping_offsets): Remove declarations.
4403         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
4404         Don't include <iconv.h>, streq.h, xsize.h.
4405         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
4406         conversion.
4407         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
4408         <iconv.h>, streq.h, xsize.h.
4409         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
4410         conversion.
4411         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
4412         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
4413         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
4414         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
4415
4416 2008-05-10  Bruno Haible  <bruno@clisp.org>
4417
4418         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
4419         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
4420
4421         * modules/unilbrk/u32-width-linebreaks-tests: New file.
4422         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
4423
4424         * modules/unilbrk/u16-width-linebreaks-tests: New file.
4425         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
4426
4427         * modules/unilbrk/u8-width-linebreaks-tests: New file.
4428         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
4429
4430         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
4431         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
4432
4433         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
4434         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
4435
4436         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
4437         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
4438
4439         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
4440         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
4441
4442 2008-05-10  Bruno Haible  <bruno@clisp.org>
4443
4444         Split up 'linebreak' module.
4445         * lib/unilbrk.h: New file, based on lib/linebreak.h.
4446         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
4447         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
4448         modifications.
4449         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
4450         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
4451         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
4452         lib/linebreak.c.
4453         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
4454         lib/linebreak.c.
4455         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
4456         lib/linebreak.c.
4457         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
4458         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
4459         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
4460         lib/linebreak.c.
4461         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
4462         lib/linebreak.c.
4463         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
4464         lib/linebreak.c.
4465         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
4466         lib/linebreak.c.
4467         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
4468         lib/linebreak.c.
4469         * modules/unilbrk/base: New file.
4470         * modules/unilbrk/tables: New file.
4471         * modules/unilbrk/u8-possible-linebreaks: New file.
4472         * modules/unilbrk/u16-possible-linebreaks: New file.
4473         * modules/unilbrk/u32-possible-linebreaks: New file.
4474         * modules/unilbrk/ulc-common: New file.
4475         * modules/unilbrk/ulc-possible-linebreaks: New file.
4476         * modules/unilbrk/u8-width-linebreaks: New file.
4477         * modules/unilbrk/u16-width-linebreaks: New file.
4478         * modules/unilbrk/u32-width-linebreaks: New file.
4479         * modules/unilbrk/ulc-width-linebreaks: New file.
4480         * lib/linebreak.h: Remove file.
4481         * lib/linebreak.c: Remove file.
4482         * m4/linebreak.m4: Remove file.
4483         * modules/linebreak: Remove file.
4484         * NEWS: Mention the changes.
4485
4486 2008-05-09  Eric Blake  <ebb9@byu.net>
4487
4488         Add xmemdup0.
4489         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
4490         implementation.
4491         * lib/xmalloc.c (xmemdup0): New C implementation.
4492
4493 2008-05-08  Bruno Haible  <bruno@clisp.org>
4494
4495         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
4496
4497 2008-05-07  Eric Blake  <ebb9@byu.net>
4498
4499         Support cross-compilation of <wctype.h>.
4500         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
4501         AC_CACHE_CHECK.
4502
4503 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
4504
4505         * build-aux/vc-list-files: Add support for bzr.
4506
4507 2008-05-03  Jim Meyering  <meyering@redhat.com>
4508
4509         avoid failed assertion with tight malloc
4510         * tests/test-getndelim2.c: Correct an off-by-one assertion.
4511
4512 2008-05-03  Simon Josefsson  <simon@josefsson.org>
4513
4514         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
4515         are needed from arpa/inet.h.
4516         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
4517         Reported by Bruno Haible.
4518
4519 2008-05-02  Jim Meyering  <meyering@redhat.com>
4520
4521         avoid compilation error on FreeBSD 6
4522         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
4523
4524 2008-05-01  Jim Meyering  <meyering@redhat.com>
4525
4526         useless-if-before-free: correct --help's exit status description
4527         * build-aux/useless-if-before-free (usage): Like grep, exit 0
4528         for one or more matches, etc.  Reported by Bruno Haible.
4529
4530         vc-list-files: make the stand-alone gnulib test work
4531         * modules/vc-list-files-tests (configure.ac):
4532         Define and AC_SUBST abs_aux_dir.
4533         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
4534         $(abs_top_srcdir) to each script and having each of them
4535         duplicate the work of setting PATH, set PATH here, using
4536         the new variable, abs_aux_dir instead.
4537         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
4538         * tests/test-vc-list-files-git.sh: Likewise.
4539         Reported by Bruno Haible.
4540
4541 2008-05-01  Bruno Haible  <bruno@clisp.org>
4542
4543         * lib/getndelim2.c (getndelim2): Fix newsize computation during
4544         reallocation. Rename 'done' to 'found_delimiter'.
4545
4546 2008-05-01  Jim Meyering  <meyering@redhat.com>
4547
4548         vc-list-files: accommodate /bin/sh like the one from Solaris 10
4549         * build-aux/vc-list-files: Use `...`, not $(...).
4550
4551 2008-04-30  Jim Meyering  <meyering@redhat.com>
4552
4553         add tests for vc-list-files
4554         * modules/vc-list-files-tests: New module.
4555         * tests/test-vc-list-files-cvs.sh: New file.
4556         * tests/test-vc-list-files-git.sh: New file.
4557
4558         avoid a warning from gcc
4559         * lib/getndelim2.c (IF_LINT): Define.
4560         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
4561
4562         vc-list-files: work properly with build-aux/cvsu, too
4563         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
4564         to all cvs-based clauses.
4565
4566         vc-list-files: work properly in the CVS+awk case, too
4567         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
4568
4569         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
4570         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
4571         take more than one file argument, so .  Add quotes, just in case $dir
4572         ever contains a shell meta-character.  Prompted by Soren Hansen in
4573         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
4574
4575 2008-04-29  Eric Blake  <ebb9@byu.net>
4576
4577         Optimize getndelim2 to use block operations when possible.
4578         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
4579         freadseek, and memchr2.
4580         * lib/getndelim2.c (getndelim2): Use them for block reads.
4581
4582 2008-04-29  Bruno Haible  <bruno@clisp.org>
4583
4584         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
4585         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4586         * modules/inet_ntop (Depends-on): Add extensions.
4587         * modules/inet_pton (Depends-on): Likewise.
4588         Reported by Simon Josefsson.
4589
4590 2008-04-29  Jim Meyering  <meyering@redhat.com>
4591
4592         When the is more than one match in a block, match all of them.
4593         * build-aux/useless-if-before-free: Iterate through each block
4594         until there are no more matches.
4595
4596         Fix broken useless-if-before-free script.
4597         * build-aux/useless-if-before-free: Fix typo: missing "?" after
4598         the expression to match cast of argument to free-like function.
4599
4600 2008-04-29  Eric Blake  <ebb9@byu.net>
4601
4602         Use new header.
4603         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
4604
4605 2008-04-29  Jim Meyering  <meyering@redhat.com>
4606
4607         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
4608         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
4609         by gnulib to exist and to declare e.g., inet_ntop.
4610         Don't include "inet_ntop.h", now removed.
4611
4612         * m4/arpa_inet_h.m4: Remove trailing blanks.
4613
4614 2008-04-29  Eric Blake  <ebb9@byu.net>
4615
4616         Silence valgrind on safe reads beyond potential array bounds.
4617         * lib/rawmemchr.valgrind: New file.
4618         * lib/strchrnul.valgrind: Likewise.
4619         * modules/rawmemchr (Files): Distribute new file.
4620         * modules/strchrnul (Files): Likewise.
4621         Suggested by Bruno Haible.
4622
4623 2008-04-29  Bruno Haible  <bruno@clisp.org>
4624
4625         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
4626         (inet_ntop, inet_pton): Change portability warning's wording.
4627         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
4628         Invoke gl_CHECK_NEXT_HEADERS.
4629         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
4630         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
4631         set ARPA_INET_H.
4632         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4633         * modules/arpa_inet (Description): No longer only for systems that
4634         lack it.
4635         (Depends-on): Add include_next.
4636         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
4637         HAVE_ARPA_INET_H.
4638
4639 2008-04-29  Jim Meyering  <meyering@redhat.com>
4640
4641         * modules/mkdir (License): Re-license as LGPLv2+.
4642
4643 2008-04-29  Bruno Haible  <bruno@clisp.org>
4644
4645         * modules/rawmemchr (Maintainer): Set to Eric.
4646         * modules/strchrnul (Maintainer): Likewise.
4647
4648 2008-04-29  Simon Josefsson  <simon@josefsson.org>
4649
4650         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
4651         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
4652
4653         * modules/arpa_inet (arpa/inet.h): Use them.
4654
4655 2008-04-28  Eric Blake  <ebb9@byu.net>
4656
4657         Test getndelim2.
4658         * modules/getndelim2-tests: New file.
4659         * tests/test-getndelim2.c: Likewise.
4660         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
4661         stream.
4662         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
4663
4664         * MODULES.html.sh: Document new module.
4665
4666 2008-04-20  Bruno Haible  <bruno@clisp.org>
4667
4668         * lib/c-stack.c (die): Use raise.
4669         * modules/c-stack (Depends-on): Add raise.
4670
4671 2008-04-28  Bruno Haible  <bruno@clisp.org>
4672
4673         Expect rpmatch to be declared.
4674         * lib/yesno.c (rpmatch): Remove declaration.
4675
4676         Declare rpmatch.
4677         * lib/stdlib.in.h (rpmatch): New declaration.
4678         * lib/rpmatch.c: Include <stdlib.h> first.
4679         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
4680         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
4681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
4682         HAVE_RPMATCH.
4683         * modules/rpmatch (Depends-on): Add stdlib, extensions.
4684         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4685         (Include): Set to <stdlib.h>.
4686         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
4687         HAVE_RPMATCH.
4688         * NEWS: Document the change.
4689
4690 2008-04-28  Bruno Haible  <bruno@clisp.org>
4691
4692         Change rpmatch to use nl_langinfo when appropriate.
4693         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
4694         (N_): New macro.
4695         (localized_pattern): New function/macro.
4696         (try): Remove match, nomatch arguments. Copy the pattern into safe
4697         memory before caching it.
4698         (rpmatch): Use localized_pattern. Add translator comments.
4699         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
4700         Suggested by Eric Blake.
4701         * modules/rpmatch (Depends-on): Add stdbool.
4702
4703 2008-04-28  Eric Blake  <ebb9@byu.net>
4704
4705         Add rawmemchr module, matching glibc.
4706         * modules/string (Makefile.am): New indicator.
4707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
4708         * lib/string.in.h (rawmemchr): Declare when appropriate.
4709         * modules/rawmemchr: New file.
4710         * m4/rawmemchr.m4: Likewise.
4711         * lib/rawmemchr.c: Likewise.
4712         * modules/rawmemchr-tests: Likewise.
4713         * tests/test-rawmemchr.c: Likewise.
4714         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
4715         module.
4716         * modules/strchrnul (Depends-on): Add rawmemchr.
4717         * lib/strchrnul.c (strchrnul): Optimize a corner case.
4718
4719         Whitespace cleanup.
4720         * tests/test-strchrnul.c: Reindent.
4721         * lib/strchrnul.c: Likewise.
4722
4723         Optimize and test strchrnul.
4724         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
4725         * modules/strchrnul-tests: New file.
4726         * tests/test-strchrnul.c: Likewise.
4727
4728         Remove intprops dependency.
4729         * modules/memchr (Depends-on): Remove intprops.
4730         * modules/memrchr (Depends-on): Likewise.
4731         * modules/memchr2 (Depends-on): Likewise.
4732         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
4733         * lib/memrchr.c (__memrchr): Likewise.
4734         * lib/memrchr2.c (memchr2): Likewise.
4735         Reported by Simon Josefsson.
4736
4737 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4738
4739         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
4740         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4741
4742 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4743
4744         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
4745
4746         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
4747
4748         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
4749
4750         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
4751         declarations.
4752         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
4753
4754         * m4/inet_pton.m4: Don't check for header files.
4755
4756         * m4/inet_ntop.m4: Don't check for header files.
4757
4758 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4759
4760         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
4761         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
4762         trigger for cygwin).
4763         Reported by Bruno Haible  <bruno@clisp.org>.
4764
4765 2008-04-28  Bruno Haible  <bruno@clisp.org>
4766
4767         * doc/posix-functions/strdup.texi: Mention mingw problem.
4768
4769 2008-04-27  Bruno Haible  <bruno@clisp.org>
4770
4771         * modules/stat-time-tests (Depends-on): Add sleep.
4772         * tests/test-stat-time.c (force_unlink): New function.
4773         (cleanup): Use it.
4774         (test_mtime): Remove the ctime related tests.
4775         (test_ctime): New function, containing the ctime related tests.
4776         (main): Call test_ctime, except on native Windows platforms.
4777
4778 2008-04-27  Bruno Haible  <bruno@clisp.org>
4779
4780         * lib/rpmatch.c (rpmatch): Add some comments.
4781         Reported by James Youngman <jay@gnu.org>.
4782
4783 2008-04-27  Bruno Haible  <bruno@clisp.org>
4784
4785         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
4786         quiet NaNs.
4787
4788 2008-04-27  Bruno Haible  <bruno@clisp.org>
4789
4790         Make test-yesno.sh work on mingw.
4791         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
4792         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
4793         (main): Set stdin to binary mode.
4794         * modules/yesno-tests (Depends-on): Add binary-io.
4795
4796 2008-04-27  Bruno Haible  <bruno@clisp.org>
4797
4798         Fix 'isfinite' on x86, x86_64, ia64 platforms.
4799         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
4800         argument that lie outside the IEEE 854 domain.
4801         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
4802         (gl_ISFINITE): Use it.
4803         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
4804
4805 2008-04-27  Bruno Haible  <bruno@clisp.org>
4806
4807         Allow local renaming in config.h.
4808         * lib/memrchr.c (memrchr): Don't undefine outside libc.
4809
4810 2008-04-27  Bruno Haible  <bruno@clisp.org>
4811
4812         * lib/memchr.c (__memchr): Change type of 'i'.
4813         * lib/memchr2.c (memchr2): Likewise.
4814
4815 2008-04-26  Eric Blake  <ebb9@byu.net>
4816         and Bruno Haible  <bruno@clisp.org>
4817
4818         Optimize and test memrchr.
4819         * modules/memrchr (Depends-on): Add intprops.
4820         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
4821         * modules/memrchr-tests: New file.
4822         * tests/test-memrchr.c: New file.
4823
4824 2008-04-26  Bruno Haible  <bruno@clisp.org>
4825
4826         Add tentative support for DragonFly BSD.
4827         * lib/stdio-impl.h: Add macros for DragonFly BSD.
4828         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
4829         fp.
4830         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4831         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
4832         * lib/fpurge.c (fpurge): Likewise.
4833         * lib/freadable.c (freaadable): Likewise.
4834         * lib/freadahead.c (freadahead): Likewise.
4835         * lib/freading.c (freading): Likewise.
4836         * lib/freadptr.c (freadptr): Likewise.
4837         * lib/freadseek.c (freadptrinc): Likewise.
4838         * lib/fseeko.c (fseeko): Likewise.
4839         * lib/fseterr.c (fseterr): Likewise.
4840         * lib/fwritable.c (fwritable): Likewise.
4841         * lib/fwriting.c (fwriting): Likewise.
4842
4843 2008-04-26  Bruno Haible  <bruno@clisp.org>
4844
4845         * lib/stdio-impl.h: New file.
4846         * lib/fbufmode.c: Include stdio-impl.h.
4847         (fbufmode): Use fp_, remove redundant #defines.
4848         * lib/fflush.c: Include stdio-impl.h.
4849         (clear_ungetc_buffer): Remove redundant #defines.
4850         * lib/fpurge.c: Include stdio-impl.h.
4851         (fpurge): Remove redundant #defines.
4852         * lib/freadable.c: Include stdio-impl.h.
4853         (freadable): Remove redundant #defines.
4854         * lib/freadahead.c: Include stdio-impl.h.
4855         (freadahead): Remove redundant #defines.
4856         * lib/freading.c: Include stdio-impl.h.
4857         (freading): Remove redundant #defines.
4858         * lib/freadptr.c: Include stdio-impl.h.
4859         (freadptr): Remove redundant #defines.
4860         * lib/freadseek.c: Include stdio-impl.h.
4861         (freadptrinc): Remove redundant #defines.
4862         * lib/fseeko.c: Include stdio-impl.h.
4863         (rpl_fseeko): Remove redundant #defines.
4864         * lib/fseterr.c: Include stdio-impl.h.
4865         (fseterr): Remove redundant #defines.
4866         * lib/fwritable.c: Include stdio-impl.h.
4867         (fwritable: Remove redundant #defines.
4868         * lib/fwriting.c: Include stdio-impl.h.
4869         (fwriting): Remove redundant #defines.
4870         * modules/fbufmode (Files): Add lib/stdio-impl.h.
4871         * modules/fflush (Files): Likewise.
4872         * modules/fpurge (Files): Likewise.
4873         * modules/freadable (Files): Likewise.
4874         * modules/freadahead (Files): Likewise.
4875         * modules/freading (Files): Likewise.
4876         * modules/freadptr (Files): Likewise.
4877         * modules/freadseek (Files): Likewise.
4878         * modules/fseeko (Files): Likewise.
4879         * modules/fseterr (Files): Likewise.
4880         * modules/fwritable (Files): Likewise.
4881         * modules/fwriting (Files): Likewise.
4882
4883 2008-04-26  Bruno Haible  <bruno@clisp.org>
4884
4885         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4886         restore_seek_optimization, update_fpos_cache): New functions, extracted
4887         from rpl_fflush.
4888         (rpl_fflush): Use them.
4889         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
4890         (gl_REPLACE_FFLUSH): Use it.
4891
4892 2008-04-26  Bruno Haible  <bruno@clisp.org>
4893
4894         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
4895         on Solaris.
4896         * tests/test-xstrtoimax.sh: Likewise.
4897         * tests/test-xstrtoumax.sh: Likewise.
4898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4899
4900 2008-04-26  Bruno Haible  <bruno@clisp.org>
4901
4902         * modules/memchr-tests: New file.
4903         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
4904
4905 2008-04-26  Eric Blake  <ebb9@byu.net>
4906             Bruno Haible  <bruno@clisp.org>
4907
4908         * lib/memchr.c: Include intprops.h.
4909         (__memchr): Optimize parallel detection of matching bytes. Rename local
4910         variables. Add explanatory comments.
4911
4912 2008-04-26  Bruno Haible  <bruno@clisp.org>
4913
4914         Fix module 'memchr', broken since 2000-10-28.
4915         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
4916
4917 2008-04-26  Bruno Haible  <bruno@clisp.org>
4918
4919         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
4920         comments.
4921
4922 2008-04-25  Eric Blake  <ebb9@byu.net>
4923
4924         Use native fstatat on cygwin 1.7.0.
4925         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
4926         first.
4927
4928 2008-04-23  Eric Blake  <ebb9@byu.net>
4929
4930         Improve memchr2 performance.
4931         * lib/memchr2.c (memchr2): Further optimize parallel detection of
4932         NUL bytes.
4933         * modules/memchr2 (Depends-on): Use intprops.h.
4934
4935 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4936
4937         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
4938         an inline function instead of a CPP macro.  Patch by Ben Pfaff
4939         <blp@cs.stanford.edu>.
4940
4941 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4942
4943         * lib/arpa_inet.in.h: New file.
4944
4945         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
4946         (Makefile.am): Sed in substitute header file.
4947
4948         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
4949         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
4950
4951         * modules/inet_ntop (configure.ac): Use
4952         gl_ARPA_INET_MODULE_INDICATOR.
4953
4954         * modules/inet_pton (configure.ac): Use
4955         gl_ARPA_INET_MODULE_INDICATOR.
4956
4957 2008-04-22  Jim Meyering  <meyering@redhat.com>
4958
4959         * modules/verify (License): Re-license as LGPLv2+.
4960
4961 2008-04-22  Simon Josefsson  <simon@josefsson.org>
4962
4963         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
4964         parameter to void* as per POSIX standard (MinGW uses char*).
4965
4966 2008-04-21  Bruno Haible  <bruno@clisp.org>
4967
4968         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4969         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
4970         Define to replacements if REPLACE_ISWCNTRL is 1.
4971         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
4972         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
4973         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
4974         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
4975         what it fixes.
4976         * doc/posix-functions/iswalpha.texi: Likewise.
4977         * doc/posix-functions/iswblank.texi: Likewise.
4978         * doc/posix-functions/iswcntrl.texi: Likewise.
4979         * doc/posix-functions/iswdigit.texi: Likewise.
4980         * doc/posix-functions/iswgraph.texi: Likewise.
4981         * doc/posix-functions/iswlower.texi: Likewise.
4982         * doc/posix-functions/iswprint.texi: Likewise.
4983         * doc/posix-functions/iswpunct.texi: Likewise.
4984         * doc/posix-functions/iswspace.texi: Likewise.
4985         * doc/posix-functions/iswupper.texi: Likewise.
4986         * doc/posix-functions/iswxdigit.texi: Likewise.
4987         Reported by Alain Guibert.
4988
4989 2008-04-21  Bruno Haible  <bruno@clisp.org>
4990
4991         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
4992         Patch by Alain Guibert.
4993
4994 2008-04-21  Bruno Haible  <bruno@clisp.org>
4995
4996         Fix test failures on mingw.
4997         * tests/test-xstrtol.c (print_no_progname): New function.
4998         (main): Install it in error_print_progname hook.
4999         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
5000         * tests/test-xstrtoimax.sh: Likewise.
5001         * tests/test-xstrtoumax.sh: Likewise.
5002
5003 2008-04-21  Bruno Haible  <bruno@clisp.org>
5004
5005         Fix test failure on mingw.
5006         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
5007
5008 2008-04-21  Bruno Haible  <bruno@clisp.org>
5009
5010         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
5011         Actually assign a value.
5012
5013 2008-04-20  Bruno Haible  <bruno@clisp.org>
5014
5015         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
5016         take 2.
5017         * lib/canonicalize.c (canonicalize_file_name): Elide if the
5018         'canonicalize-lgpl' module is also used.
5019         * lib/canonicalize-lgpl.c: Undo last change.
5020         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
5021
5022 2008-04-20  Bruno Haible  <bruno@clisp.org>
5023
5024         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
5025         config.h. Provide _mkdir based fallback for mingw.
5026         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
5027         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
5028         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
5029         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
5030         rather than defining mkdir in config.h.
5031         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
5032         (gl_SYS_STAT_H_DEFAULTS): New macro.
5033         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
5034         HAVE_IO_H any more.
5035         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
5036         HAVE_DECL_MKDIR and HAVE_IO_H.
5037
5038 2008-04-20  Bruno Haible  <bruno@clisp.org>
5039
5040         * lib/isapipe.c: Port to native Windows platforms.
5041
5042 2008-04-20  Bruno Haible  <bruno@clisp.org>
5043
5044         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
5045
5046 2008-04-21  Eric Blake  <ebb9@byu.net>
5047
5048         Work around preprocessors that don't handle UINTMAX_MAX.
5049         * lib/memchr2.c (memchr2): Avoid embedded #if.
5050         Reported by Alain Guibert, fix suggested by Bruno Haible.
5051
5052 2008-04-21  Simon Josefsson  <simon@josefsson.org>
5053
5054         * doc/posix-functions/strftime.texi (strftime): Explain better
5055         Windows incompatibility.  Suggested by Micah Cowan
5056         <micah@cowan.name>.
5057
5058 2008-04-20  Bruno Haible  <bruno@clisp.org>
5059
5060         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
5061         unistr/u8-mblen.
5062
5063 2008-04-20  Bruno Haible  <bruno@clisp.org>
5064
5065         Fix test failure on platforms with non-GNU iconv.
5066         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
5067         (U_TO_U8): Use it, rather than u16_to_u8.
5068         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
5069         units at the end of the input string.
5070         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
5071
5072 2008-04-20  Bruno Haible  <bruno@clisp.org>
5073
5074         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
5075         when the resulting length is 0.
5076         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
5077
5078 2008-04-20  Bruno Haible  <bruno@clisp.org>
5079
5080         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
5081         works.
5082         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
5083
5084 2008-04-20  Bruno Haible  <bruno@clisp.org>
5085
5086         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
5087         * modules/tsearch-tests (configure.ac): Test for initstate function.
5088
5089 2008-04-20  Bruno Haible  <bruno@clisp.org>
5090
5091         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
5092         for nlink_t if missing.
5093         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
5094
5095 2008-04-19  Bruno Haible  <bruno@clisp.org>
5096
5097         Work around snprintf bug on Linux libc5.
5098         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
5099         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
5100         gl_SNPRINTF_SIZE1.
5101         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5102         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
5103         that test failed.
5104         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5105         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
5106         * modules/snprintf (Files): Add m4/printf.m4.
5107         * modules/vsnprintf (Files): Likewise.
5108         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
5109         * doc/posix-functions/vsnprintf.texi: Likewise.
5110
5111 2008-04-19  Bruno Haible  <bruno@clisp.org>
5112
5113         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
5114         from 0.0058 to less than 10^-7.
5115
5116 2008-04-19  Bruno Haible  <bruno@clisp.org>
5117
5118         Fix rounding when a precision is given.
5119         * lib/vasnprintf.c (is_borderline): New function.
5120         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
5121         9...9x.
5122         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
5123         %e, %g.
5124         * tests/test-vasprintf-posix.c (test_function): Likewise.
5125         * tests/test-snprintf-posix.h (test_function): Likewise.
5126         * tests/test-sprintf-posix.h (test_function): Likewise.
5127         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
5128         * tests/test-printf-posix.h (test_function): Likewise.
5129         * tests/test-printf-posix.output: Update.
5130         Reported by John Darrington <john@darrington.wattle.id.au> via
5131         Ben Pfaff <blp@cs.stanford.edu>.
5132
5133 2008-04-18  Simon Josefsson  <simon@josefsson.org>
5134
5135         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
5136         Suggested by Bruno Haible <bruno@clisp.org>.
5137
5138 2008-04-17  Bruno Haible  <bruno@clisp.org>
5139
5140         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
5141         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
5142         implementation.
5143         Patch by Bruce Merry <bmerry@gmail.com>.
5144
5145 2008-04-17  Simon Josefsson  <simon@josefsson.org>
5146
5147         * doc/posix-functions/strftime.texi (strftime): Mention that %e
5148         doesn't work under Windows.
5149
5150 2008-04-16  Bruno Haible  <bruno@clisp.org>
5151
5152         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
5153         New macros.
5154         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
5155         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
5156         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
5157         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
5158         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
5159         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
5160         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
5161         macros.
5162         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
5163         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
5164         Northern Sotho, Uighur.
5165
5166 2008-04-16  Bruno Haible  <bruno@clisp.org>
5167
5168         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
5169         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
5170         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
5171         Reported by Daniel Bergström <daniel@octocode.com>.
5172
5173 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
5174             Bruno Haible  <bruno@clisp.org>
5175
5176         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
5177         function.
5178         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
5179         New functions, mostly extracted from gl_locale_name_default.
5180         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
5181
5182 2008-04-16  Eric Blake  <ebb9@byu.net>
5183
5184         Adjust strtod detection to catch glibc 2.7 bug.
5185         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
5186         Reported by John Gatewood Ham.
5187
5188 2008-04-16  Bruno Haible  <bruno@clisp.org>
5189
5190         Add tentative support for Linux libc5.
5191         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
5192         * lib/fpurge.c (fpurge): Likewise.
5193         * lib/freadable.c (freadable): Likewise.
5194         * lib/freadahead.c (freadahead): Likewise.
5195         * lib/freading.c (freading): Likewise.
5196         * lib/freadptr.c (freadptr): Likewise.
5197         * lib/freadseek.c (freadptrinc): Likewise.
5198         * lib/fseeko.c (rpl_fseeko): Likewise.
5199         * lib/fseterr.c (fseterr): Likewise.
5200         * lib/fwritable.c (fwritable): Likewise.
5201         * lib/fwriting.c (fwriting): Likewise.
5202         Reported by Alain Guibert <alguibert+bts@free.fr>.
5203
5204 2008-04-15  Bruno Haible  <bruno@clisp.org>
5205
5206         * modules/mathl (configure.ac): Define module indicator.
5207
5208 2008-04-15  Bruno Haible  <bruno@clisp.org>
5209
5210         * lib/logl.c (logl): Remove unused variables.
5211
5212 2008-04-15  Bruno Haible  <bruno@clisp.org>
5213
5214         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
5215         fails.
5216
5217 2008-04-15  Bruno Haible  <bruno@clisp.org>
5218
5219         * lib/trim.c (trim2): Fix argument of isspace() macro.
5220
5221 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
5222
5223         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
5224         to 0.
5225         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
5226
5227 2008-04-14  Bruno Haible  <bruno@clisp.org>
5228
5229         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
5230         AC_LANG_PROGRAM argument.
5231         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
5232         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
5233         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5234         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5235         * m4/math_h.m4 (gl_MATH_H): Likewise.
5236         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5237         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5238         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
5239         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
5240         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5241         * m4/regex.m4 (gl_REGEX): Likewise.
5242         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
5243         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
5244         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5245         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
5246         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5247         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5248         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5249         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5250
5251 2008-04-14  Jim Meyering  <meyering@redhat.com>
5252
5253         test-strtod: fix typos: s/abs/fabs/
5254         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
5255
5256 2008-04-13  Bruno Haible  <bruno@clisp.org>
5257
5258         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
5259         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
5260         module is also used and while not building the reloc-wrapper.
5261
5262 2008-04-13  Bruno Haible  <bruno@clisp.org>
5263
5264         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
5265
5266 2008-04-13  Bruno Haible  <bruno@clisp.org>
5267
5268         Fix AIX compilation failure introduced on 2008-04-02.
5269         * tests/test-frexp.c (exp): Undefine before redefining.
5270         * tests/test-frexpl.c (exp): Likewise.
5271
5272 2008-04-13  Bruno Haible  <bruno@clisp.org>
5273
5274         Work around a HP-UX stdio bug.
5275         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
5276         * tests/test-ftello.c (main): Likewise.
5277         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
5278         * doc/posix-functions/ftello.texi: Likewise.
5279
5280 2008-04-13  Bruno Haible  <bruno@clisp.org>
5281
5282         Make test-signbit pass on HP-UX/hppa.
5283         * tests/test-signbit.c (minus_zerol): New variable.
5284         (test_signbitl): Use it.
5285
5286 2008-04-13  Bruno Haible  <bruno@clisp.org>
5287
5288         Make truncl work on OSF/1 4.0.
5289         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
5290         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5291         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
5293         HAVE_DECL_TRUNCL.
5294         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
5295         HAVE_DECL_TRUNCL.
5296         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
5297
5298 2008-04-13  Bruno Haible  <bruno@clisp.org>
5299
5300         * lib/unictype.h: Remove trailing comma from enumeration definitions.
5301
5302 2008-04-13  Bruno Haible  <bruno@clisp.org>
5303
5304         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
5305         expression, so as to avoid HP-UX 11 cc compiler bug.
5306
5307 2008-04-13  Bruno Haible  <bruno@clisp.org>
5308
5309         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
5310
5311 2008-04-13  Bruno Haible  <bruno@clisp.org>
5312
5313         * lib/git-merge-changelog.c: Remove empty declaration outside of
5314         functions.
5315
5316 2008-04-13  Bruno Haible  <bruno@clisp.org>
5317
5318         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
5319
5320 2008-04-13  Bruno Haible  <bruno@clisp.org>
5321
5322         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
5323         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
5324         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
5325         also if it exists but lacks definitions of the SHUT_* macros.
5326         * modules/sys_socket (Description): Update.
5327         Reported by Elbert Pol <e.pol@chello.nl>.
5328
5329 2008-04-13  Bruno Haible  <bruno@clisp.org>
5330
5331         * lib/localcharset.c (OS2): Don't redefine if already defined.
5332         Reported by Elbert Pol <e.pol@chello.nl>.
5333
5334 2008-04-13  Bruno Haible  <bruno@clisp.org>
5335
5336         * lib/binary-io.h [__EMX__]: Include <io.h>.
5337         Reported by Elbert Pol <e.pol@chello.nl>.
5338
5339 2008-04-12  Bruno Haible  <bruno@clisp.org>
5340
5341         * lib/fpucw.h: Enable the definitions also for x86_64.
5342         Needed for NetBSD/x86_64.
5343         Reported by Thomas Klausner <tk@giga.or.at>.
5344
5345 2008-04-12  Bruno Haible  <bruno@clisp.org>
5346
5347         * tests/test-strtod.c: Include isnand.h.
5348         (main): Use isnand instead of isnan.
5349         Reported by Jim Meyering.
5350
5351 2008-04-12  Bruno Haible  <bruno@clisp.org>
5352
5353         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
5354         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5355
5356 2008-04-12  Jim Meyering  <meyering@redhat.com>
5357
5358         * m4/math_h.m4 (gl_MATH_H): Fix typos.
5359
5360 2008-04-12  Bruno Haible  <bruno@clisp.org>
5361
5362         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
5363         Reported by Elbert Pol <e.pol@chello.nl>.
5364
5365 2008-04-12  Eric Blake  <ebb9@byu.net>
5366
5367         Work around Solaris 10 math.h bug.
5368         * m4/math_h.m4 (gl_MATH_H): Check for bug.
5369         (gl_MATH_H_DEFAULTS): Set up default.
5370         * modules/math (Makefile.am): Replace new indicators.
5371         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
5372         * tests/test-math.c (main): Test this.
5373         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
5374         * doc/posix-headers/math.texi (math.h): Mention bug.
5375         Reported by Nelson H. F. Beebe and Jim Meyering.
5376
5377 2008-04-11  Bruno Haible  <bruno@clisp.org>
5378
5379         Adapt to future versions of Apple GCC.
5380         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
5381         Reported by Peter O'Gorman <peter@pogma.com>.
5382
5383 2008-04-11  Bruno Haible  <bruno@clisp.org>
5384
5385         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
5386
5387 2008-04-11  Bruno Haible  <bruno@clisp.org>
5388
5389         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
5390
5391         * modules/getaddrinfo-tests (Makefile.am): Define
5392         test_getaddrinfo_LDADD.
5393
5394 2008-04-11  Bruno Haible  <bruno@clisp.org>
5395
5396         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
5397         (init): Fix syntax error.
5398         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
5399         is declared.
5400
5401 2008-04-11  Bruno Haible  <bruno@clisp.org>
5402
5403         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
5404         * modules/glob (Depends-on): Add stdbool.
5405
5406 2008-04-11  Bruno Haible  <bruno@clisp.org>
5407
5408         * lib/trim.c: Include <string.h>.
5409
5410 2008-04-11  Eric Blake  <ebb9@byu.net>
5411
5412         Avoid compile failure on OS/2.
5413         * lib/regex_internal.h (internal_function): Disable optimization
5414         on OS/2 (__EMX__), where it caused compiler error.
5415         Reported by Elbert Pol.
5416
5417 2008-04-11  Bruno Haible  <bruno@clisp.org>
5418
5419         Flush the standard error stream before aborting. Needed on mingw.
5420         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
5421         * tests/test-array_list.c (ASSERT): Likewise.
5422         * tests/test-array_oset.c (ASSERT): Likewise.
5423         * tests/test-avltree_list.c (ASSERT): Likewise.
5424         * tests/test-avltree_oset.c (ASSERT): Likewise.
5425         * tests/test-avltreehash_list.c (ASSERT): Likewise.
5426         * tests/test-binary-io.c (ASSERT): Likewise.
5427         * tests/test-byteswap.c (ASSERT): Likewise.
5428         * tests/test-c-ctype.c (ASSERT): Likewise.
5429         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
5430         * tests/test-c-strcasestr.c (ASSERT): Likewise.
5431         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
5432         * tests/test-c-strstr.c (ASSERT): Likewise.
5433         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
5434         * tests/test-canonicalize.c (ASSERT): Likewise.
5435         * tests/test-carray_list.c (ASSERT): Likewise.
5436         * tests/test-ceilf1.c (ASSERT): Likewise.
5437         * tests/test-ceilf2.c (ASSERT): Likewise.
5438         * tests/test-ceill.c (ASSERT): Likewise.
5439         * tests/test-count-one-bits.c (ASSERT): Likewise.
5440         * tests/test-fbufmode.c (ASSERT): Likewise.
5441         * tests/test-fflush2.c (ASSERT): Likewise.
5442         * tests/test-floorf1.c (ASSERT): Likewise.
5443         * tests/test-floorf2.c (ASSERT): Likewise.
5444         * tests/test-floorl.c (ASSERT): Likewise.
5445         * tests/test-fopen.c (ASSERT): Likewise.
5446         * tests/test-fpending.c (ASSERT): Likewise.
5447         * tests/test-fprintf-posix.c (ASSERT): Likewise.
5448         * tests/test-fpurge.c (ASSERT): Likewise.
5449         * tests/test-freadable.c (ASSERT): Likewise.
5450         * tests/test-freadahead.c (ASSERT): Likewise.
5451         * tests/test-freading.c (ASSERT): Likewise.
5452         * tests/test-freadptr.c (ASSERT): Likewise.
5453         * tests/test-freadptr2.c (ASSERT): Likewise.
5454         * tests/test-freadseek.c (ASSERT): Likewise.
5455         * tests/test-freopen.c (ASSERT): Likewise.
5456         * tests/test-frexp.c (ASSERT): Likewise.
5457         * tests/test-frexpl.c (ASSERT): Likewise.
5458         * tests/test-fseek.c (ASSERT): Likewise.
5459         * tests/test-fseeko.c (ASSERT): Likewise.
5460         * tests/test-fstrcmp.c (ASSERT): Likewise.
5461         * tests/test-ftell.c (ASSERT): Likewise.
5462         * tests/test-ftello.c (ASSERT): Likewise.
5463         * tests/test-func.c (ASSERT): Likewise.
5464         * tests/test-fwritable.c (ASSERT): Likewise.
5465         * tests/test-fwriting.c (ASSERT): Likewise.
5466         * tests/test-getdelim.c (ASSERT): Likewise.
5467         * tests/test-getline.c (ASSERT): Likewise.
5468         * tests/test-i-ring.c (ASSERT): Likewise.
5469         * tests/test-iconv-utf.c (ASSERT): Likewise.
5470         * tests/test-iconv.c (ASSERT): Likewise.
5471         * tests/test-isfinite.c (ASSERT): Likewise.
5472         * tests/test-isnand.c (ASSERT): Likewise.
5473         * tests/test-isnanf.c (ASSERT): Likewise.
5474         * tests/test-isnanl.h (ASSERT): Likewise.
5475         * tests/test-ldexpl.c (ASSERT): Likewise.
5476         * tests/test-linked_list.c (ASSERT): Likewise.
5477         * tests/test-linkedhash_list.c (ASSERT): Likewise.
5478         * tests/test-localename.c (ASSERT): Likewise.
5479         * tests/test-lseek.c (ASSERT): Likewise.
5480         * tests/test-mbscasecmp.c (ASSERT): Likewise.
5481         * tests/test-mbscasestr1.c (ASSERT): Likewise.
5482         * tests/test-mbscasestr2.c (ASSERT): Likewise.
5483         * tests/test-mbscasestr3.c (ASSERT): Likewise.
5484         * tests/test-mbscasestr4.c (ASSERT): Likewise.
5485         * tests/test-mbschr.c (ASSERT): Likewise.
5486         * tests/test-mbscspn.c (ASSERT): Likewise.
5487         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
5488         * tests/test-mbspbrk.c (ASSERT): Likewise.
5489         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
5490         * tests/test-mbsrchr.c (ASSERT): Likewise.
5491         * tests/test-mbsspn.c (ASSERT): Likewise.
5492         * tests/test-mbsstr1.c (ASSERT): Likewise.
5493         * tests/test-mbsstr2.c (ASSERT): Likewise.
5494         * tests/test-mbsstr3.c (ASSERT): Likewise.
5495         * tests/test-memchr2.c (ASSERT): Likewise.
5496         * tests/test-memmem.c (ASSERT): Likewise.
5497         * tests/test-open.c (ASSERT): Likewise.
5498         * tests/test-printf-frexp.c (ASSERT): Likewise.
5499         * tests/test-printf-frexpl.c (ASSERT): Likewise.
5500         * tests/test-printf-posix.c (ASSERT): Likewise.
5501         * tests/test-quotearg.c (ASSERT): Likewise.
5502         * tests/test-rbtree_list.c (ASSERT): Likewise.
5503         * tests/test-rbtree_oset.c (ASSERT): Likewise.
5504         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
5505         * tests/test-round1.c (ASSERT): Likewise.
5506         * tests/test-roundf1.c (ASSERT): Likewise.
5507         * tests/test-roundl.c (ASSERT): Likewise.
5508         * tests/test-signbit.c (ASSERT): Likewise.
5509         * tests/test-sleep.c (ASSERT): Likewise.
5510         * tests/test-snprintf-posix.c (ASSERT): Likewise.
5511         * tests/test-snprintf.c (ASSERT): Likewise.
5512         * tests/test-sprintf-posix.c (ASSERT): Likewise.
5513         * tests/test-stat-time.c (ASSERT): Likewise.
5514         * tests/test-strcasestr.c (ASSERT): Likewise.
5515         * tests/test-strerror.c (ASSERT): Likewise.
5516         * tests/test-striconv.c (ASSERT): Likewise.
5517         * tests/test-striconveh.c (ASSERT): Likewise.
5518         * tests/test-striconveha.c (ASSERT): Likewise.
5519         * tests/test-strsignal.c (ASSERT): Likewise.
5520         * tests/test-strstr.c (ASSERT): Likewise.
5521         * tests/test-strtod.c (ASSERT): Likewise.
5522         * tests/test-trunc1.c (ASSERT): Likewise.
5523         * tests/test-trunc2.c (ASSERT): Likewise.
5524         * tests/test-truncf1.c (ASSERT): Likewise.
5525         * tests/test-truncf2.c (ASSERT): Likewise.
5526         * tests/test-truncl.c (ASSERT): Likewise.
5527         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
5528         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
5529         * tests/test-vasnprintf.c (ASSERT): Likewise.
5530         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
5531         * tests/test-vasprintf.c (ASSERT): Likewise.
5532         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
5533         * tests/test-vprintf-posix.c (ASSERT): Likewise.
5534         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
5535         * tests/test-vsnprintf.c (ASSERT): Likewise.
5536         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
5537         * tests/test-wcwidth.c (ASSERT): Likewise.
5538         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
5539         * tests/test-xprintf-posix.c (ASSERT): Likewise.
5540         * tests/test-xvasprintf.c (ASSERT): Likewise.
5541         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
5542         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
5543         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
5544         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
5545         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
5546         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
5547         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
5548         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
5549         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
5550         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
5551         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
5552         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
5553         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
5554         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
5555         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
5556         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
5557         * tests/unictype/test-block_list.c (ASSERT): Likewise.
5558         * tests/unictype/test-block_of.c (ASSERT): Likewise.
5559         * tests/unictype/test-block_test.c (ASSERT): Likewise.
5560         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
5561         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
5562         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
5563         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
5564         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
5565         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
5566         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
5567         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
5568         * tests/unictype/test-combining.c (ASSERT): Likewise.
5569         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
5570         * tests/unictype/test-digit.c (ASSERT): Likewise.
5571         * tests/unictype/test-mirror.c (ASSERT): Likewise.
5572         * tests/unictype/test-numeric.c (ASSERT): Likewise.
5573         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
5574         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
5575         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
5576         * tests/unictype/test-scripts.c (ASSERT): Likewise.
5577         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
5578         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
5579         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
5580         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
5581         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
5582         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
5583         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
5584         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
5585         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
5586         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
5587         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
5588         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
5589         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
5590         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
5591         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
5592         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
5593         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
5594         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
5595         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
5596         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
5597         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
5598         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
5599         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
5600         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
5601         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
5602         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
5603         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
5604         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
5605         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
5606         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
5607         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
5608         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
5609         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
5610         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
5611         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
5612         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
5613         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
5614         Reported by Eric Blake.
5615
5616 2008-04-11  Bruno Haible  <bruno@clisp.org>
5617
5618         * lib/wchar.in.h: Tweak comment.
5619
5620 2008-04-11  Bruno Haible  <bruno@clisp.org>
5621
5622         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
5623         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
5624         gl_COMMON.
5625         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
5626
5627 2008-04-11  Bruno Haible  <bruno@clisp.org>
5628
5629         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
5630
5631 2008-04-11  Simon Josefsson  <simon@josefsson.org>
5632
5633         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
5634         of attempting to use non-existing /dev/*random.  Based on patch
5635         from Adam Strzelecki <ono@java.pl> in
5636         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
5637
5638 2008-04-08  Bruno Haible  <bruno@clisp.org>
5639
5640         Add tentative support for emx+gcc.
5641         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
5642         * lib/fpurge.c (fpurge): Likewise.
5643         * lib/freadable.c (freadable): Likewise.
5644         * lib/freadahead.c (freadahead): Likewise.
5645         * lib/freading.c (freading): Likewise.
5646         * lib/freadptr.c (freadptr): Likewise.
5647         * lib/freadseek.c (freadptrinc): Likewise.
5648         * lib/fseeko.c (rpl_fseeko): Likewise.
5649         * lib/fseterr.c (fseterr): Likewise.
5650         * lib/fwritable.c (fwritable): Likewise.
5651         * lib/fwriting.c (fwriting): Likewise.
5652         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
5653
5654 2008-04-09  Eric Blake  <ebb9@byu.net>
5655
5656         Avoid some autoconf warnings.
5657         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
5658         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
5659         * m4/afs.m4 (gl_AFS): Likewise.
5660         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
5661         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
5662         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5663         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
5664         (gl_INTEGER_TYPE_SUFFIX): Likewise.
5665         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
5666         (AC_CHECK_DECLS_ONCE): Likewise.
5667         Rename file...
5668         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
5669         gnulib-tool requires autoconf 2.59 or better.
5670         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
5671
5672 2008-04-08  Eric Blake  <ebb9@byu.net>
5673
5674         Use 'git describe --match' if present (added in git 1.5.5).
5675         * build-aux/git-version-gen: Limit result to tags that match 'v*'
5676         if possible.
5677
5678 2008-04-08  Bruno Haible  <bruno@clisp.org>
5679
5680         Add tentative support for OpenServer.
5681         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
5682         _ptr, _cnt.
5683         * lib/fpurge.c (fpurge): Likewise.
5684         * lib/freadable.c (freadable): Likewise.
5685         * lib/freadahead.c (freadahead): Likewise.
5686         * lib/freading.c (freading): Likewise.
5687         * lib/freadptr.c (freadptr): Likewise.
5688         * lib/freadseek.c (freadptrinc): Likewise.
5689         * lib/fseeko.c (rpl_fseeko): Likewise.
5690         * lib/fseterr.c (fseterr): Likewise.
5691         * lib/fwritable.c (fwritable): Likewise.
5692         * lib/fwriting.c (fwriting): Likewise.
5693         Reported by Roger Cornelius <rac@tenzing.org> and
5694         Brian K. White <brian@aljex.com>.
5695
5696 2008-04-06  Jim Meyering  <meyering@redhat.com>
5697
5698         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
5699
5700 2008-04-06  Bruno Haible  <bruno@clisp.org>
5701
5702         Avoid possible error with non-ASCII bytes in UTF-8 locales.
5703         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
5704         * tests/test-printf-posix.sh: Likewise.
5705         * tests/test-vfprintf-posix.sh: Likewise.
5706         * tests/test-vprintf-posix.sh: Likewise.
5707         * tests/test-xprintf-posix.sh: Likewise.
5708
5709 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5710
5711         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
5712         hide error from 'ls', needed on OS/2.
5713         Report by Elbert Pol <elbert.pol@gmail.com>.
5714
5715 2008-04-04  Eric Blake  <ebb9@byu.net>
5716
5717         Make test-fseeko.c failures meaningful.
5718         * tests/test-fseeko.c: Print line number on failure.
5719         * tests/test-fseek.c: Likewise.
5720         Reported by Nelson H. F. Beebe.
5721
5722         Improve strtod bug detection check.
5723         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
5724         required for Solaris 10.
5725         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
5726
5727 2008-04-04  Bruno Haible  <bruno@clisp.org>
5728
5729         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
5730         by m4/setenv.m4.
5731
5732 2008-04-03  Eric Blake  <ebb9@byu.net>
5733
5734         Ensure sane .version contents.
5735         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
5736         version string.
5737         * build-aux/git-version-gen: Improve documentation.
5738
5739         Make GNU make output nicer.
5740         * top/GNUmakefile [!_have-Makefile]: Add dependency on
5741         MAKECMDGOALS to enforce message for all command line targets.  Set
5742         srcdir for use in maint.mk.
5743
5744         Another maintainer tweak.
5745         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
5746         a target that regenerates version.
5747
5748 2008-04-03  Jim Meyering  <meyering@redhat.com>
5749
5750         vc-list-files: don't cause coreutils "make po-check" failure
5751         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
5752
5753 2008-04-03  Eric Blake  <ebb9@byu.net>
5754
5755         Allow VPATH usage of vc-list-files.
5756         * build-aux/vc-list-files (scriptversion): Add timestamp.
5757         (options): Add --help, --version, -C.
5758         (CVS): Support installed cvsu.
5759
5760 2008-04-02  Bruno Haible  <bruno@clisp.org>
5761
5762         Avoid some "statement with no effect" warnings from gcc.
5763         * tests/test-wctype.c (main): Explicitly ignore unused values.
5764         Reported by Jim Meyering.
5765
5766 2008-04-02  Jim Meyering  <meyering@redhat.com>
5767
5768         Avoid some warnings from "gcc -Wshadow".
5769         * tests/test-frexp.c (exp): Define to a different identifier.
5770         * tests/test-frexpl.c (exp): Likewise.
5771
5772 2008-04-03  Jim Meyering  <meyering@redhat.com>
5773
5774         bootstrap: remove dangling *.[ch] symlinks from lib
5775         * build-aux/bootstrap [dangling symlink removal]: Move find's
5776         -depth option to precede all others, to avoid a warning.
5777         Remove *.[ch] files too, and from "$source_base" (usually lib/).
5778
5779 2008-04-02  Bruno Haible  <bruno@clisp.org>
5780
5781         Avoid some warnings from "gcc -Wshadow".
5782         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
5783         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
5784         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
5785         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
5786         Reported by Jim Meyering.
5787
5788 2008-04-01  Bruno Haible  <bruno@clisp.org>
5789
5790         Fix test to work on IRIX 6.5 with cc.
5791         * tests/test-math.c (numeric_equal): New function.
5792         (main): Use it.
5793
5794 2008-04-01  Bruno Haible  <bruno@clisp.org>
5795
5796         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
5797
5798 2008-04-01  Bruno Haible  <bruno@clisp.org>
5799
5800         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
5801         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5802         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
5803         (Depends-on): Remove math.
5804
5805         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
5806         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5807         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
5808         (Depends-on): Remove math.
5809
5810         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
5811         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5812         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
5813         (Depends-on): Remove math.
5814         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
5815         (Depends-on): Remove math.
5816
5817         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
5818         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5819         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
5820         (Depends-on): Remove math.
5821         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
5822         (Depends-on): Remove math.
5823
5824         * tests/test-round1.c: Include nan.h.
5825         (main): Use NaNd instead of NAN.
5826         * modules/round-tests (Files): Add tests/nan.h.
5827
5828         * tests/test-trunc1.c: Include nan.h.
5829         (main): Use NaNd instead of NAN.
5830         * modules/trunc-tests (Files): Add tests/nan.h.
5831
5832         * tests/test-roundf1.c: Include nan.h.
5833         (main): Use NaNf instead of NAN.
5834         * modules/roundf-tests (Files): Add tests/nan.h.
5835
5836         * tests/test-truncf1.c: Include nan.h.
5837         (main): Use NaNf instead of NAN.
5838         * modules/truncf-tests (Files): Add tests/nan.h.
5839
5840         * tests/test-ceilf1.c: Include nan.h.
5841         (main): Use NaNf instead of NAN.
5842         * modules/ceilf-tests (Files): Add tests/nan.h.
5843
5844         * tests/test-floorf1.c: Include nan.h.
5845         (main): Use NaNf instead of NAN.
5846         * modules/floorf-tests (Files): Add tests/nan.h.
5847
5848         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
5849         (main): Use NaNf instead of NAN.
5850         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
5851
5852         * tests/test-isnand.c: Include nan.h instead of <math.h>.
5853         (main): Use NaNd instead of NAN.
5854         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
5855
5856         * tests/test-frexp.c: Include nan.h.
5857         (main): Use NaNd instead of NAN.
5858         * modules/frexp-tests (Files): Add tests/nan.h.
5859
5860         * lib/isnan.c: Don't include <math.h>.
5861         (FUNC): Don't use NAN macro.
5862         * modules/isnand-nolibm (Depends-on): Remove math.
5863         * modules/isnanf-nolibm (Depends-on): Remove math.
5864         * modules/isnanl (Depends-on): Remove math.
5865         * modules/isnanl-nolibm (Depends-on): Remove math.
5866
5867         * tests/nan.h: New file.
5868
5869 2008-04-01  Eric Blake  <ebb9@byu.net>
5870
5871         Fix typos.
5872         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
5873         values to be the right type.
5874
5875         For now, cater to gnulib strtod inaccuracies.
5876         * tests/test-strtod.c (main): Allow 1-ulp error on expected
5877         fractional results.  While not as nice from a QoI perspective, it
5878         is a quicker patch than correctly implementing decimal to binary
5879         rounding.
5880
5881 2008-03-31  Eric Blake  <ebb9@byu.net>
5882
5883         Guarantee a definition of NAN.
5884         * lib/math.in.h (NAN): Define if missing.
5885         * tests/test-math.c (main): Test it.
5886         * doc/posix-headers/math.texi (math.h): Document this.
5887         * lib/isnan.c (rpl_isnand): Use it.
5888         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
5889         * tests/test-floorf1.c (NaN): Likewise.
5890         * tests/test-frexp.c (NaN): Likewise.
5891         * tests/test-isnand.c (NaN): Likewise.
5892         * tests/test-isnanf.c (NaN): Likewise.
5893         * tests/test-round1.c (NaN): Likewise.
5894         * tests/test-roundf1.c (NaN): Likewise.
5895         * tests/test-snprintf-posix.h (NaN): Likewise.
5896         * tests/test-sprintf-posix.h (NaN): Likewise.
5897         * tests/test-trunc1.c (NaN): Likewise.
5898         * tests/test-truncf1.c (NaN): Likewise.
5899         * tests/test-vasnprintf-posix.c (NaN): Likewise.
5900         * tests/test-vasprintf-posix.c (NaN): Likewise.
5901         * modules/isnand-nolibm (Depends-on): Add math.
5902         * modules/isnanf-nolibm (Depends-on): Likewise.
5903         * modules/isnanl (Depends-on): Likewise.
5904         * modules/isnanl-nolibm (Depends-on): Likewise.
5905         * modules/snprintf-posix-tests (Depends-on): Likewise.
5906         * modules/sprintf-posix-tests (Depends-on): Likewise.
5907         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
5908         * modules/vsprintf-posix-tests (Depends-on): Likewise.
5909         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
5910         * modules/vasprintf-posix-tests (Depends-on): Likewise.
5911
5912 2008-03-31  Bruno Haible  <bruno@clisp.org>
5913
5914         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
5915         * doc/posix-functions/strtod.texi: Likewise.
5916
5917 2008-03-31  Bruno Haible  <bruno@clisp.org>
5918
5919         * tests/test-strtod.c (main): Don't use C99 syntax.
5920
5921 2008-03-31  Bruno Haible  <bruno@clisp.org>
5922
5923         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
5924         Reported by Eric Blake.
5925
5926 2008-03-31  Jim Meyering  <meyering@redhat.com>
5927
5928         Don't compare actual signbit return values.
5929         * tests/test-strtod.c (main): Rather, compare only their
5930         zero/non-zero nature.
5931
5932 2008-03-31  Eric Blake  <ebb9@byu.net>
5933
5934         More strtod documentation.
5935         * doc/posix-functions/strtod.texi (strtod): Interpret more test
5936         failures as distinct bugs.
5937
5938 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5939
5940         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
5941         Problem reported by Erik Benada in
5942         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
5943
5944 2008-03-30  Bruno Haible  <bruno@clisp.org>
5945
5946         * tests/test-strtod.c: Add comments about which assertion fails on which
5947         platform.
5948         * doc/posix-functions/strtod.texi: Add info about many more platforms.
5949
5950 2008-03-30  Eric Blake  <ebb9@byu.net>
5951
5952         Test signbit behavior on zeros.
5953         * tests/test-signbit.c (test_signbitf): Add tests for zero.
5954         (test_signbitd, test_signbitl): Likewise.
5955
5956         More strtod touchups.
5957         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
5958         sign of negative underflow, for now.  Use .5, not .1.
5959         * doc/posix-functions/strtod.texi (strtod): Mention these
5960         limitations.
5961         Reported by Jim Meyering.
5962
5963 2008-03-30  Bruno Haible  <bruno@clisp.org>
5964
5965         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
5966         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
5967
5968 2008-03-30  Bruno Haible  <bruno@clisp.org>
5969
5970         Avoid failure when attempting to return empty iconv results on some
5971         platforms.
5972         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
5973         allocation, don't report ENOMEM when the resulting string is empty.
5974
5975 2008-03-30  Bruno Haible  <bruno@clisp.org>
5976
5977         Fix buffer overrun.
5978         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
5979         Don't consider the width for tmp_length. Check count against tmp_length
5980         before doing the padding. Ensure enough allocation during padding.
5981
5982 2008-03-30  Eric Blake  <ebb9@byu.net>
5983
5984         strtod touchups.
5985         * lib/strtod.c (strtod): Avoid compiler warnings.
5986         Reported by Jim Meyering.
5987
5988 2008-03-30  Bruno Haible  <bruno@clisp.org>
5989
5990         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
5991         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
5992         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
5993         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
5994         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
5995         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
5996         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
5997         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
5998
5999         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
6000         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
6001         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
6002         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
6003         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
6004         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
6005         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
6006         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
6007
6008         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
6009         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
6010         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
6011         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
6012         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
6013         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
6014         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
6015         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
6016
6017         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
6018         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
6019
6020         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
6021         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
6022
6023         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
6024         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
6025
6026         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
6027         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
6028         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
6029
6030         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
6031         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
6032         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
6033
6034         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
6035         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
6036         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
6037
6038         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
6039         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
6040         * modules/vasprintf (Depends-on): Add EOVERFLOW.
6041
6042         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
6043         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
6044         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
6045         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
6046         (Depends-on): Add EOVERFLOW.
6047         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
6048         (Depends-on): Add EOVERFLOW.
6049         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6050         (Depends-on): Add EOVERFLOW.
6051         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6052         (Depends-on): Add EOVERFLOW.
6053         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6054         (Depends-on): Add EOVERFLOW.
6055         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6056         (Depends-on): Add EOVERFLOW.
6057         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6058         (Depends-on): Add EOVERFLOW.
6059         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6060         (Depends-on): Add EOVERFLOW.
6061
6062         * lib/sprintf.c (EOVERFLOW): Remove fallback.
6063         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
6064         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
6065
6066         * lib/snprintf.c (EOVERFLOW): Remove fallback.
6067         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
6068         * modules/snprintf (Depends-on): Add EOVERFLOW.
6069
6070         * lib/poll.c (EOVERFLOW): Remove fallback.
6071         * modules/poll (Depends-on): Add EOVERFLOW.
6072
6073         * lib/getugroups.c (EOVERFLOW): Remove fallback.
6074         * modules/getugroups (Depends-on): Add EOVERFLOW.
6075
6076         * lib/getdelim.c (EOVERFLOW): Remove fallback.
6077         * modules/getdelim (Depends-on): Add EOVERFLOW.
6078
6079         * lib/ftell.c (EOVERFLOW): Remove fallback.
6080         * modules/ftell (Depends-on): Add EOVERFLOW.
6081
6082         * lib/fprintf.c (EOVERFLOW): Remove fallback.
6083         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
6084         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
6085
6086         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
6087
6088         * modules/EOVERFLOW-tests: New file.
6089         * tests/test-EOVERFLOW.c: New file.
6090
6091         * modules/EOVERFLOW: New file.
6092         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
6093
6094 2008-03-30  Bruno Haible  <bruno@clisp.org>
6095
6096         Fix bug introduced on 2007-06-10.
6097         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
6098         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
6099
6100 2008-03-30  Bruno Haible  <bruno@clisp.org>
6101
6102         Improve freadseek's efficiency after ungetc.
6103         * lib/freadseek.c: Include freadahead.h.
6104         (freadptrinc): New function, extracted from freadseek.
6105         (freadseek): Use it in a loop. Use freadahead to determine the number
6106         of loop iterations.
6107         * modules/freadseek (Depends-on): Add freadahead.
6108         (configure.ac): Require AC_C_INLINE.
6109
6110 2008-03-30  Bruno Haible  <bruno@clisp.org>
6111
6112         * lib/freadseek.c (freadseek): Don't ignore the return value of
6113         freadptr.
6114
6115 2008-03-29  Eric Blake  <ebb9@byu.net>
6116
6117         Add hex float support.
6118         * modules/strtod (Depends-on): Add c-ctype.
6119         (Link): Mention POW_LIB.
6120         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
6121         whitespace between 'e' and exponent.
6122         * tests/test-strtod.c (main): Enable hex float tests.
6123         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
6124         now provides.
6125
6126         Document various strtod bugs, with some fixes.
6127         * doc/posix-functions/strtod.texi (strtod): Document bugs with
6128         "-0x", "inf", "nan", and hex constants.
6129         * doc/posix-functions/atof.texi (atof): Likewise.
6130         * modules/stdlib (Makefile.am): Support strtod.
6131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6132         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
6133         detect additional strtod bugs.
6134         * lib/stdlib.in.h (rpl_strtod): Add declarations.
6135         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
6136         bool where appropriate.  Parse 'inf' and 'nan'.
6137         * tests/test-strtod.c: New file.
6138         * modules/strtod (Depends-on): Add stdbool, stdlib.
6139         (configure.ac): Turn on module indicator.
6140         * modules/strtod-tests: New module.
6141
6142 2008-03-29  Eric Blake  <ebb9@byu.net>
6143
6144         Fix ftell on mingw.
6145         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
6146         * modules/ftell-tests (Depends-on): Add binary-io.
6147         * modules/ftello-tests (Depends-on): Likewise.
6148         * tests/test-ftell.c (main): Enhance test to cover behavior after
6149         ungetc.  Enforce binary mode.
6150         * tests/test-ftello.c (main): Likewise.
6151
6152         Pass test-freadseek on cygwin.
6153         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
6154         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
6155         ungetc buffer.
6156
6157         * tests/test-fflush2.c (main): Fix typo.
6158
6159 2008-03-29  Bruno Haible  <bruno@clisp.org>
6160
6161         * tests/test-fflush2.c (main): Temporarily disable the contents of
6162         this test.
6163         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
6164         Reported by Eric Blake.
6165
6166 2008-03-28  Simon Josefsson  <simon@josefsson.org>
6167
6168         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
6169         (GC_SHA224_DIGEST_SIZE): Add.
6170
6171         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
6172         (gc_hash_digest_length): Likewise.
6173         (gc_hash_buffer): Likewise.
6174
6175 2008-03-25  Bruno Haible  <bruno@clisp.org>
6176
6177         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
6178         detail which gettext release to use.
6179         Reported by Simon Josefsson.
6180
6181 2008-03-26  Jim Meyering  <meyering@redhat.com>
6182
6183         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
6184         * modules/gnumakefile (clean-GNUmakefile): Also, use
6185         test ... && ... || : syntax rather than if-then ... fi.
6186
6187         gnumakefile: Don't double-quote-expand $(VPATH) value.
6188         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
6189
6190 2008-03-24  Eric Blake  <ebb9@byu.net>
6191
6192         Alter GNUmakefile to install into top directory.
6193         * modules/maintainer-makefile: Split, and add dependency...
6194         * modules/gnumakefile: to this new module.
6195         * build-aux/GNUmakefile: Move...
6196         * top/GNUmakefile: ...here.
6197         * build-aux/maint.mk: Move...
6198         * top/maint.mk: ...here.
6199         * MODULES.html.sh (Support for maintaining...): Document new
6200         module.
6201
6202 2008-03-23  Bruno Haible  <bruno@clisp.org>
6203
6204         * gnulib-tool: New options --vc-files, --no-vc-files.
6205         (func_usage): Document them.
6206         (vc_files): New variable.
6207         (func_import): Consider vc_files.
6208         (func_create_testdir): Set vc_files to empty.
6209         Suggested by Jim Meyering and Karl Berry.
6210
6211 2008-03-23  Bruno Haible  <bruno@clisp.org>
6212
6213         Fix regex compilation error on HP-UX 11.
6214         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
6215         * modules/regex (Files): Add m4/mbstate_t.m4.
6216         Reported by Ton Voon <ton.voon@altinity.com>.
6217
6218 2008-03-23  Bruno Haible  <bruno@clisp.org>
6219
6220         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
6221
6222 2008-03-23  Eric Blake  <ebb9@byu.net>
6223             Bruno Haible  <bruno@clisp.org>
6224
6225         Install files from top/ in the destination directory.
6226         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
6227         augmentation also for the files from top/.
6228         (func_import, func_create_testdir): Rewrite file names:
6229         top/filename -> filename.
6230
6231 2008-03-23  Bruno Haible  <bruno@clisp.org>
6232
6233         Tweak "gnulib --version" output.
6234         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
6235
6236 2008-03-23  Bruno Haible  <bruno@clisp.org>
6237
6238         Tweak "gnulib --version" output.
6239         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
6240         rather than contents of ChangeLog, when possible.
6241
6242 2008-03-21  Eric Blake  <ebb9@byu.net>
6243
6244         More --version tweaks.
6245         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
6246         date of last ChangeLog entry.
6247
6248 2008-03-21  Jim Meyering  <meyering@redhat.com>
6249
6250         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
6251
6252 2008-03-20  Eric Blake  <ebb9@byu.net>
6253
6254         VPATH fix.
6255         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
6256
6257 2008-03-20  Simon Josefsson  <simon@josefsson.org>
6258
6259         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
6260         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
6261
6262 2008-03-20  Eric Blake  <ebb9@byu.net>
6263
6264         Sync GNUmakefile with coreutils.
6265         * build-aux/GNUmakefile (have-Makefile): Rename...
6266         (_have-Makefile): ...to this, for namespace consideration.
6267         (GNUmakefile.cfg): Include, if present.
6268         (_autoreconf): Define a default.
6269         (_is-dist-target): New rule for rebuilds to pick up intra-release
6270         version.
6271         (maint-cfg.mk): Rename...
6272         (cfg.mk): ...to this.
6273
6274 2008-03-18  Jim Meyering  <meyering@redhat.com>
6275
6276         New script and module: mktempd
6277         * MODULES.html.sh (maint+release support): Add mktempd.
6278         * build-aux/mktempd: New file.
6279         * modules/mktempd: New file.
6280
6281 2008-03-15  Jim Meyering  <meyering@redhat.com>
6282
6283         Undo last change.
6284         * lib/sha1.c, lib/md5.c: 63 != ~63.
6285         Reported by Andreas Schwab.
6286
6287         sha1.c, md5.c: Hoist a redundant expression.
6288         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
6289         "ctx->buflen" only once, before calling *_process_block.
6290         * lib/md5.c (md5_process_bytes): Likewise.
6291
6292 2008-03-14  Eric Blake  <ebb9@byu.net>
6293
6294         Bump copyright year in files generated by gnulib-tool.
6295         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
6296         gnulib-tool, rather than hard-coding it.
6297
6298         Fix 'gnulib-tool --version' output to work with git.
6299         * gnulib-tool (func_gnulib_dir): New function, extracted from...
6300         (startup): ...here.
6301         (func_version): Use it to invoke git-version-gen, rather than
6302         relying on CVS keyword expansion.  Modernize wording.
6303         (cvsdatestamp, last_checkin_date, version): Kill unused
6304         variables.
6305
6306 2008-03-12  Jim Meyering  <meyering@redhat.com>
6307
6308         Recognize optional cast of the argument to free.
6309         * build-aux/useless-if-before-free: Update regexps.
6310
6311         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
6312
6313 2008-03-11  Bruno Haible  <bruno@clisp.org>
6314
6315         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
6316         by a single package.
6317         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
6318         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
6319         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
6320         Reported by Sam Steingold <sds@gnu.org>.
6321
6322 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
6323
6324         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
6325         repositories.
6326
6327 2008-03-11  Bruno Haible  <bruno@clisp.org>
6328
6329         Avoid conflicts between local macro definitions.
6330         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6331         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
6332
6333 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
6334             Bruno Haible  <bruno@clisp.org>
6335
6336         Make va_copy work with some version of xlc on AIX 5.1.
6337         * lib/stdarg.in.h: New file.
6338         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
6339         On AIX, use a <stdarg.h> file substitute.
6340         * modules/stdarg (Files): Add lib/stdarg.in.h.
6341         (Depends-on): Add include_next.
6342         (Makefile.am): Build a stdarg.h substitute if requested.
6343         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
6344
6345 2008-03-10  Bruno Haible  <bruno@clisp.org>
6346
6347         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
6348         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6349         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6350
6351 2008-03-10  Bruno Haible  <bruno@clisp.org>
6352
6353         * modules/stdlib (Depends-on): Add include_next, remove
6354         absolute-header.
6355
6356 2008-03-09  Bruno Haible  <bruno@clisp.org>
6357
6358         * lib/freadahead.h (freadahead): Document more precisely.
6359         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
6360         the sum of both buffer sizes.
6361         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
6362         * NEWS: Document the change.
6363
6364 2008-03-09  Bruno Haible  <bruno@clisp.org>
6365
6366         Extend freadptr to return also the buffer size.
6367         * lib/freadptr.h (freadptr): Add sizep argument.
6368         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
6369         (freadptr): Add sizep argument. Determine buffer size like freadahead
6370         does.
6371         * tests/test-freadptr.c: Don't include freadahead.h.
6372         (main): Adapt for new calling convention of freadptr.
6373         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
6374         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
6375         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
6376         tests/test-freadptr2.sh.
6377         (Depends): Remove freadahead.
6378         (TESTS): Add test-freadptr2.sh.
6379         (check_PROGRAMS): Add test-freadptr2.
6380
6381 2008-03-09  Bruno Haible  <bruno@clisp.org>
6382
6383         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
6384         Report and solution by Simon Josefsson.
6385
6386 2008-03-06  Bruno Haible  <bruno@clisp.org>
6387
6388         Make fflush after ungetc work on BSD platforms.
6389         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
6390         * tests/test-fflush2.c: New file.
6391         * tests/test-fflush2.sh: New file.
6392         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
6393         tests/test-fflush2.c.
6394         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
6395         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
6396
6397 2008-03-06  Eric Blake  <ebb9@byu.net>
6398
6399         Likewise for ftello.
6400         * modules/ftello (Dependencies): Add extensions.
6401         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
6402
6403 2008-03-06  Bruno Haible  <bruno@clisp.org>
6404
6405         * modules/fseeko (Dependencies): Add extensions.
6406         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
6407         Needed on glibc systems.
6408
6409 2008-03-06  Bruno Haible  <bruno@clisp.org>
6410
6411         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
6412         email address.
6413         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6414
6415 2008-03-06  Bruno Haible  <bruno@clisp.org>
6416
6417         * users.txt: Add libgnupdf.
6418
6419 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6420
6421         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
6422         (Header File Substitutes, Function Substitutes,
6423         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
6424         (Build robot for gnulib): Fix typo.
6425
6426 2008-03-06  Bruno Haible  <bruno@clisp.org>
6427
6428         * doc/gnulib-tool.texi (VCS Issues): Small updates.
6429         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6430
6431 2008-03-06  Bruno Haible  <bruno@clisp.org>
6432
6433         * doc/func.texi: New file, extracted from doc/gnulib.texi.
6434         * doc/gnulib.texi: Include it.
6435
6436 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6437
6438         * modules/func (License): Change license to unlimited; there was
6439         no LGPL parts in the module anyway.
6440
6441 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6442
6443         * modules/__func__: Renamed to modules/func.
6444         * modules/__func__-tests: Renamed to modules/func-tests.
6445         * tests/test-__func__.c: Renamed to tests/test-func.c.
6446         * m4/__func__.m4: Renamed to m4/func.m4.
6447         * doc/gnulib.texi (__func__): Section renamed to func.
6448         Suggested by Eric Blake <ebb9@byu.net>.
6449
6450 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6451
6452         * doc/gnulib.texi (__func__): Use C99 terminology when talking
6453         about __func__.  Make example self-contained.  Suggested by Eric
6454         Blake <ebb9@byu.net>.
6455
6456         * tests/test-__func__.c (main): Avoid extraneous () around __func.
6457         Suggested by Eric Blake <ebb9@byu.net>.
6458
6459 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6460
6461         * modules/__func__: New file.
6462         * modules/__func__-tests: New file.
6463         * tests/test-__func__.c: New file.
6464         * m4/__func__.m4: New file.
6465         * doc/gnulib.texi (__func__): Document __func__ module.
6466
6467 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6468
6469         * modules/byteswap (License): Re-license as LGPLv2+.
6470
6471 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6472
6473         * doc/Makefile: Add pdf target.
6474
6475 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6476
6477         * modules/inline (License): Use 'unlimited', since there are only
6478         *.m4 files in this module.
6479
6480 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6481             Bruno Haible  <bruno@clisp.org>
6482
6483         Add support for HP C 7.1 on OpenVMS 8.3.
6484         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
6485
6486 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6487
6488         Update VMS specifics.
6489         * lib/getopt.c [VMS]: Remove include of unixlib.h.
6490
6491 2008-03-02  Jim Meyering  <meyering@redhat.com>
6492
6493         Remove the last dependency on the "free" module.
6494         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
6495         Reported by Bob Proulx.
6496
6497         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
6498
6499         Remove useless "if" tests before free.  Deprecate "free" module.
6500         * doc/posix-functions/free.texi: Mention that this
6501         module is no longer useful.
6502         * modules/free (Notice): Say this module is obsolete.
6503         * modules/readutmp (Depends-on): Remove free.
6504         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
6505         * lib/putenv.c (putenv): Likewise.
6506         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
6507         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
6508         * tests/test-c-strcasestr.c (main): Likewise.
6509         * tests/test-c-strstr.c (main): Likewise.
6510         * tests/test-mbscasestr1.c (main): Likewise.
6511         * tests/test-mbscasestr2.c (main): Likewise.
6512         * tests/test-mbsstr1.c (main): Likewise.
6513         * tests/test-mbsstr2.c (main): Likewise.
6514         * tests/test-memmem.c (main): Likewise.
6515         * tests/test-strcasestr.c (main): Likewise.
6516         * tests/test-striconv.c (main): Likewise.
6517         * tests/test-striconveh.c (main): Likewise.
6518         * tests/test-striconveha.c (main): Likewise.
6519         * tests/test-strstr.c (main): Likewise.
6520
6521         * build-aux/git-version-gen: Adjust a comment and the Usage string.
6522
6523         bootstrap: sync from coreutils again
6524         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
6525
6526 2008-03-01  Jim Meyering  <meyering@redhat.com>
6527
6528         bootstrap: sync from coreutils
6529         * build-aux/bootstrap (update_po_files): Copy a .po file into place
6530         also when the target doesn't exist.
6531
6532 2008-03-01  Eric Blake  <ebb9@byu.net>
6533
6534         Fix bugs in last patch.
6535         * lib/memchr2.c (memchr2): Fix typo.
6536         * tests/test-memchr2.c: Test previous bug, and don't use GNU
6537         extension.
6538         Reported by Bruce Korb.
6539
6540         New module 'memchr2'.
6541         * modules/memchr2: New file.
6542         * modules/memchr2-tests: Likewise.
6543         * lib/memchr2.h: Likewise.
6544         * lib/memchr2.c: Likewise, based on memchr.c.
6545         * tests/test-memchr2.c: New test.
6546         * MODULES.html.sh (String handling): Add memchr2.
6547
6548 2008-02-29  Bruno Haible  <bruno@clisp.org>
6549
6550         * modules/freadseek-tests: New file.
6551         * tests/test-freadseek.sh: New file.
6552         * tests/test-freadseek.c: New file.
6553
6554         New module 'freadseek'.
6555         * modules/freadseek: New file.
6556         * lib/freadseek.h: New file.
6557         * lib/freadseek.c: New file.
6558         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
6559
6560 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
6561
6562         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
6563         wydawca.
6564
6565         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
6566         program_invocation_name and program_invocation_short_name are
6567         present.
6568
6569 2008-02-28  Bruno Haible  <bruno@clisp.org>
6570
6571         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
6572         * tests/test-freadptr.sh: Also test non-seekable stdin.
6573
6574 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
6575
6576         * build-aux/bootstrap (source_base, m4_base)
6577         (doc_base, tests_base): New variables.
6578         (gnulib_tool_options): Do not hardcode base directories, use
6579         the above variables instead.
6580
6581 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
6582
6583         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
6584
6585 2008-02-28  Bruno Haible  <bruno@clisp.org>
6586
6587         * modules/freadptr-tests: New file.
6588         * tests/test-freadptr.sh: New file.
6589         * tests/test-freadptr.c: New file.
6590
6591         New module 'freadptr'.
6592         * modules/freadptr: New file.
6593         * lib/freadptr.h: New file.
6594         * lib/freadptr.c: New file.
6595         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
6596
6597 2008-02-26  Karl Berry  <karl@freefriends.org>
6598
6599         Sync from Libtool:
6600         * libltdl/argz.c (argz_add, argz_count): New functions.
6601         * libltdl/argz.in.h: Declare them.
6602         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
6603
6604 2008-02-22  Bruno Haible  <bruno@clisp.org>
6605
6606         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
6607         is a pointer type.  Needed for HP-UX 10.
6608         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
6609         * doc/posix-functions/gmtime_r.texi: Likewise.
6610         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6611
6612 2008-02-24  Bruno Haible  <bruno@clisp.org>
6613
6614         * modules/environ-tests: New file.
6615         * tests/test-environ.c: New file.
6616
6617         New module 'environ'.
6618         * modules/environ: New file.
6619         * lib/unistd.in.h (environ): New declaration.
6620         * m4/environ.m4: New file.
6621         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
6622         after use.
6623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
6624         HAVE_DECL_ENVIRON.
6625         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
6626         HAVE_DECL_ENVIRON.
6627         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
6628         wrong claim that 'environ' is missing on some systems.
6629         * modules/execute (Depends-on): Add environ.
6630         * lib/execute.c (environ): Remove fallback declaration.
6631         * modules/pipe (Depends-on): Add environ.
6632         * lib/pipe.c (environ): Remove fallback declaration.
6633         * modules/setenv (Depends-on): Add environ.
6634         * lib/setenv.c (environ): Remove fallback declaration.
6635         * modules/unsetenv (Depends-on): Add environ.
6636         * lib/unsetenv.c (environ): Remove fallback declaration.
6637         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
6638         m4/environ.m4.
6639         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
6640         (gl_PREREQ_UNSETENV): Likewise.
6641
6642 2008-02-24  Bruno Haible  <bruno@clisp.org>
6643
6644         * doc/posix-functions/environ.texi: Document the MacOS X problem.
6645
6646 2008-02-20  Bob Proulx  <bob@proulx.com>
6647
6648         Enable use of older two part flavor 'git describe'.
6649         * build-aux/git-version-gen: If using the older two part flavor of
6650         git version then recreate the third part now present in the
6651         newer three part flavor of git describe.
6652
6653 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
6654
6655         * lib/fts.c (fts_build): Typo correction to comment.
6656
6657 2008-02-17  Bruno Haible  <bruno@clisp.org>
6658
6659         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
6660         generating no-op conflicts.
6661
6662 2008-02-17  Bruno Haible  <bruno@clisp.org>
6663
6664         Speed up by 10%.
6665         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
6666         result_entries, rather than an index-based loop.
6667
6668 2008-02-17  Bruno Haible  <bruno@clisp.org>
6669
6670         Speed up by 25%.
6671         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
6672         'hashcode_cached'.
6673         (entry_create): New function.
6674         (entry_hashcode): Use the cached hashcode if possible.
6675         (read_changelog_file, try_split_merged_entry): Use entry_create.
6676
6677 2008-02-17  Bruno Haible  <bruno@clisp.org>
6678
6679         Speed up from O(n^2) to O(n) for long ChangeLog files.
6680         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
6681         (read_changelog_file): Change implementation of entries_reversed list
6682         to rbtreehash.
6683         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
6684
6685 2008-02-17  Bruno Haible  <bruno@clisp.org>
6686
6687         New option --split-merged-entry.
6688         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
6689         (find_paragraph_end, try_split_merged_entry): New functions.
6690         (long_options): Add option --split-merged-entry.
6691         (usage): Document option --split-merged-entry.
6692         (main): Implement option --split-merged-entry.
6693         Reported by Eric Blake.
6694
6695 2008-02-17  Bruno Haible  <bruno@clisp.org>
6696
6697         * lib/git-merge-changelog.c: Include c-strstr.h.
6698         (main): Support the "git pull --rebase" situation.
6699         * modules/git-merge-changelog (Depends-on): Add c-strstr.
6700         Reported by Eric Blake.
6701
6702 2008-02-16  Eric Blake  <ebb9@byu.net>
6703
6704         Avoid doubling \ in common case of "c-maybe" quoting style.
6705         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
6706         eliding outer quotes.
6707         * lib/quotearg.h: Document this.
6708         * tests/test-quotearg.c (result_strings, inputs, results_g)
6709         (flag_results, locale_results): Test it by adding a new string to
6710         each test group.
6711         (compare_strings): Test new string.
6712
6713 2008-02-13  Eric Blake  <ebb9@byu.net>
6714
6715         Avoid trigraph quoting in default output.
6716         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
6717         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
6718         unless explicitly requested.
6719         * tests/test-quotearg.c (flag_results, main): Add additional tests.
6720
6721 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
6722
6723         Don't rely on signed integer overflowing to negative value.
6724         * lib/getugroups.c (getugroups): Include <limits.h>.
6725         Instead, compare against INT_MAX, and increment only if the test passes.
6726
6727 2008-02-13  Jim Meyering  <meyering@redhat.com>
6728         and Eric Blake  <ebb9@byu.net>
6729
6730         Avoid shadowing warning and compile errors on Linux.
6731         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
6732         forwarding macros on Linux.
6733         (dcgettext): Define a stub, for Linux.
6734         (results_g, main): Avoid warnings.
6735
6736 2008-02-12  Eric Blake  <ebb9@byu.net>
6737
6738         Silence warning in last patch.
6739         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
6740
6741         Quotearg part 4: add tests, fix c-maybe colon quoting.
6742         * lib/quotearg.h: Improve documentation.
6743         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
6744         escapes when adding outer quotes.  When quoting trigraphs, use
6745         valid C notation.  When quoting NUL, omit extra characters if next
6746         character is not digit.  Alter prototype.
6747         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
6748         callers.
6749         * modules/quotearg-tests: New module.
6750         * tests/test-quotearg.c: New test.
6751
6752 2008-02-07  Eric Blake  <ebb9@byu.net>
6753
6754         Quotearg part 3: add flag to control outer quote elision.
6755         * lib/quotearg.h (c_maybe_quoting_style): New style.
6756         (enum quoting_flags): Better documentation of flags.
6757         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
6758         c-maybe style.
6759         (quotearg_buffer_restyled): Handle new flag to elide outer
6760         quotes.
6761
6762         Quotearg part 2: add flag that can control NUL elision.
6763         * lib/quotearg.h (set_quoting_flags): New prototype.
6764         * lib/quotearg.c (struct quoting_options): Add flag field.
6765         (set_quoting_flags): New function.
6766         (quotearg_buffer_restyled): Add flags parameter.
6767         (quotearg_alloc_mem): Set the flag if length cannot be returned.
6768         (quotearg_n_options): Set the flag, since length cannot be
6769         returned.
6770         (quoting_options_from_style): Default flags correctly.
6771
6772         Quotearg part 1: more wrappers, restore quotearg_char state.
6773         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
6774         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
6775         (quotearg_colon_mem): New wrappers.
6776         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
6777         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
6778         functions.
6779         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
6780         (quotearg_colon_mem): New functions.
6781
6782 2008-02-11  Bruno Haible  <bruno@clisp.org>
6783
6784         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
6785         library in the current directory: it does not work with parallel make.
6786         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6787
6788 2008-02-11  Bruno Haible  <bruno@clisp.org>
6789
6790         * .gitattributes: New file.
6791
6792 2008-02-11  Jim Meyering  <meyering@redhat.com>
6793
6794         useless-if-before-free: Fix reversed exit values.
6795         * build-aux/useless-if-before-free: Use correct values
6796         for EXIT_MATCH and EXIT_NO_MATCH.
6797
6798         * build-aux/useless-if-before-free: Close stdout carefully.
6799
6800 2008-02-10  Bruno Haible  <bruno@clisp.org>
6801
6802         New module 'git-merge-changelog'.
6803         * modules/git-merge-changelog: New file.
6804         * lib/git-merge-changelog.c: New file.
6805
6806 2008-02-10  Jim Meyering  <meyering@redhat.com>
6807
6808         useless-if-before-free: New option: --list (-l).
6809
6810         useless-if-before-free: Don't exit immediately upon open failure.
6811         * build-aux/useless-if-before-free: Exit 2 for errors.
6812         Upon failure to open a file, don't exit immediately.
6813         Rather, just warn and continue with any remaining files.
6814
6815 2008-02-10  Bruno Haible  <bruno@clisp.org>
6816
6817         New abstract list operation 'node_set_value'.
6818         * lib/gl_list.h (gl_list_node_set_value): New function.
6819         (struct gl_list_implementation): New field node_set_value.
6820         * lib/gl_list.c (gl_list_node_set_value): New function.
6821         * lib/gl_array_list.c (gl_array_node_set_value): New function.
6822         (gl_array_list_implementation): Update.
6823         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
6824         (gl_carray_list_implementation): Update.
6825         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
6826         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6827         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6828         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
6829         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6830         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6831         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6832         Update.
6833         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
6834         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
6835         (gl_sublist_list_implementation): Update.
6836
6837 2008-02-10  Bruno Haible  <bruno@clisp.org>
6838
6839         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
6840         Needed when ELEMENT is #defined to 'some_type *'.
6841
6842 2008-02-10  Jim Meyering  <meyering@redhat.com>
6843
6844         New script and module: useless-if-before-free
6845         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
6846         * build-aux/useless-if-before-free: New file.
6847         * modules/useless-if-before-free: New file.
6848
6849         * build-aux/gitlog-to-changelog: Use committer date, not author date.
6850
6851         xstrtol_error: Fix typo.
6852         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
6853         s/exit_failure/exit_status/.
6854
6855 2008-02-09  Jim Meyering  <meyering@redhat.com>
6856
6857         New script and module: gitlog-to-changelog
6858         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
6859         * modules/gitlog-to-changelog: New file.
6860         * build-aux/gitlog-to-changelog: New file.
6861
6862 2008-02-08  Jim Meyering  <meyering@redhat.com>
6863
6864         Avoid two "parameter unused" warnings.
6865         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
6866         Mark "st" as used.
6867
6868         Use "git COMMAND", not "git-COMMAND".
6869         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
6870         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
6871         * build-aux/git-version-gen: Use "git status", not "git-status".
6872
6873 2008-02-07  Bruno Haible  <bruno@clisp.org>
6874
6875         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
6876         Avoids a crash on Windows Vista.
6877         Reported by Adam Strzelecki <ono@java.pl> via
6878         Simon Josefsson <simon@josefsson.org>.
6879
6880 2008-02-06  Bruno Haible  <bruno@clisp.org>
6881
6882         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
6883         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
6884         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
6885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
6886         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6887         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6888         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
6889         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
6890         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6891         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6892         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6893         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6894         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6895         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6896         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6897         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
6898         left-adjust flag.
6899         * tests/test-snprintf-posix.h (test_function): Likewise.
6900         * tests/test-sprintf-posix.h (test_function): Likewise.
6901         * tests/test-vasprintf-posix.c (test_function): Likewise.
6902         * doc/posix-functions/fprintf.texi: Update.
6903         * doc/posix-functions/printf.texi: Update.
6904         * doc/posix-functions/snprintf.texi: Update.
6905         * doc/posix-functions/sprintf.texi: Update.
6906         * doc/posix-functions/vfprintf.texi: Update.
6907         * doc/posix-functions/vprintf.texi: Update.
6908         * doc/posix-functions/vsnprintf.texi: Update.
6909         * doc/posix-functions/vsprintf.texi: Update.
6910         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6911
6912 2008-02-06  Bruno Haible  <bruno@clisp.org>
6913
6914         Fix bug introduced on 2008-01-26.
6915         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
6916
6917 2008-02-06  Bruno Haible  <bruno@clisp.org>
6918
6919         Fix bug introduced on 2007-06-10.
6920         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
6921         !NEED_PRINTF_FLAG_ZERO.
6922
6923 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
6924
6925         getloadavg: use libperfstat on AIX5
6926         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
6927
6928 2008-02-03  Bruno Haible  <bruno@clisp.org>
6929
6930         * lib/diffseq.h: Add comments about required #includes.
6931         Reported by Michael Biggs <gnulib@doubleplum.net>.
6932
6933 2008-02-01  Bruno Haible  <bruno@clisp.org>
6934
6935         * users.txt: Add gnuit.
6936
6937 2008-01-31  Bruno Haible  <bruno@clisp.org>
6938
6939         * lib/md4.c (set_uint32): Mark as inline.
6940         * lib/md5.c (set_uint32): Likewise.
6941         * lib/sha1.c (set_uint32): Likewise.
6942         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
6943         * m4/md5.m4 (gl_MD5): Likewise.
6944         * m4/sha1.m4 (gl_SHA1): Likewise.
6945
6946 2008-01-31  Jim Meyering  <meyering@redhat.com>
6947
6948         Use "sizeof VAR", rather than a literal "4".
6949         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
6950         * lib/md4.c (md4_read_ctx): Likewise.
6951         * lib/sha1.c (sha1_read_ctx): Likewise.
6952
6953 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6954
6955         * tests/test-sha1.c: New file, based on test-md5.c.
6956
6957         * modules/crypto/sha1-tests: New file.
6958
6959 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6960
6961         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
6962
6963 2008-01-31  Jim Meyering  <meyering@redhat.com>
6964
6965         Prefer "sizeof v" over the equivalent "4".
6966         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
6967         * lib/md5.c (set_uint32): Likewise.
6968         * lib/sha1.c (set_uint32): Likewise.
6969
6970 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6971
6972         * lib/sha1.c (set_uint32): Mark function as static.
6973
6974 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6975
6976         md2: clarify comments to say that alignment is not required.
6977         * lib/md2.h: Remove warning about alignment in comment.
6978         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
6979         never been required.
6980
6981 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6982
6983         md4: adapt alignment constraint fix from sha1.
6984         * lib/md4.c (set_uint32): New function, from sha1.c
6985         (md4_read_ctx): Use it.
6986         (md4_finish_ctx): Doc fix.
6987         * lib/md4.h: Doc fix.
6988
6989 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6990
6991         md5: adapt alignment constraint fix from sha1.
6992         * lib/md5.c (set_uint32): New function, from sha1.c
6993         (md5_read_ctx): Use it.
6994         (md5_finish_ctx): Doc fix.
6995         * lib/md5.h: Doc fix.
6996
6997 2008-01-30  Peter Palfrader  <weasel@debian.org>
6998
6999         sha1: remove the result buffer alignment constraint
7000         * lib/sha1.c (set_uint32): New function.
7001         (sha1_read_ctx): Rewrite to remove the result buffer alignment
7002         constraint.
7003         (sha1_finish_ctx): Remove comment warning about alignment constraint.
7004         * lib/sha1.h: Likewise.
7005
7006 2008-01-30  Andreas Schwab  <schwab@suse.de>
7007             Bruno Haible  <bruno@clisp.org>
7008
7009         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
7010         correct definition of LDBL_MIN_EXP.
7011
7012 2008-01-30  Karl Berry  <karl@gnu.org>
7013
7014         * config/srclist-update: try to preserve x bit on updates.
7015         * config/srclistvars.sh: update for karl.
7016
7017 2008-01-29  Jim Meyering  <meyering@redhat.com>
7018
7019         vasnprintf.c: Avoid warning about unused label
7020         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
7021         "overflow" label definition and associated code with the
7022         same cpp condition that guards the sole use of that label.
7023
7024 2008-01-26  Bruno Haible  <bruno@clisp.org>
7025
7026         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7027         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
7028         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
7029         * lib/isnanl-nolibm.h (isnanl): Likewise.
7030         Reported by Paul Eggert <eggert@cs.ucla.edu>.
7031
7032 2008-01-26  Bruno Haible  <bruno@clisp.org>
7033
7034         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
7035         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
7036
7037 2008-01-26  Bruno Haible  <bruno@clisp.org>
7038
7039         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
7040         GCC >= 4.0 built-in.
7041         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
7042
7043 2008-01-26  Bruno Haible  <bruno@clisp.org>
7044
7045         Rename isnan, applicable to 'double' only, to isnand.
7046         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
7047         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
7048         (configure.ac): Update.
7049         (Include): Replace "isnan.h" with "isnand.h".
7050         * m4/isnand.m4: Renamed from m4/isnan.m4.
7051         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
7052         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
7053         instead of isnan.c.
7054         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
7055         instead of HAVE_ISNAN_IN_LIBC.
7056         (isnand): Renamed from isnan.
7057         * lib/isnand.c: New file.
7058         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
7059         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
7060         (Makefile.am): Update.
7061         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
7062         Include isnand.h instead of isnan.h.
7063         (main): Test isnand instead of isnan.
7064         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
7065         isnan-nolibm.
7066         * modules/frexp (Depends-on): Likewise.
7067         * modules/frexp-tests (Depends-on): Likewise.
7068         * modules/frexp-nolibm (Depends-on): Likewise.
7069         * modules/frexp-nolibm-tests (Depends-on): Likewise.
7070         * modules/isfinite (Depends-on): Likewise.
7071         * modules/round-tests (Depends-on): Likewise.
7072         * modules/signbit (Depends-on): Likewise.
7073         * modules/signbit-tests (Depends-on): Likewise.
7074         * modules/snprintf-posix (Depends-on): Likewise.
7075         * modules/sprintf-posix (Depends-on): Likewise.
7076         * modules/trunc-tests (Depends-on): Likewise.
7077         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7078         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7079         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7080         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7081         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7082         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7083         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7084         * modules/vasnprintf-posix (Depends-on): Likewise.
7085         * modules/vasprintf-posix (Depends-on): Likewise.
7086         * modules/vfprintf-posix (Depends-on): Likewise.
7087         * modules/vsnprintf-posix (Depends-on): Likewise.
7088         * modules/vsprintf-posix (Depends-on): Likewise.
7089         * lib/frexp.c: Include isnand.h instead of isnan.h.
7090         (ISNAN): Set to isnand instead of isnan.
7091         * lib/isfinite.c: Include isnand.h instead of isnan.h.
7092         (gl_isfinited): Use isnand instead of isnan.
7093         * lib/signbitd.c: Include isnand.h instead of isnan.h.
7094         (gl_signbitd): Use isnand instead of isnan.
7095         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
7096         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
7097         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
7098         (main): Use isnand instead of isnan.
7099         * tests/test-round1.c: Include isnand.h.
7100         (main): Use isnand instead of isnan.
7101         * tests/test-round2.c: Include isnand.h instead of isnan.h.
7102         (ISNAN): Set to isnand instead of isnan.
7103         * tests/test-trunc1.c: Include isnand.h.
7104         (main): Use isnand instead of isnan.
7105         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
7106         (equal): Use isnand instead of isnan.
7107         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
7108         isnand-nolibm.
7109         * NEWS: Mention the change.
7110
7111 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7112             Bruno Haible  <bruno@clisp.org>
7113
7114         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
7115         the GCC builtins for signbits are present and set
7116         REPLACE_SIGNBIT_USING_GCC if so.
7117         * lib/math.in.h (signbit): Define using GCC builtins if
7118         REPLACE_SIGNBIT_USING_GCC is set.
7119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
7120         REPLACE_SIGNBIT_USING_GCC.
7121         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
7122
7123 2008-01-25  Jim Meyering  <meyering@redhat.com>
7124
7125         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
7126         * lib/poll.c: Include <config.h>, not "config.h".
7127         * tests/test-getaddrinfo.c: Likewise.
7128
7129 2008-01-25  Simon Josefsson  <simon@josefsson.org>
7130
7131         * modules/sockets-tests: New file.
7132
7133 2008-01-24  Simon Josefsson  <simon@josefsson.org>
7134
7135         * modules/sockets: New module, can be used to call WSA_Startup and
7136         WSA_Cleanup when needed.
7137
7138         * lib/sockets.h, lib/sockets.c: New files.
7139
7140         * m4/sockets.m4: New file.
7141
7142         * tests/test-sockets.c: New file.
7143
7144 2008-01-19  Bruno Haible  <bruno@clisp.org>
7145
7146         * doc/posix-headers: Renamed from doc/headers.
7147         * doc/posix-functions: Renamed from doc/functions.
7148         * doc/gnulib.texi: Update.
7149
7150 2008-01-19  Bruno Haible  <bruno@clisp.org>
7151
7152         * doc/glibc-functions/strcasestr.texi: Include contents of
7153         doc/functions/strcasestr.texi, fixing the list of platforms.
7154         * doc/functions/strcasestr.texi: Remove file.
7155
7156 2008-01-19  Bruno Haible  <bruno@clisp.org>
7157
7158         * doc/glibc-functions/memmem.texi: Include contents of
7159         doc/functions/memmem.texi.
7160         * doc/functions/memmem.texi: Remove file.
7161
7162 2008-01-18  Bruno Haible  <bruno@clisp.org>
7163
7164         * doc/glibc-functions/*.texi: New files.
7165         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
7166         to use the new files.
7167
7168 2008-01-17  Bruno Haible  <bruno@clisp.org>
7169
7170         * tests/test-gethostname.c (main): Fix printf statement.
7171
7172 2008-01-17  Simon Josefsson  <simon@josefsson.org>
7173
7174         * modules/gethostname-tests: New file.
7175
7176         * tests/test-gethostname.c: New file.
7177
7178 2008-01-17  Simon Josefsson  <simon@josefsson.org>
7179
7180         * lib/gethostname.c: Include string.h unconditionally, strncpy is
7181         used by the UNAME case.  Reported by Bruno Haible
7182         <bruno@clisp.org>.
7183
7184 2008-01-17  Eric Blake  <ebb9@byu.net>
7185
7186         Convert c-strcasestr to be more efficient.
7187         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
7188         (Depends-on): Add c-strcase, remove malloca, strnlen.
7189         * tests/test-c-strcasestr.c (main): Enhance test.
7190         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
7191
7192 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
7193
7194         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
7195         Use it in creating po/Makevars.
7196
7197 2008-01-15  Simon Josefsson  <simon@josefsson.org>
7198
7199         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
7200         Applications that requires it should initialize libgcrypt
7201         manually.
7202
7203 2008-01-16  Simon Josefsson  <simon@josefsson.org>
7204
7205         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
7206
7207 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7208
7209         Fix problem with getdate on mingw32 reported by Simon Josefsson
7210         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
7211         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
7212         tzname", when deciding whether to declare tzname.
7213         * lib/strftime.c (tzname): Likewise.
7214
7215 2008-01-15  Bruno Haible  <bruno@clisp.org>
7216
7217         Work around a MacOS X 10.5 bug in frexpl().
7218         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
7219         * doc/functions/frexpl.texi: Document the bug.
7220         Reported by Elias Pipping <pipping@gentoo.org>.
7221
7222 2008-01-14  Eric Blake  <ebb9@byu.net>
7223
7224         Touch up previous patch.
7225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
7226         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
7227
7228         Convert strcasestr module to use Two-Way algorithm.
7229         * modules/strcasestr-simple: New module, based on the old
7230         strcasestr, but with Two-Way rather than KMP.
7231         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
7232         * lib/string.in.h (rpl_strcasestr): Declare.
7233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
7234         performance.
7235         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
7236         * modules/string (Makefile.am): Support strcasestr.
7237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
7238         * modules/strcasestr-tests (Depends-on): Check for alarm.
7239         * tests/test-strcasestr.c: Augment test.
7240         * lib/str-two-way.h: Clean up stray macro.
7241         * NEWS: Document new module.
7242         * MODULES.html.sh (string handling): Likewise.
7243         * doc/functions/strcasestr.texi: New file.
7244         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
7245         here, since it is not a POSIX function.
7246
7247 2008-01-14  Colin Watson  <cjwatson@debian.org>
7248             Bruno Haible  <bruno@clisp.org>
7249
7250         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
7251         works fine; if not, set REPLACE_STRSIGNAL.
7252         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
7253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7254         REPLACE_STRSIGNAL.
7255         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
7256         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
7257         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
7258
7259 2008-01-14  Bruno Haible  <bruno@clisp.org>
7260
7261         * modules/strsignal (Include): Change to <string.h>.
7262
7263 2008-01-14  Colin Watson  <cjwatson@debian.org>
7264
7265         * modules/argp (Notice): Add a notice recommending to change
7266         XGETTEXT_OPTIONS.
7267         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
7268
7269 2008-01-13  Colin Watson  <cjwatson@debian.org>
7270
7271         * modules/strsignal-tests: New file.
7272         * tests/test-strsignal.c: New file.
7273
7274         * lib/strsignal.c: New file, from glibc with modifications.
7275         * lib/siglist.h: New file, from glibc with modifications.
7276         * lib/string.in.h (strsignal): New declaration.
7277         * m4/strsignal.m4: New file.
7278         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7279         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
7280         * modules/strsignal: New file.
7281         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
7282         HAVE_DECL_STRSIGNAL.
7283
7284 2008-01-13  Bruno Haible  <bruno@clisp.org>
7285
7286         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
7287         locale encoding is not ASCII. Needed for OpenBSD 4.0.
7288         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7289         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7290
7291 2008-01-13  Bruno Haible  <bruno@clisp.org>
7292
7293         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
7294         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
7295         * lib/argp.h (__attribute__): Likewise.
7296         * lib/c-stack.c (__attribute__): Likewise.
7297         * lib/error.h (__attribute__): Likewise.
7298         * lib/fts.c (__attribute__): Likewise.
7299         * lib/openat.h (__attribute__): Likewise.
7300         * lib/stdio.in.h (__attribute__): Likewise.
7301         * lib/string.in.h (__attribute__): Likewise.
7302         * lib/utimens.c (__attribute__): Likewise.
7303         * lib/vasnprintf.h (__attribute__): Likewise.
7304         * lib/xalloc.h (__attribute__): Likewise.
7305         * lib/xprintf.h (__attribute__): Likewise.
7306         * lib/xstrtol.h (__attribute__): Likewise.
7307         * lib/xvasprintf.h (__attribute__): Likewise.
7308
7309 2008-01-12  Bruno Haible  <bruno@clisp.org>
7310
7311         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
7312         * doc/glibc-headers/a.out.texi: New file.
7313         * doc/glibc-headers/aliases.texi: New file.
7314         * doc/glibc-headers/alloca.texi: New file.
7315         * doc/glibc-headers/ar.texi: New file.
7316         * doc/glibc-headers/argp.texi: New file.
7317         * doc/glibc-headers/argz.texi: New file.
7318         * doc/glibc-headers/byteswap.texi: New file.
7319         * doc/glibc-headers/crypt.texi: New file.
7320         * doc/glibc-headers/endian.texi: New file.
7321         * doc/glibc-headers/envz.texi: New file.
7322         * doc/glibc-headers/err.texi: New file.
7323         * doc/glibc-headers/error.texi: New file.
7324         * doc/glibc-headers/execinfo.texi: New file.
7325         * doc/glibc-headers/fpu_control.texi: New file.
7326         * doc/glibc-headers/fstab.texi: New file.
7327         * doc/glibc-headers/fts.texi: New file.
7328         * doc/glibc-headers/getopt.texi: New file.
7329         * doc/glibc-headers/ieee754.texi: New file.
7330         * doc/glibc-headers/ifaddrs.texi: New file.
7331         * doc/glibc-headers/libintl.texi: New file.
7332         * doc/glibc-headers/mcheck.texi: New file.
7333         * doc/glibc-headers/mntent.texi: New file.
7334         * doc/glibc-headers/obstack.texi: New file.
7335         * doc/glibc-headers/paths.texi: New file.
7336         * doc/glibc-headers/printf.texi: New file.
7337         * doc/glibc-headers/pty.texi: New file.
7338         * doc/glibc-headers/resolv.texi: New file.
7339         * doc/glibc-headers/shadow.texi: New file.
7340         * doc/glibc-headers/sysexits.texi: New file.
7341         * doc/glibc-headers/ttyent.texi: New file.
7342
7343 2008-01-12  Jim Meyering  <meyering@redhat.com>
7344
7345         announce-gen: emit Gnulib's git-based version string.
7346         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
7347         New option --gnulib-version=V, where V is expected to be
7348         the output of running git describe in the gnulib directory.
7349         (get_tool_versions): Request feedback on xdelta.  I suspect it's
7350         not useful, and plan to stop publishing an xdelta file with each
7351         coreutils release.
7352
7353         * build-aux/announce-gen: Also check for lzma-compressed files.
7354
7355 2008-01-11  Bruno Haible  <bruno@clisp.org>
7356
7357         * tests/test-memmem.c (main): Increase maximum allowed time.
7358         * tests/test-strstr.c (main): Likewise.
7359
7360 2008-01-11  Bruno Haible  <bruno@clisp.org>
7361
7362         * doc/functions/memmem.texi: Add more precisions about platforms.
7363         * doc/functions/strstr.texi: Likewise.
7364
7365 2008-01-10  Eric Blake  <ebb9@byu.net>
7366
7367         * m4/strstr.m4: Delete cruft from copy-n-paste.
7368         Reported by Bruno Haible.
7369
7370 2008-01-10  Bruno Haible  <bruno@clisp.org>
7371
7372         Make c-strstr rely on strstr.
7373         * lib/c-strstr.c: Don't include str-kmp.h.
7374         (c_strstr): Define in terms of strstr.
7375         * modules/c-strstr (Files): Remove lib/str-kmp.h.
7376         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
7377
7378 2008-01-10  Bruno Haible  <bruno@clisp.org>
7379
7380         * doc/gnulib.texi (String Functions in C Locale): New section.
7381         * doc/c-ctype.texi: New file.
7382         * doc/c-strcase.texi: New file.
7383         * doc/c-strcaseeq.texi: New file.
7384         * doc/c-strcasestr.texi: New file.
7385         * doc/c-strstr.texi: New file.
7386         * doc/c-strtod.texi: New file.
7387         * doc/c-strtold.texi: New file.
7388
7389 2008-01-10  Eric Blake  <ebb9@byu.net>
7390
7391         * lib/relocatable.h: Fix a comment.
7392
7393 2008-01-10  Eric Blake  <ebb9@byu.net>
7394
7395         Share two-way algorithm.
7396         * lib/str-two-way.h: New file, merged from...
7397         * lib/memmem.c: ...here...
7398         * lib/strstr.c: ...and here.
7399         * modules/memmem (Files): Use it.
7400         * modules/strstr (Files): Likewise.
7401
7402         Avoid quadratic strstr implementations.
7403         * lib/strstr.c: New file.
7404         * m4/strstr.m4: Likewise.
7405         * modules/strstr: Likewise.
7406         * modules/strstr-tests: Likewise.
7407         * tests/test-strstr.c: Likewise.
7408         * lib/string.in.h (rpl_strstr): Declare.
7409         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
7410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
7411         * modules/string (Makefile.am): Likewise.
7412         * MODULES.html.sh (string handling): Mention new module.
7413         * doc/functions/strstr.texi (strstr): Document the bug.
7414
7415 2008-01-10  Bruno Haible  <bruno@clisp.org>
7416
7417         * lib/relocatable.h (relocate): State whether result is freshly
7418         allocated or not.
7419         * lib/relocatable.c (relocate): Return a freshly allocated string
7420         instead of a pointer to a privately held string.
7421         Reported by Sylvain Beucler <beuc@gnu.org>.
7422
7423 2008-01-10  Colin Watson  <cjwatson@debian.org>
7424
7425         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
7426         s/S_ISNLK/S_ISLNK/.
7427
7428 2008-01-09  Bruno Haible  <bruno@clisp.org>
7429
7430         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
7431         and other files.
7432         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
7433         if it's only a guess.
7434         * modules/memmem: Simplify by depending on memmem-simple.
7435
7436 2008-01-09  Bruno Haible  <bruno@clisp.org>
7437
7438         Work around OpenBSD 4.0 tdelete() bug.
7439         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
7440         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
7441         macros and don't redefine the enum values.
7442         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
7443         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
7444         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
7445
7446 2008-01-09  Bruno Haible  <bruno@clisp.org>
7447
7448         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
7449         (main): Don't perform the tests if setlocale did not install a UTF-8
7450         locale. Needed on OpenBSD 4.0.
7451         * modules/wcwidth-tests (Depends-on): Add localcharset.
7452
7453 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7454
7455         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
7456         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
7457         * NEWS: announce this.
7458         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
7459
7460 2008-01-09  Simon Josefsson  <simon@josefsson.org>
7461         and Eric Blake  <ebb9@byu.net>
7462
7463         Add memmem-simple module.
7464         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
7465         (gl_FUNC_MEMMEM): Separate performance from presence checks.
7466         * modules/memmem-simple: New file.
7467         * modules/memmem (Description): Tweak.
7468         * MODULES.html.sh (string handling): Mention new module.
7469         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
7470         addressed by memmem-simple.
7471         * NEWS: Document the difference.
7472
7473 2008-01-09  Eric Blake  <ebb9@byu.net>
7474
7475         Give gcc some memmem optimization hints.
7476         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
7477         (strcasestr): Declare as pure.
7478         * modules/memmem (Maintainer): Claim my implementation.
7479
7480 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7481
7482         Support AIX 6.1 and higher.
7483         * build-aux/config.libpath: Likewise.
7484         * build-aux/config.rpath: Likewise.
7485
7486 2008-01-08  Jim Meyering  <meyering@redhat.com>
7487             Bruno Haible  <bruno@clisp.org>
7488
7489         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
7490         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
7491         Reported by Peter Fales in
7492         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
7493
7494 2008-01-08  Bruno Haible  <bruno@clisp.org>
7495
7496         * modules/unictype/category-of (Depends-on): Add
7497         unictype/category-none.
7498         * modules/unictype/category-and-tests (Depends-on): Add
7499         unictype/category-{L,N,Lu,Nd}.
7500         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
7501         * modules/unictype/category-or-tests (Depends-on): Add
7502         unictype/category-{L,N}.
7503         * modules/unictype/category-name-tests (Depends-on): Add
7504         unictype/category-{Z,Nl}.
7505         Reported by Simon Josefsson.
7506
7507 2008-01-08  Bruno Haible  <bruno@clisp.org>
7508
7509         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
7510         convention better.
7511         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
7512         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
7513         Reported by Peter Miller <millerp@canb.auug.org.au>.
7514
7515 2008-01-08  Eric Blake  <ebb9@byu.net>
7516
7517         Rewrite memmem to guarantee linear complexity without malloc.
7518         * lib/memmem.c (memmem): Use Two-Way rather than
7519         Knuth-Morris-Pratt, to allow O(1) space usage.
7520         (critical_factorization, two_way_short_needle)
7521         (two_way_long_needle): New functions.
7522         (knuth_morris_pratt): Delete.
7523         * modules/memmem (Depends-on): No longer need malloca or stdbool.
7524         Add stdint.
7525         * tests/test-memmem.c (main): Add tests for periodic needle and
7526         sublinear performance.
7527         * doc/functions/memmem.texi (memmem): Document other deficiencies
7528         in cygwin and older glibc.
7529
7530 2008-01-08  Bruno Haible  <bruno@clisp.org>
7531
7532         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
7533         augmentation.
7534
7535 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
7536
7537         Add a configure time option: --disable-acl.
7538         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
7539         AC_ARG_ENABLE(acl).
7540
7541 2008-01-06  Simon Josefsson  <simon@josefsson.org>
7542
7543         * tests/test-localename.c: Don't include obsolete "setenv.h".
7544
7545         * modules/localename-tests (Depends-on): Need unsetenv.
7546
7547 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7548
7549         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
7550
7551 2008-01-06  Colin Watson  <cjwatson@debian.org>
7552
7553         * users.txt: Add man-db.
7554
7555 2008-01-07  Bruno Haible  <bruno@clisp.org>
7556
7557         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
7558         previous section name.
7559
7560 2008-01-07  Bruno Haible  <bruno@clisp.org>
7561
7562         * lib/progname.c (set_program_name): Don't strip off a leading
7563         "lt-" prefix outside a .libs directory.
7564         Suggested by Paul Eggert.
7565
7566 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
7567             Bruno Haible  <bruno@clisp.org>
7568
7569         Improve memory cleanup in 'relocatable' module.
7570         * lib/relocatable.h (compute_curr_prefix): Change return type to
7571         'char *'.
7572         * lib/relocatable.c (compute_curr_prefix): Change return type to
7573         'char *'. Free curr_installdir after use.
7574         (relocate): Free curr_prefix_better after use.
7575         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
7576
7577 2008-01-01  Bruno Haible  <bruno@clisp.org>
7578
7579         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
7580         failure on older glibc systems.
7581         Reported by Peter Fales <psfales@alcatel-lucent.com>.
7582
7583 2008-01-05  Eric Blake  <ebb9@byu.net>
7584
7585         Avoid quadratic system memmem.
7586         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
7587         Reported by Ralf Wildenhues.
7588
7589         Fix memmem test for mingw.
7590         * modules/memmem-tests (configure.ac): Check for alarm.
7591         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
7592         it.
7593         * doc/functions/memmem.texi: New file.
7594         * doc/gnulib.texi (Function Substitutes): Add memmem.
7595         Reported by Bruno Haible.
7596
7597 2008-01-04  Bruno Haible  <bruno@clisp.org>
7598
7599         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
7600         Require gl_HEADER_STRINGS_H_DEFAULTS, not
7601         gl_HEADER_STRING_H_DEFAULTS.
7602
7603 2008-01-04  Eric Blake  <ebb9@byu.net>
7604
7605         Shorten duration of memmem test.
7606         * tests/test-memmem.c (main): Use alarm to declare failure if test
7607         is taking too long.
7608         Reported by Ralf Wildenhues.
7609
7610 2007-12-21  Simon Josefsson  <simon@josefsson.org>
7611
7612         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
7613         string, needed by strerror.
7614
7615 2008-01-03  Colin Watson  <cjwatson@debian.org>
7616             Bruno Haible  <bruno@clisp.org>
7617
7618         * doc/gnulib-tool.texi (Localization): New section.
7619
7620 2008-01-02  Bruno Haible  <bruno@clisp.org>
7621
7622         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
7623         variables to 'unsigned char *' type.
7624         Reported by Paul Eggert.
7625
7626 2008-01-02  Jim Meyering  <jim@meyering.net>
7627
7628         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
7629
7630 2007-12-31  Jim Meyering  <jim@meyering.net>
7631
7632         Avoid use of private FTS type name.
7633         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
7634
7635 2007-12-30  Karl Berry  <karl@gnu.org>
7636
7637         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
7638         work around defect in Texinfo and/or the standalone Info browser.
7639
7640 2007-12-30  Bruno Haible  <bruno@clisp.org>
7641
7642         Unify 5 copies of the KMP code.
7643         * lib/str-kmp.h: New file.
7644         * lib/c-strcasestr.c: Include str-kmp.h.
7645         (knuth_morris_pratt): Remove function.
7646         (c_strcasestr): Update.
7647         * lib/c-strstr.c: Include str-kmp.h.
7648         (knuth_morris_pratt): Remove function.
7649         (c_strcasestr): Update.
7650         * lib/mbscasestr.c: Include str-kmp.h.
7651         (knuth_morris_pratt_unibyte): Remove function.
7652         * lib/mbsstr.c: Include str-kmp.h.
7653         (knuth_morris_pratt_unibyte): Remove function.
7654         * lib/strcasestr.c: Include str-kmp.h.
7655         (knuth_morris_pratt): Remove function.
7656         (strcasestr): Update.
7657         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
7658         * modules/c-strstr (Files): Likewise.
7659         * modules/mbscasestr (Files): Likewise.
7660         * modules/mbsstr (Files): Likewise.
7661         * modules/strcasestr (Files): Likewise.
7662         Suggested by Paul Eggert.
7663
7664 2007-12-30  Bruno Haible  <bruno@clisp.org>
7665
7666         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
7667         defined.
7668
7669 2007-12-30  Bruno Haible  <bruno@clisp.org>
7670
7671         * lib/xmalloca.h: Include xalloc.h.
7672         (xnmalloca): New macro.
7673
7674 2007-12-30  Bruno Haible  <bruno@clisp.org>
7675
7676         * lib/malloca.h (nmalloca): New macro.
7677         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
7678         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
7679         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
7680         knuth_morris_pratt_multibyte): Likewise.
7681         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
7682         knuth_morris_pratt_multibyte): Likewise.
7683         * lib/memmem.c (knuth_morris_pratt): Likewise.
7684         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
7685
7686 2007-12-25  Bruno Haible  <bruno@clisp.org>
7687
7688         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
7689         * lib/glob.c: Don't include openat.h.
7690         (link_exists2_p): Add back the code that deals with the
7691         !GLOB_ALTDIRFUNC case.
7692         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
7693         let it do the filename concatenation.
7694         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
7695         * modules/glob (Depends-on): Remove openat.
7696
7697 2007-12-31  Bruno Haible  <bruno@clisp.org>
7698
7699         * modules/dirfd (License): Change to LGPLv2+.
7700         Approved by Jim Meyering.
7701
7702 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7703
7704         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
7705         when multiplying M by sizeof (size_t).
7706
7707 2007-12-10  Martin Lambers  <marlam@marlam.de>
7708
7709         Override getpagesize on mingw.
7710         * lib/getpagesize.c: New file.
7711         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
7712         * modules/getpagesize (Files): Add lib/getpagesize.c.
7713         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
7714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7715         REPLACE_GETPAGESIZE.
7716         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
7717
7718 2007-12-25  Bruno Haible  <bruno@clisp.org>
7719
7720         * modules/localcharset (Notice): New field.
7721         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
7722         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7723
7724 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7725             Bruno Haible  <bruno@clisp.org>
7726
7727         Avoid using the syntax symbol() in formatted documentation.
7728         * MODULES.html.sh (func_module): When replacing symbol() with a
7729         hyperlink, remove the parentheses. Show an error if some remain.
7730         Recognize and render the '...' syntax.
7731         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
7732         Rework. Add paragraph about GCC's inlining.
7733         * doc/alloca.texi: Likewise.
7734         * doc/error.texi: Remove parentheses from symbol reference.
7735         * doc/gnulib-intro.texi: Likewise.
7736         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
7737         * modules/fnmatch (Description): Reword to say "the ... function".
7738         * modules/full-read (Description): Likewise.
7739         * modules/full-write (Description): Likewise.
7740         * modules/safe-read (Description): Likewise.
7741         * modules/safe-write (Description): Likewise.
7742         * modules/strchrnul (Description): Likewise.
7743         * modules/trim (Description): Likewise.
7744         * modules/error (Description): Remove parentheses from symbol
7745         references.
7746         * modules/verror (Description): Likewise.
7747         Reported by Karl Berry.
7748
7749 2007-12-25  Bruno Haible  <bruno@clisp.org>
7750
7751         Fixup after 2007-10-16 commit.
7752         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
7753
7754 2007-12-24  Bruno Haible  <bruno@clisp.org>
7755
7756         Make --enable-relocatable work with DESTDIR.
7757         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
7758         to compute installdir from destprog.
7759         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
7760         also set the RELOC_DESTDIR variable.
7761         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
7762
7763 2007-12-24  Bruno Haible  <bruno@clisp.org>
7764
7765         Fix link error due to xalloc_die().
7766         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
7767         of xreadlink.
7768         * lib/relocwrapper.c: Update comments.
7769         * build-aux/install-reloc: Remove xreadlink.c from file list.
7770         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
7771         xreadlink.c.
7772         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
7773
7774 2007-12-24  Bruno Haible  <bruno@clisp.org>
7775
7776         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
7777         * lib/setenv.h: Remove file.
7778         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
7779         lib/setenv.h.
7780         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
7781         (Depends-on): Add stdlib.
7782         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
7783         gl_FUNC_UNSETENV.
7784         (Include): Replace setenv.h with <stdlib.h>.
7785         * modules/unsetenv: New file.
7786         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
7787         * lib/unsetenv.c: Include <stdlib.h> first.
7788         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
7789         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
7790         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
7791         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
7792         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
7793         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
7795         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7796         * doc/functions/unsetenv.texi: Update.
7797         * modules/xsetenv (Depends-on): Add unsetenv.
7798         * modules/getdate (Depends-on): Likewise.
7799         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
7800         * lib/xsetenv.c: Don't include setenv.h.
7801         * lib/getdate.y: Likewise.
7802         * lib/relocwrapper.c: Likewise.
7803         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
7804         (Depends-on): Add stdlib.
7805         * NEWS: Mention the changes.
7806         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
7807
7808 2007-12-23  Bruno Haible  <bruno@clisp.org>
7809
7810         * lib/memmem.c (memmem): Use lowercase variable names. Tab
7811         indentation.
7812
7813 2007-12-23  Bruno Haible  <bruno@clisp.org>
7814
7815         * lib/c-strcasestr.c: Add more comments.
7816         * lib/c-strstr.c: Likewise.
7817         * lib/mbscasestr.c: Likewise.
7818         * lib/mbsstr.c: Likewise.
7819         * lib/strcasestr.c: Likewise.
7820         * lib/memmem.c: Likewise.
7821
7822 2007-12-23  Bruno Haible  <bruno@clisp.org>
7823
7824         * tests/test-memmem.c: Include <string.h> first.
7825
7826 2007-12-22  Bruno Haible  <bruno@clisp.org>
7827
7828         * gnulib-tool (func_create_testdir): Change $auxdir while generating
7829         the contents of $testsbase.
7830         Reported by Ralf Wildenhues.
7831
7832 2007-12-22  Bruno Haible  <bruno@clisp.org>
7833
7834         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
7835         two variables local_ldadd_before, local_ldadd_last.
7836
7837 2007-12-20  Eric Blake  <ebb9@byu.net>
7838
7839         Work around circular library issue when cross-compiling.
7840         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
7841         that progname.o does not need to pull in rpl_memcmp.
7842
7843 2007-12-19  Eric Blake  <ebb9@byu.net>
7844
7845         Fix memmem to avoid O(n^2) worst-case complexity.
7846         * lib/memmem.c (knuth_morris_pratt): New function.
7847         (memmem): Use it if first few naive iterations fail.
7848         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
7849         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
7850         * modules/memchr (License): Likewise.
7851         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
7852         malloca.
7853         * tests/test-memmem.c: Rewrite, borrowing ideas from
7854         test-mbsstr1.c; the old version wouldn't even compile!
7855         * modules/memmem-tests: New file.
7856         * lib/string.in.h (rpl_memmem): Add declaration.
7857         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
7858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
7859         REPLACE_MEMMEM.
7860
7861 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7862
7863         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
7864         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
7865         before any system include files, and undef after them all.  This
7866         should fix a problem on VMS reported by John E. Malmberg in
7867         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
7868
7869 2007-12-17  Eric Blake  <ebb9@byu.net>
7870
7871         Revert addition of verify, for BSD/OS.
7872         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
7873         can't handle large files, for the sake of obsolete platforms.
7874         * modules/fseeko (Depends-on): Remove verify.
7875         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
7876         * doc/functions/ftello.texi (ftello): Likewise.
7877         * doc/functions/fgetpos.texi (fgetpos): Likewise.
7878         Reported by Larry Jones.
7879
7880 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
7881
7882         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
7883         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
7884
7885 2007-12-17  Jim Meyering  <meyering@redhat.com>
7886
7887         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
7888         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
7889         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
7890         * modules/getcwd (Depends-on): Add openat.
7891         Reported by Petr Salinger.
7892
7893 2007-12-17  Bruno Haible  <bruno@clisp.org>
7894
7895         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
7896         avoid a segmentation fault of the configure test on x86_64 systems.
7897
7898 2007-12-15  Jim Meyering  <meyering@redhat.com>
7899
7900         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
7901
7902 2007-12-13  Eric Blake  <ebb9@byu.net>
7903
7904         Another fseek test.
7905         * tests/test-fseek.c (main): Also test ungetc handling.
7906         * tests/test-fseeko.c (main): Likewise.
7907         * modules/fseeko (Depends-on): Add verify.
7908         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
7909         large.
7910         Reported by Larry Jones.
7911
7912         Fix fseeko on mingw.
7913         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
7914         seek.
7915
7916         Beef up fseek tests.
7917         * tests/test-fseek.c (main): Also test eof handling.
7918         * tests/test-fseeko.c (main): Likewise.
7919         Reported by Larry Jones.
7920
7921 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
7922
7923         Fix fseeko on BSD-based platforms.
7924         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
7925         successful seek.
7926
7927 2007-12-12  Eric Blake  <ebb9@byu.net>
7928
7929         Allow circular dependency of separate libtests.a
7930         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
7931         when use_libtests.
7932
7933 2007-12-11  Eric Blake  <ebb9@byu.net>
7934
7935         Fix bug with -0.0L in previous patch.
7936         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
7937         * tests/test-isnan.c (main): Also test on zeroes.
7938         * tests/test-isnanf.c (main): Likewise.
7939         * tests/test-isnanl.h (main): Likewise.
7940
7941         Detect pseudo-denormals on x86 even when cross-compiling.
7942         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
7943         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
7944         invalid bit patterns that happen to satisfy ==.
7945
7946         Avoid link failures with separate libtests.a.
7947         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
7948         last, to satisfy circular dependencies.
7949
7950 2007-12-11  Eric Blake  <ebb9@byu.net>
7951         and Bruno Haible  <bruno@clisp.org>
7952
7953         Fix OpenBSD 4.0 <float.h> handling of long double.
7954         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
7955         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
7956         * doc/headers/float.texi (float.h): Document OpenBSD bug.
7957
7958 2007-12-11  Jim Meyering  <meyering@redhat.com>
7959
7960         * users.txt: Add libvirt.
7961
7962         Support versions of autoconf prior to 2.59c.
7963         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
7964         if it is not already defined.
7965
7966 2007-12-09  Bruno Haible  <bruno@clisp.org>
7967
7968         Let 'gnulib-tool --import' collect sources needed for the tests in
7969         tests/ rather than in lib/.
7970         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
7971         argument. If true, add rules to generate libtests.a, and put libtests.a
7972         into $(LDADD). Consider source files in subdirectories and set
7973         uses_subdirs.
7974         (func_emit_initmacro_start, func_emit_initmacro_end,
7975         func_emit_initmacro_done): Pass all arguments explicitly.
7976         (func_import): Determine two module lists main_modules,
7977         testsrelated_modules. Determine use_libtests. Determine two variables
7978         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
7979         instead of just sed_transform_lib_file. Determine two variables
7980         main_files and testsrelated_files. Compute 'files' as the union of
7981         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
7982         func_add_or_update. In the generated gnulib-comp.m4, collect the
7983         object files for tests/ in different variables than those for lib/.
7984         Substitute LIBTESTS_LIBDEPS.
7985         (func_create_testdir): Combine the uses_subdirs results from
7986         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
7987
7988 2007-12-09  Bruno Haible  <bruno@clisp.org>
7989
7990         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
7991         the build-aux directory.
7992
7993 2007-12-09  Bruno Haible  <bruno@clisp.org>
7994
7995         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
7996         introduced on 2006-09-09.
7997
7998 2007-12-07  Jim Meyering  <meyering@redhat.com>
7999
8000         Let these macros work also with autoconf-2.59.
8001         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
8002         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
8003         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8004
8005 2007-12-06  Jim Meyering  <meyering@redhat.com>
8006
8007         Avoid a configure-time syntax error in gl_FUNC_ACL.
8008         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
8009         function in each branch, before testing the cache variable.
8010
8011 2007-12-04  Eric Blake  <ebb9@byu.net>
8012
8013         Make scripts executable.
8014         * build-aux/config.guess: Add execute permissions.
8015         * build-aux/config.sub: Likewise.
8016         * build-aux/gendocs.sh: Likewise.
8017
8018         Fix frexp on mingw.
8019         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
8020         cross-compiling.
8021         * doc/functions/frexp.texi (frexp): Document the bug.
8022
8023         Make cygwin fseeko check more reliable.
8024         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
8025         version numbers, rather than unrelated feature check.
8026         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
8027         * doc/functions/ftello.texi (ftello): Likewise.
8028         Reported by Bruno Haible.
8029
8030         * m4/strerror.m4: Bump version number.
8031
8032 2007-12-03  Bruno Haible  <bruno@clisp.org>
8033
8034         * doc/functions/mprotect.texi: Mention the mingw problem.
8035
8036 2007-12-03  Eric Blake  <ebb9@byu.net>
8037
8038         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
8039         REPLACE_STRERROR is initialized before this macro.
8040
8041 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
8042
8043         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
8044         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
8045         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
8046         put -lsec in even for programs other than 'ls'.  This fixes a problem
8047         for gettext reported by Bruno Haible in
8048         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
8049         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
8050         Add support for Solaris 10.  This isn't efficient, but should get the
8051         job done for now.
8052
8053 2007-12-03  James Youngman  <jay@gnu.org>
8054
8055         * doc/regexprops-generic.texi: change "an close-group" to "a
8056         close-group" and "illegal" to "not allowed".
8057
8058 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8059
8060         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
8061         pr_byname.h. Needed for the rare case when the maintainer has done
8062         "make maintainer-clean" in the source directory and then attempts a
8063         build outside the source directory.
8064         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
8065         scripts_byname.h.
8066
8067 2007-12-02  Martin Lambers <marlam@marlam.de>
8068             Bruno Haible  <bruno@clisp.org>
8069
8070         * lib/getpagesize.h: Remove file.
8071         * lib/unistd.in.h: Include declaration of getpagesize here.
8072         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
8073         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
8074         HAVE_SYS_PARAM_H.
8075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
8076         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8077         * modules/getpagesize (Files): Remove lib/getpagesize.h.
8078         (Depends-on): Add unistd.
8079         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8080         (Include): Use <unistd.h> instead of getpagesize.h.
8081         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
8082         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8083         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
8084         gl_GETPAGESIZE invocation, already handled by module dependency.
8085         * lib/pagealign_alloc.c: Don't include getpagesize.h.
8086
8087 2007-12-02  Bruno Haible  <bruno@clisp.org>
8088
8089         * modules/strings-tests: New file.
8090         * tests/test-strings.c: New file.
8091
8092         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
8093         * lib/strings.in.h: New file.
8094         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
8095         * m4/strings_h.m4: New file.
8096         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
8097         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
8098         * modules/strings: New file.
8099         * modules/string (Makefile.am): Update.
8100         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
8101         Reported by Karl Berry.
8102
8103 2007-12-01  Eric Blake  <ebb9@byu.net>
8104
8105         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
8106         accomodate fix in cygwin 1.5.25.
8107
8108 2007-12-01  Jim Meyering  <meyering@redhat.com>
8109
8110         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
8111         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
8112         that would inhibit utf8-optimization of a regexp containing line-
8113         or buffer-anchors, e.g., `^', `$'.
8114
8115 2007-11-30  Bruno Haible  <bruno@clisp.org>
8116
8117         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
8118         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
8119         glthread_recursive_lock_init.
8120         * lib/lock.c (glthread_recursive_lock_init)
8121         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
8122         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8123
8124 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
8125
8126         New function qset_acl, like set_acl but with syscall semantics.
8127         * lib/acl.h (qset_acl): New decl.
8128         * lib/acl.c (qset_acl): New function.
8129         (set_acl): Use new function.  Use more-consistent diagnostics.
8130
8131 2007-11-28  Jim Meyering  <meyering@redhat.com>
8132
8133         * modules/physmem (License): Change from GPL to LGPLv2+.
8134
8135 2007-11-26  Bruno Haible  <bruno@clisp.org>
8136
8137         * lib/vasnprintf.c (decode_long_double): Don't abort if the
8138         'long double' type has excess precision.
8139         Reported by Jim Meyering in
8140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
8141
8142 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8143
8144         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
8145         Sync from <http://gnu.org/licenses>.
8146         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
8147         with license text from same location.
8148         * doc/maintain.texi, doc/standards.texi:  Sync from
8149         <http://savannah.gnu.org/projects/gnustandards>.
8150
8151 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
8152         and Jim Meyering  <meyering@redhat.com>
8153
8154         Adjust getdate' grammar to accept a slightly more regular language.
8155         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
8156         Before, the former was rejected.
8157         * lib/getdate.y (digits_to_date_time): New function, factored
8158         out of ...
8159         (number): ...here.  Just call digits_to_date_time.
8160         (hybrid): New non-terminal to handle an <unsigned number,
8161         signed relative offset> sequence consistently.
8162
8163 2007-11-18  Jim Meyering  <meyering@redhat.com>
8164
8165         Pull my changes from coreutils:
8166         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
8167         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
8168         use of $gnulib_tool_option_extras, so that it's separated from the
8169         preceding argument.
8170
8171         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
8172         * build-aux/bootstrap (cp_mark_as_generated): Create any required
8173         parent destination directories before copying a file into place.
8174
8175 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
8176
8177         bootstrap: work also with 4-argument variant of AC_INIT
8178         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
8179
8180 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
8181
8182         Port test-getaddrinfo to Solaris.
8183         Problem reported by Bruno Haible in
8184         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
8185         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
8186         explanation of setting 'hints'.
8187         Don't reject an implementation merely because it returns EAI_SERVICE.
8188         (EAI_SERVICE): Define to 0 if not defined.
8189
8190 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8191
8192         The license of gnu-make and posix-shell is now "GPLed build tool".
8193         * modules/gnu-make (License): Likewise.
8194         * modules/posix-shell (License): Likewise.
8195
8196         New module posix-shell, for determining a POSIX shell
8197         or perhaps something that is close enough to a POSIX shell.
8198         * m4/posix-shell.m4: New file.
8199         * modules/posix-shell: New file.
8200
8201         * MODULES.html.sh: Mention new module.
8202
8203         New module gnu-make, for determining whether we're using GNU Make.
8204         * m4/gnu-make.m4: New file.
8205         * modules/gnu-make: New file.
8206         * MODULES.html.sh: Mention new module.
8207
8208 2007-11-14  Jim Meyering  <meyering@redhat.com>
8209
8210         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
8211         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
8212         use this macro to create a function _definition_.
8213         Remove useless "#undef ARGMATCH_DIE".
8214
8215 2007-11-14  Bruno Haible  <bruno@clisp.org>
8216
8217         * lib/config.charset: Update for OpenBSD 4.1.
8218         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
8219
8220 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
8221
8222         Document 64-bit #if problems in stdint.texi.
8223         * doc/headers/stdint.texi (stdint.h): Mention problems with
8224         64-bit-#if, and how to work around them.
8225
8226         Don't insist on 'long long int' support in the preprocessor.  It
8227         breaks too many things.  For example, PRIdMAX still uses a 'long
8228         long int' format with the latest Sun compiler, even though
8229         HAVE_LONG_LONG_INT isn't defined due to that compiler's
8230         preprocessor problem.  This causes the latest coreutils to dump
8231         core on Solaris 10 sparc with the Sun C compiler.
8232         Instead, fix the 2007-10-16 problem in a different way, by evaluating
8233         the troublesome expressions at configure-time, not at #if-time.
8234         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
8235         preprocessor.
8236         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
8237         compile-time C checks, done at 'configure'-time.
8238         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
8239         * modules/inttypes (Makefile): Substitute the new symbols that
8240         gl_INTTYPES_H now generates.
8241         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
8242
8243 2007-11-12  Bruno Haible  <bruno@clisp.org>
8244
8245         Tests for Unicode character classification functions.
8246
8247         * modules/unictype/bidicategory-byname-tests: New file.
8248         * modules/unictype/bidicategory-name-tests: New file.
8249         * modules/unictype/bidicategory-of-tests: New file.
8250         * modules/unictype/bidicategory-test-tests: New file.
8251         * modules/unictype/block-list-tests: New file.
8252         * modules/unictype/block-of-tests: New file.
8253         * modules/unictype/block-test-tests: New file.
8254         * modules/unictype/category-C-tests: New file.
8255         * modules/unictype/category-Cc-tests: New file.
8256         * modules/unictype/category-Cf-tests: New file.
8257         * modules/unictype/category-Cn-tests: New file.
8258         * modules/unictype/category-Co-tests: New file.
8259         * modules/unictype/category-Cs-tests: New file.
8260         * modules/unictype/category-L-tests: New file.
8261         * modules/unictype/category-Ll-tests: New file.
8262         * modules/unictype/category-Lm-tests: New file.
8263         * modules/unictype/category-Lo-tests: New file.
8264         * modules/unictype/category-Lt-tests: New file.
8265         * modules/unictype/category-Lu-tests: New file.
8266         * modules/unictype/category-M-tests: New file.
8267         * modules/unictype/category-Mc-tests: New file.
8268         * modules/unictype/category-Me-tests: New file.
8269         * modules/unictype/category-Mn-tests: New file.
8270         * modules/unictype/category-N-tests: New file.
8271         * modules/unictype/category-Nd-tests: New file.
8272         * modules/unictype/category-Nl-tests: New file.
8273         * modules/unictype/category-No-tests: New file.
8274         * modules/unictype/category-P-tests: New file.
8275         * modules/unictype/category-Pc-tests: New file.
8276         * modules/unictype/category-Pd-tests: New file.
8277         * modules/unictype/category-Pe-tests: New file.
8278         * modules/unictype/category-Pf-tests: New file.
8279         * modules/unictype/category-Pi-tests: New file.
8280         * modules/unictype/category-Po-tests: New file.
8281         * modules/unictype/category-Ps-tests: New file.
8282         * modules/unictype/category-S-tests: New file.
8283         * modules/unictype/category-Sc-tests: New file.
8284         * modules/unictype/category-Sk-tests: New file.
8285         * modules/unictype/category-Sm-tests: New file.
8286         * modules/unictype/category-So-tests: New file.
8287         * modules/unictype/category-Z-tests: New file.
8288         * modules/unictype/category-Zl-tests: New file.
8289         * modules/unictype/category-Zp-tests: New file.
8290         * modules/unictype/category-Zs-tests: New file.
8291         * modules/unictype/category-and-not-tests: New file.
8292         * modules/unictype/category-and-tests: New file.
8293         * modules/unictype/category-byname-tests: New file.
8294         * modules/unictype/category-name-tests: New file.
8295         * modules/unictype/category-none-tests: New file.
8296         * modules/unictype/category-of-tests: New file.
8297         * modules/unictype/category-or-tests: New file.
8298         * modules/unictype/category-test-withtable-tests: New file.
8299         * modules/unictype/combining-class-tests: New file.
8300         * modules/unictype/ctype-alnum-tests: New file.
8301         * modules/unictype/ctype-alpha-tests: New file.
8302         * modules/unictype/ctype-blank-tests: New file.
8303         * modules/unictype/ctype-cntrl-tests: New file.
8304         * modules/unictype/ctype-digit-tests: New file.
8305         * modules/unictype/ctype-graph-tests: New file.
8306         * modules/unictype/ctype-lower-tests: New file.
8307         * modules/unictype/ctype-print-tests: New file.
8308         * modules/unictype/ctype-punct-tests: New file.
8309         * modules/unictype/ctype-space-tests: New file.
8310         * modules/unictype/ctype-upper-tests: New file.
8311         * modules/unictype/ctype-xdigit-tests: New file.
8312         * modules/unictype/decimal-digit-tests: New file.
8313         * modules/unictype/digit-tests: New file.
8314         * modules/unictype/mirror-tests: New file.
8315         * modules/unictype/numeric-tests: New file.
8316         * modules/unictype/property-alphabetic-tests: New file.
8317         * modules/unictype/property-ascii-hex-digit-tests: New file.
8318         * modules/unictype/property-bidi-arabic-digit-tests: New file.
8319         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
8320         * modules/unictype/property-bidi-block-separator-tests: New file.
8321         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
8322         * modules/unictype/property-bidi-common-separator-tests: New file.
8323         * modules/unictype/property-bidi-control-tests: New file.
8324         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
8325         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
8326         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
8327         * modules/unictype/property-bidi-european-digit-tests: New file.
8328         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
8329         * modules/unictype/property-bidi-left-to-right-tests: New file.
8330         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
8331         * modules/unictype/property-bidi-other-neutral-tests: New file.
8332         * modules/unictype/property-bidi-pdf-tests: New file.
8333         * modules/unictype/property-bidi-segment-separator-tests: New file.
8334         * modules/unictype/property-bidi-whitespace-tests: New file.
8335         * modules/unictype/property-byname-tests: New file.
8336         * modules/unictype/property-combining-tests: New file.
8337         * modules/unictype/property-composite-tests: New file.
8338         * modules/unictype/property-currency-symbol-tests: New file.
8339         * modules/unictype/property-dash-tests: New file.
8340         * modules/unictype/property-decimal-digit-tests: New file.
8341         * modules/unictype/property-default-ignorable-code-point-tests: New file.
8342         * modules/unictype/property-deprecated-tests: New file.
8343         * modules/unictype/property-diacritic-tests: New file.
8344         * modules/unictype/property-extender-tests: New file.
8345         * modules/unictype/property-format-control-tests: New file.
8346         * modules/unictype/property-grapheme-base-tests: New file.
8347         * modules/unictype/property-grapheme-extend-tests: New file.
8348         * modules/unictype/property-grapheme-link-tests: New file.
8349         * modules/unictype/property-hex-digit-tests: New file.
8350         * modules/unictype/property-hyphen-tests: New file.
8351         * modules/unictype/property-id-continue-tests: New file.
8352         * modules/unictype/property-id-start-tests: New file.
8353         * modules/unictype/property-ideographic-tests: New file.
8354         * modules/unictype/property-ids-binary-operator-tests: New file.
8355         * modules/unictype/property-ids-trinary-operator-tests: New file.
8356         * modules/unictype/property-ignorable-control-tests: New file.
8357         * modules/unictype/property-iso-control-tests: New file.
8358         * modules/unictype/property-join-control-tests: New file.
8359         * modules/unictype/property-left-of-pair-tests: New file.
8360         * modules/unictype/property-line-separator-tests: New file.
8361         * modules/unictype/property-logical-order-exception-tests: New file.
8362         * modules/unictype/property-lowercase-tests: New file.
8363         * modules/unictype/property-math-tests: New file.
8364         * modules/unictype/property-non-break-tests: New file.
8365         * modules/unictype/property-not-a-character-tests: New file.
8366         * modules/unictype/property-numeric-tests: New file.
8367         * modules/unictype/property-other-alphabetic-tests: New file.
8368         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
8369         * modules/unictype/property-other-grapheme-extend-tests: New file.
8370         * modules/unictype/property-other-id-continue-tests: New file.
8371         * modules/unictype/property-other-id-start-tests: New file.
8372         * modules/unictype/property-other-lowercase-tests: New file.
8373         * modules/unictype/property-other-math-tests: New file.
8374         * modules/unictype/property-other-uppercase-tests: New file.
8375         * modules/unictype/property-paired-punctuation-tests: New file.
8376         * modules/unictype/property-paragraph-separator-tests: New file.
8377         * modules/unictype/property-pattern-syntax-tests: New file.
8378         * modules/unictype/property-pattern-white-space-tests: New file.
8379         * modules/unictype/property-private-use-tests: New file.
8380         * modules/unictype/property-punctuation-tests: New file.
8381         * modules/unictype/property-quotation-mark-tests: New file.
8382         * modules/unictype/property-radical-tests: New file.
8383         * modules/unictype/property-sentence-terminal-tests: New file.
8384         * modules/unictype/property-soft-dotted-tests: New file.
8385         * modules/unictype/property-space-tests: New file.
8386         * modules/unictype/property-terminal-punctuation-tests: New file.
8387         * modules/unictype/property-test-tests: New file.
8388         * modules/unictype/property-titlecase-tests: New file.
8389         * modules/unictype/property-unassigned-code-value-tests: New file.
8390         * modules/unictype/property-unified-ideograph-tests: New file.
8391         * modules/unictype/property-uppercase-tests: New file.
8392         * modules/unictype/property-variation-selector-tests: New file.
8393         * modules/unictype/property-white-space-tests: New file.
8394         * modules/unictype/property-xid-continue-tests: New file.
8395         * modules/unictype/property-xid-start-tests: New file.
8396         * modules/unictype/property-zero-width-tests: New file.
8397         * modules/unictype/scripts-tests: New file.
8398         * modules/unictype/syntax-c-ident-tests: New file.
8399         * modules/unictype/syntax-c-whitespace-tests: New file.
8400         * modules/unictype/syntax-java-ident-tests: New file.
8401         * modules/unictype/syntax-java-whitespace-tests: New file.
8402         * tests/unictype/test-bidi_byname.c: New file.
8403         * tests/unictype/test-bidi_name.c: New file.
8404         * tests/unictype/test-bidi_of.c: New file.
8405         * tests/unictype/test-bidi_test.c: New file.
8406         * tests/unictype/test-block_list.c: New file.
8407         * tests/unictype/test-block_of.c: New file.
8408         * tests/unictype/test-block_test.c: New file.
8409         * tests/unictype/test-categ_and.c: New file.
8410         * tests/unictype/test-categ_and_not.c: New file.
8411         * tests/unictype/test-categ_byname.c: New file.
8412         * tests/unictype/test-categ_name.c: New file.
8413         * tests/unictype/test-categ_none.c: New file.
8414         * tests/unictype/test-categ_of.c: New file.
8415         * tests/unictype/test-categ_or.c: New file.
8416         * tests/unictype/test-categ_test_withtable.c: New file.
8417         * tests/unictype/test-combining.c: New file.
8418         * tests/unictype/test-decdigit.c: New file.
8419         * tests/unictype/test-digit.c: New file.
8420         * tests/unictype/test-mirror.c: New file.
8421         * tests/unictype/test-numeric.c: New file.
8422         * tests/unictype/test-pr_byname.c: New file.
8423         * tests/unictype/test-pr_test.c: New file.
8424         * tests/unictype/test-predicate-part1.h: New file.
8425         * tests/unictype/test-predicate-part2.h: New file.
8426         * tests/unictype/test-scripts.c: New file.
8427         * tests/unictype/test-sy_c_ident.c: New file.
8428         * tests/unictype/test-sy_java_ident.c: New file.
8429
8430         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
8431         for Unicode 5.0.0.
8432         * tests/unictype/test-categ_Cc.c: Likewise.
8433         * tests/unictype/test-categ_Cf.c: Likewise.
8434         * tests/unictype/test-categ_Cn.c: Likewise.
8435         * tests/unictype/test-categ_Co.c: Likewise.
8436         * tests/unictype/test-categ_Cs.c: Likewise.
8437         * tests/unictype/test-categ_L.c: Likewise.
8438         * tests/unictype/test-categ_Ll.c: Likewise.
8439         * tests/unictype/test-categ_Lm.c: Likewise.
8440         * tests/unictype/test-categ_Lo.c: Likewise.
8441         * tests/unictype/test-categ_Lt.c: Likewise.
8442         * tests/unictype/test-categ_Lu.c: Likewise.
8443         * tests/unictype/test-categ_M.c: Likewise.
8444         * tests/unictype/test-categ_Mc.c: Likewise.
8445         * tests/unictype/test-categ_Me.c: Likewise.
8446         * tests/unictype/test-categ_Mn.c: Likewise.
8447         * tests/unictype/test-categ_N.c: Likewise.
8448         * tests/unictype/test-categ_Nd.c: Likewise.
8449         * tests/unictype/test-categ_Nl.c: Likewise.
8450         * tests/unictype/test-categ_No.c: Likewise.
8451         * tests/unictype/test-categ_P.c: Likewise.
8452         * tests/unictype/test-categ_Pc.c: Likewise.
8453         * tests/unictype/test-categ_Pd.c: Likewise.
8454         * tests/unictype/test-categ_Pe.c: Likewise.
8455         * tests/unictype/test-categ_Pf.c: Likewise.
8456         * tests/unictype/test-categ_Pi.c: Likewise.
8457         * tests/unictype/test-categ_Po.c: Likewise.
8458         * tests/unictype/test-categ_Ps.c: Likewise.
8459         * tests/unictype/test-categ_S.c: Likewise.
8460         * tests/unictype/test-categ_Sc.c: Likewise.
8461         * tests/unictype/test-categ_Sk.c: Likewise.
8462         * tests/unictype/test-categ_Sm.c: Likewise.
8463         * tests/unictype/test-categ_So.c: Likewise.
8464         * tests/unictype/test-categ_Z.c: Likewise.
8465         * tests/unictype/test-categ_Zl.c: Likewise.
8466         * tests/unictype/test-categ_Zp.c: Likewise.
8467         * tests/unictype/test-categ_Zs.c: Likewise.
8468         * tests/unictype/test-ctype_alnum.c: Likewise.
8469         * tests/unictype/test-ctype_alpha.c: Likewise.
8470         * tests/unictype/test-ctype_blank.c: Likewise.
8471         * tests/unictype/test-ctype_cntrl.c: Likewise.
8472         * tests/unictype/test-ctype_digit.c: Likewise.
8473         * tests/unictype/test-ctype_graph.c: Likewise.
8474         * tests/unictype/test-ctype_lower.c: Likewise.
8475         * tests/unictype/test-ctype_print.c: Likewise.
8476         * tests/unictype/test-ctype_punct.c: Likewise.
8477         * tests/unictype/test-ctype_space.c: Likewise.
8478         * tests/unictype/test-ctype_upper.c: Likewise.
8479         * tests/unictype/test-ctype_xdigit.c: Likewise.
8480         * tests/unictype/test-decdigit.h: Likewise.
8481         * tests/unictype/test-digit.h: Likewise.
8482         * tests/unictype/test-numeric.h: Likewise.
8483         * tests/unictype/test-pr_alphabetic.c: Likewise.
8484         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
8485         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8486         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8487         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
8488         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8489         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
8490         * tests/unictype/test-pr_bidi_control.c: Likewise.
8491         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
8492         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
8493         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8494         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8495         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8496         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8497         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8498         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8499         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
8500         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
8501         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
8502         * tests/unictype/test-pr_combining.c: Likewise.
8503         * tests/unictype/test-pr_composite.c: Likewise.
8504         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8505         * tests/unictype/test-pr_dash.c: Likewise.
8506         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8507         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
8508         * tests/unictype/test-pr_deprecated.c: Likewise.
8509         * tests/unictype/test-pr_diacritic.c: Likewise.
8510         * tests/unictype/test-pr_extender.c: Likewise.
8511         * tests/unictype/test-pr_format_control.c: Likewise.
8512         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8513         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8514         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8515         * tests/unictype/test-pr_hex_digit.c: Likewise.
8516         * tests/unictype/test-pr_hyphen.c: Likewise.
8517         * tests/unictype/test-pr_id_continue.c: Likewise.
8518         * tests/unictype/test-pr_id_start.c: Likewise.
8519         * tests/unictype/test-pr_ideographic.c: Likewise.
8520         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
8521         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
8522         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8523         * tests/unictype/test-pr_iso_control.c: Likewise.
8524         * tests/unictype/test-pr_join_control.c: Likewise.
8525         * tests/unictype/test-pr_left_of_pair.c: Likewise.
8526         * tests/unictype/test-pr_line_separator.c: Likewise.
8527         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8528         * tests/unictype/test-pr_lowercase.c: Likewise.
8529         * tests/unictype/test-pr_math.c: Likewise.
8530         * tests/unictype/test-pr_non_break.c: Likewise.
8531         * tests/unictype/test-pr_not_a_character.c: Likewise.
8532         * tests/unictype/test-pr_numeric.c: Likewise.
8533         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8534         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
8535         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
8536         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8537         * tests/unictype/test-pr_other_id_start.c: Likewise.
8538         * tests/unictype/test-pr_other_lowercase.c: Likewise.
8539         * tests/unictype/test-pr_other_math.c: Likewise.
8540         * tests/unictype/test-pr_other_uppercase.c: Likewise.
8541         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
8542         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
8543         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
8544         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
8545         * tests/unictype/test-pr_private_use.c: Likewise.
8546         * tests/unictype/test-pr_punctuation.c: Likewise.
8547         * tests/unictype/test-pr_quotation_mark.c: Likewise.
8548         * tests/unictype/test-pr_radical.c: Likewise.
8549         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8550         * tests/unictype/test-pr_soft_dotted.c: Likewise.
8551         * tests/unictype/test-pr_space.c: Likewise.
8552         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8553         * tests/unictype/test-pr_titlecase.c: Likewise.
8554         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8555         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8556         * tests/unictype/test-pr_uppercase.c: Likewise.
8557         * tests/unictype/test-pr_variation_selector.c: Likewise.
8558         * tests/unictype/test-pr_white_space.c: Likewise.
8559         * tests/unictype/test-pr_xid_continue.c: Likewise.
8560         * tests/unictype/test-pr_xid_start.c: Likewise.
8561         * tests/unictype/test-pr_zero_width.c: Likewise.
8562         * tests/unictype/test-sy_c_whitespace.c: Likewise.
8563         * tests/unictype/test-sy_java_whitespace.c: Likewise.
8564
8565 2007-11-12  Bruno Haible  <bruno@clisp.org>
8566
8567         Unicode character classification functions.
8568         * lib/unictype.h: New file.
8569         * modules/unictype/base: New file.
8570         * modules/unictype/category-L: New file.
8571         * modules/unictype/category-Lu: New file.
8572         * modules/unictype/category-Ll: New file.
8573         * modules/unictype/category-Lt: New file.
8574         * modules/unictype/category-Lm: New file.
8575         * modules/unictype/category-Lo: New file.
8576         * modules/unictype/category-M: New file.
8577         * modules/unictype/category-Mn: New file.
8578         * modules/unictype/category-Mc: New file.
8579         * modules/unictype/category-Me: New file.
8580         * modules/unictype/category-N: New file.
8581         * modules/unictype/category-Nd: New file.
8582         * modules/unictype/category-Nl: New file.
8583         * modules/unictype/category-No: New file.
8584         * modules/unictype/category-P: New file.
8585         * modules/unictype/category-Pc: New file.
8586         * modules/unictype/category-Pd: New file.
8587         * modules/unictype/category-Ps: New file.
8588         * modules/unictype/category-Pe: New file.
8589         * modules/unictype/category-Pi: New file.
8590         * modules/unictype/category-Pf: New file.
8591         * modules/unictype/category-Po: New file.
8592         * modules/unictype/category-S: New file.
8593         * modules/unictype/category-Sm: New file.
8594         * modules/unictype/category-Sc: New file.
8595         * modules/unictype/category-Sk: New file.
8596         * modules/unictype/category-So: New file.
8597         * modules/unictype/category-Z: New file.
8598         * modules/unictype/category-Zs: New file.
8599         * modules/unictype/category-Zl: New file.
8600         * modules/unictype/category-Zp: New file.
8601         * modules/unictype/category-C: New file.
8602         * modules/unictype/category-Cc: New file.
8603         * modules/unictype/category-Cf: New file.
8604         * modules/unictype/category-Cs: New file.
8605         * modules/unictype/category-Co: New file.
8606         * modules/unictype/category-Cn: New file.
8607         * modules/unictype/category-or: New file.
8608         * modules/unictype/category-of: New file.
8609         * modules/unictype/category-test: New file.
8610         * modules/unictype/category-test-withtable: New file.
8611         * modules/unictype/category-byname: New file.
8612         * modules/unictype/category-none: New file.
8613         * modules/unictype/category-and: New file.
8614         * modules/unictype/category-and-not: New file.
8615         * modules/unictype/category-name: New file.
8616         * modules/unictype/combining-class: New file.
8617         * modules/unictype/category-all: New file.
8618         * modules/unictype/bidicategory-all: New file.
8619         * modules/unictype/bidicategory-byname: New file.
8620         * modules/unictype/bidicategory-name: New file.
8621         * modules/unictype/bidicategory-of: New file.
8622         * modules/unictype/bidicategory-test: New file.
8623         * modules/unictype/decimal-digit: New file.
8624         * modules/unictype/digit: New file.
8625         * modules/unictype/numeric: New file.
8626         * modules/unictype/mirror: New file.
8627         * modules/unictype/property-white-space: New file.
8628         * modules/unictype/property-alphabetic: New file.
8629         * modules/unictype/property-other-alphabetic: New file.
8630         * modules/unictype/property-not-a-character: New file.
8631         * modules/unictype/property-default-ignorable-code-point: New file.
8632         * modules/unictype/property-other-default-ignorable-code-point: New
8633         file.
8634         * modules/unictype/property-deprecated: New file.
8635         * modules/unictype/property-logical-order-exception: New file.
8636         * modules/unictype/property-variation-selector: New file.
8637         * modules/unictype/property-private-use: New file.
8638         * modules/unictype/property-unassigned-code-value: New file.
8639         * modules/unictype/property-uppercase: New file.
8640         * modules/unictype/property-other-uppercase: New file.
8641         * modules/unictype/property-lowercase: New file.
8642         * modules/unictype/property-other-lowercase: New file.
8643         * modules/unictype/property-titlecase: New file.
8644         * modules/unictype/property-soft-dotted: New file.
8645         * modules/unictype/property-id-start: New file.
8646         * modules/unictype/property-other-id-start: New file.
8647         * modules/unictype/property-id-continue: New file.
8648         * modules/unictype/property-other-id-continue: New file.
8649         * modules/unictype/property-xid-start: New file.
8650         * modules/unictype/property-xid-continue: New file.
8651         * modules/unictype/property-pattern-white-space: New file.
8652         * modules/unictype/property-pattern-syntax: New file.
8653         * modules/unictype/property-join-control: New file.
8654         * modules/unictype/property-grapheme-base: New file.
8655         * modules/unictype/property-grapheme-extend: New file.
8656         * modules/unictype/property-other-grapheme-extend: New file.
8657         * modules/unictype/property-grapheme-link: New file.
8658         * modules/unictype/property-bidi-control: New file.
8659         * modules/unictype/property-bidi-left-to-right: New file.
8660         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
8661         * modules/unictype/property-bidi-arabic-right-to-left: New file.
8662         * modules/unictype/property-bidi-european-digit: New file.
8663         * modules/unictype/property-bidi-eur-num-separator: New file.
8664         * modules/unictype/property-bidi-eur-num-terminator: New file.
8665         * modules/unictype/property-bidi-arabic-digit: New file.
8666         * modules/unictype/property-bidi-common-separator: New file.
8667         * modules/unictype/property-bidi-block-separator: New file.
8668         * modules/unictype/property-bidi-segment-separator: New file.
8669         * modules/unictype/property-bidi-whitespace: New file.
8670         * modules/unictype/property-bidi-non-spacing-mark: New file.
8671         * modules/unictype/property-bidi-boundary-neutral: New file.
8672         * modules/unictype/property-bidi-pdf: New file.
8673         * modules/unictype/property-bidi-embedding-or-override: New file.
8674         * modules/unictype/property-bidi-other-neutral: New file.
8675         * modules/unictype/property-hex-digit: New file.
8676         * modules/unictype/property-ascii-hex-digit: New file.
8677         * modules/unictype/property-ideographic: New file.
8678         * modules/unictype/property-unified-ideograph: New file.
8679         * modules/unictype/property-radical: New file.
8680         * modules/unictype/property-ids-binary-operator: New file.
8681         * modules/unictype/property-ids-trinary-operator: New file.
8682         * modules/unictype/property-zero-width: New file.
8683         * modules/unictype/property-space: New file.
8684         * modules/unictype/property-non-break: New file.
8685         * modules/unictype/property-iso-control: New file.
8686         * modules/unictype/property-format-control: New file.
8687         * modules/unictype/property-dash: New file.
8688         * modules/unictype/property-hyphen: New file.
8689         * modules/unictype/property-punctuation: New file.
8690         * modules/unictype/property-line-separator: New file.
8691         * modules/unictype/property-paragraph-separator: New file.
8692         * modules/unictype/property-quotation-mark: New file.
8693         * modules/unictype/property-sentence-terminal: New file.
8694         * modules/unictype/property-terminal-punctuation: New file.
8695         * modules/unictype/property-currency-symbol: New file.
8696         * modules/unictype/property-math: New file.
8697         * modules/unictype/property-other-math: New file.
8698         * modules/unictype/property-paired-punctuation: New file.
8699         * modules/unictype/property-left-of-pair: New file.
8700         * modules/unictype/property-combining: New file.
8701         * modules/unictype/property-composite: New file.
8702         * modules/unictype/property-decimal-digit: New file.
8703         * modules/unictype/property-numeric: New file.
8704         * modules/unictype/property-diacritic: New file.
8705         * modules/unictype/property-extender: New file.
8706         * modules/unictype/property-ignorable-control: New file.
8707         * modules/unictype/property-test: New file.
8708         * modules/unictype/property-byname: New file.
8709         * modules/unictype/property-all: New file.
8710         * modules/unictype/scripts: New file.
8711         * modules/unictype/scripts-all: New file.
8712         * modules/unictype/block-of: New file.
8713         * modules/unictype/block-test: New file.
8714         * modules/unictype/block-list: New file.
8715         * modules/unictype/block-all: New file.
8716         * modules/unictype/syntax-c-whitespace: New file.
8717         * modules/unictype/syntax-java-whitespace: New file.
8718         * modules/unictype/syntax-c-ident: New file.
8719         * modules/unictype/syntax-java-ident: New file.
8720         * modules/unictype/ctype-alnum: New file.
8721         * modules/unictype/ctype-alpha: New file.
8722         * modules/unictype/ctype-cntrl: New file.
8723         * modules/unictype/ctype-digit: New file.
8724         * modules/unictype/ctype-graph: New file.
8725         * modules/unictype/ctype-lower: New file.
8726         * modules/unictype/ctype-print: New file.
8727         * modules/unictype/ctype-punct: New file.
8728         * modules/unictype/ctype-space: New file.
8729         * modules/unictype/ctype-upper: New file.
8730         * modules/unictype/ctype-xdigit: New file.
8731         * modules/unictype/ctype-blank: New file.
8732         * lib/unictype/bidi_byname.c: New file.
8733         * lib/unictype/bidi_name.c: New file.
8734         * lib/unictype/bidi_of.c: New file.
8735         * lib/unictype/bidi_test.c: New file.
8736         * lib/unictype/bitmap.h: New file.
8737         * lib/unictype/block_test.c: New file.
8738         * lib/unictype/blocks.c: New file.
8739         * lib/unictype/categ_C.c: New file.
8740         * lib/unictype/categ_Cc.c: New file.
8741         * lib/unictype/categ_Cf.c: New file.
8742         * lib/unictype/categ_Cn.c: New file.
8743         * lib/unictype/categ_Co.c: New file.
8744         * lib/unictype/categ_Cs.c: New file.
8745         * lib/unictype/categ_L.c: New file.
8746         * lib/unictype/categ_Ll.c: New file.
8747         * lib/unictype/categ_Lm.c: New file.
8748         * lib/unictype/categ_Lo.c: New file.
8749         * lib/unictype/categ_Lt.c: New file.
8750         * lib/unictype/categ_Lu.c: New file.
8751         * lib/unictype/categ_M.c: New file.
8752         * lib/unictype/categ_Mc.c: New file.
8753         * lib/unictype/categ_Me.c: New file.
8754         * lib/unictype/categ_Mn.c: New file.
8755         * lib/unictype/categ_N.c: New file.
8756         * lib/unictype/categ_Nd.c: New file.
8757         * lib/unictype/categ_Nl.c: New file.
8758         * lib/unictype/categ_No.c: New file.
8759         * lib/unictype/categ_P.c: New file.
8760         * lib/unictype/categ_Pc.c: New file.
8761         * lib/unictype/categ_Pd.c: New file.
8762         * lib/unictype/categ_Pe.c: New file.
8763         * lib/unictype/categ_Pf.c: New file.
8764         * lib/unictype/categ_Pi.c: New file.
8765         * lib/unictype/categ_Po.c: New file.
8766         * lib/unictype/categ_Ps.c: New file.
8767         * lib/unictype/categ_S.c: New file.
8768         * lib/unictype/categ_Sc.c: New file.
8769         * lib/unictype/categ_Sk.c: New file.
8770         * lib/unictype/categ_Sm.c: New file.
8771         * lib/unictype/categ_So.c: New file.
8772         * lib/unictype/categ_Z.c: New file.
8773         * lib/unictype/categ_Zl.c: New file.
8774         * lib/unictype/categ_Zp.c: New file.
8775         * lib/unictype/categ_Zs.c: New file.
8776         * lib/unictype/categ_and.c: New file.
8777         * lib/unictype/categ_and_not.c: New file.
8778         * lib/unictype/categ_byname.c: New file.
8779         * lib/unictype/categ_name.c: New file.
8780         * lib/unictype/categ_none.c: New file.
8781         * lib/unictype/categ_of.c: New file.
8782         * lib/unictype/categ_or.c: New file.
8783         * lib/unictype/categ_test.c: New file.
8784         * lib/unictype/combining.c: New file.
8785         * lib/unictype/ctype_alnum.c: New file.
8786         * lib/unictype/ctype_alpha.c: New file.
8787         * lib/unictype/ctype_blank.c: New file.
8788         * lib/unictype/ctype_cntrl.c: New file.
8789         * lib/unictype/ctype_digit.c: New file.
8790         * lib/unictype/ctype_graph.c: New file.
8791         * lib/unictype/ctype_lower.c: New file.
8792         * lib/unictype/ctype_print.c: New file.
8793         * lib/unictype/ctype_punct.c: New file.
8794         * lib/unictype/ctype_space.c: New file.
8795         * lib/unictype/ctype_upper.c: New file.
8796         * lib/unictype/ctype_xdigit.c: New file.
8797         * lib/unictype/decdigit.c: New file.
8798         * lib/unictype/digit.c: New file.
8799         * lib/unictype/identsyntaxmap.h: New file.
8800         * lib/unictype/mirror.c: New file.
8801         * lib/unictype/numeric.c: New file.
8802         * lib/unictype/pr_alphabetic.c: New file.
8803         * lib/unictype/pr_ascii_hex_digit.c: New file.
8804         * lib/unictype/pr_bidi_arabic_digit.c: New file.
8805         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
8806         * lib/unictype/pr_bidi_block_separator.c: New file.
8807         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
8808         * lib/unictype/pr_bidi_common_separator.c: New file.
8809         * lib/unictype/pr_bidi_control.c: New file.
8810         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
8811         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
8812         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
8813         * lib/unictype/pr_bidi_european_digit.c: New file.
8814         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
8815         * lib/unictype/pr_bidi_left_to_right.c: New file.
8816         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
8817         * lib/unictype/pr_bidi_other_neutral.c: New file.
8818         * lib/unictype/pr_bidi_pdf.c: New file.
8819         * lib/unictype/pr_bidi_segment_separator.c: New file.
8820         * lib/unictype/pr_bidi_whitespace.c: New file.
8821         * lib/unictype/pr_byname.c: New file.
8822         * lib/unictype/pr_byname.gperf: New file.
8823         * lib/unictype/pr_combining.c: New file.
8824         * lib/unictype/pr_composite.c: New file.
8825         * lib/unictype/pr_currency_symbol.c: New file.
8826         * lib/unictype/pr_dash.c: New file.
8827         * lib/unictype/pr_decimal_digit.c: New file.
8828         * lib/unictype/pr_default_ignorable_code_point.c: New file.
8829         * lib/unictype/pr_deprecated.c: New file.
8830         * lib/unictype/pr_diacritic.c: New file.
8831         * lib/unictype/pr_extender.c: New file.
8832         * lib/unictype/pr_format_control.c: New file.
8833         * lib/unictype/pr_grapheme_base.c: New file.
8834         * lib/unictype/pr_grapheme_extend.c: New file.
8835         * lib/unictype/pr_grapheme_link.c: New file.
8836         * lib/unictype/pr_hex_digit.c: New file.
8837         * lib/unictype/pr_hyphen.c: New file.
8838         * lib/unictype/pr_id_continue.c: New file.
8839         * lib/unictype/pr_id_start.c: New file.
8840         * lib/unictype/pr_ideographic.c: New file.
8841         * lib/unictype/pr_ids_binary_operator.c: New file.
8842         * lib/unictype/pr_ids_trinary_operator.c: New file.
8843         * lib/unictype/pr_ignorable_control.c: New file.
8844         * lib/unictype/pr_iso_control.c: New file.
8845         * lib/unictype/pr_join_control.c: New file.
8846         * lib/unictype/pr_left_of_pair.c: New file.
8847         * lib/unictype/pr_line_separator.c: New file.
8848         * lib/unictype/pr_logical_order_exception.c: New file.
8849         * lib/unictype/pr_lowercase.c: New file.
8850         * lib/unictype/pr_math.c: New file.
8851         * lib/unictype/pr_non_break.c: New file.
8852         * lib/unictype/pr_not_a_character.c: New file.
8853         * lib/unictype/pr_numeric.c: New file.
8854         * lib/unictype/pr_other_alphabetic.c: New file.
8855         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
8856         * lib/unictype/pr_other_grapheme_extend.c: New file.
8857         * lib/unictype/pr_other_id_continue.c: New file.
8858         * lib/unictype/pr_other_id_start.c: New file.
8859         * lib/unictype/pr_other_lowercase.c: New file.
8860         * lib/unictype/pr_other_math.c: New file.
8861         * lib/unictype/pr_other_uppercase.c: New file.
8862         * lib/unictype/pr_paired_punctuation.c: New file.
8863         * lib/unictype/pr_paragraph_separator.c: New file.
8864         * lib/unictype/pr_pattern_syntax.c: New file.
8865         * lib/unictype/pr_pattern_white_space.c: New file.
8866         * lib/unictype/pr_private_use.c: New file.
8867         * lib/unictype/pr_punctuation.c: New file.
8868         * lib/unictype/pr_quotation_mark.c: New file.
8869         * lib/unictype/pr_radical.c: New file.
8870         * lib/unictype/pr_sentence_terminal.c: New file.
8871         * lib/unictype/pr_soft_dotted.c: New file.
8872         * lib/unictype/pr_space.c: New file.
8873         * lib/unictype/pr_terminal_punctuation.c: New file.
8874         * lib/unictype/pr_test.c: New file.
8875         * lib/unictype/pr_titlecase.c: New file.
8876         * lib/unictype/pr_unassigned_code_value.c: New file.
8877         * lib/unictype/pr_unified_ideograph.c: New file.
8878         * lib/unictype/pr_uppercase.c: New file.
8879         * lib/unictype/pr_variation_selector.c: New file.
8880         * lib/unictype/pr_white_space.c: New file.
8881         * lib/unictype/pr_xid_continue.c: New file.
8882         * lib/unictype/pr_xid_start.c: New file.
8883         * lib/unictype/pr_zero_width.c: New file.
8884         * lib/unictype/scripts.c: New file.
8885         * lib/unictype/sy_c_ident.c: New file.
8886         * lib/unictype/sy_c_whitespace.c: New file.
8887         * lib/unictype/sy_java_ident.c: New file.
8888         * lib/unictype/sy_java_whitespace.c: New file.
8889
8890         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
8891         Unicode 5.0.0.
8892         * lib/unictype/blocks.h: Likewise.
8893         * lib/unictype/categ_C.h: Likewise.
8894         * lib/unictype/categ_Cc.h: Likewise.
8895         * lib/unictype/categ_Cf.h: Likewise.
8896         * lib/unictype/categ_Cn.h: Likewise.
8897         * lib/unictype/categ_Co.h: Likewise.
8898         * lib/unictype/categ_Cs.h: Likewise.
8899         * lib/unictype/categ_L.h: Likewise.
8900         * lib/unictype/categ_Ll.h: Likewise.
8901         * lib/unictype/categ_Lm.h: Likewise.
8902         * lib/unictype/categ_Lo.h: Likewise.
8903         * lib/unictype/categ_Lt.h: Likewise.
8904         * lib/unictype/categ_Lu.h: Likewise.
8905         * lib/unictype/categ_M.h: Likewise.
8906         * lib/unictype/categ_Mc.h: Likewise.
8907         * lib/unictype/categ_Me.h: Likewise.
8908         * lib/unictype/categ_Mn.h: Likewise.
8909         * lib/unictype/categ_N.h: Likewise.
8910         * lib/unictype/categ_Nd.h: Likewise.
8911         * lib/unictype/categ_Nl.h: Likewise.
8912         * lib/unictype/categ_No.h: Likewise.
8913         * lib/unictype/categ_P.h: Likewise.
8914         * lib/unictype/categ_Pc.h: Likewise.
8915         * lib/unictype/categ_Pd.h: Likewise.
8916         * lib/unictype/categ_Pe.h: Likewise.
8917         * lib/unictype/categ_Pf.h: Likewise.
8918         * lib/unictype/categ_Pi.h: Likewise.
8919         * lib/unictype/categ_Po.h: Likewise.
8920         * lib/unictype/categ_Ps.h: Likewise.
8921         * lib/unictype/categ_S.h: Likewise.
8922         * lib/unictype/categ_Sc.h: Likewise.
8923         * lib/unictype/categ_Sk.h: Likewise.
8924         * lib/unictype/categ_Sm.h: Likewise.
8925         * lib/unictype/categ_So.h: Likewise.
8926         * lib/unictype/categ_Z.h: Likewise.
8927         * lib/unictype/categ_Zl.h: Likewise.
8928         * lib/unictype/categ_Zp.h: Likewise.
8929         * lib/unictype/categ_Zs.h: Likewise.
8930         * lib/unictype/categ_of.h: Likewise.
8931         * lib/unictype/combining.h: Likewise.
8932         * lib/unictype/ctype_alnum.h: Likewise.
8933         * lib/unictype/ctype_alpha.h: Likewise.
8934         * lib/unictype/ctype_blank.h: Likewise.
8935         * lib/unictype/ctype_cntrl.h: Likewise.
8936         * lib/unictype/ctype_digit.h: Likewise.
8937         * lib/unictype/ctype_graph.h: Likewise.
8938         * lib/unictype/ctype_lower.h: Likewise.
8939         * lib/unictype/ctype_print.h: Likewise.
8940         * lib/unictype/ctype_punct.h: Likewise.
8941         * lib/unictype/ctype_space.h: Likewise.
8942         * lib/unictype/ctype_upper.h: Likewise.
8943         * lib/unictype/ctype_xdigit.h: Likewise.
8944         * lib/unictype/decdigit.h: Likewise.
8945         * lib/unictype/digit.h: Likewise.
8946         * lib/unictype/mirror.h: Likewise.
8947         * lib/unictype/numeric.h: Likewise.
8948         * lib/unictype/pr_alphabetic.h: Likewise.
8949         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8950         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8951         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8952         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8953         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8954         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8955         * lib/unictype/pr_bidi_control.h: Likewise.
8956         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8957         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8958         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8959         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8960         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8961         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8962         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8963         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8964         * lib/unictype/pr_bidi_pdf.h: Likewise.
8965         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8966         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8967         * lib/unictype/pr_combining.h: Likewise.
8968         * lib/unictype/pr_composite.h: Likewise.
8969         * lib/unictype/pr_currency_symbol.h: Likewise.
8970         * lib/unictype/pr_dash.h: Likewise.
8971         * lib/unictype/pr_decimal_digit.h: Likewise.
8972         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8973         * lib/unictype/pr_deprecated.h: Likewise.
8974         * lib/unictype/pr_diacritic.h: Likewise.
8975         * lib/unictype/pr_extender.h: Likewise.
8976         * lib/unictype/pr_format_control.h: Likewise.
8977         * lib/unictype/pr_grapheme_base.h: Likewise.
8978         * lib/unictype/pr_grapheme_extend.h: Likewise.
8979         * lib/unictype/pr_grapheme_link.h: Likewise.
8980         * lib/unictype/pr_hex_digit.h: Likewise.
8981         * lib/unictype/pr_hyphen.h: Likewise.
8982         * lib/unictype/pr_id_continue.h: Likewise.
8983         * lib/unictype/pr_id_start.h: Likewise.
8984         * lib/unictype/pr_ideographic.h: Likewise.
8985         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8986         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8987         * lib/unictype/pr_ignorable_control.h: Likewise.
8988         * lib/unictype/pr_iso_control.h: Likewise.
8989         * lib/unictype/pr_join_control.h: Likewise.
8990         * lib/unictype/pr_left_of_pair.h: Likewise.
8991         * lib/unictype/pr_line_separator.h: Likewise.
8992         * lib/unictype/pr_logical_order_exception.h: Likewise.
8993         * lib/unictype/pr_lowercase.h: Likewise.
8994         * lib/unictype/pr_math.h: Likewise.
8995         * lib/unictype/pr_non_break.h: Likewise.
8996         * lib/unictype/pr_not_a_character.h: Likewise.
8997         * lib/unictype/pr_numeric.h: Likewise.
8998         * lib/unictype/pr_other_alphabetic.h: Likewise.
8999         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9000         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9001         * lib/unictype/pr_other_id_continue.h: Likewise.
9002         * lib/unictype/pr_other_id_start.h: Likewise.
9003         * lib/unictype/pr_other_lowercase.h: Likewise.
9004         * lib/unictype/pr_other_math.h: Likewise.
9005         * lib/unictype/pr_other_uppercase.h: Likewise.
9006         * lib/unictype/pr_paired_punctuation.h: Likewise.
9007         * lib/unictype/pr_paragraph_separator.h: Likewise.
9008         * lib/unictype/pr_pattern_syntax.h: Likewise.
9009         * lib/unictype/pr_pattern_white_space.h: Likewise.
9010         * lib/unictype/pr_private_use.h: Likewise.
9011         * lib/unictype/pr_punctuation.h: Likewise.
9012         * lib/unictype/pr_quotation_mark.h: Likewise.
9013         * lib/unictype/pr_radical.h: Likewise.
9014         * lib/unictype/pr_sentence_terminal.h: Likewise.
9015         * lib/unictype/pr_soft_dotted.h: Likewise.
9016         * lib/unictype/pr_space.h: Likewise.
9017         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9018         * lib/unictype/pr_titlecase.h: Likewise.
9019         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9020         * lib/unictype/pr_unified_ideograph.h: Likewise.
9021         * lib/unictype/pr_uppercase.h: Likewise.
9022         * lib/unictype/pr_variation_selector.h: Likewise.
9023         * lib/unictype/pr_white_space.h: Likewise.
9024         * lib/unictype/pr_xid_continue.h: Likewise.
9025         * lib/unictype/pr_xid_start.h: Likewise.
9026         * lib/unictype/pr_zero_width.h: Likewise.
9027         * lib/unictype/scripts.h: Likewise.
9028         * lib/unictype/scripts_byname.gperf: Likewise.
9029         * lib/unictype/sy_c_ident.h: Likewise.
9030         * lib/unictype/sy_c_whitespace.h: Likewise.
9031         * lib/unictype/sy_java_ident.h: Likewise.
9032         * lib/unictype/sy_java_whitespace.h: Likewise.
9033
9034         * lib/unictype/Makefile: New file.
9035         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
9036         glibc.
9037         * lib/unictype/3level.h: New file, copied from glibc.
9038         * lib/unictype/3levelbit.h: New file.
9039
9040 2007-11-11  Bruno Haible  <bruno@clisp.org>
9041
9042         * modules/gperf: New file.
9043         * modules/iconv_open (Depends-on): Add it.
9044         (Makefile.am): Remove the GPERF definition.
9045
9046 2007-11-11  Bruno Haible  <bruno@clisp.org>
9047
9048         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
9049         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
9050
9051 2007-11-11  Bruno Haible  <bruno@clisp.org>
9052
9053         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
9054         (usage): Remove function.
9055
9056 2007-11-11  Bruno Haible  <bruno@clisp.org>
9057
9058         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
9059         gl_FUNC_CEILF_LIBS.
9060         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
9061         gl_FUNC_CEIL_LIBS.
9062         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
9063         gl_FUNC_CEILL_LIBS.
9064         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
9065         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
9066         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
9067
9068 2007-11-11  Bruno Haible  <bruno@clisp.org>
9069
9070         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
9071         roundf were declared but do not exist on functions.
9072         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
9073         roundl were declared but do not exist on functions.
9074         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
9075         HAVE_FLOORL_AND_CEILL, respectively.
9076         Needed for Sun C on Solaris 10.
9077
9078 2007-11-11  Bruno Haible  <bruno@clisp.org>
9079
9080         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
9081         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
9082         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
9083         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
9084         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
9085         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
9086         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
9087         HAVE_DECL_ROUNDF.
9088         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
9089         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
9090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
9091         of HAVE_DECL_ROUND*.
9092         * modules/math (Makefile.am): Update.
9093
9094 2007-11-10  Bruno Haible  <bruno@clisp.org>
9095
9096         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
9097         ptrdiff_t as m4/intl.m4.
9098
9099 2007-11-10  Jim Meyering  <meyering@redhat.com>
9100
9101         Avoid link failure for the argmatch test.
9102         * tests/test-argmatch.c (usage): Define function to avoid a link
9103         failure: argmatch_die requires a usage function.
9104
9105 2007-11-09  Bruno Haible  <bruno@clisp.org>
9106
9107         * doc/functions/snprintf.texi: Mention BeOS deficiency.
9108         * doc/functions/vsnprintf.texi: Likewise.
9109         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
9110         with a size argument < 2.
9111
9112 2007-11-09  Bruno Haible  <bruno@clisp.org>
9113
9114         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
9115         buffer. Fixes an inefficiency introduced on 2007-11-03.
9116
9117 2007-11-09  Bruno Haible  <bruno@clisp.org>
9118
9119         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
9120         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
9121
9122 2007-11-08  Jim Meyering  <meyering@redhat.com>
9123
9124         Change cache variable name prefix "jm_" to "gl_" everywhere.
9125         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
9126         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
9127         * m4/uptime.m4: s/gl_/jm_/
9128
9129 2007-11-07  Bruno Haible  <bruno@clisp.org>
9130
9131         Update to GNU gettext 0.17.
9132         * m4/intl.m4: Update to GNU gettext 0.17.
9133         * m4/po.m4: Likewise.
9134         * modules/gettext (Files): Remove m4/ulonglong.m4.
9135         (configure.ac): Require gettext infrastructure from version 0.17.
9136
9137 2007-11-06  Bruno Haible  <bruno@clisp.org>
9138
9139         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
9140         symbolic values are not defined in a public header.
9141         * lib/freadable.c (freadable) [QNX]: Likewise.
9142         * lib/freadahead.c (freadahead) [QNX]: Likewise.
9143         * lib/freading.c (freading) [QNX]: Likewise.
9144         * lib/fseterr.c (fseterr) [QNX]: Likewise.
9145         * lib/fwritable.c (fwritable) [QNX]: Likewise.
9146         * lib/fwriting.c (fwriting) [QNX]: Likewise.
9147         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
9148         Reported by Alain Magloire.
9149
9150         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
9151
9152 2007-11-05  Bruno Haible  <bruno@clisp.org>
9153
9154         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
9155         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
9156         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
9157         Reported by Eric Blake.
9158
9159 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9160             Bruno Haible  <bruno@clisp.org>
9161
9162         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
9163         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
9164         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
9165         (malloc): Undefine also before including <stdlib.h>.
9166         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
9167         Needed on OSF/1 4.0.
9168
9169 2007-11-05  Jim Meyering  <meyering@redhat.com>
9170
9171         git-version-gen: sync from coreutils.
9172         * build-aux/git-version-gen: Add comments.
9173         Change the first '-' to '.' in the snapshot version string,
9174         e.g., 6.9-377-08144 -> 6.9.377-08144
9175         Remove first parameter.
9176         Don't declare a version "-dirty" merely because a time
9177         stamp has changed.
9178
9179 2007-11-04  Bruno Haible  <bruno@clisp.org>
9180
9181         * lib/lock.h: Protect all macro definitions containing an 'if'
9182         statement through a "do { ... } while (0)".
9183         * lib/tls.h: Likewise.
9184
9185 2007-11-04  Bruno Haible  <bruno@clisp.org>
9186
9187         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
9188
9189 2007-11-04  Bruno Haible  <bruno@clisp.org>
9190
9191         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
9192         * modules/fprintf-posix (Depends-on): Add nocrash.
9193         * modules/snprintf-posix (Depends-on): Likewise.
9194         * modules/sprintf-posix (Depends-on): Likewise.
9195         * modules/vasnprintf-posix (Depends-on): Likewise.
9196         * modules/vasprintf-posix (Depends-on): Likewise.
9197         * modules/vfprintf-posix (Depends-on): Likewise.
9198         * modules/vsnprintf-posix (Depends-on): Likewise.
9199         * modules/vsprintf-posix (Depends-on): Likewise.
9200         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9201         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9202         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9203         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9204         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9205         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9206         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9207
9208 2007-11-04  Bruno Haible  <bruno@clisp.org>
9209
9210         * modules/nocrash: New file.
9211         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
9212         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
9213
9214 2007-11-04  Bruno Haible  <bruno@clisp.org>
9215
9216         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
9217         precision handling.
9218         * tests/test-vasprintf-posix.c (test_function): Likewise.
9219         * tests/test-snprintf-posix.h (test_function): Likewise.
9220         * tests/test-sprintf-posix.h (test_function): Likewise.
9221
9222         Fix *printf behaviour for large precisions on mingw and BeOS.
9223         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
9224         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
9225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
9226         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9227         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9228         gl_PRINTF_PRECISION and test its result. Invoke
9229         gl_PREREQ_VASNPRINTF_PRECISION.
9230         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9231         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9232         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9233         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9234         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9235         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9236         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9237         * doc/functions/fprintf.texi: Update.
9238         * doc/functions/printf.texi: Update.
9239         * doc/functions/snprintf.texi: Update.
9240         * doc/functions/sprintf.texi: Update.
9241         * doc/functions/vfprintf.texi: Update.
9242         * doc/functions/vprintf.texi: Update.
9243         * doc/functions/vsnprintf.texi: Update.
9244         * doc/functions/vsprintf.texi: Update.
9245
9246 2007-11-04  Bruno Haible  <bruno@clisp.org>
9247
9248         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
9249
9250 2007-11-04  Bruno Haible  <bruno@clisp.org>
9251
9252         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
9253         Reported by Sylvain Beucler <beuc@gnu.org>.
9254
9255 2007-11-03  Bruno Haible  <bruno@clisp.org>
9256
9257         * tests/test-fprintf-posix2.sh: New file.
9258         * tests/test-fprintf-posix2.c: New file.
9259         * modules/fprintf-posix-tests (Files): Add them.
9260         (TESTS): Add test-fprintf-posix2.sh.
9261         (configure.ac): Check for getrlimit and setrlimit.
9262         (check_PROGRAMS): Add test-fprintf-posix2.
9263
9264         * tests/test-printf-posix2.sh: New file.
9265         * tests/test-printf-posix2.c: New file.
9266         * modules/printf-posix-tests (Files): Add them.
9267         (TESTS): Add test-printf-posix2.sh.
9268         (configure.ac): Check for getrlimit and setrlimit.
9269         (check_PROGRAMS): Add test-printf-posix2.
9270
9271         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
9272         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
9273         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
9274         (decode_double): New function, copied from decode_long_double.
9275         (scale10_round_decimal_decoded): New function, extracted from
9276         scale10_round_decimal_long_double.
9277         (scale10_round_decimal_long_double): Use it.
9278         (scale10_round_decimal_double): New function.
9279         (floorlog10): New function.
9280         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
9281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
9282         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9283         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9284         gl_PRINTF_ENOMEM and test its result. Invoke
9285         gl_PREREQ_VASNPRINTF_ENOMEM.
9286         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9287         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9288         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9289         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9290         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9291         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9292         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9293         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
9294         * modules/snprintf-posix (Depends-on): Likewise.
9295         * modules/sprintf-posix (Depends-on): Likewise.
9296         * modules/vasnprintf-posix (Depends-on): Likewise.
9297         * modules/vasprintf-posix (Depends-on): Likewise.
9298         * modules/vfprintf-posix (Depends-on): Likewise.
9299         * modules/vsnprintf-posix (Depends-on): Likewise.
9300         * modules/vsprintf-posix (Depends-on): Likewise.
9301         * doc/functions/fprintf.texi: Update.
9302         * doc/functions/printf.texi: Update.
9303         * doc/functions/snprintf.texi: Update.
9304         * doc/functions/sprintf.texi: Update.
9305         * doc/functions/vfprintf.texi: Update.
9306         * doc/functions/vprintf.texi: Update.
9307         * doc/functions/vsnprintf.texi: Update.
9308         * doc/functions/vsprintf.texi: Update.
9309
9310 2007-11-03  Bruno Haible  <bruno@clisp.org>
9311
9312         * modules/frexp-nolibm-tests: New file.
9313
9314         * modules/frexp-nolibm: New file.
9315         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
9316
9317 2007-11-03  Bruno Haible  <bruno@clisp.org>
9318
9319         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
9320         value is C99 compliant.
9321         Needed for OSF/1 5.1.
9322
9323 2007-11-03  Bruno Haible  <bruno@clisp.org>
9324
9325         Fix out-of-memory handling of vasnprintf.
9326         * lib/printf-parse.c: Include <errno.h>.
9327         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
9328         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
9329         is already set.
9330
9331 2007-11-02  Eric Blake  <ebb9@byu.net>
9332
9333         Fix tests on cygwin.
9334         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
9335
9336 2007-11-01  Bruno Haible  <bruno@clisp.org>
9337
9338         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
9339         warning.
9340         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
9341         needed for POSIX compatibility.
9342
9343 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9344
9345         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
9346         for compatibility with GNU.
9347
9348 2007-11-01  Bruno Haible  <bruno@clisp.org>
9349
9350         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
9351         (putenv): Renamed from rpl_putenv. Change argument type from
9352         'const char *' to 'char *'.
9353         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
9354         of defining putenv in config.h, just set REPLACE_PUTENV.
9355         * modules/putenv (Depends-on): Add stdlib.
9356         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9357         (Include): Use <stdlib.h>.
9358         * lib/stdlib.in.h (putenv): New declaration.
9359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
9360         REPLACE_PUTENV.
9361         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
9362         REPLACE_PUTENV.
9363         Needed for MacOS X 10.5.0.
9364         Reported by Peter O'Gorman <peter@pogma.com>.
9365
9366 2007-11-01  Jim Meyering  <meyering@redhat.com>
9367
9368         Treat an empty date string exactly like "0".
9369         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
9370         if the remaining date string (to be parsed) is empty, use "0".
9371         Reported by Mischa Molhoek and discussed in this thread:
9372         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
9373
9374 2007-10-31  Bruno Haible  <bruno@clisp.org>
9375
9376         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
9377         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
9378         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
9379         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
9380         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
9381         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
9382
9383 2007-10-31  Bruno Haible  <bruno@clisp.org>
9384
9385         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
9386         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
9387         (AC_TYPE_LONG_LONG_INT): Use it.
9388         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
9389         it as well.
9390         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
9391         to m4/longlong.m4.
9392         * modules/stdint (Files): Remove m4/ulonglong.m4.
9393         * modules/strtoull (Files): Use m4/longlong.m4 instead of
9394         m4/ulonglong.m4.
9395         * modules/strtoumax (Files): Likewise.
9396
9397 2007-10-30  Bruno Haible  <bruno@clisp.org>
9398
9399         * modules/xvasprintf-posix: New file.
9400         Suggested by Eric Blake.
9401
9402 2007-10-30  Bruno Haible  <bruno@clisp.org>
9403
9404         * modules/xprintf-posix-tests: New file.
9405         * tests/test-xprintf-posix.sh: New file.
9406         * tests/test-xprintf-posix.c: New file.
9407         * tests/test-xfprintf-posix.c: New file.
9408
9409         * modules/xprintf-posix: New file.
9410
9411 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9412
9413         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
9414         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
9415         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
9416
9417 2007-10-29  Bruno Haible  <bruno@clisp.org>
9418
9419         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
9420         contain the special marker '_cv_'.
9421         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9422         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9423         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9424         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9425         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9426         Reported by Ralf Wildenhues.
9427
9428 2007-10-29  Bruno Haible  <bruno@clisp.org>
9429
9430         * gnulib-tool (func_import): When --lgpl is not specified, set
9431         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
9432         GPLv3.
9433         Reported by Simon Josefsson.
9434
9435 2007-10-28  Bruno Haible  <bruno@clisp.org>
9436
9437         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
9438         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
9439         HAVE_DECL_ISFINITE.
9440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9441         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
9442         HAVE_DECL_ISFINITE.
9443
9444 2007-10-28  Bruno Haible  <bruno@clisp.org>
9445
9446         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
9447         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
9448
9449 2007-10-28  Bruno Haible  <bruno@clisp.org>
9450
9451         Fix link errors with Sun C 5.0 on Solaris 10.
9452         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
9453         function is declared but not present in the compiler's libm.
9454         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9455         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9456         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
9457         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
9458         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
9459         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
9460         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
9461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9462         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
9463         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
9464         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
9465         HAVE_DECL_FLOORL.
9466
9467 2007-10-28  Bruno Haible  <bruno@clisp.org>
9468
9469         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
9470         gl_FUNC_FLOORL. Cache the result.
9471         (gl_FUNC_FLOORL): Use it.
9472         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
9473         gl_FUNC_CEILL. Cache the result.
9474         (gl_FUNC_CEILL): Use it.
9475
9476         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
9477         gl_FUNC_FLOOR. Cache the result.
9478         (gl_FUNC_FLOOR): Use it.
9479         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
9480         gl_FUNC_CEIL. Cache the result.
9481         (gl_FUNC_CEIL): Use it.
9482
9483         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
9484         gl_FUNC_FLOORF. Cache the result.
9485         (gl_FUNC_FLOORF): Use it.
9486         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
9487         gl_FUNC_CEILF. Cache the result.
9488         (gl_FUNC_CEILF): Use it.
9489
9490 2007-10-28  Bruno Haible  <bruno@clisp.org>
9491
9492         * gnulib-tool: Allow specifying the LGPL version number through
9493         --lgpl=2 or --lgpl=3.
9494         (func_usage): Document --lgpl with argument.
9495         Handle --lgpl=... arguments.
9496         (func_import): Recognize also gl_LGPL calls with an argument. When
9497         --lgpl=2 is used and the module's license is just LGPL, report an
9498         error. Set sed_transform_lib_file according to the lgpl variable. In
9499         the generated files, use --lgpl or gl_LGPL invocations with argument,
9500         if necessary.
9501         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
9502         an LGPv2+ license.
9503         * doc/gnulib-tool.texi (Modified imports): Update explanation of
9504         gl_LGPL macro.
9505
9506 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9507             Bruno Haible  <bruno@clisp.org>
9508
9509         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
9510         (u16_uctomb_aux): Likewise.
9511         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
9512         !HAVE_INLINE.
9513         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
9514
9515 2007-10-28  Bruno Haible  <bruno@clisp.org>
9516
9517         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
9518         Invoke AM_GETTEXT_OPTION if it exists.
9519         * modules/vasprintf: Likewise.
9520         * modules/verror: Likewise.
9521         * modules/xprintf: Likewise.
9522         * modules/xvasprintf: Likewise.
9523
9524 2007-10-27  Ben Pfaff  <blp@gnu.org>
9525
9526         * lib/math.in.h: Define isfinite macro and prototypes for
9527         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
9528         implementations.
9529         * m4/math_h.m4: New substitutions for isfinite module.
9530         * lib/isfinite.c: New file.
9531         * m4/isfinite.m4: New file.
9532         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
9533         * modules/isfinite: New file.
9534         * modules/isfinite-tests: New file.
9535         * tests/tests-isfinite.c: New file.
9536         * doc/functions/isfinite.texi: Mention isfinite module.
9537         * MODULES.html.sh: Mention new module.
9538
9539 2007-10-27  Ben Pfaff  <blp@gnu.org>
9540
9541         Ralf Wildenhues reported that Tru64 4.0D declares the round
9542         functions but does not have definitions.
9543         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
9544         cannot be found in any library, set the output variable to
9545         "missing" instead of "".
9546         * m4/round.m4: Also use our substitute if we cannot find round in
9547         any library, even if it is declared.
9548         * m4/roundf.m4: Likewise for roundf.
9549         * m4/roundl.m4: Likewise for roundl.
9550         * lib/math.in.h: Undefine roundf, round, roundl before defining
9551         their replacements, to allow for hypothetical systems where these
9552         may be defined as macros but not available in libraries.
9553
9554 2007-10-27  Bruno Haible  <bruno@clisp.org>
9555
9556         * doc/gnulib.texi: Invoke @firstparagraphindent.
9557         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
9558         changes in gnulib.
9559         (Source changes): New section.
9560
9561 2007-10-26  Bruno Haible  <bruno@clisp.org>
9562
9563         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
9564         borrowed from autoconf.
9565
9566 2007-10-26  Bruno Haible  <bruno@clisp.org>
9567
9568         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
9569         strerror returned the empty string. Needed on HP-UX 11.00.
9570
9571 2007-10-24  Micah Cowan  <micah@cowan.name>
9572
9573         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
9574         * build-aux/bootstrap: Remove support for now-unnecessary option,
9575         --cvs-user, and envvars CVS_USER, CVS_RSH.
9576
9577 2007-10-24  Jim Meyering  <meyering@redhat.com>
9578
9579         Avoid diagnostics from sha1sum when there is no cached checksum.
9580         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
9581         if the po.s1 file hasn't been created yet.
9582
9583         * build-aux/bootstrap: Sync from coreutils:
9584         2007-10-24  Jim Meyering  <meyering@redhat.com>
9585         Get gnulib from the git repository, not from an obsolete cvs one.
9586         * build-aux/bootstrap: Suggestion from Micah Cowan.
9587         2007-10-04  Jim Meyering  <jim@meyering.net>
9588         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
9589         (update_po_files): Work also when there are no .po files in po/.
9590
9591 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9592
9593         * README: Append ".git" to git and cg examples.
9594         Problem reported by Benoit Sigoure.
9595
9596 2007-10-23  Micah Cowan  <micah@cowan.name>
9597
9598         * users.txt: Add wget.
9599
9600 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9601
9602         Fix linking of some unistdio tests on FreeBSD.
9603         * modules/unistdio/u16-vsnprintf-tests
9604         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
9605         * modules/unistdio/u16-vsprintf-tests
9606         (test_u16_vsnprintf1_LDADD): Likewise.
9607         * modules/unistdio/u32-vsnprintf-tests
9608         (test_u32_vsnprintf1_LDADD): Likewise.
9609         * modules/unistdio/u32-vsprintf-tests
9610         (test_u32_vsprintf1_LDADD): Likewise.
9611         * modules/unistdio/u8-vsnprintf-tests
9612         (test_u8_vsnprintf1_LDADD): Likewise.
9613         * modules/unistdio/u8-vsprintf-tests
9614         (test_u8_vsprintf1_LDADD): Likewise.
9615         * modules/unistdio/ulc-vsnprintf-tests
9616         (test_ulc_vsnprintf1_LDADD): Likewise.
9617         * modules/unistdio/ulc-vsprintf-tests
9618         (test_ulc_vsprintf1_LDADD): Likewise.
9619
9620         Fix linking of some uniconv tests on FreeBSD.
9621         * modules/uniconv/u16-conv-from-enc-tests
9622         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
9623         * modules/uniconv/u16-conv-to-enc-tests
9624         (test_u16_conv_to_enc_LDADD): Likewise.
9625         * modules/uniconv/u16-strconv-from-enc-tests
9626         (test_u16_strconv_from_enc_LDADD): Likewise.
9627         * modules/uniconv/u16-strconv-to-enc-tests
9628         (test_u16_strconv_to_enc_LDADD): Likewise.
9629         * modules/uniconv/u32-conv-from-enc-tests
9630         (test_u32_conv_from_enc_LDADD): Likewise.
9631         * modules/uniconv/u32-conv-to-enc-tests
9632         (test_u32_conv_to_enc_LDADD): Likewise.
9633         * modules/uniconv/u32-strconv-from-enc-tests
9634         (test_u32_strconv_from_enc_LDADD): Likewise.
9635         * modules/uniconv/u32-strconv-to-enc-tests
9636         (test_u32_strconv_to_enc_LDADD): Likewise.
9637         * modules/uniconv/u8-conv-from-enc-tests
9638         (test_u8_conv_from_enc_LDADD): Likewise.
9639         * modules/uniconv/u8-conv-to-enc-tests
9640         (test_u8_conv_to_enc_LDADD): Likewise.
9641         * modules/uniconv/u8-strconv-from-enc-tests
9642         (test_u8_strconv_from_enc_LDADD): Likewise.
9643         * modules/uniconv/u8-strconv-to-enc-tests
9644         (test_u8_strconv_to_enc_LDADD): Likewise.
9645
9646 2007-10-22  Bruno Haible  <bruno@clisp.org>
9647
9648         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
9649         size.
9650
9651 2007-10-22  Eric Blake  <ebb9@byu.net>
9652
9653         Tweak x*printf documentation.
9654         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
9655         variable name and comments.
9656         Suggested by Bruno Haible.
9657
9658 2007-10-22  Bruno Haible  <bruno@clisp.org>
9659
9660         * lib/acl.c (copy_acl): Fix file name in comment.
9661
9662 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9663
9664         Fix Tru64 problem with stdbool.h.
9665         * lib/stdbool.in.h (false, true):
9666         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
9667         Don't declare as an enum in this situation; it runs afoul of Tru64.
9668         Problem reported by Steven M. Schweda in
9669         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
9670
9671 2007-10-22  Eric Blake  <ebb9@byu.net>
9672
9673         Also wrap vf?printf.
9674         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
9675         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
9676         (xvprintf, xvfprintf): New functions.
9677
9678 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9679
9680         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
9681         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
9682
9683         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
9684         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
9685
9686 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9687
9688         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
9689         by Bruno Haible.
9690
9691 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9692
9693         * lib/getloadavg.c
9694         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
9695         Undef `sys' after including sys/table.h, for Tru64 4.0D.
9696
9697         * tests/test-i-ring.c: Work for C89.
9698
9699 2007-10-22  Bruno Haible  <bruno@clisp.org>
9700
9701         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
9702         -1u, in preprocessor expression, so that we don't test for the bug
9703         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
9704         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
9705
9706 2007-10-22  Eric Blake  <ebb9@byu.net>
9707
9708         * tests/test-yesno.sh: Silence stderr during test.
9709
9710 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9711
9712         * modules/crypto/gc-camellia: New file.
9713
9714         * m4/gc-camellia.m4: New file.
9715
9716         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
9717
9718         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
9719
9720 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9721
9722         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
9723         --help to stdout.  Reported by sms@antinode.org (Steven
9724         M. Schweda).
9725
9726 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9727
9728         * users.txt: Fix link to libksba.
9729
9730 2007-10-21  Ben Pfaff  <blp@gnu.org>
9731
9732         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
9733         round.c roundf implementation that depends on floorf and ceilf to
9734         be tested unconditionally.
9735
9736 2007-10-21  Ben Pfaff  <blp@gnu.org>
9737
9738         * m4/check-libm-func.m4: Removed.
9739         * m4/check-math-lib.m4: New file.
9740         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
9741         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
9742         definition and lack of AC_LIBOBJ([roundf]).
9743         * m4/roundl.m4: Ditto, and similarly for roundl.
9744         * modules/round: Reference new m4 file.
9745         * modules/roundf: Ditto.
9746         * modules/roundl: Ditto.
9747         * tests/test-round2.c (main): Use ROUND instead of round.
9748         Bug report from Bruno Haible.
9749
9750 2007-10-21  Bruno Haible  <bruno@clisp.org>
9751
9752         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
9753         context.
9754
9755 2007-10-21  Bruno Haible  <bruno@clisp.org>
9756
9757         * tests/test-wcwidth.c (main): Allow negative result for some control
9758         characters.
9759
9760         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
9761         Needed on OSF/1 5.1.
9762
9763 2007-10-21  Bruno Haible  <bruno@clisp.org>
9764
9765         * tests/test-floorf1.c: Include isnanf.h.
9766         (main): Use isnanf() instead of isnan().
9767         * tests/test-ceilf1.c: Include isnanf.h.
9768         (main): Use isnanf() instead of isnan().
9769         * tests/test-truncf1.c: Include isnanf.h.
9770         (main): Use isnanf() instead of isnan().
9771         * tests/test-roundf1.c: Include isnanf.h.
9772         (main): Use isnanf() instead of isnan().
9773
9774 2007-10-21  Eric Blake  <ebb9@byu.net>
9775
9776         * users.txt: Update URL for m4.
9777
9778 2007-10-21  Bruno Haible  <bruno@clisp.org>
9779
9780         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
9781
9782 2007-10-21  Bruno Haible  <bruno@clisp.org>
9783
9784         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
9785         Git's management files if the CVS files are not present.
9786
9787 2007-10-20  Bruno Haible  <bruno@clisp.org>
9788
9789         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
9790         gcc-3.4.x.
9791
9792 2007-10-20  Ben Pfaff  <blp@gnu.org>
9793
9794         * lib/math.in.h: Declare round, roundf, roundl if we are providing
9795         implementations.
9796         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
9797         * lib/round.c: New file.
9798         * lib/roundf.c: New file.
9799         * lib/roundl.c: New file.
9800         * m4/round.m4: New file.
9801         * m4/roundf.m4: New file.
9802         * m4/roundl.m4: New file.
9803         * m4/check-libm-func-m4: New file.
9804         * modules/math: Replace round, roundf, roundl related @VARS@ in
9805         math.in.h.
9806         * modules/round: New file.
9807         * modules/round-tests: New file.
9808         * modules/roundf: New file.
9809         * modules/roundf-tests: New file.
9810         * modules/roundl: New file.
9811         * modules/roundl-tests: New file.
9812         * tests/test-round1.c: New file.
9813         * tests/test-round2.c: New file.
9814         * tests/test-roundf1.c: New file.
9815         * tests/test-roundf2.c: New file.
9816         * tests/test-roundl.c: New file.
9817         * doc/functions/round.texi: Mention round module.
9818         * doc/functions/roundf.texi: Mention roundf module.
9819         * doc/functions/roundl.texi: Mention roundl module.
9820         * MODULES.html.sh: Mention new modules.
9821         Thanks to Bruno Haible for suggestions.
9822
9823 2007-10-20  Jim Meyering  <meyering@redhat.com>
9824
9825         * lib/xprintf.c: Include <config.h> unconditionally.
9826
9827         Change xprintf's license to GPL.
9828         * modules/xprintf (License): s/LGPL/GPL/, since this module
9829         depends on modules (exit and exitfail) which are GPL.
9830         Suggestion from Bruno Haible.
9831
9832         xprintf fixes.
9833         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
9834         Use a clearer diagnostic.
9835         Patch from Bruno Haible.
9836
9837 2007-10-20  Bruno Haible  <bruno@clisp.org>
9838
9839         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
9840         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
9841         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9842
9843 2007-10-20  Bruno Haible  <bruno@clisp.org>
9844
9845         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
9846         precision in the comparison result > x - 1 or similar.
9847         * tests/test-ceilf2.c (correct_result_p): Likewise.
9848         * tests/test-truncf2.c (correct_result_p): Likewise.
9849         * tests/test-trunc2.c (correct_result_p): Likewise.
9850         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9851
9852 2007-10-20  Bruno Haible  <bruno@clisp.org>
9853
9854         * modules/ceil: New file.
9855         * m4/ceil.m4: New file.
9856         * doc/functions/ceil.texi: Mention the 'ceil' module.
9857
9858 2007-10-20  Bruno Haible  <bruno@clisp.org>
9859
9860         * modules/floor: New file.
9861         * m4/floor.m4: New file.
9862         * doc/functions/floor.texi: Mention the 'floor' module.
9863
9864 2007-10-20  Bruno Haible  <bruno@clisp.org>
9865
9866         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
9867         of %a.
9868         * modules/floorf-tests (Depends-on): Likewise.
9869         * modules/truncf-tests (Depends-on): Likewise.
9870         * modules/trunc-tests (Depends-on): Likewise.
9871         Reported by Ben Pfaff.
9872
9873 2007-10-19  Jim Meyering  <meyering@redhat.com>
9874
9875         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
9876         Don't bother testing specific errno values.  Just test ferror.
9877
9878         New module: xprintf
9879         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
9880
9881 2007-10-19  Bruno Haible  <bruno@clisp.org>
9882
9883         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
9884         syntax.
9885         * modules/javaexec (Makefile.am): Likewise.
9886         * modules/relocatable-prog (Makefile.am): Likewise.
9887         Suggested by Jim Meyering.
9888
9889 2007-10-18  Bruno Haible  <bruno@clisp.org>
9890
9891         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
9892         Reported by Jim Meyering.
9893
9894 2007-10-18  Eric Blake  <ebb9@byu.net>
9895
9896         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
9897
9898 2007-10-18  Bruno Haible  <bruno@clisp.org>
9899
9900         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
9901         the format string into writable memory. Needed in Fortify conditions.
9902
9903 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
9904             Bruno Haible  <bruno@clisp.org>
9905
9906         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
9907         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
9908         * modules/trim (Depends-on): Add mbchar.
9909         (configure.ac): Add gl_FUNC_MBRTOWC.
9910         (Makefile.am): Augment lib_SOURCES.
9911
9912 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
9913
9914         Modify glob.c to use fstatat and dirfd, to simplify it.
9915         Suggested by Eric Blake.
9916         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
9917         Don't include <stdbool.h>; not used.
9918         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
9919         (link_exists_p): Simplify implementation, since we can now assume
9920         dirfd and fstatat.
9921         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
9922
9923 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9924
9925         * gnulib-tool (func_get_dependencies): Fix sed script to
9926         match only tests.
9927
9928 2007-10-17  Bruno Haible  <bruno@clisp.org>
9929
9930         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
9931         allow locale names without encoding suffix.
9932         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9933         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9934
9935 2007-10-16  Bruno Haible  <bruno@clisp.org>
9936
9937         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
9938         * lib/getgroups.c (getgroups): Likewise.
9939         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
9940
9941 2007-10-16  Bruno Haible  <bruno@clisp.org>
9942
9943         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
9944         * modules/malloc-posix (License): Likewise.
9945         * modules/realloc-posix (License): Likewise.
9946         * modules/calloc-posix (License): Likewise.
9947         * modules/intprops (License): Change from GPL to LGPL, with
9948         Paul Eggert's approval.
9949
9950 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9951
9952         Merge glibc changes into lib/glob.c.
9953
9954         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
9955         2007-10-15 04:59:03 UTC.  Here are the changes:
9956
9957         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
9958
9959         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
9960
9961         * lib/glob.c: Add some branch prediction throughout.
9962
9963         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
9964
9965         [BZ #5103]
9966         * lib/glob.c (glob): Recognize patterns starting \/.
9967
9968         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
9969
9970         [BZ #3996]
9971         * lib/glob.c (attribute_hidden): Define if not defined.
9972         (glob): Unescape dirname, filename or username when needed and not
9973         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
9974         is NULL.  Handle unescaped [ in pattern without closing ].
9975         Don't pass GLOB_CHECK down to recursive glob for directories.
9976         (__glob_pattern_type): New function.
9977         (__glob_pattern_p): Implement using __glob_pattern_type.
9978         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9979         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9980         Remove unreachable code.
9981
9982         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
9983
9984         * lib/glob.c (glob_in_dir): Add some comments and asserts to
9985         explain why there are no leaks.
9986
9987         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9988
9989         [BZ #3253]
9990         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9991         time, rather allocate increasingly bigger arrays of pointers, if
9992         possible with alloca, if too large with malloc.
9993
9994 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9995
9996         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
9997         Problem reported by H.Merijn Brand in
9998         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
9999         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
10000         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10001
10002 2007-10-15  Bruno Haible  <bruno@clisp.org>
10003
10004         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
10005         with explicit rpl_ prefix.
10006         * lib/fopen.c (fopen): Likewise.
10007         * lib/freopen.c (freopen): Likewise.
10008         * lib/iconv.c (iconv): Likewise.
10009         * lib/iconv_close.c (iconv_close): Likewise.
10010
10011 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10012
10013         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
10014
10015 2007-10-15  Bruno Haible  <bruno@clisp.org>
10016
10017         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
10018         <stddef.h> instead of <stdlib.h> since we only need NULL.
10019         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10020
10021 2007-10-15  Bruno Haible  <bruno@clisp.org>
10022
10023         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
10024         Replace paragraph talking about LIBOBJS.
10025         Reported by Colin Watson <cjwatson@debian.org>.
10026
10027 2007-10-15  Bruno Haible  <bruno@clisp.org>
10028
10029         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
10030         <stdlib.h> before using NULL.
10031
10032 2007-10-15  Simon Josefsson  <simon@josefsson.org>
10033
10034         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
10035         Reported by Albert Chin <china@thewrittenword.com>.
10036
10037 2007-10-14  Bruno Haible  <bruno@clisp.org>
10038
10039         * modules/iconv_open-utf-tests: New file.
10040         * tests/test-iconv-utf.c: New file.
10041
10042         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
10043         * modules/iconv_open-utf: New file.
10044         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
10045         (iconv, iconv_close): New declarations.
10046         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
10047         be defined.
10048         (iconv_open): Add special handling of conversion between UTF-8 and
10049         UTF-{16,32}{BE,LE}.
10050         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
10051         * lib/iconv_close.c: New file.
10052         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
10053         gl_FUNC_ICONV_OPEN.
10054         (gl_FUNC_ICONV_OPEN): Use it.
10055         (gl_FUNC_ICONV_OPEN_UTF): New macro.
10056         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
10057         and REPLACE_ICONV_UTF.
10058         * modules/iconv_open (Depends-on): Add c-strcase.
10059         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
10060         ICONV_CONST.
10061         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
10062
10063 2007-10-13  Albert Chin  <china@thewrittenword.com>
10064             Bruno Haible  <bruno@clisp.org>
10065
10066         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
10067         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
10068
10069 2007-10-13  Bruno Haible  <bruno@clisp.org>
10070
10071         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
10072         defined, use the ISO C99 inline semantics.
10073         * lib/argp.h (ARGP_EI): Likewise.
10074
10075 2007-10-13  Bruno Haible  <bruno@clisp.org>
10076
10077         Handle 'inline' change in gcc 4.3.0.
10078         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
10079         argp_fmtstream_write, argp_fmtstream_set_lmargin,
10080         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
10081         argp_fmtstream_point): Disable 'extern' declaration if the function
10082         definition is going to be provided inline.
10083         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
10084         semantics, not the ISO C99 inline semantics.
10085         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
10086         'extern' declaration if the function definition is going to be provided
10087         inline.
10088         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
10089         the GNU C inline semantics, not the ISO C99 inline semantics. With
10090         GCC 4.2, avoid a warning.
10091
10092 2007-10-13  Bruno Haible  <bruno@clisp.org>
10093
10094         * lib/freading.h (freading): Enable the use of __freading for
10095         glibc >= 2.7.
10096         * lib/freading.c (freading): Likewise.
10097
10098 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10099
10100         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
10101         "warning: C99 inline functions are not supported; using GNU89".
10102
10103 2007-10-12  Bruno Haible  <bruno@clisp.org>
10104
10105         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
10106         of 2.
10107         * tests/test-ceilf2.c: New file.
10108         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
10109
10110         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
10111         * modules/ceilf-tests: Update.
10112
10113 2007-10-12  Bruno Haible  <bruno@clisp.org>
10114
10115         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
10116         of 2.
10117         * tests/test-floorf2.c: New file.
10118         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
10119
10120         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
10121         * modules/floorf-tests: Update.
10122
10123 2007-10-12  Bruno Haible  <bruno@clisp.org>
10124
10125         * tests/test-trunc2.c: New file.
10126         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
10127
10128         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
10129         * modules/trunc-tests: Update.
10130
10131 2007-10-12  Bruno Haible  <bruno@clisp.org>
10132
10133         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
10134         of 2.
10135         * tests/test-truncf2.c: New file.
10136         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
10137
10138         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
10139         * modules/truncf-tests: Update.
10140
10141 2007-10-11  Eric Blake  <ebb9@byu.net>
10142
10143         Don't claim strerror is broken on Interix.
10144         * doc/functions/strerror.texi (strerror): Known broken systems are
10145         now Solaris 8, and not Interix.
10146         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
10147         Interix on cross-compile.
10148         Reported by Martin Koeppe in
10149         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
10150
10151 2007-10-11  Bruno Haible  <bruno@clisp.org>
10152
10153         * modules/i-ring-tests: New file.
10154         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
10155         instead of assert.
10156
10157 2007-10-11  Bruno Haible  <bruno@clisp.org>
10158
10159         * modules/filenamecat-tests: New file.
10160         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
10161         * lib/filenamecat.c: Remove test code.
10162
10163 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10164
10165         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
10166
10167         * lib/strerror.c: Include <string.h> always, to test interface,
10168         and to remove the need for the dummy.
10169         Include intprops.h to compute width instead of doing it ourselves
10170         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
10171         (strerror): Define it to return NULL if there's no system strerror.
10172         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
10173         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
10174         ancient pre-strerror Unix systems well any more.  Saying "unknown
10175         system error" is enough.
10176         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
10177         simpler strerror.c implementation.
10178         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
10179         Simplify the tests to reflect the simpler strerror implementation.
10180         * modules/strerror (Depends-on): Add intprops.
10181
10182 2007-10-09  Eric Blake  <ebb9@byu.net>
10183
10184         Silence test-fpending.
10185         * modules/fpending-tests (Files): Add wrapper script.
10186         * tests/test-fpending.sh: New file.
10187
10188 2007-10-09  Bruno Haible  <bruno@clisp.org>
10189
10190         * MODULES.html.sh (func_module): Don't create a hyperlink for
10191         function names like 'printf_frexp'.
10192         (Misc): Add crc, memxor.
10193         (Characteristics of floating types): New section.
10194         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
10195         isnanf-nolibm, signbit, trunc, truncf, truncl.
10196         (Enhancements for ISO C 99 functions): New subsection Input/output.
10197         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
10198         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
10199         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
10200         (Compatibility checks for POSIX:2001 functions): Add clock-time.
10201         (Enhancements for POSIX:2001 functions): Add chdir-long.
10202         (File system functions): Add areadlink, chdir-safer, read-file.
10203         Remove cycle-check.
10204         (File system as inode set): New section.
10205         (Date and time): Add gethrxtime.
10206         (Multithreading): Add openmp.
10207         (Internationalization functions): Add localename.
10208         (Unicode string functions): Add unistr/u*-mbsnlen.
10209         (Support for maintaining and releasing projects): Add git-version-gen.
10210         (Lone files): Remove directories.
10211
10212 2007-10-08  Ben Pfaff  <blp@gnu.org>
10213
10214         * lib/xmalloca.h: Fix typo in comment.
10215
10216 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10217
10218         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
10219         when avoiding problems with integer overflow.  Use a portable test
10220         instead.
10221
10222 2007-10-08  Simon Josefsson  <simon@josefsson.org>
10223
10224         * modules/dummy (License): Change to LGPLv2+.
10225         * modules/float (License): Likewise
10226         * modules/realloc (License): Likewise
10227         * modules/stdlib (License): Likewise
10228
10229 2007-10-07  Bruno Haible  <bruno@clisp.org>
10230
10231         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
10232         * floor.c (TWO_MANT_DIG): Likewise.
10233         * ceil.c (TWO_MANT_DIG): Likewise.
10234         Reported by Ben Pfaff.
10235
10236 2007-10-07  Bruno Haible  <bruno@clisp.org>
10237
10238         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
10239         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
10240         * lib/frexp.c (FUNC): Likewise.
10241         * lib/printf-frexp.h (printf_frexp): Likewise.
10242         * lib/printf-frexpl.h (printf_frexpl): Likewise.
10243         * lib/printf-frexp.c (FUNC): Likewise.
10244         Suggested by Jim Meyering.
10245
10246 2007-10-07  Jim Meyering  <meyering@redhat.com>
10247
10248         Make xnanosleep's integer overflow test more robust.
10249         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
10250         so that gcc-4.3.0 doesn't optimize away this test for overflow.
10251
10252 2007-10-07  Bruno Haible  <bruno@clisp.org>
10253
10254         * NEWS: Mention the license change.
10255
10256         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
10257         abbreviations in the modules files.
10258
10259         Change copyright notice from GPLv2+ to GPLv3+.
10260         * README: Change copyright notice.
10261         * MODULES.html.sh: Likewise.
10262         * build-aux/bootstrap.conf: Likewise.
10263         * build-aux/config.libpath: Likewise.
10264         * build-aux/csharpcomp.sh.in: Likewise.
10265         * build-aux/csharpexec.sh.in: Likewise.
10266         * build-aux/install-reloc: Likewise.
10267         * build-aux/javacomp.sh.in: Likewise.
10268         * build-aux/javaexec.sh.in: Likewise.
10269         * build-aux/ldd.sh.in: Likewise.
10270         * build-aux/reloc-ldflags: Likewise.
10271         * build-aux/relocatable.sh.in: Likewise.
10272         * build-aux/x-to-1.in: Likewise.
10273         * check-module: Likewise.
10274         * config/srclistvars.sh: Likewise.
10275         * gnulib-tool: Likewise.
10276         * lib/acl-internal.h: Likewise.
10277         * lib/acl.c: Likewise.
10278         * lib/acl.h: Likewise.
10279         * lib/acl_entries.c: Likewise.
10280         * lib/areadlink-with-size.c: Likewise.
10281         * lib/areadlink.c: Likewise.
10282         * lib/areadlink.h: Likewise.
10283         * lib/argmatch.c: Likewise.
10284         * lib/argmatch.h: Likewise.
10285         * lib/argp-ba.c: Likewise.
10286         * lib/argp-eexst.c: Likewise.
10287         * lib/argp-fmtstream.c: Likewise.
10288         * lib/argp-fmtstream.h: Likewise.
10289         * lib/argp-fs-xinl.c: Likewise.
10290         * lib/argp-help.c: Likewise.
10291         * lib/argp-namefrob.h: Likewise.
10292         * lib/argp-parse.c: Likewise.
10293         * lib/argp-pin.c: Likewise.
10294         * lib/argp-pv.c: Likewise.
10295         * lib/argp-pvh.c: Likewise.
10296         * lib/argp-xinl.c: Likewise.
10297         * lib/argp.h: Likewise.
10298         * lib/at-func.c: Likewise.
10299         * lib/atanl.c: Likewise.
10300         * lib/backupfile.c: Likewise.
10301         * lib/backupfile.h: Likewise.
10302         * lib/basename.c: Likewise.
10303         * lib/binary-io.h: Likewise.
10304         * lib/byteswap.in.h: Likewise.
10305         * lib/c-stack.c: Likewise.
10306         * lib/c-stack.h: Likewise.
10307         * lib/c-strcasestr.c: Likewise.
10308         * lib/c-strcasestr.h: Likewise.
10309         * lib/c-strstr.c: Likewise.
10310         * lib/c-strstr.h: Likewise.
10311         * lib/c-strtod.c: Likewise.
10312         * lib/calloc.c: Likewise.
10313         * lib/canon-host.c: Likewise.
10314         * lib/canon-host.h: Likewise.
10315         * lib/canonicalize-lgpl.c: Likewise.
10316         * lib/canonicalize.c: Likewise.
10317         * lib/canonicalize.h: Likewise.
10318         * lib/ceil.c: Likewise.
10319         * lib/ceilf.c: Likewise.
10320         * lib/ceill.c: Likewise.
10321         * lib/chdir-long.c: Likewise.
10322         * lib/chdir-long.h: Likewise.
10323         * lib/chdir-safer.c: Likewise.
10324         * lib/chdir-safer.h: Likewise.
10325         * lib/chown.c: Likewise.
10326         * lib/classpath.c: Likewise.
10327         * lib/classpath.h: Likewise.
10328         * lib/clean-temp.c: Likewise.
10329         * lib/clean-temp.h: Likewise.
10330         * lib/cloexec.c: Likewise.
10331         * lib/close-stream.c: Likewise.
10332         * lib/closein.c: Likewise.
10333         * lib/closein.h: Likewise.
10334         * lib/closeout.c: Likewise.
10335         * lib/closeout.h: Likewise.
10336         * lib/concat-filename.c: Likewise.
10337         * lib/copy-file.c: Likewise.
10338         * lib/copy-file.h: Likewise.
10339         * lib/count-one-bits.h: Likewise.
10340         * lib/crc.c: Likewise.
10341         * lib/crc.h: Likewise.
10342         * lib/creat-safer.c: Likewise.
10343         * lib/csharpcomp.c: Likewise.
10344         * lib/csharpcomp.h: Likewise.
10345         * lib/csharpexec.c: Likewise.
10346         * lib/csharpexec.h: Likewise.
10347         * lib/cycle-check.c: Likewise.
10348         * lib/cycle-check.h: Likewise.
10349         * lib/diacrit.c: Likewise.
10350         * lib/diacrit.h: Likewise.
10351         * lib/diffseq.h: Likewise.
10352         * lib/dirchownmod.c: Likewise.
10353         * lib/dirent.in.h: Likewise.
10354         * lib/dirfd.c: Likewise.
10355         * lib/dirfd.h: Likewise.
10356         * lib/dirname.c: Likewise.
10357         * lib/dirname.h: Likewise.
10358         * lib/dummy.c: Likewise.
10359         * lib/dup-safer.c: Likewise.
10360         * lib/dup2.c: Likewise.
10361         * lib/eealloc.h: Likewise.
10362         * lib/error.c: Likewise.
10363         * lib/error.h: Likewise.
10364         * lib/euidaccess.c: Likewise.
10365         * lib/exclude.c: Likewise.
10366         * lib/exclude.h: Likewise.
10367         * lib/execute.c: Likewise.
10368         * lib/execute.h: Likewise.
10369         * lib/exitfail.c: Likewise.
10370         * lib/exitfail.h: Likewise.
10371         * lib/expl.c: Likewise.
10372         * lib/fatal-signal.c: Likewise.
10373         * lib/fatal-signal.h: Likewise.
10374         * lib/fbufmode.c: Likewise.
10375         * lib/fbufmode.h: Likewise.
10376         * lib/fchdir.c: Likewise.
10377         * lib/fchmodat.c: Likewise.
10378         * lib/fchownat.c: Likewise.
10379         * lib/fcntl--.h: Likewise.
10380         * lib/fcntl-safer.h: Likewise.
10381         * lib/fcntl.in.h: Likewise.
10382         * lib/fd-safer.c: Likewise.
10383         * lib/fflush.c: Likewise.
10384         * lib/file-has-acl.c: Likewise.
10385         * lib/file-set.c: Likewise.
10386         * lib/file-type.c: Likewise.
10387         * lib/file-type.h: Likewise.
10388         * lib/fileblocks.c: Likewise.
10389         * lib/filemode.c: Likewise.
10390         * lib/filemode.h: Likewise.
10391         * lib/filename.h: Likewise.
10392         * lib/filenamecat.c: Likewise.
10393         * lib/filenamecat.h: Likewise.
10394         * lib/findprog.c: Likewise.
10395         * lib/findprog.h: Likewise.
10396         * lib/float.in.h: Likewise.
10397         * lib/floor.c: Likewise.
10398         * lib/floorf.c: Likewise.
10399         * lib/floorl.c: Likewise.
10400         * lib/fopen-safer.c: Likewise.
10401         * lib/fopen.c: Likewise.
10402         * lib/fpending.c: Likewise.
10403         * lib/fpending.h: Likewise.
10404         * lib/fprintf.c: Likewise.
10405         * lib/fprintftime.h: Likewise.
10406         * lib/fpucw.h: Likewise.
10407         * lib/fpurge.c: Likewise.
10408         * lib/fpurge.h: Likewise.
10409         * lib/freadable.c: Likewise.
10410         * lib/freadable.h: Likewise.
10411         * lib/freadahead.c: Likewise.
10412         * lib/freadahead.h: Likewise.
10413         * lib/freading.c: Likewise.
10414         * lib/freading.h: Likewise.
10415         * lib/free.c: Likewise.
10416         * lib/freopen.c: Likewise.
10417         * lib/frexp.c: Likewise.
10418         * lib/frexpl.c: Likewise.
10419         * lib/fseek.c: Likewise.
10420         * lib/fseterr.c: Likewise.
10421         * lib/fseterr.h: Likewise.
10422         * lib/fstatat.c: Likewise.
10423         * lib/fstrcmp.c: Likewise.
10424         * lib/fstrcmp.h: Likewise.
10425         * lib/fsusage.c: Likewise.
10426         * lib/fsusage.h: Likewise.
10427         * lib/ftell.c: Likewise.
10428         * lib/ftello.c: Likewise.
10429         * lib/fts-cycle.c: Likewise.
10430         * lib/fts.c: Likewise.
10431         * lib/fts_.h: Likewise.
10432         * lib/full-read.c: Likewise.
10433         * lib/full-read.h: Likewise.
10434         * lib/full-write.c: Likewise.
10435         * lib/full-write.h: Likewise.
10436         * lib/fwritable.c: Likewise.
10437         * lib/fwritable.h: Likewise.
10438         * lib/fwriteerror.c: Likewise.
10439         * lib/fwriteerror.h: Likewise.
10440         * lib/fwriting.c: Likewise.
10441         * lib/fwriting.h: Likewise.
10442         * lib/gcd.c: Likewise.
10443         * lib/gcd.h: Likewise.
10444         * lib/getcwd.c: Likewise.
10445         * lib/getdate.h: Likewise.
10446         * lib/getdate.y: Likewise.
10447         * lib/getdomainname.c: Likewise.
10448         * lib/getdomainname.h: Likewise.
10449         * lib/getgroups.c: Likewise.
10450         * lib/gethostname.c: Likewise.
10451         * lib/gethrxtime.c: Likewise.
10452         * lib/gethrxtime.h: Likewise.
10453         * lib/getloadavg.c: Likewise.
10454         * lib/getndelim2.c: Likewise.
10455         * lib/getndelim2.h: Likewise.
10456         * lib/getnline.c: Likewise.
10457         * lib/getnline.h: Likewise.
10458         * lib/getopt.c: Likewise.
10459         * lib/getopt.in.h: Likewise.
10460         * lib/getopt1.c: Likewise.
10461         * lib/getopt_int.h: Likewise.
10462         * lib/getpagesize.h: Likewise.
10463         * lib/getsubopt.c: Likewise.
10464         * lib/gettime.c: Likewise.
10465         * lib/getugroups.c: Likewise.
10466         * lib/getugroups.h: Likewise.
10467         * lib/getusershell.c: Likewise.
10468         * lib/gl_anyavltree_list1.h: Likewise.
10469         * lib/gl_anyavltree_list2.h: Likewise.
10470         * lib/gl_anyhash_list1.h: Likewise.
10471         * lib/gl_anyhash_list2.h: Likewise.
10472         * lib/gl_anylinked_list1.h: Likewise.
10473         * lib/gl_anylinked_list2.h: Likewise.
10474         * lib/gl_anyrbtree_list1.h: Likewise.
10475         * lib/gl_anyrbtree_list2.h: Likewise.
10476         * lib/gl_anytree_list1.h: Likewise.
10477         * lib/gl_anytree_list2.h: Likewise.
10478         * lib/gl_anytree_oset.h: Likewise.
10479         * lib/gl_anytreehash_list1.h: Likewise.
10480         * lib/gl_anytreehash_list2.h: Likewise.
10481         * lib/gl_array_list.c: Likewise.
10482         * lib/gl_array_list.h: Likewise.
10483         * lib/gl_array_oset.c: Likewise.
10484         * lib/gl_array_oset.h: Likewise.
10485         * lib/gl_avltree_list.c: Likewise.
10486         * lib/gl_avltree_list.h: Likewise.
10487         * lib/gl_avltree_oset.c: Likewise.
10488         * lib/gl_avltree_oset.h: Likewise.
10489         * lib/gl_avltreehash_list.c: Likewise.
10490         * lib/gl_avltreehash_list.h: Likewise.
10491         * lib/gl_carray_list.c: Likewise.
10492         * lib/gl_carray_list.h: Likewise.
10493         * lib/gl_linked_list.c: Likewise.
10494         * lib/gl_linked_list.h: Likewise.
10495         * lib/gl_linkedhash_list.c: Likewise.
10496         * lib/gl_linkedhash_list.h: Likewise.
10497         * lib/gl_list.c: Likewise.
10498         * lib/gl_list.h: Likewise.
10499         * lib/gl_oset.c: Likewise.
10500         * lib/gl_oset.h: Likewise.
10501         * lib/gl_rbtree_list.c: Likewise.
10502         * lib/gl_rbtree_list.h: Likewise.
10503         * lib/gl_rbtree_oset.c: Likewise.
10504         * lib/gl_rbtree_oset.h: Likewise.
10505         * lib/gl_rbtreehash_list.c: Likewise.
10506         * lib/gl_rbtreehash_list.h: Likewise.
10507         * lib/gl_sublist.c: Likewise.
10508         * lib/gl_sublist.h: Likewise.
10509         * lib/group-member.c: Likewise.
10510         * lib/group-member.h: Likewise.
10511         * lib/hard-locale.c: Likewise.
10512         * lib/hard-locale.h: Likewise.
10513         * lib/hash-pjw.c: Likewise.
10514         * lib/hash-pjw.h: Likewise.
10515         * lib/hash-triple.c: Likewise.
10516         * lib/hash.c: Likewise.
10517         * lib/hash.h: Likewise.
10518         * lib/human.c: Likewise.
10519         * lib/human.h: Likewise.
10520         * lib/i-ring.c: Likewise.
10521         * lib/i-ring.h: Likewise.
10522         * lib/idcache.c: Likewise.
10523         * lib/imaxabs.c: Likewise.
10524         * lib/imaxdiv.c: Likewise.
10525         * lib/inet_pton.c: Likewise.
10526         * lib/inet_pton.h: Likewise.
10527         * lib/intprops.h: Likewise.
10528         * lib/inttostr.c: Likewise.
10529         * lib/inttostr.h: Likewise.
10530         * lib/inttypes.in.h: Likewise.
10531         * lib/isapipe.c: Likewise.
10532         * lib/isdir.c: Likewise.
10533         * lib/isnan.c: Likewise.
10534         * lib/isnan.h: Likewise.
10535         * lib/isnanf.c: Likewise.
10536         * lib/isnanf.h: Likewise.
10537         * lib/isnanl-nolibm.h: Likewise.
10538         * lib/isnanl.c: Likewise.
10539         * lib/isnanl.h: Likewise.
10540         * lib/javacomp.c: Likewise.
10541         * lib/javacomp.h: Likewise.
10542         * lib/javaexec.c: Likewise.
10543         * lib/javaexec.h: Likewise.
10544         * lib/javaversion.c: Likewise.
10545         * lib/javaversion.h: Likewise.
10546         * lib/javaversion.java: Likewise.
10547         * lib/lbrkprop.h: Likewise.
10548         * lib/lchmod.h: Likewise.
10549         * lib/lchown.c: Likewise.
10550         * lib/ldexpl.c: Likewise.
10551         * lib/linebreak.c: Likewise.
10552         * lib/linebreak.h: Likewise.
10553         * lib/linebuffer.c: Likewise.
10554         * lib/linebuffer.h: Likewise.
10555         * lib/locale.in.h: Likewise.
10556         * lib/logl.c: Likewise.
10557         * lib/long-options.c: Likewise.
10558         * lib/long-options.h: Likewise.
10559         * lib/lstat.c: Likewise.
10560         * lib/lstat.h: Likewise.
10561         * lib/math.in.h: Likewise.
10562         * lib/mbchar.c: Likewise.
10563         * lib/mbchar.h: Likewise.
10564         * lib/mbfile.h: Likewise.
10565         * lib/mbiter.h: Likewise.
10566         * lib/mbscasecmp.c: Likewise.
10567         * lib/mbscasestr.c: Likewise.
10568         * lib/mbschr.c: Likewise.
10569         * lib/mbscspn.c: Likewise.
10570         * lib/mbslen.c: Likewise.
10571         * lib/mbsncasecmp.c: Likewise.
10572         * lib/mbsnlen.c: Likewise.
10573         * lib/mbspbrk.c: Likewise.
10574         * lib/mbspcasecmp.c: Likewise.
10575         * lib/mbsrchr.c: Likewise.
10576         * lib/mbssep.c: Likewise.
10577         * lib/mbsspn.c: Likewise.
10578         * lib/mbsstr.c: Likewise.
10579         * lib/mbstok_r.c: Likewise.
10580         * lib/mbswidth.c: Likewise.
10581         * lib/mbswidth.h: Likewise.
10582         * lib/mbuiter.h: Likewise.
10583         * lib/memcasecmp.c: Likewise.
10584         * lib/memcasecmp.h: Likewise.
10585         * lib/memchr.c: Likewise.
10586         * lib/memcmp.c: Likewise.
10587         * lib/memcoll.c: Likewise.
10588         * lib/memcoll.h: Likewise.
10589         * lib/memcpy.c: Likewise.
10590         * lib/memrchr.c: Likewise.
10591         * lib/mkancesdirs.c: Likewise.
10592         * lib/mkdir-p.c: Likewise.
10593         * lib/mkdir-p.h: Likewise.
10594         * lib/mkdir.c: Likewise.
10595         * lib/mkdirat.c: Likewise.
10596         * lib/mkdtemp.c: Likewise.
10597         * lib/mkstemp-safer.c: Likewise.
10598         * lib/mkstemp.c: Likewise.
10599         * lib/modechange.c: Likewise.
10600         * lib/modechange.h: Likewise.
10601         * lib/mountlist.c: Likewise.
10602         * lib/mountlist.h: Likewise.
10603         * lib/mpsort.c: Likewise.
10604         * lib/nanosleep.c: Likewise.
10605         * lib/obstack.c: Likewise.
10606         * lib/obstack.h: Likewise.
10607         * lib/open-safer.c: Likewise.
10608         * lib/open.c: Likewise.
10609         * lib/openat-die.c: Likewise.
10610         * lib/openat-priv.h: Likewise.
10611         * lib/openat-proc.c: Likewise.
10612         * lib/openat.c: Likewise.
10613         * lib/openat.h: Likewise.
10614         * lib/pagealign_alloc.c: Likewise.
10615         * lib/pagealign_alloc.h: Likewise.
10616         * lib/physmem.c: Likewise.
10617         * lib/physmem.h: Likewise.
10618         * lib/pipe-safer.c: Likewise.
10619         * lib/pipe.c: Likewise.
10620         * lib/pipe.h: Likewise.
10621         * lib/posixtm.c: Likewise.
10622         * lib/posixtm.h: Likewise.
10623         * lib/posixver.c: Likewise.
10624         * lib/printf-frexp.c: Likewise.
10625         * lib/printf-frexp.h: Likewise.
10626         * lib/printf-frexpl.c: Likewise.
10627         * lib/printf-frexpl.h: Likewise.
10628         * lib/printf.c: Likewise.
10629         * lib/progname.c: Likewise.
10630         * lib/progname.h: Likewise.
10631         * lib/progreloc.c: Likewise.
10632         * lib/putenv.c: Likewise.
10633         * lib/quote.c: Likewise.
10634         * lib/quote.h: Likewise.
10635         * lib/quotearg.c: Likewise.
10636         * lib/quotearg.h: Likewise.
10637         * lib/raise.c: Likewise.
10638         * lib/readline.c: Likewise.
10639         * lib/readline.h: Likewise.
10640         * lib/readlink.c: Likewise.
10641         * lib/readtokens.c: Likewise.
10642         * lib/readtokens.h: Likewise.
10643         * lib/readtokens0.c: Likewise.
10644         * lib/readtokens0.h: Likewise.
10645         * lib/readutmp.c: Likewise.
10646         * lib/readutmp.h: Likewise.
10647         * lib/realloc.c: Likewise.
10648         * lib/relocwrapper.c: Likewise.
10649         * lib/rename-dest-slash.c: Likewise.
10650         * lib/rename.c: Likewise.
10651         * lib/rmdir.c: Likewise.
10652         * lib/rpmatch.c: Likewise.
10653         * lib/safe-read.c: Likewise.
10654         * lib/safe-read.h: Likewise.
10655         * lib/safe-write.c: Likewise.
10656         * lib/safe-write.h: Likewise.
10657         * lib/same-inode.h: Likewise.
10658         * lib/same.c: Likewise.
10659         * lib/same.h: Likewise.
10660         * lib/save-cwd.c: Likewise.
10661         * lib/save-cwd.h: Likewise.
10662         * lib/savedir.c: Likewise.
10663         * lib/savedir.h: Likewise.
10664         * lib/savewd.c: Likewise.
10665         * lib/savewd.h: Likewise.
10666         * lib/search.in.h: Likewise.
10667         * lib/setenv.c: Likewise.
10668         * lib/setenv.h: Likewise.
10669         * lib/settime.c: Likewise.
10670         * lib/sh-quote.c: Likewise.
10671         * lib/sh-quote.h: Likewise.
10672         * lib/sig2str.c: Likewise.
10673         * lib/sig2str.h: Likewise.
10674         * lib/signal.in.h: Likewise.
10675         * lib/signbitd.c: Likewise.
10676         * lib/signbitf.c: Likewise.
10677         * lib/signbitl.c: Likewise.
10678         * lib/sigprocmask.c: Likewise.
10679         * lib/sincosl.c: Likewise.
10680         * lib/sleep.c: Likewise.
10681         * lib/sprintf.c: Likewise.
10682         * lib/sqrtl.c: Likewise.
10683         * lib/stat-time.h: Likewise.
10684         * lib/stdio--.h: Likewise.
10685         * lib/stdio-safer.h: Likewise.
10686         * lib/stdlib--.h: Likewise.
10687         * lib/stdlib-safer.h: Likewise.
10688         * lib/stdlib.in.h: Likewise.
10689         * lib/stpcpy.c: Likewise.
10690         * lib/stpncpy.c: Likewise.
10691         * lib/strchrnul.c: Likewise.
10692         * lib/strcspn.c: Likewise.
10693         * lib/strerror.c: Likewise.
10694         * lib/strftime.c: Likewise.
10695         * lib/strftime.h: Likewise.
10696         * lib/striconveh.c: Likewise.
10697         * lib/striconveh.h: Likewise.
10698         * lib/striconveha.c: Likewise.
10699         * lib/striconveha.h: Likewise.
10700         * lib/stripslash.c: Likewise.
10701         * lib/strnlen1.c: Likewise.
10702         * lib/strnlen1.h: Likewise.
10703         * lib/strtod.c: Likewise.
10704         * lib/strtoimax.c: Likewise.
10705         * lib/strtok_r.c: Likewise.
10706         * lib/strtol.c: Likewise.
10707         * lib/strtoll.c: Likewise.
10708         * lib/strtoul.c: Likewise.
10709         * lib/strtoull.c: Likewise.
10710         * lib/sysexits.in.h: Likewise.
10711         * lib/tempname.c: Likewise.
10712         * lib/tempname.h: Likewise.
10713         * lib/timespec.h: Likewise.
10714         * lib/tls.c: Likewise.
10715         * lib/tls.h: Likewise.
10716         * lib/tmpdir.c: Likewise.
10717         * lib/tmpdir.h: Likewise.
10718         * lib/tmpfile-safer.c: Likewise.
10719         * lib/tmpfile.c: Likewise.
10720         * lib/trigl.c: Likewise.
10721         * lib/trigl.h: Likewise.
10722         * lib/trim.c: Likewise.
10723         * lib/trim.h: Likewise.
10724         * lib/trunc.c: Likewise.
10725         * lib/truncf.c: Likewise.
10726         * lib/truncl.c: Likewise.
10727         * lib/tsearch.c: Likewise.
10728         * lib/unicodeio.c: Likewise.
10729         * lib/unicodeio.h: Likewise.
10730         * lib/unistd--.h: Likewise.
10731         * lib/unistd-safer.h: Likewise.
10732         * lib/unistdio/ulc-fprintf.c: Likewise.
10733         * lib/unistdio/ulc-vfprintf.c: Likewise.
10734         * lib/unlinkdir.c: Likewise.
10735         * lib/unlinkdir.h: Likewise.
10736         * lib/unlocked-io.h: Likewise.
10737         * lib/unsetenv.c: Likewise.
10738         * lib/userspec.c: Likewise.
10739         * lib/utime.c: Likewise.
10740         * lib/utimecmp.c: Likewise.
10741         * lib/utimecmp.h: Likewise.
10742         * lib/utimens.c: Likewise.
10743         * lib/verify.h: Likewise.
10744         * lib/verror.c: Likewise.
10745         * lib/verror.h: Likewise.
10746         * lib/version-etc-fsf.c: Likewise.
10747         * lib/version-etc.c: Likewise.
10748         * lib/version-etc.h: Likewise.
10749         * lib/vfprintf.c: Likewise.
10750         * lib/vprintf.c: Likewise.
10751         * lib/vsprintf.c: Likewise.
10752         * lib/w32spawn.h: Likewise.
10753         * lib/wait-process.c: Likewise.
10754         * lib/wait-process.h: Likewise.
10755         * lib/wcwidth.c: Likewise.
10756         * lib/write-any-file.c: Likewise.
10757         * lib/xalloc-die.c: Likewise.
10758         * lib/xalloc.h: Likewise.
10759         * lib/xasprintf.c: Likewise.
10760         * lib/xgetcwd.c: Likewise.
10761         * lib/xgetcwd.h: Likewise.
10762         * lib/xgetdomainname.c: Likewise.
10763         * lib/xgetdomainname.h: Likewise.
10764         * lib/xgethostname.c: Likewise.
10765         * lib/xmalloc.c: Likewise.
10766         * lib/xmalloca.c: Likewise.
10767         * lib/xmalloca.h: Likewise.
10768         * lib/xmemcoll.c: Likewise.
10769         * lib/xnanosleep.c: Likewise.
10770         * lib/xreadlink.c: Likewise.
10771         * lib/xreadlink.h: Likewise.
10772         * lib/xsetenv.c: Likewise.
10773         * lib/xsetenv.h: Likewise.
10774         * lib/xstriconv.c: Likewise.
10775         * lib/xstriconv.h: Likewise.
10776         * lib/xstrndup.c: Likewise.
10777         * lib/xstrndup.h: Likewise.
10778         * lib/xstrtod.c: Likewise.
10779         * lib/xstrtod.h: Likewise.
10780         * lib/xstrtol-error.c: Likewise.
10781         * lib/xstrtol.c: Likewise.
10782         * lib/xstrtol.h: Likewise.
10783         * lib/xtime.h: Likewise.
10784         * lib/xvasprintf.c: Likewise.
10785         * lib/xvasprintf.h: Likewise.
10786         * lib/yesno.c: Likewise.
10787         * lib/yesno.h: Likewise.
10788         * posix-modules: Likewise.
10789         * tests/test-alloca-opt.c: Likewise.
10790         * tests/test-arcfour.c: Likewise.
10791         * tests/test-arctwo.c: Likewise.
10792         * tests/test-argmatch.c: Likewise.
10793         * tests/test-argp-2.sh: Likewise.
10794         * tests/test-argp.c: Likewise.
10795         * tests/test-arpa_inet.c: Likewise.
10796         * tests/test-array_list.c: Likewise.
10797         * tests/test-array_oset.c: Likewise.
10798         * tests/test-atexit.c: Likewise.
10799         * tests/test-avltree_list.c: Likewise.
10800         * tests/test-avltree_oset.c: Likewise.
10801         * tests/test-avltreehash_list.c: Likewise.
10802         * tests/test-base64.c: Likewise.
10803         * tests/test-binary-io.c: Likewise.
10804         * tests/test-byteswap.c: Likewise.
10805         * tests/test-c-ctype.c: Likewise.
10806         * tests/test-c-strcasecmp.c: Likewise.
10807         * tests/test-c-strcasestr.c: Likewise.
10808         * tests/test-c-strncasecmp.c: Likewise.
10809         * tests/test-c-strstr.c: Likewise.
10810         * tests/test-canonicalize-lgpl.c: Likewise.
10811         * tests/test-canonicalize.c: Likewise.
10812         * tests/test-carray_list.c: Likewise.
10813         * tests/test-ceilf.c: Likewise.
10814         * tests/test-ceill.c: Likewise.
10815         * tests/test-count-one-bits.c: Likewise.
10816         * tests/test-crc.c: Likewise.
10817         * tests/test-dirname.c: Likewise.
10818         * tests/test-fbufmode.c: Likewise.
10819         * tests/test-fcntl.c: Likewise.
10820         * tests/test-fflush.c: Likewise.
10821         * tests/test-floorf.c: Likewise.
10822         * tests/test-floorl.c: Likewise.
10823         * tests/test-fopen.c: Likewise.
10824         * tests/test-fprintf-posix.c: Likewise.
10825         * tests/test-fprintf-posix.h: Likewise.
10826         * tests/test-fpurge.c: Likewise.
10827         * tests/test-freadable.c: Likewise.
10828         * tests/test-freadahead.c: Likewise.
10829         * tests/test-freading.c: Likewise.
10830         * tests/test-freopen.c: Likewise.
10831         * tests/test-frexp.c: Likewise.
10832         * tests/test-frexpl.c: Likewise.
10833         * tests/test-fseek.c: Likewise.
10834         * tests/test-fseeko.c: Likewise.
10835         * tests/test-fseterr.c: Likewise.
10836         * tests/test-fstrcmp.c: Likewise.
10837         * tests/test-ftell.c: Likewise.
10838         * tests/test-ftello.c: Likewise.
10839         * tests/test-fwritable.c: Likewise.
10840         * tests/test-fwriting.c: Likewise.
10841         * tests/test-getaddrinfo.c: Likewise.
10842         * tests/test-getpass.c: Likewise.
10843         * tests/test-gettimeofday.c: Likewise.
10844         * tests/test-hmac-md5.c: Likewise.
10845         * tests/test-hmac-sha1.c: Likewise.
10846         * tests/test-iconv.c: Likewise.
10847         * tests/test-iconvme.c: Likewise.
10848         * tests/test-inttypes.c: Likewise.
10849         * tests/test-isnan.c: Likewise.
10850         * tests/test-isnanf.c: Likewise.
10851         * tests/test-isnanl-nolibm.c: Likewise.
10852         * tests/test-isnanl.c: Likewise.
10853         * tests/test-isnanl.h: Likewise.
10854         * tests/test-ldexpl.c: Likewise.
10855         * tests/test-linked_list.c: Likewise.
10856         * tests/test-linkedhash_list.c: Likewise.
10857         * tests/test-locale.c: Likewise.
10858         * tests/test-localename.c: Likewise.
10859         * tests/test-lock.c: Likewise.
10860         * tests/test-lseek.c: Likewise.
10861         * tests/test-malloca.c: Likewise.
10862         * tests/test-math.c: Likewise.
10863         * tests/test-mbscasecmp.c: Likewise.
10864         * tests/test-mbscasestr1.c: Likewise.
10865         * tests/test-mbscasestr2.c: Likewise.
10866         * tests/test-mbscasestr3.c: Likewise.
10867         * tests/test-mbscasestr4.c: Likewise.
10868         * tests/test-mbschr.c: Likewise.
10869         * tests/test-mbscspn.c: Likewise.
10870         * tests/test-mbsncasecmp.c: Likewise.
10871         * tests/test-mbspbrk.c: Likewise.
10872         * tests/test-mbspcasecmp.c: Likewise.
10873         * tests/test-mbsrchr.c: Likewise.
10874         * tests/test-mbsspn.c: Likewise.
10875         * tests/test-mbsstr1.c: Likewise.
10876         * tests/test-mbsstr2.c: Likewise.
10877         * tests/test-mbsstr3.c: Likewise.
10878         * tests/test-md5.c: Likewise.
10879         * tests/test-memmem.c: Likewise.
10880         * tests/test-netinet_in.c: Likewise.
10881         * tests/test-open.c: Likewise.
10882         * tests/test-printf-frexp.c: Likewise.
10883         * tests/test-printf-frexpl.c: Likewise.
10884         * tests/test-printf-posix.c: Likewise.
10885         * tests/test-printf-posix.h: Likewise.
10886         * tests/test-rbtree_list.c: Likewise.
10887         * tests/test-rbtree_oset.c: Likewise.
10888         * tests/test-rbtreehash_list.c: Likewise.
10889         * tests/test-read-file.c: Likewise.
10890         * tests/test-rijndael.c: Likewise.
10891         * tests/test-search.c: Likewise.
10892         * tests/test-signbit.c: Likewise.
10893         * tests/test-sleep.c: Likewise.
10894         * tests/test-snprintf-posix.c: Likewise.
10895         * tests/test-snprintf-posix.h: Likewise.
10896         * tests/test-snprintf.c: Likewise.
10897         * tests/test-sprintf-posix.c: Likewise.
10898         * tests/test-sprintf-posix.h: Likewise.
10899         * tests/test-stat-time.c: Likewise.
10900         * tests/test-stdbool.c: Likewise.
10901         * tests/test-stdint.c: Likewise.
10902         * tests/test-stdio.c: Likewise.
10903         * tests/test-stdlib.c: Likewise.
10904         * tests/test-stpncpy.c: Likewise.
10905         * tests/test-strcasestr.c: Likewise.
10906         * tests/test-striconv.c: Likewise.
10907         * tests/test-striconveh.c: Likewise.
10908         * tests/test-striconveha.c: Likewise.
10909         * tests/test-string.c: Likewise.
10910         * tests/test-sys_select.c: Likewise.
10911         * tests/test-sys_socket.c: Likewise.
10912         * tests/test-sys_stat.c: Likewise.
10913         * tests/test-sys_time.c: Likewise.
10914         * tests/test-sysexits.c: Likewise.
10915         * tests/test-time.c: Likewise.
10916         * tests/test-tls.c: Likewise.
10917         * tests/test-trunc.c: Likewise.
10918         * tests/test-truncf.c: Likewise.
10919         * tests/test-truncl.c: Likewise.
10920         * tests/test-unistd.c: Likewise.
10921         * tests/test-vasnprintf-posix.c: Likewise.
10922         * tests/test-vasnprintf-posix2.c: Likewise.
10923         * tests/test-vasnprintf.c: Likewise.
10924         * tests/test-vasprintf-posix.c: Likewise.
10925         * tests/test-vasprintf.c: Likewise.
10926         * tests/test-verify.c: Likewise.
10927         * tests/test-vfprintf-posix.c: Likewise.
10928         * tests/test-vprintf-posix.c: Likewise.
10929         * tests/test-vsnprintf-posix.c: Likewise.
10930         * tests/test-vsnprintf.c: Likewise.
10931         * tests/test-vsprintf-posix.c: Likewise.
10932         * tests/test-wchar.c: Likewise.
10933         * tests/test-wctype.c: Likewise.
10934         * tests/test-wcwidth.c: Likewise.
10935         * tests/test-xstrtol.c: Likewise.
10936         * tests/test-xvasprintf.c: Likewise.
10937         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10938         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10939         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10940         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10941         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10942         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10943         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10944         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10945         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10946         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10947         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10948         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10949         * tests/uniname/test-uninames.c: Likewise.
10950         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10951         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
10952         * tests/unistdio/test-u16-printf1.h: Likewise.
10953         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10954         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10955         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10956         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10957         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10958         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10959         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10960         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
10961         * tests/unistdio/test-u32-printf1.h: Likewise.
10962         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10963         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10964         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10965         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10966         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10967         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10968         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10969         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
10970         * tests/unistdio/test-u8-printf1.h: Likewise.
10971         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10972         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10973         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10974         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10975         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10976         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10977         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10978         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
10979         * tests/unistdio/test-ulc-printf1.h: Likewise.
10980         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10981         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10982         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10983         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10984         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10985         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10986         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10987         * tests/uniwidth/test-u16-width.c: Likewise.
10988         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10989         * tests/uniwidth/test-u32-width.c: Likewise.
10990         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10991         * tests/uniwidth/test-u8-width.c: Likewise.
10992         * tests/uniwidth/test-uc_width.c: Likewise.
10993         * config/srclist-update: Likewise.
10994         (fixlicense): Update to GPLv3+.
10995
10996         Change copyright notice from LGPLv2.1+ to LGPLv3+.
10997         * tests/test-tsearch.c: Change copyright notice.
10998
10999         Change copyright notice from LGPLv2.0+ to LGPLv3+.
11000         * lib/c-strcaseeq.h: Change copyright notice.
11001         * lib/streq.h: Likewise.
11002         * lib/uniconv.h: Likewise.
11003         * lib/uniconv/u-conv-from-enc.h: Likewise.
11004         * lib/uniconv/u-conv-to-enc.h: Likewise.
11005         * lib/uniconv/u-strconv-from-enc.h: Likewise.
11006         * lib/uniconv/u-strconv-to-enc.h: Likewise.
11007         * lib/uniconv/u16-conv-from-enc.c: Likewise.
11008         * lib/uniconv/u16-conv-to-enc.c: Likewise.
11009         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
11010         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
11011         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
11012         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
11013         * lib/uniconv/u32-conv-from-enc.c: Likewise.
11014         * lib/uniconv/u32-conv-to-enc.c: Likewise.
11015         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
11016         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
11017         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
11018         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
11019         * lib/uniconv/u8-conv-from-enc.c: Likewise.
11020         * lib/uniconv/u8-conv-to-enc.c: Likewise.
11021         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
11022         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
11023         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
11024         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
11025         * lib/uniname.h: Likewise.
11026         * lib/uniname/uniname.c: Likewise.
11027         * lib/unistdio.h: Likewise.
11028         * lib/unistdio/u-asnprintf.h: Likewise.
11029         * lib/unistdio/u-asprintf.h: Likewise.
11030         * lib/unistdio/u-printf-args.c: Likewise.
11031         * lib/unistdio/u-printf-args.h: Likewise.
11032         * lib/unistdio/u-printf-parse.h: Likewise.
11033         * lib/unistdio/u-snprintf.h: Likewise.
11034         * lib/unistdio/u-sprintf.h: Likewise.
11035         * lib/unistdio/u-vasprintf.h: Likewise.
11036         * lib/unistdio/u-vsnprintf.h: Likewise.
11037         * lib/unistdio/u-vsprintf.h: Likewise.
11038         * lib/unistdio/u16-asnprintf.c: Likewise.
11039         * lib/unistdio/u16-asprintf.c: Likewise.
11040         * lib/unistdio/u16-printf-parse.c: Likewise.
11041         * lib/unistdio/u16-snprintf.c: Likewise.
11042         * lib/unistdio/u16-sprintf.c: Likewise.
11043         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
11044         * lib/unistdio/u16-u16-asprintf.c: Likewise.
11045         * lib/unistdio/u16-u16-snprintf.c: Likewise.
11046         * lib/unistdio/u16-u16-sprintf.c: Likewise.
11047         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
11048         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
11049         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
11050         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
11051         * lib/unistdio/u16-vasnprintf.c: Likewise.
11052         * lib/unistdio/u16-vasprintf.c: Likewise.
11053         * lib/unistdio/u16-vsnprintf.c: Likewise.
11054         * lib/unistdio/u16-vsprintf.c: Likewise.
11055         * lib/unistdio/u32-asnprintf.c: Likewise.
11056         * lib/unistdio/u32-asprintf.c: Likewise.
11057         * lib/unistdio/u32-printf-parse.c: Likewise.
11058         * lib/unistdio/u32-snprintf.c: Likewise.
11059         * lib/unistdio/u32-sprintf.c: Likewise.
11060         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
11061         * lib/unistdio/u32-u32-asprintf.c: Likewise.
11062         * lib/unistdio/u32-u32-snprintf.c: Likewise.
11063         * lib/unistdio/u32-u32-sprintf.c: Likewise.
11064         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
11065         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
11066         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
11067         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
11068         * lib/unistdio/u32-vasnprintf.c: Likewise.
11069         * lib/unistdio/u32-vasprintf.c: Likewise.
11070         * lib/unistdio/u32-vsnprintf.c: Likewise.
11071         * lib/unistdio/u32-vsprintf.c: Likewise.
11072         * lib/unistdio/u8-asnprintf.c: Likewise.
11073         * lib/unistdio/u8-asprintf.c: Likewise.
11074         * lib/unistdio/u8-printf-parse.c: Likewise.
11075         * lib/unistdio/u8-snprintf.c: Likewise.
11076         * lib/unistdio/u8-sprintf.c: Likewise.
11077         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
11078         * lib/unistdio/u8-u8-asprintf.c: Likewise.
11079         * lib/unistdio/u8-u8-snprintf.c: Likewise.
11080         * lib/unistdio/u8-u8-sprintf.c: Likewise.
11081         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
11082         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
11083         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
11084         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
11085         * lib/unistdio/u8-vasnprintf.c: Likewise.
11086         * lib/unistdio/u8-vasprintf.c: Likewise.
11087         * lib/unistdio/u8-vsnprintf.c: Likewise.
11088         * lib/unistdio/u8-vsprintf.c: Likewise.
11089         * lib/unistdio/ulc-asnprintf.c: Likewise.
11090         * lib/unistdio/ulc-asprintf.c: Likewise.
11091         * lib/unistdio/ulc-printf-parse.c: Likewise.
11092         * lib/unistdio/ulc-snprintf.c: Likewise.
11093         * lib/unistdio/ulc-sprintf.c: Likewise.
11094         * lib/unistdio/ulc-vasnprintf.c: Likewise.
11095         * lib/unistdio/ulc-vasprintf.c: Likewise.
11096         * lib/unistdio/ulc-vsnprintf.c: Likewise.
11097         * lib/unistdio/ulc-vsprintf.c: Likewise.
11098         * lib/unistr.h: Likewise.
11099         * lib/unistr/u-cpy-alloc.h: Likewise.
11100         * lib/unistr/u-cpy.h: Likewise.
11101         * lib/unistr/u-endswith.h: Likewise.
11102         * lib/unistr/u-move.h: Likewise.
11103         * lib/unistr/u-set.h: Likewise.
11104         * lib/unistr/u-startswith.h: Likewise.
11105         * lib/unistr/u-stpcpy.h: Likewise.
11106         * lib/unistr/u-stpncpy.h: Likewise.
11107         * lib/unistr/u-strcat.h: Likewise.
11108         * lib/unistr/u-strcpy.h: Likewise.
11109         * lib/unistr/u-strcspn.h: Likewise.
11110         * lib/unistr/u-strdup.h: Likewise.
11111         * lib/unistr/u-strlen.h: Likewise.
11112         * lib/unistr/u-strncat.h: Likewise.
11113         * lib/unistr/u-strncpy.h: Likewise.
11114         * lib/unistr/u-strnlen.h: Likewise.
11115         * lib/unistr/u-strpbrk.h: Likewise.
11116         * lib/unistr/u-strspn.h: Likewise.
11117         * lib/unistr/u-strstr.h: Likewise.
11118         * lib/unistr/u-strtok.h: Likewise.
11119         * lib/unistr/u16-check.c: Likewise.
11120         * lib/unistr/u16-chr.c: Likewise.
11121         * lib/unistr/u16-cmp.c: Likewise.
11122         * lib/unistr/u16-cpy-alloc.c: Likewise.
11123         * lib/unistr/u16-cpy.c: Likewise.
11124         * lib/unistr/u16-endswith.c: Likewise.
11125         * lib/unistr/u16-mblen.c: Likewise.
11126         * lib/unistr/u16-mbsnlen.c: Likewise.
11127         * lib/unistr/u16-mbtouc-aux.c: Likewise.
11128         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
11129         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
11130         * lib/unistr/u16-mbtouc.c: Likewise.
11131         * lib/unistr/u16-mbtoucr.c: Likewise.
11132         * lib/unistr/u16-move.c: Likewise.
11133         * lib/unistr/u16-next.c: Likewise.
11134         * lib/unistr/u16-prev.c: Likewise.
11135         * lib/unistr/u16-set.c: Likewise.
11136         * lib/unistr/u16-startswith.c: Likewise.
11137         * lib/unistr/u16-stpcpy.c: Likewise.
11138         * lib/unistr/u16-stpncpy.c: Likewise.
11139         * lib/unistr/u16-strcat.c: Likewise.
11140         * lib/unistr/u16-strchr.c: Likewise.
11141         * lib/unistr/u16-strcmp.c: Likewise.
11142         * lib/unistr/u16-strcpy.c: Likewise.
11143         * lib/unistr/u16-strcspn.c: Likewise.
11144         * lib/unistr/u16-strdup.c: Likewise.
11145         * lib/unistr/u16-strlen.c: Likewise.
11146         * lib/unistr/u16-strmblen.c: Likewise.
11147         * lib/unistr/u16-strmbtouc.c: Likewise.
11148         * lib/unistr/u16-strncat.c: Likewise.
11149         * lib/unistr/u16-strncmp.c: Likewise.
11150         * lib/unistr/u16-strncpy.c: Likewise.
11151         * lib/unistr/u16-strnlen.c: Likewise.
11152         * lib/unistr/u16-strpbrk.c: Likewise.
11153         * lib/unistr/u16-strrchr.c: Likewise.
11154         * lib/unistr/u16-strspn.c: Likewise.
11155         * lib/unistr/u16-strstr.c: Likewise.
11156         * lib/unistr/u16-strtok.c: Likewise.
11157         * lib/unistr/u16-to-u32.c: Likewise.
11158         * lib/unistr/u16-to-u8.c: Likewise.
11159         * lib/unistr/u16-uctomb-aux.c: Likewise.
11160         * lib/unistr/u16-uctomb.c: Likewise.
11161         * lib/unistr/u32-check.c: Likewise.
11162         * lib/unistr/u32-chr.c: Likewise.
11163         * lib/unistr/u32-cmp.c: Likewise.
11164         * lib/unistr/u32-cpy-alloc.c: Likewise.
11165         * lib/unistr/u32-cpy.c: Likewise.
11166         * lib/unistr/u32-endswith.c: Likewise.
11167         * lib/unistr/u32-mblen.c: Likewise.
11168         * lib/unistr/u32-mbsnlen.c: Likewise.
11169         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
11170         * lib/unistr/u32-mbtouc.c: Likewise.
11171         * lib/unistr/u32-mbtoucr.c: Likewise.
11172         * lib/unistr/u32-move.c: Likewise.
11173         * lib/unistr/u32-next.c: Likewise.
11174         * lib/unistr/u32-prev.c: Likewise.
11175         * lib/unistr/u32-set.c: Likewise.
11176         * lib/unistr/u32-startswith.c: Likewise.
11177         * lib/unistr/u32-stpcpy.c: Likewise.
11178         * lib/unistr/u32-stpncpy.c: Likewise.
11179         * lib/unistr/u32-strcat.c: Likewise.
11180         * lib/unistr/u32-strchr.c: Likewise.
11181         * lib/unistr/u32-strcmp.c: Likewise.
11182         * lib/unistr/u32-strcpy.c: Likewise.
11183         * lib/unistr/u32-strcspn.c: Likewise.
11184         * lib/unistr/u32-strdup.c: Likewise.
11185         * lib/unistr/u32-strlen.c: Likewise.
11186         * lib/unistr/u32-strmblen.c: Likewise.
11187         * lib/unistr/u32-strmbtouc.c: Likewise.
11188         * lib/unistr/u32-strncat.c: Likewise.
11189         * lib/unistr/u32-strncmp.c: Likewise.
11190         * lib/unistr/u32-strncpy.c: Likewise.
11191         * lib/unistr/u32-strnlen.c: Likewise.
11192         * lib/unistr/u32-strpbrk.c: Likewise.
11193         * lib/unistr/u32-strrchr.c: Likewise.
11194         * lib/unistr/u32-strspn.c: Likewise.
11195         * lib/unistr/u32-strstr.c: Likewise.
11196         * lib/unistr/u32-strtok.c: Likewise.
11197         * lib/unistr/u32-to-u16.c: Likewise.
11198         * lib/unistr/u32-to-u8.c: Likewise.
11199         * lib/unistr/u32-uctomb.c: Likewise.
11200         * lib/unistr/u8-check.c: Likewise.
11201         * lib/unistr/u8-chr.c: Likewise.
11202         * lib/unistr/u8-cmp.c: Likewise.
11203         * lib/unistr/u8-cpy-alloc.c: Likewise.
11204         * lib/unistr/u8-cpy.c: Likewise.
11205         * lib/unistr/u8-endswith.c: Likewise.
11206         * lib/unistr/u8-mblen.c: Likewise.
11207         * lib/unistr/u8-mbsnlen.c: Likewise.
11208         * lib/unistr/u8-mbtouc-aux.c: Likewise.
11209         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
11210         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
11211         * lib/unistr/u8-mbtouc.c: Likewise.
11212         * lib/unistr/u8-mbtoucr.c: Likewise.
11213         * lib/unistr/u8-move.c: Likewise.
11214         * lib/unistr/u8-next.c: Likewise.
11215         * lib/unistr/u8-prev.c: Likewise.
11216         * lib/unistr/u8-set.c: Likewise.
11217         * lib/unistr/u8-startswith.c: Likewise.
11218         * lib/unistr/u8-stpcpy.c: Likewise.
11219         * lib/unistr/u8-stpncpy.c: Likewise.
11220         * lib/unistr/u8-strcat.c: Likewise.
11221         * lib/unistr/u8-strchr.c: Likewise.
11222         * lib/unistr/u8-strcmp.c: Likewise.
11223         * lib/unistr/u8-strcpy.c: Likewise.
11224         * lib/unistr/u8-strcspn.c: Likewise.
11225         * lib/unistr/u8-strdup.c: Likewise.
11226         * lib/unistr/u8-strlen.c: Likewise.
11227         * lib/unistr/u8-strmblen.c: Likewise.
11228         * lib/unistr/u8-strmbtouc.c: Likewise.
11229         * lib/unistr/u8-strncat.c: Likewise.
11230         * lib/unistr/u8-strncmp.c: Likewise.
11231         * lib/unistr/u8-strncpy.c: Likewise.
11232         * lib/unistr/u8-strnlen.c: Likewise.
11233         * lib/unistr/u8-strpbrk.c: Likewise.
11234         * lib/unistr/u8-strrchr.c: Likewise.
11235         * lib/unistr/u8-strspn.c: Likewise.
11236         * lib/unistr/u8-strstr.c: Likewise.
11237         * lib/unistr/u8-strtok.c: Likewise.
11238         * lib/unistr/u8-to-u16.c: Likewise.
11239         * lib/unistr/u8-to-u32.c: Likewise.
11240         * lib/unistr/u8-uctomb-aux.c: Likewise.
11241         * lib/unistr/u8-uctomb.c: Likewise.
11242         * lib/unitypes.h: Likewise.
11243         * lib/uniwidth.h: Likewise.
11244         * lib/uniwidth/cjk.h: Likewise.
11245         * lib/uniwidth/u16-strwidth.c: Likewise.
11246         * lib/uniwidth/u16-width.c: Likewise.
11247         * lib/uniwidth/u32-strwidth.c: Likewise.
11248         * lib/uniwidth/u32-width.c: Likewise.
11249         * lib/uniwidth/u8-strwidth.c: Likewise.
11250         * lib/uniwidth/u8-width.c: Likewise.
11251         * lib/uniwidth/width.c: Likewise.
11252
11253 2007-10-07  Bruno Haible  <bruno@clisp.org>
11254
11255         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
11256         The file is still under LGPL (see modules/inttypes).
11257
11258 2007-10-06  Bruno Haible  <bruno@clisp.org>
11259
11260         * modules/trunc (Dependencies): Add 'extensions'.
11261         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
11262         Reported by Ben Pfaff <blp@gnu.org>.
11263
11264 2007-10-06  Bruno Haible  <bruno@clisp.org>
11265
11266         * modules/freopen-tests: New file.
11267         * tests/test-freopen.c: New file.
11268
11269         * modules/fopen-tests: New file.
11270         * tests/test-fopen.c: New file.
11271
11272         * modules/fopen: New file.
11273         * lib/fopen.c: New file.
11274         * m4/fopen.m4: New file.
11275         * modules/freopen: New file.
11276         * lib/freopen.c: New file.
11277         * m4/freopen.m4: New file.
11278         * lib/stdio.in.h (fopen, freopen): New declarations.
11279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
11280         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11281         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
11282         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11283         * doc/functions/fopen.texi: Mention the 'fopen' module.
11284         * doc/functions/freopen.texi: Mention the 'freopen' module.
11285
11286 2007-10-06  Bruno Haible  <bruno@clisp.org>
11287
11288         * modules/open-tests: New file.
11289         * tests/test-open.c: New file.
11290
11291         * modules/open: New file.
11292         * lib/open.c: New file.
11293         * m4/open.m4: New file.
11294         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
11295         lib/open.c does.
11296         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
11297         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
11298         macros.
11299         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
11300         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
11301         REPLACE_OPEN.
11302         * doc/functions/open.texi: Mention the 'open' module.
11303
11304 2007-10-04  Bruno Haible  <bruno@clisp.org>
11305
11306         * modules/ceill-tests: New file.
11307         * tests/test-ceill.c: New file.
11308
11309         * modules/ceill: New file.
11310         * lib/ceill.c: Replace entire file.
11311         * m4/ceill.m4: New file.
11312         * lib/math.in.h (ceill): Replace declaration.
11313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
11314         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
11315         * doc/functions/ceill.texi: Mention the 'ceill' module.
11316         * modules/mathl (Files): Remove lib/ceill.c.
11317         (Depends-on): Add ceill.
11318
11319 2007-10-04  Bruno Haible  <bruno@clisp.org>
11320
11321         * modules/ceilf-tests: New file.
11322         * tests/test-ceilf.c: New file.
11323
11324         * modules/ceilf: New file.
11325         * lib/ceil.c: New file.
11326         * lib/ceilf.c: New file.
11327         * m4/ceilf.m4: New file.
11328         * lib/math.in.h (ceilf): New declaration.
11329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
11330         HAVE_DECL_CEILF.
11331         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
11332         HAVE_DECL_CEILF.
11333         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
11334
11335 2007-10-04  Bruno Haible  <bruno@clisp.org>
11336
11337         * modules/floorl-tests: New file.
11338         * tests/test-floorl.c: New file.
11339
11340         * modules/floorl: New file.
11341         * lib/floorl.c: Replace entire file.
11342         * m4/floorl.m4: New file.
11343         * lib/math.in.h (floorl): Replace declaration.
11344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
11345         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
11346         * doc/functions/floorl.texi: Mention the 'floorl' module.
11347         * modules/mathl (Files): Remove lib/floorl.c.
11348         (Depends-on): Add floorl.
11349
11350 2007-10-04  Bruno Haible  <bruno@clisp.org>
11351
11352         * modules/floorf-tests: New file.
11353         * tests/test-floorf.c: New file.
11354
11355         * modules/floorf: New file.
11356         * lib/floor.c: New file.
11357         * lib/floorf.c: New file.
11358         * m4/floorf.m4: New file.
11359         * lib/math.in.h (floorf): New declaration.
11360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
11361         HAVE_DECL_FLOORF.
11362         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
11363         HAVE_DECL_FLOORF.
11364         * doc/functions/floorf.texi: Mention the 'floorf' module.
11365
11366 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
11367             Bruno Haible  <bruno@clisp.org>
11368
11369         Advertise for the Git server instead of the CVS server.
11370         * doc/gnulib-intro.texi (Steady Development): Mention the Git
11371         repository instead of the CVS one.
11372         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
11373         about all VCS systems generically.
11374         * doc/gnulib.texi (Introduction): Capitalize `Git'.
11375
11376 2007-10-04  Bruno Haible  <bruno@clisp.org>
11377
11378         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
11379         means.
11380         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
11381
11382 2007-10-04  Bruno Haible  <bruno@clisp.org>
11383
11384         * modules/truncl-tests: New file.
11385         * tests/test-truncl.c: New file.
11386
11387         * modules/truncl: New file.
11388         * lib/truncl.c: New file.
11389         * m4/truncl.m4: New file.
11390         * lib/math.in.h (truncl): New declaration.
11391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
11392         HAVE_DECL_TRUNCL.
11393         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
11394         HAVE_DECL_TRUNCL.
11395         * doc/functions/truncl.texi: Mention the 'truncl' module.
11396
11397 2007-10-04  Bruno Haible  <bruno@clisp.org>
11398
11399         * modules/truncf-tests: New file.
11400         * tests/test-truncf.c: New file.
11401
11402         * modules/truncf: New file.
11403         * lib/trunc.c: Make paramerizable through USE_* macros.
11404         * lib/truncf.c: New file.
11405         * m4/truncf.m4: New file.
11406         * lib/math.in.h (truncf): New declaration.
11407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
11408         HAVE_DECL_TRUNCF.
11409         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
11410         HAVE_DECL_TRUNCF.
11411         * doc/functions/truncf.texi: Mention the 'truncf' module.
11412
11413 2007-10-03  Bruno Haible  <bruno@clisp.org>
11414
11415         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11416         augmentation also for tests modules.
11417         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
11418         * modules/atexit-tests (Makefile.am): Likewise.
11419         * modules/binary-io-tests (Makefile.am): Likewise.
11420         * modules/c-strcase-tests (Makefile.am): Likewise.
11421         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
11422         * modules/canonicalize-tests (Makefile.am): Likewise.
11423         * modules/closein-tests (Makefile.am): Likewise.
11424         * modules/fprintf-posix-tests (Makefile.am): Likewise.
11425         * modules/freadahead-tests (Makefile.am): Likewise.
11426         * modules/fseek-tests (Makefile.am): Likewise.
11427         * modules/fseeko-tests (Makefile.am): Likewise.
11428         * modules/ftell-tests (Makefile.am): Likewise.
11429         * modules/ftello-tests (Makefile.am): Likewise.
11430         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
11431         * modules/isnanl-tests (Makefile.am): Likewise.
11432         * modules/lseek-tests (Makefile.am): Likewise.
11433         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11434         * modules/mbscasestr-tests (Makefile.am): Likewise.
11435         * modules/mbschr-tests (Makefile.am): Likewise.
11436         * modules/mbscspn-tests (Makefile.am): Likewise.
11437         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11438         * modules/mbspbrk-tests (Makefile.am): Likewise.
11439         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11440         * modules/mbsrchr-tests (Makefile.am): Likewise.
11441         * modules/mbsspn-tests (Makefile.am): Likewise.
11442         * modules/mbsstr-tests (Makefile.am): Likewise.
11443         * modules/printf-posix-tests (Makefile.am): Likewise.
11444         * modules/snprintf-posix-tests (Makefile.am): Likewise.
11445         * modules/sprintf-posix-tests (Makefile.am): Likewise.
11446         * modules/tsearch-tests (Makefile.am): Likewise.
11447         * modules/uniname/uniname-tests (Makefile.am): Likewise.
11448         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11449         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11450         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11451         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11452         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11453         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11454         * modules/vprintf-posix-tests (Makefile.am): Likewise.
11455         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
11456         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
11457         * modules/xstrtoimax-tests (Makefile.am): Likewise.
11458         * modules/xstrtol-tests (Makefile.am): Likewise.
11459         * modules/xstrtoumax-tests (Makefile.am): Likewise.
11460         * modules/yesno-tests (Makefile.am): Likewise.
11461
11462 2007-10-03  Bruno Haible  <bruno@clisp.org>
11463
11464         * modules/trunc-tests: New file.
11465         * tests/test-trunc.c: New file.
11466
11467         * modules/trunc: New file.
11468         * lib/trunc.c: New file.
11469         * m4/trunc.m4: New file.
11470         * lib/math.in.h (trunc): New declaration.
11471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
11472         HAVE_DECL_TRUNC.
11473         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
11474         HAVE_DECL_TRUNC.
11475         * doc/functions/trunc.texi: Mention the 'trunc' module.
11476
11477 2007-10-03  Bruno Haible  <bruno@clisp.org>
11478
11479         * tests/test-fpending.c: New file, mostly copied
11480         from coreutils/lib/t-fpending.c.
11481         * modules/fpending-tests: New file.
11482
11483 2007-10-03  Bruno Haible  <bruno@clisp.org>
11484
11485         Port the stdio extensions to QNX (untested).
11486         * lib/fseterr.c (fseterr): Add support for QNX.
11487         * lib/fbufmode.c (fbufmode): Likewise.
11488         * lib/freadable.c (freadable): Likewise.
11489         * lib/fwritable.c (fwritable): Likewise.
11490         * lib/freading.c (freading): Likewise.
11491         * lib/fwriting.c (fwriting): Likewise.
11492         * lib/freadahead.c (freadahed): Likewise.
11493         * lib/fpurge.c (fpurge): Likewise.
11494         * lib/fseeko.c (rpl_fseeko): Likewise.
11495
11496 2007-10-03  Bruno Haible  <bruno@clisp.org>
11497             Jim Meyering  <jim@meyering.net>
11498             Eric Blake  <ebb9@byu.net>
11499
11500         * doc/relocatable.texi: Use @command instead of @program.
11501
11502 2007-10-02  Jim Meyering  <jim@meyering.net>
11503
11504         Perform one more "_.h" -> ".in.h" substitution.
11505         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
11506         instead of unistd_.h here, too.
11507
11508 2007-10-01  Bruno Haible  <bruno@clisp.org>
11509
11510         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
11511         Needed for the alloca-opt module.
11512
11513 2007-09-30  Bruno Haible  <bruno@clisp.org>
11514
11515         * lib/alloca.in.h: Renamed from lib/alloca_.h.
11516         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
11517         alloca_.h.
11518         * lib/argz.in.h: Renamed from lib/argz_.h.
11519         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
11520         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
11521         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
11522         byteswap_.h.
11523         * lib/dirent.in.h: Renamed from lib/dirent_.h.
11524         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
11525         dirent_.h.
11526         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
11527         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
11528         fcntl_.h.
11529         * lib/float.in.h: Renamed from lib/float_.h.
11530         * modules/float (Files, Makefile.am): Use float.in.h instead of
11531         float_.h.
11532         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
11533         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
11534         fnmatch_.h.
11535         * lib/getopt.in.h: Renamed from lib/getopt_.h.
11536         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
11537         getopt_.h.
11538         * lib/glob.in.h: Renamed from lib/glob_.h.
11539         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
11540         * lib/iconv.in.h: Renamed from lib/iconv_.h.
11541         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
11542         iconv_.h.
11543         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
11544         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
11545         inttypes_.h.
11546         * lib/locale.in.h: Renamed from lib/locale_.h.
11547         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
11548         locale_.h.
11549         * lib/math.in.h: Renamed from lib/math_.h.
11550         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
11551         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
11552         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
11553         of netinet_in_.h. Add dependency.
11554         * lib/poll.in.h: Renamed from lib/poll_.h.
11555         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
11556         * lib/search.in.h: Renamed from lib/search_.h.
11557         * modules/search (Files, Makefile.am): Use search.in.h instead of
11558         search_.h.
11559         * lib/signal.in.h: Renamed from lib/signal_.h.
11560         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
11561         _signal.h.
11562         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
11563         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
11564         stdbool_.h.
11565         * lib/stdint.in.h: Renamed from lib/stdint_.h.
11566         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
11567         stdint_.h.
11568         * lib/stdio.in.h: Renamed from lib/stdio_.h.
11569         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
11570         stdio_.h.
11571         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
11572         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
11573         stdlib_.h.
11574         * lib/string.in.h: Renamed from lib/string_.h.
11575         * modules/string (Files, Makefile.am): Use string.in.h instead of
11576         string_.h.
11577         * doc/gnulib-tool.texi (Initial import): Update.
11578         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
11579         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
11580         of sys_select_.h. Add dependency.
11581         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
11582         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
11583         of sys_socket_.h.
11584         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
11585         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
11586         sys_stat_.h.
11587         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
11588         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
11589         sys_time_.h.
11590         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
11591         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
11592         sysexits_.h.
11593         * lib/time.in.h: Renamed from lib/time_.h.
11594         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
11595         * lib/unistd.in.h: Renamed from lib/unistd_.h.
11596         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
11597         unistd_.h.
11598         * lib/wchar.in.h: Renamed from lib/wchar_.h.
11599         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
11600         wchar_.h.
11601         * lib/wctype.in.h: Renamed from lib/wctype_.h.
11602         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
11603         wctype_.h.
11604         * build-aux/bootstrap (slurp): Update.
11605         * lib/.cppi-disable: Update.
11606
11607 2007-09-30  Bruno Haible  <bruno@clisp.org>
11608
11609         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
11610         Needed on BeOS.
11611
11612 2007-09-30  Bruno Haible  <bruno@clisp.org>
11613
11614         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
11615
11616 2007-09-29  Bruno Haible  <bruno@clisp.org>
11617
11618         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
11619
11620 2007-09-29  Bruno Haible  <bruno@clisp.org>
11621
11622         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
11623         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
11624         * build-aux/install-reloc: Compile also areadlink.c.
11625         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
11626
11627 2007-09-29  Bruno Haible  <bruno@clisp.org>
11628
11629         * gnulib-tool (func_emit_initmacro_done): Indentation.
11630
11631 2007-09-29  Bruno Haible  <bruno@clisp.org>
11632
11633         * README: Add CVS checkout update instructions.
11634         Info from Bob Proulx <bob@proulx.com>.
11635
11636 2007-09-28  Eric Blake  <ebb9@byu.net>
11637
11638         Provide move-if-change.
11639         * build-aux/move-if-change: New file, based on best practice
11640         rather than any canonical upstream location.
11641
11642 2007-09-28  Jim Meyering  <jim@meyering.net>
11643
11644         Fix canonicalize loop-detection corner case.
11645         Do not attempt to stat the symlink values stored via seen_triple.
11646         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
11647         on linux-2.6.18, (but not 2.6.22).
11648         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
11649         triple_compare.  The former compares dev,ino,filename, while the latter
11650         would actually stat dirname(filename) when dev and ino were equal.
11651         * lib/hash-triple.c: Install <string.h>.
11652         (STREQ): Define.
11653         (triple_compare_ino_str): New function.
11654         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
11655
11656 2007-09-28  Eric Blake  <ebb9@byu.net>
11657
11658         Enforce that AC_REPLACE_FUNCS files exist.
11659         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
11660         override check for typos.
11661
11662         Fix test-closein on Solaris 10.
11663         * tests/test-closein.c (main): Don't assume stdin can be inherited
11664         closed on all systems.
11665         * tests/test-closein.sh: Likewise.
11666         Reported by Piotr Tarnowski.
11667
11668 2007-09-28  Jim Meyering  <jim@meyering.net>
11669
11670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
11671
11672 2007-09-27  Jim Meyering  <jim@meyering.net>
11673
11674         canonicalize: Avoid a false-positive cycle failure.
11675         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
11676         Sort.  Remove cycle-check.
11677         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
11678         not cycle-check.h.
11679         (seen_triple): New function.
11680         (canonicalize_filename_mode): Use it instead of cycle-check.
11681         * tests/test-canonicalize.c: Add a test for this bug.
11682         * tests/test-canonicalize.sh: Set up and run the test.
11683
11684         New module, file-set, from coreutils.
11685         * modules/file-set: Define it.
11686         * lib/file-set.c, lib/file-set.h: Implement.
11687
11688         New module, hash-triple, from coreutils.
11689         * modules/hash-triple: Define it.
11690         * lib/hash-triple.c, lib/hash-triple.h: Implement.
11691
11692 2007-09-25  Eric Blake  <ebb9@byu.net>
11693
11694         Fix strerror on Interix.
11695         * lib/string_.h (strerror): Declare replacement.
11696         * doc/functions/strerror.texi (strerror): Document the Interix
11697         shortcoming.
11698         * modules/string (Makefile.am): Support new hooks.
11699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
11700         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
11701         gl_FUNC_STRERROR_SEPARATE.
11702         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
11703         * lib/strerror.c (rpl_strerror): Provide replacement.
11704         * modules/strerror (Depends-on): Add string.
11705         (configure.ac): Detect use of module.
11706         * tests/test-strerror.c: New file.
11707         * modules/strerror-tests: New test module.
11708         * modules/argp (Depends-on): Add strerror.
11709         * modules/error (Depends-on): Likewise.
11710         Reported by Martin Koeppe.
11711
11712 2007-09-24  Bruno Haible  <bruno@clisp.org>
11713
11714         * README: Update git instructions.
11715
11716 2007-09-24  Eric Blake  <ebb9@byu.net>
11717
11718         Revert fpending breakage from 2007-09-08.
11719         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
11720         __fpending.c.
11721
11722 2007-09-24  Jim Meyering  <jim@meyering.net>
11723
11724         filenamecat.c: Add a test.
11725         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
11726         showing how the function works when DIR is the empty string.
11727
11728 2007-09-21  Simon Josefsson  <simon@josefsson.org>
11729
11730         * tests/test-canonicalize.sh: Turn on executable bit.
11731
11732 2007-09-19  Eric Blake  <ebb9@byu.net>
11733
11734         * README: Update CVS instructions.
11735
11736 2007-09-18  Bruno Haible  <bruno@clisp.org>
11737
11738         * modules/areadlink: New file.
11739         * lib/areadlink.h (areadlink): New declaration.
11740         * lib/areadlink.c: New file, based on lib/xreadlink.c.
11741
11742 2007-09-17  Jim Meyering  <jim@meyering.net>
11743
11744         * lib/savewd.c (ESTALE) [!defined]: Define.
11745         Reported to be required on Interix by Martin Koeppe.
11746
11747 2007-09-17  Bruno Haible  <bruno@clisp.org>
11748
11749         * gnulib-tool (func_version): Use $version.
11750
11751 2007-09-16  Bruno Haible  <bruno@clisp.org>
11752
11753         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
11754         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
11755         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
11756         Reported by Greg Schafer <gschafer@zip.com.au>.
11757
11758 2007-09-15  Bruno Haible  <bruno@clisp.org>
11759
11760         * gnulib-tool (sed): Try a little harder to make bash understand the
11761         alias.
11762         Reported by Bruce Korb <bruce.korb@gmail.com>.
11763
11764 2007-09-13  Eric Blake  <ebb9@byu.net>
11765
11766         * ChangeLog: Remove conflict markers.
11767
11768 2007-09-13  Simon Josefsson  <simon@josefsson.org>
11769
11770         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
11771         Reported by Bruno Haible <bruno@clisp.org>.
11772
11773 2007-09-12  Bruno Haible  <bruno@clisp.org>
11774
11775         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
11776         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
11777         is not defined.
11778
11779 2007-09-12  Eric Blake  <ebb9@byu.net>
11780
11781         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
11782         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
11783         Autoconf definition.
11784         * modules/euidaccess (Depends-on): Add extensions, for
11785         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
11786         * modules/fnmatch (Depends-on): Likewise.
11787         * modules/getaddrinfo (Depends-on): Likewise.
11788         * modules/getdelim (Depends-on): Likewise.
11789         * modules/getline (Depends-on): Likewise.
11790         * modules/getsubopt (Depends-on): Likewise.
11791         * modules/gettext (Depends-on): Likewise.
11792         * modules/group-member (Depends-on): Likewise.
11793         * modules/mbchar (Depends-on): Likewise.
11794         * modules/memmem (Depends-on): Likewise.
11795         * modules/mempcpy (Depends-on): Likewise.
11796         * modules/memrchr (Depends-on): Likewise.
11797         * modules/pagealign_alloc (Depends-on): Likewise.
11798         * modules/readutmp (Depends-on): Likewise.
11799         * modules/stpcpy (Depends-on): Likewise.
11800         * modules/stpncpy (Depends-on): Likewise.
11801         * modules/strchrnul (Depends-on): Likewise.
11802         * modules/strndup (Depends-on): Likewise.
11803         * modules/strsep (Depends-on): Likewise.
11804         * modules/strverscmp (Depends-on): Likewise.
11805         * modules/vasprintf (Depends-on): Likewise.
11806         * modules/wcwidth (Depends-on): Likewise.
11807         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
11808         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
11809         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
11810         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
11811         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11812         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11813         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
11814         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11815         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
11816         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11817         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11818         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
11819         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
11820         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11821         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
11822         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11823         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11824         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
11825         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11826         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
11827         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11828         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
11829         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
11830         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
11831         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
11832         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11833         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
11834         so that lock.m4 can be used in gettext without extensions module.
11835
11836 2007-09-11  Bruno Haible  <bruno@clisp.org>
11837
11838         * m4/isc-posix.m4: Remove file.
11839         Suggested by Eric Blake.
11840
11841 2007-09-11  Eric Blake  <ebb9@byu.net>
11842
11843         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
11844
11845 2007-09-10  Bruno Haible  <bruno@clisp.org>
11846
11847         * posix-modules: Fix typo in error message.
11848         Reported by Matt <mkraai@beckman.com>.
11849
11850 2007-09-09  Bruno Haible  <bruno@clisp.org>
11851
11852         * doc/functions/getdelim.texi: Update list of platforms lacking the
11853         function.
11854         * doc/functions/getline.texi: Likewise.
11855
11856 2007-09-09  Jim Meyering  <jim@meyering.net>
11857
11858         * lib/hash.c (hash_initialize): Detect calloc failure.
11859         Reported by Bruno Haible.
11860
11861 2007-09-09  Bruno Haible  <bruno@clisp.org>
11862
11863         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
11864         malloc or realloc fails.
11865
11866 2007-09-09  Bruno Haible  <bruno@clisp.org>
11867
11868         * modules/getcwd (Depends-on): Add malloc-posix.
11869         * modules/glob (Depends-on): Likewise.
11870         * modules/putenv (Depends-on): Likewise.
11871         * modules/strdup (Depends-on): Likewise.
11872         * modules/getdelim (Depends-on): Add realloc-posix.
11873         * modules/read-file (Depends-on): Likewise.
11874
11875 2007-09-09  Bruno Haible  <bruno@clisp.org>
11876
11877         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
11878         (gl_FUNC_MALLOC_POSIX): Require it.
11879         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
11880         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
11881         * modules/realloc (Files): Add m4/malloc.m4.
11882         * modules/calloc (Files): Likewise.
11883
11884 2007-09-09  Bruno Haible  <bruno@clisp.org>
11885
11886         * modules/malloc-posix: New file.
11887         * modules/malloc (Depends-on): Add malloc-posix.
11888         * lib/malloc.c: Include errno.h.
11889         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
11890         and a POSIX-compatible malloc into a single function. Set ENOMEM
11891         when returning NULL.
11892         * m4/malloc.m4: New file.
11893         * doc/functions/malloc.texi: Mention the malloc-posix module.
11894         * lib/stdlib_.h (malloc): New declaration.
11895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11896         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
11897         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
11898         and HAVE_MALLOC_POSIX.
11899
11900 2007-09-09  Bruno Haible  <bruno@clisp.org>
11901
11902         * modules/realloc-posix: New file.
11903         * modules/realloc (Depends-on): Add realloc-posix.
11904         * lib/realloc.c: Include errno.h.
11905         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
11906         and a POSIX-compatible realloc into a single function. Set ENOMEM
11907         when returning NULL.
11908         * m4/realloc.m4: New file.
11909         * doc/functions/realloc.texi: Mention the realloc-posix module.
11910         * lib/stdlib_.h (realloc): New declaration.
11911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11912         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
11913         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
11914         and HAVE_REALLOC_POSIX.
11915
11916 2007-09-09  Bruno Haible  <bruno@clisp.org>
11917
11918         * modules/calloc-posix: New file.
11919         * modules/calloc (Depends-on): Add calloc-posix.
11920         * lib/calloc.c: Include errno.h.
11921         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
11922         and a POSIX-compatible calloc into a single function. Set ENOMEM
11923         when returning NULL.
11924         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
11925         * doc/functions/calloc.texi: Mention the calloc-posix module.
11926         * lib/stdlib_.h (calloc): New declaration.
11927         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11928         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
11929         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
11930         and HAVE_CALLOC_POSIX.
11931
11932 2007-09-09  Bruno Haible  <bruno@clisp.org>
11933
11934         Allow for modules to show an arbitrary notice.
11935         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
11936         * gnulib-tool: New option --extract-notice.
11937         (func_usage): Document it.
11938         (sed_extract_prog): Update.
11939         (func_get_notice): New function.
11940         (func_modules_notice): New function.
11941         (func_import, func_create_testdir): Invoke it.
11942         Suggested by Jim Meyering.
11943
11944 2007-09-09  Bruno Haible  <bruno@clisp.org>
11945
11946         * gnulib-tool: New options --verbose, --quiet.
11947         (func_usage): Document them.
11948         (verbose): New variable.
11949         (func_execute_command): New function.
11950         (func_import): Don't show the module list and the file list if
11951         $verbose < 0.
11952         (func_create_testdir): Likewise. Use func_execute_command.
11953         (func_create_megatestdir): Use func_execute_command.
11954
11955 2007-09-08  Bruno Haible  <bruno@clisp.org>
11956
11957         * gnulib-tool (func_import): Prefer rsync over wget when available,
11958         for fetching the PO files.
11959
11960 2007-09-08  Bruno Haible  <bruno@clisp.org>
11961
11962         * posix-modules: New file. Portions copied from gnulib-tool.
11963         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
11964
11965 2007-09-08  Jim Meyering  <jim@meyering.net>
11966
11967         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
11968         * lib/fpending.h: Rename from __fpending.h.
11969         * lib/fpending.c: Rename from __fpending.c.
11970         Include "fpending.h", not "__fpending.h".
11971         * lib/__fpending.h, lib/__fpending.c: Remove files.
11972         * modules/fpending (Files): Reflect new file names.
11973         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
11974
11975 2007-09-08  Bruno Haible  <bruno@clisp.org>
11976
11977         * m4/inttypes-h.m4: Remove stub file.
11978
11979 2007-09-07  Simon Josefsson  <simon@josefsson.org>
11980
11981         * doc/headers/stdint.texi: Discuss #include_next issue.
11982
11983 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11984
11985         * build-aux/bootstrap: Remove obsolete comment about wget --help.
11986
11987 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11988
11989         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
11990         in variable name.
11991
11992 2007-09-03  Jim Meyering  <jim@meyering.net>
11993
11994         New module: git-version-gen.
11995         * modules/git-version-gen: New file.
11996
11997         Import changes from coreutils for bootstrap script.
11998
11999         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
12000
12001         bootstrap: uses rsync to download the .po files
12002         * build-aux/bootstrap (po_download_command_format): New global.
12003         (download_po_files): Use rsync.
12004         (update_po_files): Don't remove .po files after download,
12005         so future rsync runs can take advantage of the copies.
12006
12007         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
12008
12009         Solve the unnecessary-.po-file-regeneration problem once and for all.
12010         * build-aux/bootstrap (download_po_files): New function, renamed from
12011         get_translations.  Now, downloads, but doesn't update LINGUAS.
12012         (update_po_files): New function.
12013
12014         bootstrap: Ignore more.
12015         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
12016         uniwidth to e.g., lib/.gitignore.
12017         (slurp): Handle the sys_stat_.h -> sys mapping, too.
12018
12019         * build-aux/bootstrap: New setting: vc_ignore.
12020         (insert_sorted_if_absent): Create $file if absent.
12021         Adapt to new, possibly empty, list: $vc_ignore.
12022
12023         bootstrap: generate more ignorable names
12024         * build-aux/bootstrap (slurp): When generating ignorable names,
12025         also map .sin to .sed, .gperf to .c, and .y to .c.
12026
12027 2007-09-03  Jim Meyering  <jim@meyering.net>
12028
12029         * build-aux/git-version-gen: New file, from coreutils.  For details, see
12030         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
12031
12032 2007-09-02  Bruno Haible  <bruno@clisp.org>
12033
12034         Fix mis-recognition of 'mcs' on QNX 6.
12035         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
12036         output contains the string "Mono".
12037         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
12038         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
12039
12040 2007-09-01  Bruno Haible  <bruno@clisp.org>
12041
12042         Fix collision between uniwidth/* and linebreak modules.
12043         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
12044         u32_width): Remove declarations.
12045         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
12046         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
12047         streq3, streq2, streq1, streq0): Remove functions.
12048         (STREQ): Remove macro.
12049         (is_cjk_encoding): Remove function.
12050         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
12051         (uc_width, u8_width, u16_width, u32_width): Remove functions.
12052         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
12053         * NEWS: Document the change.
12054
12055 2007-09-01  Bruno Haible  <bruno@clisp.org>
12056
12057         * lib/streq.h: Add double-inclusion guard.
12058
12059 2007-09-01  Karl Berry  <karl@gnu.org>
12060
12061         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
12062
12063 2007-08-28  Jim Meyering  <jim@meyering.net>
12064
12065         Rename mreadlink_with_size to areadlink_with_size.
12066         * NEWS: Document the change.
12067         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
12068         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
12069         * lib/mreadlink.h: Rename this to...
12070         * lib/areadlink.h: ...this.
12071         * modules/mreadlink-with-size: Rename this to...
12072         * modules/areadlink-with-size: ...this.
12073         * lib/canonicalize.c: Reflect the renaming.
12074         * modules/canonicalize: Likewise.
12075
12076 2007-08-26  Bruno Haible  <bruno@clisp.org>
12077
12078         * gnulib-tool (func_import): When deciding which files to remove,
12079         consider also dangling symbolic links.
12080         Reported by Eric Blake.
12081
12082 2007-08-26  Bruno Haible  <bruno@clisp.org>
12083
12084         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
12085
12086 2007-08-23  Simon Josefsson  <simon@josefsson.org>
12087
12088         * lib/readline.c: Don't include getline.h, the prototype is now
12089         found in stdio.h.
12090
12091 2007-08-23  Jim Meyering  <jim@meyering.net>
12092
12093         Getdelim touchup.
12094         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
12095         around the funlockfile call, since funlockfile never sets errno.
12096         Don't set errno upon failed realloc.
12097
12098 2007-08-22  Eric Blake  <ebb9@byu.net>
12099
12100         Getline touchups.
12101         * lib/getdelim.c (getdelim): Revert regression that required *n to
12102         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
12103         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
12104         getdelim, rather than whether implementation is missing.
12105         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
12106         * lib/stdio_.h (getline): Also declare if replacement is
12107         required.
12108         * doc/functions/getdelim.texi: New file.
12109         * doc/functions/getline.texi: Likewise.
12110         * doc/gnulib.texi (Function Substitutes): Add new files.
12111         Reported by Bruno Haible.
12112
12113 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
12114
12115         * users.txt: Add Guile.
12116
12117 2007-08-22  Eric Blake  <ebb9@byu.net>
12118
12119         * tests/test-getdelim.c (main): Use remove, not unlink.
12120         * tests/test-getline.c (main): Likewise.
12121
12122         Move getline and getdelim into stdio.h, per POSIX 200x.
12123         * modules/getline (Files): Remove getline.h.
12124         (Depends-on): Add stdio.
12125         (configure.ac): Add module indicator.
12126         * modules/getdelim (Files): Remove getdelim.h.
12127         (Depends-on): Add stdio.
12128         (configure.ac): Add module indicator.
12129         * modules/stdio (Makefile.am): Work with new indicators.
12130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
12131         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
12132         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12133         * lib/getdelim.h: Delete.
12134         * lib/getline.h: Delete.
12135         * lib/stdio_.h (getdelim, getline): Declare.
12136         * modules/getdelim-tests: New module.
12137         * modules/getline-tests: Likewise.
12138         * tests/test-getdelim.c: New file.
12139         * tests/test-getline.c: Likewise.
12140         * NEWS: Document the change.
12141         * lib/getline.c: Update choice of header.
12142         * lib/csharpcomp.c: Likewise.
12143         * lib/getpass.c: Likewise.
12144         * lib/javacomp.c: Likewise.
12145         * lib/javaversion.c: Likewise.
12146         * lib/yesno.c: Likewise.
12147         * lib/getdelim.c: Likewise.
12148         (getdelim): Set errno on failure, and avoid memory leak.
12149
12150 2007-08-19  Bruno Haible  <bruno@clisp.org>
12151
12152         * modules/closein (Depends-on): Add freadahead.
12153         * lib/closein.c: Include freadahead.h.
12154         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
12155         is zero.
12156
12157 2007-08-19  Bruno Haible  <bruno@clisp.org>
12158
12159         * modules/freadahead-tests: New file.
12160         * tests/test-freadahead.sh: New file.
12161         * tests/test-freadahead.c: New file.
12162
12163         * modules/freadahead: New file.
12164         * lib/freadahead.h: New file.
12165         * lib/freadahead.c: New file.
12166         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
12167         fbufmode, fpurge, freadable, fwritable.
12168
12169 2007-08-19  Eric Blake  <ebb9@byu.net>
12170
12171         Test yesno in combination with closein.
12172         * lib/yesno.c (yesno): Document use of stdin.
12173         * modules/yesno-tests (Files): New module.
12174         * tests/test-yesno.c (main): New file.
12175         * tests/test-yesno.sh: Likewise.
12176
12177 2007-08-19  Bruno Haible  <bruno@clisp.org>
12178
12179         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
12180         * lib/fseeko.c (rpl_fseeko): Likewise.
12181         * lib/fseterr.c (fseterr): Likewise.
12182
12183 2007-08-19  Bruno Haible  <bruno@clisp.org>
12184
12185         * tests/test-lseek.c (main): Disable a test for BeOS.
12186         * doc/functions/lseek.texi: Document the BeOS bug.
12187
12188 2007-08-19  Bruno Haible  <bruno@clisp.org>
12189             Eric Blake  <ebb9@byu.net>
12190
12191         * lib/lseek.c: Include <sys/stat.h>.
12192         (rpl_lseek): Add workaround code also for Unix platforms.
12193         Needed for BeOS.
12194         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
12195         * doc/functions/lseek.texi: Document BeOS definiency.
12196
12197 2007-08-18  Bruno Haible  <bruno@clisp.org>
12198
12199         * modules/fstrcmp-tests: New file.
12200         * tests/test-fstrcmp.c: New file.
12201
12202 2007-08-18  Bruno Haible  <bruno@clisp.org>
12203
12204         * modules/fstrcmp: New file, from GNU gettext with modifications.
12205         * lib/fstrcmp.h: New file, from GNU gettext.
12206         * lib/fstrcmp.c: New file, from GNU gettext.
12207         * MODULES.html.sh (String handling): Add fstrcmp.
12208
12209 2007-08-18  Bruno Haible  <bruno@clisp.org>
12210
12211         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
12212         'bool'.
12213         (diag, compareseq): Remove const from the ctxt argument.
12214         (USE_HEURISTIC): Undefine at the end.
12215
12216 2007-08-18  Jim Meyering  <jim@meyering.net>
12217
12218         New file: lib/idcache.h
12219         * NEWS: Mention the addition.
12220         * modules/idcache (Files): Add lib/idcache.h
12221         * lib/idcache.c: Include "idcache.h".
12222         Don't include <sys/types.h>.
12223         Add a FIXME comment.
12224         Move file-scoped "static" declarations to the top.
12225         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
12226
12227 2007-08-17  Bruno Haible  <bruno@clisp.org>
12228         and Paul Eggert  <eggert@cs.ucla.edu>
12229
12230         * MODULES.html.sh: Add diffseq.
12231         * modules/diffseq: New file.
12232         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
12233         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
12234
12235 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12236
12237         Import changes from coreutils for bootstrap script.
12238
12239         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
12240
12241         * build-aux/bootstrap (slurp): Work even in environments where
12242         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
12243         current code does not slurp files whose names start with ".", and
12244         this looks like it might be a troublesome area.
12245
12246         2007-07-11  Jim Meyering  <jim@meyering.net>
12247
12248         If there's a GPL vN copyright comment, require that N == 3.
12249
12250         2007-07-08  Jim Meyering  <jim@meyering.net>
12251
12252         Run the coreutils-specific code only if tests/Makefile.am.in exists.
12253         * build-aux/bootstrap (mam_template): Move definition out of loop.
12254
12255         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
12256
12257         * build-aux/bootstrap (symlink_to_dir): Rename function from
12258         symlink_to_gnulib.  Add a directory parameter.  Update all
12259         callers.
12260         (cp_mark_as_generated): Also check for -- and link to -- files in
12261         gl/.
12262
12263         2007-07-08  Jim Meyering  <jim@meyering.net>
12264
12265         Adapt to deeper hierarchy in gnulib.
12266         * build-aux/bootstrap (symlink_to_dir): If the destination
12267         directory doesn't exist, create it. This is required at least for
12268         "lib/uniwidth/cjk.h".
12269
12270         2007-05-15  Jim Meyering  <jim@meyering.net>
12271
12272         * build-aux/bootstrap: Now that generated Makefile.am files
12273         are no longer under version control, they must be created at
12274         bootstrap time.
12275
12276 2007-08-14  Ben Pfaff  <blp@gnu.org>
12277
12278         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
12279
12280 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12281
12282         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
12283         given the changes below.
12284         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
12285         even on hosts that have padding bits beyond the supported 64.
12286
12287 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12288
12289         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
12290         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
12291         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
12292         depends on it.
12293         (xstrtol_error): Remove.
12294         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
12295         but with a different signature.
12296         (ATTRIBUTE_NORETURN, __attribute__): New macros.
12297         * lib/xstrtol-error.c: Include exitfail.h.
12298         (xstrtol_fatal): New function, with a different signature from the
12299         old xstrtol_error, so that the caller need not worry about passing
12300         in an exit status, or about storage management of the option argument.
12301         (xstrtol_error): Now a static function.  Redo signature to
12302         implement xstrtol_fatal.  Output the correct number of hyphens in
12303         front of the option so that the caller need not worry about
12304         storage management.
12305         (N_): New macro.
12306         (_): Remove; not used now.
12307         * modules/xstrtol: Depend on getopt.
12308         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
12309         of old STRTOL_FATAL_ERROR macro.
12310         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
12311         of test program.
12312         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
12313         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
12314
12315 2007-08-08  Eric Blake  <ebb9@byu.net>
12316
12317         * lib/xstrtol-error.c: Add missing include.
12318
12319         Move xstrtol messages into gnulib domain, when --pobase is used.
12320         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
12321         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
12322         * modules/xstrtol (Files): Distribute new file.
12323         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
12324         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
12325         * tests/test-xstrtol.c: ...into new file.
12326         * tests/test-xstrtoul.c: Also test xstrtoul.
12327         * tests/test-xstrtoimax.c: Also test xstrtoimax.
12328         * tests/test-xstrtoumax.c: Also test xstrtoumax.
12329         * tests/test-xstrtol.sh: Drive the tests.
12330         * tests/test-xstrtoimax.sh: Likewise.
12331         * tests/test-xstrtoumax.sh: Likewise.
12332         * modules/xstrtol-tests: New module.
12333         * modules/xstrtoimax-tests: Likewise.
12334         * modules/xstrtoumax-tests: Likewise.
12335
12336 2007-08-08  Jim Meyering  <jim@meyering.net>
12337
12338         New function: mfile_name_concat.
12339         * lib/filenamecat.c (mfile_name_concat): New function, just like
12340         file_name_concat, but return NULL upon failure rather than exiting
12341         with a diagnostic.
12342         * lib/filenamecat.h: Declare it.
12343
12344 2007-08-07  Bruno Haible  <bruno@clisp.org>
12345
12346         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
12347         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
12348         warning from gcc.
12349         Reported by Eric Blake.
12350
12351 2007-08-07  Simon Josefsson  <simon@josefsson.org>
12352
12353         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
12354         * modules/crypto/arcfour (License): Likewise.
12355         * modules/crypto/des-tests (License): Likewise.
12356         * modules/crypto/gc-arctwo-tests (License): Likewise.
12357         * modules/crypto/gc-des-tests (License): Likewise.
12358         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
12359         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
12360         * modules/crypto/gc-md2-tests (License): Likewise.
12361         * modules/crypto/gc-md4-tests (License): Likewise.
12362         * modules/crypto/gc-md5-tests (License): Likewise.
12363         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
12364         * modules/crypto/gc-rijndael-tests (License): Likewise.
12365         * modules/crypto/gc-sha1-tests (License): Likewise.
12366         * modules/crypto/gc-tests (License): Likewise.
12367         * modules/crypto/hmac-md5 (License): Likewise.
12368         * modules/crypto/hmac-sha1 (License): Likewise.
12369         * modules/crypto/md2-tests (License): Likewise.
12370         * modules/crypto/md4-tests (License): Likewise.
12371         * modules/crypto/md5 (License): Likewise.
12372         * modules/crypto/rijndael (License): Likewise.
12373         * modules/crypto/sha1 (License): Likewise.
12374         * modules/memxor (License): Likewise.
12375
12376 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
12377         and Bruno Haible  <bruno@clisp.org>
12378
12379         * NEWS: Describe interface changes to human, xstrtol.
12380         * lib/human.h: Include <xstrtol.h>.
12381         (human_options): Return enum strtol_error, not int.  Remove
12382         bool arg; take int * instead.
12383         * lib/human.c: Don't include "gettext.h".
12384         (_): Remove; no longer used.
12385         Don't include <xstrtol.h>, since human.h does it.
12386         (human_options): Adjust to abovementioned interface changes.
12387         Do not report error to stderr; that's now the caller's
12388         responsibility.
12389         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
12390         interface change.
12391         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
12392         Str, Argument_type_string.  All uses changed.  Put " argument"
12393         in diagnostics to make them clearer.  Change wording of suffix
12394         message for clarity.
12395         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
12396         Argument_type_string.
12397         (STRTOL_FATAL_WARN): Remove; no longer used.
12398         * modules/human (Depends-on): Remove gettext-h.
12399
12400 2007-08-06  Simon Josefsson  <simon@josefsson.org>
12401
12402         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
12403
12404 2007-07-31  Bruno Haible  <bruno@clisp.org>
12405
12406         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
12407         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
12408         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
12409
12410 2007-07-31  Bruno Haible  <bruno@clisp.org>
12411
12412         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
12413         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
12414
12415 2007-07-30  Bruno Haible  <bruno@clisp.org>
12416
12417         * modules/base64 (License): Use the synonymous term "LGPLv2+".
12418         * modules/c-ctype (License): Likewise.
12419         * modules/c-strcase (License): Likewise.
12420         * modules/check-version (License): Likewise.
12421         * modules/iconv (License): Likewise.
12422         * modules/iconv_open (License): Likewise.
12423         * modules/read-file (License): Likewise.
12424         * modules/striconv (License): Likewise.
12425         * modules/strverscmp (License): Likewise.
12426         * modules/vasprintf (License): Likewise.
12427         * modules/crypto/des (License): Likewise.
12428         * modules/crypto/gc (License): Likewise.
12429         * modules/crypto/gc-arcfour (License): Likewise.
12430         * modules/crypto/gc-arctwo (License): Likewise.
12431         * modules/crypto/gc-des (License): Likewise.
12432         * modules/crypto/gc-hmac-md5 (License): Likewise.
12433         * modules/crypto/gc-hmac-sha1 (License): Likewise.
12434         * modules/crypto/gc-md2 (License): Likewise.
12435         * modules/crypto/gc-md4 (License): Likewise.
12436         * modules/crypto/gc-md5 (License): Likewise.
12437         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
12438         * modules/crypto/gc-random (License): Likewise.
12439         * modules/crypto/gc-rijndael (License): Likewise.
12440         * modules/crypto/gc-sha1 (License): Likewise.
12441         * modules/crypto/md2 (License): Likewise.
12442         * modules/crypto/md4 (License): Likewise.
12443
12444 2007-07-30  Jim Meyering  <jim@meyering.net>
12445
12446         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
12447         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
12448         it has valid stat data.  This bug would cause du not to count the
12449         sizes of inaccessible directories.
12450         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
12451         in <http://bugzilla.redhat.com/250077>.
12452
12453 2007-07-25  Peter O'Gorman  <peter@pogma.com>
12454             Bruno Haible  <bruno@clisp.org>
12455
12456         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
12457         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
12458         #include_next, gives a diagnostic about it, but reports no error in
12459         the exit code.
12460         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
12461
12462 2007-07-24  Ben Pfaff  <blp@gnu.org>
12463
12464         Improve name: "count-one-bits" is better than "popcount".
12465         * MODULES.html.sh: Update name.
12466         * lib/popcount.h: Renamed lib/count-one-bits.h.
12467         (popcount): Renamed count_one_bits.
12468         (popcountl): Renamed count_one_bits_l.
12469         (popcountll): Renamed count_one_bits_ll.
12470         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
12471         * modules/popcount: Renamed module/count-one-bits.
12472         * modules/popcount-tests: Renamed module/count-one-bits-tests.
12473         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
12474
12475 2007-07-23  Ben Pfaff  <blp@gnu.org>
12476
12477         * lib/popcount.h (popcount32): Reduce size of constants, to allow
12478         better code generation, and add U to large constants to avoid
12479         warnings, in non-GCC case.
12480         Suggested by Bruno Haible.
12481
12482 2007-07-23  Ben Pfaff  <blp@gnu.org>
12483
12484         * lib/popcount.h: Use verify_true instead of if...abort.
12485         * modules/popcount: Depend on verify module.
12486         Suggested by Jim Meyering.
12487
12488 2007-07-23  Bruno Haible  <bruno@clisp.org>
12489
12490         * gnulib-tool (func_import): Create a .cvsignore file also when the
12491         directory is not yet in CVS but the toplevel directory is. When
12492         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
12493         Reported by Karl Berry.
12494
12495 2007-07-22  Ben Pfaff  <blp@gnu.org>
12496
12497         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
12498         case.
12499         Suggested by Eric Blake.
12500
12501 2007-07-22  Ben Pfaff  <blp@gnu.org>
12502
12503         New module: popcount.
12504         * MODULES.html.sh: Add popcount.
12505         * modules/popcount: New file.
12506         * modules/popcount-tests: New file.
12507         * tests/test-popcount.c: New file.
12508         * lib/popcount.h: New file.
12509         * m4/popcount.m4: New file.
12510
12511 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12512
12513         * build-aux/announce-gen: Update to GPLv3.
12514
12515         * build-aux/config.guess: Update from config.
12516
12517 2007-07-21  Bruno Haible  <bruno@clisp.org>
12518
12519         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
12520         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
12521
12522 2007-07-20  Jim Meyering  <jim@meyering.net>
12523
12524         * check-module: Diagnose a self-dependency.
12525
12526 2007-07-19  Bruno Haible  <bruno@clisp.org>
12527
12528         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
12529         empty.
12530         Reported by Eric Blake.
12531
12532 2007-07-18  Bruno Haible  <bruno@clisp.org>
12533
12534         * gnulib-tool: New options --po-base, --po-domain.
12535         (func_usage): Document them.
12536         (pobase, po_domain): New variables.
12537         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
12538         DEFAULT_TEXT_DOMAIN.
12539         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
12540         (func_import): Consider pobase and po_domain. Create a po/ directory.
12541         (func_create_testdir): Set pobase and po_domain to empty.
12542         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
12543         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
12544
12545 2007-07-18  Bruno Haible  <bruno@clisp.org>
12546
12547         * gnulib-tool (func_get_automake_snippet): Synthesize also an
12548         EXTRA_DIST augmentation for files in build-aux/.
12549
12550 2007-07-16  Bruno Haible  <bruno@clisp.org>
12551
12552         * modules/lseek (License): Use the synonymous term "LGPLv2+".
12553         * modules/getdelim (License): Likewise.
12554
12555 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12556
12557         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
12558         * modules/d-type (License): Likewise.
12559         * modules/extensions (License): Likewise.
12560         * modules/fnmatch (License): Likewise.
12561         * modules/fseeko (License): Likewise.
12562         * modules/getaddrinfo (License): Likewise.
12563         * modules/getline (License): Likewise.
12564         * modules/getlogin_r (License): Likewise.
12565         * modules/getpass (License): Likewise.
12566         * modules/gettimeofday (License): Likewise.
12567         * modules/glob (License): Likewise.
12568         * modules/inet_ntop (License): Likewise.
12569         * modules/malloc (License): Likewise.
12570         * modules/malloca (License): Likewise.
12571         * modules/memmem (License): Likewise.
12572         * modules/mempcpy (License): Likewise.
12573         * modules/memset (License): Likewise.
12574         * modules/minmax (License): Likewise.
12575         * modules/mktime (License): Likewise.
12576         * modules/netinet_in (License): Likewise.
12577         * modules/pathmax (License): Likewise.
12578         * modules/poll (License): Likewise.
12579         * modules/regex (License): Likewise.
12580         * modules/snprintf (License): Likewise.
12581         * modules/stdbool (License): Likewise.
12582         * modules/stdint (License): Likewise.
12583         * modules/stdio (License): Likewise.
12584         * modules/strcase (License): Likewise.
12585         * modules/strcasestr (License): Likewise.
12586         * modules/strdup (License): Likewise.
12587         * modules/string (License): Likewise.
12588         * modules/strndup (License): Likewise.
12589         * modules/strnlen (License): Likewise.
12590         * modules/strpbrk (License): Likewise.
12591         * modules/strptime (License): Likewise.
12592         * modules/strsep (License): Likewise.
12593         * modules/sys_select (License): Likewise.
12594         * modules/sys_socket (License): Likewise.
12595         * modules/sys_stat (License): Likewise.
12596         * modules/sys_time (License): Likewise.
12597         * modules/time (License): Likewise.
12598         * modules/time_r (License): Likewise.
12599         * modules/timegm (License): Likewise.
12600         * modules/unistd (License): Likewise.
12601         * modules/vsnprintf (License): Likewise.
12602         * modules/wctype (License): Likewise.
12603
12604 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12605
12606         * modules/argz (License): LGPLv2+.
12607
12608 2007-07-15  Karl Berry  <karl@gnu.org>
12609
12610         * doc/gnulib.texi: revise node structure per new fdl.texi.
12611
12612 2007-07-14  Bruno Haible  <bruno@clisp.org>
12613
12614         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
12615         the output file.
12616         * lib/uniname/uninames.h: Regenerated.
12617
12618 2007-07-14  Karl Berry  <karl@gnu.org>
12619
12620         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
12621         omitting sectioning and index commands.
12622
12623 2007-07-13  Bruno Haible  <bruno@clisp.org>
12624
12625         New gnulib-tool option --more-symlinks.
12626         * gnulib-tool (func_usage): Document --more-symlinks.
12627         (do_copyrights): New variable.
12628         Recognize option --more-symlinks.
12629         (func_import): Don't add a copyright notice transform to
12630         sed_transform_lib_file if do_copyrights is empty.
12631
12632 2007-07-13  Bruno Haible  <bruno@clisp.org>
12633
12634         * lib/vasnprintf.c (decimal_point_char): Define also if
12635         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
12636         && !NEED_PRINTF_DIRECTIVE_A.
12637         Reported by Clemens Koller <clemens.koller@anagramm.de> via
12638         Gary V. Vaughan <gary@gnu.org>.
12639
12640 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12641
12642         * lib/inttypes_.h: Undo previous change, since it was fixed
12643         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
12644
12645 2007-07-13  Bruno Haible  <bruno@clisp.org>
12646
12647         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
12648         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
12649
12650 2007-07-13  Jim Meyering  <jim@meyering.net>
12651
12652         df: Don't fail for Tru64's "file-on-file mount".
12653         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
12654         so we fall through and use statfs instead.  Details here:
12655         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
12656         Reported by Albert Chin.
12657
12658 2007-07-13  Bruno Haible  <bruno@clisp.org>
12659
12660         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
12661         * modules/configmake (License): Likewise.
12662         * modules/gettext (License): Likewise.
12663         * modules/gettext-h (License): Likewise.
12664         * modules/include_next (License): Likewise.
12665         * modules/link-warning (License): Likewise.
12666         * modules/localcharset (License): Likewise.
12667         * modules/localename (License): Likewise.
12668         * modules/lock (License): Likewise.
12669         * modules/relocatable-lib-lgpl (License): Likewise.
12670         * modules/size_max (License): Likewise.
12671         * modules/vasnprintf (License): Likewise.
12672         * modules/wchar (License): Likewise.
12673         * modules/xsize (License): Likewise.
12674
12675 2007-07-13  Bruno Haible  <bruno@clisp.org>
12676
12677         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
12678         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
12679
12680 2007-07-12  Bruno Haible  <bruno@clisp.org>
12681
12682         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
12683         in the modules files.
12684
12685 2007-07-11  Karl Berry  <karl@gnu.org>
12686
12687         * MODULES.html.sh (func_module): use
12688          sed -e '\|^'"${includefile}"'$|d'
12689          instead of /.../d, to avoid errors on $includefile's containing /.
12690
12691 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
12692
12693         * gnulib-tool (func_import): Avoid duplication of --avoid
12694         statements
12695         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
12696         names to `_' in variable names.
12697
12698 2007-07-10  Eric Blake  <ebb9@byu.net>
12699
12700         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
12701         * NEWS: Document this change.
12702
12703 2007-07-08  Bruno Haible  <bruno@clisp.org>
12704
12705         Update to Unicode 5.0.
12706         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
12707         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
12708         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
12709         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
12710         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
12711         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
12712         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
12713         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
12714         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
12715         U+10A3F, U+1D242..U+1D244.
12716         (nonspacing_table_ind): Update.
12717         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
12718         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
12719
12720 2007-07-08  Bruno Haible  <bruno@clisp.org>
12721
12722         Update to Unicode 5.0.
12723         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
12724         code transform. Extend the name index field of unicode_name_to_code and
12725         unicode_code_to_name from 16 to 24 bits.
12726         * lib/uniname/uniname.c (unicode_character_name,
12727         unicode_name_character): Add the range 0x12xxx to the code transform.
12728         * lib/uniname/uninames.h: Regenerated.
12729         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
12730
12731 2007-07-07  Bruno Haible  <bruno@clisp.org>
12732
12733         * modules/wcwidth-tests: New file.
12734         * tests/test-wcwidth.c: New file.
12735
12736         Work around MacOS X wcwidth() bug.
12737         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
12738         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
12739         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
12740         original wcwidth in non-UTF-8 locales.
12741         * modules/wcwidth (Depends-on): Add localcharset, streq,
12742         uniwidth/width.
12743         * doc/functions/wcwidth.texi: Update.
12744
12745 2007-07-07  Bruno Haible  <bruno@clisp.org>
12746
12747         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
12748         (wcwidth): New declaration.
12749         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
12750         macros.
12751         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
12752         here. Prepare for creating <wchar.h> unconditionally.
12753         * modules/wchar (Depends-on): Add link-warning.
12754         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
12755         REPLACE_WCWIDTH, and GL_LINK_WARNING.
12756         * lib/wcwidth.h: Remove file.
12757         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
12758         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
12759         * modules/wcwidth (Files): Remove lib/wcwidth.h.
12760         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
12761         (Include): Replace wcwidth.h with <wchar.h>.
12762         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
12763         * lib/mbchar.h: Don't include wcwidth.h.
12764         * lib/mbswidth.c: Likewise.
12765         * NEWS: Mention the change.
12766
12767 2007-07-07  Bruno Haible  <bruno@clisp.org>
12768
12769         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
12770         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
12771         definition with an external declaration.
12772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
12773         defined as a function. Remove AC_C_INLINE requirement.
12774         * modules/wcwidth (Files): Add lib/wcwidth.c.
12775         (Makefile.am): Remove redundant statement.
12776
12777 2007-07-07  Bruno Haible  <bruno@clisp.org>
12778
12779         * MODULES.html.sh (Unicode string functions): Add the new modules.
12780
12781         * tests/uniwidth/test-u32-strwidth.c: New file.
12782         * modules/uniwidth/u32-strwidth-tests: New file.
12783
12784         * lib/uniwidth/u32-strwidth.c: New file.
12785         * modules/uniwidth/u32-strwidth: New file.
12786
12787         * tests/uniwidth/test-u16-strwidth.c: New file.
12788         * modules/uniwidth/u16-strwidth-tests: New file.
12789
12790         * lib/uniwidth/u16-strwidth.c: New file.
12791         * modules/uniwidth/u16-strwidth: New file.
12792
12793         * tests/uniwidth/test-u8-strwidth.c: New file.
12794         * modules/uniwidth/u8-strwidth-tests: New file.
12795
12796         * lib/uniwidth/u8-strwidth.c: New file.
12797         * modules/uniwidth/u8-strwidth: New file.
12798
12799         * tests/uniwidth/test-u32-width.c: New file.
12800         * modules/uniwidth/u32-width-tests: New file.
12801
12802         * lib/uniwidth/u32-width.c: New file.
12803         * modules/uniwidth/u32-width: New file.
12804
12805         * tests/uniwidth/test-u16-width.c: New file.
12806         * modules/uniwidth/u16-width-tests: New file.
12807
12808         * lib/uniwidth/u16-width.c: New file.
12809         * modules/uniwidth/u16-width: New file.
12810
12811         * tests/uniwidth/test-u8-width.c: New file.
12812         * modules/uniwidth/u8-width-tests: New file.
12813
12814         * lib/uniwidth/u8-width.c: New file.
12815         * modules/uniwidth/u8-width: New file.
12816
12817         * tests/uniwidth/test-uc_width.c: New file.
12818         * modules/uniwidth/width-tests: New file.
12819
12820         * lib/uniwidth/width.c: New file, from GNU libiconv.
12821         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
12822         * modules/uniwidth/width: New file.
12823
12824         * lib/uniwidth.h: New file, from GNU libiconv.
12825         * modules/uniwidth/base: New file.
12826
12827 2007-07-07  Bruno Haible  <bruno@clisp.org>
12828
12829         * lib/uniname.h: New file, from GNU gettext.
12830         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
12831         * lib/uniname/uninames.h: New file, from GNU gettext.
12832         * lib/uniname/uniname.c: New file, from GNU gettext.
12833         * tests/uniname/test-uninames.sh: New file.
12834         * tests/uniname/test-uninames.c: New file, from GNU gettext.
12835         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
12836         * modules/uniname/base: New file.
12837         * modules/uniname/uniname: New file.
12838         * modules/uniname/uniname-tests: New file.
12839         * MODULES.html.sh (Unicode string functions): Add the new modules.
12840
12841 2007-07-06  Bruno Haible  <bruno@clisp.org>
12842
12843         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
12844
12845 2007-07-06  Bruno Haible  <bruno@clisp.org>
12846
12847         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
12848         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
12849         includes <cygwin/sys_time.h> which includes <sys/select.h> which
12850         include <sys/time.h>.
12851         Reported by Eric Blake.
12852
12853 2007-07-06  Eric Blake  <ebb9@byu.net>
12854
12855         Fix testing canonicalize on cygwin.
12856         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12857         Revert patch from 2007-06-19.
12858         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
12859         canonicalize module is also in use.
12860         * tests/test-canonicalize.c: New file.
12861         * tests/test-canonicalize.sh: Likewise.
12862         * modules/canonicalize-tests: Likewise.
12863
12864 2007-07-06  Jim Meyering  <jim@meyering.net>
12865
12866         * lib/getugroups.c (getugroups): Detect getgrent failure.
12867         Adjust comment to reflect reality: this function may return -1.
12868
12869 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12870
12871         * build-aux/bootstrap (TP_URL,get_translations): Update to use
12872         the new TP address.
12873         (usage): Fix typo
12874         (gnulib_mk): New variable.
12875
12876 2007-07-05  Jim Meyering  <jim@meyering.net>
12877
12878         Don't let endgrent clobber errno, no matter how improbable.
12879         * lib/getugroups.c (getugroups): Save and restore errno around
12880         endgrent call.
12881
12882         Close the group DB even when failing with 2^31 or more members.
12883         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
12884
12885 2007-07-04  Jim Meyering  <jim@meyering.net>
12886
12887         * lib/getugroups.h: New file.
12888         * lib/getugroups.c: Include "getugroups.h".
12889         Remove uses of "register" keyword.
12890         Move local variable, "cp", down into scope where used.
12891         Give "username" parameter the "const" attribute.
12892         * modules/getugroups (Files): Add lib/getugroups.h
12893
12894 2007-07-04  Karl Berry  <karl@gnu.org>
12895
12896         * MODULES.html.sh (func_all_modules): Complete rename of
12897         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
12898
12899 2007-07-02  Bruno Haible  <bruno@clisp.org>
12900
12901         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
12902         mode, when inttypes.h comes from gnulib.
12903         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12904
12905 2007-07-02  Simon Josefsson  <simon@josefsson.org>
12906
12907         * NEWS: Mention lgpl module name change.
12908
12909         * modules/lgpl-2.1: Renamed from lgpl.
12910
12911         * NEWS: Mention gpl module name change.
12912
12913         * modules/gpl-3.0: New file, based on gpl-2.0.
12914
12915         * modules/gpl-2.0: Renamed from gpl.
12916
12917         * modules/gpl: Fix filename, doc/gpl.texi is now found at
12918         doc/gpl-2.0.texi.
12919
12920 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12921
12922         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
12923         #define __STDC_LIMIT_MACROS temporarily while including
12924         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
12925         Problem reported by Joel E. Denny in
12926         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
12927
12928 2007-07-01  Bruno Haible  <bruno@clisp.org>
12929
12930         * lib/unistdio.h: New file.
12931         * lib/unistdio/u-asnprintf.h: New file.
12932         * lib/unistdio/u-asprintf.h: New file.
12933         * lib/unistdio/u-printf-args.c: New file.
12934         * lib/unistdio/u-printf-args.h: New file.
12935         * lib/unistdio/u-printf-parse.h: New file.
12936         * lib/unistdio/u-snprintf.h: New file.
12937         * lib/unistdio/u-sprintf.h: New file.
12938         * lib/unistdio/u-vasprintf.h: New file.
12939         * lib/unistdio/u-vsnprintf.h: New file.
12940         * lib/unistdio/u-vsprintf.h: New file.
12941         * lib/unistdio/ulc-asnprintf.c: New file.
12942         * lib/unistdio/ulc-asprintf.c: New file.
12943         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
12944         * lib/unistdio/ulc-printf-parse.c: New file.
12945         * lib/unistdio/ulc-snprintf.c: New file.
12946         * lib/unistdio/ulc-sprintf.c: New file.
12947         * lib/unistdio/ulc-vasnprintf.c: New file.
12948         * lib/unistdio/ulc-vasprintf.c: New file.
12949         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
12950         * lib/unistdio/ulc-vsnprintf.c: New file.
12951         * lib/unistdio/ulc-vsprintf.c: New file.
12952         * lib/unistdio/u8-asnprintf.c: New file.
12953         * lib/unistdio/u8-asprintf.c: New file.
12954         * lib/unistdio/u8-printf-parse.c: New file.
12955         * lib/unistdio/u8-snprintf.c: New file.
12956         * lib/unistdio/u8-sprintf.c: New file.
12957         * lib/unistdio/u8-vasnprintf.c: New file.
12958         * lib/unistdio/u8-vasprintf.c: New file.
12959         * lib/unistdio/u8-vsnprintf.c: New file.
12960         * lib/unistdio/u8-vsprintf.c: New file.
12961         * lib/unistdio/u8-u8-asnprintf.c: New file.
12962         * lib/unistdio/u8-u8-asprintf.c: New file.
12963         * lib/unistdio/u8-u8-snprintf.c: New file.
12964         * lib/unistdio/u8-u8-sprintf.c: New file.
12965         * lib/unistdio/u8-u8-vasnprintf.c: New file.
12966         * lib/unistdio/u8-u8-vasprintf.c: New file.
12967         * lib/unistdio/u8-u8-vsnprintf.c: New file.
12968         * lib/unistdio/u8-u8-vsprintf.c: New file.
12969         * lib/unistdio/u16-asnprintf.c: New file.
12970         * lib/unistdio/u16-asprintf.c: New file.
12971         * lib/unistdio/u16-printf-parse.c: New file.
12972         * lib/unistdio/u16-snprintf.c: New file.
12973         * lib/unistdio/u16-sprintf.c: New file.
12974         * lib/unistdio/u16-vasnprintf.c: New file.
12975         * lib/unistdio/u16-vasprintf.c: New file.
12976         * lib/unistdio/u16-vsnprintf.c: New file.
12977         * lib/unistdio/u16-vsprintf.c: New file.
12978         * lib/unistdio/u16-u16-asnprintf.c: New file.
12979         * lib/unistdio/u16-u16-asprintf.c: New file.
12980         * lib/unistdio/u16-u16-snprintf.c: New file.
12981         * lib/unistdio/u16-u16-sprintf.c: New file.
12982         * lib/unistdio/u16-u16-vasnprintf.c: New file.
12983         * lib/unistdio/u16-u16-vasprintf.c: New file.
12984         * lib/unistdio/u16-u16-vsnprintf.c: New file.
12985         * lib/unistdio/u16-u16-vsprintf.c: New file.
12986         * lib/unistdio/u32-asnprintf.c: New file.
12987         * lib/unistdio/u32-asprintf.c: New file.
12988         * lib/unistdio/u32-printf-parse.c: New file.
12989         * lib/unistdio/u32-snprintf.c: New file.
12990         * lib/unistdio/u32-sprintf.c: New file.
12991         * lib/unistdio/u32-vasnprintf.c: New file.
12992         * lib/unistdio/u32-vasprintf.c: New file.
12993         * lib/unistdio/u32-vsnprintf.c: New file.
12994         * lib/unistdio/u32-vsprintf.c: New file.
12995         * lib/unistdio/u32-u32-asnprintf.c: New file.
12996         * lib/unistdio/u32-u32-asprintf.c: New file.
12997         * lib/unistdio/u32-u32-snprintf.c: New file.
12998         * lib/unistdio/u32-u32-sprintf.c: New file.
12999         * lib/unistdio/u32-u32-vasnprintf.c: New file.
13000         * lib/unistdio/u32-u32-vasprintf.c: New file.
13001         * lib/unistdio/u32-u32-vsnprintf.c: New file.
13002         * lib/unistdio/u32-u32-vsprintf.c: New file.
13003         * tests/unistdio/test-ulc-asnprintf1.c: New file.
13004         * tests/unistdio/test-ulc-asnprintf1.h: New file.
13005         * tests/unistdio/test-ulc-printf1.h: New file.
13006         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
13007         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
13008         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
13009         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
13010         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
13011         * tests/unistdio/test-ulc-vasprintf1.c: New file.
13012         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
13013         * tests/unistdio/test-ulc-vsprintf1.c: New file.
13014         * tests/unistdio/test-u8-asnprintf1.c: New file.
13015         * tests/unistdio/test-u8-asnprintf1.h: New file.
13016         * tests/unistdio/test-u8-printf1.h: New file.
13017         * tests/unistdio/test-u8-vasnprintf1.c: New file.
13018         * tests/unistdio/test-u8-vasnprintf2.c: New file.
13019         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
13020         * tests/unistdio/test-u8-vasnprintf3.c: New file.
13021         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
13022         * tests/unistdio/test-u8-vasprintf1.c: New file.
13023         * tests/unistdio/test-u8-vsnprintf1.c: New file.
13024         * tests/unistdio/test-u8-vsprintf1.c: New file.
13025         * tests/unistdio/test-u16-asnprintf1.c: New file.
13026         * tests/unistdio/test-u16-asnprintf1.h: New file.
13027         * tests/unistdio/test-u16-printf1.h: New file.
13028         * tests/unistdio/test-u16-vasnprintf1.c: New file.
13029         * tests/unistdio/test-u16-vasnprintf2.c: New file.
13030         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
13031         * tests/unistdio/test-u16-vasnprintf3.c: New file.
13032         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
13033         * tests/unistdio/test-u16-vasprintf1.c: New file.
13034         * tests/unistdio/test-u16-vsnprintf1.c: New file.
13035         * tests/unistdio/test-u16-vsprintf1.c: New file.
13036         * tests/unistdio/test-u32-asnprintf1.c: New file.
13037         * tests/unistdio/test-u32-asnprintf1.h: New file.
13038         * tests/unistdio/test-u32-printf1.h: New file.
13039         * tests/unistdio/test-u32-vasnprintf1.c: New file.
13040         * tests/unistdio/test-u32-vasnprintf2.c: New file.
13041         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
13042         * tests/unistdio/test-u32-vasnprintf3.c: New file.
13043         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
13044         * tests/unistdio/test-u32-vasprintf1.c: New file.
13045         * tests/unistdio/test-u32-vsnprintf1.c: New file.
13046         * tests/unistdio/test-u32-vsprintf1.c: New file.
13047         * modules/unistdio/base: New file.
13048         * modules/unistdio/u-printf-args: New file.
13049         * modules/unistdio/ulc-asnprintf: New file.
13050         * modules/unistdio/ulc-asprintf: New file.
13051         * modules/unistdio/ulc-fprintf: New file.
13052         * modules/unistdio/ulc-printf-parse: New file.
13053         * modules/unistdio/ulc-snprintf: New file.
13054         * modules/unistdio/ulc-sprintf: New file.
13055         * modules/unistdio/ulc-vasnprintf: New file.
13056         * modules/unistdio/ulc-vasprintf: New file.
13057         * modules/unistdio/ulc-vfprintf: New file.
13058         * modules/unistdio/ulc-vsnprintf: New file.
13059         * modules/unistdio/ulc-vsprintf: New file.
13060         * modules/unistdio/u8-asnprintf: New file.
13061         * modules/unistdio/u8-asprintf: New file.
13062         * modules/unistdio/u8-printf-parse: New file.
13063         * modules/unistdio/u8-snprintf: New file.
13064         * modules/unistdio/u8-sprintf: New file.
13065         * modules/unistdio/u8-vasnprintf: New file.
13066         * modules/unistdio/u8-vasprintf: New file.
13067         * modules/unistdio/u8-vsnprintf: New file.
13068         * modules/unistdio/u8-vsprintf: New file.
13069         * modules/unistdio/u8-u8-asnprintf: New file.
13070         * modules/unistdio/u8-u8-asprintf: New file.
13071         * modules/unistdio/u8-u8-snprintf: New file.
13072         * modules/unistdio/u8-u8-sprintf: New file.
13073         * modules/unistdio/u8-u8-vasnprintf: New file.
13074         * modules/unistdio/u8-u8-vasprintf: New file.
13075         * modules/unistdio/u8-u8-vsnprintf: New file.
13076         * modules/unistdio/u8-u8-vsprintf: New file.
13077         * modules/unistdio/u16-asnprintf: New file.
13078         * modules/unistdio/u16-asprintf: New file.
13079         * modules/unistdio/u16-printf-parse: New file.
13080         * modules/unistdio/u16-snprintf: New file.
13081         * modules/unistdio/u16-sprintf: New file.
13082         * modules/unistdio/u16-vasnprintf: New file.
13083         * modules/unistdio/u16-vasprintf: New file.
13084         * modules/unistdio/u16-vsnprintf: New file.
13085         * modules/unistdio/u16-vsprintf: New file.
13086         * modules/unistdio/u16-u16-asnprintf: New file.
13087         * modules/unistdio/u16-u16-asprintf: New file.
13088         * modules/unistdio/u16-u16-snprintf: New file.
13089         * modules/unistdio/u16-u16-sprintf: New file.
13090         * modules/unistdio/u16-u16-vasnprintf: New file.
13091         * modules/unistdio/u16-u16-vasprintf: New file.
13092         * modules/unistdio/u16-u16-vsnprintf: New file.
13093         * modules/unistdio/u16-u16-vsprintf: New file.
13094         * modules/unistdio/u32-asnprintf: New file.
13095         * modules/unistdio/u32-asprintf: New file.
13096         * modules/unistdio/u32-printf-parse: New file.
13097         * modules/unistdio/u32-snprintf: New file.
13098         * modules/unistdio/u32-sprintf: New file.
13099         * modules/unistdio/u32-vasnprintf: New file.
13100         * modules/unistdio/u32-vasprintf: New file.
13101         * modules/unistdio/u32-vsnprintf: New file.
13102         * modules/unistdio/u32-vsprintf: New file.
13103         * modules/unistdio/u32-u32-asnprintf: New file.
13104         * modules/unistdio/u32-u32-asprintf: New file.
13105         * modules/unistdio/u32-u32-snprintf: New file.
13106         * modules/unistdio/u32-u32-sprintf: New file.
13107         * modules/unistdio/u32-u32-vasnprintf: New file.
13108         * modules/unistdio/u32-u32-vasprintf: New file.
13109         * modules/unistdio/u32-u32-vsnprintf: New file.
13110         * modules/unistdio/u32-u32-vsprintf: New file.
13111         * modules/unistdio/ulc-asnprintf-tests: New file.
13112         * modules/unistdio/ulc-vasnprintf-tests: New file.
13113         * modules/unistdio/ulc-vasprintf-tests: New file.
13114         * modules/unistdio/ulc-vsnprintf-tests: New file.
13115         * modules/unistdio/ulc-vsprintf-tests: New file.
13116         * modules/unistdio/u8-asnprintf-tests: New file.
13117         * modules/unistdio/u8-vasnprintf-tests: New file.
13118         * modules/unistdio/u8-vasprintf-tests: New file.
13119         * modules/unistdio/u8-vsnprintf-tests: New file.
13120         * modules/unistdio/u8-vsprintf-tests: New file.
13121         * modules/unistdio/u16-asnprintf-tests: New file.
13122         * modules/unistdio/u16-vasnprintf-tests: New file.
13123         * modules/unistdio/u16-vasprintf-tests: New file.
13124         * modules/unistdio/u16-vsnprintf-tests: New file.
13125         * modules/unistdio/u16-vsprintf-tests: New file.
13126         * modules/unistdio/u32-asnprintf-tests: New file.
13127         * modules/unistdio/u32-vasnprintf-tests: New file.
13128         * modules/unistdio/u32-vasprintf-tests: New file.
13129         * modules/unistdio/u32-vsnprintf-tests: New file.
13130         * modules/unistdio/u32-vsprintf-tests: New file.
13131         * MODULES.html.sh (Unicode string functions): Add the new modules.
13132
13133 2007-07-01  Bruno Haible  <bruno@clisp.org>
13134
13135         * lib/sprintf.c (sprintf): Limit the available length estimation,
13136         to avoid address wraparound.
13137         * lib/vsprintf.c (vsprintf): Likewise.
13138         * modules/sprintf-posix (Dependencies): Add stdint.
13139         * modules/vsprintf-posix (Dependencies): Likewise.
13140
13141 2007-07-01  Bruno Haible  <bruno@clisp.org>
13142
13143         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
13144         Windows PATH as well. Conservative double-quoting. Comments.
13145
13146 2007-07-01  Bruno Haible  <bruno@clisp.org>
13147             Eric Blake  <ebb9@byu.net>
13148             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13149
13150         * gnulib-tool (self_abspathname): Fix algorithm to cope with
13151         empty components in $PATH, denoting '.'.
13152
13153 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13154
13155         * gnulib-tool: Fix indentation.
13156         (func_create_megatestdir): Likewise.
13157         Report by Bruno Haible.
13158
13159 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13160
13161         Sync from Automake.
13162         * build-aux/gnupload: Fix shell portability issues with for loops.
13163         Report by Karl Berry.
13164
13165 2007-06-29  Simon Josefsson  <simon@josefsson.org>
13166
13167         * build-aux/maint.mk (POURL): Use translationproject.org.
13168
13169 2007-06-27  Simon Josefsson  <simon@josefsson.org>
13170             Bruno Haible  <bruno@clisp.org>
13171
13172         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
13173         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
13174         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
13175         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
13176         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
13177
13178 2007-06-27  Bruno Haible  <bruno@clisp.org>
13179
13180         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
13181         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
13182
13183 2007-06-26  Karl Berry  <karl@gnu.org>
13184
13185         * MODULES.html.sh: remove xreadlink-with-size.
13186
13187 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13188
13189         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
13190         method that I hope also handles the double-include problem noted
13191         by Bruno Haible in
13192         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
13193
13194 2007-06-23  Bruno Haible  <bruno@clisp.org>
13195
13196         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13197         Don't let the 'mostlyclean' target fail if the last subdirectory could
13198         not be removed.
13199         Reported by Karl Berry.
13200
13201 2007-06-23  Bruno Haible  <bruno@clisp.org>
13202
13203         * gnulib-tool (echo): Add a speedier workaround for ksh.
13204         * tests/test-echo.sh: Likewise.
13205
13206 2007-06-23  Bruno Haible  <bruno@clisp.org>
13207
13208         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
13209         * tests/test-echo.sh: Likewise.
13210
13211 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13212
13213         * gnulib-tool (IFS): Initialize early, so we don't set it to
13214         empty later.
13215         (self_abspathname): Rewrite algorithm to set it, reindent.
13216         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
13217         (func_create_megatestdir): Merge some sed scripts.
13218
13219 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13220
13221         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
13222         exposed by Sun Studio 11 cc on Solaris 8.
13223
13224 2007-06-22  Bruno Haible  <bruno@clisp.org>
13225
13226         * gnulib-tool (echo): Ensure the echo primitive does not interpret
13227         backslashes.
13228         * tests/test-echo.sh: New file.
13229
13230 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13231
13232         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
13233         simplify `sed_replace_build_aux' scripts, they are portable but
13234         echoing them with `echo' is not.
13235         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
13236
13237 2007-06-21  Karl Berry  <karl@gnu.org>
13238
13239         * config/srclist.txt: guess we can't handle the licenses via
13240         srclist at the moment.
13241
13242 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13243
13244         * MODULES.html.sh: Add include_next.
13245         * modules/include_next: New file.
13246
13247 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13248
13249         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
13250         INCLUDE_NEXT.
13251         (gl_CHECK_NEXT_HEADERS): New macro.
13252         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
13253         the obsolescent gl_ABSOLUTE_HEADER.
13254         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
13255         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
13256         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
13257         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13258         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13259         * m4/math_h.m4 (gl_MATH_H): Likewise.
13260         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
13261         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13262         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13263         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13264         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13265         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13266         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13267         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13268         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13269         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13270         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13271         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
13272         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13273         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13274         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13275         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13276         * m4/inttypes.m4 (gl_INTTYPES_H): Define
13277         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
13278         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
13279         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
13280         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
13281         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
13282         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
13283         * lib/float_.h: Likewise.
13284         * lib/inttypes_.h: Likewise.
13285         * lib/math_.h: Likewise.
13286         * lib/search_.h: Likewise.
13287         * lib/signal_.h: Likewise.
13288         * lib/stdint_.h: Likewise.
13289         * lib/stdio_.h: Likewise.
13290         * lib/stdlib_.h: Likewise.
13291         * lib/string_.h: Likewise.
13292         * lib/sys_stat_.h: Likewise.
13293         * lib/sys_time_.h: Likewise.
13294         * lib/time_.h: Likewise.
13295         * lib/unistd_.h: Likewise.
13296         * lib/wchar_.h: Likewise.
13297         * lib/wctype_.h: Likewise.
13298         * lib/dirent_.h: Likewise.
13299         * lib/iconv_.h: Likewise.
13300         * lib/locale_.h: Likewise.
13301         * lib/netinet_in_.h: Likewise.
13302         * lib/sys_select_.h: Likewise.
13303         * lib/sys_socket_.h: Likewise.
13304         * lib/sysexits_.h: Likewise.
13305         * modules/fcntl (Depends-on): Depend on include_next, not
13306         absolute_header.
13307         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
13308         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
13309         * modules/fchdir: Likewise.
13310         * modules/float: Likewise.
13311         * modules/iconv_open: Likewise.
13312         * modules/inttypes: Likewise.
13313         * modules/locale: Likewise.
13314         * modules/math: Likewise.
13315         * modules/netinet_in: Likewise.
13316         * modules/search: Likewise.
13317         * modules/signal: Likewise.
13318         * modules/stdint: Likewise.
13319         * modules/stdio: Likewise.
13320         * modules/stdlib: Likewise.
13321         * modules/string: Likewise.
13322         * modules/sys_select: Likewise.
13323         * modules/sys_socket: Likewise.
13324         * modules/sys_stat: Likewise.
13325         * modules/sys_time: Likewise.
13326         * modules/sysexits: Likewise.
13327         * modules/time: Likewise.
13328         * modules/unistd: Likewise.
13329         * modules/wchar: Likewise.
13330         * modules/wctype: Likewise.
13331         * modules/sys_stat: Change maintainer to "all".
13332         * modules/unistd: Likewise.
13333
13334 2007-06-20  Karl Berry  <karl@gnu.org>
13335
13336         * config/srclist.txt: track www changes in license files.
13337
13338 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
13339
13340         * build-aux/bootstrap: Remove stray dot.
13341         Make sure build_aux settings are honored when linking
13342         gnulib_extra_files.
13343
13344 2007-06-19  Eric Blake  <ebb9@byu.net>
13345
13346         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13347         Allow compilation on cygwin.
13348
13349 2007-06-19  Jim Meyering  <jim@meyering.net>
13350
13351         xreadlink-with-size: Remove module.  No longer used.
13352         Ex-callers now use xreadlink or mreadlink-with-size.
13353         * modules/xreadlink-with-size: Remove module.
13354         * lib/xreadlink-with-size.c: Remove file.
13355         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
13356         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
13357         just before the function definition *is* accurate.
13358
13359         Eliminate one way canonicalize_filename_mode could exit.
13360         * lib/canonicalize.c (canonicalize_filename_mode):
13361         Use mreadlink_with_size, not xreadlink_with_size.
13362
13363 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13364
13365         Detect porting problems to FreeBSD/arm, which has time_t wider than
13366         long int.  Original problem reported for GNU diff by Xin Li in
13367         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
13368         * modules/getdate (Depends-on): Add intprops, verify.
13369         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
13370         is an integer type no wider than long int.
13371
13372 2007-06-18  Jim Meyering  <jim@meyering.net>
13373
13374         New module: mreadlink-with-size.
13375         * MODULES.html.sh: Add mreadlink-with-size.
13376         * modules/mreadlink-with-size: New module
13377         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
13378         not xreadlink-with-size.
13379         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
13380
13381 2007-06-16  Bruno Haible  <bruno@clisp.org>
13382
13383         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
13384         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
13385         Reported by Gary V. Vaughan <gary@gnu.org>.
13386
13387 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13388
13389         Revamp lchown so that it lives in unistd.h where it belongs.
13390         * lib/lchown.h: Remove.
13391         * lib/dirchownmod.c: Don't include lib/lchown.h.
13392         * lib/fchownat.c: Likewise.
13393         * lib/openat.c: Likewise.
13394         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
13395         does not follow symlinks.
13396         (EOPNOTSUPP): Define if not defined.
13397         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
13398         is defined to 0.
13399         (lchown): New decl.
13400         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
13401         Do not check for lchown decl.
13402         Set REPLACE_LCHOWN.
13403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
13404         REPLACE_LCHOWN.
13405         * modules/chown: Make it clear it follows symlinks.
13406         * modules/lchown: Make it clear it doesn't follow symlinks.
13407         (Files): Remove lib/lchown.h
13408         (Depends-on): Add unistd.
13409         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
13410         (Include): Include <unistd.h>, not "lchown.h".
13411         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
13412         REPLACE_LCHOWN.
13413
13414 2007-06-15  Jim Meyering  <jim@meyering.net>
13415
13416         Change license (GPL to LGPL) of fsusage and dependents.
13417         * modules/fsusage (License): Change to LGPL.
13418         * modules/full-read (License): Likewise.
13419         * modules/full-write (License): Likewise.
13420         * modules/safe-read (License): Likewise.
13421         * modules/safe-write (License): Likewise.
13422
13423 2007-06-14  Ben Pfaff  <blp@gnu.org>
13424
13425         Missing part of allocsa -> malloca transition.
13426         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
13427         gl_MALLOCA.
13428
13429 2007-06-12  Bruno Haible  <bruno@clisp.org>
13430
13431         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
13432         to ia64, x86_64, i386.
13433         Reported by Eric Blake.
13434
13435 2007-06-12  Bruno Haible  <bruno@clisp.org>
13436
13437         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
13438         cross-compiling to x86_64.
13439
13440 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
13441
13442         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
13443         glitch reported by Ralf Wildenhues in
13444         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
13445
13446         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
13447         Vin Shelton.
13448
13449 2007-06-11  Bruno Haible  <bruno@clisp.org>
13450
13451         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
13452         replacement string.
13453         Reported by Eric Blake.
13454
13455 2007-06-10  Bruno Haible  <bruno@clisp.org>
13456
13457         Prepare vasnprintf code for use with Unicode strings.
13458         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
13459         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
13460         TYPE_U32_STRING.
13461         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
13462         a_u32_string variants.
13463         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13464         * lib/printf-args.c: Don't include config.h and the specification
13465         header if PRINTF_FETCHARGS is already defined.
13466         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13467         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
13468         TYPE_U16_STRING, TYPE_U32_STRING.
13469         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
13470         u16_directive, u16_directives, u32_directive, u32_directives): New
13471         types.
13472         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
13473         New declarations.
13474         * lib/printf-parse.c: Don't include config.h and the specification
13475         header if PRINTF_PARSE is already defined. Eliminate the set of
13476         parameters for WIDE_CHAR_VERSION; the user of this file must provide
13477         them now. Include c-ctype.h.
13478         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
13479         directive and CHAR_T_ONLY_ASCII.
13480         * lib/vasnprintf.c: Don't include config.h and the specification header
13481         if VASNPRINTF is already defined.
13482         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
13483         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
13484         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
13485         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
13486         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
13487         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
13488         code accordingly.
13489         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
13490         pad_ourselves also in this case, with the 'c' and 's' directives, and
13491         with a different notion of "width".
13492         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
13493
13494 2007-06-10  Bruno Haible  <bruno@clisp.org>
13495
13496         * modules/unistr/u32-mbsnlen: New file.
13497         * lib/unistr/u32-mbsnlen.c: New file.
13498
13499         * modules/unistr/u16-mbsnlen: New file.
13500         * lib/unistr/u16-mbsnlen.c: New file.
13501
13502         * modules/unistr/u8-mbsnlen: New file.
13503         * lib/unistr/u8-mbsnlen.c: New file.
13504
13505         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
13506         declarations.
13507
13508 2007-06-10  Bruno Haible  <bruno@clisp.org>
13509
13510         * lib/string_.h (mbsnlen): New declaration.
13511         * lib/mbsnlen.c: New file.
13512         * m4/mbsnlen.m4: New file.
13513         * modules/mbsnlen: New file.
13514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
13515         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
13516         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
13517
13518 2007-06-10  Bruno Haible  <bruno@clisp.org>
13519
13520         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
13521
13522 2007-06-10  Bruno Haible  <bruno@clisp.org>
13523
13524         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
13525         * lib/mbuiter.h: Likewise.
13526
13527 2007-06-10  Bruno Haible  <bruno@clisp.org>
13528
13529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
13530         declaration.
13531
13532 2007-06-10  Karl Berry  <karl@gnu.org>
13533
13534         * config/srclist.txt: remove gettext entries, Bruno prefers
13535         to update individually.
13536
13537 2007-06-10  Bruno Haible  <bruno@clisp.org>
13538
13539         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
13540         'maxlen'. Ensure only length + width bytes are allocated, not
13541         length + 1 + width.
13542
13543 2007-06-09  Bruno Haible  <bruno@clisp.org>
13544
13545         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
13546         (CHAR_T): Remove macro.
13547         (VASNPRINTF): Update.
13548
13549 2007-06-09  Bruno Haible  <bruno@clisp.org>
13550
13551         * MODULES.html.sh (Unicode string functions): Add the new modules.
13552
13553         * modules/uniconv/u32-conv-to-enc: New file.
13554         * lib/uniconv/u32-conv-to-enc.c: New file.
13555         * modules/uniconv/u32-conv-to-enc-tests: New file.
13556         * tests/uniconv/test-u32-conv-to-enc.c: New file.
13557
13558         * modules/uniconv/u16-conv-to-enc: New file.
13559         * lib/uniconv/u16-conv-to-enc.c: New file.
13560         * lib/uniconv/u-conv-to-enc.h: New file.
13561         * modules/uniconv/u16-conv-to-enc-tests: New file.
13562         * tests/uniconv/test-u16-conv-to-enc.c: New file.
13563
13564         * modules/uniconv/u8-conv-to-enc: New file.
13565         * lib/uniconv/u8-conv-to-enc.c: New file.
13566         * modules/uniconv/u8-conv-to-enc-tests: New file.
13567         * tests/uniconv/test-u8-conv-to-enc.c: New file.
13568
13569         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13570         u32_conv_to_encoding): New declarations.
13571
13572 2007-06-09  Bruno Haible  <bruno@clisp.org>
13573
13574         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
13575
13576 2007-06-09  Bruno Haible  <bruno@clisp.org>
13577
13578         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
13579         * modules/malloca: Renamed from modules/allocsa, updated.
13580         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
13581         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
13582         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
13583         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
13584         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
13585         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
13586         * modules/xmalloca: Renamed from modules/xallocsa, updated.
13587         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
13588         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
13589         * modules/c-strcasestr (Depends-on): Update.
13590         * lib/c-strcasestr.c: Update.
13591         * modules/c-strstr (Depends-on): Update.
13592         * lib/c-strstr.c: Update.
13593         * modules/canonicalize-lgpl (Depends-on): Update.
13594         * lib/canonicalize-lgpl.c: Update.
13595         * modules/clean-temp (Depends-on): Update.
13596         * lib/clean-temp.c: Update.
13597         * modules/csharpcomp (Depends-on): Update.
13598         * lib/csharpcomp.c: Update.
13599         * modules/csharpexec (Depends-on): Update.
13600         * lib/csharpexec.c: Update.
13601         * modules/javacomp (Depends-on): Update.
13602         * lib/javacomp.c: Update.
13603         * modules/javaexec (Depends-on): Update.
13604         * lib/javaexec.c: Update.
13605         * modules/mbscasestr (Depends-on): Update.
13606         * lib/mbscasestr.c: Update.
13607         * modules/mbsstr (Depends-on): Update.
13608         * lib/mbsstr.c: Update.
13609         * modules/setenv (Depends-on): Update.
13610         * lib/setenv.c: Update.
13611         * modules/strcasestr (Depends-on): Update.
13612         * lib/strcasestr.c: Update.
13613         * modules/striconveha (Depends-on): Update.
13614         * lib/striconveha.c: Update.
13615         * modules/relocatable-prog-wrapper (Files): Update.
13616         * lib/relocwrapper.c: Update.
13617         * build-aux/install-reloc: Update.
13618         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
13619
13620 2007-06-08  Bruno Haible  <bruno@clisp.org>
13621
13622         Port to uClibc.
13623         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
13624         * lib/fpurge.c (fpurge): Likewise.
13625         * lib/freading.c (freading): Likewise.
13626         * lib/fseeko.c (rpl_fseeko): Likewise.
13627         * lib/fseterr.c (fseterr): Likewise.
13628         * lib/fwriting.c (fwriting): Likewise.
13629         * tests/test-fflush.c (main): Avoid a failure on uClibc.
13630
13631 2007-06-08  Bruno Haible  <bruno@clisp.org>
13632
13633         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
13634         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
13635         * modules/gettext (Files): Add m4/intlmacosx.m4.
13636
13637 2007-06-07  Bruno Haible  <bruno@clisp.org>
13638
13639         * modules/localename-tests: New file.
13640         * tests/test-localename.c: New file.
13641
13642         New module 'localename'.
13643         * lib/localename.h: New file.
13644         * lib/localename.c: New file, from GNU gettext.
13645         * m4/localename.m4: New file.
13646         * modules/localename: New file.
13647
13648 2007-06-07  Bruno Haible  <bruno@clisp.org>
13649
13650         Work around the lack of <wchar.h> on some builds of uClibc.
13651         * doc/headers/wchar.texi: Update.
13652         * lib/wchar_.h: Include <wchar.h> only if it exists.
13653         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
13654         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
13655         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
13656         doesn't exist.
13657         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
13658         * modules/mbfile (Depends-on): Add wchar.
13659         * modules/mbiter (Depends-on): Likewise.
13660         * modules/mbuiter (Depends-on): Likewise.
13661         Reported by Simon Josefsson.
13662
13663 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13664
13665         Work around problem reported by Steven M. Schweda in
13666         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
13667         Tru64 5.1B with the Compaq compiler environment installed declares
13668         an 'isblank' function but does not define it in the C library.
13669         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
13670         * lib/regex_internal.h (isblank): Likewise.
13671         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
13672         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13673
13674 2007-06-05  Bruno Haible  <bruno@clisp.org>
13675
13676         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
13677         ia64.
13678         * modules/printf-safe: New file.
13679         * modules/fprintf-posix (Depends-on): Add printf-safe.
13680         * modules/printf-posix (Depends-on): Likewise.
13681         * modules/snprintf-posix (Depends-on): Likewise.
13682         * modules/sprintf-posix (Depends-on): Likewise.
13683         * modules/vasnprintf-posix (Depends-on): Likewise.
13684         * modules/vasprintf-posix (Depends-on): Likewise.
13685         * modules/vfprintf-posix (Depends-on): Likewise.
13686         * modules/vprintf-posix (Depends-on): Likewise.
13687         * modules/vsnprintf-posix (Depends-on): Likewise.
13688         * modules/vsprintf-posix (Depends-on): Likewise.
13689         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13690         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
13691         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
13692         "no" on i386, x86_64, ia64.
13693         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
13694         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13695         on i386, x86_64, ia64.
13696         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
13697         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13698         on i386, x86_64, ia64.
13699         * tests/test-vasnprintf-posix.c: Include float.h.
13700         (LDBL80_WORDS): New macro.
13701         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13702         on i386, x86_64, ia64.
13703         * tests/test-vasprintf-posix.c: Include float.h.
13704         (LDBL80_WORDS): New macro.
13705         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13706         on i386, x86_64, ia64.
13707         * tests/test-snprintf-posix.c: Include float.h.
13708         * tests/test-sprintf-posix.c: Likewise.
13709         * tests/test-vsnprintf-posix.c: Likewise.
13710         * tests/test-vsprintf-posix.c: Likewise.
13711
13712 2007-06-05  Bruno Haible  <bruno@clisp.org>
13713
13714         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
13715         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
13716         non-IEEE numbers on i386, x86_64, ia64.
13717         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
13718         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
13719         * tests/test-isnanl.h: Include float.h.
13720         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
13721
13722 2007-06-05  Bruno Haible  <bruno@clisp.org>
13723
13724         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
13725         also the %a / %A. Handle the %a / %A code before this extra handling.
13726
13727 2007-06-05  Bruno Haible  <bruno@clisp.org>
13728
13729         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
13730         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
13731
13732 2007-06-05  Bruno Haible  <bruno@clisp.org>
13733
13734         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
13735         typo in variable name.
13736
13737 2007-06-05  Eric Blake  <ebb9@byu.net>
13738
13739         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
13740         Reported by Simon Josefsson.
13741
13742 2007-06-04  Bruno Haible  <bruno@clisp.org>
13743
13744         Avoid test failures on some PowerPC platforms.
13745         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
13746         Define differently for PowerPC.
13747         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
13748         Reported by Gary V. Vaughan <gary@gnu.org>.
13749
13750 2007-06-02  Bruno Haible  <bruno@clisp.org>
13751
13752         Fix test-stdint failure on FreeBSD/ia64.
13753         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
13754         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
13755         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
13756         * doc/headers/stdint.texi: Update.
13757
13758 2007-06-01  Bruno Haible  <bruno@clisp.org>
13759
13760         * tests/test-binary-io.c (main): Pass a third argument to open().
13761         Reported by Gary V. Vaughan <gary@gnu.org>.
13762
13763 2007-06-01  Bruno Haible  <bruno@clisp.org>
13764
13765         * doc/functions/frexpl.texi: Update for mingw.
13766
13767 2007-06-01  Bruno Haible  <bruno@clisp.org>
13768
13769         * tests/test-lseek.c (main): Disable test of errno for invalid third
13770         argument.
13771         * doc/functions/lseek.texi: Update.
13772         Reported by Gary V. Vaughan <gary@gnu.org>.
13773
13774 2007-05-28  Bruno Haible  <bruno@clisp.org>
13775
13776         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
13777
13778 2007-05-31  Eric Blake  <ebb9@byu.net>
13779
13780         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
13781         cross compiling.
13782
13783 2007-05-30  Eric Blake  <ebb9@byu.net>
13784         and Bruno Haible  <bruno@clisp.org>
13785
13786         Work around mingw test failures exposed by m4-1.4.9b.
13787         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
13788         * tests/test-unistd.c: Disable uid_t and git_t tests for the
13789         moment.
13790
13791 2007-05-30  Bruno Haible  <bruno@clisp.org>
13792
13793         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
13794         assuming that they are closed. Needed on HP-UX 11.
13795
13796 2007-05-29  Bruno Haible  <bruno@clisp.org>
13797
13798         Fix a problem with #include_next.
13799         * lib/dirent_.h: Split the double-inclusion guard.
13800         * lib/fcntl_.h: Likewise.
13801         * lib/float_.h: Likewise.
13802         * lib/iconv_.h: Likewise.
13803         * lib/inttypes_.h: Likewise.
13804         * lib/locale_.h: Likewise.
13805         * lib/math_.h: Likewise.
13806         * lib/netinet_in_.h: Likewise.
13807         * lib/search_.h: Likewise.
13808         * lib/signal_.h: Likewise.
13809         * lib/stdint_.h: Likewise.
13810         * lib/stdio_.h: Likewise.
13811         * lib/stdlib_.h: Likewise.
13812         * lib/string_.h: Likewise.
13813         * lib/sys_select_.h: Likewise.
13814         * lib/sys_socket_.h: Likewise.
13815         * lib/sys_stat_.h: Likewise.
13816         * lib/sys_time_.h: Likewise.
13817         * lib/sysexits_.h: Likewise.
13818         * lib/time_.h: Likewise.
13819         * lib/unistd_.h: Likewise.
13820         * lib/wchar_.h: Likewise.
13821         * lib/wctype_.h: Likewise.
13822
13823 2007-05-29  Bruno Haible  <bruno@clisp.org>
13824
13825         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
13826         for the moment.
13827
13828 2007-05-29  Bruno Haible  <bruno@clisp.org>
13829
13830         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
13831         invocation.
13832         Reported by Eric Blake.
13833
13834 2007-05-29  Bruno Haible  <bruno@clisp.org>
13835
13836         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
13837         compiling case.
13838
13839 2007-05-29  Eric Blake  <ebb9@byu.net>
13840             Bruno Haible  <bruno@clisp.org>
13841
13842         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
13843         cross compiles.
13844
13845 2007-05-28  Eric Blake  <ebb9@byu.net>
13846
13847         * modules/closein-tests (test_closein_LDADD): Support test on
13848         cygwin with libtool.
13849
13850 2007-05-28  Bruno Haible  <bruno@clisp.org>
13851
13852         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
13853         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13854         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13855         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13856         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13857         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13858         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13859         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13860         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13861
13862 2007-05-28  Eric Blake  <ebb9@byu.net>
13863
13864         Unconditionally include <config.h> in unit tests.
13865         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
13866         * tests/test-allocsa.c, tests/test-arcfour.c,
13867         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
13868         tests/test-array_list.c, tests/test-array_oset.c,
13869         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
13870         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
13871         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
13872         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
13873         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
13874         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
13875         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
13876         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
13877         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
13878         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
13879         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
13880         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
13881         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
13882         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
13883         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
13884         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
13885         test-md5.c, test-memmem.c, test-printf-posix.c,
13886         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
13887         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
13888         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
13889         test-strcasestr.c, test-striconv.c, test-striconveh.c,
13890         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
13891         test-vasnprintf-posix2.c, test-vasnprintf.c,
13892         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
13893         test-vfprintf-posix.c, test-vprintf-posix.c,
13894         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
13895         test-xvasprintf.c: Likewise.
13896
13897 2007-05-28  Bruno Haible  <bruno@clisp.org>
13898
13899         * gnulib-tool (func_import): Remember the --with-tests command-line
13900         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
13901         Reported by Eric Blake.
13902
13903 2007-05-28  Bruno Haible  <bruno@clisp.org>
13904
13905         * modules/ftell-tests: New file.
13906         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
13907         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
13908
13909         * lib/ftell.c: New file.
13910         * modules/ftell: New file.
13911         * m4/ftell.m4: New file.
13912         * doc/functions/ftell.texi: Update.
13913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
13914         REPLACE_FTELL.
13915         * lib/stdio_.h (rpl_ftell): New declaration.
13916         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
13917         REPLACE_FTELL.
13918
13919 2007-05-28  Eric Blake  <ebb9@byu.net>
13920
13921         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
13922
13923 2007-05-28  Bruno Haible  <bruno@clisp.org>
13924
13925         * modules/fseek-tests: New file.
13926         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
13927         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
13928
13929         * lib/fseek.c: New file.
13930         * modules/fseek: New file.
13931         * m4/fseek.m4: New file.
13932         * doc/functions/fseek.texi: Update.
13933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
13934         REPLACE_FSEEK.
13935         * lib/stdio_.h (rpl_fseek): New declaration.
13936         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
13937         REPLACE_FSEEK.
13938
13939 2007-05-28  Bruno Haible  <bruno@clisp.org>
13940
13941         * lib/stdio_.h (fflush): More comments.
13942
13943 2007-05-28  Bruno Haible  <bruno@clisp.org>
13944
13945         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
13946         runtime test.
13947
13948 2007-05-28  Eric Blake  <ebb9@byu.net>
13949
13950         Improve lseek module.
13951         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
13952         * lib/unistd_.h (lseek): Scale back link warning message.
13953         * tests/test-lseek.c: Beef up test.
13954         * tests/test-lseek.sh: Exercise more facets of lseek.
13955         Reported by Bruno Haible.
13956
13957 2007-05-28  Bruno Haible  <bruno@clisp.org>
13958
13959         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
13960         to define.
13961
13962 2007-05-27  Bruno Haible  <bruno@clisp.org>
13963
13964         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
13965
13966 2007-05-27  Bruno Haible  <bruno@clisp.org>
13967
13968         * modules/openmp: New file.
13969         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
13970         Noah Misch.
13971
13972 2007-05-26  Bruno Haible  <bruno@clisp.org>
13973
13974         * modules/chdir-long (Depends-on): Add fchdir.
13975         * modules/chdir-safer (Depends-on): Likewise.
13976         * modules/fts (Depends-on): Likewise.
13977         * modules/fts-lgpl (Depends-on): Likewise.
13978         * modules/openat (Depends-on): Likewise.
13979         * modules/savewd (Depends-on): Likewise.
13980
13981 2007-05-24  Eric Blake  <ebb9@byu.net>
13982
13983         Fix lseek on mingw.
13984         * modules/lseek: New module.
13985         * m4/lseek.m4: New file.
13986         * lib/lseek.c: New file.
13987         * modules/lseek-tests: New file.
13988         * tests/test-lseek.c: New file.
13989         * tests/test-lseek.sh: New file.
13990         * MODULES.html.sh: Document lseek module.
13991         * modules/fflush (Depends-on): Add lseek, fseeko.
13992         * modules/fseeko (Depends-on): Likewise.
13993         * modules/ftello (Depends-on): Likewise.
13994         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
13995         broken.
13996         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
13997         broken.
13998         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
13999         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
14000         * lib/ftello.c (rpl_ftello): Likewise.
14001         * tests/test-fseeko.c (main): Test this.
14002         * tests/test-fseeko.sh: Likewise.
14003         * tests/test-ftello.c (main): Likewise.
14004         * tests/test-ftello.sh: Likewise.
14005         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
14006         implies replacing fseek.
14007         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
14008         HAVE_FTELLO.
14009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
14010         * modules/unistd (Makefile.am): Likewise.
14011         * lib/unistd_.h (lseek): Declare a replacement.
14012         * doc/functions/lseek.texi (lseek): Document this fix.
14013         * doc/functions/fseek.texi (fseek): Likewise.
14014         * doc/functions/ftell.texi (ftell): Likewise.
14015
14016 2007-05-24  Bruno Haible  <bruno@clisp.org>
14017
14018         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
14019         in the printed representation of a NaN.
14020         * tests/test-vasprintf-posix.c (test_function): Likewise.
14021         * tests/test-snprintf-posix.h (test_function): Likewise.
14022         * tests/test-sprintf-posix.h (test_function): Likewise.
14023         Reported by Eric Blake.
14024
14025 2007-05-23  Eric Blake  <ebb9@byu.net>
14026
14027         Fix fseeko/ftello on cygwin 1.5.24.
14028         * doc/functions/fseeko.texi (fseeko): Document the fix.
14029         * doc/functions/ftello.texi (ftello): Document the fix.
14030         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
14031         * doc/functions/stdout.text (stdout): New file.
14032         * doc/functions/stderr.text (stderr): New file.
14033         * doc/gnulib.texi (Function Substitutes): Use new files.
14034         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
14035         prior to 1.7.0.
14036         * tests/test-ftello.c (main): Likewise for ftello.
14037         * tests/test-fseeko.sh: New file.
14038         * tests/test-ftello.sh: New file.
14039         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
14040         with seekable stdin.
14041         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
14042         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
14043         (gl_REPLACE_FSEEKO): New macro.
14044         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
14045         * modules/fseeko (Files): Distribute fseeko.c.
14046         * modules/ftello (Files): Distribute ftello.c.
14047         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
14048         mode.
14049         * lib/ftello.c (rpl_ftello): New file.
14050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
14051         fseeko, ftello.
14052         (gl_STDIN_LARGE_OFFSET): New macro.
14053         * modules/stdio (Makefile.am): Perform the replacement.
14054         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
14055
14056 2007-05-23  Bruno Haible  <bruno@clisp.org>
14057
14058         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
14059         GNULIB_POSIXCHECK is defined.
14060
14061 2007-05-21  Bruno Haible  <bruno@clisp.org>
14062
14063         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
14064         Check also the output for NaN arguments. When cross-compiling, guess
14065         no on IRIX.
14066         * lib/vasnprintf.c: Update comments.
14067         * tests/test-vasnprintf-posix.c (strisnan): New function.
14068         (test_function): Use it.
14069         * tests/test-vasprintf-posix.c (strisnan): New function.
14070         (test_function): Use it.
14071         * tests/test-snprintf-posix.h (strisnan): New function.
14072         (test_function): Use it.
14073         * tests/test-sprintf-posix.h (strisnan): New function.
14074         (test_function): Use it.
14075         Reported by Eric Blake.
14076
14077 2007-05-20  Bruno Haible  <bruno@clisp.org>
14078
14079         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
14080         numbers that fails on BeOS.
14081         * doc/functions/frexpl.texi: Update.
14082
14083 2007-05-20  Jim Meyering  <jim@meyering.net>
14084
14085         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
14086         forced upon us by glibc-2.6.
14087
14088 2007-05-20  Bruno Haible  <bruno@clisp.org>
14089
14090         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
14091         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
14092         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
14093         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
14094         NEED_PRINTF_INFINITE.
14095         (is_infinitel): New function.
14096         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
14097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
14098         gl_PREREQ_VASNPRINTF_INFINITE.
14099         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
14100         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14101         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
14102         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
14103         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
14104         gl_PREREQ_VASNPRINTF_INFINITE.
14105         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14106         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14107         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14108         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14109         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14110         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14112         * doc/functions/fprintf.texi: Update.
14113         * doc/functions/printf.texi: Update.
14114         * doc/functions/snprintf.texi: Update.
14115         * doc/functions/sprintf.texi: Update.
14116         * doc/functions/vfprintf.texi: Update.
14117         * doc/functions/vprintf.texi: Update.
14118         * doc/functions/vsnprintf.texi: Update.
14119         * doc/functions/vsprintf.texi: Update.
14120
14121 2007-05-20  Bruno Haible  <bruno@clisp.org>
14122
14123         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
14124         was not found in libc.
14125         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14126
14127 2007-05-20  Bruno Haible  <bruno@clisp.org>
14128
14129         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14130         printed as "-nan" instead of "nan".
14131         * tests/test-vasprintf-posix.c (test_function): Likewise.
14132         * tests/test-snprintf-posix.h (test_function): Likewise.
14133         * tests/test-sprintf-posix.h (test_function): Likewise.
14134         Needed for HP-UX 11.
14135
14136 2007-05-20  Jim Meyering  <jim@meyering.net>
14137
14138         Fix buggy test for the fchownat-deref bug.
14139         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
14140         symlink required for the run-test.  Without it, this test would
14141         always declare that fchownat doesn't work, and client code would
14142         unnecessarily use the replacement function with fixed libc.
14143         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
14144         Reported by Greg Schafer.
14145
14146 2007-05-19  Bruno Haible  <bruno@clisp.org>
14147
14148         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
14149         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
14150         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
14151         Needed for IRIX 6.5 and Solaris 2.5.1.
14152
14153 2007-05-19  Bruno Haible  <bruno@clisp.org>
14154
14155         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
14156         (test_function): Skip tests involving -0.0 on platforms where
14157         -0.0 = 0.0.
14158         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
14159         (test_function): Skip tests involving -0.0 on platforms where
14160         -0.0 = 0.0.
14161         * tests/test-snprintf-posix.h (have_minus_zero): New function.
14162         (test_function): Skip tests involving -0.0 on platforms where
14163         -0.0 = 0.0.
14164         * tests/test-sprintf-posix.h (have_minus_zero): New function.
14165         (test_function): Skip tests involving -0.0 on platforms where
14166         -0.0 = 0.0.
14167         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
14168         tests.
14169         * tests/test-printf-posix.h (test_function): Likewise.
14170         * tests/test-printf-posix.output: Remove all -0.0 related results.
14171         Needed for IRIX 6.5.
14172
14173 2007-05-19  Bruno Haible  <bruno@clisp.org>
14174
14175         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14176         printed as "nan0x7fffffff" instead of "nan".
14177         * tests/test-vasprintf-posix.c (test_function): Likewise.
14178         * tests/test-snprintf-posix.h (test_function): Likewise.
14179         * tests/test-sprintf-posix.h (test_function): Likewise.
14180         * tests/test-fprintf-posix.h (NaN): Remove macro.
14181         (test_function): Remove all NaN related tests.
14182         * tests/test-printf-posix.h (NaN): Remove macro.
14183         (test_function): Remove all NaN related tests.
14184         * tests/test-printf-posix.output: Remove all NaN related results.
14185         Needed for IRIX 6.5.
14186
14187 2007-05-19  Bruno Haible  <bruno@clisp.org>
14188
14189         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
14190         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14191
14192 2007-05-19  Bruno Haible  <bruno@clisp.org>
14193
14194         * lib/float_.h: New file.
14195         * m4/float_h.m4: New file.
14196         * modules/float: New file.
14197         * modules/isnanl (Dependencies): Add float.
14198         * modules/isnanl-nolibm (Dependencies): Likewise.
14199         * modules/mathl (Dependencies): Likewise.
14200         * modules/printf-frexpl (Dependencies): Likewise.
14201         * modules/signbit (Dependencies): Likewise.
14202         * modules/vasnprintf (Dependencies): Likewise.
14203         * doc/headers/float.texi: Update.
14204
14205 2007-05-19  Jim Meyering  <jim@meyering.net>
14206
14207         * lib/utimens.c (gl_futimens): Rename from futimens,
14208         now that glibc-2.6 declares futimens.
14209         * lib/utimens.h: Likewise.
14210
14211 2007-05-19  Bruno Haible  <bruno@clisp.org>
14212
14213         Avoid test failures on mingw.
14214         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
14215         * tests/test-printf-posix.sh: Likewise.
14216         * tests/test-vfprintf-posix.sh: Likewise.
14217         * tests/test-vprintf-posix.sh: Likewise.
14218
14219 2007-05-19  Bruno Haible  <bruno@clisp.org>
14220
14221         Fix *printf result for NaN, Inf, -0.0 on mingw.
14222         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
14223         * lib/vasnprintf.c: Include math.h and isnan.h.
14224         (is_infinite_or_zero): New function.
14225         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
14226         values in the %f, %F, %e, %E, %g, %G directives.
14227         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
14228         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14229         gl_PRINTF_INFINITE and test its result. Invoke
14230         gl_PREREQ_VASNPRINTF_INFINITE.
14231         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14232         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14233         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14234         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14235         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14236         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14237         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14238         * doc/functions/fprintf.texi: Update.
14239         * doc/functions/printf.texi: Update.
14240         * doc/functions/snprintf.texi: Update.
14241         * doc/functions/sprintf.texi: Update.
14242         * doc/functions/vfprintf.texi: Update.
14243         * doc/functions/vprintf.texi: Update.
14244         * doc/functions/vsnprintf.texi: Update.
14245         * doc/functions/vsprintf.texi: Update.
14246
14247 2007-05-19  Bruno Haible  <bruno@clisp.org>
14248
14249         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
14250         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
14251         Instead of multiplying with 10^k, set extra_zeroes to k.
14252         (scale10_round_long_double): Remove function.
14253
14254 2007-05-18  Bruno Haible  <bruno@clisp.org>
14255
14256         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
14257         introduced on 2007-05-06.
14258
14259 2007-05-18  Bruno Haible  <bruno@clisp.org>
14260
14261         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
14262         %g directives.
14263         * tests/test-vasprintf-posix.c (test_function): Likewise.
14264         * tests/test-snprintf-posix.h (test_function): Likewise.
14265         * tests/test-sprintf-posix.h (test_function): Likewise.
14266
14267 2007-05-18  Bruno Haible  <bruno@clisp.org>
14268
14269         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
14270         (strmatch): New function.
14271         (test_function): Test the %f directive on numbers of various exponents.
14272         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
14273         (strmatch): New function.
14274         (test_function): Test the %f directive on numbers of various exponents.
14275         * tests/test-snprintf-posix.h (strmatch): New function.
14276         (test_function): Test the %f directive on numbers of various exponents.
14277         * tests/test-sprintf-posix.h (strmatch): New function.
14278         (test_function): Test the %f directive on numbers of various exponents.
14279         * tests/test-snprintf-posix.c (SIZEOF): New macro.
14280         * tests/test-sprintf-posix.c (SIZEOF): New macro.
14281         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
14282         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
14283
14284 2007-05-18  Bruno Haible  <bruno@clisp.org>
14285
14286         Add support for 'long double' number output.
14287         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
14288         * lib/vasnprintf.c: Include math.h and float+.h.
14289         (mp_limb_t): New type.
14290         (GMP_LIMB_BITS): New macro.
14291         (mp_twolimb_t): New type.
14292         (GMP_TWOLIMB_BITS): New macro.
14293         (mpn_t): New type.
14294         (multiply, divide, convert_to_decimal, decode_long_double,
14295         scale10_round_long_double, scale10_round_decimal_long_double,
14296         floorlog10l): New functions.
14297         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
14298         for the %f, %F, %e, %E, %g, %G directives.
14299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
14300         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14301         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
14302         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
14303         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14304         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14305         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14306         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14307         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14308         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14309         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14310         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
14311         * modules/snprintf-posix (Depends-on): Likewise.
14312         * modules/sprintf-posix (Depends-on): Likewise.
14313         * modules/vasnprintf-posix (Depends-on): Likewise.
14314         * modules/vasprintf-posix (Depends-on): Likewise.
14315         * modules/vfprintf-posix (Depends-on): Likewise.
14316         * modules/vsnprintf-posix (Depends-on): Likewise.
14317         * modules/vsprintf-posix (Depends-on): Likewise.
14318         * modules/vasnprintf (Files): Add lib/float+.h.
14319         * doc/functions/fprintf.texi: Update.
14320         * doc/functions/printf.texi: Update.
14321         * doc/functions/snprintf.texi: Update.
14322         * doc/functions/sprintf.texi: Update.
14323         * doc/functions/vfprintf.texi: Update.
14324         * doc/functions/vprintf.texi: Update.
14325         * doc/functions/vsnprintf.texi: Update.
14326         * doc/functions/vsprintf.texi: Update.
14327
14328 2007-05-18  Bruno Haible  <bruno@clisp.org>
14329
14330         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
14331
14332 2007-05-18  Bruno Haible  <bruno@clisp.org>
14333
14334         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
14335         for printing 64-bit integers. Needed for mingw.
14336
14337 2007-05-18  Bruno Haible  <bruno@clisp.org>
14338
14339         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14340         gl_FUNC_FREXPL_WORKS.
14341         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
14342
14343 2007-05-18  Bruno Haible  <bruno@clisp.org>
14344
14345         * modules/frexpl-nolibm-tests: New file.
14346
14347         * modules/frexpl-nolibm: New file.
14348         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
14349
14350 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14351
14352         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
14353         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
14354         GCC 4.2, which otherwise issues a lot of warnings.
14355         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
14356         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
14357         Likewise.
14358         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
14359         * modules/iconv_open (iconv.h): Likewise.
14360         * modules/locale (locale.h): Likewise.
14361         * modules/netinet_in (netinet/in.h): Likewise.
14362         * modules/sys_select (sys_select.h): Likewise.
14363         * modules/sys_socket (sys/socket.h): Likewise.
14364         * modules/sys_stat (sys/stat.h): Likewise.
14365         * modules/sysexits (sysexits.h): Likewise.
14366         * modules/unistd (unistd.h): Likewise.
14367
14368 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14369
14370         * modules/closein-tests (Makefile.am): Distribute
14371         `test-closein.sh'.
14372
14373 2007-05-17  Bruno Haible  <bruno@clisp.org>
14374
14375         * tests/test-printf-posix.output: Renamed from
14376         tests/test-fprintf-posix.out.
14377         * modules/fprintf-posix-tests: Update.
14378         * modules/printf-posix-tests: Update.
14379         * modules/vfprintf-posix-tests: Update.
14380         * modules/vprintf-posix-tests: Update.
14381         * tests/test-fprintf-posix.sh: Update.
14382         * tests/test-printf-posix.sh: Update.
14383         * tests/test-vfprintf-posix.sh: Update.
14384         * tests/test-vprintf-posix.sh: Update.
14385         Reported by Ralf Wildenhues.
14386
14387 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14388
14389         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
14390         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
14391         GCC 4.2, which otherwise issues a lot of warnings.
14392         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
14393         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
14394         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
14395         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
14396         it should no longer be needed.
14397         * lib/string_.h: Likewise.
14398         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
14399         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
14400         * modules/inttypes (inttypes.h): Likewise.
14401         * modules/math (math.h): Likewise.
14402         * modules/search (search.h): Likewise.
14403         * modules/signal (signal.h): Likewise.
14404         * modules/stdint (stdint.h): Likewise.
14405         * modules/stdio (stdio.h): Likewise.
14406         * modules/stdlib (stdlib.h): Likewise.
14407         * modules/string (string.h): Likewise.
14408         * modules/sys_time (sys/time.h): Likewise.
14409         * modules/time (time.h): Likewise.
14410         * modules/wchar (wchar.h): Likewise.
14411         * modules/wctype (wtype.h): Likewise.
14412
14413 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14414
14415         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
14416
14417 2007-05-13  Bruno Haible  <bruno@clisp.org>
14418
14419         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
14420         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14421         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
14422         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14423         (gl_PREREQ_STRTOK_R): Don't require it here.
14424
14425 2007-05-13  Bruno Haible  <bruno@clisp.org>
14426
14427         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
14428         when used in C++ mode.
14429
14430 2007-05-12  Bruno Haible  <bruno@clisp.org>
14431
14432         * lib/linebuffer.h: Tweak doc.
14433         * lib/linebuffer.c: Likewise.
14434
14435 2007-05-12  James Youngman  <jay@gnu.org>
14436
14437         * lib/linebuffer.c (readlinebuffer_delim): New function,
14438         like readlinebuffer, but use a caller-specified delimiter.
14439         (readlinebuffer): Just call readlinebuffer_delim with '\n'
14440         as the delimiter.
14441         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
14442
14443 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14444
14445         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
14446         * modules/openat (Files): Remove openat-die.c.
14447         (Depends-on): Add openat-die.
14448         * modules/openat-die: New module.
14449
14450 2007-05-06  Bruno Haible  <bruno@clisp.org>
14451
14452         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
14453         Update with info about Cygwin.
14454         * doc/functions/fprintf.texi: Update.
14455         * doc/functions/printf.texi: Update.
14456         * doc/functions/snprintf.texi: Update.
14457         * doc/functions/sprintf.texi: Update.
14458         * doc/functions/vfprintf.texi: Update.
14459         * doc/functions/vprintf.texi: Update.
14460         * doc/functions/vsnprintf.texi: Update.
14461         * doc/functions/vsprintf.texi: Update.
14462         Reported by Eric Blake.
14463
14464 2007-05-06  Bruno Haible  <bruno@clisp.org>
14465
14466         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
14467         padding ourselves for the floating-point directives.
14468         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
14469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
14470         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14471         gl_PRINTF_FLAG_ZERO and test its result. Invoke
14472         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
14473         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14474         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14475         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14476         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14477         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14479         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14480         * tests/test-snprintf-posix.h (test_function): Also check the width
14481         and some flags in the %f directive.
14482         * tests/test-sprintf-posix.h (test_function): Likewise.
14483         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14484         * tests/test-vasprintf-posix.c (test_function): Likewise.
14485         * doc/functions/fprintf.texi: Update.
14486         * doc/functions/printf.texi: Update.
14487         * doc/functions/snprintf.texi: Update.
14488         * doc/functions/sprintf.texi: Update.
14489         * doc/functions/vfprintf.texi: Update.
14490         * doc/functions/vprintf.texi: Update.
14491         * doc/functions/vsnprintf.texi: Update.
14492         * doc/functions/vsprintf.texi: Update.
14493
14494 2007-05-06  Bruno Haible  <bruno@clisp.org>
14495
14496         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
14497         pass the ' flag character to sprintf or snprintf.
14498         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
14499         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
14500         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14501         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
14502         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
14503         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14504         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14505         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14506         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14507         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14509         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14510         * tests/test-snprintf-posix.h (test_function): Also check the grouping
14511         flag.
14512         * tests/test-sprintf-posix.h (test_function): Likewise.
14513         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14514         * tests/test-vasprintf-posix.c (test_function): Likewise.
14515         * doc/functions/fprintf.texi: Update.
14516         * doc/functions/printf.texi: Update.
14517         * doc/functions/snprintf.texi: Update.
14518         * doc/functions/sprintf.texi: Update.
14519         * doc/functions/vfprintf.texi: Update.
14520         * doc/functions/vprintf.texi: Update.
14521         * doc/functions/vsnprintf.texi: Update.
14522         * doc/functions/vsprintf.texi: Update.
14523
14524 2007-05-01  Bruno Haible  <bruno@clisp.org>
14525
14526         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
14527
14528 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14529
14530         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
14531         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
14532
14533 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
14534
14535         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
14536         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
14537         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
14538
14539 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
14540
14541         * lib/argp-help.c (struct hol_entry): New member `ord'.
14542         (HOL_ENTRY_PTRCMP): Use ord for comparison
14543         (hol_sort): Initialize ord.
14544
14545 2007-05-01  Bruno Haible  <bruno@clisp.org>
14546
14547         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
14548         Reported by Eric Blake.
14549         * doc/gnulib.texi (Function Substitutes): Update.
14550
14551 2007-05-01  Bruno Haible  <bruno@clisp.org>
14552
14553         * doc/functions.texi: Remove file, now redundant through
14554         doc/functions/*.texi.
14555
14556 2007-05-01  Bruno Haible  <bruno@clisp.org>
14557
14558         * modules/argp (Depends-on): Add sleep.
14559
14560 2007-05-01  Bruno Haible  <bruno@clisp.org>
14561
14562         * modules/sleep-tests: New file.
14563         * tests/test-sleep.c: New file.
14564
14565         * modules/sleep: New file.
14566         * lib/sleep.c: New file.
14567         * m4/sleep.m4: New file.
14568         * lib/unistd_.h (sleep): New declaration.
14569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
14570         HAVE_SLEEP.
14571         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
14572         * doc/functions/sleep.texi: Document the sleep module.
14573
14574 2007-05-01  Bruno Haible  <bruno@clisp.org>
14575
14576         * lib/sigprocmask.h: Remove file.
14577         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
14578         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
14579         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
14580         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
14581         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14582         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
14583         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
14584         HAVE_SIGSET_T as a shell variable.
14585         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
14586         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
14587         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
14588         (Depends-on): Add signal. Remove verify.
14589         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
14590         (Include): Mention <signal.h> instead of sigprocmask.h.
14591         * NEWS: Mention the change.
14592         * lib/fatal-signal.c: Don't include sigprocmask.h.
14593
14594 2007-05-01  Bruno Haible  <bruno@clisp.org>
14595
14596         * modules/signal: New file.
14597         * lib/signal_.h: New file.
14598         * m4/signal_h.m4: New file.
14599
14600 2007-05-01  Bruno Haible  <bruno@clisp.org>
14601
14602         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
14603         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
14604         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
14605         HAVE_WCTYPE_CTMP_BUG into wctype.h.
14606
14607 2007-05-01  Bruno Haible  <bruno@clisp.org>
14608
14609         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
14610         configure time.
14611         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
14612         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
14613         * modules/sys_stat (Makefile.am): Substitute their values into
14614         sys/stat.h.
14615
14616 2007-05-01  Bruno Haible  <bruno@clisp.org>
14617
14618         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
14619         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
14620         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
14621
14622 2007-05-01  Bruno Haible  <bruno@clisp.org>
14623
14624         * doc/header/assert.texi: Undo last change: don't mention the gnulib
14625         'assert' module here.
14626
14627 2007-05-01  Bruno Haible  <bruno@clisp.org>
14628
14629         * doc/functions/*.texi: New files.
14630         * doc/functions/google-ranking.txt: New file.
14631         * doc/gnulib.texi (Function Substitutes): New chapter.
14632         (ctime, inet_ntoa): Remove sections.
14633         * doc/ctime.texi: Remove file.
14634         * doc/inet_ntoa.texi: Remove file.
14635         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
14636         dependencies.
14637         (%.info): New rule, specifying a --reference-limit.
14638
14639 2007-05-01  Bruno Haible  <bruno@clisp.org>
14640
14641         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
14642
14643 2007-05-01  Bruno Haible  <bruno@clisp.org>
14644
14645         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
14646         the portability of 'mkdir' to mingw systems.
14647
14648 2007-05-01  Bruno Haible  <bruno@clisp.org>
14649
14650         * doc/headers/google-ranking.txt: New file.
14651
14652 2007-04-30  Eric Blake  <ebb9@byu.net>
14653
14654         Prefer fseeko to fseek.
14655         * modules/getpass (Depends-on): Add fseeko.
14656         * lib/getpass.c (getpass): Use fseeko, not fseek.
14657
14658 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
14659
14660         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
14661         assumes the sorting is stable, while most qsort implementations
14662         are not.  Use argument addresses to ensure they never compare as
14663         equal.
14664
14665         * tests/test-argp-2.sh (usage-indent test): Fix output
14666         (func_compare): Restore diff options
14667         * tests/test-argp.c: Restore #include "progname.h"
14668
14669 2007-04-29  Bruno Haible  <bruno@clisp.org>
14670
14671         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
14672         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14673         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
14674         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14675         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
14676         (configure.ac): Define CHECK_SNPRINTF_POSIX.
14677         (TESTS, check_PROGRAMS): Add test-snprintf.
14678         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
14679         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
14680         (TESTS, check_PROGRAMS): Add test-vsnprintf.
14681         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
14682         assertions that fail on HP-UX, OSF/1, or IRIX.
14683         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
14684
14685 2007-04-29  Bruno Haible  <bruno@clisp.org>
14686
14687         * MODULES.html.sh (posix_functions): Remove 'contents'.
14688
14689 2007-04-29  Karl Berry  <karl@gnu.org>
14690
14691         * config/srclist.txt (gendocs_template_min): new entry.
14692
14693 2007-04-29  Bruno Haible  <bruno@clisp.org>
14694
14695         Work around fpurge bug on BSD systems.
14696         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
14697         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
14698         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
14699         fpurge to rpl_fpurge if the system already has this function.
14700         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
14701         the case where the system already has this function. Correct invariants
14702         on BSD systems.
14703         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
14704         BSD systems.
14705
14706 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
14707
14708         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
14709         proposed by Sven Verdoolaege.
14710
14711         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
14712         options.
14713         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
14714         (usage and help tests): Update
14715
14716 2007-04-29  Bruno Haible  <bruno@clisp.org>
14717
14718         * tests/test-fflush.c (main): Use a file of size 17, not 10.
14719         Print more information in case of failure. Disable a test on BeOS.
14720
14721 2007-04-29  Bruno Haible  <bruno@clisp.org>
14722
14723         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
14724         This helps debugging on systems on which no gdb is available.
14725
14726 2007-04-29  Bruno Haible  <bruno@clisp.org>
14727
14728         * lib/freading.h: Improve comments.
14729         * lib/fwriting.h: Likewise.
14730         * tests/test-freading.c (main): Don't check freading immediately after
14731         repositioning. Needed for glibc.
14732
14733 2007-04-29  Bruno Haible  <bruno@clisp.org>
14734
14735         * lib/freading.c (freading): Trivial simplification.
14736
14737 2007-04-28  Bruno Haible  <bruno@clisp.org>
14738
14739         * tests/test-fwriting.c (main): Also test the interaction between
14740         fflush and fwriting.
14741         * modules/fwriting-tests (Depends-on): Add fflush.
14742
14743         * tests/test-freading.c (main): Also test the interaction between
14744         fflush and freading.
14745         * modules/freading-tests (Depends-on): Add fflush.
14746
14747 2007-04-28  Bruno Haible  <bruno@clisp.org>
14748
14749         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
14750         fseeko and ftello.
14751         Suggested by Eric Blake.
14752
14753 2007-04-28  Jim Meyering  <jim@meyering.net>
14754
14755         Avoid false-negative in gl_STDINT_H's C99 conformance test.
14756         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
14757         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
14758
14759 2007-04-27  Eric Blake  <ebb9@byu.net>
14760
14761         * doc/headers/assert.texi (assert.h): Document assert module use.
14762
14763 2007-04-27  Bruno Haible  <bruno@clisp.org>
14764
14765         * doc/headers/*.texi: New files.
14766         * doc/gnulib.texi (Header File Substitutes): New chapter.
14767         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
14768         dependencies.
14769         (standards.info ,standards.html, standards.dvi): Update dependencies.
14770         (mostlyclean, clean): New targets.
14771
14772 2007-04-27  Bruno Haible  <bruno@clisp.org>
14773
14774         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
14775         * modules/sysexits (Files, Makefile.am): Update.
14776
14777         * lib/sys_socket_.h: Renamed from lib/socket_.h.
14778         * modules/sys_socket (Files, Makefile.am): Update.
14779
14780         * lib/sys_stat_.h: Renamed from lib/stat_.h.
14781         * modules/sys_stat (Files, Makefile.am): Update.
14782
14783 2007-04-27  Eric Blake  <ebb9@byu.net>
14784
14785         * lib/freading.h: Improve comments.
14786         * lib/fwriting.h: Likewise.
14787         * lib/fflush.c: Likewise.
14788
14789         Fix closein for mingw.
14790         * modules/closein-tests: Add tests for closein.
14791         * tests/test-closein.c: New file.
14792         * tests/test-closein.sh: Likewise.
14793         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
14794         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
14795
14796 2007-04-27  Bruno Haible  <bruno@clisp.org>
14797
14798         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
14799         version is < 6.
14800         * lib/math_.h [__DECC]: Likewise.
14801         * lib/stdio_.h [__DECC]: Likewise.
14802         * lib/stdlib_.h [__DECC]: Likewise.
14803         * lib/string_.h [__DECC]: Likewise.
14804         * lib/time_.h [__DECC]: Likewise.
14805         * lib/wchar_.h [__DECC]: Likewise.
14806         * lib/wctype_.h [__DECC]: Likewise.
14807
14808 2007-04-27  Bruno Haible  <bruno@clisp.org>
14809
14810         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
14811
14812 2007-04-27  Bruno Haible  <bruno@clisp.org>
14813
14814         * lib/fflush.c: Add comments.
14815         * modules/fpurge-tests (Depends-on): Add fflush.
14816         * modules/freadable-tests (Depends-on): Likewise.
14817         * modules/fwritable-tests (Depends-on): Likewise.
14818
14819 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
14820
14821         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
14822         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
14823         Report by Bruno Haible <bruno@clisp.org>.
14824
14825 2007-04-26  Eric Blake  <ebb9@byu.net>
14826
14827         Fix fflush on mingw.
14828         * modules/fflush (Depends-on): Add freading.
14829         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
14830         but unread data.
14831
14832 2007-04-26  Eric Blake  <ebb9@byu.net>
14833         and Bruno Haible  <bruno@clisp.org>
14834
14835         Implement freading and fwriting.
14836         * lib/freading.c: New file.
14837         * lib/freading.h: Likewise.
14838         * m4/freading.m4: Likewise.
14839         * modules/freading: Likewise.
14840         * modules/freading-tests: Likewise.
14841         * tests/test-freading.c: Likewise.
14842         * lib/fwriting.c: New file.
14843         * lib/fwriting.h: Likewise.
14844         * m4/fwriting.m4: Likewise.
14845         * modules/fwriting: Likewise.
14846         * modules/fwriting-tests: Likewise.
14847         * tests/test-fwriting.c: Likewise.
14848         * MODULES.html.sh (File stream based Input/Output): Mention them.
14849
14850 2007-04-26  Bruno Haible  <bruno@clisp.org>
14851
14852         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
14853         'long' when we assume it.
14854         Suggested by Eric Blake.
14855
14856 2007-04-26  Bruno Haible  <bruno@clisp.org>
14857
14858         Ensure fseeko, ftello are declared on glibc systems.
14859         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
14860         * modules/fseeko (configure.ac-early): Likewise.
14861         * modules/ftello (configure.ac-early): Likewise.
14862         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
14863         AC_FUNC_FSEEKO for this.
14864         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
14865         (gl_CHECK_FSEEKO): Remove macro.
14866
14867 2007-04-26  Bruno Haible  <bruno@clisp.org>
14868
14869         * tests/test-fflush.c (main): Also check the ftell result after
14870         fflush and fseek/fseeko.
14871         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
14872         file descriptor position cache in the stream.
14873         * lib/fseeko.c (rpl_fseeko): Likewise.
14874
14875 2007-04-26  Bruno Haible  <bruno@clisp.org>
14876
14877         * modules/fflush-tests (Depends-on): Add fseeko.
14878
14879 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
14880             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14881
14882         * lib/argz_.h: ensure error_t definition is obtained in same
14883         mechanism system argz.h would have.
14884         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
14885         argz facilities are known bad.  Err on the side of caution if
14886         cross-compiling.
14887
14888 2007-04-25  Eric Blake  <ebb9@byu.net>
14889
14890         * lib/fpurge.c (includes): Use stdlib.h for free.
14891         * tests/test-fflush.c (main): Also test fflush-fseeko.
14892
14893 2007-04-25  Bruno Haible  <bruno@clisp.org>
14894
14895         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
14896         * lib/fseeko.c: New file.
14897         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
14898         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
14899         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
14900         gl_FUNC_FSEEKO.
14901         (gl_FUNC_FSEEKO): Invoke it.
14902         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
14903         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
14904         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
14905
14906 2007-04-25  Bruno Haible  <bruno@clisp.org>
14907
14908         * modules/fflush (Depends-on): Add ftello.
14909
14910 2007-04-25  Bruno Haible  <bruno@clisp.org>
14911
14912         * modules/ftello-tests: New file.
14913         * tests/test-ftello.c: New file.
14914
14915         * modules/ftello: New file.
14916         * m4/ftello.m4: New file.
14917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
14918         HAVE_FTELLO.
14919         * lib/stdio_.h (ftello): New declaration.
14920         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
14921         HAVE_FTELLO.
14922
14923 2007-04-25  Bruno Haible  <bruno@clisp.org>
14924
14925         * modules/fseeko-tests: New file.
14926         * tests/test-fseeko.c: New file.
14927
14928         * modules/fseeko: New file.
14929         * m4/fseeko.m4: New file.
14930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
14931         HAVE_FSEEKO.
14932         * lib/stdio_.h (fseeko): New declaration.
14933         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
14934         HAVE_FSEEKO.
14935
14936 2007-04-25  Bruno Haible  <bruno@clisp.org>
14937
14938         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
14939
14940 2007-04-25  Bruno Haible  <bruno@clisp.org>
14941
14942         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
14943         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
14944         * tests/test-unistd.c: Likewise.
14945         * tests/test-fcntl.c: Likewise.
14946
14947 2007-04-23  Eric Blake  <ebb9@byu.net>
14948
14949         * lib/fflush.c: Fix missing include.
14950         Reported by Bruno Haible.
14951
14952 2007-04-23  Bruno Haible  <bruno@clisp.org>
14953
14954         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
14955         Reported by Eric Blake.
14956
14957 2007-04-23  Bruno Haible  <bruno@clisp.org>
14958
14959         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
14960
14961 2007-04-23  Bruno Haible  <bruno@clisp.org>
14962
14963         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
14964
14965 2007-04-23  Bruno Haible  <bruno@clisp.org>
14966
14967         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
14968         Needed on HP-UX 11.
14969
14970 2007-04-16  Eric Blake  <ebb9@byu.net>
14971
14972         Make fflush rely on fpurge.
14973         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
14974         open coding all variants.
14975         * modules/fflush (Depends-on): Add fpurge and unistd.
14976         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
14977         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
14978
14979         Fix --with-tests compilation on cygwin.
14980         * modules/argmatch-tests (Makefile.am): List gnulib library first
14981         in LDADD.
14982         * modules/argp-tests (Makefile.am): Likewise.
14983         * modules/array-list-tests (Makefile.am): Likewise.
14984         * modules/array-oset-tests (Makefile.am): Likewise.
14985         * modules/avltree-list-tests (Makefile.am): Likewise.
14986         * modules/avltree-oset-tests (Makefile.am): Likewise.
14987         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14988         * modules/carray-list-tests (Makefile.am): Likewise.
14989         * modules/dirname-tests (Makefile.am): Likewise.
14990         * modules/frexp-tests (Makefile.am): Likewise.
14991         * modules/isnanl-tests (Makefile.am): Likewise.
14992         * modules/linked-list-tests (Makefile.am): Likewise.
14993         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14994         * modules/lock-tests (Makefile.am): Likewise.
14995         * modules/rbtree-list-tests (Makefile.am): Likewise.
14996         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14997         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14998         * modules/tls-tests (Makefile.am): Likewise.
14999         * modules/tsearch-tests (Makefile.am): Likewise.
15000         * modules/xvasprintf-tests (Makefile.am): Likewise.
15001
15002         Fix fpurge for cygwin.
15003         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
15004         value.
15005         * modules/fpurge-tests (Depends-on): Clean up trash.
15006
15007 2007-04-16  Simon Josefsson  <simon@josefsson.org>
15008
15009         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
15010
15011         * m4/autobuild.m4: Re-indent.
15012
15013 2007-04-13  Bruno Haible  <bruno@clisp.org>
15014
15015         * modules/fpurge-tests: New file.
15016         * tests/test-fpurge.c: New file.
15017
15018         * modules/fpurge: New file.
15019         * lib/fpurge.h: New file.
15020         * lib/fpurge.c: New file.
15021         * m4/fpurge.m4: New file.
15022
15023 2007-04-13  Bruno Haible  <bruno@clisp.org>
15024
15025         * modules/fbufmode-tests: New file.
15026         * tests/test-fbufmode.c: New file.
15027
15028         * modules/fbufmode: New file.
15029         * lib/fbufmode.h: New file.
15030         * lib/fbufmode.c: New file.
15031         * m4/fbufmode.m4: New file.
15032
15033 2007-04-13  Bruno Haible  <bruno@clisp.org>
15034
15035         * modules/fwritable-tests: New file.
15036         * tests/test-fwritable.c: New file.
15037
15038         * modules/fwritable: New file.
15039         * lib/fwritable.h: New file.
15040         * lib/fwritable.c: New file.
15041         * m4/fwritable.m4: New file.
15042
15043 2007-04-13  Bruno Haible  <bruno@clisp.org>
15044
15045         * modules/freadable-tests: New file.
15046         * tests/test-freadable.c: New file.
15047
15048         * modules/freadable: New file.
15049         * lib/freadable.h: New file.
15050         * lib/freadable.c: New file.
15051         * m4/freadable.m4: New file.
15052
15053 2007-04-13  Bruno Haible  <bruno@clisp.org>
15054
15055         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
15056         MOSTLYCLEANFILES.
15057
15058 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
15059
15060         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
15061         gzip bootstrap.conf to avoid dragging in i18n machinery.
15062         (gnulib_tool_option): Use it.
15063
15064 2007-04-13  Bruno Haible  <bruno@clisp.org>
15065
15066         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
15067         %F directives.
15068         * tests/test-vasprintf-posix.c (test_function): Likewise.
15069         * tests/test-snprintf-posix.h (test_function): Likewise.
15070         * tests/test-sprintf-posix.h (test_function): Likewise.
15071         * tests/test-fprintf-posix.h (test_function): Likewise.
15072         * tests/test-printf-posix.h (test_function): Likewise.
15073         * tests/test-fprintf-posix.out: Likewise.
15074
15075 2007-04-13  Bruno Haible  <bruno@clisp.org>
15076
15077         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
15078         * modules/tls-tests (configure.ac): Likewise.
15079         Reported by Arto C. Nirkko <anirkko@insel.ch>.
15080
15081 2007-04-13  Bruno Haible  <bruno@clisp.org>
15082
15083         * lib/tls.c (glthread_tls_get): Fix return type.
15084         Patch by Arto C. Nirkko <anirkko@insel.ch>.
15085
15086 2007-04-12  Eric Blake  <ebb9@byu.net>
15087
15088         * modules/gettime (Depends-on): Remove gettime.
15089         Reported by Dmitry V. Levin.
15090
15091 2007-04-12  Bruno Haible  <bruno@clisp.org>
15092
15093         * modules/fflush (Include): Mention <stdio.h>.
15094         * modules/strtoimax (Include): Mention <inttypes.h>.
15095         * modules/strtoumax (Include): Likewise.
15096
15097 2007-04-12  Eric Blake  <ebb9@byu.net>
15098
15099         * .cvsignore: New file.
15100         * .gitignore: Likewise.
15101
15102 2007-04-12  Bruno Haible  <bruno@clisp.org>
15103
15104         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
15105         not before, since $(LDADD) often contains libgnu.a.
15106         * modules/striconv-tests (test_striconv_LDADD): Likewise.
15107         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
15108         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
15109         Needed on Cygwin.
15110
15111 2007-04-12  Eric Blake  <ebb9@byu.net>
15112
15113         Work around glibc's failure to flush stdin on fclose.
15114         * lib/closein.c (close_stdin): Flush stdin before closing.
15115
15116         Work around glibc's failure to reset seekable stdin on exit.
15117         * modules/closein: New module.
15118         * lib/closein.c: New file.
15119         * lib/closein.h: Likewise.
15120         * m4/closein.m4: Likewise.
15121         * MODULES.html.sh (File stream based Input/Output): Document it.
15122
15123 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15124
15125         * gnulib-tool: Rename generated 'autobuild' script to
15126         'do-autobuild' in --create-megatestdir output.
15127
15128         * doc/gnulib.texi (Build robot for gnulib): Fix.
15129
15130 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15131
15132         * modules/sysexits (Depends-on): Add absolute-header.
15133
15134 2007-04-12  Eric Blake  <ebb9@byu.net>
15135
15136         No need to preserve errno on success.
15137         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
15138         Reported by Bruno Haible.
15139
15140 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15141
15142         * MODULES.html.sh (Support for maintaining and releasing
15143         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
15144
15145 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15146
15147         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
15148
15149 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15150
15151         * modules/autobuild: New module.
15152
15153         * m4/autobuild.m4: New file.
15154
15155 2007-04-11  Bruno Haible  <bruno@clisp.org>
15156
15157         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
15158         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
15159         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
15160         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
15161         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15162         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15163         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15164         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15165         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15166         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15167         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
15168         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15169         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15170         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
15171         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15172         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15173         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
15174         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15175         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15176         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
15177         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15178         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15179         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
15180         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15181         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
15183         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15184         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15185         Reported by Eric Blake.
15186
15187 2007-04-11  Bruno Haible  <bruno@clisp.org>
15188
15189         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
15190
15191 2007-04-10  Bruno Haible  <bruno@clisp.org>
15192
15193         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
15194         for NaN and Infinity. Needed on FreeBSD 6.1.
15195         * tests/test-vasnprintf-posix.c (test_function): Undo last change
15196         regarding results for "%010a" of Infinity and NaN.
15197         * tests/test-vasprintf-posix.c (test_function): Likewise.
15198         * tests/test-snprintf-posix.h (test_function): Likewise.
15199         * tests/test-sprintf-posix.h (test_function): Likewise.
15200         * tests/test-fprintf-posix.h (test_function): Likewise.
15201         * tests/test-printf-posix.h (test_function): Likewise.
15202         * tests/test-fprintf-posix.out: Likewise.
15203
15204 2007-04-10  Bruno Haible  <bruno@clisp.org>
15205
15206         * modules/locale-tests: New file.
15207         * tests/test-locale.c: New file.
15208
15209         * modules/locale: New file.
15210         * lib/locale_.h: New file.
15211         * m4/locale_h.m4: New file.
15212
15213 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
15214             Bruno Haible  <bruno@clisp.org>
15215
15216         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
15217         be determined, test for availability of the copysignf, copysign,
15218         copysignl functions.
15219         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
15220         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
15221         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
15222
15223 2007-04-09  Eric Blake  <ebb9@byu.net>
15224
15225         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
15226         * modules/stdio (Makefile.am): Support fflush.
15227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15228         * modules/fflush: New file.
15229         * lib/fflush.c: Likewise.
15230         * m4/fflush.m4: Likewise.
15231         * modules/fflush-tests: New test.
15232         * tests/test-fflush.c: Likewise.
15233         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
15234
15235 2007-04-06  Bruno Haible  <bruno@clisp.org>
15236
15237         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
15238         (VASNPRINTF): Use signbit for faster determination whether to print a
15239         minus sign.
15240         * modules/vasnprintf (Files): Remove lib/float+.h.
15241         * modules/fprintf-posix (Depends-on): Add signbit.
15242         * modules/snprintf-posix (Depends-on): Likewise.
15243         * modules/sprintf-posix (Depends-on): Likewise.
15244         * modules/vasnprintf-posix (Depends-on): Likewise.
15245         * modules/vasprintf-posix (Depends-on): Likewise.
15246         * modules/vfprintf-posix (Depends-on): Likewise.
15247         * modules/vsnprintf-posix (Depends-on): Likewise.
15248         * modules/vsprintf-posix (Depends-on): Likewise.
15249
15250 2007-04-06  Bruno Haible  <bruno@clisp.org>
15251
15252         * tests/test-frexp.c (main): Test also the sign bit of zero results.
15253         * tests/test-frexpl.c (main): Likewise.
15254         * tests/test-ldexpl.c (main): Likewise.
15255         * modules/frexp-tests (Depends-on): Add signbit.
15256         * modules/frexpl-tests (Depdends-on): Likewise.
15257         * modules/ldexpl-tests (Depdends-on): Likewise.
15258
15259 2007-04-06  Bruno Haible  <bruno@clisp.org>
15260
15261         * modules/signbit-tests: New file.
15262         * tests/test-signbit.c: New file.
15263
15264         * modules/signbit: New file.
15265         * lib/signbitf.c: New file.
15266         * lib/signbitd.c: New file.
15267         * lib/signbitl.c: New file.
15268         * m4/signbit.m4: New file.
15269         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
15270         (signbit): New macro.
15271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
15272         REPLACE_SIGNBIT.
15273         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
15274         REPLACE_FREXPL into math.h.
15275
15276 2007-04-06  Bruno Haible  <bruno@clisp.org>
15277
15278         * modules/isnanf-nolibm-tests: New file.
15279         * tests/test-isnanf.c: New file.
15280
15281         * modules/isnanf-nolibm: New file.
15282         * lib/isnanf.h: New file.
15283         * lib/isnanf.c: New file.
15284         * lib/isnan.c: Consider the USE_FLOAT macro.
15285         * m4/isnanf.m4: New file.
15286
15287 2007-04-06  Bruno Haible  <bruno@clisp.org>
15288
15289         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
15290         (Link): New section.
15291
15292         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
15293
15294 2007-04-06  Bruno Haible  <bruno@clisp.org>
15295
15296         Assume the 'long double' type.
15297         * m4/longdouble.m4: Remove file.
15298         * config/srclist.txt: Don't mention longdouble.m4.
15299         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
15300         * lib/float+.h: Likewise.
15301         * lib/frexp.c: Likewise.
15302         * lib/printf-args.h: Likewise.
15303         * lib/printf-args.c: Likewise.
15304         * lib/printf-frexp.c: Likewise.
15305         * lib/printf-parse.c: Likewise.
15306         * lib/vasnprintf.c: Likewise.
15307         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
15308         * m4/intl.m4: Likewise.
15309         * m4/isnanl.m4: Likewise.
15310         * m4/printf.m4: Likewise.
15311         * m4/printf-frexpl.m4: Likewise.
15312         * m4/vasnprintf.m4: Likewise.
15313         * modules/allocsa (Files): Remove m4/longdouble.m4.
15314         * modules/gettext (Files): Likewise.
15315         * modules/relocatable-prog-wrapper (Files): Likewise.
15316         * modules/vasnprintf (Files): Likewise.
15317         * modules/isnanl (Files): Likewise.
15318         (Include): Simplify.
15319         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
15320         (Include): Simplify.
15321         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
15322         (Include): Simplify.
15323         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
15324         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15325         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
15326         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15327         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15328         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15329         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
15330         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15331         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15332         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15333         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
15334         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15335         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
15336         * tests/test-isnanl.c: Likewise.
15337         * tests/test-snprintf-posix.h: Likewise.
15338         * tests/test-sprintf-posix.h: Likewise.
15339         * tests/test-vasnprintf-posix.c: Likewise.
15340         * tests/test-vasnprintf-posix2.c: Likewise.
15341         * tests/test-vasprintf-posix.c: Likewise.
15342
15343 2007-04-06  Bruno Haible  <bruno@clisp.org>
15344
15345         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
15346         * lib/math_.h [__DECC]: Include the overridden include file through
15347         #include_next, outside the double-inclusion guard.
15348         * lib/stdio_.h [__DECC]: Likewise.
15349         * lib/stdlib_.h [__DECC]: Likewise.
15350         * lib/string_.h [__DECC]: Likewise.
15351         * lib/time_.h [__DECC]: Likewise.
15352         * lib/wchar_.h [__DECC]: Likewise.
15353         * lib/wctype_.h [__DECC]: Likewise.
15354         * lib/inttypes_.h [__DECC]: Likewise.
15355         Reported by Albert Chin <china@thewrittenword.com> in
15356         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
15357
15358 2007-04-04  Eric Blake  <ebb9@byu.net>
15359
15360         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
15361         1.5.x.
15362
15363 2007-04-04  Bruno Haible  <bruno@clisp.org>
15364
15365         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
15366         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
15367
15368 2007-04-04  Bruno Haible  <bruno@clisp.org>
15369
15370         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
15371         results for "%010a" of Infinity and NaN.
15372         * tests/test-vasprintf-posix.c (test_function): Likewise.
15373         * tests/test-snprintf-posix.h (test_function): Likewise.
15374         * tests/test-sprintf-posix.h (test_function): Likewise.
15375         * tests/test-fprintf-posix.h (test_function): Remove these tests.
15376         * tests/test-printf-posix.h (test_function): Likewise.
15377         * tests/test-fprintf-posix.out: Update.
15378         Needed for FreeBSD 6.1.
15379
15380 2007-04-04  Bruno Haible  <bruno@clisp.org>
15381
15382         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
15383         directly used by the gnulib modules nor by gnulib-tool.
15384
15385 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
15386
15387         * DEPENDENCIES: Give overall description of version dependency
15388         desirability.  Use more-typical names for apps.
15389         Add shell, coreutils, diffutils, grep, tar, gzip.
15390
15391 2007-04-04  Simon Josefsson  <simon@josefsson.org>
15392
15393         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
15394
15395 2007-04-04  Karl Berry  <karl@gnu.org>
15396
15397         * MODULES.html.sh (func_module): missing '.
15398
15399 2007-04-03  Bruno Haible  <bruno@clisp.org>
15400
15401         * modules/argmatch-tests (Makefile.am): New variable
15402         test_argmatch_LDADD.
15403         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
15404         * modules/array-list-tests (Makefile.am): New variable
15405         test_array_list_LDADD.
15406         * modules/array-oset-tests (Makefile.am): New variable
15407         test_array_oset_LDADD.
15408         * modules/avltree-list-tests (Makefile.am): New variable
15409         test_avltree_list_LDADD.
15410         * modules/avltree-oset-tests (Makefile.am): New variable
15411         test_avltree_oset_LDADD.
15412         * modules/avltreehash-list-tests (Makefile.am): New variable
15413         test_avltreehash_list_LDADD.
15414         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
15415         test_canonicalize_lgpl_LDADD.
15416         * modules/carray-list-tests (Makefile.am): New variable
15417         test_carray_list_LDADD.
15418         * modules/dirname-tests (Makefile.am): New variable
15419         test_dirname_LDADD.
15420         * modules/linked-list-tests (Makefile.am): New variable
15421         test_linked_list_LDADD.
15422         * modules/linkedhash-list-tests (Makefile.am): New variable
15423         test_linkedhash_list_LDADD.
15424         * modules/rbtree-list-tests (Makefile.am): New variable
15425         test_rbtree_list_LDADD.
15426         * modules/rbtree-oset-tests (Makefile.am): New variable
15427         test_rbtree_oset_LDADD.
15428         * modules/rbtreehash-list-tests (Makefile.am): New variable
15429         test_rbtreehash_list_LDADD.
15430         * modules/xvasprintf-tests (Makefile.am): New variable
15431         test_xvasprintf_LDADD.
15432         Reported by Eric Blake.
15433
15434 2007-04-03  Eric Blake  <ebb9@byu.net>
15435
15436         * DEPENDENCIES: Weaken m4 requirements.
15437
15438 2007-04-03  Bruno Haible  <bruno@clisp.org>
15439
15440         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
15441         * modules/isnanl-tests (configure.ac): Likewise.
15442
15443 2007-04-03  Ben Pfaff  <blp@gnu.org>
15444
15445         * modules/iconv_open: Add $(srcdir)/ to source directory
15446         references in Makefile fragments that call gperf, to fix VPATH
15447         builds.
15448
15449 2007-04-03  Bruno Haible  <bruno@clisp.org>
15450
15451         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
15452         * lib/ldexpl.c: Undo last change.
15453
15454 2007-04-03  Bruno Haible  <bruno@clisp.org>
15455
15456         * modules/printf-frexpl (Depends-on): Undo last change.
15457         (Files): Add m4/ldexpl.m4.
15458
15459 2007-04-03  Bruno Haible  <bruno@clisp.org>
15460
15461         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
15462         * modules/isnanl (Link): New section.
15463
15464         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
15465         * modules/frexp (Link): New section.
15466
15467         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
15468         * modules/frexpl (Link): New section.
15469
15470         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
15471         * modules/ldexpl (Link): New section.
15472
15473 2007-04-03  Bruno Haible  <bruno@clisp.org>
15474
15475         * modules/TEMPLATE-EXTENDED: New file.
15476         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
15477
15478 2007-04-03  Bruno Haible  <bruno@clisp.org>
15479
15480         * DEPENDENCIES: New file.
15481         Suggested by Simon Josefsson.
15482
15483 2007-04-03  Bruno Haible  <bruno@clisp.org>
15484
15485         * doc/gnulib.texi: Escape @.
15486
15487 2007-04-03  James Youngman  <jay@gnu.org>
15488         and Paul Eggert  <eggert@cs.ucla.edu>
15489
15490         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
15491         birthtime on all systems that have birthtime, not just those which
15492         use st_birthtimensec rather than st_birthtim.  Putting zero in
15493         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
15494         that the birth time is not available for files on an NFS mount.
15495
15496 2007-04-03  Simon Josefsson  <simon@josefsson.org>
15497
15498         * modules/memxor: Move back from crypto/, suggested by Bruno.
15499         * modules/crypto/hmac-sha1: Fix memxor dependency.
15500
15501         * modules/crypto/gc: Moved from ../.
15502
15503 2007-04-02  Eric Blake  <ebb9@byu.net>
15504
15505         * lib/ldexpl.c (includes): Avoid libm.
15506
15507         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
15508
15509 2007-04-02  Bruno Haible  <bruno@clisp.org>
15510
15511         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
15512         on IRIX.
15513
15514 2007-04-02  Bruno Haible  <bruno@clisp.org>
15515
15516         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
15517         x86 or x86_64 platforms running MacOS X.
15518         Reported by Ryan Schmidt <@ryandesign.com>.
15519
15520 2007-04-02  Bruno Haible  <bruno@clisp.org>
15521
15522         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
15523         i386.
15524
15525 2007-04-01  Simon Josefsson  <simon@josefsson.org>
15526
15527         * modules/crypto/arcfour: Moved from ../.
15528         * modules/crypto/arcfour-tests: Moved from ../.
15529         * modules/crypto/arctwo: Moved from ../.
15530         * modules/crypto/arctwo-tests: Moved from ../.
15531         * modules/crypto/des: Moved from ../.
15532         * modules/crypto/des-tests: Moved from ../.
15533         * modules/crypto/gc-arcfour: Moved from ../.
15534         * modules/crypto/gc-arcfour-tests: Moved from ../.
15535         * modules/crypto/gc-arctwo: Moved from ../.
15536         * modules/crypto/gc-arctwo-tests: Moved from ../.
15537         * modules/crypto/gc-des: Moved from ../.
15538         * modules/crypto/gc-des-tests: Moved from ../.
15539         * modules/crypto/gc-hmac-md5: Moved from ../.
15540         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
15541         * modules/crypto/gc-hmac-sha1: Moved from ../.
15542         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
15543         * modules/crypto/gc-md2: Moved from ../.
15544         * modules/crypto/gc-md2-tests: Moved from ../.
15545         * modules/crypto/gc-md4: Moved from ../.
15546         * modules/crypto/gc-md4-tests: Moved from ../.
15547         * modules/crypto/gc-md5: Moved from ../.
15548         * modules/crypto/gc-md5-tests: Moved from ../.
15549         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
15550         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
15551         * modules/crypto/gc-random: Moved from ../.
15552         * modules/crypto/gc-rijndael: Moved from ../.
15553         * modules/crypto/gc-rijndael-tests: Moved from ../.
15554         * modules/crypto/gc-sha1: Moved from ../.
15555         * modules/crypto/gc-sha1-tests: Moved from ../.
15556         * modules/crypto/gc-tests: Moved from ../.
15557         * modules/crypto/hmac-md5: Moved from ../.
15558         * modules/crypto/hmac-md5-tests: Moved from ../.
15559         * modules/crypto/hmac-sha1: Moved from ../.
15560         * modules/crypto/hmac-sha1-tests: Moved from ../.
15561         * modules/crypto/md2: Moved from ../.
15562         * modules/crypto/md2-tests: Moved from ../.
15563         * modules/crypto/md4: Moved from ../.
15564         * modules/crypto/md4-tests: Moved from ../.
15565         * modules/crypto/md5: Moved from ../.
15566         * modules/crypto/md5-tests: Moved from ../.
15567         * modules/crypto/memxor: Moved from ../.
15568         * modules/crypto/rijndael: Moved from ../.
15569         * modules/crypto/rijndael-tests: Moved from ../.
15570         * modules/crypto/sha1: Moved from ../.
15571
15572 2007-03-30  James Youngman  <jay@gnu.org>
15573
15574         * tests/test-stat-time.c (prepare_test): use chmod() rather than
15575         rename() to change the ctime of a file (because ctime is unaffected
15576         by rename on jfs2 on AIX 5.1).
15577         (main): Start by doing cleanup, in case a previous run failed leaving
15578         test files behind.
15579
15580 2007-03-31  Bruno Haible  <bruno@clisp.org>
15581
15582         Support old proprietary implementations of iconv.
15583         * modules/iconv_open: New file.
15584         * lib/iconv_.h: New file.
15585         * m4/iconv_h.m4: New file.
15586         * lib/iconv_open.c: New file.
15587         * lib/iconv_open-aix.gperf: New file.
15588         * lib/iconv_open-hpux.gperf: New file.
15589         * lib/iconv_open-irix.gperf: New file.
15590         * lib/iconv_open-osf.gperf: New file.
15591         * m4/iconv_open.m4: New file.
15592         * modules/linebreak (Depends-on): Add iconv_open.
15593         * modules/striconv (Depends-on): Likewise.
15594         * modules/striconveh (Depends-on): Likewise.
15595         * modules/unicodeio (Depends-on): Likewise.
15596         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
15597         (iconv_t)(-1).
15598         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
15599         conversion if cd is (iconv_t)(-1).
15600         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
15601         is not possible.
15602
15603 2007-03-31  Bruno Haible  <bruno@clisp.org>
15604
15605         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15606         work on Solaris either. Protect also second use of "autodetect_jp".
15607
15608 2007-03-31  Bruno Haible  <bruno@clisp.org>
15609
15610         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
15611         the function is not present.
15612
15613 2007-03-31  Bruno Haible  <bruno@clisp.org>
15614
15615         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
15616         the function is not present.
15617
15618 2007-03-31  Bruno Haible  <bruno@clisp.org>
15619
15620         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
15621         a bug in HP-UX iconv_open().
15622
15623 2007-03-31  Bruno Haible  <bruno@clisp.org>
15624
15625         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
15626         (Mathematics <math.h>): New section, add fpieee.
15627         (Input/output <stdio.h>): Add fseterr.
15628         (Mathematics <math.h>): New section, add printf-frexp.
15629         (Container data structures): Add sublist.
15630         (Core language properties): Add fpucw, inline.
15631         (Functions for greatest-width integer types <inttypes.h>): Add
15632         imaxabs, imaxdiv, inttypes.
15633         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
15634         isnanl-nolibm, ldexp.
15635         (Mathematics <math.h>): New section, add printf-frexpl.
15636         (Support for systems lacking POSIX:2001): Add fprintf-posix,
15637         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
15638         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
15639         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
15640         (Unicode string functions): Add unistr/u*-mbtoucr.
15641         (Java): Add javacomp-script, javaexec-script.
15642         (C#): Add csharpcomp-script, csharpexec-script.
15643         (Support for building libraries and executables): Add havelib,
15644         relocatable-*.
15645         (Support for maintaining and releasing projects): Renamed from
15646         'Support for maintaining and release projects'. Add announce-gen.
15647
15648 2007-03-31  Bruno Haible  <bruno@clisp.org>
15649
15650         * README: Talk primarily about git.
15651         (git and CVS): Renamed from CVS.
15652         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
15653         gnulib is available through git.
15654         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
15655
15656 2007-03-30  Bruno Haible  <bruno@clisp.org>
15657
15658         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
15659         * lib/poll_.h: Likewise.
15660         * lib/stat_.h: Likewise.
15661         * lib/sys_time_.h: Likewise.
15662         * lib/sysexit_.h: Likewise.
15663         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
15664         * lib/stdbool_.h: Likewise.
15665         * lib/byteswap_.h: Add double-inclusion guard.
15666
15667 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
15668
15669         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
15670
15671 2007-03-30  Karl Berry  <karl@gnu.org>
15672
15673         * config/srclist-update: double space after USA in the license
15674         substitution, since that's how it's usually (?) written.
15675
15676 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15677
15678         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
15679         reported by Bruno Haible.
15680
15681 2007-03-29  Bruno Haible  <bruno@clisp.org>
15682
15683         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
15684         a bug in AIX iconv().
15685
15686 2007-03-29  Bruno Haible  <bruno@clisp.org>
15687
15688         * modules/ldexpl-tests: New file.
15689         * tests/test-ldexpl.c: New file.
15690
15691 2007-03-29  Bruno Haible  <bruno@clisp.org>
15692
15693         * lib/ldexpl.c: Include fpucw.h.
15694         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
15695         multiplication.
15696         * modules/ldexpl (Depends-on): Add fpucw.
15697
15698 2007-03-29  Bruno Haible  <bruno@clisp.org>
15699
15700         * modules/ldexpl: New file.
15701         * m4/ldexpl.m4: New file.
15702         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
15703         set.
15704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
15705         REPLACE_LDEXPL.
15706         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
15707         REPLACE_LDEXPL.
15708         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15709         gl_FUNC_LDEXPL_WORKS.
15710         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
15711         * modules/mathl (Files): Remove lib/ldexpl.c.
15712         (Depends-on): Add ldexpl.
15713
15714 2007-03-29  Bruno Haible  <bruno@clisp.org>
15715
15716         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
15717
15718 2007-03-29  Bruno Haible  <bruno@clisp.org>
15719
15720         * tests/test-striconveh.c (main): Don't assume that a direct conversion
15721         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
15722         and possibly also HP-UX.
15723         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15724         work on AIX, IRIX, HP-UX, OSF/1.
15725         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15726         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15727         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15728         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15729         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15730         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15731
15732 2007-03-29  Bruno Haible  <bruno@clisp.org>
15733
15734         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
15735
15736 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15737
15738         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
15739         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
15740
15741 2007-03-29  Eric Blake  <ebb9@byu.net>
15742
15743         * lib/acl-internal.h: Remove redundant include.
15744         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
15745         Cygwin when a file is locked.
15746
15747 2007-03-29  Bruno Haible  <bruno@clisp.org>
15748
15749         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
15750         file.
15751         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
15752
15753 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15754
15755         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
15756         try to remove a parent directory if the child couldn't be removed
15757         (except for the first rmdir, which could fail because the child
15758         doesn't exist).  Problem reported by Jeff Blaine in
15759         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
15760
15761 2007-03-28  Bruno Haible  <bruno@clisp.org>
15762
15763         * lib/striconveh.c (utf8conv_carefully): New function.
15764         (mem_cd_iconveh_internal): Invoke it.
15765
15766 2007-03-28  Bruno Haible  <bruno@clisp.org>
15767
15768         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
15769         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
15770         input.
15771         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
15772         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
15773         unistr/u8-uctomb.
15774
15775 2007-03-28  Bruno Haible  <bruno@clisp.org>
15776
15777         * modules/unistr/u8-mbtoucr: New file.
15778         * lib/unistr/u8-mbtoucr.c: New file.
15779         * modules/unistr/u16-mbtoucr: New file.
15780         * lib/unistr/u16-mbtoucr.c: New file.
15781         * modules/unistr/u16-mbtoucr: New file.
15782         * lib/unistr/u16-mbtoucr.c: New file.
15783         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
15784
15785 2007-03-27  Simon Josefsson  <simon@josefsson.org>
15786             Bruno Haible  <bruno@clisp.org>
15787
15788         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
15789         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
15790         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
15791
15792         * m4/stdio_h.m4: Add stubs for vasprintf too.
15793
15794         * modules/stdio: Support vasprintf in sed command.
15795
15796         * modules/vasprintf: Depend on stdio for prototypes.  Remove
15797         vasprintf.h.  Add stdio module indicator.
15798
15799         * lib/stdio_.h: Declare asprintf and vasprintf, based on
15800         vasprintf.h.
15801
15802         * lib/vasprintf.h: File removed.
15803
15804         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
15805         * lib/vasprintf.c: Ditto.
15806         * lib/xvasprintf.c: Ditto.
15807         * tests/test-vasprintf-posix.c: Ditto.
15808         * tests/test-vasprintf.c: Ditto.
15809
15810 2007-03-27  Bruno Haible  <bruno@clisp.org>
15811
15812         Make vasnprintf multithread-safe.
15813         * lib/vasnprintf.c (decimal_point_char): New function.
15814         (VASNPRINTF): Use it.
15815         Suggested by Simon Josefsson.
15816
15817 2007-03-27  Eric Blake  <ebb9@byu.net>
15818
15819         Support sub-second birthtime on cygwin.
15820         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
15821         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
15822         (get_stat_birthtime): Also work with st_birthtim.
15823
15824 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15825
15826         * lib/stat-time.h (USE_BIRTHTIME): Remove.
15827         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
15828         (get_stat_birthtime_ns): Do not try to use "spare" fields.
15829         (get_stat_birthtime_ns): Simplify compile-time tests.
15830         (get_stat_birthtime): Change the API to look like
15831         get_stat_mtime etc., except return a negative tv_nsec on error.
15832         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
15833         Don't check for "spare" fields.
15834         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
15835         or for struct stat.st_birthtime, as these tests aren't used.
15836         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
15837
15838 2007-03-27  Bruno Haible  <bruno@clisp.org>
15839
15840         * lib/stat-time.h: Include <sys/stat.h>.
15841
15842 2007-03-27  James Youngman  <jay@gnu.org>
15843
15844         * lib/stat-time.h (get_stat_birthtime): New function for
15845           retrieving st_birthtime as provided by UFS2 (hence *BSD).
15846         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
15847           and its variants.
15848         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
15849         * modules/stat-time-test: New file.
15850         * tests/test-stat-time.c: New test, devised by Bruno Haible.
15851
15852 2007-03-26  Bruno Haible  <bruno@clisp.org>
15853
15854         Better support of signalling NaNs.
15855         * lib/atanl.c: Include isnanl.h.
15856         (atanl): Perform test for NaN at the beginning of the function and
15857         through a call to isnanl.
15858         * lib/cosl.c: Include isnanl.h.
15859         (cosl): Perform test for NaN at the beginning of the function and
15860         through a call to isnanl.
15861         * lib/ldexpl.c: Include isnanl.h.
15862         (ldexpl): Perform test for NaN through a call to isnanl.
15863         * lib/logl.c: Include isnanl.h.
15864         (logl): Perform test for NaN at the beginning of the function and
15865         through a call to isnanl.
15866         * lib/sinl.c: Include isnanl.h.
15867         (sinl): Perform test for NaN at the beginning of the function and
15868         through a call to isnanl.
15869         * lib/sqrtl.c: Include isnanl.h.
15870         (sqrtl): Perform test for NaN at the beginning of the function and
15871         through a call to isnanl.
15872         * lib/tanl.c: Include isnanl.h.
15873         (tanl): Perform test for NaN at the beginning of the function and
15874         through a call to isnanl.
15875         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
15876         * modules/mathl (Depends-on): Add isnanl.
15877
15878 2007-03-26  Eric Blake  <ebb9@byu.net>
15879
15880         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
15881         regression in logic sense of previous patch.
15882
15883 2007-03-26  Bruno Haible  <bruno@clisp.org>
15884
15885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
15886         unportable shell command "if ! ...".
15887         Reported by Ralf Wildenhues.
15888
15889 2007-03-25  Bruno Haible  <bruno@clisp.org>
15890
15891         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
15892         <sysexits.h> file, and only add EX_CONFIG.
15893         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
15894         absolute file name and whether it is sufficient. Substitute also
15895         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
15896         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
15897         ABSOLUTE_SYSEXITS_H into sysexits.h.
15898
15899 2007-03-25  Bruno Haible  <bruno@clisp.org>
15900
15901         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
15902         hints is NULL.
15903
15904 2007-03-25  Bruno Haible  <bruno@clisp.org>
15905
15906         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
15907         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
15908
15909 2007-03-25  Bruno Haible  <bruno@clisp.org>
15910
15911         * lib/vasnprintf.c: Include langinfo.h.
15912         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
15913         multithread-safe.
15914         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
15915         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
15916         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15917         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15918         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15919         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15920         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15921         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
15922         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15923         Reported by Simon Josefsson.
15924
15925 2007-03-25  Bruno Haible  <bruno@clisp.org>
15926
15927         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
15928         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
15929         * modules/vasnprintf (Depends-on): Add stdint.
15930
15931 2007-03-25  Bruno Haible  <bruno@clisp.org>
15932
15933         * modules/fpieee: New file.
15934         * m4/fpieee.m4: New file.
15935         * modules/isnan-nolibm (Depends-on): Add fpieee.
15936         * modules/isnanl-nolibm (Depends-on): Add fpieee.
15937         * modules/isnanl (Depends-on): Add fpieee.
15938
15939 2007-03-25  Bruno Haible  <bruno@clisp.org>
15940
15941         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
15942
15943 2007-03-25  Bruno Haible  <bruno@clisp.org>
15944
15945         Avoid test failures on IRIX 6.5.
15946         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
15947         (main): Use it.
15948         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
15949         macros.
15950         (main): Use them.
15951
15952 2007-03-25  Bruno Haible  <bruno@clisp.org>
15953
15954         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
15955         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
15956         exists but doesn't work.
15957         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
15958         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
15959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
15960         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
15961
15962 2007-03-25  Bruno Haible  <bruno@clisp.org>
15963
15964         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
15965         returns inf. Needed on IRIX 6.5.
15966
15967 2007-03-25  Bruno Haible  <bruno@clisp.org>
15968
15969         * tests/test-frexpl.c: Include isnanl-nolibm.h.
15970         (main): Use isnanl instead of x != x idiom.
15971         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
15972
15973         * tests/test-frexp.c: Include isnan.h.
15974         (main): Use isnan instead of x != x idiom.
15975         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
15976
15977 2007-03-25  Bruno Haible  <bruno@clisp.org>
15978
15979         * tests/test-frexp.c (NaN): New function/macro.
15980         (main): Use it instead of 0.0 / 0.0.
15981         * tests/test-isnan.c (NaN): New function/macro.
15982         (main): Use it instead of 0.0 / 0.0.
15983         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
15984         (test_function): Use it instead of 0.0 / 0.0.
15985         * tests/test-vasprintf-posix.c (NaN): New function/macro.
15986         (test_function): Use it instead of 0.0 / 0.0.
15987         * tests/test-snprintf-posix.h (NaN): New function/macro.
15988         (test_function): Use it instead of 0.0 / 0.0.
15989         * tests/test-sprintf-posix.h (NaN): New function/macro.
15990         (test_function): Use it instead of 0.0 / 0.0.
15991         * tests/test-fprintf-posix.h (NaN): New function/macro.
15992         (test_function): Use it instead of 0.0 / 0.0.
15993         * tests/test-printf-posix.h (NaN): New function/macro.
15994         (test_function): Use it instead of 0.0 / 0.0.
15995
15996         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
15997
15998 2007-03-25  Bruno Haible  <bruno@clisp.org>
15999
16000         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
16001
16002 2007-03-25  Bruno Haible  <bruno@clisp.org>
16003
16004         * lib/regexec.c (merge_state_with_log): Make static.
16005
16006 2007-03-25  Bruno Haible  <bruno@clisp.org>
16007
16008         * lib/trigl.c (kernel_rem_pio2): Make static.
16009
16010 2007-03-25  Bruno Haible  <bruno@clisp.org>
16011
16012         * lib/sincosl.c (sincosl_table): Make static.
16013
16014 2007-03-25  Bruno Haible  <bruno@clisp.org>
16015
16016         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
16017         if the compiler does not support C99.
16018
16019 2007-03-25  Bruno Haible  <bruno@clisp.org>
16020
16021         * modules/time (Makefile.am): Ensure all rule action lines start with a
16022         tab.
16023
16024 2007-03-24  Bruno Haible  <bruno@clisp.org>
16025
16026         * modules/tsearch-tests: New file.
16027         * tests/test-tsearch.sh: New file.
16028         * tests/test-tsearch.c: New file, mostly copied from glibc.
16029
16030         * modules/search-tests: New file.
16031         * tests/test-search.c: New file.
16032
16033         * modules/search: New file.
16034         * lib/search_.h: New file, incorporating lib/tsearch.h.
16035         * m4/search_h.m4: New file.
16036         * lib/tsearch.h: Remove file.
16037         * lib/tsearch.c: Include search.h instead of tsearch.h.
16038         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
16039         HAVE_TSEARCH.
16040         * modules/tsearch (Files): Remove lib/tsearch.h.
16041         (Depends-on): Add search.
16042         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
16043         (Include): Change tsearch.h into search.h.
16044
16045 2007-03-24  Bruno Haible  <bruno@clisp.org>
16046
16047         * modules/fpucw: New file.
16048         * lib/fpucw.h: New file.
16049         * lib/frexp.c: Include fpucw.h.
16050         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16051         (FUNC): Use them.
16052         * lib/printf-frexp.c: Include fpucw.h.
16053         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16054         (FUNC): Use them.
16055         * lib/vasnprintf.c: Include fpucw.h.
16056         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
16057         'long double' calculations.
16058         * tests/test-frexpl.c: Include fpucw.h.
16059         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16060         * tests/test-printf-frexpl.c: Include fpucw.h.
16061         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16062         * modules/frexpl (Depends-on): Add fpucw.
16063         * modules/printf-frexpl (Depends-on): Likewise.
16064         * modules/fprintf-posix (Depends-on): Likewise.
16065         * modules/snprintf-posix (Depends-on): Likewise.
16066         * modules/sprintf-posix (Depends-on): Likewise.
16067         * modules/vasnprintf-posix (Depends-on): Likewise.
16068         * modules/vasprintf-posix (Depends-on): Likewise.
16069         * modules/vfprintf-posix (Depends-on): Likewise.
16070         * modules/vsnprintf-posix (Depends-on): Likewise.
16071         * modules/vsprintf-posix (Depends-on): Likewise.
16072         * modules/frexpl-tests (Depends-on): Likewise.
16073         * modules/printf-frexpl-tests (Depends-on): Likewise.
16074
16075 2007-03-24  Bruno Haible  <bruno@clisp.org>
16076
16077         * lib/float+.h: New file.
16078         * lib/isnan.c: Include float+.h.
16079         (SIZE): New macro.
16080         (FUNC): Compare only SIZE bytes of the value.
16081         * lib/vasnprintf.c: Include float+.h.
16082         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
16083         SIZEOF_LDBL or SIZEOF_DBL bytes.
16084         * modules/isnan-nolibm (Files): Add lib/float+.h.
16085         * modules/isnanl-nolibm (Files): Add lib/float+.h.
16086         * modules/isnanl (Files): Add lib/float+.h.
16087         * modules/vasnprintf (Files): Add lib/float+.h.
16088
16089 2007-03-24  Bruno Haible  <bruno@clisp.org>
16090
16091         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
16092         include isnanl-nolibm.h.
16093
16094 2007-03-24  Bruno Haible  <bruno@clisp.org>
16095
16096         * tests/test-read-file.c (main): Don't produce spurious output for
16097         expected situations. Make the test fail if it encountered unexpected
16098         results.
16099
16100 2007-03-24  Bruno Haible  <bruno@clisp.org>
16101
16102         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
16103         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
16104
16105 2007-03-24  Bruno Haible  <bruno@clisp.org>
16106
16107         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
16108
16109 2007-03-24  Bruno Haible  <bruno@clisp.org>
16110
16111         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
16112         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
16113
16114         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
16115         * modules/utf8-ucs4: Turn into a symbolic link to module
16116         unistr/u8-mbtouc.
16117
16118         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
16119         utf8-ucs4-unsafe.
16120         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
16121         unistr/u8-mbtouc-unsafe.
16122
16123         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
16124         * modules/utf16-ucs4: Turn into a symbolic link to module
16125         unistr/u16-mbtouc.
16126
16127         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
16128         utf16-ucs4-unsafe.
16129         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
16130         unistr/u16-mbtouc-unsafe.
16131
16132         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
16133         * modules/ucs4-utf8: Turn into a symbolic link to module
16134         unistr/u8-ubtomb.
16135
16136         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
16137         * modules/ucs4-utf16: Turn into a symbolic link to module
16138         unistr/u16-ubtomb.
16139
16140 2007-03-24  Bruno Haible  <bruno@clisp.org>
16141
16142         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
16143         Enable the function only if HAVE_INLINE.
16144         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
16145         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16146         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
16147         Enable the function only if HAVE_INLINE.
16148         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
16149         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16150         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
16151         Enable the function only if HAVE_INLINE.
16152         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
16153         Enable the function only if HAVE_INLINE.
16154         * modules/utf8-ucs4: Update.
16155         * modules/utf8-ucs4-unsafe: Update.
16156         * modules/utf16-ucs4: Update.
16157         * modules/utf16-ucs4-unsafe: Update.
16158         * modules/ucs4-utf8: Update.
16159         * modules/ucs4-utf16: Update.
16160
16161 2007-03-24  Bruno Haible  <bruno@clisp.org>
16162
16163         * lib/utf8-ucs4.h: Remove file.
16164         * lib/utf8-ucs4-unsafe.h: Remove file.
16165         * lib/utf16-ucs4.h: Remove file.
16166         * lib/utf16-ucs4-unsafe.h: Remove file.
16167         * lib/ucs4-utf8.h: Remove file.
16168         * lib/ucs4-utf16.h: Remove file.
16169         * lib/unistr.h: Include their previous contents.
16170         * m4/utf-ucs4.m4: Remove file.
16171         * m4/ucs4-utf.m4: Remove file.
16172         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
16173         (Depends-on): Add unistr/base.
16174         (configure.ac): Remove gl_UTF_UCS4.
16175         (Makefile.am): Update.
16176         (Include): Change to unistr.h.
16177         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
16178         (Depends-on): Add unistr/base.
16179         (configure.ac): Remove gl_UTF_UCS4.
16180         (Makefile.am): Update.
16181         (Include): Change to unistr.h.
16182         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
16183         (Depends-on): Add unistr/base.
16184         (configure.ac): Remove gl_UTF_UCS4.
16185         (Makefile.am): Update.
16186         (Include): Change to unistr.h.
16187         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
16188         (Depends-on): Add unistr/base.
16189         (configure.ac): Remove gl_UTF_UCS4.
16190         (Makefile.am): Update.
16191         (Include): Change to unistr.h.
16192         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
16193         (Depends-on): Add unistr/base.
16194         (configure.ac): Remove gl_UCS4_UTF.
16195         (Makefile.am): Update.
16196         (Include): Change to unistr.h.
16197         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
16198         (Depends-on): Add unistr/base.
16199         (configure.ac): Remove gl_UCS4_UTF.
16200         (Makefile.am): Update.
16201         (Include): Change to unistr.h.
16202         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
16203         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
16204         utf8-ucs4-unsafe.h.
16205         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
16206         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
16207         utf16-ucs4-unsafe.h.
16208         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
16209         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
16210         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
16211         * lib/unistr/u8-strchr.c: Likewise.
16212         * lib/unistr/u8-strrchr.c: Likewise.
16213         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
16214         * lib/unistr/u16-strchr.c: Likewise.
16215         * lib/unistr/u16-strrchr.c: Likewise.
16216         * lib/striconveh.c: Update.
16217         * lib/linebreak.c: Update.
16218
16219 2007-03-24  Bruno Haible  <bruno@clisp.org>
16220
16221         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
16222         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
16223
16224 2007-03-22  Bruno Haible  <bruno@clisp.org>
16225
16226         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
16227
16228 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
16229
16230         * MODULES.html.sh (File system functions): New module write-any-file.
16231         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
16232         * m4/write-any-file.m4: New files.
16233
16234 2007-03-23  Eric Blake  <ebb9@byu.net>
16235
16236         * gnulib-tool: Rearrange space-tab sequences, since some editors
16237         like to eat them.
16238
16239 2007-03-23  Eric Blake  <ebb9@byu.net>
16240
16241         * lib/version-etc.c (version_etc_va): Update license wording to
16242         be more concise.  Recommended by Richard Stallman.
16243
16244 2007-03-22  Bruno Haible  <bruno@clisp.org>
16245
16246         * lib/poll.c (MSG_PEEK): New fallback definition.
16247
16248 2007-03-22  Bruno Haible  <bruno@clisp.org>
16249
16250         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
16251         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
16252         (main): Update.
16253         Fixes a compilation error on BeOS.
16254
16255 2007-03-22  Bruno Haible  <bruno@clisp.org>
16256
16257         * modules/frexpl-tests: New file.
16258         * tests/test-frexpl.c: New file.
16259
16260         * modules/frexpl: New file.
16261         * m4/frexpl.m4: New file.
16262         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
16263         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
16264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
16265         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
16266         (Depends-on): Add frexpl. Remove isnanl-nolibm.
16267         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
16268
16269 2007-03-22  Bruno Haible  <bruno@clisp.org>
16270
16271         * lib/frexpl.c: Share code with lib/frexp.c.
16272         * modules/mathl (Files): Add lib/frexp.c.
16273         (Depends-on): Add isnanl-nolibm.
16274
16275 2007-03-22  Bruno Haible  <bruno@clisp.org>
16276
16277         * modules/printf-frexp (Files): Add m4/frexp.m4.
16278         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
16279         only if the found frexp function actually works.
16280
16281 2007-03-22  Bruno Haible  <bruno@clisp.org>
16282
16283         * lib/frexp.c: Remove older implementation that uses divisions.
16284
16285 2007-03-21  Bruno Haible  <bruno@clisp.org>
16286
16287         * modules/frexp-tests: New file.
16288         * tests/test-frexp.c: New file.
16289
16290         * modules/frexp: New file.
16291         * lib/frexp.c: New file.
16292         * m4/frexp.m4: New file.
16293         * lib/math_.h (frexp): New declaration.
16294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
16295         REPLACE_FREXP.
16296         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
16297
16298 2007-03-21  Bruno Haible  <bruno@clisp.org>
16299
16300         * modules/isnanl-tests: New file.
16301         * tests/test-isnanl.c: New file.
16302
16303         * modules/isnanl: New file.
16304         * lib/isnanl.h: New file.
16305         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
16306         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
16307         gl_FUNC_ISNANL_WORKS.
16308         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
16309         New macros.
16310
16311 2007-03-21  Bruno Haible  <bruno@clisp.org>
16312
16313         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
16314         lib/isnanl.h.
16315         (Include): Update.
16316         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
16317         * lib/vasnprintf.c: Update.
16318         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
16319         tests/test-isnanl.h, remove tests/test-isnanl.c.
16320         (Makefile.am): Update.
16321         * tests/test-isnanl-nolibm.c: New file.
16322         * tests/test-isnanl.h: New file.
16323         * tests/test-isnanl.c: Remove file.
16324
16325 2007-03-21  Jim Meyering  <jim@meyering.net>
16326
16327         When trying to open ".", treat ESTALE like EACCES.
16328         * lib/savewd.c (savewd_save): Resort to forking not just upon
16329         failure with EACCES, but also when errno is ESTALE.
16330
16331 2007-03-20  Bruno Haible  <bruno@clisp.org>
16332
16333         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
16334         Needed on AIX 5.1. Reported by Matthew Woehlke.
16335
16336 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16337
16338         Suggestions by Bruno Haible:
16339         * lib/acl-internal.h: Include "gettext.h" rather than rolling
16340         our own.
16341         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
16342         * modules/acl (Depends-on): Add gettext.
16343
16344 2007-03-19  Bruno Haible  <bruno@clisp.org>
16345
16346         * modules/iconvme: Remove file.
16347         * lib/iconvme.h: Remove file.
16348         * lib/iconvme.c: Remove file.
16349         * m4/iconvme.m4: Remove file.
16350
16351 2007-03-19  Bruno Haible  <bruno@clisp.org>
16352
16353         * doc/relocatable-maint.texi: Break long shell script line.
16354         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16355
16356 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16357
16358         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
16359         handle file_has_acl.
16360         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
16361         * lib/acl.c: Move header inclusions and related macro defns into
16362         lib/acl-internal.h.
16363         (S_ISLNK): Remove defn, since that's now done for us.
16364         (file_has_acl): Move to lib/file-has-acl.c.
16365         Call acl_trivial if available.  This is the crucial part of the fix.
16366         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
16367         shared within the library.  Rewrite a bit, partly to make it compatible
16368         with the GNU coding style.
16369         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
16370         Remove unnecessary double-quotes.
16371         Don't test for acl_to_text; the build will catch that.
16372         Replace acl_entries if it doesn't exist and it is needed.
16373         Check for -lsec and acl_trivial (as used on Solaris 10).
16374         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
16375         lib/file-has-acl.c.
16376         (Depends-on): Add sys_stat, for S_ISLNK.
16377
16378 2007-03-19  Ben Pfaff  <blp@gnu.org>
16379
16380         * doc/gnulib.texi: Fix typos.
16381         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16382
16383 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16384
16385         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
16386         If size is zero here, buf must be zero.
16387
16388 2007-03-19  Simon Josefsson  <simon@josefsson.org>
16389
16390         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
16391         <bruno@clisp.org>.
16392
16393 2007-03-18  Bruno Haible  <bruno@clisp.org>
16394
16395         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
16396         Suggested by Eric Blake.
16397
16398 2007-03-18  Ben Pfaff  <blp@gnu.org>
16399
16400         * doc/relocatable.texi: Recommend using as prefix a directory
16401         that does not exist and will never be created.  Based on
16402         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
16403         and others.
16404
16405 2007-03-17  Bruno Haible  <bruno@clisp.org>
16406
16407         * lib/fchownat.c: Include lchown.h.
16408
16409 2007-03-17  Bruno Haible  <bruno@clisp.org>
16410
16411         Fix endless loop when the given allocated size was > INT_MAX.
16412         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
16413         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
16414         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
16415         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
16416         * lib/sprintf.c (sprintf): Likewise.
16417
16418 2007-03-17  Bruno Haible  <bruno@clisp.org>
16419
16420         * tests/test-argp-2.sh (func_compare): Output a context diff.
16421
16422 2007-03-17  Bruno Haible  <bruno@clisp.org>
16423
16424         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
16425         locale's decimal-point character.
16426
16427 2007-03-17  Bruno Haible  <bruno@clisp.org>
16428
16429         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
16430         before comparing it. Needed because on some platforms (e.g. x86) a
16431         'long double' occupies less bytes than sizeof (long double).
16432
16433 2007-03-17  Bruno Haible  <bruno@clisp.org>
16434
16435         * tests/test-crc.c (main): Make printf statements 64-bit clean.
16436         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
16437         * tests/test-getaddrinfo.c (simple): Likewise.
16438         * tests/test-read-file.c (main): Likewise.
16439
16440 2007-03-17  Bruno Haible  <bruno@clisp.org>
16441
16442         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
16443
16444 2007-03-17  Bruno Haible  <bruno@clisp.org>
16445
16446         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
16447         unused variable.
16448
16449 2007-03-17  Bruno Haible  <bruno@clisp.org>
16450
16451         * tests/test-c-strcasecmp.c: Include c-strcase.h.
16452         * tests/test-c-strncasecmp.c: Likewise.
16453
16454 2007-03-17  Bruno Haible  <bruno@clisp.org>
16455
16456         * modules/stdlib (Depends-on): Add unistd.
16457         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
16458         Needed for MacOS X 10.3.
16459
16460 2007-03-17  Bruno Haible  <bruno@clisp.org>
16461
16462         * lib/unistr/u-strdup.h: Include <stdlib.h>.
16463
16464 2007-03-17  Bruno Haible  <bruno@clisp.org>
16465
16466         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
16467
16468 2007-03-17  Bruno Haible  <bruno@clisp.org>
16469
16470         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
16471         to reflect files copied from gnulib (with or without modifications).
16472         Suggested by Jim Meyering.
16473
16474 2007-03-17  Eric Blake  <ebb9@byu.net>
16475
16476         * NEWS: Document stdlib change from 2007-02-18.
16477
16478 2007-03-17  Jim Meyering  <jim@meyering.net>
16479
16480         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
16481         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
16482         someone uses a name containing shell meta-characters.
16483         Reported by Alfred M. Szmidt.
16484
16485         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
16486
16487 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16488
16489         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
16490         and copy gettext configuration files only if configure.ac contains
16491         a use of AM_GNU_GETTEXT_VERSION.
16492
16493 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16494
16495         * build-aux/bootstrap (gnulib_name): New variable.
16496         (gnulib_tool_options): Use it.
16497
16498 2007-03-13  Simon Josefsson  <simon@josefsson.org>
16499
16500         * tests/test-des.c: Use new namespace.
16501
16502 2007-03-15  Bruno Haible  <bruno@clisp.org>
16503
16504         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
16505         Reported by James Youngman <jay@gnu.org>.
16506
16507 2007-03-15  Bruno Haible  <bruno@clisp.org>
16508
16509         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
16510         declared prototype. Needed with cc on OSF/1 5.1.
16511
16512 2007-03-15  Bruno Haible  <bruno@clisp.org>
16513
16514         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
16515         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
16516         (struct gl_list_implementation): Add dispose_fn argument to the
16517         'create_empty', 'create' methods.
16518         (struct gl_list_impl_base): Add field 'dispose_fn'.
16519         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
16520         argument.
16521         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
16522         dispose_fn argument.
16523         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
16524         dispose_fn on the dropped values.
16525         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
16526         dispose_fn argument.
16527         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
16528         dropped values.
16529         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
16530         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16531         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
16532         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16533         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
16534         argument.
16535         (gl_tree_list_free): Call dispose_fn on the dropped values.
16536         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
16537         the dropped values.
16538         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
16539         Add dispose_fn argument.
16540         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
16541         Call dispose_fn on the dropped values.
16542         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
16543         Add dispose_fn argument.
16544         (gl_sublist_create): Initialize the 'dispose_fn' field.
16545         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
16546         * tests/test-array_list.c (main): Update.
16547         * tests/test-carray_list.c (main): Update.
16548         * tests/test-avltree_list.c (main): Update.
16549         * tests/test-rbtree_list.c (main): Update.
16550         * tests/test-avltreehash_list.c (main): Update.
16551         * tests/test-rbtreehash_list.c (main): Update.
16552         * tests/test-linked_list.c (main): Update.
16553         * tests/test-linkedhash_list.c (main): Update.
16554         * tests/test-array_oset.c (main): Update.
16555
16556 2007-03-15  Bruno Haible  <bruno@clisp.org>
16557
16558         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
16559         (gl_oset_create_empty): Add dispose_fn argument.
16560         (struct gl_oset_implementation): Add dispose_fn argument to
16561         'create_empty' method.
16562         (struct gl_oset_impl_base): Add dispose_fn field.
16563         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
16564         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
16565         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
16566         values.
16567         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
16568         (gl_tree_oset_free): Call dispose_fn on the dropped values.
16569         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16570         dropped value.
16571         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16572         dropped value.
16573         * tests/test-array_oset.c (main): Update.
16574         * tests/test-avltree_oset.c (main): Update.
16575         * tests/test-rbtree_oset.c (main): Update.
16576         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
16577
16578 2007-03-13  Bruno Haible  <bruno@clisp.org>
16579
16580         * tests/test-stdbool.c (i): Update after last patch.
16581
16582 2007-03-12  Bruno Haible  <bruno@clisp.org>
16583
16584         * lib/quotearg.c: Include <wctype.h> early, before the definition of
16585         the iswprint macro. Needed on Solaris 2.5.1.
16586
16587 2007-03-12  Bruno Haible  <bruno@clisp.org>
16588
16589         * tests/test-printf-frexp.c (main): Declare x as volatile.
16590
16591 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16592
16593         * doc/gnulib.texi (Build robot for gnulib): New section.
16594
16595 2007-03-12  Jim Meyering  <jim@meyering.net>
16596
16597         * build-aux/bootstrap: New file.
16598         * build-aux/bootstrap.conf: New file, from coreutils.
16599
16600 2007-03-11  Bruno Haible  <bruno@clisp.org>
16601
16602         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
16603
16604 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16605
16606         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
16607         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
16608         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
16609
16610 2007-03-11  Bruno Haible  <bruno@clisp.org>
16611
16612         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
16613         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
16614
16615 2007-03-11  Bruno Haible  <bruno@clisp.org>
16616
16617         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
16618         formula. Needed for SunPRO C 5.0.
16619
16620 2007-03-11  Bruno Haible  <bruno@clisp.org>
16621
16622         * modules/long-options (Depends-on): Add getopt.
16623
16624 2007-03-11  Bruno Haible  <bruno@clisp.org>
16625
16626         * modules/modechange (Depends-on): Add stdbool.
16627
16628 2007-03-11  Bruno Haible  <bruno@clisp.org>
16629
16630         * modules/i-ring (Depends-on): Add stdbool.
16631
16632 2007-03-11  Bruno Haible  <bruno@clisp.org>
16633
16634         * modules/gc-des (Depends-on): Add stdbool.
16635
16636 2007-03-11  Bruno Haible  <bruno@clisp.org>
16637
16638         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
16639
16640 2007-03-11  Bruno Haible  <bruno@clisp.org>
16641
16642         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
16643
16644 2007-03-11  Bruno Haible  <bruno@clisp.org>
16645
16646         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
16647
16648 2007-03-11  Bruno Haible  <bruno@clisp.org>
16649
16650         * lib/vasnprintf.c (sprintf): Undefine.
16651
16652 2007-03-11  Bruno Haible  <bruno@clisp.org>
16653
16654         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
16655         initializers in SunPRO C and Compaq C compilers.
16656
16657 2007-03-11  Bruno Haible  <bruno@clisp.org>
16658
16659         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
16660         decrementing code ANSI C compliant.
16661
16662 2007-03-11  Bruno Haible  <bruno@clisp.org>
16663
16664         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
16665         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
16666
16667 2007-03-11  Bruno Haible  <bruno@clisp.org>
16668
16669         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
16670         <stdbool.h> substitute doesn't pass.
16671
16672 2007-03-11  Bruno Haible  <bruno@clisp.org>
16673
16674         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
16675
16676 2007-03-11  Bruno Haible  <bruno@clisp.org>
16677
16678         * gnulib-tool (func_create_megatestdir): Create also an autobuild
16679         script, for submission to autobuild.josefsson.org.
16680
16681 2007-03-10  Bruno Haible  <bruno@clisp.org>
16682
16683         * modules/canonicalize-lgpl-tests: New file.
16684         * tests/test-canonicalize-lgpl.sh: New file.
16685         * tests/test-canonicalize-lgpl.c: New file.
16686
16687         * modules/c-strcase-tests: New file.
16688         * tests/test-c-strcase.sh: New file.
16689         * tests/test-c-strcasecmp.c: New file.
16690         * tests/test-c-strncasecmp.c: New file.
16691
16692         * modules/atexit-tests: New file.
16693         * tests/test-atexit.sh: New file.
16694         * tests/test-atexit.c: New file.
16695
16696 2007-03-10  Bruno Haible  <bruno@clisp.org>
16697
16698         * tests/test-binary-io.sh: Use temporary filenames that are not so
16699         likely to clash with those of other tests (in a parallel make).
16700         * tests/test-binary-io.c: Likewise.
16701
16702 2007-03-10  Bruno Haible  <bruno@clisp.org>
16703
16704         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
16705         fallback; use #error instead.
16706         Suggested by Simon Josefsson.
16707
16708 2007-03-10  Bruno Haible  <bruno@clisp.org>
16709
16710         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
16711         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
16712         first and the last.
16713
16714 2007-03-10  Bruno Haible  <bruno@clisp.org>
16715
16716         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
16717
16718 2007-03-10  Bruno Haible  <bruno@clisp.org>
16719
16720         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
16721         "make distcheck".
16722         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
16723         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
16724         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
16725
16726 2007-03-10  Bruno Haible  <bruno@clisp.org>
16727
16728         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
16729         variable.
16730         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
16731         variable.
16732
16733 2007-03-09  Eric Blake  <ebb9@byu.net>
16734         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
16735
16736         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
16737         types are not being provided by gnulib.
16738         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
16739         types are supported.
16740
16741 2007-03-10  Bruno Haible  <bruno@clisp.org>
16742
16743         * lib/stdio_.h (__attribute__): New macro.
16744         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
16745         vsprintf): Specify __attribute__ __format__ for GCC.
16746         Suggested by Eric Blake.
16747
16748 2007-03-09  Bruno Haible  <bruno@clisp.org>
16749
16750         * modules/printf-posix-tests: New file.
16751         * tests/test-printf-posix.sh: New file.
16752         * tests/test-printf-posix.c: New file.
16753
16754         * modules/printf-posix: New file.
16755         * lib/printf.c: New file.
16756         * m4/printf-posix-rpl.m4: New file.
16757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
16758         REPLACE_PRINTF.
16759         * lib/stdio_.h (printf): New declaration.
16760         (format, __format__, ____printf____, ____scanf____, ____strftime____,
16761         ____strfmon____): New macros.
16762         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
16763         REPLACE_PRINTF.
16764
16765 2007-03-09  Bruno Haible  <bruno@clisp.org>
16766
16767         * tests/test-vasnprintf-posix2.sh: New file.
16768         * tests/test-vasnprintf-posix2.c: New file.
16769         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
16770         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16771         (Makefile.am): Activate test-vasnprintf-posix2.sh.
16772
16773         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
16774         a locale dependent decimal point, rather than always '.'.
16775
16776 2007-03-09  Eric Blake  <ebb9@byu.net>
16777
16778         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
16779         spite of platforms like Tandem/NSK that define it to -1.
16780
16781 2007-03-08  Bruno Haible  <bruno@clisp.org>
16782
16783         * modules/vprintf-posix-tests: New file.
16784         * tests/test-vprintf-posix.sh: New file.
16785         * tests/test-vprintf-posix.c: New file.
16786         * tests/test-printf-posix.h: New file.
16787
16788         * modules/vprintf-posix: New file.
16789         * lib/vprintf.c: New file.
16790         * m4/vprintf-posix.m4: New file.
16791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
16792         REPLACE_VPRINTF.
16793         * lib/stdio_.h (vprintf): New declaration.
16794         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
16795         REPLACE_VPRINTF.
16796
16797 2007-03-08  Bruno Haible  <bruno@clisp.org>
16798
16799         * modules/fprintf-posix-tests: New file.
16800         * tests/test-fprintf-posix.sh: New file.
16801         * tests/test-fprintf-posix.c: New file.
16802
16803         * modules/fprintf-posix: New file.
16804         * lib/fprintf.c: New file.
16805         * m4/fprintf-posix.m4: New file.
16806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
16807         REPLACE_FPRINTF.
16808         * lib/stdio_.h (fprintf): New declaration.
16809         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
16810         REPLACE_FPRINTF.
16811
16812 2007-03-08  Bruno Haible  <bruno@clisp.org>
16813
16814         * modules/vfprintf-posix-tests: New file.
16815         * tests/test-vfprintf-posix.sh: New file.
16816         * tests/test-vfprintf-posix.c: New file.
16817         * tests/test-fprintf-posix.h: New file.
16818         * tests/test-fprintf-posix.out: New file.
16819
16820         * modules/vfprintf-posix: New file.
16821         * lib/vfprintf.c: New file.
16822         * m4/vfprintf-posix.m4: New file.
16823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
16824         REPLACE_VFPRINTF.
16825         * lib/stdio_.h (vfprintf): New declaration.
16826         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
16827         REPLACE_VFPRINTF.
16828
16829 2007-03-08  Bruno Haible  <bruno@clisp.org>
16830
16831         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
16832
16833 2007-03-08  Bruno Haible  <bruno@clisp.org>
16834
16835         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
16836         instead of 'expr' invocations.
16837         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16838         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16839         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16840         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16841         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16842         Suggested by Paul Eggert.
16843
16844 2007-03-08  Bruno Haible  <bruno@clisp.org>
16845
16846         * modules/fseterr-tests: New file.
16847         * tests/test-fseterr.c: New file.
16848
16849         * modules/fseterr: New file.
16850         * lib/fseterr.h: New file.
16851         * lib/fseterr.c: New file.
16852
16853 2007-03-08  Bruno Haible  <bruno@clisp.org>
16854
16855         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
16856         * lib/getopt_.h: Likewise.
16857         * lib/mbswidth.h: Likewise.
16858         * lib/setenv.h: Likewise.
16859         * lib/vasnprintf.h: Likewise.
16860         * lib/vasprintf.h: Likewise.
16861         * lib/verror.h: Likewise.
16862         * lib/xsetenv.h: Likewise.
16863         * lib/xvasprintf.h: Likewise.
16864
16865 2007-03-08  Jim Meyering  <jim@meyering.net>
16866
16867         * users.txt: Add parted.
16868
16869         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
16870
16871 2007-03-07  Bruno Haible  <bruno@clisp.org>
16872
16873         * m4/printf.m4: Make the shell script snippets copy&pastable.
16874
16875 2007-03-02  Bruno Haible  <bruno@clisp.org>
16876
16877         * lib/netinet_in_.h: New file.
16878         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
16879         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
16880         * modules/netinet_in (Files): Add lib/netinet_in_.h.
16881         (Depends-on): Add absolute-header.
16882         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
16883         into netinet/in.h.
16884
16885 2007-03-03  Bruno Haible  <bruno@clisp.org>
16886
16887         * lib/sys_select_.h: New file.
16888         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
16889         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
16890         * modules/sys_select (Files): Add lib/sys_select_.h.
16891         (Depends-on): Add absolute-header.
16892         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
16893         into sys/select.h.
16894
16895 2007-03-02  Bruno Haible  <bruno@clisp.org>
16896
16897         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
16898         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
16899         values.
16900         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
16901         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
16902         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
16903         * modules/sys_socket (Depends-on): Add absolute-header.
16904         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
16905         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
16906         (Include): Remove requirement of inclusion of <sys/types.h>.
16907
16908 2007-03-02  Bruno Haible  <bruno@clisp.org>
16909
16910         * lib/byteswap_.h (bswap_32): Fix formula.
16911
16912 2007-03-06  Bruno Haible  <bruno@clisp.org>
16913
16914         * modules/sprintf-posix-tests: New file.
16915         * tests/test-sprintf-posix.c: New file.
16916
16917         * modules/sprintf-posix: New file.
16918         * lib/sprintf.c: New file.
16919         * m4/sprintf-posix.m4: New file.
16920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
16921         REPLACE_SPRINTF.
16922         * lib/stdio_.h (sprintf): New declaration.
16923         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
16924         REPLACE_SPRINTF.
16925
16926 2007-03-06  Bruno Haible  <bruno@clisp.org>
16927
16928         * modules/vsprintf-posix-tests: New file.
16929         * tests/test-vsprintf-posix.c: New file.
16930         * tests/test-sprintf-posix.h: New file.
16931
16932         * modules/vsprintf-posix: New file.
16933         * lib/vsprintf.c: New file.
16934         * m4/vsprintf-posix.m4: New file.
16935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
16936         REPLACE_VSPRINTF.
16937         * lib/stdio_.h (vsprintf): New declaration.
16938         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
16939         REPLACE_VSPRINTF.
16940
16941 2007-03-06  Bruno Haible  <bruno@clisp.org>
16942
16943         * modules/vsnprintf (Depend-on): Remove minmax.
16944
16945 2007-03-06  Bruno Haible  <bruno@clisp.org>
16946
16947         * modules/snprintf-posix-tests: New file.
16948         * tests/test-snprintf-posix.c: New file.
16949
16950         * modules/snprintf-posix: New file.
16951         * m4/snprintf-posix.m4: New file.
16952         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
16953         gl_FUNC_SNPRINTF.
16954         (gl_FUNC_SNPRINTF): Invoke it.
16955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
16956         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
16957         is set.
16958         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
16959
16960 2007-03-06  Bruno Haible  <bruno@clisp.org>
16961
16962         * modules/vsnprintf-posix-tests: New file.
16963         * tests/test-vsnprintf-posix.c: New file.
16964         * tests/test-snprintf-posix.h: New file.
16965
16966         * modules/vsnprintf-posix: New file.
16967         * m4/vsnprintf-posix.m4: New file.
16968         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
16969         gl_FUNC_VSNPRINTF.
16970         (gl_FUNC_VSNPRINTF): Invoke it.
16971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
16972         * lib/stdio_.h (vsnprintf): Define as a replacement if
16973         REPLACE_VSNPRINTF is set.
16974         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
16975
16976 2007-03-06  Bruno Haible  <bruno@clisp.org>
16977
16978         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
16979         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
16980
16981 2007-03-06  Bruno Haible  <bruno@clisp.org>
16982
16983         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
16984         (asinl): Declare also if HAVE_DECL_ASINL is set.
16985         (atanl): Declare also if HAVE_DECL_ATANL is set.
16986         (ceill): Declare also if HAVE_DECL_CEILL is set.
16987         (cosl): Declare also if HAVE_DECL_COSL is set.
16988         (expl): Declare also if HAVE_DECL_EXPL is set.
16989         (floorl): Declare also if HAVE_DECL_FLOORL is set.
16990         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
16991         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
16992         (logl): Declare also if HAVE_DECL_LOGL is set.
16993         (sinl): Declare also if HAVE_DECL_SINL is set.
16994         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
16995         (tanl): Declare also if HAVE_DECL_TANL is set.
16996         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
16997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
16998         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
16999         declaration of frexpl, ldexpl.
17000         * modules/printf-frexpl (Depends-on): Add math.
17001         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
17002
17003 2007-03-05  Bruno Haible  <bruno@clisp.org>
17004
17005         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
17006         frexpl and ldexpl are declared.
17007         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
17008
17009 2007-03-05  Bruno Haible  <bruno@clisp.org>
17010
17011         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
17012         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
17013
17014 2007-03-05  Bruno Haible  <bruno@clisp.org>
17015
17016         * lib/stdio_.h: Include <stddef.h>.
17017
17018 2007-03-05  Bruno Haible  <bruno@clisp.org>
17019
17020         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
17021
17022 2007-03-05  Bruno Haible  <bruno@clisp.org>
17023
17024         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
17025         NetBSD 4, from Ralf Wildenhues.
17026
17027 2007-03-04  Bruno Haible  <bruno@clisp.org>
17028
17029         * lib/vasprintf.h: Update #if logic for the case when the functions
17030         exist but are overridden.
17031
17032 2007-03-04  Bruno Haible  <bruno@clisp.org>
17033
17034         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
17035         implementations: glibc-2.4 and MacOS X 10.3.
17036         * tests/test-vasnprintf-posix.c (test_function): Test also the case
17037         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
17038         * tests/test-vasprintf-posix.c (test_function): Likewise.
17039
17040 2007-03-04  Bruno Haible  <bruno@clisp.org>
17041
17042         * modules/vasprintf-posix-tests: New file.
17043         * tests/test-vasprintf-posix.c: New file.
17044
17045         * modules/vasprintf-posix: New file.
17046         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
17047         defined.
17048         * m4/vasprintf-posix.m4: New file.
17049         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
17050         gl_FUNC_VASPRINTF.
17051         (gl_FUNC_VASPRINTF): Invoke it.
17052         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
17053         here.
17054         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
17055
17056 2007-03-04  Bruno Haible  <bruno@clisp.org>
17057
17058         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
17059         REPLACE_GETTIMEOFDAY.
17060         * modules/sys_time (Makefile.am): Likewise.
17061         * m4/sys_time_h.m4: Likewise.
17062         * m4/gettimeofday.m4: Likewise.
17063
17064 2007-03-04  Bruno Haible  <bruno@clisp.org>
17065
17066         * modules/vasnprintf-posix-tests: New file.
17067         * tests/test-vasnprintf-posix.c: New file.
17068
17069         * modules/vasnprintf-posix: New file.
17070         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
17071         printf-frexpl.h.
17072         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
17073         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
17074         REPLACE_VASNPRINTF is defined.
17075         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
17076         gl_FUNC_VASNPRINTF.
17077         (gl_FUNC_VASNPRINTF): Invoke it.
17078         * m4/vasnprintf-posix.m4: New file.
17079         * m4/printf.m4: New file.
17080
17081 2007-03-04  Bruno Haible  <bruno@clisp.org>
17082
17083         Compile progreloc.c only if --enable-relocatable is specified.
17084         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
17085         if --enable-relocatable was specified.
17086         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
17087         lib_SOURCES.
17088
17089 2007-03-04  Jim Meyering  <jim@meyering.net>
17090
17091         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
17092         Use it consistently, rather than enumerating errno constants.
17093
17094 2007-03-04  Bruno Haible  <bruno@clisp.org>
17095
17096         * modules/xvasprintf-tests: New file.
17097         * tests/test-xvasprintf.c: New file.
17098
17099         * modules/vasprintf-tests: New file.
17100         * tests/test-vasprintf.c: New file.
17101
17102         * modules/vasnprintf-tests: New file.
17103         * tests/test-vasnprintf.c: New file.
17104
17105         * modules/vsnprintf-tests: New file.
17106         * tests/test-vsnprintf.c: New file.
17107
17108         * modules/snprintf-tests: New file.
17109         * tests/test-snprintf.c: New file.
17110
17111 2007-03-04  Bruno Haible  <bruno@clisp.org>
17112
17113         Compile relocatable.c only if --enable-relocatable is specified.
17114         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
17115         gl_RELOCATABLE_LIBRARY.
17116         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
17117         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
17118         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
17119         gl_RELOCATABLE_LIBRARY.
17120         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
17121         (Makefile.am): Remove lib_SOURCES.
17122         * modules/relocatable-lib-lgpl (configure.ac): Invoke
17123         gl_RELOCATABLE_LIBRARY.
17124         (Makefile.am): Remove lib_SOURCES.
17125         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
17126         always.
17127         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17128         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
17129
17130 2007-03-04  Bruno Haible  <bruno@clisp.org>
17131
17132         * modules/argmatch-tests: New file.
17133         * tests/test-argmatch.c: New file.
17134
17135         * tests/test-allocsa.c (main): Halve the number of loop runs.
17136
17137         * modules/alloca-opt-tests: New file.
17138         * tests/test-alloca-opt.c: New file.
17139
17140 2007-03-04  Jim Meyering  <jim@meyering.net>
17141
17142         Work around difference between Linux ACLs and Solaris 10 ZFS.
17143         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
17144         for EINVAL.
17145
17146 2007-03-03  Bruno Haible  <bruno@clisp.org>
17147
17148         * modules/relocatable-prog (Depends-on): Add back progreloc's
17149         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
17150
17151 2007-03-03  Bruno Haible  <bruno@clisp.org>
17152
17153         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
17154         * modules/relocatable-lib: New file.
17155
17156 2007-03-03  Bruno Haible  <bruno@clisp.org>
17157
17158         * modules/relocatable-prog: Renamed from modules/relocatable.
17159         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
17160
17161 2007-03-03  Bruno Haible  <bruno@clisp.org>
17162
17163         * modules/relocatable-script (Files): Add doc/relocatable.texi,
17164         m4/relocatable-lib.m4.
17165         (Depends-on): Remove 'relocatable'.
17166         (configure.ac): Add gl_RELOCATABLE_NOP.
17167
17168 2007-03-03  Bruno Haible  <bruno@clisp.org>
17169
17170         * modules/relocatable-prog-wrapper: New file.
17171         * modules/relocatable (Depends-on): Add it. Remove all other
17172         dependencies except progname.
17173         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
17174
17175         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
17176         (gl_FUNC_STRERROR): Nop.
17177         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
17178
17179         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
17180         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
17181
17182         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
17183         (gl_FUNC_READLINK): Update.
17184
17185         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
17186
17187 2007-03-03  Bruno Haible  <bruno@clisp.org>
17188
17189         * lib/xreadlink.c: Include <unistd.h> unconditionally.
17190         * modules/xreadlink (Depends-on): Add unistd.
17191         * modules/xreadlink-with-size (Depends-on): Likewise.
17192
17193 2007-03-03  Bruno Haible  <bruno@clisp.org>
17194
17195         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
17196         extracted from gt_FUNC_SETENV.
17197         (gt_FUNC_SETENV): Remove macro.
17198         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
17199         remove gt_FUNC_SETENV.
17200
17201 2007-03-03  Bruno Haible  <bruno@clisp.org>
17202
17203         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
17204         ENABLE_RELOCATABLE here.
17205         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
17206
17207 2007-03-03  Bruno Haible  <bruno@clisp.org>
17208
17209         * modules/rbtreehash-list-tests (Depends-on): Add progname.
17210         * tests/test-rbtreehash_list.c: Include progname.h.
17211         (main): Call set_program_name.
17212
17213         * modules/rbtree-oset-tests (Depends-on): Add progname.
17214         * tests/test-rbtree_oset.c: Include progname.h.
17215         (main): Call set_program_name.
17216
17217         * modules/rbtree-list-tests (Depends-on): Add progname.
17218         * tests/test-rbtree_list.c: Include progname.h.
17219         (main): Call set_program_name.
17220
17221         * modules/linked-list-tests (Depends-on): Add progname.
17222         * tests/test-linked_list.c: Include progname.h.
17223         (main): Call set_program_name.
17224
17225 2007-03-03  Bruno Haible  <bruno@clisp.org>
17226
17227         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
17228         All uses of __restrict changed to _Restrict_.
17229         * lib/glob_.h (__restrict): Remove macro.
17230
17231 2007-03-02  Bruno Haible  <bruno@clisp.org>
17232
17233         * modules/gettext (configure.ac): Require gettext infrastructure
17234         from version 0.16.1.
17235
17236 2007-03-02  Bruno Haible  <bruno@clisp.org>
17237
17238         * modules/linkedhash-list-tests (Depends-on): Add progname.
17239         * tests/test-linkedhash_list.c: Include progname.h.
17240         (main): Call set_program_name.
17241
17242         * modules/carray-list-tests (Depends-on): Add progname.
17243         * tests/test-carray_list.c: Include progname.h.
17244         (main): Call set_program_name.
17245
17246         * modules/avltreehash-list-tests (Depends-on): Add progname.
17247         * tests/test-avltreehash_list.c: Include progname.h.
17248         (main): Call set_program_name.
17249
17250         * modules/avltree-oset-tests (Depends-on): Add progname.
17251         * tests/test-avltree_oset.c: Include progname.h.
17252         (main): Call set_program_name.
17253
17254         * modules/avltree-list-tests (Depends-on): Add progname.
17255         * tests/test-avltree_list.c: Include progname.h.
17256         (main): Call set_program_name.
17257
17258         * modules/array-oset-tests (Depends-on): Add progname.
17259         * tests/test-array_oset.c: Include progname.h.
17260         (main): Call set_program_name.
17261
17262         * modules/array-list-tests (Depends-on): Add progname.
17263         * tests/test-array_list.c: Include progname.h.
17264         (main): Call set_program_name.
17265
17266         * modules/argp-tests (Depends-on): Add progname.
17267         * tests/test-argp.c: Include argp.h first. Include progname.h.
17268         (main): Call set_program_name.
17269
17270 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
17271
17272         * doc/gnulib-tool.texi (Initial import): Reword description of
17273         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
17274         limited effect even if defined after the first system include.
17275
17276 2007-03-01  Bruno Haible  <bruno@clisp.org>
17277
17278         * build-aux/config.libpath: Update to libtool-1.5.22.
17279         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17280
17281 2007-03-01  Bruno Haible  <bruno@clisp.org>
17282
17283         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
17284         foo_CFLAGS.
17285         Reported by Ralf Wildenhues.
17286
17287 2007-03-01  Bruno Haible  <bruno@clisp.org>
17288
17289         * build-aux/install-reloc: Remove object files left over by some
17290         compilers.
17291         Reported by Ralf Wildenhues.
17292
17293 2007-03-01  Bruno Haible  <bruno@clisp.org>
17294
17295         * build-aux/install-reloc: Break long lines.
17296
17297 2007-03-01  Bruno Haible  <bruno@clisp.org>
17298
17299         * doc/relocatable.texi: Document that it may not work on OpenBSD.
17300         Reported by Ralf Wildenhues.
17301
17302 2007-03-01  Bruno Haible  <bruno@clisp.org>
17303
17304         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
17305         include ordering constraints.
17306
17307 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
17308
17309         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
17310         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
17311         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
17312         as another example.
17313         * lib/time_.h: Fix misspelling.
17314         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17315         Require gl_HEADER_TIME_H_DEFAULTS.
17316         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
17317         * m4/time_r.m4 (gl_TIME_R): Likewise.
17318         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
17319
17320 2007-03-01  Bruno Haible  <bruno@clisp.org>
17321
17322         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
17323         * m4/utimens.m4 (gl_UTIMENS): Likewise.
17324
17325 2007-03-01  Jim Meyering  <jim@meyering.net>
17326
17327         * modules/xreadlink (Maintainer): Add my name.
17328         * modules/xreadlink-with-size (Depends-on): Alphabetize.
17329
17330 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
17331             Bruno Haible  <bruno@clisp.org>
17332
17333         * build-aux/install-reloc: Compile also c-ctype.c.
17334         * build-aux/relocatable.sh.in: New file.
17335         * doc/relocatable.texi: New file.
17336         * doc/relocatable-maint.texi: New file.
17337         * doc/gnulib.texi: Include relocatable-maint.texi.
17338         * lib/progreloc.c: Include unistd.h unconditionally.
17339         * lib/relocwrapper.c: Include unistd.h unconditionally.
17340         Include c-ctype.h.
17341         (add_dotbin): Use c_tolower.
17342         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
17343         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
17344         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
17345         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
17346         to m4/relocatable-lib.m4.
17347         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
17348         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
17349         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
17350         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
17351         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
17352         * modules/relocatable: New file.
17353         * modules/relocatable-lib: New file.
17354         * modules/relocatable-script: New file.
17355
17356 2007-02-28  Bruno Haible  <bruno@clisp.org>
17357
17358         Import --enable-relocatable infrastructure.
17359         * build-aux/config.libpath: New file, from GNU gettext.
17360         * build-aux/install-reloc: New file, from GNU gettext.
17361         * build-aux/reloc-ldflags: New file, from GNU gettext.
17362         * lib/relocatable.h: New file, from GNU gettext.
17363         * lib/relocatable.c: New file, from GNU gettext.
17364         * lib/relocwrapper.c: New file, from GNU gettext.
17365         * m4/relocatable.m4: New file, from GNU gettext.
17366
17367 2007-02-28  Bruno Haible  <bruno@clisp.org>
17368
17369         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
17370
17371         * modules/xreadlink: New file, from GNU gettext with modifications.
17372         * lib/xreadlink.c: New file, from GNU gettext.
17373         * lib/xreadlink.h: Add comments.
17374         (xreadlink): New declaration.
17375
17376         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
17377         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
17378         lib/xreadlink-with-size.c.
17379         (configure.ac): Remove gl_XREADLINK invocation.
17380         (Makefile.am): Augment lib_SOURCES.
17381         * m4/xreadlink.m4: Remove file.
17382         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
17383         (xreadlink_with_size): Renamed from xreadink.
17384         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
17385         * modules/canonicalize (Depends-on): Replace xreadlink with
17386         xreadlink-with-size.
17387         * lib/canonicalize.c (canonicalize_filename_mode): Update.
17388
17389 2007-02-25  Jim Meyering  <jim@meyering.net>
17390
17391         * build-aux/announce-gen: When complaining about excess arguments,
17392         list them.
17393
17394 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17395
17396         * README: Document signed integer overflow situation more
17397         accurately.
17398
17399 2007-02-25  Bruno Haible  <bruno@clisp.org>
17400
17401         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
17402         'a' or 'A' conversion.
17403
17404 2007-02-25  Bruno Haible  <bruno@clisp.org>
17405
17406         * modules/filename: Renamed from modules/pathname.
17407         (Files): Replace lib/pathname.h with lib/filename.h. Replace
17408         lib/concatpath.c with lib/concat-filename.c.
17409         (Makefile.am): Update.
17410         (Include): Replace pathname.h with filename.h.
17411         * lib/filename.h: Renamed from lib/pathname.h.
17412         (concatenated_filename): Renamed from concatenated_pathname.
17413         * lib/concat-filename.c: Renamed from lib/concatpath.c.
17414         (concatenated_filename): Renamed from concatenated_pathname.
17415         * lib/findprog.c: Include filename.h instead of pathname.h.
17416         (find_in_path): Update.
17417         * lib/javacomp.c: Include filename.h instead of pathname.h.
17418         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
17419         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
17420         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
17421         is_oldgcj_14_13_usable, is_javac_usable): Update.
17422         * lib/javaexec.c: Include filename.h instead of pathname.h.
17423         (execute_java_class): Update.
17424         * modules/findprog: Update.
17425         * modules/javacomp: Update.
17426         * modules/javaexec: Update.
17427         * MODULES.html.sh (File system functions): Add 'filename', remove
17428         'pathname'.
17429
17430 2007-02-25  Bruno Haible  <bruno@clisp.org>
17431
17432         * modules/printf-frexpl-tests: New file.
17433         * tests/test-printf-frexpl.c: New file.
17434
17435         * modules/printf-frexpl: New file.
17436         * lib/printf-frexpl.h: New file.
17437         * lib/printf-frexpl.c: New file.
17438         * m4/printf-frexpl.m4: New file.
17439
17440 2007-02-25  Bruno Haible  <bruno@clisp.org>
17441
17442         * modules/printf-frexp-tests: New file.
17443         * tests/test-printf-frexp.c: New file.
17444
17445         * modules/printf-frexp: New file.
17446         * lib/printf-frexp.h: New file.
17447         * lib/printf-frexp.c: New file.
17448         * m4/printf-frexp.m4: New file.
17449
17450 2007-02-25  Bruno Haible  <bruno@clisp.org>
17451
17452         Assume automake >= 1.10 for the tests.
17453         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
17454         * modules/arctwo-tests: Likewise.
17455         * modules/argp-tests: Likewise.
17456         * modules/avltree-list-tests: Likewise.
17457         * modules/avltree-oset-tests: Likewise.
17458         * modules/avltreehash-list-tests: Likewise.
17459         * modules/carray-list-tests: Likewise.
17460         * modules/crc-tests: Likewise.
17461         * modules/des-tests: Likewise.
17462         * modules/gc-arcfour-tests: Likewise.
17463         * modules/gc-arctwo-tests: Likewise.
17464         * modules/gc-des-tests: Likewise.
17465         * modules/gc-hmac-md5-tests: Likewise.
17466         * modules/gc-hmac-sha1-tests: Likewise.
17467         * modules/gc-md2-tests: Likewise.
17468         * modules/gc-md4-tests: Likewise.
17469         * modules/gc-md5-tests: Likewise.
17470         * modules/gc-pbkdf2-sha1-tests: Likewise.
17471         * modules/gc-rijndael-tests: Likewise.
17472         * modules/gc-sha1-tests: Likewise.
17473         * modules/gc-tests: Likewise.
17474         * modules/getaddrinfo-tests: Likewise.
17475         * modules/hmac-md5-tests: Likewise.
17476         * modules/hmac-sha1-tests: Likewise.
17477         * modules/linked-list-tests: Likewise.
17478         * modules/linkedhash-list-tests: Likewise.
17479         * modules/lock-tests: Likewise.
17480         * modules/md2-tests: Likewise.
17481         * modules/md4-tests: Likewise.
17482         * modules/md5-tests: Likewise.
17483         * modules/rbtree-list-tests: Likewise.
17484         * modules/rbtree-oset-tests: Likewise.
17485         * modules/rbtreehash-list-tests: Likewise.
17486         * modules/read-file-tests: Likewise.
17487         * modules/rijndael-tests: Likewise.
17488         * modules/stdint-tests: Likewise.
17489         * modules/tls-tests: Likewise.
17490
17491 2007-02-24  Bruno Haible  <bruno@clisp.org>
17492
17493         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
17494         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
17495         function; instead check whether isnan with a double argument links.
17496         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
17497         function; instead check whether isnan with a 'long double' argument
17498         links.
17499         Reported by Eric Blake <ebb9@byu.net>.
17500
17501 2007-02-24  Bruno Haible  <bruno@clisp.org>
17502
17503         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
17504         defined.
17505         * lib/isnanl.c: Remove all code. Just include isnan.c.
17506         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
17507
17508 2007-02-25  Jim Meyering  <jim@meyering.net>
17509
17510         Avoid conflicting types for 'unsetenv' on FreeBSD.
17511         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
17512         conflicting with FreeBSD's (5.0 and 6.1) function declaration
17513         in stdlib.h.
17514
17515 2007-02-24  Bruno Haible  <bruno@clisp.org>
17516
17517         * modules/isnanl-nolibm-tests: New file.
17518         * tests/test-isnanl.c: New file.
17519
17520         * modules/isnanl-nolibm: New file.
17521         * lib/isnanl.h: New file.
17522         * lib/isnanl.c: New file.
17523         * m4/isnanl.m4: New file.
17524
17525 2007-02-24  Bruno Haible  <bruno@clisp.org>
17526
17527         * modules/isnan-nolibm-tests: New file.
17528         * tests/test-isnan.c: New file.
17529
17530         * modules/isnan-nolibm: New file.
17531         * lib/isnan.h: New file.
17532         * lib/isnan.c: New file.
17533         * m4/isnan.m4: New file.
17534
17535 2007-02-24  Bruno Haible  <bruno@clisp.org>
17536
17537         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
17538         assume that an exponent fits in 20 bits.
17539
17540 2007-02-24  Jim Meyering  <jim@meyering.net>
17541
17542         * m4/regex.m4: Update the description of the configure-time option,
17543         --without-included-regex, to state accurately what the defaults are,
17544         and perhaps to give people an idea why using this option is risky.
17545
17546 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17547
17548         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
17549         loops on small arguments.  This attempts to avoid the problem
17550         Bruno Haible reported for AIX 4.3.2 in
17551         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
17552
17553 2007-02-23  Bruno Haible  <bruno@clisp.org>
17554
17555         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
17556         Needed for help2man.
17557
17558 2007-02-23  Karl Berry  <karl@gnu.org>
17559
17560         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
17561         exists, foo.h should be cvs-ignored, not committed.
17562
17563 2007-02-23  Eric Blake  <ebb9@byu.net>
17564
17565         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
17566         * lib/stat-time.h (includes): Likewise.
17567         * lib/utimecmp.c (includes): Likewise.
17568         * lib/utimens.h (includes): Likewise.
17569         * lib/getdate.y (includes): Also include "timespec.h" for use
17570         internal to the module.
17571         * modules/utimens (Depends-on): Revert yesterday's patch.
17572         * modules/nanosleep (Depends-on): Add missing dependency.
17573
17574 2007-02-22  Bruno Haible  <bruno@clisp.org>
17575
17576         * lib/glob.c: Don't include getlogin_r.h.
17577
17578 2007-02-22  Jim Meyering  <jim@meyering.net>
17579
17580         * modules/utimens (Depends-on): Add timespec, required for
17581         utimens.h's inclusion of timespec.h.
17582
17583 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
17584
17585         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
17586         long unreadable paths in GNU/Linux.  Problem reported by Andreas
17587         Schwab in
17588         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
17589         I'll try to think of a better way to fix the Solaris problem.
17590
17591         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
17592         like glibc; on Solaris 10, it fails with errno == EINVAL.
17593         POSIX says the behavior is unspecified if the first argument is NULL,
17594         so play it safe and never pass NULL to the system getcwd.
17595
17596 2007-02-21  Jim Meyering  <jim@meyering.net>
17597
17598         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
17599         of gettimeofday.  It would conflict with the one now always
17600         provided via sys_time_.h.  Reported by Matthew Woehlke, as
17601         an IRIX 6.5 build failure.
17602
17603 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17604
17605         Minor fixups to port to Solaris 10 with Sun C 5.8.
17606         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
17607         * modules/getcwd (Depends-on): Add dirfd.
17608         * lib/putenv.c (putenv): #undef it.
17609         (rpl_putenv): New decl.
17610         (malloc, free): Include <stdlib.h> rather than prototyping separately.
17611
17612 2007-02-20  Bruno Haible  <bruno@clisp.org>
17613
17614         * modules/stdio-tests: New file.
17615         * tests/test-stdio.c: New file.
17616
17617         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
17618         (Depends-on): Add stdio.
17619         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17620         (Include): Use <stdio.h> instead of vsnprintf.h.
17621         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17622         HAVE_DECL_VSNPRINTF.
17623         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
17624
17625         * modules/snprintf (Files): Remove lib/snprintf.h.
17626         (Depends-on): Add stdio.
17627         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17628         (Include): Use <stdio.h> instead of snprintf.h.
17629         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17630         HAVE_DECL_SNPRINTF.
17631         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
17632         * lib/getaddrinfo.c: Likewise.
17633
17634         * modules/stdio: New file.
17635         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
17636         * lib/snprintf.h: Remove file.
17637         * lib/vsnprintf.h: Remove file.
17638         * lib/.cppi-disable: Remove snprintf.h.
17639         * m4/stdio_h.m4: New file.
17640         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
17641
17642 2007-02-20  Jim Meyering  <jim@meyering.net>
17643
17644         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
17645         used by e.g., mingw.  From Bruno Haible.
17646
17647 2007-02-19  Bruno Haible  <bruno@clisp.org>
17648
17649         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
17650         warnings.
17651         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17652
17653 2007-02-19  Bruno Haible  <bruno@clisp.org>
17654
17655         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
17656         from mingw users.
17657
17658 2007-02-19  Bruno Haible  <bruno@clisp.org>
17659
17660         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
17661         warnings.
17662         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
17663
17664 2007-02-19  Jim Meyering  <jim@meyering.net>
17665
17666         Don't use FD after a successful "fdopendir (fd)".
17667         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
17668         Reset it by calling dirfd on the just-obtained DIR*.
17669
17670         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
17671         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
17672
17673 2007-02-18  Bruno Haible  <bruno@clisp.org>
17674
17675         * lib/readlink.c: Include <unistd.h>.
17676         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
17677         HAVE_READLINK.
17678         * modules/readlink (Depends-on): Add unistd.
17679         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17680         (Include): Add <unistd.h>.
17681
17682         * lib/getlogin_r.h: Remove file.
17683         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
17684         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
17685         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
17686         HAVE_DECL_GETLOGIN_R.
17687         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
17688         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17689         (Include): Use <unistd.h> instead of getlogin_r.h.
17690
17691         * lib/getcwd.h: Remove file.
17692         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
17693         * lib/xgetcwd.c: Likewise.
17694         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
17695         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
17696         * modules/getcwd (Files): Remove lib/getcwd.h.
17697         (Depends-on): Add unistd.
17698         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17699         (Include): Use <unistd.h> instad of getcwd.h.
17700
17701         * lib/ftruncate.c: Include <unistd.h> first.
17702         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
17703         Set HAVE_FTRUNCATE.
17704         * modules/ftruncate (Depends-on): Add unistd.
17705         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17706
17707         * lib/fchdir.c: Include <unistd.h> first.
17708         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
17709         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
17710         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
17711         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17712         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
17713
17714         * lib/dup2.c: Include <unistd.h> first.
17715         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
17716         HAVE_DUP2.
17717         * modules/dup2 (Depends-on): Add unistd.
17718         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17719
17720         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
17721         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
17722         REPLACE_CHOWN. Don't define chown as a macro here.
17723         * modules/chown (Depends-on): Add unistd.
17724         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17725
17726         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
17727         Add definition for GL_LINK_WARNING.
17728         (chown, dup2): New declarations.
17729         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
17730         link warning.
17731         (ftruncate): New declaration.
17732         (getcwd): New declaration, taken from old getcwd.h.
17733         (getlogin_r): New declaration, taken from old getlogin_r.h.
17734         (readlink): New declaration.
17735         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
17736         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
17737         (gl_PREREQ_UNISTD): Remove macro.
17738         (gl_UNISTD_MODULE_INDICATOR): New macro.
17739         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
17740         many new variables. Don't set UNISTD_H.
17741         * modules/unistd (Description): Change.
17742         (Depends-on): Add link-warning.
17743         (configure.ac): Update.
17744         (Makefile.am): Create unistd.h always. Substitute many new variables
17745         into it.
17746
17747 2007-02-18  Bruno Haible  <bruno@clisp.org>
17748
17749         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
17750         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
17751         HAVE_GETSUBOPT.
17752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
17753         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
17754         * lib/getsubopt.h: Remove file.
17755         * modules/getsubopt (Files): Remove lib/getsubopt.h.
17756         (Depends-on): Add stdlib.
17757         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17758         (Includes): Use <stdlib.h> instead of getsubopt.h.
17759         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
17760         Set HAVE_GETSUBOPT.
17761         * lib/getsubopt.c: Don't include getsubopt.h.
17762
17763 2007-02-18  Bruno Haible  <bruno@clisp.org>
17764
17765         * modules/fchdir (Depends-on): Add dup2.
17766
17767 2007-02-18  Bruno Haible  <bruno@clisp.org>
17768
17769         * lib/stdlib_.h: Handle glibc's special invocation convention
17770         specially.
17771
17772 2007-02-18  Bruno Haible  <bruno@clisp.org>
17773
17774         * modules/stdlib-tests: New file.
17775         * tests/test-stdlib.c: New file.
17776
17777         * modules/mkstemp (Files): Remove lib/mkstemp.h.
17778         (Depends-on): Add stdlib.
17779         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17780         (Includes): Use <stdlib.h> instead of mkstemp.h.
17781         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17782         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
17783         * lib/mkstemp.c: Don't include mkstemp.h.
17784         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
17785         * lib/stdlib--.h: Don't include mkstemp.h.
17786
17787         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
17788         (Depends-on): Add stdlib.
17789         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17790         (Includes): Use <stdlib.h> instead of mkdtemp.h.
17791         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17792         HAVE_MKDTEMP.
17793         * lib/mkdtemp.c: Don't include mkdtemp.h.
17794         * lib/clean-temp.c: Don't include mkdtemp.h.
17795
17796         * modules/exit (Files): Remove lib/exit.h.
17797         (Depends-on): Add stdlib.
17798         (Makefile.am): Remove lib_SOURCES.
17799         (Include): Use <stdlib.h> instead of exit.h.
17800         * lib/argmatch.c: Don't include exit.h.
17801         * lib/execute.c: Likewise.
17802         * lib/pagealign_alloc.c: Likewise.
17803         * lib/pipe.c: Likewise.
17804         * lib/wait-process.c: Likewise.
17805         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
17806         * lib/exitfail.c: Likewise.
17807         * lib/savewd.c: Likewise.
17808         * lib/xsetenv.c: Likewise.
17809
17810         * modules/stdlib: New file.
17811         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
17812         and extra comments about mkstemp().
17813         * lib/exit.h: Remove file.
17814         * lib/mkdtemp.h: Remove file.
17815         * lib/mkstemp.h: Remove file.
17816         * m4/stdlib_h.m4: New file.
17817         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
17818
17819 2007-02-18  Bruno Haible  <bruno@clisp.org>
17820
17821         * modules/math-tests: New file.
17822         * tests/test-math.c: New file.
17823
17824         * modules/math: New file.
17825         * modules/mathl (Files): Remove lib/mathl.h.
17826         (Depends-on): Add math.
17827         (Makefile.am): Don't mention mathl.h.
17828         (Include): Use <math.h> instead of mathl.h.
17829         * lib/math_.h: New file.
17830         * lib/mathl.h: Remove file.
17831         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
17832         mathl.h.
17833         * lib/asinl.c: Likewise.
17834         * lib/atanl.c: Likewise.
17835         * lib/ceill.c: Likewise.
17836         * lib/cosl.c: Likewise.
17837         * lib/expl.c: Likewise.
17838         * lib/floorl.c: Likewise.
17839         * lib/frexpl.c: Likewise.
17840         * lib/ldexpl.c: Likewise.
17841         * lib/logl.c: Likewise.
17842         * lib/sincosl.c: Likewise.
17843         * lib/sinl.c: Likewise.
17844         * lib/sqrtl.c: Likewise.
17845         * lib/tanl.c: Likewise.
17846         * lib/trigl.c: Likewise.
17847         * m4/math_h.m4: New file.
17848         * MODULES.html.sh (Mathematics): Add math.
17849
17850 2007-02-17  Bruno Haible  <bruno@clisp.org>
17851
17852         * modules/wctype-tests: New file.
17853         * tests/test-wctype.c: New file.
17854
17855         * modules/wchar-tests: New file.
17856         * tests/test-wchar.c: New file.
17857
17858         * modules/unistd-tests: New file.
17859         * tests/test-unistd.c: New file.
17860
17861         * modules/time-tests: New file.
17862         * tests/test-time.c: New file.
17863
17864         * modules/sysexits-tests: New file.
17865         * tests/test-sysexits.c: New file.
17866
17867         * modules/sys_time-tests: New file.
17868         * tests/test-sys_time.c: New file.
17869
17870         * modules/sys_stat-tests: New file.
17871         * tests/test-sys_stat.c: New file.
17872
17873         * modules/sys_socket-tests: New file.
17874         * tests/test-sys_socket.c: New file.
17875
17876         * modules/sys_select-tests: New file.
17877         * tests/test-sys_select.c: New file.
17878
17879         * modules/string-tests: New file.
17880         * tests/test-string.c: New file.
17881
17882         * modules/stdbool-tests: New file.
17883         * tests/test-stdbool.c: New file.
17884
17885         * modules/netinet_in-tests: New file.
17886         * tests/test-netinet_in.c: New file.
17887
17888         * modules/inttypes-tests: New file.
17889         * tests/test-inttypes.c: New file.
17890
17891         * modules/fcntl-tests: New file.
17892         * tests/test-fcntl.c: New file.
17893
17894         * modules/byteswap-tests: New file.
17895         * tests/test-byteswap.c: New file.
17896
17897         * modules/arpa_inet-tests: New file.
17898         * tests/test-arpa_inet.c: New file.
17899
17900 2007-02-17  Bruno Haible  <bruno@clisp.org>
17901
17902         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
17903         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
17904         if the corresponding module is not enabled. Emit link warnings if
17905         the function is used nevertheless.
17906         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
17907         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
17908         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
17909         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
17910         * modules/inttypes (Depends-on): Add link-warning.
17911         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17912         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
17913         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
17914         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
17915         * modules/imaxdiv (configure.ac): Likewise.
17916         * modules/strtoimax (configure.ac): Likewise.
17917         * modules/strtoumax (configure.ac): Likewise.
17918
17919 2007-02-17  Bruno Haible  <bruno@clisp.org>
17920
17921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
17922         gl_STRING_MODULE_INDICATOR_DEFAULTS.
17923         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
17924         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
17925
17926 2007-02-17  Bruno Haible  <bruno@clisp.org>
17927
17928         * modules/link-warning: New file.
17929         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
17930         * lib/string_.h (GL_LINK_WARNING): Remove definition.
17931         * modules/string (Depends-on): Add link-warning.
17932         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17933         string.h.
17934         * MODULES.html.sh (Support for building libraries and executables): Add
17935         link-warning.
17936
17937 2007-02-17  Bruno Haible  <bruno@clisp.org>
17938
17939         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
17940         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
17941         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
17942         long lines.
17943
17944 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
17945             Bruno Haible  <bruno@clisp.org>
17946
17947         * modules/tmpfile: New file.
17948         * lib/tmpfile.c: New file.
17949         * m4/tmpfile.m4: New file.
17950         * MODULES.html.sh (func_all_modules): New section "Input/output".
17951
17952 2007-02-15  Bruno Haible  <bruno@clisp.org>
17953
17954         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
17955         (supports_delete_on_close): New function.
17956         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
17957
17958 2007-02-14  Bruno Haible  <bruno@clisp.org>
17959
17960         * modules/mbspcasecmp-tests: New file.
17961         * tests/test-mbspcasecmp.sh: New file.
17962         * tests/test-mbspcasecmp.c: New file.
17963
17964         New module mbspcasecmp.
17965         * modules/mbspcasecmp: New file.
17966         * lib/mbspcasecmp.c: New file.
17967         * lib/string_.h (strncasecmp): Change warning message.
17968         (mbspcasecmp): New declaration.
17969         * m4/mbspcasecmp.m4: New file.
17970         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17971         GNULIB_MBSPCASECMP.
17972         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
17973         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
17974
17975 2007-02-14  Bruno Haible  <bruno@clisp.org>
17976
17977         * modules/mbsncasecmp-tests: New file.
17978         * tests/test-mbsncasecmp.sh: New file.
17979         * tests/test-mbsncasecmp.c: New file.
17980
17981         New module mbsncasecmp.
17982         * modules/mbsncasecmp: New file.
17983         * lib/mbsncasecmp.c: New file.
17984         * lib/string_.h (mbsncasecmp): New declaration.
17985         * m4/mbsncasecmp.m4: New file.
17986         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17987         GNULIB_MBSNCASECMP.
17988         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
17989         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
17990
17991 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17992
17993         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
17994         Verify that it doesn't overlap with our flags.
17995         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
17996         do not have the desired effect in multibyte locales; instead, use
17997         mbscasecmp.
17998         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
17999         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
18000         we don't require GNU fnmatch ourselves (if our users require it, they
18001         should do so explicitly).
18002
18003         Fix regex code so it doesn't rely on strcasecmp.
18004         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
18005         Otherwise, include gnulib's langinfo.h.
18006         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
18007         undesirable behavior in non-C locales.  Instead, rely on localecharset.
18008         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
18009         * modules/regex (FILES): Remove m4/codeset.m4.
18010         (Depends-on): Add localcharset.  Remove strcase.
18011
18012 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18013
18014         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
18015         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18016
18017 2007-02-13  Bruno Haible  <bruno@clisp.org>
18018
18019         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
18020         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18021
18022 2007-02-12  Bruno Haible  <bruno@clisp.org>
18023
18024         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18025         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
18026         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
18027         time warning rather than a link error.
18028
18029 2007-02-12  Bruno Haible  <bruno@clisp.org>
18030
18031         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
18032         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18033         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18034
18035 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18036
18037         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
18038         args, not 2.
18039
18040 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18041
18042         New module 'time', so that apps can include <time.h> as per
18043         POSIX and GNU instead of separate include files like time_r.h
18044         and timegm.h.  This implementation tries out a simpler approach
18045         for replacing decls in standard include files (as compared to
18046         the string module), somewhat as an experiment.
18047
18048         * config/srclist.txt: Comment out mktime.c for now.
18049         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
18050         since it doesn't apply any more.  Use generic wording instead.
18051         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
18052         'time'.
18053         * lib/time_.h, m4/time_h.m4, modules/time: New files.
18054         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
18055         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
18056         Don't include <sys/types.h>; no longer needed since we assume C89.
18057         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
18058         * lib/strftime.c: Likewise.
18059         * lib/time_r.c: Likewise.
18060         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
18061         * lib/nanosleep.c: Include <time.h> first, to check interface.
18062         * lib/strptime.c: Likewise.
18063         * lib/time_r.c: Likewise.
18064         * lib/timegm.c: Likewise.
18065         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
18066         needed.
18067         * lib/timegm.c: Don't include timegm.h; no longer needed.
18068         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
18069         time.h now handles any problems in that area.
18070         (struct timespec, nanosleep): Remove; time.h now arranges for these.
18071         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
18072         that time.h defines struct timespec.
18073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
18074         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
18075         handles that.
18076         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
18077         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
18078         needed.  Set REPLACE_LOCALTIME.
18079         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
18080         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
18081         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
18082         nanosleep; time_h.m4 now does that.  Don't require
18083         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
18084         module handles this now.
18085         * modules/getdate (Depends-on): Remove timespec.  Add time.
18086         * modules/nanosleep (Depends-on): Likewise.
18087         * modules/stat-time (Depends-on): Likewise.
18088         * modules/nanosleep (Include): Include time.h, not timespec.h.
18089         * modules/strptime (Files): Remove lib/strptime.h.
18090         (Depends-on): Add extensions, time.
18091         (Include): Include time.h, not strptime.h.
18092         * modules/time_r (Files): Remove lib/time_r.h.
18093         (Depends-on): Add time.
18094         (Include): Include time.h, not time_r.h.
18095         * modules/timegm: Likewise.
18096         * modules/timespec (Description): Now does timespec-related decls
18097         of our own, instead of struct timespec itself.
18098         (Depends-on): Add time; remove extensions.
18099         (Maintainer): Add self.
18100         * modules/utimecmp (Depends-on): Add time; remove timespec.
18101         * modules/utimens (Depends-on): Likewise.
18102         * modules/xnanosleep (Depends-on): Likewise.
18103
18104 2007-02-11  Bruno Haible  <bruno@clisp.org>
18105
18106         * lib/c-strstr.c: Include allocsa.h.
18107         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18108         * lib/c-strcasestr.c: Include allocsa.h.
18109         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18110         * lib/strcasestr.c: Include allocsa.h.
18111         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18112         * lib/mbsstr.c: Include allocsa.h.
18113         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18114         allocsa/freesa instead of malloc/free.
18115         * lib/mbscasestr.c: Include allocsa.h.
18116         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18117         allocsa/freesa instead of malloc/free.
18118         * modules/c-strstr (Depends-on): Add allocsa.
18119         * modules/c-strcasestr (Depends-on): Likewise.
18120         * modules/strcasestr (Depends-on): Likewise.
18121         * modules/mbsstr (Depends-on): Likewise.
18122         * modules/mbscasestr (Depends-on): Likewise.
18123
18124 2007-02-11  Bruno Haible  <bruno@clisp.org>
18125
18126         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
18127
18128         * modules/mbsspn-tests: New file.
18129         * tests/test-mbsspn.sh: New file.
18130         * tests/test-mbsspn.c: New file.
18131
18132 2007-02-11  Bruno Haible  <bruno@clisp.org>
18133
18134         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
18135
18136         * modules/mbspbrk-tests: New file.
18137         * tests/test-mbspbrk.sh: New file.
18138         * tests/test-mbspbrk.c: New file.
18139
18140 2007-02-11  Bruno Haible  <bruno@clisp.org>
18141
18142         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
18143         unneeded cast.
18144
18145         * modules/mbscspn-tests: New file.
18146         * tests/test-mbscspn.sh: New file.
18147         * tests/test-mbscspn.c: New file.
18148
18149 2007-02-11  Bruno Haible  <bruno@clisp.org>
18150
18151         * modules/mbscasecmp-tests: New file.
18152         * tests/test-mbscasecmp.sh: New file.
18153         * tests/test-mbscasecmp.c: New file.
18154
18155 2007-02-11  Bruno Haible  <bruno@clisp.org>
18156
18157         Ensure O(n) worst-case complexity of mbscasestr.
18158         * lib/mbscasestr.c: Include stdbool.h.
18159         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18160         functions.
18161         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
18162         the bookkeeping indicates that it's worth it.
18163         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
18164
18165         * modules/mbscasestr-tests: New file.
18166         * tests/test-mbscasestr1.c: New file.
18167         * tests/test-mbscasestr2.sh: New file.
18168         * tests/test-mbscasestr2.c: New file.
18169         * tests/test-mbscasestr3.sh: New file.
18170         * tests/test-mbscasestr3.c: New file.
18171         * tests/test-mbscasestr4.sh: New file.
18172         * tests/test-mbscasestr4.c: New file.
18173         * m4/locale-tr.m4: New file.
18174
18175 2007-02-11  Bruno Haible  <bruno@clisp.org>
18176
18177         Ensure O(n) worst-case complexity of mbsstr.
18178         * lib/mbsstr.c: Include stdbool.h.
18179         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18180         functions.
18181         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
18182         bookkeeping indicates that it's worth it.
18183         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
18184
18185         * modules/mbsstr-tests: New file.
18186         * tests/test-mbsstr1.c: New file.
18187         * tests/test-mbsstr2.sh: New file.
18188         * tests/test-mbsstr2.c: New file.
18189         * tests/test-mbsstr3.sh: New file.
18190         * tests/test-mbsstr3.c: New file.
18191         * m4/locale-fr.m4: New file.
18192
18193 2007-02-11  Bruno Haible  <bruno@clisp.org>
18194
18195         * lib/mbsrchr.c (mbsrchr): Fix bug.
18196
18197         * modules/mbsrchr-tests: New file.
18198         * tests/test-mbsrchr.sh: New file.
18199         * tests/test-mbsrchr.c: New file.
18200
18201 2007-02-11  Bruno Haible  <bruno@clisp.org>
18202
18203         * lib/mbschr.c (mbschr): Fix bug.
18204
18205         * modules/mbschr-tests: New file.
18206         * tests/test-mbschr.sh: New file.
18207         * tests/test-mbschr.c: New file.
18208         * m4/locale-zh.m4: New file.
18209
18210 2007-02-11  Bruno Haible  <bruno@clisp.org>
18211
18212         Support for copying multibyte string iterators.
18213         * lib/mbiter.h: Include <string.h>.
18214         (mbiter_multi_copy): New function.
18215         (mbi_copy): New macro.
18216         * lib/mbuiter.h: Include <string.h>.
18217         (mbuiter_multi_copy): New function.
18218         (mbui_copy): New macro.
18219
18220 2007-02-11  Bruno Haible  <bruno@clisp.org>
18221
18222         New module mbslen.
18223         * modules/mbslen: New file.
18224         * lib/mbslen.c: New file.
18225         * lib/string_.h (mbslen): New declaration.
18226         * m4/mbslen.m4: New file.
18227         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18228         GNULIB_MBSLEN.
18229         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
18230         * MODULES.html.sh (Internationalization functions): Add mbslen.
18231
18232 2007-02-11  Bruno Haible  <bruno@clisp.org>
18233
18234         Ensure O(n) worst-case complexity of strcasestr substitute.
18235         * lib/strcasestr.c: Include stdbool.h.
18236         (knuth_morris_pratt): New function.
18237         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18238         bookkeeping indicates that it's worth it.
18239         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
18240
18241         * modules/strcasestr-tests: New file.
18242         * tests/test-strcasestr.c: New file.
18243
18244 2007-02-11  Bruno Haible  <bruno@clisp.org>
18245
18246         Ensure O(n) worst-case complexity of c_strcasestr.
18247         * lib/c-strcasestr.c: Include stdbool.h, string.h.
18248         (knuth_morris_pratt): New function.
18249         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
18250         the bookkeeping indicates that it's worth it.
18251         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
18252
18253         * modules/c-strcasestr-tests: New file.
18254         * tests/test-c-strcasestr.c: New file.
18255
18256 2007-02-11  Bruno Haible  <bruno@clisp.org>
18257
18258         Ensure O(n) worst-case complexity of c_strstr.
18259         * lib/c-strstr.c: Include stdbool.h, string.h.
18260         (knuth_morris_pratt): New function.
18261         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18262         bookkeeping indicates that it's worth it.
18263         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
18264
18265         * lib/c-strstr.c: Complete rewrite for maintainability.
18266
18267         * modules/c-strstr-tests: New file.
18268         * tests/test-c-strstr.c: New file.
18269
18270 2007-02-11  Bruno Haible  <bruno@clisp.org>
18271
18272         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
18273         5.2.1 and earlier, whereby \055 was treated just like the range
18274         delimiter '-'.
18275         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18276
18277 2007-02-08  Bruno Haible  <bruno@clisp.org>
18278
18279         * modules/regex (Depends-on): Add stdbool.
18280         Reported by Dalibor Topic <robilad@kaffe.org>.
18281
18282 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
18283
18284         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
18285         Prefer returning from main to exiting from it.
18286         Remove unnecessary parens after sizeof.
18287
18288 2007-02-05  Bruno Haible  <bruno@clisp.org>
18289
18290         New module mbssep.
18291         * modules/mbssep: New file.
18292         * lib/mbssep.c: New file.
18293         * lib/string_.h (strsep): Add a conditional link warning.
18294         (mbssep): New declaration.
18295         * m4/mbssep.m4: New file.
18296         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18297         GNULIB_MBSSEP.
18298         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
18299         * MODULES.html.sh (Internationalization functions): Add mbssep.
18300
18301 2007-02-05  Bruno Haible  <bruno@clisp.org>
18302
18303         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
18304         Optimize search in case of 1 delimiter.
18305
18306 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
18307
18308         * lib/acl.h: Include sys/types.h before sys/acl.h.
18309
18310 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
18311
18312         Merge upstream fix for glibc bugzilla #3957:
18313
18314         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
18315
18316         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
18317         bit for RE_HAT_LISTS_NOT_NEWLINE.
18318         (build_charclass_op): Remove bogus comment.
18319
18320 2007-02-05  Simon Josefsson  <simon@josefsson.org>
18321
18322         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
18323
18324 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18325
18326         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
18327         * lib/memmem.c [!defined _LIBC]: Include config.h.
18328
18329 2007-02-04  Bruno Haible  <bruno@clisp.org>
18330
18331         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
18332         warning message.
18333
18334 2007-02-04  Bruno Haible  <bruno@clisp.org>
18335
18336         New module mbstok_r.
18337         * modules/mbstok_r: New file.
18338         * lib/mbstok_r.c: New file.
18339         * lib/string_.h (strtok_r): Change argument names to match the
18340         comments. Add a conditional link warning.
18341         (mbstok_r): New declaration.
18342         * m4/mbstok_r.m4: New file.
18343         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18344         GNULIB_MBSTOK_R.
18345         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
18346         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
18347
18348 2007-02-04  Bruno Haible  <bruno@clisp.org>
18349
18350         New module mbsspn.
18351         * modules/mbsspn: New file.
18352         * lib/mbsspn.c: New file.
18353         * lib/string_.h (strspn): Add a conditional link warning.
18354         (mbsspn): New declaration.
18355         * m4/mbsspn.m4: New file.
18356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18357         GNULIB_MBSSPN.
18358         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
18359         * MODULES.html.sh (Internationalization functions): Add mbsspn.
18360
18361 2007-02-04  Bruno Haible  <bruno@clisp.org>
18362
18363         New module mbspbrk.
18364         * modules/mbspbrk: New file.
18365         * lib/mbspbrk.c: New file.
18366         * lib/string_.h (strpbrk): Add a conditional link warning.
18367         (mbspbrk): New declaration.
18368         * m4/mbspbrk.m4: New file.
18369         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18370         GNULIB_MBSPBRK.
18371         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
18372         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
18373
18374 2007-02-04  Bruno Haible  <bruno@clisp.org>
18375
18376         New module mbscspn.
18377         * modules/mbscspn: New file.
18378         * lib/mbscspn.c: New file.
18379         * lib/string_.h (strcspn): Add a conditional link warning.
18380         (mbscspn): New declaration.
18381         * m4/mbscspn.m4: New file.
18382         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18383         GNULIB_MBSCSPN.
18384         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
18385         * MODULES.html.sh (Internationalization functions): Add mbscspn.
18386
18387 2007-02-04  Bruno Haible  <bruno@clisp.org>
18388
18389         New module mbscasestr, reduced goal of strcasestr.
18390         * modules/mbscasestr: New file.
18391         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
18392         (mbscasestr): Renamed from strcasestr.
18393         * lib/strcasestr.c: Don't include mbuiter.h.
18394         (strcasestr): Remove support for multibyte locales.
18395         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
18396         Change the conditional link warning.
18397         (mbscasestr): New declaration.
18398         * m4/mbscasestr.m4: New file.
18399         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
18400         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
18401         REPLACE_STRCASESTR.
18402         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
18403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18404         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18405         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
18406         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
18407         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18408         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
18409         (Depends-on): Remove mbuiter.
18410         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
18411
18412 2007-02-04  Bruno Haible  <bruno@clisp.org>
18413
18414         Simplify handling of strncasecmp.
18415         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
18416         the conditional link warning.
18417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18418         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
18419         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
18420         * modules/strcase (configure.ac): Don't invoke
18421         gl_STRING_MODULE_INDICATOR.
18422         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
18423
18424 2007-02-04  Bruno Haible  <bruno@clisp.org>
18425
18426         New module mbscasecmp, reduced goal of strcasecmp.
18427         * modules/mbscasecmp: New file.
18428         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
18429         (mbscasecmp): Renamed from strcasecmp.
18430         * lib/strcasecmp.c: Don't include mbuiter.h.
18431         (strcasecmp): Remove support for multibyte locales.
18432         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
18433         Change the conditional link warning.
18434         (mbscasecmp): New declaration.
18435         * m4/mbscasecmp.m4: New file.
18436         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
18437         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
18438         REPLACE_STRCASECMP.
18439         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
18440         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18441         GNULIB_MBSCASECMP.
18442         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
18443         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
18444         * modules/strcase (Files): Remove m4/mbrtowc.m4.
18445         (Depends-on): Remove mbuiter.
18446         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
18447
18448 2007-02-04  Bruno Haible  <bruno@clisp.org>
18449
18450         New module mbsstr. Remove module strstr.
18451         * modules/mbsstr: New file.
18452         * modules/strstr: Remove file.
18453         * lib/mbsstr.c: Renamed from lib/strstr.c.
18454         (mbsstr): Renamed from strstr.
18455         * lib/string_.h (strstr): Remove declaration. Change the conditional
18456         link warning.
18457         (mbsstr): New declaration.
18458         * m4/mbsstr.m4: New file.
18459         * m4/strstr.m4: Remove file.
18460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18461         REPLACE_STRSTR.
18462         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
18463         Don't initialize GNULIB_STRSTR.
18464         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
18465         substitute GNULIB_STRSTR and REPLACE_STRSTR.
18466         * MODULES.html.sh (Internationalization functions): Add mbsstr.
18467         (Support for systems lacking ANSI C 89): Remove strstr.
18468
18469 2007-02-04  Bruno Haible  <bruno@clisp.org>
18470
18471         New module mbsrchr.
18472         * modules/mbsrchr: New file.
18473         * lib/mbsrchr.c: New file.
18474         * lib/string_.h (strrchr): Add a conditional link warning.
18475         (mbsrchr): New declaration.
18476         * m4/mbsrchr.m4: New file.
18477         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18478         GNULIB_MBSRCHR.
18479         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
18480         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
18481
18482 2007-02-04  Bruno Haible  <bruno@clisp.org>
18483
18484         New module mbschr.
18485         * modules/mbschr: New file.
18486         * lib/mbschr.c: New file.
18487         * lib/string_.h (strchr): Add a conditional link warning.
18488         (mbschr): New declaration.
18489         * m4/mbschr.m4: New file.
18490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18491         GNULIB_MBSCHR.
18492         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
18493         * MODULES.html.sh (Internationalization functions): Add mbschr.
18494
18495 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18496
18497         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
18498
18499         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
18500
18501 2007-02-04  Bruno Haible  <bruno@clisp.org>
18502
18503         New module description section 'configure.ac-early'.
18504         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
18505         (func_get_autoconf_early_snippet): New function.
18506         (func_import, func_create_testdir): Use it. Remove special cases for
18507         modules 'extensions' and 'lock'.
18508         * modules/extensions (configure.ac-early): Require
18509         gl_USE_SYSTEM_EXTENSIONS.
18510         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
18511
18512 2007-02-04  Bruno Haible  <bruno@clisp.org>
18513
18514         Make use of gcj-4.3's -fsource and -ftarget option.
18515         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
18516         and if so try the options -fsource and -ftarget.
18517         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
18518         source_version, ftarget_option, target_version arguments.
18519         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
18520         (is_envjavac_oldgcj_14_14_usable): Renamed from
18521         is_envjavac_gcj_14_14_usable.
18522         (is_envjavac_oldgcj_14_13_usable): Renamed from
18523         is_envjavac_gcj_14_13_usable.
18524         (is_gcj_present): Update.
18525         (is_gcj_43, is_gcj43_usable): New functions.
18526         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
18527         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
18528         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
18529         try the options -fsource and -ftarget.
18530
18531 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18532
18533         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
18534         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
18535         larger value.
18536
18537 2007-02-03  Jim Meyering  <jim@meyering.net>
18538
18539         Give tools a better chance to allocate space for very large buffers.
18540         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
18541
18542         Make pwd and readlink work also when run with an unreadable parent dir
18543         on systems with openat support.
18544         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
18545         provided getcwd function, even when we have openat support.
18546         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
18547
18548 2007-02-02  Bruno Haible  <bruno@clisp.org>
18549
18550         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18551         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
18552         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
18553         portability problems if one of these functions is only used on specific
18554         platforms.
18555         Reported by Paul Eggert.
18556
18557 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
18558
18559         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
18560         is causing more trouble than it's curing.
18561         * lib/regex_internal.h (__mempcpy): Remove.
18562         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
18563         (and make the code a tad smaller to boot).
18564         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
18565
18566 2007-02-02  Jim Meyering  <jim@meyering.net>
18567
18568         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
18569         section, not in the Makefile.am: one.
18570
18571 2007-02-02  Eric Blake  <ebb9@byu.net>
18572
18573         * lib/strchrnul.c: Always include config.h first.
18574
18575         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
18576         gnulib strstr is not necessary here.
18577
18578 2007-02-02  Simon Josefsson  <simon@josefsson.org>
18579
18580         * m4/socklen.m4: Fix typo.
18581
18582 2007-02-02  Eric Blake  <ebb9@byu.net>
18583
18584         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
18585         * modules/netinet_in (Makefile.am): Likewise.
18586
18587 2007-02-01  Bruno Haible  <bruno@clisp.org>
18588
18589         * lib/string_.h (GL_LINK_WARNING): New macro.
18590         (strcasecmp, strstr, strcasestr): If provided by the system,
18591         conditionally define as a macro that leads to a warning instead of to
18592         an error.
18593         (strncasecmp): Conditionally define as a macro that leads to a warning.
18594
18595 2007-02-01  Karl Berry  <karl@gnu.org>
18596
18597         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
18598
18599 2007-02-01  Bruno Haible  <bruno@clisp.org>
18600
18601         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
18602         renamings.
18603
18604 2007-02-01  Eric Blake  <ebb9@byu.net>
18605
18606         * modules/regex (Depends-on): Revert dependence on mempcpy.
18607         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
18608         module's definition of mempcpy.
18609         Reported by Paul Eggert.
18610
18611 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
18612
18613         * lib/string_.h: If the gnulib module XYZ is not present, undefine
18614         the symbol XYZ before redefining it.  This fixes a problem with
18615         programs that don't use XYZ, when compiled on systems that define
18616         XYZ to something else.
18617
18618 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
18619
18620         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
18621         occurs when "mkdir -m foo" creates a setgid directory that is (1)
18622         writeable to group or other and (2) is intended to have a special
18623         mode bit that is set or cleared.  In such a case, the directory
18624         should be neither group- nor other-writeable until the special
18625         mode bits are right.
18626
18627 2007-01-31  Eric Blake  <ebb9@byu.net>
18628
18629         * modules/mountlist (Depends-on): Add strstr.
18630
18631         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
18632         bug.
18633         * modules/string (Makefile.am): Remove redundant replacement.
18634         * modules/regex (Depends-on): Add mempcpy.
18635
18636 2007-01-31  Bruno Haible  <bruno@clisp.org>
18637
18638         New module description field 'Link'.
18639         * gnulib-tool (func_usage): Document --extract-link-directive.
18640         (sed_extract_prog): Recognize 'Link' directive.
18641         (func_get_link_directive): New function.
18642         (func_import): Show summary of link directives.
18643         Handle --extract-link-directive option.
18644         * modules/acl (Link): New section.
18645         * modules/clock-time (Link): New section.
18646         * modules/euidaccess (Link): New section.
18647         * modules/gettext (Link): New section.
18648         * modules/iconv (Link): New section.
18649         * modules/lock (Link): New section.
18650         * modules/nanosleep (Link): New section.
18651         * modules/readline (Link): New section.
18652
18653 2007-01-27  Bruno Haible  <bruno@clisp.org>
18654
18655         Enforce the use of gnulib modules for unportable <string.h> functions.
18656         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
18657         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
18658         (gl_HEADER_STRING_H_BODY): Require it.
18659         * lib/string_.h: If the gnulib module XYZ is not present, redefine
18660         the symbol XYZ to one that gives a link error.
18661         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
18662         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
18663         * modules/mempcpy (configure.ac): Likewise.
18664         * modules/memrchr (configure.ac): Likewise.
18665         * modules/stpcpy (configure.ac): Likewise.
18666         * modules/stpncpy (configure.ac): Likewise.
18667         * modules/strcase (configure.ac): Likewise.
18668         * modules/strcasestr (configure.ac): Likewise.
18669         * modules/strchrnul (configure.ac): Likewise.
18670         * modules/strdup (configure.ac): Likewise.
18671         * modules/strndup (configure.ac): Likewise.
18672         * modules/strnlen (configure.ac): Likewise.
18673         * modules/strpbrk (configure.ac): Likewise.
18674         * modules/strsep (configure.ac): Likewise.
18675         * modules/strstr (configure.ac): Likewise.
18676         * modules/strtok_r (configure.ac): Likewise.
18677
18678 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
18679
18680         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
18681
18682 2007-01-30  Jim Meyering  <jim@meyering.net>
18683
18684         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
18685
18686 2007-01-29  Bruno Haible  <bruno@clisp.org>
18687
18688         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
18689         * lib/execute.c: Likewise.
18690         * lib/pipe.c: Likewise.
18691         * lib/printf-args.h: Likewise.
18692         * lib/printf-args.c: Likewise.
18693         * lib/printf-parse.c: Likewise.
18694         * lib/vasnprintf.c: Likewise.
18695
18696 2007-01-29  Eric Blake  <ebb9@byu.net>
18697
18698         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
18699         declaration.
18700
18701 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
18702
18703         * lib/strptime.h (strptime): Use 'restrict' for args where
18704         POSIX requires this.
18705         * lib/strptime.c (strptime): Likewise.
18706         Change license notice from LGPL to GPL, since gnulib-tool will
18707         change this as needed.
18708         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
18709         defined.
18710         Include "strptime.h" first, to check interface.
18711         Do not #undef _LIBC and _NL_CURRENT.
18712         Do not include <stdlib.h>; no longer needed.
18713         Include "time_r.h" and declare ptime_locale_status
18714         only if _LIBC is not defined.
18715         (__P): Remove unused macro.
18716         (match_string): Bring back glibc version, but use it only if _LIBC
18717         is defined.
18718         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
18719         Remove unnecessary assertion and abort() call.
18720         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
18721         * m4/strptime.m4: Fix serial number comment.
18722         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
18723         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
18724         (Depends-on): Add time_r.
18725
18726 2007-01-29  Bruno Haible  <bruno@clisp.org>
18727
18728         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18729         strptime.
18730         * modules/strptime (Depends-on): Add stdbool.
18731         * lib/strptime.h: Include <time.h> always. Add comments.
18732
18733 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18734
18735         * modules/strptime: New file.
18736         * lib/strptime.h: New file.
18737         * lib/strptime.c: New file.
18738         * m4/strptime.m4: New file.
18739
18740 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18741
18742         * MODULES.html.sh: New module mpsort.
18743         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
18744
18745         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
18746         a circularity problem with HP-UX ia64 reported by Bob Proulx in
18747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
18748         All uses changed.
18749         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
18750         All uses changed.
18751         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
18752         to _Restrict_.
18753         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
18754         the parameter matches the prototype.
18755
18756 2007-01-28  Jim Meyering  <jim@meyering.net>
18757
18758         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
18759         sys/time.h here, reverting that part of the previous patch:
18760         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
18761
18762 2007-01-28  Bruno Haible  <bruno@clisp.org>
18763
18764         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
18765         value of $(SYS_TIME_H).
18766         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
18767         remove it conditionally, too. [added by Jim Meyering]
18768         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
18769         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18770         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
18771         GETTIMEOFDAY_REPLACEMENT to 1.
18772
18773 2007-01-28  Bruno Haible  <bruno@clisp.org>
18774
18775         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
18776         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
18777         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
18778         Set UNISTD_H instead of UNISTD_H2.
18779         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
18780
18781 2007-01-28  Bruno Haible  <bruno@clisp.org>
18782
18783         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
18784         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
18785
18786 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18787
18788         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
18789         (func_create_testdir): Ensure C locale for `grep' and `tr'
18790         character ranges.
18791         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
18792         ACLOCAL_AMFLAGS parsing state machine.
18793
18794 2007-01-27  Bruno Haible  <bruno@clisp.org>
18795
18796         * modules/unistr/base: Update.
18797
18798 2007-01-27  Bruno Haible  <bruno@clisp.org>
18799
18800         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
18801         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
18802         * modules/unistr/u32-mbtouc-unsafe: Renamed from
18803         modules/unistr/u32-mbtouc.
18804         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
18805         * lib/unistr.h: Update.
18806         * lib/linebreak.c: Update.
18807         * modules/unistr/u32-mbtouc: Renamed from
18808         modules/unistr/u32-mbtouc-safe.
18809         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
18810         * lib/unistr.h: Update.
18811         * lib/unistr/u32-to-u8.c: Update.
18812         * lib/unistr/u32-to-u16.c: Update.
18813
18814 2007-01-27  Bruno Haible  <bruno@clisp.org>
18815
18816         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
18817         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
18818         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
18819         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
18820         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
18821         * modules/unistr/u16-mbtouc-unsafe: Renamed from
18822         modules/unistr/u16-mbtouc.
18823         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
18824         * lib/unistr.h: Update.
18825         * lib/linebreak.c: Update.
18826         * modules/linebreak: Update.
18827         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
18828         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
18829         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
18830         * modules/unistr/u16-mbtouc: Renamed from
18831         modules/unistr/u16-mbtouc-safe.
18832         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
18833         * lib/unistr.h: Update.
18834         * lib/unistr/u16-to-u8.c: Update.
18835         * modules/unistr/u16-to-u8: Update.
18836         * lib/unistr/u16-to-u32.c: Update.
18837         * modules/unistr/u16-to-u32: Update.
18838
18839 2007-01-27  Bruno Haible  <bruno@clisp.org>
18840
18841         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
18842         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
18843         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
18844         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
18845         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
18846         * modules/unistr/u8-mbtouc-unsafe: Renamed from
18847         modules/unistr/u8-mbtouc.
18848         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
18849         * lib/unistr.h: Update.
18850         * lib/striconveh.c: Update.
18851         * modules/striconveh: Update.
18852         * lib/linebreak.c: Update.
18853         * modules/linebreak: Update.
18854         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
18855         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
18856         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
18857         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
18858         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
18859         * lib/unistr.h: Update.
18860         * lib/striconveh.c: Update.
18861         * modules/striconveh: Update.
18862         * lib/unistr/u8-to-u16.c: Update.
18863         * modules/unistr/u8-to-u16: Update.
18864         * lib/unistr/u8-to-u32.c: Update.
18865         * modules/unistr/u8-to-u32: Update.
18866
18867 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18868
18869         Sync from Libtool.
18870         * lib/argz.c: Do not include strings.h nor memory.h, include
18871         string.h unconditionally.  Patch by Simon Josefsson.
18872
18873 2007-01-27  Bruno Haible  <bruno@clisp.org>
18874
18875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
18876         from gl_HEADER_STRING_H_BODY.
18877         (gl_HEADER_STRING_H_BODY): Require it.
18878         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
18879         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
18880         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
18881         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
18882         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18883         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
18884         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18885         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
18886         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
18887         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18888         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
18889         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
18890         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
18891         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18892         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18893
18894 2007-01-27  Bruno Haible  <bruno@clisp.org>
18895
18896         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
18897         check_PROGRAMS into noinst_PROGRAMS.
18898         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
18899         check_PROGRAMS in this case.
18900         (func_import): Set for_test to false.
18901         (func_create_testdir): Set for_test to true.
18902
18903 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18904             Bruno Haible  <bruno@clisp.org>
18905
18906         * modules/strcasestr (Files): Remove lib/strcasestr.h.
18907         (Depends-on): Add string.
18908         (Includes): Use <string.h> instead of strcasestr.h.
18909         * modules/string (Makefile.am): Also substitute the value of
18910         REPLACE_STRCASESTR.
18911         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
18912         assume strcasestr is declared in <string.h> not <strings.h>. Also
18913         set REPLACE_STRCASESTR.
18914         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
18915         REPLACE_STRCASESTR.
18916         * lib/strcasestr.h: Remove file.
18917         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
18918         * lib/string_.h (strcasestr): New declaration.
18919
18920 2007-01-27  Bruno Haible  <bruno@clisp.org>
18921
18922         * lib/string_.h: Use 'extern'.
18923
18924 2007-01-27  Jim Meyering  <jim@meyering.net>
18925
18926         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
18927         of set-but-not-used local, "q".
18928
18929         * lib/mempcpy.c: Include <config.h> before <string.h>.
18930         This fixes a compilation error on HP-UX, due to the system's
18931         "restrict"-using mempcpy prototype.
18932
18933 2007-01-26  Bruno Haible  <bruno@clisp.org>
18934
18935         Small optimization.
18936         * lib/javacomp.c: Include c-strstr.h.
18937          (is_envjavac_gcj): Use c_strstr instead of strstr.
18938         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
18939
18940 2007-01-26  Bruno Haible  <bruno@clisp.org>
18941
18942         * MODULES.html.sh (Unicode string functions): Add the new modules.
18943
18944         * modules/uniconv/u32-strconv-to-locale: New file.
18945         * lib/uniconv/u32-strconv-to-locale.c: New file.
18946
18947         * modules/uniconv/u16-strconv-to-locale: New file.
18948         * lib/uniconv/u16-strconv-to-locale.c: New file.
18949
18950         * modules/uniconv/u8-strconv-to-locale: New file.
18951         * lib/uniconv/u8-strconv-to-locale.c: New file.
18952
18953         * modules/uniconv/u32-strconv-from-locale: New file.
18954         * lib/uniconv/u32-strconv-from-locale.c: New file.
18955
18956         * modules/uniconv/u16-strconv-from-locale: New file.
18957         * lib/uniconv/u16-strconv-from-locale.c: New file.
18958
18959         * modules/uniconv/u8-strconv-from-locale: New file.
18960         * lib/uniconv/u8-strconv-from-locale.c: New file.
18961
18962         * modules/uniconv/u32-strconv-to-enc: New file.
18963         * lib/uniconv/u32-strconv-to-enc.c: New file.
18964         * modules/uniconv/u32-strconv-to-enc-tests: New file.
18965         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
18966
18967         * modules/uniconv/u16-strconv-to-enc: New file.
18968         * lib/uniconv/u16-strconv-to-enc.c: New file.
18969         * lib/uniconv/u-strconv-to-enc.h: New file.
18970         * modules/uniconv/u16-strconv-to-enc-tests: New file.
18971         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
18972
18973         * modules/uniconv/u8-strconv-to-enc: New file.
18974         * lib/uniconv/u8-strconv-to-enc.c: New file.
18975         * modules/uniconv/u8-strconv-to-enc-tests: New file.
18976         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
18977
18978         * modules/uniconv/u32-strconv-from-enc: New file.
18979         * lib/uniconv/u32-strconv-from-enc.c: New file.
18980         * modules/uniconv/u32-strconv-from-enc-tests: New file.
18981         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
18982
18983         * modules/uniconv/u16-strconv-from-enc: New file.
18984         * lib/uniconv/u16-strconv-from-enc.c: New file.
18985         * modules/uniconv/u16-strconv-from-enc-tests: New file.
18986         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
18987
18988         * modules/uniconv/u8-strconv-from-enc: New file.
18989         * lib/uniconv/u8-strconv-from-enc.c: New file.
18990         * lib/uniconv/u-strconv-from-enc.h: New file.
18991         * modules/uniconv/u8-strconv-from-enc-tests: New file.
18992         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
18993
18994         * modules/uniconv/u32-conv-from-enc: New file.
18995         * lib/uniconv/u32-conv-from-enc.c: New file.
18996         * modules/uniconv/u32-conv-from-enc-tests: New file.
18997         * tests/uniconv/test-u32-conv-from-enc.c: New file.
18998
18999         * modules/uniconv/u16-conv-from-enc: New file.
19000         * lib/uniconv/u16-conv-from-enc.c: New file.
19001         * lib/uniconv/u-conv-from-enc.h: New file.
19002         * modules/uniconv/u16-conv-from-enc-tests: New file.
19003         * tests/uniconv/test-u16-conv-from-enc.c: New file.
19004
19005         * modules/uniconv/u8-conv-from-enc: New file.
19006         * lib/uniconv/u8-conv-from-enc.c: New file.
19007         * modules/uniconv/u8-conv-from-enc-tests: New file.
19008         * tests/uniconv/test-u8-conv-from-enc.c: New file.
19009
19010         * modules/uniconv/base: New file.
19011         * lib/uniconv.h: New file.
19012
19013 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19014
19015         * doc/gnulib-tool.texi (Initial import): Update to match current
19016         behavior with strdup module.
19017         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
19018         * lib/memmem.h: Remove; all uses removed.  This is now done
19019         by <string.h>.
19020         * lib/mempcpy.h: Likewise.
19021         * lib/memrchr.h: Likewise.
19022         * lib/stpcpy.h: Likewise.
19023         * lib/stpncpy.h: Likewise.
19024         * lib/strcase.h: Likewise.
19025         * lib/strchrnul.h: Likewise.
19026         * lib/strdup.h: Likewise.
19027         * lib/strndup.h: Likewise.
19028         * lib/strnlen.h: Likewise.
19029         * lib/strpbrk.h: Likewise.
19030         * lib/strsep.h: Likewise.
19031         * lib/strstr.h: Likewise.
19032         * lib/strtok_r.h: Likewise.
19033         * lib/string_.h: New file.
19034         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
19035         Rely on <string.h> instead.
19036         * lib/canon-host.c: Likewise.
19037         * lib/chdir-long.c: Likewise.
19038         * lib/concatpath.c: Likewise.
19039         * lib/exclude.c: Likewise.
19040         * lib/fchdir.c: Likewise.
19041         * lib/getaddrinfo.c: Likewise.
19042         * lib/getcwd.c: Likewise.
19043         * lib/getsubopt.c: Likewise.
19044         * lib/glob.c: Likewise.
19045         * lib/hard-locale.c: Likewise.
19046         * lib/iconvme.c: Likewise.
19047         * lib/javacomp.c: Likewise.
19048         * lib/mempcpy.c: Likewise.
19049         * lib/memrchr.c: Likewise.
19050         * lib/regex_internal.h: Likewise.
19051         * lib/stpncpy.c: Likewise.
19052         * lib/strcasecmp.c: Likewise.
19053         * lib/strchrnul.c: Likewise.
19054         * lib/strdup.c: Likewise.
19055         * lib/striconv.c: Likewise.
19056         * lib/striconveh.c: Likewise.
19057         * lib/striconveha.c: Likewise.
19058         * lib/strncasecmp.c: Likewise.
19059         * lib/strndup.c: Likewise.
19060         * lib/strnlen.c: Likewise.
19061         * lib/strsep.c: Likewise.
19062         * lib/strstr.c: Likewise.
19063         * lib/strtok_r.c: Likewise.
19064         * lib/userspec.c: Likewise.
19065         * lib/w32spawn.h: Likewise.
19066         * lib/xstrndup.c: Likewise.
19067         * lib/mountlist.c (strstr): Remove decl.
19068         * m4/string_h.m4: New file.
19069         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
19070         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
19071         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
19072         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
19073         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
19074         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
19075         Set REPLACE_STRCASECMP if necessary.
19076         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
19077         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
19078         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
19079         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
19080         HAVE_DECL_STRDUP if necessary.
19081         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
19082         since gl_FUNC_STRNDUP does that now.
19083         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
19084         Check for decl here...
19085         (gl_PREREQ_STRNLEN): ... not here.
19086         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
19087         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
19088         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
19089         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
19090         necessary.
19091         * modules/string: New file.
19092         * modules/memmem (Files): Remove special-purpose include file.
19093         (Depends-on): Add string.
19094         (Include): Include <string.h>, not the removed file.
19095         * modules/mempcpy: Likewise.
19096         * modules/memrchr: Likewise.
19097         * modules/stpcpy: Likewise.
19098         * modules/stpncpy: Likewise.
19099         * modules/strcase: Likewise.
19100         * modules/strchrnul: Likewise.
19101         * modules/strdup: Likewise.
19102         * modules/strndup: Likewise.
19103         * modules/strnlen: Likewise.
19104         * modules/strpbrk: Likewise.
19105         * modules/strsep: Likewise.
19106         * modules/strstr: Likewise.
19107         * modules/strtok_r: Likewise.
19108         * tests/test-dirname.c: Don't include "strdup.h", since
19109         <string.h> now suffices.
19110         * tests/test-memmem.c: Don't include "memmem.h", since
19111         <string.h> now suffices.
19112
19113 2007-01-25  Bruno Haible  <bruno@clisp.org>
19114
19115         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
19116         *resultp is 0.
19117
19118         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
19119         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
19120         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
19121         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
19122
19123         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
19124         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
19125         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
19126         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
19127         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
19128         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
19129
19130 2007-01-24  Bruno Haible  <bruno@clisp.org>
19131
19132         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
19133         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
19134         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
19135         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
19136         gl_FUNC_FTS_CORE.
19137         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
19138         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
19139         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19140         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
19141         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
19142         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
19143         gl_FUNC_FCHOWNAT.
19144         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
19145         gl_FUNC_STRFTIME.
19146         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
19147         Reported by Ralf Wildenhues.
19148
19149 2007-01-24  Bruno Haible  <bruno@clisp.org>
19150
19151         Drop AC_REQUIRE calls that are redundant with the module dependencies.
19152         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
19153         gl_GETADDRINFO.
19154         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
19155         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
19156         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
19157
19158 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
19159
19160         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
19161         Don't use 'exit'; just return from 'main'.
19162         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
19163
19164         * lib/fnmatch_.h: Readjust white space and comments to match
19165         glibc, to avoid spurious diffs.
19166
19167 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19168
19169         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
19170         2004-12-01 change by Jakub Jelinek, since this code won't compile
19171         if !LIBC.  Problem reported by Bob Proulx.
19172
19173 2007-01-23  Bruno Haible  <bruno@clisp.org>
19174
19175         * lib/striconveh.c: Include c-strcaseeq.h.
19176         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
19177         * modules/striconveh (Depends-on): Add c-strcaseeq.
19178
19179 2007-01-23  Bruno Haible  <bruno@clisp.org>
19180
19181         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
19182
19183         * modules/c-strcaseeq: New file.
19184         * lib/c-strcaseeq.h: New file.
19185
19186         * modules/streq: New file.
19187         * lib/streq.h: New file.
19188
19189 2007-01-23  Bruno Haible  <bruno@clisp.org>
19190
19191         * modules/striconveha-tests: New file.
19192         * tests/test-striconveha.c: New file.
19193
19194         * lib/striconveha.h: Include <stdbool.h>.
19195         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
19196         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
19197         (mem_iconveha_notranslit): Renamed from mem_iconveha.
19198         (mem_iconveha): New function.
19199         (str_iconveha_notranslit): Renamed from str_iconveha.
19200         (str_iconveha): New function.
19201         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
19202         c-strcase.
19203
19204 2007-01-23  Bruno Haible  <bruno@clisp.org>
19205
19206         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
19207         encodings without forgiving before trying any encoding with handler.
19208         (str_iconveha): Try all encodings without forgiving before trying any
19209         encoding with handler.
19210
19211 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19212
19213         Import the following changes from libc.
19214
19215         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
19216
19217         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
19218
19219         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
19220
19221         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
19222         normal_bracket label.
19223
19224         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
19225
19226         [BZ #361]
19227         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
19228         to normal_bracket after fetching the next character.
19229
19230 2007-01-22  Bruno Haible  <bruno@clisp.org>
19231
19232         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
19233         argument.
19234         * lib/striconveh.c (iconv_carefully_1): New function.
19235         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
19236         argument.
19237         (str_cd_iconveh): Update.
19238         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
19239         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
19240         * tests/test-striconveh.c (MAGIC): New macro.
19241         (new_offsets): New function.
19242         (main): Test call with and without offsets.
19243
19244 2007-01-22  Bruno Haible  <bruno@clisp.org>
19245
19246         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
19247         * modules/sys_select (Makefile.am): Likewise.
19248         * modules/sys_socket (Makefile.am): Likewise.
19249         * modules/sys_time (Makefile.am): Likewise.
19250
19251 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19252
19253         * modules/gettimeofday (License): Change from GPL to LGPL, since
19254         gettimeofday is a library function.
19255
19256 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19257
19258         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
19259
19260 2007-01-21  Bruno Haible  <bruno@clisp.org>
19261
19262         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
19263
19264 2007-01-21  Bruno Haible  <bruno@clisp.org>
19265
19266         * modules/striconveha: New file.
19267         * lib/striconveha.h: New file.
19268         * lib/striconveha.c: New file.
19269         * MODULES.html.sh (Internationalization functions): Add striconveha.
19270         * lib/striconv.c (str_iconv): Optimize the case of an empty input
19271         string.
19272         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
19273
19274 2007-01-21  Bruno Haible  <bruno@clisp.org>
19275
19276         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
19277         * lib/striconveh.c (str_iconveh): Likewise.
19278
19279 2007-01-21  Bruno Haible  <bruno@clisp.org>
19280
19281         * lib/striconveh.h (mem_iconveh): New declaration.
19282         * lib/striconveh.c (mem_iconveh): New function.
19283         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
19284
19285 2007-01-21  Bruno Haible  <bruno@clisp.org>
19286
19287         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
19288
19289         * lib/striconveh.h (mem_cd_iconveh): Change specification.
19290         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
19291         original result buffer.
19292         (str_cd_iconveh): Update.
19293         * tests/test-striconveh.c (main): Update.
19294
19295         * lib/striconv.h (mem_cd_iconv): Change specification.
19296         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
19297         result buffer.
19298         (str_cd_iconv): Update.
19299         * tests/test-striconv.c (main): Update.
19300
19301 2007-01-21  Bruno Haible  <bruno@clisp.org>
19302
19303         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
19304
19305 2007-01-20  Jim Meyering  <jim@meyering.net>
19306
19307         * lib/userspec.c (parse_with_separator): If a user or group string
19308         starts with "+", skip the corresponding name-to-ID look-up, since
19309         such a look-up must fail: user and group names may not include "+".
19310
19311 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
19312
19313         * lib/poll.c: Include sys/time.h and time.h unconditionally,
19314         since we now assume the sys_time module.
19315         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
19316         check for sys/time.h; no longer needed.
19317         * modules/poll (Depends-on): Depend on sys_time.
19318
19319 2007-01-18  Bruno Haible  <bruno@clisp.org>
19320
19321         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
19322         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19323
19324         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
19325         gettimeofday.
19326
19327         * tests/test-gettimeofday.c: Include <time.h>.
19328         (dummy): Remove variable.
19329
19330         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
19331         gl_HEADER_SYS_TIME_H.
19332         (gl_HEADER_SYS_TIME_H): New macro.
19333
19334         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
19335         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19336         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19337         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
19338         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19339         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
19340         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
19341         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19342         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
19343         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
19344         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19345
19346         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
19347         last change; it caused a compilation error when cross-compiling to
19348         Cygwin.
19349
19350 2007-01-18  Jim Meyering  <jim@meyering.net>
19351
19352         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
19353         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
19354         than the race-prone "test -d sys || mkdir sys".
19355         (configure.ac): Use AC_PROG_MKDIR_P.
19356         * modules/sys_select: Likewise.
19357         * modules/sys_socket: Likewise.
19358         * modules/sys_time: Likewise.
19359
19360 2007-01-18  Eric Blake  <ebb9@byu.net>
19361
19362         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
19363         replace gettimeofday.
19364         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
19365         name, to avoid infinite recursion.
19366
19367 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
19368
19369         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
19370         module sys_time.
19371         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
19372         assume timespec.h defines struct timeval.
19373         * lib/settime.c: Likewise.
19374         * lib/utimens.c: Likewise.
19375         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
19376         since we now assume the gettimeofday module.
19377         * lib/tempname.c (__gen_tempname): Likewise.
19378         * lib/gettimeofday.h: Remove.
19379         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
19380         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
19381         Include <time.h>, for 'time()'.
19382         (localtime_buffer_addr): Also use this workaround if
19383         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
19384         to simplify the uses.  All uses changed.
19385         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
19386         that #undef is inside {}, and 'const' follows type name consistently.
19387         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
19388         (gettimeofday): Do not use the maximum possible value for
19389         tv->tv_usec, since that might break usages other than ls.c.
19390         Instead, we'll leave ls.c alone.  This undoes today's patch
19391         by Bruno.  Add a compile-time warning for 1s-clock resolution;
19392         we've never observed the problem but might as well keep the
19393         canary.
19394         * lib/nanosleep.c: Include timespec.h first, for interface check.
19395         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
19396         now assume the sys_time module.
19397         * lib/tempname.c: Likewise.
19398         * lib/timespec.h: Likewise.
19399         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
19400         needed.
19401         * lib/strftime.c: Likewise.
19402         * lib/timespec.h: Likewise.
19403         * lib/posixtm.c: Include posixtm.h first, for interface check.
19404         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
19405         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
19406         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
19407         * lib/sys_time_.h: New file.
19408         * lib/timespec.h (struct timespec): Use long int, not long.
19409         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19410         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
19411         Remove obsolescent call to AC_HEADER_TIME.
19412         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19413         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19414         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19415         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
19416         Likewise.
19417         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19418         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
19419         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
19420         into the sys_time module.  Check for gettimeofday just once.
19421         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
19422         for gettimeofday signature to just check the signature.  Merely
19423         compile it, since linking doesn't test signature.  Improve test for
19424         whether gettimeofday.o is actually needed.
19425         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
19426         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
19427         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
19428         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19429         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
19430         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
19431         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
19432         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
19433         than worrying about sys/time.h.
19434         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
19435         Don't bother worrying about TIME_WITH_SYS_TIME.
19436         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19437         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
19438         * m4/sys_time_h.m4: New file.
19439         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
19440         Don't include sys/time.h.  Return from main rather than exiting.
19441         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
19442         all uses changed.
19443         * modules/gethrxtime (Depends-on): Add sys_time.
19444         * modules/gettime (Depends-on): Likewise.
19445         * modules/gettimeofday (Depends-on): Likewise.
19446         * modules/nanosleep (Depends-on): Likewise.
19447         * modules/settime (Depends-on): Likewise.
19448         * modules/tempname (Depends-on): Likewise.
19449         * modules/utimens (Depends-on): Likewise.
19450         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
19451         (Include:) Change back to <sys/time.h>.
19452         (Maintainer:) Add self.
19453         * modules/sys_time: New file.
19454         * modules/tempname (Depends-on): Add gettimeofday.
19455         * tests/test-gettimeofday.c: Include <sys/time.h>
19456         rather than gettimeofday.h.
19457
19458 2007-01-17  Bruno Haible  <bruno@clisp.org>
19459
19460         * gnulib-tool (func_get_license): Revert last patch. Instead, let
19461         the license default to GPL.
19462         (func_create_testdir): Don't complain if a module is LGPL and its
19463         tests module depends on GPLed modules.
19464
19465 2007-01-17  Bruno Haible  <bruno@clisp.org>
19466
19467         * lib/gettimeofday.c (gettimeofday): Add code for the case
19468         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
19469         maximum possible value for tv->tv_usec, rather than the minimum one.
19470
19471 2005-10-08  Martin Lambers  <marlam@marlam.de>
19472 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19473 2007-01-16  Bruno Haible  <bruno@clisp.org>
19474
19475         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
19476         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
19477         gl_FUNC_GETTIMEOFDAY.
19478         (Include): Add gettimeofday.h.
19479         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
19480         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
19481         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
19482         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
19483         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
19484         * lib/gettimeofday.h: New file.
19485         * lib/gettimeofday.c: Include <sys/timeb.h>.
19486         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
19487         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19488         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
19489         fall back on time().
19490
19491         * tests/test-gettimeofday.c: New file.
19492         * modules/gettimeofday-tests: New file.
19493
19494 2007-01-16  Eric Blake  <ebb9@byu.net>
19495
19496         * modules/fnmatch (Depends-on): Depend on wchar.
19497         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
19498         * m4/fnmatch.m4: Likewise.
19499         * modules/mbchar (Makefile.am): Assume <wchar.h>.
19500         * m4/mbchar.m4: Likewise.
19501         * modules/mbswidth (Depends-on): Depend on wchar.
19502         * lib/mbswidth.c: Assume <wchar.h>.
19503         * m4/mbswidth.m4: Likewise.
19504         * modules/quotearg (Depends-on): Depend on wchar.
19505         * lib/quotearg.c: Assume <wchar.h>.
19506         * m4/quotearg.m4: Likewise.
19507         * modules/regex (Depends-on): Depend on wchar.
19508         * lib/regex_internal.h: Assume <wchar.h>.
19509         * m4/regex.m4: Likewise.
19510         * modules/stdint (Depends-on): Depend on wchar.
19511         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
19512         * m4/stdint.m4: Likewise.
19513         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
19514         * modules/strftime (Depends-on): Depend on wchar.
19515         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
19516         * modules/strtol (Depends-on): Depend on wchar.
19517         * lib/strtol.c: Assume <wchar.h>.
19518         * modules/wcwidth (Depends-on): Depend on wchar.
19519         * lib/wcwidth.h: Assume <wchar.h>.
19520         * m4/wcwidth.m4: Likewise.
19521
19522 2007-01-16  Bruno Haible  <bruno@clisp.org>
19523
19524         * modules/csharpexec-script: New, created from...
19525         * modules/csharpexec: ... this.
19526
19527 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
19528
19529         * modules/javaexec-script: New, created from...
19530         * modules/javaexec: ... this.
19531
19532 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19533
19534         * modules/poll (Dependencies): Add sys_select.
19535
19536 2007-01-15  Jim Meyering  <jim@meyering.net>
19537
19538         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
19539         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
19540         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
19541         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
19542
19543 2007-01-15  Bruno Haible  <bruno@clisp.org>
19544
19545         * modules/striconveh: New file.
19546         * lib/striconveh.h: New file.
19547         * lib/striconveh.c: New file.
19548         * MODULES.html.sh (Internationalization functions): Add striconveh.
19549
19550         * modules/striconveh-tests: New file.
19551         * tests/test-striconveh.c: New file.
19552
19553 2007-01-15  Bruno Haible  <bruno@clisp.org>
19554
19555         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
19556         not from GNU libiconv or GNU libc.
19557
19558 2007-01-15  Bruno Haible  <bruno@clisp.org>
19559
19560         * doc/gnulib-intro.texi (Copyright): Explain the different license
19561         terms for module descriptions, autoconf macros, tests, documentation.
19562
19563 2007-01-14  Bruno Haible  <bruno@clisp.org>
19564
19565         * modules/striconv-tests: New file.
19566         * tests/test-striconv.c: New file.
19567
19568 2007-01-14  Bruno Haible  <bruno@clisp.org>
19569
19570         * modules/iconv-tests: New file.
19571         * tests/test-iconv.c: New file.
19572
19573 2007-01-14  Bruno Haible  <bruno@clisp.org>
19574
19575         * gnulib-tool (func_get_license): For test modules, use the license of
19576         the main module.
19577
19578 2007-01-14  Bruno Haible  <bruno@clisp.org>
19579
19580         * modules/iconv (Include): Clarify that <iconv.h> can only be included
19581         if iconv is found to exist.
19582
19583 2007-01-14  Bruno Haible  <bruno@clisp.org>
19584
19585         * modules/c-ctype-tests: New file.
19586         * tests/test-c-ctype.c: New file.
19587
19588 2007-01-14  Bruno Haible  <bruno@clisp.org>
19589
19590         * modules/binary-io-tests: New file.
19591         * tests/test-binary-io.sh: New file.
19592         * tests/test-binary-io.c: New file.
19593
19594 2007-01-14  Bruno Haible  <bruno@clisp.org>
19595
19596         * modules/array-oset-tests: New file.
19597         * tests/test-array_oset.c: New file.
19598
19599 2007-01-14  Bruno Haible  <bruno@clisp.org>
19600
19601         * modules/array-list-tests: New file.
19602         * tests/test-array_list.c: New file.
19603
19604 2007-01-14  Bruno Haible  <bruno@clisp.org>
19605
19606         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
19607         and make.
19608         Reported by Simon Josefsson in
19609         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
19610
19611 2007-01-14  Bruno Haible  <bruno@clisp.org>
19612
19613         * modules/allocsa-tests: New file.
19614         * tests/test-allocsa.c: New file.
19615
19616 2007-01-14  Bruno Haible  <bruno@clisp.org>
19617
19618         * modules/fchdir (Depends-on): Add absolute-header.
19619         * modules/unistd (Depends-on): Likewise.
19620
19621 2006-12-30  Bruno Haible  <bruno@clisp.org>
19622
19623         * modules/fchdir: New file.
19624         * modules/unistd (Files): Add lib/unistd_.h.
19625         (Makefile.am): Generate unistd.h from unistd_.h.
19626         * lib/fchdir.c: New file.
19627         * lib/dirent_.h: New file.
19628         * lib/unistd_.h: New file.
19629         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
19630         * m4/fchdir.m4: New file.
19631         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
19632         (gl_HEADER_UNISTD): Invoke it.
19633         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
19634         function.
19635         * lib/backupfile.c (opendir, closedir): Undefine.
19636         * lib/chown.c (open, close): Undefine.
19637         * lib/clean-temp.c (open, close): Undefine.
19638         * lib/copy-file.c (open, close): Undefine.
19639         * lib/execute.c (open, close): Undefine.
19640         * lib/fsusage.c (open, close): Undefine.
19641         * lib/gc-gnulib.c (open, close): Undefine.
19642         * lib/getcwd.c (opendir, closedir): Undefine.
19643         * lib/glob.c (opendir, closedir): Undefine.
19644         * lib/javacomp.c (open, close): Undefine.
19645         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
19646         * lib/openat-proc.c (open, close): Undefine.
19647         * lib/pagealign_alloc.c (open, close): Undefine.
19648         * lib/pipe.c (open, close): Undefine.
19649         * lib/progreloc.c (open, close): Undefine.
19650         * lib/savedir.c (opendir, closedir): Undefine.
19651         * lib/utime.c (open, close): Undefine.
19652         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
19653
19654 2007-01-10  Bruno Haible  <bruno@clisp.org>
19655
19656         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
19657
19658 2007-01-12  Eric Blake  <ebb9@byu.net>
19659
19660         Provide a robust <wchar.h>.  Further simplifications are now
19661         possible in other modules, but not included here.
19662         * modules/wchar: New module.
19663         * m4/wchar.m4: New file.
19664         * lib/wchar_.h: Likewise.
19665         * modules/mbchar (Depends-on): Depend on wchar, as the first use
19666         of the new module.
19667         * MODULES.html.sh (Extended multibyte and wide character utilities):
19668         New section.
19669
19670 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
19671
19672         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
19673         to a reasonable default for memory allocation.
19674         (xreadlink): Don't allocate a huge buffer, to work around a buggy
19675         file system that reports garbage st_size values for symlinks.
19676         Problem reported by Liyang Hu.
19677
19678 2007-01-11  Simon Josefsson  <simon@josefsson.org>
19679
19680         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
19681         Emacs .#* auto-save files).
19682
19683 2007-01-11  Bruno Haible  <bruno@clisp.org>
19684
19685         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
19686         directory.
19687
19688 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19689
19690         Use @...@ consistently in lib/wctype_.h.
19691         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
19692         on it being set to 1 or 0.
19693         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
19694         go back to AC_SUBSTing it.
19695         * modules/wctype (Makefile.am): Undo previous change.
19696
19697 2007-01-10  Eric Blake  <ebb9@byu.net>
19698
19699         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
19700         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
19701         * modules/wctype (Makefile.am): Likewise.
19702         Reported by Chris McGuire.
19703
19704 2007-01-10  Jim Meyering  <jim@meyering.net>
19705
19706         fts.c: a small readability/maintainability improvement
19707         * lib/fts.c (fts_read): Make this code slightly more readable and
19708         maintainable by hoisting the "sp->fts_cur = p" assignments to
19709         immediately follow the statements that set P.  Derived from
19710         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
19711
19712 2007-01-10  Eric Blake  <ebb9@byu.net>
19713
19714         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
19715         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
19716         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19717         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19718         Reported by Chris McGuire.
19719
19720 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19721
19722         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
19723         in sed script.
19724
19725 2007-01-09  Bruno Haible  <bruno@clisp.org>
19726
19727         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
19728         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
19729         variables.
19730         (func_module): Use them.
19731
19732 2007-01-09  Bruno Haible  <bruno@clisp.org>
19733
19734         * modules/unistr/base: New file.
19735         * lib/unistr.h: New file.
19736
19737         * modules/unistr/u8-to-u16: New file.
19738         * lib/unistr/u8-to-u16.c: New file.
19739
19740         * modules/unistr/u8-to-u32: New file.
19741         * lib/unistr/u8-to-u32.c: New file.
19742
19743         * modules/unistr/u16-to-u8: New file.
19744         * lib/unistr/u16-to-u8.c: New file.
19745
19746         * modules/unistr/u16-to-u32: New file.
19747         * lib/unistr/u16-to-u32.c: New file.
19748
19749         * modules/unistr/u32-to-u8: New file.
19750         * lib/unistr/u32-to-u8.c: New file.
19751
19752         * modules/unistr/u32-to-u16: New file.
19753         * lib/unistr/u32-to-u16.c: New file.
19754
19755         * modules/unistr/u8-check: New file.
19756         * modules/unistr/u16-check: New file.
19757         * modules/unistr/u32-check: New file.
19758         * lib/unistr/u8-check.c: New file.
19759         * lib/unistr/u16-check.c: New file.
19760         * lib/unistr/u32-check.c: New file.
19761
19762         * modules/unistr/u8-chr: New file.
19763         * modules/unistr/u16-chr: New file.
19764         * modules/unistr/u32-chr: New file.
19765         * lib/unistr/u8-chr.c: New file.
19766         * lib/unistr/u16-chr.c: New file.
19767         * lib/unistr/u32-chr.c: New file.
19768
19769         * modules/unistr/u8-cmp: New file.
19770         * modules/unistr/u16-cmp: New file.
19771         * modules/unistr/u32-cmp: New file.
19772         * lib/unistr/u8-cmp.c: New file.
19773         * lib/unistr/u16-cmp.c: New file.
19774         * lib/unistr/u32-cmp.c: New file.
19775
19776         * modules/unistr/u8-cpy: New file.
19777         * modules/unistr/u16-cpy: New file.
19778         * modules/unistr/u32-cpy: New file.
19779         * lib/unistr/u8-cpy.c: New file.
19780         * lib/unistr/u16-cpy.c: New file.
19781         * lib/unistr/u32-cpy.c: New file.
19782         * lib/unistr/u-cpy.h: New file.
19783
19784         * modules/unistr/u8-cpy-alloc: New file.
19785         * modules/unistr/u16-cpy-alloc: New file.
19786         * modules/unistr/u32-cpy-alloc: New file.
19787         * lib/unistr/u8-cpy-alloc.c: New file.
19788         * lib/unistr/u16-cpy-alloc.c: New file.
19789         * lib/unistr/u32-cpy-alloc.c: New file.
19790         * lib/unistr/u-cpy-alloc.h: New file.
19791
19792         * modules/unistr/u8-endswith: New file.
19793         * modules/unistr/u16-endswith: New file.
19794         * modules/unistr/u32-endswith: New file.
19795         * lib/unistr/u8-endswith.c: New file.
19796         * lib/unistr/u16-endswith.c: New file.
19797         * lib/unistr/u32-endswith.c: New file.
19798         * lib/unistr/u-endswith.h: New file.
19799
19800         * modules/unistr/u8-mblen: New file.
19801         * modules/unistr/u16-mblen: New file.
19802         * modules/unistr/u32-mblen: New file.
19803         * lib/unistr/u8-mblen.c: New file.
19804         * lib/unistr/u16-mblen.c: New file.
19805         * lib/unistr/u32-mblen.c: New file.
19806
19807         * modules/unistr/u8-mbtouc: New file.
19808         * modules/unistr/u16-mbtouc: New file.
19809         * modules/unistr/u32-mbtouc: New file.
19810         * lib/unistr/u8-mbtouc.c: New file.
19811         * lib/unistr/u16-mbtouc.c: New file.
19812         * lib/unistr/u32-mbtouc.c: New file.
19813
19814         * modules/unistr/u8-mbtouc-safe: New file.
19815         * modules/unistr/u16-mbtouc-safe: New file.
19816         * modules/unistr/u32-mbtouc-safe: New file.
19817         * lib/unistr/u8-mbtouc-safe.c: New file.
19818         * lib/unistr/u16-mbtouc-safe.c: New file.
19819         * lib/unistr/u32-mbtouc-safe.c: New file.
19820
19821         * modules/unistr/u8-move: New file.
19822         * modules/unistr/u16-move: New file.
19823         * modules/unistr/u32-move: New file.
19824         * lib/unistr/u8-move.c: New file.
19825         * lib/unistr/u16-move.c: New file.
19826         * lib/unistr/u32-move.c: New file.
19827         * lib/unistr/u-move.h: New file.
19828
19829         * modules/unistr/u8-next: New file.
19830         * modules/unistr/u16-next: New file.
19831         * modules/unistr/u32-next: New file.
19832         * lib/unistr/u8-next.c: New file.
19833         * lib/unistr/u16-next.c: New file.
19834         * lib/unistr/u32-next.c: New file.
19835
19836         * modules/unistr/u8-prev: New file.
19837         * modules/unistr/u16-prev: New file.
19838         * modules/unistr/u32-prev: New file.
19839         * lib/unistr/u8-prev.c: New file.
19840         * lib/unistr/u16-prev.c: New file.
19841         * lib/unistr/u32-prev.c: New file.
19842
19843         * modules/unistr/u8-set: New file.
19844         * modules/unistr/u16-set: New file.
19845         * modules/unistr/u32-set: New file.
19846         * lib/unistr/u8-set.c: New file.
19847         * lib/unistr/u16-set.c: New file.
19848         * lib/unistr/u32-set.c: New file.
19849         * lib/unistr/u-set.h: New file.
19850
19851         * modules/unistr/u8-startswith: New file.
19852         * modules/unistr/u16-startswith: New file.
19853         * modules/unistr/u32-startswith: New file.
19854         * lib/unistr/u8-startswith.c: New file.
19855         * lib/unistr/u16-startswith.c: New file.
19856         * lib/unistr/u32-startswith.c: New file.
19857         * lib/unistr/u-startswith.h: New file.
19858
19859         * modules/unistr/u8-stpcpy: New file.
19860         * modules/unistr/u16-stpcpy: New file.
19861         * modules/unistr/u32-stpcpy: New file.
19862         * lib/unistr/u8-stpcpy.c: New file.
19863         * lib/unistr/u16-stpcpy.c: New file.
19864         * lib/unistr/u32-stpcpy.c: New file.
19865         * lib/unistr/u-stpcpy.h: New file.
19866
19867         * modules/unistr/u8-stpncpy: New file.
19868         * modules/unistr/u16-stpncpy: New file.
19869         * modules/unistr/u32-stpncpy: New file.
19870         * lib/unistr/u8-stpncpy.c: New file.
19871         * lib/unistr/u16-stpncpy.c: New file.
19872         * lib/unistr/u32-stpncpy.c: New file.
19873         * lib/unistr/u-stpncpy.h: New file.
19874
19875         * modules/unistr/u8-strcat: New file.
19876         * modules/unistr/u16-strcat: New file.
19877         * modules/unistr/u32-strcat: New file.
19878         * lib/unistr/u8-strcat.c: New file.
19879         * lib/unistr/u16-strcat.c: New file.
19880         * lib/unistr/u32-strcat.c: New file.
19881         * lib/unistr/u-strcat.h: New file.
19882
19883         * modules/unistr/u8-strchr: New file.
19884         * modules/unistr/u16-strchr: New file.
19885         * modules/unistr/u32-strchr: New file.
19886         * lib/unistr/u8-strchr.c: New file.
19887         * lib/unistr/u16-strchr.c: New file.
19888         * lib/unistr/u32-strchr.c: New file.
19889
19890         * modules/unistr/u8-strcmp: New file.
19891         * modules/unistr/u16-strcmp: New file.
19892         * modules/unistr/u32-strcmp: New file.
19893         * lib/unistr/u8-strcmp.c: New file.
19894         * lib/unistr/u16-strcmp.c: New file.
19895         * lib/unistr/u32-strcmp.c: New file.
19896
19897         * modules/unistr/u8-strcpy: New file.
19898         * modules/unistr/u16-strcpy: New file.
19899         * modules/unistr/u32-strcpy: New file.
19900         * lib/unistr/u8-strcpy.c: New file.
19901         * lib/unistr/u16-strcpy.c: New file.
19902         * lib/unistr/u32-strcpy.c: New file.
19903         * lib/unistr/u-strcpy.h: New file.
19904
19905         * modules/unistr/u8-strcspn: New file.
19906         * modules/unistr/u16-strcspn: New file.
19907         * modules/unistr/u32-strcspn: New file.
19908         * lib/unistr/u8-strcspn.c: New file.
19909         * lib/unistr/u16-strcspn.c: New file.
19910         * lib/unistr/u32-strcspn.c: New file.
19911         * lib/unistr/u-strcspn.h: New file.
19912
19913         * modules/unistr/u8-strdup: New file.
19914         * modules/unistr/u16-strdup: New file.
19915         * modules/unistr/u32-strdup: New file.
19916         * lib/unistr/u8-strdup.c: New file.
19917         * lib/unistr/u16-strdup.c: New file.
19918         * lib/unistr/u32-strdup.c: New file.
19919         * lib/unistr/u-strdup.h: New file.
19920
19921         * modules/unistr/u8-strlen: New file.
19922         * modules/unistr/u16-strlen: New file.
19923         * modules/unistr/u32-strlen: New file.
19924         * lib/unistr/u8-strlen.c: New file.
19925         * lib/unistr/u16-strlen.c: New file.
19926         * lib/unistr/u32-strlen.c: New file.
19927         * lib/unistr/u-strlen.h: New file.
19928
19929         * modules/unistr/u8-strmblen: New file.
19930         * modules/unistr/u16-strmblen: New file.
19931         * modules/unistr/u32-strmblen: New file.
19932         * lib/unistr/u8-strmblen.c: New file.
19933         * lib/unistr/u16-strmblen.c: New file.
19934         * lib/unistr/u32-strmblen.c: New file.
19935
19936         * modules/unistr/u8-strmbtouc: New file.
19937         * modules/unistr/u16-strmbtouc: New file.
19938         * modules/unistr/u32-strmbtouc: New file.
19939         * lib/unistr/u8-strmbtouc.c: New file.
19940         * lib/unistr/u16-strmbtouc.c: New file.
19941         * lib/unistr/u32-strmbtouc.c: New file.
19942
19943         * modules/unistr/u8-strncat: New file.
19944         * modules/unistr/u16-strncat: New file.
19945         * modules/unistr/u32-strncat: New file.
19946         * lib/unistr/u8-strncat.c: New file.
19947         * lib/unistr/u16-strncat.c: New file.
19948         * lib/unistr/u32-strncat.c: New file.
19949         * lib/unistr/u-strncat.h: New file.
19950
19951         * modules/unistr/u8-strncmp: New file.
19952         * modules/unistr/u16-strncmp: New file.
19953         * modules/unistr/u32-strncmp: New file.
19954         * lib/unistr/u8-strncmp.c: New file.
19955         * lib/unistr/u16-strncmp.c: New file.
19956         * lib/unistr/u32-strncmp.c: New file.
19957
19958         * modules/unistr/u8-strncpy: New file.
19959         * modules/unistr/u16-strncpy: New file.
19960         * modules/unistr/u32-strncpy: New file.
19961         * lib/unistr/u8-strncpy.c: New file.
19962         * lib/unistr/u16-strncpy.c: New file.
19963         * lib/unistr/u32-strncpy.c: New file.
19964         * lib/unistr/u-strncpy.h: New file.
19965
19966         * modules/unistr/u8-strnlen: New file.
19967         * modules/unistr/u16-strnlen: New file.
19968         * modules/unistr/u32-strnlen: New file.
19969         * lib/unistr/u8-strnlen.c: New file.
19970         * lib/unistr/u16-strnlen.c: New file.
19971         * lib/unistr/u32-strnlen.c: New file.
19972         * lib/unistr/u-strnlen.h: New file.
19973
19974         * modules/unistr/u8-strpbrk: New file.
19975         * modules/unistr/u16-strpbrk: New file.
19976         * modules/unistr/u32-strpbrk: New file.
19977         * lib/unistr/u8-strpbrk.c: New file.
19978         * lib/unistr/u16-strpbrk.c: New file.
19979         * lib/unistr/u32-strpbrk.c: New file.
19980         * lib/unistr/u-strpbrk.h: New file.
19981
19982         * modules/unistr/u8-strrchr: New file.
19983         * modules/unistr/u16-strrchr: New file.
19984         * modules/unistr/u32-strrchr: New file.
19985         * lib/unistr/u8-strrchr.c: New file.
19986         * lib/unistr/u16-strrchr.c: New file.
19987         * lib/unistr/u32-strrchr.c: New file.
19988
19989         * modules/unistr/u8-strspn: New file.
19990         * modules/unistr/u16-strspn: New file.
19991         * modules/unistr/u32-strspn: New file.
19992         * lib/unistr/u8-strspn.c: New file.
19993         * lib/unistr/u16-strspn.c: New file.
19994         * lib/unistr/u32-strspn.c: New file.
19995         * lib/unistr/u-strspn.h: New file.
19996
19997         * modules/unistr/u8-strstr: New file.
19998         * modules/unistr/u16-strstr: New file.
19999         * modules/unistr/u32-strstr: New file.
20000         * lib/unistr/u8-strstr.c: New file.
20001         * lib/unistr/u16-strstr.c: New file.
20002         * lib/unistr/u32-strstr.c: New file.
20003         * lib/unistr/u-strstr.h: New file.
20004
20005         * modules/unistr/u8-strtok: New file.
20006         * modules/unistr/u16-strtok: New file.
20007         * modules/unistr/u32-strtok: New file.
20008         * lib/unistr/u8-strtok.c: New file.
20009         * lib/unistr/u16-strtok.c: New file.
20010         * lib/unistr/u32-strtok.c: New file.
20011         * lib/unistr/u-strtok.h: New file.
20012
20013         * modules/unistr/u8-uctomb: New file.
20014         * modules/unistr/u16-uctomb: New file.
20015         * modules/unistr/u32-uctomb: New file.
20016         * lib/unistr/u8-uctomb.c: New file.
20017         * lib/unistr/u16-uctomb.c: New file.
20018         * lib/unistr/u32-uctomb.c: New file.
20019
20020         * MODULES.html.sh (Unicode string functions): Add the new modules.
20021
20022 2007-01-08  Bruno Haible  <bruno@clisp.org>
20023
20024         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
20025         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
20026         subdirectories.
20027
20028 2007-01-08  Karl Berry  <karl@gnu.org>
20029
20030         * doc/error.texi: mention that main() fns must set program_name
20031         when progname is used.
20032
20033 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
20034
20035         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
20036         WCTYPE_H is empty, for the benefit of builds from non-distclean
20037         directories.  Problem reported by Eric Blake in
20038         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
20039
20040 2007-01-08  Bruno Haible  <bruno@clisp.org>
20041
20042         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
20043         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
20044         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
20045         PROVIDE_CANONICALIZE_FILENAME_MODE.
20046         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
20047
20048 2007-01-08  Bruno Haible  <bruno@clisp.org>
20049
20050         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
20051         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
20052         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
20053         * lib/fts.c: Likewise.
20054         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
20055
20056 2006-12-25  Bruno Haible  <bruno@clisp.org>
20057
20058         * modules/utf8-ucs4-safe: New file.
20059         * lib/utf8-ucs4-safe.h: New file.
20060         * lib/unistr/utf8-ucs4-safe.c: New file.
20061
20062         * modules/utf16-ucs4-safe: New file.
20063         * lib/utf16-ucs4-safe.h: New file.
20064         * lib/unistr/utf16-ucs4-safe.c: New file.
20065
20066         * MODULES.html.sh (Unicode string functions): Add the new modules.
20067
20068 2007-01-08  Bruno Haible  <bruno@clisp.org>
20069
20070         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
20071         (Depends-on): Add unitypes.
20072         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20073         (u8_mbtouc_aux): Move out to separate file.
20074         (u8_mbtouc): Use ucs4_t, uint8_t types.
20075         * lib/unistr/utf8-ucs4.c: New file.
20076
20077         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
20078         (Depends-on): Add unitypes.
20079         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20080         (u16_mbtouc_aux): Move out to separate file.
20081         (u16_mbtouc): Use ucs4_t, uint16_t types.
20082         * lib/unistr/utf16-ucs4.c: New file.
20083
20084         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
20085         (Depends-on): Add unitypes.
20086         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
20087         (u8_uctomb_aux): Move out to separate file.
20088         (u8_uctomb): Use ucs4_t, uint8_t types.
20089         * lib/unistr/ucs4-utf8.c: New file.
20090
20091         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
20092         (Depends-on): Add unitypes.
20093         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
20094         (u16_uctomb_aux): Move out to separate file.
20095         (u16_uctomb): Use ucs4_t, uint16_t types.
20096         * lib/unistr/ucs4-utf16.c: New file.
20097
20098 2006-12-25  Bruno Haible  <bruno@clisp.org>
20099
20100         * modules/unitypes: New file.
20101         * lib/unitypes.h: New file.
20102         * MODULES.html.sh (func_all_modules): New section "Unicode string
20103         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
20104         this section. Add unitypes.
20105
20106 2007-01-08  Bruno Haible  <bruno@clisp.org>
20107
20108         Avoid variable names that conflict with those from libtool.
20109         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
20110         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
20111         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
20112         library_names_spec to acl_library_names_spec, hardcode_* to
20113         acl_hardcode_*.
20114         Reported by Ralf Wildenhues.
20115
20116 2007-01-08  Bruno Haible  <bruno@clisp.org>
20117
20118         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
20119         definition.
20120         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
20121         definition.
20122         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
20123         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
20124         definition.
20125         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
20126         definition.
20127         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
20128         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
20129         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
20130         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
20131         definition.
20132         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
20133         definition.
20134         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
20135         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
20136         GC_USE_<algorithm>.
20137         * lib/gc-libgcrypt.c: Likewise.
20138         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
20139         * modules/gc-arctwo (configure.ac): Likewise.
20140         * modules/gc-des (configure.ac): Likewise.
20141         * modules/gc-hmac-md5 (configure.ac): Likewise.
20142         * modules/gc-hmac-sha1 (configure.ac): Likewise.
20143         * modules/gc-md2 (configure.ac): Likewise.
20144         * modules/gc-md4 (configure.ac): Likewise.
20145         * modules/gc-md5 (configure.ac): Likewise.
20146         * modules/gc-random (configure.ac): Likewise.
20147         * modules/gc-rijndael (configure.ac): Likewise.
20148         * modules/gc-sha1 (configure.ac): Likewise.
20149
20150 2007-01-08  Bruno Haible  <bruno@clisp.org>
20151
20152         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
20153         macro definition.
20154         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
20155         definition.
20156         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
20157         definition.
20158         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
20159         * modules/fcntl-safer (configure.ac): Likewise.
20160         * modules/fopen-safer (configure.ac): Likewise.
20161         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
20162         GNULIB_FWRITEERROR macro definition.
20163
20164 2007-01-08  Bruno Haible  <bruno@clisp.org>
20165
20166         * m4/gnulib-common.m4: New file.
20167         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
20168         (func_get_filelist): Add m4/gnulib-common.m4.
20169
20170 2007-01-08  Bruno Haible  <bruno@clisp.org>
20171
20172         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
20173         command.
20174
20175 2007-01-08  Jim Meyering  <jim@meyering.net>
20176
20177         Use a more robust test for a "can't happen" condition.
20178         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
20179         narrowed the st_size value.  Presuming the "can't happen" condition
20180         is true, that narrowing could conceivably convert an invalid st_size
20181         value into a valid one.  Instead, use a change based on Matthew
20182         Woehlke's original patch.
20183
20184         Slight readability improvement: use an assert-like macro
20185         in place of literal "abort ()" uses.
20186         * lib/fts.c (fts_assert): Define.
20187         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
20188         Use this macro instead of a bare 'abort'.
20189
20190 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
20191
20192         Don't worry about using IRIX 5.3's wctype.h broken definitions;
20193         simply work around them.
20194         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
20195         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
20196         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
20197         declaring.
20198         Don't bother to define as macros, since the standard doesn't require it.
20199         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
20200         longer worry about IRIX 5.3.
20201         (HAVE_WCTYPE_CTMP_BUG): Remove.
20202
20203 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20204
20205         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
20206         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
20207         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20208         Problems reported by Georg Schwarz for IRIX 5.3.
20209
20210         * gnulib-tool (autoconf_minversion): Take the maximum version number
20211         found, not the minimum.  Problem reported by James Youngman.
20212
20213 2007-01-03  Karl Berry  <karl@gnu.org>
20214
20215         * doc/error.texi: new file, explaining interaction with progname.
20216         * doc/gnulib.texi: include it.  Update copyright.
20217
20218 2007-01-03  Simon Josefsson  <simon@josefsson.org>
20219
20220         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
20221         AC_CANONICAL_HOST, to improve autobuild outputs.
20222
20223 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
20224             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20225
20226         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
20227         sockets, server sockets, and other file descriptors.  Count errors
20228         to compute the return value.  Reorder the code a bit to be easier
20229         to follow.  Don't set event bits that were not requested (except
20230         POLLERR and POLLHUP).
20231
20232 2007-01-01  Bruno Haible  <bruno@clisp.org>
20233
20234         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
20235
20236 2007-01-03  Jim Meyering  <jim@meyering.net>
20237
20238         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
20239
20240 2007-01-02  Bruno Haible  <bruno@clisp.org>
20241
20242         * modules/settime (Include): Require timespec.h.
20243         * modules/nanosleep (Include): Likewise.
20244
20245 2007-01-01  Bruno Haible  <bruno@clisp.org>
20246
20247         * gnulib-tool (func_emit_copyright_notice): Bump year.
20248         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
20249
20250 2007-01-01  Bruno Haible  <bruno@clisp.org>
20251
20252         Improve support for OpenBSD.
20253         * build-aux/config.rpath (libname_spec): Export.
20254         (library_names_spec): New variable. Export.
20255         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
20256         library_names_spec from the config.rpath output. Locate shared library
20257         through the name pattern in library_names_spec.
20258
20259 2007-01-01  Eric Blake  <ebb9@byu.net>
20260
20261         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
20262
20263 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20264
20265         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
20266         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
20267         assume the C locale, and avoid an "eval" that could cause trouble.
20268         Problem with SORT reported by Bob Proulx.
20269
20270         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
20271         Define.  Trivial patch from Henning Nielsen Lund, originally
20272         sent to bug-grep@gnu.org today.
20273
20274 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20275
20276         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
20277         struct stat.  Problem reported by Henning Nielsen Lund.
20278         * lib/acl.c: Include acl.h first, to check interface.  Don't
20279         bother to include sys/types.h and sys/stat.h again.
20280
20281 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20282
20283         Import the following change from libc; problem reported by
20284         Sven Verdoolaege.
20285
20286         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
20287
20288         [BZ #1373]
20289         * lib/argp.h: Remove __NTH for __argp_usage inline function.
20290
20291 2006-12-28  Jim Meyering  <jim@meyering.net>
20292
20293         * build-aux/announce-gen: Do not assume that the package
20294         builds any of tar.gz, tar.bz2, and .xdelta files.
20295         Suggestion from Simon Josefsson.
20296
20297 2006-12-28  Simon Josefsson  <simon@josefsson.org>
20298
20299         * modules/announce-gen: New file.
20300
20301 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20302
20303         * lib/mbchar.h: Just include <wctype.h>; the wctype module
20304         handles its gotchas now.
20305         * lib/mbswidth.c: Likewise.
20306         * lib/wcwidth.h: Likewise.
20307         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
20308         and iswcntrl; the wctype module does this stuff now.
20309         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20310         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20311         * modules/mbchar (Depends-on): Add wctype.
20312         * modules/mbswidth (Depends-on): Likewise.
20313         * modules/wcwidth (Depends-on): Likewise.
20314
20315 2006-12-27  Eric Blake  <ebb9@byu.net>
20316
20317         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
20318         module uses more than what <wctype.h> is required to provide.
20319
20320 2006-12-26  Eric Blake  <ebb9@byu.net>
20321
20322         * gnulib-tool (sed_extract_prog): Avoid space-tab.
20323
20324 2006-12-26  Eric Blake  <ebb9@byu.net>
20325
20326         * modules/absolute-header: New module.
20327         * modules/fcntl (Depends-on): Depend on it.
20328         * modules/inttypes (Depends-on): Likewise.
20329         * modules/stdint (Depends-on): Likewise.
20330         * modules/sys_stat (Depends-on): Likewise.
20331         * modules/wctype (Depends-on): Likewise.
20332         * MODULES.html.sh (Support for building libraries and
20333         executables): Document it.
20334
20335 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
20336
20337         * gnulib-tool (SED): Remove, undoing previous change.
20338         The problem was that it broke coreutils on Solaris, because
20339         "sed --posix" leaked into a makefile.
20340         (sed): New alias, if 'alias' and GNU sed.
20341
20342 2006-12-24  Jim Meyering  <jim@meyering.net>
20343
20344         Work around an fchownat bug in glibc-2.4:
20345         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
20346         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
20347         in spite of the -P option.
20348         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
20349         New macros.
20350         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
20351         * modules/openat (Files): Add lib/fchownat.c.
20352         * lib/openat.c (fchownat): Don't define here.  Move to...
20353         * lib/fchownat.c: ...this new file.
20354
20355 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20356
20357         Fix bug reported by Bruno Haible in
20358         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
20359         where quotearg.c didn't compile on Mac OS X 10.2 because it
20360         lacks <wchar.h> and wint_t.
20361         * lib/wctype_.h (__wctype_wint_t): New type.
20362         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
20363         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
20364         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
20365         Arg is now of type __wctype_wint_t, not wint_t.
20366         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
20367         substitute HAVE_WINT_T.
20368         * modules/wctype (Files): Add m4/wint_t.m4.
20369         (wctype.h): Substitute HAVE_WINT_T.
20370
20371 2006-12-23  Bruno Haible  <bruno@clisp.org>
20372
20373         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
20374
20375 2006-12-23  Bruno Haible  <bruno@clisp.org>
20376
20377         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
20378         S_ISLNK.
20379         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
20380         mingw.
20381
20382 2006-12-22  Bruno Haible  <bruno@clisp.org>
20383
20384         * lib/copy-file.c: Include acl.h.
20385         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
20386         Close the file descriptors only after being done with copy_acl.
20387         * modules/copy-file (Depends-on): Add acl.
20388
20389 2006-12-22  Bruno Haible  <bruno@clisp.org>
20390
20391         * gnulib-tool (SED): New variable.
20392         Use $SED instead of sed everywhere.
20393
20394 2006-12-22  Bruno Haible  <bruno@clisp.org>
20395
20396         * modules/no-c++: New file.
20397         * m4/no-c++.m4: New file.
20398         * MODULES.html.sh (Support for building libraries and executables):
20399         Add no-c++.
20400
20401 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20402
20403         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
20404         Include <limits.h>, and use its INT_MAX to rewrite the
20405         j loop so that it does not overflow 'int'.  Problem reported by
20406         Ralf Wildenhues in
20407         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
20408         Play it safe by shifting left by 1 rather than multiplying by 2,
20409         as GCC is less likely to optimize this away when the value
20410         is signed (when it assumes overflow leads to undefined behavior).
20411         Also, don't assume time_t uses two's complement.
20412
20413 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20414
20415         * MODULES.html.sh: New module wctype.
20416         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
20417         * lib/fnmatch.c: Don't bother to include <wchar.h> before
20418         <wctype.h>, since the new wctype module should fix this.
20419         * lib/quotearg.c: Include <wctype.h> unconditionally, since
20420         the wctype module should arrange for it.
20421         * lib/regex_internal.h: Likewise.
20422         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
20423         since the wctype module should handle this now.
20424         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
20425         * modules/fnmatch (Depends-on): Add wctype.
20426         * modules/quotearg (Depends-on): Likewise.
20427         * modules/regex (Depends-on): Likewise.
20428
20429 2006-12-19  Bruno Haible  <bruno@clisp.org>
20430
20431         * lib/strdup.h [C++]: Wrap definitions in extern "C".
20432         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
20433
20434 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20435
20436         * modules/savewd (Depends-on): Fix dependency on fcntl.
20437
20438 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20439
20440         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
20441         conforms to C99, rather than relying on the user's environment
20442         setting of STDINT_H.
20443
20444 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20445         and Eric Blake  <ebb9@byu.net>
20446
20447         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
20448         This is more consistent with the other defines here.
20449         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
20450         Port to z/OS.  Problem reported by Paul Gilmartin.
20451         Change local vars to use gl_ prefix rather than ac_.
20452         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
20453         with other defines.
20454         * modules/double-slash-root: New module.
20455         * modules/dirname (Files): Remove m4/double-slash-root.m4.
20456         (Depends-on): Add double-slash-root.
20457         * MODULES.html.sh (File system functions): Mention new module.
20458
20459 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
20460
20461         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
20462         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
20463         This is for the benefit of gzip, which doesn't do i18n.
20464
20465 2006-12-12  Jim Meyering  <jim@meyering.net>
20466
20467         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
20468         Reported by Andreas Schwab <schwab@suse.de>.
20469
20470 2006-12-12  Bruno Haible  <bruno@clisp.org>
20471
20472         Merge these changes.
20473         2006-09-05  Bruno Haible  <bruno@clisp.org>
20474         * lib/iconvme.c (iconv_string): No need to save and restore errno when
20475         iconv_alloc succeeded.
20476         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
20477         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
20478         test for " && dest " at the end - dest is always != NULL there. Call
20479         iconv with 4xNULL arguments initially, to reset the state. Call iconv
20480         with 2xNULL arguments, also to flush the state storage. Handle the
20481         IRIX iconv behaviour. Realloc the final result, to throw away unused
20482         memory.
20483
20484 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20485
20486         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
20487         and fchmodat unconditionally, since glibc 2.4 has them.
20488         Problem reported by Arkadiusz Miskiewicz.
20489
20490 2006-12-10  Bruno Haible  <bruno@clisp.org>
20491
20492         * gnulib-tool (func_import): Show the include files only for those
20493         modules that are copied and specified.
20494         Reported by Karl Berry.
20495
20496 2006-12-08  Jim Meyering  <jim@meyering.net>
20497
20498         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
20499         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
20500
20501         * build-aux/announce-gen: Add two new options, both optional:
20502         --bootstrap-tools=TOOL_LIST
20503               a comma-separated list of tools, e.g.,
20504               autoconf,automake,bison,gnulib
20505         --gnulib-snapshot-date=DATE
20506               if gnulib is in the bootstrap tool list,
20507               then report this as the snapshot date.
20508               If not specified, use the current date/time.
20509               If you specify a date here, be sure it's UTC.
20510
20511 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20512
20513         * tests/test-argp-2.sh: Fix test to match actual output.
20514         (func_compare): Fix sed script to be portable.
20515
20516 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20517
20518         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
20519         workaround for this case.  It is not autoconfigured now; offhand
20520         it's hard to see how to autoconfigure it.
20521
20522 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
20523
20524         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
20525         a directory that is about to be chowned.  Such a directory's
20526         initial file permissions should permit the owner only and this
20527         should not be changed until after the chown, since the group and
20528         other bits would be incorrect if they granted permission before
20529         the chown.
20530
20531         Fix porting problem for iswctype reported by Georg Schwarz in:
20532         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
20533         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
20534         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
20535         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
20536         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20537
20538 2006-12-03  Jim Meyering  <jim@meyering.net>
20539
20540         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
20541         p->fts_statp may not yet be defined.
20542         (fts_read): Instead, set it in the caller, once p->fts_statp is
20543         sure to be defined, and corresponds to a top-level directory.
20544         This bug made du -x fail.  Here's the coreutils test case:
20545         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
20546         Reported by Mike Frysinger.
20547
20548 2006-12-01  Jim Meyering  <jim@meyering.net>
20549
20550         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
20551         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
20552         Reported by Simon Josefsson.
20553
20554 2006-11-30  Jim Meyering  <jim@meyering.net>
20555
20556         * m4/warning.m4: Use the all-permissive copyright notice
20557         recommended by RMS (rather than LGPL).
20558         * m4/vararrays.m4: Likewise.
20559         * m4/flexmember.m4: Likewise.
20560
20561 2006-11-29  Bruno Haible  <bruno@clisp.org>
20562
20563         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20564         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
20565         using +=.
20566         Reported by Simon Josefsson <simon@josefsson.org>.
20567
20568 2006-11-28  James Youngman <jay@gnu.org>
20569
20570         * README: Advise users that they might find the bug-gnulib@gnu.org
20571         and autotools-announce@gnu.org mailing lists useful.
20572
20573 2006-11-28  Bruno Haible  <bruno@clisp.org>
20574
20575         * m4/ptrdiff_max.m4: Remove file.
20576
20577 2006-11-21  Bruno Haible  <bruno@clisp.org>
20578
20579         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
20580         _AC_COMPUTE_INT.
20581         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20582         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
20583         _AC_COMPUTE_INT.
20584         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20585         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
20586         _AC_COMPUTE_INT.
20587         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20588
20589 2006-11-28  Jim Meyering  <jim@meyering.net>
20590
20591         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
20592         warning from "gcc -Wshadow" about shadowing the builtin.
20593
20594 2006-11-27  Bruno Haible  <bruno@clisp.org>
20595
20596         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
20597         _AC_COMPUTE_INT.
20598         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20599
20600 2006-11-27  Bruno Haible  <bruno@clisp.org>
20601             Paul Eggert  <eggert@cs.ucla.edu>
20602
20603         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
20604
20605 2006-11-26  Bruno Haible  <bruno@clisp.org>
20606
20607         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20608         noinst_LTLIBRARIES.
20609
20610 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
20611             Bruno Haible  <bruno@clisp.org>
20612
20613         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
20614         if compiling with "gcc -ansi".
20615
20616 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
20617
20618         Fix some incompatibilities with gcc -ansi -pedantic.
20619         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
20620         if compiling pedantically with GCC, unless it's C99 or later.
20621         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
20622         it mishandles gcc -ansi -pedantic as well.
20623         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
20624         if gcc -pedantic.
20625         * lib/regexec.c (check_node_accept_bytes): Don't use auto
20626         initializers for struct if -pedantic, unless it's C99 or later.
20627
20628 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
20629
20630         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
20631         Don't close an fd more than once. Identical atimes indicate
20632         success, not failure.
20633
20634 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
20635
20636         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
20637
20638 2006-11-23  Jim Meyering  <jim@meyering.net>
20639
20640         * build-aux/announce-gen: New file.  From coreutils.
20641
20642 2006-11-22  Jim Meyering  <jim@meyering.net>
20643
20644         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
20645         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
20646         (fts_read): Use a temporary to narrow the overused st_size member
20647         before using it in a switch statement.  Reported by Matthew Woehlke.
20648
20649         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
20650         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20651
20652 2006-11-20  Bruno Haible  <bruno@clisp.org>
20653
20654         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
20655         changequote instead of pairs of brackets.
20656         Reported by Andreas Schwab <schwab@suse.de>.
20657
20658 2006-11-21  Jim Meyering  <jim@meyering.net>
20659
20660         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
20661         so as to remain compatible with older compilers.
20662         Patch from Michael Deutschmann.
20663
20664 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20665
20666         * MODULES.html.sh (File system functions): Add openat.
20667
20668         * lib/openat.h (rpl_fstatat): New macro, if
20669         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
20670         (fstatat): Define to rpl_fstatat under the same conditions,
20671         unless COMPILING_FSTATAT.
20672         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
20673         seems to have the bug.
20674         * lib/fstatat.c: New file.
20675         * modules/openat (Files): Add it.
20676
20677 2006-11-20  Bruno Haible  <bruno@clisp.org>
20678
20679         * Makefile: New file.
20680
20681 2006-11-20  Jim Meyering  <jim@meyering.net>
20682
20683         The beginnings of syntax-related checks for gnulib.
20684         * lib/Makefile: New file.
20685         * lib/t-idcache: New script.  Ensure that the two halves of
20686         idcache.c stay in sync.
20687
20688         * lib/idcache.c: Adjust comments in user- and group- portions to
20689         be more accurate, and to be consistent with one another.
20690
20691 2006-11-20  Jim Meyering  <jim@meyering.net>
20692
20693         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
20694         continue using the flexible array member (thus, this module performs
20695         half as many malloc calls), with the addition that...
20696         (getgroup, getuser): Consistently record a non-match via an empty
20697         "name" string, and map an empty string match to a NULL return value.
20698         * modules/idcache (Depends-on): Re-add flexmember.
20699
20700         * lib/idcache.c (getuser): Remove all uses of the register keyword.
20701         (getuidbyname, getgroup, getgidbyname): Likewise.
20702
20703         Use cleaner syntax: NULL rather than 0.
20704         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
20705
20706 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20707
20708         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
20709         It mishandled the case where the group was missing.
20710         Problem reported by Greg Schafer.
20711         * modules/idcache: Likewise.
20712
20713 2006-11-18  Jim Meyering  <jim@meyering.net>
20714
20715         * check-module (%exempt_header): Add exception for some
20716         conditionally-included headers.
20717
20718         * modules/i-ring (Depends-on): Add verify.
20719         (License): Change to LGPL.
20720
20721 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20722
20723         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
20724         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
20725         and inttostr.h.  Use snprintf rather than uinttostr, so that
20726         LGPLed code doesn't depend on GPLed.
20727
20728 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20729
20730         * modules/inline (License): Change from GPL to LGPL.
20731
20732 2006-11-17  Jim Meyering  <jim@meyering.net>
20733
20734         * modules/d-type (License): Switch to LGPL.
20735
20736 2006-11-15  Bruno Haible  <bruno@clisp.org>
20737
20738         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
20739
20740 2006-11-15  Eric Blake  <ebb9@byu.net>
20741
20742         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
20743         the module dependency.
20744
20745 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20746             Bruno Haible  <bruno@clisp.org>
20747
20748         * gnulib-tool (func_create_testdir): Add license consistency check.
20749
20750 2006-11-15  Eric Blake  <ebb9@byu.net>
20751
20752         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
20753         random "(cached)" in configure output.
20754
20755 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20756
20757         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
20758         test for conforming inttypes.h is both announced and cached.
20759
20760         * MODULES.html.sh (seen_modules, seen_files): New variables.
20761         (func_module): Rewrite to use a few less gnulib-tool and sed
20762         invocations.  Avoid a couple of quadratic algorithms for ...
20763         (missed_modules, missed_files): ... these, with ...
20764         (func_append, func_tmpdir): ... these new functions, from
20765         gnulib-tool.  Analogously, install traps for cleanup.
20766
20767         * tests/test-gc.c (main): Remove unused variables.
20768         * tests/test-read-file.c: Include stdlib.h, for 'free'.
20769
20770 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
20771
20772         * modules/inttostr (License): Change to LGPL.
20773
20774 2006-11-14  Eric Blake  <ebb9@byu.net>
20775
20776         * modules/tempname (License): Change to LGPL.
20777
20778 2006-11-14  Eric Blake  <ebb9@byu.net>
20779
20780         * doc/functions.texi (Function Portability): *printf functions on
20781         Cygwin now understand all POSIX size specifiers.
20782
20783 2006-11-14  Bruno Haible  <bruno@clisp.org>
20784
20785         * modules/c-ctype (License): Change to LGPL.
20786
20787 2006-11-12  Bruno Haible  <bruno@clisp.org>
20788
20789         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20790         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
20791         for GNOME libraries, for which the include files are installed in
20792         subdirectories of $prefix/include.
20793
20794 2006-11-12  Bruno Haible  <bruno@clisp.org>
20795
20796         * m4/lib-link.m4: Require at least autoconf-2.54.
20797         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
20798         name to underscores for the --with option.
20799
20800 2006-11-13  Bruno Haible  <bruno@clisp.org>
20801
20802         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
20803         the tests directory.
20804         Reported by Ralf Wildenhues.
20805
20806 2006-11-13  Bruno Haible  <bruno@clisp.org>
20807
20808         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
20809         (func_emit_initmacro_end): Undo the override here.
20810         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
20811         Works around the famous automake error in coreutils.
20812
20813 2006-11-13  Eric Blake  <ebb9@byu.net>
20814
20815         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
20816         element, not its node.
20817
20818 2006-11-12  Bruno Haible  <bruno@clisp.org>
20819
20820         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
20821         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
20822
20823 2006-11-12  Bruno Haible  <bruno@clisp.org>
20824
20825         * gnulib-tool: New option --local-symlink.
20826         (func_usage): Document it.
20827         (lsymbolic): New variable.
20828         (func_import, func_create_testdir): If --symlink was not specified,
20829         test whether --local-symlink was specified and the file comes from
20830         the local_gnulib_dir.
20831
20832 2006-11-12  Bruno Haible  <bruno@clisp.org>
20833
20834         * gnulib-tool (func_ln): New function.
20835         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
20836
20837 2006-11-12  Bruno Haible  <bruno@clisp.org>
20838
20839         Finish support for source files in subdirectories.
20840         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
20841         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
20842         AUTOMAKE_OPTIONS.
20843         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
20844
20845 2006-11-12  Bruno Haible  <bruno@clisp.org>
20846
20847         * gnulib-tool (func_get_automake_snippet): Synthesize also an
20848         EXTRA_lib_SOURCES augmentation.
20849         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
20850
20851 2006-11-12  Jim Meyering  <jim@meyering.net>
20852
20853         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
20854         file descriptors.  This also averts a failure on systems with
20855         native openat support when a traversed directory lacks "x" access.
20856         * lib/fts_.h: Include "i-ring.h"
20857         (struct FTS) [fts_fd_ring]: New member.
20858         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
20859         (FCHDIR): Add parentheses.
20860         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
20861         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
20862         When descending, rather than simply closing the previous
20863         fts_cwd_fd value, push that file descriptor onto the ring.
20864         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
20865         (fts_open): Initialize the new fd_ring member.
20866         (fts_close): Clear the ring.
20867         (fts_safe_changedir): When possible, use our new fd_ring to skip
20868         the diropen and fstat and dev/ino comparison that would normally
20869         accompany a virtual `chdir ("..")'.
20870
20871         * modules/fts (Depends-on): Add i-ring.
20872         * modules/i-ring: New module.
20873         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
20874         * m4/i-ring.m4: New file.
20875
20876 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20877
20878         * gnulib-tool (func_create_testdir): Fix replacement of
20879         `build-aux' in configure.ac.  Run autotools in gltests
20880         subdirectory.
20881         (func_create_testdir, func_create_megatestdir, test): There is
20882         no need for '--force' in most autotool invocations in a new
20883         tree.  Actually fail the whole test if any of the tools, or the
20884         configure or make stages fail.
20885
20886         Sync from Automake.
20887         * build-aux/gnupload: Revert last change.  Add pointer to upload
20888         instructions of the GNU Maintenance Instructions.
20889         Suggestion by Karl Berry.
20890
20891 2006-11-10  Jim Meyering  <jim@meyering.net>
20892
20893         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
20894
20895 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20896
20897         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
20898         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
20899         (bind_textdomain_codeset) [! ENABLE_NLS]:
20900         Evaluate all the arguments.  That way, callers get compatible behavior
20901         if the arguments have side effects.  Also, it avoids some GCC
20902         diagnostics in some cases; Joel E. Denny reported problems when Bison
20903         was configured with --enable-gcc-warnigs.
20904
20905 2006-11-10  Jim Meyering  <jim@meyering.net>
20906
20907         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
20908         relevant options in CFLAGS (like -O, -fno-inline) are taken into
20909         account.
20910
20911 2006-11-10  Jim Meyering  <jim@meyering.net>
20912
20913         * modules/inline: New file/module.
20914         * modules/xalloc (Files): Remove m4/inline.m4.
20915         (Depends-on): Add inline, instead.
20916         * modules/oset: Likewise.
20917         * modules/list: Likewise.
20918
20919 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20920
20921         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
20922         Problem reported by Matthew Woehlke.
20923
20924 2006-11-09  Bruno Haible  <bruno@clisp.org>
20925
20926         * lib/tempname.c (gen_tempname): Remove variant that invokes
20927         __gen_tempname.
20928         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
20929         __gen_tempname.
20930
20931 2006-11-08  Bruno Haible  <bruno@clisp.org>
20932
20933         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
20934         to 'yes' instead of 'cross-compiling'.
20935
20936 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20937
20938         * lib/quotearg.h (quotearg_free): New decl.
20939         * lib/quotearg.c (quotearg_free): New function.
20940         (slot0, nslots, slotvec0, slotvec):
20941         Now file-scope so that quotearg_free can get at them.
20942
20943 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20944
20945         Sync from Automake.
20946         * build-aux/gnupload: Add missing 'gnu' to example URL.
20947         Report by Karl Berry.
20948
20949 2006-11-08  Bruno Haible  <bruno@clisp.org>
20950
20951         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
20952         Suggested by Paul Eggert.
20953
20954 2006-11-08  Jim Meyering  <jim@meyering.net>
20955
20956         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
20957         It's already included if !_LIBC.
20958         (fts_safe_changedir): Add a comment.
20959
20960 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20961
20962         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
20963         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
20964         Matthew Woehlke.
20965
20966         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
20967         definitions up, to avoid colliding with change below.
20968         (static_inline) [HAVE_INLINE]: New macro.
20969         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20970         Provide extern decls when !HAVE_INLINE.  Do not define unless
20971         static_inline is defined, either by us or by xmalloc.c.  Use
20972         static_inline rather than static inline.
20973         (XCALLOC): Optimize sizeof(T) = 1 case.
20974         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
20975
20976 2006-11-07  Bruno Haible  <bruno@clisp.org>
20977
20978         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
20979         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
20980         AC_C_INLINE.
20981         * modules/xalloc (Files): Add m4/inline.m4.
20982
20983 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20984
20985         * README: Fix typo.
20986         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
20987         (Miscellanous Notes): ...from this.
20988
20989 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20990
20991         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20992         Mention that offsetof should be used instead of sizeof.
20993         From Bruno Haible.
20994
20995 2006-11-07  Bruno Haible  <bruno@clisp.org>
20996
20997         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
20998
20999 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21000
21001         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21002         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
21003         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21004         (gl_tree_add_before, gl_tree_add_after):
21005         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
21006         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
21007         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
21008         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
21009         (gl_linked_add_after, gl_linked_add_at): Likewise.
21010         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
21011         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21012         (gl_tree_add_before, gl_tree_add_after): Likewise.
21013         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
21014         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
21015         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21016
21017 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21018
21019         * lib/gl_oset.h: Use C comment style, not C++ comment style.
21020
21021 2006-11-06  Bruno Haible  <bruno@clisp.org>
21022
21023         * m4/inline.m4: New file.
21024         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
21025         * modules/list (Files): Add m4/inline.m4.
21026         * modules/oset (Files): Likewise.
21027
21028 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21029
21030         * lib/idcache.c: Include <stddef.h>, for offsetof.
21031         (struct userid.name): Change from char * to a flexible array member.
21032         All uses changed.
21033         * modules/idcache (Depends-on): Add flexmember.
21034
21035         * MODULES.html.sh (Core language properties): New module flexmember.
21036         * modules/flexmember, m4/flexmember.m4: New files.
21037
21038         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
21039         inline functions that are identical with the old xnmalloc_inline,
21040         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
21041         that we can avoid some unnecessary integer multiplications and
21042         divisions in the common case where the element size is known at
21043         compile time.
21044         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
21045         needed.
21046         (xnboundedmalloc): Remove.
21047         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
21048         arguments, for consistency with rest of this header.
21049         (xcharalloc): Rewrite using XNMALLOC.
21050         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
21051         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
21052         versions have been moved to lib/xalloc.h and renamed to be the
21053         non-*_inline versions.
21054         (xmalloc, xrealloc): Implement without reference to the xnmalloc
21055         and xnrealloc functions, since those functions are now inline and
21056         now call us.
21057         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
21058         renaming described above.
21059         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
21060         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
21061         captures the dependency in AC_C_INLINE.
21062
21063         New module canonicalize-lgpl, proposed by Charles Wilson in
21064         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
21065         with a few small changes afterwards.
21066         * MODULES.html.sh (File system functions): New module
21067         canonicalize-lgpl.
21068         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
21069         and canonicalize_file_name.
21070         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
21071         * modules/canonicalize-lgpl: New files.
21072
21073 2006-11-05  Bruno Haible  <bruno@clisp.org>
21074
21075         * gnulib-tool (func_import, func_create_testdir): Create directories
21076         also for files in subdirectories of lib/.
21077
21078 2006-11-05  Bruno Haible  <bruno@clisp.org>
21079
21080         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
21081         ANSI C compliant.
21082
21083 2006-11-03  Bruno Haible  <bruno@clisp.org>
21084
21085         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21086         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
21087         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
21088         (xnboundedmalloc): New inline function.
21089         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
21090         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
21091         xmalloc.
21092         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
21093         xmalloc.
21094         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
21095         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
21096         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
21097         xmalloc.
21098         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21099         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
21100         xmalloc.
21101         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
21102         gl_tree_add_after): Use XMALLOC instead of xmalloc.
21103         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
21104         xmalloc.
21105         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21106         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
21107         gl_tree_add_after): Use XMALLOC instead of xmalloc.
21108         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
21109         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
21110         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
21111         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
21112
21113 2006-11-03  Bruno Haible  <bruno@clisp.org>
21114
21115         * lib/c-ctype.h [C++]: Define functions without name mangling.
21116         * lib/fwriteerror.h [C++]: Likewise.
21117         * lib/gcd.h [C++]: Likewise.
21118         * lib/linebreak.h [C++]: Likewise.
21119
21120 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
21121
21122         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
21123         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
21124         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
21125         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
21126         Check for functions and headers just once.
21127         Check for declaration of canonicalize_file_name.
21128         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
21129
21130 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21131
21132         * gnulib-tool (func_import): Fix typo in actioncmd.
21133
21134 2006-11-02  Bruno Haible  <bruno@clisp.org>
21135
21136         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
21137         newline sequence in the Makefile.am snippet as a space, like "make"
21138         does.
21139         Reported by Roger Persson <perrog@gmail.com>.
21140
21141 2006-11-01  Bruno Haible  <bruno@clisp.org>
21142
21143         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
21144         already declared in <string.h>.
21145         * lib/strcase.h (strncasecmp): Don't declare it if yes.
21146
21147 2006-11-01  Bruno Haible  <bruno@clisp.org>
21148
21149         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
21150         * lib/strcase.h: Include <string.h>.
21151         (strcasecmp): Define to rpl_strcasecmp here.
21152
21153 2006-11-01  Bruno Haible  <bruno@clisp.org>
21154
21155         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
21156
21157 2006-11-01  Eric Blake  <ebb9@byu.net>
21158
21159         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
21160
21161         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
21162
21163 2006-10-29  Bruno Haible  <bruno@clisp.org>
21164
21165         Make it compile in C++ mode.
21166         * lib/full-write.c (full_rw): Add a cast.
21167
21168 2006-11-01  Bruno Haible  <bruno@clisp.org>
21169
21170         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
21171         be POSIX compliant.
21172         Reported by Roger Persson <perrog@gmail.com>.
21173
21174 2006-11-01  Eric Blake  <ebb9@byu.net>
21175
21176         * lib/getopt_.h: Fix comments.
21177
21178 2006-10-31  Eric Blake  <ebb9@byu.net>
21179
21180         * modules/tmpdir (Depends-on): Add sys_stat.
21181         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
21182         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
21183         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
21184         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
21185         tempname.
21186
21187 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
21188
21189         Avoid some C++ diagnostics reported by Bruno Haible.
21190         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
21191         xmalloc.
21192         (quotearg_alloc): Use xcharalloc rather than xmalloc.
21193         (struct slotvec): Move to top level.
21194         (quotearg_n_options): Rewrite to avoid xmalloc.
21195         * lib/xalloc.h (xcharalloc): New function.
21196         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
21197         [defined __cplusplus]: Add function template that provides result
21198         type propagation.  This part of the change is from Bruno Haible.
21199
21200 2006-10-29  Bruno Haible  <bruno@clisp.org>
21201
21202         Make it compile in C++ mode.
21203         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
21204         * lib/strnlen1.c (strnlen1): Cast memchr result.
21205         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
21206         * lib/clean-temp.c (string_equals, string_hash): Add casts.
21207         (create_temp_dir): Rename local variable 'template'.
21208         (compile_csharp_using_sscli): Add cast.
21209         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
21210         * lib/findprog.c (find_in_path): Likewise.
21211         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
21212         * lib/wait-process.c (register_slave_subprocess): Likewise.
21213
21214 2006-10-22  Bruno Haible  <bruno@clisp.org>
21215
21216         * modules/tsearch: New file.
21217         * lib/tsearch.h: New file.
21218         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
21219         * m4/tsearch.m4: New file.
21220         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
21221
21222 2006-10-29  Eric Blake  <ebb9@byu.net>
21223
21224         * lib/arcfour.c: Assume config.h.
21225         * lib/arctwo.c: Likewise.
21226         * lib/base64.c: Likewise.
21227         * lib/check-version.c: Likewise.
21228         * lib/crc.c: Likewise.
21229         * lib/des.c: Likewise.
21230         * lib/gc-gnulib.c: Likewise.
21231         * lib/gc-libgcrypt.c: Likewise.
21232         * lib/gc-pbkdf2-sha1.c: Likewise.
21233         * lib/getaddrinfo.c: Likewise.
21234         * lib/getdelim.c: Likewise.
21235         * lib/getline.c: Likewise.
21236         * lib/hmac-md5.c: Likewise.
21237         * lib/hmac-sha1.c: Likewise.
21238         * lib/iconvme.c: Likewise.
21239         * lib/md2.c: Likewise.
21240         * lib/md4.c: Likewise.
21241         * lib/memxor.c: Likewise.
21242         * lib/read-file.c: Likewise.
21243         * lib/readline.c: Likewise.
21244         * lib/rijndael-alg-fst.c: Likewise.
21245         * lib/rijndael-api-fst.c: Likewise.
21246         * lib/xgetdomainname.c: Likewise.
21247
21248 2006-10-28  Eric Blake  <ebb9@byu.net>
21249
21250         * lib/xstrndup.c: Assume config.h.
21251
21252 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
21253
21254         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
21255         stat-macros.h is now for our own macros, whereas stat_h is for
21256         macros in the <sys/stat.h> name space.
21257         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
21258         (STAT_MACROS_H): Remove.
21259         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
21260         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
21261         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
21262         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
21263         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
21264         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
21265         Move these macros to ...
21266         * lib/stat_.h: here.  Don't include stat-macros.h.
21267         * lib/canonicalize.c: Don't include stat-macros.h.
21268         * lib/chown.c: Likewise.
21269         * lib/euidaccess.c: Likewise.
21270         * lib/file-type.c: Likewise.
21271         * lib/filemode.c: Likewise.
21272         * lib/glob.c: Likewise.
21273         * lib/isapipe.c: Likewise.
21274         * lib/lchown.c: Likewise.
21275         * lib/lstat.c: Likewise.
21276         * lib/mkdir-p.c: Likewise.
21277         * lib/rmdir.c: Likewise.
21278         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
21279         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
21280         unless mkdir isn't declared, to speed up 'configure'.
21281         Always create sys/stat.h, since it's unlikely any real sys/stat.h
21282         would define all the S_* symbols.
21283         * modules/canonicalize (Depends-on):
21284         Depend on sys_stat, not stat-macros.
21285         * modules/chown: Likewise.
21286         * modules/euidaccess: Likewise.
21287         * modules/filemode: Likewise.
21288         * modules/file-type: Likewise.
21289         * modules/glob: Likewise.
21290         * modules/isapipe: Likewise.
21291         * modules/lchown: Likewise.
21292         * modules/lstat: Likewise.
21293         * modules/mkancesdirs: Likewise.
21294         * modules/rmdir: Likewise.
21295         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
21296         * modules/modechange: Likewise.
21297         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
21298         (configure.ac): Remove gl_STAT_MACROS.
21299         * modules/sys_stat (Depends-on): Remove stat-macros.
21300
21301 2006-10-27  Bruno Haible  <bruno@clisp.org>
21302
21303         * m4/signed.m4: Remove file.
21304         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
21305         invocation.
21306         * modules/vasnprintf (Files): Remove m4/signed.m4.
21307
21308 2006-10-27  Bruno Haible  <bruno@clisp.org>
21309
21310         Update to GNU gettext 0.16.
21311         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
21312         m4/inttypes-h.m4, m4/signed.m4.
21313         * m4/gettext.m4: Update to GNU gettext 0.16.
21314         * m4/intl.m4: New file, from GNU gettext.
21315         * m4/intldir.m4: New file, from GNU gettext.
21316         * config/srclist.txt: Update
21317
21318 2006-10-27  Eric Blake  <ebb9@byu.net>
21319
21320         * MODULES.html.sh: Document tempname.
21321         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
21322         dependencies.
21323         (Files): Move lib/tempname.c...
21324         * modules/tempname: ...to this new module.
21325         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
21326         (gl_PREREQ_TEMPNAME): Move...
21327         * m4/tempname.m4: ...to this new file.
21328         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
21329         * modules/sys_stat (Depends-on): Add stat-macros.
21330         * lib/stat_.h (includes): Pick up stat macros.
21331         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
21332         if stat macros are broken.
21333         * lib/tempname.c (includes): No need to include "stat-macros.h".
21334         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
21335         (direxists, __path_search) [!_LIBC]: Don't compile these in
21336         gnulib; the tmpdir module covers that.
21337         * lib/tempname.h: New file.
21338
21339 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21340
21341         * COPYING: Explain how gnulib-tool converts licence headers.
21342         Almost all wording by Eric Blake.
21343
21344 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
21345
21346         * lib/mbchar.h (is_basic_table): Make read-only.
21347         * lib/mbchar.c (is_basic_table): Likewise.
21348         Reported by John Darrington.
21349
21350 2006-10-25  Bruno Haible  <bruno@clisp.org>
21351
21352         * lib/progname.h (set_program_name): Undefine before defining.
21353
21354 2006-10-25  Bruno Haible  <bruno@clisp.org>
21355
21356         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
21357         false for non-gcc C++ compilers.
21358         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21359
21360 2006-10-24  Bruno Haible  <bruno@clisp.org>
21361
21362         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
21363         iconv implementations like Irix iconv.
21364
21365 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21366
21367         * modules/vararrays: New file.
21368         * m4/vararrays.m4: New file, taken from diffutils.
21369         * MODULES.html.sh: New module vararrays.
21370
21371 2006-10-24  Karl Berry  <karl@gnu.org>
21372
21373         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
21374         Don't call GNU Unix.
21375
21376 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21377
21378         * users.txt: Add Libtool.
21379
21380         Sync from Libtool:
21381
21382         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21383
21384         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
21385         to gnulib's policy of including config.h unconditionally.
21386
21387 2006-10-24  Bruno Haible  <bruno@clisp.org>
21388
21389         * modules/wcwidth (Files): Add m4/wint_t.m4.
21390         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
21391         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
21392
21393 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21394
21395         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
21396         to pacify GCC with some -W flags enabled.  Problem reported by
21397         Bruno Haible.
21398
21399 2006-10-24  Jim Meyering  <jim@meyering.net>
21400
21401         * MODULES.html.sh: Remove uinttostr.  It's not a module.
21402         Reported by Karl Berry.
21403
21404 2006-10-23  Bruno Haible  <bruno@clisp.org>
21405
21406         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
21407
21408 2006-10-24  Bruno Haible  <bruno@clisp.org>
21409
21410         * lib/gl_list.h: Use C comment style, not C++ comment style.
21411
21412 2006-10-23  Eric Blake  <ebb9@byu.net>
21413
21414         * lib/getaddrinfo.c (includes): Add missing include.
21415
21416 2006-10-23  Bruno Haible  <bruno@clisp.org>
21417             Paul Eggert  <eggert@cs.ucla.edu>
21418
21419         Ability to rename obstack_free.
21420         * lib/obstack.h (__obstack_free): New macro. Declare instead of
21421         obstack_free.
21422         (obstack_free): Invoke the __obstack_free macro.
21423         * lib/obstack.c (obstack_free): Use __obstack_free macro.
21424
21425 2006-10-23  Bruno Haible  <bruno@clisp.org>
21426             Paul Eggert  <eggert@cs.ucla.edu>
21427
21428         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
21429         __argc, __argv from the declaration. (They are defined as macros on
21430         mingw.)
21431
21432 2006-10-22  Bruno Haible  <bruno@clisp.org>
21433
21434         * doc/gnulib-intro.texi: New file.
21435         * doc/gnulib.texi: Include it.
21436
21437 2006-10-21  Bruno Haible  <bruno@clisp.org>
21438
21439         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
21440         "Introduction", "Miscellanous Notes", "Particular Modules".
21441
21442 2006-10-21  Bruno Haible  <bruno@clisp.org>
21443
21444         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21445         Change mostlyclean-local rule to avoid sh syntax error from bash
21446         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
21447
21448 2006-10-23  Jim Meyering  <jim@meyering.net>
21449
21450         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
21451         in place of snprintf.
21452
21453         * modules/inttostr (Files): Add lib/uinttostr.c.
21454         * lib/uinttostr.c (inttostr): New file/function.
21455         * lib/inttostr.h (uinttostr): Declare.
21456         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
21457         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21458         Add uinttostr.
21459         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
21460
21461 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21462
21463         * lib/canonicalize.c (ELOOP): Define if not already defined.
21464         Problem reported by Bruno Haible in
21465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
21466
21467 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21468
21469         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
21470         Problem reported by Perry Smith and Ville Laurikari.
21471
21472         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
21473         uses.
21474
21475 2006-10-19  Bruno Haible  <bruno@clisp.org>
21476
21477         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
21478         for mingw.
21479
21480 2006-10-19  Bruno Haible  <bruno@clisp.org>
21481
21482         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
21483         Needed for mingw.
21484
21485 2006-10-19  Bruno Haible  <bruno@clisp.org>
21486
21487         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
21488
21489 2006-10-19  Bruno Haible  <bruno@clisp.org>
21490
21491         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
21492         it.
21493
21494 2006-10-19  Bruno Haible  <bruno@clisp.org>
21495
21496         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
21497         invocation.
21498
21499 2006-10-19  Bruno Haible  <bruno@clisp.org>
21500
21501         * gnulib-tool (func_create_testdir): Don't include ftruncate and
21502         mountlist by default.
21503
21504 2006-10-16  Bruno Haible  <bruno@clisp.org>
21505
21506         * lib/c-strstr.c: Include c-strstr.h.
21507
21508 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21509
21510         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
21511         in a slash.
21512
21513 2006-10-18  Bruno Haible  <bruno@clisp.org>
21514
21515         * lib/lock.h [C++]: Wrap definitions in extern "C".
21516
21517 2006-10-18  Bruno Haible  <bruno@clisp.org>
21518
21519         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
21520         gl_LIBOBJS list.
21521
21522 2006-10-18  Bruno Haible  <bruno@clisp.org>
21523
21524         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
21525
21526 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21527
21528         * lib/xstrtol.h: Include gettext.h.
21529         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
21530         Problem reported by Eric Blake.
21531         * modules/xstrtol (Depends-on): Add gettext-h.
21532
21533 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
21534
21535         * lib/strftime.c (advance): New macro.
21536         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
21537         incomplete type, so you can't add 0 to it.  Problem and patch
21538         reported by Eelco Dolstra for dietlibc.
21539
21540 2006-10-18  Jim Meyering  <jim@meyering.net>
21541
21542         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
21543         type for a local, and rename it: s/up/user_proc/.
21544
21545 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
21546
21547         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
21548         READ_UTMP_USER_PROCESS.
21549         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
21550
21551 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
21552
21553         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
21554         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
21555
21556 2006-10-17  Eric Blake  <ebb9@byu.net>
21557
21558         * lib/sigprocmask.c (sigprocmask): Fix typo.
21559
21560         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
21561
21562         * modules/clean-temp (Makefile.am): Don't add to make output...
21563         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
21564         config.h.
21565
21566 2006-10-17  Bruno Haible  <bruno@clisp.org>
21567
21568         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
21569         differently if DEFAULT_TEXT_DOMAIN is set.
21570
21571 2006-10-16  Bruno Haible  <bruno@clisp.org>
21572
21573         * lib/clean-temp.c: Include fwriteerror.h.
21574
21575 2006-10-16  Bruno Haible  <bruno@clisp.org>
21576
21577         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
21578
21579 2006-10-16  Bruno Haible  <bruno@clisp.org>
21580
21581         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
21582         * lib/sigprocmask.h: Include <sys/types.h>.
21583         (sigset_t): Use the system's definition if present.
21584
21585 2006-10-17  Eric Blake  <ebb9@byu.net>
21586
21587         * lib/xvasprintf.c (includes): Assume config.h.
21588         * lib/xasprintf.c (includes): Likewise.
21589
21590 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21591
21592         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
21593         at least as wide as intmax_t.
21594
21595 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
21596
21597         (Imported from Automake.)
21598         * build-aux/gnupload: Update to version 1.1 of directive file.
21599
21600 2006-10-16  Eric Blake  <ebb9@byu.net>
21601
21602         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
21603         match Automake 1.10a.
21604
21605 2006-10-14  Bruno Haible  <bruno@clisp.org>
21606
21607         * modules/sigprocmask: New file.
21608         * lib/sigprocmask.h: New file.
21609         * lib/sigprocmask.c: New file.
21610         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
21611         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
21612         request sigprocmask.o.
21613         (gl_PREREQ_SIGPROCMASK): New macro.
21614         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
21615         (Depends-on): Add sigprocmask.
21616         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
21617         gt_SIGNALBLOCKING. Test for 'raise' only once.
21618         * lib/fatal-signal.c: Include sigprocmask.h.
21619         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
21620         unblock_fatal_signals): Define always.
21621         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21622         sigprocmask.
21623
21624 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21625
21626         Sync from Automake.
21627         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
21628         which incorrectly sets the mode of an existing destination
21629         directory.  In some cases the unpatched install-sh could do the
21630         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
21631         system.  We hope this is rare in practice, but it's clearly worth
21632         fixing.  Problem reported by Alex Unleashed in
21633         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
21634         Also, don't bother to check for -m bugs unless we're using -m;
21635         suggested by Stepan Kasal.
21636
21637 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21638
21639         Sync from Automake.
21640         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
21641         `-c' flag, so they appear at the same position as in %FASTDEP%
21642         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
21643         which ignores unknown options only after the first non-option.
21644         Bug report against M4 by Nelson H. F. Beebe.
21645
21646 2006-10-13  Jim Meyering  <jim@meyering.net>
21647
21648         Fix a bug in yesterday's change.
21649         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
21650         p->fts_statp->st_dev would be used uninitialized.
21651         Ensures that we always call fts_stat on the very first entry.
21652         Miklos Szeredi reported that find -xdev stopped working.
21653
21654 2006-10-12  Bruno Haible  <bruno@clisp.org>
21655
21656         * gnulib-tool (func_get_automake_snippet): Append an automatically
21657         computed EXTRA_DIST augmentation.
21658         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
21659         * modules/alloca-opt (Makefile.am): Likewise.
21660         * modules/allocsa (Makefile.am): Likewise.
21661         * modules/arcfour (Makefile.am): Likewise.
21662         * modules/arctwo (Makefile.am): Likewise.
21663         * modules/argmatch (Makefile.am): Likewise.
21664         * modules/argz (Makefile.am): Likewise.
21665         * modules/atexit (Makefile.am): Likewise.
21666         * modules/backupfile (Makefile.am): Likewise.
21667         * modules/byteswap (Makefile.am): Likewise.
21668         * modules/c-strtod (Makefile.am): Likewise.
21669         * modules/c-strtold (Makefile.am): Likewise.
21670         * modules/calloc (Makefile.am): Likewise.
21671         * modules/canon-host (Makefile.am): Likewise.
21672         * modules/canonicalize (Makefile.am): Likewise.
21673         * modules/chdir-long (Makefile.am): Likewise.
21674         * modules/chdir-safer (Makefile.am): Likewise.
21675         * modules/check-version (Makefile.am): Likewise.
21676         * modules/chown (Makefile.am): Likewise.
21677         * modules/cloexec (Makefile.am): Likewise.
21678         * modules/close-stream (Makefile.am): Likewise.
21679         * modules/closeout (Makefile.am): Likewise.
21680         * modules/crc (Makefile.am): Likewise.
21681         * modules/csharpexec (Makefile.am): Likewise.
21682         * modules/cycle-check (Makefile.am): Likewise.
21683         * modules/des (Makefile.am): Likewise.
21684         * modules/dev-ino (Makefile.am): Likewise.
21685         * modules/dirfd (Makefile.am): Likewise.
21686         * modules/dirname (Makefile.am): Likewise.
21687         * modules/dup2 (Makefile.am): Likewise.
21688         * modules/eealloc (Makefile.am): Likewise.
21689         * modules/error (Makefile.am): Likewise.
21690         * modules/euidaccess (Makefile.am): Likewise.
21691         * modules/exclude (Makefile.am): Likewise.
21692         * modules/exitfail (Makefile.am): Likewise.
21693         * modules/fcntl-safer (Makefile.am): Likewise.
21694         * modules/fcntl (Makefile.am): Likewise.
21695         * modules/file-type (Makefile.am): Likewise.
21696         * modules/fileblocks (Makefile.am): Likewise.
21697         * modules/filemode (Makefile.am): Likewise.
21698         * modules/filenamecat (Makefile.am): Likewise.
21699         * modules/fnmatch (Makefile.am): Likewise.
21700         * modules/fopen-safer (Makefile.am): Likewise.
21701         * modules/fpending (Makefile.am): Likewise.
21702         * modules/fprintftime (Makefile.am): Likewise.
21703         * modules/free (Makefile.am): Likewise.
21704         * modules/fsusage (Makefile.am): Likewise.
21705         * modules/ftruncate (Makefile.am): Likewise.
21706         * modules/fts (Makefile.am): Likewise.
21707         * modules/gc-arcfour (Makefile.am): Likewise.
21708         * modules/gc-des (Makefile.am): Likewise.
21709         * modules/gc-hmac-md5 (Makefile.am): Likewise.
21710         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
21711         * modules/gc-md4 (Makefile.am): Likewise.
21712         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21713         * modules/gc-sha1 (Makefile.am): Likewise.
21714         * modules/gc (Makefile.am): Likewise.
21715         * modules/getaddrinfo (Makefile.am): Likewise.
21716         * modules/getcwd (Makefile.am): Likewise.
21717         * modules/getdelim (Makefile.am): Likewise.
21718         * modules/getdomainname (Makefile.am): Likewise.
21719         * modules/getgroups (Makefile.am): Likewise.
21720         * modules/gethostname (Makefile.am): Likewise.
21721         * modules/gethrxtime (Makefile.am): Likewise.
21722         * modules/getline (Makefile.am): Likewise.
21723         * modules/getloadavg (Makefile.am): Likewise.
21724         * modules/getlogin_r (Makefile.am): Likewise.
21725         * modules/getndelim2 (Makefile.am): Likewise.
21726         * modules/getopt (Makefile.am): Likewise.
21727         * modules/getpagesize (Makefile.am): Likewise.
21728         * modules/getpass-gnu (Makefile.am): Likewise.
21729         * modules/getpass (Makefile.am): Likewise.
21730         * modules/getsubopt (Makefile.am): Likewise.
21731         * modules/gettime (Makefile.am): Likewise.
21732         * modules/gettimeofday (Makefile.am): Likewise.
21733         * modules/getugroups (Makefile.am): Likewise.
21734         * modules/getusershell (Makefile.am): Likewise.
21735         * modules/glob (Makefile.am): Likewise.
21736         * modules/group-member (Makefile.am): Likewise.
21737         * modules/hard-locale (Makefile.am): Likewise.
21738         * modules/hash (Makefile.am): Likewise.
21739         * modules/hmac-md5 (Makefile.am): Likewise.
21740         * modules/hmac-sha1 (Makefile.am): Likewise.
21741         * modules/human (Makefile.am): Likewise.
21742         * modules/idcache (Makefile.am): Likewise.
21743         * modules/imaxabs (Makefile.am): Likewise.
21744         * modules/imaxdiv (Makefile.am): Likewise.
21745         * modules/inet_ntop (Makefile.am): Likewise.
21746         * modules/inet_pton (Makefile.am): Likewise.
21747         * modules/intprops (Makefile.am): Likewise.
21748         * modules/inttostr (Makefile.am): Likewise.
21749         * modules/inttypes (Makefile.am): Likewise.
21750         * modules/isapipe (Makefile.am): Likewise.
21751         * modules/javaversion (Makefile.am): Likewise.
21752         * modules/lchmod (Makefile.am): Likewise.
21753         * modules/lchown (Makefile.am): Likewise.
21754         * modules/localcharset (Makefile.am): Likewise.
21755         * modules/long-options (Makefile.am): Likewise.
21756         * modules/lstat (Makefile.am): Likewise.
21757         * modules/malloc (Makefile.am): Likewise.
21758         * modules/mathl (Makefile.am): Likewise.
21759         * modules/mbchar (Makefile.am): Likewise.
21760         * modules/md2 (Makefile.am): Likewise.
21761         * modules/md4 (Makefile.am): Likewise.
21762         * modules/md5 (Makefile.am): Likewise.
21763         * modules/memcasecmp (Makefile.am): Likewise.
21764         * modules/memchr (Makefile.am): Likewise.
21765         * modules/memcmp (Makefile.am): Likewise.
21766         * modules/memcoll (Makefile.am): Likewise.
21767         * modules/memcpy (Makefile.am): Likewise.
21768         * modules/memmem (Makefile.am): Likewise.
21769         * modules/memmove (Makefile.am): Likewise.
21770         * modules/mempcpy (Makefile.am): Likewise.
21771         * modules/memrchr (Makefile.am): Likewise.
21772         * modules/memset (Makefile.am): Likewise.
21773         * modules/memxor (Makefile.am): Likewise.
21774         * modules/mkancesdirs (Makefile.am): Likewise.
21775         * modules/mkdir-p (Makefile.am): Likewise.
21776         * modules/mkdir (Makefile.am): Likewise.
21777         * modules/mkdtemp (Makefile.am): Likewise.
21778         * modules/mkstemp (Makefile.am): Likewise.
21779         * modules/mktime (Makefile.am): Likewise.
21780         * modules/modechange (Makefile.am): Likewise.
21781         * modules/mountlist (Makefile.am): Likewise.
21782         * modules/nanosleep (Makefile.am): Likewise.
21783         * modules/obstack (Makefile.am): Likewise.
21784         * modules/openat (Makefile.am): Likewise.
21785         * modules/pagealign_alloc (Makefile.am): Likewise.
21786         * modules/pathmax (Makefile.am): Likewise.
21787         * modules/physmem (Makefile.am): Likewise.
21788         * modules/poll (Makefile.am): Likewise.
21789         * modules/posixtm (Makefile.am): Likewise.
21790         * modules/posixver (Makefile.am): Likewise.
21791         * modules/putenv (Makefile.am): Likewise.
21792         * modules/quote (Makefile.am): Likewise.
21793         * modules/quotearg (Makefile.am): Likewise.
21794         * modules/raise (Makefile.am): Likewise.
21795         * modules/read-file (Makefile.am): Likewise.
21796         * modules/readline (Makefile.am): Likewise.
21797         * modules/readlink (Makefile.am): Likewise.
21798         * modules/readtokens (Makefile.am): Likewise.
21799         * modules/readutmp (Makefile.am): Likewise.
21800         * modules/realloc (Makefile.am): Likewise.
21801         * modules/regex (Makefile.am): Likewise.
21802         * modules/rename-dest-slash (Makefile.am): Likewise.
21803         * modules/rename (Makefile.am): Likewise.
21804         * modules/rijndael (Makefile.am): Likewise.
21805         * modules/rmdir (Makefile.am): Likewise.
21806         * modules/rpmatch (Makefile.am): Likewise.
21807         * modules/safe-read (Makefile.am): Likewise.
21808         * modules/safe-write (Makefile.am): Likewise.
21809         * modules/same-inode (Makefile.am): Likewise.
21810         * modules/same (Makefile.am): Likewise.
21811         * modules/save-cwd (Makefile.am): Likewise.
21812         * modules/savedir (Makefile.am): Likewise.
21813         * modules/setenv (Makefile.am): Likewise.
21814         * modules/settime (Makefile.am): Likewise.
21815         * modules/sha1 (Makefile.am): Likewise.
21816         * modules/sig2str (Makefile.am): Likewise.
21817         * modules/snprintf (Makefile.am): Likewise.
21818         * modules/stat-macros (Makefile.am): Likewise.
21819         * modules/stat-time (Makefile.am): Likewise.
21820         * modules/stdbool (Makefile.am): Likewise.
21821         * modules/stdint (Makefile.am): Likewise.
21822         * modules/stdlib-safer (Makefile.am): Likewise.
21823         * modules/stpcpy (Makefile.am): Likewise.
21824         * modules/stpncpy (Makefile.am): Likewise.
21825         * modules/strcase (Makefile.am): Likewise.
21826         * modules/strcasestr (Makefile.am): Likewise.
21827         * modules/strchrnul (Makefile.am): Likewise.
21828         * modules/strcspn (Makefile.am): Likewise.
21829         * modules/strdup (Makefile.am): Likewise.
21830         * modules/strerror (Makefile.am): Likewise.
21831         * modules/strftime (Makefile.am): Likewise.
21832         * modules/strndup (Makefile.am): Likewise.
21833         * modules/strnlen (Makefile.am): Likewise.
21834         * modules/strpbrk (Makefile.am): Likewise.
21835         * modules/strsep (Makefile.am): Likewise.
21836         * modules/strstr (Makefile.am): Likewise.
21837         * modules/strtod (Makefile.am): Likewise.
21838         * modules/strtoimax (Makefile.am): Likewise.
21839         * modules/strtok_r (Makefile.am): Likewise.
21840         * modules/strtol (Makefile.am): Likewise.
21841         * modules/strtoll (Makefile.am): Likewise.
21842         * modules/strtoul (Makefile.am): Likewise.
21843         * modules/strtoull (Makefile.am): Likewise.
21844         * modules/strtoumax (Makefile.am): Likewise.
21845         * modules/strverscmp (Makefile.am): Likewise.
21846         * modules/sys_socket (Makefile.am): Likewise.
21847         * modules/sys_stat (Makefile.am): Likewise.
21848         * modules/sysexits (Makefile.am): Likewise.
21849         * modules/time_r (Makefile.am): Likewise.
21850         * modules/timegm (Makefile.am): Likewise.
21851         * modules/timespec (Makefile.am): Likewise.
21852         * modules/tmpfile-safer (Makefile.am): Likewise.
21853         * modules/trim (Makefile.am): Likewise.
21854         * modules/unistd-safer (Makefile.am): Likewise.
21855         * modules/unlinkdir (Makefile.am): Likewise.
21856         * modules/unlocked-io (Makefile.am): Likewise.
21857         * modules/userspec (Makefile.am): Likewise.
21858         * modules/utime (Makefile.am): Likewise.
21859         * modules/utimecmp (Makefile.am): Likewise.
21860         * modules/utimens (Makefile.am): Likewise.
21861         * modules/vasnprintf (Makefile.am): Likewise.
21862         * modules/vasprintf (Makefile.am): Likewise.
21863         * modules/vsnprintf (Makefile.am): Likewise.
21864         * modules/xalloc (Makefile.am): Likewise.
21865         * modules/xgetcwd (Makefile.am): Likewise.
21866         * modules/xnanosleep (Makefile.am): Likewise.
21867         * modules/xreadlink (Makefile.am): Likewise.
21868         * modules/xstrtod (Makefile.am): Likewise.
21869         * modules/xstrtol (Makefile.am): Likewise.
21870         * modules/xstrtold (Makefile.am): Likewise.
21871         * modules/yesno (Makefile.am): Likewise.
21872         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
21873
21874 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21875
21876         * modules/error (Makefile.am): Distribute files through
21877         EXTRA_DIST, not lib_SOURCES.
21878
21879 2006-10-12  Eric Blake  <ebb9@byu.net>
21880
21881         * modules/error (Makefile.am): Distribute files in /lib.
21882         * modules/obstack (Makefile.am): Likewise.
21883
21884 2006-10-12  Bruno Haible  <bruno@clisp.org>
21885
21886         * modules/acl (Makefile.am): Distribute all files in lib/ through
21887         EXTRA_DIST.
21888         * modules/arcfour (Makefile.am): Likewise.
21889         * modules/arctwo (Makefile.am): Likewise.
21890         * modules/argmatch (Makefile.am): Likewise.
21891         * modules/argz (Makefile.am): Likewise.
21892         * modules/atexit (Makefile.am): Likewise.
21893         * modules/backupfile (Makefile.am): Likewise.
21894         * modules/c-strtod (Makefile.am): Likewise.
21895         * modules/c-strtold (Makefile.am): Likewise.
21896         * modules/calloc (Makefile.am): Likewise.
21897         * modules/canon-host (Makefile.am): Likewise.
21898         * modules/canonicalize (Makefile.am): Likewise.
21899         * modules/chdir-long (Makefile.am): Likewise.
21900         * modules/chdir-safer (Makefile.am): Likewise.
21901         * modules/check-version (Makefile.am): Likewise.
21902         * modules/chown (Makefile.am): Likewise.
21903         * modules/cloexec (Makefile.am): Likewise.
21904         * modules/close-stream (Makefile.am): Likewise.
21905         * modules/closeout (Makefile.am): Likewise.
21906         * modules/crc (Makefile.am): Likewise.
21907         * modules/cycle-check (Makefile.am): Likewise.
21908         * modules/des (Makefile.am): Likewise.
21909         * modules/dirfd (Makefile.am): Likewise.
21910         * modules/dirname (Makefile.am): Likewise.
21911         * modules/dup2 (Makefile.am): Likewise.
21912         * modules/euidaccess (Makefile.am): Likewise.
21913         * modules/exclude (Makefile.am): Likewise.
21914         * modules/exitfail (Makefile.am): Likewise.
21915         * modules/fcntl-safer (Makefile.am): Likewise.
21916         * modules/file-type (Makefile.am): Likewise.
21917         * modules/fileblocks (Makefile.am): Likewise.
21918         * modules/filemode (Makefile.am): Likewise.
21919         * modules/filenamecat (Makefile.am): Likewise.
21920         * modules/fnmatch (Makefile.am): Likewise.
21921         * modules/fopen-safer (Makefile.am): Likewise.
21922         * modules/fpending (Makefile.am): Likewise.
21923         * modules/fprintftime (Makefile.am): Likewise.
21924         * modules/free (Makefile.am): Likewise.
21925         * modules/fsusage (Makefile.am): Likewise.
21926         * modules/ftruncate (Makefile.am): Likewise.
21927         * modules/fts (Makefile.am): Likewise.
21928         * modules/gc (Makefile.am): Likewise.
21929         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21930         * modules/getaddrinfo (Makefile.am): Likewise.
21931         * modules/getcwd (Makefile.am): Likewise.
21932         * modules/getdelim (Makefile.am): Likewise.
21933         * modules/getdomainname (Makefile.am): Likewise.
21934         * modules/getgroups (Makefile.am): Likewise.
21935         * modules/gethostname (Makefile.am): Likewise.
21936         * modules/gethrxtime (Makefile.am): Likewise.
21937         * modules/getline (Makefile.am): Likewise.
21938         * modules/getloadavg (Makefile.am): Likewise.
21939         * modules/getlogin_r (Makefile.am): Likewise.
21940         * modules/getopt (Makefile.am): Likewise.
21941         * modules/getpass (Makefile.am): Likewise.
21942         * modules/getpass-gnu (Makefile.am): Likewise.
21943         * modules/getsubopt (Makefile.am): Likewise.
21944         * modules/gettime (Makefile.am): Likewise.
21945         * modules/gettimeofday (Makefile.am): Likewise.
21946         * modules/getugroups (Makefile.am): Likewise.
21947         * modules/getusershell (Makefile.am): Likewise.
21948         * modules/glob (Makefile.am): Likewise.
21949         * modules/group-member (Makefile.am): Likewise.
21950         * modules/hard-locale (Makefile.am): Likewise.
21951         * modules/hash (Makefile.am): Likewise.
21952         * modules/hmac-md5 (Makefile.am): Likewise.
21953         * modules/hmac-sha1 (Makefile.am): Likewise.
21954         * modules/human (Makefile.am): Likewise.
21955         * modules/idcache (Makefile.am): Likewise.
21956         * modules/imaxabs (Makefile.am): Likewise.
21957         * modules/imaxdiv (Makefile.am): Likewise.
21958         * modules/inet_ntop (Makefile.am): Likewise.
21959         * modules/inet_pton (Makefile.am): Likewise.
21960         * modules/inttostr (Makefile.am): Likewise.
21961         * modules/isapipe (Makefile.am): Likewise.
21962         * modules/lchown (Makefile.am): Likewise.
21963         * modules/long-options (Makefile.am): Likewise.
21964         * modules/lstat (Makefile.am): Likewise.
21965         * modules/malloc (Makefile.am): Likewise.
21966         * modules/mathl (Makefile.am): Likewise.
21967         * modules/mbchar (Makefile.am): Likewise.
21968         * modules/md2 (Makefile.am): Likewise.
21969         * modules/md4 (Makefile.am): Likewise.
21970         * modules/md5 (Makefile.am): Likewise.
21971         * modules/memcasecmp (Makefile.am): Likewise.
21972         * modules/memchr (Makefile.am): Likewise.
21973         * modules/memcmp (Makefile.am): Likewise.
21974         * modules/memcoll (Makefile.am): Likewise.
21975         * modules/memcpy (Makefile.am): Likewise.
21976         * modules/memmem (Makefile.am): Likewise.
21977         * modules/memmove (Makefile.am): Likewise.
21978         * modules/mempcpy (Makefile.am): Likewise.
21979         * modules/memrchr (Makefile.am): Likewise.
21980         * modules/memset (Makefile.am): Likewise.
21981         * modules/memxor (Makefile.am): Likewise.
21982         * modules/mkancesdirs (Makefile.am): Likewise.
21983         * modules/mkdir (Makefile.am): Likewise.
21984         * modules/mkdir-p (Makefile.am): Likewise.
21985         * modules/mkdtemp (Makefile.am): Likewise.
21986         * modules/mkstemp (Makefile.am): Likewise.
21987         * modules/mktime (Makefile.am): Likewise.
21988         * modules/modechange (Makefile.am): Likewise.
21989         * modules/mountlist (Makefile.am): Likewise.
21990         * modules/nanosleep (Makefile.am): Likewise.
21991         * modules/openat (Makefile.am): Likewise.
21992         * modules/pagealign_alloc (Makefile.am): Likewise.
21993         * modules/physmem (Makefile.am): Likewise.
21994         * modules/poll (Makefile.am): Likewise.
21995         * modules/posixtm (Makefile.am): Likewise.
21996         * modules/posixver (Makefile.am): Likewise.
21997         * modules/putenv (Makefile.am): Likewise.
21998         * modules/quote (Makefile.am): Likewise.
21999         * modules/quotearg (Makefile.am): Likewise.
22000         * modules/raise (Makefile.am): Likewise.
22001         * modules/read-file (Makefile.am): Likewise.
22002         * modules/readline (Makefile.am): Likewise.
22003         * modules/readlink (Makefile.am): Likewise.
22004         * modules/readtokens (Makefile.am): Likewise.
22005         * modules/readutmp (Makefile.am): Likewise.
22006         * modules/realloc (Makefile.am): Likewise.
22007         * modules/regex (Makefile.am): Likewise.
22008         * modules/rename (Makefile.am): Likewise.
22009         * modules/rename-dest-slash (Makefile.am): Likewise.
22010         * modules/rijndael (Makefile.am): Likewise.
22011         * modules/rmdir (Makefile.am): Likewise.
22012         * modules/rpmatch (Makefile.am): Likewise.
22013         * modules/safe-read (Makefile.am): Likewise.
22014         * modules/safe-write (Makefile.am): Likewise.
22015         * modules/same (Makefile.am): Likewise.
22016         * modules/save-cwd (Makefile.am): Likewise.
22017         * modules/savedir (Makefile.am): Likewise.
22018         * modules/setenv (Makefile.am): Likewise.
22019         * modules/settime (Makefile.am): Likewise.
22020         * modules/sha1 (Makefile.am): Likewise.
22021         * modules/sig2str (Makefile.am): Likewise.
22022         * modules/snprintf (Makefile.am): Likewise.
22023         * modules/stdlib-safer (Makefile.am): Likewise.
22024         * modules/stpcpy (Makefile.am): Likewise.
22025         * modules/stpncpy (Makefile.am): Likewise.
22026         * modules/strcase (Makefile.am): Likewise.
22027         * modules/strcasestr (Makefile.am): Likewise.
22028         * modules/strchrnul (Makefile.am): Likewise.
22029         * modules/strcspn (Makefile.am): Likewise.
22030         * modules/strdup (Makefile.am): Likewise.
22031         * modules/strerror (Makefile.am): Likewise.
22032         * modules/strftime (Makefile.am): Likewise.
22033         * modules/strndup (Makefile.am): Likewise.
22034         * modules/strnlen (Makefile.am): Likewise.
22035         * modules/strpbrk (Makefile.am): Likewise.
22036         * modules/strsep (Makefile.am): Likewise.
22037         * modules/strstr (Makefile.am): Likewise.
22038         * modules/strtod (Makefile.am): Likewise.
22039         * modules/strtoimax (Makefile.am): Likewise.
22040         * modules/strtok_r (Makefile.am): Likewise.
22041         * modules/strtol (Makefile.am): Likewise.
22042         * modules/strtoll (Makefile.am): Likewise.
22043         * modules/strtoul (Makefile.am): Likewise.
22044         * modules/strtoull (Makefile.am): Likewise.
22045         * modules/strtoumax (Makefile.am): Likewise.
22046         * modules/strverscmp (Makefile.am): Likewise.
22047         * modules/time_r (Makefile.am): Likewise.
22048         * modules/timegm (Makefile.am): Likewise.
22049         * modules/tmpfile-safer (Makefile.am): Likewise.
22050         * modules/unistd-safer (Makefile.am): Likewise.
22051         * modules/unlinkdir (Makefile.am): Likewise.
22052         * modules/userspec (Makefile.am): Likewise.
22053         * modules/utime (Makefile.am): Likewise.
22054         * modules/utimecmp (Makefile.am): Likewise.
22055         * modules/utimens (Makefile.am): Likewise.
22056         * modules/vasnprintf (Makefile.am): Likewise.
22057         * modules/vasprintf (Makefile.am): Likewise.
22058         * modules/vsnprintf (Makefile.am): Likewise.
22059         * modules/xalloc (Makefile.am): Likewise.
22060         * modules/xgetcwd (Makefile.am): Likewise.
22061         * modules/xnanosleep (Makefile.am): Likewise.
22062         * modules/xreadlink (Makefile.am): Likewise.
22063         * modules/xstrtod (Makefile.am): Likewise.
22064         * modules/xstrtol (Makefile.am): Likewise.
22065         * modules/xstrtold (Makefile.am): Likewise.
22066         * modules/yesno (Makefile.am): Likewise.
22067
22068 2006-10-12  Jim Meyering  <jim@meyering.net>
22069
22070         * m4/getloadavg.m4: Revert the change below.
22071
22072         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
22073         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
22074         fail with a symlink, which is what coreutils' ./bootstrap now
22075         creates by default.
22076
22077 2006-10-12  Bruno Haible  <bruno@clisp.org>
22078
22079         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
22080         mingw.
22081         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
22082         MSVC and mingw explicitly.
22083
22084 2006-10-11  Simon Josefsson  <jas@extundo.com>
22085             Bruno Haible  <bruno@clisp.org>
22086
22087         Add support for multiple gnulib-tool invocations in the scope of a
22088         single configure.ac file.
22089         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
22090         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
22091         with the same contents as the _LIBADD variable.
22092         (func_emit_initmacro_start, func_emit_initmacro_end,
22093         func_emit_initmacro_done): New functions.
22094         (func_import, func_create_testdir): Invoke them. Allow the identifiers
22095         gl_LIBOBJS and gl_LTLIBOBJS.
22096
22097 2006-10-11  Bruno Haible  <bruno@clisp.org>
22098
22099         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
22100         (func_create_testdir): Don't create po/Makefile.am, don't invoke
22101         autoreconf. Instead, invoke autopoint explicitly but move back the
22102         *.m4 files from gnulib.
22103
22104 2006-10-11  Bruno Haible  <bruno@clisp.org>
22105
22106         * gnulib-tool (func_usage): Make module names after --create-testdir
22107         optional.
22108         (func_create_testdir): If no module was specified, use nearly all
22109         modules.
22110
22111 2006-10-12  Jim Meyering  <jim@meyering.net>
22112
22113         Big performance improvement for fts-based tools that use FTS_NOSTAT.
22114         Avoid spurious inode-mismatch problems on non-POSIX file systems.
22115         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
22116         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
22117         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
22118         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
22119         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
22120         (fts_set_stat_required): New function.
22121         (fts_open): Defer the calls to fts_stat, if possible or requested.
22122         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
22123         into fts_stat itself.
22124         (fts_read): Perform any required (deferred) fts_stat call.
22125         (fts_build): Likewise, for the directory we're about to open and read.
22126         In the readdir loop, carefully decide whether each entry will require
22127         an eventual call to fts_stat, using dirent.d_type info if available.
22128         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
22129         a command line argument into this function.  Update all callers.
22130         Map a return value of FTS_DOT to FTS_D for a command line argument.
22131         * modules/fts (Depends-on): Add d-type.  Alphabetize.
22132         Thanks to Miklos Szeredi for his tenacity and for the initial
22133         bug report about "find" failing on a FUSE-based file system.
22134
22135         * lib/fts.c (fts_open): Use consistent indentation.
22136
22137 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
22138
22139         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
22140         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
22141         reported by Jim Meyering.  All uses of cache variables renamed
22142         to match Autoconf's.
22143         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
22144         the other one.
22145
22146         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22147         Fix misspelling in diagnostic.
22148
22149 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22150
22151         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
22152         defined.  Problem reported by Matthew Woehlke.
22153
22154         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
22155         Add support for Tandem NonStop R series.
22156         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
22157         Use new macro.
22158
22159         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
22160         (has_trailing_slash): Omit size arg; all callers changed.
22161         Omit 'inline', since it doesn't help performance and we'd
22162         need to configure it.
22163         Don't count //, ///, etc. as having a trailing slash.
22164         As a side effect, this removes a C99ism reported by Matthew Woehlke.
22165         (rpl_rename_dest_slash): On failure, use rename's errno rather
22166         than (in some cases) an incorrect or junk errno.
22167         Simplify code by removing need to compute length; this does
22168         cause it to make two passes instead of one over the file name,
22169         but it's worth it.
22170
22171         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
22172         change, since Autoconf's version may no longer be appropriate now
22173         that we are using CVS Autoconf's version.  Add support for Tandem.
22174
22175 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22176             Bruno Haible  <bruno@clisp.org>
22177
22178         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
22179         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
22180         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
22181         gl_AC_TYPE_LONG_LONG.
22182
22183         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
22184         instead of HAVE_LONG_LONG.
22185         * lib/printf-args.c (printf_fetchargs): Likewise.
22186         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22187         * lib/vasnprintf.c (VASNPRINTF): Likewise.
22188         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
22189         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
22190         gl_AC_TYPE_LONG_LONG.
22191
22192 2006-10-11  Bruno Haible  <bruno@clisp.org>
22193
22194         * m4/longlong.m4: Add comments.
22195         * m4/ulonglong.m4: Likewise.
22196
22197 2006-10-10  Bruno Haible  <bruno@clisp.org>
22198
22199         Make it possible to #define stpcpy, strdup to aliases.
22200         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
22201         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
22202
22203 2006-10-10  Bruno Haible  <bruno@clisp.org>
22204
22205         Make it possible to #define gcd to an alias.
22206         * lib/gcd.c: Include config.h.
22207
22208 2006-10-10  Bruno Haible  <bruno@clisp.org>
22209
22210         Make it possible to #define c_isascii to an alias.
22211         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
22212         defined. Undefine the macros before defining them, to avoid gcc
22213         warnings.
22214         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
22215         define NO_C_CTYPE_MACROS early.
22216
22217 2006-10-10  Bruno Haible  <bruno@clisp.org>
22218
22219         Make it possible to #define set_program_name to an alias.
22220         * lib/progname.c: Don't undefine set_program_name; instead, undefine
22221         ENABLE_RELOCATABLE early.
22222
22223 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22224
22225         Port to Tandem NSK OSS, which has 64-bit signed int but at most
22226         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
22227         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
22228         More generally, don't assume that 64-bit signed int is available
22229         if unsigned int is, and vice versa.
22230         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
22231         unsigned symbols, not on their signed counterparts.
22232         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
22233         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
22234         (UINT64_C, UINTMAX_C):
22235         Likewise.
22236         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
22237         unsigned counterparts.
22238         (Have_long_long, Unsigned): New macros.
22239         (Int): Renamed from INT.
22240         (strtoimax): Use the new macros.
22241         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
22242         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
22243         * modules/inttypes (inttypes.h): Substitute
22244         HAVE_UNSIGNED_LONG_LONG_INT.
22245         * modules/stdint (stdint.h): Likewise.
22246         (Files): Add m4/ulonglong.m4.
22247
22248 2006-10-10  Bruno Haible  <bruno@clisp.org>
22249
22250         Fix a gcc -Wshadow warning.
22251         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
22252         to 'bucket'.
22253         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
22254         gl_linked_indexof_from_to): Likewise.
22255         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
22256         Likewise.
22257         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
22258         Likewise.
22259         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
22260         Reported by Eric Blake.
22261
22262 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
22263
22264         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
22265         for NetBSD.  Problem reported by Bruno Haible.
22266
22267 2006-10-09  Jim Meyering  <jim@meyering.net>
22268
22269         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
22270         Patch from Bruno Haible.
22271
22272 2006-10-09  Jim Meyering  <jim@meyering.net>
22273
22274         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
22275         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
22276         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
22277
22278 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
22279
22280         Don't include <config.h> twice; this doesn't work in some cases,
22281         e.g., when config.h has "#define intmax_t long long int" and
22282         we include <config.h>, <inttypes.h>, <config.h> in that order.
22283         Problem reported by Matthew Woehlke in:
22284         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
22285         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
22286         * lib/fts-cycle.c: Don't include config.h.
22287         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
22288         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
22289         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
22290         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
22291         inttypes.h.
22292         * lib/xstrtoumax.c: Likewise.
22293         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
22294         __strtol and the like, so that this module is more like its siblings.
22295         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
22296         Remove; no longer needed now that we assume gnulib inttypes.h.
22297
22298 2006-10-08  Bruno Haible  <bruno@clisp.org>
22299
22300         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
22301         option.
22302
22303 2006-10-07  Jim Meyering  <jim@meyering.net>
22304
22305         * modules/inttypes (inttypes.h): Revert what seems to have been
22306         an inadvertent part of today's change: use "|", not "/" in the
22307         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
22308
22309 2006-10-07  Bruno Haible  <bruno@clisp.org>
22310
22311         * modules/sublist: New file.
22312
22313 2006-10-07  Bruno Haible  <bruno@clisp.org>
22314
22315         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
22316         * modules/argz (argz.h): Likewise.
22317         * modules/arpa_inet (arpa/inet.h): Likewise.
22318         * modules/byteswap (byteswap.h): Likewise.
22319         * modules/configmake (configmake.h): Likewise.
22320         * modules/fcntl (fcntl.h): Likewise.
22321         * modules/fnmatch (fnmatch.h): Likewise.
22322         * modules/getopt (getopt.h): Likewise.
22323         * modules/glob (glob.h): Likewise.
22324         * modules/inttypes (inttypes.h): Likewise.
22325         * modules/netinet_in (netinet/in.h): Likewise.
22326         * modules/poll (poll.h): Likewise.
22327         * modules/stdbool (stdbool.h): Likewise.
22328         * modules/stdint (stdint.h): Likewise.
22329         * modules/sys_select (sys/select.h): Likewise.
22330         * modules/sys_socket (sys/socket.h): Likewise.
22331         * modules/sys_stat (sys/stat.h): Likewise.
22332         * modules/sysexits (sysexits.h): Likewise.
22333         * modules/unistd (unistd.h): Likewise.
22334         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22335         Add a "DO NOT EDIT" comment to the generated file.
22336         (func_import): Likewise for gnulib-comp.m4.
22337
22338 2006-10-07  Bruno Haible  <bruno@clisp.org>
22339
22340         * lib/gl_sublist.h: New file.
22341         * lib/gl_sublist.c: New file.
22342
22343 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
22344
22345         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
22346         name (relative to the original working directory) and the file
22347         name component (relative to the temporary working directory).  All
22348         callers changed.
22349         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
22350         * lib/mkdir-p.c (make_dir_parents): Likewise.
22351         * lib/mkdir-p.h (make_dir_parents): Likewise.
22352
22353 2006-10-06  Eric Blake  <ebb9@byu.net>
22354
22355         Define several macros for use by the clean-temp module.
22356         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
22357         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
22358         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
22359
22360         * lib/clean-temp.h (close_stream_temp): New declaration.
22361         * lib/clean-temp.c (includes): Pull in headers according to what
22362         other modules are in use.
22363         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
22364
22365 2006-10-06  Bruno Haible  <bruno@clisp.org>
22366
22367         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
22368         instead of fopen, fwriteerror.
22369
22370 2006-10-06  Bruno Haible  <bruno@clisp.org>
22371
22372         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
22373         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
22374         int.
22375         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
22376         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
22377         Return an error indicator.
22378         Suggested by Eric Blake.
22379
22380 2006-10-06  Bruno Haible  <bruno@clisp.org>
22381
22382         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
22383         Reported by Eric Blake.
22384
22385 2006-10-06  Bruno Haible  <bruno@clisp.org>
22386
22387         * modules/closeout (Description): Mention stderr too.
22388
22389 2006-10-06  Bruno Haible  <bruno@clisp.org>
22390         and Paul Eggert  <eggert@cs.ucla.edu>
22391
22392         * lib/closeout.c (close_stdout): Also close stderr.
22393         * lib/closeout.h: Update comment.
22394
22395 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22396
22397         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
22398         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
22399         * lib/dirchownmod.c: Include lchown.h.
22400         * lib/lchown.c: Don't include files that lchown.h now includes.
22401         Don't declare chown, since lchown.h now does that.
22402         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
22403         (lchown): Define to rpl_chown if lchown is declared but
22404         does not exist.  Declare using a prototype if lchown is not
22405         declared.  Add a copyright notice.
22406         * lib/mkstemp.h: Include <unistd.h>.
22407         * lib/openat.c: Include lchown.h.
22408
22409         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
22410         we now test for that separately.
22411         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
22412         rather than O_NOFOLLOW, when testing whether it's possible to
22413         avoid a race condition reliably.
22414         * lib/savewd.c (savewd_chdir): Likewise.
22415
22416         Remove macros that are no longer needed now that stdint.h is
22417         reliable.
22418         * lib/fsusage.c (UINTMAX_MAX): Remove.
22419         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
22420         * lib/utimecmp.c (SIZE_MAX): Remove.
22421
22422         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
22423
22424         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
22425         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
22426         O_NOATIME works.
22427
22428 2006-10-05  Bruno Haible  <bruno@clisp.org>
22429
22430         * lib/gl_list.h (gl_sortedlist_search_from_to,
22431         gl_sortedlist_indexof_from_to): New declarations.
22432         (gl_list_implementation): New fields sortedlist_search_from_to,
22433         sortedlist_indexof_from_to.
22434         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
22435         inline functions.
22436         * lib/gl_list.c (gl_sortedlist_search_from_to,
22437         gl_sortedlist_indexof_from_to): New functions.
22438         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
22439         function.
22440         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
22441         (gl_array_sortedlist_search_from_to): New function.
22442         (gl_array_list_implementation): Update.
22443         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
22444         function.
22445         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
22446         (gl_carray_sortedlist_search_from_to): New function.
22447         (gl_carray_list_implementation): Update.
22448         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
22449         gl_linked_sortedlist_indexof_from_to): New functions.
22450         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22451         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22452         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
22453         gl_tree_sortedlist_indexof_from_to): New functions.
22454         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22455         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22456         Update.
22457         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22458         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
22459         Update.
22460
22461 2006-10-05  Bruno Haible  <bruno@clisp.org>
22462
22463         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
22464         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
22465         (struct gl_list_implementation): Add fields search_from_to,
22466         indexof_from_to. Remove fields search, indexof.
22467         (gl_list_search): Use the search_from_to method.
22468         (gl_list_search_from, gl_list_search_from_to): New functions.
22469         (gl_list_indexof): Use the indexof_from_to method.
22470         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22471         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
22472         (gl_list_search_from, gl_list_search_from_to): New functions.
22473         (gl_list_indexof): Use the indexof_from_to method.
22474         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22475         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
22476         gl_array_indexof. Add start_index, end_index arguments.
22477         (gl_array_search_from_to): Renamed from gl_array_search. Add
22478         start_index, end_index arguments.
22479         (gl_array_remove, gl_array_list_implementation): Update.
22480         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
22481         gl_carray_indexof. Add start_index, end_index arguments.
22482         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
22483         start_index, end_index arguments.
22484         (gl_carray_remove, gl_carray_list_implementation): Update.
22485         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
22486         gl_linked_search. Add start_index, end_index arguments.
22487         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
22488         start_index, end_index arguments.
22489         (gl_linked_remove): Update.
22490         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22491         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22492         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
22493         field to 'size_t'.
22494         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
22495         gl_tree_search. Add start_index, end_index arguments.
22496         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22497         start_index, end_index arguments.
22498         (gl_tree_remove): Update.
22499         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22500         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22501         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
22502         function.
22503         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
22504         gl_tree_search. Add start_index, end_index arguments.
22505         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22506         start_index, end_index arguments.
22507         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22508         Update.
22509         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22510
22511 2006-10-05  Bruno Haible  <bruno@clisp.org>
22512
22513         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
22514
22515         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
22516         fwriteerror_temp): New declarations.
22517         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
22518         (descriptors): New variable.
22519         (cleanup): First, close the descriptors.
22520         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
22521         fclose_temp, fwriteerror_temp): New functions.
22522
22523 2006-10-04  Jim Meyering  <jim@meyering.net>
22524
22525         * lib/fts.c (fts_open): Tiny comment change.
22526
22527 2006-10-04  Bruno Haible  <bruno@clisp.org>
22528
22529         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
22530         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
22531         gl_LOCK_BODY.
22532         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
22533         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
22534         gl_LOCK_EARLY_BODY.
22535         (gl_LOCK): Require gl_LOCK_BODY.
22536
22537 2006-10-04  Bruno Haible  <bruno@clisp.org>
22538
22539         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
22540         (gl_oset_search_atleast): New declaration.
22541         (struct gl_oset_implementation): Add field 'search_atleast'.
22542         (gl_oset_search_atleast): New inline function.
22543         * lib/gl_oset.c (gl_oset_search_atleast): New function.
22544         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
22545         (gl_array_oset_implementation): Update.
22546         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
22547         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
22548         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
22549
22550 2006-10-04  Bruno Haible  <bruno@clisp.org>
22551
22552         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
22553
22554 2006-10-03  Bruno Haible  <bruno@clisp.org>
22555
22556         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
22557         from gl_avltreehash_list_implementation.
22558
22559 2006-10-03  Bruno Haible  <bruno@clisp.org>
22560
22561         * lib/gl_oset.c (gl_oset_add): Fix return type.
22562
22563 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
22564
22565         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
22566
22567 2006-10-02  Eric Blake  <ebb9@byu.net>
22568
22569         * modules/strnlen (Depends-on): Add extensions.
22570
22571 2006-10-02  Eric Blake  <ebb9@byu.net>
22572
22573         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
22574         definition in 2.60+.
22575
22576 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
22577
22578         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
22579         checks.
22580
22581 2006-10-02  Bruno Haible  <bruno@clisp.org>
22582
22583         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
22584         to the AUTOMAKE_OPTIONS.
22585         Reported by Jim Meyering.
22586
22587 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
22588
22589         Work around bug in Solaris 10 /proc file system:
22590         /proc/self/fd/NNN/.. isn't the parent directory of
22591         the directory whose file descriptor is NNN.  This needs to
22592         be worked around at run time, not compile time, since a
22593         program might be built on Solaris 8, where things work, and
22594         run on Solaris 10.
22595         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
22596         to use the following interface instead:
22597         (OPENAT_BUFFER_SIZE): New macro.
22598         (openat_proc_name): New function.
22599         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
22600         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
22601         Likewise.
22602         * lib/openat-proc.c: New file.
22603         * modules/openat (Files): Add lib/openat-proc.c.
22604         (Depends-on): Add same-inode, stdbool.
22605         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
22606
22607 2006-09-29  Bruno Haible  <bruno@clisp.org>
22608
22609         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
22610         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
22611         argument. Set stdout_closed before testing for ferror, not after.
22612         (fwriteerror, fwriteerror_no_ebadf): New functions.
22613
22614 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22615
22616         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
22617
22618 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
22619
22620         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
22621         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
22622
22623 2006-09-28  Jim Meyering  <jim@meyering.net>
22624
22625         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
22626         Include <unistd.h>.
22627
22628 2006-09-28  Bruno Haible  <bruno@clisp.org>
22629
22630         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
22631         * modules/linkedhash-list (Depends-on): Likewise.
22632         * modules/rbtreehash-list (Depends-on): Likewise.
22633
22634 2006-09-28  Bruno Haible  <bruno@clisp.org>
22635
22636         * lib/strndup.h: Simplify the redefinition of strndup.
22637         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
22638         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
22639
22640 2006-09-28  Bruno Haible  <bruno@clisp.org>
22641
22642         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
22643         * lib/gl_linkedhash_list.c: Likewise.
22644         * lib/gl_rbtreehash_list.c: Likewise.
22645
22646 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
22647
22648         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
22649         getaddrinfo.
22650
22651         * lib/__fpending.h: Don't include <stdio_ext.h> unless
22652         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
22653         it causes <stdio_ext.h> to cause a compile-time error.
22654         Problem reported by Nelson H. F. Beebe.
22655         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
22656         of HAVE_DECL___PENDING.
22657
22658         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
22659         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
22660         declaration.
22661
22662 2006-09-27  Jim Meyering  <jim@meyering.net>
22663
22664         This file could end up with a definition for a function
22665         named __strndup, rather than rpl_strndup on a system with
22666         incomplete weak_alias support.
22667         * lib/strndup.c (strndup): Rename from __strndup.
22668         Remove #defines that used to map __strndup to strndup.
22669         Don't use K&R prototypes.
22670         Remove LIBC-related code, since this file is not sync'd with glibc.
22671         * lib/strndup.h: Revamp, accordingly.
22672         * m4/strndup.m4: Modernize.
22673
22674 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22675
22676         * modules/savewd (Depends-on): Add 'raise'.
22677         * lib/savewd.c: Include <signal.h>, for 'raise'.
22678
22679 2006-09-26  Jim Meyering  <jim@meyering.net>
22680
22681         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
22682         when we detect Darwin 8.7.0's acl_get_file bug.
22683         Rearrange to perform the new (below) run-test while $LIBS
22684         contains any acl-related library.  Set USE_ACL at the end.
22685         (gl_ACL_GET_FILE): New function.
22686
22687 2006-09-26  Eric Blake  <ebb9@byu.net>
22688
22689         * lib/verror.c: Include <config.h> unconditionally.
22690
22691 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
22692
22693         * modules/clock-time (Maintainer): Add self.
22694         * modules/getlogin_r (Depends-on): Add extensions.
22695
22696 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22697
22698         * modules/clock-time: New module.
22699         * modules/nanosleep (Depends-on): Add clock-time.
22700         * modules/gethrxtime (Depends-on): Likewise.
22701         * modules/gettime (Depends-on): Likewise.
22702         * modules/settime (Depends-on): Likewise.
22703
22704         * modules/fts-lgpl: Depend on openat.
22705         * modules/mkancesdirs: Depend on savewd.
22706         * modules/mkdir-p: Likewise.
22707
22708 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22709
22710         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
22711
22712         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
22713         `gl_have_arbitrary_file_name_length_limit' to
22714         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
22715         actually works between configure runs.
22716
22717 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22718             Bruno Haible  <bruno@clisp.org>
22719
22720         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
22721
22722 2006-09-25  Jim Meyering  <jim@meyering.net>
22723
22724         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
22725         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
22726
22727 2006-09-25  Eric Blake  <ebb9@byu.net>
22728
22729         * gnulib-tool (func_import, func_create_testdir): Fix typos in
22730         exec's in 2006-09-18 patch when shuffling fds.
22731
22732 2006-09-25  Bruno Haible  <bruno@clisp.org>
22733
22734         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
22735         Reported by Jim Meyering.
22736
22737 2006-09-24  Jim Meyering  <jim@meyering.net>
22738
22739         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
22740         compare a pointer against a literal "0".  That caused failures with
22741         at least HP-UX's hpcc.
22742
22743 2006-09-22  Simon Josefsson  <jas@extundo.com>
22744
22745         * modules/gc-sha1:
22746         * modules/gc-md4:
22747         * modules/gc-hmac-sha1:
22748         * modules/gc-hmac-md5:
22749         * modules/gc-des:
22750         * modules/gc-arcfour: Distribute more files.
22751
22752 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22753
22754         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
22755         (gl_linked_iterator_from_to): Initialize struct completely.
22756         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
22757         (gl_tree_iterator_from_to): Likewise
22758         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
22759         * lib/gl_array_list.c [lint] (gl_array_iterator)
22760         (gl_array_iterator_from_to): Likewise.
22761         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
22762         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
22763         (gl_carray_iterator_from_to): Likewise.
22764
22765         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
22766         * lib/md4.c (md4_process_block): Remove unused variable.
22767         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
22768         parentheses for clarity.
22769
22770 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22771
22772         * modules/bison-i18n (Depends-on): Add gettext.
22773
22774 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22775
22776         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
22777         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22778         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
22779         also add missing comma that caused broken test.
22780         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
22781         stdlib.h, for `abort'.
22782         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
22783         variables.
22784         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
22785         include unistd.h if present, for `rmdir'.
22786         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
22787         variables.
22788         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
22789         in the process include standard headers for prototypes.
22790         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
22791         gets declared on GNU/Linux.
22792         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
22793         unistd.h, for `rmdir'.
22794         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
22795
22796         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
22797         always true.
22798         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
22799
22800         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
22801
22802 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22803
22804         * gnulib-tool (func_version): Create output all at once.  This
22805         may help avoid triggering unnecessary SIGPIPEs, and at any
22806         rate it doesn't hurt.
22807
22808 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22809             Bruno Haible  <bruno@clisp.org>
22810
22811         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
22812         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22813         * m4/signed.m4 (bh_C_SIGNED): Likewise.
22814
22815         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
22816         (gl_FUNC_VASPRINTF): Invoke it.
22817
22818 2006-09-22  Bruno Haible  <bruno@clisp.org>
22819
22820         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
22821         getloadavg.c as first argument.
22822
22823 2006-09-22  Bruno Haible  <bruno@clisp.org>
22824
22825         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
22826         at the beginning of the gl_INIT macro.
22827         * modules/getloadavg (configure.ac): Pass $gl_source_base to
22828         gl_GETLOADAVG.
22829
22830 2006-09-22  Bruno Haible  <bruno@clisp.org>
22831
22832         * gnulib-tool (func_create_megatestdir): Don't include the config-h
22833         module.
22834         Suggested by Ralf Wildenhues.
22835
22836 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22837
22838         Import this patch from libc:
22839
22840         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
22841
22842         * lib/regex_internal.c (re_string_reconstruct): Handle
22843         offset < pstr->valid_raw_len && pstr->offsets_needed case.
22844         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
22845         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
22846         re_string_context_at.
22847
22848         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
22849         now requires it.
22850         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
22851         gl_REGEX now does it for us.
22852         (gl_REGEX): Add test taken from
22853         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
22854
22855         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
22856         Check that large offsets work.  Modernize Autoconf usages.
22857         Prefer "yes" to mean a good thing rather than a bad.
22858         Don't put "#define mkstemp" in config.h, as this might interfere
22859         with standard system headers that "#define mkstemp mkstemp64".
22860
22861         * modules/mkstemp (Depends-on): Add extensions, so that
22862         mkstemp is visible on some platforms.
22863         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
22864         (Include): Change to "mkstemp.h" from <stdlib.h>.
22865         (Files): Add mkstemp.h.
22866
22867         * lib/mkstemp.h: New file, since some standard headers
22868         #define mkstemp.
22869         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
22870         Include "mkstemp.h".
22871         Make the _LIBC code resemble glibc original more,
22872         e.g., use K&R style.
22873         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
22874         (mkstemp): Remove, since mkstemp.h does this for us.
22875         * lib/stdlib--.h: Include mkstemp.h.
22876
22877         Import this patch from libc:
22878
22879         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22880
22881         * lib/tempname.c (__gen_tempname): Change attempts_min
22882         into a macro.  Use preprocessor to decide how to initialize
22883         attempts [Coverity CID 67].
22884
22885 2006-09-20  Bruno Haible  <bruno@clisp.org>
22886
22887         * lib/mkdtemp.c: Import from libc.
22888         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22889                 * sysdeps/posix/tempname.c (__gen_tempname): Change
22890                 attempts_min into a macro.  Use preprocessor to decide how to
22891                 initialize attempts [Coverity CID 67].
22892         2001-11-27  Paul Eggert  <eggert@twinsun.com>
22893                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
22894                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
22895
22896 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22897
22898         * gnulib-tool (func_exit): New function, to allow to pass the
22899         exit status portably through the trap.  Use everywhere.
22900         (--help, --version): Signal a write error.
22901         (trap): catch SIGPIPE, for write errors.
22902         Exit at the end of the trap, with the correct exit status.
22903
22904 2006-09-19  Karl Berry  <karl@gnu.org>
22905
22906         * doc/gnulib.texi: note about the license texinfo files.
22907
22908 2006-09-19  Eric Blake  <ebb9@byu.net>
22909
22910         * gnulib-tool: Avoid space-tab.
22911
22912 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22913
22914         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
22915         that prevented coreutils 6.1 from building.  Problem reported
22916         by Petter Reinholdtsen.
22917
22918 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22919
22920         * gnulib-tool (avoidlist): Fix typo that broke options like
22921         --avoid=lock that are used by coreutils bootstrap.
22922
22923 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
22924
22925         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
22926         more systematically.
22927
22928 2006-09-18  Jim Meyering  <jim@meyering.net>
22929
22930         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
22931
22932 2006-09-18  Bruno Haible  <bruno@clisp.org>
22933
22934         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
22935
22936 2006-09-18  Bruno Haible  <bruno@clisp.org>
22937
22938         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
22939         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
22940         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
22941         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
22942         * m4/gettext.m4: Require autoconf >= 2.52.
22943         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
22944         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
22945         of gl_cv_header_inttypes_h.
22946
22947 2006-09-18  Bruno Haible  <bruno@clisp.org>
22948
22949         * lib/javaversion.c: Include configmake.h.
22950
22951 2006-09-18  Bruno Haible  <bruno@clisp.org>
22952
22953         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
22954         avoid that the while loops be executed in a subshell.
22955
22956 2006-09-18  Bruno Haible  <bruno@clisp.org>
22957
22958         * MODULES.html.sh (func_module): Break long lines.
22959         Suggested by Bruce Korb <bkorb@gnu.org>.
22960
22961 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22962
22963         Speed up by a factor of 1.12.
22964         * gnulib-tool (nl): New variable.
22965         (func_import): Rewrite include directive extraction to only read each
22966         directive once.
22967
22968 2006-09-17  Bruno Haible  <bruno@clisp.org>
22969
22970         * modules/javaversion (Makefile.am): Remove DEFS setting.
22971         (Depends-on): Add configmake, for PKGDATADIR definition.
22972
22973 2006-09-17  Bruno Haible  <bruno@clisp.org>
22974
22975         * gnulib-tool (func_create_testdir): Rewrite all files at once.
22976
22977 2006-09-17  Bruno Haible  <bruno@clisp.org>
22978
22979         * gnulib-tool (func_append): New function, stolen from libtool.m4.
22980         (func_modules_transitive_closure, func_modules_add_dummy,
22981         func_modules_to_filelist, func_import, func_create_testdir,
22982         func_create_megatestdir, ...): Use it wherever possible.
22983         Suggested by Ralf Wildenhues.
22984
22985 2006-09-16  Karl Berry  <karl@gnu.org>
22986
22987         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
22988         to avoid sectioning errors.
22989         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
22990         [ifinfo]: blank line after @center-ed titles.
22991         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
22992         Spell FSF address consistently with others.
22993         (These changes approved by rms.)
22994
22995 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22996
22997         Speed up by a factor of 1.61.
22998         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
22999         already checked module names again.
23000
23001 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23002
23003         Speed up by a factor of 1.13.
23004         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
23005         for new_files, and the input to func_add_or_update.
23006
23007 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23008
23009         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
23010         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
23011
23012 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23013
23014         * modules/mkancesdirs (Depends-on): Add fcntl.
23015         * modules/savewd: New file.
23016         * MODULES.html.sh (File system functions): Add savewd.
23017
23018         * modules/configmake (Makefile.am): Add support for the
23019         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
23020
23021 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23022
23023         * m4/savewd.m4: New file.
23024
23025 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23026
23027         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
23028         (dirchownmod): New arg FD.  All callers changed.
23029         Use FD rather than opening the directory ourself, as opening is
23030         now the caller's responsibility.
23031         * lib/dirchownmod.h: Likewise.
23032         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
23033         hosts that require <sys/types.h> before <sys/stat.h>.  Include
23034         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
23035         (test_dir): Remove.
23036         (mkancesdirs): Return length of prefix of FILE that has already
23037         been made, or -2 if there is a child doing the work.  Redo
23038         algorithm so that it is O(N) rather than O(N**2).  Optimize away
23039         ".", and treat ".." specially since it might stray back into
23040         already-created areas.  Use a subprocess if necessary.  New arg
23041         WD; all users changed.  MAKE_DIR function should now return 1
23042         if it creates a directory that is not readable.  Return -2 if
23043         a child process is spun off.
23044         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
23045         Adjust signature to match code.
23046         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
23047         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
23048         all users changed.
23049         * lib/savewd.c, lib/savewd.h: New files.
23050
23051 2006-09-15  Jim Meyering  <jim@meyering.net>
23052
23053         * modules/rename-dest-slash: New module.
23054         * MODULES.html.sh (posix_compat): Add it here.
23055
23056         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
23057
23058 2006-09-15  Jim Meyering  <jim@meyering.net>
23059
23060         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
23061         file.
23062
23063         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
23064
23065 2006-09-15  Jim Meyering  <jim@meyering.net>
23066
23067         * lib/rename-dest-slash.c (has_trailing_slash): Use
23068         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
23069         (rpl_rename_dest_slash): Perform the cheaper trailing slash
23070         test before testing whether SRC is a directory.
23071         Suggestions from Bruno Haible.
23072
23073         Avoid a warning about an unused variable.
23074         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
23075         into the #ifdef block where it's used.
23076
23077         * lib/rename-dest-slash.c: New file.
23078
23079 2006-09-14  Bruno Haible  <bruno@clisp.org>
23080
23081         * lib/allocsa.c: Include <config.h> unconditionally.
23082         * lib/asnprintf.c: Likewise.
23083         * lib/asprintf.c: Likewise.
23084         * lib/c-strcasecmp.c: Likewise.
23085         * lib/c-strcasestr.c: Likewise.
23086         * lib/c-strncasecmp.c: Likewise.
23087         * lib/c-strstr.c: Likewise.
23088         * lib/classpath.c: Likewise.
23089         * lib/clean-temp.c: Likewise.
23090         * lib/concatpath.c: Likewise.
23091         * lib/copy-file.c: Likewise.
23092         * lib/csharpcomp.c: Likewise.
23093         * lib/csharpexec.c: Likewise.
23094         * lib/execute.c: Likewise.
23095         * lib/fatal-signal.c: Likewise.
23096         * lib/findprog.c: Likewise.
23097         * lib/fwriteerror.c: Likewise.
23098         * lib/gl_array_list.c: Likewise.
23099         * lib/gl_array_oset.c: Likewise.
23100         * lib/gl_avltree_list.c: Likewise.
23101         * lib/gl_avltree_oset.c: Likewise.
23102         * lib/gl_avltreehash_list.c: Likewise.
23103         * lib/gl_carray_list.c: Likewise.
23104         * lib/gl_linked_list.c: Likewise.
23105         * lib/gl_linkedhash_list.c: Likewise.
23106         * lib/gl_list.c: Likewise.
23107         * lib/gl_oset.c: Likewise.
23108         * lib/gl_rbtree_list.c: Likewise.
23109         * lib/gl_rbtree_oset.c: Likewise.
23110         * lib/gl_rbtreehash_list.c: Likewise.
23111         * lib/imaxabs.c: Likewise.
23112         * lib/imaxdiv.c: Likewise.
23113         * lib/javacomp.c: Likewise.
23114         * lib/javaexec.c: Likewise.
23115         * lib/javaversion.c: Likewise.
23116         * lib/linebreak.c: Likewise.
23117         * lib/localcharset.c: Likewise.
23118         * lib/lock.c: Likewise.
23119         * lib/mbchar.c: Likewise.
23120         * lib/mbswidth.c: Likewise.
23121         * lib/mkdtemp.c: Likewise.
23122         * lib/pipe.c: Likewise.
23123         * lib/printf-args.c: Likewise.
23124         * lib/printf-parse.c: Likewise.
23125         * lib/progname.c: Likewise.
23126         * lib/progreloc.c: Likewise.
23127         * lib/readlink.c: Likewise.
23128         * lib/sh-quote.c: Likewise.
23129         * lib/stpcpy.c: Likewise.
23130         * lib/stpncpy.c: Likewise.
23131         * lib/strcasecmp.c: Likewise.
23132         * lib/strcasestr.c: Likewise.
23133         * lib/strcspn.c: Likewise.
23134         * lib/striconv.c: Likewise.
23135         * lib/strncasecmp.c: Likewise.
23136         * lib/strnlen1.c: Likewise.
23137         * lib/strstr.c: Likewise.
23138         * lib/strtok_r.c: Likewise.
23139         * lib/tls.c: Likewise.
23140         * lib/tmpdir.c: Likewise.
23141         * lib/unicodeio.c: Likewise.
23142         * lib/unsetenv.c: Likewise.
23143         * lib/vasnprintf.c: Likewise.
23144         * lib/vasprintf.c: Likewise.
23145         * lib/wait-process.c: Likewise.
23146         * lib/xallocsa.c: Likewise.
23147         * lib/xsetenv.c: Likewise.
23148         * lib/xstriconv.c: Likewise.
23149
23150 2006-09-13  Simon Josefsson  <jas@extundo.com>
23151
23152         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
23153         that internally, suggested by Ralf Wildenhues
23154         <Ralf.Wildenhues@gmx.de>.
23155
23156 2006-09-13  Simon Josefsson  <jas@extundo.com>
23157
23158         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
23159         @LIBOBJS@.
23160         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23161
23162 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23163
23164         * lib/_fpending.c: Include <config.h> unconditionally, since we no
23165         longer worry about uses that don't define HAVE_CONFIG_H.
23166         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
23167         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
23168         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
23169         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
23170         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
23171         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
23172         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
23173         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
23174         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
23175         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
23176         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
23177         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
23178         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
23179         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
23180         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
23181         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
23182         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
23183         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
23184         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
23185         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
23186         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
23187         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
23188         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
23189         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
23190         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
23191         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
23192         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
23193         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
23194         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
23195         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
23196         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
23197         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
23198         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
23199         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
23200         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
23201         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
23202         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
23203         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
23204         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
23205         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
23206         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
23207         Likewise.
23208
23209 2006-09-13  Eric Blake  <ebb9@byu.net>
23210
23211         * lib/getopt.c: Fix typo in last commit.
23212
23213 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23214
23215         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
23216         dgettext.
23217
23218 2006-09-12  Jim Meyering  <jim@meyering.net>
23219
23220         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
23221         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
23222         Reported by Nelson H. F. Beebe.
23223
23224 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
23225
23226         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
23227         program_invocation_name and program_invocation_short_name are
23228         initialized.
23229         * lib/argp-namefrob.h: Move declarations of program_invocation_name
23230         and program_invocation_short_name to argp.h, so they are visible
23231         to user programs.
23232         * lib/argp.h: Likewise
23233
23234 2006-09-10  Bruno Haible  <bruno@clisp.org>
23235
23236         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23237         m4/inttypes_h.m4, m4/uintmax_t.m4.
23238
23239 2006-09-10  Bruno Haible  <bruno@clisp.org>
23240
23241         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
23242         gl_AC_TYPE_UINTMAX_T.
23243
23244 2006-09-10  Bruno Haible  <bruno@clisp.org>
23245
23246         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
23247
23248 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23249
23250         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
23251         convention.  Text proposed by Bruno Haible.
23252         (struct argp_option): Document the use of N_() wrappers.
23253
23254         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
23255         '\v', and translate the two parts separately, instead of feeding
23256         the whole string to gettext.  This allows to exclude
23257         '\v' from the strings visible to the translator by writing doc
23258         strings as N_("..") "\v" N_("..").
23259
23260 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
23261
23262         * config/srclist.txt: Undo latest change; the bug was fixed.
23263
23264 2006-09-09  Bruno Haible  <bruno@clisp.org>
23265
23266         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
23267         assignments if building a library without libtool.
23268         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
23269         in func_emit_lib_Makefile_am.
23270         (func_import): When building a static library libfoo.a, arrange to
23271         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
23272         (func_create_testdir): Likewise.
23273         * modules/gc (configure.ac, Makefile.am): If building statically,
23274         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
23275         * modules/iconvme (configure.ac, Makefile.am): Likewise.
23276         * modules/striconv (configure.ac, Makefile.am): Likewise.
23277         Based on a suggestion by Ralf Wildenhues.
23278
23279 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23280
23281         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
23282         Check for unistd.h too, since Autoconf doesn't assume POSIX.
23283         Also:
23284
23285         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23286         Add year_2050_test to catch glibc bug 2821
23287         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23288
23289         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23290         Prefer #ifdef to #if.
23291
23292         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
23293         Return from 'main' instead of calling 'exit'.
23294
23295 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23296
23297         * lib/mktime.c (guess_time_tm): Fix bug where mktime
23298         returned the maximum time_t value rather than (time_t) -1.
23299         Problem originally reported by William Bardwell
23300         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23301
23302         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23303         Moved to here ...
23304         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23305         ... from here.
23306
23307 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23308
23309         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
23310         2821 is fixed.
23311
23312 2006-09-08  Jim Meyering  <jim@meyering.net>
23313
23314         Don't make generated files read-only.  That would bother too many
23315         people.  However, do retain the ability to work when targets are
23316         read-only: remove the destination and temporary files before writing
23317         them (when generated via sed or echo), or by using the -f option for
23318         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
23319         * modules/alloca-opt, modules/argz, modules/arpa_inet:
23320         * modules/byteswap, modules/configmake, modules/fcntl:
23321         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23322         * modules/localcharset, modules/netinet_in, modules/poll:
23323         * modules/stdbool, modules/stdint, modules/sys_select:
23324         * modules/sys_socket, modules/sys_stat, modules/sysexits:
23325
23326 2006-09-08  Jim Meyering  <jim@meyering.net>
23327
23328         Avoid new build failure on FreeBSD 6.0.
23329         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
23330         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
23331         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
23332
23333 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23334
23335         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
23336
23337 2006-09-07  Jim Meyering  <jim@meyering.net>
23338
23339         Fix global typo in last change: use chmod u-w, not chmod u-x.
23340         Spotted by Paul Eggert and Bruce Korb.
23341         * modules/alloca-opt, modules/argz, modules/arpa_inet:
23342         * modules/byteswap, modules/configmake, modules/fcntl:
23343         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23344         * modules/localcharset, modules/netinet_in, modules/poll:
23345         * modules/stdbool, modules/stdint, modules/sys_select:
23346         * modules/sys_socket, modules/sys_stat, modules/sysexits:
23347
23348 2006-09-06  Jim Meyering  <jim@meyering.net>
23349
23350         Make generated files be read-only.
23351         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
23352         Ensure that each generated file is now read-only.
23353         * modules/argz: Likewise.
23354         * modules/arpa_inet: Likewise.
23355         * modules/byteswap: Likewise.
23356         * modules/configmake: Likewise.
23357         * modules/fcntl: Likewise.
23358         * modules/fnmatch: Likewise.
23359         * modules/getopt: Likewise.
23360         * modules/glob: Likewise.
23361         * modules/inttypes: Likewise.
23362         * modules/netinet_in: Likewise.
23363         * modules/poll: Likewise.
23364         * modules/stdbool: Likewise.
23365         * modules/stdint: Likewise.
23366         * modules/sys_select: Likewise.
23367         * modules/sys_socket: Likewise.
23368         * modules/sys_stat: Likewise.
23369         * modules/sysexits: Likewise.
23370         * modules/localcharset: Same as above, but continue using temporary
23371         file named "t-$@" (why different?) rather than the "$@-t" used
23372         everywhere else.
23373
23374         * modules/sysexits (Makefile.am): Replace literal occurrences
23375         of "sysexit.h" more readable, and more consistent, "$@".
23376
23377 2006-09-06  Bruno Haible  <bruno@clisp.org>
23378
23379         * modules/striconv: New file.
23380         * modules/xstriconv: New file.
23381         * MODULES.html.sh (Internationalization functions): Add striconv,
23382         xstriconv.
23383
23384 2006-09-06  Bruno Haible  <bruno@clisp.org>
23385
23386         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
23387         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
23388         not using libtool correctly.
23389
23390 2006-09-06  Bruno Haible  <bruno@clisp.org>
23391
23392         * lib/striconv.h: New file.
23393         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
23394         iconvstring.c.
23395         * lib/xstriconv.h: New file.
23396         * lib/xstriconv.c: New file.
23397
23398 2006-09-06  Bruno Haible  <bruno@clisp.org>
23399
23400         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
23401         lib_..._LDFLAGS.
23402
23403 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23404
23405         * lib/argz_.h: Sync from Libtool.
23406
23407         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
23408                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23409
23410         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
23411
23412 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
23413
23414         * modules/trim: New file.
23415
23416 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
23417
23418         * lib/trim.h: New file.
23419         * lib/trim.c: New file.
23420
23421 2006-09-05  Bruno Haible  <bruno@clisp.org>
23422
23423         * MODULES.html.sh (String handling): Add trim.
23424
23425 2006-09-04  Karl Berry  <karl@gnu.org>
23426
23427         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
23428         until next release.
23429
23430 2006-09-03  Bruno Haible  <bruno@clisp.org>
23431
23432         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
23433         correctly.
23434
23435 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23436
23437         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
23438         not gl_GETLOADAVG.  Omit unneeded semicolons.
23439         Problems reported by Ralf Wildenhues in
23440         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23441         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
23442         at the end, which is the usual gnulib style.
23443
23444         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
23445         of doing all the work ourselves.
23446         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
23447         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
23448
23449 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23450
23451         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
23452         Problem reported by Ralf Wildenhues in
23453         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23454
23455         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
23456         HAVE_STRUCT_STATFS_F_FSTYPENAME.
23457
23458 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23459
23460         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
23461         yesterday's patch by changing test -n to test -z.
23462
23463 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23464
23465         * modules/getloadavg (Files): Add m4/getloadavg.m4.
23466         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
23467         the former is now obsolescent.
23468
23469         * modules/chdir-long (Depends-on): Add fcntl.
23470
23471 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23472
23473         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
23474         obsolescent, and programs should use gnulib instead.
23475         * m4/getloadavg.m4: New file, with contents taken from Autoconf
23476         but with prefixes changed.
23477
23478 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23479
23480         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
23481         or stdbool.h, because they might not exist while configuring.
23482
23483         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
23484         Don't include unistd.h or limits.h; not needed, since chdir-long.h
23485         does that for us.
23486         (O_DIRECTORY): Remove.
23487
23488 2006-08-31  Eric Blake  <ebb9@byu.net>
23489
23490         * gnulib-tool: Don't let emacs change spaces to TAB.
23491
23492 2006-08-31  Bruno Haible  <bruno@clisp.org>
23493
23494         * gnulib-tool: When calling func_import more than once, do it in a
23495         subshell.
23496         Reported by Eric Blake <ebb9@byu.net>.
23497
23498 2006-08-31  Bruno Haible  <bruno@clisp.org>
23499
23500         * gnulib-tool (nl): Remove variable.
23501         (sed_transform_lib_file): Use more robust test for config-h module.
23502         (func_import): Fix typo in 2006-08-25 patch.
23503
23504 2006-08-31  Bruno Haible  <bruno@clisp.org>
23505
23506         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
23507         specified, augment Makefile.am variables instead of assigning them.
23508
23509 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23510
23511         Work around a bug in both the Linux and SunOS 64-bit kernels:
23512         nanosleep mishandles sleeps for longer than 2**31 seconds.
23513         Problem reported by Frank v Waveren in
23514         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23515         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
23516         Check for nanosleep bug.
23517         (LIB_NANOSLEEP): Append clock_gettime library if needed.
23518
23519 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23520
23521         Work around a bug in both the Linux and SunOS 64-bit kernels:
23522         nanosleep mishandles sleeps for longer than 2**31 seconds.
23523         Problem reported by Frank v Waveren in
23524         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23525         * lib/nanosleep.c (BILLION): New constant.
23526         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
23527         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
23528         implementation.
23529
23530 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23531
23532         * modules/nanosleep (Depends-on): Add gettime.
23533
23534 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23535         and Simon Josefsson  <jas@extundo.com>
23536         and Oskar Liljeblad  <oskar@osk.mine.nu>
23537
23538         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
23539         * gnulib-tool (func_import): New license type 'unmodifiable license
23540         text'.
23541         * modules/fdl: Use it.  Longer description.
23542         * module/gpl, module/lgpl: New files.
23543
23544 2006-08-30  Jim Meyering  <jim@meyering.net>
23545
23546         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
23547         shadowing the parameter.
23548
23549 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23550
23551         Sync from Libtool:
23552
23553         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23554
23555         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
23556         sharing with gnulib.  Report by Eric Blake.
23557
23558 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23559
23560         * modules/isapipe: New file.
23561         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
23562
23563 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23564
23565         * modules/configmake (Makefile.am): Add a comment, and omit
23566         the CONFIGMAKE_ prefix from generated macro names.  Suggested
23567         by Bruno Haible.
23568
23569 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23570
23571         * m4/isapipe.m4: New file.
23572
23573 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23574
23575         * lib/isapipe.c, lib/isapipe.h: New files.
23576
23577 2006-08-29  Jim Meyering  <jim@meyering.net>
23578
23579         * modules/configmake (Makefile.am): Make configmake.h depend on
23580         Makefile.  Otherwise, a stale configmake.h could hang around.
23581
23582 2006-08-29  Eric Blake  <ebb9@byu.net>
23583
23584         * lib/error.c (error_at_line, print_errno_message): Match libc, after
23585         resolution of upstream bug 3044.
23586
23587 2006-08-29  Bruno Haible  <bruno@clisp.org>
23588
23589         * modules/localcharset (Depends-on): Add configmake.
23590         (Makefile.am): Remove setting of LIBDIR through DEFS.
23591
23592 2006-08-29  Bruno Haible  <bruno@clisp.org>
23593
23594         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
23595         defined.
23596
23597 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23598
23599         * modules/fcntl: New file.
23600         * modules/chdir-safer (Depends-on): Add fcntl.
23601         * modules/fts: Likewise.
23602         * modules/mkdir-p: Likewise.
23603
23604         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
23605         This undoes the most recent change, since we're now addressing the
23606         problem in a different way.
23607
23608         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
23609         into output, since the output might be called Makefile.am even
23610         if $makefile_name is something different.
23611         (func_import): Use $makefile_am rather than
23612         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
23613         empty.
23614
23615         * modules/inttypes (Files): Add m4/inttypes-h.m4.
23616
23617 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23618
23619         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
23620         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
23621         recent change to stdint.m4, since we're now addressing the problem in a
23622         different way.
23623
23624 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23625
23626         * m4/fcntl_h.m4: New file.
23627
23628 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23629
23630         * lib/fcntl_.h: New file.
23631         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
23632         the fcntl module.
23633         * lib/dirchownmod.c: Likewise.
23634         * lib/fts.c: Likewise.
23635
23636         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
23637         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
23638         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
23639         just before including <inttypes.h>, to avoid circular inclusion.
23640
23641 2006-08-28  Jim Meyering  <jim@meyering.net>
23642
23643         * doc/visibility.texi: Actually read and correct the grammar of the
23644         sentence affected by yesterday's change.
23645
23646 2006-08-28  Eric Blake  <ebb9@byu.net>
23647
23648         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
23649         needs wrapper.
23650
23651 2006-08-28  Eric Blake  <ebb9@byu.net>
23652
23653         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
23654
23655 2006-08-28  Eric Blake  <ebb9@byu.net>
23656
23657         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
23658
23659 2006-08-28  Bruno Haible  <bruno@clisp.org>
23660
23661         * modules/c-strstr: New file, from GNU gettext.
23662         * MODULES.html.sh (String handling): Add c-strstr.
23663
23664 2006-08-28  Bruno Haible  <bruno@clisp.org>
23665
23666         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
23667         macros.
23668         Reported by Eric Blake.
23669
23670 2006-08-28  Bruno Haible  <bruno@clisp.org>
23671
23672         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
23673         (VASNPRINTF): Return a string of length > INT_MAX without failing.
23674         * lib/vasprintf.c: Include errno.h, limits.h.
23675         (EOVERFLOW): New fallback definition.
23676         (vasprintf): Test here whether the string length is > INT_MAX.
23677         * lib/vsnprintf.c: Include errno.h, limits.h.
23678         (EOVERFLOW): New fallback definition.
23679         (vsnprintf): Fix bug when generated string was too long for the buffer.
23680         Test here whether the string length is > INT_MAX.
23681
23682 2006-08-28  Bruno Haible  <bruno@clisp.org>
23683
23684         * lib/inttypes_.h (SCNX*): Remove definitions.
23685         Reported by Eric Blake.
23686
23687 2006-08-28  Bruno Haible  <bruno@clisp.org>
23688
23689         * lib/c-strstr.h: New file, from GNU gettext.
23690         * lib/c-strstr.c: New file, from GNU gettext.
23691
23692 2006-08-28  Bruno Haible  <bruno@clisp.org>
23693
23694         * gnulib-tool: Reorder some statements.
23695
23696 2006-08-28  Bruno Haible  <bruno@clisp.org>
23697
23698         * gnulib-tool: New option --makefile-name.
23699         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
23700         $makefile_name.
23701         (func_import): Write $makefile_name to the cache file, and read it from
23702         there unless explicitly specified. Use $makefile_name as file name
23703         instead of Makefile.am. Adjust the recommendations accordingly.
23704
23705 2006-08-28  Bruno Haible  <bruno@clisp.org>
23706
23707         * gnulib-tool (func_verify_module): Check against misapplying patch.
23708
23709 2006-08-28  Bruno Haible  <bruno@clisp.org>
23710
23711         * gnulib-tool (func_relativize, func_relconcat): New functions.
23712         Give an error if --local-dir is given with --update.
23713         Remove trailing slashes from $local_gnulib_dir.
23714         (func_import): Store the relativized $local_gnulib_dir in
23715         gnulib-cache.m4, and read it from there if not specified explicitly.
23716
23717 2006-08-28  Bruno Haible  <bruno@clisp.org>
23718
23719         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
23720         is the current directory. Respect also $local_gnulib_dir.
23721
23722 2006-08-28  Bruno Haible  <bruno@clisp.org>
23723             Simon Josefsson  <jas@extundo.com>
23724
23725         BeOS portability.
23726         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
23727
23728 2006-08-27  Jim Meyering  <jim@meyering.net>
23729
23730         * doc/visibility.texi: Remove duplicate word: "pointer".
23731
23732 2006-08-26  Bruno Haible  <bruno@clisp.org>
23733
23734         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
23735         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
23736         (Makefile.am): Create inttypes.h from inttypes_.h.
23737         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
23738
23739         * modules/imaxabs: New file.
23740
23741         * modules/imaxdiv: New file.
23742
23743 2006-08-26  Bruno Haible  <bruno@clisp.org>
23744
23745         * m4/inttypes.m4: New file.
23746         * m4/_inttypes_h.m4: Remove file.
23747         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
23748         PRI_MACROS_BROKEN.
23749         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
23750
23751         * m4/imaxabs.m4: New file.
23752
23753         * m4/imaxdiv.m4: New file.
23754
23755 2006-08-26  Bruno Haible  <bruno@clisp.org>
23756
23757         * lib/inttypes_.h: New file.
23758         * lib/inttypes.h: Remove file.
23759         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
23760
23761         * lib/imaxabs.c: New file.
23762
23763         * lib/imaxdiv.c: New file.
23764
23765 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23766
23767         New config-h module, so that "make" output needn't be cluttered
23768         by -DHAVE_CONFIG_H.
23769         * MODULES.html.sh (Support for building libraries and executables):
23770         Add config-h.
23771         * modules/config-h: New file.
23772         * gnulib-tool (nl, sed_transform_lib_file): New vars.
23773         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
23774         the config-h module is used.
23775
23776         New configmake module, so that "make" output needn't be cluttered
23777         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
23778         * MODULES.html.sh (Support for building libraries and executables):
23779         Add configmake.
23780         * modules/configmake: New file.
23781
23782 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23783
23784         * m4/config-h.m4: New file.
23785
23786 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23787
23788         * config/srclist.txt: Add elisp-comp.
23789
23790 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23791
23792         * MODULES.html.sh (Support for building libraries and executables):
23793         Add elisp-comp.
23794         * build-aux/elisp-comp: New file.
23795         * modules/elisp-comp: New file.
23796
23797 2006-08-24  Bruno Haible  <bruno@clisp.org>
23798
23799         * gnulib-tool (func_create_testdir): Use non-default values of
23800         sourcebase and m4base.
23801
23802 2006-08-24  Bruno Haible  <bruno@clisp.org>
23803
23804         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
23805         HTML structure.
23806
23807 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23808
23809         * modules/openat (Depends-on): Add lchown.
23810
23811 2006-08-23  Bruno Haible  <bruno@clisp.org>
23812
23813         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
23814         of gl_LOCK_EARLY instead of gl_LOCK.
23815
23816 2006-08-23  Bruno Haible  <bruno@clisp.org>
23817
23818         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
23819         on OSF/1 to no.
23820         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
23821
23822 2006-08-23  Bruno Haible  <bruno@clisp.org>
23823
23824         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
23825         as unusable.
23826
23827         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
23828         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
23829         (gl_LOCK): New macro.
23830
23831 2006-08-22  Simon Josefsson  <jas@extundo.com>
23832
23833         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
23834         to md5 module.
23835
23836 2006-08-22  Simon Josefsson  <jas@extundo.com>
23837
23838         * MODULES.html.sh: Add "Support for maintaining and release
23839         projects".
23840
23841         * build-aux/gnupload: New file, from coreutils.
23842
23843 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23844
23845         Avoid the need for AC_LIBSOURCES in m4 macros.
23846         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
23847         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
23848         * modules/check-version (EXTRA_DIST): Add check-version.h.
23849         * modules/crc (EXTRA_DIST): Add crc.h.
23850         * modules/des (EXTRA_DIST): Add des.h.
23851         * modules/gc (EXTRA_DIST): Add gc.h.
23852         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
23853         * modules/getline (EXTRA_DIST): Add getline.h.
23854         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
23855         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
23856         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
23857         * modules/md2 (EXTRA_DIST): Add md2.h.
23858         * modules/md4 (EXTRA_DIST): Add md4.h.
23859         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
23860         * modules/read-file (EXTRA_DIST): Add read-file.h.
23861         * modules/readline (EXTRA_DIST): Add readline.h.
23862         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
23863         rijndael-api-fst.h.
23864
23865 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23866
23867         * m4/rijndael.m4 (gl_ARCFOUR):
23868         * m4/arctwo.m4 (gl_ARCTWO):
23869         * m4/check-version.m4 (gl_CHECK_VERSION):
23870         * m4/crc.m4 (gl_CRC):
23871         * m4/des.m4 (gl_DES):
23872         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
23873         * m4/gc.m4 (gl_GC):
23874         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
23875         * m4/getline.m4 (gl_FUNC_GETLINE):
23876         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
23877         * m4/hmac-md5.m4 (gl_HMAC_MD5):
23878         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
23879         * m4/md2.m4 (gl_MD2):
23880         * m4/md4.m4 (gl_MD4):
23881         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
23882         * m4/read-file.m4 (gl_FUNC_READ_FILE):
23883         * m4/readline.m4 (gl_FUNC_READLINE):
23884         * m4/rijndael.m4 (gl_RIJNDAEL):
23885         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23886         to get the necessary .h files and whatnot.
23887
23888 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23889
23890         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
23891         gnulib rather than the other way around.
23892         * config/srclistvars.sh (COREUTILS): Remove.
23893
23894 2006-08-22  Jim Meyering  <jim@meyering.net>
23895
23896         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
23897
23898         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
23899
23900 2006-08-22  Eric Blake  <ebb9@byu.net>
23901
23902         * modules/regexprops-generic: New file.
23903         * MODULES.html.sh (Support for building documentation): List it.
23904
23905 2006-08-22  Eric Blake  <ebb9@byu.net>
23906
23907         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
23908         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23909         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
23910         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23911
23912 2006-08-22  Bruno Haible  <bruno@clisp.org>
23913
23914         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
23915         and lib_LTLIBRARIES like the other lib_* variables.
23916
23917 2006-08-22  Bruno Haible  <bruno@clisp.org>
23918
23919         * build-aux/x-to-1.in: New file, from GNU gettext.
23920
23921 2006-08-22  Bruno Haible  <bruno@clisp.org>
23922
23923         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
23924         <utmpx.h> exists.
23925
23926 2006-08-22  Bruno Haible  <bruno@clisp.org>
23927
23928         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
23929         <utmpx.h> exists.
23930
23931 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23932
23933         BeOS portability.
23934         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
23935         exist.
23936         Problem reported by Bruno Haible.
23937
23938 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23939
23940         Avoid the need for AC_LIBSOURCES in m4 macros.
23941         * modules/acl (EXTRA_DIST): Add acl.h.
23942         * modules/argmatch (Files): Add m4/argmatch.m4.
23943         (configure.ac): Add gl_ARGMATCH.
23944         (EXTRA_DIST): Renamed from lib_SOURCES, for
23945         consistency with the other modules.  Remove argmatch.c.
23946         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
23947         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
23948         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
23949         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
23950         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
23951         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
23952         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
23953         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
23954         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
23955         * modules/closeout (EXTRA_DIST): Add closeout.h.
23956         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
23957         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
23958         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
23959         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
23960         dirname.h; remove basename.c and stripslash.c.
23961         * modules/exclude (EXTRA_DIST): Add exclude.h.
23962         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
23963         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
23964         * modules/file-type (EXTRA_DIST): Add file-type.h.
23965         * modules/filemode (EXTRA_DIST): Add filemode.h.
23966         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
23967         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23968         * modules/fpending (EXTRA_DIST): Add __fpending.h.
23969         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
23970         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
23971         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
23972         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
23973         * modules/getdate (EXTRA_DIST): Add getdate.c.
23974         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
23975         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
23976         * modules/getpass (EXTRA_DIST): Add getpass.h.
23977         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
23978         * modules/group-member (EXTRA_DIST): Add group-member.h.
23979         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
23980         * modules/hash (EXTRA_DIST): Add hash.h.
23981         * modules/human (EXTRA_DIST): Add human.h.
23982         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
23983         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
23984         * modules/lchown (EXTRA_DIST): Add lchown.h.
23985         * modules/long-options (EXTRA_DIST): Add long-options.h.
23986         * modules/lstat (EXTRA_DIST): Add lstat.h.
23987         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
23988         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
23989         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
23990         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
23991         * modules/memxor (EXTRA_DIST): Add memxor.h.
23992         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
23993         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
23994         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
23995         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
23996         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
23997         * modules/physmem (EXTRA_DIST): Add physmem.h.
23998         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
23999         * modules/posixver (EXTRA_DIST): Add posixver.h.
24000         * modules/quote (EXTRA_DIST): Add quote.h.
24001         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
24002         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
24003         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
24004         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
24005         regex_internal.h regexec.c.
24006         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
24007         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
24008         * modules/same (EXTRA_DIST): Add same.h.
24009         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
24010         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
24011         * modules/savedir (EXTRA_DIST): Add savedir.h.
24012         * modules/sha1 (EXTRA_DIST): Add sha1.h.
24013         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
24014         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
24015         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
24016         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
24017         * modules/strdup (EXTRA_DIST): Add strdup.h.
24018         * modules/strftime (EXTRA_DIST): Add strftime.h.
24019         * modules/strndup (EXTRA_DIST): Add strndup.h.
24020         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
24021         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
24022         * modules/time_r (EXTRA_DIST): Add time_r.h.
24023         * modules/timespec (EXTRA_DIST): Add timespec.h.
24024         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24025         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
24026         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
24027         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
24028         * modules/userspec (EXTRA_DIST): Add userspec.h.
24029         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
24030         * modules/utimens (EXTRA_DIST): Add utimens.h.
24031         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
24032         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
24033         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
24034         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
24035         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
24036         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
24037         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
24038         * modules/yesno (EXTRA_DIST): Add yesno.h.
24039
24040 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24041
24042         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
24043
24044         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
24045         * m4/dev-ino.m4, same-inode.m4: Remove.
24046
24047         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
24048         * m4/acl.m4 (AC_FUNC_ACL):
24049         * m4/backupfile.m4 (gl_BACKUPFILE):
24050         * m4/c-strtod.m4 (gl_C99_STRTOLD):
24051         * m4/canon-host.m4 (gl_CANON_HOST):
24052         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
24053         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
24054         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
24055         * m4/cloexec.m4 (gl_CLOEXEC):
24056         * m4/close-stream.m4 (gl_CLOSE_STREAM):
24057         * m4/closeout.m4 (gl_CLOSEOUT):
24058         * m4/dirfd.m4 (gl_FUNC_DIRFD):
24059         * m4/dirname.m4 (gl_DIRNAME):
24060         * m4/exclude.m4 (gl_EXCLUDE):
24061         * m4/exitfail.m4 (gl_EXITFAIL):
24062         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
24063         * m4/file-type.m4 (gl_FILE_TYPE):
24064         * m4/filemode.m4 (gl_FILEMODE):
24065         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
24066         * m4/fpending.m4 (gl_FUNC_FPENDING):
24067         * m4/fprintftime.m4 (gl_FPRINTFTIME):
24068         * m4/fts.m4 (gl_FUNC_FTS):
24069         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24070         * m4/getdate.m4 (gl_GETDATE):
24071         * m4/gethrxtime.m4 (gl_GETHRXTIME):
24072         * m4/getpagesize.m4 (gl_GETPAGESIZE):
24073         * m4/getpass.m4 (gl_FUNC_GETPASS):
24074         * m4/gettime.m4 (gl_GETTIME):
24075         * m4/getugroups.m4 (gl_GETUGROUPS):
24076         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
24077         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
24078         * m4/hard-locale.m4 (gl_HARD_LOCALE):
24079         * m4/hash.m4 (gl_HASH):
24080         * m4/idcache.m4 (gl_IDCACHE):
24081         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
24082         * m4/lchown.m4 (gl_FUNC_LCHOWN):
24083         * m4/long-options.m4 (gl_LONG_OPTIONS):
24084         * m4/lstat.m4 (gl_FUNC_LSTAT):
24085         * m4/md5.m4 (gl_MD5):
24086         * m4/memcasecmp.m4 (gl_MEMCASECMP):
24087         * m4/memcoll.m4 (gl_MEMCOLL):
24088         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
24089         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
24090         * m4/memxor.m4 (gl_MEMXOR):
24091         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
24092         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
24093         * m4/modechange.m4 (gl_MODECHANGE):
24094         * m4/mountlist.m4 (gl_MOUNTLIST):
24095         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
24096         * m4/openat.m4 (gl_FUNC_OPENAT):
24097         * m4/pathmax.m4 (gl_PATHMAX):
24098         * m4/physmem.m4 (gl_PHYSMEM):
24099         * m4/posixtm.m4 (gl_POSIXTM):
24100         * m4/posixver.m4 (gl_POSIXVER):
24101         * m4/quote.m4 (gl_QUOTE):
24102         * m4/quotearg.m4 (gl_QUOTEARG):
24103         * m4/readtokens.m4 (gl_READTOKENS):
24104         * m4/readutmp.m4 (gl_READUTMP):
24105         * m4/regex.m4 (gl_REGEX):
24106         * m4/safe-read.m4 (gl_SAFE_READ):
24107         * m4/safe-write.m4 (gl_SAFE_WRITE):
24108         * m4/same.m4 (gl_SAME):
24109         * m4/save-cwd.m4 (gl_SAVE_CWD):
24110         * m4/savedir.m4 (gl_SAVEDIR):
24111         * m4/settime.m4 (gl_SETTIME):
24112         * m4/sha1.m4 (gl_SHA1):
24113         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
24114         * m4/stat-macros.m4 (gl_STAT_MACROS):
24115         * m4/stat-time.m4 (gl_STAT_TIME):
24116         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
24117         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
24118         * m4/strdup.m4 (gl_FUNC_STRDUP):
24119         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
24120         * m4/strndup.m4 (gl_FUNC_STRNDUP):
24121         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
24122         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
24123         * m4/time_r.m4 (gl_TIME_R):
24124         * m4/timespec.m4 (gl_TIMESPEC):
24125         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
24126         * m4/unlinkdir.m4 (gl_UNLINKDIR):
24127         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
24128         * m4/userspec.m4 (gl_USERSPEC):
24129         * m4/utimecmp.m4 (gl_UTIMECMP):
24130         * m4/utimens.m4 (gl_UTIMENS):
24131         * m4/xalloc.m4 (gl_XALLOC):
24132         * m4/xgetcwd.m4 (gl_XGETCWD):
24133         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
24134         * m4/xreadlink.m4 (gl_XREADLINK):
24135         * m4/xstrtod.m4 (gl_XSTRTOD):
24136         * m4/yesno.m4 (gl_YESNO):
24137         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24138         to get the necessary .h files and whatnot.
24139
24140 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
24141             Bruno Haible  <bruno@clisp.org>
24142
24143         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
24144         /bin/sh understanding of '!' conditional negation.
24145
24146 2006-08-21  Jim Meyering  <jim@meyering.net>
24147
24148         * modules/openat (Depends-on): Really alphabetize.
24149
24150         * modules/acl (Depends-on): Add error and quote.
24151
24152         * check-module (find_included_lib_files): Add at-func.c to the
24153         ok-to-include-more-than-once white list.
24154
24155         * modules/openat (Depends-on): Add lstat.  Alphabetize.
24156
24157 2006-08-21  Bruno Haible  <bruno@clisp.org>
24158
24159         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24160         Emit a pkgdata_DATA variable only if some snippets add contents to it.
24161         Reported by Martin Lambers <marlam@marlam.de>.
24162
24163 2006-08-21  Bruno Haible  <bruno@clisp.org>
24164
24165         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
24166         specify an installation location, don't emit a noinst_LIBRARIES or
24167         noinst_LTLIBRARIES assignment.
24168
24169 2006-08-21  Bruno Haible  <bruno@clisp.org>
24170
24171         BeOS portability.
24172         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
24173         BeOS has mbrtowc() but no <wctype.h>.
24174
24175 2006-08-21  Bruno Haible  <bruno@clisp.org>
24176
24177         BeOS portability.
24178         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
24179         exist.
24180
24181 2006-08-21  Bruno Haible  <bruno@clisp.org>
24182
24183         BeOS portability.
24184         * lib/mbchar.h: Include <wctype.h> only if it exists.
24185
24186 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24187
24188         Remove files that are no longer needed by their respective modules.
24189         * m4/obstack.m4: Remove.
24190         * m4/strerror_r.m4: Remove.
24191         * m4/uint32_t.m4: Remove.
24192         * m4/uintptr_t.m4: Remove.
24193         * m4/ullong_max.m4: Remove.
24194         * m4/xstrtoimax.m4: Remove.
24195         * m4/xstrtoumax.m4: Remove.
24196
24197         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
24198         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
24199         dependencies now capture this.
24200
24201         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
24202         Do not use AC_LIBSOURCES, since gnulib modules now do this.
24203         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
24204         * m4/human.m4 (gl_HUMAN): Likewise.
24205         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
24206         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
24207
24208         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
24209
24210         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
24211         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
24212         stdint.
24213         * m4/human.m4 (gl_HUMAN): Likewise.
24214         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
24215         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
24216         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24217         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24218         * m4/xstrtol (gl_XSTRTOL): Likewise.
24219
24220         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
24221         AC_TYPE_LONG_LONG_INT.
24222         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24223         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
24224         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
24225         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24226
24227         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
24228         on stdbool.
24229
24230         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
24231         (gl_PREREQ_XSTRTOUL): Remove.
24232
24233         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
24234
24235         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
24236         mode.
24237
24238 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24239
24240         Add and change modules to make it easier for coreutils to use
24241         gnulib-tool.
24242         * modules/backupfile (Files): Remove m4/d-ino.m4.
24243         (Depends-on): Add d-ino.
24244         * modules/cycle-check (Depends-on): Add stdint.
24245         (lib_SOURCES): Add cycle-check.h.
24246         * modules/d-ino: New module.
24247         * modules/d-type: New module.
24248         * modules/error (Files): Remove m4/strerror_r.m4.
24249         * modules/filemode (Files): Add m4/st_dm_mode.m4.
24250         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24251         m4/inttypes_h.m4, m4/uintmax_t.m4.
24252         (Depends-on): Add stdint.
24253         (lib_SOURCES): Add fsusage.h.
24254         * modules/getcwd (Files): Remove d-ino.m4.
24255         (Depends-on): Add d-ino.
24256         * modules/getndelim2 (Depends-on): Add stdint.
24257         * modules/glob (Files): Remove m4/d-type.m4.
24258         (Depends-on): Add d-type.
24259         * modules/host-os: New module.
24260         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
24261         m4/inttypes_h.m4, m4/uintmax_t.m4.
24262         * Depends-on: Add stdint.
24263         (lib_SOURCES): Add human.h.
24264         * modules/inttostr (Files): Remove m4/intmax_t.m4,
24265         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
24266         m4/uintmax_t.m4, m4/ulonglong.m4.
24267         (Depends-on): Add stdint.
24268         (EXTRA_DIST): Add inttostr.h.
24269         * modules/lchmod: New module.
24270         * modules/link-follow: New module.
24271         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
24272         (Depends-on): Add lchmod.
24273         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
24274         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
24275         (Depends-on): Add stdint.
24276         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
24277         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
24278         (Depends-on): Add stdint.
24279         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
24280         * modules/perl: New module.
24281         * modules/regex (Depends-on): Add stdint.
24282         * modules/rmdir-errno: New module.
24283         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24284         m4/intmax_t.m4.
24285         (Depends-on): Add stdint.
24286         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24287         m4/uintmax_t.m4.
24288         (Depends-on): Add stdint.
24289         * modules/unlink-busy: New module.
24290         * modules/utimecmp (Depends-on): Add stdint.
24291         * modules/uptime: New module.
24292         * modules/winsz-ioctl: New module.
24293         * modules/winsz-termios: New module.
24294         * modules/xnanosleep (Depends-on): Add nanosleep.
24295         * modules/ullong_max: Remove.
24296         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
24297         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
24298         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
24299         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
24300         (Depends-on): Add inttypes.
24301         (lib_SOURCES): Add xstrtol.h.
24302         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
24303         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
24304         * MODULES.html.sh: Move 'assert' into the assert section.
24305         Move 'dummy' into the linking section.
24306         Remove ullong_max.
24307         Add section for compatibility checks for POSIX:2001 functions,
24308         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
24309         winsz-ioctl, and winsz-termios into it.
24310         Add lchmod.
24311         Add top-level Misc section and put host-os, perl, and uptime
24312         into it.
24313
24314 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24315
24316         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
24317         now assume the stdint module.  Do not include inttypes.h.
24318         * lib/fsusage.h: Likewise.
24319         * lib/getndelim2.c: Likewise.
24320         * lib/human.h: Likewise.
24321         * lib/inttostr.h: Likewise.
24322         * lib/obstack.c: Likewise.
24323         * lib/regex_internal.h: Likewise.
24324         * lib/tempname.c: Likewise.
24325         * lib/utimecmp.c: Likewise.
24326         * lib/xstrtol.h: Likewise.
24327
24328         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
24329
24330         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
24331         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
24332         * lib/xtime.h: Likewise.
24333
24334 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24335
24336         * modules/openat (Files): Add lib/fchmodat.c.
24337         Fixes problem reported by Jay Youngman.
24338
24339 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24340
24341         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
24342         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
24343
24344 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24345             Bruno Haible  <bruno@clisp.org>
24346
24347         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
24348         and is a script that invokes bison. Tighten the code. Add comments.
24349
24350 2006-08-18  Jim Meyering  <jim@meyering.net>
24351
24352         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
24353         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
24354         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
24355         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
24356
24357 2006-08-18  Bruno Haible  <bruno@clisp.org>
24358
24359         * modules/bison-i18n: New file.
24360         * MODULES.html.sh (Internationalization functions): Add it.
24361
24362 2006-08-18  Bruno Haible  <bruno@clisp.org>
24363
24364         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
24365         sys/statvfs.h. When getmntinfo was found, check its declaration and
24366         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
24367
24368 2006-08-18  Bruno Haible  <bruno@clisp.org>
24369
24370         * m4/bison-i18n.m4: New file, from bison.
24371
24372 2006-08-18  Bruno Haible  <bruno@clisp.org>
24373
24374         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
24375         (ME_DUMMY): Treat "kernfs" as a dummy.
24376         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
24377
24378 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24379
24380         Update from coreutils.
24381
24382         2006-08-15  Jim Meyering  <jim@meyering.net>
24383
24384         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
24385
24386         2006-01-17  Jim Meyering  <jim@meyering.net>
24387
24388         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
24389
24390         2006-01-11  Jim Meyering  <jim@meyering.net>
24391
24392         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
24393         Check for the lchmod function.
24394
24395 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24396
24397         Update from coreutils.
24398
24399         * lib/__fpending.h: Add copyright notice.
24400         * lib/fprintftime.h: Likewise.
24401         * lib/savedir.c: Use (C) in copyright notice.
24402         * lib/savedir.h: Likewise.
24403
24404         2006-08-15  Jim Meyering  <jim@meyering.net>
24405
24406         * lib/at-func.c: New file, with the logic of all emulated at-functions.
24407         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
24408         in support of the EXPECTED_ERRNO macro.
24409         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
24410         definitions.  Instead, define the appropriate symbols and include
24411         "at-func.c".
24412         * lib/mkdirat.c (mkdirat): Likewise.
24413         * lib/fchmodat.c (fchmodat): Likewise.
24414         (ENOSYS): Remove definition.
24415         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
24416         it.  Don't include "unistd--.h" -- it wasn't ever used.
24417
24418         2006-01-17  Jim Meyering  <jim@meyering.net>
24419
24420         Rewrite fts.c not to change the current working directory,
24421         by using openat, fstatat, fdopendir, etc..
24422
24423         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
24424         (HAVE_OPENAT_SUPPORT): Define.
24425         [_LIBC] (fchdir): Don't undef or define; no longer used.
24426         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
24427         Now, this `function' always succeeds, and consumes its file descriptor
24428         parameter -- so callers must not close such FDs.  Update callers.
24429         (diropen_fd, opendirat, cwd_advance_fd): New functions.
24430         (diropen): Add parameter, SP.  Adjust all callers.
24431         Implement using diropen_fd, rather than open.
24432         (fts_open): Initialize new member, fts_cwd_fd.
24433         Remove fts_rft-setting code.
24434         (fts_close): Close fts_cwd_fd, if necessary.
24435         (__opendir2): Define in terms of opendir or opendirat,
24436         depending on whether the FST_NOCHDIR flag is set.
24437         (fts_build): Since fts_safe_changedir consumes its FD, and since
24438         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
24439         and close the dup'd file descriptor upon failure.
24440         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
24441         (fts_safe_changedir): Tweak semantics to reflect that this function
24442         now calls cwd_advance_fd and hence consumes its FD argument.
24443         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
24444         [struct FTS] (fts_rft): Remove now-unused member.
24445         [struct FTS] (fts_cycle.state): Improve comment.
24446
24447         * lib/openat.c (openat_needs_fchdir): New function.
24448         * lib/openat.h (openat_needs_fchdir): Declare it.
24449
24450 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24451
24452         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
24453         Problem and fix reported by Pádraig Brady in
24454         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
24455
24456 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24457
24458         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
24459
24460 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24461
24462         * lib/memcoll.c (memcoll): Optimize for the common case where the
24463         arguments are bytewise equal.
24464
24465 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24466
24467         * doc/regexprops-generic.texi: Add a copyright notice.
24468
24469 2006-08-15  Bruno Haible  <bruno@clisp.org>
24470
24471         * modules/tmpdir (License): Change to LGPL.
24472
24473 2006-08-15  Bruno Haible  <bruno@clisp.org>
24474
24475         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
24476         module.
24477
24478 2006-08-14  Simon Josefsson  <jas@extundo.com>
24479
24480         * config/srclist.txt: Add gnupload.
24481
24482 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24483
24484         Change copyright notice from LGPL 2 to GPL 2, since that's the
24485         standard form used in the gnulib repository.
24486         * tests/test-lock.c: Likewise.
24487         * tests/test-stdint.c: Likewise.
24488         * tests/test-tls.c: Likewise.
24489
24490         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
24491         prelude-manager.  User shorter URLs for GNU projects, without '?'.
24492         Add copyright notice.
24493
24494         * check-module: Add copyright notice.  Output a copyright
24495         notice if "--version" is specified.
24496         * modules/COPYING: New file.
24497         * tests/test-getaddrinfo.c: Add copyright notice.
24498         * tests/test-verify.c: Likewise.
24499
24500 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24501
24502         Change copyright notice from LGPL 2 to GPL 2, since that's the
24503         standard form used in the gnulib repository.
24504         * lib/lock.c: LGPL -> GPL.
24505         * lib/lock.h: Likewise.
24506         * lib/strnlen1.c: Likewise.
24507         * lib/strnlen1.h: Likewise.
24508         * lib/tls.c: Likewise.
24509         * lib/tls.h: Likewise.
24510         * lib/tmpdir.c: Likewise.
24511
24512         * lib/TODO: Remove; this belongs only in coreutils.
24513
24514 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24515
24516         Add copyright notices to long-enough files that lack them, since
24517         otherwise the files aren't clearly free.  Use the same notice that
24518         getdate.texi already uses.
24519         * doc/alloca-opt.texi: Add copyright notice.
24520         * doc/alloca.texi: Likewise.
24521         * doc/ctime.texi: Likewise.
24522         * doc/functions.texi: Likewise.
24523         * doc/gcd.texi: Likewise.
24524         * doc/gnulib-tool.texi: Likewise.
24525         * doc/inet_ntoa.texi: Likewise.
24526         * doc/visibility.texi: Likewise.
24527
24528         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
24529         * doc/quote.texi: Add copyright notice.
24530
24531         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
24532         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
24533         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
24534         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
24535         is now obsolete, and give a pointer to the Sun list.
24536         Add copyright notice.
24537
24538 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24539
24540         * config/srclistvars.sh: Add copyright notice.
24541
24542 2006-08-14  Eric Blake  <ebb9@byu.net>
24543
24544         Import the following change from libc:
24545
24546         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
24547
24548         Upstream bug 2997.
24549         * lib/misc/error.c: Add space between program name and message if file
24550         name is missing.
24551
24552 2006-08-12  Karl Berry  <karl@gnu.org>
24553
24554         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
24555         remove, these originate in gnulib now.
24556
24557 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24558
24559         * doc/Makefile (standards.info standards.html standards.dvi):
24560         Also depend on make-stds.texi.
24561
24562 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24563
24564         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
24565         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
24566
24567         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
24568         in wchar_t.  Problem reported by Eric Blake.
24569
24570         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
24571         LEN is smaller than SIZE.  Suggested by Bruno Haible.
24572         Also, help the compiler to keep LEN in a register.
24573
24574 2006-08-11  Eric Blake  <ebb9@byu.net>
24575
24576         * users.txt: Sort.  Add tar.
24577
24578 2006-08-11  Bruno Haible  <bruno@clisp.org>
24579
24580         * users.txt: New file.
24581
24582 2006-08-11  Bruno Haible  <bruno@clisp.org>
24583
24584         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
24585         before <wchar.h>. Needed for OSF/1 and BSD/OS.
24586
24587 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24588
24589         * modules/snprintf (Depends-on): Remove minmax.
24590         (Maintainer): Add self and Bruno.
24591
24592 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24593
24594         * lib/.cppi-disable: Add snprintf.h, socket_.h.
24595         * lib/snprintf.c: Include <errno.h> and <limits.h>.
24596         (EOVERFLOW): Define if the system does not.
24597         Do not include "minmax.h"; it wasn't used.
24598         (snprintf): Don't assume size_t promotes to an unsigned type.
24599         Fix bug when generated string was too long for the buffer: the
24600         buffer's contents are supposed to be the initial prefix of the
24601         output.  Don't assume vasnprintf returns EOVERFLOW if the size
24602         exceeds INT_MAX; do the check ourselves.
24603
24604         Import the following changes from libc:
24605
24606         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
24607
24608         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
24609         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
24610         set wc to the byte which couldn't be converted.
24611         (re_string_reconstruct): Don't clear valid_raw_len before calling
24612         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
24613         tip_context using re_string_context_at.
24614
24615         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
24616
24617         * lib/posix/regex.h: g++ still cannot handled [restrict].
24618
24619         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
24620
24621         * lib/posix/regex.h: Remove special handling for VMS.
24622
24623 2006-08-10  Jim Meyering  <jim@meyering.net>
24624
24625         * modules/same-inode: New module.
24626         * modules/dev-ino: New module.
24627         * modules/cycle-check: Depend on these modules, rather than simply
24628         including their .h files.
24629         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
24630         required via m4/cycle-check.m4.
24631         * modules/same: Depend on new same-inode module, rather than
24632         including same-inode.h.
24633         * modules/chdir-safer: New file.
24634
24635         * modules/chown (Depends-on): Add stat-macros.
24636
24637 2006-08-10  Jim Meyering  <jim@meyering.net>
24638
24639         * m4/cycle-check.m4: New file.
24640         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
24641         * m4/dev-ino.m4, m4/same-inode.m4: New files.
24642
24643 2006-08-10  Eric Blake  <ebb9@byu.net>
24644
24645         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
24646         in from original proposal.
24647
24648 2006-08-10  Eric Blake  <ebb9@byu.net>
24649         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24650
24651         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
24652         namespace.
24653
24654 2006-08-10  Bruno Haible  <bruno@clisp.org>
24655
24656         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
24657         as well.
24658
24659 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24660
24661         Sync from coreutils.
24662
24663         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
24664
24665         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
24666         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
24667
24668 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24669
24670         * modules/restrict: Remove; no longer needed now that we assume
24671         Autoconf 2.59 or later.
24672         * MODULES.html.sh: Remove 'restrict'.
24673         * modules/argp (Depends-on): Remove 'restrict'.
24674         * modules/base64 (Depends-on): Likewise.
24675         * modules/gc (Depends-on): Likewise.
24676         * modules/getaddrinfo (Depends-on): Likewise.
24677         * modules/glob (Depends-on): Likewise.
24678         * modules/inet_ntop (Depends-on): Likewise.
24679         * modules/inet_pton (Depends-on): Likewise.
24680         * modules/memxor (Depends-on): Likewise.
24681         * modules/regex (Depends-on): Likewise.
24682         * modules/strtok_r (Depends-on): Likewise.
24683         * modules/time_r (Depends-on): Likewise.
24684
24685 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24686
24687         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
24688         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
24689         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24690         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
24691         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24692         * m4/memxor.m4 (gl_MEMXOR): Likewise.
24693         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
24694         gl_C_RESTRICT replaced by AC_C_RESTRICT.
24695
24696         Merge from coreutils.
24697         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
24698         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
24699         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24700         * m4/time_r.m4 (gl_TIME_R): Likewise.
24701
24702 2006-08-09  Karl Berry  <karl@gnu.org>
24703
24704         * config/srclist.txt: no more gettext-tools, per Bruno.
24705
24706 2006-08-08  Eric Blake  <ebb9@byu.net>
24707
24708         * modules/verror: New module.
24709         * MODULES.html.sh: Document it.
24710
24711 2006-08-08  Eric Blake  <ebb9@byu.net>
24712
24713         * lib/verror.h, lib/verror.c: New files.
24714
24715 2006-08-08  Eric Blake  <ebb9@byu.net>
24716
24717         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
24718         verror_at_line output complies with GNU Coding Standards even when
24719         file is NULL.
24720
24721 2006-08-07  Bruno Haible  <bruno@clisp.org>
24722
24723         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
24724         versions of AIX.
24725         Reported by Ralf Wildenhues.
24726
24727 2006-08-07  Bruno Haible  <bruno@clisp.org>
24728
24729         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
24730         in an AC_DEFUN. Needed so that the autoconf snippets can use
24731         AC_REQUIRE.
24732
24733 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24734
24735         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24736         Initialize pkgdata_DATA.
24737         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
24738         overriding it.
24739
24740 2006-08-06  Eric Blake  <ebb9@byu.net>
24741
24742         * lib/error.h: Fold in some upstream changes from glibc.
24743         * lib/error.c: Likewise.
24744
24745 2006-08-04  Bruno Haible  <bruno@clisp.org>
24746
24747         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24748         Make the mostlyclean-local rule depend on mostlyclean-generic.
24749         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
24750
24751 2006-07-31  Bruno Haible  <bruno@clisp.org>
24752
24753         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
24754         <stdlib.h>, <string.h>.
24755
24756 2006-07-30  Bruno Haible  <bruno@clisp.org>
24757
24758         * modules/readlink (License): Change to LGPL.
24759
24760 2006-07-30  Bruno Haible  <bruno@clisp.org>
24761
24762         * modules/javaversion (Makefile.am): Distribute javaversion.java and
24763         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
24764         set PKGDATADIR to point to it.
24765
24766 2006-07-30  Bruno Haible  <bruno@clisp.org>
24767
24768         * modules/csharpexec (configure.ac): Comment out macro invocation.
24769         * modules/javaexec (configure.ac): Likewise.
24770         * modules/javacomp-script (configure.ac): Likewise.
24771
24772         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
24773
24774 2006-07-30  Bruno Haible  <bruno@clisp.org>
24775
24776         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
24777         linked-list.
24778
24779 2006-07-30  Bruno Haible  <bruno@clisp.org>
24780
24781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
24782
24783 2006-07-30  Bruno Haible  <bruno@clisp.org>
24784
24785         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24786         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
24787         get removed.
24788
24789 2006-07-29  Bruno Haible  <bruno@clisp.org>
24790
24791         Make it possible for gnulib-tool to work with locally modified or
24792         augmented gnulib repositories.
24793         * gnulib-tool (func_usage): Document --local-dir option.
24794         (local_gnulib_dir): New variable.
24795         Handle --local-dir option.
24796         (func_lookup_file): New function.
24797         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
24798         (func_get_description, func_get_filelist, func_get_description,
24799         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
24800         func_get_automake_snippet, func_get_include_directive,
24801         func_get_license, func_get_maintainer): Use func_lookup_file.
24802         (func_import, func_create_testdir): Use func_lookup_file.
24803
24804 2006-07-29  Bruno Haible  <bruno@clisp.org>
24805
24806         * modules/setenv (Depends-on): Add unistd.
24807
24808 2006-07-29  Bruno Haible  <bruno@clisp.org>
24809
24810         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
24811
24812 2006-07-29  Bruno Haible  <bruno@clisp.org>
24813
24814         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
24815
24816 2006-07-29  Bruno Haible  <bruno@clisp.org>
24817
24818         * gnulib-tool (import, update): If there is no Makefile.am, look at
24819         aclocal.m4, instead of bailing out.
24820
24821 2006-07-29  Bruno Haible  <bruno@clisp.org>
24822
24823         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
24824         Categorize the options by when they are useful.
24825
24826 2006-07-29  Bruno Haible  <bruno@clisp.org>
24827
24828         * gnulib-tool (func_usage): Document option --no-libtool.
24829         Handle option --no-libtool.
24830         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
24831         for changed semantics of $libtool variable.
24832         (func_import): Likewise. If libtool is not used, show this through
24833         an option --no-libtool.
24834         (func_create_testdir): Update.
24835
24836 2006-07-29  Bruno Haible  <bruno@clisp.org>
24837
24838         * gnulib-tool (func_import): Extend error message about missing
24839         --doc-base.
24840
24841 2006-07-29  Bruno Haible  <bruno@clisp.org>
24842
24843         * gnulib-tool (func_import): Don't create the $docbase directory if
24844         there is no file to store there.
24845
24846 2006-07-29  Bruno Haible  <bruno@clisp.org>
24847
24848         * gnulib-tool (autoconf_minversion): If a --dir option is given and
24849         relevant, look for configure.ac there, not in the current directory.
24850         Also use a simple search for AC_PREREQ, not "autoconf --trace".
24851
24852 2006-07-29  Bruno Haible  <bruno@clisp.org>
24853
24854         * gnulib-tool (SORT): New variable.
24855         (func_usage): Undocument --assume-autoconf option.
24856         Remove --assume-autoconf option handling.
24857         (autoconf_minversion): Determine from the contents of configure.ac.
24858         (func_import): Remove autoconf_minversion handling.
24859         Suggested by Eric Blake.
24860
24861 2006-07-29  Bruno Haible  <bruno@clisp.org>
24862
24863         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
24864
24865 2006-07-29  Bruno Haible  <bruno@clisp.org>
24866
24867         * config/srclist.txt (*setenv.[ch]): Remove rules.
24868
24869 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24870
24871         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
24872
24873 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24874
24875         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
24876         arpa/inet.h.
24877
24878 2006-07-28  Simon Josefsson  <jas@extundo.com>
24879
24880         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
24881         * modules/inet_pton (Depends-on): Likewise.
24882
24883 2006-07-28  Simon Josefsson  <jas@extundo.com>
24884
24885         * m4/netinet_in_h.m4: New file.
24886
24887 2006-07-28  Simon Josefsson  <jas@extundo.com>
24888
24889         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
24890         #include's.
24891
24892 2006-07-28  Simon Josefsson  <jas@extundo.com>
24893
24894         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
24895         #include's.
24896
24897 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
24898
24899         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
24900         setgid on directories only if they set these bits.
24901         * lib/modechange.h: Remove obsolete comment about masks.
24902
24903 2006-07-28  Eric Blake  <ebb9@byu.net>
24904
24905         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
24906         macro expansion.
24907
24908 2006-07-28  Bruno Haible  <bruno@clisp.org>
24909
24910         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
24911
24912 2006-07-28  Bruno Haible  <bruno@clisp.org>
24913
24914         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
24915
24916 2006-07-28  Bruno Haible  <bruno@clisp.org>
24917
24918         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24919         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24920         Define fallbacks.
24921         Avoids link error on FreeBSD 4.x.
24922         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24923
24924         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
24925         encoding.
24926         * lib/mbswidth.c (iswcntrl): Likewise.
24927
24928 2006-07-27  Bruno Haible  <bruno@clisp.org>
24929
24930         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
24931         test.
24932
24933 2006-07-27  Bruno Haible  <bruno@clisp.org>
24934
24935         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
24936         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
24937         defined.
24938
24939 2006-07-26  Eric Blake  <ebb9@byu.net>
24940
24941         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
24942
24943 2006-07-26  Eric Blake  <ebb9@byu.net>
24944
24945         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
24946         like mingw that lack mkstemp.
24947         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
24948         avoid compilation warning on mingw.
24949
24950 2006-07-26  Bruno Haible  <bruno@clisp.org>
24951
24952         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
24953         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
24954         INT_FAST*_MIN, INTPTR_MIN.
24955
24956 2006-07-25  Bruno Haible  <bruno@clisp.org>
24957
24958         * modules/version-etc (Depends-on): Add stdarg.
24959
24960 2006-07-25  Bruno Haible  <bruno@clisp.org>
24961
24962         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
24963         complex commands.
24964
24965 2006-07-25  Bruno Haible  <bruno@clisp.org>
24966
24967         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
24968         defined in <stdarg.h> or config.h.
24969
24970 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24971
24972         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
24973         (gl_STDIO_SAFER): Remove.
24974
24975 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24976
24977         * MODULES.html.sh (File stream based Input/Output):
24978         Add fopen-safer, tmpfile-safer; remove stdio-safer.
24979         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
24980         * modules/fopen-safer, modules/tmpfile-safer: New files.
24981         * modules/stdio-safer: Remove.
24982
24983 2006-07-24  Bruno Haible  <bruno@clisp.org>
24984
24985         * modules/tmpdir: New file.
24986         * MODULES.html.sh (File system functions): Add it.
24987
24988 2006-07-24  Bruno Haible  <bruno@clisp.org>
24989
24990         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
24991         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
24992
24993 2006-07-24  Bruno Haible  <bruno@clisp.org>
24994
24995         * modules/clean-temp: New file.
24996
24997 2006-07-24  Bruno Haible  <bruno@clisp.org>
24998
24999         * m4/tmpdir.m4: New file, from GNU gettext.
25000
25001 2006-07-24  Bruno Haible  <bruno@clisp.org>
25002
25003         * lib/tmpdir.h: New file, from GNU gettext.
25004         * lib/tmpdir.c: New file, from GNU gettext.
25005
25006 2006-07-24  Bruno Haible  <bruno@clisp.org>
25007
25008         * lib/clean-temp.h: New file, from GNU gettext.
25009         * lib/clean-temp.c: New file, from GNU gettext.
25010
25011 2006-07-23  Eric Blake  <ebb9@byu.net>
25012
25013         * modules/stdio-safer (Files): Add tmpfile-safer.c.
25014         (Depends-on): Add binary-io.
25015
25016 2006-07-23  Eric Blake  <ebb9@byu.net>
25017
25018         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
25019
25020 2006-07-23  Eric Blake  <ebb9@byu.net>
25021
25022         * lib/tmpfile-safer.c: New file.
25023         * lib/stdio-safer.h (fopen_safer): Add prototype.
25024         * lib/stdio--.h (tmpfile): Make safer.
25025
25026 2006-07-23  Bruno Haible  <bruno@clisp.org>
25027
25028         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
25029         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
25030         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
25031         gl_linked_remove_at): Use it.
25032
25033 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25034         and Simon Josefsson <jas@extundo.com>
25035
25036         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
25037
25038         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
25039
25040 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25041
25042         * modules/close-stream: New file.
25043         * modules/closeout (Description): Make it clear that it exits
25044         with a diagnostic on error.
25045         (Depends-on): Add close-stream.  Remove fpending, stdbool.
25046         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
25047
25048 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25049
25050         * m4/close-stream.m4: New file.
25051
25052 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25053
25054         * lib/close-stream.c, lib/close-stream.h: New files.
25055
25056 2006-07-22  Bruno Haible  <bruno@clisp.org>
25057
25058         Merge from GNU gettext 0.15.
25059
25060         2006-05-01  Bruno Haible  <bruno@clisp.org>
25061
25062                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
25063
25064         2006-07-22  Bruno Haible  <bruno@clisp.org>
25065
25066                 * modules/javaversion: New file.
25067                 * MODULES.html.sh (Java): Add javaversion.
25068
25069         2006-03-12  Bruno Haible  <bruno@clisp.org>
25070
25071                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
25072
25073         2005-12-04  Bruno Haible  <bruno@clisp.org>
25074
25075                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
25076                 (untested).
25077
25078         2006-06-21  Bruno Haible  <bruno@clisp.org>
25079
25080                 Avoid warnings from recent versions of mcs.
25081                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
25082                 -o, -L, -r any more. Use options documented since mcs-1.0
25083                 instead. Similarly for -g.
25084
25085         2005-12-04  Bruno Haible  <bruno@clisp.org>
25086
25087                 * build-aux/csharpcomp.sh.in: Suffix for resources is
25088                 .resources, not .resource.
25089
25090         2005-07-09  Bruno Haible  <bruno@clisp.org>
25091
25092                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
25093                 add a .dll suffix.
25094                 Reported by Mark Junker <mjscod@gmx.de>.
25095
25096         2006-07-22  Bruno Haible  <bruno@clisp.org>
25097
25098                 * modules/gettext: Upgrade to gettext-0.15.
25099                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
25100                 m4/visibility.m4.
25101                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
25102
25103 2006-07-22  Bruno Haible  <bruno@clisp.org>
25104
25105         Merge from GNU gettext 0.15.
25106
25107         2006-03-25  Bruno Haible  <bruno@clisp.org>
25108
25109                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
25110
25111         2006-07-21  Bruno Haible  <bruno@clisp.org>
25112
25113                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
25114                 "1.1".
25115
25116         2006-05-09  Bruno Haible  <bruno@clisp.org>
25117
25118                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
25119                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
25120                 for the conftestver execution.
25121
25122         2006-05-01  Bruno Haible  <bruno@clisp.org>
25123
25124                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
25125                 optional target-version argument. Verify that the compiler
25126                 groks source of the specified source-version, or add -source
25127                 option as necessary. Verify that the compiler produces
25128                 bytecode in the specified target-version, or add -target and
25129                 -source options as necessary. Make the result of the test
25130                 available as variable CONF_JAVAC. Also log error output in
25131                 config.log.
25132
25133         2006-03-11  Bruno Haible  <bruno@clisp.org>
25134
25135                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
25136
25137         2006-05-09  Bruno Haible  <bruno@clisp.org>
25138
25139                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
25140                 CLASSPATH_SEPARATOR to a semicolon.
25141
25142         2006-03-12  Bruno Haible  <bruno@clisp.org>
25143
25144                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
25145                 available as variable CONF_JAVA, for subsequent autoconf
25146                 tests. Also log error output in config.log.
25147
25148         2006-07-19  Bruno Haible  <bruno@clisp.org>
25149
25150                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
25151                 that getline works on glibc2 systems. Needed to avoid trouble
25152                 in relocatable.c.
25153                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
25154
25155         2005-12-04  Bruno Haible  <bruno@clisp.org>
25156
25157                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
25158                 launcher (untested).
25159
25160         2005-12-04  Bruno Haible  <bruno@clisp.org>
25161
25162                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
25163
25164         2006-07-22  Bruno Haible  <bruno@clisp.org>
25165
25166                 * gettext.m4: Update from GNU gettext-0.15.
25167                 * nls.m4: Likewise.
25168                 * po.m4: Likewise.
25169                 * inttypes-pri.m4: Likewise.
25170                 * inttypes-h.m4: Renamed from inttypes.m4.
25171                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
25172
25173 2006-07-22  Bruno Haible  <bruno@clisp.org>
25174
25175         Merge from GNU gettext 0.15.
25176
25177         2005-07-05  Bruno Haible  <bruno@clisp.org>
25178
25179                 * printf-args.c (printf_fetchargs): Work around broken
25180                 definition of wint_t on mingw.
25181
25182         2005-02-12  Bruno Haible  <bruno@clisp.org>
25183
25184                 * xallocsa.h: Add extern "C" for C++.
25185
25186         2006-05-17  Bruno Haible  <bruno@clisp.org>
25187
25188                 Cygwin portability.
25189                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
25190
25191         2006-04-30  Bruno Haible  <bruno@clisp.org>
25192
25193                 * progreloc.c: Include <mach-o/dyld.h> if available.
25194                 (find_executable): Use _NSGetExecutablePath when possible.
25195
25196         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
25197
25198                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
25199                 function.
25200
25201         2005-12-29  Bruno Haible  <bruno@clisp.org>
25202
25203                 * progreloc.c (set_program_name_and_installdir): Fix
25204                 compilation error.
25205
25206         2005-12-04  Bruno Haible  <bruno@clisp.org>
25207
25208                 Cygwin portability.
25209                 * progreloc.c: Include <windows.h> also on Cygwin.
25210                 (find_executable): Add support for Cygwin.
25211                 (set_program_name_and_installdir): Handle also platforms with
25212                 nonempty EXEEXT.
25213
25214         2006-07-11  Bruno Haible  <bruno@clisp.org>
25215
25216                 * javacomp.c: Fix a comment.
25217                 Reported by Jim Meyering.
25218
25219         2006-04-30  Bruno Haible  <bruno@clisp.org>
25220
25221                 * javacomp.h (compile_java_class): Add source_version,
25222                 target_version arguments.
25223                 * javacomp.c: Rewritten to choose only a compiler that
25224                 respects the specified source_version and target_version.
25225
25226         2006-06-27  Bruno Haible  <bruno@clisp.org>
25227
25228                 Assume correct S_ISDIR macro.
25229                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
25230
25231         2006-07-22  Bruno Haible  <bruno@clisp.org>
25232
25233                 * javaversion.h: New file, from GNU gettext.
25234                 * javaversion.c: New file, from GNU gettext.
25235                 * javaversion.java: New file, from GNU gettext.
25236                 * javaversion.class: New file, from GNU gettext.
25237
25238         2006-05-17  Bruno Haible  <bruno@clisp.org>
25239
25240                 Cygwin portability.
25241                 * javaexec.c (execute_java_class): Test for jview program
25242                 also on Cygwin.
25243
25244         2006-04-09  Bruno Haible  <bruno@clisp.org>
25245
25246                 * fatal-signal.c: Don't include string.h.
25247                 (at_fatal_signal): Use a copying loop instead of memcpy.
25248
25249         2005-12-04  Bruno Haible  <bruno@clisp.org>
25250
25251                 * csharpexec.c: Add support for 'clix' launcher (untested).
25252                 (execute_csharp_using_sscli): New function.
25253                 (execute_csharp_program): Call it.
25254
25255         2006-06-21  Bruno Haible  <bruno@clisp.org>
25256
25257                 Avoid warnings from recent versions of mcs.
25258                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
25259                 -o, -L, -r any more. Use options documented since mcs-1.0
25260                 instead. Similarly for -g.
25261
25262         2005-07-09  Bruno Haible  <bruno@clisp.org>
25263
25264                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
25265                 add a .dll suffix.
25266                 Reported by Mark Junker <mjscod@gmx.de>.
25267
25268         2006-06-17  Bruno Haible  <bruno@clisp.org>
25269
25270                 * config.charset: Update for NetBSD 3.0.
25271
25272         2006-05-17  Bruno Haible  <bruno@clisp.org>
25273
25274                 Cygwin portability.
25275                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
25276
25277         2006-05-16  Bruno Haible  <bruno@clisp.org>
25278
25279                 * localcharset.c [CYGWIN]: Include <windows.h>.
25280                 (get_charset_aliases): For Cygwin, return the same CPxxx
25281                 aliases list as under WIN32.
25282                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
25283                 the environment variables. Fall back to GetACP().
25284
25285         2006-04-05  Bruno Haible  <bruno@clisp.org>
25286
25287                 * config.charset: Update Juan Manuel Guerrero's address.
25288
25289         2005-02-12  Bruno Haible  <bruno@clisp.org>
25290
25291                 * allocsa.h: Add extern "C" for C++.
25292
25293         2005-02-10  Bruno Haible  <bruno@clisp.org>
25294
25295                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
25296                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
25297
25298         2006-07-22  Bruno Haible  <bruno@clisp.org>
25299
25300                 * gettext.h: Update to GNU gettext-0.15.
25301
25302 2006-07-22  Bruno Haible  <bruno@clisp.org>
25303
25304         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
25305         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
25306         lib-prefix.m4, longdouble.m4, ssize_t.m4.
25307
25308 2006-07-21  Eric Blake  <ebb9@byu.net>
25309
25310         * modules/stdlib-safer: New file.
25311         * MODULES.html.sh (File stream based Input/Output): Add
25312         stdlib-safer.
25313
25314 2006-07-21  Eric Blake  <ebb9@byu.net>
25315
25316         * lib/stdlib-safer.h: New file from coreutils, required by
25317         stdlib--.h.
25318
25319 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
25320
25321         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
25322
25323 2006-07-20  Bruno Haible  <bruno@clisp.org>
25324
25325         * gnulib-tool: Recognize new option --assume-autoconf.
25326         (autoconf_minversion): New variable.
25327         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
25328
25329 2006-07-20  Bruno Haible  <bruno@clisp.org>
25330
25331         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
25332
25333 2006-07-19  Derek R. Price  <derek@ximbiot.com>
25334
25335         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
25336         Reindent and repaginate.
25337
25338 2006-07-19  Derek Price  <derek@ximbiot.com>
25339
25340         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
25341         Correct grammar.
25342
25343 2006-07-17  Bruno Haible  <bruno@clisp.org>
25344
25345         * modules/list: New file.
25346         * modules/array-list: New file.
25347         * modules/carray-list, modules/carray-list-tests: New files.
25348         * modules/linked-list, modules/linked-list-tests: New files.
25349         * modules/avltree-list, modules/avltree-list-tests: New files.
25350         * modules/rbtree-list, modules/rbtree-list-tests: New files.
25351         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
25352         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
25353         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
25354         * modules/oset: New file.
25355         * modules/array-oset: New file.
25356         * modules/avltree-oset, modules/avltree-oset-tests: New files.
25357         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
25358         * tests/test-carray_list.c: New file.
25359         * tests/test-linked_list.c: New file.
25360         * tests/test-avltree_list.c: New file.
25361         * tests/test-rbtree_list.c: New file.
25362         * tests/test-linkedhash_list.c: New file.
25363         * tests/test-avltreehash_list.c: New file.
25364         * tests/test-rbtreehash_list.c: New file.
25365         * tests/test-avltree_oset.c: New file.
25366         * tests/test-rbtree_oset.c: New file.
25367         * MODULES.html.sh (Container data structures): New section.
25368
25369 2006-07-17  Bruno Haible  <bruno@clisp.org>
25370
25371         * m4/gl_list.m4: New file.
25372
25373 2006-07-17  Bruno Haible  <bruno@clisp.org>
25374
25375         * lib/gl_list.h: New file.
25376         * lib/gl_list.c: New file.
25377         * lib/gl_array_list.h: New file.
25378         * lib/gl_array_list.c: New file.
25379         * lib/gl_carray_list.h: New file.
25380         * lib/gl_carray_list.c: New file.
25381         * lib/gl_linked_list.h: New file.
25382         * lib/gl_linked_list.c: New file.
25383         * lib/gl_anylinked_list1.h: New file.
25384         * lib/gl_anylinked_list2.h: New file.
25385         * lib/gl_avltree_list.h: New file.
25386         * lib/gl_avltree_list.c: New file.
25387         * lib/gl_anyavltree_list1.h: New file.
25388         * lib/gl_anyavltree_list2.h: New file.
25389         * lib/gl_rbtree_list.h: New file.
25390         * lib/gl_rbtree_list.c: New file.
25391         * lib/gl_anyrbtree_list1.h: New file.
25392         * lib/gl_anyrbtree_list2.h: New file.
25393         * lib/gl_anytree_list1.h: New file.
25394         * lib/gl_anytree_list2.h: New file.
25395         * lib/gl_linkedhash_list.h: New file.
25396         * lib/gl_linkedhash_list.c: New file.
25397         * lib/gl_anyhash_list1.h: New file.
25398         * lib/gl_anyhash_list2.h: New file.
25399         * lib/gl_avltreehash_list.h: New file.
25400         * lib/gl_avltreehash_list.c: New file.
25401         * lib/gl_rbtreehash_list.h: New file.
25402         * lib/gl_rbtreehash_list.c: New file.
25403         * lib/gl_anytreehash_list1.h: New file.
25404         * lib/gl_anytreehash_list2.h: New file.
25405
25406         * lib/gl_oset.h: New file.
25407         * lib/gl_oset.c: New file.
25408         * lib/gl_array_oset.h: New file.
25409         * lib/gl_array_oset.c: New file.
25410         * lib/gl_avltree_oset.h: New file.
25411         * lib/gl_avltree_oset.c: New file.
25412         * lib/gl_rbtree_oset.h: New file.
25413         * lib/gl_rbtree_oset.c: New file.
25414         * lib/gl_anytree_oset.h: New file.
25415
25416 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25417
25418         * m4/mkancesdirs.m4: New file.
25419         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
25420         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
25421         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
25422         it.
25423
25424 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25425
25426         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
25427         * lib/mkancesdirs.h: New files.
25428         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
25429         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
25430         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
25431         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
25432         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
25433         callers changed.  Revamp internals significantly, by not
25434         attempting to create directories that are temporarily more
25435         permissive than the final results.  Do not attempt to use
25436         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
25437         This removes some race conditions, fixes some bugs, and simplifies
25438         things.  Use new dirchownmod function to do owner and mode changes.
25439         * lib/mkdir-p.h: Likewise.
25440         * lib/modechange.c (octal_to_mode): New function.
25441         (struct mode_change): New member mentioned.
25442         (make_node_op_equals): New arg mentioned.  All callers changed.
25443         (mode_compile): Keep track of which mode bits the user has explicitly
25444         mentioned.
25445         (mode_adjust): New arg DIR, so that we implement the X op correctly.
25446         New arg PMODE_BITS, to keep track of which mode bits the user
25447         mentioned; it treats S_ISUID and S_ISGID speciall.
25448         All callers changed.
25449         * lib/modechange.h: Likewise.
25450
25451 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25452
25453         * MODULES.html.sh: Add mkancestors.
25454         * modules/mkancesdirs: New module.
25455         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
25456         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
25457         The chdir-safer and afs files are now orphans; I'll remove them
25458         unless someone speaks up.
25459         Add lib/dirchownmod.c, lib/dirchownmod.h.
25460         (Depends-on): Remove alloca, chown, save-cwd, dirname.
25461         Add lchown, mkancesdirs.
25462         (Maintainer): Add self.
25463
25464 2006-07-15  Karl Berry  <karl@gnu.org>
25465
25466         * gnulib-tool: help message wording/arrangement.
25467
25468 2006-07-14  Simon Josefsson  <jas@extundo.com>
25469
25470         * doc/gnulib.texi (Libtool and Windows): New section.
25471
25472 2006-07-12  Simon Josefsson  <jas@extundo.com>
25473
25474         * modules/gendocs (License): Fix license, approved by Karl.
25475
25476 2006-07-12  Eric Blake  <ebb9@byu.net>
25477
25478         * MODULES.html.sh: Add gendocs.
25479
25480 2006-07-11  Eric Blake  <ebb9@byu.net>
25481
25482         * modules/fdl: New module, to install doc/fdl.texi.
25483         * MODULES.html.sh: Add new section for documentation modules.
25484         * gnulib-tool: Avoid space-tab.
25485         (--doc-base): New option, to manage files from doc.
25486
25487 2006-07-11  Eric Blake  <ebb9@byu.net>
25488
25489         * m4/absolute-header.m4: Fix comments to match recent change.
25490
25491 2006-07-11  Eric Blake  <ebb9@byu.net>
25492
25493         * gnulib-tool: List --doc-base before --tests-base.
25494
25495 2006-07-11  Derek R. Price  <derek@ximbiot.com>
25496
25497         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
25498
25499 2006-07-11  Bruno Haible  <bruno@clisp.org>
25500
25501         * README: Mention where to put documentation.
25502
25503 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25504
25505         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
25506
25507 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25508
25509         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
25510         to stdint.m4.
25511
25512 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25513
25514         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
25515         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
25516         "no/such/file/stdint.h" when there is no such file, so that
25517         the resulting C code can be parsed by dodgy compilers.
25518         Problems reported by Bob Proulx.
25519
25520 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25521
25522         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
25523         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25524         macros into the GNU _D_EXACT_NAMLEN.
25525         * lib/savedir.c:  Likewise.
25526         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
25527
25528 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25529         and Paul Eggert  <eggert@cs.ucla.edu>
25530
25531         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
25532         * m4/savedir.m4:
25533         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25534         macros into the GNU _D_EXACT_NAMLEN.
25535
25536 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25537
25538         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
25539         around the absolute name, to work around a problem with the HP-UX
25540         11.23 native C compiler, reported by Bob Proulx.
25541
25542 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25543
25544         * doc/maintain.texi, make-stds.texi: Sync from
25545         <http://savannah.gnu.org/projects/gnustandards>.
25546
25547 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25548
25549         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
25550
25551 2006-07-09  Jim Meyering  <jim@meyering.net>
25552
25553         * m4/glob.m4: Remove a doubled word in a comment.
25554
25555 2006-07-09  Jim Meyering  <jim@meyering.net>
25556
25557         * lib/argp-pv.c: Remove a doubled word in a comment.
25558         * lib/check-version.c (check_version): Likewise.
25559         * lib/javacomp.c (compile_java_class): Likewise.
25560
25561 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25562
25563         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
25564         for the benefit of people using Autoconf 2.60.  If you want to
25565         support older Autoconf versions you can copy m4/onceonly_2_57.m4
25566         (or m4/onceonly.m4, if pre-2.57) manually.
25567
25568 2006-07-08  Jim Meyering  <jim@meyering.net>
25569
25570         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
25571         comment.
25572         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
25573         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
25574         comment.
25575
25576 2006-07-08  Jim Meyering  <jim@meyering.net>
25577
25578         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
25579
25580 2006-07-07  Simon Josefsson  <jas@extundo.com>
25581
25582         * tests/test-crc.c: Change expected crc value, the test vector
25583         were probably computed using the old broken crc.c?
25584
25585 2006-07-06  Simon Josefsson  <jas@extundo.com>
25586
25587         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
25588         now the canonical place for the M4 file).
25589
25590         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
25591         from the sys_socket dependency now.
25592
25593         * modules/inet_pton (Files): Ditto.
25594
25595         * modules/inet_ntop (Files): Ditto.
25596
25597 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25598
25599         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
25600         not gl_PREREQ_GETUSERSHELL.
25601
25602 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25603
25604         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
25605         with only one argument, for Autoconf 2.60.
25606         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
25607         expand to nothing, so add a shell command to avoid syntax error.
25608         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25609
25610 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25611
25612         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
25613
25614 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25615
25616         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
25617         no longer needed.  Check for isblank decl.
25618         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
25619         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
25620         of existence.
25621
25622 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25623
25624         * lib/getloadavg.c: Use __VMS, not VMS.
25625         * lib/getopt.c: Likewise.
25626         * lib/getpagesize.h: Likewise.
25627         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
25628         and probably does not work.
25629
25630 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25631
25632         * lib/.cppi-disable: Add wcwidth.
25633         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
25634         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
25635         (ISGRAPH): Remove.  All uses changed to isgraph.
25636         (FOLD) [!defined _LIBC]: Remove special case.
25637         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
25638         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
25639         HAVE_ISBLANK.
25640         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
25641         case.
25642
25643 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
25644
25645         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
25646         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
25647         brackets.  Other minor changes to suppress some compiler
25648         warnings.
25649
25650 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25651         and Paul Eggert  <eggert@cs.ucla.edu>
25652
25653         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
25654         of invoking obsolescent AC_HEADER_DIRENT macro.
25655         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25656         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
25657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25658         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25659         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
25660         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25661         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
25662         * m4/readdir.m4: Remove; no longer needed.
25663
25664 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25665         and Paul Eggert  <eggert@cs.ucla.edu>
25666
25667         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
25668         Don't worry about this obsolete case any more.
25669         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
25670         directories.
25671         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
25672         worry about this obsolete case any more.
25673         * lib/fts.c: Likewise.
25674         * lib/getcwd.c: Likewise.
25675         * lib/glob.h: Likewise.
25676         * lib/savedir.c: Likewise.
25677
25678 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25679
25680         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
25681         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
25682         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
25683         needed.
25684         All uses removed.
25685         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25686         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25687         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
25688         needed.
25689         * m4/getdate.m4 (gl_GETDATE): Likewise.
25690         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25691         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25692         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25693         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25694         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25695         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25696         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
25697         needed.
25698
25699 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25700
25701         * lib/memcasecmp.c: Include <limits.h>.
25702         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
25703         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
25704         Don't assume isdigit succeeds only on '0' through '9'.
25705
25706 2006-07-05  Eric Blake  <ebb9@byu.net>
25707
25708         * modules/getaddrinfo (Depends-on): Add snprintf.
25709
25710 2006-07-05  Eric Blake  <ebb9@byu.net>
25711
25712         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
25713         to avoid 'header present but could not be compiled' on cygwin.
25714
25715 2006-07-05  Eric Blake  <ebb9@byu.net>
25716
25717         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
25718         missing from netdb.h.
25719         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
25720
25721 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25722
25723         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
25724         no longer needed.
25725         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
25726         * m4/getdate.m4 (gl_GETDATE): Likewise.
25727         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25728         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25729         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25730         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25731         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25732
25733 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25734
25735         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
25736         All uses of is_space replaced by isspace.
25737         * lib/exit.h: Don't talk about STDC_HEADERS.
25738         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
25739         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
25740         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
25741         replaced by isprint etc.
25742         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
25743         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25744         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
25745         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
25746         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
25747         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25748
25749 2006-07-05  Bruno Haible  <bruno@clisp.org>
25750
25751         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
25752         the function exists, before testing against AIX.
25753         Reported by Martin Lambers <marlam@marlam.de>.
25754
25755 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25756
25757         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
25758         From Mark D. Baushke.
25759
25760 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25761
25762         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
25763         to the absolute name, not just one, to bypass Sun C 5.8's
25764         "warning: #include of /usr/include/... may be non-portable".
25765
25766 2006-07-04  Eric Blake  <ebb9@byu.net>
25767
25768         * modules/dirname-tests: New test module.
25769         * tests/test-dirname.c: New file, replacing dirname.c
25770         TEST_DIRNAME section that was recently deleted.
25771
25772 2006-07-04  Bruno Haible  <bruno@clisp.org>
25773
25774         Assume ANSI C header files and <ctype.h> functions.
25775         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
25776         (mbsnwidth): Use isprint, iscntrl instead.
25777
25778 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25779
25780         Merge from coreutils.
25781         * MODULES.html.sh: Add xstrtold.
25782         * modules/xstrtold: New file.
25783         * modules/cycle-check (Files): Add lib/same-inode.h.
25784         * modules/dirname (Files): Add m4/double-slash-root.m4.
25785         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
25786         * modules/mkdir-p (Files): Add lib/same-inode.h.
25787         * modules/same (Files): Add lib/same-inode.h.
25788
25789 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25790
25791         * m4/absolute-header.m4: Renamed from full-header-path.m4.
25792         This is to keep the terminology clean; POSIX talks about
25793         "absolute pathnames", not "full pathnames", but the GNU
25794         Coding Standards say to use "path" for something else;
25795         so use "absolute" to keep both sides happy.
25796         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
25797         Set gl_absolute_header, not gl_full_header_path.
25798         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
25799         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
25800         All uses changed.
25801
25802         Merge from coreutils.
25803
25804         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25805
25806         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
25807         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
25808         want to require the building of c-strtod.o.
25809         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
25810         needs -lm directly.
25811         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
25812
25813         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
25814
25815         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
25816         --as-needed option if available.  Problem reported by Albert Chin in
25817         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
25818         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
25819         cc merely issues a bunch of annoying warnings for --as-needed
25820         (this problem was reported by Bob Proulx).  Also, try linking with
25821         -lm to detect a bug in binutils 2.16 (this problem was reported
25822         by Ralf Wildenhues).
25823
25824         2006-06-18  Jim Meyering  <jim@meyering.net>
25825
25826         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
25827         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
25828         macro.
25829         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
25830         also check for glibc-2.4's abort-inducing bug.
25831
25832         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
25833         Low-probability clean-up should be to use rmdir to get rid of
25834         the just-created directory, not unlink.
25835
25836         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
25837         configure fail, and request a bug report to inform us about it.
25838         Add a comment that, barring reports to the contrary, in 2007 we'll
25839         assume ftruncate is universally available.
25840
25841         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25842
25843         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
25844
25845         2006-03-12  Jim Meyering  <jim@meyering.net>
25846
25847         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
25848         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
25849         * m4/same.m4 (gl_SAME): Likewise.
25850         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
25851
25852         2006-03-11  Eric Blake  <ebb9@byu.net>
25853
25854         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
25855         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
25856         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
25857         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
25858
25859 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25860
25861         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
25862         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
25863         reported by Mark D. Baushke, one in
25864         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
25865
25866         Merge from coreutils.
25867
25868         * lib/.cppi-disable: Add stdint_.h.
25869         * lib/.cvsignore: Add stdint.h.
25870
25871         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25872
25873         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
25874         both double and long double versions.
25875         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
25876         * lib/xstrtold.c: New file.
25877         * lib/xstrtod.h (xstrtold): New decl.
25878
25879         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
25880
25881         * lib/filemode.c (setst): Remove.
25882         (strmode): Rewrite to avoid setst.  This makes the code shorter,
25883         (arguably) clearer, and the generated code is a bit smaller on my
25884         Debian GNU/Linux stable x86 host.
25885
25886         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25887
25888         * lib/filemode.c: Include "filemode.h" first, to test the interface.
25889         Assume that filemode.h includes sys/types.h and sys/stat.h.
25890         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
25891         (ftypelet): Reorder to put common cases first, for efficiency.
25892         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
25893         to do 'M'.
25894         (strmode): Renamed from mode_string, and now stores 12 bytes instead
25895         of 10, for compatibility with FreeBSD.  All callers changed.
25896         (filemodestring): Now stores 12 bytes instead of 10, and sets file
25897         types that can't be deduced solely from st_mode.  First arg is now a
25898         const pointer.
25899         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
25900         (strmode): Renamed from mode_string.
25901         (filemodestring): New decl.
25902         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
25903         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
25904         needed.
25905         (S_ISPORT, S_ISWHT): New macros, if not already defined.
25906
25907         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
25908
25909         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
25910         fsusage.h now does that.  Include fsusage.h first, to test interface.
25911         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
25912         at most one method (the old code could have generated decls that
25913         didn't conform to C89, not that this was ever exercised).
25914         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
25915
25916         2006-03-19  Jim Meyering  <jim@meyering.net>
25917
25918         Work even in a chroot where d_ino values for entries in "/"
25919         don't match the stat.st_ino values for the same names.
25920         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
25921         number, iterate through all entries again, using lstat instead.
25922         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
25923         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
25924
25925         * lib/getcwd.c (__getcwd): Clarify a comment.
25926         Use memcpy in place of a call to strcpy.
25927
25928         2006-03-12  Jim Meyering  <jim@meyering.net>
25929
25930         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
25931         matches that of the current directory (which we're about to chdir ".."
25932         out of), then save the dev-ino of the parent, instead.
25933
25934         * lib/same-inode.h (SAME_INODE): New file/macro.
25935         * lib/chdir-safer.c (SAME_INODE): Remove definition.
25936         Include "same-inode.h", instead.
25937         * lib/same.c: Likewise.
25938         * lib/cycle-check.h: Include "same-inode.h".
25939         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
25940         * lib/cycle-check.c (SAME_INODE): Remove definition.
25941         * lib/root-dev-ino.h: Include "same-inode.h".
25942
25943         2006-03-11  Eric Blake  <ebb9@byu.net>
25944
25945         * lib/same.c (same_name): s/base_name/last_component/
25946         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
25947         * lib/filenamecat.c (file_name_concat): Likewise.
25948
25949         2006-03-11  Eric Blake  <ebb9@byu.net>,
25950                     Paul Eggert  <eggert@cs.ucla.edu>
25951
25952         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
25953         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
25954         drive prefix.
25955         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
25956         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
25957         (last_component): New method.
25958         * lib/dirname.c (dir_len): Determine when drive letters need a
25959         subsequent slash.  Preserve // when it is special.
25960         (dir_name): Don't append dot when drive letter is absolute.
25961         [TEST_DIRNAME]: Move into a full-blown gnulib test.
25962         * lib/basename.c (base_name): New semantics - malloc the result.
25963         Preserve // when it is special.  Preserve relative files that look
25964         like drive letters.
25965         (base_len): Preserve // when it is special.
25966         (last_component): New method, similar to old base_name semantics.
25967         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
25968         base_name.  Strip redundant slashes from ///.
25969
25970 2006-07-03  Jim Meyering  <jim@meyering.net>
25971
25972         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
25973         macro is used before the first cycle_check call.
25974
25975 2006-07-03  Eric Blake  <ebb9@byu.net>
25976
25977         * modules/dirname (Depends-on): Add xstrndup.
25978
25979 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25980
25981         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
25982         test cases, so that config.log is a bit easier to follow.
25983
25984 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25985
25986         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
25987         both are 64 bits, since this seems to be the tradition, and this
25988         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
25989         we ever run into a host that prefers long long to long in this
25990         case, we'll need another configure-time test.  Problem reported by
25991         Jim Meyering.
25992
25993 2006-07-02  Eric Blake  <ebb9@byu.net>
25994
25995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
25996
25997 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25998
25999         * modules/inttypes (Depends-on): No longer depends on stdint.
26000         * modules/stdint (Description): Say more about assumptions.
26001         Say that the fast types might differ.  Say macros are used.
26002         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
26003         (Makefile.am): Revise list of substituted symbols to match
26004         new stdint.m4.
26005         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
26006         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
26007         * tests/test-stdint.c (verify_same_types)
26008         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
26009         the code conforms to C99/C89.
26010         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
26011         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
26012
26013 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26014
26015         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
26016         but fix a bug, by requiring at least 64 bits.
26017         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26018         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
26019         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
26020         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
26021
26022         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
26023         changes.  Make 2.59 a prerequisite.  Check and substitute for
26024         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
26025         inttypes.h.  Do not use special include files; just use the
26026         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
26027         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
26028         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
26029         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
26030         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
26031         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
26032         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
26033         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
26034         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
26035         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
26036         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
26037         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
26038         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
26039         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
26040         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
26041         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
26042         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
26043         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
26044         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
26045         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
26046         WINT_MAX.  Check for C99 conformance more strictly, by detecting
26047         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
26048         not check for things that C99 does not require, e.g., int8_t.  If
26049         a test isn't needed unless <stdint.h> isn't working, and is
26050         unlikely to be needed for any other reason, then don't do it
26051         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
26052         size_t, since we assume C89 freestanding at least.  Do not check
26053         for sig_atomic_t, wchar_t, or wint_t, since the code now does
26054         the right thing even if the types are not defined.  Instead use:
26055         (gl_STDINT_TYPE_PROPERTIES): New macro.
26056         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
26057         testing whether <sys/types.h> clashes, as Autoconf does this for
26058         us now.  All uses removed.
26059         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
26060         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
26061         (gl_CHECK_TYPE_SAME):
26062         Remove; no longer needed.
26063         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
26064         exists, since we'll return 0 anyway in that case.
26065         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
26066
26067 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26068
26069         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
26070         possible collision with system files.
26071         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
26072         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
26073         WCHAR_MIN and WCHAR_MAX in this case.
26074         (<stddef.h>): Do not include; no longer needed.
26075         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
26076         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
26077         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
26078         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
26079         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
26080         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
26081         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
26082         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
26083         !defined(__c99))]: Include in this case too, since it's harmless
26084         now.
26085         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
26086         dangerous to do so.
26087         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
26088         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
26089         (_STDINT_MIN, _STDINT_MAX): New macros.
26090         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
26091         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
26092         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
26093         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
26094         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
26095         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
26096         macros, not typedefs; this simplifies things quite a bit.
26097         Use long int for all types narrower than int64_t.
26098         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
26099         Define in terms of long long int or int64_t or long int,
26100         not int64_t or int32_t.  This saves some compile-time testing.
26101         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
26102         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
26103         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
26104         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
26105         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
26106         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
26107         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
26108         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
26109         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
26110         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
26111         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26112         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26113         undef any previous version and define our own version, for
26114         simplicity and consistency with the new macros for types.
26115         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26116         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26117         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
26118         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
26119         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
26120         @WINT_T_SUFFIX@ to keep things simple here.
26121         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
26122         Simplify by assuming typical 8/16/32/64 host, since we're
26123         already doing that elsewhere anyway.
26124         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
26125         and assume long long int is 64 bits if available.  This
26126         speeds up 'configure'.
26127
26128 2006-07-01  Eric Blake  <ebb9@byu.net>
26129
26130         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
26131         Reported by Andreas Buening.
26132
26133 2006-07-01  Eric Blake  <ebb9@byu.net>
26134
26135         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
26136
26137 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
26138
26139         * lib/getaddrinfo.c: fixed typo
26140
26141 2006-06-29  Jim Meyering  <jim@meyering.net>
26142
26143         * modules/strftime (Maintainer): Add my name, since with the
26144         FPRINTFTIME changes strftime.c has forked from glibc.
26145
26146 2006-06-29  Eric Blake  <ebb9@byu.net>
26147
26148         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
26149
26150 2006-06-29  Eric Blake  <ebb9@byu.net>
26151
26152         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
26153
26154 2006-06-29  Eric Blake  <ebb9@byu.net>
26155
26156         * lib/stat_.h: New file.
26157
26158 2006-06-29  Eric Blake  <ebb9@byu.net>
26159
26160         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
26161         unused static function.
26162
26163 2006-06-29  Eric Blake  <ebb9@byu.net>
26164
26165         * doc/functions.texi (Function Portability): Document missing lstat
26166         on mingw.
26167
26168 2006-06-29  Eric Blake  <ebb9@byu.net>
26169
26170         * MODULES.html.sh: Add sys_stat.
26171         * modules/sys_stat: New module.
26172         * modules/mkstemp (Depends-on): Add sys_stat.
26173
26174 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26175
26176         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
26177
26178 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26179
26180         * m4/c-bs-a.m4: Removed.
26181
26182 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26183
26184         * lib/strftime.c: Assume strftime() exists.
26185
26186 2006-06-29  Derek Price  <derek@ximbiot.com>
26187
26188         * modules/c-bs-a: Removed - \a is C89.
26189         * MODULES.html.sh: Remove c-bs-a.
26190
26191 2006-06-29  Bruno Haible  <bruno@clisp.org>
26192
26193         * modules/wcwidth (License): Change to LGPL.
26194
26195 2006-06-28  Simon Josefsson  <jas@extundo.com>
26196
26197         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
26198         on _WIN32.
26199
26200         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
26201         getnameinfo.
26202
26203 2006-06-28  Simon Josefsson  <jas@extundo.com>
26204
26205         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
26206
26207 2006-06-28  Simon Josefsson  <jas@extundo.com>
26208
26209         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
26210         functions there.  It will succeed on Windows XP, but on Windows
26211         2000 and (presumably) earlier, it will fail, and use the internal
26212         re-implementation.
26213         (use_win32_p): New function.
26214         (getaddrinfo): Use strtoul on servname, to support numeric ports.
26215         Support AI_NUMERICSERV to disable getservbyname.
26216         (getnameinfo): New function, only supports
26217         NI_NUMERICHOST|NI_NUMERICSERV for now.
26218
26219         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
26220         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
26221         getnameinfo.
26222
26223 2006-06-28  Eric Blake  <ebb9@byu.net>
26224
26225         * modules/wcwidth: New file.
26226         * modules/mbchar (Depends-on): Add wcwidth.
26227         * modules/mbswidth (Depends-on): Add wcwidth.
26228         * MODULES.html.sh: Add wcwidth.
26229
26230 2006-06-28  Eric Blake  <ebb9@byu.net>
26231
26232         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
26233         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
26234
26235 2006-06-28  Eric Blake  <ebb9@byu.net>
26236
26237         * lib/xvasprintf.h: Fix comments.
26238
26239 2006-06-28  Eric Blake  <ebb9@byu.net>
26240
26241         * lib/mbchar.h (wcwidth): Include wcwidth.h.
26242         * lib/mbswidth.c (wcwidth): Move from here...
26243         * lib/wcwidth.h: ...to this new file.
26244
26245 2006-06-28  Derek R. Price  <derek@ximbiot.com>
26246
26247         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
26248
26249         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
26250         it's obsolete.
26251         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
26252
26253 2006-06-28  Derek R. Price  <derek@ximbiot.com>
26254
26255         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
26256         Autoconf 2.60 says this stuff was obsolete.
26257
26258 2006-06-28  Bruno Haible  <bruno@clisp.org>
26259
26260         * modules/wcwidth (Files): Add m4/wchar_t.m4.
26261
26262 2006-06-28  Bruno Haible  <bruno@clisp.org>
26263
26264         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
26265         gt_TYPE_WCHAR_T.
26266
26267 2006-06-28  Bruno Haible  <bruno@clisp.org>
26268
26269         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
26270         declaration for wcwidth.
26271         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
26272
26273 2006-06-28  Bruno Haible  <bruno@clisp.org>
26274
26275         * lib/mkdtemp.c [MINGW]: Include <io.h>.
26276         (mkdir): Define using _mkdir.
26277
26278 2006-06-28  Bruno Haible  <bruno@clisp.org>
26279
26280         * lib/getaddrinfo.h: Fix POSIX URL.
26281         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
26282         _WIN32.
26283         (use_win32_p): Make static.
26284         (getaddrinfo): Reject service name if it is empty or does not consist
26285         solely of decimal digits, or if its value is > 65535.
26286         (getnameinfo): Remove useless casts.
26287
26288 2006-06-27  Simon Josefsson  <jas@extundo.com>
26289
26290         * modules/sys_select: New file, suggested by Bruno Haible, Paul
26291         Eggert and Martin Lambers.
26292
26293 2006-06-27  Simon Josefsson  <jas@extundo.com>
26294
26295         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
26296         Eggert and Martin Lambers.
26297
26298 2006-06-27  Bruno Haible  <bruno@clisp.org>
26299
26300         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
26301         result to 0, not to empty.
26302         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
26303
26304 2006-06-27  Bruno Haible  <bruno@clisp.org>
26305
26306         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
26307
26308 2006-06-26  Simon Josefsson  <jas@extundo.com>
26309
26310         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
26311         present.
26312
26313 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
26314
26315         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
26316         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
26317         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
26318
26319 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
26320
26321         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
26322
26323 2006-06-26  Bruno Haible  <bruno@clisp.org>
26324
26325         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
26326
26327 2006-06-26  Bruno Haible  <bruno@clisp.org>
26328
26329         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
26330
26331 2006-06-26  Bruno Haible  <bruno@clisp.org>
26332
26333         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
26334         SGI C compiler in pre-C99 mode.
26335         Suggested by Mark D. Baushke and Larry Jones.
26336
26337 2006-06-26  Bruno Haible  <bruno@clisp.org>
26338
26339         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
26340         WCHAR_MAX.
26341         Reported by Mark D. Baushke and Larry Jones.
26342
26343 2006-06-26  Bruno Haible  <bruno@clisp.org>
26344
26345         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
26346         in pre-C99 mode.
26347         Suggested by Mark D. Baushke and Larry Jones.
26348
26349 2006-06-23  Simon Josefsson  <jas@extundo.com>
26350             Bruno Haible  <bruno@clisp.org>
26351
26352         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
26353         Emit mostlyclean-local rule.
26354         (func_emit_tests_Makefile_am): Likewise.
26355         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
26356
26357 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
26358
26359         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
26360
26361 2006-06-23  Bruno Haible  <bruno@clisp.org>
26362
26363         * tests/test-stdint.c: Update to match ISO C 99 Technical
26364         Corrigendum 1.
26365
26366 2006-06-23  Bruno Haible  <bruno@clisp.org>
26367
26368         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
26369
26370 2006-06-23  Bruno Haible  <bruno@clisp.org>
26371
26372         * lib/stdint_.h: Treat IRIX like OpenBSD.
26373
26374 2006-06-23  Bruno Haible  <bruno@clisp.org>
26375
26376         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
26377         ISO C 99 Technical Corrigendum 1.
26378
26379 2006-06-22  Simon Josefsson  <jas@extundo.com>
26380
26381         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
26382         MinGW.
26383
26384 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26385
26386         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
26387         needed.  Some compiler complained about some of them.  Problem reported
26388         by Larry Jones in
26389         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
26390
26391 2006-06-21  Simon Josefsson  <jas@extundo.com>
26392
26393         * tests/test-getaddrinfo.c: New file.
26394
26395         * modules/getaddrinfo-tests: New file.
26396
26397         * MODULES.html.sh: Add inet_pton.
26398
26399         * modules/inet_pton: New file.
26400
26401 2006-06-21  Simon Josefsson  <jas@extundo.com>
26402
26403         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
26404         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
26405         of using the (limited) gnulib implementation on Windows XP.
26406
26407         * m4/inet_pton.m4: New file.
26408
26409 2006-06-21  Simon Josefsson  <jas@extundo.com>
26410
26411         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
26412         variable.
26413
26414         * lib/socket_.h: Don't define WINVER.
26415
26416         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
26417         slightly modified to work in gnulib.
26418
26419 2006-06-21  Simon Josefsson  <jas@extundo.com>
26420
26421         * doc/gnulib.texi (Windows sockets): Add.
26422
26423 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
26424
26425         * lib/read-file.c (fread_file): Start with buffer allocation of
26426         0 bytes rather than 1 byte; this simplifies the code.
26427         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
26428         code to free buffer and save/restore errno.
26429         (internal_read_file): Remove unused local.
26430
26431 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26432
26433         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
26434         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
26435         Problem reported by Denis Excoffier in
26436         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
26437
26438 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26439
26440         * modules/sys_socket, modules/socklen: Include sys/types since
26441         FreeBSD 4.x's sys/socket.h needs it.
26442
26443 2006-06-19  Simon Josefsson  <jas@extundo.com>
26444
26445         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
26446
26447 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
26448
26449         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
26450
26451 2006-06-19  Bruno Haible  <bruno@clisp.org>
26452
26453         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
26454         and FULL_PATH_INTTYPES_H in angle brackets.
26455         Reported by Mark D. Baushke <mdb@gnu.org>.
26456
26457 2006-06-17  Eric Blake  <ebb9@byu.net>
26458
26459         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
26460         errno.
26461
26462 2006-06-17  Bruno Haible  <bruno@clisp.org>
26463
26464         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
26465         <sys/inttypes.h>.
26466
26467 2006-06-17  Bruno Haible  <bruno@clisp.org>
26468
26469         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
26470         whether errno is declared. Assume <errno.h> declares errno.
26471
26472 2006-06-17  Bruno Haible  <bruno@clisp.org>
26473
26474         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
26475
26476 2006-06-17  Bruno Haible  <bruno@clisp.org>
26477
26478         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
26479         problem on Solaris 2.5.1.
26480
26481 2006-06-16  Eric Blake  <ebb9@byu.net>
26482
26483         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
26484         * lib/unicodeio.c [!defined errno]: Likewise.
26485         * lib/strtol.c [!defined errno]: Likewise.
26486         * lib/strtod.c [!defined errno]: Likewise.
26487
26488 2006-06-15  Eric Blake  <ebb9@byu.net>
26489
26490         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
26491
26492 2006-06-15  Eric Blake  <ebb9@byu.net>
26493
26494         * config/srclist.txt (ssize_t.m4): Lose sync.
26495
26496 2006-06-15  Bruno Haible  <bruno@clisp.org>
26497
26498         * modules/stdint (Files): Include m4/full-header-path.m4,
26499         m4/size_max.m4, m4/wchar_t.m4.
26500         (Makefile.am): Many more substitutions.
26501         * modules/stdint-tests: New file.
26502         * tests/test-stdint.c: New file.
26503
26504 2006-06-15  Bruno Haible  <bruno@clisp.org>
26505
26506         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
26507         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
26508         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
26509         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
26510         gl_CHECK_TYPE_SAME): New macros.
26511
26512 2006-06-15  Bruno Haible  <bruno@clisp.org>
26513
26514         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
26515
26516 2006-06-15  Bruno Haible  <bruno@clisp.org>
26517
26518         * lib/stdint_.h: Rewritten to be fully auto-configured.
26519         Fixes bug on HP-UX/IA64.
26520
26521 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
26522
26523         * lib/getdate.y (__attribute__): Don't define if already defined.
26524         Problem reported by Larry Jones.
26525         * lib/utimens.c (__attribute__): Likewise.
26526
26527 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
26528
26529         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
26530         reported by Andreas Schwab.
26531
26532 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26533             Bruno Haible  <bruno@clisp.org>
26534
26535         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
26536         check for the declaration of strnlen and a run test that exposes the
26537         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
26538         rpl_strndup.
26539
26540 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26541             Bruno Haible  <bruno@clisp.org>
26542
26543         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
26544
26545 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26546
26547         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
26548         compile test, for Tru64 4.0D.
26549
26550 2006-05-28  Karl Berry  <karl@gnu.org>
26551
26552         * config/srclist.txt (printf-args.c): lose sync.
26553
26554 2006-05-26  Martin Lambers  <marlam@marlam.de>
26555
26556         * lib/getpass.c: Updates the test for the native W32 API, and adds
26557         missing includes, thus fixing compilation warnings.
26558
26559 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26560
26561         * lib/exclude.c (exclude_fnmatch): New function.
26562         (excluded_file_name): Call exclude_fnmatch.
26563         * lib/exclude.h (excluded_file_name): New prototype
26564
26565 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
26566
26567         * lib/tempname.c (small_open, large_open): New macros.
26568         (__open, __open64) [!_LIBC]: Remove.
26569         (__gen_tempname): Use small_open and large_open instead of __open
26570         and __open64.  This fixes a portability bug on HP-UX 11.11i
26571         reported by Simon Wing-Tang in
26572         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
26573
26574 2006-05-24  Bruno Haible  <bruno@clisp.org>
26575
26576         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
26577         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
26578         Reported by Thorsten Maerz <torte@netztorte.de> via
26579         Aaron Stone <aaron@serendipity.cx>.
26580
26581 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26582
26583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
26584         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
26585         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
26586         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
26587         not really conditional on the cache.
26588         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
26589
26590 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26591
26592         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
26593         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
26594         (my_usleep): Don't mishandle maximum value.
26595
26596 2006-05-19  Jim Meyering  <jim@meyering.net>
26597
26598         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
26599
26600 2006-05-17  Bruno Haible  <bruno@clisp.org>
26601
26602         Cygwin portability.
26603         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
26604
26605 2006-05-17  Bruno Haible  <bruno@clisp.org>
26606
26607         * lib/stdint_.h: Fix recognition of Cygwin.
26608
26609 2006-05-15  Bruno Haible  <bruno@clisp.org>
26610
26611         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
26612         on libtool patch by Ralf Wildenhues.
26613
26614 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26615
26616         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
26617         test for C99 conformance; (bool) 0.5 is an integer constant
26618         expression, but (bool) -0.5 is not.  Problem reported by Fedor
26619         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
26620
26621 2006-05-11  Simon Josefsson  <jas@extundo.com>
26622
26623         * m4/xvasprintf.m4: Fix obvious typo.
26624
26625 2006-05-11  Jim Meyering  <jim@meyering.net>
26626
26627         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
26628         James Lemley.
26629
26630 2006-05-10  Simon Josefsson  <jas@extundo.com>
26631
26632         * lib/md4.c: Typo fix, update copyright years.
26633         (K1, K2): Don't use L because it turn computations into 64-bit on
26634         64-bit platforms.
26635
26636 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
26637
26638         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
26639         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
26640         unwanted sign propagation, e.g., on hosts with 64-bit int.
26641         There still are some problems with reeelly weird theoretical hosts
26642         (e.g., 33-bit int) but it's not worth worrying about now.
26643         * lib/sha1.c (rol): Likewise.
26644         (K1, K2, K3, K4): Remove unnecessary L suffix.
26645
26646 2006-05-10  Bruno Haible  <bruno@clisp.org>
26647
26648         * lib/des.c: Cast to avoid warnings.
26649
26650 2006-05-09  Bruno Haible  <bruno@clisp.org>
26651
26652         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
26653         (Depends-on): Depend also on xsize, stdarg.
26654         (configure.ac): Add gl_XVASPRINTF.
26655
26656 2006-05-09  Bruno Haible  <bruno@clisp.org>
26657
26658         * m4/xvasprintf.m4: New file.
26659
26660 2006-05-09  Bruno Haible  <bruno@clisp.org>
26661
26662         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
26663         (EOVERFLOW): Define fallback value.
26664         (xstrcat): New function.
26665         (xvasprintf): Recognize the special case of a string concatenation.
26666
26667 2006-05-08  Eric Blake  <ebb9@byu.net>
26668
26669         * gnulib-tool (func_version): Base copyright year on CVS date.
26670         (func_emit_copyright_notice): New function.
26671         (func_emit_lib_Makefile_am): Use it.
26672         (func_emit_tests_Makefile_am): Likewise.
26673         (func_import): Likewise.
26674
26675 2006-05-08  Bruno Haible  <bruno@clisp.org>
26676
26677         * modules/stdarg: New file.
26678         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
26679
26680 2006-05-08  Bruno Haible  <bruno@clisp.org>
26681
26682         * m4/stdarg.m4: New file, from GNU gettext.
26683
26684 2006-05-08  Bruno Haible  <bruno@clisp.org>
26685
26686         * config/srclist.txt (build-aux/config.rpath): different from latest
26687         release.
26688
26689 2006-05-08  Bruno Haible  <bruno@clisp.org>
26690
26691         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
26692
26693 2006-05-05  Jim Meyering  <jim@meyering.net>
26694
26695         * m4/warning.m4: New file, derived from bison's file by the same name.
26696
26697 2006-05-03  Bruno Haible  <bruno@clisp.org>
26698
26699         * lib/stdint_.h: Shorter URL.
26700         * lib/inttypes.h: Likewise.
26701
26702 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26703
26704         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
26705
26706 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26707
26708         * lib/verify.h: Document the internals better.  Most of this change
26709         was written by Bruno Haible.
26710
26711 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26712
26713         * doc/verify.texi: New file, partly based on a proposal by
26714         Bruno Haible.
26715
26716 2006-05-02  Bruno Haible  <bruno@clisp.org>
26717
26718         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
26719         test from here...
26720         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
26721
26722 2006-04-29  Bruno Haible  <bruno@clisp.org>
26723
26724         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
26725         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
26726
26727 2006-04-29  Bruno Haible  <bruno@clisp.org>
26728
26729         * gnulib-tool: Make --update option actually work.
26730
26731 2006-04-29  Bruno Haible  <bruno@clisp.org>
26732
26733         * doc/gcd.texi: New file.
26734         * doc/gnulib.texi: Include it.
26735
26736 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26737
26738         * lib/getdate.y (get_date): When adding relative date, start with the
26739         initial time, not with the result of the first mktime call.
26740
26741 2006-04-25  Bruno Haible  <bruno@clisp.org>
26742
26743         * gnulib-tool (func_import): Output the include directives in three
26744         blocks, sorted separately.
26745         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26746
26747 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26748
26749         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
26750         to define main with arguments, for C++.  Reported by Eric Blake.
26751         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
26752         Prefer 'int main ()' to 'int main (void)', for C++.
26753         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26754         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
26755         for 'main', for C99 and C++.
26756
26757 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26758
26759         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
26760         Don't assume that exit status -1 is valid.
26761         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26762         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26763         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26764         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
26765         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
26766         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
26767         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
26768         functions can be used without declaring them, or that you can
26769         exit with status -1.
26770         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26771
26772 2006-04-24  Karl Berry  <karl@gnu.org>
26773
26774         * config/srclist.txt (longdouble.m4): sync lost.
26775
26776 2006-04-24  Eric Blake  <ebb9@byu.net>
26777
26778         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
26779
26780 2006-04-24  Bruno Haible  <bruno@clisp.org>
26781
26782         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
26783         poll() implementation in AIX.
26784         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26785
26786 2006-04-24  Bruno Haible  <bruno@clisp.org>
26787
26788         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
26789         assigned exactly once.
26790
26791 2006-04-23  Claudio Fontana  <claudio@gnu.org>
26792             Bruno Haible  <bruno@clisp.org>
26793
26794         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
26795         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
26796         for AM_CPPFLAGS.
26797
26798 2006-04-23  Bruno Haible  <bruno@clisp.org>
26799
26800         * modules/copy-file: Depend on unistd.
26801         * modules/execute: Likewise.
26802         * modules/fatal-signal: Likewise.
26803         * modules/findprog: Likewise.
26804         * modules/mkdtemp : Likewise.
26805         * modules/pipe: Likewise.
26806         * modules/wait-process: Likewise.
26807
26808 2006-04-23  Bruno Haible  <bruno@clisp.org>
26809
26810         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
26811         condition was already detected.
26812         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26813
26814 2006-04-23  Bruno Haible  <bruno@clisp.org>
26815
26816         * lib/copy-file.c: Include <unistd.h> unconditionally.
26817         * lib/execute.c: Likewise.
26818         * lib/fatal-signal.c: Likewise.
26819         * lib/findprog.c: Likewise.
26820         * lib/mkdtemp.c: Likewise.
26821         * lib/pipe.h: Likewise.
26822         * lib/pipe.c: Likewise.
26823         * lib/wait-process.h: Likewise.
26824
26825 2006-04-23  Bruno Haible  <bruno@clisp.org>
26826
26827         * gnulib-tool (func_usage): Fix --import description. Document
26828         --update.
26829         (func_import): Create temporary file in a temporary directory, if
26830         --dry-run is specified. Silence errors from 'grep' when there are no
26831         m4 files in $m4dir.
26832         (func_create_testdir): Silence errors from 'grep' when there are no
26833         m4 files in $m4dir.
26834         Reported by Karl Berry <karl@freefriends.org>.
26835
26836 2006-04-20  Bruno Haible  <bruno@clisp.org>
26837
26838         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
26839         one argument, so that the code will be portable to Autoconf 2.60.
26840         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
26841         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26842         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
26843
26844 2006-04-19  Derek Price  <derek@ximbiot.com>
26845             Eric Blake  <ebb9@byu.net>
26846
26847         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
26848         rather than "/full/path.h".  Update comment to match.  Shorten &
26849         generalize m4_translit call via AS_TR_CPP.
26850
26851 2006-04-19  Derek Price  <derek@ximbiot.com>
26852             Eric Blake  <ebb9@byu.net>
26853
26854         * lib/inttypes.h: Correct grammar in comment.
26855
26856 2006-04-18  Derek Price  <derek@ximbiot.com>
26857             Paul Eggert  <eggert@cs.ucla.edu>
26858
26859         * modules/inttypes: New file.
26860         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
26861
26862 2006-04-18  Derek Price  <derek@ximbiot.com>
26863             Paul Eggert  <eggert@cs.ucla.edu>
26864
26865         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
26866         New files.
26867
26868 2006-04-18  Derek Price  <derek@ximbiot.com>
26869             Paul Eggert  <eggert@cs.ucla.edu>
26870
26871         * lib/inttypes.h: New file.
26872         * lib/strtoimax.c: Assume <inttypes.h>.
26873
26874 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
26875
26876         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
26877         isn't mounted.  Problem reported by Kir Kolyshkin.
26878
26879 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26880
26881         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
26882         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
26883         Derek R. Price.
26884         * lib/regex.h (RE_DUP_MAX): Update comment to match current
26885         implementation.
26886
26887 2006-04-12  Eric Blake  <ebb9@byu.net>
26888
26889         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
26890         is now done automatically by the corresponding Autoconf macro.
26891
26892 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
26893
26894         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
26895         time_r.h.
26896
26897 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26898
26899         Merge regex changes from libc, removing some of our
26900         POSIX-conformance changes that were rejected and redoing them in a
26901         less-intrusive way.
26902
26903         * lib/regcomp.c (re_compile_internal, init_dfa):
26904         Length arg is now size_t, not Idx.  All uses changed.
26905         (peek_token): Forward decl now says internal_function.
26906         (__re_error_msgid, __re_error_msgid_idx):
26907         Now static rather than extern with attribute_hidden.
26908         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
26909         For some reason libc prefers K&R style defns for external functions.
26910         (regerror) [!defined _LIBC]: Likewise.
26911         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
26912         (seek_collating_symbol_entry, lookup_collation_sequence_value):
26913         (build_range_exp, build_collating_symbol):
26914         Use K&R-style defn.
26915         (re_compile_fastmap): Use '\0' to memset, not 0.
26916         (utf8_sb_map): Make the calculations more obvious.
26917         (init_dfa, parse_bracket_exp, build_charclass_op):
26918         Call calloc and cast result, as glibc does.
26919         (init_word_char, fetch_token, peek_token, peek_token_bracket):
26920         (build_range_exp, build_collating_symbol):
26921         Now internal functions.
26922
26923         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
26924
26925         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
26926         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
26927         Don't depend on VMS; depend on __VMS instead, for POSIX
26928         namespace cleanness.
26929         (regoff_t): Define to ssize_t, not long int.
26930
26931         Remove the REG_ macros named below.  Instead, make the old names
26932         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
26933         __USE_GNU_REGEX.
26934         (REG_BACKSLASH_ESCAPE_IN_LISTS):
26935         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
26936         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
26937         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
26938         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
26939         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
26940         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
26941         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
26942         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
26943         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
26944         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
26945         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
26946         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
26947         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
26948         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
26949         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
26950         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
26951         (REG_NREGS):
26952         Remove.  All uses replaced by the old RE_* names.
26953         (RE_BACKSLASH_ESCAPE_IN_LISTS):
26954         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
26955         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
26956         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
26957         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
26958         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
26959         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
26960         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
26961         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
26962         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
26963         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
26964         Don't bother having these macros be independent of each others'
26965         values, since they no longer exist in the POSIX name space.
26966
26967         Rename the following member names back to their old names,
26968         unless !__USE_GNU_REGEX.  All uses changed back.
26969         (buffer): Renamed from re_buffer.
26970         (allocated): Renamed from re_allocated.
26971         (used): Renamed from re_used.
26972         (syntax): Renamed from re_syntax.
26973         (fastmap): Renamed from re_fastmap.
26974         (translate): Renamed from re_translate.
26975         (can_be_null): Renamed from re_can_be_null.
26976         (regs_allocated): Renamed from re_regs_allocated.
26977         (fastmap_accurate): Renamed from re_fastmap_accurate.
26978         (no_sub): Renamed from re_no_sub.
26979         (not_bol): Renamed from re_not_bol.
26980         (not_eol): Renamed from re_not_eol.
26981         (newline_anchor): Renamed from re_newline_anchor.
26982         (num_regs): Renamed from rm_num_regs.
26983         (start): Renamed from rm_start.
26984         (end): Renamed from rm_end.
26985
26986         (free_state): Move up a bit.
26987
26988         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
26989         #define to be empty.
26990         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
26991         when that is what is intended.
26992         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
26993         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
26994         (MAX): New macro.
26995         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
26996         All uses changed back to re_malloc, etc.  It's now the caller's
26997         responsibility to check for overflow; all callers changed.
26998         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
26999         (re_x2nrealloc): Remove.
27000         (free_state): Remove decl.
27001
27002         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
27003         (re_set_registers, re_exec):
27004         Use K&R-style defn.
27005
27006         2006-01-31  Roland McGrath  <roland@redhat.com>
27007
27008         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
27009         Reported by Mike Frysinger <vapier@gentoo.org>.
27010
27011         2006-01-15  Andreas Jaeger  <aj@suse.de>
27012
27013         [BZ #1950]
27014         * lib/regex_internal.c (re_string_reconstruct): Adjust for
27015         build_wcs_upper_buffer change.
27016         (build_wcs_upper_buffer): Change return type.
27017
27018         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
27019
27020         * lib/regex_internal.h: Include <stdint.h> if available.
27021
27022         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
27023
27024         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
27025
27026         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
27027
27028         * lib/regcomp.c: Adjust for changed secondary hash function.
27029
27030         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
27031
27032         * lib/regex.h: Pretty printing.
27033         Clean up namespace a bit.
27034
27035         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
27036
27037         * lib/regexec.c (update_cur_sifted_state, check_arrival,
27038         check_arrival_add_next_nodes): Avoid using uninitialized variable.
27039
27040         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27041                     Ulrich Drepper  <drepper@redhat.com>
27042
27043         [BZ #1302]
27044         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
27045         changed.
27046         (bitset_word_t): Renamed from bitset_word.  All uses changed.
27047
27048         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
27049
27050         [BZ #281]
27051         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
27052         * lib/regcomp.c: Remove unnecessary uses of
27053         unsigned RE_TRANSLATE_TYPE.
27054         * lib/regex_internal.h: Likewise.
27055         * lib/regex_internal.c: Likewise.
27056         * lib/regexec.c: Likewise.
27057         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
27058
27059         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
27060
27061         * lib/regexec.c (find_recover_state): Remove unnecessary
27062         initialization.
27063         (transit_state_bkref): Make DFA a const pointer.
27064         (get_subexp): Likewise.
27065         (check_arrival): Likewise.
27066         (update_cur_sifted_state): Likewise.
27067         (re_search_internal): Likewise.
27068         (prune_impossible_nodes): Likewise.
27069         (acquire_init_state_context): Likewise.
27070         (proceed_next_node): Likewise.
27071         (set_regs): Likewise.
27072         (free_fail_stack_return): Likewise.
27073         (check_arrival_expand_ecl): Mark DFA parameter as const.
27074         (check_arrival_expand_ecl_sub): Likewise.
27075         (check_subexp_limits): Likewise.
27076         (sub_epsilon_src_nodes):  Likewise.
27077         (add_epsilon_src_nodes):  Likewise.
27078         (merge_state_array): Likewise.
27079         (update_regs): Likewise.
27080         (build_trtable): Likewise.
27081         (sift_states_backward): Mark MCTX parameter as const.
27082         (build_sifted_states): Likewise.
27083         (update_cur_sifted_state): Likewise.
27084         (sift_states_mkref): Likewise.
27085         (check_arrival_expand_ecl): Mark eclosure as const.
27086         (check_dst_limits_calc_pos_1): Likewise.
27087         * lib/regex_internal.h (re_match_context_t): Make dfa a const
27088         pointer.
27089
27090         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
27091
27092         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
27093         (transit_state_sb): Likewise.
27094         (transit_state_mb): Likewise.
27095         (sift_states_iter_mb): Likewise.
27096         (check_arrival_add_next_nodes): Likewise.
27097         (check_node_accept_bytes): Change first parameter to pointer-to-const.
27098         [_LIBC] (re_search_2_stub): Use mempcpy.
27099
27100         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
27101         mbrtowc for very simple UTF-8 case.
27102
27103         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
27104         a pointer-to-const.
27105         (re_acquire_state_context): Likewise.
27106         * lib/regex_internal.h: Adjust prototypes.
27107
27108         * lib/regex.c: Prevent using C++ compilers.
27109
27110         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
27111         (re_acquire_state_context): Likewise.
27112
27113 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27114
27115         * modules/regex (Depends-on): Add ssize_t.
27116
27117 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27118
27119         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
27120         translation table.
27121
27122 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27123
27124         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
27125
27126 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
27127             Bruno Haible  <bruno@clisp.org>
27128
27129         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
27130         <sys/types.h> and <inttypes.h>.
27131
27132 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27133
27134         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
27135         `__error_t_defined', so argp.h will not typedef the former.
27136
27137 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27138
27139         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
27140         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
27141         glibc names.  Even if glibc is changed to conform to POSIX, the
27142         traditional names will be available anyway, since regex depends on
27143         the extensions module.  Also, fix a longstanding typo in the
27144         implementation of Spencer ERE test #75 from grep 2.3.  Problems
27145         reported by Emanuele Giaquinta.  Also, change sense of cached
27146         variable, so that the message makes sense.
27147
27148 2006-03-24  Simon Josefsson  <jas@extundo.com>
27149
27150         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
27151         including some doc fixes.
27152         (base64_encode_alloc): Fix +1 bug on allocation failures.
27153
27154 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27155
27156         * lib/base64.c (base64_encode): Do not read past end of array with
27157         unsanitized input on systems with CHAR_BIT > 8.
27158
27159 2006-03-24  Eric Blake  <ebb9@byu.net>
27160
27161         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
27162
27163 2006-03-22  Karl Berry  <karl@gnu.org>
27164
27165         * config/srclist.txt (*setenv.[ch]): get from coreutils.
27166         * config/srclistvars.sh (COREUTILS): new var.
27167
27168 2006-03-17  Jim Meyering  <jim@meyering.net>
27169
27170         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
27171         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
27172
27173 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
27174
27175         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
27176         no longer needs it.  Instead, check that regoff_t is as least
27177         as wide as ptrdiff_t.
27178
27179         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
27180         so that our regex.h stays compatible with the installed regex.
27181         This is helpful for installers who configure --without-included-regex.
27182         Problem reported by Emanuele Giaquinta.
27183
27184 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
27185
27186         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
27187         Typedef to long int, not to off_, as POSIX will likely change
27188         in that direction.
27189
27190 2006-03-15  Eric Blake  <ebb9@byu.net>
27191
27192         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
27193
27194 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
27195
27196         * lib/argp-help.c (validate_uparams): Fix typo
27197         * lib/argp-parse.c (argp_default_options): Consistently begin help
27198         messages with a lowercase letter.
27199
27200 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
27201
27202         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
27203         overrun buffers and shouldn't be used (much as gets shouldn't be
27204         used).
27205         * lib/time_r.c (asctime_r, ctime_r): Likewise.
27206
27207 2006-03-08  Simon Josefsson  <jas@extundo.com>
27208
27209         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
27210         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27211
27212 2006-03-08  Simon Josefsson  <jas@extundo.com>
27213
27214         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
27215         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27216
27217 2006-03-08  Simon Josefsson  <jas@extundo.com>
27218
27219         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
27220         signal that configure disabled the device.
27221
27222 2006-03-08  Simon Josefsson  <jas@extundo.com>
27223
27224         * build-aux/maint.mk: Fix refresh-po, to handle no translated
27225         languages.
27226
27227 2006-03-07  Simon Josefsson  <jas@extundo.com>
27228
27229         * modules/getopt (Depends-on): Add unistd.
27230
27231         * modules/unistd: New file.
27232
27233 2006-03-07  Simon Josefsson  <jas@extundo.com>
27234
27235         * modules/gc-random: New file.
27236
27237 2006-03-07  Simon Josefsson  <jas@extundo.com>
27238
27239         * m4/unistd_h.m4: New file.
27240
27241 2006-03-07  Simon Josefsson  <jas@extundo.com>
27242
27243         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
27244         test to be side-effect free by storing the result in the cache
27245         variable gl_cv_lib_readline, and moving the assignment of
27246         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
27247         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27248
27249 2006-03-07  Simon Josefsson  <jas@extundo.com>
27250
27251         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
27252         error on missing devices (the functions will return an error).
27253
27254         * m4/gc.m4: Move random stuff to gc-random.m4
27255
27256 2006-03-07  Simon Josefsson  <jas@extundo.com>
27257
27258         * lib/unistd_.h: New file.
27259
27260 2006-03-07  Simon Josefsson  <jas@extundo.com>
27261
27262         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
27263
27264 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27265
27266         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
27267         Problem reported by Juan Manuel Guerrero.
27268
27269 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27270
27271         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
27272         the unistd module.
27273         * lib/getlogin_r.c: Likewise.
27274         * lib/getlogin_r.h: Likewise.
27275         * lib/glob.c: Likewise.
27276         * lib/pagealign_alloc.c: Likewise.
27277         * lib/unistd_.h: Remove; no longer needed.
27278
27279 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27280
27281         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27282         Add unistd.
27283         * modules/c-stack (Depends-on): Add unistd.
27284         * modules/getlogin_r: Likewise.
27285         * modules/glob: Likewise.
27286         * modules/pagealign_alloc: Likewise.
27287         * modules/unistd (Files): Remove lib/unistd_.h.
27288         (EXTRA_DIST): Remove.
27289         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
27290         need unistd_.h.
27291         (MOSTLYCLEANFILES): Remove unistd.h-t.
27292
27293 2006-03-03  Simon Josefsson  <jas@extundo.com>
27294
27295         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
27296
27297 2006-03-03  Simon Josefsson  <jas@extundo.com>
27298
27299         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
27300         libidn and bison.
27301
27302 2006-03-03  Simon Josefsson  <jas@extundo.com>
27303
27304         * build-aux/maint.mk: Add indent target.
27305
27306 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
27307
27308         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
27309         our replacement poll.h in any case, to avoid a differing
27310         declaration from a system header.  Seen on AIX.
27311
27312 2006-03-01  Simon Josefsson  <jas@extundo.com>
27313
27314         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
27315         <kasal@ucw.cz>.
27316
27317 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27318
27319         * modules/gettime (Depends-on): Add extensions module.
27320         * modules/nanosleep (Depends-on): Likewise.
27321         * modules/settime (Depends-on): Likewise.
27322
27323 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27324
27325         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
27326         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
27327         pedantically.
27328         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27329         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
27330
27331         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
27332         not "==".  Reported by Ralf Wildenhues.
27333
27334 2006-03-01  Karl Berry  <karl@gnu.org>
27335
27336         * doc/Copyright/request-*: new files, synced from gnuorg.
27337
27338 2006-03-01  Karl Berry  <karl@gnu.org>
27339
27340         * config/srclist.txt (Copyright/*): new entries.
27341
27342 2006-02-28  Simon Josefsson  <jas@extundo.com>
27343
27344         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
27345
27346 2006-02-27  Simon Josefsson  <jas@extundo.com>
27347
27348         * lib/base64.h: Indent #define's.  From Jim Meyering
27349         <jim@meyering.net>.
27350
27351 2006-02-27  Jim Meyering  <jim@meyering.net>
27352
27353         Revert the change of 2006-02-24, so these files can continue
27354         to be sync'd from gettext.
27355         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
27356         of `config.h'.
27357
27358 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27359
27360         * modules/intprops: New file.
27361         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27362         Add intprops.
27363         * modules/getloadavg (Files): Remove lib/intprops.h.
27364         (Depends-on): Add intprops.
27365         * modules/human: Likewise.
27366         * modules/inttostr: Likewise.
27367         * modules/openat: Likewise.
27368         * modules/sig2str: Likewise.
27369         * modules/userspec: Likewise.
27370         * modules/utimecmp: Likewise.
27371         * modules/xnanosleep: Likewise.
27372         * modules/xstrtol: Likewise.
27373
27374 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
27375
27376         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
27377         * modules/lock-tests (TESTS): Use $(EXEEXT).
27378         * modules/tls-tests: Likewise.
27379         * modules/argp-tests: Likewise.
27380         (check_PROGRAMS): New var, replacing...
27381         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
27382
27383 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27384
27385         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
27386         `config.h'.
27387
27388 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27389
27390         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
27391
27392 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27393
27394         Sync from coreutils.
27395         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
27396         gl_CHDIR_SAFER.
27397
27398 2006-02-22  Jim Meyering  <jim@meyering.net>
27399
27400         Sync from coreutils.
27401         * m4/chdir-safer.m4: New file.
27402
27403 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27404
27405         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
27406         AT_FDCWD exceeds INT_MAX.
27407         * lib/openat.h (AT_FDCWD): Likewise.
27408
27409 2006-02-17  Eric Blake  <address@hidden>
27410
27411         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
27412
27413 2006-02-16  Simon Josefsson  <jas@extundo.com>
27414
27415         * modules/getaddrinfo (Depends-on): Add sys_socket.
27416
27417 2006-02-15  Simon Josefsson  <jas@extundo.com>
27418
27419         * build-aux/maint.mk: Add dsyntax-check rule.
27420
27421 2006-02-15  Eric Blake  <ebb9@byu.net>
27422
27423         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
27424         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
27425         'present but cannot compile' warnings on cygwin.
27426         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
27427         use ws2tcpip.h if sys/socket.h works.
27428         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
27429         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
27430
27431 2006-02-14  Simon Josefsson  <jas@extundo.com>
27432
27433         * modules/maintainer-makefile (Files): Rename.
27434
27435         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
27436         and (the local) Makefile.cfg to maint-cfg.mk.
27437
27438         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
27439         to the latter.
27440
27441         * modules/maintainer-makefile: New module.
27442
27443         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
27444         severaly stripped to make it possible to build it up from scratch
27445         with reliable tests.
27446
27447         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
27448         fixes to permit overriding the default actions when configure and
27449         makefile are not available.
27450
27451 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27452
27453         Sync from coreutils.
27454         * modules/lstat (Depends-on): Don't depend on xalloc.
27455         (License): Change from GPL to LGPL, since this is now simply a
27456         replacement for a libc function.
27457
27458 2006-02-14  Jim Meyering  <jim@meyering.net>
27459
27460         Sync from coreutils.
27461
27462         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
27463         failure on deficient systems, and simplify gnulib lgpl dependencies.
27464         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
27465         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
27466
27467         * lib/xalloc-die.c: Remove unused definition of N_.
27468
27469 2006-02-14  Jim Meyering  <jim@meyering.net>
27470
27471         Sync from coreutils.
27472         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
27473         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
27474         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
27475         double-quote uses of that variable, to accommodate the rare case in
27476         which getmntent is available in none of the libraries checked.  This
27477         happens at least on FreeBSD 5.0.
27478
27479 2006-02-13  Simon Josefsson  <jas@extundo.com>
27480
27481         * gnulib-tool (Usage): Fix --import, from
27482         karl@freefriends.org (Karl Berry).
27483
27484 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
27485
27486         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
27487
27488 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
27489
27490         * lib/argp-namefrob.h: Restore changes accidentally lost during the
27491         "autoupdate" on 2005-12-12.
27492
27493 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27494
27495         * modules/closeout (Depends-on): Remove atexit.
27496
27497 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27498
27499         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
27500         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
27501
27502 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
27503
27504         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
27505         __EXTENSIONS__ if this causes compilation to fail.  Problem
27506         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
27507         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
27508
27509 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27510
27511         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
27512         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
27513         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
27514         All uses changed.
27515
27516 2006-01-26  Simon Josefsson  <jas@extundo.com>
27517
27518         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
27519         prototype is visible on mingw32.
27520
27521         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
27522         for mingw32.
27523
27524         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
27525         mingw32).
27526
27527 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
27528
27529         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
27530         attempt to open for write; this always fails, at least on POSIX
27531         hosts.  This reinstates the 2006-01-09 change, which was
27532         inadvertently removed.
27533
27534 2006-01-26  Bruno Haible  <bruno@clisp.org>
27535
27536         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
27537         Reported by Paul Eggert.
27538
27539 2006-01-26  Bruno Haible  <bruno@clisp.org>
27540             Paul Eggert  <eggert@cs.ucla.edu>
27541
27542         * lib/stdbool_.h (_Bool)
27543         [(! (defined __cplusplus || defined __BEOS__)
27544           && !defined __GNUC__
27545           && !(defined __HP_cc || defined __xlc__
27546                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
27547                || defined __sgi))]:
27548         #define to signed char in these cases too; this simplifies
27549         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
27550         etc., separately) and makes it more conservative.
27551
27552 2006-01-25  Simon Josefsson  <jas@extundo.com>
27553
27554         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
27555         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
27556         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
27557
27558 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27559
27560         * lib/argp-namefrob.h: Bugfix. Remove stray #
27561
27562 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27563
27564         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
27565         so that we test the test.
27566         Check for yet another HP-UX cc bug involving *bool |= bool.
27567
27568 2006-01-25  Karl Berry  <karl@gnu.org>
27569
27570         * config/srclist.txt (vasnprintf.c): sync lost.
27571
27572 2006-01-25  Jim Meyering  <jim@meyering.net>
27573
27574         Sync from the stable (b5) branch of coreutils:
27575
27576         * lib/fts.c (fts_children): Don't let close() clobber errno from
27577         failed fchdir().
27578
27579         * lib/fts.c (fts_stat): When following a symlink-to-directory,
27580         don't necessarily interpret stat-fails+lstat-succeeds as indicating
27581         a dangling symlink.  That can also happen at least for ELOOP.
27582         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
27583         FYI, this bug predates the inclusion of fts.c in coreutils.
27584
27585         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
27586         in their own block, so pre-c99 compilers don't object.
27587
27588         Avoid the double-free (first in fts_read, second in fts_close) that
27589         would occur when an `active' directory is made inaccessible (e.g.,
27590         via chmod a-x) during a traversal.
27591         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27592         before returning.  Reproduce this failure by
27593         mkdir -p a/b; cd a; chmod a-x . b
27594         Reported by Stavros Passas.
27595
27596 2006-01-25  Jim Meyering  <jim@meyering.net>
27597
27598         * lib/fileblocks.c: Remove more useless parentheses.
27599         * lib/readutmp.h: Likewise.
27600
27601 2006-01-25  Bruno Haible  <bruno@clisp.org>
27602
27603         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
27604         warnings.
27605         Reported by Paul Eggert.
27606
27607 2006-01-25  Bruno Haible  <bruno@clisp.org>
27608
27609         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
27610         rid of a trap command. For Solaris sh.