Add a getloadavg() declaration to <stdlib.h>.
[gnulib.git] / ChangeLog
1 2008-10-18  Bruno Haible  <bruno@clisp.org>
2
3         Add a getloadavg() declaration to <stdlib.h>.
4         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
5         getloadavg declaration.
6         (getloadavg): New declaration.
7         * lib/getloadavg.c: Include <stdlib.h> first.
8         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
9         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
10         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
11         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
12         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
13         * modules/getloadavg (Depends-on): Add stdlib, extensions.
14         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15         (Include): Specify <stdlib.h>.
16         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
17         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18
19 2008-10-18  Bruno Haible  <bruno@clisp.org>
20
21         * lib/dirchownmod.c: Don't include lchmod.h.
22
23         Move the lchmod() declaration to <sys/stat.h>.
24         * lib/lchmod.h: Remove file.
25         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
26         (lchmod): New declaration, moved here from lib/lchown.h.
27         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
28         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
29         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
30         and HAVE_LCHMOD.
31         * modules/lchmod (Files): Remove lib/lchmod.h.
32         (Depends-on): Add sys_stat, extensions.
33         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34         (Include): Specify <sys/stat.h> instead of lchmod.h.
35         * modules/sys_stat (Depends-on): Add link-warning.
36         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
37         definition of GL_LINK_WARNING.
38         * NEWS: Mention the change.
39
40 2008-10-18  Bruno Haible  <bruno@clisp.org>
41
42         * lib/fchdir.c: Don't include dirfd.h.
43         * lib/fts.c: Likewise.
44         * lib/getcwd.c: Likewise.
45         * lib/glob.c: Likewise.
46
47         Move the dirfd() declaration to <dirent.h>.
48         * lib/dirfd.h: Remove file.
49         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50         (dirfd): New declaration.
51         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54         HAVE_DECL_DIRFD.
55         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56         HAVE_DECL_DIRFD.
57         * modules/dirfd (Files): Remove lib/dirfd.h.
58         (Depends-on): Add dirent, extensions.
59         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
60         (Include): Specify <dirent.h> instead of dirfd.h.
61         * modules/dirent (Depends-on): Add link-warning.
62         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
63         definition of GL_LINK_WARNING.
64         * NEWS: Mention the change.
65
66 2008-10-18  Bruno Haible  <bruno@clisp.org>
67
68         Move the euidaccess() declaration to <unistd.h>.
69         * lib/euidaccess.h: Remove file.
70         * lib/unistd.in.h (euidaccess): New declaration.
71         * lib/euidaccess.c: Don't include euidaccess.h.
72         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
73         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
74         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
75         and HAVE_EUIDACCESS.
76         * modules/euidaccess (Files): Remove lib/euidaccess.h.
77         (Depends-on): Add unistd.
78         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79         (Include): Specify <unistd.h> instead of euidaccess.h.
80         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
81         HAVE_EUIDACCESS.
82         * NEWS: Mention the change.
83
84 2008-10-18  Bruno Haible  <bruno@clisp.org>
85
86         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
87
88         Move the getdomainname() declaration to <unistd.h>.
89         * lib/getdomainname.h: Remove file.
90         * lib/unistd.in.h (getdomainname): New declaration.
91         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
92         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
93         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
94         HAVE_GETDOMAINNAME.
95         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
96         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
97         * modules/getdomainname (Files): Remove lib/getdomainname.h.
98         (Depends-on): Add unistd, extensions.
99         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
100         (Includes): Specify <unistd.h> instead of getdomainname.h.
101         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
102         HAVE_GETDOMAINNAME.
103         * NEWS: Mention the change.
104
105 2008-10-18  Bruno Haible  <bruno@clisp.org>
106
107         * modules/dirent: New file.
108         * m4/dirent_h.m4: New file.
109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
110         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
111         * modules/fchdir (Files): Remove lib/dirent.in.h.
112         (Depends-on): Add dirent.
113         (Makefile.am): Move rules to modules/dirent.
114         * doc/posix-headers/dirent.texi: Mention the new module.
115
116 2008-10-18  Bruno Haible  <bruno@clisp.org>
117
118         Avoid -Wunused-parameter warnings in public gnulib header files.
119         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
120         macro.
121         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
122
123 2008-10-18  Bruno Haible  <bruno@clisp.org>
124
125         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
126         * doc/glibc-functions/error.texi: Mention the module 'error'.
127         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
128         * doc/glibc-functions/getdomainname.texi: Mention the module
129         'getdomainname'.
130         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
131         * doc/glibc-functions/getpagesize.texi: Mention the module
132         'getpagesize'.
133         * doc/glibc-functions/getusershell.texi: Mention the module
134         'getusershell'.
135         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
136         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
137         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
138         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
139         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
140         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
141         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
142         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
143         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
144         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
145         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
146         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
147         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
148         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
149
150 2008-10-17  Bruno Haible  <bruno@clisp.org>
151
152         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
153         HP-UX and IRIX, use -0.0L.
154         * tests/test-ceill.c (minus_zero): Likewise.
155         * tests/test-floorl.c (minus_zero): Likewise.
156         * tests/test-frexpl.c (minus_zero): Likewise.
157         * tests/test-isnan.c (minus_zerol): Likewise.
158         * tests/test-isnanl.h (minus_zero): Likewise.
159         * tests/test-ldexpl.c (minus_zero): Likewise.
160         * tests/test-roundl.c (minus_zero): Likewise.
161         * tests/test-signbit.c (minus_zerol): Likewise.
162         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
163         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
164         * tests/test-truncl.c (minus_zero): Likewise.
165         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
166         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
167         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
168         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
169
170 2008-10-17  Bruno Haible  <bruno@clisp.org>
171
172         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
173         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
174         that it gets activated only for gcc >= 3.0.
175         * lib/dirent.in.h: Likewise.
176         * lib/errno.in.h: Likewise.
177         * lib/fcntl.in.h: Likewise.
178         * lib/float.in.h: Likewise.
179         * lib/iconv.in.h: Likewise.
180         * lib/inttypes.in.h: Likewise.
181         * lib/locale.in.h: Likewise.
182         * lib/math.in.h: Likewise.
183         * lib/netdb.in.h: Likewise.
184         * lib/netinet_in.in.h: Likewise.
185         * lib/search.in.h: Likewise.
186         * lib/signal.in.h: Likewise.
187         * lib/spawn.in.h: Likewise.
188         * lib/stdarg.in.h: Likewise.
189         * lib/stdint.in.h: Likewise.
190         * lib/stdio.in.h: Likewise.
191         * lib/stdlib.in.h: Likewise.
192         * lib/string.in.h: Likewise.
193         * lib/strings.in.h: Likewise.
194         * lib/sys_file.in.h: Likewise.
195         * lib/sys_ioctl.in.h: Likewise.
196         * lib/sys_select.in.h: Likewise.
197         * lib/sys_socket.in.h: Likewise.
198         * lib/sys_stat.in.h: Likewise.
199         * lib/sys_time.in.h: Likewise.
200         * lib/sysexits.in.h: Likewise.
201         * lib/time.in.h: Likewise.
202         * lib/unistd.in.h: Likewise.
203         * lib/wchar.in.h: Likewise.
204         * lib/wctype.in.h: Likewise.
205         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
206
207 2008-10-17  Jim Meyering  <meyering@redhat.com>
208
209         ignore-value: don't depend on inline module
210         * modules/ignore-value (Depends-on): Remove 'inline'.
211         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
212         Suggestion from Bruno Haible.
213
214 2008-10-17  Bruno Haible  <bruno@clisp.org>
215
216         New implementation of condition variables for Win32.
217         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
218         (gl_linked_waitqueue_t): New type.
219         (gl_cond_t): Use it.
220         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
221         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
222         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
223         (glthread_cond_init_func, glthread_cond_wait_func,
224         glthread_cond_timedwait_func, glthread_cond_signal_func,
225         glthread_cond_broadcast_func, glthread_cond_destroy_func):
226         Reimplemented on the basis of gl_linked_waitqueue_t.
227         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
228         gl_waitqueue_t.
229         (gl_rwlock_t): Update.
230         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
231
232 2008-10-17  Simon Josefsson  <simon@josefsson.org>
233
234         * modules/recvfrom (Depends-on): Add dependency on getpeername.
235         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
236
237 2008-10-17  Jim Meyering  <meyering@redhat.com>
238
239         ignore-value: new module
240         * modules/ignore-value: New file.
241         * lib/ignore-value.h: New file.
242         * MODULES.html.sh (Compiler warning management): New section,
243         just for this module.  More to come.
244
245 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
246
247         open-safer.c: avoid 'signed and unsigned in conditional...' warning
248         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
249         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
250
251 2008-10-16  Jim Meyering  <meyering@redhat.com>
252
253         openat-die.c: avoid 'no previous prototype' warning
254         * lib/openat-die.c: Include "openat.h".
255         Reported by Reuben Thomas <rrt@sc3d.org>.
256
257 2008-10-16  Simon Josefsson  <simon@josefsson.org>
258
259         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
260         * lib/netdb.in.h: Fix typo.
261         Reported by Bruno Haible  <bruno@clisp.org>
262
263         * lib/netdb.in.h: Include sys/socket.h for platforms without
264         netdb.h, to get structures like hostent on MinGW.
265         * modules/netdb (Depends-on): Add sys_socket.
266
267 2008-10-15  Simon Josefsson  <simon@josefsson.org>
268
269         * modules/netdb, modules/netdb-tests: New file.
270         * m4/netdb_h.m4: New file.
271         * lib/netdb.in.h: Add, currently just an empty file pending
272         definitions.
273         * tests/test-netdb.c: New file.
274         * doc/posix-headers/netdb.texi: Mention that we replace it if
275         needed.
276         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
277         netdb.
278
279 2008-10-15  Simon Josefsson  <simon@josefsson.org>
280
281         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
282         with code.
283
284 2008-10-13  Bruno Haible  <bruno@clisp.org>
285
286         * lib/glthread/cond.c (glthread_cond_wait_func,
287         glthread_cond_timedwait_func): Add a comment.
288
289 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
290
291         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
292         * tests/test-select.c: Likewise,
293
294 2008-10-13  Bruno Haible  <bruno@clisp.org>
295
296         * lib/glthread/cond.c (glthread_cond_wait_func,
297         glthread_cond_timedwait_func): Fix variable name.
298         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
299
300 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
301
302         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
303         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
304         struct sockaddr.sa_len.
305         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
306
307 2008-10-13  Simon Josefsson  <simon@josefsson.org>
308
309         * build-aux/pmccabe2html: Add css and css_url parameters.
310
311 2008-10-12  Bruno Haible  <bruno@clisp.org>
312
313         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
314         calling aclx_get.
315         Reported by Rainer Tammer <tammer@tammer.net>.
316
317 2008-10-12  Bruno Haible  <bruno@clisp.org>
318
319         Use msvcrt aware primitives for creation/termination of Win32 threads.
320         * lib/glthread/thread.c: Include <process.h>.
321         (glthread_create_func): Use _beginthreadex instead of CreateThread.
322         (wrapper_func): Update signature.
323         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
324
325 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
326             Bruno Haible  <bruno@clisp.org>
327
328         Provide a Win32 implementation of the 'cond' module.
329         * lib/glthread/cond.h [USE_WIN32]: New implementation.
330         * lib/glthread/cond.c (glthread_cond_init_func,
331         glthread_cond_wait_func, glthread_cond_timedwait_func,
332         glthread_cond_signal_func, glthread_cond_broadcast_func,
333         glthread_cond_destroy_func) [USE_WIN32]: New functions.
334         * modules/cond (Dependencies): Add gettimeofday.
335
336 2008-10-11  Bruno Haible  <bruno@clisp.org>
337
338         Make sleep work on older versions of mingw.
339         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
340         only whether it exists.
341         * doc/posix-functions/sleep.texi: Mention the problem with older
342         versions of mingw.
343
344 2008-10-11  Bruno Haible  <bruno@clisp.org>
345
346         New module 'shutdown'.
347         * modules/shutdown: New file.
348         * lib/sys_socket.in.h (shutdown): New declaration.
349         * lib/winsock.c (shutdown): New function.
350         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
351         GNULIB_SHUTDOWN.
352         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
353         * doc/posix-functions/shutdown.texi: Document the new module.
354
355 2008-10-11  Jim Meyering  <meyering@redhat.com>
356
357         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
358
359 2008-10-11  Bruno Haible  <bruno@clisp.org>
360
361         New module 'fclose'.
362         * modules/fclose: New file.
363         * lib/stdio.in.h (fclose): New declaration.
364         * lib/fclose.c: New file.
365         * m4/fclose.m4: New file.
366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
367         REPLACE_FCLOSE.
368         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
369         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
370         REPLACE_FCLOSE.
371         * modules/close (Depends-on): fclose.
372         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
373
374 2008-10-11  Bruno Haible  <bruno@clisp.org>
375
376         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
377         set errno and don't call _close.
378
379 2008-10-10  Bruno Haible  <bruno@clisp.org>
380
381         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
382         ACL, not afterwards. Fixes test failure on Cygwin.
383
384 2008-10-09  Ben Pfaff  <blp@gnu.org>
385
386         * build-aux/announce-gen: Fix gnulib version related part of usage
387         message.  Die with a useful error message if no tarballs are
388         found.
389
390 2008-10-10  Jim Meyering  <meyering@redhat.com>
391
392         bootstrap: use git's --depth=N option only if it's supported
393         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
394         recognize the --depth option.  Reported by Pádraig Brady.
395
396 2008-10-09  Bruno Haible  <bruno@clisp.org>
397
398         New module 'ioctl'.
399         * modules/ioctl: New file.
400         * lib/sys_socket.in.h (ioctl): Remove declaration.
401         * lib/winsock.c: Include <sys/ioctl.h>.
402         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
403         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
404         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
405         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
406         * doc/posix-functions/ioctl.texi: Mention the new module.
407
408 2008-10-09  Bruno Haible  <bruno@clisp.org>
409
410         New module 'sys_ioctl'.
411         * lib/sys_ioctl.in.h: New file.
412         * m4/sys_ioctl_h.m4: New file.
413         * modules/sys_ioctl: New file.
414         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
415
416 2008-10-09  Bruno Haible  <bruno@clisp.org>
417
418         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
419         * lib/winsock.c: Include <stdarg.h>.
420         (rpl_ioctl): Change to second argument 'int' and then varargs.
421
422 2008-10-09  Bruno Haible  <bruno@clisp.org>
423
424         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
425         when the sys_socket module is present and the system has <winsock2.h>.
426
427 2008-10-09  Bruno Haible  <bruno@clisp.org>
428
429         * doc/posix-functions/close.texi: Mention module 'close' instead of
430         module 'sys_socket'.
431
432 2008-10-09  Bruno Haible  <bruno@clisp.org>
433
434         * doc/glibc-headers/sys_ioctl.texi: New file.
435         * doc/gnulib.texi: Include it.
436
437 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
438             Bruno Haible  <bruno@clisp.org>
439
440         Combine the two replacements of 'close'.
441         * lib/sys_socket.in.h (close): Define to a reminder to include
442         <unistd.h>.
443         (_gl_close_fd_maybe_socket): New declaration.
444         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
445         * lib/winsock.c (close): Remove undefinition.
446         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
447         needed for the gnulib module 'close'.
448         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
449         define to an error symbol or to a warning, if suitable.
450         * lib/close.c: Include <sys/socket.h>.
451         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
452         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
453         UNISTD_H_HAVE_WINSOCK2_H.
454         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
456         UNISTD_H_HAVE_WINSOCK2_H.
457         * modules/sys_socket (Files): Add m4/unistd_h.m4.
458         (configure.ac): Set a module indicator.
459         (Makefile.am): Substitute GNULIB_CLOSE.
460         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
461         * modules/poll-tests (Depends-on): Add close.
462         * modules/select-tests (Depends-on): Likewise.
463
464 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
465             Bruno Haible  <bruno@clisp.org>
466
467         New module 'close'.
468         * modules/close: New file.
469         * lib/unistd.in.h (close): Move declaration out of the
470         FCHDIR_REPLACEMENT scope.
471         (_gl_unregister_fd): New declaration.
472         * lib/close.c: New file.
473         * lib/fchdir.c (rpl_close): Remove function.
474         * m4/close.m4: New file.
475         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
476         close.
477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
478         REPLACE_CLOSE.
479         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
480         REPLACE_CLOSE.
481         * modules/fchdir (Depends-on): Add close.
482
483 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
484             Bruno Haible  <bruno@clisp.org>
485
486         * lib/fcntl.in.h (open): Simplify conditionals.
487         (_gl_register_fd): New declaration.
488         * lib/fchdir.c (rpl_open): Remove function.
489         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
490         also.
491         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
492         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
493         open.
494
495 2008-10-09  Jim Meyering  <meyering@redhat.com>
496
497         GNUmakefile: use the more name-space-friendly "_version"
498         * top/GNUmakefile (_dummy): Update.
499         (_version): Rename from "version".
500
501 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
502             Bruno Haible  <bruno@clisp.org>
503
504         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
505         rpl_close.
506         (_gl_register_fd): New function, extracted from rpl_open.
507         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
508         (rpl_open, rpl_opendir): Use _gl_register_fd.
509
510 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
511
512         Fix organization of 'open' replacement.
513         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
514         (gl_FUNC_OPEN): Use it.
515         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
516
517 2008-10-08  Bruno Haible  <bruno@clisp.org>
518
519         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
520
521 2008-10-08  Simon Josefsson  <simon@josefsson.org>
522
523         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
524         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
525         listen).
526
527 2008-10-08  Eric Blake  <ebb9@byu.net>
528
529         GNUmakefile: add 'make version' target
530         * top/GNUmakefile (_curr-ver): Split version update rules...
531         (version): ...into a target.
532
533 2008-10-07  Bruno Haible  <bruno@clisp.org>
534
535         Use a more portable replacement expression for -0.0L.
536         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
537         instead of -0.0L. Fix m4 quotation.
538
539         * tests/test-signbit.c: Include <float.h>.
540         (minus_zero): New variable.
541         (test_signbitl): Use minus_zero instead of -zero.
542         * modules/signbit-tests (Depends-on): Add float.
543
544         * tests/test-ceill.c: Include <float.h>.
545         (zero): Remove variable.
546         (minus_zero): New variable.
547         (main): Use minus_zero instead of -zero.
548         * modules/ceill-tests (Depends-on): Add float.
549
550         * tests/test-floorl.c: Include <float.h>.
551         (zero): Remove variable.
552         (minus_zero): New variable.
553         (main): Use minus_zero instead of -zero.
554         * modules/floorl-tests (Depends-on): Add float.
555
556         * tests/test-roundl.c: Include <float.h>.
557         (zero): Remove variable.
558         (minus_zero): New variable.
559         (main): Use minus_zero instead of -zero.
560         * modules/roundl-tests (Depends-on): Add float.
561
562         * tests/test-truncl.c: Include <float.h>.
563         (zero): Remove variable.
564         (minus_zero): New variable.
565         (main): Use minus_zero instead of -zero.
566         * modules/truncl-tests (Depends-on): Add float.
567
568         * tests/test-frexpl.c (zero): Remove variable.
569         (minus_zero): New variable.
570         (main): Use minus_zero instead of -zero.
571         * modules/frexpl-tests (Depends-on): Add float.
572
573         * tests/test-isnan.c (zerol): Remove variable.
574         (minus_zerol): New variable.
575         (test_long_double): Use minus_zerol instead of -zerol.
576         * modules/isnan-tests (Depends-on): Add float.
577
578         * tests/test-isnanl.h (zero): Remove variable.
579         (minus_zero): New variable.
580         (main): Use minus_zero instead of -zero.
581         * modules/isnanl-nolibm-tests (Depends-on): Add float.
582         * modules/isnanl-tests (Depends-on): Add float.
583
584         * tests/test-ldexpl.c (zero): Remove variable.
585         (minus_zero): New variable.
586         (main): Use minus_zero instead of -zero.
587         * modules/ldexpl-tests (Depends-on): Add float.
588
589         * tests/test-snprintf-posix.h (zerol): Remove variable.
590         (minus_zerol): New variable.
591         (test_function): Use minus_zerol instead of -zerol.
592         * modules/snprintf-posix-tests (Depends-on): Add float.
593         * modules/vsnprintf-posix-tests (Depends-on): Add float.
594
595         * tests/test-sprintf-posix.h (zerol): Remove variable.
596         (minus_zerol): New variable.
597         (test_function): Use minus_zerol instead of -zerol.
598         * modules/sprintf-posix-tests (Depends-on): Add float.
599         * modules/vsprintf-posix-tests (Depends-on): Add float.
600
601         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
602         (minus_zerol): New variable.
603         (test_function): Use minus_zerol instead of -zerol.
604         * modules/vasnprintf-posix-tests (Depends-on): Add float.
605
606         * tests/test-vasprintf-posix.c (zerol): Remove variable.
607         (minus_zerol): New variable.
608         (test_function): Use minus_zerol instead of -zerol.
609         * modules/vasprintf-posix-tests (Depends-on): Add float.
610
611 2008-10-07  Simon Josefsson  <simon@josefsson.org>
612
613         * MODULES.html.sh (Support for building documentation): Mention
614         pmccabe2html.  Sort entries.
615
616         Add pmccabe2html module, from gnupdf.
617         * build-aux/pmccabe.css: New file.
618         * build-aux/pmccabe2html: New file.
619         * m4/pmccabe2html.m4: New file.
620         * modules/pmccabe2html: New file.
621
622 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
623
624         flock: new module
625         * MODULES.html.sh: Add to list of modules.
626         * lib/flock.c: flock implementation for Windows and Unix systems
627         which have fcntl.
628         * doc/glibc-functions/flock.texi: Update documentation.
629         * lib/sys_file.in.h: <sys/file.h> header file.
630         * m4/flock.m4: M4 macros.
631         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
632         * modules/flock: flock module.
633         * modules/flock-tests: flock tests module.
634         * modules/sys_file: sys/file.h module.
635         * tests/test-flock.c: test suite for flock.
636
637 2008-10-06  Jim Meyering  <meyering@redhat.com>
638
639         bootstrap: check for LT_INIT more portably still ;-)
640         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
641         Spotted by Bruno Haible.
642
643 2008-10-06  Eric Blake  <ebb9@byu.net>
644
645         test-signbit: avoid tripping Irix cc bug on -0.0L
646         * tests/test-signbit.c (minus_zerol): Delete, and replace with
647         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
648         entire testsuite consistent and avoids an Irix 6.2 bug.
649
650 2008-10-05  Bruno Haible  <bruno@clisp.org>
651             Jim Meyering  <jim@meyering.net>
652
653         Add an option for ignoring EPIPE during close_stdout.
654         * lib/closeout.h: Include <stdbool.h>.
655         (close_stdout_set_ignore_EPIPE): New declaration.
656         * lib/closeout.c: Include <stdbool.h>.
657         (ignore_EPIPE): New variable.
658         (close_stdout_set_ignore_EPIPE): New function.
659         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
660         * lib/close-stream.c (close_stream): Mention the possible EPIPE
661         failure.
662         * modules/closeout (Depends-on): Add stdbool.
663
664 2008-10-05  Bruno Haible  <bruno@clisp.org>
665
666         * modules/accept: New file.
667         * modules/bind: New file.
668         * modules/connect: New file.
669         * modules/getpeername: New file.
670         * modules/getsockname: New file.
671         * modules/getsockopt: New file.
672         * modules/listen: New file.
673         * modules/recv: New file.
674         * modules/recvfrom: New file.
675         * modules/send: New file.
676         * modules/sendto: New file.
677         * modules/setsockopt: New file.
678         * modules/socket: New file.
679         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
680         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
681         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
682         the particular module is requested. Add a link warning when the
683         particular module is not requested.
684         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
685         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
686         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
687         the particular module is requested.
688         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
689         gl_SYS_SOCKET_H_DEFAULTS): New macros.
690         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
691         * modules/sys_socket (Depends-on): Add link-warning.
692         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
693         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
694         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
695         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
696         GL_LINK_WARNING.
697         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
698         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
699         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
700         * doc/posix-functions/getpeername.texi: Mention the new module
701         'getpeername'.
702         * doc/posix-functions/getsockname.texi: Mention the new module
703         'getsockname'.
704         * doc/posix-functions/getsockopt.texi: Mention the new module
705         'getsockopt'.
706         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
707         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
708         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
709         * doc/posix-functions/send.texi: Mention the new module 'send'.
710         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
711         * doc/posix-functions/setsockopt.texi: Mention the new module
712         'setsockopt'.
713         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
714         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
715         listen, connect, accept.
716         * modules/select-tests (Depends-on): Likewise.
717
718 2008-10-05  Bruno Haible  <bruno@clisp.org>
719
720         * lib/winsock.c (strerror): Remove unused #undef.
721         (rpl_close): Remove unused local variable.
722
723         * modules/sys_socket (Depends-on); Add errno.
724
725 2008-10-05  Bruno Haible  <bruno@clisp.org>
726
727         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
728         (select): Add a link warning when the 'select' module is not used.
729         * modules/sys_select (Depends-on): Add link-warning.
730         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
731         Suggested by Paolo Bonzini.
732
733 2008-10-05  Jim Meyering  <meyering@redhat.com>
734
735         bootstrap: check for LT_INIT more portably
736         * build-aux/bootstrap: Avoid using grep -E, since it's not
737         portable enough.  Suggestion from Bruno Haible.
738
739 2008-10-05  Bruno Haible  <bruno@clisp.org>
740
741         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
742         as being fixed by gnulib.
743
744 2008-10-05  Bruno Haible  <bruno@clisp.org>
745
746         * modules/select-tests: New file, mostly copied from
747         modules/sys_select-tests.
748         * tests/test-select.c: New file, mostly copied from
749         tests/test-sys_select.c.
750         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
751         * modules/sys_select-tests (Depends-on): Remove all dependencies.
752         (Makefile.am): Remove test_sys_select_LDADD.
753
754         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
755         to an undefined symbol, for an error message.
756         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
757         (gl_SYS_SELECT_H_DEFAULTS): New macro.
758         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
759         winsock-select.c here.
760         * modules/sys_select (Files): Remove lib/winsock-select.c.
761         (Depends-on): Remove alloca.
762         (Makefile.am): Substitute GNULIB_SELECT.
763         * modules/select: New file.
764         * doc/posix-functions/select.texi: Update.
765
766 2008-10-05  Bruno Haible  <bruno@clisp.org>
767
768         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
769         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
770         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
771         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
772         getdtablesize.
773         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
774         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
775
776 2008-10-05  Bruno Haible  <bruno@clisp.org>
777
778         * modules/getdtablesize-tests: New file.
779         * tests/test-getdtablesize.c: New file.
780
781         New module 'getdtablesize'.
782         * lib/unistd.in.h (getdtablesize): New declaration.
783         * lib/getdtablesize.c: New file.
784         * m4/getdtablesize.m4: New file.
785         * modules/getdtablesize: New file.
786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
787         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
788         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
789         HAVE_GETDTABLESIZE.
790         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
791
792 2008-10-05  Bruno Haible  <bruno@clisp.org>
793
794         * modules/sched (Makefile.am): Fix typo.
795         Reported by Simon Josefsson.
796
797 2008-10-05  Jim Meyering  <meyering@redhat.com>
798
799         bootstrap: check for LT_INIT, too
800         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
801         are deprecated.  Suggestion from Ralf Wildenhues.
802
803 2008-10-05  Bruno Haible  <bruno@clisp.org>
804
805         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
806         overriding them by ours.
807         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
808
809 2008-10-05  Jim Meyering  <meyering@redhat.com>
810
811         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
812         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
813         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
814
815 2008-10-04  Bruno Haible  <bruno@clisp.org>
816
817         * modules/dup2 (License): Change to LGPLv2+.
818         * modules/sleep (License): Likewise.
819         * modules/perror (License): Likewise.
820         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
821         Blake.
822         * modules/signal (License): Likewise.
823         * modules/sigprocmask (License): Likewise.
824         * modules/raise (License): Change to LGPLv2+, with approval by Jim
825         Meyering.
826
827 2008-10-04  Bruno Haible  <bruno@clisp.org>
828
829         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
830         Reported by Rainer Tammer <tammer@tammer.net>.
831
832 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
833             Bruno Haible  <bruno@clisp.org>
834
835         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
836         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
837         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
838
839 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
840
841         filevercmp: new module
842         * lib/filevercmp.h: New function filevercmp comparing version strings.
843         * lib/filevercmp.c: Implementation of filevercmp function.
844         * modules/filevercmp: Module metadata.
845         * tests/test-filevercmp.c: Unit test for new module.
846         * modules/filevercmp-tests: Unit test metadata.
847         * MODULES.html.sh: Add filevercmp module.
848
849 2008-10-03  Bruno Haible  <bruno@clisp.org>
850
851         * lib/c-ctype.h: Add comment.
852         Reported by Jim Meyering.
853
854 2008-10-02  Bruno Haible  <bruno@clisp.org>
855
856         * modules/posix_spawn-internal (Depends-on): Add 'open'.
857
858 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
859
860         * build-aux/bootstrap: Allow renaming bootstrap, and change the
861         name of bootstrap.conf accordingly.
862
863 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
864
865         * build-aux/bootstrap: Install git-merge-changelog configuration
866         items into .gitconfig if needed.
867
868 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
869
870         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
871         git repository, and initialize/update it accordingly.
872
873 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
874
875         * modules/fsync-tests: New file.
876         * tests/test-fsync.c: New file.
877
878         New module 'fsync'.
879         * lib/fsync.c: New file.
880         * m4/fsync.m4: New file.
881         * modules/fsync: New file.
882         * lib/unistd.in.h (fsync): New declaration.
883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
884         GNULIB_FSYNC and HAVE_FSYNC.
885         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
886         * MODULES.html.sh (posix_functions): Add fsync.
887         * doc/posix-functions/fsync.texi: Mention the new module.
888
889 2008-10-02  Jim Meyering  <meyering@redhat.com>
890
891         fts.c: sync with similar code from coreutils' remove.c
892         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
893         Guard also with "#if defined __linux__", since for now at least,
894         this code is Linux-kernel-specific.
895
896 2008-10-02  Jim Meyering  <meyering@redhat.com>
897
898         fts: bug fixes
899         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
900         Include <sys/vfs.h>, not <sys/statfs.h>.
901
902         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
903         Include <sys/vfs.h>, not <sys/statfs.h>.
904
905 2008-10-01  Bruno Haible  <bruno@clisp.org>
906
907         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
908         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
909         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
910         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
911         * doc/posix-functions/posix_spawnp.texi: Likewise.
912         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
913         whether posix_spawn actually works.
914         * m4/pipe.m4 (gl_PIPE): Likewise.
915         * modules/execute (Files): Add m4/posix_spawn.m4.
916         * modules/pipe (Files): Add m4/posix_spawn.m4.
917         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
918
919 2008-10-01  Jim Meyering  <meyering@redhat.com>
920
921         remove trailing spaces
922         * NEWS: Likewise.
923         * lib/poll.c (poll): Likewise.
924         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
925         * lib/winsock.c (rpl_close): Likewise.
926         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
927         * modules/yield: Likewise.
928         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
929         * tests/test-sys_select.c (connect_to_socket): Likewise.
930
931         fts.c: adjust a new interface to be more generally useful
932         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
933         (fts_build): Adjust caller.
934
935 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
936
937         * modules/cond-tests: New file.
938         * tests/test-cond.c: New file.
939
940 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
941             Bruno Haible  <bruno@clisp.org>
942
943         * modules/cond (Dependencies): Add errno, time.
944         * lib/glthread/cond.h: Include <time.h>.
945         (gl_cond_define, gl_cond_define_initialized): Use the same definition
946         across platforms.
947
948 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
949             Bruno Haible  <bruno@clisp.org>
950
951         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
952
953 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
954             Bruno Haible  <bruno@clisp.org>
955
956         * modules/tls-tests (Depends-on): Add thread, yield.
957         (configure.ac): Remove all checks.
958         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
959         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
960         gl_thread_self): Remove definitions. Include glthread/thread.h and
961         glthread/yield.h instead.
962         (test_tls): Pass an additional NULL argument to gl_thread_join.
963
964 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
965             Bruno Haible  <bruno@clisp.org>
966
967         * modules/lock-tests (Depends-on): Add thread, yield.
968         (configure.ac): Remove all checks.
969         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
970         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
971         gl_thread_self): Remove definitions. Include glthread/thread.h and
972         glthread/yield.h instead.
973         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
974         additional NULL argument to gl_thread_join.
975
976 2008-09-30  Bruno Haible  <bruno@clisp.org>
977
978         Fix the Win32 implementation of the 'thread' module.
979         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
980         pointer type.
981         (gl_thread_self): Invoke gl_thread_self_func.
982         (gl_thread_self_func): New declaration.
983         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
984         (do_init_self_key, init_self_key): New functions.
985         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
986         Remove some fields.
987         (running_threads, running_lock): Remove variables.
988         (get_current_thread_handle): New function.
989         (gl_thread_self_func, wrapper_func, glthread_create_func,
990         glthread_join_func, gl_thread_exit_func): Largely rewritten and
991         simplified.
992
993 2008-09-30  Bruno Haible  <bruno@clisp.org>
994
995         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
996         files.
997
998 2008-09-30  Jim Meyering  <meyering@redhat.com>
999
1000         fts.m4: correct the test for statfs.f_type
1001         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
1002         when checking for statfs.f_type.
1003
1004 2008-09-15  Simon Josefsson  <simon@josefsson.org>
1005
1006         tests: avoid some compiler warnings
1007         * tests/test-memchr.c (main): Pass NULL indirectly.
1008         * tests/test-getdate.c (main): Remove unused variable 'ret'.
1009
1010 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
1011
1012         getdate.y: disallow countable dayshifts like "4 yesterday ago"
1013         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
1014         exactly specified dayshifts.
1015         (dayshift): New rule.
1016         (rel): Add dayshift.
1017         (relative_time_table) [tomorrow, yesterday, today, now]:
1018         Use tDAY_SHIFT in place of tDAY_UNIT.
1019         * tests/test-getdate.c: Add tests for now-disallowed countable
1020         dayshifts, e.g., "4 yesterday ago".
1021
1022 2008-09-29  Bruno Haible  <bruno@clisp.org>
1023
1024         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
1025         * tests/test-posix_spawn1.in.sh: Renamed from
1026         tests/test-posix_spawn.in.sh.
1027         * tests/test-posix_spawn2.c: New file.
1028         * tests/test-posix_spawn2.in.sh: New file.
1029         * modules/posix_spawnp-tests (Files): Update.
1030         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
1031
1032 2008-09-29  Bruno Haible  <bruno@clisp.org>
1033
1034         Propagate effects of putenv/setenv/unsetenv to child processes.
1035         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
1036         * lib/pipe.c (create_pipe): Likewise.
1037
1038 2008-09-29  Bruno Haible  <bruno@clisp.org>
1039
1040         Enable use of shell scripts as executables in mingw.
1041         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
1042         run the program as a shell script.
1043         * lib/pipe.c (create_pipe): Likewise.
1044         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
1045         resulting array.
1046
1047 2008-09-29  Eric Blake  <ebb9@byu.net>
1048
1049         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
1050
1051 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
1052
1053         * doc/posix-functions/accept.texi: Update mingw problems.
1054         * doc/posix-functions/bind.texi: Update mingw problems.
1055         * doc/posix-functions/close.texi: Update mingw problems.
1056         * doc/posix-functions/connect.texi: Update mingw problems.
1057         * doc/posix-functions/getpeername.texi: Update mingw problems.
1058         * doc/posix-functions/getsockname.texi: Update mingw problems.
1059         * doc/posix-functions/getsockopt.texi: Update mingw problems.
1060         * doc/posix-functions/ioctl.texi: Update mingw problems.
1061         * doc/posix-functions/listen.texi: Update mingw problems.
1062         * doc/posix-functions/recv.texi: Update mingw problems.
1063         * doc/posix-functions/recvfrom.texi: Update mingw problems.
1064         * doc/posix-functions/select.texi: Update mingw problems.
1065         * doc/posix-functions/send.texi: Update mingw problems.
1066         * doc/posix-functions/sendto.texi: Update mingw problems.
1067         * doc/posix-functions/setsockopt.texi: Update mingw problems.
1068         * doc/posix-functions/socket.texi: Update mingw problems.
1069
1070 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
1071             Bruno Haible  <bruno@clisp.org>
1072
1073         * lib/sys_select.in.h: Include sys/time.h.
1074         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
1075         * modules/sys_select: Depend on sys_time.
1076         * tests/test-sys_select.c: Test that sys/select.h defines struct
1077         timeval fully.
1078
1079 2008-09-29  Bruno Haible  <bruno@clisp.org>
1080
1081         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
1082         * lib/sys_select.in.h: Likewise.
1083
1084 2008-09-29  Bruno Haible  <bruno@clisp.org>
1085
1086         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
1087
1088 2008-09-29  Bruno Haible  <bruno@clisp.org>
1089
1090         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
1091         Set LIBSOCKET instead of augmenting LIBS.
1092         * modules/sockets (Link): New section.
1093         * modules/sockets-tests (test_sockets_LDADD): New variable.
1094         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
1095         * modules/poll-tests (test_poll_LDADD): New variable.
1096         * NEWS: Document the change.
1097
1098 2008-09-29  Bruno Haible  <bruno@clisp.org>
1099
1100         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
1101         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
1102         ARPA_INET_H directly.
1103         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1104
1105 2008-09-28  Bruno Haible  <bruno@clisp.org>
1106
1107         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
1108         from gl_HEADER_SYS_SOCKET.
1109         (gl_HEADER_SYS_SOCKET): Invoke it.
1110         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1111
1112 2008-09-28  Bruno Haible  <bruno@clisp.org>
1113
1114         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
1115         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
1116         Needed on OSF/1 4.0.
1117
1118 2008-09-28  Bruno Haible  <bruno@clisp.org>
1119
1120         Override open more carefully.
1121         * lib/open.c (orig_open): New function.
1122         (rpl_open): Use orig_open instead of open.
1123         * lib/fcntl.in.h: Add special invocation convention.
1124         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
1125         (gl_FUNC_OPEN): Invoke it.
1126
1127         Override freopen more carefully.
1128         * lib/freopen.c (orig_freopen): New function.
1129         (rpl_freopen): Use orig_freopen instead of freopen.
1130         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
1131         (gl_FUNC_FREOPEN): Invoke it.
1132
1133         Override fopen more carefully.
1134         * lib/fopen.c (orig_fopen): New function.
1135         (rpl_fopen): Use orig_fopen instead of fopen.
1136         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
1137         (gl_FUNC_FOPEN): Invoke it.
1138         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
1139
1140 2008-09-28  Bruno Haible  <bruno@clisp.org>
1141
1142         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
1143         SIGPIPE.
1144
1145 2008-09-28  Bruno Haible  <bruno@clisp.org>
1146
1147         * tests/test-sigaction.c (handler, main): Disable the check whether
1148         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
1149         glibc systems with LinuxThreads.
1150
1151 2008-09-28  Bruno Haible  <bruno@clisp.org>
1152
1153         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
1154
1155         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
1156         with AIX xlc.
1157         * lib/fcntl.in.h (open): Likewise.
1158         Reported by Rainer Tammer <tammer@tammer.net>.
1159
1160 2008-09-28  Bruno Haible  <bruno@clisp.org>
1161
1162         * modules/posix_spawnp-tests: New file.
1163         * tests/test-posix_spawn.c: New file.
1164         * tests/test-posix_spawn.in.sh: New file.
1165
1166         New module 'posix_spawnp'.
1167         * modules/posix_spawnp: New file.
1168         * lib/spawnp.c: New file, from GNU libc with modifications.
1169         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
1170
1171         New module 'posix_spawn'.
1172         * modules/posix_spawn: New file.
1173         * lib/spawn.c: New file, from GNU libc with modifications.
1174         * doc/posix-functions/posix_spawn.texi: Mention the new module.
1175
1176         New module 'posix_spawnattr_destroy'.
1177         * modules/posix_spawnattr_destroy: New file.
1178         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
1179         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
1180         module.
1181
1182         New module 'posix_spawnattr_setsigmask'.
1183         * modules/posix_spawnattr_setsigmask: New file.
1184         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
1185         modifications.
1186         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
1187         new module.
1188
1189         New module 'posix_spawnattr_getsigmask'.
1190         * modules/posix_spawnattr_getsigmask: New file.
1191         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
1192         modifications.
1193         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
1194         new module.
1195
1196         New module 'posix_spawnattr_setsigdefault'.
1197         * modules/posix_spawnattr_setsigdefault: New file.
1198         * lib/spawnattr_setdefault.c: New file, from GNU libc with
1199         modifications.
1200         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
1201         new module.
1202
1203         New module 'posix_spawnattr_getsigdefault'.
1204         * modules/posix_spawnattr_getsigdefault: New file.
1205         * lib/spawnattr_getdefault.c: New file, from GNU libc with
1206         modifications.
1207         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
1208         new module.
1209
1210         New module 'posix_spawnattr_setschedpolicy'.
1211         * modules/posix_spawnattr_setschedpolicy: New file.
1212         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
1213         modifications.
1214         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
1215         new module.
1216
1217         New module 'posix_spawnattr_getschedpolicy'.
1218         * modules/posix_spawnattr_getschedpolicy: New file.
1219         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
1220         modifications.
1221         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
1222         new module.
1223
1224         New module 'posix_spawnattr_setschedparam'.
1225         * modules/posix_spawnattr_setschedparam: New file.
1226         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
1227         modifications.
1228         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
1229         new module.
1230
1231         New module 'posix_spawnattr_getschedparam'.
1232         * modules/posix_spawnattr_getschedparam: New file.
1233         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
1234         modifications.
1235         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
1236         new module.
1237
1238         New module 'posix_spawnattr_setpgroup'.
1239         * modules/posix_spawnattr_setpgroup: New file.
1240         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
1241         modifications.
1242         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
1243         module.
1244
1245         New module 'posix_spawnattr_getpgroup'.
1246         * modules/posix_spawnattr_getpgroup: New file.
1247         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
1248         modifications.
1249         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
1250         module.
1251
1252         New module 'posix_spawnattr_setflags'.
1253         * modules/posix_spawnattr_setflags: New file.
1254         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
1255         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
1256         module.
1257
1258         New module 'posix_spawnattr_getflags'.
1259         * modules/posix_spawnattr_getflags: New file.
1260         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
1261         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
1262         module.
1263
1264         New module 'posix_spawnattr_init'.
1265         * modules/posix_spawnattr_init: New file.
1266         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
1267         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
1268         module.
1269
1270         New module 'posix_spawn_file_actions_destroy'.
1271         * modules/posix_spawn_file_actions_destroy: New file.
1272         * lib/spawn_faction_destroy.c: New file, from GNU libc with
1273         modifications.
1274         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
1275         the new module.
1276
1277         New module 'posix_spawn_file_actions_addopen'.
1278         * modules/posix_spawn_file_actions_addopen: New file.
1279         * lib/spawn_faction_addopen.c: New file, from GNU libc with
1280         modifications.
1281         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1282         the new module.
1283
1284         New module 'posix_spawn_file_actions_adddup2'.
1285         * modules/posix_spawn_file_actions_adddup2: New file.
1286         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
1287         modifications.
1288         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1289         the new module.
1290
1291         New module 'posix_spawn_file_actions_addclose'.
1292         * modules/posix_spawn_file_actions_addclose: New file.
1293         * lib/spawn_faction_addclose.c: New file, from GNU libc with
1294         modifications.
1295         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1296         the new module.
1297
1298         New module 'posix_spawn_file_actions_init'.
1299         * modules/posix_spawn_file_actions_init: New file.
1300         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
1301         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
1302         new module.
1303
1304         New module 'posix_spawn-internal'.
1305         * modules/posix_spawn-internal: New file.
1306         * lib/spawn_int.h: New file, from GNU libc with modifications.
1307         * lib/spawni.c: New file, from GNU libc with modifications.
1308         * m4/posix_spawn.m4: New file.
1309
1310         New module 'spawn'.
1311         * modules/spawn: New file.
1312         * lib/spawn.in.h: New file, from GNU libc with modifications.
1313         * m4/spawn_h.m4: New file.
1314         * doc/posix-headers/spawn.texi: Mention the new module.
1315
1316 2008-09-28  Bruno Haible  <bruno@clisp.org>
1317
1318         * modules/sched-tests: New file.
1319         * tests/test-sched.c: New file.
1320
1321         New module 'sched'.
1322         * modules/sched: New file.
1323         * lib/sched.in.h: New file.
1324         * m4/sched_h.m4: New file.
1325         * doc/posix-headers/sched.texi: Mention the new module.
1326
1327 2008-09-27  Eric Blake  <ebb9@byu.net>
1328
1329         Fix previous patch, and tweak references to $0.
1330         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
1331         (func_version, func_gnulib_dir): Don't call this program
1332         gnulib-tool.
1333         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
1334         with using $0 in function.
1335         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
1336         (func_fatal_error): Reuse the name the user invoked us with.
1337
1338 2008-09-27  Bruno Haible  <bruno@clisp.org>
1339
1340         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
1341         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
1342         (gl_ICONV_H): Not here.
1343         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1344         instead of assigning ICONV_H directly.
1345
1346         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
1347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
1348         WCHAR_H directly.
1349
1350 2008-09-27  Bruno Haible  <bruno@clisp.org>
1351
1352         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
1353         * modules/arpa_inet (Depends-on): Add link-warning.
1354         (Makefile.am): Insert the definition of GL_LINK-WARNING.
1355         * modules/unistd (Makefile.am): Likewise.
1356
1357 2008-09-26  Bruno Haible  <bruno@clisp.org>
1358
1359         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
1360         variables.
1361         (func_version): Essentially copied from gnulib-tool.
1362         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
1363         func_readlink): Copied from gnulib-tool.
1364
1365 2008-09-26  Bruno Haible  <bruno@clisp.org>
1366
1367         * gnulib-tool (func_version): Change directory to $gnulib_dir before
1368         invoking git-version-gen.
1369
1370 2008-09-26  Bruno Haible  <bruno@clisp.org>
1371
1372         * posix-modules: Update to directory names changed on 2008-01-19.
1373         Remove commas in output before splitting into words. No more need to
1374         avoid 'ftruncate' since 2007-02-19.
1375
1376 2008-09-26  Bruno Haible  <bruno@clisp.org>
1377
1378         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
1379
1380 2008-09-26  Bruno Haible  <bruno@clisp.org>
1381
1382         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
1383         * modules/fwriteerror (Depends-on): Add errno.
1384
1385 2008-09-26  Bruno Haible  <bruno@clisp.org>
1386
1387         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
1388         * tests/test-vc-list-files-cvs.sh: Likewise.
1389
1390 2008-09-26  Bruno Haible  <bruno@clisp.org>
1391
1392         * doc/posix-headers/sys_resource.texi: Reorder items.
1393
1394 2008-09-26  Jim Meyering  <meyering@redhat.com>
1395
1396         fts: tweak inode comparison function
1397         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
1398         inode numbers, as documented.
1399
1400         fts: sort dirent entries on inode number before traversing
1401         This avoids a quadratic, seek-related performance penalty when
1402         operating on a directory containing many entries (measurable at 10k;
1403         3.5 hours at 2 million entries with a cold cache) on certain types
1404         of file systems, including ext3 and ext4, but not tmpfs.
1405         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
1406         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
1407         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
1408         (fs_handles_readdir_ordered_dirents_efficiently): New function.
1409         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
1410         (fts_build): Set the stat.st_ino member from D_INO.
1411         If it is likely to be useful, sort dirent entries on inode number.
1412
1413         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
1414         and the struct statfs.f_type member.
1415         * modules/fts (Depends-on): Add d-ino.
1416
1417 2008-09-26  Bruno Haible  <bruno@clisp.org>
1418
1419         * modules/sigpipe-die (Depends-on): Add sigpipe.
1420
1421         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
1422         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
1423         and GNULIB_STDIO_H_SIGPIPE are set.
1424         * lib/stdio-write.c: New file.
1425         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
1426         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1427         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1428         REPLACE_STDIO_WRITE_FUNCS.
1429         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
1430         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1431         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1432         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1433         * modules/stdio (Files): Add lib/stdio-write.c.
1434         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
1435         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1436         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1437         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1438         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
1439         REPLACE_FPRINTF_POSIX.
1440         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
1441         REPLACE_PRINTF_POSIX.
1442         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
1443         REPLACE_VFPRINTF_POSIX.
1444         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
1445         REPLACE_VPRINTF_POSIX.
1446         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
1447         SIGPIPE issue.
1448         * doc/posix-functions/fputc.texi: Likewise.
1449         * doc/posix-functions/fputs.texi: Likewise.
1450         * doc/posix-functions/fwrite.texi: Likewise.
1451         * doc/posix-functions/printf.texi: Likewise.
1452         * doc/posix-functions/putc.texi: Likewise.
1453         * doc/posix-functions/putchar.texi: Likewise.
1454         * doc/posix-functions/puts.texi: Likewise.
1455         * doc/posix-functions/vfprintf.texi: Likewise.
1456         * doc/posix-functions/vprintf.texi: Likewise.
1457
1458         * modules/safe-write (Depends-on): Add write.
1459
1460         * modules/sigpipe-tests: New file.
1461         * tests/test-sigpipe.c: New file.
1462         * tests/test-sigpipe.sh: New file.
1463
1464         * modules/write: New file.
1465         * lib/unistd.in.h: Include <sys/types.h>.
1466         (write): New declaration.
1467         * lib/write.c: New file.
1468         * m4/write.m4: New file.
1469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1470         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
1471         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
1472         GNULIB_WRITE, REPLACE_WRITE.
1473         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
1474         and the SIGPIPE issue.
1475
1476         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
1477         (raise): New declaration.
1478         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
1479         (ext_signal): New function.
1480         (rpl_raise): New function.
1481         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1482         GNULIB_SIGNAL_H_SIGPIPE.
1483         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
1484         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
1485
1486         * modules/sigpipe: New file.
1487         * m4/sigpipe.m4: New file.
1488
1489 2008-09-25  Derek Price  <derek@ximbiot.com>
1490             Bruno Haible  <bruno@clisp.org>
1491
1492         * gnulib-tool (func_import): Report all license incompatibilities, not
1493         just the first one.
1494
1495 2008-09-25  Bruno Haible  <bruno@clisp.org>
1496
1497         * gnulib-tool (func_import): When computing the edits, consider not
1498         only the Makefile.ams that exist but also those that will be generated.
1499
1500 2008-09-25  Simon Josefsson  <simon@josefsson.org>
1501
1502         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
1503         fixes gnulib-tool --test warning about duplicate dependency.
1504
1505 2008-09-25  Bruno Haible  <bruno@clisp.org>
1506
1507         * gnulib-tool: Don't ask the user to perform edits in the generated
1508         Makefile.ams.
1509         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
1510         apply to the Makefile.am being generated.
1511         (func_emit_tests_Makefile_am): Execute edits that apply to the
1512         Makefile.am being generated.
1513         (func_import): Setup list of Makefile.am edits before emitting the
1514         Makefile.ams, not at the end.
1515         (func_create_testdir): Update.
1516         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1517
1518 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1519
1520         * gnulib-tool (func_import): Store the --tests-base option in the
1521         comment in gnulib-cache.m4.
1522
1523 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
1524
1525         * NEWS: Document increased portability that sys_select now provides.
1526
1527         * lib/sys_select.in.h: Install select wrapper.
1528         * lib/sys_socket.in.h: Use more descriptive name when there is no
1529         select wrapper.
1530         * lib/winsock-select.c: New.
1531         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
1532         Require gl_HEADER_SYS_SOCKET.
1533         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
1534         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
1535         * tests/test-sys_select.c: Add functional tests.
1536
1537 2008-09-24  Eric Blake  <ebb9@byu.net>
1538
1539         open, fopen: close fd leak in last patch
1540         * lib/open.c (rpl_open): Close fd before returning error.
1541         * lib/fopen.c (rpl_fopen): Close fd before returning error.
1542         * doc/posix-functions/open.texi (open): Document that Irix also
1543         has the bug.
1544         * doc/posix-functions/fopen.texi (fopen): Likewise.
1545         Reported by Paolo Bonzini.
1546
1547 2008-09-24  Bruno Haible  <bruno@clisp.org>
1548
1549         Ensure that a filename ending in a slash cannot be used to access a
1550         non-directory.
1551         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
1552         to check whether it's really a directory.
1553         * lib/fopen.c: Include fcntl.h, unistd.h.
1554         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
1555         and fdopen().
1556         * modules/fopen (Depends-on): Add unistd.
1557         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
1558         * tests/test-fopen.c (main): Likewise.
1559         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
1560         * doc/posix-functions/fopen.texi: Likewise.
1561         Reported by Eric Blake.
1562
1563 2008-09-23  Eric Blake  <ebb9@byu.net>
1564
1565         c-stack: avoid compiler optimizations when provoking overflow
1566         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
1567         recursion harder to optimize, to ensure a stack overflow occurs.
1568         * tests/test-c-stack.c (recurse): Likewise.
1569         Borrowed from libsigsegv.
1570
1571         c-stack: work around Irix sigaltstack bug
1572         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
1573         whether sigaltstack uses wrong end of stack_t (copied in part from
1574         libsigsegv).
1575         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
1576         Irix bug, without requiring an over-allocation.
1577         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
1578         bug.
1579
1580         fopen: document mingw bug on directories
1581         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
1582         not allowing a stream visiting a directory, even though reading
1583         from such a stream is not portable.
1584
1585 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1586
1587         * lib/poll.c: Rewrite.
1588         * modules/poll: Depend on alloca.
1589
1590 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1591
1592         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
1593         instead define prototypes for a full set of wrappers.  Ensure
1594         that Cygwin does not use the compatibility code, which is only
1595         for MinGW.
1596         * lib/winsock.c: New.
1597         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
1598         * modules/sys_socket: Add lib/winsock.c.
1599
1600         * modules/poll-tests: Add errno and perror.
1601         * tests/test-poll.c: Use ioctl, not ioctlsocket.
1602
1603 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1604
1605         * tests/test-poll.c: Downgrade minimum needed Winsock version.
1606
1607 2008-09-23  Bruno Haible  <bruno@clisp.org>
1608
1609         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
1610         * doc/glibc-functions/*: Likewise.
1611
1612 2008-09-23  Simon Josefsson  <simon@josefsson.org>
1613
1614         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
1615         success.
1616
1617 2008-09-22  Eric Blake  <ebb9@byu.net>
1618             Bruno Haible  <bruno@clisp.org>
1619
1620         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
1621         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
1622         supply %A but mishandle pseudo-NaN.
1623         Reported by Simon Josefsson.
1624
1625 2008-09-21  Bruno Haible  <bruno@clisp.org>
1626
1627         * tests/test-lock.c (main): Tweak skip message.
1628         * tests/test-tls.c (main): Likewise.
1629
1630 2008-09-21  Bruno Haible  <bruno@clisp.org>
1631
1632         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
1633         whether 'struct sigaction' has sa_sigaction here...
1634         (gl_PREREQ_SIG_HANDLER_H): ... not here.
1635         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
1636
1637 2008-09-21  Bruno Haible  <bruno@clisp.org>
1638
1639         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
1640         section.
1641         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
1642         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
1643         the new section.
1644         (Support for obsolete systems lacking POSIX:2001): New section.
1645         (String handling <string.h>): Move strdup to the new section.
1646         Suggested by Simon Josefsson and Paolo Bonzini.
1647
1648 2008-09-21  Bruno Haible  <bruno@clisp.org>
1649
1650         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
1651         exponents in %e and %g results on 'long double'. Needed for mingw's
1652         improved *printf functions.
1653         * tests/test-vasprintf-posix.c (test_function): Likewise.
1654         * tests/test-snprintf-posix.h (test_function): Likewise.
1655         * tests/test-sprintf-posix.h (test_function): Likewise.
1656         Reported by Eric Blake.
1657
1658 2008-09-21  Bruno Haible  <bruno@clisp.org>
1659
1660         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
1661         * tests/test-sprintf-posix.h (test_function): Likewise.
1662
1663 2008-09-21  Bruno Haible  <bruno@clisp.org>
1664
1665         * modules/getpass (Depends-on): Add strdup-posix.
1666
1667         New module 'strdup-posix'.
1668         * modules/strdup-posix: New file.
1669         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
1670         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
1671         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1672         REPLACE_STRDUP.
1673         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
1674         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
1675         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1676         strdup-posix.
1677
1678         * modules/strdup (Depends-on): Remove malloc-posix.
1679
1680 2008-09-20  Bruno Haible  <bruno@clisp.org>
1681
1682         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
1683         Wildenhues.
1684
1685 2008-09-20  Bruno Haible  <bruno@clisp.org>
1686
1687         Ensure that wint_t gets defined on IRIX 5.3.
1688         * lib/wchar.in.h (wint_t): Define if not defined by the system.
1689         * lib/wctype.in.h (wint_t): Likewise.
1690         (__wctype_wint_t): Remove type.
1691         (isw*): Use wint_t instead of __wctype_wint_t.
1692         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
1693         * modules/wchar (Files): Add m4/wint_t.m4.
1694         (Makefile.am): Substitute HAVE_WINT_T.
1695         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
1696         * tests/test-wctype.c: Check that wint_t is defined.
1697         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
1698         * doc/posix-headers/wctype.texi: Likewise.
1699         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1700
1701 2008-09-18  Bruno Haible  <bruno@clisp.org>
1702
1703         * gnulib-tool (func_exit): Update comment.
1704
1705 2008-09-18  Simon Josefsson  <simon@josefsson.org>
1706
1707         * modules/getaddrinfo (Depends-on): Remove strdup, this module
1708         assumes strdup exists and does not depend on strdup to return
1709         ENOMEM on out of memory conditions.
1710
1711 2008-09-18  Bruno Haible  <bruno@clisp.org>
1712
1713         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
1714         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
1715         digits for the exponent.
1716
1717 2008-09-18  Jim Meyering  <meyering@redhat.com>
1718             Bruno Haible  <bruno@clisp.org>
1719
1720         * lib/vasnprintf.c (decimal_point_char): Define also if
1721         NEED_PRINTF_INFINITE_LONG_DOUBLE.
1722
1723 2008-09-16  Bruno Haible  <bruno@clisp.org>
1724         and Eric Blake  <ebb9@byu.net>
1725
1726         vasnprintf: support Irix 5.3
1727         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
1728         that mishandle long double infinity.
1729         Reported by Tom G. Christensen.
1730
1731 2008-09-16  Bruno Haible  <bruno@clisp.org>
1732
1733         * doc/glibc-functions/scandir.texi: Mention the function is missing on
1734         Solaris 9.
1735         * doc/glibc-functions/alphasort.texi: Likewise.
1736         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
1737
1738 2008-09-16  Jim Meyering  <meyering@redhat.com>
1739
1740         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
1741         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
1742         a umask modification leak out of a subshell.  Otherwise, the
1743         opensolaris /bin/sh would be accepted and thus cause unwarranted
1744         failures in the coreutils test suite.
1745
1746 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
1747
1748         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
1749         to succeed.
1750
1751 2008-09-16  Jim Meyering  <meyering@redhat.com>
1752
1753         avoid spurious test failure when library is built without ACL support
1754         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
1755         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
1756         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
1757         * tests/test-copy-acl.sh: Likewise.
1758
1759 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1760
1761         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
1762         based on character occurrence counts.
1763
1764 2008-09-15  Eric Blake  <ebb9@byu.net>
1765
1766         tests: avoid some compiler warnings
1767         * tests/test-memchr.c (main): Pass NULL indirectly.
1768         * tests/test-closein.c (main): Avoid unused variable.
1769
1770 2008-09-15  Bruno Haible  <bruno@clisp.org>
1771
1772         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
1773         are missing on OpenBSD 4.0 individually.
1774         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1775
1776 2008-09-15  Bruno Haible  <bruno@clisp.org>
1777
1778         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
1779         * doc/posix-functions/strerror.texi: Mention also Cygwin.
1780         * doc/posix-functions/perror.texi: Likewise.
1781         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
1782         is missing.
1783         Reported by Eric Blake.
1784
1785         * lib/errno.in.h: Use replacement values >= 2000.
1786         Reported by Eric Blake.
1787
1788 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1789
1790         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
1791         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
1792         limit.
1793         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
1794         compareseq was aborted.
1795
1796 2008-09-14  Bruno Haible  <bruno@clisp.org>
1797
1798         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
1799         yvec_edit_count.
1800         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
1801         (fstrcmp_bounded): Simplify result computation accordingly.
1802
1803 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1804
1805         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
1806         (fstrcmp): Define in terms of fstrcmp_bounded.
1807         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
1808         lower_bound argument.
1809         Return quickly if the result is certainly < lower_bound.
1810         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
1811
1812 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1813
1814         * lib/diffseq.h (EARLY_ABORT): New macro.
1815         (compareseq): Change return type to bool. Return true when EARLY_ABORT
1816         evaluates to true.
1817
1818 2008-09-14  Bruno Haible  <bruno@clisp.org>
1819
1820         * modules/perror-tests: New file.
1821         * tests/test-perror.sh: New file.
1822         * tests/test-perror.c: New file.
1823
1824         New module 'perror'.
1825         * lib/stdio.in.h (perror): New declaration.
1826         * lib/perror.c: New file.
1827         * m4/perror.m4: New file.
1828         * modules/perror: New file.
1829         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
1830         * doc/posix-functions/perror.texi: Mention the perror module.
1831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
1832         REPLACE_PERROR.
1833         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
1834         REPLACE_PERROR.
1835
1836 2008-09-14  Bruno Haible  <bruno@clisp.org>
1837
1838         * modules/stdio (Makefile.am): Reorder to match the order in
1839         lib/stdio.in.h.
1840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1841
1842 2008-09-13  Bruno Haible  <bruno@clisp.org>
1843
1844         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
1845
1846 2008-09-13  Bruno Haible  <bruno@clisp.org>
1847
1848         Extend strerror to cover the added errno values.
1849         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
1850         (rpl_strerror): Provide error messages for the added errno values and
1851         for the WSA* values.
1852         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
1853         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
1854         strerror.
1855         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
1856         * modules/strerror (Depends-on): Add errno.
1857         * doc/posix-functions/strerror.texi: Document the change.
1858         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
1859         and EOVERFLOW.
1860
1861 2008-09-13  Bruno Haible  <bruno@clisp.org>
1862
1863         * modules/EOVERFLOW: Remove file.
1864         * m4/eoverflow.m4: Remove file.
1865         * modules/EOVERFLOW-tests: Remove file.
1866         * tests/test-EOVERFLOW.c: Remove file.
1867         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
1868         * modules/ftell (Depends-on): Likewise.
1869         * modules/getdelim (Depends-on): Likewise.
1870         * modules/getugroups (Depends-on): Likewise.
1871         * modules/poll (Depends-on): Likewise.
1872         * modules/snprintf (Depends-on): Likewise.
1873         * modules/sprintf-posix (Depends-on): Likewise.
1874         * modules/vasnprintf (Depends-on): Likewise.
1875         * modules/vasprintf (Depends-on): Likewise.
1876         * modules/vfprintf-posix (Depends-on): Likewise.
1877         * modules/vsnprintf (Depends-on): Likewise.
1878         * modules/vsprintf-posix (Depends-on): Likewise.
1879         * modules/xvasprintf (Depends-on): Likewise.
1880         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1881         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
1882         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
1883         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
1884         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1885         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
1886         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
1887         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
1888         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1889         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
1890         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
1891         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
1892         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1893         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
1894         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
1895         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
1896         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1897         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
1898         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
1899         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
1900         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1901         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
1902         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
1903         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
1904         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
1905         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1906         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
1907         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
1908         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
1909         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
1910         * MODULES.html.sh: Remove EOVERFLOW.
1911         * NEWS: Mention the change.
1912
1913 2008-09-13  Bruno Haible  <bruno@clisp.org>
1914
1915         * modules/errno-tests: New file.
1916         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
1917
1918         * lib/errno.in.h: New file.
1919         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
1920         * modules/errno: New file.
1921         * doc/posix-headers/errno.texi: Update documentation.
1922         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
1923
1924 2008-09-13  Bruno Haible  <bruno@clisp.org>
1925
1926         * tests/test-poll.c: Use #if for native Windows, rather than testing
1927         __MSVCRT__.
1928
1929 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1930             Bruno Haible  <bruno@clisp.org>
1931
1932         * lib/glob.c: Don't include <pwd.h> on native Windows.
1933         (WINDOWS32): New macro.
1934         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
1935
1936 2008-09-13  Bruno Haible  <bruno@clisp.org>
1937
1938         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
1939         (ETIMEDOUT): Remove macro.
1940         (glthread_cond_timedwait_multithreaded): New declaration.
1941         (glthread_cond_timedwait): Use it.
1942         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
1943         (glthread_cond_timedwait_multithreaded): New function.
1944
1945 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1946
1947         * modules/poll-tests: Do not check for io.h.
1948         * tests/test-poll.c: Check for __MSVCRT__ instead.
1949
1950 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1951
1952         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
1953         * modules/poll-tests: Add inet_pton, stdbool, sockets.
1954         * tests/test-poll.c: Use them.  Use _pipe on Windows.
1955
1956 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1957
1958         * modules/poll-tests: New.
1959         * tests/test-poll.c: New.
1960
1961 2008-09-12  Eric Blake  <ebb9@byu.net>
1962
1963         frexp: test for NetBSD failure on -0.0
1964         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
1965         not all, bugs from NetBSD 3.0 have been fixed.
1966         * doc/posix-functions/frexp.texi (frexp): Document bug.
1967         Reported by Thomas Klausner.
1968
1969         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
1970         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
1971         literal -0.0.
1972         Reported by Jonathan C. Patschke <jp@centtech.com>.
1973
1974 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1975
1976         * lib/glthread/cond.h: Use dummy implementation also if
1977         USE_WIN32_THREADS.
1978
1979 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1980
1981         * modules/fnmatch-posix (License): Change to LGPLv2+.
1982         * modules/fnmatch-gnu (License): Likewise.
1983
1984 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1985
1986         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
1987
1988 2008-09-11  Jim Meyering  <meyering@redhat.com>
1989
1990         * users.txt: Add gtk-vnc.
1991
1992 2008-09-08  Simon Josefsson  <simon@josefsson.org>
1993
1994         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
1995         rotate amounts.
1996
1997         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
1998         required for 16-bit and 8-bit rotates.
1999         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
2000         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
2001         UINT8_MAX instead of hard-coded constants.
2002         Suggested by Paul Eggert.
2003
2004 2008-09-07  Bruno Haible  <bruno@clisp.org>
2005
2006         * tests/test-striconveh.c (main): Check behaviour when converting from
2007         UTF-7.
2008
2009         Make striconveh work better with stateful encodings.
2010         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
2011         that iconv does not increment the inptr when returning -1/EINVAL.
2012
2013 2008-09-07  Bruno Haible  <bruno@clisp.org>
2014
2015         * build-aux/config.rpath: Update according to libtool-2.2.6.
2016         * build-aux/config.libpath: Likewise.
2017
2018 2008-09-06  Bruno Haible  <bruno@clisp.org>
2019
2020         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
2021         * lib/freadptr.c (freadptr): Likewise.
2022         * lib/freadseek.c (freadptrinc): Likewise.
2023         Reported by Simon Josefsson.
2024
2025 2008-09-06  Bruno Haible  <bruno@clisp.org>
2026
2027         * modules/freadptr (License): Change to LGPLv2+.
2028         * modules/freadseek (License): Likewise.
2029         Suggested by Eric Blake.
2030
2031         * modules/memchr2 (License): Change to LGPLv2+.
2032         Approved by Eric Blake.
2033
2034 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2035             Bruno Haible  <bruno@clisp.org>
2036
2037         Make gnulib-tool work with native 'sed' on AIX.
2038         * gnulib-tool (sed_noop): New variable.
2039         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
2040         func_add_or_update, func_create_testdir): Use it to initialize sed
2041         script variables.
2042         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2043
2044 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
2045             Bruno Haible  <bruno@clisp.org>
2046
2047         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
2048         also works after #include directives.
2049
2050 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
2051
2052         getdate.y: reject an out-of-range timezone value
2053         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
2054         the range [-24...+24].  When specified with only one or two digits,
2055         * tests/test-getdate.c: Tests for the fix.
2056         * doc/getdate.texi: Document this change.
2057
2058 2008-09-03  Bruno Haible  <bruno@clisp.org>
2059
2060         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
2061
2062 2008-09-02  Simon Josefsson  <simon@josefsson.org>
2063
2064         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
2065         <bruce.korb@gmail.com> with ideas from Ben Pfaff
2066         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
2067         Blake <ebb9@byu.net>.
2068
2069         * tests/test-bitrotate.c: Add more test vectors.
2070
2071 2008-09-02  Eric Blake  <ebb9@byu.net>
2072
2073         vasnprintf-posix: handle large precision via %.*d
2074         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
2075         when handling it ourselves.
2076         * tests/test-vasnprintf-posix.c (test_function): Add test.
2077         * tests/test-snprintf-posix.h (test_function): Likewise.
2078         * tests/test-sprintf-posix.h (test_function): Likewise.
2079         * tests/test-vasprintf-posix.c (test_function): Likewise.
2080         Reported by Alain Guibert.
2081
2082 2008-09-01  Eric Blake  <ebb9@byu.net>
2083
2084         c-stack: make configure-time check more robust
2085         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
2086         successful sigaction call.
2087         Reported by Tom G. Christensen.
2088
2089 2008-09-01  Bruno Haible  <bruno@clisp.org>
2090
2091         New module 'findprog-lgpl'.
2092         * modules/findprog-lgpl: New file.
2093         * lib/findprog-lgpl.c: New file.
2094         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
2095         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
2096         to decide whether to use strdup or xstrdup, concatenated_filename or
2097         xconcatenated_filename.
2098
2099 2008-09-01  Bruno Haible  <bruno@clisp.org>
2100
2101         Split module 'concat-filename' into 'concat-filename' (LGPL) and
2102         'xconcat-filename' (GPL).
2103         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
2104         (License): Change to LGPLv2+.
2105         * modules/xconcat-filename: New file.
2106         * lib/concat-filename.h (concatenated_filename): Change specification.
2107         (xconcatenated_filename): New declaration.
2108         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
2109         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
2110         memory situations.
2111         * lib/xconcat-filename.c: New file.
2112         * NEWS: Mention the change.
2113         * lib/findprog.c: Include concat-filename.h, not filename.h.
2114         (find_in_path): Use xconcatenated_filename instead of
2115         concatenated_filename.
2116         * lib/javacomp.c: Include concat-filename.h, not filename.h.
2117         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
2118         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
2119         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
2120         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
2121         instead of concatenated_filename.
2122         * lib/javaexec.c: Include concat-filename.h, not filename.h.
2123         (execute_java_class): Use xconcatenated_filename instead of
2124         concatenated_filename.
2125         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
2126         * modules/javacomp (Depends-on): Likewise.
2127         * modules/javaexec (Depends-on): Likewise.
2128
2129 2008-09-01  Bruno Haible  <bruno@clisp.org>
2130
2131         Split module 'filename' into 'filename' and 'concat-filename'.
2132         * modules/filename: Keep only lib/filename.h.
2133         (License): Change to LGPLv2+.
2134         * modules/concat-filename: New file, extracted from modules/filename.
2135         * lib/filename.h (concatenated_filename): Remove declaration.
2136         * lib/concat-filename.h: New file, extracted from lib/filename.h.
2137         * lib/concat-filename.c: Include concat-filename.h.
2138         * NEWS: Mention the change.
2139
2140 2008-09-01  Simon Josefsson  <simon@josefsson.org>
2141
2142         * lib/bitrotate.h (rotl8, rotr8): Add.
2143
2144         * modules/bitrotate (configure.ac): Need
2145         AC_REQUIRE([AC_C_INLINE]).
2146         (Description): Mention stdint.h.  Reported by Bruno Haible
2147         <bruno@clisp.org>.
2148
2149         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
2150         Paolo Bonzini <bonzini@gnu.org>.
2151
2152 2008-08-31  Bruno Haible  <bruno@clisp.org>
2153
2154         Assume Solaris specific bi-arch conventions on Solaris systems.
2155         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
2156         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
2157         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
2158         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
2159         like acl_libdirstem.
2160         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
2161         acl_libdirstem.
2162         * NEWS: Mention the change.
2163         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
2164
2165 2008-08-31  Jim Meyering  <meyering@redhat.com>
2166
2167         * lib/strftime.h: Add comments describing the two added arguments.
2168
2169         remove duplicate #include directives
2170         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
2171         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
2172
2173 2008-08-31  Bruno Haible  <bruno@clisp.org>
2174
2175         New module 'sigpipe-die'.
2176         * modules/sigpipe-die: New file.
2177         * lib/sigpipe-die.h: New file.
2178         * lib/sigpipe-die.c: New file.
2179         * MODULES.html.sh (Signal handling): Add sigpipe-die.
2180
2181 2008-08-31  Bruno Haible  <bruno@clisp.org>
2182
2183         Don't override previously installed signal handlers.
2184         * lib/fatal-signal.c (saved_sigactions): New variable.
2185         (uninstall_handlers): Reset the signal to the saved handler, not
2186         to SIG_DFL (except when ignored).
2187         (install_handlers): Save the previous handlers.
2188
2189 2008-08-30  Bruno Haible  <bruno@clisp.org>
2190
2191         * gnulib-tool (func_reset_sigpipe): New function.
2192         (func_get_automake_snippet, func_modules_transitive_closure,
2193         func_import): Invoke it before a join command that reads from stdin,
2194         to avoid "echo: write error: Broken pipe" error messages on stderr.
2195         Reported by Sam Steingold <sds@gnu.org>.
2196
2197 2008-08-30  Bruno Haible  <bruno@clisp.org>
2198
2199         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
2200         Code copied from m4/open.m4.
2201         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
2202         access and the filename ends in a slash. Code copied from lib/open.c.
2203         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
2204         * tests/test-fopen.c (main): Check against bug with trailing slash.
2205
2206 2008-08-29  Bruno Haible  <bruno@clisp.org>
2207
2208         Avoid some "gcc -pedantic" warnings.
2209         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
2210         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
2211         * lib/dirent.in.h: Likewise.
2212         * lib/fcntl.in.h: Likewise.
2213         * lib/float.in.h: Likewise.
2214         * lib/iconv.in.h: Likewise.
2215         * lib/inttypes.in.h: Likewise.
2216         * lib/locale.in.h: Likewise.
2217         * lib/math.in.h: Likewise.
2218         * lib/netinet_in.in.h: Likewise.
2219         * lib/search.in.h: Likewise.
2220         * lib/signal.in.h: Likewise.
2221         * lib/stdarg.in.h: Likewise.
2222         * lib/stdint.in.h: Likewise.
2223         * lib/stdio.in.h: Likewise.
2224         * lib/stdlib.in.h: Likewise.
2225         * lib/string.in.h: Likewise.
2226         * lib/strings.in.h: Likewise.
2227         * lib/sys_select.in.h: Likewise.
2228         * lib/sys_socket.in.h: Likewise.
2229         * lib/sys_stat.in.h: Likewise.
2230         * lib/sys_time.in.h: Likewise.
2231         * lib/sysexits.in.h: Likewise.
2232         * lib/time.in.h: Likewise.
2233         * lib/unistd.in.h: Likewise.
2234         * lib/wchar.in.h: Likewise.
2235         * lib/wctype.in.h: Likewise.
2236         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
2237         * modules/fchdir (Makefile.am): Likewise.
2238         * modules/fcntl (Makefile.am): Likewise.
2239         * modules/float (Makefile.am): Likewise.
2240         * modules/iconv_open (Makefile.am): Likewise.
2241         * modules/inttypes (Makefile.am): Likewise.
2242         * modules/locale (Makefile.am): Likewise.
2243         * modules/math (Makefile.am): Likewise.
2244         * modules/netinet_in (Makefile.am): Likewise.
2245         * modules/search (Makefile.am): Likewise.
2246         * modules/signal (Makefile.am): Likewise.
2247         * modules/stdarg (Makefile.am): Likewise.
2248         * modules/stdint (Makefile.am): Likewise.
2249         * modules/stdio (Makefile.am): Likewise.
2250         * modules/stdlib (Makefile.am): Likewise.
2251         * modules/string (Makefile.am): Likewise.
2252         * modules/strings (Makefile.am): Likewise.
2253         * modules/sys_select (Makefile.am): Likewise.
2254         * modules/sys_socket (Makefile.am): Likewise.
2255         * modules/sys_stat (Makefile.am): Likewise.
2256         * modules/sys_time (Makefile.am): Likewise.
2257         * modules/sysexits (Makefile.am): Likewise.
2258         * modules/time (Makefile.am): Likewise.
2259         * modules/unistd (Makefile.am): Likewise.
2260         * modules/wchar (Makefile.am): Likewise.
2261         * modules/wctype (Makefile.am): Likewise.
2262         Reported by Reuben Thomas <rrt@sc3d.org>.
2263
2264 2008-08-29  Bruno Haible  <bruno@clisp.org>
2265
2266         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
2267         any more.
2268
2269 2008-08-29  Simon Josefsson  <simon@josefsson.org>
2270
2271         * MODULES.html.sh (Misc): Add bitrotate.
2272
2273         * modules/bitrotate: New file.
2274
2275         * lib/bitrotate.h: New file.
2276
2277         * modules/bitrotate-tests: New file.
2278
2279         * tests/test-bitrotate.c: New file.
2280
2281         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
2282         on the bitrotate module.
2283
2284         * lib/arctwo.c: Use new bitrotate module.
2285
2286 2008-08-29  Jim Meyering  <meyering@redhat.com>
2287
2288         bootstrap: merge changes from coreutils
2289         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
2290         of copied files.  Remove a kludge, now that this is fixed.
2291         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
2292         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
2293         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
2294
2295 2008-08-29  Bruno Haible  <bruno@clisp.org>
2296
2297         * MODULES.html.sh: Remove --cvs-urls option.
2298
2299 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
2300
2301         maint.mk: adjust to file name change
2302         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
2303
2304 2008-08-28  Jim Meyering  <meyering@redhat.com>
2305
2306         * modules/getndelim2 (License): Relicense to LGPLv2+.
2307         Approved by Richard Stallman for the version of 1995, and by
2308         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
2309
2310 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
2311
2312         * lib/getdelim.c (flockfile, funlockfile): Make all of them
2313         dummy if one is not available.  Do not touch them if
2314         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
2315         (getc_maybe_unlocked): New.
2316         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
2317
2318 2008-08-26  Eric Blake  <ebb9@byu.net>
2319
2320         doc/INSTALL: resync from autoconf
2321         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
2322         (INSTALL_PRELUDE): Delete; this is done more efficiently by
2323         moving...
2324         * install.texi [!autoconf]: ...here.  Resync from autoconf.
2325         * INSTALL: Regenerate.
2326         * INSTALL.ISO: New file.
2327         * INSTALL.UTF-8: Likewise.
2328
2329 2008-08-26  Jim Meyering  <meyering@redhat.com>
2330
2331         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
2332         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
2333         these definitions conditional, so that they may be overridden, too.
2334
2335 2008-08-26  Bruno Haible  <bruno@clisp.org>
2336
2337         Generate INSTALL file variants with prettier quotes.
2338         * doc/Makefile (INSTALL_PRELUDE): New macro.
2339         (INSTALL): Use it.
2340         (INSTALL.ISO, INSTALL.UTF-8): New rules.
2341
2342 2008-08-26  Bruno Haible  <bruno@clisp.org>
2343
2344         Run makeinfo in an English locale.
2345         * doc/Makefile (MAKEINFO): New variable.
2346
2347 2008-08-26  Bruno Haible  <bruno@clisp.org>
2348
2349         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
2350         Suggested by Eric Blake.
2351
2352 2008-08-25  Bruno Haible  <bruno@clisp.org>
2353
2354         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
2355
2356 2008-08-25  Eric Blake  <ebb9@byu.net>
2357
2358         c-stack: test that stack overflow can be caught
2359         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
2360         that platform allows handling stack overflow; at least OS/2 EMX
2361         has sigaltstack, but crashes before transferring control to
2362         handler on stack overflow.
2363         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
2364         check for HAVE_STACK_OVERFLOW_HANDLING.
2365         Reported by Elbert Pol.
2366
2367 2008-08-25  Bruno Haible  <bruno@clisp.org>
2368
2369         * doc/posix-functions/strftime.texi: Fix description of strftime
2370         module.
2371
2372 2008-08-24  Bruno Haible  <bruno@clisp.org>
2373
2374         * tests/uniwidth/test-uc_width2.c: New file.
2375         * tests/uniwidth/test-uc_width2.sh: New file.
2376         * modules/uniwidth/width-tests (Files): Add the new files.
2377         (TESTS): Add uniwidth/test-uc_width2.sh.
2378         (TESTS_ENVIRONMENT): New variable.
2379         (check_PROGRAMS): Add test-uc_width2.
2380         (test_uc_width2_SOURCES): New variable.
2381
2382         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
2383         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
2384         not 0x00AB.
2385         Reported by Alexander V. Lukyanov <lav@netis.ru>.
2386
2387 2008-08-22  Eric Blake  <ebb9@byu.net>
2388
2389         test-lock, test-tls: mention why a test is skipped
2390         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
2391         skipped.
2392         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
2393
2394         count-one-bits: relax license
2395         * modules/count-one-bits (License): Relicense to LGPLv2+.
2396         Suggested by Ludovic Courtès, approved by Ben Pfaff.
2397
2398 2008-08-22  Andreas Schwab  <schwab@suse.de>
2399
2400         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2401         Remove spurious space in assignment.
2402
2403 2008-08-21  Simon Josefsson  <simon@josefsson.org>
2404
2405         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
2406         Paul Eggert <eggert@CS.UCLA.EDU>.
2407
2408 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
2409
2410         * modules/gettext: Add m4/threadlib.m4.
2411
2412 2008-08-19  Eric Blake  <ebb9@byu.net>
2413
2414         test-c-stack: fix compilation failure on FreeBSD 5.0
2415         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
2416         headers before <sys/resource.h>.
2417         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
2418         the bug.
2419         Reported by Nelson H. F. Beebe.
2420
2421         strverscmp: migrate from "strverscmp.h" to <string.h>
2422         * modules/string (Makefile.am): Add new hooks.
2423         * modules/strverscmp (Files): Remove strverscmp.h.
2424         (Depends-on): Add string.
2425         (configure.ac): Add indicator.
2426         (Include): Mention new header.
2427         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
2428         defaults.
2429         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
2430         results.
2431         * lib/strverscmp.h: Delete.
2432         * lib/string.in.h (strverscmp): Provide declaration, when needed.
2433         * tests/test-strverscmp.c (includes): Adjust client.
2434         * lib/check-version.c (includes): Likewise.
2435         * NEWS: Document the change.
2436
2437         strverscmp: add unit test
2438         * modules/strverscmp-tests: New file.
2439         * tests/test-strverscmp.c: Likewise.
2440
2441 2008-08-19  Simon Josefsson  <simon@josefsson.org>
2442
2443         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
2444         regarding Windows crypto stuff, from Mono.
2445
2446 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
2447
2448         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
2449         if present, for intel RND.  Return error on failures.
2450
2451 2008-08-18  Ben Pfaff  <blp@gnu.org>
2452
2453         gitlog-to-changelog: give better diagnostic for failed pipe-open
2454         * build-aux/gitlog-to-changelog: Improve error message: suggest
2455         that the version of Git may be too old.
2456
2457 2008-08-18  Simon Josefsson  <simon@josefsson.org>
2458
2459         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
2460         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
2461
2462 2008-08-18  Bruno Haible  <bruno@clisp.org>
2463
2464         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
2465         pthread_in_use().
2466
2467 2008-08-18  Bruno Haible  <bruno@clisp.org>
2468
2469         * lib/glthread/threadlib.c: Include <pthread.h>.
2470
2471 2008-08-18  Bruno Haible  <bruno@clisp.org>
2472
2473         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
2474         glthread_recursive_lock_* macros.
2475         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
2476         Fix syntax error.
2477
2478 2008-08-18  Bruno Haible  <bruno@clisp.org>
2479
2480         * lib/glthread/thread.c: Avoid forcing a context switch right after
2481         thread creation.
2482
2483 2008-08-17  Bruno Haible  <bruno@clisp.org>
2484
2485         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
2486         * lib/glthread/thread.h: Provide Win32 specific implementation.
2487         * modules/thread (Files): Add lib/glthread/thread.c.
2488         (Depends-on): Add lock.
2489         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
2490
2491 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2492
2493         New module 'yield'.
2494         * modules/yield: New file.
2495         * lib/glthread/yield.h: New file.
2496         * m4/yield.m4: New file.
2497         * MODULES.html.sh (Multithreading): Add yield.
2498
2499 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2500
2501         New module 'thread'.
2502         * modules/thread: New file.
2503         * lib/glthread/thread.h: New file.
2504         * m4/thread.m4: New file.
2505         * MODULES.html.sh (Multithreading): Add thread.
2506
2507 2008-08-17  Bruno Haible  <bruno@clisp.org>
2508
2509         * lib/glthread/lock.h: Include <stdlib.h> always.
2510         * lib/glthread/tls.h: Likewise.
2511         * lib/glthread/cond.h: Likewise.
2512
2513 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2514
2515         New module 'cond'.
2516         * modules/cond: New file.
2517         * lib/glthread/cond.h: New file.
2518         * lib/glthread/cond.c: New file.
2519         * m4/cond.m4: New file.
2520         * MODULES.html.sh (Multithreading): Add cond.
2521
2522 2008-08-16  Eric Blake  <ebb9@byu.net>
2523
2524         c-stack: fix regression on Irix 5.3 from 2008-06-21
2525         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
2526         sa_sigaction...
2527         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
2528         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
2529         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
2530         * modules/signal (Makefile.am): Use the value.
2531         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
2532         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
2533         * doc/posix-headers/signal.texi (signal.h): Document this
2534         portability issue.
2535         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
2536         Reported by Tom G. Christensen.
2537
2538 2008-08-17  Bruno Haible  <bruno@clisp.org>
2539
2540         New module 'threadlib'.
2541         * modules/threadlib: New file.
2542         * lib/glthread/threadlib.c: New file, extracted from
2543         lib/glthread/lock.c.
2544         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
2545         functions.
2546         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
2547         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
2548         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
2549         macros.
2550         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
2551         (gl_DISABLE_THREADS): Remove macro.
2552         * modules/lock (Files): Remove build-aux/config.rpath.
2553         (Depends-on): Remove havelib. Add threadlib.
2554         (configure.ac-early): Remove section.
2555         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
2556         * modules/tls (Depends-on): Remove lock. Add threadlib.
2557         (Link): New section, copied from threadlib.
2558         * MODULES.html.sh (Multithreading): Add threadlib.
2559
2560 2008-08-14  Bruno Haible  <bruno@clisp.org>
2561
2562         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
2563         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
2564         glthread_rwlock_unlock, glthread_rwlock_destroy,
2565         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
2566         glthread_recursive_lock_destroy): Define as macros always.
2567         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
2568         glthread_lock_lock.
2569         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
2570         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
2571         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
2572         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
2573         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
2574         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
2575         (glthread_recursive_lock_lock_func): Renamed from
2576         glthread_recursive_lock_lock.
2577         (glthread_recursive_lock_unlock_func): Renamed from
2578         glthread_recursive_lock_unlock.
2579         (glthread_recursive_lock_destroy_func): Renamed from
2580         glthread_recursive_lock_destroy.
2581
2582 2008-08-14  Bruno Haible  <bruno@clisp.org>
2583
2584         * lib/glthread/lock.h: Renamed from lib/lock.h.
2585         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
2586         * lib/glthread/tls.h: Renamed from lib/tls.h.
2587         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
2588         * lib/fstrcmp.c: Update includes.
2589         * lib/strsignal.c: Update includes.
2590         * modules/lock (Files, Makefile.am): Update.
2591         (Include): Change to "glthread/lock.h".
2592         * modules/tls (Files, Makefile.am): Update.
2593         (Include): Change to "glthread/tls.h".
2594         * tests/test-lock.c: Update includes.
2595         * tests/test-tls.c: Update includes.
2596         * NEWS: Mention the renamed header files.
2597
2598 2008-08-11  Jim Meyering  <meyering@redhat.com>
2599
2600         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
2601
2602 2008-08-11  Eric Blake  <ebb9@byu.net>
2603
2604         test-c-stack: avoid C99-ism
2605         * tests/test-c-stack.c (main): Fix whitespace, move declaration
2606         before statement.
2607         Reported by Alain Guibert.
2608
2609 2008-08-10  Jim Meyering  <meyering@redhat.com>
2610
2611         ensure that return value of uinttostr et al are not ignored
2612         * lib/inttostr.h (__GNUC_PREREQ): Define.
2613         (__attribute_warn_unused_result__): Define.
2614         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
2615
2616 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
2617
2618         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
2619         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
2620
2621 2008-08-07  Jim Meyering  <meyering@redhat.com>
2622
2623         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
2624
2625         * modules/mkstemp (License): Relicense under LGPLv2+.
2626         * modules/tempname (License): Likewise.
2627
2628 2008-08-06  Bruno Haible  <bruno@clisp.org>
2629
2630         * lib/poll.c (poll): Further micro-optimization.
2631
2632 2008-08-06  Jim Meyering  <meyering@redhat.com>
2633
2634         inet_pton.c: use locale-independent tolower
2635         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
2636         (inet_pton6): Use c_tolower rather than tolower.
2637         * modules/inet_pton (Depends-on): Add c-ctype.
2638
2639 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
2640
2641         * lib/poll.c (poll): Avoid division when timeout is 0, cache
2642         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
2643
2644 2008-08-06  Jim Meyering  <meyering@redhat.com>
2645
2646         * modules/inet_pton (License): Relicense under LGPLv2+.
2647
2648 2008-08-03  Bruno Haible  <bruno@clisp.org>
2649
2650         Additional non-aborting API for lock and tls.
2651         * lib/lock.h: Include <errno.h>.
2652         (glthread_lock_init): New macro/function.
2653         (gl_lock_init): Define as wrapper around glthread_lock_init.
2654         (glthread_lock_lock): New macro/function.
2655         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
2656         (glthread_lock_unlock): New macro/function.
2657         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
2658         (glthread_lock_destroy): New macro/function.
2659         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
2660         (glthread_rwlock_init): New macro/function.
2661         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
2662         (glthread_rwlock_rdlock): New macro/function.
2663         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
2664         (glthread_rwlock_wrlock): New macro/function.
2665         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
2666         (glthread_rwlock_unlock): New macro/function.
2667         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
2668         (glthread_rwlock_destroy): New macro/function.
2669         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
2670         (glthread_recursive_lock_init): New macro/function.
2671         (gl_recursive_lock_init): Define as wrapper around
2672         glthread_recursive_lock_init.
2673         (glthread_recursive_lock_lock): New macro/function.
2674         (gl_recursive_lock_lock): Define as wrapper around
2675         glthread_recursive_lock_lock.
2676         (glthread_recursive_lock_unlock): New macro/function.
2677         (gl_recursive_lock_unlock): Define as wrapper around
2678         glthread_recursive_lock_unlock.
2679         (glthread_recursive_lock_destroy): New macro/function.
2680         (gl_recursive_lock_destroy): Define as wrapper around
2681         glthread_recursive_lock_destroy.
2682         (glthread_once): New macro/function.
2683         (gl_once): Define as wrapper around glthread_once.
2684         Update function declarations.
2685         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
2686         glthread_rwlock_init. Return error code.
2687         (glthread_rwlock_rdlock_multithreaded): Renamed from
2688         glthread_rwlock_rdlock. Return error code.
2689         (glthread_rwlock_wrlock_multithreaded): Renamed from
2690         glthread_rwlock_wrlock. Return error code.
2691         (glthread_rwlock_unlock_multithreaded): Renamed from
2692         glthread_rwlock_unlock. Return error code.
2693         (glthread_rwlock_destroy_multithreaded): Renamed from
2694         glthread_rwlock_destroy. Return error code.
2695         (glthread_recursive_lock_init_multithreaded): Renamed from
2696         glthread_recursive_lock_init. Return error code.
2697         (glthread_recursive_lock_lock_multithreaded): Renamed from
2698         glthread_recursive_lock_lock. Return error code.
2699         (glthread_recursive_lock_unlock_multithreaded): Renamed from
2700         glthread_recursive_lock_unlock. Return error code.
2701         (glthread_recursive_lock_destroy_multithreaded): Renamed from
2702         glthread_recursive_lock_destroy. Return error code.
2703         (glthread_once_call): Make static.
2704         (glthread_once_multithreaded): Renamed from glthread_once.
2705         * lib/tls.h: Include <errno.h>.
2706         (glthread_tls_key_init): New macro/function.
2707         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
2708         (glthread_tls_set): New macro/function.
2709         (gl_tls_set): Define as wrapper around glthread_tls_set.
2710         (glthread_tls_key_destroy): New macro/function.
2711         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
2712         Update function declarations.
2713         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
2714         glthread_tls_get.
2715         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
2716
2717 2008-08-04  Eric Blake  <ebb9@byu.net>
2718
2719         gnumakefile: use space, not TAB, outside of targets
2720         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
2721
2722 2008-08-02  Jim Meyering  <meyering@redhat.com>
2723
2724         getdate.y: avoid locale-dependent date parsing failure
2725         In Turkish locales, getdate would fail to recognize keywords
2726         containing a lowercase "i".  The solution is not to rely on
2727         locale-sensitive case-conversion.
2728         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
2729         (lookup_word): Use c_toupper in place of toupper.
2730         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
2731         Reported by Vefa Bicakci <bicave@superonline.com> in
2732         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
2733         * modules/getdate (Depends-on): Add c-ctype.
2734
2735 2008-08-02  Bruno Haible  <bruno@clisp.org>
2736
2737         * gnulib-tool (func_import): When updating or creating a .gitignore
2738         file, prepend each added line with a slash, and ignore leading slashes
2739         from the existing lines.
2740         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
2741
2742 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2743
2744         Portability fix for GNU make 3.79.1.
2745         * top/GNUmakefile: Avoid 'else COND', which older GNU make
2746         versions do not understand.
2747
2748 2008-08-01  Bruno Haible  <bruno@clisp.org>
2749
2750         Work around bug of HP-UX 10.20 cc with -0.0 literal.
2751         * tests/test-isnanf.h (zero): New variable.
2752         (main): Avoid literal -0.0f.
2753         * tests/test-isnand.h (zero): New variable.
2754         (main): Avoid literal -0.0.
2755         * tests/test-isnanl.h (zero): New variable.
2756         (main): Avoid literal -0.0L.
2757         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
2758         (test_float, test_double, test_long_double): Avoid literals -0.0f,
2759         -0.0, -0.0L.
2760         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
2761         (test_signbitd): Avoid literal -0.0.
2762         (test_signbitl): Avoid literal -0.0L.
2763         * tests/test-ceilf1.c (zero): New variable.
2764         (main): Avoid literal -0.0f.
2765         * tests/test-ceill.c (zero): New variable.
2766         (main): Avoid literal -0.0L.
2767         * tests/test-floorf1.c (zero): New variable.
2768         (main): Avoid literal -0.0f.
2769         * tests/test-floorl.c (zero): New variable.
2770         (main): Avoid literal -0.0L.
2771         * tests/test-roundf1.c (zero): New variable.
2772         (main): Avoid literal -0.0f.
2773         * tests/test-round1.c (zero): New variable.
2774         (main): Avoid literal -0.0.
2775         * tests/test-roundl.c (zero): New variable.
2776         (main): Avoid literal -0.0L.
2777         * tests/test-truncf1.c (zero): New variable.
2778         (main): Avoid literal -0.0f.
2779         * tests/test-trunc1.c (zero): New variable.
2780         (main): Avoid literal -0.0.
2781         * tests/test-truncl.c (zero): New variable.
2782         (main): Avoid literal -0.0L.
2783         * tests/test-frexp.c (zero): New variable.
2784         (main): Avoid literal -0.0.
2785         * tests/test-frexpl.c (zero): New variable.
2786         (main): Avoid literal -0.0L.
2787         * tests/test-ldexpl.c (zero): New variable.
2788         (main): Avoid literal -0.0L.
2789         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2790         (zerod, zerol): New variables.
2791         (test_function): Avoid literals -0.0, -0.0L.
2792         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2793         (zerod, zerol): New variables.
2794         (test_function): Avoid literals -0.0, -0.0L.
2795         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2796         (zerod, zerol): New variables.
2797         (test_function): Avoid literals -0.0, -0.0L.
2798         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2799         (zerod, zerol): New variables.
2800         (test_function): Avoid literals -0.0, -0.0L.
2801         * tests/test-strtod.c (zero): New variable.
2802         (main): Avoid literal -0.0.
2803         Reported by Jonathan C. Patschke <jp@centtech.com>.
2804
2805 2008-07-31  Jim Meyering  <meyering@redhat.com>
2806
2807         sha256.h: correct definition of SHA224_DIGEST_SIZE
2808         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
2809         Reported by Paulie Pena IV <paulie4@gmail.com>.
2810         Define as 224 / 8, rather than as a literal.
2811         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
2812         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
2813         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
2814
2815 2008-07-31  Bruno Haible  <bruno@clisp.org>
2816
2817         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
2818         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
2819         Reported by Jonathan Patschke <jp@centtech.com>.
2820
2821 2008-07-31  Bruno Haible  <bruno@clisp.org>
2822
2823         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
2824         Reported by Paolo Bonzini <bonzini@gnu.org>.
2825
2826 2008-07-30  Eric Blake  <ebb9@byu.net>
2827
2828         test-strtod: allow compilation without -lm
2829         * tests/test-strtod.c (main): Avoid link dependence on fabs.
2830         Reported by Dennis Clarke <blastwave@gmail.com>.
2831
2832 2008-07-28  Jim Meyering  <meyering@redhat.com>
2833
2834         bootstrap: work also when there are no .po files in po/
2835         * build-aux/bootstrap (update_po_files): Complete the change
2836         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
2837
2838 2008-07-27  Jim Meyering  <meyering@redhat.com>
2839
2840         * users.txt: Add zile.
2841
2842 2008-07-26  Ben Pfaff  <blp@gnu.org>
2843
2844         Add missing dependencies on new m4/exponent[fdl].m4 files.
2845         * modules/isnanf-nolibm: Add m4/exponentf.m4.
2846         * modules/isnand-nolibm: Add m4/exponentd.m4.
2847         * modules/isnanl-nolibm: Add m4/exponentl.m4.
2848         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
2849         m4/isnan[fdl].m4, because the macros actually used moved.
2850         Reported by Jim Meyering.
2851
2852 2008-07-14  Ben Pfaff  <blp@gnu.org>
2853
2854         Add isinf module.
2855         * lib/isinf.c: New file.
2856         * lib/math.in.h: Define isinf macro if we have decided to replace
2857         it.
2858         * m4/isinf.m4: New file.
2859         * m4/math_h.m4: Initialize and substitute variables for isinf
2860         module.
2861         * modules/isinf: New file.
2862         * modules/isinf-tests: New file.
2863         * modules/math: Add substitutions for new module.
2864         * tests/test-isinf.c: New file.
2865         * doc/posix-functions/isinf.texi: Mention new module.
2866         * MODULES.html.sh: Mention new module.
2867
2868 2008-07-14  Ben Pfaff  <blp@gnu.org>
2869
2870         Factor out some macros for use by additional modules.
2871         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
2872         exponentf.m4.
2873         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
2874         exponentd.m4.
2875         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
2876         file exponentl.m4.
2877         * m4/exponentf.m4: New file.
2878         * m4/exponentd.m4: New file.
2879         * m4/exponentl.m4: New file.
2880         * modules/isnanf: Use new file m4/exponentf.m4.
2881         * modules/isnand: Use new file m4/exponentd.m4.
2882         * modules/isnanl: Use new file m4/exponentl.m4.
2883
2884 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
2885
2886         mktime.c: normalize tp->tm_isdst value to -1/0/1.
2887         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2888         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
2889         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
2890
2891         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
2892         readlink on platforms without PATH_MAX.
2893
2894 2008-07-21  Eric Blake  <ebb9@byu.net>
2895
2896         Warn, not fail, on stale version.
2897         * top/GNUmakefile (_curr-ver): Tone down previous patch.
2898
2899         Don't allow installation with stale devel version number.
2900         * top/GNUmakefile (_is-install-target): New macro.
2901         (_curr-ver): Forbid installation with stale version number.
2902
2903 2008-07-20  Bruno Haible  <bruno@clisp.org>
2904
2905         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
2906         TESTS_ENVIRONMENT.
2907         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
2908
2909 2008-07-20  Bruno Haible  <bruno@clisp.org>
2910
2911         * lib/c-stack.h (c_stack_action): Add documentation.
2912         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
2913
2914 2008-07-20  Bruno Haible  <bruno@clisp.org>
2915
2916         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
2917         * modules/readlink (License): Likewise.
2918
2919 2008-07-17  Eric Blake  <ebb9@byu.net>
2920
2921         * modules/c-stack (Link): Fix typo.
2922
2923         Make c-stack use libsigsegv, when available.
2924         * modules/c-stack (Depends-on): Add libsigsegv.
2925         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
2926         needed.
2927         * lib/c-stack.c (SIGSTKSZ): Define fallback.
2928         (segv_handler, overflow_handler, c_stack_action)
2929         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
2930         implementation when libsigsegv is available, but only when using
2931         the library is necessary.
2932         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
2933         comment, explaining why XSI check fails on Linux.
2934         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
2935         * tests/test-c-stack2.sh: Tweak skip message.
2936         * NEWS: Document new link-time requirements.
2937
2938 2008-07-16  Eric Blake  <ebb9@byu.net>
2939
2940         c-stack: Expose false positives when not using libsigsegv.
2941         * modules/c-stack-tests (Files): Expand test.
2942         * tests/test-c-stack.c (main): Add means to conditionally trigger
2943         non-overflow SIGSEGV.
2944         * tests/test-c-stack2.sh: New file.
2945
2946 2008-07-14  Bruno Haible  <bruno@clisp.org>
2947
2948         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
2949         Reported by Eric Blake.
2950
2951 2008-07-14  Sam Steingold  <sds@gnu.org>
2952             Bruno Haible  <bruno@clisp.org>
2953
2954         New module libsigsegv.
2955         * modules/libsigsegv: New file.
2956         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
2957         modifications.
2958         * MODULES.html.sh (Signal handling): New section.
2959
2960 2008-07-14  Bruno Haible  <bruno@clisp.org>
2961
2962         * modules/unictype/ctype-* (Description): Add the word "function".
2963         Improves the resulting doc in MODULES.html.
2964
2965 2008-07-12  Ben Pfaff  <blp@gnu.org>
2966
2967         Add longlong module.
2968         * modules/longlong: New file.
2969
2970 2008-07-12  Bruno Haible  <bruno@clisp.org>
2971
2972         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
2973         to empty.
2974
2975 2008-07-10  Ben Pfaff  <blp@gnu.org>
2976
2977         Add isnan module.
2978         * doc/posix-functions/isnan.texi: Mention new module.
2979         * lib/math.in.h: Define isnan macro if we have decided to replace
2980         it.
2981         * m4/isnan.m4: New file.
2982         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
2983         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
2984         also.
2985         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
2986         redundancy.
2987         * m4/math_h.m4: Initialize and substitute variables for isnan
2988         module.
2989         * modules/isnan: New file.
2990         * modules/isnan-tests: New file.
2991         * modules/math: Add substitutions for new module.
2992         * tests/test-isnan.c: New file.
2993         * MODULES.html.sh: Mention new module.
2994
2995 2008-07-10  Ben Pfaff  <blp@gnu.org>
2996
2997         Add isnanf module.
2998         * lib/isnanf.m4: New file.
2999         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
3000         (gl_HAVE_ISNANF_IN_LIBM): New macro.
3001         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
3002         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
3003         * modules/isnanf: New file.
3004         * modules/isnanf-tests: New file.
3005         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
3006         files.
3007         * tests/test-isnanf-nolibm.c: factored most of its contents into
3008         new file tests/test-isnanf.h.
3009         * tests/test-isnanf.h: New file.
3010         * tests/test-isnanf.c: New file.
3011         * MODULES.html.sh: Mention new module.
3012         * doc/glibc-functions/isnanf.texi: Mention new module.
3013
3014 2008-07-10  Ben Pfaff  <blp@gnu.org>
3015
3016         Add isnand module.
3017         * lib/isnand.h: New file.
3018         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
3019         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
3020         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
3021         functionality also.
3022         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
3023         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
3024         (gl_HAVE_ISNAND_IN_LIBM): New macro.
3025         * modules/isnand: New file.
3026         * modules/isnand-tests: New file.
3027         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
3028         files.
3029         * tests/test-isnand-nolibm.c: factored most of its contents into
3030         new file tests/test-isnand.h.
3031         * tests/test-isnand.h: New file.
3032         * tests/test-isnand.c: New file.
3033         * MODULES.html.sh: Mention new module.
3034
3035 2008-07-10  Ben Pfaff  <blp@gnu.org>
3036
3037         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
3038         * lib/isnand.h: Rename lib/isnand-nolibm.h.
3039         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
3040         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
3041         * modules/isnanf-nolibm: Update references to renamed files.
3042         * modules/isnand-nolibm: Likewise.
3043         * modules/isnanf-nolibm-tests: Likewise.
3044         * modules/isnand-nolibm-tests: Likewise.
3045         * lib/frexp.c: Likewise.
3046         * lib/isfinite.c: Likewise.
3047         * lib/signbitd.c: Likewise.
3048         * lib/signbitf.c: Likewise.
3049         * lib/vasnprintf.c: Likewise.
3050         * tests/test-ceilf1.c: Likewise.
3051         * tests/test-ceilf2.c: Likewise.
3052         * tests/test-floorf1.c: Likewise.
3053         * tests/test-floorf2.c: Likewise.
3054         * tests/test-frexp.c: Likewise.
3055         * tests/test-round1.c: Likewise.
3056         * tests/test-round2.c: Likewise.
3057         * tests/test-roundf1.c: Likewise.
3058         * tests/test-strtod.c: Likewise.
3059         * tests/test-trunc1.c: Likewise.
3060         * tests/test-trunc2.c: Likewise.
3061         * tests/test-truncf1.c: Likewise.
3062         * tests/test-truncf2.c: Likewise.
3063         * NEWS: Mention the renamed header files.
3064
3065 2008-07-11  Jim Meyering  <meyering@redhat.com>
3066
3067         vc-list-files: make the last-resort awk code more portable
3068         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
3069         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
3070         does not support it.
3071
3072 2008-07-10  Eric Blake  <ebb9@byu.net>
3073
3074         Work with tar's bootstrap.
3075         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
3076         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
3077         an m4 comment.
3078
3079 2008-07-09  Jim Meyering  <meyering@redhat.com>
3080
3081         posix-shell.m4: fix typo that made this test malfunction
3082         * m4/posix-shell.m4: Remove capitalization in variable name.
3083
3084 2008-07-08  Bruno Haible  <bruno@clisp.org>
3085
3086         * m4/onceonly.m4: Update comments.
3087         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3088
3089 2008-07-04  Jim Meyering  <meyering@redhat.com>
3090
3091         * users.txt: Add vc-dwim.
3092         (bison, coreutils): Use the gitweb URL.
3093
3094 2008-07-03  Jim Meyering  <meyering@redhat.com>
3095
3096         * users.txt: Add libffcall.  From Sam Steingold.
3097
3098 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
3099
3100         getdate.y: do not ignore TZ with relative day, month or year offset
3101         * lib/getdate.y (get_date): Move the tz-handling block to follow the
3102         relative-date-handling, since otherwise, the latter would clobber the
3103         sole output (an updated Start value) of the tz-handling block.
3104         * tests/test-getdate.c: Tests for the fix
3105
3106 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3107
3108         Recognize 'foo_LIBRARIES += libgnu.a'.
3109         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
3110         makefile snippet has already specified an installation location,
3111         also using '+='.
3112
3113 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
3114
3115         getdate.y: factor out common actions
3116         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
3117         Use them in place of open-coded actions.
3118
3119 2008-07-01  Simon Josefsson  <simon@josefsson.org>
3120
3121         Add self-test for getdate module.
3122         * modules/getdate-tests: New file.
3123         * tests/test-getdate.c: New file.
3124
3125 2008-06-29  Bruno Haible  <bruno@clisp.org>
3126
3127         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
3128         .gitignore.
3129         Reported by Sylvain Beucler <beuc@beuc.net>.
3130
3131 2008-06-29  Bruno Haible  <bruno@clisp.org>
3132
3133         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
3134         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
3135
3136 2008-06-29  Bruno Haible  <bruno@clisp.org>
3137
3138         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
3139         EXTRA_DIST.
3140         Reported by Sylvain Beucler <beuc@beuc.net>.
3141
3142 2008-06-26  Jim Meyering  <meyering@redhat.com>
3143
3144         make several modules depend on the "open" module
3145         This provides slightly increased consistency when opening-for-write
3146         the name of a non-directory spelled with a trailing slash.
3147         * modules/chdir-safer: Likewise.
3148         * modules/chown: Likewise.
3149         * modules/clean-temp: Likewise.
3150         * modules/copy-file: Likewise.
3151         * modules/fchdir: Likewise.
3152         * modules/fcntl-safer: Likewise.
3153         * modules/pipe: Likewise.
3154         * modules/utime: Likewise.
3155         Prompted by Eric Blake and Bruno Haible.
3156
3157 2008-06-24  Andreas Schwab  <schwab@suse.de>
3158
3159         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
3160         literals can be used as initializers for global variables.
3161
3162 2008-06-23  Eric Blake  <ebb9@byu.net>
3163
3164         Make gnulib-cache.m4 easier to diff.
3165         * gnulib-tool (func_import): Allow newlines when reading cached
3166         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
3167
3168 2008-06-23  Bruno Haible  <bruno@clisp.org>
3169
3170         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
3171         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
3172         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
3173         m4/signalblocking.m4.
3174         (gl_PREREQ_SIGACTION): Don't invoke it.
3175         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
3176         gl_PREREQ_SIG_HANDLER_H.
3177         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3178         Don't check for sigaction here.
3179
3180 2008-06-23  Bruno Haible  <bruno@clisp.org>
3181
3182         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
3183         (install_handlers): Don't set the SA_RESETHAND flag.
3184
3185 2008-06-23  Bruno Haible  <bruno@clisp.org>
3186
3187         * m4/sigaction.m4: Comment fixes.
3188         * lib/signal.in.h: Likewise.
3189
3190 2008-06-23  Eric Blake  <ebb9@byu.net>
3191
3192         Fix typo.
3193         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
3194
3195         Avoid SA_ namespace.
3196         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
3197         Reported by Ralf Wildenhues.
3198
3199         Avoid test failure due to SA_RESTORER.
3200         * tests/test-sigaction.c (SA_MASK): New macro.
3201         (main): Avoid failing due to extension flags being set.
3202         Reported by Jim Meyering.
3203
3204         Revert use of sig-handler.h in sigprocmask.c.
3205         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
3206         it requires the existence of struct sigaction.
3207         * lib/sigprocmask.c (handler_t): Restore typedef.
3208         (rpl_signal, old_handlers): Use local type.
3209
3210 2008-06-22  Bruno Haible  <bruno@clisp.org>
3211
3212         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
3213         conditionally.
3214         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3215
3216 2008-06-22  Bruno Haible  <bruno@clisp.org>
3217
3218         * doc/posix-functions/siginterrupt.texi: Move note.
3219
3220         * lib/signal.in.h (SA_RESTART): New macro.
3221         * lib/sigaction.c: Update comment.
3222
3223         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
3224
3225         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
3226         (gl_PREREQ_SIGPROCMASK): Invoke it.
3227         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
3228
3229         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
3230
3231         * lib/sigprocmask.c: Update a comment.
3232
3233 2008-06-21  Eric Blake  <ebb9@byu.net>
3234
3235         Use sigaction module rather than signal().
3236         * modules/c-stack (Depends-on): Add sigaction.
3237         * modules/fatal-signal (Depends-on): Likewise.
3238         * modules/nanosleep (Depends-on): Likewise.
3239         * modules/sigprocmask (Files): Add sig-handler.h.
3240         * modules/sigaction (Files): Likewise.
3241         * lib/sig-handler.h (get_handler): New file, suggested by Paul
3242         Eggert.
3243         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
3244         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
3245         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3246         (init_fatal_signals): Likewise.
3247         * lib/nanosleep.c (rpl_nanosleep): Likewise.
3248         (siginterrupt): Delete fallback.
3249         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
3250         instead.
3251         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
3252         siginterrupt.
3253
3254         New module sigaction, for mingw.
3255         * modules/sigaction: New module...
3256         * modules/sigaction-tests: ...and its test.
3257         * m4/sigaction.m4: New file.
3258         * lib/sigaction.c: Likewise.
3259         * tests/test-sigaction.c: Likewise.
3260         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
3261         * modules/signal (Makefile.am): Likewise.
3262         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
3263         needed.
3264         * doc/posix-headers/signal.texi (signal.h): Mention provided
3265         types.
3266         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
3267         that sigaction is preferable.
3268         * doc/posix-functions/sigaction.texi (sigaction): Mention new
3269         module.
3270         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3271         sigaction.
3272
3273         Improve robustness of sigprocmask by overriding signal.
3274         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
3275         is in use.
3276         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
3277         (SIGKILL, SIGSTOP): Provide fallbacks.
3278         (rpl_signal): Implement.
3279         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
3280         signal can be called inside handlers.
3281
3282         Fix nanosleep module on mingw.
3283         * modules/nanosleep (Depends-on): Add sys_select.
3284         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
3285
3286         Fix licensing of sigprocmask.
3287         * modules/raise (License): Relicense as LGPL.
3288
3289 2008-06-21  Bruno Haible  <bruno@clisp.org>
3290
3291         * lib/propername.c (proper_name_utf8): Don't use the transliterated
3292         result if it contains question marks.
3293         Reported by Michael Geng <linux@michaelgeng.de>.
3294
3295 2008-06-19  Bruno Haible  <bruno@clisp.org>
3296
3297         Fix CVS-ism.
3298         * doc/gnulib.texi: Include updated-stamp.texi.
3299         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
3300         (updated-stamp.texi): New rule.
3301         (gnulib.info): Depend on it.
3302         * doc/.gitignore: Add updated-stamp.texi.
3303         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
3304
3305 2008-06-19  Bruno Haible  <bruno@clisp.org>
3306
3307         * doc/Makefile (gnulib.info): Update and simplify dependencies.
3308         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3309
3310 2008-06-19  Eric Blake  <ebb9@byu.net>
3311
3312         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
3313         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
3314         Reported by Stepan Kasal.
3315
3316 2008-06-18  Bruno Haible  <bruno@clisp.org>
3317
3318         * lib/fatal-signal.c (init_fatal_signals): Add comment.
3319         Reported by Eric Blake.
3320
3321 2008-06-18  Eric Blake  <ebb9@byu.net>
3322
3323         Work around cygwin 1.5.25 strsignal bug.
3324         * tests/test-strsignal.c: Allow for const char *.
3325         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
3326
3327 2008-06-18  Simon Josefsson  <simon@josefsson.org>
3328
3329         * users.txt: Update URL to article and add author/date
3330         information.
3331
3332 2008-06-17  Bruno Haible  <bruno@clisp.org>
3333
3334         New macro gl_DISABLE_THREADS.
3335         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
3336         if the user did not pass --enable-threads or --disable-threads option.
3337         (gl_DISABLE_THREADS): New macro.
3338         Reported by Eric Blake <ebb9@byu.net>.
3339
3340 2008-06-17  Bruno Haible  <bruno@clisp.org>
3341
3342         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
3343         when the macro ignores it.
3344         Based on a patch by Eric Blake <ebb9@byu.net>.
3345
3346 2008-06-17  Bruno Haible  <bruno@clisp.org>
3347
3348         * modules/tls (License): Change to LGPLv2+.
3349         Reported by Eric Blake.
3350
3351 2008-06-17  Eric Blake  <ebb9@byu.net>
3352
3353         Simplify c-stack prerequisites.
3354         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
3355         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
3356         no longer requires <ucontext.h> to exist.  Optimize setrlimit
3357         check.
3358         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
3359         <sys/resource.h>.
3360
3361         Move c-stack test into testsuite.
3362         * modules/c-stack-tests: New file.
3363         * lib/c-stack.c [DEBUG]: Move test program...
3364         * tests/test-c-stack.c: ...into this new file.  Skip rather than
3365         fail test if sigaltstack is lacking.
3366         * tests/test-c-stack.sh: New driver file.
3367
3368 2008-06-16  Eric Blake  <ebb9@byu.net>
3369
3370         Use raise module consistently.
3371         * modules/fatal-signal (Depends-on): Add raise.
3372         * modules/sigprocmask (Depends-on): Likewise.
3373         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
3374         * lib/sigprocmask.c (sigprocmask): Likewise.
3375         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3376         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
3377
3378         Fix compliance bug in sigpending.
3379         * lib/sigprocmask.c (sigpending): Return pending array via
3380         parameter, not return value.
3381
3382 2008-06-14  Eric Blake  <ebb9@byu.net>
3383
3384         Improve obstack-printf test code.
3385         * tests/test-obstack-printf.c (test_function): Fix comment, and
3386         simplify usage of obstack_* in macros.  Add a test for coverage.
3387         Reported by Bruno Haible.
3388
3389 2008-06-14  Bruno Haible  <bruno@clisp.org>
3390
3391         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
3392         array size as a constant, not as a const variable.
3393         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
3394         AC_USE_SYSTEM_EXTENSIONS.
3395         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3396         Test whether the obstack_printf function actually exists.
3397         * modules/obstack-printf (Depends-on): Add extensions.
3398         (Include): Remove obstack.h.
3399         * modules/obstack-printf-posix (Depends-on): Add extensions.
3400         (Include): Remove obstack.h.
3401
3402 2008-06-13  Eric Blake  <ebb9@byu.net>
3403
3404         Add obstack-printf and obstack-printf-posix modules.
3405         * modules/obstack-printf: New file.
3406         * modules/obstack-printf-posix: Likewise.
3407         * MODULES.html.sh (Misc): Mention them.
3408         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3409         Likewise.
3410         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3411         Likewise.
3412         * modules/stdio (Makefile.am): Accomodate new modules.
3413         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3414         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
3415         Declare.
3416         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
3417         functions.
3418         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
3419         (gl_REPLACE_OBSTACK_PRINTF): New macros
3420         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
3421         * tests/test-obstack-printf.c: New file.
3422         * modules/obstack-printf-tests: Likewise.
3423         * modules/obstack-printf-posix-tests: Likewise.
3424
3425 2008-06-11  Bruno Haible  <bruno@clisp.org>
3426
3427         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
3428         * lib/open.c: Include errno.h.
3429         (open): Fail when attempting to write to a file that has a trailing
3430         slash.
3431         * tests/test-open.c (main): Test against trailing slash bug.
3432         * doc/posix-functions/open.texi: Mention the trailing slash bug.
3433
3434 2008-06-10  Bruno Haible  <bruno@clisp.org>
3435
3436         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
3437         for $? to work inside the trap command, with various /bin/sh-s.
3438         * tests/test-vc-list-files-cvs.sh: Likewise.
3439
3440 2008-06-10  Bruno Haible  <bruno@clisp.org>
3441
3442         * lib/acl-internal.h: Don't include gettext.h here.
3443         * lib/set-mode-acl.c: Include gettext.h here.
3444         * lib/copy-acl.c: Likewise.
3445
3446 2008-06-10  Bruno Haible  <bruno@clisp.org>
3447
3448         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
3449         * lib/wait-process.c (wait_subprocess): Likewise.
3450         * lib/execute.h (execute): Add termsigp argument.
3451         * lib/execute.c (execute): Likewise.
3452         * lib/csharpcomp.c (compile_csharp_using_pnet,
3453         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
3454         * lib/csharpexec.c (execute_csharp_using_pnet,
3455         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
3456         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
3457         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
3458         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
3459         is_jikes_present): Update.
3460         * lib/javaexec.c (execute_java_class): Update.
3461         * lib/javaversion.c (execute_and_read_line): Update.
3462         * NEWS: Document the changes.
3463         Reported by Eric Blake.
3464
3465 2008-06-10  Eric Blake  <ebb9@byu.net>
3466
3467         Add missing include.
3468         * tests/test-strstr.c (includes): Add <signal.h>.
3469         * tests/test-strcasestr.c (includes): Likewise.
3470         * tests/test-memmem.c (includes): Likewise.
3471
3472 2008-06-10  Bruno Haible  <bruno@clisp.org>
3473
3474         * lib/wait-process.c (wait_subprocess): Add an assertion.
3475
3476 2008-06-10  Bruno Haible  <bruno@clisp.org>
3477
3478         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
3479
3480 2008-06-10  Bruno Haible  <bruno@clisp.org>
3481
3482         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
3483         using alarm().
3484         * tests/test-strcasestr.c (main): Likewise.
3485         * tests/test-strstr.c (main): Likewise.
3486
3487 2008-06-09  Bruno Haible  <bruno@clisp.org>
3488
3489         Work around the Solaris 10 ACE ACLs ABI change.
3490         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
3491         declare if ACL_NO_TRIVIAL is present.
3492         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
3493         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
3494         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
3495         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
3496         define if ACL_NO_TRIVIAL is present.
3497         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
3498         and use the current ABI.
3499         (file_has_acl): Use same #if condition as elsewhere.
3500         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
3501         in use, and use the current ABI.
3502         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
3503         Reported by Jim Meyering.
3504
3505 2008-06-09  Eric Blake  <ebb9@byu.net>
3506
3507         Work around environments that (stupidly) ignore SIGALRM.
3508         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
3509         before using alarm().
3510         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3511         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3512         Reported by Ian Beckwith <ianb@erislabs.net>.
3513
3514         Produce autobuild blurb earlier in log.
3515         * modules/autobuild (configure.ac-early): Move AB_INIT here.
3516
3517 2008-06-09  Jim Meyering  <meyering@redhat.com>
3518         and OndÅ™ej Vašík  <ovasik@redhat.com>
3519
3520         utimens.c: correct kernel bug work-around
3521         OndÅ™ej Vašík found that the invalid return value of 280 indicates
3522         failure, not success, and the kernel bug we're trying to work
3523         around affects not just the utimensat call, but also the fallback
3524         futimens call.
3525         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
3526         not success.
3527         [HAVE_FUTIMENS]: Use the same work-around, here.
3528
3529 2008-06-09  Jim Meyering  <meyering@redhat.com>
3530
3531         add more guards around definition of ACE_-related code
3532         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
3533         ALLOW and ACE_OWNER are also defined.
3534
3535 2008-06-08  Bruno Haible  <bruno@clisp.org>
3536
3537         * lib/acl-internal.h: Add me as co-author.
3538         * lib/file-has-acl.c: Likewise.
3539         * lib/set-mode-acl.c: Likewise.
3540         * lib/copy-acl.c: Likewise.
3541
3542 2008-06-08  Bruno Haible  <bruno@clisp.org>
3543
3544         Add support for AIX ACLs.
3545         * lib/acl-internal.h (acl_nontrivial): New declaration.
3546         * lib/file-has-acl.c (acl_nontrivial): New function.
3547         (file_has_acl): Add implementation using AIX 4 ACL API.
3548         * lib/set-mode-acl.c (qset_acl): Likewise.
3549         * lib/copy-acl.c (qcopy_acl): Likewise.
3550
3551 2008-06-08  Bruno Haible  <bruno@clisp.org>
3552
3553         Add support for HP-UX ACLs.
3554         * lib/acl-internal.h (acl_nontrivial): New declaration.
3555         * lib/file-has-acl.c (acl_nontrivial): New function.
3556         (file_has_acl): Add implementation using HP-UX 11 ACL API.
3557         * lib/set-mode-acl.c (qset_acl): Likewise.
3558         * lib/copy-acl.c (qcopy_acl): Likewise.
3559
3560 2008-06-08  Bruno Haible  <bruno@clisp.org>
3561
3562         Add support for Cygwin ACLs.
3563         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
3564         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
3565         the chmod_or_fchmod call.
3566         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
3567
3568 2008-06-08  Bruno Haible  <bruno@clisp.org>
3569
3570         Fix bug with setuid modes in Solaris 10+ code.
3571         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
3572         succeeded, when the mode contains some special bits.
3573
3574 2008-06-08  Bruno Haible  <bruno@clisp.org>
3575
3576         Add support for Solaris 7..10 ACLs.
3577         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
3578         declarations.
3579         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
3580         functions.
3581         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
3582         * lib/set-mode-acl.c (qset_acl): Likewise.
3583         * lib/copy-acl.c (qcopy_acl): Likewise.
3584
3585 2008-06-08  Bruno Haible  <bruno@clisp.org>
3586
3587         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
3588         declaration.
3589         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
3590         (acl_access_nontrivial): Remove MacOS X case.
3591         (file_has_acl): Use acl_extended_nontrivial.
3592         * lib/copy-acl.c (qcopy_acl): Likewise.
3593
3594 2008-06-08  Bruno Haible  <bruno@clisp.org>
3595
3596         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
3597
3598 2008-06-08  Jim Meyering  <meyering@redhat.com>
3599
3600         * modules/acl (Maintainer): Add Bruno Haible.
3601
3602 2008-06-07  Bruno Haible  <bruno@clisp.org>
3603
3604         Improve support for Tru64 ACLs.
3605         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
3606         ACL on OSF/1.
3607
3608 2008-06-07  Bruno Haible  <bruno@clisp.org>
3609
3610         Add support for MacOS X ACLs.
3611         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
3612         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
3613         * lib/set-mode-acl.c (qset_acl): Likewise.
3614         * lib/copy-acl.c (qcopy_acl): Likewise.
3615
3616 2008-06-07  Bruno Haible  <bruno@clisp.org>
3617
3618         Fix memory leak introduced on 2008-05-22.
3619         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
3620         use.
3621
3622 2008-06-07  Bruno Haible  <bruno@clisp.org>
3623
3624         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
3625         to construct an empty ACL.
3626
3627 2008-06-07  Bruno Haible  <bruno@clisp.org>
3628
3629         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
3630         precisely.
3631         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
3632
3633 2008-06-07  Bruno Haible  <bruno@clisp.org>
3634
3635         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
3636         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
3637
3638 2008-06-07  Bruno Haible  <bruno@clisp.org>
3639
3640         * doc/posix-functions/_setjmp.texi: Explain the use of this function
3641         regardless of POSIX.
3642         * doc/posix-functions/_longjmp.texi: Likewise.
3643         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
3644         SystemV platform in this case.
3645
3646 2008-06-06  Eric Blake  <ebb9@byu.net>
3647
3648         Document abort() bugs.
3649         * doc/posix-functions/abort.texi (abort): Mention anomalies.
3650
3651         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
3652         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
3653         sigsetjmp.
3654         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
3655         siglongjmp, but only as a macro.
3656         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
3657         is obsolete.
3658         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
3659
3660         Tweak documentation to cover cygwin argz bugs.
3661         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
3662         argz bug fix; no code change needed since no cygwin releases
3663         occurred between the last fix and the bug being tested.
3664         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
3665         module and recently fixed cygwin bugs.
3666         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
3667         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
3668         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
3669         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
3670         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
3671         Likewise.
3672         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
3673         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
3674         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
3675         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
3676         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
3677         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
3678         Likewise.
3679
3680         Avoid gcc warning on cygwin.
3681         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
3682         !ACL_NO_TRIVIAL]: Avoid unused variable.
3683
3684 2008-06-05  Eric Blake  <ebb9@byu.net>
3685
3686         Be tolerant of UNKNOWN version in gnulib-tool test dir.
3687         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
3688         git-version-gen fails to come up with a version.
3689         Reported by Simon Josefsson.
3690
3691 2008-06-05  Jim Meyering  <meyering@redhat.com>
3692             Paul Eggert  <eggert@cs.ucla.edu>
3693
3694         utimens.c: work around a probable Linux kernel bug
3695         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
3696         appears to be a kernel bug that causes utimensat to return 280
3697         instead of 0, indicating success.
3698
3699 2008-06-04  Bruno Haible  <bruno@clisp.org>
3700
3701         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
3702         2008-06-01 commit.
3703
3704 2008-06-04  Bruno Haible  <bruno@clisp.org>
3705
3706         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
3707         * lib/file-has-acl.c (acl_access_nontrivial): New function.
3708         (file_has_acl): Use it. Save errno afterwards.
3709         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
3710
3711 2008-06-03  Bruno Haible  <bruno@clisp.org>
3712
3713         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
3714         draft code. Simplify #ifs.
3715         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
3716         Put Solaris code after POSIX-draft code. Fix comments regarding
3717         Solaris 10, HP-UX. Mention Cygwin.
3718         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
3719
3720 2008-06-03  Eric Blake  <ebb9@byu.net>
3721
3722         Provide fallback for older kernels.
3723         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
3724         Provide runtime fallback if kernel lacks support.
3725         Reported by Mike Frysinger.
3726
3727 2008-06-02  Bruno Haible  <bruno@clisp.org>
3728
3729         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
3730         it exists.
3731
3732 2008-06-02  Bruno Haible  <bruno@clisp.org>
3733
3734         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
3735         * lib/copy-acl.c (qcopy_acl): Update comment.
3736
3737 2008-06-02  Bruno Haible  <bruno@clisp.org>
3738
3739         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
3740         like ACL APIs.
3741
3742 2008-06-02  Bruno Haible  <bruno@clisp.org>
3743
3744         * tests/test-file-has-acl.sh: Use different code for Cygwin.
3745         * tests/test-set-mode-acl.sh: Likewise.
3746         * tests/test-copy-acl.sh: Likewise.
3747         * tests/test-copy-file.sh: Likewise.
3748
3749 2008-06-02  Bruno Haible  <bruno@clisp.org>
3750
3751         * tests/test-file-has-acl.sh: Remove unused code.
3752
3753 2008-06-01  Bruno Haible  <bruno@clisp.org>
3754
3755         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
3756         (copy_acl): Just a wrapper around qcopy_acl that emits the error
3757         messages.
3758         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
3759
3760 2008-06-01  Bruno Haible  <bruno@clisp.org>
3761
3762         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
3763         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
3764         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
3765         APIs.
3766         * modules/acl-tests (configure.ac): Remove tests now contained in
3767         m4/acl.m4.
3768
3769 2008-06-02  Jim Meyering  <meyering@redhat.com>
3770
3771         announce-gen: use a better key-server host name
3772         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
3773         it may be more consistently reliable.  Suggested by Werner Koch
3774         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
3775
3776 2008-06-01  Bruno Haible  <bruno@clisp.org>
3777
3778         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
3779         Reported by Voroskoi Andras <voroskoi@gmail.com>.
3780
3781 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
3782
3783         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
3784
3785 2008-06-01  Bruno Haible  <bruno@clisp.org>
3786
3787         New ACL tests.
3788         * tests/test-file-has-acl.sh: New file.
3789         * tests/test-file-has-acl.c: New file.
3790         * tests/test-set-mode-acl.sh: New file.
3791         * tests/test-set-mode-acl.c: New file.
3792         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
3793         * tests/test-copy-acl.c: New file.
3794         * modules/acl-tests: New file, based on modules/copy-file-tests.
3795         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
3796         (Depends-on): Add acl-tests.
3797         (configure.ac): Remove checks.
3798         (Makefile.am): Don't create test-sameacls program here any more.
3799
3800 2008-06-01  Bruno Haible  <bruno@clisp.org>
3801
3802         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
3803         * tests/test-sameacls.c: Include progname.h.
3804         (main): Invoke set_program_name. Portability fixes for MacOS X,
3805         Solaris, HP-UX.
3806
3807 2008-06-01  Bruno Haible  <bruno@clisp.org>
3808
3809         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
3810         function.
3811         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
3812
3813 2008-06-01  Bruno Haible  <bruno@clisp.org>
3814
3815         * modules/rpmatch (Depends-on): Add strdup.
3816
3817 2008-06-01  Bruno Haible  <bruno@clisp.org>
3818
3819         * lib/pipe.c: Include unistd-safer.h.
3820         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
3821         * modules/pipe (Depends-on): Add unistd-safer.
3822
3823 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3824
3825         * modules/autobuild (configure.ac): Call AB_INIT.
3826
3827 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3828
3829         * tests/test-getaddrinfo.c: Don't print debug messages by default.
3830         Suggested by Bruno Haible <bruno@clisp.org>.
3831
3832 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3833
3834         * tests/test-base64.c: Cast size_t to unsigned long when invoking
3835         printf.  Use %lu instead of %d.  Reported by Bruno Haible
3836         <bruno@clisp.org>.
3837
3838 2008-05-29  Eric Blake  <ebb9@byu.net>
3839
3840         Prefer new POSIX 200x interfaces over futimesat.
3841         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
3842         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
3843         when available.
3844         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
3845
3846 2008-05-28  Bruno Haible  <bruno@clisp.org>
3847
3848         * modules/stpcpy (License): Change to LGPLv2+.
3849         Requested by David Lutterkort <dlutter@redhat.com>.
3850
3851 2008-05-27  Bruno Haible  <bruno@clisp.org>
3852
3853         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
3854         current mingw.
3855         Reported by Jose E. Marchesi <jemarch@gnu.org>.
3856
3857 2008-05-27  Bruno Haible  <bruno@clisp.org>
3858
3859         * modules/iconv_open (Link): New section, from module 'iconv'.
3860         * modules/striconv (Link): Likewise.
3861         * modules/striconveh (Link): Likewise.
3862         * modules/xstriconv (Link): Likewise.
3863         * modules/unicodeio (Link): Likewise.
3864         * modules/propername (Link): Likewise.
3865         Reported by Jim Meyering.
3866
3867 2008-05-26  Jim Meyering  <meyering@redhat.com>
3868
3869         sha256: do not artificially restrict buffer length to be < 2^32
3870         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
3871         uint32_t to size_t.
3872         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
3873         to match.
3874
3875         avoid unaligned access errors, e.g., on sparc
3876         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
3877         direct access through a possibly-unaligned uint64* pointer.
3878         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
3879         direct access through a possibly-unaligned uint32* pointer.
3880         Prompted by this patch from Tom "spot" Callaway:
3881         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
3882
3883         sha512.c: fix typo in comment
3884         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
3885
3886 2008-05-25  Bruno Haible  <bruno@clisp.org>
3887
3888         * lib/set-mode-acl.c: Renamed from lib/acl.c.
3889         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
3890         (Makefile.am): Update lib_SOURCES.
3891
3892 2008-05-25  Bruno Haible  <bruno@clisp.org>
3893
3894         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
3895
3896 2008-05-25  Jim Meyering  <meyering@redhat.com>
3897
3898         useless-if-before-free: freed expr may have white-space differences
3899         * build-aux/useless-if-before-free: Recognize cases in which the
3900         freed expression differs from the tested one in embedded white
3901         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
3902         $1 was used, so we can't make any regexp shy.  Improved tests now
3903         detect this.
3904
3905         useless-if-before-free: accept white space in the expression.
3906         * build-aux/useless-if-before-free: For now, any white space
3907         in the expression must be identical in the free argument.
3908
3909         useless-if-before-free: efficiency tweak
3910         * build-aux/useless-if-before-free: Make the expression-matching
3911         regexp "shy".
3912         Make the *outer* regexp shy, not the expr-matching one.
3913
3914         update code-in-comment to accept cast of free arg
3915         * build-aux/useless-if-before-free: Update regexp.
3916
3917 2008-05-25  Bruno Haible  <bruno@clisp.org>
3918
3919         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
3920         * modules/copy-file-tests (Files, Makefile.am): Update.
3921         * tests/test-copy-file.c (func_test_copy): Update.
3922
3923 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
3924
3925         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
3926
3927 2008-05-23  Bruno Haible  <bruno@clisp.org>
3928
3929         Improve support for ACLs on OSF/1.
3930         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
3931         Remove fallback for unknown flavors of ACLs.
3932
3933 2008-05-22  Bruno Haible  <bruno@clisp.org>
3934
3935         Add support for ACLs on OSF/1.
3936         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
3937         replacements.
3938         (acl_free_text): New macro fallback.
3939         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
3940         acl_free.
3941         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
3942         acl_free_text function. Require AC_C_INLINE.
3943
3944 2008-05-22  Bruno Haible  <bruno@clisp.org>
3945
3946         Make copy_acl work on MacOS X 10.5.
3947         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
3948         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
3949         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
3950         If MODE_INSIDE_ACL, don't assume that every system has the same text
3951         representation for ACLs as FreeBSD.
3952         * lib/copy-acl.c (copy_acl): Add support for platforms with
3953         !MODE_INSIDE_ACL.
3954         * lib/file-has-acl.c (file_has_acl): Likewise.
3955         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
3956         FreeBSD, MacOS X, or IRIX, respectively.
3957
3958 2008-05-22  Bruno Haible  <bruno@clisp.org>
3959
3960         * lib/acl.h: Don't include <sys/acl.h>.
3961         (GETACLCNT): Move fallback to lib/acl-internal.h.
3962         * lib/acl-internal.h: Include <sys/acl.h> here.
3963         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
3964
3965 2008-05-22  Bruno Haible  <bruno@clisp.org>
3966
3967         Split off copy_acl function to separate file.
3968         * lib/copy-acl.c: New file, extracted from lib/acl.c.
3969         * lib/acl.c (copy_acl): Moved function to separate file.
3970         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
3971         * modules/acl (Files): Add lib/copy-acl.c.
3972         (Makefiles.am): Augment lib_SOURCES.
3973
3974 2008-05-22  Bruno Haible  <bruno@clisp.org>
3975
3976         * modules/copy-file-tests: New file.
3977         * tests/test-copy-file.sh: New file.
3978         * tests/test-copy-file.c: New file.
3979         * tests/test-copy-file-sameacls.c: New file.
3980
3981 2008-05-22  Eric Blake  <ebb9@byu.net>
3982
3983         Avoid gcc warning.
3984         * tests/test-memcmp.c (main): Pass NULL indirectly.
3985
3986 2008-05-21  Bruno Haible  <bruno@clisp.org>
3987
3988         Add reference doc about ACLs.
3989         * doc/acl-resources.txt: New file.
3990         * doc/acl-cygwin.txt: New file.
3991
3992 2008-05-21  Bruno Haible  <bruno@clisp.org>
3993
3994         Avoid one more warning from gcc.
3995         * lib/vasnprintf.c (IF_LINT): Update comments.
3996         (VASNPRINTF): Use it also for the 'prefix' array initializer.
3997
3998 2008-05-21  Jim Meyering  <meyering@redhat.com>
3999
4000         avoid a warning from gcc
4001         * lib/vasnprintf.c (IF_LINT): Define.
4002         (scale10_round_decimal_long_double):
4003         Use it to avoid a "may be used uninitialized" warning.
4004         (scale10_round_decimal_double): Likewise.
4005
4006 2008-05-21  Simon Josefsson  <simon@josefsson.org>
4007
4008         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
4009         declared.
4010
4011 2008-05-20  Bruno Haible  <bruno@clisp.org>
4012
4013         * tests/test-memcmp.c (main): Test also the sign of the result. Test
4014         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
4015
4016 2008-05-20  Simon Josefsson  <simon@josefsson.org>
4017
4018         * modules/memcmp-tests: New file.
4019         * tests/test-memcmp.c: New file.
4020
4021 2008-05-19  Bruno Haible  <bruno@clisp.org>
4022
4023         * modules/propername (Notice, configure.ac): Put quoted "..." into
4024         --keyword option.
4025         * lib/propername.h: Update comments accordingly.
4026         Reported by Eric Blake.
4027
4028 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
4029
4030         * modules/getpass-gnu (Depends-on): Add fseeko.
4031
4032 2008-05-19  Simon Josefsson  <simon@josefsson.org>
4033
4034         * modules/base64-tests: New file.
4035
4036 2008-05-19  Bo Borgerson <gigabo@gmail.com>
4037
4038         * lib/base64.c (base64_decode_ctx): If a decode context structure
4039         was passed in use it to ignore newlines.  If a context structure
4040         was _not_ passed in, continue to treat newlines as garbage (this
4041         is the historical behavior).  Formerly base64_decode.
4042         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
4043         takes a decode context structure.
4044         * lib/base64.h (base64_decode): Macro for four-argument calls.
4045         (base64_decode_alloc): Likewise.
4046         * lib/base64.c (base64_decode_ctx): If a decode context structure
4047         was passed in use it to ignore newlines.  If a context structure
4048         was _not_ passed in, continue to treat newlines as garbage (this
4049         is the historical behavior).  Formerly base64_decode.
4050         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
4051         takes a decode context structure.
4052         * lib/base64.h (base64_decode): Macro for four-argument calls.
4053         (base64_decode_alloc): Likewise.
4054
4055 2008-05-19  Jim Meyering  <meyering@redhat.com>
4056
4057         avoid a warning from gcc
4058         * lib/trim.c (IF_LINT): Define.
4059         (trim2): Use it to avoid a "may be used uninitialized" warning.
4060
4061         Fix doc typo.
4062         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
4063
4064 2008-05-19  Bruno Haible  <bruno@clisp.org>
4065
4066         * doc/glibc-functions/getpass.texi: Document limits of other
4067         implementations.
4068
4069 2008-05-19  Simon Josefsson  <simon@josefsson.org>
4070             Bruno Haible <bruno@clisp.org>
4071
4072         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
4073
4074 2008-05-18  Bruno Haible  <bruno@clisp.org>
4075
4076         * modules/propername: New file, from GNU gettext.
4077         * lib/propername.h: New file, from GNU gettext.
4078         * lib/propername.c: New file, from GNU gettext.
4079         * MODULES.html.sh (Internationalization functions): Add propername.
4080
4081 2008-05-16  Jim Meyering  <meyering@redhat.com>
4082             Bruno Haible  <bruno@clisp.org>
4083
4084         Avoid some warnings from "gcc -Wshadow".
4085         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
4086
4087 2008-05-15  Eric Blake  <ebb9@byu.net>
4088
4089         Extend previous patch to cygwin 1.7.0.
4090         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
4091         fast implementation in cygwin >= 1.7.0.
4092         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4094
4095 2008-05-15  Bruno Haible  <bruno@clisp.org>
4096
4097         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
4098         implementation in glibc >= 2.9.
4099         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4100         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4101
4102 2008-05-15  Bruno Haible  <bruno@clisp.org>
4103
4104         * MODULES.html.sh (Internationalization functions): Remove linebreak.
4105         (Unicode string functions): Add unilbrk/*.
4106         Reported by Karl Berry.
4107
4108 2008-05-15  Eric Blake  <ebb9@byu.net>
4109
4110         Fix violation of <stdbool.h> replacement in regex.
4111         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
4112         * lib/regexec.c (re_search_internal): Likewise.
4113         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
4114
4115 2008-05-15  Jim Meyering  <meyering@redhat.com>
4116
4117         avoid distracting test output when git or cvs is not found
4118         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
4119         * tests/test-vc-list-files-git.sh: Likewise.
4120
4121 2008-05-15  Eric Blake  <ebb9@byu.net>
4122
4123         Glibc finally accepted the memmem speedup code, bugzilla #5514.
4124         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
4125         glibc version.
4126         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4127         * doc/posix-functions/strstr.texi (strstr): Likewise.
4128         * lib/str-two-way.h (MAX): Sychronize with glibc.
4129
4130 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
4131
4132         * lib/regcomp.c (optimize_utf8): Add a note on why we test
4133         opr.ctx_type.
4134         (calc_first): Initialize constraint field.
4135         (duplicate_node_closure): Use it instead of special casing ANCHORS.
4136         Fix grammar.
4137         (duplicate_node): Merge constraint field for all node types.
4138         (calc_eclosure_iter): Look at constraint field for all node types.
4139         * lib/regex_internal.c (create_cd_newstate): Don't look at
4140         opr.ctx_type.
4141
4142 2008-05-14  Bruno Haible  <bruno@clisp.org>
4143
4144         Help GCC to do better code generation.
4145         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
4146         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
4147         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
4148         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
4149         Declare with attribute 'malloc' if supported.
4150
4151 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
4152
4153         use "echo STR|wc -c" rather than unportable "expr length STR"
4154         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
4155         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
4156
4157 2008-05-14  Jim Meyering  <meyering@redhat.com>
4158
4159         use dd ibs=$n count=1 ... rather than less-portable head -c$n
4160         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
4161         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
4162         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
4163         via Collin Lasse.
4164
4165 2008-05-14  Eric Blake  <ebb9@byu.net>
4166
4167         Avoid quadratic growth in gl_LIBSOURCES.
4168         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
4169         Suggested by Bruno Haible.
4170
4171         Test xmemdup0.
4172         * modules/xmemdup0-tests: New file.
4173         * tests/test-xmemdup0.c: Likewise.
4174
4175 2008-05-13  Eric Blake  <ebb9@byu.net>
4176
4177         Split xmemdup0 into its own module.
4178         * modules/xmemdup0: New file.
4179         * lib/xmemdup0.h: Likewise.
4180         * lib/xmemdup0.c: Likewise.
4181         * MODULES.html.sh (Memory management functions): Add xmemdup0.
4182         * lib/xalloc.h (xmemdup0): Remove.
4183         * lib/xmalloc.c (xmemdup0): Likewise.
4184
4185 2008-05-13  Eric Blake  <ebb9@byu.net>
4186             Bruno Haible  <bruno@clisp.org>
4187
4188         Reduce number of forks required during autoconf.
4189         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
4190         and gl_LIBSOURCES_DIR.
4191         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
4192         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
4193         m4_syscmd per file.
4194         <m4_foreach_w>: Move...
4195         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
4196
4197 2008-05-13  Eric Blake  <ebb9@byu.net>
4198
4199         * gnulib-tool: Fix various comment typos.
4200
4201 2008-05-12  Bruno Haible  <bruno@clisp.org>
4202
4203         Tailor the linebreaking algorithm.
4204         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
4205
4206 2008-05-12  Bruno Haible  <bruno@clisp.org>
4207
4208         Update to Unicode 5.0.0.
4209         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4210         LBP_JV, LBP_JT. Redistribute values.
4211         (unilbrk_table): Change size.
4212         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
4213         Unicode TR#14 rev. 22.
4214         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4215         LBP_JV, LBP_JT. Redistribute values.
4216         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
4217         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
4218         Update.
4219         * lib/unilbrk/lbrkprop1.h: Regenerated.
4220         * lib/unilbrk/lbrkprop2.h: Regenerated.
4221         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
4222         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
4223         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
4224         Likewise.
4225         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
4226         Likewise.
4227         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
4228         result.
4229         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4230         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4231         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4232         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
4233         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
4234         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
4235
4236 2008-05-11  Bruno Haible  <bruno@clisp.org>
4237
4238         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
4239
4240 2008-05-11  Bruno Haible  <bruno@clisp.org>
4241
4242         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
4243         * modules/unilbrk/gen-lbrk: New file.
4244
4245 2008-05-11  Bruno Haible  <bruno@clisp.org>
4246
4247         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
4248         * m4/sha512.m4 (gl_SHA512): Likewise.
4249
4250 2008-05-11  Jim Meyering  <meyering@redhat.com>
4251
4252         New modules: crypto/sha256, crypto/sha512 (from coreutils)
4253         * modules/crypto/sha256: New file.
4254         * modules/crypto/sha512: Likewise.
4255         * lib/sha256.c: Likewise.
4256         * lib/sha256.h: Likewise.
4257         * lib/sha512.c: Likewise.
4258         * lib/sha512.h: Likewise.
4259         * lib/u64.h: Likewise.
4260         * m4/sha256.m4: Likewise.
4261         * m4/sha512.m4: Likewise.
4262         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
4263
4264 2008-05-10  Bruno Haible  <bruno@clisp.org>
4265
4266         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
4267         (Input/Output <stdio.h>): Add xprintf.
4268         (Signal handling <signal.h>): Add strsignal.
4269         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
4270         (Core language properties): Add func.
4271         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
4272         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
4273         strings.
4274         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
4275         (Input/output): New section.
4276         (File system functions): Add openat-die, stat-macros.
4277         (Networking functions): Add sockets.
4278         (Unicode string functions): Add unictype/*.
4279         (Support for building libraries and executables): Add gperf.
4280         (Support for building documentation): Add agpl-3.0.
4281         (Misc): Add nocrash.
4282
4283 2008-05-10  Bruno Haible  <bruno@clisp.org>
4284
4285         * modules/unictype/gen-ctype: New file.
4286
4287 2008-05-10  Jim Meyering  <meyering@redhat.com>
4288
4289         Make chdir-safer.c more efficient on a system with no symlinks.
4290         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
4291         also if ELOOP is zero.  Suggested by Bruno Haible.
4292
4293         Make chdir-safer.c slightly safer.
4294         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
4295         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
4296
4297         Avoid compile failure on systems without ELOOP (like mingw).
4298         * lib/chdir-safer.c (ELOOP): Define if not already defined.
4299         Reported by Bruno Haible.
4300
4301 2008-05-10  Bruno Haible  <bruno@clisp.org>
4302
4303         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
4304         (is_utf8_encoding): Use a case-insensitive comparison.
4305         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
4306         streq.
4307
4308 2008-05-10  Bruno Haible  <bruno@clisp.org>
4309
4310         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
4311         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
4312         * lib/unilbrk/ulc-common.h (iconv_string_length,
4313         iconv_string_keeping_offsets): Remove declarations.
4314         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
4315         Don't include <iconv.h>, streq.h, xsize.h.
4316         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
4317         conversion.
4318         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
4319         <iconv.h>, streq.h, xsize.h.
4320         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
4321         conversion.
4322         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
4323         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
4324         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
4325         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
4326
4327 2008-05-10  Bruno Haible  <bruno@clisp.org>
4328
4329         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
4330         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
4331
4332         * modules/unilbrk/u32-width-linebreaks-tests: New file.
4333         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
4334
4335         * modules/unilbrk/u16-width-linebreaks-tests: New file.
4336         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
4337
4338         * modules/unilbrk/u8-width-linebreaks-tests: New file.
4339         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
4340
4341         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
4342         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
4343
4344         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
4345         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
4346
4347         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
4348         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
4349
4350         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
4351         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
4352
4353 2008-05-10  Bruno Haible  <bruno@clisp.org>
4354
4355         Split up 'linebreak' module.
4356         * lib/unilbrk.h: New file, based on lib/linebreak.h.
4357         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
4358         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
4359         modifications.
4360         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
4361         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
4362         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
4363         lib/linebreak.c.
4364         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
4365         lib/linebreak.c.
4366         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
4367         lib/linebreak.c.
4368         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
4369         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
4370         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
4371         lib/linebreak.c.
4372         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
4373         lib/linebreak.c.
4374         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
4375         lib/linebreak.c.
4376         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
4377         lib/linebreak.c.
4378         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
4379         lib/linebreak.c.
4380         * modules/unilbrk/base: New file.
4381         * modules/unilbrk/tables: New file.
4382         * modules/unilbrk/u8-possible-linebreaks: New file.
4383         * modules/unilbrk/u16-possible-linebreaks: New file.
4384         * modules/unilbrk/u32-possible-linebreaks: New file.
4385         * modules/unilbrk/ulc-common: New file.
4386         * modules/unilbrk/ulc-possible-linebreaks: New file.
4387         * modules/unilbrk/u8-width-linebreaks: New file.
4388         * modules/unilbrk/u16-width-linebreaks: New file.
4389         * modules/unilbrk/u32-width-linebreaks: New file.
4390         * modules/unilbrk/ulc-width-linebreaks: New file.
4391         * lib/linebreak.h: Remove file.
4392         * lib/linebreak.c: Remove file.
4393         * m4/linebreak.m4: Remove file.
4394         * modules/linebreak: Remove file.
4395         * NEWS: Mention the changes.
4396
4397 2008-05-09  Eric Blake  <ebb9@byu.net>
4398
4399         Add xmemdup0.
4400         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
4401         implementation.
4402         * lib/xmalloc.c (xmemdup0): New C implementation.
4403
4404 2008-05-08  Bruno Haible  <bruno@clisp.org>
4405
4406         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
4407
4408 2008-05-07  Eric Blake  <ebb9@byu.net>
4409
4410         Support cross-compilation of <wctype.h>.
4411         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
4412         AC_CACHE_CHECK.
4413
4414 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
4415
4416         * build-aux/vc-list-files: Add support for bzr.
4417
4418 2008-05-03  Jim Meyering  <meyering@redhat.com>
4419
4420         avoid failed assertion with tight malloc
4421         * tests/test-getndelim2.c: Correct an off-by-one assertion.
4422
4423 2008-05-03  Simon Josefsson  <simon@josefsson.org>
4424
4425         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
4426         are needed from arpa/inet.h.
4427         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
4428         Reported by Bruno Haible.
4429
4430 2008-05-02  Jim Meyering  <meyering@redhat.com>
4431
4432         avoid compilation error on FreeBSD 6
4433         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
4434
4435 2008-05-01  Jim Meyering  <meyering@redhat.com>
4436
4437         useless-if-before-free: correct --help's exit status description
4438         * build-aux/useless-if-before-free (usage): Like grep, exit 0
4439         for one or more matches, etc.  Reported by Bruno Haible.
4440
4441         vc-list-files: make the stand-alone gnulib test work
4442         * modules/vc-list-files-tests (configure.ac):
4443         Define and AC_SUBST abs_aux_dir.
4444         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
4445         $(abs_top_srcdir) to each script and having each of them
4446         duplicate the work of setting PATH, set PATH here, using
4447         the new variable, abs_aux_dir instead.
4448         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
4449         * tests/test-vc-list-files-git.sh: Likewise.
4450         Reported by Bruno Haible.
4451
4452 2008-05-01  Bruno Haible  <bruno@clisp.org>
4453
4454         * lib/getndelim2.c (getndelim2): Fix newsize computation during
4455         reallocation. Rename 'done' to 'found_delimiter'.
4456
4457 2008-05-01  Jim Meyering  <meyering@redhat.com>
4458
4459         vc-list-files: accommodate /bin/sh like the one from Solaris 10
4460         * build-aux/vc-list-files: Use `...`, not $(...).
4461
4462 2008-04-30  Jim Meyering  <meyering@redhat.com>
4463
4464         add tests for vc-list-files
4465         * modules/vc-list-files-tests: New module.
4466         * tests/test-vc-list-files-cvs.sh: New file.
4467         * tests/test-vc-list-files-git.sh: New file.
4468
4469         avoid a warning from gcc
4470         * lib/getndelim2.c (IF_LINT): Define.
4471         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
4472
4473         vc-list-files: work properly with build-aux/cvsu, too
4474         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
4475         to all cvs-based clauses.
4476
4477         vc-list-files: work properly in the CVS+awk case, too
4478         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
4479
4480         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
4481         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
4482         take more than one file argument, so .  Add quotes, just in case $dir
4483         ever contains a shell meta-character.  Prompted by Soren Hansen in
4484         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
4485
4486 2008-04-29  Eric Blake  <ebb9@byu.net>
4487
4488         Optimize getndelim2 to use block operations when possible.
4489         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
4490         freadseek, and memchr2.
4491         * lib/getndelim2.c (getndelim2): Use them for block reads.
4492
4493 2008-04-29  Bruno Haible  <bruno@clisp.org>
4494
4495         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
4496         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4497         * modules/inet_ntop (Depends-on): Add extensions.
4498         * modules/inet_pton (Depends-on): Likewise.
4499         Reported by Simon Josefsson.
4500
4501 2008-04-29  Jim Meyering  <meyering@redhat.com>
4502
4503         When the is more than one match in a block, match all of them.
4504         * build-aux/useless-if-before-free: Iterate through each block
4505         until there are no more matches.
4506
4507         Fix broken useless-if-before-free script.
4508         * build-aux/useless-if-before-free: Fix typo: missing "?" after
4509         the expression to match cast of argument to free-like function.
4510
4511 2008-04-29  Eric Blake  <ebb9@byu.net>
4512
4513         Use new header.
4514         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
4515
4516 2008-04-29  Jim Meyering  <meyering@redhat.com>
4517
4518         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
4519         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
4520         by gnulib to exist and to declare e.g., inet_ntop.
4521         Don't include "inet_ntop.h", now removed.
4522
4523         * m4/arpa_inet_h.m4: Remove trailing blanks.
4524
4525 2008-04-29  Eric Blake  <ebb9@byu.net>
4526
4527         Silence valgrind on safe reads beyond potential array bounds.
4528         * lib/rawmemchr.valgrind: New file.
4529         * lib/strchrnul.valgrind: Likewise.
4530         * modules/rawmemchr (Files): Distribute new file.
4531         * modules/strchrnul (Files): Likewise.
4532         Suggested by Bruno Haible.
4533
4534 2008-04-29  Bruno Haible  <bruno@clisp.org>
4535
4536         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
4537         (inet_ntop, inet_pton): Change portability warning's wording.
4538         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
4539         Invoke gl_CHECK_NEXT_HEADERS.
4540         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
4541         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
4542         set ARPA_INET_H.
4543         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4544         * modules/arpa_inet (Description): No longer only for systems that
4545         lack it.
4546         (Depends-on): Add include_next.
4547         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
4548         HAVE_ARPA_INET_H.
4549
4550 2008-04-29  Jim Meyering  <meyering@redhat.com>
4551
4552         * modules/mkdir (License): Re-license as LGPLv2+.
4553
4554 2008-04-29  Bruno Haible  <bruno@clisp.org>
4555
4556         * modules/rawmemchr (Maintainer): Set to Eric.
4557         * modules/strchrnul (Maintainer): Likewise.
4558
4559 2008-04-29  Simon Josefsson  <simon@josefsson.org>
4560
4561         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
4562         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
4563
4564         * modules/arpa_inet (arpa/inet.h): Use them.
4565
4566 2008-04-28  Eric Blake  <ebb9@byu.net>
4567
4568         Test getndelim2.
4569         * modules/getndelim2-tests: New file.
4570         * tests/test-getndelim2.c: Likewise.
4571         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
4572         stream.
4573         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
4574
4575         * MODULES.html.sh: Document new module.
4576
4577 2008-04-20  Bruno Haible  <bruno@clisp.org>
4578
4579         * lib/c-stack.c (die): Use raise.
4580         * modules/c-stack (Depends-on): Add raise.
4581
4582 2008-04-28  Bruno Haible  <bruno@clisp.org>
4583
4584         Expect rpmatch to be declared.
4585         * lib/yesno.c (rpmatch): Remove declaration.
4586
4587         Declare rpmatch.
4588         * lib/stdlib.in.h (rpmatch): New declaration.
4589         * lib/rpmatch.c: Include <stdlib.h> first.
4590         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
4591         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
4592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
4593         HAVE_RPMATCH.
4594         * modules/rpmatch (Depends-on): Add stdlib, extensions.
4595         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4596         (Include): Set to <stdlib.h>.
4597         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
4598         HAVE_RPMATCH.
4599         * NEWS: Document the change.
4600
4601 2008-04-28  Bruno Haible  <bruno@clisp.org>
4602
4603         Change rpmatch to use nl_langinfo when appropriate.
4604         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
4605         (N_): New macro.
4606         (localized_pattern): New function/macro.
4607         (try): Remove match, nomatch arguments. Copy the pattern into safe
4608         memory before caching it.
4609         (rpmatch): Use localized_pattern. Add translator comments.
4610         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
4611         Suggested by Eric Blake.
4612         * modules/rpmatch (Depends-on): Add stdbool.
4613
4614 2008-04-28  Eric Blake  <ebb9@byu.net>
4615
4616         Add rawmemchr module, matching glibc.
4617         * modules/string (Makefile.am): New indicator.
4618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
4619         * lib/string.in.h (rawmemchr): Declare when appropriate.
4620         * modules/rawmemchr: New file.
4621         * m4/rawmemchr.m4: Likewise.
4622         * lib/rawmemchr.c: Likewise.
4623         * modules/rawmemchr-tests: Likewise.
4624         * tests/test-rawmemchr.c: Likewise.
4625         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
4626         module.
4627         * modules/strchrnul (Depends-on): Add rawmemchr.
4628         * lib/strchrnul.c (strchrnul): Optimize a corner case.
4629
4630         Whitespace cleanup.
4631         * tests/test-strchrnul.c: Reindent.
4632         * lib/strchrnul.c: Likewise.
4633
4634         Optimize and test strchrnul.
4635         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
4636         * modules/strchrnul-tests: New file.
4637         * tests/test-strchrnul.c: Likewise.
4638
4639         Remove intprops dependency.
4640         * modules/memchr (Depends-on): Remove intprops.
4641         * modules/memrchr (Depends-on): Likewise.
4642         * modules/memchr2 (Depends-on): Likewise.
4643         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
4644         * lib/memrchr.c (__memrchr): Likewise.
4645         * lib/memrchr2.c (memchr2): Likewise.
4646         Reported by Simon Josefsson.
4647
4648 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4649
4650         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
4651         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4652
4653 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4654
4655         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
4656
4657         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
4658
4659         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
4660
4661         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
4662         declarations.
4663         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
4664
4665         * m4/inet_pton.m4: Don't check for header files.
4666
4667         * m4/inet_ntop.m4: Don't check for header files.
4668
4669 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4670
4671         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
4672         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
4673         trigger for cygwin).
4674         Reported by Bruno Haible  <bruno@clisp.org>.
4675
4676 2008-04-28  Bruno Haible  <bruno@clisp.org>
4677
4678         * doc/posix-functions/strdup.texi: Mention mingw problem.
4679
4680 2008-04-27  Bruno Haible  <bruno@clisp.org>
4681
4682         * modules/stat-time-tests (Depends-on): Add sleep.
4683         * tests/test-stat-time.c (force_unlink): New function.
4684         (cleanup): Use it.
4685         (test_mtime): Remove the ctime related tests.
4686         (test_ctime): New function, containing the ctime related tests.
4687         (main): Call test_ctime, except on native Windows platforms.
4688
4689 2008-04-27  Bruno Haible  <bruno@clisp.org>
4690
4691         * lib/rpmatch.c (rpmatch): Add some comments.
4692         Reported by James Youngman <jay@gnu.org>.
4693
4694 2008-04-27  Bruno Haible  <bruno@clisp.org>
4695
4696         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
4697         quiet NaNs.
4698
4699 2008-04-27  Bruno Haible  <bruno@clisp.org>
4700
4701         Make test-yesno.sh work on mingw.
4702         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
4703         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
4704         (main): Set stdin to binary mode.
4705         * modules/yesno-tests (Depends-on): Add binary-io.
4706
4707 2008-04-27  Bruno Haible  <bruno@clisp.org>
4708
4709         Fix 'isfinite' on x86, x86_64, ia64 platforms.
4710         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
4711         argument that lie outside the IEEE 854 domain.
4712         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
4713         (gl_ISFINITE): Use it.
4714         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
4715
4716 2008-04-27  Bruno Haible  <bruno@clisp.org>
4717
4718         Allow local renaming in config.h.
4719         * lib/memrchr.c (memrchr): Don't undefine outside libc.
4720
4721 2008-04-27  Bruno Haible  <bruno@clisp.org>
4722
4723         * lib/memchr.c (__memchr): Change type of 'i'.
4724         * lib/memchr2.c (memchr2): Likewise.
4725
4726 2008-04-26  Eric Blake  <ebb9@byu.net>
4727         and Bruno Haible  <bruno@clisp.org>
4728
4729         Optimize and test memrchr.
4730         * modules/memrchr (Depends-on): Add intprops.
4731         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
4732         * modules/memrchr-tests: New file.
4733         * tests/test-memrchr.c: New file.
4734
4735 2008-04-26  Bruno Haible  <bruno@clisp.org>
4736
4737         Add tentative support for DragonFly BSD.
4738         * lib/stdio-impl.h: Add macros for DragonFly BSD.
4739         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
4740         fp.
4741         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4742         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
4743         * lib/fpurge.c (fpurge): Likewise.
4744         * lib/freadable.c (freaadable): Likewise.
4745         * lib/freadahead.c (freadahead): Likewise.
4746         * lib/freading.c (freading): Likewise.
4747         * lib/freadptr.c (freadptr): Likewise.
4748         * lib/freadseek.c (freadptrinc): Likewise.
4749         * lib/fseeko.c (fseeko): Likewise.
4750         * lib/fseterr.c (fseterr): Likewise.
4751         * lib/fwritable.c (fwritable): Likewise.
4752         * lib/fwriting.c (fwriting): Likewise.
4753
4754 2008-04-26  Bruno Haible  <bruno@clisp.org>
4755
4756         * lib/stdio-impl.h: New file.
4757         * lib/fbufmode.c: Include stdio-impl.h.
4758         (fbufmode): Use fp_, remove redundant #defines.
4759         * lib/fflush.c: Include stdio-impl.h.
4760         (clear_ungetc_buffer): Remove redundant #defines.
4761         * lib/fpurge.c: Include stdio-impl.h.
4762         (fpurge): Remove redundant #defines.
4763         * lib/freadable.c: Include stdio-impl.h.
4764         (freadable): Remove redundant #defines.
4765         * lib/freadahead.c: Include stdio-impl.h.
4766         (freadahead): Remove redundant #defines.
4767         * lib/freading.c: Include stdio-impl.h.
4768         (freading): Remove redundant #defines.
4769         * lib/freadptr.c: Include stdio-impl.h.
4770         (freadptr): Remove redundant #defines.
4771         * lib/freadseek.c: Include stdio-impl.h.
4772         (freadptrinc): Remove redundant #defines.
4773         * lib/fseeko.c: Include stdio-impl.h.
4774         (rpl_fseeko): Remove redundant #defines.
4775         * lib/fseterr.c: Include stdio-impl.h.
4776         (fseterr): Remove redundant #defines.
4777         * lib/fwritable.c: Include stdio-impl.h.
4778         (fwritable: Remove redundant #defines.
4779         * lib/fwriting.c: Include stdio-impl.h.
4780         (fwriting): Remove redundant #defines.
4781         * modules/fbufmode (Files): Add lib/stdio-impl.h.
4782         * modules/fflush (Files): Likewise.
4783         * modules/fpurge (Files): Likewise.
4784         * modules/freadable (Files): Likewise.
4785         * modules/freadahead (Files): Likewise.
4786         * modules/freading (Files): Likewise.
4787         * modules/freadptr (Files): Likewise.
4788         * modules/freadseek (Files): Likewise.
4789         * modules/fseeko (Files): Likewise.
4790         * modules/fseterr (Files): Likewise.
4791         * modules/fwritable (Files): Likewise.
4792         * modules/fwriting (Files): Likewise.
4793
4794 2008-04-26  Bruno Haible  <bruno@clisp.org>
4795
4796         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4797         restore_seek_optimization, update_fpos_cache): New functions, extracted
4798         from rpl_fflush.
4799         (rpl_fflush): Use them.
4800         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
4801         (gl_REPLACE_FFLUSH): Use it.
4802
4803 2008-04-26  Bruno Haible  <bruno@clisp.org>
4804
4805         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
4806         on Solaris.
4807         * tests/test-xstrtoimax.sh: Likewise.
4808         * tests/test-xstrtoumax.sh: Likewise.
4809         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4810
4811 2008-04-26  Bruno Haible  <bruno@clisp.org>
4812
4813         * modules/memchr-tests: New file.
4814         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
4815
4816 2008-04-26  Eric Blake  <ebb9@byu.net>
4817             Bruno Haible  <bruno@clisp.org>
4818
4819         * lib/memchr.c: Include intprops.h.
4820         (__memchr): Optimize parallel detection of matching bytes. Rename local
4821         variables. Add explanatory comments.
4822
4823 2008-04-26  Bruno Haible  <bruno@clisp.org>
4824
4825         Fix module 'memchr', broken since 2000-10-28.
4826         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
4827
4828 2008-04-26  Bruno Haible  <bruno@clisp.org>
4829
4830         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
4831         comments.
4832
4833 2008-04-25  Eric Blake  <ebb9@byu.net>
4834
4835         Use native fstatat on cygwin 1.7.0.
4836         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
4837         first.
4838
4839 2008-04-23  Eric Blake  <ebb9@byu.net>
4840
4841         Improve memchr2 performance.
4842         * lib/memchr2.c (memchr2): Further optimize parallel detection of
4843         NUL bytes.
4844         * modules/memchr2 (Depends-on): Use intprops.h.
4845
4846 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4847
4848         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
4849         an inline function instead of a CPP macro.  Patch by Ben Pfaff
4850         <blp@cs.stanford.edu>.
4851
4852 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4853
4854         * lib/arpa_inet.in.h: New file.
4855
4856         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
4857         (Makefile.am): Sed in substitute header file.
4858
4859         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
4860         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
4861
4862         * modules/inet_ntop (configure.ac): Use
4863         gl_ARPA_INET_MODULE_INDICATOR.
4864
4865         * modules/inet_pton (configure.ac): Use
4866         gl_ARPA_INET_MODULE_INDICATOR.
4867
4868 2008-04-22  Jim Meyering  <meyering@redhat.com>
4869
4870         * modules/verify (License): Re-license as LGPLv2+.
4871
4872 2008-04-22  Simon Josefsson  <simon@josefsson.org>
4873
4874         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
4875         parameter to void* as per POSIX standard (MinGW uses char*).
4876
4877 2008-04-21  Bruno Haible  <bruno@clisp.org>
4878
4879         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4880         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
4881         Define to replacements if REPLACE_ISWCNTRL is 1.
4882         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
4883         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
4884         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
4885         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
4886         what it fixes.
4887         * doc/posix-functions/iswalpha.texi: Likewise.
4888         * doc/posix-functions/iswblank.texi: Likewise.
4889         * doc/posix-functions/iswcntrl.texi: Likewise.
4890         * doc/posix-functions/iswdigit.texi: Likewise.
4891         * doc/posix-functions/iswgraph.texi: Likewise.
4892         * doc/posix-functions/iswlower.texi: Likewise.
4893         * doc/posix-functions/iswprint.texi: Likewise.
4894         * doc/posix-functions/iswpunct.texi: Likewise.
4895         * doc/posix-functions/iswspace.texi: Likewise.
4896         * doc/posix-functions/iswupper.texi: Likewise.
4897         * doc/posix-functions/iswxdigit.texi: Likewise.
4898         Reported by Alain Guibert.
4899
4900 2008-04-21  Bruno Haible  <bruno@clisp.org>
4901
4902         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
4903         Patch by Alain Guibert.
4904
4905 2008-04-21  Bruno Haible  <bruno@clisp.org>
4906
4907         Fix test failures on mingw.
4908         * tests/test-xstrtol.c (print_no_progname): New function.
4909         (main): Install it in error_print_progname hook.
4910         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
4911         * tests/test-xstrtoimax.sh: Likewise.
4912         * tests/test-xstrtoumax.sh: Likewise.
4913
4914 2008-04-21  Bruno Haible  <bruno@clisp.org>
4915
4916         Fix test failure on mingw.
4917         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
4918
4919 2008-04-21  Bruno Haible  <bruno@clisp.org>
4920
4921         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
4922         Actually assign a value.
4923
4924 2008-04-20  Bruno Haible  <bruno@clisp.org>
4925
4926         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
4927         take 2.
4928         * lib/canonicalize.c (canonicalize_file_name): Elide if the
4929         'canonicalize-lgpl' module is also used.
4930         * lib/canonicalize-lgpl.c: Undo last change.
4931         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
4932
4933 2008-04-20  Bruno Haible  <bruno@clisp.org>
4934
4935         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
4936         config.h. Provide _mkdir based fallback for mingw.
4937         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
4938         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
4939         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
4940         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
4941         rather than defining mkdir in config.h.
4942         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
4943         (gl_SYS_STAT_H_DEFAULTS): New macro.
4944         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
4945         HAVE_IO_H any more.
4946         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
4947         HAVE_DECL_MKDIR and HAVE_IO_H.
4948
4949 2008-04-20  Bruno Haible  <bruno@clisp.org>
4950
4951         * lib/isapipe.c: Port to native Windows platforms.
4952
4953 2008-04-20  Bruno Haible  <bruno@clisp.org>
4954
4955         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
4956
4957 2008-04-21  Eric Blake  <ebb9@byu.net>
4958
4959         Work around preprocessors that don't handle UINTMAX_MAX.
4960         * lib/memchr2.c (memchr2): Avoid embedded #if.
4961         Reported by Alain Guibert, fix suggested by Bruno Haible.
4962
4963 2008-04-21  Simon Josefsson  <simon@josefsson.org>
4964
4965         * doc/posix-functions/strftime.texi (strftime): Explain better
4966         Windows incompatibility.  Suggested by Micah Cowan
4967         <micah@cowan.name>.
4968
4969 2008-04-20  Bruno Haible  <bruno@clisp.org>
4970
4971         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
4972         unistr/u8-mblen.
4973
4974 2008-04-20  Bruno Haible  <bruno@clisp.org>
4975
4976         Fix test failure on platforms with non-GNU iconv.
4977         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
4978         (U_TO_U8): Use it, rather than u16_to_u8.
4979         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
4980         units at the end of the input string.
4981         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
4982
4983 2008-04-20  Bruno Haible  <bruno@clisp.org>
4984
4985         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
4986         when the resulting length is 0.
4987         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4988
4989 2008-04-20  Bruno Haible  <bruno@clisp.org>
4990
4991         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
4992         works.
4993         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
4994
4995 2008-04-20  Bruno Haible  <bruno@clisp.org>
4996
4997         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
4998         * modules/tsearch-tests (configure.ac): Test for initstate function.
4999
5000 2008-04-20  Bruno Haible  <bruno@clisp.org>
5001
5002         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
5003         for nlink_t if missing.
5004         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
5005
5006 2008-04-19  Bruno Haible  <bruno@clisp.org>
5007
5008         Work around snprintf bug on Linux libc5.
5009         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
5010         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
5011         gl_SNPRINTF_SIZE1.
5012         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5013         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
5014         that test failed.
5015         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5016         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
5017         * modules/snprintf (Files): Add m4/printf.m4.
5018         * modules/vsnprintf (Files): Likewise.
5019         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
5020         * doc/posix-functions/vsnprintf.texi: Likewise.
5021
5022 2008-04-19  Bruno Haible  <bruno@clisp.org>
5023
5024         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
5025         from 0.0058 to less than 10^-7.
5026
5027 2008-04-19  Bruno Haible  <bruno@clisp.org>
5028
5029         Fix rounding when a precision is given.
5030         * lib/vasnprintf.c (is_borderline): New function.
5031         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
5032         9...9x.
5033         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
5034         %e, %g.
5035         * tests/test-vasprintf-posix.c (test_function): Likewise.
5036         * tests/test-snprintf-posix.h (test_function): Likewise.
5037         * tests/test-sprintf-posix.h (test_function): Likewise.
5038         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
5039         * tests/test-printf-posix.h (test_function): Likewise.
5040         * tests/test-printf-posix.output: Update.
5041         Reported by John Darrington <john@darrington.wattle.id.au> via
5042         Ben Pfaff <blp@cs.stanford.edu>.
5043
5044 2008-04-18  Simon Josefsson  <simon@josefsson.org>
5045
5046         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
5047         Suggested by Bruno Haible <bruno@clisp.org>.
5048
5049 2008-04-17  Bruno Haible  <bruno@clisp.org>
5050
5051         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
5052         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
5053         implementation.
5054         Patch by Bruce Merry <bmerry@gmail.com>.
5055
5056 2008-04-17  Simon Josefsson  <simon@josefsson.org>
5057
5058         * doc/posix-functions/strftime.texi (strftime): Mention that %e
5059         doesn't work under Windows.
5060
5061 2008-04-16  Bruno Haible  <bruno@clisp.org>
5062
5063         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
5064         New macros.
5065         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
5066         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
5067         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
5068         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
5069         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
5070         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
5071         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
5072         macros.
5073         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
5074         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
5075         Northern Sotho, Uighur.
5076
5077 2008-04-16  Bruno Haible  <bruno@clisp.org>
5078
5079         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
5080         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
5081         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
5082         Reported by Daniel Bergström <daniel@octocode.com>.
5083
5084 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
5085             Bruno Haible  <bruno@clisp.org>
5086
5087         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
5088         function.
5089         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
5090         New functions, mostly extracted from gl_locale_name_default.
5091         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
5092
5093 2008-04-16  Eric Blake  <ebb9@byu.net>
5094
5095         Adjust strtod detection to catch glibc 2.7 bug.
5096         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
5097         Reported by John Gatewood Ham.
5098
5099 2008-04-16  Bruno Haible  <bruno@clisp.org>
5100
5101         Add tentative support for Linux libc5.
5102         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
5103         * lib/fpurge.c (fpurge): Likewise.
5104         * lib/freadable.c (freadable): Likewise.
5105         * lib/freadahead.c (freadahead): Likewise.
5106         * lib/freading.c (freading): Likewise.
5107         * lib/freadptr.c (freadptr): Likewise.
5108         * lib/freadseek.c (freadptrinc): Likewise.
5109         * lib/fseeko.c (rpl_fseeko): Likewise.
5110         * lib/fseterr.c (fseterr): Likewise.
5111         * lib/fwritable.c (fwritable): Likewise.
5112         * lib/fwriting.c (fwriting): Likewise.
5113         Reported by Alain Guibert <alguibert+bts@free.fr>.
5114
5115 2008-04-15  Bruno Haible  <bruno@clisp.org>
5116
5117         * modules/mathl (configure.ac): Define module indicator.
5118
5119 2008-04-15  Bruno Haible  <bruno@clisp.org>
5120
5121         * lib/logl.c (logl): Remove unused variables.
5122
5123 2008-04-15  Bruno Haible  <bruno@clisp.org>
5124
5125         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
5126         fails.
5127
5128 2008-04-15  Bruno Haible  <bruno@clisp.org>
5129
5130         * lib/trim.c (trim2): Fix argument of isspace() macro.
5131
5132 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
5133
5134         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
5135         to 0.
5136         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
5137
5138 2008-04-14  Bruno Haible  <bruno@clisp.org>
5139
5140         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
5141         AC_LANG_PROGRAM argument.
5142         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
5143         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
5144         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5145         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5146         * m4/math_h.m4 (gl_MATH_H): Likewise.
5147         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5148         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5149         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
5150         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
5151         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5152         * m4/regex.m4 (gl_REGEX): Likewise.
5153         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
5154         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
5155         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5156         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
5157         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5158         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5159         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5160         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5161
5162 2008-04-14  Jim Meyering  <meyering@redhat.com>
5163
5164         test-strtod: fix typos: s/abs/fabs/
5165         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
5166
5167 2008-04-13  Bruno Haible  <bruno@clisp.org>
5168
5169         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
5170         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
5171         module is also used and while not building the reloc-wrapper.
5172
5173 2008-04-13  Bruno Haible  <bruno@clisp.org>
5174
5175         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
5176
5177 2008-04-13  Bruno Haible  <bruno@clisp.org>
5178
5179         Fix AIX compilation failure introduced on 2008-04-02.
5180         * tests/test-frexp.c (exp): Undefine before redefining.
5181         * tests/test-frexpl.c (exp): Likewise.
5182
5183 2008-04-13  Bruno Haible  <bruno@clisp.org>
5184
5185         Work around a HP-UX stdio bug.
5186         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
5187         * tests/test-ftello.c (main): Likewise.
5188         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
5189         * doc/posix-functions/ftello.texi: Likewise.
5190
5191 2008-04-13  Bruno Haible  <bruno@clisp.org>
5192
5193         Make test-signbit pass on HP-UX/hppa.
5194         * tests/test-signbit.c (minus_zerol): New variable.
5195         (test_signbitl): Use it.
5196
5197 2008-04-13  Bruno Haible  <bruno@clisp.org>
5198
5199         Make truncl work on OSF/1 4.0.
5200         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
5201         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5202         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
5204         HAVE_DECL_TRUNCL.
5205         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
5206         HAVE_DECL_TRUNCL.
5207         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
5208
5209 2008-04-13  Bruno Haible  <bruno@clisp.org>
5210
5211         * lib/unictype.h: Remove trailing comma from enumeration definitions.
5212
5213 2008-04-13  Bruno Haible  <bruno@clisp.org>
5214
5215         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
5216         expression, so as to avoid HP-UX 11 cc compiler bug.
5217
5218 2008-04-13  Bruno Haible  <bruno@clisp.org>
5219
5220         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
5221
5222 2008-04-13  Bruno Haible  <bruno@clisp.org>
5223
5224         * lib/git-merge-changelog.c: Remove empty declaration outside of
5225         functions.
5226
5227 2008-04-13  Bruno Haible  <bruno@clisp.org>
5228
5229         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
5230
5231 2008-04-13  Bruno Haible  <bruno@clisp.org>
5232
5233         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
5234         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
5235         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
5236         also if it exists but lacks definitions of the SHUT_* macros.
5237         * modules/sys_socket (Description): Update.
5238         Reported by Elbert Pol <e.pol@chello.nl>.
5239
5240 2008-04-13  Bruno Haible  <bruno@clisp.org>
5241
5242         * lib/localcharset.c (OS2): Don't redefine if already defined.
5243         Reported by Elbert Pol <e.pol@chello.nl>.
5244
5245 2008-04-13  Bruno Haible  <bruno@clisp.org>
5246
5247         * lib/binary-io.h [__EMX__]: Include <io.h>.
5248         Reported by Elbert Pol <e.pol@chello.nl>.
5249
5250 2008-04-12  Bruno Haible  <bruno@clisp.org>
5251
5252         * lib/fpucw.h: Enable the definitions also for x86_64.
5253         Needed for NetBSD/x86_64.
5254         Reported by Thomas Klausner <tk@giga.or.at>.
5255
5256 2008-04-12  Bruno Haible  <bruno@clisp.org>
5257
5258         * tests/test-strtod.c: Include isnand.h.
5259         (main): Use isnand instead of isnan.
5260         Reported by Jim Meyering.
5261
5262 2008-04-12  Bruno Haible  <bruno@clisp.org>
5263
5264         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
5265         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5266
5267 2008-04-12  Jim Meyering  <meyering@redhat.com>
5268
5269         * m4/math_h.m4 (gl_MATH_H): Fix typos.
5270
5271 2008-04-12  Bruno Haible  <bruno@clisp.org>
5272
5273         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
5274         Reported by Elbert Pol <e.pol@chello.nl>.
5275
5276 2008-04-12  Eric Blake  <ebb9@byu.net>
5277
5278         Work around Solaris 10 math.h bug.
5279         * m4/math_h.m4 (gl_MATH_H): Check for bug.
5280         (gl_MATH_H_DEFAULTS): Set up default.
5281         * modules/math (Makefile.am): Replace new indicators.
5282         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
5283         * tests/test-math.c (main): Test this.
5284         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
5285         * doc/posix-headers/math.texi (math.h): Mention bug.
5286         Reported by Nelson H. F. Beebe and Jim Meyering.
5287
5288 2008-04-11  Bruno Haible  <bruno@clisp.org>
5289
5290         Adapt to future versions of Apple GCC.
5291         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
5292         Reported by Peter O'Gorman <peter@pogma.com>.
5293
5294 2008-04-11  Bruno Haible  <bruno@clisp.org>
5295
5296         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
5297
5298 2008-04-11  Bruno Haible  <bruno@clisp.org>
5299
5300         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
5301
5302         * modules/getaddrinfo-tests (Makefile.am): Define
5303         test_getaddrinfo_LDADD.
5304
5305 2008-04-11  Bruno Haible  <bruno@clisp.org>
5306
5307         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
5308         (init): Fix syntax error.
5309         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
5310         is declared.
5311
5312 2008-04-11  Bruno Haible  <bruno@clisp.org>
5313
5314         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
5315         * modules/glob (Depends-on): Add stdbool.
5316
5317 2008-04-11  Bruno Haible  <bruno@clisp.org>
5318
5319         * lib/trim.c: Include <string.h>.
5320
5321 2008-04-11  Eric Blake  <ebb9@byu.net>
5322
5323         Avoid compile failure on OS/2.
5324         * lib/regex_internal.h (internal_function): Disable optimization
5325         on OS/2 (__EMX__), where it caused compiler error.
5326         Reported by Elbert Pol.
5327
5328 2008-04-11  Bruno Haible  <bruno@clisp.org>
5329
5330         Flush the standard error stream before aborting. Needed on mingw.
5331         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
5332         * tests/test-array_list.c (ASSERT): Likewise.
5333         * tests/test-array_oset.c (ASSERT): Likewise.
5334         * tests/test-avltree_list.c (ASSERT): Likewise.
5335         * tests/test-avltree_oset.c (ASSERT): Likewise.
5336         * tests/test-avltreehash_list.c (ASSERT): Likewise.
5337         * tests/test-binary-io.c (ASSERT): Likewise.
5338         * tests/test-byteswap.c (ASSERT): Likewise.
5339         * tests/test-c-ctype.c (ASSERT): Likewise.
5340         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
5341         * tests/test-c-strcasestr.c (ASSERT): Likewise.
5342         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
5343         * tests/test-c-strstr.c (ASSERT): Likewise.
5344         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
5345         * tests/test-canonicalize.c (ASSERT): Likewise.
5346         * tests/test-carray_list.c (ASSERT): Likewise.
5347         * tests/test-ceilf1.c (ASSERT): Likewise.
5348         * tests/test-ceilf2.c (ASSERT): Likewise.
5349         * tests/test-ceill.c (ASSERT): Likewise.
5350         * tests/test-count-one-bits.c (ASSERT): Likewise.
5351         * tests/test-fbufmode.c (ASSERT): Likewise.
5352         * tests/test-fflush2.c (ASSERT): Likewise.
5353         * tests/test-floorf1.c (ASSERT): Likewise.
5354         * tests/test-floorf2.c (ASSERT): Likewise.
5355         * tests/test-floorl.c (ASSERT): Likewise.
5356         * tests/test-fopen.c (ASSERT): Likewise.
5357         * tests/test-fpending.c (ASSERT): Likewise.
5358         * tests/test-fprintf-posix.c (ASSERT): Likewise.
5359         * tests/test-fpurge.c (ASSERT): Likewise.
5360         * tests/test-freadable.c (ASSERT): Likewise.
5361         * tests/test-freadahead.c (ASSERT): Likewise.
5362         * tests/test-freading.c (ASSERT): Likewise.
5363         * tests/test-freadptr.c (ASSERT): Likewise.
5364         * tests/test-freadptr2.c (ASSERT): Likewise.
5365         * tests/test-freadseek.c (ASSERT): Likewise.
5366         * tests/test-freopen.c (ASSERT): Likewise.
5367         * tests/test-frexp.c (ASSERT): Likewise.
5368         * tests/test-frexpl.c (ASSERT): Likewise.
5369         * tests/test-fseek.c (ASSERT): Likewise.
5370         * tests/test-fseeko.c (ASSERT): Likewise.
5371         * tests/test-fstrcmp.c (ASSERT): Likewise.
5372         * tests/test-ftell.c (ASSERT): Likewise.
5373         * tests/test-ftello.c (ASSERT): Likewise.
5374         * tests/test-func.c (ASSERT): Likewise.
5375         * tests/test-fwritable.c (ASSERT): Likewise.
5376         * tests/test-fwriting.c (ASSERT): Likewise.
5377         * tests/test-getdelim.c (ASSERT): Likewise.
5378         * tests/test-getline.c (ASSERT): Likewise.
5379         * tests/test-i-ring.c (ASSERT): Likewise.
5380         * tests/test-iconv-utf.c (ASSERT): Likewise.
5381         * tests/test-iconv.c (ASSERT): Likewise.
5382         * tests/test-isfinite.c (ASSERT): Likewise.
5383         * tests/test-isnand.c (ASSERT): Likewise.
5384         * tests/test-isnanf.c (ASSERT): Likewise.
5385         * tests/test-isnanl.h (ASSERT): Likewise.
5386         * tests/test-ldexpl.c (ASSERT): Likewise.
5387         * tests/test-linked_list.c (ASSERT): Likewise.
5388         * tests/test-linkedhash_list.c (ASSERT): Likewise.
5389         * tests/test-localename.c (ASSERT): Likewise.
5390         * tests/test-lseek.c (ASSERT): Likewise.
5391         * tests/test-mbscasecmp.c (ASSERT): Likewise.
5392         * tests/test-mbscasestr1.c (ASSERT): Likewise.
5393         * tests/test-mbscasestr2.c (ASSERT): Likewise.
5394         * tests/test-mbscasestr3.c (ASSERT): Likewise.
5395         * tests/test-mbscasestr4.c (ASSERT): Likewise.
5396         * tests/test-mbschr.c (ASSERT): Likewise.
5397         * tests/test-mbscspn.c (ASSERT): Likewise.
5398         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
5399         * tests/test-mbspbrk.c (ASSERT): Likewise.
5400         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
5401         * tests/test-mbsrchr.c (ASSERT): Likewise.
5402         * tests/test-mbsspn.c (ASSERT): Likewise.
5403         * tests/test-mbsstr1.c (ASSERT): Likewise.
5404         * tests/test-mbsstr2.c (ASSERT): Likewise.
5405         * tests/test-mbsstr3.c (ASSERT): Likewise.
5406         * tests/test-memchr2.c (ASSERT): Likewise.
5407         * tests/test-memmem.c (ASSERT): Likewise.
5408         * tests/test-open.c (ASSERT): Likewise.
5409         * tests/test-printf-frexp.c (ASSERT): Likewise.
5410         * tests/test-printf-frexpl.c (ASSERT): Likewise.
5411         * tests/test-printf-posix.c (ASSERT): Likewise.
5412         * tests/test-quotearg.c (ASSERT): Likewise.
5413         * tests/test-rbtree_list.c (ASSERT): Likewise.
5414         * tests/test-rbtree_oset.c (ASSERT): Likewise.
5415         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
5416         * tests/test-round1.c (ASSERT): Likewise.
5417         * tests/test-roundf1.c (ASSERT): Likewise.
5418         * tests/test-roundl.c (ASSERT): Likewise.
5419         * tests/test-signbit.c (ASSERT): Likewise.
5420         * tests/test-sleep.c (ASSERT): Likewise.
5421         * tests/test-snprintf-posix.c (ASSERT): Likewise.
5422         * tests/test-snprintf.c (ASSERT): Likewise.
5423         * tests/test-sprintf-posix.c (ASSERT): Likewise.
5424         * tests/test-stat-time.c (ASSERT): Likewise.
5425         * tests/test-strcasestr.c (ASSERT): Likewise.
5426         * tests/test-strerror.c (ASSERT): Likewise.
5427         * tests/test-striconv.c (ASSERT): Likewise.
5428         * tests/test-striconveh.c (ASSERT): Likewise.
5429         * tests/test-striconveha.c (ASSERT): Likewise.
5430         * tests/test-strsignal.c (ASSERT): Likewise.
5431         * tests/test-strstr.c (ASSERT): Likewise.
5432         * tests/test-strtod.c (ASSERT): Likewise.
5433         * tests/test-trunc1.c (ASSERT): Likewise.
5434         * tests/test-trunc2.c (ASSERT): Likewise.
5435         * tests/test-truncf1.c (ASSERT): Likewise.
5436         * tests/test-truncf2.c (ASSERT): Likewise.
5437         * tests/test-truncl.c (ASSERT): Likewise.
5438         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
5439         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
5440         * tests/test-vasnprintf.c (ASSERT): Likewise.
5441         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
5442         * tests/test-vasprintf.c (ASSERT): Likewise.
5443         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
5444         * tests/test-vprintf-posix.c (ASSERT): Likewise.
5445         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
5446         * tests/test-vsnprintf.c (ASSERT): Likewise.
5447         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
5448         * tests/test-wcwidth.c (ASSERT): Likewise.
5449         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
5450         * tests/test-xprintf-posix.c (ASSERT): Likewise.
5451         * tests/test-xvasprintf.c (ASSERT): Likewise.
5452         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
5453         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
5454         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
5455         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
5456         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
5457         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
5458         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
5459         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
5460         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
5461         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
5462         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
5463         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
5464         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
5465         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
5466         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
5467         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
5468         * tests/unictype/test-block_list.c (ASSERT): Likewise.
5469         * tests/unictype/test-block_of.c (ASSERT): Likewise.
5470         * tests/unictype/test-block_test.c (ASSERT): Likewise.
5471         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
5472         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
5473         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
5474         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
5475         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
5476         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
5477         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
5478         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
5479         * tests/unictype/test-combining.c (ASSERT): Likewise.
5480         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
5481         * tests/unictype/test-digit.c (ASSERT): Likewise.
5482         * tests/unictype/test-mirror.c (ASSERT): Likewise.
5483         * tests/unictype/test-numeric.c (ASSERT): Likewise.
5484         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
5485         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
5486         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
5487         * tests/unictype/test-scripts.c (ASSERT): Likewise.
5488         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
5489         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
5490         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
5491         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
5492         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
5493         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
5494         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
5495         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
5496         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
5497         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
5498         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
5499         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
5500         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
5501         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
5502         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
5503         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
5504         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
5505         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
5506         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
5507         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
5508         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
5509         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
5510         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
5511         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
5512         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
5513         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
5514         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
5515         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
5516         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
5517         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
5518         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
5519         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
5520         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
5521         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
5522         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
5523         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
5524         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
5525         Reported by Eric Blake.
5526
5527 2008-04-11  Bruno Haible  <bruno@clisp.org>
5528
5529         * lib/wchar.in.h: Tweak comment.
5530
5531 2008-04-11  Bruno Haible  <bruno@clisp.org>
5532
5533         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
5534         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
5535         gl_COMMON.
5536         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
5537
5538 2008-04-11  Bruno Haible  <bruno@clisp.org>
5539
5540         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
5541
5542 2008-04-11  Simon Josefsson  <simon@josefsson.org>
5543
5544         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
5545         of attempting to use non-existing /dev/*random.  Based on patch
5546         from Adam Strzelecki <ono@java.pl> in
5547         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
5548
5549 2008-04-08  Bruno Haible  <bruno@clisp.org>
5550
5551         Add tentative support for emx+gcc.
5552         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
5553         * lib/fpurge.c (fpurge): Likewise.
5554         * lib/freadable.c (freadable): Likewise.
5555         * lib/freadahead.c (freadahead): Likewise.
5556         * lib/freading.c (freading): Likewise.
5557         * lib/freadptr.c (freadptr): Likewise.
5558         * lib/freadseek.c (freadptrinc): Likewise.
5559         * lib/fseeko.c (rpl_fseeko): Likewise.
5560         * lib/fseterr.c (fseterr): Likewise.
5561         * lib/fwritable.c (fwritable): Likewise.
5562         * lib/fwriting.c (fwriting): Likewise.
5563         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
5564
5565 2008-04-09  Eric Blake  <ebb9@byu.net>
5566
5567         Avoid some autoconf warnings.
5568         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
5569         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
5570         * m4/afs.m4 (gl_AFS): Likewise.
5571         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
5572         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
5573         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5574         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
5575         (gl_INTEGER_TYPE_SUFFIX): Likewise.
5576         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
5577         (AC_CHECK_DECLS_ONCE): Likewise.
5578         Rename file...
5579         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
5580         gnulib-tool requires autoconf 2.59 or better.
5581         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
5582
5583 2008-04-08  Eric Blake  <ebb9@byu.net>
5584
5585         Use 'git describe --match' if present (added in git 1.5.5).
5586         * build-aux/git-version-gen: Limit result to tags that match 'v*'
5587         if possible.
5588
5589 2008-04-08  Bruno Haible  <bruno@clisp.org>
5590
5591         Add tentative support for OpenServer.
5592         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
5593         _ptr, _cnt.
5594         * lib/fpurge.c (fpurge): Likewise.
5595         * lib/freadable.c (freadable): Likewise.
5596         * lib/freadahead.c (freadahead): Likewise.
5597         * lib/freading.c (freading): Likewise.
5598         * lib/freadptr.c (freadptr): Likewise.
5599         * lib/freadseek.c (freadptrinc): Likewise.
5600         * lib/fseeko.c (rpl_fseeko): Likewise.
5601         * lib/fseterr.c (fseterr): Likewise.
5602         * lib/fwritable.c (fwritable): Likewise.
5603         * lib/fwriting.c (fwriting): Likewise.
5604         Reported by Roger Cornelius <rac@tenzing.org> and
5605         Brian K. White <brian@aljex.com>.
5606
5607 2008-04-06  Jim Meyering  <meyering@redhat.com>
5608
5609         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
5610
5611 2008-04-06  Bruno Haible  <bruno@clisp.org>
5612
5613         Avoid possible error with non-ASCII bytes in UTF-8 locales.
5614         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
5615         * tests/test-printf-posix.sh: Likewise.
5616         * tests/test-vfprintf-posix.sh: Likewise.
5617         * tests/test-vprintf-posix.sh: Likewise.
5618         * tests/test-xprintf-posix.sh: Likewise.
5619
5620 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5621
5622         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
5623         hide error from 'ls', needed on OS/2.
5624         Report by Elbert Pol <elbert.pol@gmail.com>.
5625
5626 2008-04-04  Eric Blake  <ebb9@byu.net>
5627
5628         Make test-fseeko.c failures meaningful.
5629         * tests/test-fseeko.c: Print line number on failure.
5630         * tests/test-fseek.c: Likewise.
5631         Reported by Nelson H. F. Beebe.
5632
5633         Improve strtod bug detection check.
5634         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
5635         required for Solaris 10.
5636         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
5637
5638 2008-04-04  Bruno Haible  <bruno@clisp.org>
5639
5640         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
5641         by m4/setenv.m4.
5642
5643 2008-04-03  Eric Blake  <ebb9@byu.net>
5644
5645         Ensure sane .version contents.
5646         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
5647         version string.
5648         * build-aux/git-version-gen: Improve documentation.
5649
5650         Make GNU make output nicer.
5651         * top/GNUmakefile [!_have-Makefile]: Add dependency on
5652         MAKECMDGOALS to enforce message for all command line targets.  Set
5653         srcdir for use in maint.mk.
5654
5655         Another maintainer tweak.
5656         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
5657         a target that regenerates version.
5658
5659 2008-04-03  Jim Meyering  <meyering@redhat.com>
5660
5661         vc-list-files: don't cause coreutils "make po-check" failure
5662         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
5663
5664 2008-04-03  Eric Blake  <ebb9@byu.net>
5665
5666         Allow VPATH usage of vc-list-files.
5667         * build-aux/vc-list-files (scriptversion): Add timestamp.
5668         (options): Add --help, --version, -C.
5669         (CVS): Support installed cvsu.
5670
5671 2008-04-02  Bruno Haible  <bruno@clisp.org>
5672
5673         Avoid some "statement with no effect" warnings from gcc.
5674         * tests/test-wctype.c (main): Explicitly ignore unused values.
5675         Reported by Jim Meyering.
5676
5677 2008-04-02  Jim Meyering  <meyering@redhat.com>
5678
5679         Avoid some warnings from "gcc -Wshadow".
5680         * tests/test-frexp.c (exp): Define to a different identifier.
5681         * tests/test-frexpl.c (exp): Likewise.
5682
5683 2008-04-03  Jim Meyering  <meyering@redhat.com>
5684
5685         bootstrap: remove dangling *.[ch] symlinks from lib
5686         * build-aux/bootstrap [dangling symlink removal]: Move find's
5687         -depth option to precede all others, to avoid a warning.
5688         Remove *.[ch] files too, and from "$source_base" (usually lib/).
5689
5690 2008-04-02  Bruno Haible  <bruno@clisp.org>
5691
5692         Avoid some warnings from "gcc -Wshadow".
5693         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
5694         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
5695         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
5696         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
5697         Reported by Jim Meyering.
5698
5699 2008-04-01  Bruno Haible  <bruno@clisp.org>
5700
5701         Fix test to work on IRIX 6.5 with cc.
5702         * tests/test-math.c (numeric_equal): New function.
5703         (main): Use it.
5704
5705 2008-04-01  Bruno Haible  <bruno@clisp.org>
5706
5707         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
5708
5709 2008-04-01  Bruno Haible  <bruno@clisp.org>
5710
5711         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
5712         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5713         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
5714         (Depends-on): Remove math.
5715
5716         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
5717         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5718         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
5719         (Depends-on): Remove math.
5720
5721         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
5722         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5723         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
5724         (Depends-on): Remove math.
5725         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
5726         (Depends-on): Remove math.
5727
5728         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
5729         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5730         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
5731         (Depends-on): Remove math.
5732         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
5733         (Depends-on): Remove math.
5734
5735         * tests/test-round1.c: Include nan.h.
5736         (main): Use NaNd instead of NAN.
5737         * modules/round-tests (Files): Add tests/nan.h.
5738
5739         * tests/test-trunc1.c: Include nan.h.
5740         (main): Use NaNd instead of NAN.
5741         * modules/trunc-tests (Files): Add tests/nan.h.
5742
5743         * tests/test-roundf1.c: Include nan.h.
5744         (main): Use NaNf instead of NAN.
5745         * modules/roundf-tests (Files): Add tests/nan.h.
5746
5747         * tests/test-truncf1.c: Include nan.h.
5748         (main): Use NaNf instead of NAN.
5749         * modules/truncf-tests (Files): Add tests/nan.h.
5750
5751         * tests/test-ceilf1.c: Include nan.h.
5752         (main): Use NaNf instead of NAN.
5753         * modules/ceilf-tests (Files): Add tests/nan.h.
5754
5755         * tests/test-floorf1.c: Include nan.h.
5756         (main): Use NaNf instead of NAN.
5757         * modules/floorf-tests (Files): Add tests/nan.h.
5758
5759         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
5760         (main): Use NaNf instead of NAN.
5761         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
5762
5763         * tests/test-isnand.c: Include nan.h instead of <math.h>.
5764         (main): Use NaNd instead of NAN.
5765         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
5766
5767         * tests/test-frexp.c: Include nan.h.
5768         (main): Use NaNd instead of NAN.
5769         * modules/frexp-tests (Files): Add tests/nan.h.
5770
5771         * lib/isnan.c: Don't include <math.h>.
5772         (FUNC): Don't use NAN macro.
5773         * modules/isnand-nolibm (Depends-on): Remove math.
5774         * modules/isnanf-nolibm (Depends-on): Remove math.
5775         * modules/isnanl (Depends-on): Remove math.
5776         * modules/isnanl-nolibm (Depends-on): Remove math.
5777
5778         * tests/nan.h: New file.
5779
5780 2008-04-01  Eric Blake  <ebb9@byu.net>
5781
5782         Fix typos.
5783         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
5784         values to be the right type.
5785
5786         For now, cater to gnulib strtod inaccuracies.
5787         * tests/test-strtod.c (main): Allow 1-ulp error on expected
5788         fractional results.  While not as nice from a QoI perspective, it
5789         is a quicker patch than correctly implementing decimal to binary
5790         rounding.
5791
5792 2008-03-31  Eric Blake  <ebb9@byu.net>
5793
5794         Guarantee a definition of NAN.
5795         * lib/math.in.h (NAN): Define if missing.
5796         * tests/test-math.c (main): Test it.
5797         * doc/posix-headers/math.texi (math.h): Document this.
5798         * lib/isnan.c (rpl_isnand): Use it.
5799         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
5800         * tests/test-floorf1.c (NaN): Likewise.
5801         * tests/test-frexp.c (NaN): Likewise.
5802         * tests/test-isnand.c (NaN): Likewise.
5803         * tests/test-isnanf.c (NaN): Likewise.
5804         * tests/test-round1.c (NaN): Likewise.
5805         * tests/test-roundf1.c (NaN): Likewise.
5806         * tests/test-snprintf-posix.h (NaN): Likewise.
5807         * tests/test-sprintf-posix.h (NaN): Likewise.
5808         * tests/test-trunc1.c (NaN): Likewise.
5809         * tests/test-truncf1.c (NaN): Likewise.
5810         * tests/test-vasnprintf-posix.c (NaN): Likewise.
5811         * tests/test-vasprintf-posix.c (NaN): Likewise.
5812         * modules/isnand-nolibm (Depends-on): Add math.
5813         * modules/isnanf-nolibm (Depends-on): Likewise.
5814         * modules/isnanl (Depends-on): Likewise.
5815         * modules/isnanl-nolibm (Depends-on): Likewise.
5816         * modules/snprintf-posix-tests (Depends-on): Likewise.
5817         * modules/sprintf-posix-tests (Depends-on): Likewise.
5818         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
5819         * modules/vsprintf-posix-tests (Depends-on): Likewise.
5820         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
5821         * modules/vasprintf-posix-tests (Depends-on): Likewise.
5822
5823 2008-03-31  Bruno Haible  <bruno@clisp.org>
5824
5825         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
5826         * doc/posix-functions/strtod.texi: Likewise.
5827
5828 2008-03-31  Bruno Haible  <bruno@clisp.org>
5829
5830         * tests/test-strtod.c (main): Don't use C99 syntax.
5831
5832 2008-03-31  Bruno Haible  <bruno@clisp.org>
5833
5834         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
5835         Reported by Eric Blake.
5836
5837 2008-03-31  Jim Meyering  <meyering@redhat.com>
5838
5839         Don't compare actual signbit return values.
5840         * tests/test-strtod.c (main): Rather, compare only their
5841         zero/non-zero nature.
5842
5843 2008-03-31  Eric Blake  <ebb9@byu.net>
5844
5845         More strtod documentation.
5846         * doc/posix-functions/strtod.texi (strtod): Interpret more test
5847         failures as distinct bugs.
5848
5849 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5850
5851         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
5852         Problem reported by Erik Benada in
5853         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
5854
5855 2008-03-30  Bruno Haible  <bruno@clisp.org>
5856
5857         * tests/test-strtod.c: Add comments about which assertion fails on which
5858         platform.
5859         * doc/posix-functions/strtod.texi: Add info about many more platforms.
5860
5861 2008-03-30  Eric Blake  <ebb9@byu.net>
5862
5863         Test signbit behavior on zeros.
5864         * tests/test-signbit.c (test_signbitf): Add tests for zero.
5865         (test_signbitd, test_signbitl): Likewise.
5866
5867         More strtod touchups.
5868         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
5869         sign of negative underflow, for now.  Use .5, not .1.
5870         * doc/posix-functions/strtod.texi (strtod): Mention these
5871         limitations.
5872         Reported by Jim Meyering.
5873
5874 2008-03-30  Bruno Haible  <bruno@clisp.org>
5875
5876         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
5877         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
5878
5879 2008-03-30  Bruno Haible  <bruno@clisp.org>
5880
5881         Avoid failure when attempting to return empty iconv results on some
5882         platforms.
5883         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
5884         allocation, don't report ENOMEM when the resulting string is empty.
5885
5886 2008-03-30  Bruno Haible  <bruno@clisp.org>
5887
5888         Fix buffer overrun.
5889         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
5890         Don't consider the width for tmp_length. Check count against tmp_length
5891         before doing the padding. Ensure enough allocation during padding.
5892
5893 2008-03-30  Eric Blake  <ebb9@byu.net>
5894
5895         strtod touchups.
5896         * lib/strtod.c (strtod): Avoid compiler warnings.
5897         Reported by Jim Meyering.
5898
5899 2008-03-30  Bruno Haible  <bruno@clisp.org>
5900
5901         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
5902         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
5903         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
5904         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
5905         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
5906         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
5907         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
5908         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
5909
5910         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
5911         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
5912         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
5913         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
5914         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
5915         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
5916         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
5917         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
5918
5919         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
5920         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
5921         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
5922         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
5923         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
5924         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
5925         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
5926         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
5927
5928         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
5929         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
5930
5931         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
5932         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
5933
5934         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
5935         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
5936
5937         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
5938         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
5939         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
5940
5941         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
5942         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
5943         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
5944
5945         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
5946         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
5947         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
5948
5949         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
5950         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
5951         * modules/vasprintf (Depends-on): Add EOVERFLOW.
5952
5953         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
5954         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
5955         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
5956         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
5957         (Depends-on): Add EOVERFLOW.
5958         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
5959         (Depends-on): Add EOVERFLOW.
5960         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5961         (Depends-on): Add EOVERFLOW.
5962         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5963         (Depends-on): Add EOVERFLOW.
5964         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5965         (Depends-on): Add EOVERFLOW.
5966         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5967         (Depends-on): Add EOVERFLOW.
5968         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5969         (Depends-on): Add EOVERFLOW.
5970         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5971         (Depends-on): Add EOVERFLOW.
5972
5973         * lib/sprintf.c (EOVERFLOW): Remove fallback.
5974         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
5975         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
5976
5977         * lib/snprintf.c (EOVERFLOW): Remove fallback.
5978         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
5979         * modules/snprintf (Depends-on): Add EOVERFLOW.
5980
5981         * lib/poll.c (EOVERFLOW): Remove fallback.
5982         * modules/poll (Depends-on): Add EOVERFLOW.
5983
5984         * lib/getugroups.c (EOVERFLOW): Remove fallback.
5985         * modules/getugroups (Depends-on): Add EOVERFLOW.
5986
5987         * lib/getdelim.c (EOVERFLOW): Remove fallback.
5988         * modules/getdelim (Depends-on): Add EOVERFLOW.
5989
5990         * lib/ftell.c (EOVERFLOW): Remove fallback.
5991         * modules/ftell (Depends-on): Add EOVERFLOW.
5992
5993         * lib/fprintf.c (EOVERFLOW): Remove fallback.
5994         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
5995         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
5996
5997         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
5998
5999         * modules/EOVERFLOW-tests: New file.
6000         * tests/test-EOVERFLOW.c: New file.
6001
6002         * modules/EOVERFLOW: New file.
6003         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
6004
6005 2008-03-30  Bruno Haible  <bruno@clisp.org>
6006
6007         Fix bug introduced on 2007-06-10.
6008         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
6009         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
6010
6011 2008-03-30  Bruno Haible  <bruno@clisp.org>
6012
6013         Improve freadseek's efficiency after ungetc.
6014         * lib/freadseek.c: Include freadahead.h.
6015         (freadptrinc): New function, extracted from freadseek.
6016         (freadseek): Use it in a loop. Use freadahead to determine the number
6017         of loop iterations.
6018         * modules/freadseek (Depends-on): Add freadahead.
6019         (configure.ac): Require AC_C_INLINE.
6020
6021 2008-03-30  Bruno Haible  <bruno@clisp.org>
6022
6023         * lib/freadseek.c (freadseek): Don't ignore the return value of
6024         freadptr.
6025
6026 2008-03-29  Eric Blake  <ebb9@byu.net>
6027
6028         Add hex float support.
6029         * modules/strtod (Depends-on): Add c-ctype.
6030         (Link): Mention POW_LIB.
6031         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
6032         whitespace between 'e' and exponent.
6033         * tests/test-strtod.c (main): Enable hex float tests.
6034         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
6035         now provides.
6036
6037         Document various strtod bugs, with some fixes.
6038         * doc/posix-functions/strtod.texi (strtod): Document bugs with
6039         "-0x", "inf", "nan", and hex constants.
6040         * doc/posix-functions/atof.texi (atof): Likewise.
6041         * modules/stdlib (Makefile.am): Support strtod.
6042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6043         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
6044         detect additional strtod bugs.
6045         * lib/stdlib.in.h (rpl_strtod): Add declarations.
6046         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
6047         bool where appropriate.  Parse 'inf' and 'nan'.
6048         * tests/test-strtod.c: New file.
6049         * modules/strtod (Depends-on): Add stdbool, stdlib.
6050         (configure.ac): Turn on module indicator.
6051         * modules/strtod-tests: New module.
6052
6053 2008-03-29  Eric Blake  <ebb9@byu.net>
6054
6055         Fix ftell on mingw.
6056         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
6057         * modules/ftell-tests (Depends-on): Add binary-io.
6058         * modules/ftello-tests (Depends-on): Likewise.
6059         * tests/test-ftell.c (main): Enhance test to cover behavior after
6060         ungetc.  Enforce binary mode.
6061         * tests/test-ftello.c (main): Likewise.
6062
6063         Pass test-freadseek on cygwin.
6064         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
6065         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
6066         ungetc buffer.
6067
6068         * tests/test-fflush2.c (main): Fix typo.
6069
6070 2008-03-29  Bruno Haible  <bruno@clisp.org>
6071
6072         * tests/test-fflush2.c (main): Temporarily disable the contents of
6073         this test.
6074         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
6075         Reported by Eric Blake.
6076
6077 2008-03-28  Simon Josefsson  <simon@josefsson.org>
6078
6079         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
6080         (GC_SHA224_DIGEST_SIZE): Add.
6081
6082         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
6083         (gc_hash_digest_length): Likewise.
6084         (gc_hash_buffer): Likewise.
6085
6086 2008-03-25  Bruno Haible  <bruno@clisp.org>
6087
6088         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
6089         detail which gettext release to use.
6090         Reported by Simon Josefsson.
6091
6092 2008-03-26  Jim Meyering  <meyering@redhat.com>
6093
6094         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
6095         * modules/gnumakefile (clean-GNUmakefile): Also, use
6096         test ... && ... || : syntax rather than if-then ... fi.
6097
6098         gnumakefile: Don't double-quote-expand $(VPATH) value.
6099         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
6100
6101 2008-03-24  Eric Blake  <ebb9@byu.net>
6102
6103         Alter GNUmakefile to install into top directory.
6104         * modules/maintainer-makefile: Split, and add dependency...
6105         * modules/gnumakefile: to this new module.
6106         * build-aux/GNUmakefile: Move...
6107         * top/GNUmakefile: ...here.
6108         * build-aux/maint.mk: Move...
6109         * top/maint.mk: ...here.
6110         * MODULES.html.sh (Support for maintaining...): Document new
6111         module.
6112
6113 2008-03-23  Bruno Haible  <bruno@clisp.org>
6114
6115         * gnulib-tool: New options --vc-files, --no-vc-files.
6116         (func_usage): Document them.
6117         (vc_files): New variable.
6118         (func_import): Consider vc_files.
6119         (func_create_testdir): Set vc_files to empty.
6120         Suggested by Jim Meyering and Karl Berry.
6121
6122 2008-03-23  Bruno Haible  <bruno@clisp.org>
6123
6124         Fix regex compilation error on HP-UX 11.
6125         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
6126         * modules/regex (Files): Add m4/mbstate_t.m4.
6127         Reported by Ton Voon <ton.voon@altinity.com>.
6128
6129 2008-03-23  Bruno Haible  <bruno@clisp.org>
6130
6131         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
6132
6133 2008-03-23  Eric Blake  <ebb9@byu.net>
6134             Bruno Haible  <bruno@clisp.org>
6135
6136         Install files from top/ in the destination directory.
6137         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
6138         augmentation also for the files from top/.
6139         (func_import, func_create_testdir): Rewrite file names:
6140         top/filename -> filename.
6141
6142 2008-03-23  Bruno Haible  <bruno@clisp.org>
6143
6144         Tweak "gnulib --version" output.
6145         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
6146
6147 2008-03-23  Bruno Haible  <bruno@clisp.org>
6148
6149         Tweak "gnulib --version" output.
6150         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
6151         rather than contents of ChangeLog, when possible.
6152
6153 2008-03-21  Eric Blake  <ebb9@byu.net>
6154
6155         More --version tweaks.
6156         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
6157         date of last ChangeLog entry.
6158
6159 2008-03-21  Jim Meyering  <meyering@redhat.com>
6160
6161         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
6162
6163 2008-03-20  Eric Blake  <ebb9@byu.net>
6164
6165         VPATH fix.
6166         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
6167
6168 2008-03-20  Simon Josefsson  <simon@josefsson.org>
6169
6170         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
6171         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
6172
6173 2008-03-20  Eric Blake  <ebb9@byu.net>
6174
6175         Sync GNUmakefile with coreutils.
6176         * build-aux/GNUmakefile (have-Makefile): Rename...
6177         (_have-Makefile): ...to this, for namespace consideration.
6178         (GNUmakefile.cfg): Include, if present.
6179         (_autoreconf): Define a default.
6180         (_is-dist-target): New rule for rebuilds to pick up intra-release
6181         version.
6182         (maint-cfg.mk): Rename...
6183         (cfg.mk): ...to this.
6184
6185 2008-03-18  Jim Meyering  <meyering@redhat.com>
6186
6187         New script and module: mktempd
6188         * MODULES.html.sh (maint+release support): Add mktempd.
6189         * build-aux/mktempd: New file.
6190         * modules/mktempd: New file.
6191
6192 2008-03-15  Jim Meyering  <meyering@redhat.com>
6193
6194         Undo last change.
6195         * lib/sha1.c, lib/md5.c: 63 != ~63.
6196         Reported by Andreas Schwab.
6197
6198         sha1.c, md5.c: Hoist a redundant expression.
6199         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
6200         "ctx->buflen" only once, before calling *_process_block.
6201         * lib/md5.c (md5_process_bytes): Likewise.
6202
6203 2008-03-14  Eric Blake  <ebb9@byu.net>
6204
6205         Bump copyright year in files generated by gnulib-tool.
6206         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
6207         gnulib-tool, rather than hard-coding it.
6208
6209         Fix 'gnulib-tool --version' output to work with git.
6210         * gnulib-tool (func_gnulib_dir): New function, extracted from...
6211         (startup): ...here.
6212         (func_version): Use it to invoke git-version-gen, rather than
6213         relying on CVS keyword expansion.  Modernize wording.
6214         (cvsdatestamp, last_checkin_date, version): Kill unused
6215         variables.
6216
6217 2008-03-12  Jim Meyering  <meyering@redhat.com>
6218
6219         Recognize optional cast of the argument to free.
6220         * build-aux/useless-if-before-free: Update regexps.
6221
6222         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
6223
6224 2008-03-11  Bruno Haible  <bruno@clisp.org>
6225
6226         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
6227         by a single package.
6228         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
6229         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
6230         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
6231         Reported by Sam Steingold <sds@gnu.org>.
6232
6233 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
6234
6235         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
6236         repositories.
6237
6238 2008-03-11  Bruno Haible  <bruno@clisp.org>
6239
6240         Avoid conflicts between local macro definitions.
6241         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6242         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
6243
6244 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
6245             Bruno Haible  <bruno@clisp.org>
6246
6247         Make va_copy work with some version of xlc on AIX 5.1.
6248         * lib/stdarg.in.h: New file.
6249         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
6250         On AIX, use a <stdarg.h> file substitute.
6251         * modules/stdarg (Files): Add lib/stdarg.in.h.
6252         (Depends-on): Add include_next.
6253         (Makefile.am): Build a stdarg.h substitute if requested.
6254         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
6255
6256 2008-03-10  Bruno Haible  <bruno@clisp.org>
6257
6258         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
6259         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6260         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6261
6262 2008-03-10  Bruno Haible  <bruno@clisp.org>
6263
6264         * modules/stdlib (Depends-on): Add include_next, remove
6265         absolute-header.
6266
6267 2008-03-09  Bruno Haible  <bruno@clisp.org>
6268
6269         * lib/freadahead.h (freadahead): Document more precisely.
6270         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
6271         the sum of both buffer sizes.
6272         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
6273         * NEWS: Document the change.
6274
6275 2008-03-09  Bruno Haible  <bruno@clisp.org>
6276
6277         Extend freadptr to return also the buffer size.
6278         * lib/freadptr.h (freadptr): Add sizep argument.
6279         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
6280         (freadptr): Add sizep argument. Determine buffer size like freadahead
6281         does.
6282         * tests/test-freadptr.c: Don't include freadahead.h.
6283         (main): Adapt for new calling convention of freadptr.
6284         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
6285         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
6286         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
6287         tests/test-freadptr2.sh.
6288         (Depends): Remove freadahead.
6289         (TESTS): Add test-freadptr2.sh.
6290         (check_PROGRAMS): Add test-freadptr2.
6291
6292 2008-03-09  Bruno Haible  <bruno@clisp.org>
6293
6294         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
6295         Report and solution by Simon Josefsson.
6296
6297 2008-03-06  Bruno Haible  <bruno@clisp.org>
6298
6299         Make fflush after ungetc work on BSD platforms.
6300         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
6301         * tests/test-fflush2.c: New file.
6302         * tests/test-fflush2.sh: New file.
6303         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
6304         tests/test-fflush2.c.
6305         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
6306         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
6307
6308 2008-03-06  Eric Blake  <ebb9@byu.net>
6309
6310         Likewise for ftello.
6311         * modules/ftello (Dependencies): Add extensions.
6312         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
6313
6314 2008-03-06  Bruno Haible  <bruno@clisp.org>
6315
6316         * modules/fseeko (Dependencies): Add extensions.
6317         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
6318         Needed on glibc systems.
6319
6320 2008-03-06  Bruno Haible  <bruno@clisp.org>
6321
6322         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
6323         email address.
6324         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6325
6326 2008-03-06  Bruno Haible  <bruno@clisp.org>
6327
6328         * users.txt: Add libgnupdf.
6329
6330 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6331
6332         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
6333         (Header File Substitutes, Function Substitutes,
6334         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
6335         (Build robot for gnulib): Fix typo.
6336
6337 2008-03-06  Bruno Haible  <bruno@clisp.org>
6338
6339         * doc/gnulib-tool.texi (VCS Issues): Small updates.
6340         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6341
6342 2008-03-06  Bruno Haible  <bruno@clisp.org>
6343
6344         * doc/func.texi: New file, extracted from doc/gnulib.texi.
6345         * doc/gnulib.texi: Include it.
6346
6347 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6348
6349         * modules/func (License): Change license to unlimited; there was
6350         no LGPL parts in the module anyway.
6351
6352 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6353
6354         * modules/__func__: Renamed to modules/func.
6355         * modules/__func__-tests: Renamed to modules/func-tests.
6356         * tests/test-__func__.c: Renamed to tests/test-func.c.
6357         * m4/__func__.m4: Renamed to m4/func.m4.
6358         * doc/gnulib.texi (__func__): Section renamed to func.
6359         Suggested by Eric Blake <ebb9@byu.net>.
6360
6361 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6362
6363         * doc/gnulib.texi (__func__): Use C99 terminology when talking
6364         about __func__.  Make example self-contained.  Suggested by Eric
6365         Blake <ebb9@byu.net>.
6366
6367         * tests/test-__func__.c (main): Avoid extraneous () around __func.
6368         Suggested by Eric Blake <ebb9@byu.net>.
6369
6370 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6371
6372         * modules/__func__: New file.
6373         * modules/__func__-tests: New file.
6374         * tests/test-__func__.c: New file.
6375         * m4/__func__.m4: New file.
6376         * doc/gnulib.texi (__func__): Document __func__ module.
6377
6378 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6379
6380         * modules/byteswap (License): Re-license as LGPLv2+.
6381
6382 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6383
6384         * doc/Makefile: Add pdf target.
6385
6386 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6387
6388         * modules/inline (License): Use 'unlimited', since there are only
6389         *.m4 files in this module.
6390
6391 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6392             Bruno Haible  <bruno@clisp.org>
6393
6394         Add support for HP C 7.1 on OpenVMS 8.3.
6395         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
6396
6397 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6398
6399         Update VMS specifics.
6400         * lib/getopt.c [VMS]: Remove include of unixlib.h.
6401
6402 2008-03-02  Jim Meyering  <meyering@redhat.com>
6403
6404         Remove the last dependency on the "free" module.
6405         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
6406         Reported by Bob Proulx.
6407
6408         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
6409
6410         Remove useless "if" tests before free.  Deprecate "free" module.
6411         * doc/posix-functions/free.texi: Mention that this
6412         module is no longer useful.
6413         * modules/free (Notice): Say this module is obsolete.
6414         * modules/readutmp (Depends-on): Remove free.
6415         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
6416         * lib/putenv.c (putenv): Likewise.
6417         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
6418         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
6419         * tests/test-c-strcasestr.c (main): Likewise.
6420         * tests/test-c-strstr.c (main): Likewise.
6421         * tests/test-mbscasestr1.c (main): Likewise.
6422         * tests/test-mbscasestr2.c (main): Likewise.
6423         * tests/test-mbsstr1.c (main): Likewise.
6424         * tests/test-mbsstr2.c (main): Likewise.
6425         * tests/test-memmem.c (main): Likewise.
6426         * tests/test-strcasestr.c (main): Likewise.
6427         * tests/test-striconv.c (main): Likewise.
6428         * tests/test-striconveh.c (main): Likewise.
6429         * tests/test-striconveha.c (main): Likewise.
6430         * tests/test-strstr.c (main): Likewise.
6431
6432         * build-aux/git-version-gen: Adjust a comment and the Usage string.
6433
6434         bootstrap: sync from coreutils again
6435         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
6436
6437 2008-03-01  Jim Meyering  <meyering@redhat.com>
6438
6439         bootstrap: sync from coreutils
6440         * build-aux/bootstrap (update_po_files): Copy a .po file into place
6441         also when the target doesn't exist.
6442
6443 2008-03-01  Eric Blake  <ebb9@byu.net>
6444
6445         Fix bugs in last patch.
6446         * lib/memchr2.c (memchr2): Fix typo.
6447         * tests/test-memchr2.c: Test previous bug, and don't use GNU
6448         extension.
6449         Reported by Bruce Korb.
6450
6451         New module 'memchr2'.
6452         * modules/memchr2: New file.
6453         * modules/memchr2-tests: Likewise.
6454         * lib/memchr2.h: Likewise.
6455         * lib/memchr2.c: Likewise, based on memchr.c.
6456         * tests/test-memchr2.c: New test.
6457         * MODULES.html.sh (String handling): Add memchr2.
6458
6459 2008-02-29  Bruno Haible  <bruno@clisp.org>
6460
6461         * modules/freadseek-tests: New file.
6462         * tests/test-freadseek.sh: New file.
6463         * tests/test-freadseek.c: New file.
6464
6465         New module 'freadseek'.
6466         * modules/freadseek: New file.
6467         * lib/freadseek.h: New file.
6468         * lib/freadseek.c: New file.
6469         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
6470
6471 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
6472
6473         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
6474         wydawca.
6475
6476         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
6477         program_invocation_name and program_invocation_short_name are
6478         present.
6479
6480 2008-02-28  Bruno Haible  <bruno@clisp.org>
6481
6482         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
6483         * tests/test-freadptr.sh: Also test non-seekable stdin.
6484
6485 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
6486
6487         * build-aux/bootstrap (source_base, m4_base)
6488         (doc_base, tests_base): New variables.
6489         (gnulib_tool_options): Do not hardcode base directories, use
6490         the above variables instead.
6491
6492 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
6493
6494         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
6495
6496 2008-02-28  Bruno Haible  <bruno@clisp.org>
6497
6498         * modules/freadptr-tests: New file.
6499         * tests/test-freadptr.sh: New file.
6500         * tests/test-freadptr.c: New file.
6501
6502         New module 'freadptr'.
6503         * modules/freadptr: New file.
6504         * lib/freadptr.h: New file.
6505         * lib/freadptr.c: New file.
6506         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
6507
6508 2008-02-26  Karl Berry  <karl@freefriends.org>
6509
6510         Sync from Libtool:
6511         * libltdl/argz.c (argz_add, argz_count): New functions.
6512         * libltdl/argz.in.h: Declare them.
6513         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
6514
6515 2008-02-22  Bruno Haible  <bruno@clisp.org>
6516
6517         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
6518         is a pointer type.  Needed for HP-UX 10.
6519         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
6520         * doc/posix-functions/gmtime_r.texi: Likewise.
6521         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6522
6523 2008-02-24  Bruno Haible  <bruno@clisp.org>
6524
6525         * modules/environ-tests: New file.
6526         * tests/test-environ.c: New file.
6527
6528         New module 'environ'.
6529         * modules/environ: New file.
6530         * lib/unistd.in.h (environ): New declaration.
6531         * m4/environ.m4: New file.
6532         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
6533         after use.
6534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
6535         HAVE_DECL_ENVIRON.
6536         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
6537         HAVE_DECL_ENVIRON.
6538         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
6539         wrong claim that 'environ' is missing on some systems.
6540         * modules/execute (Depends-on): Add environ.
6541         * lib/execute.c (environ): Remove fallback declaration.
6542         * modules/pipe (Depends-on): Add environ.
6543         * lib/pipe.c (environ): Remove fallback declaration.
6544         * modules/setenv (Depends-on): Add environ.
6545         * lib/setenv.c (environ): Remove fallback declaration.
6546         * modules/unsetenv (Depends-on): Add environ.
6547         * lib/unsetenv.c (environ): Remove fallback declaration.
6548         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
6549         m4/environ.m4.
6550         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
6551         (gl_PREREQ_UNSETENV): Likewise.
6552
6553 2008-02-24  Bruno Haible  <bruno@clisp.org>
6554
6555         * doc/posix-functions/environ.texi: Document the MacOS X problem.
6556
6557 2008-02-20  Bob Proulx  <bob@proulx.com>
6558
6559         Enable use of older two part flavor 'git describe'.
6560         * build-aux/git-version-gen: If using the older two part flavor of
6561         git version then recreate the third part now present in the
6562         newer three part flavor of git describe.
6563
6564 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
6565
6566         * lib/fts.c (fts_build): Typo correction to comment.
6567
6568 2008-02-17  Bruno Haible  <bruno@clisp.org>
6569
6570         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
6571         generating no-op conflicts.
6572
6573 2008-02-17  Bruno Haible  <bruno@clisp.org>
6574
6575         Speed up by 10%.
6576         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
6577         result_entries, rather than an index-based loop.
6578
6579 2008-02-17  Bruno Haible  <bruno@clisp.org>
6580
6581         Speed up by 25%.
6582         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
6583         'hashcode_cached'.
6584         (entry_create): New function.
6585         (entry_hashcode): Use the cached hashcode if possible.
6586         (read_changelog_file, try_split_merged_entry): Use entry_create.
6587
6588 2008-02-17  Bruno Haible  <bruno@clisp.org>
6589
6590         Speed up from O(n^2) to O(n) for long ChangeLog files.
6591         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
6592         (read_changelog_file): Change implementation of entries_reversed list
6593         to rbtreehash.
6594         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
6595
6596 2008-02-17  Bruno Haible  <bruno@clisp.org>
6597
6598         New option --split-merged-entry.
6599         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
6600         (find_paragraph_end, try_split_merged_entry): New functions.
6601         (long_options): Add option --split-merged-entry.
6602         (usage): Document option --split-merged-entry.
6603         (main): Implement option --split-merged-entry.
6604         Reported by Eric Blake.
6605
6606 2008-02-17  Bruno Haible  <bruno@clisp.org>
6607
6608         * lib/git-merge-changelog.c: Include c-strstr.h.
6609         (main): Support the "git pull --rebase" situation.
6610         * modules/git-merge-changelog (Depends-on): Add c-strstr.
6611         Reported by Eric Blake.
6612
6613 2008-02-16  Eric Blake  <ebb9@byu.net>
6614
6615         Avoid doubling \ in common case of "c-maybe" quoting style.
6616         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
6617         eliding outer quotes.
6618         * lib/quotearg.h: Document this.
6619         * tests/test-quotearg.c (result_strings, inputs, results_g)
6620         (flag_results, locale_results): Test it by adding a new string to
6621         each test group.
6622         (compare_strings): Test new string.
6623
6624 2008-02-13  Eric Blake  <ebb9@byu.net>
6625
6626         Avoid trigraph quoting in default output.
6627         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
6628         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
6629         unless explicitly requested.
6630         * tests/test-quotearg.c (flag_results, main): Add additional tests.
6631
6632 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
6633
6634         Don't rely on signed integer overflowing to negative value.
6635         * lib/getugroups.c (getugroups): Include <limits.h>.
6636         Instead, compare against INT_MAX, and increment only if the test passes.
6637
6638 2008-02-13  Jim Meyering  <meyering@redhat.com>
6639         and Eric Blake  <ebb9@byu.net>
6640
6641         Avoid shadowing warning and compile errors on Linux.
6642         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
6643         forwarding macros on Linux.
6644         (dcgettext): Define a stub, for Linux.
6645         (results_g, main): Avoid warnings.
6646
6647 2008-02-12  Eric Blake  <ebb9@byu.net>
6648
6649         Silence warning in last patch.
6650         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
6651
6652         Quotearg part 4: add tests, fix c-maybe colon quoting.
6653         * lib/quotearg.h: Improve documentation.
6654         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
6655         escapes when adding outer quotes.  When quoting trigraphs, use
6656         valid C notation.  When quoting NUL, omit extra characters if next
6657         character is not digit.  Alter prototype.
6658         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
6659         callers.
6660         * modules/quotearg-tests: New module.
6661         * tests/test-quotearg.c: New test.
6662
6663 2008-02-07  Eric Blake  <ebb9@byu.net>
6664
6665         Quotearg part 3: add flag to control outer quote elision.
6666         * lib/quotearg.h (c_maybe_quoting_style): New style.
6667         (enum quoting_flags): Better documentation of flags.
6668         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
6669         c-maybe style.
6670         (quotearg_buffer_restyled): Handle new flag to elide outer
6671         quotes.
6672
6673         Quotearg part 2: add flag that can control NUL elision.
6674         * lib/quotearg.h (set_quoting_flags): New prototype.
6675         * lib/quotearg.c (struct quoting_options): Add flag field.
6676         (set_quoting_flags): New function.
6677         (quotearg_buffer_restyled): Add flags parameter.
6678         (quotearg_alloc_mem): Set the flag if length cannot be returned.
6679         (quotearg_n_options): Set the flag, since length cannot be
6680         returned.
6681         (quoting_options_from_style): Default flags correctly.
6682
6683         Quotearg part 1: more wrappers, restore quotearg_char state.
6684         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
6685         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
6686         (quotearg_colon_mem): New wrappers.
6687         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
6688         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
6689         functions.
6690         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
6691         (quotearg_colon_mem): New functions.
6692
6693 2008-02-11  Bruno Haible  <bruno@clisp.org>
6694
6695         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
6696         library in the current directory: it does not work with parallel make.
6697         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6698
6699 2008-02-11  Bruno Haible  <bruno@clisp.org>
6700
6701         * .gitattributes: New file.
6702
6703 2008-02-11  Jim Meyering  <meyering@redhat.com>
6704
6705         useless-if-before-free: Fix reversed exit values.
6706         * build-aux/useless-if-before-free: Use correct values
6707         for EXIT_MATCH and EXIT_NO_MATCH.
6708
6709         * build-aux/useless-if-before-free: Close stdout carefully.
6710
6711 2008-02-10  Bruno Haible  <bruno@clisp.org>
6712
6713         New module 'git-merge-changelog'.
6714         * modules/git-merge-changelog: New file.
6715         * lib/git-merge-changelog.c: New file.
6716
6717 2008-02-10  Jim Meyering  <meyering@redhat.com>
6718
6719         useless-if-before-free: New option: --list (-l).
6720
6721         useless-if-before-free: Don't exit immediately upon open failure.
6722         * build-aux/useless-if-before-free: Exit 2 for errors.
6723         Upon failure to open a file, don't exit immediately.
6724         Rather, just warn and continue with any remaining files.
6725
6726 2008-02-10  Bruno Haible  <bruno@clisp.org>
6727
6728         New abstract list operation 'node_set_value'.
6729         * lib/gl_list.h (gl_list_node_set_value): New function.
6730         (struct gl_list_implementation): New field node_set_value.
6731         * lib/gl_list.c (gl_list_node_set_value): New function.
6732         * lib/gl_array_list.c (gl_array_node_set_value): New function.
6733         (gl_array_list_implementation): Update.
6734         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
6735         (gl_carray_list_implementation): Update.
6736         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
6737         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6738         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6739         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
6740         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6741         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6742         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6743         Update.
6744         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
6745         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
6746         (gl_sublist_list_implementation): Update.
6747
6748 2008-02-10  Bruno Haible  <bruno@clisp.org>
6749
6750         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
6751         Needed when ELEMENT is #defined to 'some_type *'.
6752
6753 2008-02-10  Jim Meyering  <meyering@redhat.com>
6754
6755         New script and module: useless-if-before-free
6756         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
6757         * build-aux/useless-if-before-free: New file.
6758         * modules/useless-if-before-free: New file.
6759
6760         * build-aux/gitlog-to-changelog: Use committer date, not author date.
6761
6762         xstrtol_error: Fix typo.
6763         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
6764         s/exit_failure/exit_status/.
6765
6766 2008-02-09  Jim Meyering  <meyering@redhat.com>
6767
6768         New script and module: gitlog-to-changelog
6769         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
6770         * modules/gitlog-to-changelog: New file.
6771         * build-aux/gitlog-to-changelog: New file.
6772
6773 2008-02-08  Jim Meyering  <meyering@redhat.com>
6774
6775         Avoid two "parameter unused" warnings.
6776         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
6777         Mark "st" as used.
6778
6779         Use "git COMMAND", not "git-COMMAND".
6780         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
6781         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
6782         * build-aux/git-version-gen: Use "git status", not "git-status".
6783
6784 2008-02-07  Bruno Haible  <bruno@clisp.org>
6785
6786         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
6787         Avoids a crash on Windows Vista.
6788         Reported by Adam Strzelecki <ono@java.pl> via
6789         Simon Josefsson <simon@josefsson.org>.
6790
6791 2008-02-06  Bruno Haible  <bruno@clisp.org>
6792
6793         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
6794         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
6795         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
6796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
6797         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6798         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6799         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
6800         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
6801         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6802         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6803         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6804         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6805         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6806         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6807         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6808         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
6809         left-adjust flag.
6810         * tests/test-snprintf-posix.h (test_function): Likewise.
6811         * tests/test-sprintf-posix.h (test_function): Likewise.
6812         * tests/test-vasprintf-posix.c (test_function): Likewise.
6813         * doc/posix-functions/fprintf.texi: Update.
6814         * doc/posix-functions/printf.texi: Update.
6815         * doc/posix-functions/snprintf.texi: Update.
6816         * doc/posix-functions/sprintf.texi: Update.
6817         * doc/posix-functions/vfprintf.texi: Update.
6818         * doc/posix-functions/vprintf.texi: Update.
6819         * doc/posix-functions/vsnprintf.texi: Update.
6820         * doc/posix-functions/vsprintf.texi: Update.
6821         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6822
6823 2008-02-06  Bruno Haible  <bruno@clisp.org>
6824
6825         Fix bug introduced on 2008-01-26.
6826         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
6827
6828 2008-02-06  Bruno Haible  <bruno@clisp.org>
6829
6830         Fix bug introduced on 2007-06-10.
6831         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
6832         !NEED_PRINTF_FLAG_ZERO.
6833
6834 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
6835
6836         getloadavg: use libperfstat on AIX5
6837         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
6838
6839 2008-02-03  Bruno Haible  <bruno@clisp.org>
6840
6841         * lib/diffseq.h: Add comments about required #includes.
6842         Reported by Michael Biggs <gnulib@doubleplum.net>.
6843
6844 2008-02-01  Bruno Haible  <bruno@clisp.org>
6845
6846         * users.txt: Add gnuit.
6847
6848 2008-01-31  Bruno Haible  <bruno@clisp.org>
6849
6850         * lib/md4.c (set_uint32): Mark as inline.
6851         * lib/md5.c (set_uint32): Likewise.
6852         * lib/sha1.c (set_uint32): Likewise.
6853         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
6854         * m4/md5.m4 (gl_MD5): Likewise.
6855         * m4/sha1.m4 (gl_SHA1): Likewise.
6856
6857 2008-01-31  Jim Meyering  <meyering@redhat.com>
6858
6859         Use "sizeof VAR", rather than a literal "4".
6860         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
6861         * lib/md4.c (md4_read_ctx): Likewise.
6862         * lib/sha1.c (sha1_read_ctx): Likewise.
6863
6864 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6865
6866         * tests/test-sha1.c: New file, based on test-md5.c.
6867
6868         * modules/crypto/sha1-tests: New file.
6869
6870 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6871
6872         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
6873
6874 2008-01-31  Jim Meyering  <meyering@redhat.com>
6875
6876         Prefer "sizeof v" over the equivalent "4".
6877         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
6878         * lib/md5.c (set_uint32): Likewise.
6879         * lib/sha1.c (set_uint32): Likewise.
6880
6881 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6882
6883         * lib/sha1.c (set_uint32): Mark function as static.
6884
6885 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6886
6887         md2: clarify comments to say that alignment is not required.
6888         * lib/md2.h: Remove warning about alignment in comment.
6889         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
6890         never been required.
6891
6892 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6893
6894         md4: adapt alignment constraint fix from sha1.
6895         * lib/md4.c (set_uint32): New function, from sha1.c
6896         (md4_read_ctx): Use it.
6897         (md4_finish_ctx): Doc fix.
6898         * lib/md4.h: Doc fix.
6899
6900 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6901
6902         md5: adapt alignment constraint fix from sha1.
6903         * lib/md5.c (set_uint32): New function, from sha1.c
6904         (md5_read_ctx): Use it.
6905         (md5_finish_ctx): Doc fix.
6906         * lib/md5.h: Doc fix.
6907
6908 2008-01-30  Peter Palfrader  <weasel@debian.org>
6909
6910         sha1: remove the result buffer alignment constraint
6911         * lib/sha1.c (set_uint32): New function.
6912         (sha1_read_ctx): Rewrite to remove the result buffer alignment
6913         constraint.
6914         (sha1_finish_ctx): Remove comment warning about alignment constraint.
6915         * lib/sha1.h: Likewise.
6916
6917 2008-01-30  Andreas Schwab  <schwab@suse.de>
6918             Bruno Haible  <bruno@clisp.org>
6919
6920         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
6921         correct definition of LDBL_MIN_EXP.
6922
6923 2008-01-30  Karl Berry  <karl@gnu.org>
6924
6925         * config/srclist-update: try to preserve x bit on updates.
6926         * config/srclistvars.sh: update for karl.
6927
6928 2008-01-29  Jim Meyering  <meyering@redhat.com>
6929
6930         vasnprintf.c: Avoid warning about unused label
6931         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
6932         "overflow" label definition and associated code with the
6933         same cpp condition that guards the sole use of that label.
6934
6935 2008-01-26  Bruno Haible  <bruno@clisp.org>
6936
6937         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6938         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
6939         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
6940         * lib/isnanl-nolibm.h (isnanl): Likewise.
6941         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6942
6943 2008-01-26  Bruno Haible  <bruno@clisp.org>
6944
6945         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
6946         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
6947
6948 2008-01-26  Bruno Haible  <bruno@clisp.org>
6949
6950         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
6951         GCC >= 4.0 built-in.
6952         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
6953
6954 2008-01-26  Bruno Haible  <bruno@clisp.org>
6955
6956         Rename isnan, applicable to 'double' only, to isnand.
6957         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
6958         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
6959         (configure.ac): Update.
6960         (Include): Replace "isnan.h" with "isnand.h".
6961         * m4/isnand.m4: Renamed from m4/isnan.m4.
6962         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
6963         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
6964         instead of isnan.c.
6965         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
6966         instead of HAVE_ISNAN_IN_LIBC.
6967         (isnand): Renamed from isnan.
6968         * lib/isnand.c: New file.
6969         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
6970         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
6971         (Makefile.am): Update.
6972         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
6973         Include isnand.h instead of isnan.h.
6974         (main): Test isnand instead of isnan.
6975         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
6976         isnan-nolibm.
6977         * modules/frexp (Depends-on): Likewise.
6978         * modules/frexp-tests (Depends-on): Likewise.
6979         * modules/frexp-nolibm (Depends-on): Likewise.
6980         * modules/frexp-nolibm-tests (Depends-on): Likewise.
6981         * modules/isfinite (Depends-on): Likewise.
6982         * modules/round-tests (Depends-on): Likewise.
6983         * modules/signbit (Depends-on): Likewise.
6984         * modules/signbit-tests (Depends-on): Likewise.
6985         * modules/snprintf-posix (Depends-on): Likewise.
6986         * modules/sprintf-posix (Depends-on): Likewise.
6987         * modules/trunc-tests (Depends-on): Likewise.
6988         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6989         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6990         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6991         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6992         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6993         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6994         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6995         * modules/vasnprintf-posix (Depends-on): Likewise.
6996         * modules/vasprintf-posix (Depends-on): Likewise.
6997         * modules/vfprintf-posix (Depends-on): Likewise.
6998         * modules/vsnprintf-posix (Depends-on): Likewise.
6999         * modules/vsprintf-posix (Depends-on): Likewise.
7000         * lib/frexp.c: Include isnand.h instead of isnan.h.
7001         (ISNAN): Set to isnand instead of isnan.
7002         * lib/isfinite.c: Include isnand.h instead of isnan.h.
7003         (gl_isfinited): Use isnand instead of isnan.
7004         * lib/signbitd.c: Include isnand.h instead of isnan.h.
7005         (gl_signbitd): Use isnand instead of isnan.
7006         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
7007         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
7008         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
7009         (main): Use isnand instead of isnan.
7010         * tests/test-round1.c: Include isnand.h.
7011         (main): Use isnand instead of isnan.
7012         * tests/test-round2.c: Include isnand.h instead of isnan.h.
7013         (ISNAN): Set to isnand instead of isnan.
7014         * tests/test-trunc1.c: Include isnand.h.
7015         (main): Use isnand instead of isnan.
7016         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
7017         (equal): Use isnand instead of isnan.
7018         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
7019         isnand-nolibm.
7020         * NEWS: Mention the change.
7021
7022 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7023             Bruno Haible  <bruno@clisp.org>
7024
7025         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
7026         the GCC builtins for signbits are present and set
7027         REPLACE_SIGNBIT_USING_GCC if so.
7028         * lib/math.in.h (signbit): Define using GCC builtins if
7029         REPLACE_SIGNBIT_USING_GCC is set.
7030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
7031         REPLACE_SIGNBIT_USING_GCC.
7032         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
7033
7034 2008-01-25  Jim Meyering  <meyering@redhat.com>
7035
7036         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
7037         * lib/poll.c: Include <config.h>, not "config.h".
7038         * tests/test-getaddrinfo.c: Likewise.
7039
7040 2008-01-25  Simon Josefsson  <simon@josefsson.org>
7041
7042         * modules/sockets-tests: New file.
7043
7044 2008-01-24  Simon Josefsson  <simon@josefsson.org>
7045
7046         * modules/sockets: New module, can be used to call WSA_Startup and
7047         WSA_Cleanup when needed.
7048
7049         * lib/sockets.h, lib/sockets.c: New files.
7050
7051         * m4/sockets.m4: New file.
7052
7053         * tests/test-sockets.c: New file.
7054
7055 2008-01-19  Bruno Haible  <bruno@clisp.org>
7056
7057         * doc/posix-headers: Renamed from doc/headers.
7058         * doc/posix-functions: Renamed from doc/functions.
7059         * doc/gnulib.texi: Update.
7060
7061 2008-01-19  Bruno Haible  <bruno@clisp.org>
7062
7063         * doc/glibc-functions/strcasestr.texi: Include contents of
7064         doc/functions/strcasestr.texi, fixing the list of platforms.
7065         * doc/functions/strcasestr.texi: Remove file.
7066
7067 2008-01-19  Bruno Haible  <bruno@clisp.org>
7068
7069         * doc/glibc-functions/memmem.texi: Include contents of
7070         doc/functions/memmem.texi.
7071         * doc/functions/memmem.texi: Remove file.
7072
7073 2008-01-18  Bruno Haible  <bruno@clisp.org>
7074
7075         * doc/glibc-functions/*.texi: New files.
7076         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
7077         to use the new files.
7078
7079 2008-01-17  Bruno Haible  <bruno@clisp.org>
7080
7081         * tests/test-gethostname.c (main): Fix printf statement.
7082
7083 2008-01-17  Simon Josefsson  <simon@josefsson.org>
7084
7085         * modules/gethostname-tests: New file.
7086
7087         * tests/test-gethostname.c: New file.
7088
7089 2008-01-17  Simon Josefsson  <simon@josefsson.org>
7090
7091         * lib/gethostname.c: Include string.h unconditionally, strncpy is
7092         used by the UNAME case.  Reported by Bruno Haible
7093         <bruno@clisp.org>.
7094
7095 2008-01-17  Eric Blake  <ebb9@byu.net>
7096
7097         Convert c-strcasestr to be more efficient.
7098         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
7099         (Depends-on): Add c-strcase, remove malloca, strnlen.
7100         * tests/test-c-strcasestr.c (main): Enhance test.
7101         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
7102
7103 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
7104
7105         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
7106         Use it in creating po/Makevars.
7107
7108 2008-01-15  Simon Josefsson  <simon@josefsson.org>
7109
7110         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
7111         Applications that requires it should initialize libgcrypt
7112         manually.
7113
7114 2008-01-16  Simon Josefsson  <simon@josefsson.org>
7115
7116         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
7117
7118 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7119
7120         Fix problem with getdate on mingw32 reported by Simon Josefsson
7121         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
7122         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
7123         tzname", when deciding whether to declare tzname.
7124         * lib/strftime.c (tzname): Likewise.
7125
7126 2008-01-15  Bruno Haible  <bruno@clisp.org>
7127
7128         Work around a MacOS X 10.5 bug in frexpl().
7129         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
7130         * doc/functions/frexpl.texi: Document the bug.
7131         Reported by Elias Pipping <pipping@gentoo.org>.
7132
7133 2008-01-14  Eric Blake  <ebb9@byu.net>
7134
7135         Touch up previous patch.
7136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
7137         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
7138
7139         Convert strcasestr module to use Two-Way algorithm.
7140         * modules/strcasestr-simple: New module, based on the old
7141         strcasestr, but with Two-Way rather than KMP.
7142         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
7143         * lib/string.in.h (rpl_strcasestr): Declare.
7144         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
7145         performance.
7146         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
7147         * modules/string (Makefile.am): Support strcasestr.
7148         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
7149         * modules/strcasestr-tests (Depends-on): Check for alarm.
7150         * tests/test-strcasestr.c: Augment test.
7151         * lib/str-two-way.h: Clean up stray macro.
7152         * NEWS: Document new module.
7153         * MODULES.html.sh (string handling): Likewise.
7154         * doc/functions/strcasestr.texi: New file.
7155         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
7156         here, since it is not a POSIX function.
7157
7158 2008-01-14  Colin Watson  <cjwatson@debian.org>
7159             Bruno Haible  <bruno@clisp.org>
7160
7161         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
7162         works fine; if not, set REPLACE_STRSIGNAL.
7163         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
7164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7165         REPLACE_STRSIGNAL.
7166         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
7167         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
7168         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
7169
7170 2008-01-14  Bruno Haible  <bruno@clisp.org>
7171
7172         * modules/strsignal (Include): Change to <string.h>.
7173
7174 2008-01-14  Colin Watson  <cjwatson@debian.org>
7175
7176         * modules/argp (Notice): Add a notice recommending to change
7177         XGETTEXT_OPTIONS.
7178         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
7179
7180 2008-01-13  Colin Watson  <cjwatson@debian.org>
7181
7182         * modules/strsignal-tests: New file.
7183         * tests/test-strsignal.c: New file.
7184
7185         * lib/strsignal.c: New file, from glibc with modifications.
7186         * lib/siglist.h: New file, from glibc with modifications.
7187         * lib/string.in.h (strsignal): New declaration.
7188         * m4/strsignal.m4: New file.
7189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7190         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
7191         * modules/strsignal: New file.
7192         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
7193         HAVE_DECL_STRSIGNAL.
7194
7195 2008-01-13  Bruno Haible  <bruno@clisp.org>
7196
7197         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
7198         locale encoding is not ASCII. Needed for OpenBSD 4.0.
7199         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7200         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7201
7202 2008-01-13  Bruno Haible  <bruno@clisp.org>
7203
7204         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
7205         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
7206         * lib/argp.h (__attribute__): Likewise.
7207         * lib/c-stack.c (__attribute__): Likewise.
7208         * lib/error.h (__attribute__): Likewise.
7209         * lib/fts.c (__attribute__): Likewise.
7210         * lib/openat.h (__attribute__): Likewise.
7211         * lib/stdio.in.h (__attribute__): Likewise.
7212         * lib/string.in.h (__attribute__): Likewise.
7213         * lib/utimens.c (__attribute__): Likewise.
7214         * lib/vasnprintf.h (__attribute__): Likewise.
7215         * lib/xalloc.h (__attribute__): Likewise.
7216         * lib/xprintf.h (__attribute__): Likewise.
7217         * lib/xstrtol.h (__attribute__): Likewise.
7218         * lib/xvasprintf.h (__attribute__): Likewise.
7219
7220 2008-01-12  Bruno Haible  <bruno@clisp.org>
7221
7222         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
7223         * doc/glibc-headers/a.out.texi: New file.
7224         * doc/glibc-headers/aliases.texi: New file.
7225         * doc/glibc-headers/alloca.texi: New file.
7226         * doc/glibc-headers/ar.texi: New file.
7227         * doc/glibc-headers/argp.texi: New file.
7228         * doc/glibc-headers/argz.texi: New file.
7229         * doc/glibc-headers/byteswap.texi: New file.
7230         * doc/glibc-headers/crypt.texi: New file.
7231         * doc/glibc-headers/endian.texi: New file.
7232         * doc/glibc-headers/envz.texi: New file.
7233         * doc/glibc-headers/err.texi: New file.
7234         * doc/glibc-headers/error.texi: New file.
7235         * doc/glibc-headers/execinfo.texi: New file.
7236         * doc/glibc-headers/fpu_control.texi: New file.
7237         * doc/glibc-headers/fstab.texi: New file.
7238         * doc/glibc-headers/fts.texi: New file.
7239         * doc/glibc-headers/getopt.texi: New file.
7240         * doc/glibc-headers/ieee754.texi: New file.
7241         * doc/glibc-headers/ifaddrs.texi: New file.
7242         * doc/glibc-headers/libintl.texi: New file.
7243         * doc/glibc-headers/mcheck.texi: New file.
7244         * doc/glibc-headers/mntent.texi: New file.
7245         * doc/glibc-headers/obstack.texi: New file.
7246         * doc/glibc-headers/paths.texi: New file.
7247         * doc/glibc-headers/printf.texi: New file.
7248         * doc/glibc-headers/pty.texi: New file.
7249         * doc/glibc-headers/resolv.texi: New file.
7250         * doc/glibc-headers/shadow.texi: New file.
7251         * doc/glibc-headers/sysexits.texi: New file.
7252         * doc/glibc-headers/ttyent.texi: New file.
7253
7254 2008-01-12  Jim Meyering  <meyering@redhat.com>
7255
7256         announce-gen: emit Gnulib's git-based version string.
7257         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
7258         New option --gnulib-version=V, where V is expected to be
7259         the output of running git describe in the gnulib directory.
7260         (get_tool_versions): Request feedback on xdelta.  I suspect it's
7261         not useful, and plan to stop publishing an xdelta file with each
7262         coreutils release.
7263
7264         * build-aux/announce-gen: Also check for lzma-compressed files.
7265
7266 2008-01-11  Bruno Haible  <bruno@clisp.org>
7267
7268         * tests/test-memmem.c (main): Increase maximum allowed time.
7269         * tests/test-strstr.c (main): Likewise.
7270
7271 2008-01-11  Bruno Haible  <bruno@clisp.org>
7272
7273         * doc/functions/memmem.texi: Add more precisions about platforms.
7274         * doc/functions/strstr.texi: Likewise.
7275
7276 2008-01-10  Eric Blake  <ebb9@byu.net>
7277
7278         * m4/strstr.m4: Delete cruft from copy-n-paste.
7279         Reported by Bruno Haible.
7280
7281 2008-01-10  Bruno Haible  <bruno@clisp.org>
7282
7283         Make c-strstr rely on strstr.
7284         * lib/c-strstr.c: Don't include str-kmp.h.
7285         (c_strstr): Define in terms of strstr.
7286         * modules/c-strstr (Files): Remove lib/str-kmp.h.
7287         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
7288
7289 2008-01-10  Bruno Haible  <bruno@clisp.org>
7290
7291         * doc/gnulib.texi (String Functions in C Locale): New section.
7292         * doc/c-ctype.texi: New file.
7293         * doc/c-strcase.texi: New file.
7294         * doc/c-strcaseeq.texi: New file.
7295         * doc/c-strcasestr.texi: New file.
7296         * doc/c-strstr.texi: New file.
7297         * doc/c-strtod.texi: New file.
7298         * doc/c-strtold.texi: New file.
7299
7300 2008-01-10  Eric Blake  <ebb9@byu.net>
7301
7302         * lib/relocatable.h: Fix a comment.
7303
7304 2008-01-10  Eric Blake  <ebb9@byu.net>
7305
7306         Share two-way algorithm.
7307         * lib/str-two-way.h: New file, merged from...
7308         * lib/memmem.c: ...here...
7309         * lib/strstr.c: ...and here.
7310         * modules/memmem (Files): Use it.
7311         * modules/strstr (Files): Likewise.
7312
7313         Avoid quadratic strstr implementations.
7314         * lib/strstr.c: New file.
7315         * m4/strstr.m4: Likewise.
7316         * modules/strstr: Likewise.
7317         * modules/strstr-tests: Likewise.
7318         * tests/test-strstr.c: Likewise.
7319         * lib/string.in.h (rpl_strstr): Declare.
7320         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
7321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
7322         * modules/string (Makefile.am): Likewise.
7323         * MODULES.html.sh (string handling): Mention new module.
7324         * doc/functions/strstr.texi (strstr): Document the bug.
7325
7326 2008-01-10  Bruno Haible  <bruno@clisp.org>
7327
7328         * lib/relocatable.h (relocate): State whether result is freshly
7329         allocated or not.
7330         * lib/relocatable.c (relocate): Return a freshly allocated string
7331         instead of a pointer to a privately held string.
7332         Reported by Sylvain Beucler <beuc@gnu.org>.
7333
7334 2008-01-10  Colin Watson  <cjwatson@debian.org>
7335
7336         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
7337         s/S_ISNLK/S_ISLNK/.
7338
7339 2008-01-09  Bruno Haible  <bruno@clisp.org>
7340
7341         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
7342         and other files.
7343         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
7344         if it's only a guess.
7345         * modules/memmem: Simplify by depending on memmem-simple.
7346
7347 2008-01-09  Bruno Haible  <bruno@clisp.org>
7348
7349         Work around OpenBSD 4.0 tdelete() bug.
7350         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
7351         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
7352         macros and don't redefine the enum values.
7353         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
7354         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
7355         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
7356
7357 2008-01-09  Bruno Haible  <bruno@clisp.org>
7358
7359         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
7360         (main): Don't perform the tests if setlocale did not install a UTF-8
7361         locale. Needed on OpenBSD 4.0.
7362         * modules/wcwidth-tests (Depends-on): Add localcharset.
7363
7364 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7365
7366         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
7367         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
7368         * NEWS: announce this.
7369         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
7370
7371 2008-01-09  Simon Josefsson  <simon@josefsson.org>
7372         and Eric Blake  <ebb9@byu.net>
7373
7374         Add memmem-simple module.
7375         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
7376         (gl_FUNC_MEMMEM): Separate performance from presence checks.
7377         * modules/memmem-simple: New file.
7378         * modules/memmem (Description): Tweak.
7379         * MODULES.html.sh (string handling): Mention new module.
7380         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
7381         addressed by memmem-simple.
7382         * NEWS: Document the difference.
7383
7384 2008-01-09  Eric Blake  <ebb9@byu.net>
7385
7386         Give gcc some memmem optimization hints.
7387         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
7388         (strcasestr): Declare as pure.
7389         * modules/memmem (Maintainer): Claim my implementation.
7390
7391 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7392
7393         Support AIX 6.1 and higher.
7394         * build-aux/config.libpath: Likewise.
7395         * build-aux/config.rpath: Likewise.
7396
7397 2008-01-08  Jim Meyering  <meyering@redhat.com>
7398             Bruno Haible  <bruno@clisp.org>
7399
7400         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
7401         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
7402         Reported by Peter Fales in
7403         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
7404
7405 2008-01-08  Bruno Haible  <bruno@clisp.org>
7406
7407         * modules/unictype/category-of (Depends-on): Add
7408         unictype/category-none.
7409         * modules/unictype/category-and-tests (Depends-on): Add
7410         unictype/category-{L,N,Lu,Nd}.
7411         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
7412         * modules/unictype/category-or-tests (Depends-on): Add
7413         unictype/category-{L,N}.
7414         * modules/unictype/category-name-tests (Depends-on): Add
7415         unictype/category-{Z,Nl}.
7416         Reported by Simon Josefsson.
7417
7418 2008-01-08  Bruno Haible  <bruno@clisp.org>
7419
7420         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
7421         convention better.
7422         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
7423         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
7424         Reported by Peter Miller <millerp@canb.auug.org.au>.
7425
7426 2008-01-08  Eric Blake  <ebb9@byu.net>
7427
7428         Rewrite memmem to guarantee linear complexity without malloc.
7429         * lib/memmem.c (memmem): Use Two-Way rather than
7430         Knuth-Morris-Pratt, to allow O(1) space usage.
7431         (critical_factorization, two_way_short_needle)
7432         (two_way_long_needle): New functions.
7433         (knuth_morris_pratt): Delete.
7434         * modules/memmem (Depends-on): No longer need malloca or stdbool.
7435         Add stdint.
7436         * tests/test-memmem.c (main): Add tests for periodic needle and
7437         sublinear performance.
7438         * doc/functions/memmem.texi (memmem): Document other deficiencies
7439         in cygwin and older glibc.
7440
7441 2008-01-08  Bruno Haible  <bruno@clisp.org>
7442
7443         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
7444         augmentation.
7445
7446 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
7447
7448         Add a configure time option: --disable-acl.
7449         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
7450         AC_ARG_ENABLE(acl).
7451
7452 2008-01-06  Simon Josefsson  <simon@josefsson.org>
7453
7454         * tests/test-localename.c: Don't include obsolete "setenv.h".
7455
7456         * modules/localename-tests (Depends-on): Need unsetenv.
7457
7458 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7459
7460         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
7461
7462 2008-01-06  Colin Watson  <cjwatson@debian.org>
7463
7464         * users.txt: Add man-db.
7465
7466 2008-01-07  Bruno Haible  <bruno@clisp.org>
7467
7468         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
7469         previous section name.
7470
7471 2008-01-07  Bruno Haible  <bruno@clisp.org>
7472
7473         * lib/progname.c (set_program_name): Don't strip off a leading
7474         "lt-" prefix outside a .libs directory.
7475         Suggested by Paul Eggert.
7476
7477 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
7478             Bruno Haible  <bruno@clisp.org>
7479
7480         Improve memory cleanup in 'relocatable' module.
7481         * lib/relocatable.h (compute_curr_prefix): Change return type to
7482         'char *'.
7483         * lib/relocatable.c (compute_curr_prefix): Change return type to
7484         'char *'. Free curr_installdir after use.
7485         (relocate): Free curr_prefix_better after use.
7486         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
7487
7488 2008-01-01  Bruno Haible  <bruno@clisp.org>
7489
7490         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
7491         failure on older glibc systems.
7492         Reported by Peter Fales <psfales@alcatel-lucent.com>.
7493
7494 2008-01-05  Eric Blake  <ebb9@byu.net>
7495
7496         Avoid quadratic system memmem.
7497         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
7498         Reported by Ralf Wildenhues.
7499
7500         Fix memmem test for mingw.
7501         * modules/memmem-tests (configure.ac): Check for alarm.
7502         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
7503         it.
7504         * doc/functions/memmem.texi: New file.
7505         * doc/gnulib.texi (Function Substitutes): Add memmem.
7506         Reported by Bruno Haible.
7507
7508 2008-01-04  Bruno Haible  <bruno@clisp.org>
7509
7510         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
7511         Require gl_HEADER_STRINGS_H_DEFAULTS, not
7512         gl_HEADER_STRING_H_DEFAULTS.
7513
7514 2008-01-04  Eric Blake  <ebb9@byu.net>
7515
7516         Shorten duration of memmem test.
7517         * tests/test-memmem.c (main): Use alarm to declare failure if test
7518         is taking too long.
7519         Reported by Ralf Wildenhues.
7520
7521 2007-12-21  Simon Josefsson  <simon@josefsson.org>
7522
7523         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
7524         string, needed by strerror.
7525
7526 2008-01-03  Colin Watson  <cjwatson@debian.org>
7527             Bruno Haible  <bruno@clisp.org>
7528
7529         * doc/gnulib-tool.texi (Localization): New section.
7530
7531 2008-01-02  Bruno Haible  <bruno@clisp.org>
7532
7533         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
7534         variables to 'unsigned char *' type.
7535         Reported by Paul Eggert.
7536
7537 2008-01-02  Jim Meyering  <jim@meyering.net>
7538
7539         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
7540
7541 2007-12-31  Jim Meyering  <jim@meyering.net>
7542
7543         Avoid use of private FTS type name.
7544         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
7545
7546 2007-12-30  Karl Berry  <karl@gnu.org>
7547
7548         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
7549         work around defect in Texinfo and/or the standalone Info browser.
7550
7551 2007-12-30  Bruno Haible  <bruno@clisp.org>
7552
7553         Unify 5 copies of the KMP code.
7554         * lib/str-kmp.h: New file.
7555         * lib/c-strcasestr.c: Include str-kmp.h.
7556         (knuth_morris_pratt): Remove function.
7557         (c_strcasestr): Update.
7558         * lib/c-strstr.c: Include str-kmp.h.
7559         (knuth_morris_pratt): Remove function.
7560         (c_strcasestr): Update.
7561         * lib/mbscasestr.c: Include str-kmp.h.
7562         (knuth_morris_pratt_unibyte): Remove function.
7563         * lib/mbsstr.c: Include str-kmp.h.
7564         (knuth_morris_pratt_unibyte): Remove function.
7565         * lib/strcasestr.c: Include str-kmp.h.
7566         (knuth_morris_pratt): Remove function.
7567         (strcasestr): Update.
7568         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
7569         * modules/c-strstr (Files): Likewise.
7570         * modules/mbscasestr (Files): Likewise.
7571         * modules/mbsstr (Files): Likewise.
7572         * modules/strcasestr (Files): Likewise.
7573         Suggested by Paul Eggert.
7574
7575 2007-12-30  Bruno Haible  <bruno@clisp.org>
7576
7577         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
7578         defined.
7579
7580 2007-12-30  Bruno Haible  <bruno@clisp.org>
7581
7582         * lib/xmalloca.h: Include xalloc.h.
7583         (xnmalloca): New macro.
7584
7585 2007-12-30  Bruno Haible  <bruno@clisp.org>
7586
7587         * lib/malloca.h (nmalloca): New macro.
7588         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
7589         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
7590         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
7591         knuth_morris_pratt_multibyte): Likewise.
7592         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
7593         knuth_morris_pratt_multibyte): Likewise.
7594         * lib/memmem.c (knuth_morris_pratt): Likewise.
7595         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
7596
7597 2007-12-25  Bruno Haible  <bruno@clisp.org>
7598
7599         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
7600         * lib/glob.c: Don't include openat.h.
7601         (link_exists2_p): Add back the code that deals with the
7602         !GLOB_ALTDIRFUNC case.
7603         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
7604         let it do the filename concatenation.
7605         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
7606         * modules/glob (Depends-on): Remove openat.
7607
7608 2007-12-31  Bruno Haible  <bruno@clisp.org>
7609
7610         * modules/dirfd (License): Change to LGPLv2+.
7611         Approved by Jim Meyering.
7612
7613 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7614
7615         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
7616         when multiplying M by sizeof (size_t).
7617
7618 2007-12-10  Martin Lambers  <marlam@marlam.de>
7619
7620         Override getpagesize on mingw.
7621         * lib/getpagesize.c: New file.
7622         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
7623         * modules/getpagesize (Files): Add lib/getpagesize.c.
7624         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
7625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7626         REPLACE_GETPAGESIZE.
7627         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
7628
7629 2007-12-25  Bruno Haible  <bruno@clisp.org>
7630
7631         * modules/localcharset (Notice): New field.
7632         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
7633         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7634
7635 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7636             Bruno Haible  <bruno@clisp.org>
7637
7638         Avoid using the syntax symbol() in formatted documentation.
7639         * MODULES.html.sh (func_module): When replacing symbol() with a
7640         hyperlink, remove the parentheses. Show an error if some remain.
7641         Recognize and render the '...' syntax.
7642         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
7643         Rework. Add paragraph about GCC's inlining.
7644         * doc/alloca.texi: Likewise.
7645         * doc/error.texi: Remove parentheses from symbol reference.
7646         * doc/gnulib-intro.texi: Likewise.
7647         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
7648         * modules/fnmatch (Description): Reword to say "the ... function".
7649         * modules/full-read (Description): Likewise.
7650         * modules/full-write (Description): Likewise.
7651         * modules/safe-read (Description): Likewise.
7652         * modules/safe-write (Description): Likewise.
7653         * modules/strchrnul (Description): Likewise.
7654         * modules/trim (Description): Likewise.
7655         * modules/error (Description): Remove parentheses from symbol
7656         references.
7657         * modules/verror (Description): Likewise.
7658         Reported by Karl Berry.
7659
7660 2007-12-25  Bruno Haible  <bruno@clisp.org>
7661
7662         Fixup after 2007-10-16 commit.
7663         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
7664
7665 2007-12-24  Bruno Haible  <bruno@clisp.org>
7666
7667         Make --enable-relocatable work with DESTDIR.
7668         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
7669         to compute installdir from destprog.
7670         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
7671         also set the RELOC_DESTDIR variable.
7672         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
7673
7674 2007-12-24  Bruno Haible  <bruno@clisp.org>
7675
7676         Fix link error due to xalloc_die().
7677         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
7678         of xreadlink.
7679         * lib/relocwrapper.c: Update comments.
7680         * build-aux/install-reloc: Remove xreadlink.c from file list.
7681         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
7682         xreadlink.c.
7683         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
7684
7685 2007-12-24  Bruno Haible  <bruno@clisp.org>
7686
7687         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
7688         * lib/setenv.h: Remove file.
7689         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
7690         lib/setenv.h.
7691         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
7692         (Depends-on): Add stdlib.
7693         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
7694         gl_FUNC_UNSETENV.
7695         (Include): Replace setenv.h with <stdlib.h>.
7696         * modules/unsetenv: New file.
7697         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
7698         * lib/unsetenv.c: Include <stdlib.h> first.
7699         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
7700         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
7701         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
7702         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
7703         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
7704         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
7706         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7707         * doc/functions/unsetenv.texi: Update.
7708         * modules/xsetenv (Depends-on): Add unsetenv.
7709         * modules/getdate (Depends-on): Likewise.
7710         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
7711         * lib/xsetenv.c: Don't include setenv.h.
7712         * lib/getdate.y: Likewise.
7713         * lib/relocwrapper.c: Likewise.
7714         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
7715         (Depends-on): Add stdlib.
7716         * NEWS: Mention the changes.
7717         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
7718
7719 2007-12-23  Bruno Haible  <bruno@clisp.org>
7720
7721         * lib/memmem.c (memmem): Use lowercase variable names. Tab
7722         indentation.
7723
7724 2007-12-23  Bruno Haible  <bruno@clisp.org>
7725
7726         * lib/c-strcasestr.c: Add more comments.
7727         * lib/c-strstr.c: Likewise.
7728         * lib/mbscasestr.c: Likewise.
7729         * lib/mbsstr.c: Likewise.
7730         * lib/strcasestr.c: Likewise.
7731         * lib/memmem.c: Likewise.
7732
7733 2007-12-23  Bruno Haible  <bruno@clisp.org>
7734
7735         * tests/test-memmem.c: Include <string.h> first.
7736
7737 2007-12-22  Bruno Haible  <bruno@clisp.org>
7738
7739         * gnulib-tool (func_create_testdir): Change $auxdir while generating
7740         the contents of $testsbase.
7741         Reported by Ralf Wildenhues.
7742
7743 2007-12-22  Bruno Haible  <bruno@clisp.org>
7744
7745         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
7746         two variables local_ldadd_before, local_ldadd_last.
7747
7748 2007-12-20  Eric Blake  <ebb9@byu.net>
7749
7750         Work around circular library issue when cross-compiling.
7751         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
7752         that progname.o does not need to pull in rpl_memcmp.
7753
7754 2007-12-19  Eric Blake  <ebb9@byu.net>
7755
7756         Fix memmem to avoid O(n^2) worst-case complexity.
7757         * lib/memmem.c (knuth_morris_pratt): New function.
7758         (memmem): Use it if first few naive iterations fail.
7759         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
7760         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
7761         * modules/memchr (License): Likewise.
7762         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
7763         malloca.
7764         * tests/test-memmem.c: Rewrite, borrowing ideas from
7765         test-mbsstr1.c; the old version wouldn't even compile!
7766         * modules/memmem-tests: New file.
7767         * lib/string.in.h (rpl_memmem): Add declaration.
7768         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
7769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
7770         REPLACE_MEMMEM.
7771
7772 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7773
7774         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
7775         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
7776         before any system include files, and undef after them all.  This
7777         should fix a problem on VMS reported by John E. Malmberg in
7778         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
7779
7780 2007-12-17  Eric Blake  <ebb9@byu.net>
7781
7782         Revert addition of verify, for BSD/OS.
7783         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
7784         can't handle large files, for the sake of obsolete platforms.
7785         * modules/fseeko (Depends-on): Remove verify.
7786         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
7787         * doc/functions/ftello.texi (ftello): Likewise.
7788         * doc/functions/fgetpos.texi (fgetpos): Likewise.
7789         Reported by Larry Jones.
7790
7791 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
7792
7793         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
7794         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
7795
7796 2007-12-17  Jim Meyering  <meyering@redhat.com>
7797
7798         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
7799         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
7800         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
7801         * modules/getcwd (Depends-on): Add openat.
7802         Reported by Petr Salinger.
7803
7804 2007-12-17  Bruno Haible  <bruno@clisp.org>
7805
7806         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
7807         avoid a segmentation fault of the configure test on x86_64 systems.
7808
7809 2007-12-15  Jim Meyering  <meyering@redhat.com>
7810
7811         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
7812
7813 2007-12-13  Eric Blake  <ebb9@byu.net>
7814
7815         Another fseek test.
7816         * tests/test-fseek.c (main): Also test ungetc handling.
7817         * tests/test-fseeko.c (main): Likewise.
7818         * modules/fseeko (Depends-on): Add verify.
7819         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
7820         large.
7821         Reported by Larry Jones.
7822
7823         Fix fseeko on mingw.
7824         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
7825         seek.
7826
7827         Beef up fseek tests.
7828         * tests/test-fseek.c (main): Also test eof handling.
7829         * tests/test-fseeko.c (main): Likewise.
7830         Reported by Larry Jones.
7831
7832 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
7833
7834         Fix fseeko on BSD-based platforms.
7835         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
7836         successful seek.
7837
7838 2007-12-12  Eric Blake  <ebb9@byu.net>
7839
7840         Allow circular dependency of separate libtests.a
7841         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
7842         when use_libtests.
7843
7844 2007-12-11  Eric Blake  <ebb9@byu.net>
7845
7846         Fix bug with -0.0L in previous patch.
7847         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
7848         * tests/test-isnan.c (main): Also test on zeroes.
7849         * tests/test-isnanf.c (main): Likewise.
7850         * tests/test-isnanl.h (main): Likewise.
7851
7852         Detect pseudo-denormals on x86 even when cross-compiling.
7853         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
7854         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
7855         invalid bit patterns that happen to satisfy ==.
7856
7857         Avoid link failures with separate libtests.a.
7858         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
7859         last, to satisfy circular dependencies.
7860
7861 2007-12-11  Eric Blake  <ebb9@byu.net>
7862         and Bruno Haible  <bruno@clisp.org>
7863
7864         Fix OpenBSD 4.0 <float.h> handling of long double.
7865         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
7866         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
7867         * doc/headers/float.texi (float.h): Document OpenBSD bug.
7868
7869 2007-12-11  Jim Meyering  <meyering@redhat.com>
7870
7871         * users.txt: Add libvirt.
7872
7873         Support versions of autoconf prior to 2.59c.
7874         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
7875         if it is not already defined.
7876
7877 2007-12-09  Bruno Haible  <bruno@clisp.org>
7878
7879         Let 'gnulib-tool --import' collect sources needed for the tests in
7880         tests/ rather than in lib/.
7881         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
7882         argument. If true, add rules to generate libtests.a, and put libtests.a
7883         into $(LDADD). Consider source files in subdirectories and set
7884         uses_subdirs.
7885         (func_emit_initmacro_start, func_emit_initmacro_end,
7886         func_emit_initmacro_done): Pass all arguments explicitly.
7887         (func_import): Determine two module lists main_modules,
7888         testsrelated_modules. Determine use_libtests. Determine two variables
7889         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
7890         instead of just sed_transform_lib_file. Determine two variables
7891         main_files and testsrelated_files. Compute 'files' as the union of
7892         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
7893         func_add_or_update. In the generated gnulib-comp.m4, collect the
7894         object files for tests/ in different variables than those for lib/.
7895         Substitute LIBTESTS_LIBDEPS.
7896         (func_create_testdir): Combine the uses_subdirs results from
7897         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
7898
7899 2007-12-09  Bruno Haible  <bruno@clisp.org>
7900
7901         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
7902         the build-aux directory.
7903
7904 2007-12-09  Bruno Haible  <bruno@clisp.org>
7905
7906         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
7907         introduced on 2006-09-09.
7908
7909 2007-12-07  Jim Meyering  <meyering@redhat.com>
7910
7911         Let these macros work also with autoconf-2.59.
7912         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
7913         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
7914         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7915
7916 2007-12-06  Jim Meyering  <meyering@redhat.com>
7917
7918         Avoid a configure-time syntax error in gl_FUNC_ACL.
7919         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
7920         function in each branch, before testing the cache variable.
7921
7922 2007-12-04  Eric Blake  <ebb9@byu.net>
7923
7924         Make scripts executable.
7925         * build-aux/config.guess: Add execute permissions.
7926         * build-aux/config.sub: Likewise.
7927         * build-aux/gendocs.sh: Likewise.
7928
7929         Fix frexp on mingw.
7930         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
7931         cross-compiling.
7932         * doc/functions/frexp.texi (frexp): Document the bug.
7933
7934         Make cygwin fseeko check more reliable.
7935         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
7936         version numbers, rather than unrelated feature check.
7937         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
7938         * doc/functions/ftello.texi (ftello): Likewise.
7939         Reported by Bruno Haible.
7940
7941         * m4/strerror.m4: Bump version number.
7942
7943 2007-12-03  Bruno Haible  <bruno@clisp.org>
7944
7945         * doc/functions/mprotect.texi: Mention the mingw problem.
7946
7947 2007-12-03  Eric Blake  <ebb9@byu.net>
7948
7949         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
7950         REPLACE_STRERROR is initialized before this macro.
7951
7952 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
7953
7954         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
7955         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
7956         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
7957         put -lsec in even for programs other than 'ls'.  This fixes a problem
7958         for gettext reported by Bruno Haible in
7959         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
7960         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
7961         Add support for Solaris 10.  This isn't efficient, but should get the
7962         job done for now.
7963
7964 2007-12-03  James Youngman  <jay@gnu.org>
7965
7966         * doc/regexprops-generic.texi: change "an close-group" to "a
7967         close-group" and "illegal" to "not allowed".
7968
7969 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7970
7971         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
7972         pr_byname.h. Needed for the rare case when the maintainer has done
7973         "make maintainer-clean" in the source directory and then attempts a
7974         build outside the source directory.
7975         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
7976         scripts_byname.h.
7977
7978 2007-12-02  Martin Lambers <marlam@marlam.de>
7979             Bruno Haible  <bruno@clisp.org>
7980
7981         * lib/getpagesize.h: Remove file.
7982         * lib/unistd.in.h: Include declaration of getpagesize here.
7983         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
7984         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
7985         HAVE_SYS_PARAM_H.
7986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
7987         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7988         * modules/getpagesize (Files): Remove lib/getpagesize.h.
7989         (Depends-on): Add unistd.
7990         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7991         (Include): Use <unistd.h> instead of getpagesize.h.
7992         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
7993         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7994         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
7995         gl_GETPAGESIZE invocation, already handled by module dependency.
7996         * lib/pagealign_alloc.c: Don't include getpagesize.h.
7997
7998 2007-12-02  Bruno Haible  <bruno@clisp.org>
7999
8000         * modules/strings-tests: New file.
8001         * tests/test-strings.c: New file.
8002
8003         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
8004         * lib/strings.in.h: New file.
8005         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
8006         * m4/strings_h.m4: New file.
8007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
8008         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
8009         * modules/strings: New file.
8010         * modules/string (Makefile.am): Update.
8011         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
8012         Reported by Karl Berry.
8013
8014 2007-12-01  Eric Blake  <ebb9@byu.net>
8015
8016         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
8017         accomodate fix in cygwin 1.5.25.
8018
8019 2007-12-01  Jim Meyering  <meyering@redhat.com>
8020
8021         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
8022         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
8023         that would inhibit utf8-optimization of a regexp containing line-
8024         or buffer-anchors, e.g., `^', `$'.
8025
8026 2007-11-30  Bruno Haible  <bruno@clisp.org>
8027
8028         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
8029         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
8030         glthread_recursive_lock_init.
8031         * lib/lock.c (glthread_recursive_lock_init)
8032         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
8033         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8034
8035 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
8036
8037         New function qset_acl, like set_acl but with syscall semantics.
8038         * lib/acl.h (qset_acl): New decl.
8039         * lib/acl.c (qset_acl): New function.
8040         (set_acl): Use new function.  Use more-consistent diagnostics.
8041
8042 2007-11-28  Jim Meyering  <meyering@redhat.com>
8043
8044         * modules/physmem (License): Change from GPL to LGPLv2+.
8045
8046 2007-11-26  Bruno Haible  <bruno@clisp.org>
8047
8048         * lib/vasnprintf.c (decode_long_double): Don't abort if the
8049         'long double' type has excess precision.
8050         Reported by Jim Meyering in
8051         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
8052
8053 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8054
8055         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
8056         Sync from <http://gnu.org/licenses>.
8057         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
8058         with license text from same location.
8059         * doc/maintain.texi, doc/standards.texi:  Sync from
8060         <http://savannah.gnu.org/projects/gnustandards>.
8061
8062 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
8063         and Jim Meyering  <meyering@redhat.com>
8064
8065         Adjust getdate' grammar to accept a slightly more regular language.
8066         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
8067         Before, the former was rejected.
8068         * lib/getdate.y (digits_to_date_time): New function, factored
8069         out of ...
8070         (number): ...here.  Just call digits_to_date_time.
8071         (hybrid): New non-terminal to handle an <unsigned number,
8072         signed relative offset> sequence consistently.
8073
8074 2007-11-18  Jim Meyering  <meyering@redhat.com>
8075
8076         Pull my changes from coreutils:
8077         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
8078         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
8079         use of $gnulib_tool_option_extras, so that it's separated from the
8080         preceding argument.
8081
8082         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
8083         * build-aux/bootstrap (cp_mark_as_generated): Create any required
8084         parent destination directories before copying a file into place.
8085
8086 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
8087
8088         bootstrap: work also with 4-argument variant of AC_INIT
8089         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
8090
8091 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
8092
8093         Port test-getaddrinfo to Solaris.
8094         Problem reported by Bruno Haible in
8095         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
8096         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
8097         explanation of setting 'hints'.
8098         Don't reject an implementation merely because it returns EAI_SERVICE.
8099         (EAI_SERVICE): Define to 0 if not defined.
8100
8101 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8102
8103         The license of gnu-make and posix-shell is now "GPLed build tool".
8104         * modules/gnu-make (License): Likewise.
8105         * modules/posix-shell (License): Likewise.
8106
8107         New module posix-shell, for determining a POSIX shell
8108         or perhaps something that is close enough to a POSIX shell.
8109         * m4/posix-shell.m4: New file.
8110         * modules/posix-shell: New file.
8111
8112         * MODULES.html.sh: Mention new module.
8113
8114         New module gnu-make, for determining whether we're using GNU Make.
8115         * m4/gnu-make.m4: New file.
8116         * modules/gnu-make: New file.
8117         * MODULES.html.sh: Mention new module.
8118
8119 2007-11-14  Jim Meyering  <meyering@redhat.com>
8120
8121         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
8122         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
8123         use this macro to create a function _definition_.
8124         Remove useless "#undef ARGMATCH_DIE".
8125
8126 2007-11-14  Bruno Haible  <bruno@clisp.org>
8127
8128         * lib/config.charset: Update for OpenBSD 4.1.
8129         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
8130
8131 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
8132
8133         Document 64-bit #if problems in stdint.texi.
8134         * doc/headers/stdint.texi (stdint.h): Mention problems with
8135         64-bit-#if, and how to work around them.
8136
8137         Don't insist on 'long long int' support in the preprocessor.  It
8138         breaks too many things.  For example, PRIdMAX still uses a 'long
8139         long int' format with the latest Sun compiler, even though
8140         HAVE_LONG_LONG_INT isn't defined due to that compiler's
8141         preprocessor problem.  This causes the latest coreutils to dump
8142         core on Solaris 10 sparc with the Sun C compiler.
8143         Instead, fix the 2007-10-16 problem in a different way, by evaluating
8144         the troublesome expressions at configure-time, not at #if-time.
8145         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
8146         preprocessor.
8147         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
8148         compile-time C checks, done at 'configure'-time.
8149         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
8150         * modules/inttypes (Makefile): Substitute the new symbols that
8151         gl_INTTYPES_H now generates.
8152         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
8153
8154 2007-11-12  Bruno Haible  <bruno@clisp.org>
8155
8156         Tests for Unicode character classification functions.
8157
8158         * modules/unictype/bidicategory-byname-tests: New file.
8159         * modules/unictype/bidicategory-name-tests: New file.
8160         * modules/unictype/bidicategory-of-tests: New file.
8161         * modules/unictype/bidicategory-test-tests: New file.
8162         * modules/unictype/block-list-tests: New file.
8163         * modules/unictype/block-of-tests: New file.
8164         * modules/unictype/block-test-tests: New file.
8165         * modules/unictype/category-C-tests: New file.
8166         * modules/unictype/category-Cc-tests: New file.
8167         * modules/unictype/category-Cf-tests: New file.
8168         * modules/unictype/category-Cn-tests: New file.
8169         * modules/unictype/category-Co-tests: New file.
8170         * modules/unictype/category-Cs-tests: New file.
8171         * modules/unictype/category-L-tests: New file.
8172         * modules/unictype/category-Ll-tests: New file.
8173         * modules/unictype/category-Lm-tests: New file.
8174         * modules/unictype/category-Lo-tests: New file.
8175         * modules/unictype/category-Lt-tests: New file.
8176         * modules/unictype/category-Lu-tests: New file.
8177         * modules/unictype/category-M-tests: New file.
8178         * modules/unictype/category-Mc-tests: New file.
8179         * modules/unictype/category-Me-tests: New file.
8180         * modules/unictype/category-Mn-tests: New file.
8181         * modules/unictype/category-N-tests: New file.
8182         * modules/unictype/category-Nd-tests: New file.
8183         * modules/unictype/category-Nl-tests: New file.
8184         * modules/unictype/category-No-tests: New file.
8185         * modules/unictype/category-P-tests: New file.
8186         * modules/unictype/category-Pc-tests: New file.
8187         * modules/unictype/category-Pd-tests: New file.
8188         * modules/unictype/category-Pe-tests: New file.
8189         * modules/unictype/category-Pf-tests: New file.
8190         * modules/unictype/category-Pi-tests: New file.
8191         * modules/unictype/category-Po-tests: New file.
8192         * modules/unictype/category-Ps-tests: New file.
8193         * modules/unictype/category-S-tests: New file.
8194         * modules/unictype/category-Sc-tests: New file.
8195         * modules/unictype/category-Sk-tests: New file.
8196         * modules/unictype/category-Sm-tests: New file.
8197         * modules/unictype/category-So-tests: New file.
8198         * modules/unictype/category-Z-tests: New file.
8199         * modules/unictype/category-Zl-tests: New file.
8200         * modules/unictype/category-Zp-tests: New file.
8201         * modules/unictype/category-Zs-tests: New file.
8202         * modules/unictype/category-and-not-tests: New file.
8203         * modules/unictype/category-and-tests: New file.
8204         * modules/unictype/category-byname-tests: New file.
8205         * modules/unictype/category-name-tests: New file.
8206         * modules/unictype/category-none-tests: New file.
8207         * modules/unictype/category-of-tests: New file.
8208         * modules/unictype/category-or-tests: New file.
8209         * modules/unictype/category-test-withtable-tests: New file.
8210         * modules/unictype/combining-class-tests: New file.
8211         * modules/unictype/ctype-alnum-tests: New file.
8212         * modules/unictype/ctype-alpha-tests: New file.
8213         * modules/unictype/ctype-blank-tests: New file.
8214         * modules/unictype/ctype-cntrl-tests: New file.
8215         * modules/unictype/ctype-digit-tests: New file.
8216         * modules/unictype/ctype-graph-tests: New file.
8217         * modules/unictype/ctype-lower-tests: New file.
8218         * modules/unictype/ctype-print-tests: New file.
8219         * modules/unictype/ctype-punct-tests: New file.
8220         * modules/unictype/ctype-space-tests: New file.
8221         * modules/unictype/ctype-upper-tests: New file.
8222         * modules/unictype/ctype-xdigit-tests: New file.
8223         * modules/unictype/decimal-digit-tests: New file.
8224         * modules/unictype/digit-tests: New file.
8225         * modules/unictype/mirror-tests: New file.
8226         * modules/unictype/numeric-tests: New file.
8227         * modules/unictype/property-alphabetic-tests: New file.
8228         * modules/unictype/property-ascii-hex-digit-tests: New file.
8229         * modules/unictype/property-bidi-arabic-digit-tests: New file.
8230         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
8231         * modules/unictype/property-bidi-block-separator-tests: New file.
8232         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
8233         * modules/unictype/property-bidi-common-separator-tests: New file.
8234         * modules/unictype/property-bidi-control-tests: New file.
8235         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
8236         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
8237         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
8238         * modules/unictype/property-bidi-european-digit-tests: New file.
8239         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
8240         * modules/unictype/property-bidi-left-to-right-tests: New file.
8241         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
8242         * modules/unictype/property-bidi-other-neutral-tests: New file.
8243         * modules/unictype/property-bidi-pdf-tests: New file.
8244         * modules/unictype/property-bidi-segment-separator-tests: New file.
8245         * modules/unictype/property-bidi-whitespace-tests: New file.
8246         * modules/unictype/property-byname-tests: New file.
8247         * modules/unictype/property-combining-tests: New file.
8248         * modules/unictype/property-composite-tests: New file.
8249         * modules/unictype/property-currency-symbol-tests: New file.
8250         * modules/unictype/property-dash-tests: New file.
8251         * modules/unictype/property-decimal-digit-tests: New file.
8252         * modules/unictype/property-default-ignorable-code-point-tests: New file.
8253         * modules/unictype/property-deprecated-tests: New file.
8254         * modules/unictype/property-diacritic-tests: New file.
8255         * modules/unictype/property-extender-tests: New file.
8256         * modules/unictype/property-format-control-tests: New file.
8257         * modules/unictype/property-grapheme-base-tests: New file.
8258         * modules/unictype/property-grapheme-extend-tests: New file.
8259         * modules/unictype/property-grapheme-link-tests: New file.
8260         * modules/unictype/property-hex-digit-tests: New file.
8261         * modules/unictype/property-hyphen-tests: New file.
8262         * modules/unictype/property-id-continue-tests: New file.
8263         * modules/unictype/property-id-start-tests: New file.
8264         * modules/unictype/property-ideographic-tests: New file.
8265         * modules/unictype/property-ids-binary-operator-tests: New file.
8266         * modules/unictype/property-ids-trinary-operator-tests: New file.
8267         * modules/unictype/property-ignorable-control-tests: New file.
8268         * modules/unictype/property-iso-control-tests: New file.
8269         * modules/unictype/property-join-control-tests: New file.
8270         * modules/unictype/property-left-of-pair-tests: New file.
8271         * modules/unictype/property-line-separator-tests: New file.
8272         * modules/unictype/property-logical-order-exception-tests: New file.
8273         * modules/unictype/property-lowercase-tests: New file.
8274         * modules/unictype/property-math-tests: New file.
8275         * modules/unictype/property-non-break-tests: New file.
8276         * modules/unictype/property-not-a-character-tests: New file.
8277         * modules/unictype/property-numeric-tests: New file.
8278         * modules/unictype/property-other-alphabetic-tests: New file.
8279         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
8280         * modules/unictype/property-other-grapheme-extend-tests: New file.
8281         * modules/unictype/property-other-id-continue-tests: New file.
8282         * modules/unictype/property-other-id-start-tests: New file.
8283         * modules/unictype/property-other-lowercase-tests: New file.
8284         * modules/unictype/property-other-math-tests: New file.
8285         * modules/unictype/property-other-uppercase-tests: New file.
8286         * modules/unictype/property-paired-punctuation-tests: New file.
8287         * modules/unictype/property-paragraph-separator-tests: New file.
8288         * modules/unictype/property-pattern-syntax-tests: New file.
8289         * modules/unictype/property-pattern-white-space-tests: New file.
8290         * modules/unictype/property-private-use-tests: New file.
8291         * modules/unictype/property-punctuation-tests: New file.
8292         * modules/unictype/property-quotation-mark-tests: New file.
8293         * modules/unictype/property-radical-tests: New file.
8294         * modules/unictype/property-sentence-terminal-tests: New file.
8295         * modules/unictype/property-soft-dotted-tests: New file.
8296         * modules/unictype/property-space-tests: New file.
8297         * modules/unictype/property-terminal-punctuation-tests: New file.
8298         * modules/unictype/property-test-tests: New file.
8299         * modules/unictype/property-titlecase-tests: New file.
8300         * modules/unictype/property-unassigned-code-value-tests: New file.
8301         * modules/unictype/property-unified-ideograph-tests: New file.
8302         * modules/unictype/property-uppercase-tests: New file.
8303         * modules/unictype/property-variation-selector-tests: New file.
8304         * modules/unictype/property-white-space-tests: New file.
8305         * modules/unictype/property-xid-continue-tests: New file.
8306         * modules/unictype/property-xid-start-tests: New file.
8307         * modules/unictype/property-zero-width-tests: New file.
8308         * modules/unictype/scripts-tests: New file.
8309         * modules/unictype/syntax-c-ident-tests: New file.
8310         * modules/unictype/syntax-c-whitespace-tests: New file.
8311         * modules/unictype/syntax-java-ident-tests: New file.
8312         * modules/unictype/syntax-java-whitespace-tests: New file.
8313         * tests/unictype/test-bidi_byname.c: New file.
8314         * tests/unictype/test-bidi_name.c: New file.
8315         * tests/unictype/test-bidi_of.c: New file.
8316         * tests/unictype/test-bidi_test.c: New file.
8317         * tests/unictype/test-block_list.c: New file.
8318         * tests/unictype/test-block_of.c: New file.
8319         * tests/unictype/test-block_test.c: New file.
8320         * tests/unictype/test-categ_and.c: New file.
8321         * tests/unictype/test-categ_and_not.c: New file.
8322         * tests/unictype/test-categ_byname.c: New file.
8323         * tests/unictype/test-categ_name.c: New file.
8324         * tests/unictype/test-categ_none.c: New file.
8325         * tests/unictype/test-categ_of.c: New file.
8326         * tests/unictype/test-categ_or.c: New file.
8327         * tests/unictype/test-categ_test_withtable.c: New file.
8328         * tests/unictype/test-combining.c: New file.
8329         * tests/unictype/test-decdigit.c: New file.
8330         * tests/unictype/test-digit.c: New file.
8331         * tests/unictype/test-mirror.c: New file.
8332         * tests/unictype/test-numeric.c: New file.
8333         * tests/unictype/test-pr_byname.c: New file.
8334         * tests/unictype/test-pr_test.c: New file.
8335         * tests/unictype/test-predicate-part1.h: New file.
8336         * tests/unictype/test-predicate-part2.h: New file.
8337         * tests/unictype/test-scripts.c: New file.
8338         * tests/unictype/test-sy_c_ident.c: New file.
8339         * tests/unictype/test-sy_java_ident.c: New file.
8340
8341         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
8342         for Unicode 5.0.0.
8343         * tests/unictype/test-categ_Cc.c: Likewise.
8344         * tests/unictype/test-categ_Cf.c: Likewise.
8345         * tests/unictype/test-categ_Cn.c: Likewise.
8346         * tests/unictype/test-categ_Co.c: Likewise.
8347         * tests/unictype/test-categ_Cs.c: Likewise.
8348         * tests/unictype/test-categ_L.c: Likewise.
8349         * tests/unictype/test-categ_Ll.c: Likewise.
8350         * tests/unictype/test-categ_Lm.c: Likewise.
8351         * tests/unictype/test-categ_Lo.c: Likewise.
8352         * tests/unictype/test-categ_Lt.c: Likewise.
8353         * tests/unictype/test-categ_Lu.c: Likewise.
8354         * tests/unictype/test-categ_M.c: Likewise.
8355         * tests/unictype/test-categ_Mc.c: Likewise.
8356         * tests/unictype/test-categ_Me.c: Likewise.
8357         * tests/unictype/test-categ_Mn.c: Likewise.
8358         * tests/unictype/test-categ_N.c: Likewise.
8359         * tests/unictype/test-categ_Nd.c: Likewise.
8360         * tests/unictype/test-categ_Nl.c: Likewise.
8361         * tests/unictype/test-categ_No.c: Likewise.
8362         * tests/unictype/test-categ_P.c: Likewise.
8363         * tests/unictype/test-categ_Pc.c: Likewise.
8364         * tests/unictype/test-categ_Pd.c: Likewise.
8365         * tests/unictype/test-categ_Pe.c: Likewise.
8366         * tests/unictype/test-categ_Pf.c: Likewise.
8367         * tests/unictype/test-categ_Pi.c: Likewise.
8368         * tests/unictype/test-categ_Po.c: Likewise.
8369         * tests/unictype/test-categ_Ps.c: Likewise.
8370         * tests/unictype/test-categ_S.c: Likewise.
8371         * tests/unictype/test-categ_Sc.c: Likewise.
8372         * tests/unictype/test-categ_Sk.c: Likewise.
8373         * tests/unictype/test-categ_Sm.c: Likewise.
8374         * tests/unictype/test-categ_So.c: Likewise.
8375         * tests/unictype/test-categ_Z.c: Likewise.
8376         * tests/unictype/test-categ_Zl.c: Likewise.
8377         * tests/unictype/test-categ_Zp.c: Likewise.
8378         * tests/unictype/test-categ_Zs.c: Likewise.
8379         * tests/unictype/test-ctype_alnum.c: Likewise.
8380         * tests/unictype/test-ctype_alpha.c: Likewise.
8381         * tests/unictype/test-ctype_blank.c: Likewise.
8382         * tests/unictype/test-ctype_cntrl.c: Likewise.
8383         * tests/unictype/test-ctype_digit.c: Likewise.
8384         * tests/unictype/test-ctype_graph.c: Likewise.
8385         * tests/unictype/test-ctype_lower.c: Likewise.
8386         * tests/unictype/test-ctype_print.c: Likewise.
8387         * tests/unictype/test-ctype_punct.c: Likewise.
8388         * tests/unictype/test-ctype_space.c: Likewise.
8389         * tests/unictype/test-ctype_upper.c: Likewise.
8390         * tests/unictype/test-ctype_xdigit.c: Likewise.
8391         * tests/unictype/test-decdigit.h: Likewise.
8392         * tests/unictype/test-digit.h: Likewise.
8393         * tests/unictype/test-numeric.h: Likewise.
8394         * tests/unictype/test-pr_alphabetic.c: Likewise.
8395         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
8396         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8397         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8398         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
8399         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8400         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
8401         * tests/unictype/test-pr_bidi_control.c: Likewise.
8402         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
8403         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
8404         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8405         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8406         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8407         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8408         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8409         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8410         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
8411         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
8412         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
8413         * tests/unictype/test-pr_combining.c: Likewise.
8414         * tests/unictype/test-pr_composite.c: Likewise.
8415         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8416         * tests/unictype/test-pr_dash.c: Likewise.
8417         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8418         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
8419         * tests/unictype/test-pr_deprecated.c: Likewise.
8420         * tests/unictype/test-pr_diacritic.c: Likewise.
8421         * tests/unictype/test-pr_extender.c: Likewise.
8422         * tests/unictype/test-pr_format_control.c: Likewise.
8423         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8424         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8425         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8426         * tests/unictype/test-pr_hex_digit.c: Likewise.
8427         * tests/unictype/test-pr_hyphen.c: Likewise.
8428         * tests/unictype/test-pr_id_continue.c: Likewise.
8429         * tests/unictype/test-pr_id_start.c: Likewise.
8430         * tests/unictype/test-pr_ideographic.c: Likewise.
8431         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
8432         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
8433         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8434         * tests/unictype/test-pr_iso_control.c: Likewise.
8435         * tests/unictype/test-pr_join_control.c: Likewise.
8436         * tests/unictype/test-pr_left_of_pair.c: Likewise.
8437         * tests/unictype/test-pr_line_separator.c: Likewise.
8438         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8439         * tests/unictype/test-pr_lowercase.c: Likewise.
8440         * tests/unictype/test-pr_math.c: Likewise.
8441         * tests/unictype/test-pr_non_break.c: Likewise.
8442         * tests/unictype/test-pr_not_a_character.c: Likewise.
8443         * tests/unictype/test-pr_numeric.c: Likewise.
8444         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8445         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
8446         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
8447         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8448         * tests/unictype/test-pr_other_id_start.c: Likewise.
8449         * tests/unictype/test-pr_other_lowercase.c: Likewise.
8450         * tests/unictype/test-pr_other_math.c: Likewise.
8451         * tests/unictype/test-pr_other_uppercase.c: Likewise.
8452         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
8453         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
8454         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
8455         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
8456         * tests/unictype/test-pr_private_use.c: Likewise.
8457         * tests/unictype/test-pr_punctuation.c: Likewise.
8458         * tests/unictype/test-pr_quotation_mark.c: Likewise.
8459         * tests/unictype/test-pr_radical.c: Likewise.
8460         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8461         * tests/unictype/test-pr_soft_dotted.c: Likewise.
8462         * tests/unictype/test-pr_space.c: Likewise.
8463         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8464         * tests/unictype/test-pr_titlecase.c: Likewise.
8465         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8466         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8467         * tests/unictype/test-pr_uppercase.c: Likewise.
8468         * tests/unictype/test-pr_variation_selector.c: Likewise.
8469         * tests/unictype/test-pr_white_space.c: Likewise.
8470         * tests/unictype/test-pr_xid_continue.c: Likewise.
8471         * tests/unictype/test-pr_xid_start.c: Likewise.
8472         * tests/unictype/test-pr_zero_width.c: Likewise.
8473         * tests/unictype/test-sy_c_whitespace.c: Likewise.
8474         * tests/unictype/test-sy_java_whitespace.c: Likewise.
8475
8476 2007-11-12  Bruno Haible  <bruno@clisp.org>
8477
8478         Unicode character classification functions.
8479         * lib/unictype.h: New file.
8480         * modules/unictype/base: New file.
8481         * modules/unictype/category-L: New file.
8482         * modules/unictype/category-Lu: New file.
8483         * modules/unictype/category-Ll: New file.
8484         * modules/unictype/category-Lt: New file.
8485         * modules/unictype/category-Lm: New file.
8486         * modules/unictype/category-Lo: New file.
8487         * modules/unictype/category-M: New file.
8488         * modules/unictype/category-Mn: New file.
8489         * modules/unictype/category-Mc: New file.
8490         * modules/unictype/category-Me: New file.
8491         * modules/unictype/category-N: New file.
8492         * modules/unictype/category-Nd: New file.
8493         * modules/unictype/category-Nl: New file.
8494         * modules/unictype/category-No: New file.
8495         * modules/unictype/category-P: New file.
8496         * modules/unictype/category-Pc: New file.
8497         * modules/unictype/category-Pd: New file.
8498         * modules/unictype/category-Ps: New file.
8499         * modules/unictype/category-Pe: New file.
8500         * modules/unictype/category-Pi: New file.
8501         * modules/unictype/category-Pf: New file.
8502         * modules/unictype/category-Po: New file.
8503         * modules/unictype/category-S: New file.
8504         * modules/unictype/category-Sm: New file.
8505         * modules/unictype/category-Sc: New file.
8506         * modules/unictype/category-Sk: New file.
8507         * modules/unictype/category-So: New file.
8508         * modules/unictype/category-Z: New file.
8509         * modules/unictype/category-Zs: New file.
8510         * modules/unictype/category-Zl: New file.
8511         * modules/unictype/category-Zp: New file.
8512         * modules/unictype/category-C: New file.
8513         * modules/unictype/category-Cc: New file.
8514         * modules/unictype/category-Cf: New file.
8515         * modules/unictype/category-Cs: New file.
8516         * modules/unictype/category-Co: New file.
8517         * modules/unictype/category-Cn: New file.
8518         * modules/unictype/category-or: New file.
8519         * modules/unictype/category-of: New file.
8520         * modules/unictype/category-test: New file.
8521         * modules/unictype/category-test-withtable: New file.
8522         * modules/unictype/category-byname: New file.
8523         * modules/unictype/category-none: New file.
8524         * modules/unictype/category-and: New file.
8525         * modules/unictype/category-and-not: New file.
8526         * modules/unictype/category-name: New file.
8527         * modules/unictype/combining-class: New file.
8528         * modules/unictype/category-all: New file.
8529         * modules/unictype/bidicategory-all: New file.
8530         * modules/unictype/bidicategory-byname: New file.
8531         * modules/unictype/bidicategory-name: New file.
8532         * modules/unictype/bidicategory-of: New file.
8533         * modules/unictype/bidicategory-test: New file.
8534         * modules/unictype/decimal-digit: New file.
8535         * modules/unictype/digit: New file.
8536         * modules/unictype/numeric: New file.
8537         * modules/unictype/mirror: New file.
8538         * modules/unictype/property-white-space: New file.
8539         * modules/unictype/property-alphabetic: New file.
8540         * modules/unictype/property-other-alphabetic: New file.
8541         * modules/unictype/property-not-a-character: New file.
8542         * modules/unictype/property-default-ignorable-code-point: New file.
8543         * modules/unictype/property-other-default-ignorable-code-point: New
8544         file.
8545         * modules/unictype/property-deprecated: New file.
8546         * modules/unictype/property-logical-order-exception: New file.
8547         * modules/unictype/property-variation-selector: New file.
8548         * modules/unictype/property-private-use: New file.
8549         * modules/unictype/property-unassigned-code-value: New file.
8550         * modules/unictype/property-uppercase: New file.
8551         * modules/unictype/property-other-uppercase: New file.
8552         * modules/unictype/property-lowercase: New file.
8553         * modules/unictype/property-other-lowercase: New file.
8554         * modules/unictype/property-titlecase: New file.
8555         * modules/unictype/property-soft-dotted: New file.
8556         * modules/unictype/property-id-start: New file.
8557         * modules/unictype/property-other-id-start: New file.
8558         * modules/unictype/property-id-continue: New file.
8559         * modules/unictype/property-other-id-continue: New file.
8560         * modules/unictype/property-xid-start: New file.
8561         * modules/unictype/property-xid-continue: New file.
8562         * modules/unictype/property-pattern-white-space: New file.
8563         * modules/unictype/property-pattern-syntax: New file.
8564         * modules/unictype/property-join-control: New file.
8565         * modules/unictype/property-grapheme-base: New file.
8566         * modules/unictype/property-grapheme-extend: New file.
8567         * modules/unictype/property-other-grapheme-extend: New file.
8568         * modules/unictype/property-grapheme-link: New file.
8569         * modules/unictype/property-bidi-control: New file.
8570         * modules/unictype/property-bidi-left-to-right: New file.
8571         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
8572         * modules/unictype/property-bidi-arabic-right-to-left: New file.
8573         * modules/unictype/property-bidi-european-digit: New file.
8574         * modules/unictype/property-bidi-eur-num-separator: New file.
8575         * modules/unictype/property-bidi-eur-num-terminator: New file.
8576         * modules/unictype/property-bidi-arabic-digit: New file.
8577         * modules/unictype/property-bidi-common-separator: New file.
8578         * modules/unictype/property-bidi-block-separator: New file.
8579         * modules/unictype/property-bidi-segment-separator: New file.
8580         * modules/unictype/property-bidi-whitespace: New file.
8581         * modules/unictype/property-bidi-non-spacing-mark: New file.
8582         * modules/unictype/property-bidi-boundary-neutral: New file.
8583         * modules/unictype/property-bidi-pdf: New file.
8584         * modules/unictype/property-bidi-embedding-or-override: New file.
8585         * modules/unictype/property-bidi-other-neutral: New file.
8586         * modules/unictype/property-hex-digit: New file.
8587         * modules/unictype/property-ascii-hex-digit: New file.
8588         * modules/unictype/property-ideographic: New file.
8589         * modules/unictype/property-unified-ideograph: New file.
8590         * modules/unictype/property-radical: New file.
8591         * modules/unictype/property-ids-binary-operator: New file.
8592         * modules/unictype/property-ids-trinary-operator: New file.
8593         * modules/unictype/property-zero-width: New file.
8594         * modules/unictype/property-space: New file.
8595         * modules/unictype/property-non-break: New file.
8596         * modules/unictype/property-iso-control: New file.
8597         * modules/unictype/property-format-control: New file.
8598         * modules/unictype/property-dash: New file.
8599         * modules/unictype/property-hyphen: New file.
8600         * modules/unictype/property-punctuation: New file.
8601         * modules/unictype/property-line-separator: New file.
8602         * modules/unictype/property-paragraph-separator: New file.
8603         * modules/unictype/property-quotation-mark: New file.
8604         * modules/unictype/property-sentence-terminal: New file.
8605         * modules/unictype/property-terminal-punctuation: New file.
8606         * modules/unictype/property-currency-symbol: New file.
8607         * modules/unictype/property-math: New file.
8608         * modules/unictype/property-other-math: New file.
8609         * modules/unictype/property-paired-punctuation: New file.
8610         * modules/unictype/property-left-of-pair: New file.
8611         * modules/unictype/property-combining: New file.
8612         * modules/unictype/property-composite: New file.
8613         * modules/unictype/property-decimal-digit: New file.
8614         * modules/unictype/property-numeric: New file.
8615         * modules/unictype/property-diacritic: New file.
8616         * modules/unictype/property-extender: New file.
8617         * modules/unictype/property-ignorable-control: New file.
8618         * modules/unictype/property-test: New file.
8619         * modules/unictype/property-byname: New file.
8620         * modules/unictype/property-all: New file.
8621         * modules/unictype/scripts: New file.
8622         * modules/unictype/scripts-all: New file.
8623         * modules/unictype/block-of: New file.
8624         * modules/unictype/block-test: New file.
8625         * modules/unictype/block-list: New file.
8626         * modules/unictype/block-all: New file.
8627         * modules/unictype/syntax-c-whitespace: New file.
8628         * modules/unictype/syntax-java-whitespace: New file.
8629         * modules/unictype/syntax-c-ident: New file.
8630         * modules/unictype/syntax-java-ident: New file.
8631         * modules/unictype/ctype-alnum: New file.
8632         * modules/unictype/ctype-alpha: New file.
8633         * modules/unictype/ctype-cntrl: New file.
8634         * modules/unictype/ctype-digit: New file.
8635         * modules/unictype/ctype-graph: New file.
8636         * modules/unictype/ctype-lower: New file.
8637         * modules/unictype/ctype-print: New file.
8638         * modules/unictype/ctype-punct: New file.
8639         * modules/unictype/ctype-space: New file.
8640         * modules/unictype/ctype-upper: New file.
8641         * modules/unictype/ctype-xdigit: New file.
8642         * modules/unictype/ctype-blank: New file.
8643         * lib/unictype/bidi_byname.c: New file.
8644         * lib/unictype/bidi_name.c: New file.
8645         * lib/unictype/bidi_of.c: New file.
8646         * lib/unictype/bidi_test.c: New file.
8647         * lib/unictype/bitmap.h: New file.
8648         * lib/unictype/block_test.c: New file.
8649         * lib/unictype/blocks.c: New file.
8650         * lib/unictype/categ_C.c: New file.
8651         * lib/unictype/categ_Cc.c: New file.
8652         * lib/unictype/categ_Cf.c: New file.
8653         * lib/unictype/categ_Cn.c: New file.
8654         * lib/unictype/categ_Co.c: New file.
8655         * lib/unictype/categ_Cs.c: New file.
8656         * lib/unictype/categ_L.c: New file.
8657         * lib/unictype/categ_Ll.c: New file.
8658         * lib/unictype/categ_Lm.c: New file.
8659         * lib/unictype/categ_Lo.c: New file.
8660         * lib/unictype/categ_Lt.c: New file.
8661         * lib/unictype/categ_Lu.c: New file.
8662         * lib/unictype/categ_M.c: New file.
8663         * lib/unictype/categ_Mc.c: New file.
8664         * lib/unictype/categ_Me.c: New file.
8665         * lib/unictype/categ_Mn.c: New file.
8666         * lib/unictype/categ_N.c: New file.
8667         * lib/unictype/categ_Nd.c: New file.
8668         * lib/unictype/categ_Nl.c: New file.
8669         * lib/unictype/categ_No.c: New file.
8670         * lib/unictype/categ_P.c: New file.
8671         * lib/unictype/categ_Pc.c: New file.
8672         * lib/unictype/categ_Pd.c: New file.
8673         * lib/unictype/categ_Pe.c: New file.
8674         * lib/unictype/categ_Pf.c: New file.
8675         * lib/unictype/categ_Pi.c: New file.
8676         * lib/unictype/categ_Po.c: New file.
8677         * lib/unictype/categ_Ps.c: New file.
8678         * lib/unictype/categ_S.c: New file.
8679         * lib/unictype/categ_Sc.c: New file.
8680         * lib/unictype/categ_Sk.c: New file.
8681         * lib/unictype/categ_Sm.c: New file.
8682         * lib/unictype/categ_So.c: New file.
8683         * lib/unictype/categ_Z.c: New file.
8684         * lib/unictype/categ_Zl.c: New file.
8685         * lib/unictype/categ_Zp.c: New file.
8686         * lib/unictype/categ_Zs.c: New file.
8687         * lib/unictype/categ_and.c: New file.
8688         * lib/unictype/categ_and_not.c: New file.
8689         * lib/unictype/categ_byname.c: New file.
8690         * lib/unictype/categ_name.c: New file.
8691         * lib/unictype/categ_none.c: New file.
8692         * lib/unictype/categ_of.c: New file.
8693         * lib/unictype/categ_or.c: New file.
8694         * lib/unictype/categ_test.c: New file.
8695         * lib/unictype/combining.c: New file.
8696         * lib/unictype/ctype_alnum.c: New file.
8697         * lib/unictype/ctype_alpha.c: New file.
8698         * lib/unictype/ctype_blank.c: New file.
8699         * lib/unictype/ctype_cntrl.c: New file.
8700         * lib/unictype/ctype_digit.c: New file.
8701         * lib/unictype/ctype_graph.c: New file.
8702         * lib/unictype/ctype_lower.c: New file.
8703         * lib/unictype/ctype_print.c: New file.
8704         * lib/unictype/ctype_punct.c: New file.
8705         * lib/unictype/ctype_space.c: New file.
8706         * lib/unictype/ctype_upper.c: New file.
8707         * lib/unictype/ctype_xdigit.c: New file.
8708         * lib/unictype/decdigit.c: New file.
8709         * lib/unictype/digit.c: New file.
8710         * lib/unictype/identsyntaxmap.h: New file.
8711         * lib/unictype/mirror.c: New file.
8712         * lib/unictype/numeric.c: New file.
8713         * lib/unictype/pr_alphabetic.c: New file.
8714         * lib/unictype/pr_ascii_hex_digit.c: New file.
8715         * lib/unictype/pr_bidi_arabic_digit.c: New file.
8716         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
8717         * lib/unictype/pr_bidi_block_separator.c: New file.
8718         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
8719         * lib/unictype/pr_bidi_common_separator.c: New file.
8720         * lib/unictype/pr_bidi_control.c: New file.
8721         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
8722         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
8723         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
8724         * lib/unictype/pr_bidi_european_digit.c: New file.
8725         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
8726         * lib/unictype/pr_bidi_left_to_right.c: New file.
8727         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
8728         * lib/unictype/pr_bidi_other_neutral.c: New file.
8729         * lib/unictype/pr_bidi_pdf.c: New file.
8730         * lib/unictype/pr_bidi_segment_separator.c: New file.
8731         * lib/unictype/pr_bidi_whitespace.c: New file.
8732         * lib/unictype/pr_byname.c: New file.
8733         * lib/unictype/pr_byname.gperf: New file.
8734         * lib/unictype/pr_combining.c: New file.
8735         * lib/unictype/pr_composite.c: New file.
8736         * lib/unictype/pr_currency_symbol.c: New file.
8737         * lib/unictype/pr_dash.c: New file.
8738         * lib/unictype/pr_decimal_digit.c: New file.
8739         * lib/unictype/pr_default_ignorable_code_point.c: New file.
8740         * lib/unictype/pr_deprecated.c: New file.
8741         * lib/unictype/pr_diacritic.c: New file.
8742         * lib/unictype/pr_extender.c: New file.
8743         * lib/unictype/pr_format_control.c: New file.
8744         * lib/unictype/pr_grapheme_base.c: New file.
8745         * lib/unictype/pr_grapheme_extend.c: New file.
8746         * lib/unictype/pr_grapheme_link.c: New file.
8747         * lib/unictype/pr_hex_digit.c: New file.
8748         * lib/unictype/pr_hyphen.c: New file.
8749         * lib/unictype/pr_id_continue.c: New file.
8750         * lib/unictype/pr_id_start.c: New file.
8751         * lib/unictype/pr_ideographic.c: New file.
8752         * lib/unictype/pr_ids_binary_operator.c: New file.
8753         * lib/unictype/pr_ids_trinary_operator.c: New file.
8754         * lib/unictype/pr_ignorable_control.c: New file.
8755         * lib/unictype/pr_iso_control.c: New file.
8756         * lib/unictype/pr_join_control.c: New file.
8757         * lib/unictype/pr_left_of_pair.c: New file.
8758         * lib/unictype/pr_line_separator.c: New file.
8759         * lib/unictype/pr_logical_order_exception.c: New file.
8760         * lib/unictype/pr_lowercase.c: New file.
8761         * lib/unictype/pr_math.c: New file.
8762         * lib/unictype/pr_non_break.c: New file.
8763         * lib/unictype/pr_not_a_character.c: New file.
8764         * lib/unictype/pr_numeric.c: New file.
8765         * lib/unictype/pr_other_alphabetic.c: New file.
8766         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
8767         * lib/unictype/pr_other_grapheme_extend.c: New file.
8768         * lib/unictype/pr_other_id_continue.c: New file.
8769         * lib/unictype/pr_other_id_start.c: New file.
8770         * lib/unictype/pr_other_lowercase.c: New file.
8771         * lib/unictype/pr_other_math.c: New file.
8772         * lib/unictype/pr_other_uppercase.c: New file.
8773         * lib/unictype/pr_paired_punctuation.c: New file.
8774         * lib/unictype/pr_paragraph_separator.c: New file.
8775         * lib/unictype/pr_pattern_syntax.c: New file.
8776         * lib/unictype/pr_pattern_white_space.c: New file.
8777         * lib/unictype/pr_private_use.c: New file.
8778         * lib/unictype/pr_punctuation.c: New file.
8779         * lib/unictype/pr_quotation_mark.c: New file.
8780         * lib/unictype/pr_radical.c: New file.
8781         * lib/unictype/pr_sentence_terminal.c: New file.
8782         * lib/unictype/pr_soft_dotted.c: New file.
8783         * lib/unictype/pr_space.c: New file.
8784         * lib/unictype/pr_terminal_punctuation.c: New file.
8785         * lib/unictype/pr_test.c: New file.
8786         * lib/unictype/pr_titlecase.c: New file.
8787         * lib/unictype/pr_unassigned_code_value.c: New file.
8788         * lib/unictype/pr_unified_ideograph.c: New file.
8789         * lib/unictype/pr_uppercase.c: New file.
8790         * lib/unictype/pr_variation_selector.c: New file.
8791         * lib/unictype/pr_white_space.c: New file.
8792         * lib/unictype/pr_xid_continue.c: New file.
8793         * lib/unictype/pr_xid_start.c: New file.
8794         * lib/unictype/pr_zero_width.c: New file.
8795         * lib/unictype/scripts.c: New file.
8796         * lib/unictype/sy_c_ident.c: New file.
8797         * lib/unictype/sy_c_whitespace.c: New file.
8798         * lib/unictype/sy_java_ident.c: New file.
8799         * lib/unictype/sy_java_whitespace.c: New file.
8800
8801         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
8802         Unicode 5.0.0.
8803         * lib/unictype/blocks.h: Likewise.
8804         * lib/unictype/categ_C.h: Likewise.
8805         * lib/unictype/categ_Cc.h: Likewise.
8806         * lib/unictype/categ_Cf.h: Likewise.
8807         * lib/unictype/categ_Cn.h: Likewise.
8808         * lib/unictype/categ_Co.h: Likewise.
8809         * lib/unictype/categ_Cs.h: Likewise.
8810         * lib/unictype/categ_L.h: Likewise.
8811         * lib/unictype/categ_Ll.h: Likewise.
8812         * lib/unictype/categ_Lm.h: Likewise.
8813         * lib/unictype/categ_Lo.h: Likewise.
8814         * lib/unictype/categ_Lt.h: Likewise.
8815         * lib/unictype/categ_Lu.h: Likewise.
8816         * lib/unictype/categ_M.h: Likewise.
8817         * lib/unictype/categ_Mc.h: Likewise.
8818         * lib/unictype/categ_Me.h: Likewise.
8819         * lib/unictype/categ_Mn.h: Likewise.
8820         * lib/unictype/categ_N.h: Likewise.
8821         * lib/unictype/categ_Nd.h: Likewise.
8822         * lib/unictype/categ_Nl.h: Likewise.
8823         * lib/unictype/categ_No.h: Likewise.
8824         * lib/unictype/categ_P.h: Likewise.
8825         * lib/unictype/categ_Pc.h: Likewise.
8826         * lib/unictype/categ_Pd.h: Likewise.
8827         * lib/unictype/categ_Pe.h: Likewise.
8828         * lib/unictype/categ_Pf.h: Likewise.
8829         * lib/unictype/categ_Pi.h: Likewise.
8830         * lib/unictype/categ_Po.h: Likewise.
8831         * lib/unictype/categ_Ps.h: Likewise.
8832         * lib/unictype/categ_S.h: Likewise.
8833         * lib/unictype/categ_Sc.h: Likewise.
8834         * lib/unictype/categ_Sk.h: Likewise.
8835         * lib/unictype/categ_Sm.h: Likewise.
8836         * lib/unictype/categ_So.h: Likewise.
8837         * lib/unictype/categ_Z.h: Likewise.
8838         * lib/unictype/categ_Zl.h: Likewise.
8839         * lib/unictype/categ_Zp.h: Likewise.
8840         * lib/unictype/categ_Zs.h: Likewise.
8841         * lib/unictype/categ_of.h: Likewise.
8842         * lib/unictype/combining.h: Likewise.
8843         * lib/unictype/ctype_alnum.h: Likewise.
8844         * lib/unictype/ctype_alpha.h: Likewise.
8845         * lib/unictype/ctype_blank.h: Likewise.
8846         * lib/unictype/ctype_cntrl.h: Likewise.
8847         * lib/unictype/ctype_digit.h: Likewise.
8848         * lib/unictype/ctype_graph.h: Likewise.
8849         * lib/unictype/ctype_lower.h: Likewise.
8850         * lib/unictype/ctype_print.h: Likewise.
8851         * lib/unictype/ctype_punct.h: Likewise.
8852         * lib/unictype/ctype_space.h: Likewise.
8853         * lib/unictype/ctype_upper.h: Likewise.
8854         * lib/unictype/ctype_xdigit.h: Likewise.
8855         * lib/unictype/decdigit.h: Likewise.
8856         * lib/unictype/digit.h: Likewise.
8857         * lib/unictype/mirror.h: Likewise.
8858         * lib/unictype/numeric.h: Likewise.
8859         * lib/unictype/pr_alphabetic.h: Likewise.
8860         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8861         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8862         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8863         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8864         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8865         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8866         * lib/unictype/pr_bidi_control.h: Likewise.
8867         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8868         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8869         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8870         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8871         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8872         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8873         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8874         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8875         * lib/unictype/pr_bidi_pdf.h: Likewise.
8876         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8877         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8878         * lib/unictype/pr_combining.h: Likewise.
8879         * lib/unictype/pr_composite.h: Likewise.
8880         * lib/unictype/pr_currency_symbol.h: Likewise.
8881         * lib/unictype/pr_dash.h: Likewise.
8882         * lib/unictype/pr_decimal_digit.h: Likewise.
8883         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8884         * lib/unictype/pr_deprecated.h: Likewise.
8885         * lib/unictype/pr_diacritic.h: Likewise.
8886         * lib/unictype/pr_extender.h: Likewise.
8887         * lib/unictype/pr_format_control.h: Likewise.
8888         * lib/unictype/pr_grapheme_base.h: Likewise.
8889         * lib/unictype/pr_grapheme_extend.h: Likewise.
8890         * lib/unictype/pr_grapheme_link.h: Likewise.
8891         * lib/unictype/pr_hex_digit.h: Likewise.
8892         * lib/unictype/pr_hyphen.h: Likewise.
8893         * lib/unictype/pr_id_continue.h: Likewise.
8894         * lib/unictype/pr_id_start.h: Likewise.
8895         * lib/unictype/pr_ideographic.h: Likewise.
8896         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8897         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8898         * lib/unictype/pr_ignorable_control.h: Likewise.
8899         * lib/unictype/pr_iso_control.h: Likewise.
8900         * lib/unictype/pr_join_control.h: Likewise.
8901         * lib/unictype/pr_left_of_pair.h: Likewise.
8902         * lib/unictype/pr_line_separator.h: Likewise.
8903         * lib/unictype/pr_logical_order_exception.h: Likewise.
8904         * lib/unictype/pr_lowercase.h: Likewise.
8905         * lib/unictype/pr_math.h: Likewise.
8906         * lib/unictype/pr_non_break.h: Likewise.
8907         * lib/unictype/pr_not_a_character.h: Likewise.
8908         * lib/unictype/pr_numeric.h: Likewise.
8909         * lib/unictype/pr_other_alphabetic.h: Likewise.
8910         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8911         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8912         * lib/unictype/pr_other_id_continue.h: Likewise.
8913         * lib/unictype/pr_other_id_start.h: Likewise.
8914         * lib/unictype/pr_other_lowercase.h: Likewise.
8915         * lib/unictype/pr_other_math.h: Likewise.
8916         * lib/unictype/pr_other_uppercase.h: Likewise.
8917         * lib/unictype/pr_paired_punctuation.h: Likewise.
8918         * lib/unictype/pr_paragraph_separator.h: Likewise.
8919         * lib/unictype/pr_pattern_syntax.h: Likewise.
8920         * lib/unictype/pr_pattern_white_space.h: Likewise.
8921         * lib/unictype/pr_private_use.h: Likewise.
8922         * lib/unictype/pr_punctuation.h: Likewise.
8923         * lib/unictype/pr_quotation_mark.h: Likewise.
8924         * lib/unictype/pr_radical.h: Likewise.
8925         * lib/unictype/pr_sentence_terminal.h: Likewise.
8926         * lib/unictype/pr_soft_dotted.h: Likewise.
8927         * lib/unictype/pr_space.h: Likewise.
8928         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8929         * lib/unictype/pr_titlecase.h: Likewise.
8930         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8931         * lib/unictype/pr_unified_ideograph.h: Likewise.
8932         * lib/unictype/pr_uppercase.h: Likewise.
8933         * lib/unictype/pr_variation_selector.h: Likewise.
8934         * lib/unictype/pr_white_space.h: Likewise.
8935         * lib/unictype/pr_xid_continue.h: Likewise.
8936         * lib/unictype/pr_xid_start.h: Likewise.
8937         * lib/unictype/pr_zero_width.h: Likewise.
8938         * lib/unictype/scripts.h: Likewise.
8939         * lib/unictype/scripts_byname.gperf: Likewise.
8940         * lib/unictype/sy_c_ident.h: Likewise.
8941         * lib/unictype/sy_c_whitespace.h: Likewise.
8942         * lib/unictype/sy_java_ident.h: Likewise.
8943         * lib/unictype/sy_java_whitespace.h: Likewise.
8944
8945         * lib/unictype/Makefile: New file.
8946         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
8947         glibc.
8948         * lib/unictype/3level.h: New file, copied from glibc.
8949         * lib/unictype/3levelbit.h: New file.
8950
8951 2007-11-11  Bruno Haible  <bruno@clisp.org>
8952
8953         * modules/gperf: New file.
8954         * modules/iconv_open (Depends-on): Add it.
8955         (Makefile.am): Remove the GPERF definition.
8956
8957 2007-11-11  Bruno Haible  <bruno@clisp.org>
8958
8959         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
8960         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
8961
8962 2007-11-11  Bruno Haible  <bruno@clisp.org>
8963
8964         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
8965         (usage): Remove function.
8966
8967 2007-11-11  Bruno Haible  <bruno@clisp.org>
8968
8969         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
8970         gl_FUNC_CEILF_LIBS.
8971         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
8972         gl_FUNC_CEIL_LIBS.
8973         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
8974         gl_FUNC_CEILL_LIBS.
8975         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
8976         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
8977         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
8978
8979 2007-11-11  Bruno Haible  <bruno@clisp.org>
8980
8981         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
8982         roundf were declared but do not exist on functions.
8983         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
8984         roundl were declared but do not exist on functions.
8985         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
8986         HAVE_FLOORL_AND_CEILL, respectively.
8987         Needed for Sun C on Solaris 10.
8988
8989 2007-11-11  Bruno Haible  <bruno@clisp.org>
8990
8991         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
8992         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
8993         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
8994         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
8995         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
8996         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
8997         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
8998         HAVE_DECL_ROUNDF.
8999         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
9000         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
9001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
9002         of HAVE_DECL_ROUND*.
9003         * modules/math (Makefile.am): Update.
9004
9005 2007-11-10  Bruno Haible  <bruno@clisp.org>
9006
9007         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
9008         ptrdiff_t as m4/intl.m4.
9009
9010 2007-11-10  Jim Meyering  <meyering@redhat.com>
9011
9012         Avoid link failure for the argmatch test.
9013         * tests/test-argmatch.c (usage): Define function to avoid a link
9014         failure: argmatch_die requires a usage function.
9015
9016 2007-11-09  Bruno Haible  <bruno@clisp.org>
9017
9018         * doc/functions/snprintf.texi: Mention BeOS deficiency.
9019         * doc/functions/vsnprintf.texi: Likewise.
9020         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
9021         with a size argument < 2.
9022
9023 2007-11-09  Bruno Haible  <bruno@clisp.org>
9024
9025         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
9026         buffer. Fixes an inefficiency introduced on 2007-11-03.
9027
9028 2007-11-09  Bruno Haible  <bruno@clisp.org>
9029
9030         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
9031         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
9032
9033 2007-11-08  Jim Meyering  <meyering@redhat.com>
9034
9035         Change cache variable name prefix "jm_" to "gl_" everywhere.
9036         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
9037         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
9038         * m4/uptime.m4: s/gl_/jm_/
9039
9040 2007-11-07  Bruno Haible  <bruno@clisp.org>
9041
9042         Update to GNU gettext 0.17.
9043         * m4/intl.m4: Update to GNU gettext 0.17.
9044         * m4/po.m4: Likewise.
9045         * modules/gettext (Files): Remove m4/ulonglong.m4.
9046         (configure.ac): Require gettext infrastructure from version 0.17.
9047
9048 2007-11-06  Bruno Haible  <bruno@clisp.org>
9049
9050         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
9051         symbolic values are not defined in a public header.
9052         * lib/freadable.c (freadable) [QNX]: Likewise.
9053         * lib/freadahead.c (freadahead) [QNX]: Likewise.
9054         * lib/freading.c (freading) [QNX]: Likewise.
9055         * lib/fseterr.c (fseterr) [QNX]: Likewise.
9056         * lib/fwritable.c (fwritable) [QNX]: Likewise.
9057         * lib/fwriting.c (fwriting) [QNX]: Likewise.
9058         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
9059         Reported by Alain Magloire.
9060
9061         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
9062
9063 2007-11-05  Bruno Haible  <bruno@clisp.org>
9064
9065         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
9066         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
9067         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
9068         Reported by Eric Blake.
9069
9070 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9071             Bruno Haible  <bruno@clisp.org>
9072
9073         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
9074         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
9075         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
9076         (malloc): Undefine also before including <stdlib.h>.
9077         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
9078         Needed on OSF/1 4.0.
9079
9080 2007-11-05  Jim Meyering  <meyering@redhat.com>
9081
9082         git-version-gen: sync from coreutils.
9083         * build-aux/git-version-gen: Add comments.
9084         Change the first '-' to '.' in the snapshot version string,
9085         e.g., 6.9-377-08144 -> 6.9.377-08144
9086         Remove first parameter.
9087         Don't declare a version "-dirty" merely because a time
9088         stamp has changed.
9089
9090 2007-11-04  Bruno Haible  <bruno@clisp.org>
9091
9092         * lib/lock.h: Protect all macro definitions containing an 'if'
9093         statement through a "do { ... } while (0)".
9094         * lib/tls.h: Likewise.
9095
9096 2007-11-04  Bruno Haible  <bruno@clisp.org>
9097
9098         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
9099
9100 2007-11-04  Bruno Haible  <bruno@clisp.org>
9101
9102         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
9103         * modules/fprintf-posix (Depends-on): Add nocrash.
9104         * modules/snprintf-posix (Depends-on): Likewise.
9105         * modules/sprintf-posix (Depends-on): Likewise.
9106         * modules/vasnprintf-posix (Depends-on): Likewise.
9107         * modules/vasprintf-posix (Depends-on): Likewise.
9108         * modules/vfprintf-posix (Depends-on): Likewise.
9109         * modules/vsnprintf-posix (Depends-on): Likewise.
9110         * modules/vsprintf-posix (Depends-on): Likewise.
9111         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9112         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9113         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9114         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9115         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9116         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9117         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9118
9119 2007-11-04  Bruno Haible  <bruno@clisp.org>
9120
9121         * modules/nocrash: New file.
9122         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
9123         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
9124
9125 2007-11-04  Bruno Haible  <bruno@clisp.org>
9126
9127         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
9128         precision handling.
9129         * tests/test-vasprintf-posix.c (test_function): Likewise.
9130         * tests/test-snprintf-posix.h (test_function): Likewise.
9131         * tests/test-sprintf-posix.h (test_function): Likewise.
9132
9133         Fix *printf behaviour for large precisions on mingw and BeOS.
9134         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
9135         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
9136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
9137         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9138         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9139         gl_PRINTF_PRECISION and test its result. Invoke
9140         gl_PREREQ_VASNPRINTF_PRECISION.
9141         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9142         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9143         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9144         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9145         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9146         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9147         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9148         * doc/functions/fprintf.texi: Update.
9149         * doc/functions/printf.texi: Update.
9150         * doc/functions/snprintf.texi: Update.
9151         * doc/functions/sprintf.texi: Update.
9152         * doc/functions/vfprintf.texi: Update.
9153         * doc/functions/vprintf.texi: Update.
9154         * doc/functions/vsnprintf.texi: Update.
9155         * doc/functions/vsprintf.texi: Update.
9156
9157 2007-11-04  Bruno Haible  <bruno@clisp.org>
9158
9159         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
9160
9161 2007-11-04  Bruno Haible  <bruno@clisp.org>
9162
9163         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
9164         Reported by Sylvain Beucler <beuc@gnu.org>.
9165
9166 2007-11-03  Bruno Haible  <bruno@clisp.org>
9167
9168         * tests/test-fprintf-posix2.sh: New file.
9169         * tests/test-fprintf-posix2.c: New file.
9170         * modules/fprintf-posix-tests (Files): Add them.
9171         (TESTS): Add test-fprintf-posix2.sh.
9172         (configure.ac): Check for getrlimit and setrlimit.
9173         (check_PROGRAMS): Add test-fprintf-posix2.
9174
9175         * tests/test-printf-posix2.sh: New file.
9176         * tests/test-printf-posix2.c: New file.
9177         * modules/printf-posix-tests (Files): Add them.
9178         (TESTS): Add test-printf-posix2.sh.
9179         (configure.ac): Check for getrlimit and setrlimit.
9180         (check_PROGRAMS): Add test-printf-posix2.
9181
9182         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
9183         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
9184         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
9185         (decode_double): New function, copied from decode_long_double.
9186         (scale10_round_decimal_decoded): New function, extracted from
9187         scale10_round_decimal_long_double.
9188         (scale10_round_decimal_long_double): Use it.
9189         (scale10_round_decimal_double): New function.
9190         (floorlog10): New function.
9191         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
9192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
9193         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9194         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9195         gl_PRINTF_ENOMEM and test its result. Invoke
9196         gl_PREREQ_VASNPRINTF_ENOMEM.
9197         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9198         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9199         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9200         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9201         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9202         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9203         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9204         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
9205         * modules/snprintf-posix (Depends-on): Likewise.
9206         * modules/sprintf-posix (Depends-on): Likewise.
9207         * modules/vasnprintf-posix (Depends-on): Likewise.
9208         * modules/vasprintf-posix (Depends-on): Likewise.
9209         * modules/vfprintf-posix (Depends-on): Likewise.
9210         * modules/vsnprintf-posix (Depends-on): Likewise.
9211         * modules/vsprintf-posix (Depends-on): Likewise.
9212         * doc/functions/fprintf.texi: Update.
9213         * doc/functions/printf.texi: Update.
9214         * doc/functions/snprintf.texi: Update.
9215         * doc/functions/sprintf.texi: Update.
9216         * doc/functions/vfprintf.texi: Update.
9217         * doc/functions/vprintf.texi: Update.
9218         * doc/functions/vsnprintf.texi: Update.
9219         * doc/functions/vsprintf.texi: Update.
9220
9221 2007-11-03  Bruno Haible  <bruno@clisp.org>
9222
9223         * modules/frexp-nolibm-tests: New file.
9224
9225         * modules/frexp-nolibm: New file.
9226         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
9227
9228 2007-11-03  Bruno Haible  <bruno@clisp.org>
9229
9230         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
9231         value is C99 compliant.
9232         Needed for OSF/1 5.1.
9233
9234 2007-11-03  Bruno Haible  <bruno@clisp.org>
9235
9236         Fix out-of-memory handling of vasnprintf.
9237         * lib/printf-parse.c: Include <errno.h>.
9238         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
9239         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
9240         is already set.
9241
9242 2007-11-02  Eric Blake  <ebb9@byu.net>
9243
9244         Fix tests on cygwin.
9245         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
9246
9247 2007-11-01  Bruno Haible  <bruno@clisp.org>
9248
9249         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
9250         warning.
9251         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
9252         needed for POSIX compatibility.
9253
9254 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9255
9256         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
9257         for compatibility with GNU.
9258
9259 2007-11-01  Bruno Haible  <bruno@clisp.org>
9260
9261         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
9262         (putenv): Renamed from rpl_putenv. Change argument type from
9263         'const char *' to 'char *'.
9264         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
9265         of defining putenv in config.h, just set REPLACE_PUTENV.
9266         * modules/putenv (Depends-on): Add stdlib.
9267         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9268         (Include): Use <stdlib.h>.
9269         * lib/stdlib.in.h (putenv): New declaration.
9270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
9271         REPLACE_PUTENV.
9272         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
9273         REPLACE_PUTENV.
9274         Needed for MacOS X 10.5.0.
9275         Reported by Peter O'Gorman <peter@pogma.com>.
9276
9277 2007-11-01  Jim Meyering  <meyering@redhat.com>
9278
9279         Treat an empty date string exactly like "0".
9280         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
9281         if the remaining date string (to be parsed) is empty, use "0".
9282         Reported by Mischa Molhoek and discussed in this thread:
9283         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
9284
9285 2007-10-31  Bruno Haible  <bruno@clisp.org>
9286
9287         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
9288         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
9289         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
9290         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
9291         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
9292         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
9293
9294 2007-10-31  Bruno Haible  <bruno@clisp.org>
9295
9296         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
9297         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
9298         (AC_TYPE_LONG_LONG_INT): Use it.
9299         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
9300         it as well.
9301         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
9302         to m4/longlong.m4.
9303         * modules/stdint (Files): Remove m4/ulonglong.m4.
9304         * modules/strtoull (Files): Use m4/longlong.m4 instead of
9305         m4/ulonglong.m4.
9306         * modules/strtoumax (Files): Likewise.
9307
9308 2007-10-30  Bruno Haible  <bruno@clisp.org>
9309
9310         * modules/xvasprintf-posix: New file.
9311         Suggested by Eric Blake.
9312
9313 2007-10-30  Bruno Haible  <bruno@clisp.org>
9314
9315         * modules/xprintf-posix-tests: New file.
9316         * tests/test-xprintf-posix.sh: New file.
9317         * tests/test-xprintf-posix.c: New file.
9318         * tests/test-xfprintf-posix.c: New file.
9319
9320         * modules/xprintf-posix: New file.
9321
9322 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9323
9324         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
9325         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
9326         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
9327
9328 2007-10-29  Bruno Haible  <bruno@clisp.org>
9329
9330         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
9331         contain the special marker '_cv_'.
9332         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9333         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9334         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9335         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9336         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9337         Reported by Ralf Wildenhues.
9338
9339 2007-10-29  Bruno Haible  <bruno@clisp.org>
9340
9341         * gnulib-tool (func_import): When --lgpl is not specified, set
9342         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
9343         GPLv3.
9344         Reported by Simon Josefsson.
9345
9346 2007-10-28  Bruno Haible  <bruno@clisp.org>
9347
9348         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
9349         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
9350         HAVE_DECL_ISFINITE.
9351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9352         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
9353         HAVE_DECL_ISFINITE.
9354
9355 2007-10-28  Bruno Haible  <bruno@clisp.org>
9356
9357         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
9358         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
9359
9360 2007-10-28  Bruno Haible  <bruno@clisp.org>
9361
9362         Fix link errors with Sun C 5.0 on Solaris 10.
9363         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
9364         function is declared but not present in the compiler's libm.
9365         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9366         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9367         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
9368         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
9369         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
9370         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
9371         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
9372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9373         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
9374         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
9375         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
9376         HAVE_DECL_FLOORL.
9377
9378 2007-10-28  Bruno Haible  <bruno@clisp.org>
9379
9380         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
9381         gl_FUNC_FLOORL. Cache the result.
9382         (gl_FUNC_FLOORL): Use it.
9383         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
9384         gl_FUNC_CEILL. Cache the result.
9385         (gl_FUNC_CEILL): Use it.
9386
9387         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
9388         gl_FUNC_FLOOR. Cache the result.
9389         (gl_FUNC_FLOOR): Use it.
9390         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
9391         gl_FUNC_CEIL. Cache the result.
9392         (gl_FUNC_CEIL): Use it.
9393
9394         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
9395         gl_FUNC_FLOORF. Cache the result.
9396         (gl_FUNC_FLOORF): Use it.
9397         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
9398         gl_FUNC_CEILF. Cache the result.
9399         (gl_FUNC_CEILF): Use it.
9400
9401 2007-10-28  Bruno Haible  <bruno@clisp.org>
9402
9403         * gnulib-tool: Allow specifying the LGPL version number through
9404         --lgpl=2 or --lgpl=3.
9405         (func_usage): Document --lgpl with argument.
9406         Handle --lgpl=... arguments.
9407         (func_import): Recognize also gl_LGPL calls with an argument. When
9408         --lgpl=2 is used and the module's license is just LGPL, report an
9409         error. Set sed_transform_lib_file according to the lgpl variable. In
9410         the generated files, use --lgpl or gl_LGPL invocations with argument,
9411         if necessary.
9412         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
9413         an LGPv2+ license.
9414         * doc/gnulib-tool.texi (Modified imports): Update explanation of
9415         gl_LGPL macro.
9416
9417 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9418             Bruno Haible  <bruno@clisp.org>
9419
9420         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
9421         (u16_uctomb_aux): Likewise.
9422         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
9423         !HAVE_INLINE.
9424         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
9425
9426 2007-10-28  Bruno Haible  <bruno@clisp.org>
9427
9428         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
9429         Invoke AM_GETTEXT_OPTION if it exists.
9430         * modules/vasprintf: Likewise.
9431         * modules/verror: Likewise.
9432         * modules/xprintf: Likewise.
9433         * modules/xvasprintf: Likewise.
9434
9435 2007-10-27  Ben Pfaff  <blp@gnu.org>
9436
9437         * lib/math.in.h: Define isfinite macro and prototypes for
9438         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
9439         implementations.
9440         * m4/math_h.m4: New substitutions for isfinite module.
9441         * lib/isfinite.c: New file.
9442         * m4/isfinite.m4: New file.
9443         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
9444         * modules/isfinite: New file.
9445         * modules/isfinite-tests: New file.
9446         * tests/tests-isfinite.c: New file.
9447         * doc/functions/isfinite.texi: Mention isfinite module.
9448         * MODULES.html.sh: Mention new module.
9449
9450 2007-10-27  Ben Pfaff  <blp@gnu.org>
9451
9452         Ralf Wildenhues reported that Tru64 4.0D declares the round
9453         functions but does not have definitions.
9454         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
9455         cannot be found in any library, set the output variable to
9456         "missing" instead of "".
9457         * m4/round.m4: Also use our substitute if we cannot find round in
9458         any library, even if it is declared.
9459         * m4/roundf.m4: Likewise for roundf.
9460         * m4/roundl.m4: Likewise for roundl.
9461         * lib/math.in.h: Undefine roundf, round, roundl before defining
9462         their replacements, to allow for hypothetical systems where these
9463         may be defined as macros but not available in libraries.
9464
9465 2007-10-27  Bruno Haible  <bruno@clisp.org>
9466
9467         * doc/gnulib.texi: Invoke @firstparagraphindent.
9468         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
9469         changes in gnulib.
9470         (Source changes): New section.
9471
9472 2007-10-26  Bruno Haible  <bruno@clisp.org>
9473
9474         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
9475         borrowed from autoconf.
9476
9477 2007-10-26  Bruno Haible  <bruno@clisp.org>
9478
9479         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
9480         strerror returned the empty string. Needed on HP-UX 11.00.
9481
9482 2007-10-24  Micah Cowan  <micah@cowan.name>
9483
9484         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
9485         * build-aux/bootstrap: Remove support for now-unnecessary option,
9486         --cvs-user, and envvars CVS_USER, CVS_RSH.
9487
9488 2007-10-24  Jim Meyering  <meyering@redhat.com>
9489
9490         Avoid diagnostics from sha1sum when there is no cached checksum.
9491         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
9492         if the po.s1 file hasn't been created yet.
9493
9494         * build-aux/bootstrap: Sync from coreutils:
9495         2007-10-24  Jim Meyering  <meyering@redhat.com>
9496         Get gnulib from the git repository, not from an obsolete cvs one.
9497         * build-aux/bootstrap: Suggestion from Micah Cowan.
9498         2007-10-04  Jim Meyering  <jim@meyering.net>
9499         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
9500         (update_po_files): Work also when there are no .po files in po/.
9501
9502 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9503
9504         * README: Append ".git" to git and cg examples.
9505         Problem reported by Benoit Sigoure.
9506
9507 2007-10-23  Micah Cowan  <micah@cowan.name>
9508
9509         * users.txt: Add wget.
9510
9511 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9512
9513         Fix linking of some unistdio tests on FreeBSD.
9514         * modules/unistdio/u16-vsnprintf-tests
9515         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
9516         * modules/unistdio/u16-vsprintf-tests
9517         (test_u16_vsnprintf1_LDADD): Likewise.
9518         * modules/unistdio/u32-vsnprintf-tests
9519         (test_u32_vsnprintf1_LDADD): Likewise.
9520         * modules/unistdio/u32-vsprintf-tests
9521         (test_u32_vsprintf1_LDADD): Likewise.
9522         * modules/unistdio/u8-vsnprintf-tests
9523         (test_u8_vsnprintf1_LDADD): Likewise.
9524         * modules/unistdio/u8-vsprintf-tests
9525         (test_u8_vsprintf1_LDADD): Likewise.
9526         * modules/unistdio/ulc-vsnprintf-tests
9527         (test_ulc_vsnprintf1_LDADD): Likewise.
9528         * modules/unistdio/ulc-vsprintf-tests
9529         (test_ulc_vsprintf1_LDADD): Likewise.
9530
9531         Fix linking of some uniconv tests on FreeBSD.
9532         * modules/uniconv/u16-conv-from-enc-tests
9533         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
9534         * modules/uniconv/u16-conv-to-enc-tests
9535         (test_u16_conv_to_enc_LDADD): Likewise.
9536         * modules/uniconv/u16-strconv-from-enc-tests
9537         (test_u16_strconv_from_enc_LDADD): Likewise.
9538         * modules/uniconv/u16-strconv-to-enc-tests
9539         (test_u16_strconv_to_enc_LDADD): Likewise.
9540         * modules/uniconv/u32-conv-from-enc-tests
9541         (test_u32_conv_from_enc_LDADD): Likewise.
9542         * modules/uniconv/u32-conv-to-enc-tests
9543         (test_u32_conv_to_enc_LDADD): Likewise.
9544         * modules/uniconv/u32-strconv-from-enc-tests
9545         (test_u32_strconv_from_enc_LDADD): Likewise.
9546         * modules/uniconv/u32-strconv-to-enc-tests
9547         (test_u32_strconv_to_enc_LDADD): Likewise.
9548         * modules/uniconv/u8-conv-from-enc-tests
9549         (test_u8_conv_from_enc_LDADD): Likewise.
9550         * modules/uniconv/u8-conv-to-enc-tests
9551         (test_u8_conv_to_enc_LDADD): Likewise.
9552         * modules/uniconv/u8-strconv-from-enc-tests
9553         (test_u8_strconv_from_enc_LDADD): Likewise.
9554         * modules/uniconv/u8-strconv-to-enc-tests
9555         (test_u8_strconv_to_enc_LDADD): Likewise.
9556
9557 2007-10-22  Bruno Haible  <bruno@clisp.org>
9558
9559         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
9560         size.
9561
9562 2007-10-22  Eric Blake  <ebb9@byu.net>
9563
9564         Tweak x*printf documentation.
9565         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
9566         variable name and comments.
9567         Suggested by Bruno Haible.
9568
9569 2007-10-22  Bruno Haible  <bruno@clisp.org>
9570
9571         * lib/acl.c (copy_acl): Fix file name in comment.
9572
9573 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9574
9575         Fix Tru64 problem with stdbool.h.
9576         * lib/stdbool.in.h (false, true):
9577         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
9578         Don't declare as an enum in this situation; it runs afoul of Tru64.
9579         Problem reported by Steven M. Schweda in
9580         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
9581
9582 2007-10-22  Eric Blake  <ebb9@byu.net>
9583
9584         Also wrap vf?printf.
9585         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
9586         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
9587         (xvprintf, xvfprintf): New functions.
9588
9589 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9590
9591         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
9592         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
9593
9594         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
9595         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
9596
9597 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9598
9599         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
9600         by Bruno Haible.
9601
9602 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9603
9604         * lib/getloadavg.c
9605         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
9606         Undef `sys' after including sys/table.h, for Tru64 4.0D.
9607
9608         * tests/test-i-ring.c: Work for C89.
9609
9610 2007-10-22  Bruno Haible  <bruno@clisp.org>
9611
9612         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
9613         -1u, in preprocessor expression, so that we don't test for the bug
9614         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
9615         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
9616
9617 2007-10-22  Eric Blake  <ebb9@byu.net>
9618
9619         * tests/test-yesno.sh: Silence stderr during test.
9620
9621 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9622
9623         * modules/crypto/gc-camellia: New file.
9624
9625         * m4/gc-camellia.m4: New file.
9626
9627         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
9628
9629         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
9630
9631 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9632
9633         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
9634         --help to stdout.  Reported by sms@antinode.org (Steven
9635         M. Schweda).
9636
9637 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9638
9639         * users.txt: Fix link to libksba.
9640
9641 2007-10-21  Ben Pfaff  <blp@gnu.org>
9642
9643         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
9644         round.c roundf implementation that depends on floorf and ceilf to
9645         be tested unconditionally.
9646
9647 2007-10-21  Ben Pfaff  <blp@gnu.org>
9648
9649         * m4/check-libm-func.m4: Removed.
9650         * m4/check-math-lib.m4: New file.
9651         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
9652         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
9653         definition and lack of AC_LIBOBJ([roundf]).
9654         * m4/roundl.m4: Ditto, and similarly for roundl.
9655         * modules/round: Reference new m4 file.
9656         * modules/roundf: Ditto.
9657         * modules/roundl: Ditto.
9658         * tests/test-round2.c (main): Use ROUND instead of round.
9659         Bug report from Bruno Haible.
9660
9661 2007-10-21  Bruno Haible  <bruno@clisp.org>
9662
9663         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
9664         context.
9665
9666 2007-10-21  Bruno Haible  <bruno@clisp.org>
9667
9668         * tests/test-wcwidth.c (main): Allow negative result for some control
9669         characters.
9670
9671         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
9672         Needed on OSF/1 5.1.
9673
9674 2007-10-21  Bruno Haible  <bruno@clisp.org>
9675
9676         * tests/test-floorf1.c: Include isnanf.h.
9677         (main): Use isnanf() instead of isnan().
9678         * tests/test-ceilf1.c: Include isnanf.h.
9679         (main): Use isnanf() instead of isnan().
9680         * tests/test-truncf1.c: Include isnanf.h.
9681         (main): Use isnanf() instead of isnan().
9682         * tests/test-roundf1.c: Include isnanf.h.
9683         (main): Use isnanf() instead of isnan().
9684
9685 2007-10-21  Eric Blake  <ebb9@byu.net>
9686
9687         * users.txt: Update URL for m4.
9688
9689 2007-10-21  Bruno Haible  <bruno@clisp.org>
9690
9691         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
9692
9693 2007-10-21  Bruno Haible  <bruno@clisp.org>
9694
9695         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
9696         Git's management files if the CVS files are not present.
9697
9698 2007-10-20  Bruno Haible  <bruno@clisp.org>
9699
9700         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
9701         gcc-3.4.x.
9702
9703 2007-10-20  Ben Pfaff  <blp@gnu.org>
9704
9705         * lib/math.in.h: Declare round, roundf, roundl if we are providing
9706         implementations.
9707         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
9708         * lib/round.c: New file.
9709         * lib/roundf.c: New file.
9710         * lib/roundl.c: New file.
9711         * m4/round.m4: New file.
9712         * m4/roundf.m4: New file.
9713         * m4/roundl.m4: New file.
9714         * m4/check-libm-func-m4: New file.
9715         * modules/math: Replace round, roundf, roundl related @VARS@ in
9716         math.in.h.
9717         * modules/round: New file.
9718         * modules/round-tests: New file.
9719         * modules/roundf: New file.
9720         * modules/roundf-tests: New file.
9721         * modules/roundl: New file.
9722         * modules/roundl-tests: New file.
9723         * tests/test-round1.c: New file.
9724         * tests/test-round2.c: New file.
9725         * tests/test-roundf1.c: New file.
9726         * tests/test-roundf2.c: New file.
9727         * tests/test-roundl.c: New file.
9728         * doc/functions/round.texi: Mention round module.
9729         * doc/functions/roundf.texi: Mention roundf module.
9730         * doc/functions/roundl.texi: Mention roundl module.
9731         * MODULES.html.sh: Mention new modules.
9732         Thanks to Bruno Haible for suggestions.
9733
9734 2007-10-20  Jim Meyering  <meyering@redhat.com>
9735
9736         * lib/xprintf.c: Include <config.h> unconditionally.
9737
9738         Change xprintf's license to GPL.
9739         * modules/xprintf (License): s/LGPL/GPL/, since this module
9740         depends on modules (exit and exitfail) which are GPL.
9741         Suggestion from Bruno Haible.
9742
9743         xprintf fixes.
9744         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
9745         Use a clearer diagnostic.
9746         Patch from Bruno Haible.
9747
9748 2007-10-20  Bruno Haible  <bruno@clisp.org>
9749
9750         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
9751         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
9752         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9753
9754 2007-10-20  Bruno Haible  <bruno@clisp.org>
9755
9756         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
9757         precision in the comparison result > x - 1 or similar.
9758         * tests/test-ceilf2.c (correct_result_p): Likewise.
9759         * tests/test-truncf2.c (correct_result_p): Likewise.
9760         * tests/test-trunc2.c (correct_result_p): Likewise.
9761         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9762
9763 2007-10-20  Bruno Haible  <bruno@clisp.org>
9764
9765         * modules/ceil: New file.
9766         * m4/ceil.m4: New file.
9767         * doc/functions/ceil.texi: Mention the 'ceil' module.
9768
9769 2007-10-20  Bruno Haible  <bruno@clisp.org>
9770
9771         * modules/floor: New file.
9772         * m4/floor.m4: New file.
9773         * doc/functions/floor.texi: Mention the 'floor' module.
9774
9775 2007-10-20  Bruno Haible  <bruno@clisp.org>
9776
9777         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
9778         of %a.
9779         * modules/floorf-tests (Depends-on): Likewise.
9780         * modules/truncf-tests (Depends-on): Likewise.
9781         * modules/trunc-tests (Depends-on): Likewise.
9782         Reported by Ben Pfaff.
9783
9784 2007-10-19  Jim Meyering  <meyering@redhat.com>
9785
9786         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
9787         Don't bother testing specific errno values.  Just test ferror.
9788
9789         New module: xprintf
9790         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
9791
9792 2007-10-19  Bruno Haible  <bruno@clisp.org>
9793
9794         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
9795         syntax.
9796         * modules/javaexec (Makefile.am): Likewise.
9797         * modules/relocatable-prog (Makefile.am): Likewise.
9798         Suggested by Jim Meyering.
9799
9800 2007-10-18  Bruno Haible  <bruno@clisp.org>
9801
9802         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
9803         Reported by Jim Meyering.
9804
9805 2007-10-18  Eric Blake  <ebb9@byu.net>
9806
9807         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
9808
9809 2007-10-18  Bruno Haible  <bruno@clisp.org>
9810
9811         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
9812         the format string into writable memory. Needed in Fortify conditions.
9813
9814 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
9815             Bruno Haible  <bruno@clisp.org>
9816
9817         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
9818         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
9819         * modules/trim (Depends-on): Add mbchar.
9820         (configure.ac): Add gl_FUNC_MBRTOWC.
9821         (Makefile.am): Augment lib_SOURCES.
9822
9823 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
9824
9825         Modify glob.c to use fstatat and dirfd, to simplify it.
9826         Suggested by Eric Blake.
9827         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
9828         Don't include <stdbool.h>; not used.
9829         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
9830         (link_exists_p): Simplify implementation, since we can now assume
9831         dirfd and fstatat.
9832         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
9833
9834 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9835
9836         * gnulib-tool (func_get_dependencies): Fix sed script to
9837         match only tests.
9838
9839 2007-10-17  Bruno Haible  <bruno@clisp.org>
9840
9841         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
9842         allow locale names without encoding suffix.
9843         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9844         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9845
9846 2007-10-16  Bruno Haible  <bruno@clisp.org>
9847
9848         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
9849         * lib/getgroups.c (getgroups): Likewise.
9850         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
9851
9852 2007-10-16  Bruno Haible  <bruno@clisp.org>
9853
9854         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
9855         * modules/malloc-posix (License): Likewise.
9856         * modules/realloc-posix (License): Likewise.
9857         * modules/calloc-posix (License): Likewise.
9858         * modules/intprops (License): Change from GPL to LGPL, with
9859         Paul Eggert's approval.
9860
9861 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9862
9863         Merge glibc changes into lib/glob.c.
9864
9865         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
9866         2007-10-15 04:59:03 UTC.  Here are the changes:
9867
9868         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
9869
9870         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
9871
9872         * lib/glob.c: Add some branch prediction throughout.
9873
9874         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
9875
9876         [BZ #5103]
9877         * lib/glob.c (glob): Recognize patterns starting \/.
9878
9879         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
9880
9881         [BZ #3996]
9882         * lib/glob.c (attribute_hidden): Define if not defined.
9883         (glob): Unescape dirname, filename or username when needed and not
9884         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
9885         is NULL.  Handle unescaped [ in pattern without closing ].
9886         Don't pass GLOB_CHECK down to recursive glob for directories.
9887         (__glob_pattern_type): New function.
9888         (__glob_pattern_p): Implement using __glob_pattern_type.
9889         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9890         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9891         Remove unreachable code.
9892
9893         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
9894
9895         * lib/glob.c (glob_in_dir): Add some comments and asserts to
9896         explain why there are no leaks.
9897
9898         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9899
9900         [BZ #3253]
9901         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9902         time, rather allocate increasingly bigger arrays of pointers, if
9903         possible with alloca, if too large with malloc.
9904
9905 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9906
9907         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
9908         Problem reported by H.Merijn Brand in
9909         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
9910         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
9911         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9912
9913 2007-10-15  Bruno Haible  <bruno@clisp.org>
9914
9915         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
9916         with explicit rpl_ prefix.
9917         * lib/fopen.c (fopen): Likewise.
9918         * lib/freopen.c (freopen): Likewise.
9919         * lib/iconv.c (iconv): Likewise.
9920         * lib/iconv_close.c (iconv_close): Likewise.
9921
9922 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9923
9924         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
9925
9926 2007-10-15  Bruno Haible  <bruno@clisp.org>
9927
9928         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
9929         <stddef.h> instead of <stdlib.h> since we only need NULL.
9930         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9931
9932 2007-10-15  Bruno Haible  <bruno@clisp.org>
9933
9934         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
9935         Replace paragraph talking about LIBOBJS.
9936         Reported by Colin Watson <cjwatson@debian.org>.
9937
9938 2007-10-15  Bruno Haible  <bruno@clisp.org>
9939
9940         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
9941         <stdlib.h> before using NULL.
9942
9943 2007-10-15  Simon Josefsson  <simon@josefsson.org>
9944
9945         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
9946         Reported by Albert Chin <china@thewrittenword.com>.
9947
9948 2007-10-14  Bruno Haible  <bruno@clisp.org>
9949
9950         * modules/iconv_open-utf-tests: New file.
9951         * tests/test-iconv-utf.c: New file.
9952
9953         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
9954         * modules/iconv_open-utf: New file.
9955         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
9956         (iconv, iconv_close): New declarations.
9957         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
9958         be defined.
9959         (iconv_open): Add special handling of conversion between UTF-8 and
9960         UTF-{16,32}{BE,LE}.
9961         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
9962         * lib/iconv_close.c: New file.
9963         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
9964         gl_FUNC_ICONV_OPEN.
9965         (gl_FUNC_ICONV_OPEN): Use it.
9966         (gl_FUNC_ICONV_OPEN_UTF): New macro.
9967         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
9968         and REPLACE_ICONV_UTF.
9969         * modules/iconv_open (Depends-on): Add c-strcase.
9970         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
9971         ICONV_CONST.
9972         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
9973
9974 2007-10-13  Albert Chin  <china@thewrittenword.com>
9975             Bruno Haible  <bruno@clisp.org>
9976
9977         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
9978         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
9979
9980 2007-10-13  Bruno Haible  <bruno@clisp.org>
9981
9982         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
9983         defined, use the ISO C99 inline semantics.
9984         * lib/argp.h (ARGP_EI): Likewise.
9985
9986 2007-10-13  Bruno Haible  <bruno@clisp.org>
9987
9988         Handle 'inline' change in gcc 4.3.0.
9989         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
9990         argp_fmtstream_write, argp_fmtstream_set_lmargin,
9991         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
9992         argp_fmtstream_point): Disable 'extern' declaration if the function
9993         definition is going to be provided inline.
9994         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
9995         semantics, not the ISO C99 inline semantics.
9996         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
9997         'extern' declaration if the function definition is going to be provided
9998         inline.
9999         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
10000         the GNU C inline semantics, not the ISO C99 inline semantics. With
10001         GCC 4.2, avoid a warning.
10002
10003 2007-10-13  Bruno Haible  <bruno@clisp.org>
10004
10005         * lib/freading.h (freading): Enable the use of __freading for
10006         glibc >= 2.7.
10007         * lib/freading.c (freading): Likewise.
10008
10009 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10010
10011         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
10012         "warning: C99 inline functions are not supported; using GNU89".
10013
10014 2007-10-12  Bruno Haible  <bruno@clisp.org>
10015
10016         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
10017         of 2.
10018         * tests/test-ceilf2.c: New file.
10019         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
10020
10021         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
10022         * modules/ceilf-tests: Update.
10023
10024 2007-10-12  Bruno Haible  <bruno@clisp.org>
10025
10026         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
10027         of 2.
10028         * tests/test-floorf2.c: New file.
10029         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
10030
10031         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
10032         * modules/floorf-tests: Update.
10033
10034 2007-10-12  Bruno Haible  <bruno@clisp.org>
10035
10036         * tests/test-trunc2.c: New file.
10037         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
10038
10039         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
10040         * modules/trunc-tests: Update.
10041
10042 2007-10-12  Bruno Haible  <bruno@clisp.org>
10043
10044         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
10045         of 2.
10046         * tests/test-truncf2.c: New file.
10047         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
10048
10049         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
10050         * modules/truncf-tests: Update.
10051
10052 2007-10-11  Eric Blake  <ebb9@byu.net>
10053
10054         Don't claim strerror is broken on Interix.
10055         * doc/functions/strerror.texi (strerror): Known broken systems are
10056         now Solaris 8, and not Interix.
10057         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
10058         Interix on cross-compile.
10059         Reported by Martin Koeppe in
10060         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
10061
10062 2007-10-11  Bruno Haible  <bruno@clisp.org>
10063
10064         * modules/i-ring-tests: New file.
10065         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
10066         instead of assert.
10067
10068 2007-10-11  Bruno Haible  <bruno@clisp.org>
10069
10070         * modules/filenamecat-tests: New file.
10071         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
10072         * lib/filenamecat.c: Remove test code.
10073
10074 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10075
10076         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
10077
10078         * lib/strerror.c: Include <string.h> always, to test interface,
10079         and to remove the need for the dummy.
10080         Include intprops.h to compute width instead of doing it ourselves
10081         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
10082         (strerror): Define it to return NULL if there's no system strerror.
10083         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
10084         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
10085         ancient pre-strerror Unix systems well any more.  Saying "unknown
10086         system error" is enough.
10087         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
10088         simpler strerror.c implementation.
10089         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
10090         Simplify the tests to reflect the simpler strerror implementation.
10091         * modules/strerror (Depends-on): Add intprops.
10092
10093 2007-10-09  Eric Blake  <ebb9@byu.net>
10094
10095         Silence test-fpending.
10096         * modules/fpending-tests (Files): Add wrapper script.
10097         * tests/test-fpending.sh: New file.
10098
10099 2007-10-09  Bruno Haible  <bruno@clisp.org>
10100
10101         * MODULES.html.sh (func_module): Don't create a hyperlink for
10102         function names like 'printf_frexp'.
10103         (Misc): Add crc, memxor.
10104         (Characteristics of floating types): New section.
10105         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
10106         isnanf-nolibm, signbit, trunc, truncf, truncl.
10107         (Enhancements for ISO C 99 functions): New subsection Input/output.
10108         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
10109         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
10110         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
10111         (Compatibility checks for POSIX:2001 functions): Add clock-time.
10112         (Enhancements for POSIX:2001 functions): Add chdir-long.
10113         (File system functions): Add areadlink, chdir-safer, read-file.
10114         Remove cycle-check.
10115         (File system as inode set): New section.
10116         (Date and time): Add gethrxtime.
10117         (Multithreading): Add openmp.
10118         (Internationalization functions): Add localename.
10119         (Unicode string functions): Add unistr/u*-mbsnlen.
10120         (Support for maintaining and releasing projects): Add git-version-gen.
10121         (Lone files): Remove directories.
10122
10123 2007-10-08  Ben Pfaff  <blp@gnu.org>
10124
10125         * lib/xmalloca.h: Fix typo in comment.
10126
10127 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10128
10129         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
10130         when avoiding problems with integer overflow.  Use a portable test
10131         instead.
10132
10133 2007-10-08  Simon Josefsson  <simon@josefsson.org>
10134
10135         * modules/dummy (License): Change to LGPLv2+.
10136         * modules/float (License): Likewise
10137         * modules/realloc (License): Likewise
10138         * modules/stdlib (License): Likewise
10139
10140 2007-10-07  Bruno Haible  <bruno@clisp.org>
10141
10142         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
10143         * floor.c (TWO_MANT_DIG): Likewise.
10144         * ceil.c (TWO_MANT_DIG): Likewise.
10145         Reported by Ben Pfaff.
10146
10147 2007-10-07  Bruno Haible  <bruno@clisp.org>
10148
10149         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
10150         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
10151         * lib/frexp.c (FUNC): Likewise.
10152         * lib/printf-frexp.h (printf_frexp): Likewise.
10153         * lib/printf-frexpl.h (printf_frexpl): Likewise.
10154         * lib/printf-frexp.c (FUNC): Likewise.
10155         Suggested by Jim Meyering.
10156
10157 2007-10-07  Jim Meyering  <meyering@redhat.com>
10158
10159         Make xnanosleep's integer overflow test more robust.
10160         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
10161         so that gcc-4.3.0 doesn't optimize away this test for overflow.
10162
10163 2007-10-07  Bruno Haible  <bruno@clisp.org>
10164
10165         * NEWS: Mention the license change.
10166
10167         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
10168         abbreviations in the modules files.
10169
10170         Change copyright notice from GPLv2+ to GPLv3+.
10171         * README: Change copyright notice.
10172         * MODULES.html.sh: Likewise.
10173         * build-aux/bootstrap.conf: Likewise.
10174         * build-aux/config.libpath: Likewise.
10175         * build-aux/csharpcomp.sh.in: Likewise.
10176         * build-aux/csharpexec.sh.in: Likewise.
10177         * build-aux/install-reloc: Likewise.
10178         * build-aux/javacomp.sh.in: Likewise.
10179         * build-aux/javaexec.sh.in: Likewise.
10180         * build-aux/ldd.sh.in: Likewise.
10181         * build-aux/reloc-ldflags: Likewise.
10182         * build-aux/relocatable.sh.in: Likewise.
10183         * build-aux/x-to-1.in: Likewise.
10184         * check-module: Likewise.
10185         * config/srclistvars.sh: Likewise.
10186         * gnulib-tool: Likewise.
10187         * lib/acl-internal.h: Likewise.
10188         * lib/acl.c: Likewise.
10189         * lib/acl.h: Likewise.
10190         * lib/acl_entries.c: Likewise.
10191         * lib/areadlink-with-size.c: Likewise.
10192         * lib/areadlink.c: Likewise.
10193         * lib/areadlink.h: Likewise.
10194         * lib/argmatch.c: Likewise.
10195         * lib/argmatch.h: Likewise.
10196         * lib/argp-ba.c: Likewise.
10197         * lib/argp-eexst.c: Likewise.
10198         * lib/argp-fmtstream.c: Likewise.
10199         * lib/argp-fmtstream.h: Likewise.
10200         * lib/argp-fs-xinl.c: Likewise.
10201         * lib/argp-help.c: Likewise.
10202         * lib/argp-namefrob.h: Likewise.
10203         * lib/argp-parse.c: Likewise.
10204         * lib/argp-pin.c: Likewise.
10205         * lib/argp-pv.c: Likewise.
10206         * lib/argp-pvh.c: Likewise.
10207         * lib/argp-xinl.c: Likewise.
10208         * lib/argp.h: Likewise.
10209         * lib/at-func.c: Likewise.
10210         * lib/atanl.c: Likewise.
10211         * lib/backupfile.c: Likewise.
10212         * lib/backupfile.h: Likewise.
10213         * lib/basename.c: Likewise.
10214         * lib/binary-io.h: Likewise.
10215         * lib/byteswap.in.h: Likewise.
10216         * lib/c-stack.c: Likewise.
10217         * lib/c-stack.h: Likewise.
10218         * lib/c-strcasestr.c: Likewise.
10219         * lib/c-strcasestr.h: Likewise.
10220         * lib/c-strstr.c: Likewise.
10221         * lib/c-strstr.h: Likewise.
10222         * lib/c-strtod.c: Likewise.
10223         * lib/calloc.c: Likewise.
10224         * lib/canon-host.c: Likewise.
10225         * lib/canon-host.h: Likewise.
10226         * lib/canonicalize-lgpl.c: Likewise.
10227         * lib/canonicalize.c: Likewise.
10228         * lib/canonicalize.h: Likewise.
10229         * lib/ceil.c: Likewise.
10230         * lib/ceilf.c: Likewise.
10231         * lib/ceill.c: Likewise.
10232         * lib/chdir-long.c: Likewise.
10233         * lib/chdir-long.h: Likewise.
10234         * lib/chdir-safer.c: Likewise.
10235         * lib/chdir-safer.h: Likewise.
10236         * lib/chown.c: Likewise.
10237         * lib/classpath.c: Likewise.
10238         * lib/classpath.h: Likewise.
10239         * lib/clean-temp.c: Likewise.
10240         * lib/clean-temp.h: Likewise.
10241         * lib/cloexec.c: Likewise.
10242         * lib/close-stream.c: Likewise.
10243         * lib/closein.c: Likewise.
10244         * lib/closein.h: Likewise.
10245         * lib/closeout.c: Likewise.
10246         * lib/closeout.h: Likewise.
10247         * lib/concat-filename.c: Likewise.
10248         * lib/copy-file.c: Likewise.
10249         * lib/copy-file.h: Likewise.
10250         * lib/count-one-bits.h: Likewise.
10251         * lib/crc.c: Likewise.
10252         * lib/crc.h: Likewise.
10253         * lib/creat-safer.c: Likewise.
10254         * lib/csharpcomp.c: Likewise.
10255         * lib/csharpcomp.h: Likewise.
10256         * lib/csharpexec.c: Likewise.
10257         * lib/csharpexec.h: Likewise.
10258         * lib/cycle-check.c: Likewise.
10259         * lib/cycle-check.h: Likewise.
10260         * lib/diacrit.c: Likewise.
10261         * lib/diacrit.h: Likewise.
10262         * lib/diffseq.h: Likewise.
10263         * lib/dirchownmod.c: Likewise.
10264         * lib/dirent.in.h: Likewise.
10265         * lib/dirfd.c: Likewise.
10266         * lib/dirfd.h: Likewise.
10267         * lib/dirname.c: Likewise.
10268         * lib/dirname.h: Likewise.
10269         * lib/dummy.c: Likewise.
10270         * lib/dup-safer.c: Likewise.
10271         * lib/dup2.c: Likewise.
10272         * lib/eealloc.h: Likewise.
10273         * lib/error.c: Likewise.
10274         * lib/error.h: Likewise.
10275         * lib/euidaccess.c: Likewise.
10276         * lib/exclude.c: Likewise.
10277         * lib/exclude.h: Likewise.
10278         * lib/execute.c: Likewise.
10279         * lib/execute.h: Likewise.
10280         * lib/exitfail.c: Likewise.
10281         * lib/exitfail.h: Likewise.
10282         * lib/expl.c: Likewise.
10283         * lib/fatal-signal.c: Likewise.
10284         * lib/fatal-signal.h: Likewise.
10285         * lib/fbufmode.c: Likewise.
10286         * lib/fbufmode.h: Likewise.
10287         * lib/fchdir.c: Likewise.
10288         * lib/fchmodat.c: Likewise.
10289         * lib/fchownat.c: Likewise.
10290         * lib/fcntl--.h: Likewise.
10291         * lib/fcntl-safer.h: Likewise.
10292         * lib/fcntl.in.h: Likewise.
10293         * lib/fd-safer.c: Likewise.
10294         * lib/fflush.c: Likewise.
10295         * lib/file-has-acl.c: Likewise.
10296         * lib/file-set.c: Likewise.
10297         * lib/file-type.c: Likewise.
10298         * lib/file-type.h: Likewise.
10299         * lib/fileblocks.c: Likewise.
10300         * lib/filemode.c: Likewise.
10301         * lib/filemode.h: Likewise.
10302         * lib/filename.h: Likewise.
10303         * lib/filenamecat.c: Likewise.
10304         * lib/filenamecat.h: Likewise.
10305         * lib/findprog.c: Likewise.
10306         * lib/findprog.h: Likewise.
10307         * lib/float.in.h: Likewise.
10308         * lib/floor.c: Likewise.
10309         * lib/floorf.c: Likewise.
10310         * lib/floorl.c: Likewise.
10311         * lib/fopen-safer.c: Likewise.
10312         * lib/fopen.c: Likewise.
10313         * lib/fpending.c: Likewise.
10314         * lib/fpending.h: Likewise.
10315         * lib/fprintf.c: Likewise.
10316         * lib/fprintftime.h: Likewise.
10317         * lib/fpucw.h: Likewise.
10318         * lib/fpurge.c: Likewise.
10319         * lib/fpurge.h: Likewise.
10320         * lib/freadable.c: Likewise.
10321         * lib/freadable.h: Likewise.
10322         * lib/freadahead.c: Likewise.
10323         * lib/freadahead.h: Likewise.
10324         * lib/freading.c: Likewise.
10325         * lib/freading.h: Likewise.
10326         * lib/free.c: Likewise.
10327         * lib/freopen.c: Likewise.
10328         * lib/frexp.c: Likewise.
10329         * lib/frexpl.c: Likewise.
10330         * lib/fseek.c: Likewise.
10331         * lib/fseterr.c: Likewise.
10332         * lib/fseterr.h: Likewise.
10333         * lib/fstatat.c: Likewise.
10334         * lib/fstrcmp.c: Likewise.
10335         * lib/fstrcmp.h: Likewise.
10336         * lib/fsusage.c: Likewise.
10337         * lib/fsusage.h: Likewise.
10338         * lib/ftell.c: Likewise.
10339         * lib/ftello.c: Likewise.
10340         * lib/fts-cycle.c: Likewise.
10341         * lib/fts.c: Likewise.
10342         * lib/fts_.h: Likewise.
10343         * lib/full-read.c: Likewise.
10344         * lib/full-read.h: Likewise.
10345         * lib/full-write.c: Likewise.
10346         * lib/full-write.h: Likewise.
10347         * lib/fwritable.c: Likewise.
10348         * lib/fwritable.h: Likewise.
10349         * lib/fwriteerror.c: Likewise.
10350         * lib/fwriteerror.h: Likewise.
10351         * lib/fwriting.c: Likewise.
10352         * lib/fwriting.h: Likewise.
10353         * lib/gcd.c: Likewise.
10354         * lib/gcd.h: Likewise.
10355         * lib/getcwd.c: Likewise.
10356         * lib/getdate.h: Likewise.
10357         * lib/getdate.y: Likewise.
10358         * lib/getdomainname.c: Likewise.
10359         * lib/getdomainname.h: Likewise.
10360         * lib/getgroups.c: Likewise.
10361         * lib/gethostname.c: Likewise.
10362         * lib/gethrxtime.c: Likewise.
10363         * lib/gethrxtime.h: Likewise.
10364         * lib/getloadavg.c: Likewise.
10365         * lib/getndelim2.c: Likewise.
10366         * lib/getndelim2.h: Likewise.
10367         * lib/getnline.c: Likewise.
10368         * lib/getnline.h: Likewise.
10369         * lib/getopt.c: Likewise.
10370         * lib/getopt.in.h: Likewise.
10371         * lib/getopt1.c: Likewise.
10372         * lib/getopt_int.h: Likewise.
10373         * lib/getpagesize.h: Likewise.
10374         * lib/getsubopt.c: Likewise.
10375         * lib/gettime.c: Likewise.
10376         * lib/getugroups.c: Likewise.
10377         * lib/getugroups.h: Likewise.
10378         * lib/getusershell.c: Likewise.
10379         * lib/gl_anyavltree_list1.h: Likewise.
10380         * lib/gl_anyavltree_list2.h: Likewise.
10381         * lib/gl_anyhash_list1.h: Likewise.
10382         * lib/gl_anyhash_list2.h: Likewise.
10383         * lib/gl_anylinked_list1.h: Likewise.
10384         * lib/gl_anylinked_list2.h: Likewise.
10385         * lib/gl_anyrbtree_list1.h: Likewise.
10386         * lib/gl_anyrbtree_list2.h: Likewise.
10387         * lib/gl_anytree_list1.h: Likewise.
10388         * lib/gl_anytree_list2.h: Likewise.
10389         * lib/gl_anytree_oset.h: Likewise.
10390         * lib/gl_anytreehash_list1.h: Likewise.
10391         * lib/gl_anytreehash_list2.h: Likewise.
10392         * lib/gl_array_list.c: Likewise.
10393         * lib/gl_array_list.h: Likewise.
10394         * lib/gl_array_oset.c: Likewise.
10395         * lib/gl_array_oset.h: Likewise.
10396         * lib/gl_avltree_list.c: Likewise.
10397         * lib/gl_avltree_list.h: Likewise.
10398         * lib/gl_avltree_oset.c: Likewise.
10399         * lib/gl_avltree_oset.h: Likewise.
10400         * lib/gl_avltreehash_list.c: Likewise.
10401         * lib/gl_avltreehash_list.h: Likewise.
10402         * lib/gl_carray_list.c: Likewise.
10403         * lib/gl_carray_list.h: Likewise.
10404         * lib/gl_linked_list.c: Likewise.
10405         * lib/gl_linked_list.h: Likewise.
10406         * lib/gl_linkedhash_list.c: Likewise.
10407         * lib/gl_linkedhash_list.h: Likewise.
10408         * lib/gl_list.c: Likewise.
10409         * lib/gl_list.h: Likewise.
10410         * lib/gl_oset.c: Likewise.
10411         * lib/gl_oset.h: Likewise.
10412         * lib/gl_rbtree_list.c: Likewise.
10413         * lib/gl_rbtree_list.h: Likewise.
10414         * lib/gl_rbtree_oset.c: Likewise.
10415         * lib/gl_rbtree_oset.h: Likewise.
10416         * lib/gl_rbtreehash_list.c: Likewise.
10417         * lib/gl_rbtreehash_list.h: Likewise.
10418         * lib/gl_sublist.c: Likewise.
10419         * lib/gl_sublist.h: Likewise.
10420         * lib/group-member.c: Likewise.
10421         * lib/group-member.h: Likewise.
10422         * lib/hard-locale.c: Likewise.
10423         * lib/hard-locale.h: Likewise.
10424         * lib/hash-pjw.c: Likewise.
10425         * lib/hash-pjw.h: Likewise.
10426         * lib/hash-triple.c: Likewise.
10427         * lib/hash.c: Likewise.
10428         * lib/hash.h: Likewise.
10429         * lib/human.c: Likewise.
10430         * lib/human.h: Likewise.
10431         * lib/i-ring.c: Likewise.
10432         * lib/i-ring.h: Likewise.
10433         * lib/idcache.c: Likewise.
10434         * lib/imaxabs.c: Likewise.
10435         * lib/imaxdiv.c: Likewise.
10436         * lib/inet_pton.c: Likewise.
10437         * lib/inet_pton.h: Likewise.
10438         * lib/intprops.h: Likewise.
10439         * lib/inttostr.c: Likewise.
10440         * lib/inttostr.h: Likewise.
10441         * lib/inttypes.in.h: Likewise.
10442         * lib/isapipe.c: Likewise.
10443         * lib/isdir.c: Likewise.
10444         * lib/isnan.c: Likewise.
10445         * lib/isnan.h: Likewise.
10446         * lib/isnanf.c: Likewise.
10447         * lib/isnanf.h: Likewise.
10448         * lib/isnanl-nolibm.h: Likewise.
10449         * lib/isnanl.c: Likewise.
10450         * lib/isnanl.h: Likewise.
10451         * lib/javacomp.c: Likewise.
10452         * lib/javacomp.h: Likewise.
10453         * lib/javaexec.c: Likewise.
10454         * lib/javaexec.h: Likewise.
10455         * lib/javaversion.c: Likewise.
10456         * lib/javaversion.h: Likewise.
10457         * lib/javaversion.java: Likewise.
10458         * lib/lbrkprop.h: Likewise.
10459         * lib/lchmod.h: Likewise.
10460         * lib/lchown.c: Likewise.
10461         * lib/ldexpl.c: Likewise.
10462         * lib/linebreak.c: Likewise.
10463         * lib/linebreak.h: Likewise.
10464         * lib/linebuffer.c: Likewise.
10465         * lib/linebuffer.h: Likewise.
10466         * lib/locale.in.h: Likewise.
10467         * lib/logl.c: Likewise.
10468         * lib/long-options.c: Likewise.
10469         * lib/long-options.h: Likewise.
10470         * lib/lstat.c: Likewise.
10471         * lib/lstat.h: Likewise.
10472         * lib/math.in.h: Likewise.
10473         * lib/mbchar.c: Likewise.
10474         * lib/mbchar.h: Likewise.
10475         * lib/mbfile.h: Likewise.
10476         * lib/mbiter.h: Likewise.
10477         * lib/mbscasecmp.c: Likewise.
10478         * lib/mbscasestr.c: Likewise.
10479         * lib/mbschr.c: Likewise.
10480         * lib/mbscspn.c: Likewise.
10481         * lib/mbslen.c: Likewise.
10482         * lib/mbsncasecmp.c: Likewise.
10483         * lib/mbsnlen.c: Likewise.
10484         * lib/mbspbrk.c: Likewise.
10485         * lib/mbspcasecmp.c: Likewise.
10486         * lib/mbsrchr.c: Likewise.
10487         * lib/mbssep.c: Likewise.
10488         * lib/mbsspn.c: Likewise.
10489         * lib/mbsstr.c: Likewise.
10490         * lib/mbstok_r.c: Likewise.
10491         * lib/mbswidth.c: Likewise.
10492         * lib/mbswidth.h: Likewise.
10493         * lib/mbuiter.h: Likewise.
10494         * lib/memcasecmp.c: Likewise.
10495         * lib/memcasecmp.h: Likewise.
10496         * lib/memchr.c: Likewise.
10497         * lib/memcmp.c: Likewise.
10498         * lib/memcoll.c: Likewise.
10499         * lib/memcoll.h: Likewise.
10500         * lib/memcpy.c: Likewise.
10501         * lib/memrchr.c: Likewise.
10502         * lib/mkancesdirs.c: Likewise.
10503         * lib/mkdir-p.c: Likewise.
10504         * lib/mkdir-p.h: Likewise.
10505         * lib/mkdir.c: Likewise.
10506         * lib/mkdirat.c: Likewise.
10507         * lib/mkdtemp.c: Likewise.
10508         * lib/mkstemp-safer.c: Likewise.
10509         * lib/mkstemp.c: Likewise.
10510         * lib/modechange.c: Likewise.
10511         * lib/modechange.h: Likewise.
10512         * lib/mountlist.c: Likewise.
10513         * lib/mountlist.h: Likewise.
10514         * lib/mpsort.c: Likewise.
10515         * lib/nanosleep.c: Likewise.
10516         * lib/obstack.c: Likewise.
10517         * lib/obstack.h: Likewise.
10518         * lib/open-safer.c: Likewise.
10519         * lib/open.c: Likewise.
10520         * lib/openat-die.c: Likewise.
10521         * lib/openat-priv.h: Likewise.
10522         * lib/openat-proc.c: Likewise.
10523         * lib/openat.c: Likewise.
10524         * lib/openat.h: Likewise.
10525         * lib/pagealign_alloc.c: Likewise.
10526         * lib/pagealign_alloc.h: Likewise.
10527         * lib/physmem.c: Likewise.
10528         * lib/physmem.h: Likewise.
10529         * lib/pipe-safer.c: Likewise.
10530         * lib/pipe.c: Likewise.
10531         * lib/pipe.h: Likewise.
10532         * lib/posixtm.c: Likewise.
10533         * lib/posixtm.h: Likewise.
10534         * lib/posixver.c: Likewise.
10535         * lib/printf-frexp.c: Likewise.
10536         * lib/printf-frexp.h: Likewise.
10537         * lib/printf-frexpl.c: Likewise.
10538         * lib/printf-frexpl.h: Likewise.
10539         * lib/printf.c: Likewise.
10540         * lib/progname.c: Likewise.
10541         * lib/progname.h: Likewise.
10542         * lib/progreloc.c: Likewise.
10543         * lib/putenv.c: Likewise.
10544         * lib/quote.c: Likewise.
10545         * lib/quote.h: Likewise.
10546         * lib/quotearg.c: Likewise.
10547         * lib/quotearg.h: Likewise.
10548         * lib/raise.c: Likewise.
10549         * lib/readline.c: Likewise.
10550         * lib/readline.h: Likewise.
10551         * lib/readlink.c: Likewise.
10552         * lib/readtokens.c: Likewise.
10553         * lib/readtokens.h: Likewise.
10554         * lib/readtokens0.c: Likewise.
10555         * lib/readtokens0.h: Likewise.
10556         * lib/readutmp.c: Likewise.
10557         * lib/readutmp.h: Likewise.
10558         * lib/realloc.c: Likewise.
10559         * lib/relocwrapper.c: Likewise.
10560         * lib/rename-dest-slash.c: Likewise.
10561         * lib/rename.c: Likewise.
10562         * lib/rmdir.c: Likewise.
10563         * lib/rpmatch.c: Likewise.
10564         * lib/safe-read.c: Likewise.
10565         * lib/safe-read.h: Likewise.
10566         * lib/safe-write.c: Likewise.
10567         * lib/safe-write.h: Likewise.
10568         * lib/same-inode.h: Likewise.
10569         * lib/same.c: Likewise.
10570         * lib/same.h: Likewise.
10571         * lib/save-cwd.c: Likewise.
10572         * lib/save-cwd.h: Likewise.
10573         * lib/savedir.c: Likewise.
10574         * lib/savedir.h: Likewise.
10575         * lib/savewd.c: Likewise.
10576         * lib/savewd.h: Likewise.
10577         * lib/search.in.h: Likewise.
10578         * lib/setenv.c: Likewise.
10579         * lib/setenv.h: Likewise.
10580         * lib/settime.c: Likewise.
10581         * lib/sh-quote.c: Likewise.
10582         * lib/sh-quote.h: Likewise.
10583         * lib/sig2str.c: Likewise.
10584         * lib/sig2str.h: Likewise.
10585         * lib/signal.in.h: Likewise.
10586         * lib/signbitd.c: Likewise.
10587         * lib/signbitf.c: Likewise.
10588         * lib/signbitl.c: Likewise.
10589         * lib/sigprocmask.c: Likewise.
10590         * lib/sincosl.c: Likewise.
10591         * lib/sleep.c: Likewise.
10592         * lib/sprintf.c: Likewise.
10593         * lib/sqrtl.c: Likewise.
10594         * lib/stat-time.h: Likewise.
10595         * lib/stdio--.h: Likewise.
10596         * lib/stdio-safer.h: Likewise.
10597         * lib/stdlib--.h: Likewise.
10598         * lib/stdlib-safer.h: Likewise.
10599         * lib/stdlib.in.h: Likewise.
10600         * lib/stpcpy.c: Likewise.
10601         * lib/stpncpy.c: Likewise.
10602         * lib/strchrnul.c: Likewise.
10603         * lib/strcspn.c: Likewise.
10604         * lib/strerror.c: Likewise.
10605         * lib/strftime.c: Likewise.
10606         * lib/strftime.h: Likewise.
10607         * lib/striconveh.c: Likewise.
10608         * lib/striconveh.h: Likewise.
10609         * lib/striconveha.c: Likewise.
10610         * lib/striconveha.h: Likewise.
10611         * lib/stripslash.c: Likewise.
10612         * lib/strnlen1.c: Likewise.
10613         * lib/strnlen1.h: Likewise.
10614         * lib/strtod.c: Likewise.
10615         * lib/strtoimax.c: Likewise.
10616         * lib/strtok_r.c: Likewise.
10617         * lib/strtol.c: Likewise.
10618         * lib/strtoll.c: Likewise.
10619         * lib/strtoul.c: Likewise.
10620         * lib/strtoull.c: Likewise.
10621         * lib/sysexits.in.h: Likewise.
10622         * lib/tempname.c: Likewise.
10623         * lib/tempname.h: Likewise.
10624         * lib/timespec.h: Likewise.
10625         * lib/tls.c: Likewise.
10626         * lib/tls.h: Likewise.
10627         * lib/tmpdir.c: Likewise.
10628         * lib/tmpdir.h: Likewise.
10629         * lib/tmpfile-safer.c: Likewise.
10630         * lib/tmpfile.c: Likewise.
10631         * lib/trigl.c: Likewise.
10632         * lib/trigl.h: Likewise.
10633         * lib/trim.c: Likewise.
10634         * lib/trim.h: Likewise.
10635         * lib/trunc.c: Likewise.
10636         * lib/truncf.c: Likewise.
10637         * lib/truncl.c: Likewise.
10638         * lib/tsearch.c: Likewise.
10639         * lib/unicodeio.c: Likewise.
10640         * lib/unicodeio.h: Likewise.
10641         * lib/unistd--.h: Likewise.
10642         * lib/unistd-safer.h: Likewise.
10643         * lib/unistdio/ulc-fprintf.c: Likewise.
10644         * lib/unistdio/ulc-vfprintf.c: Likewise.
10645         * lib/unlinkdir.c: Likewise.
10646         * lib/unlinkdir.h: Likewise.
10647         * lib/unlocked-io.h: Likewise.
10648         * lib/unsetenv.c: Likewise.
10649         * lib/userspec.c: Likewise.
10650         * lib/utime.c: Likewise.
10651         * lib/utimecmp.c: Likewise.
10652         * lib/utimecmp.h: Likewise.
10653         * lib/utimens.c: Likewise.
10654         * lib/verify.h: Likewise.
10655         * lib/verror.c: Likewise.
10656         * lib/verror.h: Likewise.
10657         * lib/version-etc-fsf.c: Likewise.
10658         * lib/version-etc.c: Likewise.
10659         * lib/version-etc.h: Likewise.
10660         * lib/vfprintf.c: Likewise.
10661         * lib/vprintf.c: Likewise.
10662         * lib/vsprintf.c: Likewise.
10663         * lib/w32spawn.h: Likewise.
10664         * lib/wait-process.c: Likewise.
10665         * lib/wait-process.h: Likewise.
10666         * lib/wcwidth.c: Likewise.
10667         * lib/write-any-file.c: Likewise.
10668         * lib/xalloc-die.c: Likewise.
10669         * lib/xalloc.h: Likewise.
10670         * lib/xasprintf.c: Likewise.
10671         * lib/xgetcwd.c: Likewise.
10672         * lib/xgetcwd.h: Likewise.
10673         * lib/xgetdomainname.c: Likewise.
10674         * lib/xgetdomainname.h: Likewise.
10675         * lib/xgethostname.c: Likewise.
10676         * lib/xmalloc.c: Likewise.
10677         * lib/xmalloca.c: Likewise.
10678         * lib/xmalloca.h: Likewise.
10679         * lib/xmemcoll.c: Likewise.
10680         * lib/xnanosleep.c: Likewise.
10681         * lib/xreadlink.c: Likewise.
10682         * lib/xreadlink.h: Likewise.
10683         * lib/xsetenv.c: Likewise.
10684         * lib/xsetenv.h: Likewise.
10685         * lib/xstriconv.c: Likewise.
10686         * lib/xstriconv.h: Likewise.
10687         * lib/xstrndup.c: Likewise.
10688         * lib/xstrndup.h: Likewise.
10689         * lib/xstrtod.c: Likewise.
10690         * lib/xstrtod.h: Likewise.
10691         * lib/xstrtol-error.c: Likewise.
10692         * lib/xstrtol.c: Likewise.
10693         * lib/xstrtol.h: Likewise.
10694         * lib/xtime.h: Likewise.
10695         * lib/xvasprintf.c: Likewise.
10696         * lib/xvasprintf.h: Likewise.
10697         * lib/yesno.c: Likewise.
10698         * lib/yesno.h: Likewise.
10699         * posix-modules: Likewise.
10700         * tests/test-alloca-opt.c: Likewise.
10701         * tests/test-arcfour.c: Likewise.
10702         * tests/test-arctwo.c: Likewise.
10703         * tests/test-argmatch.c: Likewise.
10704         * tests/test-argp-2.sh: Likewise.
10705         * tests/test-argp.c: Likewise.
10706         * tests/test-arpa_inet.c: Likewise.
10707         * tests/test-array_list.c: Likewise.
10708         * tests/test-array_oset.c: Likewise.
10709         * tests/test-atexit.c: Likewise.
10710         * tests/test-avltree_list.c: Likewise.
10711         * tests/test-avltree_oset.c: Likewise.
10712         * tests/test-avltreehash_list.c: Likewise.
10713         * tests/test-base64.c: Likewise.
10714         * tests/test-binary-io.c: Likewise.
10715         * tests/test-byteswap.c: Likewise.
10716         * tests/test-c-ctype.c: Likewise.
10717         * tests/test-c-strcasecmp.c: Likewise.
10718         * tests/test-c-strcasestr.c: Likewise.
10719         * tests/test-c-strncasecmp.c: Likewise.
10720         * tests/test-c-strstr.c: Likewise.
10721         * tests/test-canonicalize-lgpl.c: Likewise.
10722         * tests/test-canonicalize.c: Likewise.
10723         * tests/test-carray_list.c: Likewise.
10724         * tests/test-ceilf.c: Likewise.
10725         * tests/test-ceill.c: Likewise.
10726         * tests/test-count-one-bits.c: Likewise.
10727         * tests/test-crc.c: Likewise.
10728         * tests/test-dirname.c: Likewise.
10729         * tests/test-fbufmode.c: Likewise.
10730         * tests/test-fcntl.c: Likewise.
10731         * tests/test-fflush.c: Likewise.
10732         * tests/test-floorf.c: Likewise.
10733         * tests/test-floorl.c: Likewise.
10734         * tests/test-fopen.c: Likewise.
10735         * tests/test-fprintf-posix.c: Likewise.
10736         * tests/test-fprintf-posix.h: Likewise.
10737         * tests/test-fpurge.c: Likewise.
10738         * tests/test-freadable.c: Likewise.
10739         * tests/test-freadahead.c: Likewise.
10740         * tests/test-freading.c: Likewise.
10741         * tests/test-freopen.c: Likewise.
10742         * tests/test-frexp.c: Likewise.
10743         * tests/test-frexpl.c: Likewise.
10744         * tests/test-fseek.c: Likewise.
10745         * tests/test-fseeko.c: Likewise.
10746         * tests/test-fseterr.c: Likewise.
10747         * tests/test-fstrcmp.c: Likewise.
10748         * tests/test-ftell.c: Likewise.
10749         * tests/test-ftello.c: Likewise.
10750         * tests/test-fwritable.c: Likewise.
10751         * tests/test-fwriting.c: Likewise.
10752         * tests/test-getaddrinfo.c: Likewise.
10753         * tests/test-getpass.c: Likewise.
10754         * tests/test-gettimeofday.c: Likewise.
10755         * tests/test-hmac-md5.c: Likewise.
10756         * tests/test-hmac-sha1.c: Likewise.
10757         * tests/test-iconv.c: Likewise.
10758         * tests/test-iconvme.c: Likewise.
10759         * tests/test-inttypes.c: Likewise.
10760         * tests/test-isnan.c: Likewise.
10761         * tests/test-isnanf.c: Likewise.
10762         * tests/test-isnanl-nolibm.c: Likewise.
10763         * tests/test-isnanl.c: Likewise.
10764         * tests/test-isnanl.h: Likewise.
10765         * tests/test-ldexpl.c: Likewise.
10766         * tests/test-linked_list.c: Likewise.
10767         * tests/test-linkedhash_list.c: Likewise.
10768         * tests/test-locale.c: Likewise.
10769         * tests/test-localename.c: Likewise.
10770         * tests/test-lock.c: Likewise.
10771         * tests/test-lseek.c: Likewise.
10772         * tests/test-malloca.c: Likewise.
10773         * tests/test-math.c: Likewise.
10774         * tests/test-mbscasecmp.c: Likewise.
10775         * tests/test-mbscasestr1.c: Likewise.
10776         * tests/test-mbscasestr2.c: Likewise.
10777         * tests/test-mbscasestr3.c: Likewise.
10778         * tests/test-mbscasestr4.c: Likewise.
10779         * tests/test-mbschr.c: Likewise.
10780         * tests/test-mbscspn.c: Likewise.
10781         * tests/test-mbsncasecmp.c: Likewise.
10782         * tests/test-mbspbrk.c: Likewise.
10783         * tests/test-mbspcasecmp.c: Likewise.
10784         * tests/test-mbsrchr.c: Likewise.
10785         * tests/test-mbsspn.c: Likewise.
10786         * tests/test-mbsstr1.c: Likewise.
10787         * tests/test-mbsstr2.c: Likewise.
10788         * tests/test-mbsstr3.c: Likewise.
10789         * tests/test-md5.c: Likewise.
10790         * tests/test-memmem.c: Likewise.
10791         * tests/test-netinet_in.c: Likewise.
10792         * tests/test-open.c: Likewise.
10793         * tests/test-printf-frexp.c: Likewise.
10794         * tests/test-printf-frexpl.c: Likewise.
10795         * tests/test-printf-posix.c: Likewise.
10796         * tests/test-printf-posix.h: Likewise.
10797         * tests/test-rbtree_list.c: Likewise.
10798         * tests/test-rbtree_oset.c: Likewise.
10799         * tests/test-rbtreehash_list.c: Likewise.
10800         * tests/test-read-file.c: Likewise.
10801         * tests/test-rijndael.c: Likewise.
10802         * tests/test-search.c: Likewise.
10803         * tests/test-signbit.c: Likewise.
10804         * tests/test-sleep.c: Likewise.
10805         * tests/test-snprintf-posix.c: Likewise.
10806         * tests/test-snprintf-posix.h: Likewise.
10807         * tests/test-snprintf.c: Likewise.
10808         * tests/test-sprintf-posix.c: Likewise.
10809         * tests/test-sprintf-posix.h: Likewise.
10810         * tests/test-stat-time.c: Likewise.
10811         * tests/test-stdbool.c: Likewise.
10812         * tests/test-stdint.c: Likewise.
10813         * tests/test-stdio.c: Likewise.
10814         * tests/test-stdlib.c: Likewise.
10815         * tests/test-stpncpy.c: Likewise.
10816         * tests/test-strcasestr.c: Likewise.
10817         * tests/test-striconv.c: Likewise.
10818         * tests/test-striconveh.c: Likewise.
10819         * tests/test-striconveha.c: Likewise.
10820         * tests/test-string.c: Likewise.
10821         * tests/test-sys_select.c: Likewise.
10822         * tests/test-sys_socket.c: Likewise.
10823         * tests/test-sys_stat.c: Likewise.
10824         * tests/test-sys_time.c: Likewise.
10825         * tests/test-sysexits.c: Likewise.
10826         * tests/test-time.c: Likewise.
10827         * tests/test-tls.c: Likewise.
10828         * tests/test-trunc.c: Likewise.
10829         * tests/test-truncf.c: Likewise.
10830         * tests/test-truncl.c: Likewise.
10831         * tests/test-unistd.c: Likewise.
10832         * tests/test-vasnprintf-posix.c: Likewise.
10833         * tests/test-vasnprintf-posix2.c: Likewise.
10834         * tests/test-vasnprintf.c: Likewise.
10835         * tests/test-vasprintf-posix.c: Likewise.
10836         * tests/test-vasprintf.c: Likewise.
10837         * tests/test-verify.c: Likewise.
10838         * tests/test-vfprintf-posix.c: Likewise.
10839         * tests/test-vprintf-posix.c: Likewise.
10840         * tests/test-vsnprintf-posix.c: Likewise.
10841         * tests/test-vsnprintf.c: Likewise.
10842         * tests/test-vsprintf-posix.c: Likewise.
10843         * tests/test-wchar.c: Likewise.
10844         * tests/test-wctype.c: Likewise.
10845         * tests/test-wcwidth.c: Likewise.
10846         * tests/test-xstrtol.c: Likewise.
10847         * tests/test-xvasprintf.c: Likewise.
10848         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10849         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10850         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10851         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10852         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10853         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10854         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10855         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10856         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10857         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10858         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10859         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10860         * tests/uniname/test-uninames.c: Likewise.
10861         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10862         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
10863         * tests/unistdio/test-u16-printf1.h: Likewise.
10864         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10865         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10866         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10867         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10868         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10869         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10870         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10871         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
10872         * tests/unistdio/test-u32-printf1.h: Likewise.
10873         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10874         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10875         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10876         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10877         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10878         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10879         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10880         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
10881         * tests/unistdio/test-u8-printf1.h: Likewise.
10882         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10883         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10884         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10885         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10886         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10887         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10888         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10889         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
10890         * tests/unistdio/test-ulc-printf1.h: Likewise.
10891         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10892         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10893         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10894         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10895         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10896         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10897         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10898         * tests/uniwidth/test-u16-width.c: Likewise.
10899         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10900         * tests/uniwidth/test-u32-width.c: Likewise.
10901         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10902         * tests/uniwidth/test-u8-width.c: Likewise.
10903         * tests/uniwidth/test-uc_width.c: Likewise.
10904         * config/srclist-update: Likewise.
10905         (fixlicense): Update to GPLv3+.
10906
10907         Change copyright notice from LGPLv2.1+ to LGPLv3+.
10908         * tests/test-tsearch.c: Change copyright notice.
10909
10910         Change copyright notice from LGPLv2.0+ to LGPLv3+.
10911         * lib/c-strcaseeq.h: Change copyright notice.
10912         * lib/streq.h: Likewise.
10913         * lib/uniconv.h: Likewise.
10914         * lib/uniconv/u-conv-from-enc.h: Likewise.
10915         * lib/uniconv/u-conv-to-enc.h: Likewise.
10916         * lib/uniconv/u-strconv-from-enc.h: Likewise.
10917         * lib/uniconv/u-strconv-to-enc.h: Likewise.
10918         * lib/uniconv/u16-conv-from-enc.c: Likewise.
10919         * lib/uniconv/u16-conv-to-enc.c: Likewise.
10920         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
10921         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
10922         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
10923         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
10924         * lib/uniconv/u32-conv-from-enc.c: Likewise.
10925         * lib/uniconv/u32-conv-to-enc.c: Likewise.
10926         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
10927         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
10928         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
10929         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
10930         * lib/uniconv/u8-conv-from-enc.c: Likewise.
10931         * lib/uniconv/u8-conv-to-enc.c: Likewise.
10932         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
10933         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
10934         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
10935         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
10936         * lib/uniname.h: Likewise.
10937         * lib/uniname/uniname.c: Likewise.
10938         * lib/unistdio.h: Likewise.
10939         * lib/unistdio/u-asnprintf.h: Likewise.
10940         * lib/unistdio/u-asprintf.h: Likewise.
10941         * lib/unistdio/u-printf-args.c: Likewise.
10942         * lib/unistdio/u-printf-args.h: Likewise.
10943         * lib/unistdio/u-printf-parse.h: Likewise.
10944         * lib/unistdio/u-snprintf.h: Likewise.
10945         * lib/unistdio/u-sprintf.h: Likewise.
10946         * lib/unistdio/u-vasprintf.h: Likewise.
10947         * lib/unistdio/u-vsnprintf.h: Likewise.
10948         * lib/unistdio/u-vsprintf.h: Likewise.
10949         * lib/unistdio/u16-asnprintf.c: Likewise.
10950         * lib/unistdio/u16-asprintf.c: Likewise.
10951         * lib/unistdio/u16-printf-parse.c: Likewise.
10952         * lib/unistdio/u16-snprintf.c: Likewise.
10953         * lib/unistdio/u16-sprintf.c: Likewise.
10954         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
10955         * lib/unistdio/u16-u16-asprintf.c: Likewise.
10956         * lib/unistdio/u16-u16-snprintf.c: Likewise.
10957         * lib/unistdio/u16-u16-sprintf.c: Likewise.
10958         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
10959         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
10960         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
10961         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
10962         * lib/unistdio/u16-vasnprintf.c: Likewise.
10963         * lib/unistdio/u16-vasprintf.c: Likewise.
10964         * lib/unistdio/u16-vsnprintf.c: Likewise.
10965         * lib/unistdio/u16-vsprintf.c: Likewise.
10966         * lib/unistdio/u32-asnprintf.c: Likewise.
10967         * lib/unistdio/u32-asprintf.c: Likewise.
10968         * lib/unistdio/u32-printf-parse.c: Likewise.
10969         * lib/unistdio/u32-snprintf.c: Likewise.
10970         * lib/unistdio/u32-sprintf.c: Likewise.
10971         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
10972         * lib/unistdio/u32-u32-asprintf.c: Likewise.
10973         * lib/unistdio/u32-u32-snprintf.c: Likewise.
10974         * lib/unistdio/u32-u32-sprintf.c: Likewise.
10975         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
10976         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
10977         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
10978         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
10979         * lib/unistdio/u32-vasnprintf.c: Likewise.
10980         * lib/unistdio/u32-vasprintf.c: Likewise.
10981         * lib/unistdio/u32-vsnprintf.c: Likewise.
10982         * lib/unistdio/u32-vsprintf.c: Likewise.
10983         * lib/unistdio/u8-asnprintf.c: Likewise.
10984         * lib/unistdio/u8-asprintf.c: Likewise.
10985         * lib/unistdio/u8-printf-parse.c: Likewise.
10986         * lib/unistdio/u8-snprintf.c: Likewise.
10987         * lib/unistdio/u8-sprintf.c: Likewise.
10988         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
10989         * lib/unistdio/u8-u8-asprintf.c: Likewise.
10990         * lib/unistdio/u8-u8-snprintf.c: Likewise.
10991         * lib/unistdio/u8-u8-sprintf.c: Likewise.
10992         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
10993         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
10994         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
10995         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
10996         * lib/unistdio/u8-vasnprintf.c: Likewise.
10997         * lib/unistdio/u8-vasprintf.c: Likewise.
10998         * lib/unistdio/u8-vsnprintf.c: Likewise.
10999         * lib/unistdio/u8-vsprintf.c: Likewise.
11000         * lib/unistdio/ulc-asnprintf.c: Likewise.
11001         * lib/unistdio/ulc-asprintf.c: Likewise.
11002         * lib/unistdio/ulc-printf-parse.c: Likewise.
11003         * lib/unistdio/ulc-snprintf.c: Likewise.
11004         * lib/unistdio/ulc-sprintf.c: Likewise.
11005         * lib/unistdio/ulc-vasnprintf.c: Likewise.
11006         * lib/unistdio/ulc-vasprintf.c: Likewise.
11007         * lib/unistdio/ulc-vsnprintf.c: Likewise.
11008         * lib/unistdio/ulc-vsprintf.c: Likewise.
11009         * lib/unistr.h: Likewise.
11010         * lib/unistr/u-cpy-alloc.h: Likewise.
11011         * lib/unistr/u-cpy.h: Likewise.
11012         * lib/unistr/u-endswith.h: Likewise.
11013         * lib/unistr/u-move.h: Likewise.
11014         * lib/unistr/u-set.h: Likewise.
11015         * lib/unistr/u-startswith.h: Likewise.
11016         * lib/unistr/u-stpcpy.h: Likewise.
11017         * lib/unistr/u-stpncpy.h: Likewise.
11018         * lib/unistr/u-strcat.h: Likewise.
11019         * lib/unistr/u-strcpy.h: Likewise.
11020         * lib/unistr/u-strcspn.h: Likewise.
11021         * lib/unistr/u-strdup.h: Likewise.
11022         * lib/unistr/u-strlen.h: Likewise.
11023         * lib/unistr/u-strncat.h: Likewise.
11024         * lib/unistr/u-strncpy.h: Likewise.
11025         * lib/unistr/u-strnlen.h: Likewise.
11026         * lib/unistr/u-strpbrk.h: Likewise.
11027         * lib/unistr/u-strspn.h: Likewise.
11028         * lib/unistr/u-strstr.h: Likewise.
11029         * lib/unistr/u-strtok.h: Likewise.
11030         * lib/unistr/u16-check.c: Likewise.
11031         * lib/unistr/u16-chr.c: Likewise.
11032         * lib/unistr/u16-cmp.c: Likewise.
11033         * lib/unistr/u16-cpy-alloc.c: Likewise.
11034         * lib/unistr/u16-cpy.c: Likewise.
11035         * lib/unistr/u16-endswith.c: Likewise.
11036         * lib/unistr/u16-mblen.c: Likewise.
11037         * lib/unistr/u16-mbsnlen.c: Likewise.
11038         * lib/unistr/u16-mbtouc-aux.c: Likewise.
11039         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
11040         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
11041         * lib/unistr/u16-mbtouc.c: Likewise.
11042         * lib/unistr/u16-mbtoucr.c: Likewise.
11043         * lib/unistr/u16-move.c: Likewise.
11044         * lib/unistr/u16-next.c: Likewise.
11045         * lib/unistr/u16-prev.c: Likewise.
11046         * lib/unistr/u16-set.c: Likewise.
11047         * lib/unistr/u16-startswith.c: Likewise.
11048         * lib/unistr/u16-stpcpy.c: Likewise.
11049         * lib/unistr/u16-stpncpy.c: Likewise.
11050         * lib/unistr/u16-strcat.c: Likewise.
11051         * lib/unistr/u16-strchr.c: Likewise.
11052         * lib/unistr/u16-strcmp.c: Likewise.
11053         * lib/unistr/u16-strcpy.c: Likewise.
11054         * lib/unistr/u16-strcspn.c: Likewise.
11055         * lib/unistr/u16-strdup.c: Likewise.
11056         * lib/unistr/u16-strlen.c: Likewise.
11057         * lib/unistr/u16-strmblen.c: Likewise.
11058         * lib/unistr/u16-strmbtouc.c: Likewise.
11059         * lib/unistr/u16-strncat.c: Likewise.
11060         * lib/unistr/u16-strncmp.c: Likewise.
11061         * lib/unistr/u16-strncpy.c: Likewise.
11062         * lib/unistr/u16-strnlen.c: Likewise.
11063         * lib/unistr/u16-strpbrk.c: Likewise.
11064         * lib/unistr/u16-strrchr.c: Likewise.
11065         * lib/unistr/u16-strspn.c: Likewise.
11066         * lib/unistr/u16-strstr.c: Likewise.
11067         * lib/unistr/u16-strtok.c: Likewise.
11068         * lib/unistr/u16-to-u32.c: Likewise.
11069         * lib/unistr/u16-to-u8.c: Likewise.
11070         * lib/unistr/u16-uctomb-aux.c: Likewise.
11071         * lib/unistr/u16-uctomb.c: Likewise.
11072         * lib/unistr/u32-check.c: Likewise.
11073         * lib/unistr/u32-chr.c: Likewise.
11074         * lib/unistr/u32-cmp.c: Likewise.
11075         * lib/unistr/u32-cpy-alloc.c: Likewise.
11076         * lib/unistr/u32-cpy.c: Likewise.
11077         * lib/unistr/u32-endswith.c: Likewise.
11078         * lib/unistr/u32-mblen.c: Likewise.
11079         * lib/unistr/u32-mbsnlen.c: Likewise.
11080         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
11081         * lib/unistr/u32-mbtouc.c: Likewise.
11082         * lib/unistr/u32-mbtoucr.c: Likewise.
11083         * lib/unistr/u32-move.c: Likewise.
11084         * lib/unistr/u32-next.c: Likewise.
11085         * lib/unistr/u32-prev.c: Likewise.
11086         * lib/unistr/u32-set.c: Likewise.
11087         * lib/unistr/u32-startswith.c: Likewise.
11088         * lib/unistr/u32-stpcpy.c: Likewise.
11089         * lib/unistr/u32-stpncpy.c: Likewise.
11090         * lib/unistr/u32-strcat.c: Likewise.
11091         * lib/unistr/u32-strchr.c: Likewise.
11092         * lib/unistr/u32-strcmp.c: Likewise.
11093         * lib/unistr/u32-strcpy.c: Likewise.
11094         * lib/unistr/u32-strcspn.c: Likewise.
11095         * lib/unistr/u32-strdup.c: Likewise.
11096         * lib/unistr/u32-strlen.c: Likewise.
11097         * lib/unistr/u32-strmblen.c: Likewise.
11098         * lib/unistr/u32-strmbtouc.c: Likewise.
11099         * lib/unistr/u32-strncat.c: Likewise.
11100         * lib/unistr/u32-strncmp.c: Likewise.
11101         * lib/unistr/u32-strncpy.c: Likewise.
11102         * lib/unistr/u32-strnlen.c: Likewise.
11103         * lib/unistr/u32-strpbrk.c: Likewise.
11104         * lib/unistr/u32-strrchr.c: Likewise.
11105         * lib/unistr/u32-strspn.c: Likewise.
11106         * lib/unistr/u32-strstr.c: Likewise.
11107         * lib/unistr/u32-strtok.c: Likewise.
11108         * lib/unistr/u32-to-u16.c: Likewise.
11109         * lib/unistr/u32-to-u8.c: Likewise.
11110         * lib/unistr/u32-uctomb.c: Likewise.
11111         * lib/unistr/u8-check.c: Likewise.
11112         * lib/unistr/u8-chr.c: Likewise.
11113         * lib/unistr/u8-cmp.c: Likewise.
11114         * lib/unistr/u8-cpy-alloc.c: Likewise.
11115         * lib/unistr/u8-cpy.c: Likewise.
11116         * lib/unistr/u8-endswith.c: Likewise.
11117         * lib/unistr/u8-mblen.c: Likewise.
11118         * lib/unistr/u8-mbsnlen.c: Likewise.
11119         * lib/unistr/u8-mbtouc-aux.c: Likewise.
11120         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
11121         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
11122         * lib/unistr/u8-mbtouc.c: Likewise.
11123         * lib/unistr/u8-mbtoucr.c: Likewise.
11124         * lib/unistr/u8-move.c: Likewise.
11125         * lib/unistr/u8-next.c: Likewise.
11126         * lib/unistr/u8-prev.c: Likewise.
11127         * lib/unistr/u8-set.c: Likewise.
11128         * lib/unistr/u8-startswith.c: Likewise.
11129         * lib/unistr/u8-stpcpy.c: Likewise.
11130         * lib/unistr/u8-stpncpy.c: Likewise.
11131         * lib/unistr/u8-strcat.c: Likewise.
11132         * lib/unistr/u8-strchr.c: Likewise.
11133         * lib/unistr/u8-strcmp.c: Likewise.
11134         * lib/unistr/u8-strcpy.c: Likewise.
11135         * lib/unistr/u8-strcspn.c: Likewise.
11136         * lib/unistr/u8-strdup.c: Likewise.
11137         * lib/unistr/u8-strlen.c: Likewise.
11138         * lib/unistr/u8-strmblen.c: Likewise.
11139         * lib/unistr/u8-strmbtouc.c: Likewise.
11140         * lib/unistr/u8-strncat.c: Likewise.
11141         * lib/unistr/u8-strncmp.c: Likewise.
11142         * lib/unistr/u8-strncpy.c: Likewise.
11143         * lib/unistr/u8-strnlen.c: Likewise.
11144         * lib/unistr/u8-strpbrk.c: Likewise.
11145         * lib/unistr/u8-strrchr.c: Likewise.
11146         * lib/unistr/u8-strspn.c: Likewise.
11147         * lib/unistr/u8-strstr.c: Likewise.
11148         * lib/unistr/u8-strtok.c: Likewise.
11149         * lib/unistr/u8-to-u16.c: Likewise.
11150         * lib/unistr/u8-to-u32.c: Likewise.
11151         * lib/unistr/u8-uctomb-aux.c: Likewise.
11152         * lib/unistr/u8-uctomb.c: Likewise.
11153         * lib/unitypes.h: Likewise.
11154         * lib/uniwidth.h: Likewise.
11155         * lib/uniwidth/cjk.h: Likewise.
11156         * lib/uniwidth/u16-strwidth.c: Likewise.
11157         * lib/uniwidth/u16-width.c: Likewise.
11158         * lib/uniwidth/u32-strwidth.c: Likewise.
11159         * lib/uniwidth/u32-width.c: Likewise.
11160         * lib/uniwidth/u8-strwidth.c: Likewise.
11161         * lib/uniwidth/u8-width.c: Likewise.
11162         * lib/uniwidth/width.c: Likewise.
11163
11164 2007-10-07  Bruno Haible  <bruno@clisp.org>
11165
11166         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
11167         The file is still under LGPL (see modules/inttypes).
11168
11169 2007-10-06  Bruno Haible  <bruno@clisp.org>
11170
11171         * modules/trunc (Dependencies): Add 'extensions'.
11172         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
11173         Reported by Ben Pfaff <blp@gnu.org>.
11174
11175 2007-10-06  Bruno Haible  <bruno@clisp.org>
11176
11177         * modules/freopen-tests: New file.
11178         * tests/test-freopen.c: New file.
11179
11180         * modules/fopen-tests: New file.
11181         * tests/test-fopen.c: New file.
11182
11183         * modules/fopen: New file.
11184         * lib/fopen.c: New file.
11185         * m4/fopen.m4: New file.
11186         * modules/freopen: New file.
11187         * lib/freopen.c: New file.
11188         * m4/freopen.m4: New file.
11189         * lib/stdio.in.h (fopen, freopen): New declarations.
11190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
11191         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11192         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
11193         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11194         * doc/functions/fopen.texi: Mention the 'fopen' module.
11195         * doc/functions/freopen.texi: Mention the 'freopen' module.
11196
11197 2007-10-06  Bruno Haible  <bruno@clisp.org>
11198
11199         * modules/open-tests: New file.
11200         * tests/test-open.c: New file.
11201
11202         * modules/open: New file.
11203         * lib/open.c: New file.
11204         * m4/open.m4: New file.
11205         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
11206         lib/open.c does.
11207         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
11208         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
11209         macros.
11210         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
11211         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
11212         REPLACE_OPEN.
11213         * doc/functions/open.texi: Mention the 'open' module.
11214
11215 2007-10-04  Bruno Haible  <bruno@clisp.org>
11216
11217         * modules/ceill-tests: New file.
11218         * tests/test-ceill.c: New file.
11219
11220         * modules/ceill: New file.
11221         * lib/ceill.c: Replace entire file.
11222         * m4/ceill.m4: New file.
11223         * lib/math.in.h (ceill): Replace declaration.
11224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
11225         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
11226         * doc/functions/ceill.texi: Mention the 'ceill' module.
11227         * modules/mathl (Files): Remove lib/ceill.c.
11228         (Depends-on): Add ceill.
11229
11230 2007-10-04  Bruno Haible  <bruno@clisp.org>
11231
11232         * modules/ceilf-tests: New file.
11233         * tests/test-ceilf.c: New file.
11234
11235         * modules/ceilf: New file.
11236         * lib/ceil.c: New file.
11237         * lib/ceilf.c: New file.
11238         * m4/ceilf.m4: New file.
11239         * lib/math.in.h (ceilf): New declaration.
11240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
11241         HAVE_DECL_CEILF.
11242         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
11243         HAVE_DECL_CEILF.
11244         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
11245
11246 2007-10-04  Bruno Haible  <bruno@clisp.org>
11247
11248         * modules/floorl-tests: New file.
11249         * tests/test-floorl.c: New file.
11250
11251         * modules/floorl: New file.
11252         * lib/floorl.c: Replace entire file.
11253         * m4/floorl.m4: New file.
11254         * lib/math.in.h (floorl): Replace declaration.
11255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
11256         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
11257         * doc/functions/floorl.texi: Mention the 'floorl' module.
11258         * modules/mathl (Files): Remove lib/floorl.c.
11259         (Depends-on): Add floorl.
11260
11261 2007-10-04  Bruno Haible  <bruno@clisp.org>
11262
11263         * modules/floorf-tests: New file.
11264         * tests/test-floorf.c: New file.
11265
11266         * modules/floorf: New file.
11267         * lib/floor.c: New file.
11268         * lib/floorf.c: New file.
11269         * m4/floorf.m4: New file.
11270         * lib/math.in.h (floorf): New declaration.
11271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
11272         HAVE_DECL_FLOORF.
11273         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
11274         HAVE_DECL_FLOORF.
11275         * doc/functions/floorf.texi: Mention the 'floorf' module.
11276
11277 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
11278             Bruno Haible  <bruno@clisp.org>
11279
11280         Advertise for the Git server instead of the CVS server.
11281         * doc/gnulib-intro.texi (Steady Development): Mention the Git
11282         repository instead of the CVS one.
11283         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
11284         about all VCS systems generically.
11285         * doc/gnulib.texi (Introduction): Capitalize `Git'.
11286
11287 2007-10-04  Bruno Haible  <bruno@clisp.org>
11288
11289         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
11290         means.
11291         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
11292
11293 2007-10-04  Bruno Haible  <bruno@clisp.org>
11294
11295         * modules/truncl-tests: New file.
11296         * tests/test-truncl.c: New file.
11297
11298         * modules/truncl: New file.
11299         * lib/truncl.c: New file.
11300         * m4/truncl.m4: New file.
11301         * lib/math.in.h (truncl): New declaration.
11302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
11303         HAVE_DECL_TRUNCL.
11304         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
11305         HAVE_DECL_TRUNCL.
11306         * doc/functions/truncl.texi: Mention the 'truncl' module.
11307
11308 2007-10-04  Bruno Haible  <bruno@clisp.org>
11309
11310         * modules/truncf-tests: New file.
11311         * tests/test-truncf.c: New file.
11312
11313         * modules/truncf: New file.
11314         * lib/trunc.c: Make paramerizable through USE_* macros.
11315         * lib/truncf.c: New file.
11316         * m4/truncf.m4: New file.
11317         * lib/math.in.h (truncf): New declaration.
11318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
11319         HAVE_DECL_TRUNCF.
11320         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
11321         HAVE_DECL_TRUNCF.
11322         * doc/functions/truncf.texi: Mention the 'truncf' module.
11323
11324 2007-10-03  Bruno Haible  <bruno@clisp.org>
11325
11326         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11327         augmentation also for tests modules.
11328         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
11329         * modules/atexit-tests (Makefile.am): Likewise.
11330         * modules/binary-io-tests (Makefile.am): Likewise.
11331         * modules/c-strcase-tests (Makefile.am): Likewise.
11332         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
11333         * modules/canonicalize-tests (Makefile.am): Likewise.
11334         * modules/closein-tests (Makefile.am): Likewise.
11335         * modules/fprintf-posix-tests (Makefile.am): Likewise.
11336         * modules/freadahead-tests (Makefile.am): Likewise.
11337         * modules/fseek-tests (Makefile.am): Likewise.
11338         * modules/fseeko-tests (Makefile.am): Likewise.
11339         * modules/ftell-tests (Makefile.am): Likewise.
11340         * modules/ftello-tests (Makefile.am): Likewise.
11341         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
11342         * modules/isnanl-tests (Makefile.am): Likewise.
11343         * modules/lseek-tests (Makefile.am): Likewise.
11344         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11345         * modules/mbscasestr-tests (Makefile.am): Likewise.
11346         * modules/mbschr-tests (Makefile.am): Likewise.
11347         * modules/mbscspn-tests (Makefile.am): Likewise.
11348         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11349         * modules/mbspbrk-tests (Makefile.am): Likewise.
11350         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11351         * modules/mbsrchr-tests (Makefile.am): Likewise.
11352         * modules/mbsspn-tests (Makefile.am): Likewise.
11353         * modules/mbsstr-tests (Makefile.am): Likewise.
11354         * modules/printf-posix-tests (Makefile.am): Likewise.
11355         * modules/snprintf-posix-tests (Makefile.am): Likewise.
11356         * modules/sprintf-posix-tests (Makefile.am): Likewise.
11357         * modules/tsearch-tests (Makefile.am): Likewise.
11358         * modules/uniname/uniname-tests (Makefile.am): Likewise.
11359         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11360         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11361         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11362         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11363         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11364         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11365         * modules/vprintf-posix-tests (Makefile.am): Likewise.
11366         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
11367         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
11368         * modules/xstrtoimax-tests (Makefile.am): Likewise.
11369         * modules/xstrtol-tests (Makefile.am): Likewise.
11370         * modules/xstrtoumax-tests (Makefile.am): Likewise.
11371         * modules/yesno-tests (Makefile.am): Likewise.
11372
11373 2007-10-03  Bruno Haible  <bruno@clisp.org>
11374
11375         * modules/trunc-tests: New file.
11376         * tests/test-trunc.c: New file.
11377
11378         * modules/trunc: New file.
11379         * lib/trunc.c: New file.
11380         * m4/trunc.m4: New file.
11381         * lib/math.in.h (trunc): New declaration.
11382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
11383         HAVE_DECL_TRUNC.
11384         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
11385         HAVE_DECL_TRUNC.
11386         * doc/functions/trunc.texi: Mention the 'trunc' module.
11387
11388 2007-10-03  Bruno Haible  <bruno@clisp.org>
11389
11390         * tests/test-fpending.c: New file, mostly copied
11391         from coreutils/lib/t-fpending.c.
11392         * modules/fpending-tests: New file.
11393
11394 2007-10-03  Bruno Haible  <bruno@clisp.org>
11395
11396         Port the stdio extensions to QNX (untested).
11397         * lib/fseterr.c (fseterr): Add support for QNX.
11398         * lib/fbufmode.c (fbufmode): Likewise.
11399         * lib/freadable.c (freadable): Likewise.
11400         * lib/fwritable.c (fwritable): Likewise.
11401         * lib/freading.c (freading): Likewise.
11402         * lib/fwriting.c (fwriting): Likewise.
11403         * lib/freadahead.c (freadahed): Likewise.
11404         * lib/fpurge.c (fpurge): Likewise.
11405         * lib/fseeko.c (rpl_fseeko): Likewise.
11406
11407 2007-10-03  Bruno Haible  <bruno@clisp.org>
11408             Jim Meyering  <jim@meyering.net>
11409             Eric Blake  <ebb9@byu.net>
11410
11411         * doc/relocatable.texi: Use @command instead of @program.
11412
11413 2007-10-02  Jim Meyering  <jim@meyering.net>
11414
11415         Perform one more "_.h" -> ".in.h" substitution.
11416         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
11417         instead of unistd_.h here, too.
11418
11419 2007-10-01  Bruno Haible  <bruno@clisp.org>
11420
11421         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
11422         Needed for the alloca-opt module.
11423
11424 2007-09-30  Bruno Haible  <bruno@clisp.org>
11425
11426         * lib/alloca.in.h: Renamed from lib/alloca_.h.
11427         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
11428         alloca_.h.
11429         * lib/argz.in.h: Renamed from lib/argz_.h.
11430         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
11431         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
11432         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
11433         byteswap_.h.
11434         * lib/dirent.in.h: Renamed from lib/dirent_.h.
11435         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
11436         dirent_.h.
11437         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
11438         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
11439         fcntl_.h.
11440         * lib/float.in.h: Renamed from lib/float_.h.
11441         * modules/float (Files, Makefile.am): Use float.in.h instead of
11442         float_.h.
11443         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
11444         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
11445         fnmatch_.h.
11446         * lib/getopt.in.h: Renamed from lib/getopt_.h.
11447         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
11448         getopt_.h.
11449         * lib/glob.in.h: Renamed from lib/glob_.h.
11450         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
11451         * lib/iconv.in.h: Renamed from lib/iconv_.h.
11452         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
11453         iconv_.h.
11454         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
11455         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
11456         inttypes_.h.
11457         * lib/locale.in.h: Renamed from lib/locale_.h.
11458         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
11459         locale_.h.
11460         * lib/math.in.h: Renamed from lib/math_.h.
11461         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
11462         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
11463         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
11464         of netinet_in_.h. Add dependency.
11465         * lib/poll.in.h: Renamed from lib/poll_.h.
11466         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
11467         * lib/search.in.h: Renamed from lib/search_.h.
11468         * modules/search (Files, Makefile.am): Use search.in.h instead of
11469         search_.h.
11470         * lib/signal.in.h: Renamed from lib/signal_.h.
11471         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
11472         _signal.h.
11473         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
11474         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
11475         stdbool_.h.
11476         * lib/stdint.in.h: Renamed from lib/stdint_.h.
11477         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
11478         stdint_.h.
11479         * lib/stdio.in.h: Renamed from lib/stdio_.h.
11480         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
11481         stdio_.h.
11482         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
11483         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
11484         stdlib_.h.
11485         * lib/string.in.h: Renamed from lib/string_.h.
11486         * modules/string (Files, Makefile.am): Use string.in.h instead of
11487         string_.h.
11488         * doc/gnulib-tool.texi (Initial import): Update.
11489         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
11490         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
11491         of sys_select_.h. Add dependency.
11492         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
11493         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
11494         of sys_socket_.h.
11495         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
11496         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
11497         sys_stat_.h.
11498         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
11499         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
11500         sys_time_.h.
11501         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
11502         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
11503         sysexits_.h.
11504         * lib/time.in.h: Renamed from lib/time_.h.
11505         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
11506         * lib/unistd.in.h: Renamed from lib/unistd_.h.
11507         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
11508         unistd_.h.
11509         * lib/wchar.in.h: Renamed from lib/wchar_.h.
11510         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
11511         wchar_.h.
11512         * lib/wctype.in.h: Renamed from lib/wctype_.h.
11513         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
11514         wctype_.h.
11515         * build-aux/bootstrap (slurp): Update.
11516         * lib/.cppi-disable: Update.
11517
11518 2007-09-30  Bruno Haible  <bruno@clisp.org>
11519
11520         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
11521         Needed on BeOS.
11522
11523 2007-09-30  Bruno Haible  <bruno@clisp.org>
11524
11525         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
11526
11527 2007-09-29  Bruno Haible  <bruno@clisp.org>
11528
11529         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
11530
11531 2007-09-29  Bruno Haible  <bruno@clisp.org>
11532
11533         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
11534         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
11535         * build-aux/install-reloc: Compile also areadlink.c.
11536         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
11537
11538 2007-09-29  Bruno Haible  <bruno@clisp.org>
11539
11540         * gnulib-tool (func_emit_initmacro_done): Indentation.
11541
11542 2007-09-29  Bruno Haible  <bruno@clisp.org>
11543
11544         * README: Add CVS checkout update instructions.
11545         Info from Bob Proulx <bob@proulx.com>.
11546
11547 2007-09-28  Eric Blake  <ebb9@byu.net>
11548
11549         Provide move-if-change.
11550         * build-aux/move-if-change: New file, based on best practice
11551         rather than any canonical upstream location.
11552
11553 2007-09-28  Jim Meyering  <jim@meyering.net>
11554
11555         Fix canonicalize loop-detection corner case.
11556         Do not attempt to stat the symlink values stored via seen_triple.
11557         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
11558         on linux-2.6.18, (but not 2.6.22).
11559         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
11560         triple_compare.  The former compares dev,ino,filename, while the latter
11561         would actually stat dirname(filename) when dev and ino were equal.
11562         * lib/hash-triple.c: Install <string.h>.
11563         (STREQ): Define.
11564         (triple_compare_ino_str): New function.
11565         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
11566
11567 2007-09-28  Eric Blake  <ebb9@byu.net>
11568
11569         Enforce that AC_REPLACE_FUNCS files exist.
11570         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
11571         override check for typos.
11572
11573         Fix test-closein on Solaris 10.
11574         * tests/test-closein.c (main): Don't assume stdin can be inherited
11575         closed on all systems.
11576         * tests/test-closein.sh: Likewise.
11577         Reported by Piotr Tarnowski.
11578
11579 2007-09-28  Jim Meyering  <jim@meyering.net>
11580
11581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
11582
11583 2007-09-27  Jim Meyering  <jim@meyering.net>
11584
11585         canonicalize: Avoid a false-positive cycle failure.
11586         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
11587         Sort.  Remove cycle-check.
11588         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
11589         not cycle-check.h.
11590         (seen_triple): New function.
11591         (canonicalize_filename_mode): Use it instead of cycle-check.
11592         * tests/test-canonicalize.c: Add a test for this bug.
11593         * tests/test-canonicalize.sh: Set up and run the test.
11594
11595         New module, file-set, from coreutils.
11596         * modules/file-set: Define it.
11597         * lib/file-set.c, lib/file-set.h: Implement.
11598
11599         New module, hash-triple, from coreutils.
11600         * modules/hash-triple: Define it.
11601         * lib/hash-triple.c, lib/hash-triple.h: Implement.
11602
11603 2007-09-25  Eric Blake  <ebb9@byu.net>
11604
11605         Fix strerror on Interix.
11606         * lib/string_.h (strerror): Declare replacement.
11607         * doc/functions/strerror.texi (strerror): Document the Interix
11608         shortcoming.
11609         * modules/string (Makefile.am): Support new hooks.
11610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
11611         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
11612         gl_FUNC_STRERROR_SEPARATE.
11613         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
11614         * lib/strerror.c (rpl_strerror): Provide replacement.
11615         * modules/strerror (Depends-on): Add string.
11616         (configure.ac): Detect use of module.
11617         * tests/test-strerror.c: New file.
11618         * modules/strerror-tests: New test module.
11619         * modules/argp (Depends-on): Add strerror.
11620         * modules/error (Depends-on): Likewise.
11621         Reported by Martin Koeppe.
11622
11623 2007-09-24  Bruno Haible  <bruno@clisp.org>
11624
11625         * README: Update git instructions.
11626
11627 2007-09-24  Eric Blake  <ebb9@byu.net>
11628
11629         Revert fpending breakage from 2007-09-08.
11630         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
11631         __fpending.c.
11632
11633 2007-09-24  Jim Meyering  <jim@meyering.net>
11634
11635         filenamecat.c: Add a test.
11636         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
11637         showing how the function works when DIR is the empty string.
11638
11639 2007-09-21  Simon Josefsson  <simon@josefsson.org>
11640
11641         * tests/test-canonicalize.sh: Turn on executable bit.
11642
11643 2007-09-19  Eric Blake  <ebb9@byu.net>
11644
11645         * README: Update CVS instructions.
11646
11647 2007-09-18  Bruno Haible  <bruno@clisp.org>
11648
11649         * modules/areadlink: New file.
11650         * lib/areadlink.h (areadlink): New declaration.
11651         * lib/areadlink.c: New file, based on lib/xreadlink.c.
11652
11653 2007-09-17  Jim Meyering  <jim@meyering.net>
11654
11655         * lib/savewd.c (ESTALE) [!defined]: Define.
11656         Reported to be required on Interix by Martin Koeppe.
11657
11658 2007-09-17  Bruno Haible  <bruno@clisp.org>
11659
11660         * gnulib-tool (func_version): Use $version.
11661
11662 2007-09-16  Bruno Haible  <bruno@clisp.org>
11663
11664         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
11665         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
11666         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
11667         Reported by Greg Schafer <gschafer@zip.com.au>.
11668
11669 2007-09-15  Bruno Haible  <bruno@clisp.org>
11670
11671         * gnulib-tool (sed): Try a little harder to make bash understand the
11672         alias.
11673         Reported by Bruce Korb <bruce.korb@gmail.com>.
11674
11675 2007-09-13  Eric Blake  <ebb9@byu.net>
11676
11677         * ChangeLog: Remove conflict markers.
11678
11679 2007-09-13  Simon Josefsson  <simon@josefsson.org>
11680
11681         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
11682         Reported by Bruno Haible <bruno@clisp.org>.
11683
11684 2007-09-12  Bruno Haible  <bruno@clisp.org>
11685
11686         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
11687         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
11688         is not defined.
11689
11690 2007-09-12  Eric Blake  <ebb9@byu.net>
11691
11692         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
11693         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
11694         Autoconf definition.
11695         * modules/euidaccess (Depends-on): Add extensions, for
11696         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
11697         * modules/fnmatch (Depends-on): Likewise.
11698         * modules/getaddrinfo (Depends-on): Likewise.
11699         * modules/getdelim (Depends-on): Likewise.
11700         * modules/getline (Depends-on): Likewise.
11701         * modules/getsubopt (Depends-on): Likewise.
11702         * modules/gettext (Depends-on): Likewise.
11703         * modules/group-member (Depends-on): Likewise.
11704         * modules/mbchar (Depends-on): Likewise.
11705         * modules/memmem (Depends-on): Likewise.
11706         * modules/mempcpy (Depends-on): Likewise.
11707         * modules/memrchr (Depends-on): Likewise.
11708         * modules/pagealign_alloc (Depends-on): Likewise.
11709         * modules/readutmp (Depends-on): Likewise.
11710         * modules/stpcpy (Depends-on): Likewise.
11711         * modules/stpncpy (Depends-on): Likewise.
11712         * modules/strchrnul (Depends-on): Likewise.
11713         * modules/strndup (Depends-on): Likewise.
11714         * modules/strsep (Depends-on): Likewise.
11715         * modules/strverscmp (Depends-on): Likewise.
11716         * modules/vasprintf (Depends-on): Likewise.
11717         * modules/wcwidth (Depends-on): Likewise.
11718         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
11719         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
11720         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
11721         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
11722         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11723         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11724         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
11725         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11726         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
11727         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11728         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11729         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
11730         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
11731         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11732         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
11733         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11734         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11735         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
11736         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11737         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
11738         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11739         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
11740         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
11741         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
11742         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
11743         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11744         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
11745         so that lock.m4 can be used in gettext without extensions module.
11746
11747 2007-09-11  Bruno Haible  <bruno@clisp.org>
11748
11749         * m4/isc-posix.m4: Remove file.
11750         Suggested by Eric Blake.
11751
11752 2007-09-11  Eric Blake  <ebb9@byu.net>
11753
11754         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
11755
11756 2007-09-10  Bruno Haible  <bruno@clisp.org>
11757
11758         * posix-modules: Fix typo in error message.
11759         Reported by Matt <mkraai@beckman.com>.
11760
11761 2007-09-09  Bruno Haible  <bruno@clisp.org>
11762
11763         * doc/functions/getdelim.texi: Update list of platforms lacking the
11764         function.
11765         * doc/functions/getline.texi: Likewise.
11766
11767 2007-09-09  Jim Meyering  <jim@meyering.net>
11768
11769         * lib/hash.c (hash_initialize): Detect calloc failure.
11770         Reported by Bruno Haible.
11771
11772 2007-09-09  Bruno Haible  <bruno@clisp.org>
11773
11774         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
11775         malloc or realloc fails.
11776
11777 2007-09-09  Bruno Haible  <bruno@clisp.org>
11778
11779         * modules/getcwd (Depends-on): Add malloc-posix.
11780         * modules/glob (Depends-on): Likewise.
11781         * modules/putenv (Depends-on): Likewise.
11782         * modules/strdup (Depends-on): Likewise.
11783         * modules/getdelim (Depends-on): Add realloc-posix.
11784         * modules/read-file (Depends-on): Likewise.
11785
11786 2007-09-09  Bruno Haible  <bruno@clisp.org>
11787
11788         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
11789         (gl_FUNC_MALLOC_POSIX): Require it.
11790         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
11791         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
11792         * modules/realloc (Files): Add m4/malloc.m4.
11793         * modules/calloc (Files): Likewise.
11794
11795 2007-09-09  Bruno Haible  <bruno@clisp.org>
11796
11797         * modules/malloc-posix: New file.
11798         * modules/malloc (Depends-on): Add malloc-posix.
11799         * lib/malloc.c: Include errno.h.
11800         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
11801         and a POSIX-compatible malloc into a single function. Set ENOMEM
11802         when returning NULL.
11803         * m4/malloc.m4: New file.
11804         * doc/functions/malloc.texi: Mention the malloc-posix module.
11805         * lib/stdlib_.h (malloc): New declaration.
11806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11807         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
11808         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
11809         and HAVE_MALLOC_POSIX.
11810
11811 2007-09-09  Bruno Haible  <bruno@clisp.org>
11812
11813         * modules/realloc-posix: New file.
11814         * modules/realloc (Depends-on): Add realloc-posix.
11815         * lib/realloc.c: Include errno.h.
11816         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
11817         and a POSIX-compatible realloc into a single function. Set ENOMEM
11818         when returning NULL.
11819         * m4/realloc.m4: New file.
11820         * doc/functions/realloc.texi: Mention the realloc-posix module.
11821         * lib/stdlib_.h (realloc): New declaration.
11822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11823         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
11824         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
11825         and HAVE_REALLOC_POSIX.
11826
11827 2007-09-09  Bruno Haible  <bruno@clisp.org>
11828
11829         * modules/calloc-posix: New file.
11830         * modules/calloc (Depends-on): Add calloc-posix.
11831         * lib/calloc.c: Include errno.h.
11832         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
11833         and a POSIX-compatible calloc into a single function. Set ENOMEM
11834         when returning NULL.
11835         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
11836         * doc/functions/calloc.texi: Mention the calloc-posix module.
11837         * lib/stdlib_.h (calloc): New declaration.
11838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11839         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
11840         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
11841         and HAVE_CALLOC_POSIX.
11842
11843 2007-09-09  Bruno Haible  <bruno@clisp.org>
11844
11845         Allow for modules to show an arbitrary notice.
11846         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
11847         * gnulib-tool: New option --extract-notice.
11848         (func_usage): Document it.
11849         (sed_extract_prog): Update.
11850         (func_get_notice): New function.
11851         (func_modules_notice): New function.
11852         (func_import, func_create_testdir): Invoke it.
11853         Suggested by Jim Meyering.
11854
11855 2007-09-09  Bruno Haible  <bruno@clisp.org>
11856
11857         * gnulib-tool: New options --verbose, --quiet.
11858         (func_usage): Document them.
11859         (verbose): New variable.
11860         (func_execute_command): New function.
11861         (func_import): Don't show the module list and the file list if
11862         $verbose < 0.
11863         (func_create_testdir): Likewise. Use func_execute_command.
11864         (func_create_megatestdir): Use func_execute_command.
11865
11866 2007-09-08  Bruno Haible  <bruno@clisp.org>
11867
11868         * gnulib-tool (func_import): Prefer rsync over wget when available,
11869         for fetching the PO files.
11870
11871 2007-09-08  Bruno Haible  <bruno@clisp.org>
11872
11873         * posix-modules: New file. Portions copied from gnulib-tool.
11874         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
11875
11876 2007-09-08  Jim Meyering  <jim@meyering.net>
11877
11878         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
11879         * lib/fpending.h: Rename from __fpending.h.
11880         * lib/fpending.c: Rename from __fpending.c.
11881         Include "fpending.h", not "__fpending.h".
11882         * lib/__fpending.h, lib/__fpending.c: Remove files.
11883         * modules/fpending (Files): Reflect new file names.
11884         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
11885
11886 2007-09-08  Bruno Haible  <bruno@clisp.org>
11887
11888         * m4/inttypes-h.m4: Remove stub file.
11889
11890 2007-09-07  Simon Josefsson  <simon@josefsson.org>
11891
11892         * doc/headers/stdint.texi: Discuss #include_next issue.
11893
11894 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11895
11896         * build-aux/bootstrap: Remove obsolete comment about wget --help.
11897
11898 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11899
11900         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
11901         in variable name.
11902
11903 2007-09-03  Jim Meyering  <jim@meyering.net>
11904
11905         New module: git-version-gen.
11906         * modules/git-version-gen: New file.
11907
11908         Import changes from coreutils for bootstrap script.
11909
11910         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
11911
11912         bootstrap: uses rsync to download the .po files
11913         * build-aux/bootstrap (po_download_command_format): New global.
11914         (download_po_files): Use rsync.
11915         (update_po_files): Don't remove .po files after download,
11916         so future rsync runs can take advantage of the copies.
11917
11918         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
11919
11920         Solve the unnecessary-.po-file-regeneration problem once and for all.
11921         * build-aux/bootstrap (download_po_files): New function, renamed from
11922         get_translations.  Now, downloads, but doesn't update LINGUAS.
11923         (update_po_files): New function.
11924
11925         bootstrap: Ignore more.
11926         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
11927         uniwidth to e.g., lib/.gitignore.
11928         (slurp): Handle the sys_stat_.h -> sys mapping, too.
11929
11930         * build-aux/bootstrap: New setting: vc_ignore.
11931         (insert_sorted_if_absent): Create $file if absent.
11932         Adapt to new, possibly empty, list: $vc_ignore.
11933
11934         bootstrap: generate more ignorable names
11935         * build-aux/bootstrap (slurp): When generating ignorable names,
11936         also map .sin to .sed, .gperf to .c, and .y to .c.
11937
11938 2007-09-03  Jim Meyering  <jim@meyering.net>
11939
11940         * build-aux/git-version-gen: New file, from coreutils.  For details, see
11941         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
11942
11943 2007-09-02  Bruno Haible  <bruno@clisp.org>
11944
11945         Fix mis-recognition of 'mcs' on QNX 6.
11946         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
11947         output contains the string "Mono".
11948         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
11949         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
11950
11951 2007-09-01  Bruno Haible  <bruno@clisp.org>
11952
11953         Fix collision between uniwidth/* and linebreak modules.
11954         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
11955         u32_width): Remove declarations.
11956         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
11957         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
11958         streq3, streq2, streq1, streq0): Remove functions.
11959         (STREQ): Remove macro.
11960         (is_cjk_encoding): Remove function.
11961         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
11962         (uc_width, u8_width, u16_width, u32_width): Remove functions.
11963         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
11964         * NEWS: Document the change.
11965
11966 2007-09-01  Bruno Haible  <bruno@clisp.org>
11967
11968         * lib/streq.h: Add double-inclusion guard.
11969
11970 2007-09-01  Karl Berry  <karl@gnu.org>
11971
11972         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
11973
11974 2007-08-28  Jim Meyering  <jim@meyering.net>
11975
11976         Rename mreadlink_with_size to areadlink_with_size.
11977         * NEWS: Document the change.
11978         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
11979         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
11980         * lib/mreadlink.h: Rename this to...
11981         * lib/areadlink.h: ...this.
11982         * modules/mreadlink-with-size: Rename this to...
11983         * modules/areadlink-with-size: ...this.
11984         * lib/canonicalize.c: Reflect the renaming.
11985         * modules/canonicalize: Likewise.
11986
11987 2007-08-26  Bruno Haible  <bruno@clisp.org>
11988
11989         * gnulib-tool (func_import): When deciding which files to remove,
11990         consider also dangling symbolic links.
11991         Reported by Eric Blake.
11992
11993 2007-08-26  Bruno Haible  <bruno@clisp.org>
11994
11995         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
11996
11997 2007-08-23  Simon Josefsson  <simon@josefsson.org>
11998
11999         * lib/readline.c: Don't include getline.h, the prototype is now
12000         found in stdio.h.
12001
12002 2007-08-23  Jim Meyering  <jim@meyering.net>
12003
12004         Getdelim touchup.
12005         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
12006         around the funlockfile call, since funlockfile never sets errno.
12007         Don't set errno upon failed realloc.
12008
12009 2007-08-22  Eric Blake  <ebb9@byu.net>
12010
12011         Getline touchups.
12012         * lib/getdelim.c (getdelim): Revert regression that required *n to
12013         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
12014         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
12015         getdelim, rather than whether implementation is missing.
12016         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
12017         * lib/stdio_.h (getline): Also declare if replacement is
12018         required.
12019         * doc/functions/getdelim.texi: New file.
12020         * doc/functions/getline.texi: Likewise.
12021         * doc/gnulib.texi (Function Substitutes): Add new files.
12022         Reported by Bruno Haible.
12023
12024 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
12025
12026         * users.txt: Add Guile.
12027
12028 2007-08-22  Eric Blake  <ebb9@byu.net>
12029
12030         * tests/test-getdelim.c (main): Use remove, not unlink.
12031         * tests/test-getline.c (main): Likewise.
12032
12033         Move getline and getdelim into stdio.h, per POSIX 200x.
12034         * modules/getline (Files): Remove getline.h.
12035         (Depends-on): Add stdio.
12036         (configure.ac): Add module indicator.
12037         * modules/getdelim (Files): Remove getdelim.h.
12038         (Depends-on): Add stdio.
12039         (configure.ac): Add module indicator.
12040         * modules/stdio (Makefile.am): Work with new indicators.
12041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
12042         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
12043         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12044         * lib/getdelim.h: Delete.
12045         * lib/getline.h: Delete.
12046         * lib/stdio_.h (getdelim, getline): Declare.
12047         * modules/getdelim-tests: New module.
12048         * modules/getline-tests: Likewise.
12049         * tests/test-getdelim.c: New file.
12050         * tests/test-getline.c: Likewise.
12051         * NEWS: Document the change.
12052         * lib/getline.c: Update choice of header.
12053         * lib/csharpcomp.c: Likewise.
12054         * lib/getpass.c: Likewise.
12055         * lib/javacomp.c: Likewise.
12056         * lib/javaversion.c: Likewise.
12057         * lib/yesno.c: Likewise.
12058         * lib/getdelim.c: Likewise.
12059         (getdelim): Set errno on failure, and avoid memory leak.
12060
12061 2007-08-19  Bruno Haible  <bruno@clisp.org>
12062
12063         * modules/closein (Depends-on): Add freadahead.
12064         * lib/closein.c: Include freadahead.h.
12065         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
12066         is zero.
12067
12068 2007-08-19  Bruno Haible  <bruno@clisp.org>
12069
12070         * modules/freadahead-tests: New file.
12071         * tests/test-freadahead.sh: New file.
12072         * tests/test-freadahead.c: New file.
12073
12074         * modules/freadahead: New file.
12075         * lib/freadahead.h: New file.
12076         * lib/freadahead.c: New file.
12077         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
12078         fbufmode, fpurge, freadable, fwritable.
12079
12080 2007-08-19  Eric Blake  <ebb9@byu.net>
12081
12082         Test yesno in combination with closein.
12083         * lib/yesno.c (yesno): Document use of stdin.
12084         * modules/yesno-tests (Files): New module.
12085         * tests/test-yesno.c (main): New file.
12086         * tests/test-yesno.sh: Likewise.
12087
12088 2007-08-19  Bruno Haible  <bruno@clisp.org>
12089
12090         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
12091         * lib/fseeko.c (rpl_fseeko): Likewise.
12092         * lib/fseterr.c (fseterr): Likewise.
12093
12094 2007-08-19  Bruno Haible  <bruno@clisp.org>
12095
12096         * tests/test-lseek.c (main): Disable a test for BeOS.
12097         * doc/functions/lseek.texi: Document the BeOS bug.
12098
12099 2007-08-19  Bruno Haible  <bruno@clisp.org>
12100             Eric Blake  <ebb9@byu.net>
12101
12102         * lib/lseek.c: Include <sys/stat.h>.
12103         (rpl_lseek): Add workaround code also for Unix platforms.
12104         Needed for BeOS.
12105         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
12106         * doc/functions/lseek.texi: Document BeOS definiency.
12107
12108 2007-08-18  Bruno Haible  <bruno@clisp.org>
12109
12110         * modules/fstrcmp-tests: New file.
12111         * tests/test-fstrcmp.c: New file.
12112
12113 2007-08-18  Bruno Haible  <bruno@clisp.org>
12114
12115         * modules/fstrcmp: New file, from GNU gettext with modifications.
12116         * lib/fstrcmp.h: New file, from GNU gettext.
12117         * lib/fstrcmp.c: New file, from GNU gettext.
12118         * MODULES.html.sh (String handling): Add fstrcmp.
12119
12120 2007-08-18  Bruno Haible  <bruno@clisp.org>
12121
12122         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
12123         'bool'.
12124         (diag, compareseq): Remove const from the ctxt argument.
12125         (USE_HEURISTIC): Undefine at the end.
12126
12127 2007-08-18  Jim Meyering  <jim@meyering.net>
12128
12129         New file: lib/idcache.h
12130         * NEWS: Mention the addition.
12131         * modules/idcache (Files): Add lib/idcache.h
12132         * lib/idcache.c: Include "idcache.h".
12133         Don't include <sys/types.h>.
12134         Add a FIXME comment.
12135         Move file-scoped "static" declarations to the top.
12136         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
12137
12138 2007-08-17  Bruno Haible  <bruno@clisp.org>
12139         and Paul Eggert  <eggert@cs.ucla.edu>
12140
12141         * MODULES.html.sh: Add diffseq.
12142         * modules/diffseq: New file.
12143         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
12144         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
12145
12146 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12147
12148         Import changes from coreutils for bootstrap script.
12149
12150         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
12151
12152         * build-aux/bootstrap (slurp): Work even in environments where
12153         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
12154         current code does not slurp files whose names start with ".", and
12155         this looks like it might be a troublesome area.
12156
12157         2007-07-11  Jim Meyering  <jim@meyering.net>
12158
12159         If there's a GPL vN copyright comment, require that N == 3.
12160
12161         2007-07-08  Jim Meyering  <jim@meyering.net>
12162
12163         Run the coreutils-specific code only if tests/Makefile.am.in exists.
12164         * build-aux/bootstrap (mam_template): Move definition out of loop.
12165
12166         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
12167
12168         * build-aux/bootstrap (symlink_to_dir): Rename function from
12169         symlink_to_gnulib.  Add a directory parameter.  Update all
12170         callers.
12171         (cp_mark_as_generated): Also check for -- and link to -- files in
12172         gl/.
12173
12174         2007-07-08  Jim Meyering  <jim@meyering.net>
12175
12176         Adapt to deeper hierarchy in gnulib.
12177         * build-aux/bootstrap (symlink_to_dir): If the destination
12178         directory doesn't exist, create it. This is required at least for
12179         "lib/uniwidth/cjk.h".
12180
12181         2007-05-15  Jim Meyering  <jim@meyering.net>
12182
12183         * build-aux/bootstrap: Now that generated Makefile.am files
12184         are no longer under version control, they must be created at
12185         bootstrap time.
12186
12187 2007-08-14  Ben Pfaff  <blp@gnu.org>
12188
12189         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
12190
12191 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12192
12193         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
12194         given the changes below.
12195         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
12196         even on hosts that have padding bits beyond the supported 64.
12197
12198 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12199
12200         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
12201         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
12202         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
12203         depends on it.
12204         (xstrtol_error): Remove.
12205         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
12206         but with a different signature.
12207         (ATTRIBUTE_NORETURN, __attribute__): New macros.
12208         * lib/xstrtol-error.c: Include exitfail.h.
12209         (xstrtol_fatal): New function, with a different signature from the
12210         old xstrtol_error, so that the caller need not worry about passing
12211         in an exit status, or about storage management of the option argument.
12212         (xstrtol_error): Now a static function.  Redo signature to
12213         implement xstrtol_fatal.  Output the correct number of hyphens in
12214         front of the option so that the caller need not worry about
12215         storage management.
12216         (N_): New macro.
12217         (_): Remove; not used now.
12218         * modules/xstrtol: Depend on getopt.
12219         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
12220         of old STRTOL_FATAL_ERROR macro.
12221         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
12222         of test program.
12223         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
12224         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
12225
12226 2007-08-08  Eric Blake  <ebb9@byu.net>
12227
12228         * lib/xstrtol-error.c: Add missing include.
12229
12230         Move xstrtol messages into gnulib domain, when --pobase is used.
12231         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
12232         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
12233         * modules/xstrtol (Files): Distribute new file.
12234         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
12235         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
12236         * tests/test-xstrtol.c: ...into new file.
12237         * tests/test-xstrtoul.c: Also test xstrtoul.
12238         * tests/test-xstrtoimax.c: Also test xstrtoimax.
12239         * tests/test-xstrtoumax.c: Also test xstrtoumax.
12240         * tests/test-xstrtol.sh: Drive the tests.
12241         * tests/test-xstrtoimax.sh: Likewise.
12242         * tests/test-xstrtoumax.sh: Likewise.
12243         * modules/xstrtol-tests: New module.
12244         * modules/xstrtoimax-tests: Likewise.
12245         * modules/xstrtoumax-tests: Likewise.
12246
12247 2007-08-08  Jim Meyering  <jim@meyering.net>
12248
12249         New function: mfile_name_concat.
12250         * lib/filenamecat.c (mfile_name_concat): New function, just like
12251         file_name_concat, but return NULL upon failure rather than exiting
12252         with a diagnostic.
12253         * lib/filenamecat.h: Declare it.
12254
12255 2007-08-07  Bruno Haible  <bruno@clisp.org>
12256
12257         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
12258         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
12259         warning from gcc.
12260         Reported by Eric Blake.
12261
12262 2007-08-07  Simon Josefsson  <simon@josefsson.org>
12263
12264         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
12265         * modules/crypto/arcfour (License): Likewise.
12266         * modules/crypto/des-tests (License): Likewise.
12267         * modules/crypto/gc-arctwo-tests (License): Likewise.
12268         * modules/crypto/gc-des-tests (License): Likewise.
12269         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
12270         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
12271         * modules/crypto/gc-md2-tests (License): Likewise.
12272         * modules/crypto/gc-md4-tests (License): Likewise.
12273         * modules/crypto/gc-md5-tests (License): Likewise.
12274         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
12275         * modules/crypto/gc-rijndael-tests (License): Likewise.
12276         * modules/crypto/gc-sha1-tests (License): Likewise.
12277         * modules/crypto/gc-tests (License): Likewise.
12278         * modules/crypto/hmac-md5 (License): Likewise.
12279         * modules/crypto/hmac-sha1 (License): Likewise.
12280         * modules/crypto/md2-tests (License): Likewise.
12281         * modules/crypto/md4-tests (License): Likewise.
12282         * modules/crypto/md5 (License): Likewise.
12283         * modules/crypto/rijndael (License): Likewise.
12284         * modules/crypto/sha1 (License): Likewise.
12285         * modules/memxor (License): Likewise.
12286
12287 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
12288         and Bruno Haible  <bruno@clisp.org>
12289
12290         * NEWS: Describe interface changes to human, xstrtol.
12291         * lib/human.h: Include <xstrtol.h>.
12292         (human_options): Return enum strtol_error, not int.  Remove
12293         bool arg; take int * instead.
12294         * lib/human.c: Don't include "gettext.h".
12295         (_): Remove; no longer used.
12296         Don't include <xstrtol.h>, since human.h does it.
12297         (human_options): Adjust to abovementioned interface changes.
12298         Do not report error to stderr; that's now the caller's
12299         responsibility.
12300         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
12301         interface change.
12302         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
12303         Str, Argument_type_string.  All uses changed.  Put " argument"
12304         in diagnostics to make them clearer.  Change wording of suffix
12305         message for clarity.
12306         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
12307         Argument_type_string.
12308         (STRTOL_FATAL_WARN): Remove; no longer used.
12309         * modules/human (Depends-on): Remove gettext-h.
12310
12311 2007-08-06  Simon Josefsson  <simon@josefsson.org>
12312
12313         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
12314
12315 2007-07-31  Bruno Haible  <bruno@clisp.org>
12316
12317         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
12318         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
12319         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
12320
12321 2007-07-31  Bruno Haible  <bruno@clisp.org>
12322
12323         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
12324         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
12325
12326 2007-07-30  Bruno Haible  <bruno@clisp.org>
12327
12328         * modules/base64 (License): Use the synonymous term "LGPLv2+".
12329         * modules/c-ctype (License): Likewise.
12330         * modules/c-strcase (License): Likewise.
12331         * modules/check-version (License): Likewise.
12332         * modules/iconv (License): Likewise.
12333         * modules/iconv_open (License): Likewise.
12334         * modules/read-file (License): Likewise.
12335         * modules/striconv (License): Likewise.
12336         * modules/strverscmp (License): Likewise.
12337         * modules/vasprintf (License): Likewise.
12338         * modules/crypto/des (License): Likewise.
12339         * modules/crypto/gc (License): Likewise.
12340         * modules/crypto/gc-arcfour (License): Likewise.
12341         * modules/crypto/gc-arctwo (License): Likewise.
12342         * modules/crypto/gc-des (License): Likewise.
12343         * modules/crypto/gc-hmac-md5 (License): Likewise.
12344         * modules/crypto/gc-hmac-sha1 (License): Likewise.
12345         * modules/crypto/gc-md2 (License): Likewise.
12346         * modules/crypto/gc-md4 (License): Likewise.
12347         * modules/crypto/gc-md5 (License): Likewise.
12348         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
12349         * modules/crypto/gc-random (License): Likewise.
12350         * modules/crypto/gc-rijndael (License): Likewise.
12351         * modules/crypto/gc-sha1 (License): Likewise.
12352         * modules/crypto/md2 (License): Likewise.
12353         * modules/crypto/md4 (License): Likewise.
12354
12355 2007-07-30  Jim Meyering  <jim@meyering.net>
12356
12357         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
12358         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
12359         it has valid stat data.  This bug would cause du not to count the
12360         sizes of inaccessible directories.
12361         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
12362         in <http://bugzilla.redhat.com/250077>.
12363
12364 2007-07-25  Peter O'Gorman  <peter@pogma.com>
12365             Bruno Haible  <bruno@clisp.org>
12366
12367         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
12368         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
12369         #include_next, gives a diagnostic about it, but reports no error in
12370         the exit code.
12371         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
12372
12373 2007-07-24  Ben Pfaff  <blp@gnu.org>
12374
12375         Improve name: "count-one-bits" is better than "popcount".
12376         * MODULES.html.sh: Update name.
12377         * lib/popcount.h: Renamed lib/count-one-bits.h.
12378         (popcount): Renamed count_one_bits.
12379         (popcountl): Renamed count_one_bits_l.
12380         (popcountll): Renamed count_one_bits_ll.
12381         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
12382         * modules/popcount: Renamed module/count-one-bits.
12383         * modules/popcount-tests: Renamed module/count-one-bits-tests.
12384         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
12385
12386 2007-07-23  Ben Pfaff  <blp@gnu.org>
12387
12388         * lib/popcount.h (popcount32): Reduce size of constants, to allow
12389         better code generation, and add U to large constants to avoid
12390         warnings, in non-GCC case.
12391         Suggested by Bruno Haible.
12392
12393 2007-07-23  Ben Pfaff  <blp@gnu.org>
12394
12395         * lib/popcount.h: Use verify_true instead of if...abort.
12396         * modules/popcount: Depend on verify module.
12397         Suggested by Jim Meyering.
12398
12399 2007-07-23  Bruno Haible  <bruno@clisp.org>
12400
12401         * gnulib-tool (func_import): Create a .cvsignore file also when the
12402         directory is not yet in CVS but the toplevel directory is. When
12403         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
12404         Reported by Karl Berry.
12405
12406 2007-07-22  Ben Pfaff  <blp@gnu.org>
12407
12408         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
12409         case.
12410         Suggested by Eric Blake.
12411
12412 2007-07-22  Ben Pfaff  <blp@gnu.org>
12413
12414         New module: popcount.
12415         * MODULES.html.sh: Add popcount.
12416         * modules/popcount: New file.
12417         * modules/popcount-tests: New file.
12418         * tests/test-popcount.c: New file.
12419         * lib/popcount.h: New file.
12420         * m4/popcount.m4: New file.
12421
12422 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12423
12424         * build-aux/announce-gen: Update to GPLv3.
12425
12426         * build-aux/config.guess: Update from config.
12427
12428 2007-07-21  Bruno Haible  <bruno@clisp.org>
12429
12430         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
12431         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
12432
12433 2007-07-20  Jim Meyering  <jim@meyering.net>
12434
12435         * check-module: Diagnose a self-dependency.
12436
12437 2007-07-19  Bruno Haible  <bruno@clisp.org>
12438
12439         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
12440         empty.
12441         Reported by Eric Blake.
12442
12443 2007-07-18  Bruno Haible  <bruno@clisp.org>
12444
12445         * gnulib-tool: New options --po-base, --po-domain.
12446         (func_usage): Document them.
12447         (pobase, po_domain): New variables.
12448         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
12449         DEFAULT_TEXT_DOMAIN.
12450         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
12451         (func_import): Consider pobase and po_domain. Create a po/ directory.
12452         (func_create_testdir): Set pobase and po_domain to empty.
12453         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
12454         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
12455
12456 2007-07-18  Bruno Haible  <bruno@clisp.org>
12457
12458         * gnulib-tool (func_get_automake_snippet): Synthesize also an
12459         EXTRA_DIST augmentation for files in build-aux/.
12460
12461 2007-07-16  Bruno Haible  <bruno@clisp.org>
12462
12463         * modules/lseek (License): Use the synonymous term "LGPLv2+".
12464         * modules/getdelim (License): Likewise.
12465
12466 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12467
12468         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
12469         * modules/d-type (License): Likewise.
12470         * modules/extensions (License): Likewise.
12471         * modules/fnmatch (License): Likewise.
12472         * modules/fseeko (License): Likewise.
12473         * modules/getaddrinfo (License): Likewise.
12474         * modules/getline (License): Likewise.
12475         * modules/getlogin_r (License): Likewise.
12476         * modules/getpass (License): Likewise.
12477         * modules/gettimeofday (License): Likewise.
12478         * modules/glob (License): Likewise.
12479         * modules/inet_ntop (License): Likewise.
12480         * modules/malloc (License): Likewise.
12481         * modules/malloca (License): Likewise.
12482         * modules/memmem (License): Likewise.
12483         * modules/mempcpy (License): Likewise.
12484         * modules/memset (License): Likewise.
12485         * modules/minmax (License): Likewise.
12486         * modules/mktime (License): Likewise.
12487         * modules/netinet_in (License): Likewise.
12488         * modules/pathmax (License): Likewise.
12489         * modules/poll (License): Likewise.
12490         * modules/regex (License): Likewise.
12491         * modules/snprintf (License): Likewise.
12492         * modules/stdbool (License): Likewise.
12493         * modules/stdint (License): Likewise.
12494         * modules/stdio (License): Likewise.
12495         * modules/strcase (License): Likewise.
12496         * modules/strcasestr (License): Likewise.
12497         * modules/strdup (License): Likewise.
12498         * modules/string (License): Likewise.
12499         * modules/strndup (License): Likewise.
12500         * modules/strnlen (License): Likewise.
12501         * modules/strpbrk (License): Likewise.
12502         * modules/strptime (License): Likewise.
12503         * modules/strsep (License): Likewise.
12504         * modules/sys_select (License): Likewise.
12505         * modules/sys_socket (License): Likewise.
12506         * modules/sys_stat (License): Likewise.
12507         * modules/sys_time (License): Likewise.
12508         * modules/time (License): Likewise.
12509         * modules/time_r (License): Likewise.
12510         * modules/timegm (License): Likewise.
12511         * modules/unistd (License): Likewise.
12512         * modules/vsnprintf (License): Likewise.
12513         * modules/wctype (License): Likewise.
12514
12515 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12516
12517         * modules/argz (License): LGPLv2+.
12518
12519 2007-07-15  Karl Berry  <karl@gnu.org>
12520
12521         * doc/gnulib.texi: revise node structure per new fdl.texi.
12522
12523 2007-07-14  Bruno Haible  <bruno@clisp.org>
12524
12525         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
12526         the output file.
12527         * lib/uniname/uninames.h: Regenerated.
12528
12529 2007-07-14  Karl Berry  <karl@gnu.org>
12530
12531         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
12532         omitting sectioning and index commands.
12533
12534 2007-07-13  Bruno Haible  <bruno@clisp.org>
12535
12536         New gnulib-tool option --more-symlinks.
12537         * gnulib-tool (func_usage): Document --more-symlinks.
12538         (do_copyrights): New variable.
12539         Recognize option --more-symlinks.
12540         (func_import): Don't add a copyright notice transform to
12541         sed_transform_lib_file if do_copyrights is empty.
12542
12543 2007-07-13  Bruno Haible  <bruno@clisp.org>
12544
12545         * lib/vasnprintf.c (decimal_point_char): Define also if
12546         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
12547         && !NEED_PRINTF_DIRECTIVE_A.
12548         Reported by Clemens Koller <clemens.koller@anagramm.de> via
12549         Gary V. Vaughan <gary@gnu.org>.
12550
12551 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12552
12553         * lib/inttypes_.h: Undo previous change, since it was fixed
12554         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
12555
12556 2007-07-13  Bruno Haible  <bruno@clisp.org>
12557
12558         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
12559         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
12560
12561 2007-07-13  Jim Meyering  <jim@meyering.net>
12562
12563         df: Don't fail for Tru64's "file-on-file mount".
12564         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
12565         so we fall through and use statfs instead.  Details here:
12566         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
12567         Reported by Albert Chin.
12568
12569 2007-07-13  Bruno Haible  <bruno@clisp.org>
12570
12571         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
12572         * modules/configmake (License): Likewise.
12573         * modules/gettext (License): Likewise.
12574         * modules/gettext-h (License): Likewise.
12575         * modules/include_next (License): Likewise.
12576         * modules/link-warning (License): Likewise.
12577         * modules/localcharset (License): Likewise.
12578         * modules/localename (License): Likewise.
12579         * modules/lock (License): Likewise.
12580         * modules/relocatable-lib-lgpl (License): Likewise.
12581         * modules/size_max (License): Likewise.
12582         * modules/vasnprintf (License): Likewise.
12583         * modules/wchar (License): Likewise.
12584         * modules/xsize (License): Likewise.
12585
12586 2007-07-13  Bruno Haible  <bruno@clisp.org>
12587
12588         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
12589         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
12590
12591 2007-07-12  Bruno Haible  <bruno@clisp.org>
12592
12593         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
12594         in the modules files.
12595
12596 2007-07-11  Karl Berry  <karl@gnu.org>
12597
12598         * MODULES.html.sh (func_module): use
12599          sed -e '\|^'"${includefile}"'$|d'
12600          instead of /.../d, to avoid errors on $includefile's containing /.
12601
12602 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
12603
12604         * gnulib-tool (func_import): Avoid duplication of --avoid
12605         statements
12606         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
12607         names to `_' in variable names.
12608
12609 2007-07-10  Eric Blake  <ebb9@byu.net>
12610
12611         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
12612         * NEWS: Document this change.
12613
12614 2007-07-08  Bruno Haible  <bruno@clisp.org>
12615
12616         Update to Unicode 5.0.
12617         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
12618         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
12619         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
12620         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
12621         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
12622         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
12623         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
12624         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
12625         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
12626         U+10A3F, U+1D242..U+1D244.
12627         (nonspacing_table_ind): Update.
12628         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
12629         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
12630
12631 2007-07-08  Bruno Haible  <bruno@clisp.org>
12632
12633         Update to Unicode 5.0.
12634         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
12635         code transform. Extend the name index field of unicode_name_to_code and
12636         unicode_code_to_name from 16 to 24 bits.
12637         * lib/uniname/uniname.c (unicode_character_name,
12638         unicode_name_character): Add the range 0x12xxx to the code transform.
12639         * lib/uniname/uninames.h: Regenerated.
12640         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
12641
12642 2007-07-07  Bruno Haible  <bruno@clisp.org>
12643
12644         * modules/wcwidth-tests: New file.
12645         * tests/test-wcwidth.c: New file.
12646
12647         Work around MacOS X wcwidth() bug.
12648         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
12649         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
12650         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
12651         original wcwidth in non-UTF-8 locales.
12652         * modules/wcwidth (Depends-on): Add localcharset, streq,
12653         uniwidth/width.
12654         * doc/functions/wcwidth.texi: Update.
12655
12656 2007-07-07  Bruno Haible  <bruno@clisp.org>
12657
12658         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
12659         (wcwidth): New declaration.
12660         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
12661         macros.
12662         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
12663         here. Prepare for creating <wchar.h> unconditionally.
12664         * modules/wchar (Depends-on): Add link-warning.
12665         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
12666         REPLACE_WCWIDTH, and GL_LINK_WARNING.
12667         * lib/wcwidth.h: Remove file.
12668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
12669         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
12670         * modules/wcwidth (Files): Remove lib/wcwidth.h.
12671         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
12672         (Include): Replace wcwidth.h with <wchar.h>.
12673         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
12674         * lib/mbchar.h: Don't include wcwidth.h.
12675         * lib/mbswidth.c: Likewise.
12676         * NEWS: Mention the change.
12677
12678 2007-07-07  Bruno Haible  <bruno@clisp.org>
12679
12680         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
12681         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
12682         definition with an external declaration.
12683         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
12684         defined as a function. Remove AC_C_INLINE requirement.
12685         * modules/wcwidth (Files): Add lib/wcwidth.c.
12686         (Makefile.am): Remove redundant statement.
12687
12688 2007-07-07  Bruno Haible  <bruno@clisp.org>
12689
12690         * MODULES.html.sh (Unicode string functions): Add the new modules.
12691
12692         * tests/uniwidth/test-u32-strwidth.c: New file.
12693         * modules/uniwidth/u32-strwidth-tests: New file.
12694
12695         * lib/uniwidth/u32-strwidth.c: New file.
12696         * modules/uniwidth/u32-strwidth: New file.
12697
12698         * tests/uniwidth/test-u16-strwidth.c: New file.
12699         * modules/uniwidth/u16-strwidth-tests: New file.
12700
12701         * lib/uniwidth/u16-strwidth.c: New file.
12702         * modules/uniwidth/u16-strwidth: New file.
12703
12704         * tests/uniwidth/test-u8-strwidth.c: New file.
12705         * modules/uniwidth/u8-strwidth-tests: New file.
12706
12707         * lib/uniwidth/u8-strwidth.c: New file.
12708         * modules/uniwidth/u8-strwidth: New file.
12709
12710         * tests/uniwidth/test-u32-width.c: New file.
12711         * modules/uniwidth/u32-width-tests: New file.
12712
12713         * lib/uniwidth/u32-width.c: New file.
12714         * modules/uniwidth/u32-width: New file.
12715
12716         * tests/uniwidth/test-u16-width.c: New file.
12717         * modules/uniwidth/u16-width-tests: New file.
12718
12719         * lib/uniwidth/u16-width.c: New file.
12720         * modules/uniwidth/u16-width: New file.
12721
12722         * tests/uniwidth/test-u8-width.c: New file.
12723         * modules/uniwidth/u8-width-tests: New file.
12724
12725         * lib/uniwidth/u8-width.c: New file.
12726         * modules/uniwidth/u8-width: New file.
12727
12728         * tests/uniwidth/test-uc_width.c: New file.
12729         * modules/uniwidth/width-tests: New file.
12730
12731         * lib/uniwidth/width.c: New file, from GNU libiconv.
12732         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
12733         * modules/uniwidth/width: New file.
12734
12735         * lib/uniwidth.h: New file, from GNU libiconv.
12736         * modules/uniwidth/base: New file.
12737
12738 2007-07-07  Bruno Haible  <bruno@clisp.org>
12739
12740         * lib/uniname.h: New file, from GNU gettext.
12741         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
12742         * lib/uniname/uninames.h: New file, from GNU gettext.
12743         * lib/uniname/uniname.c: New file, from GNU gettext.
12744         * tests/uniname/test-uninames.sh: New file.
12745         * tests/uniname/test-uninames.c: New file, from GNU gettext.
12746         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
12747         * modules/uniname/base: New file.
12748         * modules/uniname/uniname: New file.
12749         * modules/uniname/uniname-tests: New file.
12750         * MODULES.html.sh (Unicode string functions): Add the new modules.
12751
12752 2007-07-06  Bruno Haible  <bruno@clisp.org>
12753
12754         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
12755
12756 2007-07-06  Bruno Haible  <bruno@clisp.org>
12757
12758         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
12759         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
12760         includes <cygwin/sys_time.h> which includes <sys/select.h> which
12761         include <sys/time.h>.
12762         Reported by Eric Blake.
12763
12764 2007-07-06  Eric Blake  <ebb9@byu.net>
12765
12766         Fix testing canonicalize on cygwin.
12767         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12768         Revert patch from 2007-06-19.
12769         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
12770         canonicalize module is also in use.
12771         * tests/test-canonicalize.c: New file.
12772         * tests/test-canonicalize.sh: Likewise.
12773         * modules/canonicalize-tests: Likewise.
12774
12775 2007-07-06  Jim Meyering  <jim@meyering.net>
12776
12777         * lib/getugroups.c (getugroups): Detect getgrent failure.
12778         Adjust comment to reflect reality: this function may return -1.
12779
12780 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12781
12782         * build-aux/bootstrap (TP_URL,get_translations): Update to use
12783         the new TP address.
12784         (usage): Fix typo
12785         (gnulib_mk): New variable.
12786
12787 2007-07-05  Jim Meyering  <jim@meyering.net>
12788
12789         Don't let endgrent clobber errno, no matter how improbable.
12790         * lib/getugroups.c (getugroups): Save and restore errno around
12791         endgrent call.
12792
12793         Close the group DB even when failing with 2^31 or more members.
12794         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
12795
12796 2007-07-04  Jim Meyering  <jim@meyering.net>
12797
12798         * lib/getugroups.h: New file.
12799         * lib/getugroups.c: Include "getugroups.h".
12800         Remove uses of "register" keyword.
12801         Move local variable, "cp", down into scope where used.
12802         Give "username" parameter the "const" attribute.
12803         * modules/getugroups (Files): Add lib/getugroups.h
12804
12805 2007-07-04  Karl Berry  <karl@gnu.org>
12806
12807         * MODULES.html.sh (func_all_modules): Complete rename of
12808         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
12809
12810 2007-07-02  Bruno Haible  <bruno@clisp.org>
12811
12812         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
12813         mode, when inttypes.h comes from gnulib.
12814         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12815
12816 2007-07-02  Simon Josefsson  <simon@josefsson.org>
12817
12818         * NEWS: Mention lgpl module name change.
12819
12820         * modules/lgpl-2.1: Renamed from lgpl.
12821
12822         * NEWS: Mention gpl module name change.
12823
12824         * modules/gpl-3.0: New file, based on gpl-2.0.
12825
12826         * modules/gpl-2.0: Renamed from gpl.
12827
12828         * modules/gpl: Fix filename, doc/gpl.texi is now found at
12829         doc/gpl-2.0.texi.
12830
12831 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12832
12833         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
12834         #define __STDC_LIMIT_MACROS temporarily while including
12835         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
12836         Problem reported by Joel E. Denny in
12837         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
12838
12839 2007-07-01  Bruno Haible  <bruno@clisp.org>
12840
12841         * lib/unistdio.h: New file.
12842         * lib/unistdio/u-asnprintf.h: New file.
12843         * lib/unistdio/u-asprintf.h: New file.
12844         * lib/unistdio/u-printf-args.c: New file.
12845         * lib/unistdio/u-printf-args.h: New file.
12846         * lib/unistdio/u-printf-parse.h: New file.
12847         * lib/unistdio/u-snprintf.h: New file.
12848         * lib/unistdio/u-sprintf.h: New file.
12849         * lib/unistdio/u-vasprintf.h: New file.
12850         * lib/unistdio/u-vsnprintf.h: New file.
12851         * lib/unistdio/u-vsprintf.h: New file.
12852         * lib/unistdio/ulc-asnprintf.c: New file.
12853         * lib/unistdio/ulc-asprintf.c: New file.
12854         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
12855         * lib/unistdio/ulc-printf-parse.c: New file.
12856         * lib/unistdio/ulc-snprintf.c: New file.
12857         * lib/unistdio/ulc-sprintf.c: New file.
12858         * lib/unistdio/ulc-vasnprintf.c: New file.
12859         * lib/unistdio/ulc-vasprintf.c: New file.
12860         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
12861         * lib/unistdio/ulc-vsnprintf.c: New file.
12862         * lib/unistdio/ulc-vsprintf.c: New file.
12863         * lib/unistdio/u8-asnprintf.c: New file.
12864         * lib/unistdio/u8-asprintf.c: New file.
12865         * lib/unistdio/u8-printf-parse.c: New file.
12866         * lib/unistdio/u8-snprintf.c: New file.
12867         * lib/unistdio/u8-sprintf.c: New file.
12868         * lib/unistdio/u8-vasnprintf.c: New file.
12869         * lib/unistdio/u8-vasprintf.c: New file.
12870         * lib/unistdio/u8-vsnprintf.c: New file.
12871         * lib/unistdio/u8-vsprintf.c: New file.
12872         * lib/unistdio/u8-u8-asnprintf.c: New file.
12873         * lib/unistdio/u8-u8-asprintf.c: New file.
12874         * lib/unistdio/u8-u8-snprintf.c: New file.
12875         * lib/unistdio/u8-u8-sprintf.c: New file.
12876         * lib/unistdio/u8-u8-vasnprintf.c: New file.
12877         * lib/unistdio/u8-u8-vasprintf.c: New file.
12878         * lib/unistdio/u8-u8-vsnprintf.c: New file.
12879         * lib/unistdio/u8-u8-vsprintf.c: New file.
12880         * lib/unistdio/u16-asnprintf.c: New file.
12881         * lib/unistdio/u16-asprintf.c: New file.
12882         * lib/unistdio/u16-printf-parse.c: New file.
12883         * lib/unistdio/u16-snprintf.c: New file.
12884         * lib/unistdio/u16-sprintf.c: New file.
12885         * lib/unistdio/u16-vasnprintf.c: New file.
12886         * lib/unistdio/u16-vasprintf.c: New file.
12887         * lib/unistdio/u16-vsnprintf.c: New file.
12888         * lib/unistdio/u16-vsprintf.c: New file.
12889         * lib/unistdio/u16-u16-asnprintf.c: New file.
12890         * lib/unistdio/u16-u16-asprintf.c: New file.
12891         * lib/unistdio/u16-u16-snprintf.c: New file.
12892         * lib/unistdio/u16-u16-sprintf.c: New file.
12893         * lib/unistdio/u16-u16-vasnprintf.c: New file.
12894         * lib/unistdio/u16-u16-vasprintf.c: New file.
12895         * lib/unistdio/u16-u16-vsnprintf.c: New file.
12896         * lib/unistdio/u16-u16-vsprintf.c: New file.
12897         * lib/unistdio/u32-asnprintf.c: New file.
12898         * lib/unistdio/u32-asprintf.c: New file.
12899         * lib/unistdio/u32-printf-parse.c: New file.
12900         * lib/unistdio/u32-snprintf.c: New file.
12901         * lib/unistdio/u32-sprintf.c: New file.
12902         * lib/unistdio/u32-vasnprintf.c: New file.
12903         * lib/unistdio/u32-vasprintf.c: New file.
12904         * lib/unistdio/u32-vsnprintf.c: New file.
12905         * lib/unistdio/u32-vsprintf.c: New file.
12906         * lib/unistdio/u32-u32-asnprintf.c: New file.
12907         * lib/unistdio/u32-u32-asprintf.c: New file.
12908         * lib/unistdio/u32-u32-snprintf.c: New file.
12909         * lib/unistdio/u32-u32-sprintf.c: New file.
12910         * lib/unistdio/u32-u32-vasnprintf.c: New file.
12911         * lib/unistdio/u32-u32-vasprintf.c: New file.
12912         * lib/unistdio/u32-u32-vsnprintf.c: New file.
12913         * lib/unistdio/u32-u32-vsprintf.c: New file.
12914         * tests/unistdio/test-ulc-asnprintf1.c: New file.
12915         * tests/unistdio/test-ulc-asnprintf1.h: New file.
12916         * tests/unistdio/test-ulc-printf1.h: New file.
12917         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
12918         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
12919         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
12920         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
12921         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
12922         * tests/unistdio/test-ulc-vasprintf1.c: New file.
12923         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
12924         * tests/unistdio/test-ulc-vsprintf1.c: New file.
12925         * tests/unistdio/test-u8-asnprintf1.c: New file.
12926         * tests/unistdio/test-u8-asnprintf1.h: New file.
12927         * tests/unistdio/test-u8-printf1.h: New file.
12928         * tests/unistdio/test-u8-vasnprintf1.c: New file.
12929         * tests/unistdio/test-u8-vasnprintf2.c: New file.
12930         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
12931         * tests/unistdio/test-u8-vasnprintf3.c: New file.
12932         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
12933         * tests/unistdio/test-u8-vasprintf1.c: New file.
12934         * tests/unistdio/test-u8-vsnprintf1.c: New file.
12935         * tests/unistdio/test-u8-vsprintf1.c: New file.
12936         * tests/unistdio/test-u16-asnprintf1.c: New file.
12937         * tests/unistdio/test-u16-asnprintf1.h: New file.
12938         * tests/unistdio/test-u16-printf1.h: New file.
12939         * tests/unistdio/test-u16-vasnprintf1.c: New file.
12940         * tests/unistdio/test-u16-vasnprintf2.c: New file.
12941         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
12942         * tests/unistdio/test-u16-vasnprintf3.c: New file.
12943         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
12944         * tests/unistdio/test-u16-vasprintf1.c: New file.
12945         * tests/unistdio/test-u16-vsnprintf1.c: New file.
12946         * tests/unistdio/test-u16-vsprintf1.c: New file.
12947         * tests/unistdio/test-u32-asnprintf1.c: New file.
12948         * tests/unistdio/test-u32-asnprintf1.h: New file.
12949         * tests/unistdio/test-u32-printf1.h: New file.
12950         * tests/unistdio/test-u32-vasnprintf1.c: New file.
12951         * tests/unistdio/test-u32-vasnprintf2.c: New file.
12952         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
12953         * tests/unistdio/test-u32-vasnprintf3.c: New file.
12954         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
12955         * tests/unistdio/test-u32-vasprintf1.c: New file.
12956         * tests/unistdio/test-u32-vsnprintf1.c: New file.
12957         * tests/unistdio/test-u32-vsprintf1.c: New file.
12958         * modules/unistdio/base: New file.
12959         * modules/unistdio/u-printf-args: New file.
12960         * modules/unistdio/ulc-asnprintf: New file.
12961         * modules/unistdio/ulc-asprintf: New file.
12962         * modules/unistdio/ulc-fprintf: New file.
12963         * modules/unistdio/ulc-printf-parse: New file.
12964         * modules/unistdio/ulc-snprintf: New file.
12965         * modules/unistdio/ulc-sprintf: New file.
12966         * modules/unistdio/ulc-vasnprintf: New file.
12967         * modules/unistdio/ulc-vasprintf: New file.
12968         * modules/unistdio/ulc-vfprintf: New file.
12969         * modules/unistdio/ulc-vsnprintf: New file.
12970         * modules/unistdio/ulc-vsprintf: New file.
12971         * modules/unistdio/u8-asnprintf: New file.
12972         * modules/unistdio/u8-asprintf: New file.
12973         * modules/unistdio/u8-printf-parse: New file.
12974         * modules/unistdio/u8-snprintf: New file.
12975         * modules/unistdio/u8-sprintf: New file.
12976         * modules/unistdio/u8-vasnprintf: New file.
12977         * modules/unistdio/u8-vasprintf: New file.
12978         * modules/unistdio/u8-vsnprintf: New file.
12979         * modules/unistdio/u8-vsprintf: New file.
12980         * modules/unistdio/u8-u8-asnprintf: New file.
12981         * modules/unistdio/u8-u8-asprintf: New file.
12982         * modules/unistdio/u8-u8-snprintf: New file.
12983         * modules/unistdio/u8-u8-sprintf: New file.
12984         * modules/unistdio/u8-u8-vasnprintf: New file.
12985         * modules/unistdio/u8-u8-vasprintf: New file.
12986         * modules/unistdio/u8-u8-vsnprintf: New file.
12987         * modules/unistdio/u8-u8-vsprintf: New file.
12988         * modules/unistdio/u16-asnprintf: New file.
12989         * modules/unistdio/u16-asprintf: New file.
12990         * modules/unistdio/u16-printf-parse: New file.
12991         * modules/unistdio/u16-snprintf: New file.
12992         * modules/unistdio/u16-sprintf: New file.
12993         * modules/unistdio/u16-vasnprintf: New file.
12994         * modules/unistdio/u16-vasprintf: New file.
12995         * modules/unistdio/u16-vsnprintf: New file.
12996         * modules/unistdio/u16-vsprintf: New file.
12997         * modules/unistdio/u16-u16-asnprintf: New file.
12998         * modules/unistdio/u16-u16-asprintf: New file.
12999         * modules/unistdio/u16-u16-snprintf: New file.
13000         * modules/unistdio/u16-u16-sprintf: New file.
13001         * modules/unistdio/u16-u16-vasnprintf: New file.
13002         * modules/unistdio/u16-u16-vasprintf: New file.
13003         * modules/unistdio/u16-u16-vsnprintf: New file.
13004         * modules/unistdio/u16-u16-vsprintf: New file.
13005         * modules/unistdio/u32-asnprintf: New file.
13006         * modules/unistdio/u32-asprintf: New file.
13007         * modules/unistdio/u32-printf-parse: New file.
13008         * modules/unistdio/u32-snprintf: New file.
13009         * modules/unistdio/u32-sprintf: New file.
13010         * modules/unistdio/u32-vasnprintf: New file.
13011         * modules/unistdio/u32-vasprintf: New file.
13012         * modules/unistdio/u32-vsnprintf: New file.
13013         * modules/unistdio/u32-vsprintf: New file.
13014         * modules/unistdio/u32-u32-asnprintf: New file.
13015         * modules/unistdio/u32-u32-asprintf: New file.
13016         * modules/unistdio/u32-u32-snprintf: New file.
13017         * modules/unistdio/u32-u32-sprintf: New file.
13018         * modules/unistdio/u32-u32-vasnprintf: New file.
13019         * modules/unistdio/u32-u32-vasprintf: New file.
13020         * modules/unistdio/u32-u32-vsnprintf: New file.
13021         * modules/unistdio/u32-u32-vsprintf: New file.
13022         * modules/unistdio/ulc-asnprintf-tests: New file.
13023         * modules/unistdio/ulc-vasnprintf-tests: New file.
13024         * modules/unistdio/ulc-vasprintf-tests: New file.
13025         * modules/unistdio/ulc-vsnprintf-tests: New file.
13026         * modules/unistdio/ulc-vsprintf-tests: New file.
13027         * modules/unistdio/u8-asnprintf-tests: New file.
13028         * modules/unistdio/u8-vasnprintf-tests: New file.
13029         * modules/unistdio/u8-vasprintf-tests: New file.
13030         * modules/unistdio/u8-vsnprintf-tests: New file.
13031         * modules/unistdio/u8-vsprintf-tests: New file.
13032         * modules/unistdio/u16-asnprintf-tests: New file.
13033         * modules/unistdio/u16-vasnprintf-tests: New file.
13034         * modules/unistdio/u16-vasprintf-tests: New file.
13035         * modules/unistdio/u16-vsnprintf-tests: New file.
13036         * modules/unistdio/u16-vsprintf-tests: New file.
13037         * modules/unistdio/u32-asnprintf-tests: New file.
13038         * modules/unistdio/u32-vasnprintf-tests: New file.
13039         * modules/unistdio/u32-vasprintf-tests: New file.
13040         * modules/unistdio/u32-vsnprintf-tests: New file.
13041         * modules/unistdio/u32-vsprintf-tests: New file.
13042         * MODULES.html.sh (Unicode string functions): Add the new modules.
13043
13044 2007-07-01  Bruno Haible  <bruno@clisp.org>
13045
13046         * lib/sprintf.c (sprintf): Limit the available length estimation,
13047         to avoid address wraparound.
13048         * lib/vsprintf.c (vsprintf): Likewise.
13049         * modules/sprintf-posix (Dependencies): Add stdint.
13050         * modules/vsprintf-posix (Dependencies): Likewise.
13051
13052 2007-07-01  Bruno Haible  <bruno@clisp.org>
13053
13054         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
13055         Windows PATH as well. Conservative double-quoting. Comments.
13056
13057 2007-07-01  Bruno Haible  <bruno@clisp.org>
13058             Eric Blake  <ebb9@byu.net>
13059             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13060
13061         * gnulib-tool (self_abspathname): Fix algorithm to cope with
13062         empty components in $PATH, denoting '.'.
13063
13064 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13065
13066         * gnulib-tool: Fix indentation.
13067         (func_create_megatestdir): Likewise.
13068         Report by Bruno Haible.
13069
13070 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13071
13072         Sync from Automake.
13073         * build-aux/gnupload: Fix shell portability issues with for loops.
13074         Report by Karl Berry.
13075
13076 2007-06-29  Simon Josefsson  <simon@josefsson.org>
13077
13078         * build-aux/maint.mk (POURL): Use translationproject.org.
13079
13080 2007-06-27  Simon Josefsson  <simon@josefsson.org>
13081             Bruno Haible  <bruno@clisp.org>
13082
13083         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
13084         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
13085         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
13086         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
13087         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
13088
13089 2007-06-27  Bruno Haible  <bruno@clisp.org>
13090
13091         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
13092         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
13093
13094 2007-06-26  Karl Berry  <karl@gnu.org>
13095
13096         * MODULES.html.sh: remove xreadlink-with-size.
13097
13098 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13099
13100         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
13101         method that I hope also handles the double-include problem noted
13102         by Bruno Haible in
13103         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
13104
13105 2007-06-23  Bruno Haible  <bruno@clisp.org>
13106
13107         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13108         Don't let the 'mostlyclean' target fail if the last subdirectory could
13109         not be removed.
13110         Reported by Karl Berry.
13111
13112 2007-06-23  Bruno Haible  <bruno@clisp.org>
13113
13114         * gnulib-tool (echo): Add a speedier workaround for ksh.
13115         * tests/test-echo.sh: Likewise.
13116
13117 2007-06-23  Bruno Haible  <bruno@clisp.org>
13118
13119         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
13120         * tests/test-echo.sh: Likewise.
13121
13122 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13123
13124         * gnulib-tool (IFS): Initialize early, so we don't set it to
13125         empty later.
13126         (self_abspathname): Rewrite algorithm to set it, reindent.
13127         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
13128         (func_create_megatestdir): Merge some sed scripts.
13129
13130 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13131
13132         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
13133         exposed by Sun Studio 11 cc on Solaris 8.
13134
13135 2007-06-22  Bruno Haible  <bruno@clisp.org>
13136
13137         * gnulib-tool (echo): Ensure the echo primitive does not interpret
13138         backslashes.
13139         * tests/test-echo.sh: New file.
13140
13141 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13142
13143         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
13144         simplify `sed_replace_build_aux' scripts, they are portable but
13145         echoing them with `echo' is not.
13146         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
13147
13148 2007-06-21  Karl Berry  <karl@gnu.org>
13149
13150         * config/srclist.txt: guess we can't handle the licenses via
13151         srclist at the moment.
13152
13153 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13154
13155         * MODULES.html.sh: Add include_next.
13156         * modules/include_next: New file.
13157
13158 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13159
13160         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
13161         INCLUDE_NEXT.
13162         (gl_CHECK_NEXT_HEADERS): New macro.
13163         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
13164         the obsolescent gl_ABSOLUTE_HEADER.
13165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
13166         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
13167         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
13168         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13169         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13170         * m4/math_h.m4 (gl_MATH_H): Likewise.
13171         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
13172         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13173         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13174         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13175         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13176         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13177         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13178         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13179         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13180         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13181         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13182         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
13183         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13184         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13185         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13186         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13187         * m4/inttypes.m4 (gl_INTTYPES_H): Define
13188         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
13189         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
13190         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
13191         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
13192         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
13193         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
13194         * lib/float_.h: Likewise.
13195         * lib/inttypes_.h: Likewise.
13196         * lib/math_.h: Likewise.
13197         * lib/search_.h: Likewise.
13198         * lib/signal_.h: Likewise.
13199         * lib/stdint_.h: Likewise.
13200         * lib/stdio_.h: Likewise.
13201         * lib/stdlib_.h: Likewise.
13202         * lib/string_.h: Likewise.
13203         * lib/sys_stat_.h: Likewise.
13204         * lib/sys_time_.h: Likewise.
13205         * lib/time_.h: Likewise.
13206         * lib/unistd_.h: Likewise.
13207         * lib/wchar_.h: Likewise.
13208         * lib/wctype_.h: Likewise.
13209         * lib/dirent_.h: Likewise.
13210         * lib/iconv_.h: Likewise.
13211         * lib/locale_.h: Likewise.
13212         * lib/netinet_in_.h: Likewise.
13213         * lib/sys_select_.h: Likewise.
13214         * lib/sys_socket_.h: Likewise.
13215         * lib/sysexits_.h: Likewise.
13216         * modules/fcntl (Depends-on): Depend on include_next, not
13217         absolute_header.
13218         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
13219         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
13220         * modules/fchdir: Likewise.
13221         * modules/float: Likewise.
13222         * modules/iconv_open: Likewise.
13223         * modules/inttypes: Likewise.
13224         * modules/locale: Likewise.
13225         * modules/math: Likewise.
13226         * modules/netinet_in: Likewise.
13227         * modules/search: Likewise.
13228         * modules/signal: Likewise.
13229         * modules/stdint: Likewise.
13230         * modules/stdio: Likewise.
13231         * modules/stdlib: Likewise.
13232         * modules/string: Likewise.
13233         * modules/sys_select: Likewise.
13234         * modules/sys_socket: Likewise.
13235         * modules/sys_stat: Likewise.
13236         * modules/sys_time: Likewise.
13237         * modules/sysexits: Likewise.
13238         * modules/time: Likewise.
13239         * modules/unistd: Likewise.
13240         * modules/wchar: Likewise.
13241         * modules/wctype: Likewise.
13242         * modules/sys_stat: Change maintainer to "all".
13243         * modules/unistd: Likewise.
13244
13245 2007-06-20  Karl Berry  <karl@gnu.org>
13246
13247         * config/srclist.txt: track www changes in license files.
13248
13249 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
13250
13251         * build-aux/bootstrap: Remove stray dot.
13252         Make sure build_aux settings are honored when linking
13253         gnulib_extra_files.
13254
13255 2007-06-19  Eric Blake  <ebb9@byu.net>
13256
13257         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13258         Allow compilation on cygwin.
13259
13260 2007-06-19  Jim Meyering  <jim@meyering.net>
13261
13262         xreadlink-with-size: Remove module.  No longer used.
13263         Ex-callers now use xreadlink or mreadlink-with-size.
13264         * modules/xreadlink-with-size: Remove module.
13265         * lib/xreadlink-with-size.c: Remove file.
13266         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
13267         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
13268         just before the function definition *is* accurate.
13269
13270         Eliminate one way canonicalize_filename_mode could exit.
13271         * lib/canonicalize.c (canonicalize_filename_mode):
13272         Use mreadlink_with_size, not xreadlink_with_size.
13273
13274 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13275
13276         Detect porting problems to FreeBSD/arm, which has time_t wider than
13277         long int.  Original problem reported for GNU diff by Xin Li in
13278         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
13279         * modules/getdate (Depends-on): Add intprops, verify.
13280         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
13281         is an integer type no wider than long int.
13282
13283 2007-06-18  Jim Meyering  <jim@meyering.net>
13284
13285         New module: mreadlink-with-size.
13286         * MODULES.html.sh: Add mreadlink-with-size.
13287         * modules/mreadlink-with-size: New module
13288         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
13289         not xreadlink-with-size.
13290         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
13291
13292 2007-06-16  Bruno Haible  <bruno@clisp.org>
13293
13294         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
13295         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
13296         Reported by Gary V. Vaughan <gary@gnu.org>.
13297
13298 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13299
13300         Revamp lchown so that it lives in unistd.h where it belongs.
13301         * lib/lchown.h: Remove.
13302         * lib/dirchownmod.c: Don't include lib/lchown.h.
13303         * lib/fchownat.c: Likewise.
13304         * lib/openat.c: Likewise.
13305         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
13306         does not follow symlinks.
13307         (EOPNOTSUPP): Define if not defined.
13308         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
13309         is defined to 0.
13310         (lchown): New decl.
13311         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
13312         Do not check for lchown decl.
13313         Set REPLACE_LCHOWN.
13314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
13315         REPLACE_LCHOWN.
13316         * modules/chown: Make it clear it follows symlinks.
13317         * modules/lchown: Make it clear it doesn't follow symlinks.
13318         (Files): Remove lib/lchown.h
13319         (Depends-on): Add unistd.
13320         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
13321         (Include): Include <unistd.h>, not "lchown.h".
13322         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
13323         REPLACE_LCHOWN.
13324
13325 2007-06-15  Jim Meyering  <jim@meyering.net>
13326
13327         Change license (GPL to LGPL) of fsusage and dependents.
13328         * modules/fsusage (License): Change to LGPL.
13329         * modules/full-read (License): Likewise.
13330         * modules/full-write (License): Likewise.
13331         * modules/safe-read (License): Likewise.
13332         * modules/safe-write (License): Likewise.
13333
13334 2007-06-14  Ben Pfaff  <blp@gnu.org>
13335
13336         Missing part of allocsa -> malloca transition.
13337         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
13338         gl_MALLOCA.
13339
13340 2007-06-12  Bruno Haible  <bruno@clisp.org>
13341
13342         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
13343         to ia64, x86_64, i386.
13344         Reported by Eric Blake.
13345
13346 2007-06-12  Bruno Haible  <bruno@clisp.org>
13347
13348         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
13349         cross-compiling to x86_64.
13350
13351 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
13352
13353         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
13354         glitch reported by Ralf Wildenhues in
13355         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
13356
13357         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
13358         Vin Shelton.
13359
13360 2007-06-11  Bruno Haible  <bruno@clisp.org>
13361
13362         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
13363         replacement string.
13364         Reported by Eric Blake.
13365
13366 2007-06-10  Bruno Haible  <bruno@clisp.org>
13367
13368         Prepare vasnprintf code for use with Unicode strings.
13369         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
13370         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
13371         TYPE_U32_STRING.
13372         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
13373         a_u32_string variants.
13374         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13375         * lib/printf-args.c: Don't include config.h and the specification
13376         header if PRINTF_FETCHARGS is already defined.
13377         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13378         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
13379         TYPE_U16_STRING, TYPE_U32_STRING.
13380         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
13381         u16_directive, u16_directives, u32_directive, u32_directives): New
13382         types.
13383         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
13384         New declarations.
13385         * lib/printf-parse.c: Don't include config.h and the specification
13386         header if PRINTF_PARSE is already defined. Eliminate the set of
13387         parameters for WIDE_CHAR_VERSION; the user of this file must provide
13388         them now. Include c-ctype.h.
13389         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
13390         directive and CHAR_T_ONLY_ASCII.
13391         * lib/vasnprintf.c: Don't include config.h and the specification header
13392         if VASNPRINTF is already defined.
13393         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
13394         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
13395         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
13396         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
13397         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
13398         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
13399         code accordingly.
13400         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
13401         pad_ourselves also in this case, with the 'c' and 's' directives, and
13402         with a different notion of "width".
13403         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
13404
13405 2007-06-10  Bruno Haible  <bruno@clisp.org>
13406
13407         * modules/unistr/u32-mbsnlen: New file.
13408         * lib/unistr/u32-mbsnlen.c: New file.
13409
13410         * modules/unistr/u16-mbsnlen: New file.
13411         * lib/unistr/u16-mbsnlen.c: New file.
13412
13413         * modules/unistr/u8-mbsnlen: New file.
13414         * lib/unistr/u8-mbsnlen.c: New file.
13415
13416         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
13417         declarations.
13418
13419 2007-06-10  Bruno Haible  <bruno@clisp.org>
13420
13421         * lib/string_.h (mbsnlen): New declaration.
13422         * lib/mbsnlen.c: New file.
13423         * m4/mbsnlen.m4: New file.
13424         * modules/mbsnlen: New file.
13425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
13426         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
13427         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
13428
13429 2007-06-10  Bruno Haible  <bruno@clisp.org>
13430
13431         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
13432
13433 2007-06-10  Bruno Haible  <bruno@clisp.org>
13434
13435         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
13436         * lib/mbuiter.h: Likewise.
13437
13438 2007-06-10  Bruno Haible  <bruno@clisp.org>
13439
13440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
13441         declaration.
13442
13443 2007-06-10  Karl Berry  <karl@gnu.org>
13444
13445         * config/srclist.txt: remove gettext entries, Bruno prefers
13446         to update individually.
13447
13448 2007-06-10  Bruno Haible  <bruno@clisp.org>
13449
13450         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
13451         'maxlen'. Ensure only length + width bytes are allocated, not
13452         length + 1 + width.
13453
13454 2007-06-09  Bruno Haible  <bruno@clisp.org>
13455
13456         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
13457         (CHAR_T): Remove macro.
13458         (VASNPRINTF): Update.
13459
13460 2007-06-09  Bruno Haible  <bruno@clisp.org>
13461
13462         * MODULES.html.sh (Unicode string functions): Add the new modules.
13463
13464         * modules/uniconv/u32-conv-to-enc: New file.
13465         * lib/uniconv/u32-conv-to-enc.c: New file.
13466         * modules/uniconv/u32-conv-to-enc-tests: New file.
13467         * tests/uniconv/test-u32-conv-to-enc.c: New file.
13468
13469         * modules/uniconv/u16-conv-to-enc: New file.
13470         * lib/uniconv/u16-conv-to-enc.c: New file.
13471         * lib/uniconv/u-conv-to-enc.h: New file.
13472         * modules/uniconv/u16-conv-to-enc-tests: New file.
13473         * tests/uniconv/test-u16-conv-to-enc.c: New file.
13474
13475         * modules/uniconv/u8-conv-to-enc: New file.
13476         * lib/uniconv/u8-conv-to-enc.c: New file.
13477         * modules/uniconv/u8-conv-to-enc-tests: New file.
13478         * tests/uniconv/test-u8-conv-to-enc.c: New file.
13479
13480         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13481         u32_conv_to_encoding): New declarations.
13482
13483 2007-06-09  Bruno Haible  <bruno@clisp.org>
13484
13485         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
13486
13487 2007-06-09  Bruno Haible  <bruno@clisp.org>
13488
13489         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
13490         * modules/malloca: Renamed from modules/allocsa, updated.
13491         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
13492         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
13493         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
13494         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
13495         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
13496         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
13497         * modules/xmalloca: Renamed from modules/xallocsa, updated.
13498         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
13499         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
13500         * modules/c-strcasestr (Depends-on): Update.
13501         * lib/c-strcasestr.c: Update.
13502         * modules/c-strstr (Depends-on): Update.
13503         * lib/c-strstr.c: Update.
13504         * modules/canonicalize-lgpl (Depends-on): Update.
13505         * lib/canonicalize-lgpl.c: Update.
13506         * modules/clean-temp (Depends-on): Update.
13507         * lib/clean-temp.c: Update.
13508         * modules/csharpcomp (Depends-on): Update.
13509         * lib/csharpcomp.c: Update.
13510         * modules/csharpexec (Depends-on): Update.
13511         * lib/csharpexec.c: Update.
13512         * modules/javacomp (Depends-on): Update.
13513         * lib/javacomp.c: Update.
13514         * modules/javaexec (Depends-on): Update.
13515         * lib/javaexec.c: Update.
13516         * modules/mbscasestr (Depends-on): Update.
13517         * lib/mbscasestr.c: Update.
13518         * modules/mbsstr (Depends-on): Update.
13519         * lib/mbsstr.c: Update.
13520         * modules/setenv (Depends-on): Update.
13521         * lib/setenv.c: Update.
13522         * modules/strcasestr (Depends-on): Update.
13523         * lib/strcasestr.c: Update.
13524         * modules/striconveha (Depends-on): Update.
13525         * lib/striconveha.c: Update.
13526         * modules/relocatable-prog-wrapper (Files): Update.
13527         * lib/relocwrapper.c: Update.
13528         * build-aux/install-reloc: Update.
13529         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
13530
13531 2007-06-08  Bruno Haible  <bruno@clisp.org>
13532
13533         Port to uClibc.
13534         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
13535         * lib/fpurge.c (fpurge): Likewise.
13536         * lib/freading.c (freading): Likewise.
13537         * lib/fseeko.c (rpl_fseeko): Likewise.
13538         * lib/fseterr.c (fseterr): Likewise.
13539         * lib/fwriting.c (fwriting): Likewise.
13540         * tests/test-fflush.c (main): Avoid a failure on uClibc.
13541
13542 2007-06-08  Bruno Haible  <bruno@clisp.org>
13543
13544         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
13545         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
13546         * modules/gettext (Files): Add m4/intlmacosx.m4.
13547
13548 2007-06-07  Bruno Haible  <bruno@clisp.org>
13549
13550         * modules/localename-tests: New file.
13551         * tests/test-localename.c: New file.
13552
13553         New module 'localename'.
13554         * lib/localename.h: New file.
13555         * lib/localename.c: New file, from GNU gettext.
13556         * m4/localename.m4: New file.
13557         * modules/localename: New file.
13558
13559 2007-06-07  Bruno Haible  <bruno@clisp.org>
13560
13561         Work around the lack of <wchar.h> on some builds of uClibc.
13562         * doc/headers/wchar.texi: Update.
13563         * lib/wchar_.h: Include <wchar.h> only if it exists.
13564         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
13565         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
13566         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
13567         doesn't exist.
13568         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
13569         * modules/mbfile (Depends-on): Add wchar.
13570         * modules/mbiter (Depends-on): Likewise.
13571         * modules/mbuiter (Depends-on): Likewise.
13572         Reported by Simon Josefsson.
13573
13574 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13575
13576         Work around problem reported by Steven M. Schweda in
13577         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
13578         Tru64 5.1B with the Compaq compiler environment installed declares
13579         an 'isblank' function but does not define it in the C library.
13580         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
13581         * lib/regex_internal.h (isblank): Likewise.
13582         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
13583         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13584
13585 2007-06-05  Bruno Haible  <bruno@clisp.org>
13586
13587         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
13588         ia64.
13589         * modules/printf-safe: New file.
13590         * modules/fprintf-posix (Depends-on): Add printf-safe.
13591         * modules/printf-posix (Depends-on): Likewise.
13592         * modules/snprintf-posix (Depends-on): Likewise.
13593         * modules/sprintf-posix (Depends-on): Likewise.
13594         * modules/vasnprintf-posix (Depends-on): Likewise.
13595         * modules/vasprintf-posix (Depends-on): Likewise.
13596         * modules/vfprintf-posix (Depends-on): Likewise.
13597         * modules/vprintf-posix (Depends-on): Likewise.
13598         * modules/vsnprintf-posix (Depends-on): Likewise.
13599         * modules/vsprintf-posix (Depends-on): Likewise.
13600         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13601         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
13602         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
13603         "no" on i386, x86_64, ia64.
13604         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
13605         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13606         on i386, x86_64, ia64.
13607         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
13608         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13609         on i386, x86_64, ia64.
13610         * tests/test-vasnprintf-posix.c: Include float.h.
13611         (LDBL80_WORDS): New macro.
13612         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13613         on i386, x86_64, ia64.
13614         * tests/test-vasprintf-posix.c: Include float.h.
13615         (LDBL80_WORDS): New macro.
13616         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13617         on i386, x86_64, ia64.
13618         * tests/test-snprintf-posix.c: Include float.h.
13619         * tests/test-sprintf-posix.c: Likewise.
13620         * tests/test-vsnprintf-posix.c: Likewise.
13621         * tests/test-vsprintf-posix.c: Likewise.
13622
13623 2007-06-05  Bruno Haible  <bruno@clisp.org>
13624
13625         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
13626         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
13627         non-IEEE numbers on i386, x86_64, ia64.
13628         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
13629         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
13630         * tests/test-isnanl.h: Include float.h.
13631         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
13632
13633 2007-06-05  Bruno Haible  <bruno@clisp.org>
13634
13635         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
13636         also the %a / %A. Handle the %a / %A code before this extra handling.
13637
13638 2007-06-05  Bruno Haible  <bruno@clisp.org>
13639
13640         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
13641         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
13642
13643 2007-06-05  Bruno Haible  <bruno@clisp.org>
13644
13645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
13646         typo in variable name.
13647
13648 2007-06-05  Eric Blake  <ebb9@byu.net>
13649
13650         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
13651         Reported by Simon Josefsson.
13652
13653 2007-06-04  Bruno Haible  <bruno@clisp.org>
13654
13655         Avoid test failures on some PowerPC platforms.
13656         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
13657         Define differently for PowerPC.
13658         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
13659         Reported by Gary V. Vaughan <gary@gnu.org>.
13660
13661 2007-06-02  Bruno Haible  <bruno@clisp.org>
13662
13663         Fix test-stdint failure on FreeBSD/ia64.
13664         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
13665         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
13666         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
13667         * doc/headers/stdint.texi: Update.
13668
13669 2007-06-01  Bruno Haible  <bruno@clisp.org>
13670
13671         * tests/test-binary-io.c (main): Pass a third argument to open().
13672         Reported by Gary V. Vaughan <gary@gnu.org>.
13673
13674 2007-06-01  Bruno Haible  <bruno@clisp.org>
13675
13676         * doc/functions/frexpl.texi: Update for mingw.
13677
13678 2007-06-01  Bruno Haible  <bruno@clisp.org>
13679
13680         * tests/test-lseek.c (main): Disable test of errno for invalid third
13681         argument.
13682         * doc/functions/lseek.texi: Update.
13683         Reported by Gary V. Vaughan <gary@gnu.org>.
13684
13685 2007-05-28  Bruno Haible  <bruno@clisp.org>
13686
13687         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
13688
13689 2007-05-31  Eric Blake  <ebb9@byu.net>
13690
13691         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
13692         cross compiling.
13693
13694 2007-05-30  Eric Blake  <ebb9@byu.net>
13695         and Bruno Haible  <bruno@clisp.org>
13696
13697         Work around mingw test failures exposed by m4-1.4.9b.
13698         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
13699         * tests/test-unistd.c: Disable uid_t and git_t tests for the
13700         moment.
13701
13702 2007-05-30  Bruno Haible  <bruno@clisp.org>
13703
13704         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
13705         assuming that they are closed. Needed on HP-UX 11.
13706
13707 2007-05-29  Bruno Haible  <bruno@clisp.org>
13708
13709         Fix a problem with #include_next.
13710         * lib/dirent_.h: Split the double-inclusion guard.
13711         * lib/fcntl_.h: Likewise.
13712         * lib/float_.h: Likewise.
13713         * lib/iconv_.h: Likewise.
13714         * lib/inttypes_.h: Likewise.
13715         * lib/locale_.h: Likewise.
13716         * lib/math_.h: Likewise.
13717         * lib/netinet_in_.h: Likewise.
13718         * lib/search_.h: Likewise.
13719         * lib/signal_.h: Likewise.
13720         * lib/stdint_.h: Likewise.
13721         * lib/stdio_.h: Likewise.
13722         * lib/stdlib_.h: Likewise.
13723         * lib/string_.h: Likewise.
13724         * lib/sys_select_.h: Likewise.
13725         * lib/sys_socket_.h: Likewise.
13726         * lib/sys_stat_.h: Likewise.
13727         * lib/sys_time_.h: Likewise.
13728         * lib/sysexits_.h: Likewise.
13729         * lib/time_.h: Likewise.
13730         * lib/unistd_.h: Likewise.
13731         * lib/wchar_.h: Likewise.
13732         * lib/wctype_.h: Likewise.
13733
13734 2007-05-29  Bruno Haible  <bruno@clisp.org>
13735
13736         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
13737         for the moment.
13738
13739 2007-05-29  Bruno Haible  <bruno@clisp.org>
13740
13741         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
13742         invocation.
13743         Reported by Eric Blake.
13744
13745 2007-05-29  Bruno Haible  <bruno@clisp.org>
13746
13747         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
13748         compiling case.
13749
13750 2007-05-29  Eric Blake  <ebb9@byu.net>
13751             Bruno Haible  <bruno@clisp.org>
13752
13753         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
13754         cross compiles.
13755
13756 2007-05-28  Eric Blake  <ebb9@byu.net>
13757
13758         * modules/closein-tests (test_closein_LDADD): Support test on
13759         cygwin with libtool.
13760
13761 2007-05-28  Bruno Haible  <bruno@clisp.org>
13762
13763         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
13764         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13765         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13766         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13767         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13768         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13769         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13770         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13771         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13772
13773 2007-05-28  Eric Blake  <ebb9@byu.net>
13774
13775         Unconditionally include <config.h> in unit tests.
13776         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
13777         * tests/test-allocsa.c, tests/test-arcfour.c,
13778         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
13779         tests/test-array_list.c, tests/test-array_oset.c,
13780         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
13781         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
13782         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
13783         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
13784         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
13785         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
13786         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
13787         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
13788         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
13789         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
13790         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
13791         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
13792         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
13793         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
13794         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
13795         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
13796         test-md5.c, test-memmem.c, test-printf-posix.c,
13797         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
13798         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
13799         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
13800         test-strcasestr.c, test-striconv.c, test-striconveh.c,
13801         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
13802         test-vasnprintf-posix2.c, test-vasnprintf.c,
13803         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
13804         test-vfprintf-posix.c, test-vprintf-posix.c,
13805         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
13806         test-xvasprintf.c: Likewise.
13807
13808 2007-05-28  Bruno Haible  <bruno@clisp.org>
13809
13810         * gnulib-tool (func_import): Remember the --with-tests command-line
13811         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
13812         Reported by Eric Blake.
13813
13814 2007-05-28  Bruno Haible  <bruno@clisp.org>
13815
13816         * modules/ftell-tests: New file.
13817         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
13818         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
13819
13820         * lib/ftell.c: New file.
13821         * modules/ftell: New file.
13822         * m4/ftell.m4: New file.
13823         * doc/functions/ftell.texi: Update.
13824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
13825         REPLACE_FTELL.
13826         * lib/stdio_.h (rpl_ftell): New declaration.
13827         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
13828         REPLACE_FTELL.
13829
13830 2007-05-28  Eric Blake  <ebb9@byu.net>
13831
13832         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
13833
13834 2007-05-28  Bruno Haible  <bruno@clisp.org>
13835
13836         * modules/fseek-tests: New file.
13837         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
13838         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
13839
13840         * lib/fseek.c: New file.
13841         * modules/fseek: New file.
13842         * m4/fseek.m4: New file.
13843         * doc/functions/fseek.texi: Update.
13844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
13845         REPLACE_FSEEK.
13846         * lib/stdio_.h (rpl_fseek): New declaration.
13847         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
13848         REPLACE_FSEEK.
13849
13850 2007-05-28  Bruno Haible  <bruno@clisp.org>
13851
13852         * lib/stdio_.h (fflush): More comments.
13853
13854 2007-05-28  Bruno Haible  <bruno@clisp.org>
13855
13856         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
13857         runtime test.
13858
13859 2007-05-28  Eric Blake  <ebb9@byu.net>
13860
13861         Improve lseek module.
13862         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
13863         * lib/unistd_.h (lseek): Scale back link warning message.
13864         * tests/test-lseek.c: Beef up test.
13865         * tests/test-lseek.sh: Exercise more facets of lseek.
13866         Reported by Bruno Haible.
13867
13868 2007-05-28  Bruno Haible  <bruno@clisp.org>
13869
13870         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
13871         to define.
13872
13873 2007-05-27  Bruno Haible  <bruno@clisp.org>
13874
13875         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
13876
13877 2007-05-27  Bruno Haible  <bruno@clisp.org>
13878
13879         * modules/openmp: New file.
13880         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
13881         Noah Misch.
13882
13883 2007-05-26  Bruno Haible  <bruno@clisp.org>
13884
13885         * modules/chdir-long (Depends-on): Add fchdir.
13886         * modules/chdir-safer (Depends-on): Likewise.
13887         * modules/fts (Depends-on): Likewise.
13888         * modules/fts-lgpl (Depends-on): Likewise.
13889         * modules/openat (Depends-on): Likewise.
13890         * modules/savewd (Depends-on): Likewise.
13891
13892 2007-05-24  Eric Blake  <ebb9@byu.net>
13893
13894         Fix lseek on mingw.
13895         * modules/lseek: New module.
13896         * m4/lseek.m4: New file.
13897         * lib/lseek.c: New file.
13898         * modules/lseek-tests: New file.
13899         * tests/test-lseek.c: New file.
13900         * tests/test-lseek.sh: New file.
13901         * MODULES.html.sh: Document lseek module.
13902         * modules/fflush (Depends-on): Add lseek, fseeko.
13903         * modules/fseeko (Depends-on): Likewise.
13904         * modules/ftello (Depends-on): Likewise.
13905         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
13906         broken.
13907         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
13908         broken.
13909         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
13910         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
13911         * lib/ftello.c (rpl_ftello): Likewise.
13912         * tests/test-fseeko.c (main): Test this.
13913         * tests/test-fseeko.sh: Likewise.
13914         * tests/test-ftello.c (main): Likewise.
13915         * tests/test-ftello.sh: Likewise.
13916         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
13917         implies replacing fseek.
13918         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
13919         HAVE_FTELLO.
13920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
13921         * modules/unistd (Makefile.am): Likewise.
13922         * lib/unistd_.h (lseek): Declare a replacement.
13923         * doc/functions/lseek.texi (lseek): Document this fix.
13924         * doc/functions/fseek.texi (fseek): Likewise.
13925         * doc/functions/ftell.texi (ftell): Likewise.
13926
13927 2007-05-24  Bruno Haible  <bruno@clisp.org>
13928
13929         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
13930         in the printed representation of a NaN.
13931         * tests/test-vasprintf-posix.c (test_function): Likewise.
13932         * tests/test-snprintf-posix.h (test_function): Likewise.
13933         * tests/test-sprintf-posix.h (test_function): Likewise.
13934         Reported by Eric Blake.
13935
13936 2007-05-23  Eric Blake  <ebb9@byu.net>
13937
13938         Fix fseeko/ftello on cygwin 1.5.24.
13939         * doc/functions/fseeko.texi (fseeko): Document the fix.
13940         * doc/functions/ftello.texi (ftello): Document the fix.
13941         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
13942         * doc/functions/stdout.text (stdout): New file.
13943         * doc/functions/stderr.text (stderr): New file.
13944         * doc/gnulib.texi (Function Substitutes): Use new files.
13945         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
13946         prior to 1.7.0.
13947         * tests/test-ftello.c (main): Likewise for ftello.
13948         * tests/test-fseeko.sh: New file.
13949         * tests/test-ftello.sh: New file.
13950         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
13951         with seekable stdin.
13952         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
13953         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
13954         (gl_REPLACE_FSEEKO): New macro.
13955         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
13956         * modules/fseeko (Files): Distribute fseeko.c.
13957         * modules/ftello (Files): Distribute ftello.c.
13958         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
13959         mode.
13960         * lib/ftello.c (rpl_ftello): New file.
13961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
13962         fseeko, ftello.
13963         (gl_STDIN_LARGE_OFFSET): New macro.
13964         * modules/stdio (Makefile.am): Perform the replacement.
13965         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
13966
13967 2007-05-23  Bruno Haible  <bruno@clisp.org>
13968
13969         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
13970         GNULIB_POSIXCHECK is defined.
13971
13972 2007-05-21  Bruno Haible  <bruno@clisp.org>
13973
13974         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
13975         Check also the output for NaN arguments. When cross-compiling, guess
13976         no on IRIX.
13977         * lib/vasnprintf.c: Update comments.
13978         * tests/test-vasnprintf-posix.c (strisnan): New function.
13979         (test_function): Use it.
13980         * tests/test-vasprintf-posix.c (strisnan): New function.
13981         (test_function): Use it.
13982         * tests/test-snprintf-posix.h (strisnan): New function.
13983         (test_function): Use it.
13984         * tests/test-sprintf-posix.h (strisnan): New function.
13985         (test_function): Use it.
13986         Reported by Eric Blake.
13987
13988 2007-05-20  Bruno Haible  <bruno@clisp.org>
13989
13990         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
13991         numbers that fails on BeOS.
13992         * doc/functions/frexpl.texi: Update.
13993
13994 2007-05-20  Jim Meyering  <jim@meyering.net>
13995
13996         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
13997         forced upon us by glibc-2.6.
13998
13999 2007-05-20  Bruno Haible  <bruno@clisp.org>
14000
14001         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
14002         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
14003         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
14004         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
14005         NEED_PRINTF_INFINITE.
14006         (is_infinitel): New function.
14007         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
14008         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
14009         gl_PREREQ_VASNPRINTF_INFINITE.
14010         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
14011         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14012         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
14013         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
14014         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
14015         gl_PREREQ_VASNPRINTF_INFINITE.
14016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14017         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14018         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14019         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14020         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14021         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14022         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14023         * doc/functions/fprintf.texi: Update.
14024         * doc/functions/printf.texi: Update.
14025         * doc/functions/snprintf.texi: Update.
14026         * doc/functions/sprintf.texi: Update.
14027         * doc/functions/vfprintf.texi: Update.
14028         * doc/functions/vprintf.texi: Update.
14029         * doc/functions/vsnprintf.texi: Update.
14030         * doc/functions/vsprintf.texi: Update.
14031
14032 2007-05-20  Bruno Haible  <bruno@clisp.org>
14033
14034         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
14035         was not found in libc.
14036         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14037
14038 2007-05-20  Bruno Haible  <bruno@clisp.org>
14039
14040         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14041         printed as "-nan" instead of "nan".
14042         * tests/test-vasprintf-posix.c (test_function): Likewise.
14043         * tests/test-snprintf-posix.h (test_function): Likewise.
14044         * tests/test-sprintf-posix.h (test_function): Likewise.
14045         Needed for HP-UX 11.
14046
14047 2007-05-20  Jim Meyering  <jim@meyering.net>
14048
14049         Fix buggy test for the fchownat-deref bug.
14050         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
14051         symlink required for the run-test.  Without it, this test would
14052         always declare that fchownat doesn't work, and client code would
14053         unnecessarily use the replacement function with fixed libc.
14054         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
14055         Reported by Greg Schafer.
14056
14057 2007-05-19  Bruno Haible  <bruno@clisp.org>
14058
14059         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
14060         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
14061         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
14062         Needed for IRIX 6.5 and Solaris 2.5.1.
14063
14064 2007-05-19  Bruno Haible  <bruno@clisp.org>
14065
14066         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
14067         (test_function): Skip tests involving -0.0 on platforms where
14068         -0.0 = 0.0.
14069         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
14070         (test_function): Skip tests involving -0.0 on platforms where
14071         -0.0 = 0.0.
14072         * tests/test-snprintf-posix.h (have_minus_zero): New function.
14073         (test_function): Skip tests involving -0.0 on platforms where
14074         -0.0 = 0.0.
14075         * tests/test-sprintf-posix.h (have_minus_zero): New function.
14076         (test_function): Skip tests involving -0.0 on platforms where
14077         -0.0 = 0.0.
14078         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
14079         tests.
14080         * tests/test-printf-posix.h (test_function): Likewise.
14081         * tests/test-printf-posix.output: Remove all -0.0 related results.
14082         Needed for IRIX 6.5.
14083
14084 2007-05-19  Bruno Haible  <bruno@clisp.org>
14085
14086         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14087         printed as "nan0x7fffffff" instead of "nan".
14088         * tests/test-vasprintf-posix.c (test_function): Likewise.
14089         * tests/test-snprintf-posix.h (test_function): Likewise.
14090         * tests/test-sprintf-posix.h (test_function): Likewise.
14091         * tests/test-fprintf-posix.h (NaN): Remove macro.
14092         (test_function): Remove all NaN related tests.
14093         * tests/test-printf-posix.h (NaN): Remove macro.
14094         (test_function): Remove all NaN related tests.
14095         * tests/test-printf-posix.output: Remove all NaN related results.
14096         Needed for IRIX 6.5.
14097
14098 2007-05-19  Bruno Haible  <bruno@clisp.org>
14099
14100         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
14101         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14102
14103 2007-05-19  Bruno Haible  <bruno@clisp.org>
14104
14105         * lib/float_.h: New file.
14106         * m4/float_h.m4: New file.
14107         * modules/float: New file.
14108         * modules/isnanl (Dependencies): Add float.
14109         * modules/isnanl-nolibm (Dependencies): Likewise.
14110         * modules/mathl (Dependencies): Likewise.
14111         * modules/printf-frexpl (Dependencies): Likewise.
14112         * modules/signbit (Dependencies): Likewise.
14113         * modules/vasnprintf (Dependencies): Likewise.
14114         * doc/headers/float.texi: Update.
14115
14116 2007-05-19  Jim Meyering  <jim@meyering.net>
14117
14118         * lib/utimens.c (gl_futimens): Rename from futimens,
14119         now that glibc-2.6 declares futimens.
14120         * lib/utimens.h: Likewise.
14121
14122 2007-05-19  Bruno Haible  <bruno@clisp.org>
14123
14124         Avoid test failures on mingw.
14125         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
14126         * tests/test-printf-posix.sh: Likewise.
14127         * tests/test-vfprintf-posix.sh: Likewise.
14128         * tests/test-vprintf-posix.sh: Likewise.
14129
14130 2007-05-19  Bruno Haible  <bruno@clisp.org>
14131
14132         Fix *printf result for NaN, Inf, -0.0 on mingw.
14133         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
14134         * lib/vasnprintf.c: Include math.h and isnan.h.
14135         (is_infinite_or_zero): New function.
14136         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
14137         values in the %f, %F, %e, %E, %g, %G directives.
14138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
14139         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14140         gl_PRINTF_INFINITE and test its result. Invoke
14141         gl_PREREQ_VASNPRINTF_INFINITE.
14142         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14143         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14144         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14145         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14146         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14147         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14148         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14149         * doc/functions/fprintf.texi: Update.
14150         * doc/functions/printf.texi: Update.
14151         * doc/functions/snprintf.texi: Update.
14152         * doc/functions/sprintf.texi: Update.
14153         * doc/functions/vfprintf.texi: Update.
14154         * doc/functions/vprintf.texi: Update.
14155         * doc/functions/vsnprintf.texi: Update.
14156         * doc/functions/vsprintf.texi: Update.
14157
14158 2007-05-19  Bruno Haible  <bruno@clisp.org>
14159
14160         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
14161         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
14162         Instead of multiplying with 10^k, set extra_zeroes to k.
14163         (scale10_round_long_double): Remove function.
14164
14165 2007-05-18  Bruno Haible  <bruno@clisp.org>
14166
14167         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
14168         introduced on 2007-05-06.
14169
14170 2007-05-18  Bruno Haible  <bruno@clisp.org>
14171
14172         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
14173         %g directives.
14174         * tests/test-vasprintf-posix.c (test_function): Likewise.
14175         * tests/test-snprintf-posix.h (test_function): Likewise.
14176         * tests/test-sprintf-posix.h (test_function): Likewise.
14177
14178 2007-05-18  Bruno Haible  <bruno@clisp.org>
14179
14180         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
14181         (strmatch): New function.
14182         (test_function): Test the %f directive on numbers of various exponents.
14183         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
14184         (strmatch): New function.
14185         (test_function): Test the %f directive on numbers of various exponents.
14186         * tests/test-snprintf-posix.h (strmatch): New function.
14187         (test_function): Test the %f directive on numbers of various exponents.
14188         * tests/test-sprintf-posix.h (strmatch): New function.
14189         (test_function): Test the %f directive on numbers of various exponents.
14190         * tests/test-snprintf-posix.c (SIZEOF): New macro.
14191         * tests/test-sprintf-posix.c (SIZEOF): New macro.
14192         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
14193         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
14194
14195 2007-05-18  Bruno Haible  <bruno@clisp.org>
14196
14197         Add support for 'long double' number output.
14198         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
14199         * lib/vasnprintf.c: Include math.h and float+.h.
14200         (mp_limb_t): New type.
14201         (GMP_LIMB_BITS): New macro.
14202         (mp_twolimb_t): New type.
14203         (GMP_TWOLIMB_BITS): New macro.
14204         (mpn_t): New type.
14205         (multiply, divide, convert_to_decimal, decode_long_double,
14206         scale10_round_long_double, scale10_round_decimal_long_double,
14207         floorlog10l): New functions.
14208         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
14209         for the %f, %F, %e, %E, %g, %G directives.
14210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
14211         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14212         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
14213         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
14214         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14215         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14216         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14217         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14218         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14219         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14220         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14221         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
14222         * modules/snprintf-posix (Depends-on): Likewise.
14223         * modules/sprintf-posix (Depends-on): Likewise.
14224         * modules/vasnprintf-posix (Depends-on): Likewise.
14225         * modules/vasprintf-posix (Depends-on): Likewise.
14226         * modules/vfprintf-posix (Depends-on): Likewise.
14227         * modules/vsnprintf-posix (Depends-on): Likewise.
14228         * modules/vsprintf-posix (Depends-on): Likewise.
14229         * modules/vasnprintf (Files): Add lib/float+.h.
14230         * doc/functions/fprintf.texi: Update.
14231         * doc/functions/printf.texi: Update.
14232         * doc/functions/snprintf.texi: Update.
14233         * doc/functions/sprintf.texi: Update.
14234         * doc/functions/vfprintf.texi: Update.
14235         * doc/functions/vprintf.texi: Update.
14236         * doc/functions/vsnprintf.texi: Update.
14237         * doc/functions/vsprintf.texi: Update.
14238
14239 2007-05-18  Bruno Haible  <bruno@clisp.org>
14240
14241         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
14242
14243 2007-05-18  Bruno Haible  <bruno@clisp.org>
14244
14245         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
14246         for printing 64-bit integers. Needed for mingw.
14247
14248 2007-05-18  Bruno Haible  <bruno@clisp.org>
14249
14250         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14251         gl_FUNC_FREXPL_WORKS.
14252         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
14253
14254 2007-05-18  Bruno Haible  <bruno@clisp.org>
14255
14256         * modules/frexpl-nolibm-tests: New file.
14257
14258         * modules/frexpl-nolibm: New file.
14259         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
14260
14261 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14262
14263         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
14264         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
14265         GCC 4.2, which otherwise issues a lot of warnings.
14266         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
14267         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
14268         Likewise.
14269         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
14270         * modules/iconv_open (iconv.h): Likewise.
14271         * modules/locale (locale.h): Likewise.
14272         * modules/netinet_in (netinet/in.h): Likewise.
14273         * modules/sys_select (sys_select.h): Likewise.
14274         * modules/sys_socket (sys/socket.h): Likewise.
14275         * modules/sys_stat (sys/stat.h): Likewise.
14276         * modules/sysexits (sysexits.h): Likewise.
14277         * modules/unistd (unistd.h): Likewise.
14278
14279 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14280
14281         * modules/closein-tests (Makefile.am): Distribute
14282         `test-closein.sh'.
14283
14284 2007-05-17  Bruno Haible  <bruno@clisp.org>
14285
14286         * tests/test-printf-posix.output: Renamed from
14287         tests/test-fprintf-posix.out.
14288         * modules/fprintf-posix-tests: Update.
14289         * modules/printf-posix-tests: Update.
14290         * modules/vfprintf-posix-tests: Update.
14291         * modules/vprintf-posix-tests: Update.
14292         * tests/test-fprintf-posix.sh: Update.
14293         * tests/test-printf-posix.sh: Update.
14294         * tests/test-vfprintf-posix.sh: Update.
14295         * tests/test-vprintf-posix.sh: Update.
14296         Reported by Ralf Wildenhues.
14297
14298 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14299
14300         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
14301         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
14302         GCC 4.2, which otherwise issues a lot of warnings.
14303         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
14304         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
14305         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
14306         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
14307         it should no longer be needed.
14308         * lib/string_.h: Likewise.
14309         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
14310         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
14311         * modules/inttypes (inttypes.h): Likewise.
14312         * modules/math (math.h): Likewise.
14313         * modules/search (search.h): Likewise.
14314         * modules/signal (signal.h): Likewise.
14315         * modules/stdint (stdint.h): Likewise.
14316         * modules/stdio (stdio.h): Likewise.
14317         * modules/stdlib (stdlib.h): Likewise.
14318         * modules/string (string.h): Likewise.
14319         * modules/sys_time (sys/time.h): Likewise.
14320         * modules/time (time.h): Likewise.
14321         * modules/wchar (wchar.h): Likewise.
14322         * modules/wctype (wtype.h): Likewise.
14323
14324 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14325
14326         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
14327
14328 2007-05-13  Bruno Haible  <bruno@clisp.org>
14329
14330         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
14331         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14332         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
14333         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14334         (gl_PREREQ_STRTOK_R): Don't require it here.
14335
14336 2007-05-13  Bruno Haible  <bruno@clisp.org>
14337
14338         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
14339         when used in C++ mode.
14340
14341 2007-05-12  Bruno Haible  <bruno@clisp.org>
14342
14343         * lib/linebuffer.h: Tweak doc.
14344         * lib/linebuffer.c: Likewise.
14345
14346 2007-05-12  James Youngman  <jay@gnu.org>
14347
14348         * lib/linebuffer.c (readlinebuffer_delim): New function,
14349         like readlinebuffer, but use a caller-specified delimiter.
14350         (readlinebuffer): Just call readlinebuffer_delim with '\n'
14351         as the delimiter.
14352         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
14353
14354 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14355
14356         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
14357         * modules/openat (Files): Remove openat-die.c.
14358         (Depends-on): Add openat-die.
14359         * modules/openat-die: New module.
14360
14361 2007-05-06  Bruno Haible  <bruno@clisp.org>
14362
14363         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
14364         Update with info about Cygwin.
14365         * doc/functions/fprintf.texi: Update.
14366         * doc/functions/printf.texi: Update.
14367         * doc/functions/snprintf.texi: Update.
14368         * doc/functions/sprintf.texi: Update.
14369         * doc/functions/vfprintf.texi: Update.
14370         * doc/functions/vprintf.texi: Update.
14371         * doc/functions/vsnprintf.texi: Update.
14372         * doc/functions/vsprintf.texi: Update.
14373         Reported by Eric Blake.
14374
14375 2007-05-06  Bruno Haible  <bruno@clisp.org>
14376
14377         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
14378         padding ourselves for the floating-point directives.
14379         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
14380         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
14381         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14382         gl_PRINTF_FLAG_ZERO and test its result. Invoke
14383         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
14384         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14385         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14388         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14390         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14391         * tests/test-snprintf-posix.h (test_function): Also check the width
14392         and some flags in the %f directive.
14393         * tests/test-sprintf-posix.h (test_function): Likewise.
14394         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14395         * tests/test-vasprintf-posix.c (test_function): Likewise.
14396         * doc/functions/fprintf.texi: Update.
14397         * doc/functions/printf.texi: Update.
14398         * doc/functions/snprintf.texi: Update.
14399         * doc/functions/sprintf.texi: Update.
14400         * doc/functions/vfprintf.texi: Update.
14401         * doc/functions/vprintf.texi: Update.
14402         * doc/functions/vsnprintf.texi: Update.
14403         * doc/functions/vsprintf.texi: Update.
14404
14405 2007-05-06  Bruno Haible  <bruno@clisp.org>
14406
14407         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
14408         pass the ' flag character to sprintf or snprintf.
14409         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
14410         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
14411         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14412         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
14413         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
14414         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14415         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14416         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14417         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14418         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14419         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14420         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14421         * tests/test-snprintf-posix.h (test_function): Also check the grouping
14422         flag.
14423         * tests/test-sprintf-posix.h (test_function): Likewise.
14424         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14425         * tests/test-vasprintf-posix.c (test_function): Likewise.
14426         * doc/functions/fprintf.texi: Update.
14427         * doc/functions/printf.texi: Update.
14428         * doc/functions/snprintf.texi: Update.
14429         * doc/functions/sprintf.texi: Update.
14430         * doc/functions/vfprintf.texi: Update.
14431         * doc/functions/vprintf.texi: Update.
14432         * doc/functions/vsnprintf.texi: Update.
14433         * doc/functions/vsprintf.texi: Update.
14434
14435 2007-05-01  Bruno Haible  <bruno@clisp.org>
14436
14437         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
14438
14439 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14440
14441         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
14442         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
14443
14444 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
14445
14446         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
14447         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
14448         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
14449
14450 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
14451
14452         * lib/argp-help.c (struct hol_entry): New member `ord'.
14453         (HOL_ENTRY_PTRCMP): Use ord for comparison
14454         (hol_sort): Initialize ord.
14455
14456 2007-05-01  Bruno Haible  <bruno@clisp.org>
14457
14458         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
14459         Reported by Eric Blake.
14460         * doc/gnulib.texi (Function Substitutes): Update.
14461
14462 2007-05-01  Bruno Haible  <bruno@clisp.org>
14463
14464         * doc/functions.texi: Remove file, now redundant through
14465         doc/functions/*.texi.
14466
14467 2007-05-01  Bruno Haible  <bruno@clisp.org>
14468
14469         * modules/argp (Depends-on): Add sleep.
14470
14471 2007-05-01  Bruno Haible  <bruno@clisp.org>
14472
14473         * modules/sleep-tests: New file.
14474         * tests/test-sleep.c: New file.
14475
14476         * modules/sleep: New file.
14477         * lib/sleep.c: New file.
14478         * m4/sleep.m4: New file.
14479         * lib/unistd_.h (sleep): New declaration.
14480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
14481         HAVE_SLEEP.
14482         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
14483         * doc/functions/sleep.texi: Document the sleep module.
14484
14485 2007-05-01  Bruno Haible  <bruno@clisp.org>
14486
14487         * lib/sigprocmask.h: Remove file.
14488         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
14489         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
14490         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
14491         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
14492         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14493         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
14494         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
14495         HAVE_SIGSET_T as a shell variable.
14496         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
14497         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
14498         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
14499         (Depends-on): Add signal. Remove verify.
14500         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
14501         (Include): Mention <signal.h> instead of sigprocmask.h.
14502         * NEWS: Mention the change.
14503         * lib/fatal-signal.c: Don't include sigprocmask.h.
14504
14505 2007-05-01  Bruno Haible  <bruno@clisp.org>
14506
14507         * modules/signal: New file.
14508         * lib/signal_.h: New file.
14509         * m4/signal_h.m4: New file.
14510
14511 2007-05-01  Bruno Haible  <bruno@clisp.org>
14512
14513         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
14514         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
14515         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
14516         HAVE_WCTYPE_CTMP_BUG into wctype.h.
14517
14518 2007-05-01  Bruno Haible  <bruno@clisp.org>
14519
14520         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
14521         configure time.
14522         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
14523         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
14524         * modules/sys_stat (Makefile.am): Substitute their values into
14525         sys/stat.h.
14526
14527 2007-05-01  Bruno Haible  <bruno@clisp.org>
14528
14529         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
14530         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
14531         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
14532
14533 2007-05-01  Bruno Haible  <bruno@clisp.org>
14534
14535         * doc/header/assert.texi: Undo last change: don't mention the gnulib
14536         'assert' module here.
14537
14538 2007-05-01  Bruno Haible  <bruno@clisp.org>
14539
14540         * doc/functions/*.texi: New files.
14541         * doc/functions/google-ranking.txt: New file.
14542         * doc/gnulib.texi (Function Substitutes): New chapter.
14543         (ctime, inet_ntoa): Remove sections.
14544         * doc/ctime.texi: Remove file.
14545         * doc/inet_ntoa.texi: Remove file.
14546         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
14547         dependencies.
14548         (%.info): New rule, specifying a --reference-limit.
14549
14550 2007-05-01  Bruno Haible  <bruno@clisp.org>
14551
14552         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
14553
14554 2007-05-01  Bruno Haible  <bruno@clisp.org>
14555
14556         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
14557         the portability of 'mkdir' to mingw systems.
14558
14559 2007-05-01  Bruno Haible  <bruno@clisp.org>
14560
14561         * doc/headers/google-ranking.txt: New file.
14562
14563 2007-04-30  Eric Blake  <ebb9@byu.net>
14564
14565         Prefer fseeko to fseek.
14566         * modules/getpass (Depends-on): Add fseeko.
14567         * lib/getpass.c (getpass): Use fseeko, not fseek.
14568
14569 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
14570
14571         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
14572         assumes the sorting is stable, while most qsort implementations
14573         are not.  Use argument addresses to ensure they never compare as
14574         equal.
14575
14576         * tests/test-argp-2.sh (usage-indent test): Fix output
14577         (func_compare): Restore diff options
14578         * tests/test-argp.c: Restore #include "progname.h"
14579
14580 2007-04-29  Bruno Haible  <bruno@clisp.org>
14581
14582         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
14583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14584         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
14585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14586         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
14587         (configure.ac): Define CHECK_SNPRINTF_POSIX.
14588         (TESTS, check_PROGRAMS): Add test-snprintf.
14589         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
14590         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
14591         (TESTS, check_PROGRAMS): Add test-vsnprintf.
14592         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
14593         assertions that fail on HP-UX, OSF/1, or IRIX.
14594         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
14595
14596 2007-04-29  Bruno Haible  <bruno@clisp.org>
14597
14598         * MODULES.html.sh (posix_functions): Remove 'contents'.
14599
14600 2007-04-29  Karl Berry  <karl@gnu.org>
14601
14602         * config/srclist.txt (gendocs_template_min): new entry.
14603
14604 2007-04-29  Bruno Haible  <bruno@clisp.org>
14605
14606         Work around fpurge bug on BSD systems.
14607         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
14608         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
14609         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
14610         fpurge to rpl_fpurge if the system already has this function.
14611         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
14612         the case where the system already has this function. Correct invariants
14613         on BSD systems.
14614         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
14615         BSD systems.
14616
14617 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
14618
14619         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
14620         proposed by Sven Verdoolaege.
14621
14622         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
14623         options.
14624         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
14625         (usage and help tests): Update
14626
14627 2007-04-29  Bruno Haible  <bruno@clisp.org>
14628
14629         * tests/test-fflush.c (main): Use a file of size 17, not 10.
14630         Print more information in case of failure. Disable a test on BeOS.
14631
14632 2007-04-29  Bruno Haible  <bruno@clisp.org>
14633
14634         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
14635         This helps debugging on systems on which no gdb is available.
14636
14637 2007-04-29  Bruno Haible  <bruno@clisp.org>
14638
14639         * lib/freading.h: Improve comments.
14640         * lib/fwriting.h: Likewise.
14641         * tests/test-freading.c (main): Don't check freading immediately after
14642         repositioning. Needed for glibc.
14643
14644 2007-04-29  Bruno Haible  <bruno@clisp.org>
14645
14646         * lib/freading.c (freading): Trivial simplification.
14647
14648 2007-04-28  Bruno Haible  <bruno@clisp.org>
14649
14650         * tests/test-fwriting.c (main): Also test the interaction between
14651         fflush and fwriting.
14652         * modules/fwriting-tests (Depends-on): Add fflush.
14653
14654         * tests/test-freading.c (main): Also test the interaction between
14655         fflush and freading.
14656         * modules/freading-tests (Depends-on): Add fflush.
14657
14658 2007-04-28  Bruno Haible  <bruno@clisp.org>
14659
14660         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
14661         fseeko and ftello.
14662         Suggested by Eric Blake.
14663
14664 2007-04-28  Jim Meyering  <jim@meyering.net>
14665
14666         Avoid false-negative in gl_STDINT_H's C99 conformance test.
14667         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
14668         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
14669
14670 2007-04-27  Eric Blake  <ebb9@byu.net>
14671
14672         * doc/headers/assert.texi (assert.h): Document assert module use.
14673
14674 2007-04-27  Bruno Haible  <bruno@clisp.org>
14675
14676         * doc/headers/*.texi: New files.
14677         * doc/gnulib.texi (Header File Substitutes): New chapter.
14678         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
14679         dependencies.
14680         (standards.info ,standards.html, standards.dvi): Update dependencies.
14681         (mostlyclean, clean): New targets.
14682
14683 2007-04-27  Bruno Haible  <bruno@clisp.org>
14684
14685         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
14686         * modules/sysexits (Files, Makefile.am): Update.
14687
14688         * lib/sys_socket_.h: Renamed from lib/socket_.h.
14689         * modules/sys_socket (Files, Makefile.am): Update.
14690
14691         * lib/sys_stat_.h: Renamed from lib/stat_.h.
14692         * modules/sys_stat (Files, Makefile.am): Update.
14693
14694 2007-04-27  Eric Blake  <ebb9@byu.net>
14695
14696         * lib/freading.h: Improve comments.
14697         * lib/fwriting.h: Likewise.
14698         * lib/fflush.c: Likewise.
14699
14700         Fix closein for mingw.
14701         * modules/closein-tests: Add tests for closein.
14702         * tests/test-closein.c: New file.
14703         * tests/test-closein.sh: Likewise.
14704         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
14705         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
14706
14707 2007-04-27  Bruno Haible  <bruno@clisp.org>
14708
14709         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
14710         version is < 6.
14711         * lib/math_.h [__DECC]: Likewise.
14712         * lib/stdio_.h [__DECC]: Likewise.
14713         * lib/stdlib_.h [__DECC]: Likewise.
14714         * lib/string_.h [__DECC]: Likewise.
14715         * lib/time_.h [__DECC]: Likewise.
14716         * lib/wchar_.h [__DECC]: Likewise.
14717         * lib/wctype_.h [__DECC]: Likewise.
14718
14719 2007-04-27  Bruno Haible  <bruno@clisp.org>
14720
14721         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
14722
14723 2007-04-27  Bruno Haible  <bruno@clisp.org>
14724
14725         * lib/fflush.c: Add comments.
14726         * modules/fpurge-tests (Depends-on): Add fflush.
14727         * modules/freadable-tests (Depends-on): Likewise.
14728         * modules/fwritable-tests (Depends-on): Likewise.
14729
14730 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
14731
14732         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
14733         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
14734         Report by Bruno Haible <bruno@clisp.org>.
14735
14736 2007-04-26  Eric Blake  <ebb9@byu.net>
14737
14738         Fix fflush on mingw.
14739         * modules/fflush (Depends-on): Add freading.
14740         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
14741         but unread data.
14742
14743 2007-04-26  Eric Blake  <ebb9@byu.net>
14744         and Bruno Haible  <bruno@clisp.org>
14745
14746         Implement freading and fwriting.
14747         * lib/freading.c: New file.
14748         * lib/freading.h: Likewise.
14749         * m4/freading.m4: Likewise.
14750         * modules/freading: Likewise.
14751         * modules/freading-tests: Likewise.
14752         * tests/test-freading.c: Likewise.
14753         * lib/fwriting.c: New file.
14754         * lib/fwriting.h: Likewise.
14755         * m4/fwriting.m4: Likewise.
14756         * modules/fwriting: Likewise.
14757         * modules/fwriting-tests: Likewise.
14758         * tests/test-fwriting.c: Likewise.
14759         * MODULES.html.sh (File stream based Input/Output): Mention them.
14760
14761 2007-04-26  Bruno Haible  <bruno@clisp.org>
14762
14763         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
14764         'long' when we assume it.
14765         Suggested by Eric Blake.
14766
14767 2007-04-26  Bruno Haible  <bruno@clisp.org>
14768
14769         Ensure fseeko, ftello are declared on glibc systems.
14770         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
14771         * modules/fseeko (configure.ac-early): Likewise.
14772         * modules/ftello (configure.ac-early): Likewise.
14773         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
14774         AC_FUNC_FSEEKO for this.
14775         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
14776         (gl_CHECK_FSEEKO): Remove macro.
14777
14778 2007-04-26  Bruno Haible  <bruno@clisp.org>
14779
14780         * tests/test-fflush.c (main): Also check the ftell result after
14781         fflush and fseek/fseeko.
14782         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
14783         file descriptor position cache in the stream.
14784         * lib/fseeko.c (rpl_fseeko): Likewise.
14785
14786 2007-04-26  Bruno Haible  <bruno@clisp.org>
14787
14788         * modules/fflush-tests (Depends-on): Add fseeko.
14789
14790 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
14791             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14792
14793         * lib/argz_.h: ensure error_t definition is obtained in same
14794         mechanism system argz.h would have.
14795         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
14796         argz facilities are known bad.  Err on the side of caution if
14797         cross-compiling.
14798
14799 2007-04-25  Eric Blake  <ebb9@byu.net>
14800
14801         * lib/fpurge.c (includes): Use stdlib.h for free.
14802         * tests/test-fflush.c (main): Also test fflush-fseeko.
14803
14804 2007-04-25  Bruno Haible  <bruno@clisp.org>
14805
14806         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
14807         * lib/fseeko.c: New file.
14808         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
14809         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
14810         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
14811         gl_FUNC_FSEEKO.
14812         (gl_FUNC_FSEEKO): Invoke it.
14813         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
14814         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
14815         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
14816
14817 2007-04-25  Bruno Haible  <bruno@clisp.org>
14818
14819         * modules/fflush (Depends-on): Add ftello.
14820
14821 2007-04-25  Bruno Haible  <bruno@clisp.org>
14822
14823         * modules/ftello-tests: New file.
14824         * tests/test-ftello.c: New file.
14825
14826         * modules/ftello: New file.
14827         * m4/ftello.m4: New file.
14828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
14829         HAVE_FTELLO.
14830         * lib/stdio_.h (ftello): New declaration.
14831         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
14832         HAVE_FTELLO.
14833
14834 2007-04-25  Bruno Haible  <bruno@clisp.org>
14835
14836         * modules/fseeko-tests: New file.
14837         * tests/test-fseeko.c: New file.
14838
14839         * modules/fseeko: New file.
14840         * m4/fseeko.m4: New file.
14841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
14842         HAVE_FSEEKO.
14843         * lib/stdio_.h (fseeko): New declaration.
14844         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
14845         HAVE_FSEEKO.
14846
14847 2007-04-25  Bruno Haible  <bruno@clisp.org>
14848
14849         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
14850
14851 2007-04-25  Bruno Haible  <bruno@clisp.org>
14852
14853         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
14854         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
14855         * tests/test-unistd.c: Likewise.
14856         * tests/test-fcntl.c: Likewise.
14857
14858 2007-04-23  Eric Blake  <ebb9@byu.net>
14859
14860         * lib/fflush.c: Fix missing include.
14861         Reported by Bruno Haible.
14862
14863 2007-04-23  Bruno Haible  <bruno@clisp.org>
14864
14865         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
14866         Reported by Eric Blake.
14867
14868 2007-04-23  Bruno Haible  <bruno@clisp.org>
14869
14870         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
14871
14872 2007-04-23  Bruno Haible  <bruno@clisp.org>
14873
14874         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
14875
14876 2007-04-23  Bruno Haible  <bruno@clisp.org>
14877
14878         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
14879         Needed on HP-UX 11.
14880
14881 2007-04-16  Eric Blake  <ebb9@byu.net>
14882
14883         Make fflush rely on fpurge.
14884         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
14885         open coding all variants.
14886         * modules/fflush (Depends-on): Add fpurge and unistd.
14887         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
14888         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
14889
14890         Fix --with-tests compilation on cygwin.
14891         * modules/argmatch-tests (Makefile.am): List gnulib library first
14892         in LDADD.
14893         * modules/argp-tests (Makefile.am): Likewise.
14894         * modules/array-list-tests (Makefile.am): Likewise.
14895         * modules/array-oset-tests (Makefile.am): Likewise.
14896         * modules/avltree-list-tests (Makefile.am): Likewise.
14897         * modules/avltree-oset-tests (Makefile.am): Likewise.
14898         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14899         * modules/carray-list-tests (Makefile.am): Likewise.
14900         * modules/dirname-tests (Makefile.am): Likewise.
14901         * modules/frexp-tests (Makefile.am): Likewise.
14902         * modules/isnanl-tests (Makefile.am): Likewise.
14903         * modules/linked-list-tests (Makefile.am): Likewise.
14904         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14905         * modules/lock-tests (Makefile.am): Likewise.
14906         * modules/rbtree-list-tests (Makefile.am): Likewise.
14907         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14908         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14909         * modules/tls-tests (Makefile.am): Likewise.
14910         * modules/tsearch-tests (Makefile.am): Likewise.
14911         * modules/xvasprintf-tests (Makefile.am): Likewise.
14912
14913         Fix fpurge for cygwin.
14914         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
14915         value.
14916         * modules/fpurge-tests (Depends-on): Clean up trash.
14917
14918 2007-04-16  Simon Josefsson  <simon@josefsson.org>
14919
14920         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
14921
14922         * m4/autobuild.m4: Re-indent.
14923
14924 2007-04-13  Bruno Haible  <bruno@clisp.org>
14925
14926         * modules/fpurge-tests: New file.
14927         * tests/test-fpurge.c: New file.
14928
14929         * modules/fpurge: New file.
14930         * lib/fpurge.h: New file.
14931         * lib/fpurge.c: New file.
14932         * m4/fpurge.m4: New file.
14933
14934 2007-04-13  Bruno Haible  <bruno@clisp.org>
14935
14936         * modules/fbufmode-tests: New file.
14937         * tests/test-fbufmode.c: New file.
14938
14939         * modules/fbufmode: New file.
14940         * lib/fbufmode.h: New file.
14941         * lib/fbufmode.c: New file.
14942         * m4/fbufmode.m4: New file.
14943
14944 2007-04-13  Bruno Haible  <bruno@clisp.org>
14945
14946         * modules/fwritable-tests: New file.
14947         * tests/test-fwritable.c: New file.
14948
14949         * modules/fwritable: New file.
14950         * lib/fwritable.h: New file.
14951         * lib/fwritable.c: New file.
14952         * m4/fwritable.m4: New file.
14953
14954 2007-04-13  Bruno Haible  <bruno@clisp.org>
14955
14956         * modules/freadable-tests: New file.
14957         * tests/test-freadable.c: New file.
14958
14959         * modules/freadable: New file.
14960         * lib/freadable.h: New file.
14961         * lib/freadable.c: New file.
14962         * m4/freadable.m4: New file.
14963
14964 2007-04-13  Bruno Haible  <bruno@clisp.org>
14965
14966         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
14967         MOSTLYCLEANFILES.
14968
14969 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
14970
14971         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
14972         gzip bootstrap.conf to avoid dragging in i18n machinery.
14973         (gnulib_tool_option): Use it.
14974
14975 2007-04-13  Bruno Haible  <bruno@clisp.org>
14976
14977         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
14978         %F directives.
14979         * tests/test-vasprintf-posix.c (test_function): Likewise.
14980         * tests/test-snprintf-posix.h (test_function): Likewise.
14981         * tests/test-sprintf-posix.h (test_function): Likewise.
14982         * tests/test-fprintf-posix.h (test_function): Likewise.
14983         * tests/test-printf-posix.h (test_function): Likewise.
14984         * tests/test-fprintf-posix.out: Likewise.
14985
14986 2007-04-13  Bruno Haible  <bruno@clisp.org>
14987
14988         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
14989         * modules/tls-tests (configure.ac): Likewise.
14990         Reported by Arto C. Nirkko <anirkko@insel.ch>.
14991
14992 2007-04-13  Bruno Haible  <bruno@clisp.org>
14993
14994         * lib/tls.c (glthread_tls_get): Fix return type.
14995         Patch by Arto C. Nirkko <anirkko@insel.ch>.
14996
14997 2007-04-12  Eric Blake  <ebb9@byu.net>
14998
14999         * modules/gettime (Depends-on): Remove gettime.
15000         Reported by Dmitry V. Levin.
15001
15002 2007-04-12  Bruno Haible  <bruno@clisp.org>
15003
15004         * modules/fflush (Include): Mention <stdio.h>.
15005         * modules/strtoimax (Include): Mention <inttypes.h>.
15006         * modules/strtoumax (Include): Likewise.
15007
15008 2007-04-12  Eric Blake  <ebb9@byu.net>
15009
15010         * .cvsignore: New file.
15011         * .gitignore: Likewise.
15012
15013 2007-04-12  Bruno Haible  <bruno@clisp.org>
15014
15015         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
15016         not before, since $(LDADD) often contains libgnu.a.
15017         * modules/striconv-tests (test_striconv_LDADD): Likewise.
15018         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
15019         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
15020         Needed on Cygwin.
15021
15022 2007-04-12  Eric Blake  <ebb9@byu.net>
15023
15024         Work around glibc's failure to flush stdin on fclose.
15025         * lib/closein.c (close_stdin): Flush stdin before closing.
15026
15027         Work around glibc's failure to reset seekable stdin on exit.
15028         * modules/closein: New module.
15029         * lib/closein.c: New file.
15030         * lib/closein.h: Likewise.
15031         * m4/closein.m4: Likewise.
15032         * MODULES.html.sh (File stream based Input/Output): Document it.
15033
15034 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15035
15036         * gnulib-tool: Rename generated 'autobuild' script to
15037         'do-autobuild' in --create-megatestdir output.
15038
15039         * doc/gnulib.texi (Build robot for gnulib): Fix.
15040
15041 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15042
15043         * modules/sysexits (Depends-on): Add absolute-header.
15044
15045 2007-04-12  Eric Blake  <ebb9@byu.net>
15046
15047         No need to preserve errno on success.
15048         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
15049         Reported by Bruno Haible.
15050
15051 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15052
15053         * MODULES.html.sh (Support for maintaining and releasing
15054         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
15055
15056 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15057
15058         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
15059
15060 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15061
15062         * modules/autobuild: New module.
15063
15064         * m4/autobuild.m4: New file.
15065
15066 2007-04-11  Bruno Haible  <bruno@clisp.org>
15067
15068         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
15069         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
15070         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
15071         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
15072         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15073         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15074         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15075         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15076         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15077         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15078         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
15079         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15080         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15081         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
15082         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15083         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15084         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
15085         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15086         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15087         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
15088         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15089         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15090         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
15091         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15092         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15093         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
15094         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15095         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15096         Reported by Eric Blake.
15097
15098 2007-04-11  Bruno Haible  <bruno@clisp.org>
15099
15100         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
15101
15102 2007-04-10  Bruno Haible  <bruno@clisp.org>
15103
15104         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
15105         for NaN and Infinity. Needed on FreeBSD 6.1.
15106         * tests/test-vasnprintf-posix.c (test_function): Undo last change
15107         regarding results for "%010a" of Infinity and NaN.
15108         * tests/test-vasprintf-posix.c (test_function): Likewise.
15109         * tests/test-snprintf-posix.h (test_function): Likewise.
15110         * tests/test-sprintf-posix.h (test_function): Likewise.
15111         * tests/test-fprintf-posix.h (test_function): Likewise.
15112         * tests/test-printf-posix.h (test_function): Likewise.
15113         * tests/test-fprintf-posix.out: Likewise.
15114
15115 2007-04-10  Bruno Haible  <bruno@clisp.org>
15116
15117         * modules/locale-tests: New file.
15118         * tests/test-locale.c: New file.
15119
15120         * modules/locale: New file.
15121         * lib/locale_.h: New file.
15122         * m4/locale_h.m4: New file.
15123
15124 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
15125             Bruno Haible  <bruno@clisp.org>
15126
15127         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
15128         be determined, test for availability of the copysignf, copysign,
15129         copysignl functions.
15130         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
15131         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
15132         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
15133
15134 2007-04-09  Eric Blake  <ebb9@byu.net>
15135
15136         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
15137         * modules/stdio (Makefile.am): Support fflush.
15138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15139         * modules/fflush: New file.
15140         * lib/fflush.c: Likewise.
15141         * m4/fflush.m4: Likewise.
15142         * modules/fflush-tests: New test.
15143         * tests/test-fflush.c: Likewise.
15144         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
15145
15146 2007-04-06  Bruno Haible  <bruno@clisp.org>
15147
15148         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
15149         (VASNPRINTF): Use signbit for faster determination whether to print a
15150         minus sign.
15151         * modules/vasnprintf (Files): Remove lib/float+.h.
15152         * modules/fprintf-posix (Depends-on): Add signbit.
15153         * modules/snprintf-posix (Depends-on): Likewise.
15154         * modules/sprintf-posix (Depends-on): Likewise.
15155         * modules/vasnprintf-posix (Depends-on): Likewise.
15156         * modules/vasprintf-posix (Depends-on): Likewise.
15157         * modules/vfprintf-posix (Depends-on): Likewise.
15158         * modules/vsnprintf-posix (Depends-on): Likewise.
15159         * modules/vsprintf-posix (Depends-on): Likewise.
15160
15161 2007-04-06  Bruno Haible  <bruno@clisp.org>
15162
15163         * tests/test-frexp.c (main): Test also the sign bit of zero results.
15164         * tests/test-frexpl.c (main): Likewise.
15165         * tests/test-ldexpl.c (main): Likewise.
15166         * modules/frexp-tests (Depends-on): Add signbit.
15167         * modules/frexpl-tests (Depdends-on): Likewise.
15168         * modules/ldexpl-tests (Depdends-on): Likewise.
15169
15170 2007-04-06  Bruno Haible  <bruno@clisp.org>
15171
15172         * modules/signbit-tests: New file.
15173         * tests/test-signbit.c: New file.
15174
15175         * modules/signbit: New file.
15176         * lib/signbitf.c: New file.
15177         * lib/signbitd.c: New file.
15178         * lib/signbitl.c: New file.
15179         * m4/signbit.m4: New file.
15180         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
15181         (signbit): New macro.
15182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
15183         REPLACE_SIGNBIT.
15184         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
15185         REPLACE_FREXPL into math.h.
15186
15187 2007-04-06  Bruno Haible  <bruno@clisp.org>
15188
15189         * modules/isnanf-nolibm-tests: New file.
15190         * tests/test-isnanf.c: New file.
15191
15192         * modules/isnanf-nolibm: New file.
15193         * lib/isnanf.h: New file.
15194         * lib/isnanf.c: New file.
15195         * lib/isnan.c: Consider the USE_FLOAT macro.
15196         * m4/isnanf.m4: New file.
15197
15198 2007-04-06  Bruno Haible  <bruno@clisp.org>
15199
15200         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
15201         (Link): New section.
15202
15203         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
15204
15205 2007-04-06  Bruno Haible  <bruno@clisp.org>
15206
15207         Assume the 'long double' type.
15208         * m4/longdouble.m4: Remove file.
15209         * config/srclist.txt: Don't mention longdouble.m4.
15210         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
15211         * lib/float+.h: Likewise.
15212         * lib/frexp.c: Likewise.
15213         * lib/printf-args.h: Likewise.
15214         * lib/printf-args.c: Likewise.
15215         * lib/printf-frexp.c: Likewise.
15216         * lib/printf-parse.c: Likewise.
15217         * lib/vasnprintf.c: Likewise.
15218         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
15219         * m4/intl.m4: Likewise.
15220         * m4/isnanl.m4: Likewise.
15221         * m4/printf.m4: Likewise.
15222         * m4/printf-frexpl.m4: Likewise.
15223         * m4/vasnprintf.m4: Likewise.
15224         * modules/allocsa (Files): Remove m4/longdouble.m4.
15225         * modules/gettext (Files): Likewise.
15226         * modules/relocatable-prog-wrapper (Files): Likewise.
15227         * modules/vasnprintf (Files): Likewise.
15228         * modules/isnanl (Files): Likewise.
15229         (Include): Simplify.
15230         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
15231         (Include): Simplify.
15232         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
15233         (Include): Simplify.
15234         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
15235         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15236         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
15237         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15238         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15239         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15240         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
15241         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15242         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15243         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15244         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
15245         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15246         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
15247         * tests/test-isnanl.c: Likewise.
15248         * tests/test-snprintf-posix.h: Likewise.
15249         * tests/test-sprintf-posix.h: Likewise.
15250         * tests/test-vasnprintf-posix.c: Likewise.
15251         * tests/test-vasnprintf-posix2.c: Likewise.
15252         * tests/test-vasprintf-posix.c: Likewise.
15253
15254 2007-04-06  Bruno Haible  <bruno@clisp.org>
15255
15256         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
15257         * lib/math_.h [__DECC]: Include the overridden include file through
15258         #include_next, outside the double-inclusion guard.
15259         * lib/stdio_.h [__DECC]: Likewise.
15260         * lib/stdlib_.h [__DECC]: Likewise.
15261         * lib/string_.h [__DECC]: Likewise.
15262         * lib/time_.h [__DECC]: Likewise.
15263         * lib/wchar_.h [__DECC]: Likewise.
15264         * lib/wctype_.h [__DECC]: Likewise.
15265         * lib/inttypes_.h [__DECC]: Likewise.
15266         Reported by Albert Chin <china@thewrittenword.com> in
15267         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
15268
15269 2007-04-04  Eric Blake  <ebb9@byu.net>
15270
15271         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
15272         1.5.x.
15273
15274 2007-04-04  Bruno Haible  <bruno@clisp.org>
15275
15276         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
15277         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
15278
15279 2007-04-04  Bruno Haible  <bruno@clisp.org>
15280
15281         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
15282         results for "%010a" of Infinity and NaN.
15283         * tests/test-vasprintf-posix.c (test_function): Likewise.
15284         * tests/test-snprintf-posix.h (test_function): Likewise.
15285         * tests/test-sprintf-posix.h (test_function): Likewise.
15286         * tests/test-fprintf-posix.h (test_function): Remove these tests.
15287         * tests/test-printf-posix.h (test_function): Likewise.
15288         * tests/test-fprintf-posix.out: Update.
15289         Needed for FreeBSD 6.1.
15290
15291 2007-04-04  Bruno Haible  <bruno@clisp.org>
15292
15293         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
15294         directly used by the gnulib modules nor by gnulib-tool.
15295
15296 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
15297
15298         * DEPENDENCIES: Give overall description of version dependency
15299         desirability.  Use more-typical names for apps.
15300         Add shell, coreutils, diffutils, grep, tar, gzip.
15301
15302 2007-04-04  Simon Josefsson  <simon@josefsson.org>
15303
15304         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
15305
15306 2007-04-04  Karl Berry  <karl@gnu.org>
15307
15308         * MODULES.html.sh (func_module): missing '.
15309
15310 2007-04-03  Bruno Haible  <bruno@clisp.org>
15311
15312         * modules/argmatch-tests (Makefile.am): New variable
15313         test_argmatch_LDADD.
15314         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
15315         * modules/array-list-tests (Makefile.am): New variable
15316         test_array_list_LDADD.
15317         * modules/array-oset-tests (Makefile.am): New variable
15318         test_array_oset_LDADD.
15319         * modules/avltree-list-tests (Makefile.am): New variable
15320         test_avltree_list_LDADD.
15321         * modules/avltree-oset-tests (Makefile.am): New variable
15322         test_avltree_oset_LDADD.
15323         * modules/avltreehash-list-tests (Makefile.am): New variable
15324         test_avltreehash_list_LDADD.
15325         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
15326         test_canonicalize_lgpl_LDADD.
15327         * modules/carray-list-tests (Makefile.am): New variable
15328         test_carray_list_LDADD.
15329         * modules/dirname-tests (Makefile.am): New variable
15330         test_dirname_LDADD.
15331         * modules/linked-list-tests (Makefile.am): New variable
15332         test_linked_list_LDADD.
15333         * modules/linkedhash-list-tests (Makefile.am): New variable
15334         test_linkedhash_list_LDADD.
15335         * modules/rbtree-list-tests (Makefile.am): New variable
15336         test_rbtree_list_LDADD.
15337         * modules/rbtree-oset-tests (Makefile.am): New variable
15338         test_rbtree_oset_LDADD.
15339         * modules/rbtreehash-list-tests (Makefile.am): New variable
15340         test_rbtreehash_list_LDADD.
15341         * modules/xvasprintf-tests (Makefile.am): New variable
15342         test_xvasprintf_LDADD.
15343         Reported by Eric Blake.
15344
15345 2007-04-03  Eric Blake  <ebb9@byu.net>
15346
15347         * DEPENDENCIES: Weaken m4 requirements.
15348
15349 2007-04-03  Bruno Haible  <bruno@clisp.org>
15350
15351         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
15352         * modules/isnanl-tests (configure.ac): Likewise.
15353
15354 2007-04-03  Ben Pfaff  <blp@gnu.org>
15355
15356         * modules/iconv_open: Add $(srcdir)/ to source directory
15357         references in Makefile fragments that call gperf, to fix VPATH
15358         builds.
15359
15360 2007-04-03  Bruno Haible  <bruno@clisp.org>
15361
15362         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
15363         * lib/ldexpl.c: Undo last change.
15364
15365 2007-04-03  Bruno Haible  <bruno@clisp.org>
15366
15367         * modules/printf-frexpl (Depends-on): Undo last change.
15368         (Files): Add m4/ldexpl.m4.
15369
15370 2007-04-03  Bruno Haible  <bruno@clisp.org>
15371
15372         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
15373         * modules/isnanl (Link): New section.
15374
15375         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
15376         * modules/frexp (Link): New section.
15377
15378         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
15379         * modules/frexpl (Link): New section.
15380
15381         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
15382         * modules/ldexpl (Link): New section.
15383
15384 2007-04-03  Bruno Haible  <bruno@clisp.org>
15385
15386         * modules/TEMPLATE-EXTENDED: New file.
15387         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
15388
15389 2007-04-03  Bruno Haible  <bruno@clisp.org>
15390
15391         * DEPENDENCIES: New file.
15392         Suggested by Simon Josefsson.
15393
15394 2007-04-03  Bruno Haible  <bruno@clisp.org>
15395
15396         * doc/gnulib.texi: Escape @.
15397
15398 2007-04-03  James Youngman  <jay@gnu.org>
15399         and Paul Eggert  <eggert@cs.ucla.edu>
15400
15401         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
15402         birthtime on all systems that have birthtime, not just those which
15403         use st_birthtimensec rather than st_birthtim.  Putting zero in
15404         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
15405         that the birth time is not available for files on an NFS mount.
15406
15407 2007-04-03  Simon Josefsson  <simon@josefsson.org>
15408
15409         * modules/memxor: Move back from crypto/, suggested by Bruno.
15410         * modules/crypto/hmac-sha1: Fix memxor dependency.
15411
15412         * modules/crypto/gc: Moved from ../.
15413
15414 2007-04-02  Eric Blake  <ebb9@byu.net>
15415
15416         * lib/ldexpl.c (includes): Avoid libm.
15417
15418         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
15419
15420 2007-04-02  Bruno Haible  <bruno@clisp.org>
15421
15422         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
15423         on IRIX.
15424
15425 2007-04-02  Bruno Haible  <bruno@clisp.org>
15426
15427         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
15428         x86 or x86_64 platforms running MacOS X.
15429         Reported by Ryan Schmidt <@ryandesign.com>.
15430
15431 2007-04-02  Bruno Haible  <bruno@clisp.org>
15432
15433         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
15434         i386.
15435
15436 2007-04-01  Simon Josefsson  <simon@josefsson.org>
15437
15438         * modules/crypto/arcfour: Moved from ../.
15439         * modules/crypto/arcfour-tests: Moved from ../.
15440         * modules/crypto/arctwo: Moved from ../.
15441         * modules/crypto/arctwo-tests: Moved from ../.
15442         * modules/crypto/des: Moved from ../.
15443         * modules/crypto/des-tests: Moved from ../.
15444         * modules/crypto/gc-arcfour: Moved from ../.
15445         * modules/crypto/gc-arcfour-tests: Moved from ../.
15446         * modules/crypto/gc-arctwo: Moved from ../.
15447         * modules/crypto/gc-arctwo-tests: Moved from ../.
15448         * modules/crypto/gc-des: Moved from ../.
15449         * modules/crypto/gc-des-tests: Moved from ../.
15450         * modules/crypto/gc-hmac-md5: Moved from ../.
15451         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
15452         * modules/crypto/gc-hmac-sha1: Moved from ../.
15453         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
15454         * modules/crypto/gc-md2: Moved from ../.
15455         * modules/crypto/gc-md2-tests: Moved from ../.
15456         * modules/crypto/gc-md4: Moved from ../.
15457         * modules/crypto/gc-md4-tests: Moved from ../.
15458         * modules/crypto/gc-md5: Moved from ../.
15459         * modules/crypto/gc-md5-tests: Moved from ../.
15460         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
15461         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
15462         * modules/crypto/gc-random: Moved from ../.
15463         * modules/crypto/gc-rijndael: Moved from ../.
15464         * modules/crypto/gc-rijndael-tests: Moved from ../.
15465         * modules/crypto/gc-sha1: Moved from ../.
15466         * modules/crypto/gc-sha1-tests: Moved from ../.
15467         * modules/crypto/gc-tests: Moved from ../.
15468         * modules/crypto/hmac-md5: Moved from ../.
15469         * modules/crypto/hmac-md5-tests: Moved from ../.
15470         * modules/crypto/hmac-sha1: Moved from ../.
15471         * modules/crypto/hmac-sha1-tests: Moved from ../.
15472         * modules/crypto/md2: Moved from ../.
15473         * modules/crypto/md2-tests: Moved from ../.
15474         * modules/crypto/md4: Moved from ../.
15475         * modules/crypto/md4-tests: Moved from ../.
15476         * modules/crypto/md5: Moved from ../.
15477         * modules/crypto/md5-tests: Moved from ../.
15478         * modules/crypto/memxor: Moved from ../.
15479         * modules/crypto/rijndael: Moved from ../.
15480         * modules/crypto/rijndael-tests: Moved from ../.
15481         * modules/crypto/sha1: Moved from ../.
15482
15483 2007-03-30  James Youngman  <jay@gnu.org>
15484
15485         * tests/test-stat-time.c (prepare_test): use chmod() rather than
15486         rename() to change the ctime of a file (because ctime is unaffected
15487         by rename on jfs2 on AIX 5.1).
15488         (main): Start by doing cleanup, in case a previous run failed leaving
15489         test files behind.
15490
15491 2007-03-31  Bruno Haible  <bruno@clisp.org>
15492
15493         Support old proprietary implementations of iconv.
15494         * modules/iconv_open: New file.
15495         * lib/iconv_.h: New file.
15496         * m4/iconv_h.m4: New file.
15497         * lib/iconv_open.c: New file.
15498         * lib/iconv_open-aix.gperf: New file.
15499         * lib/iconv_open-hpux.gperf: New file.
15500         * lib/iconv_open-irix.gperf: New file.
15501         * lib/iconv_open-osf.gperf: New file.
15502         * m4/iconv_open.m4: New file.
15503         * modules/linebreak (Depends-on): Add iconv_open.
15504         * modules/striconv (Depends-on): Likewise.
15505         * modules/striconveh (Depends-on): Likewise.
15506         * modules/unicodeio (Depends-on): Likewise.
15507         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
15508         (iconv_t)(-1).
15509         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
15510         conversion if cd is (iconv_t)(-1).
15511         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
15512         is not possible.
15513
15514 2007-03-31  Bruno Haible  <bruno@clisp.org>
15515
15516         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15517         work on Solaris either. Protect also second use of "autodetect_jp".
15518
15519 2007-03-31  Bruno Haible  <bruno@clisp.org>
15520
15521         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
15522         the function is not present.
15523
15524 2007-03-31  Bruno Haible  <bruno@clisp.org>
15525
15526         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
15527         the function is not present.
15528
15529 2007-03-31  Bruno Haible  <bruno@clisp.org>
15530
15531         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
15532         a bug in HP-UX iconv_open().
15533
15534 2007-03-31  Bruno Haible  <bruno@clisp.org>
15535
15536         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
15537         (Mathematics <math.h>): New section, add fpieee.
15538         (Input/output <stdio.h>): Add fseterr.
15539         (Mathematics <math.h>): New section, add printf-frexp.
15540         (Container data structures): Add sublist.
15541         (Core language properties): Add fpucw, inline.
15542         (Functions for greatest-width integer types <inttypes.h>): Add
15543         imaxabs, imaxdiv, inttypes.
15544         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
15545         isnanl-nolibm, ldexp.
15546         (Mathematics <math.h>): New section, add printf-frexpl.
15547         (Support for systems lacking POSIX:2001): Add fprintf-posix,
15548         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
15549         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
15550         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
15551         (Unicode string functions): Add unistr/u*-mbtoucr.
15552         (Java): Add javacomp-script, javaexec-script.
15553         (C#): Add csharpcomp-script, csharpexec-script.
15554         (Support for building libraries and executables): Add havelib,
15555         relocatable-*.
15556         (Support for maintaining and releasing projects): Renamed from
15557         'Support for maintaining and release projects'. Add announce-gen.
15558
15559 2007-03-31  Bruno Haible  <bruno@clisp.org>
15560
15561         * README: Talk primarily about git.
15562         (git and CVS): Renamed from CVS.
15563         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
15564         gnulib is available through git.
15565         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
15566
15567 2007-03-30  Bruno Haible  <bruno@clisp.org>
15568
15569         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
15570         * lib/poll_.h: Likewise.
15571         * lib/stat_.h: Likewise.
15572         * lib/sys_time_.h: Likewise.
15573         * lib/sysexit_.h: Likewise.
15574         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
15575         * lib/stdbool_.h: Likewise.
15576         * lib/byteswap_.h: Add double-inclusion guard.
15577
15578 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
15579
15580         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
15581
15582 2007-03-30  Karl Berry  <karl@gnu.org>
15583
15584         * config/srclist-update: double space after USA in the license
15585         substitution, since that's how it's usually (?) written.
15586
15587 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15588
15589         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
15590         reported by Bruno Haible.
15591
15592 2007-03-29  Bruno Haible  <bruno@clisp.org>
15593
15594         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
15595         a bug in AIX iconv().
15596
15597 2007-03-29  Bruno Haible  <bruno@clisp.org>
15598
15599         * modules/ldexpl-tests: New file.
15600         * tests/test-ldexpl.c: New file.
15601
15602 2007-03-29  Bruno Haible  <bruno@clisp.org>
15603
15604         * lib/ldexpl.c: Include fpucw.h.
15605         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
15606         multiplication.
15607         * modules/ldexpl (Depends-on): Add fpucw.
15608
15609 2007-03-29  Bruno Haible  <bruno@clisp.org>
15610
15611         * modules/ldexpl: New file.
15612         * m4/ldexpl.m4: New file.
15613         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
15614         set.
15615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
15616         REPLACE_LDEXPL.
15617         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
15618         REPLACE_LDEXPL.
15619         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15620         gl_FUNC_LDEXPL_WORKS.
15621         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
15622         * modules/mathl (Files): Remove lib/ldexpl.c.
15623         (Depends-on): Add ldexpl.
15624
15625 2007-03-29  Bruno Haible  <bruno@clisp.org>
15626
15627         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
15628
15629 2007-03-29  Bruno Haible  <bruno@clisp.org>
15630
15631         * tests/test-striconveh.c (main): Don't assume that a direct conversion
15632         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
15633         and possibly also HP-UX.
15634         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15635         work on AIX, IRIX, HP-UX, OSF/1.
15636         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15637         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15638         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15639         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15640         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15641         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15642
15643 2007-03-29  Bruno Haible  <bruno@clisp.org>
15644
15645         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
15646
15647 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15648
15649         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
15650         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
15651
15652 2007-03-29  Eric Blake  <ebb9@byu.net>
15653
15654         * lib/acl-internal.h: Remove redundant include.
15655         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
15656         Cygwin when a file is locked.
15657
15658 2007-03-29  Bruno Haible  <bruno@clisp.org>
15659
15660         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
15661         file.
15662         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
15663
15664 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15665
15666         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
15667         try to remove a parent directory if the child couldn't be removed
15668         (except for the first rmdir, which could fail because the child
15669         doesn't exist).  Problem reported by Jeff Blaine in
15670         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
15671
15672 2007-03-28  Bruno Haible  <bruno@clisp.org>
15673
15674         * lib/striconveh.c (utf8conv_carefully): New function.
15675         (mem_cd_iconveh_internal): Invoke it.
15676
15677 2007-03-28  Bruno Haible  <bruno@clisp.org>
15678
15679         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
15680         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
15681         input.
15682         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
15683         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
15684         unistr/u8-uctomb.
15685
15686 2007-03-28  Bruno Haible  <bruno@clisp.org>
15687
15688         * modules/unistr/u8-mbtoucr: New file.
15689         * lib/unistr/u8-mbtoucr.c: New file.
15690         * modules/unistr/u16-mbtoucr: New file.
15691         * lib/unistr/u16-mbtoucr.c: New file.
15692         * modules/unistr/u16-mbtoucr: New file.
15693         * lib/unistr/u16-mbtoucr.c: New file.
15694         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
15695
15696 2007-03-27  Simon Josefsson  <simon@josefsson.org>
15697             Bruno Haible  <bruno@clisp.org>
15698
15699         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
15700         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
15701         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
15702
15703         * m4/stdio_h.m4: Add stubs for vasprintf too.
15704
15705         * modules/stdio: Support vasprintf in sed command.
15706
15707         * modules/vasprintf: Depend on stdio for prototypes.  Remove
15708         vasprintf.h.  Add stdio module indicator.
15709
15710         * lib/stdio_.h: Declare asprintf and vasprintf, based on
15711         vasprintf.h.
15712
15713         * lib/vasprintf.h: File removed.
15714
15715         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
15716         * lib/vasprintf.c: Ditto.
15717         * lib/xvasprintf.c: Ditto.
15718         * tests/test-vasprintf-posix.c: Ditto.
15719         * tests/test-vasprintf.c: Ditto.
15720
15721 2007-03-27  Bruno Haible  <bruno@clisp.org>
15722
15723         Make vasnprintf multithread-safe.
15724         * lib/vasnprintf.c (decimal_point_char): New function.
15725         (VASNPRINTF): Use it.
15726         Suggested by Simon Josefsson.
15727
15728 2007-03-27  Eric Blake  <ebb9@byu.net>
15729
15730         Support sub-second birthtime on cygwin.
15731         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
15732         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
15733         (get_stat_birthtime): Also work with st_birthtim.
15734
15735 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15736
15737         * lib/stat-time.h (USE_BIRTHTIME): Remove.
15738         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
15739         (get_stat_birthtime_ns): Do not try to use "spare" fields.
15740         (get_stat_birthtime_ns): Simplify compile-time tests.
15741         (get_stat_birthtime): Change the API to look like
15742         get_stat_mtime etc., except return a negative tv_nsec on error.
15743         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
15744         Don't check for "spare" fields.
15745         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
15746         or for struct stat.st_birthtime, as these tests aren't used.
15747         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
15748
15749 2007-03-27  Bruno Haible  <bruno@clisp.org>
15750
15751         * lib/stat-time.h: Include <sys/stat.h>.
15752
15753 2007-03-27  James Youngman  <jay@gnu.org>
15754
15755         * lib/stat-time.h (get_stat_birthtime): New function for
15756           retrieving st_birthtime as provided by UFS2 (hence *BSD).
15757         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
15758           and its variants.
15759         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
15760         * modules/stat-time-test: New file.
15761         * tests/test-stat-time.c: New test, devised by Bruno Haible.
15762
15763 2007-03-26  Bruno Haible  <bruno@clisp.org>
15764
15765         Better support of signalling NaNs.
15766         * lib/atanl.c: Include isnanl.h.
15767         (atanl): Perform test for NaN at the beginning of the function and
15768         through a call to isnanl.
15769         * lib/cosl.c: Include isnanl.h.
15770         (cosl): Perform test for NaN at the beginning of the function and
15771         through a call to isnanl.
15772         * lib/ldexpl.c: Include isnanl.h.
15773         (ldexpl): Perform test for NaN through a call to isnanl.
15774         * lib/logl.c: Include isnanl.h.
15775         (logl): Perform test for NaN at the beginning of the function and
15776         through a call to isnanl.
15777         * lib/sinl.c: Include isnanl.h.
15778         (sinl): Perform test for NaN at the beginning of the function and
15779         through a call to isnanl.
15780         * lib/sqrtl.c: Include isnanl.h.
15781         (sqrtl): Perform test for NaN at the beginning of the function and
15782         through a call to isnanl.
15783         * lib/tanl.c: Include isnanl.h.
15784         (tanl): Perform test for NaN at the beginning of the function and
15785         through a call to isnanl.
15786         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
15787         * modules/mathl (Depends-on): Add isnanl.
15788
15789 2007-03-26  Eric Blake  <ebb9@byu.net>
15790
15791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
15792         regression in logic sense of previous patch.
15793
15794 2007-03-26  Bruno Haible  <bruno@clisp.org>
15795
15796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
15797         unportable shell command "if ! ...".
15798         Reported by Ralf Wildenhues.
15799
15800 2007-03-25  Bruno Haible  <bruno@clisp.org>
15801
15802         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
15803         <sysexits.h> file, and only add EX_CONFIG.
15804         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
15805         absolute file name and whether it is sufficient. Substitute also
15806         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
15807         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
15808         ABSOLUTE_SYSEXITS_H into sysexits.h.
15809
15810 2007-03-25  Bruno Haible  <bruno@clisp.org>
15811
15812         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
15813         hints is NULL.
15814
15815 2007-03-25  Bruno Haible  <bruno@clisp.org>
15816
15817         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
15818         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
15819
15820 2007-03-25  Bruno Haible  <bruno@clisp.org>
15821
15822         * lib/vasnprintf.c: Include langinfo.h.
15823         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
15824         multithread-safe.
15825         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
15826         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
15827         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15828         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15829         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15830         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15831         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15832         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
15833         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15834         Reported by Simon Josefsson.
15835
15836 2007-03-25  Bruno Haible  <bruno@clisp.org>
15837
15838         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
15839         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
15840         * modules/vasnprintf (Depends-on): Add stdint.
15841
15842 2007-03-25  Bruno Haible  <bruno@clisp.org>
15843
15844         * modules/fpieee: New file.
15845         * m4/fpieee.m4: New file.
15846         * modules/isnan-nolibm (Depends-on): Add fpieee.
15847         * modules/isnanl-nolibm (Depends-on): Add fpieee.
15848         * modules/isnanl (Depends-on): Add fpieee.
15849
15850 2007-03-25  Bruno Haible  <bruno@clisp.org>
15851
15852         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
15853
15854 2007-03-25  Bruno Haible  <bruno@clisp.org>
15855
15856         Avoid test failures on IRIX 6.5.
15857         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
15858         (main): Use it.
15859         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
15860         macros.
15861         (main): Use them.
15862
15863 2007-03-25  Bruno Haible  <bruno@clisp.org>
15864
15865         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
15866         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
15867         exists but doesn't work.
15868         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
15869         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
15870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
15871         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
15872
15873 2007-03-25  Bruno Haible  <bruno@clisp.org>
15874
15875         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
15876         returns inf. Needed on IRIX 6.5.
15877
15878 2007-03-25  Bruno Haible  <bruno@clisp.org>
15879
15880         * tests/test-frexpl.c: Include isnanl-nolibm.h.
15881         (main): Use isnanl instead of x != x idiom.
15882         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
15883
15884         * tests/test-frexp.c: Include isnan.h.
15885         (main): Use isnan instead of x != x idiom.
15886         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
15887
15888 2007-03-25  Bruno Haible  <bruno@clisp.org>
15889
15890         * tests/test-frexp.c (NaN): New function/macro.
15891         (main): Use it instead of 0.0 / 0.0.
15892         * tests/test-isnan.c (NaN): New function/macro.
15893         (main): Use it instead of 0.0 / 0.0.
15894         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
15895         (test_function): Use it instead of 0.0 / 0.0.
15896         * tests/test-vasprintf-posix.c (NaN): New function/macro.
15897         (test_function): Use it instead of 0.0 / 0.0.
15898         * tests/test-snprintf-posix.h (NaN): New function/macro.
15899         (test_function): Use it instead of 0.0 / 0.0.
15900         * tests/test-sprintf-posix.h (NaN): New function/macro.
15901         (test_function): Use it instead of 0.0 / 0.0.
15902         * tests/test-fprintf-posix.h (NaN): New function/macro.
15903         (test_function): Use it instead of 0.0 / 0.0.
15904         * tests/test-printf-posix.h (NaN): New function/macro.
15905         (test_function): Use it instead of 0.0 / 0.0.
15906
15907         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
15908
15909 2007-03-25  Bruno Haible  <bruno@clisp.org>
15910
15911         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
15912
15913 2007-03-25  Bruno Haible  <bruno@clisp.org>
15914
15915         * lib/regexec.c (merge_state_with_log): Make static.
15916
15917 2007-03-25  Bruno Haible  <bruno@clisp.org>
15918
15919         * lib/trigl.c (kernel_rem_pio2): Make static.
15920
15921 2007-03-25  Bruno Haible  <bruno@clisp.org>
15922
15923         * lib/sincosl.c (sincosl_table): Make static.
15924
15925 2007-03-25  Bruno Haible  <bruno@clisp.org>
15926
15927         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
15928         if the compiler does not support C99.
15929
15930 2007-03-25  Bruno Haible  <bruno@clisp.org>
15931
15932         * modules/time (Makefile.am): Ensure all rule action lines start with a
15933         tab.
15934
15935 2007-03-24  Bruno Haible  <bruno@clisp.org>
15936
15937         * modules/tsearch-tests: New file.
15938         * tests/test-tsearch.sh: New file.
15939         * tests/test-tsearch.c: New file, mostly copied from glibc.
15940
15941         * modules/search-tests: New file.
15942         * tests/test-search.c: New file.
15943
15944         * modules/search: New file.
15945         * lib/search_.h: New file, incorporating lib/tsearch.h.
15946         * m4/search_h.m4: New file.
15947         * lib/tsearch.h: Remove file.
15948         * lib/tsearch.c: Include search.h instead of tsearch.h.
15949         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
15950         HAVE_TSEARCH.
15951         * modules/tsearch (Files): Remove lib/tsearch.h.
15952         (Depends-on): Add search.
15953         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
15954         (Include): Change tsearch.h into search.h.
15955
15956 2007-03-24  Bruno Haible  <bruno@clisp.org>
15957
15958         * modules/fpucw: New file.
15959         * lib/fpucw.h: New file.
15960         * lib/frexp.c: Include fpucw.h.
15961         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15962         (FUNC): Use them.
15963         * lib/printf-frexp.c: Include fpucw.h.
15964         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15965         (FUNC): Use them.
15966         * lib/vasnprintf.c: Include fpucw.h.
15967         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
15968         'long double' calculations.
15969         * tests/test-frexpl.c: Include fpucw.h.
15970         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15971         * tests/test-printf-frexpl.c: Include fpucw.h.
15972         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15973         * modules/frexpl (Depends-on): Add fpucw.
15974         * modules/printf-frexpl (Depends-on): Likewise.
15975         * modules/fprintf-posix (Depends-on): Likewise.
15976         * modules/snprintf-posix (Depends-on): Likewise.
15977         * modules/sprintf-posix (Depends-on): Likewise.
15978         * modules/vasnprintf-posix (Depends-on): Likewise.
15979         * modules/vasprintf-posix (Depends-on): Likewise.
15980         * modules/vfprintf-posix (Depends-on): Likewise.
15981         * modules/vsnprintf-posix (Depends-on): Likewise.
15982         * modules/vsprintf-posix (Depends-on): Likewise.
15983         * modules/frexpl-tests (Depends-on): Likewise.
15984         * modules/printf-frexpl-tests (Depends-on): Likewise.
15985
15986 2007-03-24  Bruno Haible  <bruno@clisp.org>
15987
15988         * lib/float+.h: New file.
15989         * lib/isnan.c: Include float+.h.
15990         (SIZE): New macro.
15991         (FUNC): Compare only SIZE bytes of the value.
15992         * lib/vasnprintf.c: Include float+.h.
15993         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
15994         SIZEOF_LDBL or SIZEOF_DBL bytes.
15995         * modules/isnan-nolibm (Files): Add lib/float+.h.
15996         * modules/isnanl-nolibm (Files): Add lib/float+.h.
15997         * modules/isnanl (Files): Add lib/float+.h.
15998         * modules/vasnprintf (Files): Add lib/float+.h.
15999
16000 2007-03-24  Bruno Haible  <bruno@clisp.org>
16001
16002         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
16003         include isnanl-nolibm.h.
16004
16005 2007-03-24  Bruno Haible  <bruno@clisp.org>
16006
16007         * tests/test-read-file.c (main): Don't produce spurious output for
16008         expected situations. Make the test fail if it encountered unexpected
16009         results.
16010
16011 2007-03-24  Bruno Haible  <bruno@clisp.org>
16012
16013         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
16014         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
16015
16016 2007-03-24  Bruno Haible  <bruno@clisp.org>
16017
16018         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
16019
16020 2007-03-24  Bruno Haible  <bruno@clisp.org>
16021
16022         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
16023         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
16024
16025         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
16026         * modules/utf8-ucs4: Turn into a symbolic link to module
16027         unistr/u8-mbtouc.
16028
16029         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
16030         utf8-ucs4-unsafe.
16031         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
16032         unistr/u8-mbtouc-unsafe.
16033
16034         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
16035         * modules/utf16-ucs4: Turn into a symbolic link to module
16036         unistr/u16-mbtouc.
16037
16038         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
16039         utf16-ucs4-unsafe.
16040         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
16041         unistr/u16-mbtouc-unsafe.
16042
16043         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
16044         * modules/ucs4-utf8: Turn into a symbolic link to module
16045         unistr/u8-ubtomb.
16046
16047         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
16048         * modules/ucs4-utf16: Turn into a symbolic link to module
16049         unistr/u16-ubtomb.
16050
16051 2007-03-24  Bruno Haible  <bruno@clisp.org>
16052
16053         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
16054         Enable the function only if HAVE_INLINE.
16055         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
16056         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16057         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
16058         Enable the function only if HAVE_INLINE.
16059         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
16060         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16061         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
16062         Enable the function only if HAVE_INLINE.
16063         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
16064         Enable the function only if HAVE_INLINE.
16065         * modules/utf8-ucs4: Update.
16066         * modules/utf8-ucs4-unsafe: Update.
16067         * modules/utf16-ucs4: Update.
16068         * modules/utf16-ucs4-unsafe: Update.
16069         * modules/ucs4-utf8: Update.
16070         * modules/ucs4-utf16: Update.
16071
16072 2007-03-24  Bruno Haible  <bruno@clisp.org>
16073
16074         * lib/utf8-ucs4.h: Remove file.
16075         * lib/utf8-ucs4-unsafe.h: Remove file.
16076         * lib/utf16-ucs4.h: Remove file.
16077         * lib/utf16-ucs4-unsafe.h: Remove file.
16078         * lib/ucs4-utf8.h: Remove file.
16079         * lib/ucs4-utf16.h: Remove file.
16080         * lib/unistr.h: Include their previous contents.
16081         * m4/utf-ucs4.m4: Remove file.
16082         * m4/ucs4-utf.m4: Remove file.
16083         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
16084         (Depends-on): Add unistr/base.
16085         (configure.ac): Remove gl_UTF_UCS4.
16086         (Makefile.am): Update.
16087         (Include): Change to unistr.h.
16088         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
16089         (Depends-on): Add unistr/base.
16090         (configure.ac): Remove gl_UTF_UCS4.
16091         (Makefile.am): Update.
16092         (Include): Change to unistr.h.
16093         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
16094         (Depends-on): Add unistr/base.
16095         (configure.ac): Remove gl_UTF_UCS4.
16096         (Makefile.am): Update.
16097         (Include): Change to unistr.h.
16098         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
16099         (Depends-on): Add unistr/base.
16100         (configure.ac): Remove gl_UTF_UCS4.
16101         (Makefile.am): Update.
16102         (Include): Change to unistr.h.
16103         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
16104         (Depends-on): Add unistr/base.
16105         (configure.ac): Remove gl_UCS4_UTF.
16106         (Makefile.am): Update.
16107         (Include): Change to unistr.h.
16108         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
16109         (Depends-on): Add unistr/base.
16110         (configure.ac): Remove gl_UCS4_UTF.
16111         (Makefile.am): Update.
16112         (Include): Change to unistr.h.
16113         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
16114         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
16115         utf8-ucs4-unsafe.h.
16116         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
16117         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
16118         utf16-ucs4-unsafe.h.
16119         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
16120         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
16121         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
16122         * lib/unistr/u8-strchr.c: Likewise.
16123         * lib/unistr/u8-strrchr.c: Likewise.
16124         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
16125         * lib/unistr/u16-strchr.c: Likewise.
16126         * lib/unistr/u16-strrchr.c: Likewise.
16127         * lib/striconveh.c: Update.
16128         * lib/linebreak.c: Update.
16129
16130 2007-03-24  Bruno Haible  <bruno@clisp.org>
16131
16132         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
16133         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
16134
16135 2007-03-22  Bruno Haible  <bruno@clisp.org>
16136
16137         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
16138
16139 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
16140
16141         * MODULES.html.sh (File system functions): New module write-any-file.
16142         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
16143         * m4/write-any-file.m4: New files.
16144
16145 2007-03-23  Eric Blake  <ebb9@byu.net>
16146
16147         * gnulib-tool: Rearrange space-tab sequences, since some editors
16148         like to eat them.
16149
16150 2007-03-23  Eric Blake  <ebb9@byu.net>
16151
16152         * lib/version-etc.c (version_etc_va): Update license wording to
16153         be more concise.  Recommended by Richard Stallman.
16154
16155 2007-03-22  Bruno Haible  <bruno@clisp.org>
16156
16157         * lib/poll.c (MSG_PEEK): New fallback definition.
16158
16159 2007-03-22  Bruno Haible  <bruno@clisp.org>
16160
16161         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
16162         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
16163         (main): Update.
16164         Fixes a compilation error on BeOS.
16165
16166 2007-03-22  Bruno Haible  <bruno@clisp.org>
16167
16168         * modules/frexpl-tests: New file.
16169         * tests/test-frexpl.c: New file.
16170
16171         * modules/frexpl: New file.
16172         * m4/frexpl.m4: New file.
16173         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
16174         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
16175         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
16176         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
16177         (Depends-on): Add frexpl. Remove isnanl-nolibm.
16178         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
16179
16180 2007-03-22  Bruno Haible  <bruno@clisp.org>
16181
16182         * lib/frexpl.c: Share code with lib/frexp.c.
16183         * modules/mathl (Files): Add lib/frexp.c.
16184         (Depends-on): Add isnanl-nolibm.
16185
16186 2007-03-22  Bruno Haible  <bruno@clisp.org>
16187
16188         * modules/printf-frexp (Files): Add m4/frexp.m4.
16189         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
16190         only if the found frexp function actually works.
16191
16192 2007-03-22  Bruno Haible  <bruno@clisp.org>
16193
16194         * lib/frexp.c: Remove older implementation that uses divisions.
16195
16196 2007-03-21  Bruno Haible  <bruno@clisp.org>
16197
16198         * modules/frexp-tests: New file.
16199         * tests/test-frexp.c: New file.
16200
16201         * modules/frexp: New file.
16202         * lib/frexp.c: New file.
16203         * m4/frexp.m4: New file.
16204         * lib/math_.h (frexp): New declaration.
16205         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
16206         REPLACE_FREXP.
16207         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
16208
16209 2007-03-21  Bruno Haible  <bruno@clisp.org>
16210
16211         * modules/isnanl-tests: New file.
16212         * tests/test-isnanl.c: New file.
16213
16214         * modules/isnanl: New file.
16215         * lib/isnanl.h: New file.
16216         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
16217         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
16218         gl_FUNC_ISNANL_WORKS.
16219         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
16220         New macros.
16221
16222 2007-03-21  Bruno Haible  <bruno@clisp.org>
16223
16224         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
16225         lib/isnanl.h.
16226         (Include): Update.
16227         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
16228         * lib/vasnprintf.c: Update.
16229         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
16230         tests/test-isnanl.h, remove tests/test-isnanl.c.
16231         (Makefile.am): Update.
16232         * tests/test-isnanl-nolibm.c: New file.
16233         * tests/test-isnanl.h: New file.
16234         * tests/test-isnanl.c: Remove file.
16235
16236 2007-03-21  Jim Meyering  <jim@meyering.net>
16237
16238         When trying to open ".", treat ESTALE like EACCES.
16239         * lib/savewd.c (savewd_save): Resort to forking not just upon
16240         failure with EACCES, but also when errno is ESTALE.
16241
16242 2007-03-20  Bruno Haible  <bruno@clisp.org>
16243
16244         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
16245         Needed on AIX 5.1. Reported by Matthew Woehlke.
16246
16247 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16248
16249         Suggestions by Bruno Haible:
16250         * lib/acl-internal.h: Include "gettext.h" rather than rolling
16251         our own.
16252         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
16253         * modules/acl (Depends-on): Add gettext.
16254
16255 2007-03-19  Bruno Haible  <bruno@clisp.org>
16256
16257         * modules/iconvme: Remove file.
16258         * lib/iconvme.h: Remove file.
16259         * lib/iconvme.c: Remove file.
16260         * m4/iconvme.m4: Remove file.
16261
16262 2007-03-19  Bruno Haible  <bruno@clisp.org>
16263
16264         * doc/relocatable-maint.texi: Break long shell script line.
16265         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16266
16267 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16268
16269         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
16270         handle file_has_acl.
16271         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
16272         * lib/acl.c: Move header inclusions and related macro defns into
16273         lib/acl-internal.h.
16274         (S_ISLNK): Remove defn, since that's now done for us.
16275         (file_has_acl): Move to lib/file-has-acl.c.
16276         Call acl_trivial if available.  This is the crucial part of the fix.
16277         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
16278         shared within the library.  Rewrite a bit, partly to make it compatible
16279         with the GNU coding style.
16280         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
16281         Remove unnecessary double-quotes.
16282         Don't test for acl_to_text; the build will catch that.
16283         Replace acl_entries if it doesn't exist and it is needed.
16284         Check for -lsec and acl_trivial (as used on Solaris 10).
16285         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
16286         lib/file-has-acl.c.
16287         (Depends-on): Add sys_stat, for S_ISLNK.
16288
16289 2007-03-19  Ben Pfaff  <blp@gnu.org>
16290
16291         * doc/gnulib.texi: Fix typos.
16292         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16293
16294 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16295
16296         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
16297         If size is zero here, buf must be zero.
16298
16299 2007-03-19  Simon Josefsson  <simon@josefsson.org>
16300
16301         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
16302         <bruno@clisp.org>.
16303
16304 2007-03-18  Bruno Haible  <bruno@clisp.org>
16305
16306         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
16307         Suggested by Eric Blake.
16308
16309 2007-03-18  Ben Pfaff  <blp@gnu.org>
16310
16311         * doc/relocatable.texi: Recommend using as prefix a directory
16312         that does not exist and will never be created.  Based on
16313         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
16314         and others.
16315
16316 2007-03-17  Bruno Haible  <bruno@clisp.org>
16317
16318         * lib/fchownat.c: Include lchown.h.
16319
16320 2007-03-17  Bruno Haible  <bruno@clisp.org>
16321
16322         Fix endless loop when the given allocated size was > INT_MAX.
16323         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
16324         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
16325         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
16326         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
16327         * lib/sprintf.c (sprintf): Likewise.
16328
16329 2007-03-17  Bruno Haible  <bruno@clisp.org>
16330
16331         * tests/test-argp-2.sh (func_compare): Output a context diff.
16332
16333 2007-03-17  Bruno Haible  <bruno@clisp.org>
16334
16335         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
16336         locale's decimal-point character.
16337
16338 2007-03-17  Bruno Haible  <bruno@clisp.org>
16339
16340         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
16341         before comparing it. Needed because on some platforms (e.g. x86) a
16342         'long double' occupies less bytes than sizeof (long double).
16343
16344 2007-03-17  Bruno Haible  <bruno@clisp.org>
16345
16346         * tests/test-crc.c (main): Make printf statements 64-bit clean.
16347         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
16348         * tests/test-getaddrinfo.c (simple): Likewise.
16349         * tests/test-read-file.c (main): Likewise.
16350
16351 2007-03-17  Bruno Haible  <bruno@clisp.org>
16352
16353         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
16354
16355 2007-03-17  Bruno Haible  <bruno@clisp.org>
16356
16357         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
16358         unused variable.
16359
16360 2007-03-17  Bruno Haible  <bruno@clisp.org>
16361
16362         * tests/test-c-strcasecmp.c: Include c-strcase.h.
16363         * tests/test-c-strncasecmp.c: Likewise.
16364
16365 2007-03-17  Bruno Haible  <bruno@clisp.org>
16366
16367         * modules/stdlib (Depends-on): Add unistd.
16368         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
16369         Needed for MacOS X 10.3.
16370
16371 2007-03-17  Bruno Haible  <bruno@clisp.org>
16372
16373         * lib/unistr/u-strdup.h: Include <stdlib.h>.
16374
16375 2007-03-17  Bruno Haible  <bruno@clisp.org>
16376
16377         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
16378
16379 2007-03-17  Bruno Haible  <bruno@clisp.org>
16380
16381         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
16382         to reflect files copied from gnulib (with or without modifications).
16383         Suggested by Jim Meyering.
16384
16385 2007-03-17  Eric Blake  <ebb9@byu.net>
16386
16387         * NEWS: Document stdlib change from 2007-02-18.
16388
16389 2007-03-17  Jim Meyering  <jim@meyering.net>
16390
16391         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
16392         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
16393         someone uses a name containing shell meta-characters.
16394         Reported by Alfred M. Szmidt.
16395
16396         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
16397
16398 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16399
16400         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
16401         and copy gettext configuration files only if configure.ac contains
16402         a use of AM_GNU_GETTEXT_VERSION.
16403
16404 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16405
16406         * build-aux/bootstrap (gnulib_name): New variable.
16407         (gnulib_tool_options): Use it.
16408
16409 2007-03-13  Simon Josefsson  <simon@josefsson.org>
16410
16411         * tests/test-des.c: Use new namespace.
16412
16413 2007-03-15  Bruno Haible  <bruno@clisp.org>
16414
16415         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
16416         Reported by James Youngman <jay@gnu.org>.
16417
16418 2007-03-15  Bruno Haible  <bruno@clisp.org>
16419
16420         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
16421         declared prototype. Needed with cc on OSF/1 5.1.
16422
16423 2007-03-15  Bruno Haible  <bruno@clisp.org>
16424
16425         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
16426         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
16427         (struct gl_list_implementation): Add dispose_fn argument to the
16428         'create_empty', 'create' methods.
16429         (struct gl_list_impl_base): Add field 'dispose_fn'.
16430         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
16431         argument.
16432         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
16433         dispose_fn argument.
16434         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
16435         dispose_fn on the dropped values.
16436         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
16437         dispose_fn argument.
16438         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
16439         dropped values.
16440         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
16441         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16442         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
16443         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16444         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
16445         argument.
16446         (gl_tree_list_free): Call dispose_fn on the dropped values.
16447         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
16448         the dropped values.
16449         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
16450         Add dispose_fn argument.
16451         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
16452         Call dispose_fn on the dropped values.
16453         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
16454         Add dispose_fn argument.
16455         (gl_sublist_create): Initialize the 'dispose_fn' field.
16456         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
16457         * tests/test-array_list.c (main): Update.
16458         * tests/test-carray_list.c (main): Update.
16459         * tests/test-avltree_list.c (main): Update.
16460         * tests/test-rbtree_list.c (main): Update.
16461         * tests/test-avltreehash_list.c (main): Update.
16462         * tests/test-rbtreehash_list.c (main): Update.
16463         * tests/test-linked_list.c (main): Update.
16464         * tests/test-linkedhash_list.c (main): Update.
16465         * tests/test-array_oset.c (main): Update.
16466
16467 2007-03-15  Bruno Haible  <bruno@clisp.org>
16468
16469         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
16470         (gl_oset_create_empty): Add dispose_fn argument.
16471         (struct gl_oset_implementation): Add dispose_fn argument to
16472         'create_empty' method.
16473         (struct gl_oset_impl_base): Add dispose_fn field.
16474         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
16475         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
16476         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
16477         values.
16478         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
16479         (gl_tree_oset_free): Call dispose_fn on the dropped values.
16480         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16481         dropped value.
16482         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16483         dropped value.
16484         * tests/test-array_oset.c (main): Update.
16485         * tests/test-avltree_oset.c (main): Update.
16486         * tests/test-rbtree_oset.c (main): Update.
16487         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
16488
16489 2007-03-13  Bruno Haible  <bruno@clisp.org>
16490
16491         * tests/test-stdbool.c (i): Update after last patch.
16492
16493 2007-03-12  Bruno Haible  <bruno@clisp.org>
16494
16495         * lib/quotearg.c: Include <wctype.h> early, before the definition of
16496         the iswprint macro. Needed on Solaris 2.5.1.
16497
16498 2007-03-12  Bruno Haible  <bruno@clisp.org>
16499
16500         * tests/test-printf-frexp.c (main): Declare x as volatile.
16501
16502 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16503
16504         * doc/gnulib.texi (Build robot for gnulib): New section.
16505
16506 2007-03-12  Jim Meyering  <jim@meyering.net>
16507
16508         * build-aux/bootstrap: New file.
16509         * build-aux/bootstrap.conf: New file, from coreutils.
16510
16511 2007-03-11  Bruno Haible  <bruno@clisp.org>
16512
16513         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
16514
16515 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16516
16517         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
16518         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
16519         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
16520
16521 2007-03-11  Bruno Haible  <bruno@clisp.org>
16522
16523         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
16524         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
16525
16526 2007-03-11  Bruno Haible  <bruno@clisp.org>
16527
16528         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
16529         formula. Needed for SunPRO C 5.0.
16530
16531 2007-03-11  Bruno Haible  <bruno@clisp.org>
16532
16533         * modules/long-options (Depends-on): Add getopt.
16534
16535 2007-03-11  Bruno Haible  <bruno@clisp.org>
16536
16537         * modules/modechange (Depends-on): Add stdbool.
16538
16539 2007-03-11  Bruno Haible  <bruno@clisp.org>
16540
16541         * modules/i-ring (Depends-on): Add stdbool.
16542
16543 2007-03-11  Bruno Haible  <bruno@clisp.org>
16544
16545         * modules/gc-des (Depends-on): Add stdbool.
16546
16547 2007-03-11  Bruno Haible  <bruno@clisp.org>
16548
16549         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
16550
16551 2007-03-11  Bruno Haible  <bruno@clisp.org>
16552
16553         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
16554
16555 2007-03-11  Bruno Haible  <bruno@clisp.org>
16556
16557         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
16558
16559 2007-03-11  Bruno Haible  <bruno@clisp.org>
16560
16561         * lib/vasnprintf.c (sprintf): Undefine.
16562
16563 2007-03-11  Bruno Haible  <bruno@clisp.org>
16564
16565         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
16566         initializers in SunPRO C and Compaq C compilers.
16567
16568 2007-03-11  Bruno Haible  <bruno@clisp.org>
16569
16570         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
16571         decrementing code ANSI C compliant.
16572
16573 2007-03-11  Bruno Haible  <bruno@clisp.org>
16574
16575         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
16576         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
16577
16578 2007-03-11  Bruno Haible  <bruno@clisp.org>
16579
16580         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
16581         <stdbool.h> substitute doesn't pass.
16582
16583 2007-03-11  Bruno Haible  <bruno@clisp.org>
16584
16585         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
16586
16587 2007-03-11  Bruno Haible  <bruno@clisp.org>
16588
16589         * gnulib-tool (func_create_megatestdir): Create also an autobuild
16590         script, for submission to autobuild.josefsson.org.
16591
16592 2007-03-10  Bruno Haible  <bruno@clisp.org>
16593
16594         * modules/canonicalize-lgpl-tests: New file.
16595         * tests/test-canonicalize-lgpl.sh: New file.
16596         * tests/test-canonicalize-lgpl.c: New file.
16597
16598         * modules/c-strcase-tests: New file.
16599         * tests/test-c-strcase.sh: New file.
16600         * tests/test-c-strcasecmp.c: New file.
16601         * tests/test-c-strncasecmp.c: New file.
16602
16603         * modules/atexit-tests: New file.
16604         * tests/test-atexit.sh: New file.
16605         * tests/test-atexit.c: New file.
16606
16607 2007-03-10  Bruno Haible  <bruno@clisp.org>
16608
16609         * tests/test-binary-io.sh: Use temporary filenames that are not so
16610         likely to clash with those of other tests (in a parallel make).
16611         * tests/test-binary-io.c: Likewise.
16612
16613 2007-03-10  Bruno Haible  <bruno@clisp.org>
16614
16615         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
16616         fallback; use #error instead.
16617         Suggested by Simon Josefsson.
16618
16619 2007-03-10  Bruno Haible  <bruno@clisp.org>
16620
16621         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
16622         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
16623         first and the last.
16624
16625 2007-03-10  Bruno Haible  <bruno@clisp.org>
16626
16627         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
16628
16629 2007-03-10  Bruno Haible  <bruno@clisp.org>
16630
16631         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
16632         "make distcheck".
16633         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
16634         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
16635         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
16636
16637 2007-03-10  Bruno Haible  <bruno@clisp.org>
16638
16639         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
16640         variable.
16641         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
16642         variable.
16643
16644 2007-03-09  Eric Blake  <ebb9@byu.net>
16645         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
16646
16647         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
16648         types are not being provided by gnulib.
16649         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
16650         types are supported.
16651
16652 2007-03-10  Bruno Haible  <bruno@clisp.org>
16653
16654         * lib/stdio_.h (__attribute__): New macro.
16655         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
16656         vsprintf): Specify __attribute__ __format__ for GCC.
16657         Suggested by Eric Blake.
16658
16659 2007-03-09  Bruno Haible  <bruno@clisp.org>
16660
16661         * modules/printf-posix-tests: New file.
16662         * tests/test-printf-posix.sh: New file.
16663         * tests/test-printf-posix.c: New file.
16664
16665         * modules/printf-posix: New file.
16666         * lib/printf.c: New file.
16667         * m4/printf-posix-rpl.m4: New file.
16668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
16669         REPLACE_PRINTF.
16670         * lib/stdio_.h (printf): New declaration.
16671         (format, __format__, ____printf____, ____scanf____, ____strftime____,
16672         ____strfmon____): New macros.
16673         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
16674         REPLACE_PRINTF.
16675
16676 2007-03-09  Bruno Haible  <bruno@clisp.org>
16677
16678         * tests/test-vasnprintf-posix2.sh: New file.
16679         * tests/test-vasnprintf-posix2.c: New file.
16680         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
16681         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16682         (Makefile.am): Activate test-vasnprintf-posix2.sh.
16683
16684         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
16685         a locale dependent decimal point, rather than always '.'.
16686
16687 2007-03-09  Eric Blake  <ebb9@byu.net>
16688
16689         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
16690         spite of platforms like Tandem/NSK that define it to -1.
16691
16692 2007-03-08  Bruno Haible  <bruno@clisp.org>
16693
16694         * modules/vprintf-posix-tests: New file.
16695         * tests/test-vprintf-posix.sh: New file.
16696         * tests/test-vprintf-posix.c: New file.
16697         * tests/test-printf-posix.h: New file.
16698
16699         * modules/vprintf-posix: New file.
16700         * lib/vprintf.c: New file.
16701         * m4/vprintf-posix.m4: New file.
16702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
16703         REPLACE_VPRINTF.
16704         * lib/stdio_.h (vprintf): New declaration.
16705         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
16706         REPLACE_VPRINTF.
16707
16708 2007-03-08  Bruno Haible  <bruno@clisp.org>
16709
16710         * modules/fprintf-posix-tests: New file.
16711         * tests/test-fprintf-posix.sh: New file.
16712         * tests/test-fprintf-posix.c: New file.
16713
16714         * modules/fprintf-posix: New file.
16715         * lib/fprintf.c: New file.
16716         * m4/fprintf-posix.m4: New file.
16717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
16718         REPLACE_FPRINTF.
16719         * lib/stdio_.h (fprintf): New declaration.
16720         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
16721         REPLACE_FPRINTF.
16722
16723 2007-03-08  Bruno Haible  <bruno@clisp.org>
16724
16725         * modules/vfprintf-posix-tests: New file.
16726         * tests/test-vfprintf-posix.sh: New file.
16727         * tests/test-vfprintf-posix.c: New file.
16728         * tests/test-fprintf-posix.h: New file.
16729         * tests/test-fprintf-posix.out: New file.
16730
16731         * modules/vfprintf-posix: New file.
16732         * lib/vfprintf.c: New file.
16733         * m4/vfprintf-posix.m4: New file.
16734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
16735         REPLACE_VFPRINTF.
16736         * lib/stdio_.h (vfprintf): New declaration.
16737         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
16738         REPLACE_VFPRINTF.
16739
16740 2007-03-08  Bruno Haible  <bruno@clisp.org>
16741
16742         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
16743
16744 2007-03-08  Bruno Haible  <bruno@clisp.org>
16745
16746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
16747         instead of 'expr' invocations.
16748         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16749         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16750         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16753         Suggested by Paul Eggert.
16754
16755 2007-03-08  Bruno Haible  <bruno@clisp.org>
16756
16757         * modules/fseterr-tests: New file.
16758         * tests/test-fseterr.c: New file.
16759
16760         * modules/fseterr: New file.
16761         * lib/fseterr.h: New file.
16762         * lib/fseterr.c: New file.
16763
16764 2007-03-08  Bruno Haible  <bruno@clisp.org>
16765
16766         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
16767         * lib/getopt_.h: Likewise.
16768         * lib/mbswidth.h: Likewise.
16769         * lib/setenv.h: Likewise.
16770         * lib/vasnprintf.h: Likewise.
16771         * lib/vasprintf.h: Likewise.
16772         * lib/verror.h: Likewise.
16773         * lib/xsetenv.h: Likewise.
16774         * lib/xvasprintf.h: Likewise.
16775
16776 2007-03-08  Jim Meyering  <jim@meyering.net>
16777
16778         * users.txt: Add parted.
16779
16780         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
16781
16782 2007-03-07  Bruno Haible  <bruno@clisp.org>
16783
16784         * m4/printf.m4: Make the shell script snippets copy&pastable.
16785
16786 2007-03-02  Bruno Haible  <bruno@clisp.org>
16787
16788         * lib/netinet_in_.h: New file.
16789         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
16790         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
16791         * modules/netinet_in (Files): Add lib/netinet_in_.h.
16792         (Depends-on): Add absolute-header.
16793         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
16794         into netinet/in.h.
16795
16796 2007-03-03  Bruno Haible  <bruno@clisp.org>
16797
16798         * lib/sys_select_.h: New file.
16799         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
16800         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
16801         * modules/sys_select (Files): Add lib/sys_select_.h.
16802         (Depends-on): Add absolute-header.
16803         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
16804         into sys/select.h.
16805
16806 2007-03-02  Bruno Haible  <bruno@clisp.org>
16807
16808         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
16809         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
16810         values.
16811         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
16812         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
16813         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
16814         * modules/sys_socket (Depends-on): Add absolute-header.
16815         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
16816         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
16817         (Include): Remove requirement of inclusion of <sys/types.h>.
16818
16819 2007-03-02  Bruno Haible  <bruno@clisp.org>
16820
16821         * lib/byteswap_.h (bswap_32): Fix formula.
16822
16823 2007-03-06  Bruno Haible  <bruno@clisp.org>
16824
16825         * modules/sprintf-posix-tests: New file.
16826         * tests/test-sprintf-posix.c: New file.
16827
16828         * modules/sprintf-posix: New file.
16829         * lib/sprintf.c: New file.
16830         * m4/sprintf-posix.m4: New file.
16831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
16832         REPLACE_SPRINTF.
16833         * lib/stdio_.h (sprintf): New declaration.
16834         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
16835         REPLACE_SPRINTF.
16836
16837 2007-03-06  Bruno Haible  <bruno@clisp.org>
16838
16839         * modules/vsprintf-posix-tests: New file.
16840         * tests/test-vsprintf-posix.c: New file.
16841         * tests/test-sprintf-posix.h: New file.
16842
16843         * modules/vsprintf-posix: New file.
16844         * lib/vsprintf.c: New file.
16845         * m4/vsprintf-posix.m4: New file.
16846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
16847         REPLACE_VSPRINTF.
16848         * lib/stdio_.h (vsprintf): New declaration.
16849         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
16850         REPLACE_VSPRINTF.
16851
16852 2007-03-06  Bruno Haible  <bruno@clisp.org>
16853
16854         * modules/vsnprintf (Depend-on): Remove minmax.
16855
16856 2007-03-06  Bruno Haible  <bruno@clisp.org>
16857
16858         * modules/snprintf-posix-tests: New file.
16859         * tests/test-snprintf-posix.c: New file.
16860
16861         * modules/snprintf-posix: New file.
16862         * m4/snprintf-posix.m4: New file.
16863         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
16864         gl_FUNC_SNPRINTF.
16865         (gl_FUNC_SNPRINTF): Invoke it.
16866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
16867         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
16868         is set.
16869         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
16870
16871 2007-03-06  Bruno Haible  <bruno@clisp.org>
16872
16873         * modules/vsnprintf-posix-tests: New file.
16874         * tests/test-vsnprintf-posix.c: New file.
16875         * tests/test-snprintf-posix.h: New file.
16876
16877         * modules/vsnprintf-posix: New file.
16878         * m4/vsnprintf-posix.m4: New file.
16879         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
16880         gl_FUNC_VSNPRINTF.
16881         (gl_FUNC_VSNPRINTF): Invoke it.
16882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
16883         * lib/stdio_.h (vsnprintf): Define as a replacement if
16884         REPLACE_VSNPRINTF is set.
16885         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
16886
16887 2007-03-06  Bruno Haible  <bruno@clisp.org>
16888
16889         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
16890         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
16891
16892 2007-03-06  Bruno Haible  <bruno@clisp.org>
16893
16894         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
16895         (asinl): Declare also if HAVE_DECL_ASINL is set.
16896         (atanl): Declare also if HAVE_DECL_ATANL is set.
16897         (ceill): Declare also if HAVE_DECL_CEILL is set.
16898         (cosl): Declare also if HAVE_DECL_COSL is set.
16899         (expl): Declare also if HAVE_DECL_EXPL is set.
16900         (floorl): Declare also if HAVE_DECL_FLOORL is set.
16901         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
16902         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
16903         (logl): Declare also if HAVE_DECL_LOGL is set.
16904         (sinl): Declare also if HAVE_DECL_SINL is set.
16905         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
16906         (tanl): Declare also if HAVE_DECL_TANL is set.
16907         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
16908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
16909         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
16910         declaration of frexpl, ldexpl.
16911         * modules/printf-frexpl (Depends-on): Add math.
16912         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
16913
16914 2007-03-05  Bruno Haible  <bruno@clisp.org>
16915
16916         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
16917         frexpl and ldexpl are declared.
16918         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
16919
16920 2007-03-05  Bruno Haible  <bruno@clisp.org>
16921
16922         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
16923         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
16924
16925 2007-03-05  Bruno Haible  <bruno@clisp.org>
16926
16927         * lib/stdio_.h: Include <stddef.h>.
16928
16929 2007-03-05  Bruno Haible  <bruno@clisp.org>
16930
16931         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
16932
16933 2007-03-05  Bruno Haible  <bruno@clisp.org>
16934
16935         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
16936         NetBSD 4, from Ralf Wildenhues.
16937
16938 2007-03-04  Bruno Haible  <bruno@clisp.org>
16939
16940         * lib/vasprintf.h: Update #if logic for the case when the functions
16941         exist but are overridden.
16942
16943 2007-03-04  Bruno Haible  <bruno@clisp.org>
16944
16945         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
16946         implementations: glibc-2.4 and MacOS X 10.3.
16947         * tests/test-vasnprintf-posix.c (test_function): Test also the case
16948         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
16949         * tests/test-vasprintf-posix.c (test_function): Likewise.
16950
16951 2007-03-04  Bruno Haible  <bruno@clisp.org>
16952
16953         * modules/vasprintf-posix-tests: New file.
16954         * tests/test-vasprintf-posix.c: New file.
16955
16956         * modules/vasprintf-posix: New file.
16957         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
16958         defined.
16959         * m4/vasprintf-posix.m4: New file.
16960         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
16961         gl_FUNC_VASPRINTF.
16962         (gl_FUNC_VASPRINTF): Invoke it.
16963         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
16964         here.
16965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
16966
16967 2007-03-04  Bruno Haible  <bruno@clisp.org>
16968
16969         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
16970         REPLACE_GETTIMEOFDAY.
16971         * modules/sys_time (Makefile.am): Likewise.
16972         * m4/sys_time_h.m4: Likewise.
16973         * m4/gettimeofday.m4: Likewise.
16974
16975 2007-03-04  Bruno Haible  <bruno@clisp.org>
16976
16977         * modules/vasnprintf-posix-tests: New file.
16978         * tests/test-vasnprintf-posix.c: New file.
16979
16980         * modules/vasnprintf-posix: New file.
16981         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
16982         printf-frexpl.h.
16983         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
16984         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
16985         REPLACE_VASNPRINTF is defined.
16986         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
16987         gl_FUNC_VASNPRINTF.
16988         (gl_FUNC_VASNPRINTF): Invoke it.
16989         * m4/vasnprintf-posix.m4: New file.
16990         * m4/printf.m4: New file.
16991
16992 2007-03-04  Bruno Haible  <bruno@clisp.org>
16993
16994         Compile progreloc.c only if --enable-relocatable is specified.
16995         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
16996         if --enable-relocatable was specified.
16997         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
16998         lib_SOURCES.
16999
17000 2007-03-04  Jim Meyering  <jim@meyering.net>
17001
17002         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
17003         Use it consistently, rather than enumerating errno constants.
17004
17005 2007-03-04  Bruno Haible  <bruno@clisp.org>
17006
17007         * modules/xvasprintf-tests: New file.
17008         * tests/test-xvasprintf.c: New file.
17009
17010         * modules/vasprintf-tests: New file.
17011         * tests/test-vasprintf.c: New file.
17012
17013         * modules/vasnprintf-tests: New file.
17014         * tests/test-vasnprintf.c: New file.
17015
17016         * modules/vsnprintf-tests: New file.
17017         * tests/test-vsnprintf.c: New file.
17018
17019         * modules/snprintf-tests: New file.
17020         * tests/test-snprintf.c: New file.
17021
17022 2007-03-04  Bruno Haible  <bruno@clisp.org>
17023
17024         Compile relocatable.c only if --enable-relocatable is specified.
17025         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
17026         gl_RELOCATABLE_LIBRARY.
17027         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
17028         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
17029         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
17030         gl_RELOCATABLE_LIBRARY.
17031         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
17032         (Makefile.am): Remove lib_SOURCES.
17033         * modules/relocatable-lib-lgpl (configure.ac): Invoke
17034         gl_RELOCATABLE_LIBRARY.
17035         (Makefile.am): Remove lib_SOURCES.
17036         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
17037         always.
17038         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17039         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
17040
17041 2007-03-04  Bruno Haible  <bruno@clisp.org>
17042
17043         * modules/argmatch-tests: New file.
17044         * tests/test-argmatch.c: New file.
17045
17046         * tests/test-allocsa.c (main): Halve the number of loop runs.
17047
17048         * modules/alloca-opt-tests: New file.
17049         * tests/test-alloca-opt.c: New file.
17050
17051 2007-03-04  Jim Meyering  <jim@meyering.net>
17052
17053         Work around difference between Linux ACLs and Solaris 10 ZFS.
17054         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
17055         for EINVAL.
17056
17057 2007-03-03  Bruno Haible  <bruno@clisp.org>
17058
17059         * modules/relocatable-prog (Depends-on): Add back progreloc's
17060         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
17061
17062 2007-03-03  Bruno Haible  <bruno@clisp.org>
17063
17064         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
17065         * modules/relocatable-lib: New file.
17066
17067 2007-03-03  Bruno Haible  <bruno@clisp.org>
17068
17069         * modules/relocatable-prog: Renamed from modules/relocatable.
17070         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
17071
17072 2007-03-03  Bruno Haible  <bruno@clisp.org>
17073
17074         * modules/relocatable-script (Files): Add doc/relocatable.texi,
17075         m4/relocatable-lib.m4.
17076         (Depends-on): Remove 'relocatable'.
17077         (configure.ac): Add gl_RELOCATABLE_NOP.
17078
17079 2007-03-03  Bruno Haible  <bruno@clisp.org>
17080
17081         * modules/relocatable-prog-wrapper: New file.
17082         * modules/relocatable (Depends-on): Add it. Remove all other
17083         dependencies except progname.
17084         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
17085
17086         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
17087         (gl_FUNC_STRERROR): Nop.
17088         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
17089
17090         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
17091         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
17092
17093         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
17094         (gl_FUNC_READLINK): Update.
17095
17096         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
17097
17098 2007-03-03  Bruno Haible  <bruno@clisp.org>
17099
17100         * lib/xreadlink.c: Include <unistd.h> unconditionally.
17101         * modules/xreadlink (Depends-on): Add unistd.
17102         * modules/xreadlink-with-size (Depends-on): Likewise.
17103
17104 2007-03-03  Bruno Haible  <bruno@clisp.org>
17105
17106         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
17107         extracted from gt_FUNC_SETENV.
17108         (gt_FUNC_SETENV): Remove macro.
17109         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
17110         remove gt_FUNC_SETENV.
17111
17112 2007-03-03  Bruno Haible  <bruno@clisp.org>
17113
17114         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
17115         ENABLE_RELOCATABLE here.
17116         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
17117
17118 2007-03-03  Bruno Haible  <bruno@clisp.org>
17119
17120         * modules/rbtreehash-list-tests (Depends-on): Add progname.
17121         * tests/test-rbtreehash_list.c: Include progname.h.
17122         (main): Call set_program_name.
17123
17124         * modules/rbtree-oset-tests (Depends-on): Add progname.
17125         * tests/test-rbtree_oset.c: Include progname.h.
17126         (main): Call set_program_name.
17127
17128         * modules/rbtree-list-tests (Depends-on): Add progname.
17129         * tests/test-rbtree_list.c: Include progname.h.
17130         (main): Call set_program_name.
17131
17132         * modules/linked-list-tests (Depends-on): Add progname.
17133         * tests/test-linked_list.c: Include progname.h.
17134         (main): Call set_program_name.
17135
17136 2007-03-03  Bruno Haible  <bruno@clisp.org>
17137
17138         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
17139         All uses of __restrict changed to _Restrict_.
17140         * lib/glob_.h (__restrict): Remove macro.
17141
17142 2007-03-02  Bruno Haible  <bruno@clisp.org>
17143
17144         * modules/gettext (configure.ac): Require gettext infrastructure
17145         from version 0.16.1.
17146
17147 2007-03-02  Bruno Haible  <bruno@clisp.org>
17148
17149         * modules/linkedhash-list-tests (Depends-on): Add progname.
17150         * tests/test-linkedhash_list.c: Include progname.h.
17151         (main): Call set_program_name.
17152
17153         * modules/carray-list-tests (Depends-on): Add progname.
17154         * tests/test-carray_list.c: Include progname.h.
17155         (main): Call set_program_name.
17156
17157         * modules/avltreehash-list-tests (Depends-on): Add progname.
17158         * tests/test-avltreehash_list.c: Include progname.h.
17159         (main): Call set_program_name.
17160
17161         * modules/avltree-oset-tests (Depends-on): Add progname.
17162         * tests/test-avltree_oset.c: Include progname.h.
17163         (main): Call set_program_name.
17164
17165         * modules/avltree-list-tests (Depends-on): Add progname.
17166         * tests/test-avltree_list.c: Include progname.h.
17167         (main): Call set_program_name.
17168
17169         * modules/array-oset-tests (Depends-on): Add progname.
17170         * tests/test-array_oset.c: Include progname.h.
17171         (main): Call set_program_name.
17172
17173         * modules/array-list-tests (Depends-on): Add progname.
17174         * tests/test-array_list.c: Include progname.h.
17175         (main): Call set_program_name.
17176
17177         * modules/argp-tests (Depends-on): Add progname.
17178         * tests/test-argp.c: Include argp.h first. Include progname.h.
17179         (main): Call set_program_name.
17180
17181 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
17182
17183         * doc/gnulib-tool.texi (Initial import): Reword description of
17184         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
17185         limited effect even if defined after the first system include.
17186
17187 2007-03-01  Bruno Haible  <bruno@clisp.org>
17188
17189         * build-aux/config.libpath: Update to libtool-1.5.22.
17190         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17191
17192 2007-03-01  Bruno Haible  <bruno@clisp.org>
17193
17194         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
17195         foo_CFLAGS.
17196         Reported by Ralf Wildenhues.
17197
17198 2007-03-01  Bruno Haible  <bruno@clisp.org>
17199
17200         * build-aux/install-reloc: Remove object files left over by some
17201         compilers.
17202         Reported by Ralf Wildenhues.
17203
17204 2007-03-01  Bruno Haible  <bruno@clisp.org>
17205
17206         * build-aux/install-reloc: Break long lines.
17207
17208 2007-03-01  Bruno Haible  <bruno@clisp.org>
17209
17210         * doc/relocatable.texi: Document that it may not work on OpenBSD.
17211         Reported by Ralf Wildenhues.
17212
17213 2007-03-01  Bruno Haible  <bruno@clisp.org>
17214
17215         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
17216         include ordering constraints.
17217
17218 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
17219
17220         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
17221         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
17222         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
17223         as another example.
17224         * lib/time_.h: Fix misspelling.
17225         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17226         Require gl_HEADER_TIME_H_DEFAULTS.
17227         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
17228         * m4/time_r.m4 (gl_TIME_R): Likewise.
17229         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
17230
17231 2007-03-01  Bruno Haible  <bruno@clisp.org>
17232
17233         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
17234         * m4/utimens.m4 (gl_UTIMENS): Likewise.
17235
17236 2007-03-01  Jim Meyering  <jim@meyering.net>
17237
17238         * modules/xreadlink (Maintainer): Add my name.
17239         * modules/xreadlink-with-size (Depends-on): Alphabetize.
17240
17241 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
17242             Bruno Haible  <bruno@clisp.org>
17243
17244         * build-aux/install-reloc: Compile also c-ctype.c.
17245         * build-aux/relocatable.sh.in: New file.
17246         * doc/relocatable.texi: New file.
17247         * doc/relocatable-maint.texi: New file.
17248         * doc/gnulib.texi: Include relocatable-maint.texi.
17249         * lib/progreloc.c: Include unistd.h unconditionally.
17250         * lib/relocwrapper.c: Include unistd.h unconditionally.
17251         Include c-ctype.h.
17252         (add_dotbin): Use c_tolower.
17253         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
17254         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
17255         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
17256         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
17257         to m4/relocatable-lib.m4.
17258         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
17259         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
17260         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
17261         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
17262         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
17263         * modules/relocatable: New file.
17264         * modules/relocatable-lib: New file.
17265         * modules/relocatable-script: New file.
17266
17267 2007-02-28  Bruno Haible  <bruno@clisp.org>
17268
17269         Import --enable-relocatable infrastructure.
17270         * build-aux/config.libpath: New file, from GNU gettext.
17271         * build-aux/install-reloc: New file, from GNU gettext.
17272         * build-aux/reloc-ldflags: New file, from GNU gettext.
17273         * lib/relocatable.h: New file, from GNU gettext.
17274         * lib/relocatable.c: New file, from GNU gettext.
17275         * lib/relocwrapper.c: New file, from GNU gettext.
17276         * m4/relocatable.m4: New file, from GNU gettext.
17277
17278 2007-02-28  Bruno Haible  <bruno@clisp.org>
17279
17280         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
17281
17282         * modules/xreadlink: New file, from GNU gettext with modifications.
17283         * lib/xreadlink.c: New file, from GNU gettext.
17284         * lib/xreadlink.h: Add comments.
17285         (xreadlink): New declaration.
17286
17287         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
17288         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
17289         lib/xreadlink-with-size.c.
17290         (configure.ac): Remove gl_XREADLINK invocation.
17291         (Makefile.am): Augment lib_SOURCES.
17292         * m4/xreadlink.m4: Remove file.
17293         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
17294         (xreadlink_with_size): Renamed from xreadink.
17295         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
17296         * modules/canonicalize (Depends-on): Replace xreadlink with
17297         xreadlink-with-size.
17298         * lib/canonicalize.c (canonicalize_filename_mode): Update.
17299
17300 2007-02-25  Jim Meyering  <jim@meyering.net>
17301
17302         * build-aux/announce-gen: When complaining about excess arguments,
17303         list them.
17304
17305 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17306
17307         * README: Document signed integer overflow situation more
17308         accurately.
17309
17310 2007-02-25  Bruno Haible  <bruno@clisp.org>
17311
17312         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
17313         'a' or 'A' conversion.
17314
17315 2007-02-25  Bruno Haible  <bruno@clisp.org>
17316
17317         * modules/filename: Renamed from modules/pathname.
17318         (Files): Replace lib/pathname.h with lib/filename.h. Replace
17319         lib/concatpath.c with lib/concat-filename.c.
17320         (Makefile.am): Update.
17321         (Include): Replace pathname.h with filename.h.
17322         * lib/filename.h: Renamed from lib/pathname.h.
17323         (concatenated_filename): Renamed from concatenated_pathname.
17324         * lib/concat-filename.c: Renamed from lib/concatpath.c.
17325         (concatenated_filename): Renamed from concatenated_pathname.
17326         * lib/findprog.c: Include filename.h instead of pathname.h.
17327         (find_in_path): Update.
17328         * lib/javacomp.c: Include filename.h instead of pathname.h.
17329         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
17330         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
17331         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
17332         is_oldgcj_14_13_usable, is_javac_usable): Update.
17333         * lib/javaexec.c: Include filename.h instead of pathname.h.
17334         (execute_java_class): Update.
17335         * modules/findprog: Update.
17336         * modules/javacomp: Update.
17337         * modules/javaexec: Update.
17338         * MODULES.html.sh (File system functions): Add 'filename', remove
17339         'pathname'.
17340
17341 2007-02-25  Bruno Haible  <bruno@clisp.org>
17342
17343         * modules/printf-frexpl-tests: New file.
17344         * tests/test-printf-frexpl.c: New file.
17345
17346         * modules/printf-frexpl: New file.
17347         * lib/printf-frexpl.h: New file.
17348         * lib/printf-frexpl.c: New file.
17349         * m4/printf-frexpl.m4: New file.
17350
17351 2007-02-25  Bruno Haible  <bruno@clisp.org>
17352
17353         * modules/printf-frexp-tests: New file.
17354         * tests/test-printf-frexp.c: New file.
17355
17356         * modules/printf-frexp: New file.
17357         * lib/printf-frexp.h: New file.
17358         * lib/printf-frexp.c: New file.
17359         * m4/printf-frexp.m4: New file.
17360
17361 2007-02-25  Bruno Haible  <bruno@clisp.org>
17362
17363         Assume automake >= 1.10 for the tests.
17364         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
17365         * modules/arctwo-tests: Likewise.
17366         * modules/argp-tests: Likewise.
17367         * modules/avltree-list-tests: Likewise.
17368         * modules/avltree-oset-tests: Likewise.
17369         * modules/avltreehash-list-tests: Likewise.
17370         * modules/carray-list-tests: Likewise.
17371         * modules/crc-tests: Likewise.
17372         * modules/des-tests: Likewise.
17373         * modules/gc-arcfour-tests: Likewise.
17374         * modules/gc-arctwo-tests: Likewise.
17375         * modules/gc-des-tests: Likewise.
17376         * modules/gc-hmac-md5-tests: Likewise.
17377         * modules/gc-hmac-sha1-tests: Likewise.
17378         * modules/gc-md2-tests: Likewise.
17379         * modules/gc-md4-tests: Likewise.
17380         * modules/gc-md5-tests: Likewise.
17381         * modules/gc-pbkdf2-sha1-tests: Likewise.
17382         * modules/gc-rijndael-tests: Likewise.
17383         * modules/gc-sha1-tests: Likewise.
17384         * modules/gc-tests: Likewise.
17385         * modules/getaddrinfo-tests: Likewise.
17386         * modules/hmac-md5-tests: Likewise.
17387         * modules/hmac-sha1-tests: Likewise.
17388         * modules/linked-list-tests: Likewise.
17389         * modules/linkedhash-list-tests: Likewise.
17390         * modules/lock-tests: Likewise.
17391         * modules/md2-tests: Likewise.
17392         * modules/md4-tests: Likewise.
17393         * modules/md5-tests: Likewise.
17394         * modules/rbtree-list-tests: Likewise.
17395         * modules/rbtree-oset-tests: Likewise.
17396         * modules/rbtreehash-list-tests: Likewise.
17397         * modules/read-file-tests: Likewise.
17398         * modules/rijndael-tests: Likewise.
17399         * modules/stdint-tests: Likewise.
17400         * modules/tls-tests: Likewise.
17401
17402 2007-02-24  Bruno Haible  <bruno@clisp.org>
17403
17404         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
17405         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
17406         function; instead check whether isnan with a double argument links.
17407         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
17408         function; instead check whether isnan with a 'long double' argument
17409         links.
17410         Reported by Eric Blake <ebb9@byu.net>.
17411
17412 2007-02-24  Bruno Haible  <bruno@clisp.org>
17413
17414         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
17415         defined.
17416         * lib/isnanl.c: Remove all code. Just include isnan.c.
17417         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
17418
17419 2007-02-25  Jim Meyering  <jim@meyering.net>
17420
17421         Avoid conflicting types for 'unsetenv' on FreeBSD.
17422         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
17423         conflicting with FreeBSD's (5.0 and 6.1) function declaration
17424         in stdlib.h.
17425
17426 2007-02-24  Bruno Haible  <bruno@clisp.org>
17427
17428         * modules/isnanl-nolibm-tests: New file.
17429         * tests/test-isnanl.c: New file.
17430
17431         * modules/isnanl-nolibm: New file.
17432         * lib/isnanl.h: New file.
17433         * lib/isnanl.c: New file.
17434         * m4/isnanl.m4: New file.
17435
17436 2007-02-24  Bruno Haible  <bruno@clisp.org>
17437
17438         * modules/isnan-nolibm-tests: New file.
17439         * tests/test-isnan.c: New file.
17440
17441         * modules/isnan-nolibm: New file.
17442         * lib/isnan.h: New file.
17443         * lib/isnan.c: New file.
17444         * m4/isnan.m4: New file.
17445
17446 2007-02-24  Bruno Haible  <bruno@clisp.org>
17447
17448         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
17449         assume that an exponent fits in 20 bits.
17450
17451 2007-02-24  Jim Meyering  <jim@meyering.net>
17452
17453         * m4/regex.m4: Update the description of the configure-time option,
17454         --without-included-regex, to state accurately what the defaults are,
17455         and perhaps to give people an idea why using this option is risky.
17456
17457 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17458
17459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
17460         loops on small arguments.  This attempts to avoid the problem
17461         Bruno Haible reported for AIX 4.3.2 in
17462         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
17463
17464 2007-02-23  Bruno Haible  <bruno@clisp.org>
17465
17466         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
17467         Needed for help2man.
17468
17469 2007-02-23  Karl Berry  <karl@gnu.org>
17470
17471         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
17472         exists, foo.h should be cvs-ignored, not committed.
17473
17474 2007-02-23  Eric Blake  <ebb9@byu.net>
17475
17476         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
17477         * lib/stat-time.h (includes): Likewise.
17478         * lib/utimecmp.c (includes): Likewise.
17479         * lib/utimens.h (includes): Likewise.
17480         * lib/getdate.y (includes): Also include "timespec.h" for use
17481         internal to the module.
17482         * modules/utimens (Depends-on): Revert yesterday's patch.
17483         * modules/nanosleep (Depends-on): Add missing dependency.
17484
17485 2007-02-22  Bruno Haible  <bruno@clisp.org>
17486
17487         * lib/glob.c: Don't include getlogin_r.h.
17488
17489 2007-02-22  Jim Meyering  <jim@meyering.net>
17490
17491         * modules/utimens (Depends-on): Add timespec, required for
17492         utimens.h's inclusion of timespec.h.
17493
17494 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
17495
17496         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
17497         long unreadable paths in GNU/Linux.  Problem reported by Andreas
17498         Schwab in
17499         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
17500         I'll try to think of a better way to fix the Solaris problem.
17501
17502         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
17503         like glibc; on Solaris 10, it fails with errno == EINVAL.
17504         POSIX says the behavior is unspecified if the first argument is NULL,
17505         so play it safe and never pass NULL to the system getcwd.
17506
17507 2007-02-21  Jim Meyering  <jim@meyering.net>
17508
17509         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
17510         of gettimeofday.  It would conflict with the one now always
17511         provided via sys_time_.h.  Reported by Matthew Woehlke, as
17512         an IRIX 6.5 build failure.
17513
17514 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17515
17516         Minor fixups to port to Solaris 10 with Sun C 5.8.
17517         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
17518         * modules/getcwd (Depends-on): Add dirfd.
17519         * lib/putenv.c (putenv): #undef it.
17520         (rpl_putenv): New decl.
17521         (malloc, free): Include <stdlib.h> rather than prototyping separately.
17522
17523 2007-02-20  Bruno Haible  <bruno@clisp.org>
17524
17525         * modules/stdio-tests: New file.
17526         * tests/test-stdio.c: New file.
17527
17528         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
17529         (Depends-on): Add stdio.
17530         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17531         (Include): Use <stdio.h> instead of vsnprintf.h.
17532         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17533         HAVE_DECL_VSNPRINTF.
17534         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
17535
17536         * modules/snprintf (Files): Remove lib/snprintf.h.
17537         (Depends-on): Add stdio.
17538         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17539         (Include): Use <stdio.h> instead of snprintf.h.
17540         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17541         HAVE_DECL_SNPRINTF.
17542         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
17543         * lib/getaddrinfo.c: Likewise.
17544
17545         * modules/stdio: New file.
17546         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
17547         * lib/snprintf.h: Remove file.
17548         * lib/vsnprintf.h: Remove file.
17549         * lib/.cppi-disable: Remove snprintf.h.
17550         * m4/stdio_h.m4: New file.
17551         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
17552
17553 2007-02-20  Jim Meyering  <jim@meyering.net>
17554
17555         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
17556         used by e.g., mingw.  From Bruno Haible.
17557
17558 2007-02-19  Bruno Haible  <bruno@clisp.org>
17559
17560         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
17561         warnings.
17562         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17563
17564 2007-02-19  Bruno Haible  <bruno@clisp.org>
17565
17566         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
17567         from mingw users.
17568
17569 2007-02-19  Bruno Haible  <bruno@clisp.org>
17570
17571         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
17572         warnings.
17573         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
17574
17575 2007-02-19  Jim Meyering  <jim@meyering.net>
17576
17577         Don't use FD after a successful "fdopendir (fd)".
17578         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
17579         Reset it by calling dirfd on the just-obtained DIR*.
17580
17581         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
17582         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
17583
17584 2007-02-18  Bruno Haible  <bruno@clisp.org>
17585
17586         * lib/readlink.c: Include <unistd.h>.
17587         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
17588         HAVE_READLINK.
17589         * modules/readlink (Depends-on): Add unistd.
17590         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17591         (Include): Add <unistd.h>.
17592
17593         * lib/getlogin_r.h: Remove file.
17594         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
17595         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
17596         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
17597         HAVE_DECL_GETLOGIN_R.
17598         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
17599         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17600         (Include): Use <unistd.h> instead of getlogin_r.h.
17601
17602         * lib/getcwd.h: Remove file.
17603         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
17604         * lib/xgetcwd.c: Likewise.
17605         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
17606         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
17607         * modules/getcwd (Files): Remove lib/getcwd.h.
17608         (Depends-on): Add unistd.
17609         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17610         (Include): Use <unistd.h> instad of getcwd.h.
17611
17612         * lib/ftruncate.c: Include <unistd.h> first.
17613         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
17614         Set HAVE_FTRUNCATE.
17615         * modules/ftruncate (Depends-on): Add unistd.
17616         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17617
17618         * lib/fchdir.c: Include <unistd.h> first.
17619         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
17620         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
17621         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
17622         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17623         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
17624
17625         * lib/dup2.c: Include <unistd.h> first.
17626         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
17627         HAVE_DUP2.
17628         * modules/dup2 (Depends-on): Add unistd.
17629         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17630
17631         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
17632         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
17633         REPLACE_CHOWN. Don't define chown as a macro here.
17634         * modules/chown (Depends-on): Add unistd.
17635         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17636
17637         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
17638         Add definition for GL_LINK_WARNING.
17639         (chown, dup2): New declarations.
17640         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
17641         link warning.
17642         (ftruncate): New declaration.
17643         (getcwd): New declaration, taken from old getcwd.h.
17644         (getlogin_r): New declaration, taken from old getlogin_r.h.
17645         (readlink): New declaration.
17646         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
17647         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
17648         (gl_PREREQ_UNISTD): Remove macro.
17649         (gl_UNISTD_MODULE_INDICATOR): New macro.
17650         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
17651         many new variables. Don't set UNISTD_H.
17652         * modules/unistd (Description): Change.
17653         (Depends-on): Add link-warning.
17654         (configure.ac): Update.
17655         (Makefile.am): Create unistd.h always. Substitute many new variables
17656         into it.
17657
17658 2007-02-18  Bruno Haible  <bruno@clisp.org>
17659
17660         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
17661         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
17662         HAVE_GETSUBOPT.
17663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
17664         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
17665         * lib/getsubopt.h: Remove file.
17666         * modules/getsubopt (Files): Remove lib/getsubopt.h.
17667         (Depends-on): Add stdlib.
17668         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17669         (Includes): Use <stdlib.h> instead of getsubopt.h.
17670         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
17671         Set HAVE_GETSUBOPT.
17672         * lib/getsubopt.c: Don't include getsubopt.h.
17673
17674 2007-02-18  Bruno Haible  <bruno@clisp.org>
17675
17676         * modules/fchdir (Depends-on): Add dup2.
17677
17678 2007-02-18  Bruno Haible  <bruno@clisp.org>
17679
17680         * lib/stdlib_.h: Handle glibc's special invocation convention
17681         specially.
17682
17683 2007-02-18  Bruno Haible  <bruno@clisp.org>
17684
17685         * modules/stdlib-tests: New file.
17686         * tests/test-stdlib.c: New file.
17687
17688         * modules/mkstemp (Files): Remove lib/mkstemp.h.
17689         (Depends-on): Add stdlib.
17690         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17691         (Includes): Use <stdlib.h> instead of mkstemp.h.
17692         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17693         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
17694         * lib/mkstemp.c: Don't include mkstemp.h.
17695         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
17696         * lib/stdlib--.h: Don't include mkstemp.h.
17697
17698         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
17699         (Depends-on): Add stdlib.
17700         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17701         (Includes): Use <stdlib.h> instead of mkdtemp.h.
17702         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17703         HAVE_MKDTEMP.
17704         * lib/mkdtemp.c: Don't include mkdtemp.h.
17705         * lib/clean-temp.c: Don't include mkdtemp.h.
17706
17707         * modules/exit (Files): Remove lib/exit.h.
17708         (Depends-on): Add stdlib.
17709         (Makefile.am): Remove lib_SOURCES.
17710         (Include): Use <stdlib.h> instead of exit.h.
17711         * lib/argmatch.c: Don't include exit.h.
17712         * lib/execute.c: Likewise.
17713         * lib/pagealign_alloc.c: Likewise.
17714         * lib/pipe.c: Likewise.
17715         * lib/wait-process.c: Likewise.
17716         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
17717         * lib/exitfail.c: Likewise.
17718         * lib/savewd.c: Likewise.
17719         * lib/xsetenv.c: Likewise.
17720
17721         * modules/stdlib: New file.
17722         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
17723         and extra comments about mkstemp().
17724         * lib/exit.h: Remove file.
17725         * lib/mkdtemp.h: Remove file.
17726         * lib/mkstemp.h: Remove file.
17727         * m4/stdlib_h.m4: New file.
17728         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
17729
17730 2007-02-18  Bruno Haible  <bruno@clisp.org>
17731
17732         * modules/math-tests: New file.
17733         * tests/test-math.c: New file.
17734
17735         * modules/math: New file.
17736         * modules/mathl (Files): Remove lib/mathl.h.
17737         (Depends-on): Add math.
17738         (Makefile.am): Don't mention mathl.h.
17739         (Include): Use <math.h> instead of mathl.h.
17740         * lib/math_.h: New file.
17741         * lib/mathl.h: Remove file.
17742         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
17743         mathl.h.
17744         * lib/asinl.c: Likewise.
17745         * lib/atanl.c: Likewise.
17746         * lib/ceill.c: Likewise.
17747         * lib/cosl.c: Likewise.
17748         * lib/expl.c: Likewise.
17749         * lib/floorl.c: Likewise.
17750         * lib/frexpl.c: Likewise.
17751         * lib/ldexpl.c: Likewise.
17752         * lib/logl.c: Likewise.
17753         * lib/sincosl.c: Likewise.
17754         * lib/sinl.c: Likewise.
17755         * lib/sqrtl.c: Likewise.
17756         * lib/tanl.c: Likewise.
17757         * lib/trigl.c: Likewise.
17758         * m4/math_h.m4: New file.
17759         * MODULES.html.sh (Mathematics): Add math.
17760
17761 2007-02-17  Bruno Haible  <bruno@clisp.org>
17762
17763         * modules/wctype-tests: New file.
17764         * tests/test-wctype.c: New file.
17765
17766         * modules/wchar-tests: New file.
17767         * tests/test-wchar.c: New file.
17768
17769         * modules/unistd-tests: New file.
17770         * tests/test-unistd.c: New file.
17771
17772         * modules/time-tests: New file.
17773         * tests/test-time.c: New file.
17774
17775         * modules/sysexits-tests: New file.
17776         * tests/test-sysexits.c: New file.
17777
17778         * modules/sys_time-tests: New file.
17779         * tests/test-sys_time.c: New file.
17780
17781         * modules/sys_stat-tests: New file.
17782         * tests/test-sys_stat.c: New file.
17783
17784         * modules/sys_socket-tests: New file.
17785         * tests/test-sys_socket.c: New file.
17786
17787         * modules/sys_select-tests: New file.
17788         * tests/test-sys_select.c: New file.
17789
17790         * modules/string-tests: New file.
17791         * tests/test-string.c: New file.
17792
17793         * modules/stdbool-tests: New file.
17794         * tests/test-stdbool.c: New file.
17795
17796         * modules/netinet_in-tests: New file.
17797         * tests/test-netinet_in.c: New file.
17798
17799         * modules/inttypes-tests: New file.
17800         * tests/test-inttypes.c: New file.
17801
17802         * modules/fcntl-tests: New file.
17803         * tests/test-fcntl.c: New file.
17804
17805         * modules/byteswap-tests: New file.
17806         * tests/test-byteswap.c: New file.
17807
17808         * modules/arpa_inet-tests: New file.
17809         * tests/test-arpa_inet.c: New file.
17810
17811 2007-02-17  Bruno Haible  <bruno@clisp.org>
17812
17813         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
17814         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
17815         if the corresponding module is not enabled. Emit link warnings if
17816         the function is used nevertheless.
17817         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
17818         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
17819         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
17820         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
17821         * modules/inttypes (Depends-on): Add link-warning.
17822         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17823         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
17824         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
17825         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
17826         * modules/imaxdiv (configure.ac): Likewise.
17827         * modules/strtoimax (configure.ac): Likewise.
17828         * modules/strtoumax (configure.ac): Likewise.
17829
17830 2007-02-17  Bruno Haible  <bruno@clisp.org>
17831
17832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
17833         gl_STRING_MODULE_INDICATOR_DEFAULTS.
17834         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
17835         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
17836
17837 2007-02-17  Bruno Haible  <bruno@clisp.org>
17838
17839         * modules/link-warning: New file.
17840         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
17841         * lib/string_.h (GL_LINK_WARNING): Remove definition.
17842         * modules/string (Depends-on): Add link-warning.
17843         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17844         string.h.
17845         * MODULES.html.sh (Support for building libraries and executables): Add
17846         link-warning.
17847
17848 2007-02-17  Bruno Haible  <bruno@clisp.org>
17849
17850         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
17851         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
17852         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
17853         long lines.
17854
17855 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
17856             Bruno Haible  <bruno@clisp.org>
17857
17858         * modules/tmpfile: New file.
17859         * lib/tmpfile.c: New file.
17860         * m4/tmpfile.m4: New file.
17861         * MODULES.html.sh (func_all_modules): New section "Input/output".
17862
17863 2007-02-15  Bruno Haible  <bruno@clisp.org>
17864
17865         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
17866         (supports_delete_on_close): New function.
17867         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
17868
17869 2007-02-14  Bruno Haible  <bruno@clisp.org>
17870
17871         * modules/mbspcasecmp-tests: New file.
17872         * tests/test-mbspcasecmp.sh: New file.
17873         * tests/test-mbspcasecmp.c: New file.
17874
17875         New module mbspcasecmp.
17876         * modules/mbspcasecmp: New file.
17877         * lib/mbspcasecmp.c: New file.
17878         * lib/string_.h (strncasecmp): Change warning message.
17879         (mbspcasecmp): New declaration.
17880         * m4/mbspcasecmp.m4: New file.
17881         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17882         GNULIB_MBSPCASECMP.
17883         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
17884         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
17885
17886 2007-02-14  Bruno Haible  <bruno@clisp.org>
17887
17888         * modules/mbsncasecmp-tests: New file.
17889         * tests/test-mbsncasecmp.sh: New file.
17890         * tests/test-mbsncasecmp.c: New file.
17891
17892         New module mbsncasecmp.
17893         * modules/mbsncasecmp: New file.
17894         * lib/mbsncasecmp.c: New file.
17895         * lib/string_.h (mbsncasecmp): New declaration.
17896         * m4/mbsncasecmp.m4: New file.
17897         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17898         GNULIB_MBSNCASECMP.
17899         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
17900         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
17901
17902 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17903
17904         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
17905         Verify that it doesn't overlap with our flags.
17906         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
17907         do not have the desired effect in multibyte locales; instead, use
17908         mbscasecmp.
17909         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
17910         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
17911         we don't require GNU fnmatch ourselves (if our users require it, they
17912         should do so explicitly).
17913
17914         Fix regex code so it doesn't rely on strcasecmp.
17915         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
17916         Otherwise, include gnulib's langinfo.h.
17917         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
17918         undesirable behavior in non-C locales.  Instead, rely on localecharset.
17919         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
17920         * modules/regex (FILES): Remove m4/codeset.m4.
17921         (Depends-on): Add localcharset.  Remove strcase.
17922
17923 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17924
17925         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
17926         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17927
17928 2007-02-13  Bruno Haible  <bruno@clisp.org>
17929
17930         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
17931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17932
17933 2007-02-12  Bruno Haible  <bruno@clisp.org>
17934
17935         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17936         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
17937         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
17938         time warning rather than a link error.
17939
17940 2007-02-12  Bruno Haible  <bruno@clisp.org>
17941
17942         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
17943         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17944         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17945
17946 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17947
17948         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
17949         args, not 2.
17950
17951 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17952
17953         New module 'time', so that apps can include <time.h> as per
17954         POSIX and GNU instead of separate include files like time_r.h
17955         and timegm.h.  This implementation tries out a simpler approach
17956         for replacing decls in standard include files (as compared to
17957         the string module), somewhat as an experiment.
17958
17959         * config/srclist.txt: Comment out mktime.c for now.
17960         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
17961         since it doesn't apply any more.  Use generic wording instead.
17962         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
17963         'time'.
17964         * lib/time_.h, m4/time_h.m4, modules/time: New files.
17965         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
17966         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
17967         Don't include <sys/types.h>; no longer needed since we assume C89.
17968         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
17969         * lib/strftime.c: Likewise.
17970         * lib/time_r.c: Likewise.
17971         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
17972         * lib/nanosleep.c: Include <time.h> first, to check interface.
17973         * lib/strptime.c: Likewise.
17974         * lib/time_r.c: Likewise.
17975         * lib/timegm.c: Likewise.
17976         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
17977         needed.
17978         * lib/timegm.c: Don't include timegm.h; no longer needed.
17979         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
17980         time.h now handles any problems in that area.
17981         (struct timespec, nanosleep): Remove; time.h now arranges for these.
17982         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
17983         that time.h defines struct timespec.
17984         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
17985         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
17986         handles that.
17987         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
17988         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
17989         needed.  Set REPLACE_LOCALTIME.
17990         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
17991         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
17992         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
17993         nanosleep; time_h.m4 now does that.  Don't require
17994         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
17995         module handles this now.
17996         * modules/getdate (Depends-on): Remove timespec.  Add time.
17997         * modules/nanosleep (Depends-on): Likewise.
17998         * modules/stat-time (Depends-on): Likewise.
17999         * modules/nanosleep (Include): Include time.h, not timespec.h.
18000         * modules/strptime (Files): Remove lib/strptime.h.
18001         (Depends-on): Add extensions, time.
18002         (Include): Include time.h, not strptime.h.
18003         * modules/time_r (Files): Remove lib/time_r.h.
18004         (Depends-on): Add time.
18005         (Include): Include time.h, not time_r.h.
18006         * modules/timegm: Likewise.
18007         * modules/timespec (Description): Now does timespec-related decls
18008         of our own, instead of struct timespec itself.
18009         (Depends-on): Add time; remove extensions.
18010         (Maintainer): Add self.
18011         * modules/utimecmp (Depends-on): Add time; remove timespec.
18012         * modules/utimens (Depends-on): Likewise.
18013         * modules/xnanosleep (Depends-on): Likewise.
18014
18015 2007-02-11  Bruno Haible  <bruno@clisp.org>
18016
18017         * lib/c-strstr.c: Include allocsa.h.
18018         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18019         * lib/c-strcasestr.c: Include allocsa.h.
18020         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18021         * lib/strcasestr.c: Include allocsa.h.
18022         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18023         * lib/mbsstr.c: Include allocsa.h.
18024         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18025         allocsa/freesa instead of malloc/free.
18026         * lib/mbscasestr.c: Include allocsa.h.
18027         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18028         allocsa/freesa instead of malloc/free.
18029         * modules/c-strstr (Depends-on): Add allocsa.
18030         * modules/c-strcasestr (Depends-on): Likewise.
18031         * modules/strcasestr (Depends-on): Likewise.
18032         * modules/mbsstr (Depends-on): Likewise.
18033         * modules/mbscasestr (Depends-on): Likewise.
18034
18035 2007-02-11  Bruno Haible  <bruno@clisp.org>
18036
18037         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
18038
18039         * modules/mbsspn-tests: New file.
18040         * tests/test-mbsspn.sh: New file.
18041         * tests/test-mbsspn.c: New file.
18042
18043 2007-02-11  Bruno Haible  <bruno@clisp.org>
18044
18045         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
18046
18047         * modules/mbspbrk-tests: New file.
18048         * tests/test-mbspbrk.sh: New file.
18049         * tests/test-mbspbrk.c: New file.
18050
18051 2007-02-11  Bruno Haible  <bruno@clisp.org>
18052
18053         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
18054         unneeded cast.
18055
18056         * modules/mbscspn-tests: New file.
18057         * tests/test-mbscspn.sh: New file.
18058         * tests/test-mbscspn.c: New file.
18059
18060 2007-02-11  Bruno Haible  <bruno@clisp.org>
18061
18062         * modules/mbscasecmp-tests: New file.
18063         * tests/test-mbscasecmp.sh: New file.
18064         * tests/test-mbscasecmp.c: New file.
18065
18066 2007-02-11  Bruno Haible  <bruno@clisp.org>
18067
18068         Ensure O(n) worst-case complexity of mbscasestr.
18069         * lib/mbscasestr.c: Include stdbool.h.
18070         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18071         functions.
18072         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
18073         the bookkeeping indicates that it's worth it.
18074         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
18075
18076         * modules/mbscasestr-tests: New file.
18077         * tests/test-mbscasestr1.c: New file.
18078         * tests/test-mbscasestr2.sh: New file.
18079         * tests/test-mbscasestr2.c: New file.
18080         * tests/test-mbscasestr3.sh: New file.
18081         * tests/test-mbscasestr3.c: New file.
18082         * tests/test-mbscasestr4.sh: New file.
18083         * tests/test-mbscasestr4.c: New file.
18084         * m4/locale-tr.m4: New file.
18085
18086 2007-02-11  Bruno Haible  <bruno@clisp.org>
18087
18088         Ensure O(n) worst-case complexity of mbsstr.
18089         * lib/mbsstr.c: Include stdbool.h.
18090         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18091         functions.
18092         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
18093         bookkeeping indicates that it's worth it.
18094         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
18095
18096         * modules/mbsstr-tests: New file.
18097         * tests/test-mbsstr1.c: New file.
18098         * tests/test-mbsstr2.sh: New file.
18099         * tests/test-mbsstr2.c: New file.
18100         * tests/test-mbsstr3.sh: New file.
18101         * tests/test-mbsstr3.c: New file.
18102         * m4/locale-fr.m4: New file.
18103
18104 2007-02-11  Bruno Haible  <bruno@clisp.org>
18105
18106         * lib/mbsrchr.c (mbsrchr): Fix bug.
18107
18108         * modules/mbsrchr-tests: New file.
18109         * tests/test-mbsrchr.sh: New file.
18110         * tests/test-mbsrchr.c: New file.
18111
18112 2007-02-11  Bruno Haible  <bruno@clisp.org>
18113
18114         * lib/mbschr.c (mbschr): Fix bug.
18115
18116         * modules/mbschr-tests: New file.
18117         * tests/test-mbschr.sh: New file.
18118         * tests/test-mbschr.c: New file.
18119         * m4/locale-zh.m4: New file.
18120
18121 2007-02-11  Bruno Haible  <bruno@clisp.org>
18122
18123         Support for copying multibyte string iterators.
18124         * lib/mbiter.h: Include <string.h>.
18125         (mbiter_multi_copy): New function.
18126         (mbi_copy): New macro.
18127         * lib/mbuiter.h: Include <string.h>.
18128         (mbuiter_multi_copy): New function.
18129         (mbui_copy): New macro.
18130
18131 2007-02-11  Bruno Haible  <bruno@clisp.org>
18132
18133         New module mbslen.
18134         * modules/mbslen: New file.
18135         * lib/mbslen.c: New file.
18136         * lib/string_.h (mbslen): New declaration.
18137         * m4/mbslen.m4: New file.
18138         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18139         GNULIB_MBSLEN.
18140         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
18141         * MODULES.html.sh (Internationalization functions): Add mbslen.
18142
18143 2007-02-11  Bruno Haible  <bruno@clisp.org>
18144
18145         Ensure O(n) worst-case complexity of strcasestr substitute.
18146         * lib/strcasestr.c: Include stdbool.h.
18147         (knuth_morris_pratt): New function.
18148         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18149         bookkeeping indicates that it's worth it.
18150         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
18151
18152         * modules/strcasestr-tests: New file.
18153         * tests/test-strcasestr.c: New file.
18154
18155 2007-02-11  Bruno Haible  <bruno@clisp.org>
18156
18157         Ensure O(n) worst-case complexity of c_strcasestr.
18158         * lib/c-strcasestr.c: Include stdbool.h, string.h.
18159         (knuth_morris_pratt): New function.
18160         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
18161         the bookkeeping indicates that it's worth it.
18162         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
18163
18164         * modules/c-strcasestr-tests: New file.
18165         * tests/test-c-strcasestr.c: New file.
18166
18167 2007-02-11  Bruno Haible  <bruno@clisp.org>
18168
18169         Ensure O(n) worst-case complexity of c_strstr.
18170         * lib/c-strstr.c: Include stdbool.h, string.h.
18171         (knuth_morris_pratt): New function.
18172         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18173         bookkeeping indicates that it's worth it.
18174         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
18175
18176         * lib/c-strstr.c: Complete rewrite for maintainability.
18177
18178         * modules/c-strstr-tests: New file.
18179         * tests/test-c-strstr.c: New file.
18180
18181 2007-02-11  Bruno Haible  <bruno@clisp.org>
18182
18183         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
18184         5.2.1 and earlier, whereby \055 was treated just like the range
18185         delimiter '-'.
18186         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18187
18188 2007-02-08  Bruno Haible  <bruno@clisp.org>
18189
18190         * modules/regex (Depends-on): Add stdbool.
18191         Reported by Dalibor Topic <robilad@kaffe.org>.
18192
18193 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
18194
18195         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
18196         Prefer returning from main to exiting from it.
18197         Remove unnecessary parens after sizeof.
18198
18199 2007-02-05  Bruno Haible  <bruno@clisp.org>
18200
18201         New module mbssep.
18202         * modules/mbssep: New file.
18203         * lib/mbssep.c: New file.
18204         * lib/string_.h (strsep): Add a conditional link warning.
18205         (mbssep): New declaration.
18206         * m4/mbssep.m4: New file.
18207         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18208         GNULIB_MBSSEP.
18209         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
18210         * MODULES.html.sh (Internationalization functions): Add mbssep.
18211
18212 2007-02-05  Bruno Haible  <bruno@clisp.org>
18213
18214         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
18215         Optimize search in case of 1 delimiter.
18216
18217 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
18218
18219         * lib/acl.h: Include sys/types.h before sys/acl.h.
18220
18221 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
18222
18223         Merge upstream fix for glibc bugzilla #3957:
18224
18225         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
18226
18227         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
18228         bit for RE_HAT_LISTS_NOT_NEWLINE.
18229         (build_charclass_op): Remove bogus comment.
18230
18231 2007-02-05  Simon Josefsson  <simon@josefsson.org>
18232
18233         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
18234
18235 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18236
18237         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
18238         * lib/memmem.c [!defined _LIBC]: Include config.h.
18239
18240 2007-02-04  Bruno Haible  <bruno@clisp.org>
18241
18242         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
18243         warning message.
18244
18245 2007-02-04  Bruno Haible  <bruno@clisp.org>
18246
18247         New module mbstok_r.
18248         * modules/mbstok_r: New file.
18249         * lib/mbstok_r.c: New file.
18250         * lib/string_.h (strtok_r): Change argument names to match the
18251         comments. Add a conditional link warning.
18252         (mbstok_r): New declaration.
18253         * m4/mbstok_r.m4: New file.
18254         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18255         GNULIB_MBSTOK_R.
18256         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
18257         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
18258
18259 2007-02-04  Bruno Haible  <bruno@clisp.org>
18260
18261         New module mbsspn.
18262         * modules/mbsspn: New file.
18263         * lib/mbsspn.c: New file.
18264         * lib/string_.h (strspn): Add a conditional link warning.
18265         (mbsspn): New declaration.
18266         * m4/mbsspn.m4: New file.
18267         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18268         GNULIB_MBSSPN.
18269         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
18270         * MODULES.html.sh (Internationalization functions): Add mbsspn.
18271
18272 2007-02-04  Bruno Haible  <bruno@clisp.org>
18273
18274         New module mbspbrk.
18275         * modules/mbspbrk: New file.
18276         * lib/mbspbrk.c: New file.
18277         * lib/string_.h (strpbrk): Add a conditional link warning.
18278         (mbspbrk): New declaration.
18279         * m4/mbspbrk.m4: New file.
18280         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18281         GNULIB_MBSPBRK.
18282         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
18283         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
18284
18285 2007-02-04  Bruno Haible  <bruno@clisp.org>
18286
18287         New module mbscspn.
18288         * modules/mbscspn: New file.
18289         * lib/mbscspn.c: New file.
18290         * lib/string_.h (strcspn): Add a conditional link warning.
18291         (mbscspn): New declaration.
18292         * m4/mbscspn.m4: New file.
18293         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18294         GNULIB_MBSCSPN.
18295         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
18296         * MODULES.html.sh (Internationalization functions): Add mbscspn.
18297
18298 2007-02-04  Bruno Haible  <bruno@clisp.org>
18299
18300         New module mbscasestr, reduced goal of strcasestr.
18301         * modules/mbscasestr: New file.
18302         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
18303         (mbscasestr): Renamed from strcasestr.
18304         * lib/strcasestr.c: Don't include mbuiter.h.
18305         (strcasestr): Remove support for multibyte locales.
18306         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
18307         Change the conditional link warning.
18308         (mbscasestr): New declaration.
18309         * m4/mbscasestr.m4: New file.
18310         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
18311         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
18312         REPLACE_STRCASESTR.
18313         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
18314         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18315         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18316         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
18317         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
18318         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18319         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
18320         (Depends-on): Remove mbuiter.
18321         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
18322
18323 2007-02-04  Bruno Haible  <bruno@clisp.org>
18324
18325         Simplify handling of strncasecmp.
18326         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
18327         the conditional link warning.
18328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18329         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
18330         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
18331         * modules/strcase (configure.ac): Don't invoke
18332         gl_STRING_MODULE_INDICATOR.
18333         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
18334
18335 2007-02-04  Bruno Haible  <bruno@clisp.org>
18336
18337         New module mbscasecmp, reduced goal of strcasecmp.
18338         * modules/mbscasecmp: New file.
18339         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
18340         (mbscasecmp): Renamed from strcasecmp.
18341         * lib/strcasecmp.c: Don't include mbuiter.h.
18342         (strcasecmp): Remove support for multibyte locales.
18343         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
18344         Change the conditional link warning.
18345         (mbscasecmp): New declaration.
18346         * m4/mbscasecmp.m4: New file.
18347         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
18348         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
18349         REPLACE_STRCASECMP.
18350         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
18351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18352         GNULIB_MBSCASECMP.
18353         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
18354         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
18355         * modules/strcase (Files): Remove m4/mbrtowc.m4.
18356         (Depends-on): Remove mbuiter.
18357         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
18358
18359 2007-02-04  Bruno Haible  <bruno@clisp.org>
18360
18361         New module mbsstr. Remove module strstr.
18362         * modules/mbsstr: New file.
18363         * modules/strstr: Remove file.
18364         * lib/mbsstr.c: Renamed from lib/strstr.c.
18365         (mbsstr): Renamed from strstr.
18366         * lib/string_.h (strstr): Remove declaration. Change the conditional
18367         link warning.
18368         (mbsstr): New declaration.
18369         * m4/mbsstr.m4: New file.
18370         * m4/strstr.m4: Remove file.
18371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18372         REPLACE_STRSTR.
18373         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
18374         Don't initialize GNULIB_STRSTR.
18375         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
18376         substitute GNULIB_STRSTR and REPLACE_STRSTR.
18377         * MODULES.html.sh (Internationalization functions): Add mbsstr.
18378         (Support for systems lacking ANSI C 89): Remove strstr.
18379
18380 2007-02-04  Bruno Haible  <bruno@clisp.org>
18381
18382         New module mbsrchr.
18383         * modules/mbsrchr: New file.
18384         * lib/mbsrchr.c: New file.
18385         * lib/string_.h (strrchr): Add a conditional link warning.
18386         (mbsrchr): New declaration.
18387         * m4/mbsrchr.m4: New file.
18388         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18389         GNULIB_MBSRCHR.
18390         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
18391         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
18392
18393 2007-02-04  Bruno Haible  <bruno@clisp.org>
18394
18395         New module mbschr.
18396         * modules/mbschr: New file.
18397         * lib/mbschr.c: New file.
18398         * lib/string_.h (strchr): Add a conditional link warning.
18399         (mbschr): New declaration.
18400         * m4/mbschr.m4: New file.
18401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18402         GNULIB_MBSCHR.
18403         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
18404         * MODULES.html.sh (Internationalization functions): Add mbschr.
18405
18406 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18407
18408         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
18409
18410         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
18411
18412 2007-02-04  Bruno Haible  <bruno@clisp.org>
18413
18414         New module description section 'configure.ac-early'.
18415         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
18416         (func_get_autoconf_early_snippet): New function.
18417         (func_import, func_create_testdir): Use it. Remove special cases for
18418         modules 'extensions' and 'lock'.
18419         * modules/extensions (configure.ac-early): Require
18420         gl_USE_SYSTEM_EXTENSIONS.
18421         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
18422
18423 2007-02-04  Bruno Haible  <bruno@clisp.org>
18424
18425         Make use of gcj-4.3's -fsource and -ftarget option.
18426         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
18427         and if so try the options -fsource and -ftarget.
18428         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
18429         source_version, ftarget_option, target_version arguments.
18430         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
18431         (is_envjavac_oldgcj_14_14_usable): Renamed from
18432         is_envjavac_gcj_14_14_usable.
18433         (is_envjavac_oldgcj_14_13_usable): Renamed from
18434         is_envjavac_gcj_14_13_usable.
18435         (is_gcj_present): Update.
18436         (is_gcj_43, is_gcj43_usable): New functions.
18437         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
18438         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
18439         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
18440         try the options -fsource and -ftarget.
18441
18442 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18443
18444         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
18445         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
18446         larger value.
18447
18448 2007-02-03  Jim Meyering  <jim@meyering.net>
18449
18450         Give tools a better chance to allocate space for very large buffers.
18451         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
18452
18453         Make pwd and readlink work also when run with an unreadable parent dir
18454         on systems with openat support.
18455         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
18456         provided getcwd function, even when we have openat support.
18457         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
18458
18459 2007-02-02  Bruno Haible  <bruno@clisp.org>
18460
18461         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18462         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
18463         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
18464         portability problems if one of these functions is only used on specific
18465         platforms.
18466         Reported by Paul Eggert.
18467
18468 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
18469
18470         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
18471         is causing more trouble than it's curing.
18472         * lib/regex_internal.h (__mempcpy): Remove.
18473         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
18474         (and make the code a tad smaller to boot).
18475         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
18476
18477 2007-02-02  Jim Meyering  <jim@meyering.net>
18478
18479         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
18480         section, not in the Makefile.am: one.
18481
18482 2007-02-02  Eric Blake  <ebb9@byu.net>
18483
18484         * lib/strchrnul.c: Always include config.h first.
18485
18486         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
18487         gnulib strstr is not necessary here.
18488
18489 2007-02-02  Simon Josefsson  <simon@josefsson.org>
18490
18491         * m4/socklen.m4: Fix typo.
18492
18493 2007-02-02  Eric Blake  <ebb9@byu.net>
18494
18495         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
18496         * modules/netinet_in (Makefile.am): Likewise.
18497
18498 2007-02-01  Bruno Haible  <bruno@clisp.org>
18499
18500         * lib/string_.h (GL_LINK_WARNING): New macro.
18501         (strcasecmp, strstr, strcasestr): If provided by the system,
18502         conditionally define as a macro that leads to a warning instead of to
18503         an error.
18504         (strncasecmp): Conditionally define as a macro that leads to a warning.
18505
18506 2007-02-01  Karl Berry  <karl@gnu.org>
18507
18508         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
18509
18510 2007-02-01  Bruno Haible  <bruno@clisp.org>
18511
18512         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
18513         renamings.
18514
18515 2007-02-01  Eric Blake  <ebb9@byu.net>
18516
18517         * modules/regex (Depends-on): Revert dependence on mempcpy.
18518         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
18519         module's definition of mempcpy.
18520         Reported by Paul Eggert.
18521
18522 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
18523
18524         * lib/string_.h: If the gnulib module XYZ is not present, undefine
18525         the symbol XYZ before redefining it.  This fixes a problem with
18526         programs that don't use XYZ, when compiled on systems that define
18527         XYZ to something else.
18528
18529 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
18530
18531         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
18532         occurs when "mkdir -m foo" creates a setgid directory that is (1)
18533         writeable to group or other and (2) is intended to have a special
18534         mode bit that is set or cleared.  In such a case, the directory
18535         should be neither group- nor other-writeable until the special
18536         mode bits are right.
18537
18538 2007-01-31  Eric Blake  <ebb9@byu.net>
18539
18540         * modules/mountlist (Depends-on): Add strstr.
18541
18542         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
18543         bug.
18544         * modules/string (Makefile.am): Remove redundant replacement.
18545         * modules/regex (Depends-on): Add mempcpy.
18546
18547 2007-01-31  Bruno Haible  <bruno@clisp.org>
18548
18549         New module description field 'Link'.
18550         * gnulib-tool (func_usage): Document --extract-link-directive.
18551         (sed_extract_prog): Recognize 'Link' directive.
18552         (func_get_link_directive): New function.
18553         (func_import): Show summary of link directives.
18554         Handle --extract-link-directive option.
18555         * modules/acl (Link): New section.
18556         * modules/clock-time (Link): New section.
18557         * modules/euidaccess (Link): New section.
18558         * modules/gettext (Link): New section.
18559         * modules/iconv (Link): New section.
18560         * modules/lock (Link): New section.
18561         * modules/nanosleep (Link): New section.
18562         * modules/readline (Link): New section.
18563
18564 2007-01-27  Bruno Haible  <bruno@clisp.org>
18565
18566         Enforce the use of gnulib modules for unportable <string.h> functions.
18567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
18568         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
18569         (gl_HEADER_STRING_H_BODY): Require it.
18570         * lib/string_.h: If the gnulib module XYZ is not present, redefine
18571         the symbol XYZ to one that gives a link error.
18572         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
18573         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
18574         * modules/mempcpy (configure.ac): Likewise.
18575         * modules/memrchr (configure.ac): Likewise.
18576         * modules/stpcpy (configure.ac): Likewise.
18577         * modules/stpncpy (configure.ac): Likewise.
18578         * modules/strcase (configure.ac): Likewise.
18579         * modules/strcasestr (configure.ac): Likewise.
18580         * modules/strchrnul (configure.ac): Likewise.
18581         * modules/strdup (configure.ac): Likewise.
18582         * modules/strndup (configure.ac): Likewise.
18583         * modules/strnlen (configure.ac): Likewise.
18584         * modules/strpbrk (configure.ac): Likewise.
18585         * modules/strsep (configure.ac): Likewise.
18586         * modules/strstr (configure.ac): Likewise.
18587         * modules/strtok_r (configure.ac): Likewise.
18588
18589 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
18590
18591         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
18592
18593 2007-01-30  Jim Meyering  <jim@meyering.net>
18594
18595         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
18596
18597 2007-01-29  Bruno Haible  <bruno@clisp.org>
18598
18599         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
18600         * lib/execute.c: Likewise.
18601         * lib/pipe.c: Likewise.
18602         * lib/printf-args.h: Likewise.
18603         * lib/printf-args.c: Likewise.
18604         * lib/printf-parse.c: Likewise.
18605         * lib/vasnprintf.c: Likewise.
18606
18607 2007-01-29  Eric Blake  <ebb9@byu.net>
18608
18609         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
18610         declaration.
18611
18612 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
18613
18614         * lib/strptime.h (strptime): Use 'restrict' for args where
18615         POSIX requires this.
18616         * lib/strptime.c (strptime): Likewise.
18617         Change license notice from LGPL to GPL, since gnulib-tool will
18618         change this as needed.
18619         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
18620         defined.
18621         Include "strptime.h" first, to check interface.
18622         Do not #undef _LIBC and _NL_CURRENT.
18623         Do not include <stdlib.h>; no longer needed.
18624         Include "time_r.h" and declare ptime_locale_status
18625         only if _LIBC is not defined.
18626         (__P): Remove unused macro.
18627         (match_string): Bring back glibc version, but use it only if _LIBC
18628         is defined.
18629         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
18630         Remove unnecessary assertion and abort() call.
18631         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
18632         * m4/strptime.m4: Fix serial number comment.
18633         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
18634         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
18635         (Depends-on): Add time_r.
18636
18637 2007-01-29  Bruno Haible  <bruno@clisp.org>
18638
18639         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18640         strptime.
18641         * modules/strptime (Depends-on): Add stdbool.
18642         * lib/strptime.h: Include <time.h> always. Add comments.
18643
18644 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18645
18646         * modules/strptime: New file.
18647         * lib/strptime.h: New file.
18648         * lib/strptime.c: New file.
18649         * m4/strptime.m4: New file.
18650
18651 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18652
18653         * MODULES.html.sh: New module mpsort.
18654         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
18655
18656         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
18657         a circularity problem with HP-UX ia64 reported by Bob Proulx in
18658         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
18659         All uses changed.
18660         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
18661         All uses changed.
18662         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
18663         to _Restrict_.
18664         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
18665         the parameter matches the prototype.
18666
18667 2007-01-28  Jim Meyering  <jim@meyering.net>
18668
18669         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
18670         sys/time.h here, reverting that part of the previous patch:
18671         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
18672
18673 2007-01-28  Bruno Haible  <bruno@clisp.org>
18674
18675         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
18676         value of $(SYS_TIME_H).
18677         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
18678         remove it conditionally, too. [added by Jim Meyering]
18679         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
18680         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18681         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
18682         GETTIMEOFDAY_REPLACEMENT to 1.
18683
18684 2007-01-28  Bruno Haible  <bruno@clisp.org>
18685
18686         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
18687         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
18688         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
18689         Set UNISTD_H instead of UNISTD_H2.
18690         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
18691
18692 2007-01-28  Bruno Haible  <bruno@clisp.org>
18693
18694         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
18695         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
18696
18697 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18698
18699         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
18700         (func_create_testdir): Ensure C locale for `grep' and `tr'
18701         character ranges.
18702         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
18703         ACLOCAL_AMFLAGS parsing state machine.
18704
18705 2007-01-27  Bruno Haible  <bruno@clisp.org>
18706
18707         * modules/unistr/base: Update.
18708
18709 2007-01-27  Bruno Haible  <bruno@clisp.org>
18710
18711         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
18712         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
18713         * modules/unistr/u32-mbtouc-unsafe: Renamed from
18714         modules/unistr/u32-mbtouc.
18715         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
18716         * lib/unistr.h: Update.
18717         * lib/linebreak.c: Update.
18718         * modules/unistr/u32-mbtouc: Renamed from
18719         modules/unistr/u32-mbtouc-safe.
18720         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
18721         * lib/unistr.h: Update.
18722         * lib/unistr/u32-to-u8.c: Update.
18723         * lib/unistr/u32-to-u16.c: Update.
18724
18725 2007-01-27  Bruno Haible  <bruno@clisp.org>
18726
18727         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
18728         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
18729         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
18730         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
18731         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
18732         * modules/unistr/u16-mbtouc-unsafe: Renamed from
18733         modules/unistr/u16-mbtouc.
18734         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
18735         * lib/unistr.h: Update.
18736         * lib/linebreak.c: Update.
18737         * modules/linebreak: Update.
18738         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
18739         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
18740         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
18741         * modules/unistr/u16-mbtouc: Renamed from
18742         modules/unistr/u16-mbtouc-safe.
18743         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
18744         * lib/unistr.h: Update.
18745         * lib/unistr/u16-to-u8.c: Update.
18746         * modules/unistr/u16-to-u8: Update.
18747         * lib/unistr/u16-to-u32.c: Update.
18748         * modules/unistr/u16-to-u32: Update.
18749
18750 2007-01-27  Bruno Haible  <bruno@clisp.org>
18751
18752         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
18753         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
18754         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
18755         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
18756         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
18757         * modules/unistr/u8-mbtouc-unsafe: Renamed from
18758         modules/unistr/u8-mbtouc.
18759         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
18760         * lib/unistr.h: Update.
18761         * lib/striconveh.c: Update.
18762         * modules/striconveh: Update.
18763         * lib/linebreak.c: Update.
18764         * modules/linebreak: Update.
18765         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
18766         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
18767         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
18768         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
18769         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
18770         * lib/unistr.h: Update.
18771         * lib/striconveh.c: Update.
18772         * modules/striconveh: Update.
18773         * lib/unistr/u8-to-u16.c: Update.
18774         * modules/unistr/u8-to-u16: Update.
18775         * lib/unistr/u8-to-u32.c: Update.
18776         * modules/unistr/u8-to-u32: Update.
18777
18778 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18779
18780         Sync from Libtool.
18781         * lib/argz.c: Do not include strings.h nor memory.h, include
18782         string.h unconditionally.  Patch by Simon Josefsson.
18783
18784 2007-01-27  Bruno Haible  <bruno@clisp.org>
18785
18786         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
18787         from gl_HEADER_STRING_H_BODY.
18788         (gl_HEADER_STRING_H_BODY): Require it.
18789         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
18790         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
18791         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
18792         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
18793         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18794         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
18795         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18796         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
18797         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
18798         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18799         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
18800         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
18801         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
18802         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18803         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18804
18805 2007-01-27  Bruno Haible  <bruno@clisp.org>
18806
18807         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
18808         check_PROGRAMS into noinst_PROGRAMS.
18809         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
18810         check_PROGRAMS in this case.
18811         (func_import): Set for_test to false.
18812         (func_create_testdir): Set for_test to true.
18813
18814 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18815             Bruno Haible  <bruno@clisp.org>
18816
18817         * modules/strcasestr (Files): Remove lib/strcasestr.h.
18818         (Depends-on): Add string.
18819         (Includes): Use <string.h> instead of strcasestr.h.
18820         * modules/string (Makefile.am): Also substitute the value of
18821         REPLACE_STRCASESTR.
18822         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
18823         assume strcasestr is declared in <string.h> not <strings.h>. Also
18824         set REPLACE_STRCASESTR.
18825         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
18826         REPLACE_STRCASESTR.
18827         * lib/strcasestr.h: Remove file.
18828         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
18829         * lib/string_.h (strcasestr): New declaration.
18830
18831 2007-01-27  Bruno Haible  <bruno@clisp.org>
18832
18833         * lib/string_.h: Use 'extern'.
18834
18835 2007-01-27  Jim Meyering  <jim@meyering.net>
18836
18837         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
18838         of set-but-not-used local, "q".
18839
18840         * lib/mempcpy.c: Include <config.h> before <string.h>.
18841         This fixes a compilation error on HP-UX, due to the system's
18842         "restrict"-using mempcpy prototype.
18843
18844 2007-01-26  Bruno Haible  <bruno@clisp.org>
18845
18846         Small optimization.
18847         * lib/javacomp.c: Include c-strstr.h.
18848          (is_envjavac_gcj): Use c_strstr instead of strstr.
18849         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
18850
18851 2007-01-26  Bruno Haible  <bruno@clisp.org>
18852
18853         * MODULES.html.sh (Unicode string functions): Add the new modules.
18854
18855         * modules/uniconv/u32-strconv-to-locale: New file.
18856         * lib/uniconv/u32-strconv-to-locale.c: New file.
18857
18858         * modules/uniconv/u16-strconv-to-locale: New file.
18859         * lib/uniconv/u16-strconv-to-locale.c: New file.
18860
18861         * modules/uniconv/u8-strconv-to-locale: New file.
18862         * lib/uniconv/u8-strconv-to-locale.c: New file.
18863
18864         * modules/uniconv/u32-strconv-from-locale: New file.
18865         * lib/uniconv/u32-strconv-from-locale.c: New file.
18866
18867         * modules/uniconv/u16-strconv-from-locale: New file.
18868         * lib/uniconv/u16-strconv-from-locale.c: New file.
18869
18870         * modules/uniconv/u8-strconv-from-locale: New file.
18871         * lib/uniconv/u8-strconv-from-locale.c: New file.
18872
18873         * modules/uniconv/u32-strconv-to-enc: New file.
18874         * lib/uniconv/u32-strconv-to-enc.c: New file.
18875         * modules/uniconv/u32-strconv-to-enc-tests: New file.
18876         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
18877
18878         * modules/uniconv/u16-strconv-to-enc: New file.
18879         * lib/uniconv/u16-strconv-to-enc.c: New file.
18880         * lib/uniconv/u-strconv-to-enc.h: New file.
18881         * modules/uniconv/u16-strconv-to-enc-tests: New file.
18882         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
18883
18884         * modules/uniconv/u8-strconv-to-enc: New file.
18885         * lib/uniconv/u8-strconv-to-enc.c: New file.
18886         * modules/uniconv/u8-strconv-to-enc-tests: New file.
18887         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
18888
18889         * modules/uniconv/u32-strconv-from-enc: New file.
18890         * lib/uniconv/u32-strconv-from-enc.c: New file.
18891         * modules/uniconv/u32-strconv-from-enc-tests: New file.
18892         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
18893
18894         * modules/uniconv/u16-strconv-from-enc: New file.
18895         * lib/uniconv/u16-strconv-from-enc.c: New file.
18896         * modules/uniconv/u16-strconv-from-enc-tests: New file.
18897         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
18898
18899         * modules/uniconv/u8-strconv-from-enc: New file.
18900         * lib/uniconv/u8-strconv-from-enc.c: New file.
18901         * lib/uniconv/u-strconv-from-enc.h: New file.
18902         * modules/uniconv/u8-strconv-from-enc-tests: New file.
18903         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
18904
18905         * modules/uniconv/u32-conv-from-enc: New file.
18906         * lib/uniconv/u32-conv-from-enc.c: New file.
18907         * modules/uniconv/u32-conv-from-enc-tests: New file.
18908         * tests/uniconv/test-u32-conv-from-enc.c: New file.
18909
18910         * modules/uniconv/u16-conv-from-enc: New file.
18911         * lib/uniconv/u16-conv-from-enc.c: New file.
18912         * lib/uniconv/u-conv-from-enc.h: New file.
18913         * modules/uniconv/u16-conv-from-enc-tests: New file.
18914         * tests/uniconv/test-u16-conv-from-enc.c: New file.
18915
18916         * modules/uniconv/u8-conv-from-enc: New file.
18917         * lib/uniconv/u8-conv-from-enc.c: New file.
18918         * modules/uniconv/u8-conv-from-enc-tests: New file.
18919         * tests/uniconv/test-u8-conv-from-enc.c: New file.
18920
18921         * modules/uniconv/base: New file.
18922         * lib/uniconv.h: New file.
18923
18924 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
18925
18926         * doc/gnulib-tool.texi (Initial import): Update to match current
18927         behavior with strdup module.
18928         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
18929         * lib/memmem.h: Remove; all uses removed.  This is now done
18930         by <string.h>.
18931         * lib/mempcpy.h: Likewise.
18932         * lib/memrchr.h: Likewise.
18933         * lib/stpcpy.h: Likewise.
18934         * lib/stpncpy.h: Likewise.
18935         * lib/strcase.h: Likewise.
18936         * lib/strchrnul.h: Likewise.
18937         * lib/strdup.h: Likewise.
18938         * lib/strndup.h: Likewise.
18939         * lib/strnlen.h: Likewise.
18940         * lib/strpbrk.h: Likewise.
18941         * lib/strsep.h: Likewise.
18942         * lib/strstr.h: Likewise.
18943         * lib/strtok_r.h: Likewise.
18944         * lib/string_.h: New file.
18945         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
18946         Rely on <string.h> instead.
18947         * lib/canon-host.c: Likewise.
18948         * lib/chdir-long.c: Likewise.
18949         * lib/concatpath.c: Likewise.
18950         * lib/exclude.c: Likewise.
18951         * lib/fchdir.c: Likewise.
18952         * lib/getaddrinfo.c: Likewise.
18953         * lib/getcwd.c: Likewise.
18954         * lib/getsubopt.c: Likewise.
18955         * lib/glob.c: Likewise.
18956         * lib/hard-locale.c: Likewise.
18957         * lib/iconvme.c: Likewise.
18958         * lib/javacomp.c: Likewise.
18959         * lib/mempcpy.c: Likewise.
18960         * lib/memrchr.c: Likewise.
18961         * lib/regex_internal.h: Likewise.
18962         * lib/stpncpy.c: Likewise.
18963         * lib/strcasecmp.c: Likewise.
18964         * lib/strchrnul.c: Likewise.
18965         * lib/strdup.c: Likewise.
18966         * lib/striconv.c: Likewise.
18967         * lib/striconveh.c: Likewise.
18968         * lib/striconveha.c: Likewise.
18969         * lib/strncasecmp.c: Likewise.
18970         * lib/strndup.c: Likewise.
18971         * lib/strnlen.c: Likewise.
18972         * lib/strsep.c: Likewise.
18973         * lib/strstr.c: Likewise.
18974         * lib/strtok_r.c: Likewise.
18975         * lib/userspec.c: Likewise.
18976         * lib/w32spawn.h: Likewise.
18977         * lib/xstrndup.c: Likewise.
18978         * lib/mountlist.c (strstr): Remove decl.
18979         * m4/string_h.m4: New file.
18980         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
18981         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
18982         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
18983         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
18984         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
18985         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
18986         Set REPLACE_STRCASECMP if necessary.
18987         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
18988         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
18989         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
18990         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
18991         HAVE_DECL_STRDUP if necessary.
18992         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
18993         since gl_FUNC_STRNDUP does that now.
18994         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
18995         Check for decl here...
18996         (gl_PREREQ_STRNLEN): ... not here.
18997         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
18998         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
18999         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
19000         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
19001         necessary.
19002         * modules/string: New file.
19003         * modules/memmem (Files): Remove special-purpose include file.
19004         (Depends-on): Add string.
19005         (Include): Include <string.h>, not the removed file.
19006         * modules/mempcpy: Likewise.
19007         * modules/memrchr: Likewise.
19008         * modules/stpcpy: Likewise.
19009         * modules/stpncpy: Likewise.
19010         * modules/strcase: Likewise.
19011         * modules/strchrnul: Likewise.
19012         * modules/strdup: Likewise.
19013         * modules/strndup: Likewise.
19014         * modules/strnlen: Likewise.
19015         * modules/strpbrk: Likewise.
19016         * modules/strsep: Likewise.
19017         * modules/strstr: Likewise.
19018         * modules/strtok_r: Likewise.
19019         * tests/test-dirname.c: Don't include "strdup.h", since
19020         <string.h> now suffices.
19021         * tests/test-memmem.c: Don't include "memmem.h", since
19022         <string.h> now suffices.
19023
19024 2007-01-25  Bruno Haible  <bruno@clisp.org>
19025
19026         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
19027         *resultp is 0.
19028
19029         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
19030         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
19031         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
19032         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
19033
19034         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
19035         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
19036         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
19037         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
19038         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
19039         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
19040
19041 2007-01-24  Bruno Haible  <bruno@clisp.org>
19042
19043         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
19044         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
19045         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
19046         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
19047         gl_FUNC_FTS_CORE.
19048         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
19049         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
19050         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19051         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
19052         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
19053         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
19054         gl_FUNC_FCHOWNAT.
19055         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
19056         gl_FUNC_STRFTIME.
19057         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
19058         Reported by Ralf Wildenhues.
19059
19060 2007-01-24  Bruno Haible  <bruno@clisp.org>
19061
19062         Drop AC_REQUIRE calls that are redundant with the module dependencies.
19063         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
19064         gl_GETADDRINFO.
19065         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
19066         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
19067         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
19068
19069 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
19070
19071         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
19072         Don't use 'exit'; just return from 'main'.
19073         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
19074
19075         * lib/fnmatch_.h: Readjust white space and comments to match
19076         glibc, to avoid spurious diffs.
19077
19078 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19079
19080         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
19081         2004-12-01 change by Jakub Jelinek, since this code won't compile
19082         if !LIBC.  Problem reported by Bob Proulx.
19083
19084 2007-01-23  Bruno Haible  <bruno@clisp.org>
19085
19086         * lib/striconveh.c: Include c-strcaseeq.h.
19087         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
19088         * modules/striconveh (Depends-on): Add c-strcaseeq.
19089
19090 2007-01-23  Bruno Haible  <bruno@clisp.org>
19091
19092         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
19093
19094         * modules/c-strcaseeq: New file.
19095         * lib/c-strcaseeq.h: New file.
19096
19097         * modules/streq: New file.
19098         * lib/streq.h: New file.
19099
19100 2007-01-23  Bruno Haible  <bruno@clisp.org>
19101
19102         * modules/striconveha-tests: New file.
19103         * tests/test-striconveha.c: New file.
19104
19105         * lib/striconveha.h: Include <stdbool.h>.
19106         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
19107         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
19108         (mem_iconveha_notranslit): Renamed from mem_iconveha.
19109         (mem_iconveha): New function.
19110         (str_iconveha_notranslit): Renamed from str_iconveha.
19111         (str_iconveha): New function.
19112         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
19113         c-strcase.
19114
19115 2007-01-23  Bruno Haible  <bruno@clisp.org>
19116
19117         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
19118         encodings without forgiving before trying any encoding with handler.
19119         (str_iconveha): Try all encodings without forgiving before trying any
19120         encoding with handler.
19121
19122 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19123
19124         Import the following changes from libc.
19125
19126         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
19127
19128         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
19129
19130         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
19131
19132         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
19133         normal_bracket label.
19134
19135         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
19136
19137         [BZ #361]
19138         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
19139         to normal_bracket after fetching the next character.
19140
19141 2007-01-22  Bruno Haible  <bruno@clisp.org>
19142
19143         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
19144         argument.
19145         * lib/striconveh.c (iconv_carefully_1): New function.
19146         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
19147         argument.
19148         (str_cd_iconveh): Update.
19149         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
19150         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
19151         * tests/test-striconveh.c (MAGIC): New macro.
19152         (new_offsets): New function.
19153         (main): Test call with and without offsets.
19154
19155 2007-01-22  Bruno Haible  <bruno@clisp.org>
19156
19157         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
19158         * modules/sys_select (Makefile.am): Likewise.
19159         * modules/sys_socket (Makefile.am): Likewise.
19160         * modules/sys_time (Makefile.am): Likewise.
19161
19162 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19163
19164         * modules/gettimeofday (License): Change from GPL to LGPL, since
19165         gettimeofday is a library function.
19166
19167 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19168
19169         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
19170
19171 2007-01-21  Bruno Haible  <bruno@clisp.org>
19172
19173         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
19174
19175 2007-01-21  Bruno Haible  <bruno@clisp.org>
19176
19177         * modules/striconveha: New file.
19178         * lib/striconveha.h: New file.
19179         * lib/striconveha.c: New file.
19180         * MODULES.html.sh (Internationalization functions): Add striconveha.
19181         * lib/striconv.c (str_iconv): Optimize the case of an empty input
19182         string.
19183         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
19184
19185 2007-01-21  Bruno Haible  <bruno@clisp.org>
19186
19187         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
19188         * lib/striconveh.c (str_iconveh): Likewise.
19189
19190 2007-01-21  Bruno Haible  <bruno@clisp.org>
19191
19192         * lib/striconveh.h (mem_iconveh): New declaration.
19193         * lib/striconveh.c (mem_iconveh): New function.
19194         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
19195
19196 2007-01-21  Bruno Haible  <bruno@clisp.org>
19197
19198         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
19199
19200         * lib/striconveh.h (mem_cd_iconveh): Change specification.
19201         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
19202         original result buffer.
19203         (str_cd_iconveh): Update.
19204         * tests/test-striconveh.c (main): Update.
19205
19206         * lib/striconv.h (mem_cd_iconv): Change specification.
19207         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
19208         result buffer.
19209         (str_cd_iconv): Update.
19210         * tests/test-striconv.c (main): Update.
19211
19212 2007-01-21  Bruno Haible  <bruno@clisp.org>
19213
19214         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
19215
19216 2007-01-20  Jim Meyering  <jim@meyering.net>
19217
19218         * lib/userspec.c (parse_with_separator): If a user or group string
19219         starts with "+", skip the corresponding name-to-ID look-up, since
19220         such a look-up must fail: user and group names may not include "+".
19221
19222 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
19223
19224         * lib/poll.c: Include sys/time.h and time.h unconditionally,
19225         since we now assume the sys_time module.
19226         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
19227         check for sys/time.h; no longer needed.
19228         * modules/poll (Depends-on): Depend on sys_time.
19229
19230 2007-01-18  Bruno Haible  <bruno@clisp.org>
19231
19232         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
19233         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19234
19235         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
19236         gettimeofday.
19237
19238         * tests/test-gettimeofday.c: Include <time.h>.
19239         (dummy): Remove variable.
19240
19241         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
19242         gl_HEADER_SYS_TIME_H.
19243         (gl_HEADER_SYS_TIME_H): New macro.
19244
19245         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
19246         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19247         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19248         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
19249         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19250         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
19251         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
19252         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19253         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
19254         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
19255         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19256
19257         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
19258         last change; it caused a compilation error when cross-compiling to
19259         Cygwin.
19260
19261 2007-01-18  Jim Meyering  <jim@meyering.net>
19262
19263         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
19264         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
19265         than the race-prone "test -d sys || mkdir sys".
19266         (configure.ac): Use AC_PROG_MKDIR_P.
19267         * modules/sys_select: Likewise.
19268         * modules/sys_socket: Likewise.
19269         * modules/sys_time: Likewise.
19270
19271 2007-01-18  Eric Blake  <ebb9@byu.net>
19272
19273         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
19274         replace gettimeofday.
19275         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
19276         name, to avoid infinite recursion.
19277
19278 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
19279
19280         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
19281         module sys_time.
19282         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
19283         assume timespec.h defines struct timeval.
19284         * lib/settime.c: Likewise.
19285         * lib/utimens.c: Likewise.
19286         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
19287         since we now assume the gettimeofday module.
19288         * lib/tempname.c (__gen_tempname): Likewise.
19289         * lib/gettimeofday.h: Remove.
19290         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
19291         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
19292         Include <time.h>, for 'time()'.
19293         (localtime_buffer_addr): Also use this workaround if
19294         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
19295         to simplify the uses.  All uses changed.
19296         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
19297         that #undef is inside {}, and 'const' follows type name consistently.
19298         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
19299         (gettimeofday): Do not use the maximum possible value for
19300         tv->tv_usec, since that might break usages other than ls.c.
19301         Instead, we'll leave ls.c alone.  This undoes today's patch
19302         by Bruno.  Add a compile-time warning for 1s-clock resolution;
19303         we've never observed the problem but might as well keep the
19304         canary.
19305         * lib/nanosleep.c: Include timespec.h first, for interface check.
19306         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
19307         now assume the sys_time module.
19308         * lib/tempname.c: Likewise.
19309         * lib/timespec.h: Likewise.
19310         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
19311         needed.
19312         * lib/strftime.c: Likewise.
19313         * lib/timespec.h: Likewise.
19314         * lib/posixtm.c: Include posixtm.h first, for interface check.
19315         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
19316         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
19317         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
19318         * lib/sys_time_.h: New file.
19319         * lib/timespec.h (struct timespec): Use long int, not long.
19320         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19321         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
19322         Remove obsolescent call to AC_HEADER_TIME.
19323         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19325         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19326         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
19327         Likewise.
19328         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19329         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
19330         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
19331         into the sys_time module.  Check for gettimeofday just once.
19332         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
19333         for gettimeofday signature to just check the signature.  Merely
19334         compile it, since linking doesn't test signature.  Improve test for
19335         whether gettimeofday.o is actually needed.
19336         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
19337         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
19338         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
19339         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19340         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
19341         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
19342         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
19343         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
19344         than worrying about sys/time.h.
19345         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
19346         Don't bother worrying about TIME_WITH_SYS_TIME.
19347         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19348         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
19349         * m4/sys_time_h.m4: New file.
19350         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
19351         Don't include sys/time.h.  Return from main rather than exiting.
19352         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
19353         all uses changed.
19354         * modules/gethrxtime (Depends-on): Add sys_time.
19355         * modules/gettime (Depends-on): Likewise.
19356         * modules/gettimeofday (Depends-on): Likewise.
19357         * modules/nanosleep (Depends-on): Likewise.
19358         * modules/settime (Depends-on): Likewise.
19359         * modules/tempname (Depends-on): Likewise.
19360         * modules/utimens (Depends-on): Likewise.
19361         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
19362         (Include:) Change back to <sys/time.h>.
19363         (Maintainer:) Add self.
19364         * modules/sys_time: New file.
19365         * modules/tempname (Depends-on): Add gettimeofday.
19366         * tests/test-gettimeofday.c: Include <sys/time.h>
19367         rather than gettimeofday.h.
19368
19369 2007-01-17  Bruno Haible  <bruno@clisp.org>
19370
19371         * gnulib-tool (func_get_license): Revert last patch. Instead, let
19372         the license default to GPL.
19373         (func_create_testdir): Don't complain if a module is LGPL and its
19374         tests module depends on GPLed modules.
19375
19376 2007-01-17  Bruno Haible  <bruno@clisp.org>
19377
19378         * lib/gettimeofday.c (gettimeofday): Add code for the case
19379         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
19380         maximum possible value for tv->tv_usec, rather than the minimum one.
19381
19382 2005-10-08  Martin Lambers  <marlam@marlam.de>
19383 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19384 2007-01-16  Bruno Haible  <bruno@clisp.org>
19385
19386         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
19387         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
19388         gl_FUNC_GETTIMEOFDAY.
19389         (Include): Add gettimeofday.h.
19390         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
19391         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
19392         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
19393         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
19394         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
19395         * lib/gettimeofday.h: New file.
19396         * lib/gettimeofday.c: Include <sys/timeb.h>.
19397         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
19398         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19399         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
19400         fall back on time().
19401
19402         * tests/test-gettimeofday.c: New file.
19403         * modules/gettimeofday-tests: New file.
19404
19405 2007-01-16  Eric Blake  <ebb9@byu.net>
19406
19407         * modules/fnmatch (Depends-on): Depend on wchar.
19408         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
19409         * m4/fnmatch.m4: Likewise.
19410         * modules/mbchar (Makefile.am): Assume <wchar.h>.
19411         * m4/mbchar.m4: Likewise.
19412         * modules/mbswidth (Depends-on): Depend on wchar.
19413         * lib/mbswidth.c: Assume <wchar.h>.
19414         * m4/mbswidth.m4: Likewise.
19415         * modules/quotearg (Depends-on): Depend on wchar.
19416         * lib/quotearg.c: Assume <wchar.h>.
19417         * m4/quotearg.m4: Likewise.
19418         * modules/regex (Depends-on): Depend on wchar.
19419         * lib/regex_internal.h: Assume <wchar.h>.
19420         * m4/regex.m4: Likewise.
19421         * modules/stdint (Depends-on): Depend on wchar.
19422         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
19423         * m4/stdint.m4: Likewise.
19424         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
19425         * modules/strftime (Depends-on): Depend on wchar.
19426         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
19427         * modules/strtol (Depends-on): Depend on wchar.
19428         * lib/strtol.c: Assume <wchar.h>.
19429         * modules/wcwidth (Depends-on): Depend on wchar.
19430         * lib/wcwidth.h: Assume <wchar.h>.
19431         * m4/wcwidth.m4: Likewise.
19432
19433 2007-01-16  Bruno Haible  <bruno@clisp.org>
19434
19435         * modules/csharpexec-script: New, created from...
19436         * modules/csharpexec: ... this.
19437
19438 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
19439
19440         * modules/javaexec-script: New, created from...
19441         * modules/javaexec: ... this.
19442
19443 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19444
19445         * modules/poll (Dependencies): Add sys_select.
19446
19447 2007-01-15  Jim Meyering  <jim@meyering.net>
19448
19449         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
19450         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
19451         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
19452         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
19453
19454 2007-01-15  Bruno Haible  <bruno@clisp.org>
19455
19456         * modules/striconveh: New file.
19457         * lib/striconveh.h: New file.
19458         * lib/striconveh.c: New file.
19459         * MODULES.html.sh (Internationalization functions): Add striconveh.
19460
19461         * modules/striconveh-tests: New file.
19462         * tests/test-striconveh.c: New file.
19463
19464 2007-01-15  Bruno Haible  <bruno@clisp.org>
19465
19466         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
19467         not from GNU libiconv or GNU libc.
19468
19469 2007-01-15  Bruno Haible  <bruno@clisp.org>
19470
19471         * doc/gnulib-intro.texi (Copyright): Explain the different license
19472         terms for module descriptions, autoconf macros, tests, documentation.
19473
19474 2007-01-14  Bruno Haible  <bruno@clisp.org>
19475
19476         * modules/striconv-tests: New file.
19477         * tests/test-striconv.c: New file.
19478
19479 2007-01-14  Bruno Haible  <bruno@clisp.org>
19480
19481         * modules/iconv-tests: New file.
19482         * tests/test-iconv.c: New file.
19483
19484 2007-01-14  Bruno Haible  <bruno@clisp.org>
19485
19486         * gnulib-tool (func_get_license): For test modules, use the license of
19487         the main module.
19488
19489 2007-01-14  Bruno Haible  <bruno@clisp.org>
19490
19491         * modules/iconv (Include): Clarify that <iconv.h> can only be included
19492         if iconv is found to exist.
19493
19494 2007-01-14  Bruno Haible  <bruno@clisp.org>
19495
19496         * modules/c-ctype-tests: New file.
19497         * tests/test-c-ctype.c: New file.
19498
19499 2007-01-14  Bruno Haible  <bruno@clisp.org>
19500
19501         * modules/binary-io-tests: New file.
19502         * tests/test-binary-io.sh: New file.
19503         * tests/test-binary-io.c: New file.
19504
19505 2007-01-14  Bruno Haible  <bruno@clisp.org>
19506
19507         * modules/array-oset-tests: New file.
19508         * tests/test-array_oset.c: New file.
19509
19510 2007-01-14  Bruno Haible  <bruno@clisp.org>
19511
19512         * modules/array-list-tests: New file.
19513         * tests/test-array_list.c: New file.
19514
19515 2007-01-14  Bruno Haible  <bruno@clisp.org>
19516
19517         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
19518         and make.
19519         Reported by Simon Josefsson in
19520         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
19521
19522 2007-01-14  Bruno Haible  <bruno@clisp.org>
19523
19524         * modules/allocsa-tests: New file.
19525         * tests/test-allocsa.c: New file.
19526
19527 2007-01-14  Bruno Haible  <bruno@clisp.org>
19528
19529         * modules/fchdir (Depends-on): Add absolute-header.
19530         * modules/unistd (Depends-on): Likewise.
19531
19532 2006-12-30  Bruno Haible  <bruno@clisp.org>
19533
19534         * modules/fchdir: New file.
19535         * modules/unistd (Files): Add lib/unistd_.h.
19536         (Makefile.am): Generate unistd.h from unistd_.h.
19537         * lib/fchdir.c: New file.
19538         * lib/dirent_.h: New file.
19539         * lib/unistd_.h: New file.
19540         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
19541         * m4/fchdir.m4: New file.
19542         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
19543         (gl_HEADER_UNISTD): Invoke it.
19544         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
19545         function.
19546         * lib/backupfile.c (opendir, closedir): Undefine.
19547         * lib/chown.c (open, close): Undefine.
19548         * lib/clean-temp.c (open, close): Undefine.
19549         * lib/copy-file.c (open, close): Undefine.
19550         * lib/execute.c (open, close): Undefine.
19551         * lib/fsusage.c (open, close): Undefine.
19552         * lib/gc-gnulib.c (open, close): Undefine.
19553         * lib/getcwd.c (opendir, closedir): Undefine.
19554         * lib/glob.c (opendir, closedir): Undefine.
19555         * lib/javacomp.c (open, close): Undefine.
19556         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
19557         * lib/openat-proc.c (open, close): Undefine.
19558         * lib/pagealign_alloc.c (open, close): Undefine.
19559         * lib/pipe.c (open, close): Undefine.
19560         * lib/progreloc.c (open, close): Undefine.
19561         * lib/savedir.c (opendir, closedir): Undefine.
19562         * lib/utime.c (open, close): Undefine.
19563         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
19564
19565 2007-01-10  Bruno Haible  <bruno@clisp.org>
19566
19567         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
19568
19569 2007-01-12  Eric Blake  <ebb9@byu.net>
19570
19571         Provide a robust <wchar.h>.  Further simplifications are now
19572         possible in other modules, but not included here.
19573         * modules/wchar: New module.
19574         * m4/wchar.m4: New file.
19575         * lib/wchar_.h: Likewise.
19576         * modules/mbchar (Depends-on): Depend on wchar, as the first use
19577         of the new module.
19578         * MODULES.html.sh (Extended multibyte and wide character utilities):
19579         New section.
19580
19581 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
19582
19583         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
19584         to a reasonable default for memory allocation.
19585         (xreadlink): Don't allocate a huge buffer, to work around a buggy
19586         file system that reports garbage st_size values for symlinks.
19587         Problem reported by Liyang Hu.
19588
19589 2007-01-11  Simon Josefsson  <simon@josefsson.org>
19590
19591         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
19592         Emacs .#* auto-save files).
19593
19594 2007-01-11  Bruno Haible  <bruno@clisp.org>
19595
19596         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
19597         directory.
19598
19599 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19600
19601         Use @...@ consistently in lib/wctype_.h.
19602         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
19603         on it being set to 1 or 0.
19604         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
19605         go back to AC_SUBSTing it.
19606         * modules/wctype (Makefile.am): Undo previous change.
19607
19608 2007-01-10  Eric Blake  <ebb9@byu.net>
19609
19610         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
19611         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
19612         * modules/wctype (Makefile.am): Likewise.
19613         Reported by Chris McGuire.
19614
19615 2007-01-10  Jim Meyering  <jim@meyering.net>
19616
19617         fts.c: a small readability/maintainability improvement
19618         * lib/fts.c (fts_read): Make this code slightly more readable and
19619         maintainable by hoisting the "sp->fts_cur = p" assignments to
19620         immediately follow the statements that set P.  Derived from
19621         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
19622
19623 2007-01-10  Eric Blake  <ebb9@byu.net>
19624
19625         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
19626         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
19627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19628         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19629         Reported by Chris McGuire.
19630
19631 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19632
19633         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
19634         in sed script.
19635
19636 2007-01-09  Bruno Haible  <bruno@clisp.org>
19637
19638         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
19639         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
19640         variables.
19641         (func_module): Use them.
19642
19643 2007-01-09  Bruno Haible  <bruno@clisp.org>
19644
19645         * modules/unistr/base: New file.
19646         * lib/unistr.h: New file.
19647
19648         * modules/unistr/u8-to-u16: New file.
19649         * lib/unistr/u8-to-u16.c: New file.
19650
19651         * modules/unistr/u8-to-u32: New file.
19652         * lib/unistr/u8-to-u32.c: New file.
19653
19654         * modules/unistr/u16-to-u8: New file.
19655         * lib/unistr/u16-to-u8.c: New file.
19656
19657         * modules/unistr/u16-to-u32: New file.
19658         * lib/unistr/u16-to-u32.c: New file.
19659
19660         * modules/unistr/u32-to-u8: New file.
19661         * lib/unistr/u32-to-u8.c: New file.
19662
19663         * modules/unistr/u32-to-u16: New file.
19664         * lib/unistr/u32-to-u16.c: New file.
19665
19666         * modules/unistr/u8-check: New file.
19667         * modules/unistr/u16-check: New file.
19668         * modules/unistr/u32-check: New file.
19669         * lib/unistr/u8-check.c: New file.
19670         * lib/unistr/u16-check.c: New file.
19671         * lib/unistr/u32-check.c: New file.
19672
19673         * modules/unistr/u8-chr: New file.
19674         * modules/unistr/u16-chr: New file.
19675         * modules/unistr/u32-chr: New file.
19676         * lib/unistr/u8-chr.c: New file.
19677         * lib/unistr/u16-chr.c: New file.
19678         * lib/unistr/u32-chr.c: New file.
19679
19680         * modules/unistr/u8-cmp: New file.
19681         * modules/unistr/u16-cmp: New file.
19682         * modules/unistr/u32-cmp: New file.
19683         * lib/unistr/u8-cmp.c: New file.
19684         * lib/unistr/u16-cmp.c: New file.
19685         * lib/unistr/u32-cmp.c: New file.
19686
19687         * modules/unistr/u8-cpy: New file.
19688         * modules/unistr/u16-cpy: New file.
19689         * modules/unistr/u32-cpy: New file.
19690         * lib/unistr/u8-cpy.c: New file.
19691         * lib/unistr/u16-cpy.c: New file.
19692         * lib/unistr/u32-cpy.c: New file.
19693         * lib/unistr/u-cpy.h: New file.
19694
19695         * modules/unistr/u8-cpy-alloc: New file.
19696         * modules/unistr/u16-cpy-alloc: New file.
19697         * modules/unistr/u32-cpy-alloc: New file.
19698         * lib/unistr/u8-cpy-alloc.c: New file.
19699         * lib/unistr/u16-cpy-alloc.c: New file.
19700         * lib/unistr/u32-cpy-alloc.c: New file.
19701         * lib/unistr/u-cpy-alloc.h: New file.
19702
19703         * modules/unistr/u8-endswith: New file.
19704         * modules/unistr/u16-endswith: New file.
19705         * modules/unistr/u32-endswith: New file.
19706         * lib/unistr/u8-endswith.c: New file.
19707         * lib/unistr/u16-endswith.c: New file.
19708         * lib/unistr/u32-endswith.c: New file.
19709         * lib/unistr/u-endswith.h: New file.
19710
19711         * modules/unistr/u8-mblen: New file.
19712         * modules/unistr/u16-mblen: New file.
19713         * modules/unistr/u32-mblen: New file.
19714         * lib/unistr/u8-mblen.c: New file.
19715         * lib/unistr/u16-mblen.c: New file.
19716         * lib/unistr/u32-mblen.c: New file.
19717
19718         * modules/unistr/u8-mbtouc: New file.
19719         * modules/unistr/u16-mbtouc: New file.
19720         * modules/unistr/u32-mbtouc: New file.
19721         * lib/unistr/u8-mbtouc.c: New file.
19722         * lib/unistr/u16-mbtouc.c: New file.
19723         * lib/unistr/u32-mbtouc.c: New file.
19724
19725         * modules/unistr/u8-mbtouc-safe: New file.
19726         * modules/unistr/u16-mbtouc-safe: New file.
19727         * modules/unistr/u32-mbtouc-safe: New file.
19728         * lib/unistr/u8-mbtouc-safe.c: New file.
19729         * lib/unistr/u16-mbtouc-safe.c: New file.
19730         * lib/unistr/u32-mbtouc-safe.c: New file.
19731
19732         * modules/unistr/u8-move: New file.
19733         * modules/unistr/u16-move: New file.
19734         * modules/unistr/u32-move: New file.
19735         * lib/unistr/u8-move.c: New file.
19736         * lib/unistr/u16-move.c: New file.
19737         * lib/unistr/u32-move.c: New file.
19738         * lib/unistr/u-move.h: New file.
19739
19740         * modules/unistr/u8-next: New file.
19741         * modules/unistr/u16-next: New file.
19742         * modules/unistr/u32-next: New file.
19743         * lib/unistr/u8-next.c: New file.
19744         * lib/unistr/u16-next.c: New file.
19745         * lib/unistr/u32-next.c: New file.
19746
19747         * modules/unistr/u8-prev: New file.
19748         * modules/unistr/u16-prev: New file.
19749         * modules/unistr/u32-prev: New file.
19750         * lib/unistr/u8-prev.c: New file.
19751         * lib/unistr/u16-prev.c: New file.
19752         * lib/unistr/u32-prev.c: New file.
19753
19754         * modules/unistr/u8-set: New file.
19755         * modules/unistr/u16-set: New file.
19756         * modules/unistr/u32-set: New file.
19757         * lib/unistr/u8-set.c: New file.
19758         * lib/unistr/u16-set.c: New file.
19759         * lib/unistr/u32-set.c: New file.
19760         * lib/unistr/u-set.h: New file.
19761
19762         * modules/unistr/u8-startswith: New file.
19763         * modules/unistr/u16-startswith: New file.
19764         * modules/unistr/u32-startswith: New file.
19765         * lib/unistr/u8-startswith.c: New file.
19766         * lib/unistr/u16-startswith.c: New file.
19767         * lib/unistr/u32-startswith.c: New file.
19768         * lib/unistr/u-startswith.h: New file.
19769
19770         * modules/unistr/u8-stpcpy: New file.
19771         * modules/unistr/u16-stpcpy: New file.
19772         * modules/unistr/u32-stpcpy: New file.
19773         * lib/unistr/u8-stpcpy.c: New file.
19774         * lib/unistr/u16-stpcpy.c: New file.
19775         * lib/unistr/u32-stpcpy.c: New file.
19776         * lib/unistr/u-stpcpy.h: New file.
19777
19778         * modules/unistr/u8-stpncpy: New file.
19779         * modules/unistr/u16-stpncpy: New file.
19780         * modules/unistr/u32-stpncpy: New file.
19781         * lib/unistr/u8-stpncpy.c: New file.
19782         * lib/unistr/u16-stpncpy.c: New file.
19783         * lib/unistr/u32-stpncpy.c: New file.
19784         * lib/unistr/u-stpncpy.h: New file.
19785
19786         * modules/unistr/u8-strcat: New file.
19787         * modules/unistr/u16-strcat: New file.
19788         * modules/unistr/u32-strcat: New file.
19789         * lib/unistr/u8-strcat.c: New file.
19790         * lib/unistr/u16-strcat.c: New file.
19791         * lib/unistr/u32-strcat.c: New file.
19792         * lib/unistr/u-strcat.h: New file.
19793
19794         * modules/unistr/u8-strchr: New file.
19795         * modules/unistr/u16-strchr: New file.
19796         * modules/unistr/u32-strchr: New file.
19797         * lib/unistr/u8-strchr.c: New file.
19798         * lib/unistr/u16-strchr.c: New file.
19799         * lib/unistr/u32-strchr.c: New file.
19800
19801         * modules/unistr/u8-strcmp: New file.
19802         * modules/unistr/u16-strcmp: New file.
19803         * modules/unistr/u32-strcmp: New file.
19804         * lib/unistr/u8-strcmp.c: New file.
19805         * lib/unistr/u16-strcmp.c: New file.
19806         * lib/unistr/u32-strcmp.c: New file.
19807
19808         * modules/unistr/u8-strcpy: New file.
19809         * modules/unistr/u16-strcpy: New file.
19810         * modules/unistr/u32-strcpy: New file.
19811         * lib/unistr/u8-strcpy.c: New file.
19812         * lib/unistr/u16-strcpy.c: New file.
19813         * lib/unistr/u32-strcpy.c: New file.
19814         * lib/unistr/u-strcpy.h: New file.
19815
19816         * modules/unistr/u8-strcspn: New file.
19817         * modules/unistr/u16-strcspn: New file.
19818         * modules/unistr/u32-strcspn: New file.
19819         * lib/unistr/u8-strcspn.c: New file.
19820         * lib/unistr/u16-strcspn.c: New file.
19821         * lib/unistr/u32-strcspn.c: New file.
19822         * lib/unistr/u-strcspn.h: New file.
19823
19824         * modules/unistr/u8-strdup: New file.
19825         * modules/unistr/u16-strdup: New file.
19826         * modules/unistr/u32-strdup: New file.
19827         * lib/unistr/u8-strdup.c: New file.
19828         * lib/unistr/u16-strdup.c: New file.
19829         * lib/unistr/u32-strdup.c: New file.
19830         * lib/unistr/u-strdup.h: New file.
19831
19832         * modules/unistr/u8-strlen: New file.
19833         * modules/unistr/u16-strlen: New file.
19834         * modules/unistr/u32-strlen: New file.
19835         * lib/unistr/u8-strlen.c: New file.
19836         * lib/unistr/u16-strlen.c: New file.
19837         * lib/unistr/u32-strlen.c: New file.
19838         * lib/unistr/u-strlen.h: New file.
19839
19840         * modules/unistr/u8-strmblen: New file.
19841         * modules/unistr/u16-strmblen: New file.
19842         * modules/unistr/u32-strmblen: New file.
19843         * lib/unistr/u8-strmblen.c: New file.
19844         * lib/unistr/u16-strmblen.c: New file.
19845         * lib/unistr/u32-strmblen.c: New file.
19846
19847         * modules/unistr/u8-strmbtouc: New file.
19848         * modules/unistr/u16-strmbtouc: New file.
19849         * modules/unistr/u32-strmbtouc: New file.
19850         * lib/unistr/u8-strmbtouc.c: New file.
19851         * lib/unistr/u16-strmbtouc.c: New file.
19852         * lib/unistr/u32-strmbtouc.c: New file.
19853
19854         * modules/unistr/u8-strncat: New file.
19855         * modules/unistr/u16-strncat: New file.
19856         * modules/unistr/u32-strncat: New file.
19857         * lib/unistr/u8-strncat.c: New file.
19858         * lib/unistr/u16-strncat.c: New file.
19859         * lib/unistr/u32-strncat.c: New file.
19860         * lib/unistr/u-strncat.h: New file.
19861
19862         * modules/unistr/u8-strncmp: New file.
19863         * modules/unistr/u16-strncmp: New file.
19864         * modules/unistr/u32-strncmp: New file.
19865         * lib/unistr/u8-strncmp.c: New file.
19866         * lib/unistr/u16-strncmp.c: New file.
19867         * lib/unistr/u32-strncmp.c: New file.
19868
19869         * modules/unistr/u8-strncpy: New file.
19870         * modules/unistr/u16-strncpy: New file.
19871         * modules/unistr/u32-strncpy: New file.
19872         * lib/unistr/u8-strncpy.c: New file.
19873         * lib/unistr/u16-strncpy.c: New file.
19874         * lib/unistr/u32-strncpy.c: New file.
19875         * lib/unistr/u-strncpy.h: New file.
19876
19877         * modules/unistr/u8-strnlen: New file.
19878         * modules/unistr/u16-strnlen: New file.
19879         * modules/unistr/u32-strnlen: New file.
19880         * lib/unistr/u8-strnlen.c: New file.
19881         * lib/unistr/u16-strnlen.c: New file.
19882         * lib/unistr/u32-strnlen.c: New file.
19883         * lib/unistr/u-strnlen.h: New file.
19884
19885         * modules/unistr/u8-strpbrk: New file.
19886         * modules/unistr/u16-strpbrk: New file.
19887         * modules/unistr/u32-strpbrk: New file.
19888         * lib/unistr/u8-strpbrk.c: New file.
19889         * lib/unistr/u16-strpbrk.c: New file.
19890         * lib/unistr/u32-strpbrk.c: New file.
19891         * lib/unistr/u-strpbrk.h: New file.
19892
19893         * modules/unistr/u8-strrchr: New file.
19894         * modules/unistr/u16-strrchr: New file.
19895         * modules/unistr/u32-strrchr: New file.
19896         * lib/unistr/u8-strrchr.c: New file.
19897         * lib/unistr/u16-strrchr.c: New file.
19898         * lib/unistr/u32-strrchr.c: New file.
19899
19900         * modules/unistr/u8-strspn: New file.
19901         * modules/unistr/u16-strspn: New file.
19902         * modules/unistr/u32-strspn: New file.
19903         * lib/unistr/u8-strspn.c: New file.
19904         * lib/unistr/u16-strspn.c: New file.
19905         * lib/unistr/u32-strspn.c: New file.
19906         * lib/unistr/u-strspn.h: New file.
19907
19908         * modules/unistr/u8-strstr: New file.
19909         * modules/unistr/u16-strstr: New file.
19910         * modules/unistr/u32-strstr: New file.
19911         * lib/unistr/u8-strstr.c: New file.
19912         * lib/unistr/u16-strstr.c: New file.
19913         * lib/unistr/u32-strstr.c: New file.
19914         * lib/unistr/u-strstr.h: New file.
19915
19916         * modules/unistr/u8-strtok: New file.
19917         * modules/unistr/u16-strtok: New file.
19918         * modules/unistr/u32-strtok: New file.
19919         * lib/unistr/u8-strtok.c: New file.
19920         * lib/unistr/u16-strtok.c: New file.
19921         * lib/unistr/u32-strtok.c: New file.
19922         * lib/unistr/u-strtok.h: New file.
19923
19924         * modules/unistr/u8-uctomb: New file.
19925         * modules/unistr/u16-uctomb: New file.
19926         * modules/unistr/u32-uctomb: New file.
19927         * lib/unistr/u8-uctomb.c: New file.
19928         * lib/unistr/u16-uctomb.c: New file.
19929         * lib/unistr/u32-uctomb.c: New file.
19930
19931         * MODULES.html.sh (Unicode string functions): Add the new modules.
19932
19933 2007-01-08  Bruno Haible  <bruno@clisp.org>
19934
19935         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
19936         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
19937         subdirectories.
19938
19939 2007-01-08  Karl Berry  <karl@gnu.org>
19940
19941         * doc/error.texi: mention that main() fns must set program_name
19942         when progname is used.
19943
19944 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
19945
19946         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
19947         WCTYPE_H is empty, for the benefit of builds from non-distclean
19948         directories.  Problem reported by Eric Blake in
19949         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
19950
19951 2007-01-08  Bruno Haible  <bruno@clisp.org>
19952
19953         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
19954         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
19955         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
19956         PROVIDE_CANONICALIZE_FILENAME_MODE.
19957         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
19958
19959 2007-01-08  Bruno Haible  <bruno@clisp.org>
19960
19961         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
19962         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
19963         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
19964         * lib/fts.c: Likewise.
19965         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
19966
19967 2006-12-25  Bruno Haible  <bruno@clisp.org>
19968
19969         * modules/utf8-ucs4-safe: New file.
19970         * lib/utf8-ucs4-safe.h: New file.
19971         * lib/unistr/utf8-ucs4-safe.c: New file.
19972
19973         * modules/utf16-ucs4-safe: New file.
19974         * lib/utf16-ucs4-safe.h: New file.
19975         * lib/unistr/utf16-ucs4-safe.c: New file.
19976
19977         * MODULES.html.sh (Unicode string functions): Add the new modules.
19978
19979 2007-01-08  Bruno Haible  <bruno@clisp.org>
19980
19981         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
19982         (Depends-on): Add unitypes.
19983         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19984         (u8_mbtouc_aux): Move out to separate file.
19985         (u8_mbtouc): Use ucs4_t, uint8_t types.
19986         * lib/unistr/utf8-ucs4.c: New file.
19987
19988         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
19989         (Depends-on): Add unitypes.
19990         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19991         (u16_mbtouc_aux): Move out to separate file.
19992         (u16_mbtouc): Use ucs4_t, uint16_t types.
19993         * lib/unistr/utf16-ucs4.c: New file.
19994
19995         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
19996         (Depends-on): Add unitypes.
19997         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
19998         (u8_uctomb_aux): Move out to separate file.
19999         (u8_uctomb): Use ucs4_t, uint8_t types.
20000         * lib/unistr/ucs4-utf8.c: New file.
20001
20002         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
20003         (Depends-on): Add unitypes.
20004         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
20005         (u16_uctomb_aux): Move out to separate file.
20006         (u16_uctomb): Use ucs4_t, uint16_t types.
20007         * lib/unistr/ucs4-utf16.c: New file.
20008
20009 2006-12-25  Bruno Haible  <bruno@clisp.org>
20010
20011         * modules/unitypes: New file.
20012         * lib/unitypes.h: New file.
20013         * MODULES.html.sh (func_all_modules): New section "Unicode string
20014         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
20015         this section. Add unitypes.
20016
20017 2007-01-08  Bruno Haible  <bruno@clisp.org>
20018
20019         Avoid variable names that conflict with those from libtool.
20020         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
20021         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
20022         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
20023         library_names_spec to acl_library_names_spec, hardcode_* to
20024         acl_hardcode_*.
20025         Reported by Ralf Wildenhues.
20026
20027 2007-01-08  Bruno Haible  <bruno@clisp.org>
20028
20029         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
20030         definition.
20031         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
20032         definition.
20033         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
20034         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
20035         definition.
20036         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
20037         definition.
20038         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
20039         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
20040         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
20041         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
20042         definition.
20043         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
20044         definition.
20045         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
20046         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
20047         GC_USE_<algorithm>.
20048         * lib/gc-libgcrypt.c: Likewise.
20049         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
20050         * modules/gc-arctwo (configure.ac): Likewise.
20051         * modules/gc-des (configure.ac): Likewise.
20052         * modules/gc-hmac-md5 (configure.ac): Likewise.
20053         * modules/gc-hmac-sha1 (configure.ac): Likewise.
20054         * modules/gc-md2 (configure.ac): Likewise.
20055         * modules/gc-md4 (configure.ac): Likewise.
20056         * modules/gc-md5 (configure.ac): Likewise.
20057         * modules/gc-random (configure.ac): Likewise.
20058         * modules/gc-rijndael (configure.ac): Likewise.
20059         * modules/gc-sha1 (configure.ac): Likewise.
20060
20061 2007-01-08  Bruno Haible  <bruno@clisp.org>
20062
20063         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
20064         macro definition.
20065         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
20066         definition.
20067         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
20068         definition.
20069         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
20070         * modules/fcntl-safer (configure.ac): Likewise.
20071         * modules/fopen-safer (configure.ac): Likewise.
20072         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
20073         GNULIB_FWRITEERROR macro definition.
20074
20075 2007-01-08  Bruno Haible  <bruno@clisp.org>
20076
20077         * m4/gnulib-common.m4: New file.
20078         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
20079         (func_get_filelist): Add m4/gnulib-common.m4.
20080
20081 2007-01-08  Bruno Haible  <bruno@clisp.org>
20082
20083         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
20084         command.
20085
20086 2007-01-08  Jim Meyering  <jim@meyering.net>
20087
20088         Use a more robust test for a "can't happen" condition.
20089         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
20090         narrowed the st_size value.  Presuming the "can't happen" condition
20091         is true, that narrowing could conceivably convert an invalid st_size
20092         value into a valid one.  Instead, use a change based on Matthew
20093         Woehlke's original patch.
20094
20095         Slight readability improvement: use an assert-like macro
20096         in place of literal "abort ()" uses.
20097         * lib/fts.c (fts_assert): Define.
20098         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
20099         Use this macro instead of a bare 'abort'.
20100
20101 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
20102
20103         Don't worry about using IRIX 5.3's wctype.h broken definitions;
20104         simply work around them.
20105         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
20106         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
20107         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
20108         declaring.
20109         Don't bother to define as macros, since the standard doesn't require it.
20110         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
20111         longer worry about IRIX 5.3.
20112         (HAVE_WCTYPE_CTMP_BUG): Remove.
20113
20114 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20115
20116         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
20117         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
20118         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20119         Problems reported by Georg Schwarz for IRIX 5.3.
20120
20121         * gnulib-tool (autoconf_minversion): Take the maximum version number
20122         found, not the minimum.  Problem reported by James Youngman.
20123
20124 2007-01-03  Karl Berry  <karl@gnu.org>
20125
20126         * doc/error.texi: new file, explaining interaction with progname.
20127         * doc/gnulib.texi: include it.  Update copyright.
20128
20129 2007-01-03  Simon Josefsson  <simon@josefsson.org>
20130
20131         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
20132         AC_CANONICAL_HOST, to improve autobuild outputs.
20133
20134 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
20135             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20136
20137         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
20138         sockets, server sockets, and other file descriptors.  Count errors
20139         to compute the return value.  Reorder the code a bit to be easier
20140         to follow.  Don't set event bits that were not requested (except
20141         POLLERR and POLLHUP).
20142
20143 2007-01-01  Bruno Haible  <bruno@clisp.org>
20144
20145         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
20146
20147 2007-01-03  Jim Meyering  <jim@meyering.net>
20148
20149         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
20150
20151 2007-01-02  Bruno Haible  <bruno@clisp.org>
20152
20153         * modules/settime (Include): Require timespec.h.
20154         * modules/nanosleep (Include): Likewise.
20155
20156 2007-01-01  Bruno Haible  <bruno@clisp.org>
20157
20158         * gnulib-tool (func_emit_copyright_notice): Bump year.
20159         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
20160
20161 2007-01-01  Bruno Haible  <bruno@clisp.org>
20162
20163         Improve support for OpenBSD.
20164         * build-aux/config.rpath (libname_spec): Export.
20165         (library_names_spec): New variable. Export.
20166         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
20167         library_names_spec from the config.rpath output. Locate shared library
20168         through the name pattern in library_names_spec.
20169
20170 2007-01-01  Eric Blake  <ebb9@byu.net>
20171
20172         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
20173
20174 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20175
20176         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
20177         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
20178         assume the C locale, and avoid an "eval" that could cause trouble.
20179         Problem with SORT reported by Bob Proulx.
20180
20181         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
20182         Define.  Trivial patch from Henning Nielsen Lund, originally
20183         sent to bug-grep@gnu.org today.
20184
20185 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20186
20187         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
20188         struct stat.  Problem reported by Henning Nielsen Lund.
20189         * lib/acl.c: Include acl.h first, to check interface.  Don't
20190         bother to include sys/types.h and sys/stat.h again.
20191
20192 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20193
20194         Import the following change from libc; problem reported by
20195         Sven Verdoolaege.
20196
20197         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
20198
20199         [BZ #1373]
20200         * lib/argp.h: Remove __NTH for __argp_usage inline function.
20201
20202 2006-12-28  Jim Meyering  <jim@meyering.net>
20203
20204         * build-aux/announce-gen: Do not assume that the package
20205         builds any of tar.gz, tar.bz2, and .xdelta files.
20206         Suggestion from Simon Josefsson.
20207
20208 2006-12-28  Simon Josefsson  <simon@josefsson.org>
20209
20210         * modules/announce-gen: New file.
20211
20212 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20213
20214         * lib/mbchar.h: Just include <wctype.h>; the wctype module
20215         handles its gotchas now.
20216         * lib/mbswidth.c: Likewise.
20217         * lib/wcwidth.h: Likewise.
20218         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
20219         and iswcntrl; the wctype module does this stuff now.
20220         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20222         * modules/mbchar (Depends-on): Add wctype.
20223         * modules/mbswidth (Depends-on): Likewise.
20224         * modules/wcwidth (Depends-on): Likewise.
20225
20226 2006-12-27  Eric Blake  <ebb9@byu.net>
20227
20228         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
20229         module uses more than what <wctype.h> is required to provide.
20230
20231 2006-12-26  Eric Blake  <ebb9@byu.net>
20232
20233         * gnulib-tool (sed_extract_prog): Avoid space-tab.
20234
20235 2006-12-26  Eric Blake  <ebb9@byu.net>
20236
20237         * modules/absolute-header: New module.
20238         * modules/fcntl (Depends-on): Depend on it.
20239         * modules/inttypes (Depends-on): Likewise.
20240         * modules/stdint (Depends-on): Likewise.
20241         * modules/sys_stat (Depends-on): Likewise.
20242         * modules/wctype (Depends-on): Likewise.
20243         * MODULES.html.sh (Support for building libraries and
20244         executables): Document it.
20245
20246 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
20247
20248         * gnulib-tool (SED): Remove, undoing previous change.
20249         The problem was that it broke coreutils on Solaris, because
20250         "sed --posix" leaked into a makefile.
20251         (sed): New alias, if 'alias' and GNU sed.
20252
20253 2006-12-24  Jim Meyering  <jim@meyering.net>
20254
20255         Work around an fchownat bug in glibc-2.4:
20256         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
20257         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
20258         in spite of the -P option.
20259         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
20260         New macros.
20261         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
20262         * modules/openat (Files): Add lib/fchownat.c.
20263         * lib/openat.c (fchownat): Don't define here.  Move to...
20264         * lib/fchownat.c: ...this new file.
20265
20266 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20267
20268         Fix bug reported by Bruno Haible in
20269         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
20270         where quotearg.c didn't compile on Mac OS X 10.2 because it
20271         lacks <wchar.h> and wint_t.
20272         * lib/wctype_.h (__wctype_wint_t): New type.
20273         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
20274         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
20275         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
20276         Arg is now of type __wctype_wint_t, not wint_t.
20277         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
20278         substitute HAVE_WINT_T.
20279         * modules/wctype (Files): Add m4/wint_t.m4.
20280         (wctype.h): Substitute HAVE_WINT_T.
20281
20282 2006-12-23  Bruno Haible  <bruno@clisp.org>
20283
20284         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
20285
20286 2006-12-23  Bruno Haible  <bruno@clisp.org>
20287
20288         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
20289         S_ISLNK.
20290         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
20291         mingw.
20292
20293 2006-12-22  Bruno Haible  <bruno@clisp.org>
20294
20295         * lib/copy-file.c: Include acl.h.
20296         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
20297         Close the file descriptors only after being done with copy_acl.
20298         * modules/copy-file (Depends-on): Add acl.
20299
20300 2006-12-22  Bruno Haible  <bruno@clisp.org>
20301
20302         * gnulib-tool (SED): New variable.
20303         Use $SED instead of sed everywhere.
20304
20305 2006-12-22  Bruno Haible  <bruno@clisp.org>
20306
20307         * modules/no-c++: New file.
20308         * m4/no-c++.m4: New file.
20309         * MODULES.html.sh (Support for building libraries and executables):
20310         Add no-c++.
20311
20312 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20313
20314         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
20315         Include <limits.h>, and use its INT_MAX to rewrite the
20316         j loop so that it does not overflow 'int'.  Problem reported by
20317         Ralf Wildenhues in
20318         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
20319         Play it safe by shifting left by 1 rather than multiplying by 2,
20320         as GCC is less likely to optimize this away when the value
20321         is signed (when it assumes overflow leads to undefined behavior).
20322         Also, don't assume time_t uses two's complement.
20323
20324 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20325
20326         * MODULES.html.sh: New module wctype.
20327         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
20328         * lib/fnmatch.c: Don't bother to include <wchar.h> before
20329         <wctype.h>, since the new wctype module should fix this.
20330         * lib/quotearg.c: Include <wctype.h> unconditionally, since
20331         the wctype module should arrange for it.
20332         * lib/regex_internal.h: Likewise.
20333         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
20334         since the wctype module should handle this now.
20335         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
20336         * modules/fnmatch (Depends-on): Add wctype.
20337         * modules/quotearg (Depends-on): Likewise.
20338         * modules/regex (Depends-on): Likewise.
20339
20340 2006-12-19  Bruno Haible  <bruno@clisp.org>
20341
20342         * lib/strdup.h [C++]: Wrap definitions in extern "C".
20343         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
20344
20345 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20346
20347         * modules/savewd (Depends-on): Fix dependency on fcntl.
20348
20349 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20350
20351         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
20352         conforms to C99, rather than relying on the user's environment
20353         setting of STDINT_H.
20354
20355 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20356         and Eric Blake  <ebb9@byu.net>
20357
20358         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
20359         This is more consistent with the other defines here.
20360         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
20361         Port to z/OS.  Problem reported by Paul Gilmartin.
20362         Change local vars to use gl_ prefix rather than ac_.
20363         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
20364         with other defines.
20365         * modules/double-slash-root: New module.
20366         * modules/dirname (Files): Remove m4/double-slash-root.m4.
20367         (Depends-on): Add double-slash-root.
20368         * MODULES.html.sh (File system functions): Mention new module.
20369
20370 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
20371
20372         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
20373         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
20374         This is for the benefit of gzip, which doesn't do i18n.
20375
20376 2006-12-12  Jim Meyering  <jim@meyering.net>
20377
20378         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
20379         Reported by Andreas Schwab <schwab@suse.de>.
20380
20381 2006-12-12  Bruno Haible  <bruno@clisp.org>
20382
20383         Merge these changes.
20384         2006-09-05  Bruno Haible  <bruno@clisp.org>
20385         * lib/iconvme.c (iconv_string): No need to save and restore errno when
20386         iconv_alloc succeeded.
20387         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
20388         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
20389         test for " && dest " at the end - dest is always != NULL there. Call
20390         iconv with 4xNULL arguments initially, to reset the state. Call iconv
20391         with 2xNULL arguments, also to flush the state storage. Handle the
20392         IRIX iconv behaviour. Realloc the final result, to throw away unused
20393         memory.
20394
20395 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20396
20397         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
20398         and fchmodat unconditionally, since glibc 2.4 has them.
20399         Problem reported by Arkadiusz Miskiewicz.
20400
20401 2006-12-10  Bruno Haible  <bruno@clisp.org>
20402
20403         * gnulib-tool (func_import): Show the include files only for those
20404         modules that are copied and specified.
20405         Reported by Karl Berry.
20406
20407 2006-12-08  Jim Meyering  <jim@meyering.net>
20408
20409         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
20410         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
20411
20412         * build-aux/announce-gen: Add two new options, both optional:
20413         --bootstrap-tools=TOOL_LIST
20414               a comma-separated list of tools, e.g.,
20415               autoconf,automake,bison,gnulib
20416         --gnulib-snapshot-date=DATE
20417               if gnulib is in the bootstrap tool list,
20418               then report this as the snapshot date.
20419               If not specified, use the current date/time.
20420               If you specify a date here, be sure it's UTC.
20421
20422 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20423
20424         * tests/test-argp-2.sh: Fix test to match actual output.
20425         (func_compare): Fix sed script to be portable.
20426
20427 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20428
20429         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
20430         workaround for this case.  It is not autoconfigured now; offhand
20431         it's hard to see how to autoconfigure it.
20432
20433 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
20434
20435         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
20436         a directory that is about to be chowned.  Such a directory's
20437         initial file permissions should permit the owner only and this
20438         should not be changed until after the chown, since the group and
20439         other bits would be incorrect if they granted permission before
20440         the chown.
20441
20442         Fix porting problem for iswctype reported by Georg Schwarz in:
20443         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
20444         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
20445         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
20446         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
20447         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20448
20449 2006-12-03  Jim Meyering  <jim@meyering.net>
20450
20451         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
20452         p->fts_statp may not yet be defined.
20453         (fts_read): Instead, set it in the caller, once p->fts_statp is
20454         sure to be defined, and corresponds to a top-level directory.
20455         This bug made du -x fail.  Here's the coreutils test case:
20456         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
20457         Reported by Mike Frysinger.
20458
20459 2006-12-01  Jim Meyering  <jim@meyering.net>
20460
20461         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
20462         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
20463         Reported by Simon Josefsson.
20464
20465 2006-11-30  Jim Meyering  <jim@meyering.net>
20466
20467         * m4/warning.m4: Use the all-permissive copyright notice
20468         recommended by RMS (rather than LGPL).
20469         * m4/vararrays.m4: Likewise.
20470         * m4/flexmember.m4: Likewise.
20471
20472 2006-11-29  Bruno Haible  <bruno@clisp.org>
20473
20474         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20475         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
20476         using +=.
20477         Reported by Simon Josefsson <simon@josefsson.org>.
20478
20479 2006-11-28  James Youngman <jay@gnu.org>
20480
20481         * README: Advise users that they might find the bug-gnulib@gnu.org
20482         and autotools-announce@gnu.org mailing lists useful.
20483
20484 2006-11-28  Bruno Haible  <bruno@clisp.org>
20485
20486         * m4/ptrdiff_max.m4: Remove file.
20487
20488 2006-11-21  Bruno Haible  <bruno@clisp.org>
20489
20490         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
20491         _AC_COMPUTE_INT.
20492         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20493         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
20494         _AC_COMPUTE_INT.
20495         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20496         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
20497         _AC_COMPUTE_INT.
20498         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20499
20500 2006-11-28  Jim Meyering  <jim@meyering.net>
20501
20502         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
20503         warning from "gcc -Wshadow" about shadowing the builtin.
20504
20505 2006-11-27  Bruno Haible  <bruno@clisp.org>
20506
20507         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
20508         _AC_COMPUTE_INT.
20509         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20510
20511 2006-11-27  Bruno Haible  <bruno@clisp.org>
20512             Paul Eggert  <eggert@cs.ucla.edu>
20513
20514         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
20515
20516 2006-11-26  Bruno Haible  <bruno@clisp.org>
20517
20518         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20519         noinst_LTLIBRARIES.
20520
20521 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
20522             Bruno Haible  <bruno@clisp.org>
20523
20524         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
20525         if compiling with "gcc -ansi".
20526
20527 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
20528
20529         Fix some incompatibilities with gcc -ansi -pedantic.
20530         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
20531         if compiling pedantically with GCC, unless it's C99 or later.
20532         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
20533         it mishandles gcc -ansi -pedantic as well.
20534         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
20535         if gcc -pedantic.
20536         * lib/regexec.c (check_node_accept_bytes): Don't use auto
20537         initializers for struct if -pedantic, unless it's C99 or later.
20538
20539 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
20540
20541         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
20542         Don't close an fd more than once. Identical atimes indicate
20543         success, not failure.
20544
20545 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
20546
20547         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
20548
20549 2006-11-23  Jim Meyering  <jim@meyering.net>
20550
20551         * build-aux/announce-gen: New file.  From coreutils.
20552
20553 2006-11-22  Jim Meyering  <jim@meyering.net>
20554
20555         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
20556         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
20557         (fts_read): Use a temporary to narrow the overused st_size member
20558         before using it in a switch statement.  Reported by Matthew Woehlke.
20559
20560         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
20561         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20562
20563 2006-11-20  Bruno Haible  <bruno@clisp.org>
20564
20565         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
20566         changequote instead of pairs of brackets.
20567         Reported by Andreas Schwab <schwab@suse.de>.
20568
20569 2006-11-21  Jim Meyering  <jim@meyering.net>
20570
20571         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
20572         so as to remain compatible with older compilers.
20573         Patch from Michael Deutschmann.
20574
20575 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20576
20577         * MODULES.html.sh (File system functions): Add openat.
20578
20579         * lib/openat.h (rpl_fstatat): New macro, if
20580         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
20581         (fstatat): Define to rpl_fstatat under the same conditions,
20582         unless COMPILING_FSTATAT.
20583         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
20584         seems to have the bug.
20585         * lib/fstatat.c: New file.
20586         * modules/openat (Files): Add it.
20587
20588 2006-11-20  Bruno Haible  <bruno@clisp.org>
20589
20590         * Makefile: New file.
20591
20592 2006-11-20  Jim Meyering  <jim@meyering.net>
20593
20594         The beginnings of syntax-related checks for gnulib.
20595         * lib/Makefile: New file.
20596         * lib/t-idcache: New script.  Ensure that the two halves of
20597         idcache.c stay in sync.
20598
20599         * lib/idcache.c: Adjust comments in user- and group- portions to
20600         be more accurate, and to be consistent with one another.
20601
20602 2006-11-20  Jim Meyering  <jim@meyering.net>
20603
20604         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
20605         continue using the flexible array member (thus, this module performs
20606         half as many malloc calls), with the addition that...
20607         (getgroup, getuser): Consistently record a non-match via an empty
20608         "name" string, and map an empty string match to a NULL return value.
20609         * modules/idcache (Depends-on): Re-add flexmember.
20610
20611         * lib/idcache.c (getuser): Remove all uses of the register keyword.
20612         (getuidbyname, getgroup, getgidbyname): Likewise.
20613
20614         Use cleaner syntax: NULL rather than 0.
20615         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
20616
20617 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20618
20619         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
20620         It mishandled the case where the group was missing.
20621         Problem reported by Greg Schafer.
20622         * modules/idcache: Likewise.
20623
20624 2006-11-18  Jim Meyering  <jim@meyering.net>
20625
20626         * check-module (%exempt_header): Add exception for some
20627         conditionally-included headers.
20628
20629         * modules/i-ring (Depends-on): Add verify.
20630         (License): Change to LGPL.
20631
20632 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20633
20634         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
20635         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
20636         and inttostr.h.  Use snprintf rather than uinttostr, so that
20637         LGPLed code doesn't depend on GPLed.
20638
20639 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20640
20641         * modules/inline (License): Change from GPL to LGPL.
20642
20643 2006-11-17  Jim Meyering  <jim@meyering.net>
20644
20645         * modules/d-type (License): Switch to LGPL.
20646
20647 2006-11-15  Bruno Haible  <bruno@clisp.org>
20648
20649         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
20650
20651 2006-11-15  Eric Blake  <ebb9@byu.net>
20652
20653         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
20654         the module dependency.
20655
20656 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20657             Bruno Haible  <bruno@clisp.org>
20658
20659         * gnulib-tool (func_create_testdir): Add license consistency check.
20660
20661 2006-11-15  Eric Blake  <ebb9@byu.net>
20662
20663         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
20664         random "(cached)" in configure output.
20665
20666 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20667
20668         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
20669         test for conforming inttypes.h is both announced and cached.
20670
20671         * MODULES.html.sh (seen_modules, seen_files): New variables.
20672         (func_module): Rewrite to use a few less gnulib-tool and sed
20673         invocations.  Avoid a couple of quadratic algorithms for ...
20674         (missed_modules, missed_files): ... these, with ...
20675         (func_append, func_tmpdir): ... these new functions, from
20676         gnulib-tool.  Analogously, install traps for cleanup.
20677
20678         * tests/test-gc.c (main): Remove unused variables.
20679         * tests/test-read-file.c: Include stdlib.h, for 'free'.
20680
20681 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
20682
20683         * modules/inttostr (License): Change to LGPL.
20684
20685 2006-11-14  Eric Blake  <ebb9@byu.net>
20686
20687         * modules/tempname (License): Change to LGPL.
20688
20689 2006-11-14  Eric Blake  <ebb9@byu.net>
20690
20691         * doc/functions.texi (Function Portability): *printf functions on
20692         Cygwin now understand all POSIX size specifiers.
20693
20694 2006-11-14  Bruno Haible  <bruno@clisp.org>
20695
20696         * modules/c-ctype (License): Change to LGPL.
20697
20698 2006-11-12  Bruno Haible  <bruno@clisp.org>
20699
20700         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20701         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
20702         for GNOME libraries, for which the include files are installed in
20703         subdirectories of $prefix/include.
20704
20705 2006-11-12  Bruno Haible  <bruno@clisp.org>
20706
20707         * m4/lib-link.m4: Require at least autoconf-2.54.
20708         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
20709         name to underscores for the --with option.
20710
20711 2006-11-13  Bruno Haible  <bruno@clisp.org>
20712
20713         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
20714         the tests directory.
20715         Reported by Ralf Wildenhues.
20716
20717 2006-11-13  Bruno Haible  <bruno@clisp.org>
20718
20719         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
20720         (func_emit_initmacro_end): Undo the override here.
20721         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
20722         Works around the famous automake error in coreutils.
20723
20724 2006-11-13  Eric Blake  <ebb9@byu.net>
20725
20726         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
20727         element, not its node.
20728
20729 2006-11-12  Bruno Haible  <bruno@clisp.org>
20730
20731         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
20732         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
20733
20734 2006-11-12  Bruno Haible  <bruno@clisp.org>
20735
20736         * gnulib-tool: New option --local-symlink.
20737         (func_usage): Document it.
20738         (lsymbolic): New variable.
20739         (func_import, func_create_testdir): If --symlink was not specified,
20740         test whether --local-symlink was specified and the file comes from
20741         the local_gnulib_dir.
20742
20743 2006-11-12  Bruno Haible  <bruno@clisp.org>
20744
20745         * gnulib-tool (func_ln): New function.
20746         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
20747
20748 2006-11-12  Bruno Haible  <bruno@clisp.org>
20749
20750         Finish support for source files in subdirectories.
20751         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
20752         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
20753         AUTOMAKE_OPTIONS.
20754         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
20755
20756 2006-11-12  Bruno Haible  <bruno@clisp.org>
20757
20758         * gnulib-tool (func_get_automake_snippet): Synthesize also an
20759         EXTRA_lib_SOURCES augmentation.
20760         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
20761
20762 2006-11-12  Jim Meyering  <jim@meyering.net>
20763
20764         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
20765         file descriptors.  This also averts a failure on systems with
20766         native openat support when a traversed directory lacks "x" access.
20767         * lib/fts_.h: Include "i-ring.h"
20768         (struct FTS) [fts_fd_ring]: New member.
20769         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
20770         (FCHDIR): Add parentheses.
20771         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
20772         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
20773         When descending, rather than simply closing the previous
20774         fts_cwd_fd value, push that file descriptor onto the ring.
20775         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
20776         (fts_open): Initialize the new fd_ring member.
20777         (fts_close): Clear the ring.
20778         (fts_safe_changedir): When possible, use our new fd_ring to skip
20779         the diropen and fstat and dev/ino comparison that would normally
20780         accompany a virtual `chdir ("..")'.
20781
20782         * modules/fts (Depends-on): Add i-ring.
20783         * modules/i-ring: New module.
20784         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
20785         * m4/i-ring.m4: New file.
20786
20787 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20788
20789         * gnulib-tool (func_create_testdir): Fix replacement of
20790         `build-aux' in configure.ac.  Run autotools in gltests
20791         subdirectory.
20792         (func_create_testdir, func_create_megatestdir, test): There is
20793         no need for '--force' in most autotool invocations in a new
20794         tree.  Actually fail the whole test if any of the tools, or the
20795         configure or make stages fail.
20796
20797         Sync from Automake.
20798         * build-aux/gnupload: Revert last change.  Add pointer to upload
20799         instructions of the GNU Maintenance Instructions.
20800         Suggestion by Karl Berry.
20801
20802 2006-11-10  Jim Meyering  <jim@meyering.net>
20803
20804         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
20805
20806 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20807
20808         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
20809         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
20810         (bind_textdomain_codeset) [! ENABLE_NLS]:
20811         Evaluate all the arguments.  That way, callers get compatible behavior
20812         if the arguments have side effects.  Also, it avoids some GCC
20813         diagnostics in some cases; Joel E. Denny reported problems when Bison
20814         was configured with --enable-gcc-warnigs.
20815
20816 2006-11-10  Jim Meyering  <jim@meyering.net>
20817
20818         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
20819         relevant options in CFLAGS (like -O, -fno-inline) are taken into
20820         account.
20821
20822 2006-11-10  Jim Meyering  <jim@meyering.net>
20823
20824         * modules/inline: New file/module.
20825         * modules/xalloc (Files): Remove m4/inline.m4.
20826         (Depends-on): Add inline, instead.
20827         * modules/oset: Likewise.
20828         * modules/list: Likewise.
20829
20830 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20831
20832         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
20833         Problem reported by Matthew Woehlke.
20834
20835 2006-11-09  Bruno Haible  <bruno@clisp.org>
20836
20837         * lib/tempname.c (gen_tempname): Remove variant that invokes
20838         __gen_tempname.
20839         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
20840         __gen_tempname.
20841
20842 2006-11-08  Bruno Haible  <bruno@clisp.org>
20843
20844         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
20845         to 'yes' instead of 'cross-compiling'.
20846
20847 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20848
20849         * lib/quotearg.h (quotearg_free): New decl.
20850         * lib/quotearg.c (quotearg_free): New function.
20851         (slot0, nslots, slotvec0, slotvec):
20852         Now file-scope so that quotearg_free can get at them.
20853
20854 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20855
20856         Sync from Automake.
20857         * build-aux/gnupload: Add missing 'gnu' to example URL.
20858         Report by Karl Berry.
20859
20860 2006-11-08  Bruno Haible  <bruno@clisp.org>
20861
20862         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
20863         Suggested by Paul Eggert.
20864
20865 2006-11-08  Jim Meyering  <jim@meyering.net>
20866
20867         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
20868         It's already included if !_LIBC.
20869         (fts_safe_changedir): Add a comment.
20870
20871 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20872
20873         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
20874         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
20875         Matthew Woehlke.
20876
20877         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
20878         definitions up, to avoid colliding with change below.
20879         (static_inline) [HAVE_INLINE]: New macro.
20880         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20881         Provide extern decls when !HAVE_INLINE.  Do not define unless
20882         static_inline is defined, either by us or by xmalloc.c.  Use
20883         static_inline rather than static inline.
20884         (XCALLOC): Optimize sizeof(T) = 1 case.
20885         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
20886
20887 2006-11-07  Bruno Haible  <bruno@clisp.org>
20888
20889         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
20890         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
20891         AC_C_INLINE.
20892         * modules/xalloc (Files): Add m4/inline.m4.
20893
20894 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20895
20896         * README: Fix typo.
20897         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
20898         (Miscellanous Notes): ...from this.
20899
20900 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20901
20902         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20903         Mention that offsetof should be used instead of sizeof.
20904         From Bruno Haible.
20905
20906 2006-11-07  Bruno Haible  <bruno@clisp.org>
20907
20908         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
20909
20910 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20911
20912         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20913         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
20914         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20915         (gl_tree_add_before, gl_tree_add_after):
20916         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
20917         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
20918         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
20919         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
20920         (gl_linked_add_after, gl_linked_add_at): Likewise.
20921         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
20922         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20923         (gl_tree_add_before, gl_tree_add_after): Likewise.
20924         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
20925         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
20926         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20927
20928 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20929
20930         * lib/gl_oset.h: Use C comment style, not C++ comment style.
20931
20932 2006-11-06  Bruno Haible  <bruno@clisp.org>
20933
20934         * m4/inline.m4: New file.
20935         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
20936         * modules/list (Files): Add m4/inline.m4.
20937         * modules/oset (Files): Likewise.
20938
20939 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20940
20941         * lib/idcache.c: Include <stddef.h>, for offsetof.
20942         (struct userid.name): Change from char * to a flexible array member.
20943         All uses changed.
20944         * modules/idcache (Depends-on): Add flexmember.
20945
20946         * MODULES.html.sh (Core language properties): New module flexmember.
20947         * modules/flexmember, m4/flexmember.m4: New files.
20948
20949         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
20950         inline functions that are identical with the old xnmalloc_inline,
20951         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
20952         that we can avoid some unnecessary integer multiplications and
20953         divisions in the common case where the element size is known at
20954         compile time.
20955         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
20956         needed.
20957         (xnboundedmalloc): Remove.
20958         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
20959         arguments, for consistency with rest of this header.
20960         (xcharalloc): Rewrite using XNMALLOC.
20961         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
20962         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
20963         versions have been moved to lib/xalloc.h and renamed to be the
20964         non-*_inline versions.
20965         (xmalloc, xrealloc): Implement without reference to the xnmalloc
20966         and xnrealloc functions, since those functions are now inline and
20967         now call us.
20968         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
20969         renaming described above.
20970         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
20971         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
20972         captures the dependency in AC_C_INLINE.
20973
20974         New module canonicalize-lgpl, proposed by Charles Wilson in
20975         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
20976         with a few small changes afterwards.
20977         * MODULES.html.sh (File system functions): New module
20978         canonicalize-lgpl.
20979         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
20980         and canonicalize_file_name.
20981         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
20982         * modules/canonicalize-lgpl: New files.
20983
20984 2006-11-05  Bruno Haible  <bruno@clisp.org>
20985
20986         * gnulib-tool (func_import, func_create_testdir): Create directories
20987         also for files in subdirectories of lib/.
20988
20989 2006-11-05  Bruno Haible  <bruno@clisp.org>
20990
20991         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
20992         ANSI C compliant.
20993
20994 2006-11-03  Bruno Haible  <bruno@clisp.org>
20995
20996         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20997         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
20998         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
20999         (xnboundedmalloc): New inline function.
21000         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
21001         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
21002         xmalloc.
21003         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
21004         xmalloc.
21005         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
21006         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
21007         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
21008         xmalloc.
21009         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21010         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
21011         xmalloc.
21012         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
21013         gl_tree_add_after): Use XMALLOC instead of xmalloc.
21014         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
21015         xmalloc.
21016         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21017         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
21018         gl_tree_add_after): Use XMALLOC instead of xmalloc.
21019         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
21020         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
21021         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
21022         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
21023
21024 2006-11-03  Bruno Haible  <bruno@clisp.org>
21025
21026         * lib/c-ctype.h [C++]: Define functions without name mangling.
21027         * lib/fwriteerror.h [C++]: Likewise.
21028         * lib/gcd.h [C++]: Likewise.
21029         * lib/linebreak.h [C++]: Likewise.
21030
21031 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
21032
21033         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
21034         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
21035         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
21036         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
21037         Check for functions and headers just once.
21038         Check for declaration of canonicalize_file_name.
21039         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
21040
21041 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21042
21043         * gnulib-tool (func_import): Fix typo in actioncmd.
21044
21045 2006-11-02  Bruno Haible  <bruno@clisp.org>
21046
21047         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
21048         newline sequence in the Makefile.am snippet as a space, like "make"
21049         does.
21050         Reported by Roger Persson <perrog@gmail.com>.
21051
21052 2006-11-01  Bruno Haible  <bruno@clisp.org>
21053
21054         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
21055         already declared in <string.h>.
21056         * lib/strcase.h (strncasecmp): Don't declare it if yes.
21057
21058 2006-11-01  Bruno Haible  <bruno@clisp.org>
21059
21060         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
21061         * lib/strcase.h: Include <string.h>.
21062         (strcasecmp): Define to rpl_strcasecmp here.
21063
21064 2006-11-01  Bruno Haible  <bruno@clisp.org>
21065
21066         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
21067
21068 2006-11-01  Eric Blake  <ebb9@byu.net>
21069
21070         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
21071
21072         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
21073
21074 2006-10-29  Bruno Haible  <bruno@clisp.org>
21075
21076         Make it compile in C++ mode.
21077         * lib/full-write.c (full_rw): Add a cast.
21078
21079 2006-11-01  Bruno Haible  <bruno@clisp.org>
21080
21081         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
21082         be POSIX compliant.
21083         Reported by Roger Persson <perrog@gmail.com>.
21084
21085 2006-11-01  Eric Blake  <ebb9@byu.net>
21086
21087         * lib/getopt_.h: Fix comments.
21088
21089 2006-10-31  Eric Blake  <ebb9@byu.net>
21090
21091         * modules/tmpdir (Depends-on): Add sys_stat.
21092         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
21093         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
21094         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
21095         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
21096         tempname.
21097
21098 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
21099
21100         Avoid some C++ diagnostics reported by Bruno Haible.
21101         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
21102         xmalloc.
21103         (quotearg_alloc): Use xcharalloc rather than xmalloc.
21104         (struct slotvec): Move to top level.
21105         (quotearg_n_options): Rewrite to avoid xmalloc.
21106         * lib/xalloc.h (xcharalloc): New function.
21107         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
21108         [defined __cplusplus]: Add function template that provides result
21109         type propagation.  This part of the change is from Bruno Haible.
21110
21111 2006-10-29  Bruno Haible  <bruno@clisp.org>
21112
21113         Make it compile in C++ mode.
21114         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
21115         * lib/strnlen1.c (strnlen1): Cast memchr result.
21116         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
21117         * lib/clean-temp.c (string_equals, string_hash): Add casts.
21118         (create_temp_dir): Rename local variable 'template'.
21119         (compile_csharp_using_sscli): Add cast.
21120         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
21121         * lib/findprog.c (find_in_path): Likewise.
21122         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
21123         * lib/wait-process.c (register_slave_subprocess): Likewise.
21124
21125 2006-10-22  Bruno Haible  <bruno@clisp.org>
21126
21127         * modules/tsearch: New file.
21128         * lib/tsearch.h: New file.
21129         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
21130         * m4/tsearch.m4: New file.
21131         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
21132
21133 2006-10-29  Eric Blake  <ebb9@byu.net>
21134
21135         * lib/arcfour.c: Assume config.h.
21136         * lib/arctwo.c: Likewise.
21137         * lib/base64.c: Likewise.
21138         * lib/check-version.c: Likewise.
21139         * lib/crc.c: Likewise.
21140         * lib/des.c: Likewise.
21141         * lib/gc-gnulib.c: Likewise.
21142         * lib/gc-libgcrypt.c: Likewise.
21143         * lib/gc-pbkdf2-sha1.c: Likewise.
21144         * lib/getaddrinfo.c: Likewise.
21145         * lib/getdelim.c: Likewise.
21146         * lib/getline.c: Likewise.
21147         * lib/hmac-md5.c: Likewise.
21148         * lib/hmac-sha1.c: Likewise.
21149         * lib/iconvme.c: Likewise.
21150         * lib/md2.c: Likewise.
21151         * lib/md4.c: Likewise.
21152         * lib/memxor.c: Likewise.
21153         * lib/read-file.c: Likewise.
21154         * lib/readline.c: Likewise.
21155         * lib/rijndael-alg-fst.c: Likewise.
21156         * lib/rijndael-api-fst.c: Likewise.
21157         * lib/xgetdomainname.c: Likewise.
21158
21159 2006-10-28  Eric Blake  <ebb9@byu.net>
21160
21161         * lib/xstrndup.c: Assume config.h.
21162
21163 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
21164
21165         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
21166         stat-macros.h is now for our own macros, whereas stat_h is for
21167         macros in the <sys/stat.h> name space.
21168         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
21169         (STAT_MACROS_H): Remove.
21170         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
21171         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
21172         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
21173         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
21174         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
21175         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
21176         Move these macros to ...
21177         * lib/stat_.h: here.  Don't include stat-macros.h.
21178         * lib/canonicalize.c: Don't include stat-macros.h.
21179         * lib/chown.c: Likewise.
21180         * lib/euidaccess.c: Likewise.
21181         * lib/file-type.c: Likewise.
21182         * lib/filemode.c: Likewise.
21183         * lib/glob.c: Likewise.
21184         * lib/isapipe.c: Likewise.
21185         * lib/lchown.c: Likewise.
21186         * lib/lstat.c: Likewise.
21187         * lib/mkdir-p.c: Likewise.
21188         * lib/rmdir.c: Likewise.
21189         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
21190         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
21191         unless mkdir isn't declared, to speed up 'configure'.
21192         Always create sys/stat.h, since it's unlikely any real sys/stat.h
21193         would define all the S_* symbols.
21194         * modules/canonicalize (Depends-on):
21195         Depend on sys_stat, not stat-macros.
21196         * modules/chown: Likewise.
21197         * modules/euidaccess: Likewise.
21198         * modules/filemode: Likewise.
21199         * modules/file-type: Likewise.
21200         * modules/glob: Likewise.
21201         * modules/isapipe: Likewise.
21202         * modules/lchown: Likewise.
21203         * modules/lstat: Likewise.
21204         * modules/mkancesdirs: Likewise.
21205         * modules/rmdir: Likewise.
21206         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
21207         * modules/modechange: Likewise.
21208         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
21209         (configure.ac): Remove gl_STAT_MACROS.
21210         * modules/sys_stat (Depends-on): Remove stat-macros.
21211
21212 2006-10-27  Bruno Haible  <bruno@clisp.org>
21213
21214         * m4/signed.m4: Remove file.
21215         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
21216         invocation.
21217         * modules/vasnprintf (Files): Remove m4/signed.m4.
21218
21219 2006-10-27  Bruno Haible  <bruno@clisp.org>
21220
21221         Update to GNU gettext 0.16.
21222         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
21223         m4/inttypes-h.m4, m4/signed.m4.
21224         * m4/gettext.m4: Update to GNU gettext 0.16.
21225         * m4/intl.m4: New file, from GNU gettext.
21226         * m4/intldir.m4: New file, from GNU gettext.
21227         * config/srclist.txt: Update
21228
21229 2006-10-27  Eric Blake  <ebb9@byu.net>
21230
21231         * MODULES.html.sh: Document tempname.
21232         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
21233         dependencies.
21234         (Files): Move lib/tempname.c...
21235         * modules/tempname: ...to this new module.
21236         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
21237         (gl_PREREQ_TEMPNAME): Move...
21238         * m4/tempname.m4: ...to this new file.
21239         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
21240         * modules/sys_stat (Depends-on): Add stat-macros.
21241         * lib/stat_.h (includes): Pick up stat macros.
21242         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
21243         if stat macros are broken.
21244         * lib/tempname.c (includes): No need to include "stat-macros.h".
21245         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
21246         (direxists, __path_search) [!_LIBC]: Don't compile these in
21247         gnulib; the tmpdir module covers that.
21248         * lib/tempname.h: New file.
21249
21250 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21251
21252         * COPYING: Explain how gnulib-tool converts licence headers.
21253         Almost all wording by Eric Blake.
21254
21255 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
21256
21257         * lib/mbchar.h (is_basic_table): Make read-only.
21258         * lib/mbchar.c (is_basic_table): Likewise.
21259         Reported by John Darrington.
21260
21261 2006-10-25  Bruno Haible  <bruno@clisp.org>
21262
21263         * lib/progname.h (set_program_name): Undefine before defining.
21264
21265 2006-10-25  Bruno Haible  <bruno@clisp.org>
21266
21267         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
21268         false for non-gcc C++ compilers.
21269         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21270
21271 2006-10-24  Bruno Haible  <bruno@clisp.org>
21272
21273         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
21274         iconv implementations like Irix iconv.
21275
21276 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21277
21278         * modules/vararrays: New file.
21279         * m4/vararrays.m4: New file, taken from diffutils.
21280         * MODULES.html.sh: New module vararrays.
21281
21282 2006-10-24  Karl Berry  <karl@gnu.org>
21283
21284         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
21285         Don't call GNU Unix.
21286
21287 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21288
21289         * users.txt: Add Libtool.
21290
21291         Sync from Libtool:
21292
21293         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21294
21295         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
21296         to gnulib's policy of including config.h unconditionally.
21297
21298 2006-10-24  Bruno Haible  <bruno@clisp.org>
21299
21300         * modules/wcwidth (Files): Add m4/wint_t.m4.
21301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
21302         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
21303
21304 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21305
21306         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
21307         to pacify GCC with some -W flags enabled.  Problem reported by
21308         Bruno Haible.
21309
21310 2006-10-24  Jim Meyering  <jim@meyering.net>
21311
21312         * MODULES.html.sh: Remove uinttostr.  It's not a module.
21313         Reported by Karl Berry.
21314
21315 2006-10-23  Bruno Haible  <bruno@clisp.org>
21316
21317         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
21318
21319 2006-10-24  Bruno Haible  <bruno@clisp.org>
21320
21321         * lib/gl_list.h: Use C comment style, not C++ comment style.
21322
21323 2006-10-23  Eric Blake  <ebb9@byu.net>
21324
21325         * lib/getaddrinfo.c (includes): Add missing include.
21326
21327 2006-10-23  Bruno Haible  <bruno@clisp.org>
21328             Paul Eggert  <eggert@cs.ucla.edu>
21329
21330         Ability to rename obstack_free.
21331         * lib/obstack.h (__obstack_free): New macro. Declare instead of
21332         obstack_free.
21333         (obstack_free): Invoke the __obstack_free macro.
21334         * lib/obstack.c (obstack_free): Use __obstack_free macro.
21335
21336 2006-10-23  Bruno Haible  <bruno@clisp.org>
21337             Paul Eggert  <eggert@cs.ucla.edu>
21338
21339         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
21340         __argc, __argv from the declaration. (They are defined as macros on
21341         mingw.)
21342
21343 2006-10-22  Bruno Haible  <bruno@clisp.org>
21344
21345         * doc/gnulib-intro.texi: New file.
21346         * doc/gnulib.texi: Include it.
21347
21348 2006-10-21  Bruno Haible  <bruno@clisp.org>
21349
21350         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
21351         "Introduction", "Miscellanous Notes", "Particular Modules".
21352
21353 2006-10-21  Bruno Haible  <bruno@clisp.org>
21354
21355         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21356         Change mostlyclean-local rule to avoid sh syntax error from bash
21357         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
21358
21359 2006-10-23  Jim Meyering  <jim@meyering.net>
21360
21361         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
21362         in place of snprintf.
21363
21364         * modules/inttostr (Files): Add lib/uinttostr.c.
21365         * lib/uinttostr.c (inttostr): New file/function.
21366         * lib/inttostr.h (uinttostr): Declare.
21367         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
21368         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21369         Add uinttostr.
21370         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
21371
21372 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21373
21374         * lib/canonicalize.c (ELOOP): Define if not already defined.
21375         Problem reported by Bruno Haible in
21376         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
21377
21378 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21379
21380         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
21381         Problem reported by Perry Smith and Ville Laurikari.
21382
21383         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
21384         uses.
21385
21386 2006-10-19  Bruno Haible  <bruno@clisp.org>
21387
21388         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
21389         for mingw.
21390
21391 2006-10-19  Bruno Haible  <bruno@clisp.org>
21392
21393         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
21394         Needed for mingw.
21395
21396 2006-10-19  Bruno Haible  <bruno@clisp.org>
21397
21398         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
21399
21400 2006-10-19  Bruno Haible  <bruno@clisp.org>
21401
21402         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
21403         it.
21404
21405 2006-10-19  Bruno Haible  <bruno@clisp.org>
21406
21407         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
21408         invocation.
21409
21410 2006-10-19  Bruno Haible  <bruno@clisp.org>
21411
21412         * gnulib-tool (func_create_testdir): Don't include ftruncate and
21413         mountlist by default.
21414
21415 2006-10-16  Bruno Haible  <bruno@clisp.org>
21416
21417         * lib/c-strstr.c: Include c-strstr.h.
21418
21419 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21420
21421         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
21422         in a slash.
21423
21424 2006-10-18  Bruno Haible  <bruno@clisp.org>
21425
21426         * lib/lock.h [C++]: Wrap definitions in extern "C".
21427
21428 2006-10-18  Bruno Haible  <bruno@clisp.org>
21429
21430         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
21431         gl_LIBOBJS list.
21432
21433 2006-10-18  Bruno Haible  <bruno@clisp.org>
21434
21435         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
21436
21437 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21438
21439         * lib/xstrtol.h: Include gettext.h.
21440         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
21441         Problem reported by Eric Blake.
21442         * modules/xstrtol (Depends-on): Add gettext-h.
21443
21444 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
21445
21446         * lib/strftime.c (advance): New macro.
21447         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
21448         incomplete type, so you can't add 0 to it.  Problem and patch
21449         reported by Eelco Dolstra for dietlibc.
21450
21451 2006-10-18  Jim Meyering  <jim@meyering.net>
21452
21453         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
21454         type for a local, and rename it: s/up/user_proc/.
21455
21456 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
21457
21458         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
21459         READ_UTMP_USER_PROCESS.
21460         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
21461
21462 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
21463
21464         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
21465         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
21466
21467 2006-10-17  Eric Blake  <ebb9@byu.net>
21468
21469         * lib/sigprocmask.c (sigprocmask): Fix typo.
21470
21471         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
21472
21473         * modules/clean-temp (Makefile.am): Don't add to make output...
21474         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
21475         config.h.
21476
21477 2006-10-17  Bruno Haible  <bruno@clisp.org>
21478
21479         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
21480         differently if DEFAULT_TEXT_DOMAIN is set.
21481
21482 2006-10-16  Bruno Haible  <bruno@clisp.org>
21483
21484         * lib/clean-temp.c: Include fwriteerror.h.
21485
21486 2006-10-16  Bruno Haible  <bruno@clisp.org>
21487
21488         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
21489
21490 2006-10-16  Bruno Haible  <bruno@clisp.org>
21491
21492         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
21493         * lib/sigprocmask.h: Include <sys/types.h>.
21494         (sigset_t): Use the system's definition if present.
21495
21496 2006-10-17  Eric Blake  <ebb9@byu.net>
21497
21498         * lib/xvasprintf.c (includes): Assume config.h.
21499         * lib/xasprintf.c (includes): Likewise.
21500
21501 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21502
21503         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
21504         at least as wide as intmax_t.
21505
21506 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
21507
21508         (Imported from Automake.)
21509         * build-aux/gnupload: Update to version 1.1 of directive file.
21510
21511 2006-10-16  Eric Blake  <ebb9@byu.net>
21512
21513         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
21514         match Automake 1.10a.
21515
21516 2006-10-14  Bruno Haible  <bruno@clisp.org>
21517
21518         * modules/sigprocmask: New file.
21519         * lib/sigprocmask.h: New file.
21520         * lib/sigprocmask.c: New file.
21521         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
21522         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
21523         request sigprocmask.o.
21524         (gl_PREREQ_SIGPROCMASK): New macro.
21525         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
21526         (Depends-on): Add sigprocmask.
21527         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
21528         gt_SIGNALBLOCKING. Test for 'raise' only once.
21529         * lib/fatal-signal.c: Include sigprocmask.h.
21530         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
21531         unblock_fatal_signals): Define always.
21532         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21533         sigprocmask.
21534
21535 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21536
21537         Sync from Automake.
21538         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
21539         which incorrectly sets the mode of an existing destination
21540         directory.  In some cases the unpatched install-sh could do the
21541         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
21542         system.  We hope this is rare in practice, but it's clearly worth
21543         fixing.  Problem reported by Alex Unleashed in
21544         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
21545         Also, don't bother to check for -m bugs unless we're using -m;
21546         suggested by Stepan Kasal.
21547
21548 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21549
21550         Sync from Automake.
21551         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
21552         `-c' flag, so they appear at the same position as in %FASTDEP%
21553         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
21554         which ignores unknown options only after the first non-option.
21555         Bug report against M4 by Nelson H. F. Beebe.
21556
21557 2006-10-13  Jim Meyering  <jim@meyering.net>
21558
21559         Fix a bug in yesterday's change.
21560         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
21561         p->fts_statp->st_dev would be used uninitialized.
21562         Ensures that we always call fts_stat on the very first entry.
21563         Miklos Szeredi reported that find -xdev stopped working.
21564
21565 2006-10-12  Bruno Haible  <bruno@clisp.org>
21566
21567         * gnulib-tool (func_get_automake_snippet): Append an automatically
21568         computed EXTRA_DIST augmentation.
21569         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
21570         * modules/alloca-opt (Makefile.am): Likewise.
21571         * modules/allocsa (Makefile.am): Likewise.
21572         * modules/arcfour (Makefile.am): Likewise.
21573         * modules/arctwo (Makefile.am): Likewise.
21574         * modules/argmatch (Makefile.am): Likewise.
21575         * modules/argz (Makefile.am): Likewise.
21576         * modules/atexit (Makefile.am): Likewise.
21577         * modules/backupfile (Makefile.am): Likewise.
21578         * modules/byteswap (Makefile.am): Likewise.
21579         * modules/c-strtod (Makefile.am): Likewise.
21580         * modules/c-strtold (Makefile.am): Likewise.
21581         * modules/calloc (Makefile.am): Likewise.
21582         * modules/canon-host (Makefile.am): Likewise.
21583         * modules/canonicalize (Makefile.am): Likewise.
21584         * modules/chdir-long (Makefile.am): Likewise.
21585         * modules/chdir-safer (Makefile.am): Likewise.
21586         * modules/check-version (Makefile.am): Likewise.
21587         * modules/chown (Makefile.am): Likewise.
21588         * modules/cloexec (Makefile.am): Likewise.
21589         * modules/close-stream (Makefile.am): Likewise.
21590         * modules/closeout (Makefile.am): Likewise.
21591         * modules/crc (Makefile.am): Likewise.
21592         * modules/csharpexec (Makefile.am): Likewise.
21593         * modules/cycle-check (Makefile.am): Likewise.
21594         * modules/des (Makefile.am): Likewise.
21595         * modules/dev-ino (Makefile.am): Likewise.
21596         * modules/dirfd (Makefile.am): Likewise.
21597         * modules/dirname (Makefile.am): Likewise.
21598         * modules/dup2 (Makefile.am): Likewise.
21599         * modules/eealloc (Makefile.am): Likewise.
21600         * modules/error (Makefile.am): Likewise.
21601         * modules/euidaccess (Makefile.am): Likewise.
21602         * modules/exclude (Makefile.am): Likewise.
21603         * modules/exitfail (Makefile.am): Likewise.
21604         * modules/fcntl-safer (Makefile.am): Likewise.
21605         * modules/fcntl (Makefile.am): Likewise.
21606         * modules/file-type (Makefile.am): Likewise.
21607         * modules/fileblocks (Makefile.am): Likewise.
21608         * modules/filemode (Makefile.am): Likewise.
21609         * modules/filenamecat (Makefile.am): Likewise.
21610         * modules/fnmatch (Makefile.am): Likewise.
21611         * modules/fopen-safer (Makefile.am): Likewise.
21612         * modules/fpending (Makefile.am): Likewise.
21613         * modules/fprintftime (Makefile.am): Likewise.
21614         * modules/free (Makefile.am): Likewise.
21615         * modules/fsusage (Makefile.am): Likewise.
21616         * modules/ftruncate (Makefile.am): Likewise.
21617         * modules/fts (Makefile.am): Likewise.
21618         * modules/gc-arcfour (Makefile.am): Likewise.
21619         * modules/gc-des (Makefile.am): Likewise.
21620         * modules/gc-hmac-md5 (Makefile.am): Likewise.
21621         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
21622         * modules/gc-md4 (Makefile.am): Likewise.
21623         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21624         * modules/gc-sha1 (Makefile.am): Likewise.
21625         * modules/gc (Makefile.am): Likewise.
21626         * modules/getaddrinfo (Makefile.am): Likewise.
21627         * modules/getcwd (Makefile.am): Likewise.
21628         * modules/getdelim (Makefile.am): Likewise.
21629         * modules/getdomainname (Makefile.am): Likewise.
21630         * modules/getgroups (Makefile.am): Likewise.
21631         * modules/gethostname (Makefile.am): Likewise.
21632         * modules/gethrxtime (Makefile.am): Likewise.
21633         * modules/getline (Makefile.am): Likewise.
21634         * modules/getloadavg (Makefile.am): Likewise.
21635         * modules/getlogin_r (Makefile.am): Likewise.
21636         * modules/getndelim2 (Makefile.am): Likewise.
21637         * modules/getopt (Makefile.am): Likewise.
21638         * modules/getpagesize (Makefile.am): Likewise.
21639         * modules/getpass-gnu (Makefile.am): Likewise.
21640         * modules/getpass (Makefile.am): Likewise.
21641         * modules/getsubopt (Makefile.am): Likewise.
21642         * modules/gettime (Makefile.am): Likewise.
21643         * modules/gettimeofday (Makefile.am): Likewise.
21644         * modules/getugroups (Makefile.am): Likewise.
21645         * modules/getusershell (Makefile.am): Likewise.
21646         * modules/glob (Makefile.am): Likewise.
21647         * modules/group-member (Makefile.am): Likewise.
21648         * modules/hard-locale (Makefile.am): Likewise.
21649         * modules/hash (Makefile.am): Likewise.
21650         * modules/hmac-md5 (Makefile.am): Likewise.
21651         * modules/hmac-sha1 (Makefile.am): Likewise.
21652         * modules/human (Makefile.am): Likewise.
21653         * modules/idcache (Makefile.am): Likewise.
21654         * modules/imaxabs (Makefile.am): Likewise.
21655         * modules/imaxdiv (Makefile.am): Likewise.
21656         * modules/inet_ntop (Makefile.am): Likewise.
21657         * modules/inet_pton (Makefile.am): Likewise.
21658         * modules/intprops (Makefile.am): Likewise.
21659         * modules/inttostr (Makefile.am): Likewise.
21660         * modules/inttypes (Makefile.am): Likewise.
21661         * modules/isapipe (Makefile.am): Likewise.
21662         * modules/javaversion (Makefile.am): Likewise.
21663         * modules/lchmod (Makefile.am): Likewise.
21664         * modules/lchown (Makefile.am): Likewise.
21665         * modules/localcharset (Makefile.am): Likewise.
21666         * modules/long-options (Makefile.am): Likewise.
21667         * modules/lstat (Makefile.am): Likewise.
21668         * modules/malloc (Makefile.am): Likewise.
21669         * modules/mathl (Makefile.am): Likewise.
21670         * modules/mbchar (Makefile.am): Likewise.
21671         * modules/md2 (Makefile.am): Likewise.
21672         * modules/md4 (Makefile.am): Likewise.
21673         * modules/md5 (Makefile.am): Likewise.
21674         * modules/memcasecmp (Makefile.am): Likewise.
21675         * modules/memchr (Makefile.am): Likewise.
21676         * modules/memcmp (Makefile.am): Likewise.
21677         * modules/memcoll (Makefile.am): Likewise.
21678         * modules/memcpy (Makefile.am): Likewise.
21679         * modules/memmem (Makefile.am): Likewise.
21680         * modules/memmove (Makefile.am): Likewise.
21681         * modules/mempcpy (Makefile.am): Likewise.
21682         * modules/memrchr (Makefile.am): Likewise.
21683         * modules/memset (Makefile.am): Likewise.
21684         * modules/memxor (Makefile.am): Likewise.
21685         * modules/mkancesdirs (Makefile.am): Likewise.
21686         * modules/mkdir-p (Makefile.am): Likewise.
21687         * modules/mkdir (Makefile.am): Likewise.
21688         * modules/mkdtemp (Makefile.am): Likewise.
21689         * modules/mkstemp (Makefile.am): Likewise.
21690         * modules/mktime (Makefile.am): Likewise.
21691         * modules/modechange (Makefile.am): Likewise.
21692         * modules/mountlist (Makefile.am): Likewise.
21693         * modules/nanosleep (Makefile.am): Likewise.
21694         * modules/obstack (Makefile.am): Likewise.
21695         * modules/openat (Makefile.am): Likewise.
21696         * modules/pagealign_alloc (Makefile.am): Likewise.
21697         * modules/pathmax (Makefile.am): Likewise.
21698         * modules/physmem (Makefile.am): Likewise.
21699         * modules/poll (Makefile.am): Likewise.
21700         * modules/posixtm (Makefile.am): Likewise.
21701         * modules/posixver (Makefile.am): Likewise.
21702         * modules/putenv (Makefile.am): Likewise.
21703         * modules/quote (Makefile.am): Likewise.
21704         * modules/quotearg (Makefile.am): Likewise.
21705         * modules/raise (Makefile.am): Likewise.
21706         * modules/read-file (Makefile.am): Likewise.
21707         * modules/readline (Makefile.am): Likewise.
21708         * modules/readlink (Makefile.am): Likewise.
21709         * modules/readtokens (Makefile.am): Likewise.
21710         * modules/readutmp (Makefile.am): Likewise.
21711         * modules/realloc (Makefile.am): Likewise.
21712         * modules/regex (Makefile.am): Likewise.
21713         * modules/rename-dest-slash (Makefile.am): Likewise.
21714         * modules/rename (Makefile.am): Likewise.
21715         * modules/rijndael (Makefile.am): Likewise.
21716         * modules/rmdir (Makefile.am): Likewise.
21717         * modules/rpmatch (Makefile.am): Likewise.
21718         * modules/safe-read (Makefile.am): Likewise.
21719         * modules/safe-write (Makefile.am): Likewise.
21720         * modules/same-inode (Makefile.am): Likewise.
21721         * modules/same (Makefile.am): Likewise.
21722         * modules/save-cwd (Makefile.am): Likewise.
21723         * modules/savedir (Makefile.am): Likewise.
21724         * modules/setenv (Makefile.am): Likewise.
21725         * modules/settime (Makefile.am): Likewise.
21726         * modules/sha1 (Makefile.am): Likewise.
21727         * modules/sig2str (Makefile.am): Likewise.
21728         * modules/snprintf (Makefile.am): Likewise.
21729         * modules/stat-macros (Makefile.am): Likewise.
21730         * modules/stat-time (Makefile.am): Likewise.
21731         * modules/stdbool (Makefile.am): Likewise.
21732         * modules/stdint (Makefile.am): Likewise.
21733         * modules/stdlib-safer (Makefile.am): Likewise.
21734         * modules/stpcpy (Makefile.am): Likewise.
21735         * modules/stpncpy (Makefile.am): Likewise.
21736         * modules/strcase (Makefile.am): Likewise.
21737         * modules/strcasestr (Makefile.am): Likewise.
21738         * modules/strchrnul (Makefile.am): Likewise.
21739         * modules/strcspn (Makefile.am): Likewise.
21740         * modules/strdup (Makefile.am): Likewise.
21741         * modules/strerror (Makefile.am): Likewise.
21742         * modules/strftime (Makefile.am): Likewise.
21743         * modules/strndup (Makefile.am): Likewise.
21744         * modules/strnlen (Makefile.am): Likewise.
21745         * modules/strpbrk (Makefile.am): Likewise.
21746         * modules/strsep (Makefile.am): Likewise.
21747         * modules/strstr (Makefile.am): Likewise.
21748         * modules/strtod (Makefile.am): Likewise.
21749         * modules/strtoimax (Makefile.am): Likewise.
21750         * modules/strtok_r (Makefile.am): Likewise.
21751         * modules/strtol (Makefile.am): Likewise.
21752         * modules/strtoll (Makefile.am): Likewise.
21753         * modules/strtoul (Makefile.am): Likewise.
21754         * modules/strtoull (Makefile.am): Likewise.
21755         * modules/strtoumax (Makefile.am): Likewise.
21756         * modules/strverscmp (Makefile.am): Likewise.
21757         * modules/sys_socket (Makefile.am): Likewise.
21758         * modules/sys_stat (Makefile.am): Likewise.
21759         * modules/sysexits (Makefile.am): Likewise.
21760         * modules/time_r (Makefile.am): Likewise.
21761         * modules/timegm (Makefile.am): Likewise.
21762         * modules/timespec (Makefile.am): Likewise.
21763         * modules/tmpfile-safer (Makefile.am): Likewise.
21764         * modules/trim (Makefile.am): Likewise.
21765         * modules/unistd-safer (Makefile.am): Likewise.
21766         * modules/unlinkdir (Makefile.am): Likewise.
21767         * modules/unlocked-io (Makefile.am): Likewise.
21768         * modules/userspec (Makefile.am): Likewise.
21769         * modules/utime (Makefile.am): Likewise.
21770         * modules/utimecmp (Makefile.am): Likewise.
21771         * modules/utimens (Makefile.am): Likewise.
21772         * modules/vasnprintf (Makefile.am): Likewise.
21773         * modules/vasprintf (Makefile.am): Likewise.
21774         * modules/vsnprintf (Makefile.am): Likewise.
21775         * modules/xalloc (Makefile.am): Likewise.
21776         * modules/xgetcwd (Makefile.am): Likewise.
21777         * modules/xnanosleep (Makefile.am): Likewise.
21778         * modules/xreadlink (Makefile.am): Likewise.
21779         * modules/xstrtod (Makefile.am): Likewise.
21780         * modules/xstrtol (Makefile.am): Likewise.
21781         * modules/xstrtold (Makefile.am): Likewise.
21782         * modules/yesno (Makefile.am): Likewise.
21783         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
21784
21785 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21786
21787         * modules/error (Makefile.am): Distribute files through
21788         EXTRA_DIST, not lib_SOURCES.
21789
21790 2006-10-12  Eric Blake  <ebb9@byu.net>
21791
21792         * modules/error (Makefile.am): Distribute files in /lib.
21793         * modules/obstack (Makefile.am): Likewise.
21794
21795 2006-10-12  Bruno Haible  <bruno@clisp.org>
21796
21797         * modules/acl (Makefile.am): Distribute all files in lib/ through
21798         EXTRA_DIST.
21799         * modules/arcfour (Makefile.am): Likewise.
21800         * modules/arctwo (Makefile.am): Likewise.
21801         * modules/argmatch (Makefile.am): Likewise.
21802         * modules/argz (Makefile.am): Likewise.
21803         * modules/atexit (Makefile.am): Likewise.
21804         * modules/backupfile (Makefile.am): Likewise.
21805         * modules/c-strtod (Makefile.am): Likewise.
21806         * modules/c-strtold (Makefile.am): Likewise.
21807         * modules/calloc (Makefile.am): Likewise.
21808         * modules/canon-host (Makefile.am): Likewise.
21809         * modules/canonicalize (Makefile.am): Likewise.
21810         * modules/chdir-long (Makefile.am): Likewise.
21811         * modules/chdir-safer (Makefile.am): Likewise.
21812         * modules/check-version (Makefile.am): Likewise.
21813         * modules/chown (Makefile.am): Likewise.
21814         * modules/cloexec (Makefile.am): Likewise.
21815         * modules/close-stream (Makefile.am): Likewise.
21816         * modules/closeout (Makefile.am): Likewise.
21817         * modules/crc (Makefile.am): Likewise.
21818         * modules/cycle-check (Makefile.am): Likewise.
21819         * modules/des (Makefile.am): Likewise.
21820         * modules/dirfd (Makefile.am): Likewise.
21821         * modules/dirname (Makefile.am): Likewise.
21822         * modules/dup2 (Makefile.am): Likewise.
21823         * modules/euidaccess (Makefile.am): Likewise.
21824         * modules/exclude (Makefile.am): Likewise.
21825         * modules/exitfail (Makefile.am): Likewise.
21826         * modules/fcntl-safer (Makefile.am): Likewise.
21827         * modules/file-type (Makefile.am): Likewise.
21828         * modules/fileblocks (Makefile.am): Likewise.
21829         * modules/filemode (Makefile.am): Likewise.
21830         * modules/filenamecat (Makefile.am): Likewise.
21831         * modules/fnmatch (Makefile.am): Likewise.
21832         * modules/fopen-safer (Makefile.am): Likewise.
21833         * modules/fpending (Makefile.am): Likewise.
21834         * modules/fprintftime (Makefile.am): Likewise.
21835         * modules/free (Makefile.am): Likewise.
21836         * modules/fsusage (Makefile.am): Likewise.
21837         * modules/ftruncate (Makefile.am): Likewise.
21838         * modules/fts (Makefile.am): Likewise.
21839         * modules/gc (Makefile.am): Likewise.
21840         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21841         * modules/getaddrinfo (Makefile.am): Likewise.
21842         * modules/getcwd (Makefile.am): Likewise.
21843         * modules/getdelim (Makefile.am): Likewise.
21844         * modules/getdomainname (Makefile.am): Likewise.
21845         * modules/getgroups (Makefile.am): Likewise.
21846         * modules/gethostname (Makefile.am): Likewise.
21847         * modules/gethrxtime (Makefile.am): Likewise.
21848         * modules/getline (Makefile.am): Likewise.
21849         * modules/getloadavg (Makefile.am): Likewise.
21850         * modules/getlogin_r (Makefile.am): Likewise.
21851         * modules/getopt (Makefile.am): Likewise.
21852         * modules/getpass (Makefile.am): Likewise.
21853         * modules/getpass-gnu (Makefile.am): Likewise.
21854         * modules/getsubopt (Makefile.am): Likewise.
21855         * modules/gettime (Makefile.am): Likewise.
21856         * modules/gettimeofday (Makefile.am): Likewise.
21857         * modules/getugroups (Makefile.am): Likewise.
21858         * modules/getusershell (Makefile.am): Likewise.
21859         * modules/glob (Makefile.am): Likewise.
21860         * modules/group-member (Makefile.am): Likewise.
21861         * modules/hard-locale (Makefile.am): Likewise.
21862         * modules/hash (Makefile.am): Likewise.
21863         * modules/hmac-md5 (Makefile.am): Likewise.
21864         * modules/hmac-sha1 (Makefile.am): Likewise.
21865         * modules/human (Makefile.am): Likewise.
21866         * modules/idcache (Makefile.am): Likewise.
21867         * modules/imaxabs (Makefile.am): Likewise.
21868         * modules/imaxdiv (Makefile.am): Likewise.
21869         * modules/inet_ntop (Makefile.am): Likewise.
21870         * modules/inet_pton (Makefile.am): Likewise.
21871         * modules/inttostr (Makefile.am): Likewise.
21872         * modules/isapipe (Makefile.am): Likewise.
21873         * modules/lchown (Makefile.am): Likewise.
21874         * modules/long-options (Makefile.am): Likewise.
21875         * modules/lstat (Makefile.am): Likewise.
21876         * modules/malloc (Makefile.am): Likewise.
21877         * modules/mathl (Makefile.am): Likewise.
21878         * modules/mbchar (Makefile.am): Likewise.
21879         * modules/md2 (Makefile.am): Likewise.
21880         * modules/md4 (Makefile.am): Likewise.
21881         * modules/md5 (Makefile.am): Likewise.
21882         * modules/memcasecmp (Makefile.am): Likewise.
21883         * modules/memchr (Makefile.am): Likewise.
21884         * modules/memcmp (Makefile.am): Likewise.
21885         * modules/memcoll (Makefile.am): Likewise.
21886         * modules/memcpy (Makefile.am): Likewise.
21887         * modules/memmem (Makefile.am): Likewise.
21888         * modules/memmove (Makefile.am): Likewise.
21889         * modules/mempcpy (Makefile.am): Likewise.
21890         * modules/memrchr (Makefile.am): Likewise.
21891         * modules/memset (Makefile.am): Likewise.
21892         * modules/memxor (Makefile.am): Likewise.
21893         * modules/mkancesdirs (Makefile.am): Likewise.
21894         * modules/mkdir (Makefile.am): Likewise.
21895         * modules/mkdir-p (Makefile.am): Likewise.
21896         * modules/mkdtemp (Makefile.am): Likewise.
21897         * modules/mkstemp (Makefile.am): Likewise.
21898         * modules/mktime (Makefile.am): Likewise.
21899         * modules/modechange (Makefile.am): Likewise.
21900         * modules/mountlist (Makefile.am): Likewise.
21901         * modules/nanosleep (Makefile.am): Likewise.
21902         * modules/openat (Makefile.am): Likewise.
21903         * modules/pagealign_alloc (Makefile.am): Likewise.
21904         * modules/physmem (Makefile.am): Likewise.
21905         * modules/poll (Makefile.am): Likewise.
21906         * modules/posixtm (Makefile.am): Likewise.
21907         * modules/posixver (Makefile.am): Likewise.
21908         * modules/putenv (Makefile.am): Likewise.
21909         * modules/quote (Makefile.am): Likewise.
21910         * modules/quotearg (Makefile.am): Likewise.
21911         * modules/raise (Makefile.am): Likewise.
21912         * modules/read-file (Makefile.am): Likewise.
21913         * modules/readline (Makefile.am): Likewise.
21914         * modules/readlink (Makefile.am): Likewise.
21915         * modules/readtokens (Makefile.am): Likewise.
21916         * modules/readutmp (Makefile.am): Likewise.
21917         * modules/realloc (Makefile.am): Likewise.
21918         * modules/regex (Makefile.am): Likewise.
21919         * modules/rename (Makefile.am): Likewise.
21920         * modules/rename-dest-slash (Makefile.am): Likewise.
21921         * modules/rijndael (Makefile.am): Likewise.
21922         * modules/rmdir (Makefile.am): Likewise.
21923         * modules/rpmatch (Makefile.am): Likewise.
21924         * modules/safe-read (Makefile.am): Likewise.
21925         * modules/safe-write (Makefile.am): Likewise.
21926         * modules/same (Makefile.am): Likewise.
21927         * modules/save-cwd (Makefile.am): Likewise.
21928         * modules/savedir (Makefile.am): Likewise.
21929         * modules/setenv (Makefile.am): Likewise.
21930         * modules/settime (Makefile.am): Likewise.
21931         * modules/sha1 (Makefile.am): Likewise.
21932         * modules/sig2str (Makefile.am): Likewise.
21933         * modules/snprintf (Makefile.am): Likewise.
21934         * modules/stdlib-safer (Makefile.am): Likewise.
21935         * modules/stpcpy (Makefile.am): Likewise.
21936         * modules/stpncpy (Makefile.am): Likewise.
21937         * modules/strcase (Makefile.am): Likewise.
21938         * modules/strcasestr (Makefile.am): Likewise.
21939         * modules/strchrnul (Makefile.am): Likewise.
21940         * modules/strcspn (Makefile.am): Likewise.
21941         * modules/strdup (Makefile.am): Likewise.
21942         * modules/strerror (Makefile.am): Likewise.
21943         * modules/strftime (Makefile.am): Likewise.
21944         * modules/strndup (Makefile.am): Likewise.
21945         * modules/strnlen (Makefile.am): Likewise.
21946         * modules/strpbrk (Makefile.am): Likewise.
21947         * modules/strsep (Makefile.am): Likewise.
21948         * modules/strstr (Makefile.am): Likewise.
21949         * modules/strtod (Makefile.am): Likewise.
21950         * modules/strtoimax (Makefile.am): Likewise.
21951         * modules/strtok_r (Makefile.am): Likewise.
21952         * modules/strtol (Makefile.am): Likewise.
21953         * modules/strtoll (Makefile.am): Likewise.
21954         * modules/strtoul (Makefile.am): Likewise.
21955         * modules/strtoull (Makefile.am): Likewise.
21956         * modules/strtoumax (Makefile.am): Likewise.
21957         * modules/strverscmp (Makefile.am): Likewise.
21958         * modules/time_r (Makefile.am): Likewise.
21959         * modules/timegm (Makefile.am): Likewise.
21960         * modules/tmpfile-safer (Makefile.am): Likewise.
21961         * modules/unistd-safer (Makefile.am): Likewise.
21962         * modules/unlinkdir (Makefile.am): Likewise.
21963         * modules/userspec (Makefile.am): Likewise.
21964         * modules/utime (Makefile.am): Likewise.
21965         * modules/utimecmp (Makefile.am): Likewise.
21966         * modules/utimens (Makefile.am): Likewise.
21967         * modules/vasnprintf (Makefile.am): Likewise.
21968         * modules/vasprintf (Makefile.am): Likewise.
21969         * modules/vsnprintf (Makefile.am): Likewise.
21970         * modules/xalloc (Makefile.am): Likewise.
21971         * modules/xgetcwd (Makefile.am): Likewise.
21972         * modules/xnanosleep (Makefile.am): Likewise.
21973         * modules/xreadlink (Makefile.am): Likewise.
21974         * modules/xstrtod (Makefile.am): Likewise.
21975         * modules/xstrtol (Makefile.am): Likewise.
21976         * modules/xstrtold (Makefile.am): Likewise.
21977         * modules/yesno (Makefile.am): Likewise.
21978
21979 2006-10-12  Jim Meyering  <jim@meyering.net>
21980
21981         * m4/getloadavg.m4: Revert the change below.
21982
21983         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
21984         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
21985         fail with a symlink, which is what coreutils' ./bootstrap now
21986         creates by default.
21987
21988 2006-10-12  Bruno Haible  <bruno@clisp.org>
21989
21990         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
21991         mingw.
21992         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
21993         MSVC and mingw explicitly.
21994
21995 2006-10-11  Simon Josefsson  <jas@extundo.com>
21996             Bruno Haible  <bruno@clisp.org>
21997
21998         Add support for multiple gnulib-tool invocations in the scope of a
21999         single configure.ac file.
22000         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
22001         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
22002         with the same contents as the _LIBADD variable.
22003         (func_emit_initmacro_start, func_emit_initmacro_end,
22004         func_emit_initmacro_done): New functions.
22005         (func_import, func_create_testdir): Invoke them. Allow the identifiers
22006         gl_LIBOBJS and gl_LTLIBOBJS.
22007
22008 2006-10-11  Bruno Haible  <bruno@clisp.org>
22009
22010         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
22011         (func_create_testdir): Don't create po/Makefile.am, don't invoke
22012         autoreconf. Instead, invoke autopoint explicitly but move back the
22013         *.m4 files from gnulib.
22014
22015 2006-10-11  Bruno Haible  <bruno@clisp.org>
22016
22017         * gnulib-tool (func_usage): Make module names after --create-testdir
22018         optional.
22019         (func_create_testdir): If no module was specified, use nearly all
22020         modules.
22021
22022 2006-10-12  Jim Meyering  <jim@meyering.net>
22023
22024         Big performance improvement for fts-based tools that use FTS_NOSTAT.
22025         Avoid spurious inode-mismatch problems on non-POSIX file systems.
22026         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
22027         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
22028         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
22029         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
22030         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
22031         (fts_set_stat_required): New function.
22032         (fts_open): Defer the calls to fts_stat, if possible or requested.
22033         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
22034         into fts_stat itself.
22035         (fts_read): Perform any required (deferred) fts_stat call.
22036         (fts_build): Likewise, for the directory we're about to open and read.
22037         In the readdir loop, carefully decide whether each entry will require
22038         an eventual call to fts_stat, using dirent.d_type info if available.
22039         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
22040         a command line argument into this function.  Update all callers.
22041         Map a return value of FTS_DOT to FTS_D for a command line argument.
22042         * modules/fts (Depends-on): Add d-type.  Alphabetize.
22043         Thanks to Miklos Szeredi for his tenacity and for the initial
22044         bug report about "find" failing on a FUSE-based file system.
22045
22046         * lib/fts.c (fts_open): Use consistent indentation.
22047
22048 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
22049
22050         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
22051         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
22052         reported by Jim Meyering.  All uses of cache variables renamed
22053         to match Autoconf's.
22054         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
22055         the other one.
22056
22057         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22058         Fix misspelling in diagnostic.
22059
22060 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22061
22062         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
22063         defined.  Problem reported by Matthew Woehlke.
22064
22065         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
22066         Add support for Tandem NonStop R series.
22067         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
22068         Use new macro.
22069
22070         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
22071         (has_trailing_slash): Omit size arg; all callers changed.
22072         Omit 'inline', since it doesn't help performance and we'd
22073         need to configure it.
22074         Don't count //, ///, etc. as having a trailing slash.
22075         As a side effect, this removes a C99ism reported by Matthew Woehlke.
22076         (rpl_rename_dest_slash): On failure, use rename's errno rather
22077         than (in some cases) an incorrect or junk errno.
22078         Simplify code by removing need to compute length; this does
22079         cause it to make two passes instead of one over the file name,
22080         but it's worth it.
22081
22082         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
22083         change, since Autoconf's version may no longer be appropriate now
22084         that we are using CVS Autoconf's version.  Add support for Tandem.
22085
22086 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22087             Bruno Haible  <bruno@clisp.org>
22088
22089         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
22090         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
22091         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
22092         gl_AC_TYPE_LONG_LONG.
22093
22094         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
22095         instead of HAVE_LONG_LONG.
22096         * lib/printf-args.c (printf_fetchargs): Likewise.
22097         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22098         * lib/vasnprintf.c (VASNPRINTF): Likewise.
22099         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
22100         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
22101         gl_AC_TYPE_LONG_LONG.
22102
22103 2006-10-11  Bruno Haible  <bruno@clisp.org>
22104
22105         * m4/longlong.m4: Add comments.
22106         * m4/ulonglong.m4: Likewise.
22107
22108 2006-10-10  Bruno Haible  <bruno@clisp.org>
22109
22110         Make it possible to #define stpcpy, strdup to aliases.
22111         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
22112         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
22113
22114 2006-10-10  Bruno Haible  <bruno@clisp.org>
22115
22116         Make it possible to #define gcd to an alias.
22117         * lib/gcd.c: Include config.h.
22118
22119 2006-10-10  Bruno Haible  <bruno@clisp.org>
22120
22121         Make it possible to #define c_isascii to an alias.
22122         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
22123         defined. Undefine the macros before defining them, to avoid gcc
22124         warnings.
22125         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
22126         define NO_C_CTYPE_MACROS early.
22127
22128 2006-10-10  Bruno Haible  <bruno@clisp.org>
22129
22130         Make it possible to #define set_program_name to an alias.
22131         * lib/progname.c: Don't undefine set_program_name; instead, undefine
22132         ENABLE_RELOCATABLE early.
22133
22134 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22135
22136         Port to Tandem NSK OSS, which has 64-bit signed int but at most
22137         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
22138         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
22139         More generally, don't assume that 64-bit signed int is available
22140         if unsigned int is, and vice versa.
22141         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
22142         unsigned symbols, not on their signed counterparts.
22143         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
22144         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
22145         (UINT64_C, UINTMAX_C):
22146         Likewise.
22147         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
22148         unsigned counterparts.
22149         (Have_long_long, Unsigned): New macros.
22150         (Int): Renamed from INT.
22151         (strtoimax): Use the new macros.
22152         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
22153         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
22154         * modules/inttypes (inttypes.h): Substitute
22155         HAVE_UNSIGNED_LONG_LONG_INT.
22156         * modules/stdint (stdint.h): Likewise.
22157         (Files): Add m4/ulonglong.m4.
22158
22159 2006-10-10  Bruno Haible  <bruno@clisp.org>
22160
22161         Fix a gcc -Wshadow warning.
22162         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
22163         to 'bucket'.
22164         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
22165         gl_linked_indexof_from_to): Likewise.
22166         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
22167         Likewise.
22168         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
22169         Likewise.
22170         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
22171         Reported by Eric Blake.
22172
22173 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
22174
22175         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
22176         for NetBSD.  Problem reported by Bruno Haible.
22177
22178 2006-10-09  Jim Meyering  <jim@meyering.net>
22179
22180         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
22181         Patch from Bruno Haible.
22182
22183 2006-10-09  Jim Meyering  <jim@meyering.net>
22184
22185         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
22186         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
22187         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
22188
22189 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
22190
22191         Don't include <config.h> twice; this doesn't work in some cases,
22192         e.g., when config.h has "#define intmax_t long long int" and
22193         we include <config.h>, <inttypes.h>, <config.h> in that order.
22194         Problem reported by Matthew Woehlke in:
22195         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
22196         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
22197         * lib/fts-cycle.c: Don't include config.h.
22198         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
22199         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
22200         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
22201         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
22202         inttypes.h.
22203         * lib/xstrtoumax.c: Likewise.
22204         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
22205         __strtol and the like, so that this module is more like its siblings.
22206         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
22207         Remove; no longer needed now that we assume gnulib inttypes.h.
22208
22209 2006-10-08  Bruno Haible  <bruno@clisp.org>
22210
22211         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
22212         option.
22213
22214 2006-10-07  Jim Meyering  <jim@meyering.net>
22215
22216         * modules/inttypes (inttypes.h): Revert what seems to have been
22217         an inadvertent part of today's change: use "|", not "/" in the
22218         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
22219
22220 2006-10-07  Bruno Haible  <bruno@clisp.org>
22221
22222         * modules/sublist: New file.
22223
22224 2006-10-07  Bruno Haible  <bruno@clisp.org>
22225
22226         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
22227         * modules/argz (argz.h): Likewise.
22228         * modules/arpa_inet (arpa/inet.h): Likewise.
22229         * modules/byteswap (byteswap.h): Likewise.
22230         * modules/configmake (configmake.h): Likewise.
22231         * modules/fcntl (fcntl.h): Likewise.
22232         * modules/fnmatch (fnmatch.h): Likewise.
22233         * modules/getopt (getopt.h): Likewise.
22234         * modules/glob (glob.h): Likewise.
22235         * modules/inttypes (inttypes.h): Likewise.
22236         * modules/netinet_in (netinet/in.h): Likewise.
22237         * modules/poll (poll.h): Likewise.
22238         * modules/stdbool (stdbool.h): Likewise.
22239         * modules/stdint (stdint.h): Likewise.
22240         * modules/sys_select (sys/select.h): Likewise.
22241         * modules/sys_socket (sys/socket.h): Likewise.
22242         * modules/sys_stat (sys/stat.h): Likewise.
22243         * modules/sysexits (sysexits.h): Likewise.
22244         * modules/unistd (unistd.h): Likewise.
22245         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22246         Add a "DO NOT EDIT" comment to the generated file.
22247         (func_import): Likewise for gnulib-comp.m4.
22248
22249 2006-10-07  Bruno Haible  <bruno@clisp.org>
22250
22251         * lib/gl_sublist.h: New file.
22252         * lib/gl_sublist.c: New file.
22253
22254 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
22255
22256         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
22257         name (relative to the original working directory) and the file
22258         name component (relative to the temporary working directory).  All
22259         callers changed.
22260         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
22261         * lib/mkdir-p.c (make_dir_parents): Likewise.
22262         * lib/mkdir-p.h (make_dir_parents): Likewise.
22263
22264 2006-10-06  Eric Blake  <ebb9@byu.net>
22265
22266         Define several macros for use by the clean-temp module.
22267         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
22268         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
22269         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
22270
22271         * lib/clean-temp.h (close_stream_temp): New declaration.
22272         * lib/clean-temp.c (includes): Pull in headers according to what
22273         other modules are in use.
22274         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
22275
22276 2006-10-06  Bruno Haible  <bruno@clisp.org>
22277
22278         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
22279         instead of fopen, fwriteerror.
22280
22281 2006-10-06  Bruno Haible  <bruno@clisp.org>
22282
22283         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
22284         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
22285         int.
22286         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
22287         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
22288         Return an error indicator.
22289         Suggested by Eric Blake.
22290
22291 2006-10-06  Bruno Haible  <bruno@clisp.org>
22292
22293         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
22294         Reported by Eric Blake.
22295
22296 2006-10-06  Bruno Haible  <bruno@clisp.org>
22297
22298         * modules/closeout (Description): Mention stderr too.
22299
22300 2006-10-06  Bruno Haible  <bruno@clisp.org>
22301         and Paul Eggert  <eggert@cs.ucla.edu>
22302
22303         * lib/closeout.c (close_stdout): Also close stderr.
22304         * lib/closeout.h: Update comment.
22305
22306 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22307
22308         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
22309         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
22310         * lib/dirchownmod.c: Include lchown.h.
22311         * lib/lchown.c: Don't include files that lchown.h now includes.
22312         Don't declare chown, since lchown.h now does that.
22313         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
22314         (lchown): Define to rpl_chown if lchown is declared but
22315         does not exist.  Declare using a prototype if lchown is not
22316         declared.  Add a copyright notice.
22317         * lib/mkstemp.h: Include <unistd.h>.
22318         * lib/openat.c: Include lchown.h.
22319
22320         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
22321         we now test for that separately.
22322         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
22323         rather than O_NOFOLLOW, when testing whether it's possible to
22324         avoid a race condition reliably.
22325         * lib/savewd.c (savewd_chdir): Likewise.
22326
22327         Remove macros that are no longer needed now that stdint.h is
22328         reliable.
22329         * lib/fsusage.c (UINTMAX_MAX): Remove.
22330         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
22331         * lib/utimecmp.c (SIZE_MAX): Remove.
22332
22333         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
22334
22335         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
22336         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
22337         O_NOATIME works.
22338
22339 2006-10-05  Bruno Haible  <bruno@clisp.org>
22340
22341         * lib/gl_list.h (gl_sortedlist_search_from_to,
22342         gl_sortedlist_indexof_from_to): New declarations.
22343         (gl_list_implementation): New fields sortedlist_search_from_to,
22344         sortedlist_indexof_from_to.
22345         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
22346         inline functions.
22347         * lib/gl_list.c (gl_sortedlist_search_from_to,
22348         gl_sortedlist_indexof_from_to): New functions.
22349         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
22350         function.
22351         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
22352         (gl_array_sortedlist_search_from_to): New function.
22353         (gl_array_list_implementation): Update.
22354         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
22355         function.
22356         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
22357         (gl_carray_sortedlist_search_from_to): New function.
22358         (gl_carray_list_implementation): Update.
22359         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
22360         gl_linked_sortedlist_indexof_from_to): New functions.
22361         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22362         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22363         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
22364         gl_tree_sortedlist_indexof_from_to): New functions.
22365         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22366         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22367         Update.
22368         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22369         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
22370         Update.
22371
22372 2006-10-05  Bruno Haible  <bruno@clisp.org>
22373
22374         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
22375         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
22376         (struct gl_list_implementation): Add fields search_from_to,
22377         indexof_from_to. Remove fields search, indexof.
22378         (gl_list_search): Use the search_from_to method.
22379         (gl_list_search_from, gl_list_search_from_to): New functions.
22380         (gl_list_indexof): Use the indexof_from_to method.
22381         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22382         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
22383         (gl_list_search_from, gl_list_search_from_to): New functions.
22384         (gl_list_indexof): Use the indexof_from_to method.
22385         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22386         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
22387         gl_array_indexof. Add start_index, end_index arguments.
22388         (gl_array_search_from_to): Renamed from gl_array_search. Add
22389         start_index, end_index arguments.
22390         (gl_array_remove, gl_array_list_implementation): Update.
22391         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
22392         gl_carray_indexof. Add start_index, end_index arguments.
22393         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
22394         start_index, end_index arguments.
22395         (gl_carray_remove, gl_carray_list_implementation): Update.
22396         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
22397         gl_linked_search. Add start_index, end_index arguments.
22398         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
22399         start_index, end_index arguments.
22400         (gl_linked_remove): Update.
22401         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22402         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22403         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
22404         field to 'size_t'.
22405         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
22406         gl_tree_search. Add start_index, end_index arguments.
22407         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22408         start_index, end_index arguments.
22409         (gl_tree_remove): Update.
22410         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22411         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22412         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
22413         function.
22414         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
22415         gl_tree_search. Add start_index, end_index arguments.
22416         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22417         start_index, end_index arguments.
22418         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22419         Update.
22420         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22421
22422 2006-10-05  Bruno Haible  <bruno@clisp.org>
22423
22424         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
22425
22426         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
22427         fwriteerror_temp): New declarations.
22428         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
22429         (descriptors): New variable.
22430         (cleanup): First, close the descriptors.
22431         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
22432         fclose_temp, fwriteerror_temp): New functions.
22433
22434 2006-10-04  Jim Meyering  <jim@meyering.net>
22435
22436         * lib/fts.c (fts_open): Tiny comment change.
22437
22438 2006-10-04  Bruno Haible  <bruno@clisp.org>
22439
22440         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
22441         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
22442         gl_LOCK_BODY.
22443         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
22444         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
22445         gl_LOCK_EARLY_BODY.
22446         (gl_LOCK): Require gl_LOCK_BODY.
22447
22448 2006-10-04  Bruno Haible  <bruno@clisp.org>
22449
22450         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
22451         (gl_oset_search_atleast): New declaration.
22452         (struct gl_oset_implementation): Add field 'search_atleast'.
22453         (gl_oset_search_atleast): New inline function.
22454         * lib/gl_oset.c (gl_oset_search_atleast): New function.
22455         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
22456         (gl_array_oset_implementation): Update.
22457         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
22458         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
22459         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
22460
22461 2006-10-04  Bruno Haible  <bruno@clisp.org>
22462
22463         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
22464
22465 2006-10-03  Bruno Haible  <bruno@clisp.org>
22466
22467         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
22468         from gl_avltreehash_list_implementation.
22469
22470 2006-10-03  Bruno Haible  <bruno@clisp.org>
22471
22472         * lib/gl_oset.c (gl_oset_add): Fix return type.
22473
22474 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
22475
22476         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
22477
22478 2006-10-02  Eric Blake  <ebb9@byu.net>
22479
22480         * modules/strnlen (Depends-on): Add extensions.
22481
22482 2006-10-02  Eric Blake  <ebb9@byu.net>
22483
22484         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
22485         definition in 2.60+.
22486
22487 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
22488
22489         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
22490         checks.
22491
22492 2006-10-02  Bruno Haible  <bruno@clisp.org>
22493
22494         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
22495         to the AUTOMAKE_OPTIONS.
22496         Reported by Jim Meyering.
22497
22498 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
22499
22500         Work around bug in Solaris 10 /proc file system:
22501         /proc/self/fd/NNN/.. isn't the parent directory of
22502         the directory whose file descriptor is NNN.  This needs to
22503         be worked around at run time, not compile time, since a
22504         program might be built on Solaris 8, where things work, and
22505         run on Solaris 10.
22506         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
22507         to use the following interface instead:
22508         (OPENAT_BUFFER_SIZE): New macro.
22509         (openat_proc_name): New function.
22510         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
22511         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
22512         Likewise.
22513         * lib/openat-proc.c: New file.
22514         * modules/openat (Files): Add lib/openat-proc.c.
22515         (Depends-on): Add same-inode, stdbool.
22516         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
22517
22518 2006-09-29  Bruno Haible  <bruno@clisp.org>
22519
22520         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
22521         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
22522         argument. Set stdout_closed before testing for ferror, not after.
22523         (fwriteerror, fwriteerror_no_ebadf): New functions.
22524
22525 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22526
22527         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
22528
22529 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
22530
22531         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
22532         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
22533
22534 2006-09-28  Jim Meyering  <jim@meyering.net>
22535
22536         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
22537         Include <unistd.h>.
22538
22539 2006-09-28  Bruno Haible  <bruno@clisp.org>
22540
22541         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
22542         * modules/linkedhash-list (Depends-on): Likewise.
22543         * modules/rbtreehash-list (Depends-on): Likewise.
22544
22545 2006-09-28  Bruno Haible  <bruno@clisp.org>
22546
22547         * lib/strndup.h: Simplify the redefinition of strndup.
22548         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
22549         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
22550
22551 2006-09-28  Bruno Haible  <bruno@clisp.org>
22552
22553         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
22554         * lib/gl_linkedhash_list.c: Likewise.
22555         * lib/gl_rbtreehash_list.c: Likewise.
22556
22557 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
22558
22559         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
22560         getaddrinfo.
22561
22562         * lib/__fpending.h: Don't include <stdio_ext.h> unless
22563         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
22564         it causes <stdio_ext.h> to cause a compile-time error.
22565         Problem reported by Nelson H. F. Beebe.
22566         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
22567         of HAVE_DECL___PENDING.
22568
22569         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
22570         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
22571         declaration.
22572
22573 2006-09-27  Jim Meyering  <jim@meyering.net>
22574
22575         This file could end up with a definition for a function
22576         named __strndup, rather than rpl_strndup on a system with
22577         incomplete weak_alias support.
22578         * lib/strndup.c (strndup): Rename from __strndup.
22579         Remove #defines that used to map __strndup to strndup.
22580         Don't use K&R prototypes.
22581         Remove LIBC-related code, since this file is not sync'd with glibc.
22582         * lib/strndup.h: Revamp, accordingly.
22583         * m4/strndup.m4: Modernize.
22584
22585 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22586
22587         * modules/savewd (Depends-on): Add 'raise'.
22588         * lib/savewd.c: Include <signal.h>, for 'raise'.
22589
22590 2006-09-26  Jim Meyering  <jim@meyering.net>
22591
22592         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
22593         when we detect Darwin 8.7.0's acl_get_file bug.
22594         Rearrange to perform the new (below) run-test while $LIBS
22595         contains any acl-related library.  Set USE_ACL at the end.
22596         (gl_ACL_GET_FILE): New function.
22597
22598 2006-09-26  Eric Blake  <ebb9@byu.net>
22599
22600         * lib/verror.c: Include <config.h> unconditionally.
22601
22602 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
22603
22604         * modules/clock-time (Maintainer): Add self.
22605         * modules/getlogin_r (Depends-on): Add extensions.
22606
22607 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22608
22609         * modules/clock-time: New module.
22610         * modules/nanosleep (Depends-on): Add clock-time.
22611         * modules/gethrxtime (Depends-on): Likewise.
22612         * modules/gettime (Depends-on): Likewise.
22613         * modules/settime (Depends-on): Likewise.
22614
22615         * modules/fts-lgpl: Depend on openat.
22616         * modules/mkancesdirs: Depend on savewd.
22617         * modules/mkdir-p: Likewise.
22618
22619 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22620
22621         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
22622
22623         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
22624         `gl_have_arbitrary_file_name_length_limit' to
22625         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
22626         actually works between configure runs.
22627
22628 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22629             Bruno Haible  <bruno@clisp.org>
22630
22631         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
22632
22633 2006-09-25  Jim Meyering  <jim@meyering.net>
22634
22635         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
22636         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
22637
22638 2006-09-25  Eric Blake  <ebb9@byu.net>
22639
22640         * gnulib-tool (func_import, func_create_testdir): Fix typos in
22641         exec's in 2006-09-18 patch when shuffling fds.
22642
22643 2006-09-25  Bruno Haible  <bruno@clisp.org>
22644
22645         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
22646         Reported by Jim Meyering.
22647
22648 2006-09-24  Jim Meyering  <jim@meyering.net>
22649
22650         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
22651         compare a pointer against a literal "0".  That caused failures with
22652         at least HP-UX's hpcc.
22653
22654 2006-09-22  Simon Josefsson  <jas@extundo.com>
22655
22656         * modules/gc-sha1:
22657         * modules/gc-md4:
22658         * modules/gc-hmac-sha1:
22659         * modules/gc-hmac-md5:
22660         * modules/gc-des:
22661         * modules/gc-arcfour: Distribute more files.
22662
22663 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22664
22665         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
22666         (gl_linked_iterator_from_to): Initialize struct completely.
22667         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
22668         (gl_tree_iterator_from_to): Likewise
22669         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
22670         * lib/gl_array_list.c [lint] (gl_array_iterator)
22671         (gl_array_iterator_from_to): Likewise.
22672         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
22673         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
22674         (gl_carray_iterator_from_to): Likewise.
22675
22676         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
22677         * lib/md4.c (md4_process_block): Remove unused variable.
22678         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
22679         parentheses for clarity.
22680
22681 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22682
22683         * modules/bison-i18n (Depends-on): Add gettext.
22684
22685 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22686
22687         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
22688         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22689         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
22690         also add missing comma that caused broken test.
22691         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
22692         stdlib.h, for `abort'.
22693         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
22694         variables.
22695         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
22696         include unistd.h if present, for `rmdir'.
22697         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
22698         variables.
22699         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
22700         in the process include standard headers for prototypes.
22701         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
22702         gets declared on GNU/Linux.
22703         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
22704         unistd.h, for `rmdir'.
22705         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
22706
22707         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
22708         always true.
22709         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
22710
22711         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
22712
22713 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22714
22715         * gnulib-tool (func_version): Create output all at once.  This
22716         may help avoid triggering unnecessary SIGPIPEs, and at any
22717         rate it doesn't hurt.
22718
22719 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22720             Bruno Haible  <bruno@clisp.org>
22721
22722         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
22723         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22724         * m4/signed.m4 (bh_C_SIGNED): Likewise.
22725
22726         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
22727         (gl_FUNC_VASPRINTF): Invoke it.
22728
22729 2006-09-22  Bruno Haible  <bruno@clisp.org>
22730
22731         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
22732         getloadavg.c as first argument.
22733
22734 2006-09-22  Bruno Haible  <bruno@clisp.org>
22735
22736         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
22737         at the beginning of the gl_INIT macro.
22738         * modules/getloadavg (configure.ac): Pass $gl_source_base to
22739         gl_GETLOADAVG.
22740
22741 2006-09-22  Bruno Haible  <bruno@clisp.org>
22742
22743         * gnulib-tool (func_create_megatestdir): Don't include the config-h
22744         module.
22745         Suggested by Ralf Wildenhues.
22746
22747 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22748
22749         Import this patch from libc:
22750
22751         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
22752
22753         * lib/regex_internal.c (re_string_reconstruct): Handle
22754         offset < pstr->valid_raw_len && pstr->offsets_needed case.
22755         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
22756         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
22757         re_string_context_at.
22758
22759         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
22760         now requires it.
22761         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
22762         gl_REGEX now does it for us.
22763         (gl_REGEX): Add test taken from
22764         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
22765
22766         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
22767         Check that large offsets work.  Modernize Autoconf usages.
22768         Prefer "yes" to mean a good thing rather than a bad.
22769         Don't put "#define mkstemp" in config.h, as this might interfere
22770         with standard system headers that "#define mkstemp mkstemp64".
22771
22772         * modules/mkstemp (Depends-on): Add extensions, so that
22773         mkstemp is visible on some platforms.
22774         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
22775         (Include): Change to "mkstemp.h" from <stdlib.h>.
22776         (Files): Add mkstemp.h.
22777
22778         * lib/mkstemp.h: New file, since some standard headers
22779         #define mkstemp.
22780         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
22781         Include "mkstemp.h".
22782         Make the _LIBC code resemble glibc original more,
22783         e.g., use K&R style.
22784         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
22785         (mkstemp): Remove, since mkstemp.h does this for us.
22786         * lib/stdlib--.h: Include mkstemp.h.
22787
22788         Import this patch from libc:
22789
22790         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22791
22792         * lib/tempname.c (__gen_tempname): Change attempts_min
22793         into a macro.  Use preprocessor to decide how to initialize
22794         attempts [Coverity CID 67].
22795
22796 2006-09-20  Bruno Haible  <bruno@clisp.org>
22797
22798         * lib/mkdtemp.c: Import from libc.
22799         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22800                 * sysdeps/posix/tempname.c (__gen_tempname): Change
22801                 attempts_min into a macro.  Use preprocessor to decide how to
22802                 initialize attempts [Coverity CID 67].
22803         2001-11-27  Paul Eggert  <eggert@twinsun.com>
22804                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
22805                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
22806
22807 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22808
22809         * gnulib-tool (func_exit): New function, to allow to pass the
22810         exit status portably through the trap.  Use everywhere.
22811         (--help, --version): Signal a write error.
22812         (trap): catch SIGPIPE, for write errors.
22813         Exit at the end of the trap, with the correct exit status.
22814
22815 2006-09-19  Karl Berry  <karl@gnu.org>
22816
22817         * doc/gnulib.texi: note about the license texinfo files.
22818
22819 2006-09-19  Eric Blake  <ebb9@byu.net>
22820
22821         * gnulib-tool: Avoid space-tab.
22822
22823 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22824
22825         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
22826         that prevented coreutils 6.1 from building.  Problem reported
22827         by Petter Reinholdtsen.
22828
22829 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22830
22831         * gnulib-tool (avoidlist): Fix typo that broke options like
22832         --avoid=lock that are used by coreutils bootstrap.
22833
22834 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
22835
22836         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
22837         more systematically.
22838
22839 2006-09-18  Jim Meyering  <jim@meyering.net>
22840
22841         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
22842
22843 2006-09-18  Bruno Haible  <bruno@clisp.org>
22844
22845         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
22846
22847 2006-09-18  Bruno Haible  <bruno@clisp.org>
22848
22849         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
22850         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
22851         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
22852         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
22853         * m4/gettext.m4: Require autoconf >= 2.52.
22854         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
22855         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
22856         of gl_cv_header_inttypes_h.
22857
22858 2006-09-18  Bruno Haible  <bruno@clisp.org>
22859
22860         * lib/javaversion.c: Include configmake.h.
22861
22862 2006-09-18  Bruno Haible  <bruno@clisp.org>
22863
22864         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
22865         avoid that the while loops be executed in a subshell.
22866
22867 2006-09-18  Bruno Haible  <bruno@clisp.org>
22868
22869         * MODULES.html.sh (func_module): Break long lines.
22870         Suggested by Bruce Korb <bkorb@gnu.org>.
22871
22872 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22873
22874         Speed up by a factor of 1.12.
22875         * gnulib-tool (nl): New variable.
22876         (func_import): Rewrite include directive extraction to only read each
22877         directive once.
22878
22879 2006-09-17  Bruno Haible  <bruno@clisp.org>
22880
22881         * modules/javaversion (Makefile.am): Remove DEFS setting.
22882         (Depends-on): Add configmake, for PKGDATADIR definition.
22883
22884 2006-09-17  Bruno Haible  <bruno@clisp.org>
22885
22886         * gnulib-tool (func_create_testdir): Rewrite all files at once.
22887
22888 2006-09-17  Bruno Haible  <bruno@clisp.org>
22889
22890         * gnulib-tool (func_append): New function, stolen from libtool.m4.
22891         (func_modules_transitive_closure, func_modules_add_dummy,
22892         func_modules_to_filelist, func_import, func_create_testdir,
22893         func_create_megatestdir, ...): Use it wherever possible.
22894         Suggested by Ralf Wildenhues.
22895
22896 2006-09-16  Karl Berry  <karl@gnu.org>
22897
22898         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
22899         to avoid sectioning errors.
22900         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
22901         [ifinfo]: blank line after @center-ed titles.
22902         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
22903         Spell FSF address consistently with others.
22904         (These changes approved by rms.)
22905
22906 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22907
22908         Speed up by a factor of 1.61.
22909         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
22910         already checked module names again.
22911
22912 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22913
22914         Speed up by a factor of 1.13.
22915         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
22916         for new_files, and the input to func_add_or_update.
22917
22918 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22919
22920         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
22921         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
22922
22923 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22924
22925         * modules/mkancesdirs (Depends-on): Add fcntl.
22926         * modules/savewd: New file.
22927         * MODULES.html.sh (File system functions): Add savewd.
22928
22929         * modules/configmake (Makefile.am): Add support for the
22930         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
22931
22932 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22933
22934         * m4/savewd.m4: New file.
22935
22936 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22937
22938         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
22939         (dirchownmod): New arg FD.  All callers changed.
22940         Use FD rather than opening the directory ourself, as opening is
22941         now the caller's responsibility.
22942         * lib/dirchownmod.h: Likewise.
22943         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
22944         hosts that require <sys/types.h> before <sys/stat.h>.  Include
22945         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
22946         (test_dir): Remove.
22947         (mkancesdirs): Return length of prefix of FILE that has already
22948         been made, or -2 if there is a child doing the work.  Redo
22949         algorithm so that it is O(N) rather than O(N**2).  Optimize away
22950         ".", and treat ".." specially since it might stray back into
22951         already-created areas.  Use a subprocess if necessary.  New arg
22952         WD; all users changed.  MAKE_DIR function should now return 1
22953         if it creates a directory that is not readable.  Return -2 if
22954         a child process is spun off.
22955         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
22956         Adjust signature to match code.
22957         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
22958         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
22959         all users changed.
22960         * lib/savewd.c, lib/savewd.h: New files.
22961
22962 2006-09-15  Jim Meyering  <jim@meyering.net>
22963
22964         * modules/rename-dest-slash: New module.
22965         * MODULES.html.sh (posix_compat): Add it here.
22966
22967         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
22968
22969 2006-09-15  Jim Meyering  <jim@meyering.net>
22970
22971         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
22972         file.
22973
22974         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
22975
22976 2006-09-15  Jim Meyering  <jim@meyering.net>
22977
22978         * lib/rename-dest-slash.c (has_trailing_slash): Use
22979         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
22980         (rpl_rename_dest_slash): Perform the cheaper trailing slash
22981         test before testing whether SRC is a directory.
22982         Suggestions from Bruno Haible.
22983
22984         Avoid a warning about an unused variable.
22985         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
22986         into the #ifdef block where it's used.
22987
22988         * lib/rename-dest-slash.c: New file.
22989
22990 2006-09-14  Bruno Haible  <bruno@clisp.org>
22991
22992         * lib/allocsa.c: Include <config.h> unconditionally.
22993         * lib/asnprintf.c: Likewise.
22994         * lib/asprintf.c: Likewise.
22995         * lib/c-strcasecmp.c: Likewise.
22996         * lib/c-strcasestr.c: Likewise.
22997         * lib/c-strncasecmp.c: Likewise.
22998         * lib/c-strstr.c: Likewise.
22999         * lib/classpath.c: Likewise.
23000         * lib/clean-temp.c: Likewise.
23001         * lib/concatpath.c: Likewise.
23002         * lib/copy-file.c: Likewise.
23003         * lib/csharpcomp.c: Likewise.
23004         * lib/csharpexec.c: Likewise.
23005         * lib/execute.c: Likewise.
23006         * lib/fatal-signal.c: Likewise.
23007         * lib/findprog.c: Likewise.
23008         * lib/fwriteerror.c: Likewise.
23009         * lib/gl_array_list.c: Likewise.
23010         * lib/gl_array_oset.c: Likewise.
23011         * lib/gl_avltree_list.c: Likewise.
23012         * lib/gl_avltree_oset.c: Likewise.
23013         * lib/gl_avltreehash_list.c: Likewise.
23014         * lib/gl_carray_list.c: Likewise.
23015         * lib/gl_linked_list.c: Likewise.
23016         * lib/gl_linkedhash_list.c: Likewise.
23017         * lib/gl_list.c: Likewise.
23018         * lib/gl_oset.c: Likewise.
23019         * lib/gl_rbtree_list.c: Likewise.
23020         * lib/gl_rbtree_oset.c: Likewise.
23021         * lib/gl_rbtreehash_list.c: Likewise.
23022         * lib/imaxabs.c: Likewise.
23023         * lib/imaxdiv.c: Likewise.
23024         * lib/javacomp.c: Likewise.
23025         * lib/javaexec.c: Likewise.
23026         * lib/javaversion.c: Likewise.
23027         * lib/linebreak.c: Likewise.
23028         * lib/localcharset.c: Likewise.
23029         * lib/lock.c: Likewise.
23030         * lib/mbchar.c: Likewise.
23031         * lib/mbswidth.c: Likewise.
23032         * lib/mkdtemp.c: Likewise.
23033         * lib/pipe.c: Likewise.
23034         * lib/printf-args.c: Likewise.
23035         * lib/printf-parse.c: Likewise.
23036         * lib/progname.c: Likewise.
23037         * lib/progreloc.c: Likewise.
23038         * lib/readlink.c: Likewise.
23039         * lib/sh-quote.c: Likewise.
23040         * lib/stpcpy.c: Likewise.
23041         * lib/stpncpy.c: Likewise.
23042         * lib/strcasecmp.c: Likewise.
23043         * lib/strcasestr.c: Likewise.
23044         * lib/strcspn.c: Likewise.
23045         * lib/striconv.c: Likewise.
23046         * lib/strncasecmp.c: Likewise.
23047         * lib/strnlen1.c: Likewise.
23048         * lib/strstr.c: Likewise.
23049         * lib/strtok_r.c: Likewise.
23050         * lib/tls.c: Likewise.
23051         * lib/tmpdir.c: Likewise.
23052         * lib/unicodeio.c: Likewise.
23053         * lib/unsetenv.c: Likewise.
23054         * lib/vasnprintf.c: Likewise.
23055         * lib/vasprintf.c: Likewise.
23056         * lib/wait-process.c: Likewise.
23057         * lib/xallocsa.c: Likewise.
23058         * lib/xsetenv.c: Likewise.
23059         * lib/xstriconv.c: Likewise.
23060
23061 2006-09-13  Simon Josefsson  <jas@extundo.com>
23062
23063         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
23064         that internally, suggested by Ralf Wildenhues
23065         <Ralf.Wildenhues@gmx.de>.
23066
23067 2006-09-13  Simon Josefsson  <jas@extundo.com>
23068
23069         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
23070         @LIBOBJS@.
23071         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23072
23073 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23074
23075         * lib/_fpending.c: Include <config.h> unconditionally, since we no
23076         longer worry about uses that don't define HAVE_CONFIG_H.
23077         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
23078         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
23079         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
23080         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
23081         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
23082         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
23083         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
23084         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
23085         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
23086         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
23087         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
23088         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
23089         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
23090         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
23091         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
23092         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
23093         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
23094         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
23095         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
23096         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
23097         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
23098         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
23099         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
23100         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
23101         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
23102         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
23103         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
23104         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
23105         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
23106         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
23107         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
23108         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
23109         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
23110         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
23111         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
23112         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
23113         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
23114         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
23115         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
23116         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
23117         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
23118         Likewise.
23119
23120 2006-09-13  Eric Blake  <ebb9@byu.net>
23121
23122         * lib/getopt.c: Fix typo in last commit.
23123
23124 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23125
23126         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
23127         dgettext.
23128
23129 2006-09-12  Jim Meyering  <jim@meyering.net>
23130
23131         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
23132         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
23133         Reported by Nelson H. F. Beebe.
23134
23135 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
23136
23137         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
23138         program_invocation_name and program_invocation_short_name are
23139         initialized.
23140         * lib/argp-namefrob.h: Move declarations of program_invocation_name
23141         and program_invocation_short_name to argp.h, so they are visible
23142         to user programs.
23143         * lib/argp.h: Likewise
23144
23145 2006-09-10  Bruno Haible  <bruno@clisp.org>
23146
23147         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23148         m4/inttypes_h.m4, m4/uintmax_t.m4.
23149
23150 2006-09-10  Bruno Haible  <bruno@clisp.org>
23151
23152         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
23153         gl_AC_TYPE_UINTMAX_T.
23154
23155 2006-09-10  Bruno Haible  <bruno@clisp.org>
23156
23157         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
23158
23159 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23160
23161         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
23162         convention.  Text proposed by Bruno Haible.
23163         (struct argp_option): Document the use of N_() wrappers.
23164
23165         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
23166         '\v', and translate the two parts separately, instead of feeding
23167         the whole string to gettext.  This allows to exclude
23168         '\v' from the strings visible to the translator by writing doc
23169         strings as N_("..") "\v" N_("..").
23170
23171 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
23172
23173         * config/srclist.txt: Undo latest change; the bug was fixed.
23174
23175 2006-09-09  Bruno Haible  <bruno@clisp.org>
23176
23177         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
23178         assignments if building a library without libtool.
23179         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
23180         in func_emit_lib_Makefile_am.
23181         (func_import): When building a static library libfoo.a, arrange to
23182         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
23183         (func_create_testdir): Likewise.
23184         * modules/gc (configure.ac, Makefile.am): If building statically,
23185         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
23186         * modules/iconvme (configure.ac, Makefile.am): Likewise.
23187         * modules/striconv (configure.ac, Makefile.am): Likewise.
23188         Based on a suggestion by Ralf Wildenhues.
23189
23190 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23191
23192         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
23193         Check for unistd.h too, since Autoconf doesn't assume POSIX.
23194         Also:
23195
23196         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23197         Add year_2050_test to catch glibc bug 2821
23198         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23199
23200         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23201         Prefer #ifdef to #if.
23202
23203         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
23204         Return from 'main' instead of calling 'exit'.
23205
23206 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23207
23208         * lib/mktime.c (guess_time_tm): Fix bug where mktime
23209         returned the maximum time_t value rather than (time_t) -1.
23210         Problem originally reported by William Bardwell
23211         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23212
23213         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23214         Moved to here ...
23215         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23216         ... from here.
23217
23218 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23219
23220         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
23221         2821 is fixed.
23222
23223 2006-09-08  Jim Meyering  <jim@meyering.net>
23224
23225         Don't make generated files read-only.  That would bother too many
23226         people.  However, do retain the ability to work when targets are
23227         read-only: remove the destination and temporary files before writing
23228         them (when generated via sed or echo), or by using the -f option for
23229         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
23230         * modules/alloca-opt, modules/argz, modules/arpa_inet:
23231         * modules/byteswap, modules/configmake, modules/fcntl:
23232         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23233         * modules/localcharset, modules/netinet_in, modules/poll:
23234         * modules/stdbool, modules/stdint, modules/sys_select:
23235         * modules/sys_socket, modules/sys_stat, modules/sysexits:
23236
23237 2006-09-08  Jim Meyering  <jim@meyering.net>
23238
23239         Avoid new build failure on FreeBSD 6.0.
23240         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
23241         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
23242         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
23243
23244 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23245
23246         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
23247
23248 2006-09-07  Jim Meyering  <jim@meyering.net>
23249
23250         Fix global typo in last change: use chmod u-w, not chmod u-x.
23251         Spotted by Paul Eggert and Bruce Korb.
23252         * modules/alloca-opt, modules/argz, modules/arpa_inet:
23253         * modules/byteswap, modules/configmake, modules/fcntl:
23254         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23255         * modules/localcharset, modules/netinet_in, modules/poll:
23256         * modules/stdbool, modules/stdint, modules/sys_select:
23257         * modules/sys_socket, modules/sys_stat, modules/sysexits:
23258
23259 2006-09-06  Jim Meyering  <jim@meyering.net>
23260
23261         Make generated files be read-only.
23262         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
23263         Ensure that each generated file is now read-only.
23264         * modules/argz: Likewise.
23265         * modules/arpa_inet: Likewise.
23266         * modules/byteswap: Likewise.
23267         * modules/configmake: Likewise.
23268         * modules/fcntl: Likewise.
23269         * modules/fnmatch: Likewise.
23270         * modules/getopt: Likewise.
23271         * modules/glob: Likewise.
23272         * modules/inttypes: Likewise.
23273         * modules/netinet_in: Likewise.
23274         * modules/poll: Likewise.
23275         * modules/stdbool: Likewise.
23276         * modules/stdint: Likewise.
23277         * modules/sys_select: Likewise.
23278         * modules/sys_socket: Likewise.
23279         * modules/sys_stat: Likewise.
23280         * modules/sysexits: Likewise.
23281         * modules/localcharset: Same as above, but continue using temporary
23282         file named "t-$@" (why different?) rather than the "$@-t" used
23283         everywhere else.
23284
23285         * modules/sysexits (Makefile.am): Replace literal occurrences
23286         of "sysexit.h" more readable, and more consistent, "$@".
23287
23288 2006-09-06  Bruno Haible  <bruno@clisp.org>
23289
23290         * modules/striconv: New file.
23291         * modules/xstriconv: New file.
23292         * MODULES.html.sh (Internationalization functions): Add striconv,
23293         xstriconv.
23294
23295 2006-09-06  Bruno Haible  <bruno@clisp.org>
23296
23297         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
23298         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
23299         not using libtool correctly.
23300
23301 2006-09-06  Bruno Haible  <bruno@clisp.org>
23302
23303         * lib/striconv.h: New file.
23304         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
23305         iconvstring.c.
23306         * lib/xstriconv.h: New file.
23307         * lib/xstriconv.c: New file.
23308
23309 2006-09-06  Bruno Haible  <bruno@clisp.org>
23310
23311         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
23312         lib_..._LDFLAGS.
23313
23314 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23315
23316         * lib/argz_.h: Sync from Libtool.
23317
23318         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
23319                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23320
23321         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
23322
23323 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
23324
23325         * modules/trim: New file.
23326
23327 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
23328
23329         * lib/trim.h: New file.
23330         * lib/trim.c: New file.
23331
23332 2006-09-05  Bruno Haible  <bruno@clisp.org>
23333
23334         * MODULES.html.sh (String handling): Add trim.
23335
23336 2006-09-04  Karl Berry  <karl@gnu.org>
23337
23338         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
23339         until next release.
23340
23341 2006-09-03  Bruno Haible  <bruno@clisp.org>
23342
23343         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
23344         correctly.
23345
23346 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23347
23348         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
23349         not gl_GETLOADAVG.  Omit unneeded semicolons.
23350         Problems reported by Ralf Wildenhues in
23351         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23352         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
23353         at the end, which is the usual gnulib style.
23354
23355         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
23356         of doing all the work ourselves.
23357         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
23358         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
23359
23360 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23361
23362         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
23363         Problem reported by Ralf Wildenhues in
23364         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23365
23366         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
23367         HAVE_STRUCT_STATFS_F_FSTYPENAME.
23368
23369 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23370
23371         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
23372         yesterday's patch by changing test -n to test -z.
23373
23374 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23375
23376         * modules/getloadavg (Files): Add m4/getloadavg.m4.
23377         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
23378         the former is now obsolescent.
23379
23380         * modules/chdir-long (Depends-on): Add fcntl.
23381
23382 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23383
23384         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
23385         obsolescent, and programs should use gnulib instead.
23386         * m4/getloadavg.m4: New file, with contents taken from Autoconf
23387         but with prefixes changed.
23388
23389 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23390
23391         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
23392         or stdbool.h, because they might not exist while configuring.
23393
23394         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
23395         Don't include unistd.h or limits.h; not needed, since chdir-long.h
23396         does that for us.
23397         (O_DIRECTORY): Remove.
23398
23399 2006-08-31  Eric Blake  <ebb9@byu.net>
23400
23401         * gnulib-tool: Don't let emacs change spaces to TAB.
23402
23403 2006-08-31  Bruno Haible  <bruno@clisp.org>
23404
23405         * gnulib-tool: When calling func_import more than once, do it in a
23406         subshell.
23407         Reported by Eric Blake <ebb9@byu.net>.
23408
23409 2006-08-31  Bruno Haible  <bruno@clisp.org>
23410
23411         * gnulib-tool (nl): Remove variable.
23412         (sed_transform_lib_file): Use more robust test for config-h module.
23413         (func_import): Fix typo in 2006-08-25 patch.
23414
23415 2006-08-31  Bruno Haible  <bruno@clisp.org>
23416
23417         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
23418         specified, augment Makefile.am variables instead of assigning them.
23419
23420 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23421
23422         Work around a bug in both the Linux and SunOS 64-bit kernels:
23423         nanosleep mishandles sleeps for longer than 2**31 seconds.
23424         Problem reported by Frank v Waveren in
23425         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23426         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
23427         Check for nanosleep bug.
23428         (LIB_NANOSLEEP): Append clock_gettime library if needed.
23429
23430 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23431
23432         Work around a bug in both the Linux and SunOS 64-bit kernels:
23433         nanosleep mishandles sleeps for longer than 2**31 seconds.
23434         Problem reported by Frank v Waveren in
23435         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23436         * lib/nanosleep.c (BILLION): New constant.
23437         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
23438         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
23439         implementation.
23440
23441 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23442
23443         * modules/nanosleep (Depends-on): Add gettime.
23444
23445 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23446         and Simon Josefsson  <jas@extundo.com>
23447         and Oskar Liljeblad  <oskar@osk.mine.nu>
23448
23449         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
23450         * gnulib-tool (func_import): New license type 'unmodifiable license
23451         text'.
23452         * modules/fdl: Use it.  Longer description.
23453         * module/gpl, module/lgpl: New files.
23454
23455 2006-08-30  Jim Meyering  <jim@meyering.net>
23456
23457         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
23458         shadowing the parameter.
23459
23460 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23461
23462         Sync from Libtool:
23463
23464         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23465
23466         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
23467         sharing with gnulib.  Report by Eric Blake.
23468
23469 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23470
23471         * modules/isapipe: New file.
23472         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
23473
23474 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23475
23476         * modules/configmake (Makefile.am): Add a comment, and omit
23477         the CONFIGMAKE_ prefix from generated macro names.  Suggested
23478         by Bruno Haible.
23479
23480 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23481
23482         * m4/isapipe.m4: New file.
23483
23484 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23485
23486         * lib/isapipe.c, lib/isapipe.h: New files.
23487
23488 2006-08-29  Jim Meyering  <jim@meyering.net>
23489
23490         * modules/configmake (Makefile.am): Make configmake.h depend on
23491         Makefile.  Otherwise, a stale configmake.h could hang around.
23492
23493 2006-08-29  Eric Blake  <ebb9@byu.net>
23494
23495         * lib/error.c (error_at_line, print_errno_message): Match libc, after
23496         resolution of upstream bug 3044.
23497
23498 2006-08-29  Bruno Haible  <bruno@clisp.org>
23499
23500         * modules/localcharset (Depends-on): Add configmake.
23501         (Makefile.am): Remove setting of LIBDIR through DEFS.
23502
23503 2006-08-29  Bruno Haible  <bruno@clisp.org>
23504
23505         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
23506         defined.
23507
23508 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23509
23510         * modules/fcntl: New file.
23511         * modules/chdir-safer (Depends-on): Add fcntl.
23512         * modules/fts: Likewise.
23513         * modules/mkdir-p: Likewise.
23514
23515         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
23516         This undoes the most recent change, since we're now addressing the
23517         problem in a different way.
23518
23519         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
23520         into output, since the output might be called Makefile.am even
23521         if $makefile_name is something different.
23522         (func_import): Use $makefile_am rather than
23523         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
23524         empty.
23525
23526         * modules/inttypes (Files): Add m4/inttypes-h.m4.
23527
23528 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23529
23530         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
23531         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
23532         recent change to stdint.m4, since we're now addressing the problem in a
23533         different way.
23534
23535 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23536
23537         * m4/fcntl_h.m4: New file.
23538
23539 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23540
23541         * lib/fcntl_.h: New file.
23542         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
23543         the fcntl module.
23544         * lib/dirchownmod.c: Likewise.
23545         * lib/fts.c: Likewise.
23546
23547         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
23548         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
23549         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
23550         just before including <inttypes.h>, to avoid circular inclusion.
23551
23552 2006-08-28  Jim Meyering  <jim@meyering.net>
23553
23554         * doc/visibility.texi: Actually read and correct the grammar of the
23555         sentence affected by yesterday's change.
23556
23557 2006-08-28  Eric Blake  <ebb9@byu.net>
23558
23559         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
23560         needs wrapper.
23561
23562 2006-08-28  Eric Blake  <ebb9@byu.net>
23563
23564         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
23565
23566 2006-08-28  Eric Blake  <ebb9@byu.net>
23567
23568         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
23569
23570 2006-08-28  Bruno Haible  <bruno@clisp.org>
23571
23572         * modules/c-strstr: New file, from GNU gettext.
23573         * MODULES.html.sh (String handling): Add c-strstr.
23574
23575 2006-08-28  Bruno Haible  <bruno@clisp.org>
23576
23577         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
23578         macros.
23579         Reported by Eric Blake.
23580
23581 2006-08-28  Bruno Haible  <bruno@clisp.org>
23582
23583         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
23584         (VASNPRINTF): Return a string of length > INT_MAX without failing.
23585         * lib/vasprintf.c: Include errno.h, limits.h.
23586         (EOVERFLOW): New fallback definition.
23587         (vasprintf): Test here whether the string length is > INT_MAX.
23588         * lib/vsnprintf.c: Include errno.h, limits.h.
23589         (EOVERFLOW): New fallback definition.
23590         (vsnprintf): Fix bug when generated string was too long for the buffer.
23591         Test here whether the string length is > INT_MAX.
23592
23593 2006-08-28  Bruno Haible  <bruno@clisp.org>
23594
23595         * lib/inttypes_.h (SCNX*): Remove definitions.
23596         Reported by Eric Blake.
23597
23598 2006-08-28  Bruno Haible  <bruno@clisp.org>
23599
23600         * lib/c-strstr.h: New file, from GNU gettext.
23601         * lib/c-strstr.c: New file, from GNU gettext.
23602
23603 2006-08-28  Bruno Haible  <bruno@clisp.org>
23604
23605         * gnulib-tool: Reorder some statements.
23606
23607 2006-08-28  Bruno Haible  <bruno@clisp.org>
23608
23609         * gnulib-tool: New option --makefile-name.
23610         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
23611         $makefile_name.
23612         (func_import): Write $makefile_name to the cache file, and read it from
23613         there unless explicitly specified. Use $makefile_name as file name
23614         instead of Makefile.am. Adjust the recommendations accordingly.
23615
23616 2006-08-28  Bruno Haible  <bruno@clisp.org>
23617
23618         * gnulib-tool (func_verify_module): Check against misapplying patch.
23619
23620 2006-08-28  Bruno Haible  <bruno@clisp.org>
23621
23622         * gnulib-tool (func_relativize, func_relconcat): New functions.
23623         Give an error if --local-dir is given with --update.
23624         Remove trailing slashes from $local_gnulib_dir.
23625         (func_import): Store the relativized $local_gnulib_dir in
23626         gnulib-cache.m4, and read it from there if not specified explicitly.
23627
23628 2006-08-28  Bruno Haible  <bruno@clisp.org>
23629
23630         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
23631         is the current directory. Respect also $local_gnulib_dir.
23632
23633 2006-08-28  Bruno Haible  <bruno@clisp.org>
23634             Simon Josefsson  <jas@extundo.com>
23635
23636         BeOS portability.
23637         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
23638
23639 2006-08-27  Jim Meyering  <jim@meyering.net>
23640
23641         * doc/visibility.texi: Remove duplicate word: "pointer".
23642
23643 2006-08-26  Bruno Haible  <bruno@clisp.org>
23644
23645         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
23646         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
23647         (Makefile.am): Create inttypes.h from inttypes_.h.
23648         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
23649
23650         * modules/imaxabs: New file.
23651
23652         * modules/imaxdiv: New file.
23653
23654 2006-08-26  Bruno Haible  <bruno@clisp.org>
23655
23656         * m4/inttypes.m4: New file.
23657         * m4/_inttypes_h.m4: Remove file.
23658         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
23659         PRI_MACROS_BROKEN.
23660         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
23661
23662         * m4/imaxabs.m4: New file.
23663
23664         * m4/imaxdiv.m4: New file.
23665
23666 2006-08-26  Bruno Haible  <bruno@clisp.org>
23667
23668         * lib/inttypes_.h: New file.
23669         * lib/inttypes.h: Remove file.
23670         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
23671
23672         * lib/imaxabs.c: New file.
23673
23674         * lib/imaxdiv.c: New file.
23675
23676 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23677
23678         New config-h module, so that "make" output needn't be cluttered
23679         by -DHAVE_CONFIG_H.
23680         * MODULES.html.sh (Support for building libraries and executables):
23681         Add config-h.
23682         * modules/config-h: New file.
23683         * gnulib-tool (nl, sed_transform_lib_file): New vars.
23684         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
23685         the config-h module is used.
23686
23687         New configmake module, so that "make" output needn't be cluttered
23688         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
23689         * MODULES.html.sh (Support for building libraries and executables):
23690         Add configmake.
23691         * modules/configmake: New file.
23692
23693 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23694
23695         * m4/config-h.m4: New file.
23696
23697 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23698
23699         * config/srclist.txt: Add elisp-comp.
23700
23701 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23702
23703         * MODULES.html.sh (Support for building libraries and executables):
23704         Add elisp-comp.
23705         * build-aux/elisp-comp: New file.
23706         * modules/elisp-comp: New file.
23707
23708 2006-08-24  Bruno Haible  <bruno@clisp.org>
23709
23710         * gnulib-tool (func_create_testdir): Use non-default values of
23711         sourcebase and m4base.
23712
23713 2006-08-24  Bruno Haible  <bruno@clisp.org>
23714
23715         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
23716         HTML structure.
23717
23718 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23719
23720         * modules/openat (Depends-on): Add lchown.
23721
23722 2006-08-23  Bruno Haible  <bruno@clisp.org>
23723
23724         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
23725         of gl_LOCK_EARLY instead of gl_LOCK.
23726
23727 2006-08-23  Bruno Haible  <bruno@clisp.org>
23728
23729         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
23730         on OSF/1 to no.
23731         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
23732
23733 2006-08-23  Bruno Haible  <bruno@clisp.org>
23734
23735         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
23736         as unusable.
23737
23738         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
23739         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
23740         (gl_LOCK): New macro.
23741
23742 2006-08-22  Simon Josefsson  <jas@extundo.com>
23743
23744         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
23745         to md5 module.
23746
23747 2006-08-22  Simon Josefsson  <jas@extundo.com>
23748
23749         * MODULES.html.sh: Add "Support for maintaining and release
23750         projects".
23751
23752         * build-aux/gnupload: New file, from coreutils.
23753
23754 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23755
23756         Avoid the need for AC_LIBSOURCES in m4 macros.
23757         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
23758         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
23759         * modules/check-version (EXTRA_DIST): Add check-version.h.
23760         * modules/crc (EXTRA_DIST): Add crc.h.
23761         * modules/des (EXTRA_DIST): Add des.h.
23762         * modules/gc (EXTRA_DIST): Add gc.h.
23763         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
23764         * modules/getline (EXTRA_DIST): Add getline.h.
23765         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
23766         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
23767         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
23768         * modules/md2 (EXTRA_DIST): Add md2.h.
23769         * modules/md4 (EXTRA_DIST): Add md4.h.
23770         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
23771         * modules/read-file (EXTRA_DIST): Add read-file.h.
23772         * modules/readline (EXTRA_DIST): Add readline.h.
23773         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
23774         rijndael-api-fst.h.
23775
23776 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23777
23778         * m4/rijndael.m4 (gl_ARCFOUR):
23779         * m4/arctwo.m4 (gl_ARCTWO):
23780         * m4/check-version.m4 (gl_CHECK_VERSION):
23781         * m4/crc.m4 (gl_CRC):
23782         * m4/des.m4 (gl_DES):
23783         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
23784         * m4/gc.m4 (gl_GC):
23785         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
23786         * m4/getline.m4 (gl_FUNC_GETLINE):
23787         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
23788         * m4/hmac-md5.m4 (gl_HMAC_MD5):
23789         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
23790         * m4/md2.m4 (gl_MD2):
23791         * m4/md4.m4 (gl_MD4):
23792         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
23793         * m4/read-file.m4 (gl_FUNC_READ_FILE):
23794         * m4/readline.m4 (gl_FUNC_READLINE):
23795         * m4/rijndael.m4 (gl_RIJNDAEL):
23796         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23797         to get the necessary .h files and whatnot.
23798
23799 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23800
23801         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
23802         gnulib rather than the other way around.
23803         * config/srclistvars.sh (COREUTILS): Remove.
23804
23805 2006-08-22  Jim Meyering  <jim@meyering.net>
23806
23807         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
23808
23809         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
23810
23811 2006-08-22  Eric Blake  <ebb9@byu.net>
23812
23813         * modules/regexprops-generic: New file.
23814         * MODULES.html.sh (Support for building documentation): List it.
23815
23816 2006-08-22  Eric Blake  <ebb9@byu.net>
23817
23818         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
23819         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23820         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
23821         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23822
23823 2006-08-22  Bruno Haible  <bruno@clisp.org>
23824
23825         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
23826         and lib_LTLIBRARIES like the other lib_* variables.
23827
23828 2006-08-22  Bruno Haible  <bruno@clisp.org>
23829
23830         * build-aux/x-to-1.in: New file, from GNU gettext.
23831
23832 2006-08-22  Bruno Haible  <bruno@clisp.org>
23833
23834         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
23835         <utmpx.h> exists.
23836
23837 2006-08-22  Bruno Haible  <bruno@clisp.org>
23838
23839         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
23840         <utmpx.h> exists.
23841
23842 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23843
23844         BeOS portability.
23845         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
23846         exist.
23847         Problem reported by Bruno Haible.
23848
23849 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23850
23851         Avoid the need for AC_LIBSOURCES in m4 macros.
23852         * modules/acl (EXTRA_DIST): Add acl.h.
23853         * modules/argmatch (Files): Add m4/argmatch.m4.
23854         (configure.ac): Add gl_ARGMATCH.
23855         (EXTRA_DIST): Renamed from lib_SOURCES, for
23856         consistency with the other modules.  Remove argmatch.c.
23857         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
23858         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
23859         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
23860         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
23861         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
23862         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
23863         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
23864         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
23865         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
23866         * modules/closeout (EXTRA_DIST): Add closeout.h.
23867         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
23868         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
23869         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
23870         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
23871         dirname.h; remove basename.c and stripslash.c.
23872         * modules/exclude (EXTRA_DIST): Add exclude.h.
23873         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
23874         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
23875         * modules/file-type (EXTRA_DIST): Add file-type.h.
23876         * modules/filemode (EXTRA_DIST): Add filemode.h.
23877         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
23878         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23879         * modules/fpending (EXTRA_DIST): Add __fpending.h.
23880         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
23881         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
23882         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
23883         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
23884         * modules/getdate (EXTRA_DIST): Add getdate.c.
23885         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
23886         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
23887         * modules/getpass (EXTRA_DIST): Add getpass.h.
23888         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
23889         * modules/group-member (EXTRA_DIST): Add group-member.h.
23890         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
23891         * modules/hash (EXTRA_DIST): Add hash.h.
23892         * modules/human (EXTRA_DIST): Add human.h.
23893         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
23894         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
23895         * modules/lchown (EXTRA_DIST): Add lchown.h.
23896         * modules/long-options (EXTRA_DIST): Add long-options.h.
23897         * modules/lstat (EXTRA_DIST): Add lstat.h.
23898         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
23899         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
23900         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
23901         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
23902         * modules/memxor (EXTRA_DIST): Add memxor.h.
23903         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
23904         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
23905         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
23906         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
23907         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
23908         * modules/physmem (EXTRA_DIST): Add physmem.h.
23909         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
23910         * modules/posixver (EXTRA_DIST): Add posixver.h.
23911         * modules/quote (EXTRA_DIST): Add quote.h.
23912         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
23913         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
23914         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
23915         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
23916         regex_internal.h regexec.c.
23917         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
23918         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
23919         * modules/same (EXTRA_DIST): Add same.h.
23920         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
23921         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
23922         * modules/savedir (EXTRA_DIST): Add savedir.h.
23923         * modules/sha1 (EXTRA_DIST): Add sha1.h.
23924         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
23925         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
23926         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
23927         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
23928         * modules/strdup (EXTRA_DIST): Add strdup.h.
23929         * modules/strftime (EXTRA_DIST): Add strftime.h.
23930         * modules/strndup (EXTRA_DIST): Add strndup.h.
23931         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
23932         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
23933         * modules/time_r (EXTRA_DIST): Add time_r.h.
23934         * modules/timespec (EXTRA_DIST): Add timespec.h.
23935         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23936         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
23937         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
23938         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
23939         * modules/userspec (EXTRA_DIST): Add userspec.h.
23940         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
23941         * modules/utimens (EXTRA_DIST): Add utimens.h.
23942         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
23943         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
23944         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
23945         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
23946         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
23947         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
23948         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
23949         * modules/yesno (EXTRA_DIST): Add yesno.h.
23950
23951 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23952
23953         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
23954
23955         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
23956         * m4/dev-ino.m4, same-inode.m4: Remove.
23957
23958         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
23959         * m4/acl.m4 (AC_FUNC_ACL):
23960         * m4/backupfile.m4 (gl_BACKUPFILE):
23961         * m4/c-strtod.m4 (gl_C99_STRTOLD):
23962         * m4/canon-host.m4 (gl_CANON_HOST):
23963         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
23964         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
23965         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
23966         * m4/cloexec.m4 (gl_CLOEXEC):
23967         * m4/close-stream.m4 (gl_CLOSE_STREAM):
23968         * m4/closeout.m4 (gl_CLOSEOUT):
23969         * m4/dirfd.m4 (gl_FUNC_DIRFD):
23970         * m4/dirname.m4 (gl_DIRNAME):
23971         * m4/exclude.m4 (gl_EXCLUDE):
23972         * m4/exitfail.m4 (gl_EXITFAIL):
23973         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
23974         * m4/file-type.m4 (gl_FILE_TYPE):
23975         * m4/filemode.m4 (gl_FILEMODE):
23976         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
23977         * m4/fpending.m4 (gl_FUNC_FPENDING):
23978         * m4/fprintftime.m4 (gl_FPRINTFTIME):
23979         * m4/fts.m4 (gl_FUNC_FTS):
23980         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
23981         * m4/getdate.m4 (gl_GETDATE):
23982         * m4/gethrxtime.m4 (gl_GETHRXTIME):
23983         * m4/getpagesize.m4 (gl_GETPAGESIZE):
23984         * m4/getpass.m4 (gl_FUNC_GETPASS):
23985         * m4/gettime.m4 (gl_GETTIME):
23986         * m4/getugroups.m4 (gl_GETUGROUPS):
23987         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
23988         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
23989         * m4/hard-locale.m4 (gl_HARD_LOCALE):
23990         * m4/hash.m4 (gl_HASH):
23991         * m4/idcache.m4 (gl_IDCACHE):
23992         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
23993         * m4/lchown.m4 (gl_FUNC_LCHOWN):
23994         * m4/long-options.m4 (gl_LONG_OPTIONS):
23995         * m4/lstat.m4 (gl_FUNC_LSTAT):
23996         * m4/md5.m4 (gl_MD5):
23997         * m4/memcasecmp.m4 (gl_MEMCASECMP):
23998         * m4/memcoll.m4 (gl_MEMCOLL):
23999         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
24000         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
24001         * m4/memxor.m4 (gl_MEMXOR):
24002         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
24003         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
24004         * m4/modechange.m4 (gl_MODECHANGE):
24005         * m4/mountlist.m4 (gl_MOUNTLIST):
24006         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
24007         * m4/openat.m4 (gl_FUNC_OPENAT):
24008         * m4/pathmax.m4 (gl_PATHMAX):
24009         * m4/physmem.m4 (gl_PHYSMEM):
24010         * m4/posixtm.m4 (gl_POSIXTM):
24011         * m4/posixver.m4 (gl_POSIXVER):
24012         * m4/quote.m4 (gl_QUOTE):
24013         * m4/quotearg.m4 (gl_QUOTEARG):
24014         * m4/readtokens.m4 (gl_READTOKENS):
24015         * m4/readutmp.m4 (gl_READUTMP):
24016         * m4/regex.m4 (gl_REGEX):
24017         * m4/safe-read.m4 (gl_SAFE_READ):
24018         * m4/safe-write.m4 (gl_SAFE_WRITE):
24019         * m4/same.m4 (gl_SAME):
24020         * m4/save-cwd.m4 (gl_SAVE_CWD):
24021         * m4/savedir.m4 (gl_SAVEDIR):
24022         * m4/settime.m4 (gl_SETTIME):
24023         * m4/sha1.m4 (gl_SHA1):
24024         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
24025         * m4/stat-macros.m4 (gl_STAT_MACROS):
24026         * m4/stat-time.m4 (gl_STAT_TIME):
24027         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
24028         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
24029         * m4/strdup.m4 (gl_FUNC_STRDUP):
24030         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
24031         * m4/strndup.m4 (gl_FUNC_STRNDUP):
24032         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
24033         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
24034         * m4/time_r.m4 (gl_TIME_R):
24035         * m4/timespec.m4 (gl_TIMESPEC):
24036         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
24037         * m4/unlinkdir.m4 (gl_UNLINKDIR):
24038         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
24039         * m4/userspec.m4 (gl_USERSPEC):
24040         * m4/utimecmp.m4 (gl_UTIMECMP):
24041         * m4/utimens.m4 (gl_UTIMENS):
24042         * m4/xalloc.m4 (gl_XALLOC):
24043         * m4/xgetcwd.m4 (gl_XGETCWD):
24044         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
24045         * m4/xreadlink.m4 (gl_XREADLINK):
24046         * m4/xstrtod.m4 (gl_XSTRTOD):
24047         * m4/yesno.m4 (gl_YESNO):
24048         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24049         to get the necessary .h files and whatnot.
24050
24051 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
24052             Bruno Haible  <bruno@clisp.org>
24053
24054         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
24055         /bin/sh understanding of '!' conditional negation.
24056
24057 2006-08-21  Jim Meyering  <jim@meyering.net>
24058
24059         * modules/openat (Depends-on): Really alphabetize.
24060
24061         * modules/acl (Depends-on): Add error and quote.
24062
24063         * check-module (find_included_lib_files): Add at-func.c to the
24064         ok-to-include-more-than-once white list.
24065
24066         * modules/openat (Depends-on): Add lstat.  Alphabetize.
24067
24068 2006-08-21  Bruno Haible  <bruno@clisp.org>
24069
24070         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24071         Emit a pkgdata_DATA variable only if some snippets add contents to it.
24072         Reported by Martin Lambers <marlam@marlam.de>.
24073
24074 2006-08-21  Bruno Haible  <bruno@clisp.org>
24075
24076         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
24077         specify an installation location, don't emit a noinst_LIBRARIES or
24078         noinst_LTLIBRARIES assignment.
24079
24080 2006-08-21  Bruno Haible  <bruno@clisp.org>
24081
24082         BeOS portability.
24083         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
24084         BeOS has mbrtowc() but no <wctype.h>.
24085
24086 2006-08-21  Bruno Haible  <bruno@clisp.org>
24087
24088         BeOS portability.
24089         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
24090         exist.
24091
24092 2006-08-21  Bruno Haible  <bruno@clisp.org>
24093
24094         BeOS portability.
24095         * lib/mbchar.h: Include <wctype.h> only if it exists.
24096
24097 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24098
24099         Remove files that are no longer needed by their respective modules.
24100         * m4/obstack.m4: Remove.
24101         * m4/strerror_r.m4: Remove.
24102         * m4/uint32_t.m4: Remove.
24103         * m4/uintptr_t.m4: Remove.
24104         * m4/ullong_max.m4: Remove.
24105         * m4/xstrtoimax.m4: Remove.
24106         * m4/xstrtoumax.m4: Remove.
24107
24108         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
24109         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
24110         dependencies now capture this.
24111
24112         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
24113         Do not use AC_LIBSOURCES, since gnulib modules now do this.
24114         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
24115         * m4/human.m4 (gl_HUMAN): Likewise.
24116         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
24117         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
24118
24119         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
24120
24121         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
24122         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
24123         stdint.
24124         * m4/human.m4 (gl_HUMAN): Likewise.
24125         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
24126         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
24127         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24128         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24129         * m4/xstrtol (gl_XSTRTOL): Likewise.
24130
24131         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
24132         AC_TYPE_LONG_LONG_INT.
24133         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24134         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
24135         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
24136         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24137
24138         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
24139         on stdbool.
24140
24141         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
24142         (gl_PREREQ_XSTRTOUL): Remove.
24143
24144         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
24145
24146         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
24147         mode.
24148
24149 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24150
24151         Add and change modules to make it easier for coreutils to use
24152         gnulib-tool.
24153         * modules/backupfile (Files): Remove m4/d-ino.m4.
24154         (Depends-on): Add d-ino.
24155         * modules/cycle-check (Depends-on): Add stdint.
24156         (lib_SOURCES): Add cycle-check.h.
24157         * modules/d-ino: New module.
24158         * modules/d-type: New module.
24159         * modules/error (Files): Remove m4/strerror_r.m4.
24160         * modules/filemode (Files): Add m4/st_dm_mode.m4.
24161         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24162         m4/inttypes_h.m4, m4/uintmax_t.m4.
24163         (Depends-on): Add stdint.
24164         (lib_SOURCES): Add fsusage.h.
24165         * modules/getcwd (Files): Remove d-ino.m4.
24166         (Depends-on): Add d-ino.
24167         * modules/getndelim2 (Depends-on): Add stdint.
24168         * modules/glob (Files): Remove m4/d-type.m4.
24169         (Depends-on): Add d-type.
24170         * modules/host-os: New module.
24171         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
24172         m4/inttypes_h.m4, m4/uintmax_t.m4.
24173         * Depends-on: Add stdint.
24174         (lib_SOURCES): Add human.h.
24175         * modules/inttostr (Files): Remove m4/intmax_t.m4,
24176         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
24177         m4/uintmax_t.m4, m4/ulonglong.m4.
24178         (Depends-on): Add stdint.
24179         (EXTRA_DIST): Add inttostr.h.
24180         * modules/lchmod: New module.
24181         * modules/link-follow: New module.
24182         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
24183         (Depends-on): Add lchmod.
24184         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
24185         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
24186         (Depends-on): Add stdint.
24187         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
24188         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
24189         (Depends-on): Add stdint.
24190         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
24191         * modules/perl: New module.
24192         * modules/regex (Depends-on): Add stdint.
24193         * modules/rmdir-errno: New module.
24194         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24195         m4/intmax_t.m4.
24196         (Depends-on): Add stdint.
24197         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24198         m4/uintmax_t.m4.
24199         (Depends-on): Add stdint.
24200         * modules/unlink-busy: New module.
24201         * modules/utimecmp (Depends-on): Add stdint.
24202         * modules/uptime: New module.
24203         * modules/winsz-ioctl: New module.
24204         * modules/winsz-termios: New module.
24205         * modules/xnanosleep (Depends-on): Add nanosleep.
24206         * modules/ullong_max: Remove.
24207         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
24208         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
24209         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
24210         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
24211         (Depends-on): Add inttypes.
24212         (lib_SOURCES): Add xstrtol.h.
24213         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
24214         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
24215         * MODULES.html.sh: Move 'assert' into the assert section.
24216         Move 'dummy' into the linking section.
24217         Remove ullong_max.
24218         Add section for compatibility checks for POSIX:2001 functions,
24219         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
24220         winsz-ioctl, and winsz-termios into it.
24221         Add lchmod.
24222         Add top-level Misc section and put host-os, perl, and uptime
24223         into it.
24224
24225 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24226
24227         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
24228         now assume the stdint module.  Do not include inttypes.h.
24229         * lib/fsusage.h: Likewise.
24230         * lib/getndelim2.c: Likewise.
24231         * lib/human.h: Likewise.
24232         * lib/inttostr.h: Likewise.
24233         * lib/obstack.c: Likewise.
24234         * lib/regex_internal.h: Likewise.
24235         * lib/tempname.c: Likewise.
24236         * lib/utimecmp.c: Likewise.
24237         * lib/xstrtol.h: Likewise.
24238
24239         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
24240
24241         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
24242         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
24243         * lib/xtime.h: Likewise.
24244
24245 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24246
24247         * modules/openat (Files): Add lib/fchmodat.c.
24248         Fixes problem reported by Jay Youngman.
24249
24250 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24251
24252         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
24253         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
24254
24255 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24256             Bruno Haible  <bruno@clisp.org>
24257
24258         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
24259         and is a script that invokes bison. Tighten the code. Add comments.
24260
24261 2006-08-18  Jim Meyering  <jim@meyering.net>
24262
24263         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
24264         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
24265         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
24266         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
24267
24268 2006-08-18  Bruno Haible  <bruno@clisp.org>
24269
24270         * modules/bison-i18n: New file.
24271         * MODULES.html.sh (Internationalization functions): Add it.
24272
24273 2006-08-18  Bruno Haible  <bruno@clisp.org>
24274
24275         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
24276         sys/statvfs.h. When getmntinfo was found, check its declaration and
24277         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
24278
24279 2006-08-18  Bruno Haible  <bruno@clisp.org>
24280
24281         * m4/bison-i18n.m4: New file, from bison.
24282
24283 2006-08-18  Bruno Haible  <bruno@clisp.org>
24284
24285         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
24286         (ME_DUMMY): Treat "kernfs" as a dummy.
24287         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
24288
24289 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24290
24291         Update from coreutils.
24292
24293         2006-08-15  Jim Meyering  <jim@meyering.net>
24294
24295         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
24296
24297         2006-01-17  Jim Meyering  <jim@meyering.net>
24298
24299         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
24300
24301         2006-01-11  Jim Meyering  <jim@meyering.net>
24302
24303         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
24304         Check for the lchmod function.
24305
24306 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24307
24308         Update from coreutils.
24309
24310         * lib/__fpending.h: Add copyright notice.
24311         * lib/fprintftime.h: Likewise.
24312         * lib/savedir.c: Use (C) in copyright notice.
24313         * lib/savedir.h: Likewise.
24314
24315         2006-08-15  Jim Meyering  <jim@meyering.net>
24316
24317         * lib/at-func.c: New file, with the logic of all emulated at-functions.
24318         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
24319         in support of the EXPECTED_ERRNO macro.
24320         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
24321         definitions.  Instead, define the appropriate symbols and include
24322         "at-func.c".
24323         * lib/mkdirat.c (mkdirat): Likewise.
24324         * lib/fchmodat.c (fchmodat): Likewise.
24325         (ENOSYS): Remove definition.
24326         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
24327         it.  Don't include "unistd--.h" -- it wasn't ever used.
24328
24329         2006-01-17  Jim Meyering  <jim@meyering.net>
24330
24331         Rewrite fts.c not to change the current working directory,
24332         by using openat, fstatat, fdopendir, etc..
24333
24334         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
24335         (HAVE_OPENAT_SUPPORT): Define.
24336         [_LIBC] (fchdir): Don't undef or define; no longer used.
24337         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
24338         Now, this `function' always succeeds, and consumes its file descriptor
24339         parameter -- so callers must not close such FDs.  Update callers.
24340         (diropen_fd, opendirat, cwd_advance_fd): New functions.
24341         (diropen): Add parameter, SP.  Adjust all callers.
24342         Implement using diropen_fd, rather than open.
24343         (fts_open): Initialize new member, fts_cwd_fd.
24344         Remove fts_rft-setting code.
24345         (fts_close): Close fts_cwd_fd, if necessary.
24346         (__opendir2): Define in terms of opendir or opendirat,
24347         depending on whether the FST_NOCHDIR flag is set.
24348         (fts_build): Since fts_safe_changedir consumes its FD, and since
24349         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
24350         and close the dup'd file descriptor upon failure.
24351         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
24352         (fts_safe_changedir): Tweak semantics to reflect that this function
24353         now calls cwd_advance_fd and hence consumes its FD argument.
24354         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
24355         [struct FTS] (fts_rft): Remove now-unused member.
24356         [struct FTS] (fts_cycle.state): Improve comment.
24357
24358         * lib/openat.c (openat_needs_fchdir): New function.
24359         * lib/openat.h (openat_needs_fchdir): Declare it.
24360
24361 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24362
24363         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
24364         Problem and fix reported by Pádraig Brady in
24365         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
24366
24367 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24368
24369         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
24370
24371 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24372
24373         * lib/memcoll.c (memcoll): Optimize for the common case where the
24374         arguments are bytewise equal.
24375
24376 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24377
24378         * doc/regexprops-generic.texi: Add a copyright notice.
24379
24380 2006-08-15  Bruno Haible  <bruno@clisp.org>
24381
24382         * modules/tmpdir (License): Change to LGPL.
24383
24384 2006-08-15  Bruno Haible  <bruno@clisp.org>
24385
24386         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
24387         module.
24388
24389 2006-08-14  Simon Josefsson  <jas@extundo.com>
24390
24391         * config/srclist.txt: Add gnupload.
24392
24393 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24394
24395         Change copyright notice from LGPL 2 to GPL 2, since that's the
24396         standard form used in the gnulib repository.
24397         * tests/test-lock.c: Likewise.
24398         * tests/test-stdint.c: Likewise.
24399         * tests/test-tls.c: Likewise.
24400
24401         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
24402         prelude-manager.  User shorter URLs for GNU projects, without '?'.
24403         Add copyright notice.
24404
24405         * check-module: Add copyright notice.  Output a copyright
24406         notice if "--version" is specified.
24407         * modules/COPYING: New file.
24408         * tests/test-getaddrinfo.c: Add copyright notice.
24409         * tests/test-verify.c: Likewise.
24410
24411 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24412
24413         Change copyright notice from LGPL 2 to GPL 2, since that's the
24414         standard form used in the gnulib repository.
24415         * lib/lock.c: LGPL -> GPL.
24416         * lib/lock.h: Likewise.
24417         * lib/strnlen1.c: Likewise.
24418         * lib/strnlen1.h: Likewise.
24419         * lib/tls.c: Likewise.
24420         * lib/tls.h: Likewise.
24421         * lib/tmpdir.c: Likewise.
24422
24423         * lib/TODO: Remove; this belongs only in coreutils.
24424
24425 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24426
24427         Add copyright notices to long-enough files that lack them, since
24428         otherwise the files aren't clearly free.  Use the same notice that
24429         getdate.texi already uses.
24430         * doc/alloca-opt.texi: Add copyright notice.
24431         * doc/alloca.texi: Likewise.
24432         * doc/ctime.texi: Likewise.
24433         * doc/functions.texi: Likewise.
24434         * doc/gcd.texi: Likewise.
24435         * doc/gnulib-tool.texi: Likewise.
24436         * doc/inet_ntoa.texi: Likewise.
24437         * doc/visibility.texi: Likewise.
24438
24439         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
24440         * doc/quote.texi: Add copyright notice.
24441
24442         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
24443         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
24444         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
24445         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
24446         is now obsolete, and give a pointer to the Sun list.
24447         Add copyright notice.
24448
24449 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24450
24451         * config/srclistvars.sh: Add copyright notice.
24452
24453 2006-08-14  Eric Blake  <ebb9@byu.net>
24454
24455         Import the following change from libc:
24456
24457         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
24458
24459         Upstream bug 2997.
24460         * lib/misc/error.c: Add space between program name and message if file
24461         name is missing.
24462
24463 2006-08-12  Karl Berry  <karl@gnu.org>
24464
24465         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
24466         remove, these originate in gnulib now.
24467
24468 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24469
24470         * doc/Makefile (standards.info standards.html standards.dvi):
24471         Also depend on make-stds.texi.
24472
24473 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24474
24475         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
24476         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
24477
24478         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
24479         in wchar_t.  Problem reported by Eric Blake.
24480
24481         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
24482         LEN is smaller than SIZE.  Suggested by Bruno Haible.
24483         Also, help the compiler to keep LEN in a register.
24484
24485 2006-08-11  Eric Blake  <ebb9@byu.net>
24486
24487         * users.txt: Sort.  Add tar.
24488
24489 2006-08-11  Bruno Haible  <bruno@clisp.org>
24490
24491         * users.txt: New file.
24492
24493 2006-08-11  Bruno Haible  <bruno@clisp.org>
24494
24495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
24496         before <wchar.h>. Needed for OSF/1 and BSD/OS.
24497
24498 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24499
24500         * modules/snprintf (Depends-on): Remove minmax.
24501         (Maintainer): Add self and Bruno.
24502
24503 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24504
24505         * lib/.cppi-disable: Add snprintf.h, socket_.h.
24506         * lib/snprintf.c: Include <errno.h> and <limits.h>.
24507         (EOVERFLOW): Define if the system does not.
24508         Do not include "minmax.h"; it wasn't used.
24509         (snprintf): Don't assume size_t promotes to an unsigned type.
24510         Fix bug when generated string was too long for the buffer: the
24511         buffer's contents are supposed to be the initial prefix of the
24512         output.  Don't assume vasnprintf returns EOVERFLOW if the size
24513         exceeds INT_MAX; do the check ourselves.
24514
24515         Import the following changes from libc:
24516
24517         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
24518
24519         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
24520         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
24521         set wc to the byte which couldn't be converted.
24522         (re_string_reconstruct): Don't clear valid_raw_len before calling
24523         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
24524         tip_context using re_string_context_at.
24525
24526         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
24527
24528         * lib/posix/regex.h: g++ still cannot handled [restrict].
24529
24530         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
24531
24532         * lib/posix/regex.h: Remove special handling for VMS.
24533
24534 2006-08-10  Jim Meyering  <jim@meyering.net>
24535
24536         * modules/same-inode: New module.
24537         * modules/dev-ino: New module.
24538         * modules/cycle-check: Depend on these modules, rather than simply
24539         including their .h files.
24540         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
24541         required via m4/cycle-check.m4.
24542         * modules/same: Depend on new same-inode module, rather than
24543         including same-inode.h.
24544         * modules/chdir-safer: New file.
24545
24546         * modules/chown (Depends-on): Add stat-macros.
24547
24548 2006-08-10  Jim Meyering  <jim@meyering.net>
24549
24550         * m4/cycle-check.m4: New file.
24551         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
24552         * m4/dev-ino.m4, m4/same-inode.m4: New files.
24553
24554 2006-08-10  Eric Blake  <ebb9@byu.net>
24555
24556         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
24557         in from original proposal.
24558
24559 2006-08-10  Eric Blake  <ebb9@byu.net>
24560         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24561
24562         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
24563         namespace.
24564
24565 2006-08-10  Bruno Haible  <bruno@clisp.org>
24566
24567         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
24568         as well.
24569
24570 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24571
24572         Sync from coreutils.
24573
24574         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
24575
24576         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
24577         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
24578
24579 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24580
24581         * modules/restrict: Remove; no longer needed now that we assume
24582         Autoconf 2.59 or later.
24583         * MODULES.html.sh: Remove 'restrict'.
24584         * modules/argp (Depends-on): Remove 'restrict'.
24585         * modules/base64 (Depends-on): Likewise.
24586         * modules/gc (Depends-on): Likewise.
24587         * modules/getaddrinfo (Depends-on): Likewise.
24588         * modules/glob (Depends-on): Likewise.
24589         * modules/inet_ntop (Depends-on): Likewise.
24590         * modules/inet_pton (Depends-on): Likewise.
24591         * modules/memxor (Depends-on): Likewise.
24592         * modules/regex (Depends-on): Likewise.
24593         * modules/strtok_r (Depends-on): Likewise.
24594         * modules/time_r (Depends-on): Likewise.
24595
24596 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24597
24598         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
24599         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
24600         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24601         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
24602         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24603         * m4/memxor.m4 (gl_MEMXOR): Likewise.
24604         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
24605         gl_C_RESTRICT replaced by AC_C_RESTRICT.
24606
24607         Merge from coreutils.
24608         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
24609         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
24610         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24611         * m4/time_r.m4 (gl_TIME_R): Likewise.
24612
24613 2006-08-09  Karl Berry  <karl@gnu.org>
24614
24615         * config/srclist.txt: no more gettext-tools, per Bruno.
24616
24617 2006-08-08  Eric Blake  <ebb9@byu.net>
24618
24619         * modules/verror: New module.
24620         * MODULES.html.sh: Document it.
24621
24622 2006-08-08  Eric Blake  <ebb9@byu.net>
24623
24624         * lib/verror.h, lib/verror.c: New files.
24625
24626 2006-08-08  Eric Blake  <ebb9@byu.net>
24627
24628         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
24629         verror_at_line output complies with GNU Coding Standards even when
24630         file is NULL.
24631
24632 2006-08-07  Bruno Haible  <bruno@clisp.org>
24633
24634         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
24635         versions of AIX.
24636         Reported by Ralf Wildenhues.
24637
24638 2006-08-07  Bruno Haible  <bruno@clisp.org>
24639
24640         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
24641         in an AC_DEFUN. Needed so that the autoconf snippets can use
24642         AC_REQUIRE.
24643
24644 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24645
24646         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24647         Initialize pkgdata_DATA.
24648         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
24649         overriding it.
24650
24651 2006-08-06  Eric Blake  <ebb9@byu.net>
24652
24653         * lib/error.h: Fold in some upstream changes from glibc.
24654         * lib/error.c: Likewise.
24655
24656 2006-08-04  Bruno Haible  <bruno@clisp.org>
24657
24658         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24659         Make the mostlyclean-local rule depend on mostlyclean-generic.
24660         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
24661
24662 2006-07-31  Bruno Haible  <bruno@clisp.org>
24663
24664         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
24665         <stdlib.h>, <string.h>.
24666
24667 2006-07-30  Bruno Haible  <bruno@clisp.org>
24668
24669         * modules/readlink (License): Change to LGPL.
24670
24671 2006-07-30  Bruno Haible  <bruno@clisp.org>
24672
24673         * modules/javaversion (Makefile.am): Distribute javaversion.java and
24674         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
24675         set PKGDATADIR to point to it.
24676
24677 2006-07-30  Bruno Haible  <bruno@clisp.org>
24678
24679         * modules/csharpexec (configure.ac): Comment out macro invocation.
24680         * modules/javaexec (configure.ac): Likewise.
24681         * modules/javacomp-script (configure.ac): Likewise.
24682
24683         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
24684
24685 2006-07-30  Bruno Haible  <bruno@clisp.org>
24686
24687         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
24688         linked-list.
24689
24690 2006-07-30  Bruno Haible  <bruno@clisp.org>
24691
24692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
24693
24694 2006-07-30  Bruno Haible  <bruno@clisp.org>
24695
24696         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24697         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
24698         get removed.
24699
24700 2006-07-29  Bruno Haible  <bruno@clisp.org>
24701
24702         Make it possible for gnulib-tool to work with locally modified or
24703         augmented gnulib repositories.
24704         * gnulib-tool (func_usage): Document --local-dir option.
24705         (local_gnulib_dir): New variable.
24706         Handle --local-dir option.
24707         (func_lookup_file): New function.
24708         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
24709         (func_get_description, func_get_filelist, func_get_description,
24710         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
24711         func_get_automake_snippet, func_get_include_directive,
24712         func_get_license, func_get_maintainer): Use func_lookup_file.
24713         (func_import, func_create_testdir): Use func_lookup_file.
24714
24715 2006-07-29  Bruno Haible  <bruno@clisp.org>
24716
24717         * modules/setenv (Depends-on): Add unistd.
24718
24719 2006-07-29  Bruno Haible  <bruno@clisp.org>
24720
24721         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
24722
24723 2006-07-29  Bruno Haible  <bruno@clisp.org>
24724
24725         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
24726
24727 2006-07-29  Bruno Haible  <bruno@clisp.org>
24728
24729         * gnulib-tool (import, update): If there is no Makefile.am, look at
24730         aclocal.m4, instead of bailing out.
24731
24732 2006-07-29  Bruno Haible  <bruno@clisp.org>
24733
24734         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
24735         Categorize the options by when they are useful.
24736
24737 2006-07-29  Bruno Haible  <bruno@clisp.org>
24738
24739         * gnulib-tool (func_usage): Document option --no-libtool.
24740         Handle option --no-libtool.
24741         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
24742         for changed semantics of $libtool variable.
24743         (func_import): Likewise. If libtool is not used, show this through
24744         an option --no-libtool.
24745         (func_create_testdir): Update.
24746
24747 2006-07-29  Bruno Haible  <bruno@clisp.org>
24748
24749         * gnulib-tool (func_import): Extend error message about missing
24750         --doc-base.
24751
24752 2006-07-29  Bruno Haible  <bruno@clisp.org>
24753
24754         * gnulib-tool (func_import): Don't create the $docbase directory if
24755         there is no file to store there.
24756
24757 2006-07-29  Bruno Haible  <bruno@clisp.org>
24758
24759         * gnulib-tool (autoconf_minversion): If a --dir option is given and
24760         relevant, look for configure.ac there, not in the current directory.
24761         Also use a simple search for AC_PREREQ, not "autoconf --trace".
24762
24763 2006-07-29  Bruno Haible  <bruno@clisp.org>
24764
24765         * gnulib-tool (SORT): New variable.
24766         (func_usage): Undocument --assume-autoconf option.
24767         Remove --assume-autoconf option handling.
24768         (autoconf_minversion): Determine from the contents of configure.ac.
24769         (func_import): Remove autoconf_minversion handling.
24770         Suggested by Eric Blake.
24771
24772 2006-07-29  Bruno Haible  <bruno@clisp.org>
24773
24774         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
24775
24776 2006-07-29  Bruno Haible  <bruno@clisp.org>
24777
24778         * config/srclist.txt (*setenv.[ch]): Remove rules.
24779
24780 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24781
24782         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
24783
24784 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24785
24786         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
24787         arpa/inet.h.
24788
24789 2006-07-28  Simon Josefsson  <jas@extundo.com>
24790
24791         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
24792         * modules/inet_pton (Depends-on): Likewise.
24793
24794 2006-07-28  Simon Josefsson  <jas@extundo.com>
24795
24796         * m4/netinet_in_h.m4: New file.
24797
24798 2006-07-28  Simon Josefsson  <jas@extundo.com>
24799
24800         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
24801         #include's.
24802
24803 2006-07-28  Simon Josefsson  <jas@extundo.com>
24804
24805         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
24806         #include's.
24807
24808 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
24809
24810         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
24811         setgid on directories only if they set these bits.
24812         * lib/modechange.h: Remove obsolete comment about masks.
24813
24814 2006-07-28  Eric Blake  <ebb9@byu.net>
24815
24816         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
24817         macro expansion.
24818
24819 2006-07-28  Bruno Haible  <bruno@clisp.org>
24820
24821         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
24822
24823 2006-07-28  Bruno Haible  <bruno@clisp.org>
24824
24825         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
24826
24827 2006-07-28  Bruno Haible  <bruno@clisp.org>
24828
24829         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24830         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24831         Define fallbacks.
24832         Avoids link error on FreeBSD 4.x.
24833         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24834
24835         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
24836         encoding.
24837         * lib/mbswidth.c (iswcntrl): Likewise.
24838
24839 2006-07-27  Bruno Haible  <bruno@clisp.org>
24840
24841         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
24842         test.
24843
24844 2006-07-27  Bruno Haible  <bruno@clisp.org>
24845
24846         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
24847         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
24848         defined.
24849
24850 2006-07-26  Eric Blake  <ebb9@byu.net>
24851
24852         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
24853
24854 2006-07-26  Eric Blake  <ebb9@byu.net>
24855
24856         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
24857         like mingw that lack mkstemp.
24858         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
24859         avoid compilation warning on mingw.
24860
24861 2006-07-26  Bruno Haible  <bruno@clisp.org>
24862
24863         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
24864         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
24865         INT_FAST*_MIN, INTPTR_MIN.
24866
24867 2006-07-25  Bruno Haible  <bruno@clisp.org>
24868
24869         * modules/version-etc (Depends-on): Add stdarg.
24870
24871 2006-07-25  Bruno Haible  <bruno@clisp.org>
24872
24873         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
24874         complex commands.
24875
24876 2006-07-25  Bruno Haible  <bruno@clisp.org>
24877
24878         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
24879         defined in <stdarg.h> or config.h.
24880
24881 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24882
24883         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
24884         (gl_STDIO_SAFER): Remove.
24885
24886 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24887
24888         * MODULES.html.sh (File stream based Input/Output):
24889         Add fopen-safer, tmpfile-safer; remove stdio-safer.
24890         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
24891         * modules/fopen-safer, modules/tmpfile-safer: New files.
24892         * modules/stdio-safer: Remove.
24893
24894 2006-07-24  Bruno Haible  <bruno@clisp.org>
24895
24896         * modules/tmpdir: New file.
24897         * MODULES.html.sh (File system functions): Add it.
24898
24899 2006-07-24  Bruno Haible  <bruno@clisp.org>
24900
24901         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
24902         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
24903
24904 2006-07-24  Bruno Haible  <bruno@clisp.org>
24905
24906         * modules/clean-temp: New file.
24907
24908 2006-07-24  Bruno Haible  <bruno@clisp.org>
24909
24910         * m4/tmpdir.m4: New file, from GNU gettext.
24911
24912 2006-07-24  Bruno Haible  <bruno@clisp.org>
24913
24914         * lib/tmpdir.h: New file, from GNU gettext.
24915         * lib/tmpdir.c: New file, from GNU gettext.
24916
24917 2006-07-24  Bruno Haible  <bruno@clisp.org>
24918
24919         * lib/clean-temp.h: New file, from GNU gettext.
24920         * lib/clean-temp.c: New file, from GNU gettext.
24921
24922 2006-07-23  Eric Blake  <ebb9@byu.net>
24923
24924         * modules/stdio-safer (Files): Add tmpfile-safer.c.
24925         (Depends-on): Add binary-io.
24926
24927 2006-07-23  Eric Blake  <ebb9@byu.net>
24928
24929         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
24930
24931 2006-07-23  Eric Blake  <ebb9@byu.net>
24932
24933         * lib/tmpfile-safer.c: New file.
24934         * lib/stdio-safer.h (fopen_safer): Add prototype.
24935         * lib/stdio--.h (tmpfile): Make safer.
24936
24937 2006-07-23  Bruno Haible  <bruno@clisp.org>
24938
24939         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
24940         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
24941         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
24942         gl_linked_remove_at): Use it.
24943
24944 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24945         and Simon Josefsson <jas@extundo.com>
24946
24947         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
24948
24949         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
24950
24951 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24952
24953         * modules/close-stream: New file.
24954         * modules/closeout (Description): Make it clear that it exits
24955         with a diagnostic on error.
24956         (Depends-on): Add close-stream.  Remove fpending, stdbool.
24957         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
24958
24959 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24960
24961         * m4/close-stream.m4: New file.
24962
24963 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24964
24965         * lib/close-stream.c, lib/close-stream.h: New files.
24966
24967 2006-07-22  Bruno Haible  <bruno@clisp.org>
24968
24969         Merge from GNU gettext 0.15.
24970
24971         2006-05-01  Bruno Haible  <bruno@clisp.org>
24972
24973                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
24974
24975         2006-07-22  Bruno Haible  <bruno@clisp.org>
24976
24977                 * modules/javaversion: New file.
24978                 * MODULES.html.sh (Java): Add javaversion.
24979
24980         2006-03-12  Bruno Haible  <bruno@clisp.org>
24981
24982                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
24983
24984         2005-12-04  Bruno Haible  <bruno@clisp.org>
24985
24986                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
24987                 (untested).
24988
24989         2006-06-21  Bruno Haible  <bruno@clisp.org>
24990
24991                 Avoid warnings from recent versions of mcs.
24992                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
24993                 -o, -L, -r any more. Use options documented since mcs-1.0
24994                 instead. Similarly for -g.
24995
24996         2005-12-04  Bruno Haible  <bruno@clisp.org>
24997
24998                 * build-aux/csharpcomp.sh.in: Suffix for resources is
24999                 .resources, not .resource.
25000
25001         2005-07-09  Bruno Haible  <bruno@clisp.org>
25002
25003                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
25004                 add a .dll suffix.
25005                 Reported by Mark Junker <mjscod@gmx.de>.
25006
25007         2006-07-22  Bruno Haible  <bruno@clisp.org>
25008
25009                 * modules/gettext: Upgrade to gettext-0.15.
25010                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
25011                 m4/visibility.m4.
25012                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
25013
25014 2006-07-22  Bruno Haible  <bruno@clisp.org>
25015
25016         Merge from GNU gettext 0.15.
25017
25018         2006-03-25  Bruno Haible  <bruno@clisp.org>
25019
25020                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
25021
25022         2006-07-21  Bruno Haible  <bruno@clisp.org>
25023
25024                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
25025                 "1.1".
25026
25027         2006-05-09  Bruno Haible  <bruno@clisp.org>
25028
25029                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
25030                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
25031                 for the conftestver execution.
25032
25033         2006-05-01  Bruno Haible  <bruno@clisp.org>
25034
25035                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
25036                 optional target-version argument. Verify that the compiler
25037                 groks source of the specified source-version, or add -source
25038                 option as necessary. Verify that the compiler produces
25039                 bytecode in the specified target-version, or add -target and
25040                 -source options as necessary. Make the result of the test
25041                 available as variable CONF_JAVAC. Also log error output in
25042                 config.log.
25043
25044         2006-03-11  Bruno Haible  <bruno@clisp.org>
25045
25046                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
25047
25048         2006-05-09  Bruno Haible  <bruno@clisp.org>
25049
25050                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
25051                 CLASSPATH_SEPARATOR to a semicolon.
25052
25053         2006-03-12  Bruno Haible  <bruno@clisp.org>
25054
25055                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
25056                 available as variable CONF_JAVA, for subsequent autoconf
25057                 tests. Also log error output in config.log.
25058
25059         2006-07-19  Bruno Haible  <bruno@clisp.org>
25060
25061                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
25062                 that getline works on glibc2 systems. Needed to avoid trouble
25063                 in relocatable.c.
25064                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
25065
25066         2005-12-04  Bruno Haible  <bruno@clisp.org>
25067
25068                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
25069                 launcher (untested).
25070
25071         2005-12-04  Bruno Haible  <bruno@clisp.org>
25072
25073                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
25074
25075         2006-07-22  Bruno Haible  <bruno@clisp.org>
25076
25077                 * gettext.m4: Update from GNU gettext-0.15.
25078                 * nls.m4: Likewise.
25079                 * po.m4: Likewise.
25080                 * inttypes-pri.m4: Likewise.
25081                 * inttypes-h.m4: Renamed from inttypes.m4.
25082                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
25083
25084 2006-07-22  Bruno Haible  <bruno@clisp.org>
25085
25086         Merge from GNU gettext 0.15.
25087
25088         2005-07-05  Bruno Haible  <bruno@clisp.org>
25089
25090                 * printf-args.c (printf_fetchargs): Work around broken
25091                 definition of wint_t on mingw.
25092
25093         2005-02-12  Bruno Haible  <bruno@clisp.org>
25094
25095                 * xallocsa.h: Add extern "C" for C++.
25096
25097         2006-05-17  Bruno Haible  <bruno@clisp.org>
25098
25099                 Cygwin portability.
25100                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
25101
25102         2006-04-30  Bruno Haible  <bruno@clisp.org>
25103
25104                 * progreloc.c: Include <mach-o/dyld.h> if available.
25105                 (find_executable): Use _NSGetExecutablePath when possible.
25106
25107         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
25108
25109                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
25110                 function.
25111
25112         2005-12-29  Bruno Haible  <bruno@clisp.org>
25113
25114                 * progreloc.c (set_program_name_and_installdir): Fix
25115                 compilation error.
25116
25117         2005-12-04  Bruno Haible  <bruno@clisp.org>
25118
25119                 Cygwin portability.
25120                 * progreloc.c: Include <windows.h> also on Cygwin.
25121                 (find_executable): Add support for Cygwin.
25122                 (set_program_name_and_installdir): Handle also platforms with
25123                 nonempty EXEEXT.
25124
25125         2006-07-11  Bruno Haible  <bruno@clisp.org>
25126
25127                 * javacomp.c: Fix a comment.
25128                 Reported by Jim Meyering.
25129
25130         2006-04-30  Bruno Haible  <bruno@clisp.org>
25131
25132                 * javacomp.h (compile_java_class): Add source_version,
25133                 target_version arguments.
25134                 * javacomp.c: Rewritten to choose only a compiler that
25135                 respects the specified source_version and target_version.
25136
25137         2006-06-27  Bruno Haible  <bruno@clisp.org>
25138
25139                 Assume correct S_ISDIR macro.
25140                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
25141
25142         2006-07-22  Bruno Haible  <bruno@clisp.org>
25143
25144                 * javaversion.h: New file, from GNU gettext.
25145                 * javaversion.c: New file, from GNU gettext.
25146                 * javaversion.java: New file, from GNU gettext.
25147                 * javaversion.class: New file, from GNU gettext.
25148
25149         2006-05-17  Bruno Haible  <bruno@clisp.org>
25150
25151                 Cygwin portability.
25152                 * javaexec.c (execute_java_class): Test for jview program
25153                 also on Cygwin.
25154
25155         2006-04-09  Bruno Haible  <bruno@clisp.org>
25156
25157                 * fatal-signal.c: Don't include string.h.
25158                 (at_fatal_signal): Use a copying loop instead of memcpy.
25159
25160         2005-12-04  Bruno Haible  <bruno@clisp.org>
25161
25162                 * csharpexec.c: Add support for 'clix' launcher (untested).
25163                 (execute_csharp_using_sscli): New function.
25164                 (execute_csharp_program): Call it.
25165
25166         2006-06-21  Bruno Haible  <bruno@clisp.org>
25167
25168                 Avoid warnings from recent versions of mcs.
25169                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
25170                 -o, -L, -r any more. Use options documented since mcs-1.0
25171                 instead. Similarly for -g.
25172
25173         2005-07-09  Bruno Haible  <bruno@clisp.org>
25174
25175                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
25176                 add a .dll suffix.
25177                 Reported by Mark Junker <mjscod@gmx.de>.
25178
25179         2006-06-17  Bruno Haible  <bruno@clisp.org>
25180
25181                 * config.charset: Update for NetBSD 3.0.
25182
25183         2006-05-17  Bruno Haible  <bruno@clisp.org>
25184
25185                 Cygwin portability.
25186                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
25187
25188         2006-05-16  Bruno Haible  <bruno@clisp.org>
25189
25190                 * localcharset.c [CYGWIN]: Include <windows.h>.
25191                 (get_charset_aliases): For Cygwin, return the same CPxxx
25192                 aliases list as under WIN32.
25193                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
25194                 the environment variables. Fall back to GetACP().
25195
25196         2006-04-05  Bruno Haible  <bruno@clisp.org>
25197
25198                 * config.charset: Update Juan Manuel Guerrero's address.
25199
25200         2005-02-12  Bruno Haible  <bruno@clisp.org>
25201
25202                 * allocsa.h: Add extern "C" for C++.
25203
25204         2005-02-10  Bruno Haible  <bruno@clisp.org>
25205
25206                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
25207                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
25208
25209         2006-07-22  Bruno Haible  <bruno@clisp.org>
25210
25211                 * gettext.h: Update to GNU gettext-0.15.
25212
25213 2006-07-22  Bruno Haible  <bruno@clisp.org>
25214
25215         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
25216         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
25217         lib-prefix.m4, longdouble.m4, ssize_t.m4.
25218
25219 2006-07-21  Eric Blake  <ebb9@byu.net>
25220
25221         * modules/stdlib-safer: New file.
25222         * MODULES.html.sh (File stream based Input/Output): Add
25223         stdlib-safer.
25224
25225 2006-07-21  Eric Blake  <ebb9@byu.net>
25226
25227         * lib/stdlib-safer.h: New file from coreutils, required by
25228         stdlib--.h.
25229
25230 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
25231
25232         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
25233
25234 2006-07-20  Bruno Haible  <bruno@clisp.org>
25235
25236         * gnulib-tool: Recognize new option --assume-autoconf.
25237         (autoconf_minversion): New variable.
25238         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
25239
25240 2006-07-20  Bruno Haible  <bruno@clisp.org>
25241
25242         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
25243
25244 2006-07-19  Derek R. Price  <derek@ximbiot.com>
25245
25246         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
25247         Reindent and repaginate.
25248
25249 2006-07-19  Derek Price  <derek@ximbiot.com>
25250
25251         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
25252         Correct grammar.
25253
25254 2006-07-17  Bruno Haible  <bruno@clisp.org>
25255
25256         * modules/list: New file.
25257         * modules/array-list: New file.
25258         * modules/carray-list, modules/carray-list-tests: New files.
25259         * modules/linked-list, modules/linked-list-tests: New files.
25260         * modules/avltree-list, modules/avltree-list-tests: New files.
25261         * modules/rbtree-list, modules/rbtree-list-tests: New files.
25262         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
25263         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
25264         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
25265         * modules/oset: New file.
25266         * modules/array-oset: New file.
25267         * modules/avltree-oset, modules/avltree-oset-tests: New files.
25268         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
25269         * tests/test-carray_list.c: New file.
25270         * tests/test-linked_list.c: New file.
25271         * tests/test-avltree_list.c: New file.
25272         * tests/test-rbtree_list.c: New file.
25273         * tests/test-linkedhash_list.c: New file.
25274         * tests/test-avltreehash_list.c: New file.
25275         * tests/test-rbtreehash_list.c: New file.
25276         * tests/test-avltree_oset.c: New file.
25277         * tests/test-rbtree_oset.c: New file.
25278         * MODULES.html.sh (Container data structures): New section.
25279
25280 2006-07-17  Bruno Haible  <bruno@clisp.org>
25281
25282         * m4/gl_list.m4: New file.
25283
25284 2006-07-17  Bruno Haible  <bruno@clisp.org>
25285
25286         * lib/gl_list.h: New file.
25287         * lib/gl_list.c: New file.
25288         * lib/gl_array_list.h: New file.
25289         * lib/gl_array_list.c: New file.
25290         * lib/gl_carray_list.h: New file.
25291         * lib/gl_carray_list.c: New file.
25292         * lib/gl_linked_list.h: New file.
25293         * lib/gl_linked_list.c: New file.
25294         * lib/gl_anylinked_list1.h: New file.
25295         * lib/gl_anylinked_list2.h: New file.
25296         * lib/gl_avltree_list.h: New file.
25297         * lib/gl_avltree_list.c: New file.
25298         * lib/gl_anyavltree_list1.h: New file.
25299         * lib/gl_anyavltree_list2.h: New file.
25300         * lib/gl_rbtree_list.h: New file.
25301         * lib/gl_rbtree_list.c: New file.
25302         * lib/gl_anyrbtree_list1.h: New file.
25303         * lib/gl_anyrbtree_list2.h: New file.
25304         * lib/gl_anytree_list1.h: New file.
25305         * lib/gl_anytree_list2.h: New file.
25306         * lib/gl_linkedhash_list.h: New file.
25307         * lib/gl_linkedhash_list.c: New file.
25308         * lib/gl_anyhash_list1.h: New file.
25309         * lib/gl_anyhash_list2.h: New file.
25310         * lib/gl_avltreehash_list.h: New file.
25311         * lib/gl_avltreehash_list.c: New file.
25312         * lib/gl_rbtreehash_list.h: New file.
25313         * lib/gl_rbtreehash_list.c: New file.
25314         * lib/gl_anytreehash_list1.h: New file.
25315         * lib/gl_anytreehash_list2.h: New file.
25316
25317         * lib/gl_oset.h: New file.
25318         * lib/gl_oset.c: New file.
25319         * lib/gl_array_oset.h: New file.
25320         * lib/gl_array_oset.c: New file.
25321         * lib/gl_avltree_oset.h: New file.
25322         * lib/gl_avltree_oset.c: New file.
25323         * lib/gl_rbtree_oset.h: New file.
25324         * lib/gl_rbtree_oset.c: New file.
25325         * lib/gl_anytree_oset.h: New file.
25326
25327 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25328
25329         * m4/mkancesdirs.m4: New file.
25330         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
25331         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
25332         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
25333         it.
25334
25335 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25336
25337         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
25338         * lib/mkancesdirs.h: New files.
25339         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
25340         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
25341         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
25342         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
25343         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
25344         callers changed.  Revamp internals significantly, by not
25345         attempting to create directories that are temporarily more
25346         permissive than the final results.  Do not attempt to use
25347         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
25348         This removes some race conditions, fixes some bugs, and simplifies
25349         things.  Use new dirchownmod function to do owner and mode changes.
25350         * lib/mkdir-p.h: Likewise.
25351         * lib/modechange.c (octal_to_mode): New function.
25352         (struct mode_change): New member mentioned.
25353         (make_node_op_equals): New arg mentioned.  All callers changed.
25354         (mode_compile): Keep track of which mode bits the user has explicitly
25355         mentioned.
25356         (mode_adjust): New arg DIR, so that we implement the X op correctly.
25357         New arg PMODE_BITS, to keep track of which mode bits the user
25358         mentioned; it treats S_ISUID and S_ISGID speciall.
25359         All callers changed.
25360         * lib/modechange.h: Likewise.
25361
25362 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25363
25364         * MODULES.html.sh: Add mkancestors.
25365         * modules/mkancesdirs: New module.
25366         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
25367         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
25368         The chdir-safer and afs files are now orphans; I'll remove them
25369         unless someone speaks up.
25370         Add lib/dirchownmod.c, lib/dirchownmod.h.
25371         (Depends-on): Remove alloca, chown, save-cwd, dirname.
25372         Add lchown, mkancesdirs.
25373         (Maintainer): Add self.
25374
25375 2006-07-15  Karl Berry  <karl@gnu.org>
25376
25377         * gnulib-tool: help message wording/arrangement.
25378
25379 2006-07-14  Simon Josefsson  <jas@extundo.com>
25380
25381         * doc/gnulib.texi (Libtool and Windows): New section.
25382
25383 2006-07-12  Simon Josefsson  <jas@extundo.com>
25384
25385         * modules/gendocs (License): Fix license, approved by Karl.
25386
25387 2006-07-12  Eric Blake  <ebb9@byu.net>
25388
25389         * MODULES.html.sh: Add gendocs.
25390
25391 2006-07-11  Eric Blake  <ebb9@byu.net>
25392
25393         * modules/fdl: New module, to install doc/fdl.texi.
25394         * MODULES.html.sh: Add new section for documentation modules.
25395         * gnulib-tool: Avoid space-tab.
25396         (--doc-base): New option, to manage files from doc.
25397
25398 2006-07-11  Eric Blake  <ebb9@byu.net>
25399
25400         * m4/absolute-header.m4: Fix comments to match recent change.
25401
25402 2006-07-11  Eric Blake  <ebb9@byu.net>
25403
25404         * gnulib-tool: List --doc-base before --tests-base.
25405
25406 2006-07-11  Derek R. Price  <derek@ximbiot.com>
25407
25408         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
25409
25410 2006-07-11  Bruno Haible  <bruno@clisp.org>
25411
25412         * README: Mention where to put documentation.
25413
25414 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25415
25416         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
25417
25418 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25419
25420         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
25421         to stdint.m4.
25422
25423 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25424
25425         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
25426         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
25427         "no/such/file/stdint.h" when there is no such file, so that
25428         the resulting C code can be parsed by dodgy compilers.
25429         Problems reported by Bob Proulx.
25430
25431 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25432
25433         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
25434         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25435         macros into the GNU _D_EXACT_NAMLEN.
25436         * lib/savedir.c:  Likewise.
25437         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
25438
25439 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25440         and Paul Eggert  <eggert@cs.ucla.edu>
25441
25442         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
25443         * m4/savedir.m4:
25444         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25445         macros into the GNU _D_EXACT_NAMLEN.
25446
25447 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25448
25449         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
25450         around the absolute name, to work around a problem with the HP-UX
25451         11.23 native C compiler, reported by Bob Proulx.
25452
25453 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25454
25455         * doc/maintain.texi, make-stds.texi: Sync from
25456         <http://savannah.gnu.org/projects/gnustandards>.
25457
25458 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25459
25460         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
25461
25462 2006-07-09  Jim Meyering  <jim@meyering.net>
25463
25464         * m4/glob.m4: Remove a doubled word in a comment.
25465
25466 2006-07-09  Jim Meyering  <jim@meyering.net>
25467
25468         * lib/argp-pv.c: Remove a doubled word in a comment.
25469         * lib/check-version.c (check_version): Likewise.
25470         * lib/javacomp.c (compile_java_class): Likewise.
25471
25472 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25473
25474         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
25475         for the benefit of people using Autoconf 2.60.  If you want to
25476         support older Autoconf versions you can copy m4/onceonly_2_57.m4
25477         (or m4/onceonly.m4, if pre-2.57) manually.
25478
25479 2006-07-08  Jim Meyering  <jim@meyering.net>
25480
25481         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
25482         comment.
25483         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
25484         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
25485         comment.
25486
25487 2006-07-08  Jim Meyering  <jim@meyering.net>
25488
25489         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
25490
25491 2006-07-07  Simon Josefsson  <jas@extundo.com>
25492
25493         * tests/test-crc.c: Change expected crc value, the test vector
25494         were probably computed using the old broken crc.c?
25495
25496 2006-07-06  Simon Josefsson  <jas@extundo.com>
25497
25498         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
25499         now the canonical place for the M4 file).
25500
25501         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
25502         from the sys_socket dependency now.
25503
25504         * modules/inet_pton (Files): Ditto.
25505
25506         * modules/inet_ntop (Files): Ditto.
25507
25508 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25509
25510         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
25511         not gl_PREREQ_GETUSERSHELL.
25512
25513 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25514
25515         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
25516         with only one argument, for Autoconf 2.60.
25517         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
25518         expand to nothing, so add a shell command to avoid syntax error.
25519         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25520
25521 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25522
25523         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
25524
25525 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25526
25527         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
25528         no longer needed.  Check for isblank decl.
25529         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
25530         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
25531         of existence.
25532
25533 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25534
25535         * lib/getloadavg.c: Use __VMS, not VMS.
25536         * lib/getopt.c: Likewise.
25537         * lib/getpagesize.h: Likewise.
25538         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
25539         and probably does not work.
25540
25541 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25542
25543         * lib/.cppi-disable: Add wcwidth.
25544         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
25545         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
25546         (ISGRAPH): Remove.  All uses changed to isgraph.
25547         (FOLD) [!defined _LIBC]: Remove special case.
25548         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
25549         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
25550         HAVE_ISBLANK.
25551         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
25552         case.
25553
25554 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
25555
25556         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
25557         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
25558         brackets.  Other minor changes to suppress some compiler
25559         warnings.
25560
25561 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25562         and Paul Eggert  <eggert@cs.ucla.edu>
25563
25564         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
25565         of invoking obsolescent AC_HEADER_DIRENT macro.
25566         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25567         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
25568         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25569         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25570         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
25571         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25572         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
25573         * m4/readdir.m4: Remove; no longer needed.
25574
25575 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25576         and Paul Eggert  <eggert@cs.ucla.edu>
25577
25578         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
25579         Don't worry about this obsolete case any more.
25580         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
25581         directories.
25582         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
25583         worry about this obsolete case any more.
25584         * lib/fts.c: Likewise.
25585         * lib/getcwd.c: Likewise.
25586         * lib/glob.h: Likewise.
25587         * lib/savedir.c: Likewise.
25588
25589 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25590
25591         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
25592         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
25593         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
25594         needed.
25595         All uses removed.
25596         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25597         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25598         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
25599         needed.
25600         * m4/getdate.m4 (gl_GETDATE): Likewise.
25601         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25602         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25603         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25604         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25605         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25606         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25607         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
25608         needed.
25609
25610 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25611
25612         * lib/memcasecmp.c: Include <limits.h>.
25613         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
25614         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
25615         Don't assume isdigit succeeds only on '0' through '9'.
25616
25617 2006-07-05  Eric Blake  <ebb9@byu.net>
25618
25619         * modules/getaddrinfo (Depends-on): Add snprintf.
25620
25621 2006-07-05  Eric Blake  <ebb9@byu.net>
25622
25623         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
25624         to avoid 'header present but could not be compiled' on cygwin.
25625
25626 2006-07-05  Eric Blake  <ebb9@byu.net>
25627
25628         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
25629         missing from netdb.h.
25630         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
25631
25632 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25633
25634         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
25635         no longer needed.
25636         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
25637         * m4/getdate.m4 (gl_GETDATE): Likewise.
25638         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25639         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25640         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25641         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25642         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25643
25644 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25645
25646         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
25647         All uses of is_space replaced by isspace.
25648         * lib/exit.h: Don't talk about STDC_HEADERS.
25649         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
25650         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
25651         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
25652         replaced by isprint etc.
25653         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
25654         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25655         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
25656         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
25657         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
25658         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25659
25660 2006-07-05  Bruno Haible  <bruno@clisp.org>
25661
25662         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
25663         the function exists, before testing against AIX.
25664         Reported by Martin Lambers <marlam@marlam.de>.
25665
25666 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25667
25668         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
25669         From Mark D. Baushke.
25670
25671 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25672
25673         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
25674         to the absolute name, not just one, to bypass Sun C 5.8's
25675         "warning: #include of /usr/include/... may be non-portable".
25676
25677 2006-07-04  Eric Blake  <ebb9@byu.net>
25678
25679         * modules/dirname-tests: New test module.
25680         * tests/test-dirname.c: New file, replacing dirname.c
25681         TEST_DIRNAME section that was recently deleted.
25682
25683 2006-07-04  Bruno Haible  <bruno@clisp.org>
25684
25685         Assume ANSI C header files and <ctype.h> functions.
25686         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
25687         (mbsnwidth): Use isprint, iscntrl instead.
25688
25689 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25690
25691         Merge from coreutils.
25692         * MODULES.html.sh: Add xstrtold.
25693         * modules/xstrtold: New file.
25694         * modules/cycle-check (Files): Add lib/same-inode.h.
25695         * modules/dirname (Files): Add m4/double-slash-root.m4.
25696         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
25697         * modules/mkdir-p (Files): Add lib/same-inode.h.
25698         * modules/same (Files): Add lib/same-inode.h.
25699
25700 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25701
25702         * m4/absolute-header.m4: Renamed from full-header-path.m4.
25703         This is to keep the terminology clean; POSIX talks about
25704         "absolute pathnames", not "full pathnames", but the GNU
25705         Coding Standards say to use "path" for something else;
25706         so use "absolute" to keep both sides happy.
25707         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
25708         Set gl_absolute_header, not gl_full_header_path.
25709         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
25710         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
25711         All uses changed.
25712
25713         Merge from coreutils.
25714
25715         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25716
25717         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
25718         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
25719         want to require the building of c-strtod.o.
25720         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
25721         needs -lm directly.
25722         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
25723
25724         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
25725
25726         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
25727         --as-needed option if available.  Problem reported by Albert Chin in
25728         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
25729         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
25730         cc merely issues a bunch of annoying warnings for --as-needed
25731         (this problem was reported by Bob Proulx).  Also, try linking with
25732         -lm to detect a bug in binutils 2.16 (this problem was reported
25733         by Ralf Wildenhues).
25734
25735         2006-06-18  Jim Meyering  <jim@meyering.net>
25736
25737         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
25738         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
25739         macro.
25740         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
25741         also check for glibc-2.4's abort-inducing bug.
25742
25743         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
25744         Low-probability clean-up should be to use rmdir to get rid of
25745         the just-created directory, not unlink.
25746
25747         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
25748         configure fail, and request a bug report to inform us about it.
25749         Add a comment that, barring reports to the contrary, in 2007 we'll
25750         assume ftruncate is universally available.
25751
25752         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25753
25754         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
25755
25756         2006-03-12  Jim Meyering  <jim@meyering.net>
25757
25758         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
25759         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
25760         * m4/same.m4 (gl_SAME): Likewise.
25761         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
25762
25763         2006-03-11  Eric Blake  <ebb9@byu.net>
25764
25765         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
25766         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
25767         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
25768         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
25769
25770 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25771
25772         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
25773         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
25774         reported by Mark D. Baushke, one in
25775         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
25776
25777         Merge from coreutils.
25778
25779         * lib/.cppi-disable: Add stdint_.h.
25780         * lib/.cvsignore: Add stdint.h.
25781
25782         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25783
25784         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
25785         both double and long double versions.
25786         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
25787         * lib/xstrtold.c: New file.
25788         * lib/xstrtod.h (xstrtold): New decl.
25789
25790         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
25791
25792         * lib/filemode.c (setst): Remove.
25793         (strmode): Rewrite to avoid setst.  This makes the code shorter,
25794         (arguably) clearer, and the generated code is a bit smaller on my
25795         Debian GNU/Linux stable x86 host.
25796
25797         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25798
25799         * lib/filemode.c: Include "filemode.h" first, to test the interface.
25800         Assume that filemode.h includes sys/types.h and sys/stat.h.
25801         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
25802         (ftypelet): Reorder to put common cases first, for efficiency.
25803         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
25804         to do 'M'.
25805         (strmode): Renamed from mode_string, and now stores 12 bytes instead
25806         of 10, for compatibility with FreeBSD.  All callers changed.
25807         (filemodestring): Now stores 12 bytes instead of 10, and sets file
25808         types that can't be deduced solely from st_mode.  First arg is now a
25809         const pointer.
25810         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
25811         (strmode): Renamed from mode_string.
25812         (filemodestring): New decl.
25813         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
25814         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
25815         needed.
25816         (S_ISPORT, S_ISWHT): New macros, if not already defined.
25817
25818         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
25819
25820         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
25821         fsusage.h now does that.  Include fsusage.h first, to test interface.
25822         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
25823         at most one method (the old code could have generated decls that
25824         didn't conform to C89, not that this was ever exercised).
25825         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
25826
25827         2006-03-19  Jim Meyering  <jim@meyering.net>
25828
25829         Work even in a chroot where d_ino values for entries in "/"
25830         don't match the stat.st_ino values for the same names.
25831         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
25832         number, iterate through all entries again, using lstat instead.
25833         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
25834         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
25835
25836         * lib/getcwd.c (__getcwd): Clarify a comment.
25837         Use memcpy in place of a call to strcpy.
25838
25839         2006-03-12  Jim Meyering  <jim@meyering.net>
25840
25841         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
25842         matches that of the current directory (which we're about to chdir ".."
25843         out of), then save the dev-ino of the parent, instead.
25844
25845         * lib/same-inode.h (SAME_INODE): New file/macro.
25846         * lib/chdir-safer.c (SAME_INODE): Remove definition.
25847         Include "same-inode.h", instead.
25848         * lib/same.c: Likewise.
25849         * lib/cycle-check.h: Include "same-inode.h".
25850         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
25851         * lib/cycle-check.c (SAME_INODE): Remove definition.
25852         * lib/root-dev-ino.h: Include "same-inode.h".
25853
25854         2006-03-11  Eric Blake  <ebb9@byu.net>
25855
25856         * lib/same.c (same_name): s/base_name/last_component/
25857         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
25858         * lib/filenamecat.c (file_name_concat): Likewise.
25859
25860         2006-03-11  Eric Blake  <ebb9@byu.net>,
25861                     Paul Eggert  <eggert@cs.ucla.edu>
25862
25863         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
25864         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
25865         drive prefix.
25866         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
25867         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
25868         (last_component): New method.
25869         * lib/dirname.c (dir_len): Determine when drive letters need a
25870         subsequent slash.  Preserve // when it is special.
25871         (dir_name): Don't append dot when drive letter is absolute.
25872         [TEST_DIRNAME]: Move into a full-blown gnulib test.
25873         * lib/basename.c (base_name): New semantics - malloc the result.
25874         Preserve // when it is special.  Preserve relative files that look
25875         like drive letters.
25876         (base_len): Preserve // when it is special.
25877         (last_component): New method, similar to old base_name semantics.
25878         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
25879         base_name.  Strip redundant slashes from ///.
25880
25881 2006-07-03  Jim Meyering  <jim@meyering.net>
25882
25883         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
25884         macro is used before the first cycle_check call.
25885
25886 2006-07-03  Eric Blake  <ebb9@byu.net>
25887
25888         * modules/dirname (Depends-on): Add xstrndup.
25889
25890 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25891
25892         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
25893         test cases, so that config.log is a bit easier to follow.
25894
25895 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25896
25897         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
25898         both are 64 bits, since this seems to be the tradition, and this
25899         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
25900         we ever run into a host that prefers long long to long in this
25901         case, we'll need another configure-time test.  Problem reported by
25902         Jim Meyering.
25903
25904 2006-07-02  Eric Blake  <ebb9@byu.net>
25905
25906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
25907
25908 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25909
25910         * modules/inttypes (Depends-on): No longer depends on stdint.
25911         * modules/stdint (Description): Say more about assumptions.
25912         Say that the fast types might differ.  Say macros are used.
25913         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
25914         (Makefile.am): Revise list of substituted symbols to match
25915         new stdint.m4.
25916         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
25917         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
25918         * tests/test-stdint.c (verify_same_types)
25919         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
25920         the code conforms to C99/C89.
25921         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
25922         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
25923
25924 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25925
25926         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
25927         but fix a bug, by requiring at least 64 bits.
25928         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
25929         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
25930         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
25931         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
25932
25933         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
25934         changes.  Make 2.59 a prerequisite.  Check and substitute for
25935         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
25936         inttypes.h.  Do not use special include files; just use the
25937         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
25938         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
25939         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
25940         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
25941         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
25942         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
25943         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
25944         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
25945         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
25946         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
25947         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
25948         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
25949         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
25950         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
25951         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
25952         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
25953         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
25954         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
25955         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
25956         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
25957         WINT_MAX.  Check for C99 conformance more strictly, by detecting
25958         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
25959         not check for things that C99 does not require, e.g., int8_t.  If
25960         a test isn't needed unless <stdint.h> isn't working, and is
25961         unlikely to be needed for any other reason, then don't do it
25962         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
25963         size_t, since we assume C89 freestanding at least.  Do not check
25964         for sig_atomic_t, wchar_t, or wint_t, since the code now does
25965         the right thing even if the types are not defined.  Instead use:
25966         (gl_STDINT_TYPE_PROPERTIES): New macro.
25967         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
25968         testing whether <sys/types.h> clashes, as Autoconf does this for
25969         us now.  All uses removed.
25970         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
25971         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
25972         (gl_CHECK_TYPE_SAME):
25973         Remove; no longer needed.
25974         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
25975         exists, since we'll return 0 anyway in that case.
25976         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
25977
25978 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25979
25980         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
25981         possible collision with system files.
25982         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
25983         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
25984         WCHAR_MIN and WCHAR_MAX in this case.
25985         (<stddef.h>): Do not include; no longer needed.
25986         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
25987         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
25988         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
25989         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
25990         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
25991         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
25992         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
25993         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
25994         !defined(__c99))]: Include in this case too, since it's harmless
25995         now.
25996         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
25997         dangerous to do so.
25998         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
25999         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
26000         (_STDINT_MIN, _STDINT_MAX): New macros.
26001         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
26002         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
26003         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
26004         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
26005         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
26006         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
26007         macros, not typedefs; this simplifies things quite a bit.
26008         Use long int for all types narrower than int64_t.
26009         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
26010         Define in terms of long long int or int64_t or long int,
26011         not int64_t or int32_t.  This saves some compile-time testing.
26012         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
26013         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
26014         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
26015         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
26016         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
26017         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
26018         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
26019         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
26020         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
26021         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
26022         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26023         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26024         undef any previous version and define our own version, for
26025         simplicity and consistency with the new macros for types.
26026         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26027         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26028         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
26029         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
26030         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
26031         @WINT_T_SUFFIX@ to keep things simple here.
26032         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
26033         Simplify by assuming typical 8/16/32/64 host, since we're
26034         already doing that elsewhere anyway.
26035         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
26036         and assume long long int is 64 bits if available.  This
26037         speeds up 'configure'.
26038
26039 2006-07-01  Eric Blake  <ebb9@byu.net>
26040
26041         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
26042         Reported by Andreas Buening.
26043
26044 2006-07-01  Eric Blake  <ebb9@byu.net>
26045
26046         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
26047
26048 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
26049
26050         * lib/getaddrinfo.c: fixed typo
26051
26052 2006-06-29  Jim Meyering  <jim@meyering.net>
26053
26054         * modules/strftime (Maintainer): Add my name, since with the
26055         FPRINTFTIME changes strftime.c has forked from glibc.
26056
26057 2006-06-29  Eric Blake  <ebb9@byu.net>
26058
26059         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
26060
26061 2006-06-29  Eric Blake  <ebb9@byu.net>
26062
26063         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
26064
26065 2006-06-29  Eric Blake  <ebb9@byu.net>
26066
26067         * lib/stat_.h: New file.
26068
26069 2006-06-29  Eric Blake  <ebb9@byu.net>
26070
26071         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
26072         unused static function.
26073
26074 2006-06-29  Eric Blake  <ebb9@byu.net>
26075
26076         * doc/functions.texi (Function Portability): Document missing lstat
26077         on mingw.
26078
26079 2006-06-29  Eric Blake  <ebb9@byu.net>
26080
26081         * MODULES.html.sh: Add sys_stat.
26082         * modules/sys_stat: New module.
26083         * modules/mkstemp (Depends-on): Add sys_stat.
26084
26085 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26086
26087         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
26088
26089 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26090
26091         * m4/c-bs-a.m4: Removed.
26092
26093 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26094
26095         * lib/strftime.c: Assume strftime() exists.
26096
26097 2006-06-29  Derek Price  <derek@ximbiot.com>
26098
26099         * modules/c-bs-a: Removed - \a is C89.
26100         * MODULES.html.sh: Remove c-bs-a.
26101
26102 2006-06-29  Bruno Haible  <bruno@clisp.org>
26103
26104         * modules/wcwidth (License): Change to LGPL.
26105
26106 2006-06-28  Simon Josefsson  <jas@extundo.com>
26107
26108         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
26109         on _WIN32.
26110
26111         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
26112         getnameinfo.
26113
26114 2006-06-28  Simon Josefsson  <jas@extundo.com>
26115
26116         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
26117
26118 2006-06-28  Simon Josefsson  <jas@extundo.com>
26119
26120         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
26121         functions there.  It will succeed on Windows XP, but on Windows
26122         2000 and (presumably) earlier, it will fail, and use the internal
26123         re-implementation.
26124         (use_win32_p): New function.
26125         (getaddrinfo): Use strtoul on servname, to support numeric ports.
26126         Support AI_NUMERICSERV to disable getservbyname.
26127         (getnameinfo): New function, only supports
26128         NI_NUMERICHOST|NI_NUMERICSERV for now.
26129
26130         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
26131         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
26132         getnameinfo.
26133
26134 2006-06-28  Eric Blake  <ebb9@byu.net>
26135
26136         * modules/wcwidth: New file.
26137         * modules/mbchar (Depends-on): Add wcwidth.
26138         * modules/mbswidth (Depends-on): Add wcwidth.
26139         * MODULES.html.sh: Add wcwidth.
26140
26141 2006-06-28  Eric Blake  <ebb9@byu.net>
26142
26143         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
26144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
26145
26146 2006-06-28  Eric Blake  <ebb9@byu.net>
26147
26148         * lib/xvasprintf.h: Fix comments.
26149
26150 2006-06-28  Eric Blake  <ebb9@byu.net>
26151
26152         * lib/mbchar.h (wcwidth): Include wcwidth.h.
26153         * lib/mbswidth.c (wcwidth): Move from here...
26154         * lib/wcwidth.h: ...to this new file.
26155
26156 2006-06-28  Derek R. Price  <derek@ximbiot.com>
26157
26158         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
26159
26160         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
26161         it's obsolete.
26162         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
26163
26164 2006-06-28  Derek R. Price  <derek@ximbiot.com>
26165
26166         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
26167         Autoconf 2.60 says this stuff was obsolete.
26168
26169 2006-06-28  Bruno Haible  <bruno@clisp.org>
26170
26171         * modules/wcwidth (Files): Add m4/wchar_t.m4.
26172
26173 2006-06-28  Bruno Haible  <bruno@clisp.org>
26174
26175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
26176         gt_TYPE_WCHAR_T.
26177
26178 2006-06-28  Bruno Haible  <bruno@clisp.org>
26179
26180         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
26181         declaration for wcwidth.
26182         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
26183
26184 2006-06-28  Bruno Haible  <bruno@clisp.org>
26185
26186         * lib/mkdtemp.c [MINGW]: Include <io.h>.
26187         (mkdir): Define using _mkdir.
26188
26189 2006-06-28  Bruno Haible  <bruno@clisp.org>
26190
26191         * lib/getaddrinfo.h: Fix POSIX URL.
26192         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
26193         _WIN32.
26194         (use_win32_p): Make static.
26195         (getaddrinfo): Reject service name if it is empty or does not consist
26196         solely of decimal digits, or if its value is > 65535.
26197         (getnameinfo): Remove useless casts.
26198
26199 2006-06-27  Simon Josefsson  <jas@extundo.com>
26200
26201         * modules/sys_select: New file, suggested by Bruno Haible, Paul
26202         Eggert and Martin Lambers.
26203
26204 2006-06-27  Simon Josefsson  <jas@extundo.com>
26205
26206         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
26207         Eggert and Martin Lambers.
26208
26209 2006-06-27  Bruno Haible  <bruno@clisp.org>
26210
26211         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
26212         result to 0, not to empty.
26213         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
26214
26215 2006-06-27  Bruno Haible  <bruno@clisp.org>
26216
26217         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
26218
26219 2006-06-26  Simon Josefsson  <jas@extundo.com>
26220
26221         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
26222         present.
26223
26224 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
26225
26226         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
26227         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
26228         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
26229
26230 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
26231
26232         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
26233
26234 2006-06-26  Bruno Haible  <bruno@clisp.org>
26235
26236         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
26237
26238 2006-06-26  Bruno Haible  <bruno@clisp.org>
26239
26240         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
26241
26242 2006-06-26  Bruno Haible  <bruno@clisp.org>
26243
26244         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
26245         SGI C compiler in pre-C99 mode.
26246         Suggested by Mark D. Baushke and Larry Jones.
26247
26248 2006-06-26  Bruno Haible  <bruno@clisp.org>
26249
26250         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
26251         WCHAR_MAX.
26252         Reported by Mark D. Baushke and Larry Jones.
26253
26254 2006-06-26  Bruno Haible  <bruno@clisp.org>
26255
26256         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
26257         in pre-C99 mode.
26258         Suggested by Mark D. Baushke and Larry Jones.
26259
26260 2006-06-23  Simon Josefsson  <jas@extundo.com>
26261             Bruno Haible  <bruno@clisp.org>
26262
26263         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
26264         Emit mostlyclean-local rule.
26265         (func_emit_tests_Makefile_am): Likewise.
26266         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
26267
26268 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
26269
26270         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
26271
26272 2006-06-23  Bruno Haible  <bruno@clisp.org>
26273
26274         * tests/test-stdint.c: Update to match ISO C 99 Technical
26275         Corrigendum 1.
26276
26277 2006-06-23  Bruno Haible  <bruno@clisp.org>
26278
26279         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
26280
26281 2006-06-23  Bruno Haible  <bruno@clisp.org>
26282
26283         * lib/stdint_.h: Treat IRIX like OpenBSD.
26284
26285 2006-06-23  Bruno Haible  <bruno@clisp.org>
26286
26287         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
26288         ISO C 99 Technical Corrigendum 1.
26289
26290 2006-06-22  Simon Josefsson  <jas@extundo.com>
26291
26292         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
26293         MinGW.
26294
26295 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26296
26297         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
26298         needed.  Some compiler complained about some of them.  Problem reported
26299         by Larry Jones in
26300         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
26301
26302 2006-06-21  Simon Josefsson  <jas@extundo.com>
26303
26304         * tests/test-getaddrinfo.c: New file.
26305
26306         * modules/getaddrinfo-tests: New file.
26307
26308         * MODULES.html.sh: Add inet_pton.
26309
26310         * modules/inet_pton: New file.
26311
26312 2006-06-21  Simon Josefsson  <jas@extundo.com>
26313
26314         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
26315         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
26316         of using the (limited) gnulib implementation on Windows XP.
26317
26318         * m4/inet_pton.m4: New file.
26319
26320 2006-06-21  Simon Josefsson  <jas@extundo.com>
26321
26322         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
26323         variable.
26324
26325         * lib/socket_.h: Don't define WINVER.
26326
26327         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
26328         slightly modified to work in gnulib.
26329
26330 2006-06-21  Simon Josefsson  <jas@extundo.com>
26331
26332         * doc/gnulib.texi (Windows sockets): Add.
26333
26334 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
26335
26336         * lib/read-file.c (fread_file): Start with buffer allocation of
26337         0 bytes rather than 1 byte; this simplifies the code.
26338         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
26339         code to free buffer and save/restore errno.
26340         (internal_read_file): Remove unused local.
26341
26342 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26343
26344         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
26345         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
26346         Problem reported by Denis Excoffier in
26347         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
26348
26349 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26350
26351         * modules/sys_socket, modules/socklen: Include sys/types since
26352         FreeBSD 4.x's sys/socket.h needs it.
26353
26354 2006-06-19  Simon Josefsson  <jas@extundo.com>
26355
26356         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
26357
26358 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
26359
26360         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
26361
26362 2006-06-19  Bruno Haible  <bruno@clisp.org>
26363
26364         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
26365         and FULL_PATH_INTTYPES_H in angle brackets.
26366         Reported by Mark D. Baushke <mdb@gnu.org>.
26367
26368 2006-06-17  Eric Blake  <ebb9@byu.net>
26369
26370         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
26371         errno.
26372
26373 2006-06-17  Bruno Haible  <bruno@clisp.org>
26374
26375         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
26376         <sys/inttypes.h>.
26377
26378 2006-06-17  Bruno Haible  <bruno@clisp.org>
26379
26380         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
26381         whether errno is declared. Assume <errno.h> declares errno.
26382
26383 2006-06-17  Bruno Haible  <bruno@clisp.org>
26384
26385         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
26386
26387 2006-06-17  Bruno Haible  <bruno@clisp.org>
26388
26389         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
26390         problem on Solaris 2.5.1.
26391
26392 2006-06-16  Eric Blake  <ebb9@byu.net>
26393
26394         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
26395         * lib/unicodeio.c [!defined errno]: Likewise.
26396         * lib/strtol.c [!defined errno]: Likewise.
26397         * lib/strtod.c [!defined errno]: Likewise.
26398
26399 2006-06-15  Eric Blake  <ebb9@byu.net>
26400
26401         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
26402
26403 2006-06-15  Eric Blake  <ebb9@byu.net>
26404
26405         * config/srclist.txt (ssize_t.m4): Lose sync.
26406
26407 2006-06-15  Bruno Haible  <bruno@clisp.org>
26408
26409         * modules/stdint (Files): Include m4/full-header-path.m4,
26410         m4/size_max.m4, m4/wchar_t.m4.
26411         (Makefile.am): Many more substitutions.
26412         * modules/stdint-tests: New file.
26413         * tests/test-stdint.c: New file.
26414
26415 2006-06-15  Bruno Haible  <bruno@clisp.org>
26416
26417         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
26418         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
26419         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
26420         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
26421         gl_CHECK_TYPE_SAME): New macros.
26422
26423 2006-06-15  Bruno Haible  <bruno@clisp.org>
26424
26425         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
26426
26427 2006-06-15  Bruno Haible  <bruno@clisp.org>
26428
26429         * lib/stdint_.h: Rewritten to be fully auto-configured.
26430         Fixes bug on HP-UX/IA64.
26431
26432 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
26433
26434         * lib/getdate.y (__attribute__): Don't define if already defined.
26435         Problem reported by Larry Jones.
26436         * lib/utimens.c (__attribute__): Likewise.
26437
26438 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
26439
26440         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
26441         reported by Andreas Schwab.
26442
26443 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26444             Bruno Haible  <bruno@clisp.org>
26445
26446         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
26447         check for the declaration of strnlen and a run test that exposes the
26448         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
26449         rpl_strndup.
26450
26451 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26452             Bruno Haible  <bruno@clisp.org>
26453
26454         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
26455
26456 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26457
26458         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
26459         compile test, for Tru64 4.0D.
26460
26461 2006-05-28  Karl Berry  <karl@gnu.org>
26462
26463         * config/srclist.txt (printf-args.c): lose sync.
26464
26465 2006-05-26  Martin Lambers  <marlam@marlam.de>
26466
26467         * lib/getpass.c: Updates the test for the native W32 API, and adds
26468         missing includes, thus fixing compilation warnings.
26469
26470 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26471
26472         * lib/exclude.c (exclude_fnmatch): New function.
26473         (excluded_file_name): Call exclude_fnmatch.
26474         * lib/exclude.h (excluded_file_name): New prototype
26475
26476 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
26477
26478         * lib/tempname.c (small_open, large_open): New macros.
26479         (__open, __open64) [!_LIBC]: Remove.
26480         (__gen_tempname): Use small_open and large_open instead of __open
26481         and __open64.  This fixes a portability bug on HP-UX 11.11i
26482         reported by Simon Wing-Tang in
26483         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
26484
26485 2006-05-24  Bruno Haible  <bruno@clisp.org>
26486
26487         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
26488         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
26489         Reported by Thorsten Maerz <torte@netztorte.de> via
26490         Aaron Stone <aaron@serendipity.cx>.
26491
26492 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26493
26494         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
26495         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
26496         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
26497         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
26498         not really conditional on the cache.
26499         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
26500
26501 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26502
26503         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
26504         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
26505         (my_usleep): Don't mishandle maximum value.
26506
26507 2006-05-19  Jim Meyering  <jim@meyering.net>
26508
26509         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
26510
26511 2006-05-17  Bruno Haible  <bruno@clisp.org>
26512
26513         Cygwin portability.
26514         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
26515
26516 2006-05-17  Bruno Haible  <bruno@clisp.org>
26517
26518         * lib/stdint_.h: Fix recognition of Cygwin.
26519
26520 2006-05-15  Bruno Haible  <bruno@clisp.org>
26521
26522         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
26523         on libtool patch by Ralf Wildenhues.
26524
26525 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26526
26527         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
26528         test for C99 conformance; (bool) 0.5 is an integer constant
26529         expression, but (bool) -0.5 is not.  Problem reported by Fedor
26530         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
26531
26532 2006-05-11  Simon Josefsson  <jas@extundo.com>
26533
26534         * m4/xvasprintf.m4: Fix obvious typo.
26535
26536 2006-05-11  Jim Meyering  <jim@meyering.net>
26537
26538         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
26539         James Lemley.
26540
26541 2006-05-10  Simon Josefsson  <jas@extundo.com>
26542
26543         * lib/md4.c: Typo fix, update copyright years.
26544         (K1, K2): Don't use L because it turn computations into 64-bit on
26545         64-bit platforms.
26546
26547 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
26548
26549         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
26550         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
26551         unwanted sign propagation, e.g., on hosts with 64-bit int.
26552         There still are some problems with reeelly weird theoretical hosts
26553         (e.g., 33-bit int) but it's not worth worrying about now.
26554         * lib/sha1.c (rol): Likewise.
26555         (K1, K2, K3, K4): Remove unnecessary L suffix.
26556
26557 2006-05-10  Bruno Haible  <bruno@clisp.org>
26558
26559         * lib/des.c: Cast to avoid warnings.
26560
26561 2006-05-09  Bruno Haible  <bruno@clisp.org>
26562
26563         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
26564         (Depends-on): Depend also on xsize, stdarg.
26565         (configure.ac): Add gl_XVASPRINTF.
26566
26567 2006-05-09  Bruno Haible  <bruno@clisp.org>
26568
26569         * m4/xvasprintf.m4: New file.
26570
26571 2006-05-09  Bruno Haible  <bruno@clisp.org>
26572
26573         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
26574         (EOVERFLOW): Define fallback value.
26575         (xstrcat): New function.
26576         (xvasprintf): Recognize the special case of a string concatenation.
26577
26578 2006-05-08  Eric Blake  <ebb9@byu.net>
26579
26580         * gnulib-tool (func_version): Base copyright year on CVS date.
26581         (func_emit_copyright_notice): New function.
26582         (func_emit_lib_Makefile_am): Use it.
26583         (func_emit_tests_Makefile_am): Likewise.
26584         (func_import): Likewise.
26585
26586 2006-05-08  Bruno Haible  <bruno@clisp.org>
26587
26588         * modules/stdarg: New file.
26589         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
26590
26591 2006-05-08  Bruno Haible  <bruno@clisp.org>
26592
26593         * m4/stdarg.m4: New file, from GNU gettext.
26594
26595 2006-05-08  Bruno Haible  <bruno@clisp.org>
26596
26597         * config/srclist.txt (build-aux/config.rpath): different from latest
26598         release.
26599
26600 2006-05-08  Bruno Haible  <bruno@clisp.org>
26601
26602         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
26603
26604 2006-05-05  Jim Meyering  <jim@meyering.net>
26605
26606         * m4/warning.m4: New file, derived from bison's file by the same name.
26607
26608 2006-05-03  Bruno Haible  <bruno@clisp.org>
26609
26610         * lib/stdint_.h: Shorter URL.
26611         * lib/inttypes.h: Likewise.
26612
26613 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26614
26615         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
26616
26617 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26618
26619         * lib/verify.h: Document the internals better.  Most of this change
26620         was written by Bruno Haible.
26621
26622 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26623
26624         * doc/verify.texi: New file, partly based on a proposal by
26625         Bruno Haible.
26626
26627 2006-05-02  Bruno Haible  <bruno@clisp.org>
26628
26629         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
26630         test from here...
26631         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
26632
26633 2006-04-29  Bruno Haible  <bruno@clisp.org>
26634
26635         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
26636         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
26637
26638 2006-04-29  Bruno Haible  <bruno@clisp.org>
26639
26640         * gnulib-tool: Make --update option actually work.
26641
26642 2006-04-29  Bruno Haible  <bruno@clisp.org>
26643
26644         * doc/gcd.texi: New file.
26645         * doc/gnulib.texi: Include it.
26646
26647 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26648
26649         * lib/getdate.y (get_date): When adding relative date, start with the
26650         initial time, not with the result of the first mktime call.
26651
26652 2006-04-25  Bruno Haible  <bruno@clisp.org>
26653
26654         * gnulib-tool (func_import): Output the include directives in three
26655         blocks, sorted separately.
26656         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26657
26658 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26659
26660         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
26661         to define main with arguments, for C++.  Reported by Eric Blake.
26662         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
26663         Prefer 'int main ()' to 'int main (void)', for C++.
26664         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26665         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
26666         for 'main', for C99 and C++.
26667
26668 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26669
26670         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
26671         Don't assume that exit status -1 is valid.
26672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26673         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26674         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26675         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
26676         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
26677         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
26678         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
26679         functions can be used without declaring them, or that you can
26680         exit with status -1.
26681         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26682
26683 2006-04-24  Karl Berry  <karl@gnu.org>
26684
26685         * config/srclist.txt (longdouble.m4): sync lost.
26686
26687 2006-04-24  Eric Blake  <ebb9@byu.net>
26688
26689         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
26690
26691 2006-04-24  Bruno Haible  <bruno@clisp.org>
26692
26693         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
26694         poll() implementation in AIX.
26695         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26696
26697 2006-04-24  Bruno Haible  <bruno@clisp.org>
26698
26699         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
26700         assigned exactly once.
26701
26702 2006-04-23  Claudio Fontana  <claudio@gnu.org>
26703             Bruno Haible  <bruno@clisp.org>
26704
26705         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
26706         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
26707         for AM_CPPFLAGS.
26708
26709 2006-04-23  Bruno Haible  <bruno@clisp.org>
26710
26711         * modules/copy-file: Depend on unistd.
26712         * modules/execute: Likewise.
26713         * modules/fatal-signal: Likewise.
26714         * modules/findprog: Likewise.
26715         * modules/mkdtemp : Likewise.
26716         * modules/pipe: Likewise.
26717         * modules/wait-process: Likewise.
26718
26719 2006-04-23  Bruno Haible  <bruno@clisp.org>
26720
26721         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
26722         condition was already detected.
26723         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26724
26725 2006-04-23  Bruno Haible  <bruno@clisp.org>
26726
26727         * lib/copy-file.c: Include <unistd.h> unconditionally.
26728         * lib/execute.c: Likewise.
26729         * lib/fatal-signal.c: Likewise.
26730         * lib/findprog.c: Likewise.
26731         * lib/mkdtemp.c: Likewise.
26732         * lib/pipe.h: Likewise.
26733         * lib/pipe.c: Likewise.
26734         * lib/wait-process.h: Likewise.
26735
26736 2006-04-23  Bruno Haible  <bruno@clisp.org>
26737
26738         * gnulib-tool (func_usage): Fix --import description. Document
26739         --update.
26740         (func_import): Create temporary file in a temporary directory, if
26741         --dry-run is specified. Silence errors from 'grep' when there are no
26742         m4 files in $m4dir.
26743         (func_create_testdir): Silence errors from 'grep' when there are no
26744         m4 files in $m4dir.
26745         Reported by Karl Berry <karl@freefriends.org>.
26746
26747 2006-04-20  Bruno Haible  <bruno@clisp.org>
26748
26749         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
26750         one argument, so that the code will be portable to Autoconf 2.60.
26751         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
26752         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26753         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
26754
26755 2006-04-19  Derek Price  <derek@ximbiot.com>
26756             Eric Blake  <ebb9@byu.net>
26757
26758         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
26759         rather than "/full/path.h".  Update comment to match.  Shorten &
26760         generalize m4_translit call via AS_TR_CPP.
26761
26762 2006-04-19  Derek Price  <derek@ximbiot.com>
26763             Eric Blake  <ebb9@byu.net>
26764
26765         * lib/inttypes.h: Correct grammar in comment.
26766
26767 2006-04-18  Derek Price  <derek@ximbiot.com>
26768             Paul Eggert  <eggert@cs.ucla.edu>
26769
26770         * modules/inttypes: New file.
26771         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
26772
26773 2006-04-18  Derek Price  <derek@ximbiot.com>
26774             Paul Eggert  <eggert@cs.ucla.edu>
26775
26776         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
26777         New files.
26778
26779 2006-04-18  Derek Price  <derek@ximbiot.com>
26780             Paul Eggert  <eggert@cs.ucla.edu>
26781
26782         * lib/inttypes.h: New file.
26783         * lib/strtoimax.c: Assume <inttypes.h>.
26784
26785 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
26786
26787         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
26788         isn't mounted.  Problem reported by Kir Kolyshkin.
26789
26790 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26791
26792         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
26793         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
26794         Derek R. Price.
26795         * lib/regex.h (RE_DUP_MAX): Update comment to match current
26796         implementation.
26797
26798 2006-04-12  Eric Blake  <ebb9@byu.net>
26799
26800         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
26801         is now done automatically by the corresponding Autoconf macro.
26802
26803 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
26804
26805         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
26806         time_r.h.
26807
26808 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26809
26810         Merge regex changes from libc, removing some of our
26811         POSIX-conformance changes that were rejected and redoing them in a
26812         less-intrusive way.
26813
26814         * lib/regcomp.c (re_compile_internal, init_dfa):
26815         Length arg is now size_t, not Idx.  All uses changed.
26816         (peek_token): Forward decl now says internal_function.
26817         (__re_error_msgid, __re_error_msgid_idx):
26818         Now static rather than extern with attribute_hidden.
26819         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
26820         For some reason libc prefers K&R style defns for external functions.
26821         (regerror) [!defined _LIBC]: Likewise.
26822         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
26823         (seek_collating_symbol_entry, lookup_collation_sequence_value):
26824         (build_range_exp, build_collating_symbol):
26825         Use K&R-style defn.
26826         (re_compile_fastmap): Use '\0' to memset, not 0.
26827         (utf8_sb_map): Make the calculations more obvious.
26828         (init_dfa, parse_bracket_exp, build_charclass_op):
26829         Call calloc and cast result, as glibc does.
26830         (init_word_char, fetch_token, peek_token, peek_token_bracket):
26831         (build_range_exp, build_collating_symbol):
26832         Now internal functions.
26833
26834         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
26835
26836         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
26837         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
26838         Don't depend on VMS; depend on __VMS instead, for POSIX
26839         namespace cleanness.
26840         (regoff_t): Define to ssize_t, not long int.
26841
26842         Remove the REG_ macros named below.  Instead, make the old names
26843         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
26844         __USE_GNU_REGEX.
26845         (REG_BACKSLASH_ESCAPE_IN_LISTS):
26846         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
26847         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
26848         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
26849         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
26850         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
26851         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
26852         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
26853         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
26854         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
26855         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
26856         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
26857         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
26858         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
26859         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
26860         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
26861         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
26862         (REG_NREGS):
26863         Remove.  All uses replaced by the old RE_* names.
26864         (RE_BACKSLASH_ESCAPE_IN_LISTS):
26865         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
26866         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
26867         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
26868         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
26869         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
26870         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
26871         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
26872         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
26873         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
26874         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
26875         Don't bother having these macros be independent of each others'
26876         values, since they no longer exist in the POSIX name space.
26877
26878         Rename the following member names back to their old names,
26879         unless !__USE_GNU_REGEX.  All uses changed back.
26880         (buffer): Renamed from re_buffer.
26881         (allocated): Renamed from re_allocated.
26882         (used): Renamed from re_used.
26883         (syntax): Renamed from re_syntax.
26884         (fastmap): Renamed from re_fastmap.
26885         (translate): Renamed from re_translate.
26886         (can_be_null): Renamed from re_can_be_null.
26887         (regs_allocated): Renamed from re_regs_allocated.
26888         (fastmap_accurate): Renamed from re_fastmap_accurate.
26889         (no_sub): Renamed from re_no_sub.
26890         (not_bol): Renamed from re_not_bol.
26891         (not_eol): Renamed from re_not_eol.
26892         (newline_anchor): Renamed from re_newline_anchor.
26893         (num_regs): Renamed from rm_num_regs.
26894         (start): Renamed from rm_start.
26895         (end): Renamed from rm_end.
26896
26897         (free_state): Move up a bit.
26898
26899         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
26900         #define to be empty.
26901         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
26902         when that is what is intended.
26903         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
26904         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
26905         (MAX): New macro.
26906         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
26907         All uses changed back to re_malloc, etc.  It's now the caller's
26908         responsibility to check for overflow; all callers changed.
26909         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
26910         (re_x2nrealloc): Remove.
26911         (free_state): Remove decl.
26912
26913         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
26914         (re_set_registers, re_exec):
26915         Use K&R-style defn.
26916
26917         2006-01-31  Roland McGrath  <roland@redhat.com>
26918
26919         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
26920         Reported by Mike Frysinger <vapier@gentoo.org>.
26921
26922         2006-01-15  Andreas Jaeger  <aj@suse.de>
26923
26924         [BZ #1950]
26925         * lib/regex_internal.c (re_string_reconstruct): Adjust for
26926         build_wcs_upper_buffer change.
26927         (build_wcs_upper_buffer): Change return type.
26928
26929         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
26930
26931         * lib/regex_internal.h: Include <stdint.h> if available.
26932
26933         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
26934
26935         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
26936
26937         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
26938
26939         * lib/regcomp.c: Adjust for changed secondary hash function.
26940
26941         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
26942
26943         * lib/regex.h: Pretty printing.
26944         Clean up namespace a bit.
26945
26946         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
26947
26948         * lib/regexec.c (update_cur_sifted_state, check_arrival,
26949         check_arrival_add_next_nodes): Avoid using uninitialized variable.
26950
26951         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26952                     Ulrich Drepper  <drepper@redhat.com>
26953
26954         [BZ #1302]
26955         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
26956         changed.
26957         (bitset_word_t): Renamed from bitset_word.  All uses changed.
26958
26959         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
26960
26961         [BZ #281]
26962         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
26963         * lib/regcomp.c: Remove unnecessary uses of
26964         unsigned RE_TRANSLATE_TYPE.
26965         * lib/regex_internal.h: Likewise.
26966         * lib/regex_internal.c: Likewise.
26967         * lib/regexec.c: Likewise.
26968         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
26969
26970         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
26971
26972         * lib/regexec.c (find_recover_state): Remove unnecessary
26973         initialization.
26974         (transit_state_bkref): Make DFA a const pointer.
26975         (get_subexp): Likewise.
26976         (check_arrival): Likewise.
26977         (update_cur_sifted_state): Likewise.
26978         (re_search_internal): Likewise.
26979         (prune_impossible_nodes): Likewise.
26980         (acquire_init_state_context): Likewise.
26981         (proceed_next_node): Likewise.
26982         (set_regs): Likewise.
26983         (free_fail_stack_return): Likewise.
26984         (check_arrival_expand_ecl): Mark DFA parameter as const.
26985         (check_arrival_expand_ecl_sub): Likewise.
26986         (check_subexp_limits): Likewise.
26987         (sub_epsilon_src_nodes):  Likewise.
26988         (add_epsilon_src_nodes):  Likewise.
26989         (merge_state_array): Likewise.
26990         (update_regs): Likewise.
26991         (build_trtable): Likewise.
26992         (sift_states_backward): Mark MCTX parameter as const.
26993         (build_sifted_states): Likewise.
26994         (update_cur_sifted_state): Likewise.
26995         (sift_states_mkref): Likewise.
26996         (check_arrival_expand_ecl): Mark eclosure as const.
26997         (check_dst_limits_calc_pos_1): Likewise.
26998         * lib/regex_internal.h (re_match_context_t): Make dfa a const
26999         pointer.
27000
27001         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
27002
27003         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
27004         (transit_state_sb): Likewise.
27005         (transit_state_mb): Likewise.
27006         (sift_states_iter_mb): Likewise.
27007         (check_arrival_add_next_nodes): Likewise.
27008         (check_node_accept_bytes): Change first parameter to pointer-to-const.
27009         [_LIBC] (re_search_2_stub): Use mempcpy.
27010
27011         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
27012         mbrtowc for very simple UTF-8 case.
27013
27014         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
27015         a pointer-to-const.
27016         (re_acquire_state_context): Likewise.
27017         * lib/regex_internal.h: Adjust prototypes.
27018
27019         * lib/regex.c: Prevent using C++ compilers.
27020
27021         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
27022         (re_acquire_state_context): Likewise.
27023
27024 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27025
27026         * modules/regex (Depends-on): Add ssize_t.
27027
27028 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27029
27030         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
27031         translation table.
27032
27033 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27034
27035         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
27036
27037 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
27038             Bruno Haible  <bruno@clisp.org>
27039
27040         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
27041         <sys/types.h> and <inttypes.h>.
27042
27043 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27044
27045         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
27046         `__error_t_defined', so argp.h will not typedef the former.
27047
27048 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27049
27050         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
27051         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
27052         glibc names.  Even if glibc is changed to conform to POSIX, the
27053         traditional names will be available anyway, since regex depends on
27054         the extensions module.  Also, fix a longstanding typo in the
27055         implementation of Spencer ERE test #75 from grep 2.3.  Problems
27056         reported by Emanuele Giaquinta.  Also, change sense of cached
27057         variable, so that the message makes sense.
27058
27059 2006-03-24  Simon Josefsson  <jas@extundo.com>
27060
27061         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
27062         including some doc fixes.
27063         (base64_encode_alloc): Fix +1 bug on allocation failures.
27064
27065 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27066
27067         * lib/base64.c (base64_encode): Do not read past end of array with
27068         unsanitized input on systems with CHAR_BIT > 8.
27069
27070 2006-03-24  Eric Blake  <ebb9@byu.net>
27071
27072         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
27073
27074 2006-03-22  Karl Berry  <karl@gnu.org>
27075
27076         * config/srclist.txt (*setenv.[ch]): get from coreutils.
27077         * config/srclistvars.sh (COREUTILS): new var.
27078
27079 2006-03-17  Jim Meyering  <jim@meyering.net>
27080
27081         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
27082         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
27083
27084 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
27085
27086         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
27087         no longer needs it.  Instead, check that regoff_t is as least
27088         as wide as ptrdiff_t.
27089
27090         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
27091         so that our regex.h stays compatible with the installed regex.
27092         This is helpful for installers who configure --without-included-regex.
27093         Problem reported by Emanuele Giaquinta.
27094
27095 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
27096
27097         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
27098         Typedef to long int, not to off_, as POSIX will likely change
27099         in that direction.
27100
27101 2006-03-15  Eric Blake  <ebb9@byu.net>
27102
27103         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
27104
27105 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
27106
27107         * lib/argp-help.c (validate_uparams): Fix typo
27108         * lib/argp-parse.c (argp_default_options): Consistently begin help
27109         messages with a lowercase letter.
27110
27111 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
27112
27113         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
27114         overrun buffers and shouldn't be used (much as gets shouldn't be
27115         used).
27116         * lib/time_r.c (asctime_r, ctime_r): Likewise.
27117
27118 2006-03-08  Simon Josefsson  <jas@extundo.com>
27119
27120         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
27121         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27122
27123 2006-03-08  Simon Josefsson  <jas@extundo.com>
27124
27125         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
27126         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27127
27128 2006-03-08  Simon Josefsson  <jas@extundo.com>
27129
27130         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
27131         signal that configure disabled the device.
27132
27133 2006-03-08  Simon Josefsson  <jas@extundo.com>
27134
27135         * build-aux/maint.mk: Fix refresh-po, to handle no translated
27136         languages.
27137
27138 2006-03-07  Simon Josefsson  <jas@extundo.com>
27139
27140         * modules/getopt (Depends-on): Add unistd.
27141
27142         * modules/unistd: New file.
27143
27144 2006-03-07  Simon Josefsson  <jas@extundo.com>
27145
27146         * modules/gc-random: New file.
27147
27148 2006-03-07  Simon Josefsson  <jas@extundo.com>
27149
27150         * m4/unistd_h.m4: New file.
27151
27152 2006-03-07  Simon Josefsson  <jas@extundo.com>
27153
27154         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
27155         test to be side-effect free by storing the result in the cache
27156         variable gl_cv_lib_readline, and moving the assignment of
27157         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
27158         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27159
27160 2006-03-07  Simon Josefsson  <jas@extundo.com>
27161
27162         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
27163         error on missing devices (the functions will return an error).
27164
27165         * m4/gc.m4: Move random stuff to gc-random.m4
27166
27167 2006-03-07  Simon Josefsson  <jas@extundo.com>
27168
27169         * lib/unistd_.h: New file.
27170
27171 2006-03-07  Simon Josefsson  <jas@extundo.com>
27172
27173         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
27174
27175 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27176
27177         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
27178         Problem reported by Juan Manuel Guerrero.
27179
27180 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27181
27182         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
27183         the unistd module.
27184         * lib/getlogin_r.c: Likewise.
27185         * lib/getlogin_r.h: Likewise.
27186         * lib/glob.c: Likewise.
27187         * lib/pagealign_alloc.c: Likewise.
27188         * lib/unistd_.h: Remove; no longer needed.
27189
27190 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27191
27192         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27193         Add unistd.
27194         * modules/c-stack (Depends-on): Add unistd.
27195         * modules/getlogin_r: Likewise.
27196         * modules/glob: Likewise.
27197         * modules/pagealign_alloc: Likewise.
27198         * modules/unistd (Files): Remove lib/unistd_.h.
27199         (EXTRA_DIST): Remove.
27200         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
27201         need unistd_.h.
27202         (MOSTLYCLEANFILES): Remove unistd.h-t.
27203
27204 2006-03-03  Simon Josefsson  <jas@extundo.com>
27205
27206         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
27207
27208 2006-03-03  Simon Josefsson  <jas@extundo.com>
27209
27210         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
27211         libidn and bison.
27212
27213 2006-03-03  Simon Josefsson  <jas@extundo.com>
27214
27215         * build-aux/maint.mk: Add indent target.
27216
27217 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
27218
27219         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
27220         our replacement poll.h in any case, to avoid a differing
27221         declaration from a system header.  Seen on AIX.
27222
27223 2006-03-01  Simon Josefsson  <jas@extundo.com>
27224
27225         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
27226         <kasal@ucw.cz>.
27227
27228 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27229
27230         * modules/gettime (Depends-on): Add extensions module.
27231         * modules/nanosleep (Depends-on): Likewise.
27232         * modules/settime (Depends-on): Likewise.
27233
27234 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27235
27236         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
27237         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
27238         pedantically.
27239         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27240         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
27241
27242         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
27243         not "==".  Reported by Ralf Wildenhues.
27244
27245 2006-03-01  Karl Berry  <karl@gnu.org>
27246
27247         * doc/Copyright/request-*: new files, synced from gnuorg.
27248
27249 2006-03-01  Karl Berry  <karl@gnu.org>
27250
27251         * config/srclist.txt (Copyright/*): new entries.
27252
27253 2006-02-28  Simon Josefsson  <jas@extundo.com>
27254
27255         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
27256
27257 2006-02-27  Simon Josefsson  <jas@extundo.com>
27258
27259         * lib/base64.h: Indent #define's.  From Jim Meyering
27260         <jim@meyering.net>.
27261
27262 2006-02-27  Jim Meyering  <jim@meyering.net>
27263
27264         Revert the change of 2006-02-24, so these files can continue
27265         to be sync'd from gettext.
27266         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
27267         of `config.h'.
27268
27269 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27270
27271         * modules/intprops: New file.
27272         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27273         Add intprops.
27274         * modules/getloadavg (Files): Remove lib/intprops.h.
27275         (Depends-on): Add intprops.
27276         * modules/human: Likewise.
27277         * modules/inttostr: Likewise.
27278         * modules/openat: Likewise.
27279         * modules/sig2str: Likewise.
27280         * modules/userspec: Likewise.
27281         * modules/utimecmp: Likewise.
27282         * modules/xnanosleep: Likewise.
27283         * modules/xstrtol: Likewise.
27284
27285 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
27286
27287         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
27288         * modules/lock-tests (TESTS): Use $(EXEEXT).
27289         * modules/tls-tests: Likewise.
27290         * modules/argp-tests: Likewise.
27291         (check_PROGRAMS): New var, replacing...
27292         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
27293
27294 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27295
27296         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
27297         `config.h'.
27298
27299 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27300
27301         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
27302
27303 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27304
27305         Sync from coreutils.
27306         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
27307         gl_CHDIR_SAFER.
27308
27309 2006-02-22  Jim Meyering  <jim@meyering.net>
27310
27311         Sync from coreutils.
27312         * m4/chdir-safer.m4: New file.
27313
27314 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27315
27316         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
27317         AT_FDCWD exceeds INT_MAX.
27318         * lib/openat.h (AT_FDCWD): Likewise.
27319
27320 2006-02-17  Eric Blake  <address@hidden>
27321
27322         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
27323
27324 2006-02-16  Simon Josefsson  <jas@extundo.com>
27325
27326         * modules/getaddrinfo (Depends-on): Add sys_socket.
27327
27328 2006-02-15  Simon Josefsson  <jas@extundo.com>
27329
27330         * build-aux/maint.mk: Add dsyntax-check rule.
27331
27332 2006-02-15  Eric Blake  <ebb9@byu.net>
27333
27334         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
27335         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
27336         'present but cannot compile' warnings on cygwin.
27337         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
27338         use ws2tcpip.h if sys/socket.h works.
27339         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
27340         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
27341
27342 2006-02-14  Simon Josefsson  <jas@extundo.com>
27343
27344         * modules/maintainer-makefile (Files): Rename.
27345
27346         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
27347         and (the local) Makefile.cfg to maint-cfg.mk.
27348
27349         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
27350         to the latter.
27351
27352         * modules/maintainer-makefile: New module.
27353
27354         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
27355         severaly stripped to make it possible to build it up from scratch
27356         with reliable tests.
27357
27358         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
27359         fixes to permit overriding the default actions when configure and
27360         makefile are not available.
27361
27362 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27363
27364         Sync from coreutils.
27365         * modules/lstat (Depends-on): Don't depend on xalloc.
27366         (License): Change from GPL to LGPL, since this is now simply a
27367         replacement for a libc function.
27368
27369 2006-02-14  Jim Meyering  <jim@meyering.net>
27370
27371         Sync from coreutils.
27372
27373         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
27374         failure on deficient systems, and simplify gnulib lgpl dependencies.
27375         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
27376         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
27377
27378         * lib/xalloc-die.c: Remove unused definition of N_.
27379
27380 2006-02-14  Jim Meyering  <jim@meyering.net>
27381
27382         Sync from coreutils.
27383         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
27384         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
27385         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
27386         double-quote uses of that variable, to accommodate the rare case in
27387         which getmntent is available in none of the libraries checked.  This
27388         happens at least on FreeBSD 5.0.
27389
27390 2006-02-13  Simon Josefsson  <jas@extundo.com>
27391
27392         * gnulib-tool (Usage): Fix --import, from
27393         karl@freefriends.org (Karl Berry).
27394
27395 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
27396
27397         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
27398
27399 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
27400
27401         * lib/argp-namefrob.h: Restore changes accidentally lost during the
27402         "autoupdate" on 2005-12-12.
27403
27404 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27405
27406         * modules/closeout (Depends-on): Remove atexit.
27407
27408 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27409
27410         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
27411         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
27412
27413 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
27414
27415         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
27416         __EXTENSIONS__ if this causes compilation to fail.  Problem
27417         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
27418         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
27419
27420 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27421
27422         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
27423         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
27424         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
27425         All uses changed.
27426
27427 2006-01-26  Simon Josefsson  <jas@extundo.com>
27428
27429         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
27430         prototype is visible on mingw32.
27431
27432         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
27433         for mingw32.
27434
27435         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
27436         mingw32).
27437
27438 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
27439
27440         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
27441         attempt to open for write; this always fails, at least on POSIX
27442         hosts.  This reinstates the 2006-01-09 change, which was
27443         inadvertently removed.
27444
27445 2006-01-26  Bruno Haible  <bruno@clisp.org>
27446
27447         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
27448         Reported by Paul Eggert.
27449
27450 2006-01-26  Bruno Haible  <bruno@clisp.org>
27451             Paul Eggert  <eggert@cs.ucla.edu>
27452
27453         * lib/stdbool_.h (_Bool)
27454         [(! (defined __cplusplus || defined __BEOS__)
27455           && !defined __GNUC__
27456           && !(defined __HP_cc || defined __xlc__
27457                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
27458                || defined __sgi))]:
27459         #define to signed char in these cases too; this simplifies
27460         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
27461         etc., separately) and makes it more conservative.
27462
27463 2006-01-25  Simon Josefsson  <jas@extundo.com>
27464
27465         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
27466         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
27467         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
27468
27469 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27470
27471         * lib/argp-namefrob.h: Bugfix. Remove stray #
27472
27473 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27474
27475         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
27476         so that we test the test.
27477         Check for yet another HP-UX cc bug involving *bool |= bool.
27478
27479 2006-01-25  Karl Berry  <karl@gnu.org>
27480
27481         * config/srclist.txt (vasnprintf.c): sync lost.
27482
27483 2006-01-25  Jim Meyering  <jim@meyering.net>
27484
27485         Sync from the stable (b5) branch of coreutils:
27486
27487         * lib/fts.c (fts_children): Don't let close() clobber errno from
27488         failed fchdir().
27489
27490         * lib/fts.c (fts_stat): When following a symlink-to-directory,
27491         don't necessarily interpret stat-fails+lstat-succeeds as indicating
27492         a dangling symlink.  That can also happen at least for ELOOP.
27493         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
27494         FYI, this bug predates the inclusion of fts.c in coreutils.
27495
27496         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
27497         in their own block, so pre-c99 compilers don't object.
27498
27499         Avoid the double-free (first in fts_read, second in fts_close) that
27500         would occur when an `active' directory is made inaccessible (e.g.,
27501         via chmod a-x) during a traversal.
27502         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27503         before returning.  Reproduce this failure by
27504         mkdir -p a/b; cd a; chmod a-x . b
27505         Reported by Stavros Passas.
27506
27507 2006-01-25  Jim Meyering  <jim@meyering.net>
27508
27509         * lib/fileblocks.c: Remove more useless parentheses.
27510         * lib/readutmp.h: Likewise.
27511
27512 2006-01-25  Bruno Haible  <bruno@clisp.org>
27513
27514         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
27515         warnings.
27516         Reported by Paul Eggert.
27517
27518 2006-01-25  Bruno Haible  <bruno@clisp.org>
27519
27520         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
27521         rid of a trap command. For Solaris sh.