Add getusershell(), setusershell(), endusershell() declarations to <unistd.h>.
[gnulib.git] / ChangeLog
1 2008-10-18  Bruno Haible  <bruno@clisp.org>
2
3         Add getusershell(), setusershell(), endusershell() declarations to
4         <unistd.h>.
5         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
6         declarations.
7         * lib/getusershell.c: Include unistd.h.
8         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
9         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
10         HAVE_GETUSERSHELL.
11         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
12         and HAVE_GETUSERSHELL.
13         * modules/getusershell (Depends-on): Add unistd, extensions.
14         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15         (Include): Specify <unistd.h>.
16         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
17         HAVE_GETUSERSHELL.
18
19 2008-10-18  Bruno Haible  <bruno@clisp.org>
20
21         Add a getloadavg() declaration to <stdlib.h>.
22         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
23         getloadavg declaration.
24         (getloadavg): New declaration.
25         * lib/getloadavg.c: Include <stdlib.h> first.
26         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
27         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
28         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
29         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
30         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
31         * modules/getloadavg (Depends-on): Add stdlib, extensions.
32         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33         (Include): Specify <stdlib.h>.
34         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36
37 2008-10-18  Bruno Haible  <bruno@clisp.org>
38
39         * lib/dirchownmod.c: Don't include lchmod.h.
40
41         Move the lchmod() declaration to <sys/stat.h>.
42         * lib/lchmod.h: Remove file.
43         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44         (lchmod): New declaration, moved here from lib/lchown.h.
45         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
47         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
48         and HAVE_LCHMOD.
49         * modules/lchmod (Files): Remove lib/lchmod.h.
50         (Depends-on): Add sys_stat, extensions.
51         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52         (Include): Specify <sys/stat.h> instead of lchmod.h.
53         * modules/sys_stat (Depends-on): Add link-warning.
54         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55         definition of GL_LINK_WARNING.
56         * NEWS: Mention the change.
57
58 2008-10-18  Bruno Haible  <bruno@clisp.org>
59
60         * lib/fchdir.c: Don't include dirfd.h.
61         * lib/fts.c: Likewise.
62         * lib/getcwd.c: Likewise.
63         * lib/glob.c: Likewise.
64
65         Move the dirfd() declaration to <dirent.h>.
66         * lib/dirfd.h: Remove file.
67         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
68         (dirfd): New declaration.
69         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
70         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
71         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
72         HAVE_DECL_DIRFD.
73         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
74         HAVE_DECL_DIRFD.
75         * modules/dirfd (Files): Remove lib/dirfd.h.
76         (Depends-on): Add dirent, extensions.
77         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
78         (Include): Specify <dirent.h> instead of dirfd.h.
79         * modules/dirent (Depends-on): Add link-warning.
80         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
81         definition of GL_LINK_WARNING.
82         * NEWS: Mention the change.
83
84 2008-10-18  Bruno Haible  <bruno@clisp.org>
85
86         Move the euidaccess() declaration to <unistd.h>.
87         * lib/euidaccess.h: Remove file.
88         * lib/unistd.in.h (euidaccess): New declaration.
89         * lib/euidaccess.c: Don't include euidaccess.h.
90         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
91         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
92         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
93         and HAVE_EUIDACCESS.
94         * modules/euidaccess (Files): Remove lib/euidaccess.h.
95         (Depends-on): Add unistd.
96         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97         (Include): Specify <unistd.h> instead of euidaccess.h.
98         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
99         HAVE_EUIDACCESS.
100         * NEWS: Mention the change.
101
102 2008-10-18  Bruno Haible  <bruno@clisp.org>
103
104         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
105
106         Move the getdomainname() declaration to <unistd.h>.
107         * lib/getdomainname.h: Remove file.
108         * lib/unistd.in.h (getdomainname): New declaration.
109         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
110         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
111         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
112         HAVE_GETDOMAINNAME.
113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
114         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
115         * modules/getdomainname (Files): Remove lib/getdomainname.h.
116         (Depends-on): Add unistd, extensions.
117         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
118         (Includes): Specify <unistd.h> instead of getdomainname.h.
119         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
120         HAVE_GETDOMAINNAME.
121         * NEWS: Mention the change.
122
123 2008-10-18  Bruno Haible  <bruno@clisp.org>
124
125         * modules/dirent: New file.
126         * m4/dirent_h.m4: New file.
127         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
128         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
129         * modules/fchdir (Files): Remove lib/dirent.in.h.
130         (Depends-on): Add dirent.
131         (Makefile.am): Move rules to modules/dirent.
132         * doc/posix-headers/dirent.texi: Mention the new module.
133
134 2008-10-18  Bruno Haible  <bruno@clisp.org>
135
136         Avoid -Wunused-parameter warnings in public gnulib header files.
137         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
138         macro.
139         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
140
141 2008-10-18  Bruno Haible  <bruno@clisp.org>
142
143         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
144         * doc/glibc-functions/error.texi: Mention the module 'error'.
145         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
146         * doc/glibc-functions/getdomainname.texi: Mention the module
147         'getdomainname'.
148         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
149         * doc/glibc-functions/getpagesize.texi: Mention the module
150         'getpagesize'.
151         * doc/glibc-functions/getusershell.texi: Mention the module
152         'getusershell'.
153         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
154         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
155         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
156         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
157         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
158         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
159         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
160         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
161         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
162         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
163         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
164         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
165         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
166         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
167
168 2008-10-17  Bruno Haible  <bruno@clisp.org>
169
170         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
171         HP-UX and IRIX, use -0.0L.
172         * tests/test-ceill.c (minus_zero): Likewise.
173         * tests/test-floorl.c (minus_zero): Likewise.
174         * tests/test-frexpl.c (minus_zero): Likewise.
175         * tests/test-isnan.c (minus_zerol): Likewise.
176         * tests/test-isnanl.h (minus_zero): Likewise.
177         * tests/test-ldexpl.c (minus_zero): Likewise.
178         * tests/test-roundl.c (minus_zero): Likewise.
179         * tests/test-signbit.c (minus_zerol): Likewise.
180         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
181         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
182         * tests/test-truncl.c (minus_zero): Likewise.
183         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
184         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
185         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
186         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
187
188 2008-10-17  Bruno Haible  <bruno@clisp.org>
189
190         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
191         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
192         that it gets activated only for gcc >= 3.0.
193         * lib/dirent.in.h: Likewise.
194         * lib/errno.in.h: Likewise.
195         * lib/fcntl.in.h: Likewise.
196         * lib/float.in.h: Likewise.
197         * lib/iconv.in.h: Likewise.
198         * lib/inttypes.in.h: Likewise.
199         * lib/locale.in.h: Likewise.
200         * lib/math.in.h: Likewise.
201         * lib/netdb.in.h: Likewise.
202         * lib/netinet_in.in.h: Likewise.
203         * lib/search.in.h: Likewise.
204         * lib/signal.in.h: Likewise.
205         * lib/spawn.in.h: Likewise.
206         * lib/stdarg.in.h: Likewise.
207         * lib/stdint.in.h: Likewise.
208         * lib/stdio.in.h: Likewise.
209         * lib/stdlib.in.h: Likewise.
210         * lib/string.in.h: Likewise.
211         * lib/strings.in.h: Likewise.
212         * lib/sys_file.in.h: Likewise.
213         * lib/sys_ioctl.in.h: Likewise.
214         * lib/sys_select.in.h: Likewise.
215         * lib/sys_socket.in.h: Likewise.
216         * lib/sys_stat.in.h: Likewise.
217         * lib/sys_time.in.h: Likewise.
218         * lib/sysexits.in.h: Likewise.
219         * lib/time.in.h: Likewise.
220         * lib/unistd.in.h: Likewise.
221         * lib/wchar.in.h: Likewise.
222         * lib/wctype.in.h: Likewise.
223         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
224
225 2008-10-17  Jim Meyering  <meyering@redhat.com>
226
227         ignore-value: don't depend on inline module
228         * modules/ignore-value (Depends-on): Remove 'inline'.
229         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
230         Suggestion from Bruno Haible.
231
232 2008-10-17  Bruno Haible  <bruno@clisp.org>
233
234         New implementation of condition variables for Win32.
235         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
236         (gl_linked_waitqueue_t): New type.
237         (gl_cond_t): Use it.
238         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
239         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
240         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
241         (glthread_cond_init_func, glthread_cond_wait_func,
242         glthread_cond_timedwait_func, glthread_cond_signal_func,
243         glthread_cond_broadcast_func, glthread_cond_destroy_func):
244         Reimplemented on the basis of gl_linked_waitqueue_t.
245         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
246         gl_waitqueue_t.
247         (gl_rwlock_t): Update.
248         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
249
250 2008-10-17  Simon Josefsson  <simon@josefsson.org>
251
252         * modules/recvfrom (Depends-on): Add dependency on getpeername.
253         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
254
255 2008-10-17  Jim Meyering  <meyering@redhat.com>
256
257         ignore-value: new module
258         * modules/ignore-value: New file.
259         * lib/ignore-value.h: New file.
260         * MODULES.html.sh (Compiler warning management): New section,
261         just for this module.  More to come.
262
263 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
264
265         open-safer.c: avoid 'signed and unsigned in conditional...' warning
266         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
267         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
268
269 2008-10-16  Jim Meyering  <meyering@redhat.com>
270
271         openat-die.c: avoid 'no previous prototype' warning
272         * lib/openat-die.c: Include "openat.h".
273         Reported by Reuben Thomas <rrt@sc3d.org>.
274
275 2008-10-16  Simon Josefsson  <simon@josefsson.org>
276
277         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
278         * lib/netdb.in.h: Fix typo.
279         Reported by Bruno Haible  <bruno@clisp.org>
280
281         * lib/netdb.in.h: Include sys/socket.h for platforms without
282         netdb.h, to get structures like hostent on MinGW.
283         * modules/netdb (Depends-on): Add sys_socket.
284
285 2008-10-15  Simon Josefsson  <simon@josefsson.org>
286
287         * modules/netdb, modules/netdb-tests: New file.
288         * m4/netdb_h.m4: New file.
289         * lib/netdb.in.h: Add, currently just an empty file pending
290         definitions.
291         * tests/test-netdb.c: New file.
292         * doc/posix-headers/netdb.texi: Mention that we replace it if
293         needed.
294         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
295         netdb.
296
297 2008-10-15  Simon Josefsson  <simon@josefsson.org>
298
299         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
300         with code.
301
302 2008-10-13  Bruno Haible  <bruno@clisp.org>
303
304         * lib/glthread/cond.c (glthread_cond_wait_func,
305         glthread_cond_timedwait_func): Add a comment.
306
307 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
308
309         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
310         * tests/test-select.c: Likewise,
311
312 2008-10-13  Bruno Haible  <bruno@clisp.org>
313
314         * lib/glthread/cond.c (glthread_cond_wait_func,
315         glthread_cond_timedwait_func): Fix variable name.
316         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
317
318 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
319
320         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
321         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
322         struct sockaddr.sa_len.
323         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
324
325 2008-10-13  Simon Josefsson  <simon@josefsson.org>
326
327         * build-aux/pmccabe2html: Add css and css_url parameters.
328
329 2008-10-12  Bruno Haible  <bruno@clisp.org>
330
331         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
332         calling aclx_get.
333         Reported by Rainer Tammer <tammer@tammer.net>.
334
335 2008-10-12  Bruno Haible  <bruno@clisp.org>
336
337         Use msvcrt aware primitives for creation/termination of Win32 threads.
338         * lib/glthread/thread.c: Include <process.h>.
339         (glthread_create_func): Use _beginthreadex instead of CreateThread.
340         (wrapper_func): Update signature.
341         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
342
343 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
344             Bruno Haible  <bruno@clisp.org>
345
346         Provide a Win32 implementation of the 'cond' module.
347         * lib/glthread/cond.h [USE_WIN32]: New implementation.
348         * lib/glthread/cond.c (glthread_cond_init_func,
349         glthread_cond_wait_func, glthread_cond_timedwait_func,
350         glthread_cond_signal_func, glthread_cond_broadcast_func,
351         glthread_cond_destroy_func) [USE_WIN32]: New functions.
352         * modules/cond (Dependencies): Add gettimeofday.
353
354 2008-10-11  Bruno Haible  <bruno@clisp.org>
355
356         Make sleep work on older versions of mingw.
357         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
358         only whether it exists.
359         * doc/posix-functions/sleep.texi: Mention the problem with older
360         versions of mingw.
361
362 2008-10-11  Bruno Haible  <bruno@clisp.org>
363
364         New module 'shutdown'.
365         * modules/shutdown: New file.
366         * lib/sys_socket.in.h (shutdown): New declaration.
367         * lib/winsock.c (shutdown): New function.
368         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
369         GNULIB_SHUTDOWN.
370         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
371         * doc/posix-functions/shutdown.texi: Document the new module.
372
373 2008-10-11  Jim Meyering  <meyering@redhat.com>
374
375         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
376
377 2008-10-11  Bruno Haible  <bruno@clisp.org>
378
379         New module 'fclose'.
380         * modules/fclose: New file.
381         * lib/stdio.in.h (fclose): New declaration.
382         * lib/fclose.c: New file.
383         * m4/fclose.m4: New file.
384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
385         REPLACE_FCLOSE.
386         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
387         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
388         REPLACE_FCLOSE.
389         * modules/close (Depends-on): fclose.
390         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
391
392 2008-10-11  Bruno Haible  <bruno@clisp.org>
393
394         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
395         set errno and don't call _close.
396
397 2008-10-10  Bruno Haible  <bruno@clisp.org>
398
399         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
400         ACL, not afterwards. Fixes test failure on Cygwin.
401
402 2008-10-09  Ben Pfaff  <blp@gnu.org>
403
404         * build-aux/announce-gen: Fix gnulib version related part of usage
405         message.  Die with a useful error message if no tarballs are
406         found.
407
408 2008-10-10  Jim Meyering  <meyering@redhat.com>
409
410         bootstrap: use git's --depth=N option only if it's supported
411         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
412         recognize the --depth option.  Reported by Pádraig Brady.
413
414 2008-10-09  Bruno Haible  <bruno@clisp.org>
415
416         New module 'ioctl'.
417         * modules/ioctl: New file.
418         * lib/sys_socket.in.h (ioctl): Remove declaration.
419         * lib/winsock.c: Include <sys/ioctl.h>.
420         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
421         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
422         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
423         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
424         * doc/posix-functions/ioctl.texi: Mention the new module.
425
426 2008-10-09  Bruno Haible  <bruno@clisp.org>
427
428         New module 'sys_ioctl'.
429         * lib/sys_ioctl.in.h: New file.
430         * m4/sys_ioctl_h.m4: New file.
431         * modules/sys_ioctl: New file.
432         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
433
434 2008-10-09  Bruno Haible  <bruno@clisp.org>
435
436         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
437         * lib/winsock.c: Include <stdarg.h>.
438         (rpl_ioctl): Change to second argument 'int' and then varargs.
439
440 2008-10-09  Bruno Haible  <bruno@clisp.org>
441
442         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
443         when the sys_socket module is present and the system has <winsock2.h>.
444
445 2008-10-09  Bruno Haible  <bruno@clisp.org>
446
447         * doc/posix-functions/close.texi: Mention module 'close' instead of
448         module 'sys_socket'.
449
450 2008-10-09  Bruno Haible  <bruno@clisp.org>
451
452         * doc/glibc-headers/sys_ioctl.texi: New file.
453         * doc/gnulib.texi: Include it.
454
455 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
456             Bruno Haible  <bruno@clisp.org>
457
458         Combine the two replacements of 'close'.
459         * lib/sys_socket.in.h (close): Define to a reminder to include
460         <unistd.h>.
461         (_gl_close_fd_maybe_socket): New declaration.
462         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
463         * lib/winsock.c (close): Remove undefinition.
464         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
465         needed for the gnulib module 'close'.
466         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
467         define to an error symbol or to a warning, if suitable.
468         * lib/close.c: Include <sys/socket.h>.
469         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
470         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
471         UNISTD_H_HAVE_WINSOCK2_H.
472         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
474         UNISTD_H_HAVE_WINSOCK2_H.
475         * modules/sys_socket (Files): Add m4/unistd_h.m4.
476         (configure.ac): Set a module indicator.
477         (Makefile.am): Substitute GNULIB_CLOSE.
478         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
479         * modules/poll-tests (Depends-on): Add close.
480         * modules/select-tests (Depends-on): Likewise.
481
482 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
483             Bruno Haible  <bruno@clisp.org>
484
485         New module 'close'.
486         * modules/close: New file.
487         * lib/unistd.in.h (close): Move declaration out of the
488         FCHDIR_REPLACEMENT scope.
489         (_gl_unregister_fd): New declaration.
490         * lib/close.c: New file.
491         * lib/fchdir.c (rpl_close): Remove function.
492         * m4/close.m4: New file.
493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
494         close.
495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
496         REPLACE_CLOSE.
497         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
498         REPLACE_CLOSE.
499         * modules/fchdir (Depends-on): Add close.
500
501 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
502             Bruno Haible  <bruno@clisp.org>
503
504         * lib/fcntl.in.h (open): Simplify conditionals.
505         (_gl_register_fd): New declaration.
506         * lib/fchdir.c (rpl_open): Remove function.
507         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
508         also.
509         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
511         open.
512
513 2008-10-09  Jim Meyering  <meyering@redhat.com>
514
515         GNUmakefile: use the more name-space-friendly "_version"
516         * top/GNUmakefile (_dummy): Update.
517         (_version): Rename from "version".
518
519 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
520             Bruno Haible  <bruno@clisp.org>
521
522         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
523         rpl_close.
524         (_gl_register_fd): New function, extracted from rpl_open.
525         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
526         (rpl_open, rpl_opendir): Use _gl_register_fd.
527
528 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
529
530         Fix organization of 'open' replacement.
531         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
532         (gl_FUNC_OPEN): Use it.
533         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
534
535 2008-10-08  Bruno Haible  <bruno@clisp.org>
536
537         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
538
539 2008-10-08  Simon Josefsson  <simon@josefsson.org>
540
541         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
542         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
543         listen).
544
545 2008-10-08  Eric Blake  <ebb9@byu.net>
546
547         GNUmakefile: add 'make version' target
548         * top/GNUmakefile (_curr-ver): Split version update rules...
549         (version): ...into a target.
550
551 2008-10-07  Bruno Haible  <bruno@clisp.org>
552
553         Use a more portable replacement expression for -0.0L.
554         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
555         instead of -0.0L. Fix m4 quotation.
556
557         * tests/test-signbit.c: Include <float.h>.
558         (minus_zero): New variable.
559         (test_signbitl): Use minus_zero instead of -zero.
560         * modules/signbit-tests (Depends-on): Add float.
561
562         * tests/test-ceill.c: Include <float.h>.
563         (zero): Remove variable.
564         (minus_zero): New variable.
565         (main): Use minus_zero instead of -zero.
566         * modules/ceill-tests (Depends-on): Add float.
567
568         * tests/test-floorl.c: Include <float.h>.
569         (zero): Remove variable.
570         (minus_zero): New variable.
571         (main): Use minus_zero instead of -zero.
572         * modules/floorl-tests (Depends-on): Add float.
573
574         * tests/test-roundl.c: Include <float.h>.
575         (zero): Remove variable.
576         (minus_zero): New variable.
577         (main): Use minus_zero instead of -zero.
578         * modules/roundl-tests (Depends-on): Add float.
579
580         * tests/test-truncl.c: Include <float.h>.
581         (zero): Remove variable.
582         (minus_zero): New variable.
583         (main): Use minus_zero instead of -zero.
584         * modules/truncl-tests (Depends-on): Add float.
585
586         * tests/test-frexpl.c (zero): Remove variable.
587         (minus_zero): New variable.
588         (main): Use minus_zero instead of -zero.
589         * modules/frexpl-tests (Depends-on): Add float.
590
591         * tests/test-isnan.c (zerol): Remove variable.
592         (minus_zerol): New variable.
593         (test_long_double): Use minus_zerol instead of -zerol.
594         * modules/isnan-tests (Depends-on): Add float.
595
596         * tests/test-isnanl.h (zero): Remove variable.
597         (minus_zero): New variable.
598         (main): Use minus_zero instead of -zero.
599         * modules/isnanl-nolibm-tests (Depends-on): Add float.
600         * modules/isnanl-tests (Depends-on): Add float.
601
602         * tests/test-ldexpl.c (zero): Remove variable.
603         (minus_zero): New variable.
604         (main): Use minus_zero instead of -zero.
605         * modules/ldexpl-tests (Depends-on): Add float.
606
607         * tests/test-snprintf-posix.h (zerol): Remove variable.
608         (minus_zerol): New variable.
609         (test_function): Use minus_zerol instead of -zerol.
610         * modules/snprintf-posix-tests (Depends-on): Add float.
611         * modules/vsnprintf-posix-tests (Depends-on): Add float.
612
613         * tests/test-sprintf-posix.h (zerol): Remove variable.
614         (minus_zerol): New variable.
615         (test_function): Use minus_zerol instead of -zerol.
616         * modules/sprintf-posix-tests (Depends-on): Add float.
617         * modules/vsprintf-posix-tests (Depends-on): Add float.
618
619         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
620         (minus_zerol): New variable.
621         (test_function): Use minus_zerol instead of -zerol.
622         * modules/vasnprintf-posix-tests (Depends-on): Add float.
623
624         * tests/test-vasprintf-posix.c (zerol): Remove variable.
625         (minus_zerol): New variable.
626         (test_function): Use minus_zerol instead of -zerol.
627         * modules/vasprintf-posix-tests (Depends-on): Add float.
628
629 2008-10-07  Simon Josefsson  <simon@josefsson.org>
630
631         * MODULES.html.sh (Support for building documentation): Mention
632         pmccabe2html.  Sort entries.
633
634         Add pmccabe2html module, from gnupdf.
635         * build-aux/pmccabe.css: New file.
636         * build-aux/pmccabe2html: New file.
637         * m4/pmccabe2html.m4: New file.
638         * modules/pmccabe2html: New file.
639
640 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
641
642         flock: new module
643         * MODULES.html.sh: Add to list of modules.
644         * lib/flock.c: flock implementation for Windows and Unix systems
645         which have fcntl.
646         * doc/glibc-functions/flock.texi: Update documentation.
647         * lib/sys_file.in.h: <sys/file.h> header file.
648         * m4/flock.m4: M4 macros.
649         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
650         * modules/flock: flock module.
651         * modules/flock-tests: flock tests module.
652         * modules/sys_file: sys/file.h module.
653         * tests/test-flock.c: test suite for flock.
654
655 2008-10-06  Jim Meyering  <meyering@redhat.com>
656
657         bootstrap: check for LT_INIT more portably still ;-)
658         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
659         Spotted by Bruno Haible.
660
661 2008-10-06  Eric Blake  <ebb9@byu.net>
662
663         test-signbit: avoid tripping Irix cc bug on -0.0L
664         * tests/test-signbit.c (minus_zerol): Delete, and replace with
665         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
666         entire testsuite consistent and avoids an Irix 6.2 bug.
667
668 2008-10-05  Bruno Haible  <bruno@clisp.org>
669             Jim Meyering  <jim@meyering.net>
670
671         Add an option for ignoring EPIPE during close_stdout.
672         * lib/closeout.h: Include <stdbool.h>.
673         (close_stdout_set_ignore_EPIPE): New declaration.
674         * lib/closeout.c: Include <stdbool.h>.
675         (ignore_EPIPE): New variable.
676         (close_stdout_set_ignore_EPIPE): New function.
677         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
678         * lib/close-stream.c (close_stream): Mention the possible EPIPE
679         failure.
680         * modules/closeout (Depends-on): Add stdbool.
681
682 2008-10-05  Bruno Haible  <bruno@clisp.org>
683
684         * modules/accept: New file.
685         * modules/bind: New file.
686         * modules/connect: New file.
687         * modules/getpeername: New file.
688         * modules/getsockname: New file.
689         * modules/getsockopt: New file.
690         * modules/listen: New file.
691         * modules/recv: New file.
692         * modules/recvfrom: New file.
693         * modules/send: New file.
694         * modules/sendto: New file.
695         * modules/setsockopt: New file.
696         * modules/socket: New file.
697         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
698         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
699         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
700         the particular module is requested. Add a link warning when the
701         particular module is not requested.
702         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
703         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
704         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
705         the particular module is requested.
706         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
707         gl_SYS_SOCKET_H_DEFAULTS): New macros.
708         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
709         * modules/sys_socket (Depends-on): Add link-warning.
710         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
711         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
712         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
713         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
714         GL_LINK_WARNING.
715         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
716         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
717         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
718         * doc/posix-functions/getpeername.texi: Mention the new module
719         'getpeername'.
720         * doc/posix-functions/getsockname.texi: Mention the new module
721         'getsockname'.
722         * doc/posix-functions/getsockopt.texi: Mention the new module
723         'getsockopt'.
724         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
725         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
726         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
727         * doc/posix-functions/send.texi: Mention the new module 'send'.
728         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
729         * doc/posix-functions/setsockopt.texi: Mention the new module
730         'setsockopt'.
731         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
732         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
733         listen, connect, accept.
734         * modules/select-tests (Depends-on): Likewise.
735
736 2008-10-05  Bruno Haible  <bruno@clisp.org>
737
738         * lib/winsock.c (strerror): Remove unused #undef.
739         (rpl_close): Remove unused local variable.
740
741         * modules/sys_socket (Depends-on); Add errno.
742
743 2008-10-05  Bruno Haible  <bruno@clisp.org>
744
745         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
746         (select): Add a link warning when the 'select' module is not used.
747         * modules/sys_select (Depends-on): Add link-warning.
748         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
749         Suggested by Paolo Bonzini.
750
751 2008-10-05  Jim Meyering  <meyering@redhat.com>
752
753         bootstrap: check for LT_INIT more portably
754         * build-aux/bootstrap: Avoid using grep -E, since it's not
755         portable enough.  Suggestion from Bruno Haible.
756
757 2008-10-05  Bruno Haible  <bruno@clisp.org>
758
759         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
760         as being fixed by gnulib.
761
762 2008-10-05  Bruno Haible  <bruno@clisp.org>
763
764         * modules/select-tests: New file, mostly copied from
765         modules/sys_select-tests.
766         * tests/test-select.c: New file, mostly copied from
767         tests/test-sys_select.c.
768         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
769         * modules/sys_select-tests (Depends-on): Remove all dependencies.
770         (Makefile.am): Remove test_sys_select_LDADD.
771
772         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
773         to an undefined symbol, for an error message.
774         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
775         (gl_SYS_SELECT_H_DEFAULTS): New macro.
776         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
777         winsock-select.c here.
778         * modules/sys_select (Files): Remove lib/winsock-select.c.
779         (Depends-on): Remove alloca.
780         (Makefile.am): Substitute GNULIB_SELECT.
781         * modules/select: New file.
782         * doc/posix-functions/select.texi: Update.
783
784 2008-10-05  Bruno Haible  <bruno@clisp.org>
785
786         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
787         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
788         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
789         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
790         getdtablesize.
791         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
792         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
793
794 2008-10-05  Bruno Haible  <bruno@clisp.org>
795
796         * modules/getdtablesize-tests: New file.
797         * tests/test-getdtablesize.c: New file.
798
799         New module 'getdtablesize'.
800         * lib/unistd.in.h (getdtablesize): New declaration.
801         * lib/getdtablesize.c: New file.
802         * m4/getdtablesize.m4: New file.
803         * modules/getdtablesize: New file.
804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
805         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
806         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
807         HAVE_GETDTABLESIZE.
808         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
809
810 2008-10-05  Bruno Haible  <bruno@clisp.org>
811
812         * modules/sched (Makefile.am): Fix typo.
813         Reported by Simon Josefsson.
814
815 2008-10-05  Jim Meyering  <meyering@redhat.com>
816
817         bootstrap: check for LT_INIT, too
818         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
819         are deprecated.  Suggestion from Ralf Wildenhues.
820
821 2008-10-05  Bruno Haible  <bruno@clisp.org>
822
823         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
824         overriding them by ours.
825         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
826
827 2008-10-05  Jim Meyering  <meyering@redhat.com>
828
829         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
830         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
831         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
832
833 2008-10-04  Bruno Haible  <bruno@clisp.org>
834
835         * modules/dup2 (License): Change to LGPLv2+.
836         * modules/sleep (License): Likewise.
837         * modules/perror (License): Likewise.
838         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
839         Blake.
840         * modules/signal (License): Likewise.
841         * modules/sigprocmask (License): Likewise.
842         * modules/raise (License): Change to LGPLv2+, with approval by Jim
843         Meyering.
844
845 2008-10-04  Bruno Haible  <bruno@clisp.org>
846
847         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
848         Reported by Rainer Tammer <tammer@tammer.net>.
849
850 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
851             Bruno Haible  <bruno@clisp.org>
852
853         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
854         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
855         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
856
857 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
858
859         filevercmp: new module
860         * lib/filevercmp.h: New function filevercmp comparing version strings.
861         * lib/filevercmp.c: Implementation of filevercmp function.
862         * modules/filevercmp: Module metadata.
863         * tests/test-filevercmp.c: Unit test for new module.
864         * modules/filevercmp-tests: Unit test metadata.
865         * MODULES.html.sh: Add filevercmp module.
866
867 2008-10-03  Bruno Haible  <bruno@clisp.org>
868
869         * lib/c-ctype.h: Add comment.
870         Reported by Jim Meyering.
871
872 2008-10-02  Bruno Haible  <bruno@clisp.org>
873
874         * modules/posix_spawn-internal (Depends-on): Add 'open'.
875
876 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
877
878         * build-aux/bootstrap: Allow renaming bootstrap, and change the
879         name of bootstrap.conf accordingly.
880
881 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
882
883         * build-aux/bootstrap: Install git-merge-changelog configuration
884         items into .gitconfig if needed.
885
886 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
887
888         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
889         git repository, and initialize/update it accordingly.
890
891 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
892
893         * modules/fsync-tests: New file.
894         * tests/test-fsync.c: New file.
895
896         New module 'fsync'.
897         * lib/fsync.c: New file.
898         * m4/fsync.m4: New file.
899         * modules/fsync: New file.
900         * lib/unistd.in.h (fsync): New declaration.
901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
902         GNULIB_FSYNC and HAVE_FSYNC.
903         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
904         * MODULES.html.sh (posix_functions): Add fsync.
905         * doc/posix-functions/fsync.texi: Mention the new module.
906
907 2008-10-02  Jim Meyering  <meyering@redhat.com>
908
909         fts.c: sync with similar code from coreutils' remove.c
910         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
911         Guard also with "#if defined __linux__", since for now at least,
912         this code is Linux-kernel-specific.
913
914 2008-10-02  Jim Meyering  <meyering@redhat.com>
915
916         fts: bug fixes
917         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
918         Include <sys/vfs.h>, not <sys/statfs.h>.
919
920         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
921         Include <sys/vfs.h>, not <sys/statfs.h>.
922
923 2008-10-01  Bruno Haible  <bruno@clisp.org>
924
925         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
926         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
927         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
928         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
929         * doc/posix-functions/posix_spawnp.texi: Likewise.
930         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
931         whether posix_spawn actually works.
932         * m4/pipe.m4 (gl_PIPE): Likewise.
933         * modules/execute (Files): Add m4/posix_spawn.m4.
934         * modules/pipe (Files): Add m4/posix_spawn.m4.
935         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
936
937 2008-10-01  Jim Meyering  <meyering@redhat.com>
938
939         remove trailing spaces
940         * NEWS: Likewise.
941         * lib/poll.c (poll): Likewise.
942         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
943         * lib/winsock.c (rpl_close): Likewise.
944         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
945         * modules/yield: Likewise.
946         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
947         * tests/test-sys_select.c (connect_to_socket): Likewise.
948
949         fts.c: adjust a new interface to be more generally useful
950         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
951         (fts_build): Adjust caller.
952
953 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
954
955         * modules/cond-tests: New file.
956         * tests/test-cond.c: New file.
957
958 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
959             Bruno Haible  <bruno@clisp.org>
960
961         * modules/cond (Dependencies): Add errno, time.
962         * lib/glthread/cond.h: Include <time.h>.
963         (gl_cond_define, gl_cond_define_initialized): Use the same definition
964         across platforms.
965
966 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
967             Bruno Haible  <bruno@clisp.org>
968
969         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
970
971 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
972             Bruno Haible  <bruno@clisp.org>
973
974         * modules/tls-tests (Depends-on): Add thread, yield.
975         (configure.ac): Remove all checks.
976         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
977         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
978         gl_thread_self): Remove definitions. Include glthread/thread.h and
979         glthread/yield.h instead.
980         (test_tls): Pass an additional NULL argument to gl_thread_join.
981
982 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
983             Bruno Haible  <bruno@clisp.org>
984
985         * modules/lock-tests (Depends-on): Add thread, yield.
986         (configure.ac): Remove all checks.
987         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
988         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
989         gl_thread_self): Remove definitions. Include glthread/thread.h and
990         glthread/yield.h instead.
991         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
992         additional NULL argument to gl_thread_join.
993
994 2008-09-30  Bruno Haible  <bruno@clisp.org>
995
996         Fix the Win32 implementation of the 'thread' module.
997         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
998         pointer type.
999         (gl_thread_self): Invoke gl_thread_self_func.
1000         (gl_thread_self_func): New declaration.
1001         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
1002         (do_init_self_key, init_self_key): New functions.
1003         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
1004         Remove some fields.
1005         (running_threads, running_lock): Remove variables.
1006         (get_current_thread_handle): New function.
1007         (gl_thread_self_func, wrapper_func, glthread_create_func,
1008         glthread_join_func, gl_thread_exit_func): Largely rewritten and
1009         simplified.
1010
1011 2008-09-30  Bruno Haible  <bruno@clisp.org>
1012
1013         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
1014         files.
1015
1016 2008-09-30  Jim Meyering  <meyering@redhat.com>
1017
1018         fts.m4: correct the test for statfs.f_type
1019         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
1020         when checking for statfs.f_type.
1021
1022 2008-09-15  Simon Josefsson  <simon@josefsson.org>
1023
1024         tests: avoid some compiler warnings
1025         * tests/test-memchr.c (main): Pass NULL indirectly.
1026         * tests/test-getdate.c (main): Remove unused variable 'ret'.
1027
1028 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
1029
1030         getdate.y: disallow countable dayshifts like "4 yesterday ago"
1031         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
1032         exactly specified dayshifts.
1033         (dayshift): New rule.
1034         (rel): Add dayshift.
1035         (relative_time_table) [tomorrow, yesterday, today, now]:
1036         Use tDAY_SHIFT in place of tDAY_UNIT.
1037         * tests/test-getdate.c: Add tests for now-disallowed countable
1038         dayshifts, e.g., "4 yesterday ago".
1039
1040 2008-09-29  Bruno Haible  <bruno@clisp.org>
1041
1042         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
1043         * tests/test-posix_spawn1.in.sh: Renamed from
1044         tests/test-posix_spawn.in.sh.
1045         * tests/test-posix_spawn2.c: New file.
1046         * tests/test-posix_spawn2.in.sh: New file.
1047         * modules/posix_spawnp-tests (Files): Update.
1048         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
1049
1050 2008-09-29  Bruno Haible  <bruno@clisp.org>
1051
1052         Propagate effects of putenv/setenv/unsetenv to child processes.
1053         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
1054         * lib/pipe.c (create_pipe): Likewise.
1055
1056 2008-09-29  Bruno Haible  <bruno@clisp.org>
1057
1058         Enable use of shell scripts as executables in mingw.
1059         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
1060         run the program as a shell script.
1061         * lib/pipe.c (create_pipe): Likewise.
1062         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
1063         resulting array.
1064
1065 2008-09-29  Eric Blake  <ebb9@byu.net>
1066
1067         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
1068
1069 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
1070
1071         * doc/posix-functions/accept.texi: Update mingw problems.
1072         * doc/posix-functions/bind.texi: Update mingw problems.
1073         * doc/posix-functions/close.texi: Update mingw problems.
1074         * doc/posix-functions/connect.texi: Update mingw problems.
1075         * doc/posix-functions/getpeername.texi: Update mingw problems.
1076         * doc/posix-functions/getsockname.texi: Update mingw problems.
1077         * doc/posix-functions/getsockopt.texi: Update mingw problems.
1078         * doc/posix-functions/ioctl.texi: Update mingw problems.
1079         * doc/posix-functions/listen.texi: Update mingw problems.
1080         * doc/posix-functions/recv.texi: Update mingw problems.
1081         * doc/posix-functions/recvfrom.texi: Update mingw problems.
1082         * doc/posix-functions/select.texi: Update mingw problems.
1083         * doc/posix-functions/send.texi: Update mingw problems.
1084         * doc/posix-functions/sendto.texi: Update mingw problems.
1085         * doc/posix-functions/setsockopt.texi: Update mingw problems.
1086         * doc/posix-functions/socket.texi: Update mingw problems.
1087
1088 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
1089             Bruno Haible  <bruno@clisp.org>
1090
1091         * lib/sys_select.in.h: Include sys/time.h.
1092         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
1093         * modules/sys_select: Depend on sys_time.
1094         * tests/test-sys_select.c: Test that sys/select.h defines struct
1095         timeval fully.
1096
1097 2008-09-29  Bruno Haible  <bruno@clisp.org>
1098
1099         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
1100         * lib/sys_select.in.h: Likewise.
1101
1102 2008-09-29  Bruno Haible  <bruno@clisp.org>
1103
1104         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
1105
1106 2008-09-29  Bruno Haible  <bruno@clisp.org>
1107
1108         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
1109         Set LIBSOCKET instead of augmenting LIBS.
1110         * modules/sockets (Link): New section.
1111         * modules/sockets-tests (test_sockets_LDADD): New variable.
1112         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
1113         * modules/poll-tests (test_poll_LDADD): New variable.
1114         * NEWS: Document the change.
1115
1116 2008-09-29  Bruno Haible  <bruno@clisp.org>
1117
1118         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
1119         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
1120         ARPA_INET_H directly.
1121         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1122
1123 2008-09-28  Bruno Haible  <bruno@clisp.org>
1124
1125         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
1126         from gl_HEADER_SYS_SOCKET.
1127         (gl_HEADER_SYS_SOCKET): Invoke it.
1128         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1129
1130 2008-09-28  Bruno Haible  <bruno@clisp.org>
1131
1132         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
1133         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
1134         Needed on OSF/1 4.0.
1135
1136 2008-09-28  Bruno Haible  <bruno@clisp.org>
1137
1138         Override open more carefully.
1139         * lib/open.c (orig_open): New function.
1140         (rpl_open): Use orig_open instead of open.
1141         * lib/fcntl.in.h: Add special invocation convention.
1142         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
1143         (gl_FUNC_OPEN): Invoke it.
1144
1145         Override freopen more carefully.
1146         * lib/freopen.c (orig_freopen): New function.
1147         (rpl_freopen): Use orig_freopen instead of freopen.
1148         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
1149         (gl_FUNC_FREOPEN): Invoke it.
1150
1151         Override fopen more carefully.
1152         * lib/fopen.c (orig_fopen): New function.
1153         (rpl_fopen): Use orig_fopen instead of fopen.
1154         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
1155         (gl_FUNC_FOPEN): Invoke it.
1156         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
1157
1158 2008-09-28  Bruno Haible  <bruno@clisp.org>
1159
1160         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
1161         SIGPIPE.
1162
1163 2008-09-28  Bruno Haible  <bruno@clisp.org>
1164
1165         * tests/test-sigaction.c (handler, main): Disable the check whether
1166         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
1167         glibc systems with LinuxThreads.
1168
1169 2008-09-28  Bruno Haible  <bruno@clisp.org>
1170
1171         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
1172
1173         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
1174         with AIX xlc.
1175         * lib/fcntl.in.h (open): Likewise.
1176         Reported by Rainer Tammer <tammer@tammer.net>.
1177
1178 2008-09-28  Bruno Haible  <bruno@clisp.org>
1179
1180         * modules/posix_spawnp-tests: New file.
1181         * tests/test-posix_spawn.c: New file.
1182         * tests/test-posix_spawn.in.sh: New file.
1183
1184         New module 'posix_spawnp'.
1185         * modules/posix_spawnp: New file.
1186         * lib/spawnp.c: New file, from GNU libc with modifications.
1187         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
1188
1189         New module 'posix_spawn'.
1190         * modules/posix_spawn: New file.
1191         * lib/spawn.c: New file, from GNU libc with modifications.
1192         * doc/posix-functions/posix_spawn.texi: Mention the new module.
1193
1194         New module 'posix_spawnattr_destroy'.
1195         * modules/posix_spawnattr_destroy: New file.
1196         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
1197         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
1198         module.
1199
1200         New module 'posix_spawnattr_setsigmask'.
1201         * modules/posix_spawnattr_setsigmask: New file.
1202         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
1203         modifications.
1204         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
1205         new module.
1206
1207         New module 'posix_spawnattr_getsigmask'.
1208         * modules/posix_spawnattr_getsigmask: New file.
1209         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
1210         modifications.
1211         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
1212         new module.
1213
1214         New module 'posix_spawnattr_setsigdefault'.
1215         * modules/posix_spawnattr_setsigdefault: New file.
1216         * lib/spawnattr_setdefault.c: New file, from GNU libc with
1217         modifications.
1218         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
1219         new module.
1220
1221         New module 'posix_spawnattr_getsigdefault'.
1222         * modules/posix_spawnattr_getsigdefault: New file.
1223         * lib/spawnattr_getdefault.c: New file, from GNU libc with
1224         modifications.
1225         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
1226         new module.
1227
1228         New module 'posix_spawnattr_setschedpolicy'.
1229         * modules/posix_spawnattr_setschedpolicy: New file.
1230         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
1231         modifications.
1232         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
1233         new module.
1234
1235         New module 'posix_spawnattr_getschedpolicy'.
1236         * modules/posix_spawnattr_getschedpolicy: New file.
1237         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
1238         modifications.
1239         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
1240         new module.
1241
1242         New module 'posix_spawnattr_setschedparam'.
1243         * modules/posix_spawnattr_setschedparam: New file.
1244         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
1245         modifications.
1246         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
1247         new module.
1248
1249         New module 'posix_spawnattr_getschedparam'.
1250         * modules/posix_spawnattr_getschedparam: New file.
1251         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
1252         modifications.
1253         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
1254         new module.
1255
1256         New module 'posix_spawnattr_setpgroup'.
1257         * modules/posix_spawnattr_setpgroup: New file.
1258         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
1259         modifications.
1260         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
1261         module.
1262
1263         New module 'posix_spawnattr_getpgroup'.
1264         * modules/posix_spawnattr_getpgroup: New file.
1265         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
1266         modifications.
1267         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
1268         module.
1269
1270         New module 'posix_spawnattr_setflags'.
1271         * modules/posix_spawnattr_setflags: New file.
1272         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
1273         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
1274         module.
1275
1276         New module 'posix_spawnattr_getflags'.
1277         * modules/posix_spawnattr_getflags: New file.
1278         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
1279         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
1280         module.
1281
1282         New module 'posix_spawnattr_init'.
1283         * modules/posix_spawnattr_init: New file.
1284         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
1285         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
1286         module.
1287
1288         New module 'posix_spawn_file_actions_destroy'.
1289         * modules/posix_spawn_file_actions_destroy: New file.
1290         * lib/spawn_faction_destroy.c: New file, from GNU libc with
1291         modifications.
1292         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
1293         the new module.
1294
1295         New module 'posix_spawn_file_actions_addopen'.
1296         * modules/posix_spawn_file_actions_addopen: New file.
1297         * lib/spawn_faction_addopen.c: New file, from GNU libc with
1298         modifications.
1299         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1300         the new module.
1301
1302         New module 'posix_spawn_file_actions_adddup2'.
1303         * modules/posix_spawn_file_actions_adddup2: New file.
1304         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
1305         modifications.
1306         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1307         the new module.
1308
1309         New module 'posix_spawn_file_actions_addclose'.
1310         * modules/posix_spawn_file_actions_addclose: New file.
1311         * lib/spawn_faction_addclose.c: New file, from GNU libc with
1312         modifications.
1313         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1314         the new module.
1315
1316         New module 'posix_spawn_file_actions_init'.
1317         * modules/posix_spawn_file_actions_init: New file.
1318         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
1319         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
1320         new module.
1321
1322         New module 'posix_spawn-internal'.
1323         * modules/posix_spawn-internal: New file.
1324         * lib/spawn_int.h: New file, from GNU libc with modifications.
1325         * lib/spawni.c: New file, from GNU libc with modifications.
1326         * m4/posix_spawn.m4: New file.
1327
1328         New module 'spawn'.
1329         * modules/spawn: New file.
1330         * lib/spawn.in.h: New file, from GNU libc with modifications.
1331         * m4/spawn_h.m4: New file.
1332         * doc/posix-headers/spawn.texi: Mention the new module.
1333
1334 2008-09-28  Bruno Haible  <bruno@clisp.org>
1335
1336         * modules/sched-tests: New file.
1337         * tests/test-sched.c: New file.
1338
1339         New module 'sched'.
1340         * modules/sched: New file.
1341         * lib/sched.in.h: New file.
1342         * m4/sched_h.m4: New file.
1343         * doc/posix-headers/sched.texi: Mention the new module.
1344
1345 2008-09-27  Eric Blake  <ebb9@byu.net>
1346
1347         Fix previous patch, and tweak references to $0.
1348         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
1349         (func_version, func_gnulib_dir): Don't call this program
1350         gnulib-tool.
1351         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
1352         with using $0 in function.
1353         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
1354         (func_fatal_error): Reuse the name the user invoked us with.
1355
1356 2008-09-27  Bruno Haible  <bruno@clisp.org>
1357
1358         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
1359         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
1360         (gl_ICONV_H): Not here.
1361         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1362         instead of assigning ICONV_H directly.
1363
1364         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
1365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
1366         WCHAR_H directly.
1367
1368 2008-09-27  Bruno Haible  <bruno@clisp.org>
1369
1370         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
1371         * modules/arpa_inet (Depends-on): Add link-warning.
1372         (Makefile.am): Insert the definition of GL_LINK-WARNING.
1373         * modules/unistd (Makefile.am): Likewise.
1374
1375 2008-09-26  Bruno Haible  <bruno@clisp.org>
1376
1377         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
1378         variables.
1379         (func_version): Essentially copied from gnulib-tool.
1380         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
1381         func_readlink): Copied from gnulib-tool.
1382
1383 2008-09-26  Bruno Haible  <bruno@clisp.org>
1384
1385         * gnulib-tool (func_version): Change directory to $gnulib_dir before
1386         invoking git-version-gen.
1387
1388 2008-09-26  Bruno Haible  <bruno@clisp.org>
1389
1390         * posix-modules: Update to directory names changed on 2008-01-19.
1391         Remove commas in output before splitting into words. No more need to
1392         avoid 'ftruncate' since 2007-02-19.
1393
1394 2008-09-26  Bruno Haible  <bruno@clisp.org>
1395
1396         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
1397
1398 2008-09-26  Bruno Haible  <bruno@clisp.org>
1399
1400         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
1401         * modules/fwriteerror (Depends-on): Add errno.
1402
1403 2008-09-26  Bruno Haible  <bruno@clisp.org>
1404
1405         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
1406         * tests/test-vc-list-files-cvs.sh: Likewise.
1407
1408 2008-09-26  Bruno Haible  <bruno@clisp.org>
1409
1410         * doc/posix-headers/sys_resource.texi: Reorder items.
1411
1412 2008-09-26  Jim Meyering  <meyering@redhat.com>
1413
1414         fts: tweak inode comparison function
1415         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
1416         inode numbers, as documented.
1417
1418         fts: sort dirent entries on inode number before traversing
1419         This avoids a quadratic, seek-related performance penalty when
1420         operating on a directory containing many entries (measurable at 10k;
1421         3.5 hours at 2 million entries with a cold cache) on certain types
1422         of file systems, including ext3 and ext4, but not tmpfs.
1423         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
1424         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
1425         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
1426         (fs_handles_readdir_ordered_dirents_efficiently): New function.
1427         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
1428         (fts_build): Set the stat.st_ino member from D_INO.
1429         If it is likely to be useful, sort dirent entries on inode number.
1430
1431         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
1432         and the struct statfs.f_type member.
1433         * modules/fts (Depends-on): Add d-ino.
1434
1435 2008-09-26  Bruno Haible  <bruno@clisp.org>
1436
1437         * modules/sigpipe-die (Depends-on): Add sigpipe.
1438
1439         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
1440         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
1441         and GNULIB_STDIO_H_SIGPIPE are set.
1442         * lib/stdio-write.c: New file.
1443         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
1444         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1445         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1446         REPLACE_STDIO_WRITE_FUNCS.
1447         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
1448         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1449         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1450         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1451         * modules/stdio (Files): Add lib/stdio-write.c.
1452         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
1453         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
1454         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
1455         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
1456         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
1457         REPLACE_FPRINTF_POSIX.
1458         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
1459         REPLACE_PRINTF_POSIX.
1460         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
1461         REPLACE_VFPRINTF_POSIX.
1462         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
1463         REPLACE_VPRINTF_POSIX.
1464         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
1465         SIGPIPE issue.
1466         * doc/posix-functions/fputc.texi: Likewise.
1467         * doc/posix-functions/fputs.texi: Likewise.
1468         * doc/posix-functions/fwrite.texi: Likewise.
1469         * doc/posix-functions/printf.texi: Likewise.
1470         * doc/posix-functions/putc.texi: Likewise.
1471         * doc/posix-functions/putchar.texi: Likewise.
1472         * doc/posix-functions/puts.texi: Likewise.
1473         * doc/posix-functions/vfprintf.texi: Likewise.
1474         * doc/posix-functions/vprintf.texi: Likewise.
1475
1476         * modules/safe-write (Depends-on): Add write.
1477
1478         * modules/sigpipe-tests: New file.
1479         * tests/test-sigpipe.c: New file.
1480         * tests/test-sigpipe.sh: New file.
1481
1482         * modules/write: New file.
1483         * lib/unistd.in.h: Include <sys/types.h>.
1484         (write): New declaration.
1485         * lib/write.c: New file.
1486         * m4/write.m4: New file.
1487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1488         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
1489         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
1490         GNULIB_WRITE, REPLACE_WRITE.
1491         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
1492         and the SIGPIPE issue.
1493
1494         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
1495         (raise): New declaration.
1496         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
1497         (ext_signal): New function.
1498         (rpl_raise): New function.
1499         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1500         GNULIB_SIGNAL_H_SIGPIPE.
1501         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
1502         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
1503
1504         * modules/sigpipe: New file.
1505         * m4/sigpipe.m4: New file.
1506
1507 2008-09-25  Derek Price  <derek@ximbiot.com>
1508             Bruno Haible  <bruno@clisp.org>
1509
1510         * gnulib-tool (func_import): Report all license incompatibilities, not
1511         just the first one.
1512
1513 2008-09-25  Bruno Haible  <bruno@clisp.org>
1514
1515         * gnulib-tool (func_import): When computing the edits, consider not
1516         only the Makefile.ams that exist but also those that will be generated.
1517
1518 2008-09-25  Simon Josefsson  <simon@josefsson.org>
1519
1520         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
1521         fixes gnulib-tool --test warning about duplicate dependency.
1522
1523 2008-09-25  Bruno Haible  <bruno@clisp.org>
1524
1525         * gnulib-tool: Don't ask the user to perform edits in the generated
1526         Makefile.ams.
1527         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
1528         apply to the Makefile.am being generated.
1529         (func_emit_tests_Makefile_am): Execute edits that apply to the
1530         Makefile.am being generated.
1531         (func_import): Setup list of Makefile.am edits before emitting the
1532         Makefile.ams, not at the end.
1533         (func_create_testdir): Update.
1534         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1535
1536 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1537
1538         * gnulib-tool (func_import): Store the --tests-base option in the
1539         comment in gnulib-cache.m4.
1540
1541 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
1542
1543         * NEWS: Document increased portability that sys_select now provides.
1544
1545         * lib/sys_select.in.h: Install select wrapper.
1546         * lib/sys_socket.in.h: Use more descriptive name when there is no
1547         select wrapper.
1548         * lib/winsock-select.c: New.
1549         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
1550         Require gl_HEADER_SYS_SOCKET.
1551         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
1552         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
1553         * tests/test-sys_select.c: Add functional tests.
1554
1555 2008-09-24  Eric Blake  <ebb9@byu.net>
1556
1557         open, fopen: close fd leak in last patch
1558         * lib/open.c (rpl_open): Close fd before returning error.
1559         * lib/fopen.c (rpl_fopen): Close fd before returning error.
1560         * doc/posix-functions/open.texi (open): Document that Irix also
1561         has the bug.
1562         * doc/posix-functions/fopen.texi (fopen): Likewise.
1563         Reported by Paolo Bonzini.
1564
1565 2008-09-24  Bruno Haible  <bruno@clisp.org>
1566
1567         Ensure that a filename ending in a slash cannot be used to access a
1568         non-directory.
1569         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
1570         to check whether it's really a directory.
1571         * lib/fopen.c: Include fcntl.h, unistd.h.
1572         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
1573         and fdopen().
1574         * modules/fopen (Depends-on): Add unistd.
1575         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
1576         * tests/test-fopen.c (main): Likewise.
1577         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
1578         * doc/posix-functions/fopen.texi: Likewise.
1579         Reported by Eric Blake.
1580
1581 2008-09-23  Eric Blake  <ebb9@byu.net>
1582
1583         c-stack: avoid compiler optimizations when provoking overflow
1584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
1585         recursion harder to optimize, to ensure a stack overflow occurs.
1586         * tests/test-c-stack.c (recurse): Likewise.
1587         Borrowed from libsigsegv.
1588
1589         c-stack: work around Irix sigaltstack bug
1590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
1591         whether sigaltstack uses wrong end of stack_t (copied in part from
1592         libsigsegv).
1593         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
1594         Irix bug, without requiring an over-allocation.
1595         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
1596         bug.
1597
1598         fopen: document mingw bug on directories
1599         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
1600         not allowing a stream visiting a directory, even though reading
1601         from such a stream is not portable.
1602
1603 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1604
1605         * lib/poll.c: Rewrite.
1606         * modules/poll: Depend on alloca.
1607
1608 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1609
1610         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
1611         instead define prototypes for a full set of wrappers.  Ensure
1612         that Cygwin does not use the compatibility code, which is only
1613         for MinGW.
1614         * lib/winsock.c: New.
1615         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
1616         * modules/sys_socket: Add lib/winsock.c.
1617
1618         * modules/poll-tests: Add errno and perror.
1619         * tests/test-poll.c: Use ioctl, not ioctlsocket.
1620
1621 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
1622
1623         * tests/test-poll.c: Downgrade minimum needed Winsock version.
1624
1625 2008-09-23  Bruno Haible  <bruno@clisp.org>
1626
1627         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
1628         * doc/glibc-functions/*: Likewise.
1629
1630 2008-09-23  Simon Josefsson  <simon@josefsson.org>
1631
1632         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
1633         success.
1634
1635 2008-09-22  Eric Blake  <ebb9@byu.net>
1636             Bruno Haible  <bruno@clisp.org>
1637
1638         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
1639         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
1640         supply %A but mishandle pseudo-NaN.
1641         Reported by Simon Josefsson.
1642
1643 2008-09-21  Bruno Haible  <bruno@clisp.org>
1644
1645         * tests/test-lock.c (main): Tweak skip message.
1646         * tests/test-tls.c (main): Likewise.
1647
1648 2008-09-21  Bruno Haible  <bruno@clisp.org>
1649
1650         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
1651         whether 'struct sigaction' has sa_sigaction here...
1652         (gl_PREREQ_SIG_HANDLER_H): ... not here.
1653         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
1654
1655 2008-09-21  Bruno Haible  <bruno@clisp.org>
1656
1657         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
1658         section.
1659         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
1660         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
1661         the new section.
1662         (Support for obsolete systems lacking POSIX:2001): New section.
1663         (String handling <string.h>): Move strdup to the new section.
1664         Suggested by Simon Josefsson and Paolo Bonzini.
1665
1666 2008-09-21  Bruno Haible  <bruno@clisp.org>
1667
1668         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
1669         exponents in %e and %g results on 'long double'. Needed for mingw's
1670         improved *printf functions.
1671         * tests/test-vasprintf-posix.c (test_function): Likewise.
1672         * tests/test-snprintf-posix.h (test_function): Likewise.
1673         * tests/test-sprintf-posix.h (test_function): Likewise.
1674         Reported by Eric Blake.
1675
1676 2008-09-21  Bruno Haible  <bruno@clisp.org>
1677
1678         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
1679         * tests/test-sprintf-posix.h (test_function): Likewise.
1680
1681 2008-09-21  Bruno Haible  <bruno@clisp.org>
1682
1683         * modules/getpass (Depends-on): Add strdup-posix.
1684
1685         New module 'strdup-posix'.
1686         * modules/strdup-posix: New file.
1687         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
1688         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
1689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1690         REPLACE_STRDUP.
1691         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
1692         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
1693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1694         strdup-posix.
1695
1696         * modules/strdup (Depends-on): Remove malloc-posix.
1697
1698 2008-09-20  Bruno Haible  <bruno@clisp.org>
1699
1700         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
1701         Wildenhues.
1702
1703 2008-09-20  Bruno Haible  <bruno@clisp.org>
1704
1705         Ensure that wint_t gets defined on IRIX 5.3.
1706         * lib/wchar.in.h (wint_t): Define if not defined by the system.
1707         * lib/wctype.in.h (wint_t): Likewise.
1708         (__wctype_wint_t): Remove type.
1709         (isw*): Use wint_t instead of __wctype_wint_t.
1710         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
1711         * modules/wchar (Files): Add m4/wint_t.m4.
1712         (Makefile.am): Substitute HAVE_WINT_T.
1713         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
1714         * tests/test-wctype.c: Check that wint_t is defined.
1715         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
1716         * doc/posix-headers/wctype.texi: Likewise.
1717         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1718
1719 2008-09-18  Bruno Haible  <bruno@clisp.org>
1720
1721         * gnulib-tool (func_exit): Update comment.
1722
1723 2008-09-18  Simon Josefsson  <simon@josefsson.org>
1724
1725         * modules/getaddrinfo (Depends-on): Remove strdup, this module
1726         assumes strdup exists and does not depend on strdup to return
1727         ENOMEM on out of memory conditions.
1728
1729 2008-09-18  Bruno Haible  <bruno@clisp.org>
1730
1731         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
1732         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
1733         digits for the exponent.
1734
1735 2008-09-18  Jim Meyering  <meyering@redhat.com>
1736             Bruno Haible  <bruno@clisp.org>
1737
1738         * lib/vasnprintf.c (decimal_point_char): Define also if
1739         NEED_PRINTF_INFINITE_LONG_DOUBLE.
1740
1741 2008-09-16  Bruno Haible  <bruno@clisp.org>
1742         and Eric Blake  <ebb9@byu.net>
1743
1744         vasnprintf: support Irix 5.3
1745         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
1746         that mishandle long double infinity.
1747         Reported by Tom G. Christensen.
1748
1749 2008-09-16  Bruno Haible  <bruno@clisp.org>
1750
1751         * doc/glibc-functions/scandir.texi: Mention the function is missing on
1752         Solaris 9.
1753         * doc/glibc-functions/alphasort.texi: Likewise.
1754         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
1755
1756 2008-09-16  Jim Meyering  <meyering@redhat.com>
1757
1758         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
1759         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
1760         a umask modification leak out of a subshell.  Otherwise, the
1761         opensolaris /bin/sh would be accepted and thus cause unwarranted
1762         failures in the coreutils test suite.
1763
1764 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
1765
1766         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
1767         to succeed.
1768
1769 2008-09-16  Jim Meyering  <meyering@redhat.com>
1770
1771         avoid spurious test failure when library is built without ACL support
1772         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
1773         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
1774         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
1775         * tests/test-copy-acl.sh: Likewise.
1776
1777 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1778
1779         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
1780         based on character occurrence counts.
1781
1782 2008-09-15  Eric Blake  <ebb9@byu.net>
1783
1784         tests: avoid some compiler warnings
1785         * tests/test-memchr.c (main): Pass NULL indirectly.
1786         * tests/test-closein.c (main): Avoid unused variable.
1787
1788 2008-09-15  Bruno Haible  <bruno@clisp.org>
1789
1790         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
1791         are missing on OpenBSD 4.0 individually.
1792         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1793
1794 2008-09-15  Bruno Haible  <bruno@clisp.org>
1795
1796         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
1797         * doc/posix-functions/strerror.texi: Mention also Cygwin.
1798         * doc/posix-functions/perror.texi: Likewise.
1799         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
1800         is missing.
1801         Reported by Eric Blake.
1802
1803         * lib/errno.in.h: Use replacement values >= 2000.
1804         Reported by Eric Blake.
1805
1806 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1807
1808         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
1809         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
1810         limit.
1811         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
1812         compareseq was aborted.
1813
1814 2008-09-14  Bruno Haible  <bruno@clisp.org>
1815
1816         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
1817         yvec_edit_count.
1818         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
1819         (fstrcmp_bounded): Simplify result computation accordingly.
1820
1821 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1822
1823         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
1824         (fstrcmp): Define in terms of fstrcmp_bounded.
1825         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
1826         lower_bound argument.
1827         Return quickly if the result is certainly < lower_bound.
1828         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
1829
1830 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1831
1832         * lib/diffseq.h (EARLY_ABORT): New macro.
1833         (compareseq): Change return type to bool. Return true when EARLY_ABORT
1834         evaluates to true.
1835
1836 2008-09-14  Bruno Haible  <bruno@clisp.org>
1837
1838         * modules/perror-tests: New file.
1839         * tests/test-perror.sh: New file.
1840         * tests/test-perror.c: New file.
1841
1842         New module 'perror'.
1843         * lib/stdio.in.h (perror): New declaration.
1844         * lib/perror.c: New file.
1845         * m4/perror.m4: New file.
1846         * modules/perror: New file.
1847         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
1848         * doc/posix-functions/perror.texi: Mention the perror module.
1849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
1850         REPLACE_PERROR.
1851         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
1852         REPLACE_PERROR.
1853
1854 2008-09-14  Bruno Haible  <bruno@clisp.org>
1855
1856         * modules/stdio (Makefile.am): Reorder to match the order in
1857         lib/stdio.in.h.
1858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1859
1860 2008-09-13  Bruno Haible  <bruno@clisp.org>
1861
1862         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
1863
1864 2008-09-13  Bruno Haible  <bruno@clisp.org>
1865
1866         Extend strerror to cover the added errno values.
1867         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
1868         (rpl_strerror): Provide error messages for the added errno values and
1869         for the WSA* values.
1870         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
1871         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
1872         strerror.
1873         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
1874         * modules/strerror (Depends-on): Add errno.
1875         * doc/posix-functions/strerror.texi: Document the change.
1876         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
1877         and EOVERFLOW.
1878
1879 2008-09-13  Bruno Haible  <bruno@clisp.org>
1880
1881         * modules/EOVERFLOW: Remove file.
1882         * m4/eoverflow.m4: Remove file.
1883         * modules/EOVERFLOW-tests: Remove file.
1884         * tests/test-EOVERFLOW.c: Remove file.
1885         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
1886         * modules/ftell (Depends-on): Likewise.
1887         * modules/getdelim (Depends-on): Likewise.
1888         * modules/getugroups (Depends-on): Likewise.
1889         * modules/poll (Depends-on): Likewise.
1890         * modules/snprintf (Depends-on): Likewise.
1891         * modules/sprintf-posix (Depends-on): Likewise.
1892         * modules/vasnprintf (Depends-on): Likewise.
1893         * modules/vasprintf (Depends-on): Likewise.
1894         * modules/vfprintf-posix (Depends-on): Likewise.
1895         * modules/vsnprintf (Depends-on): Likewise.
1896         * modules/vsprintf-posix (Depends-on): Likewise.
1897         * modules/xvasprintf (Depends-on): Likewise.
1898         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1899         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
1900         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
1901         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
1902         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1903         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
1904         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
1905         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
1906         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1907         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
1908         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
1909         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
1910         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1911         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
1912         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
1913         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
1914         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1915         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
1916         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
1917         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
1918         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1919         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
1920         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
1921         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
1922         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
1923         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1924         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
1925         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
1926         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
1927         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
1928         * MODULES.html.sh: Remove EOVERFLOW.
1929         * NEWS: Mention the change.
1930
1931 2008-09-13  Bruno Haible  <bruno@clisp.org>
1932
1933         * modules/errno-tests: New file.
1934         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
1935
1936         * lib/errno.in.h: New file.
1937         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
1938         * modules/errno: New file.
1939         * doc/posix-headers/errno.texi: Update documentation.
1940         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
1941
1942 2008-09-13  Bruno Haible  <bruno@clisp.org>
1943
1944         * tests/test-poll.c: Use #if for native Windows, rather than testing
1945         __MSVCRT__.
1946
1947 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1948             Bruno Haible  <bruno@clisp.org>
1949
1950         * lib/glob.c: Don't include <pwd.h> on native Windows.
1951         (WINDOWS32): New macro.
1952         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
1953
1954 2008-09-13  Bruno Haible  <bruno@clisp.org>
1955
1956         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
1957         (ETIMEDOUT): Remove macro.
1958         (glthread_cond_timedwait_multithreaded): New declaration.
1959         (glthread_cond_timedwait): Use it.
1960         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
1961         (glthread_cond_timedwait_multithreaded): New function.
1962
1963 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1964
1965         * modules/poll-tests: Do not check for io.h.
1966         * tests/test-poll.c: Check for __MSVCRT__ instead.
1967
1968 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1969
1970         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
1971         * modules/poll-tests: Add inet_pton, stdbool, sockets.
1972         * tests/test-poll.c: Use them.  Use _pipe on Windows.
1973
1974 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1975
1976         * modules/poll-tests: New.
1977         * tests/test-poll.c: New.
1978
1979 2008-09-12  Eric Blake  <ebb9@byu.net>
1980
1981         frexp: test for NetBSD failure on -0.0
1982         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
1983         not all, bugs from NetBSD 3.0 have been fixed.
1984         * doc/posix-functions/frexp.texi (frexp): Document bug.
1985         Reported by Thomas Klausner.
1986
1987         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
1988         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
1989         literal -0.0.
1990         Reported by Jonathan C. Patschke <jp@centtech.com>.
1991
1992 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1993
1994         * lib/glthread/cond.h: Use dummy implementation also if
1995         USE_WIN32_THREADS.
1996
1997 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1998
1999         * modules/fnmatch-posix (License): Change to LGPLv2+.
2000         * modules/fnmatch-gnu (License): Likewise.
2001
2002 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2003
2004         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
2005
2006 2008-09-11  Jim Meyering  <meyering@redhat.com>
2007
2008         * users.txt: Add gtk-vnc.
2009
2010 2008-09-08  Simon Josefsson  <simon@josefsson.org>
2011
2012         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
2013         rotate amounts.
2014
2015         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
2016         required for 16-bit and 8-bit rotates.
2017         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
2018         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
2019         UINT8_MAX instead of hard-coded constants.
2020         Suggested by Paul Eggert.
2021
2022 2008-09-07  Bruno Haible  <bruno@clisp.org>
2023
2024         * tests/test-striconveh.c (main): Check behaviour when converting from
2025         UTF-7.
2026
2027         Make striconveh work better with stateful encodings.
2028         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
2029         that iconv does not increment the inptr when returning -1/EINVAL.
2030
2031 2008-09-07  Bruno Haible  <bruno@clisp.org>
2032
2033         * build-aux/config.rpath: Update according to libtool-2.2.6.
2034         * build-aux/config.libpath: Likewise.
2035
2036 2008-09-06  Bruno Haible  <bruno@clisp.org>
2037
2038         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
2039         * lib/freadptr.c (freadptr): Likewise.
2040         * lib/freadseek.c (freadptrinc): Likewise.
2041         Reported by Simon Josefsson.
2042
2043 2008-09-06  Bruno Haible  <bruno@clisp.org>
2044
2045         * modules/freadptr (License): Change to LGPLv2+.
2046         * modules/freadseek (License): Likewise.
2047         Suggested by Eric Blake.
2048
2049         * modules/memchr2 (License): Change to LGPLv2+.
2050         Approved by Eric Blake.
2051
2052 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2053             Bruno Haible  <bruno@clisp.org>
2054
2055         Make gnulib-tool work with native 'sed' on AIX.
2056         * gnulib-tool (sed_noop): New variable.
2057         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
2058         func_add_or_update, func_create_testdir): Use it to initialize sed
2059         script variables.
2060         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2061
2062 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
2063             Bruno Haible  <bruno@clisp.org>
2064
2065         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
2066         also works after #include directives.
2067
2068 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
2069
2070         getdate.y: reject an out-of-range timezone value
2071         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
2072         the range [-24...+24].  When specified with only one or two digits,
2073         * tests/test-getdate.c: Tests for the fix.
2074         * doc/getdate.texi: Document this change.
2075
2076 2008-09-03  Bruno Haible  <bruno@clisp.org>
2077
2078         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
2079
2080 2008-09-02  Simon Josefsson  <simon@josefsson.org>
2081
2082         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
2083         <bruce.korb@gmail.com> with ideas from Ben Pfaff
2084         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
2085         Blake <ebb9@byu.net>.
2086
2087         * tests/test-bitrotate.c: Add more test vectors.
2088
2089 2008-09-02  Eric Blake  <ebb9@byu.net>
2090
2091         vasnprintf-posix: handle large precision via %.*d
2092         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
2093         when handling it ourselves.
2094         * tests/test-vasnprintf-posix.c (test_function): Add test.
2095         * tests/test-snprintf-posix.h (test_function): Likewise.
2096         * tests/test-sprintf-posix.h (test_function): Likewise.
2097         * tests/test-vasprintf-posix.c (test_function): Likewise.
2098         Reported by Alain Guibert.
2099
2100 2008-09-01  Eric Blake  <ebb9@byu.net>
2101
2102         c-stack: make configure-time check more robust
2103         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
2104         successful sigaction call.
2105         Reported by Tom G. Christensen.
2106
2107 2008-09-01  Bruno Haible  <bruno@clisp.org>
2108
2109         New module 'findprog-lgpl'.
2110         * modules/findprog-lgpl: New file.
2111         * lib/findprog-lgpl.c: New file.
2112         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
2113         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
2114         to decide whether to use strdup or xstrdup, concatenated_filename or
2115         xconcatenated_filename.
2116
2117 2008-09-01  Bruno Haible  <bruno@clisp.org>
2118
2119         Split module 'concat-filename' into 'concat-filename' (LGPL) and
2120         'xconcat-filename' (GPL).
2121         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
2122         (License): Change to LGPLv2+.
2123         * modules/xconcat-filename: New file.
2124         * lib/concat-filename.h (concatenated_filename): Change specification.
2125         (xconcatenated_filename): New declaration.
2126         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
2127         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
2128         memory situations.
2129         * lib/xconcat-filename.c: New file.
2130         * NEWS: Mention the change.
2131         * lib/findprog.c: Include concat-filename.h, not filename.h.
2132         (find_in_path): Use xconcatenated_filename instead of
2133         concatenated_filename.
2134         * lib/javacomp.c: Include concat-filename.h, not filename.h.
2135         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
2136         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
2137         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
2138         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
2139         instead of concatenated_filename.
2140         * lib/javaexec.c: Include concat-filename.h, not filename.h.
2141         (execute_java_class): Use xconcatenated_filename instead of
2142         concatenated_filename.
2143         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
2144         * modules/javacomp (Depends-on): Likewise.
2145         * modules/javaexec (Depends-on): Likewise.
2146
2147 2008-09-01  Bruno Haible  <bruno@clisp.org>
2148
2149         Split module 'filename' into 'filename' and 'concat-filename'.
2150         * modules/filename: Keep only lib/filename.h.
2151         (License): Change to LGPLv2+.
2152         * modules/concat-filename: New file, extracted from modules/filename.
2153         * lib/filename.h (concatenated_filename): Remove declaration.
2154         * lib/concat-filename.h: New file, extracted from lib/filename.h.
2155         * lib/concat-filename.c: Include concat-filename.h.
2156         * NEWS: Mention the change.
2157
2158 2008-09-01  Simon Josefsson  <simon@josefsson.org>
2159
2160         * lib/bitrotate.h (rotl8, rotr8): Add.
2161
2162         * modules/bitrotate (configure.ac): Need
2163         AC_REQUIRE([AC_C_INLINE]).
2164         (Description): Mention stdint.h.  Reported by Bruno Haible
2165         <bruno@clisp.org>.
2166
2167         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
2168         Paolo Bonzini <bonzini@gnu.org>.
2169
2170 2008-08-31  Bruno Haible  <bruno@clisp.org>
2171
2172         Assume Solaris specific bi-arch conventions on Solaris systems.
2173         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
2174         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
2175         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
2176         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
2177         like acl_libdirstem.
2178         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
2179         acl_libdirstem.
2180         * NEWS: Mention the change.
2181         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
2182
2183 2008-08-31  Jim Meyering  <meyering@redhat.com>
2184
2185         * lib/strftime.h: Add comments describing the two added arguments.
2186
2187         remove duplicate #include directives
2188         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
2189         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
2190
2191 2008-08-31  Bruno Haible  <bruno@clisp.org>
2192
2193         New module 'sigpipe-die'.
2194         * modules/sigpipe-die: New file.
2195         * lib/sigpipe-die.h: New file.
2196         * lib/sigpipe-die.c: New file.
2197         * MODULES.html.sh (Signal handling): Add sigpipe-die.
2198
2199 2008-08-31  Bruno Haible  <bruno@clisp.org>
2200
2201         Don't override previously installed signal handlers.
2202         * lib/fatal-signal.c (saved_sigactions): New variable.
2203         (uninstall_handlers): Reset the signal to the saved handler, not
2204         to SIG_DFL (except when ignored).
2205         (install_handlers): Save the previous handlers.
2206
2207 2008-08-30  Bruno Haible  <bruno@clisp.org>
2208
2209         * gnulib-tool (func_reset_sigpipe): New function.
2210         (func_get_automake_snippet, func_modules_transitive_closure,
2211         func_import): Invoke it before a join command that reads from stdin,
2212         to avoid "echo: write error: Broken pipe" error messages on stderr.
2213         Reported by Sam Steingold <sds@gnu.org>.
2214
2215 2008-08-30  Bruno Haible  <bruno@clisp.org>
2216
2217         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
2218         Code copied from m4/open.m4.
2219         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
2220         access and the filename ends in a slash. Code copied from lib/open.c.
2221         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
2222         * tests/test-fopen.c (main): Check against bug with trailing slash.
2223
2224 2008-08-29  Bruno Haible  <bruno@clisp.org>
2225
2226         Avoid some "gcc -pedantic" warnings.
2227         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
2228         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
2229         * lib/dirent.in.h: Likewise.
2230         * lib/fcntl.in.h: Likewise.
2231         * lib/float.in.h: Likewise.
2232         * lib/iconv.in.h: Likewise.
2233         * lib/inttypes.in.h: Likewise.
2234         * lib/locale.in.h: Likewise.
2235         * lib/math.in.h: Likewise.
2236         * lib/netinet_in.in.h: Likewise.
2237         * lib/search.in.h: Likewise.
2238         * lib/signal.in.h: Likewise.
2239         * lib/stdarg.in.h: Likewise.
2240         * lib/stdint.in.h: Likewise.
2241         * lib/stdio.in.h: Likewise.
2242         * lib/stdlib.in.h: Likewise.
2243         * lib/string.in.h: Likewise.
2244         * lib/strings.in.h: Likewise.
2245         * lib/sys_select.in.h: Likewise.
2246         * lib/sys_socket.in.h: Likewise.
2247         * lib/sys_stat.in.h: Likewise.
2248         * lib/sys_time.in.h: Likewise.
2249         * lib/sysexits.in.h: Likewise.
2250         * lib/time.in.h: Likewise.
2251         * lib/unistd.in.h: Likewise.
2252         * lib/wchar.in.h: Likewise.
2253         * lib/wctype.in.h: Likewise.
2254         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
2255         * modules/fchdir (Makefile.am): Likewise.
2256         * modules/fcntl (Makefile.am): Likewise.
2257         * modules/float (Makefile.am): Likewise.
2258         * modules/iconv_open (Makefile.am): Likewise.
2259         * modules/inttypes (Makefile.am): Likewise.
2260         * modules/locale (Makefile.am): Likewise.
2261         * modules/math (Makefile.am): Likewise.
2262         * modules/netinet_in (Makefile.am): Likewise.
2263         * modules/search (Makefile.am): Likewise.
2264         * modules/signal (Makefile.am): Likewise.
2265         * modules/stdarg (Makefile.am): Likewise.
2266         * modules/stdint (Makefile.am): Likewise.
2267         * modules/stdio (Makefile.am): Likewise.
2268         * modules/stdlib (Makefile.am): Likewise.
2269         * modules/string (Makefile.am): Likewise.
2270         * modules/strings (Makefile.am): Likewise.
2271         * modules/sys_select (Makefile.am): Likewise.
2272         * modules/sys_socket (Makefile.am): Likewise.
2273         * modules/sys_stat (Makefile.am): Likewise.
2274         * modules/sys_time (Makefile.am): Likewise.
2275         * modules/sysexits (Makefile.am): Likewise.
2276         * modules/time (Makefile.am): Likewise.
2277         * modules/unistd (Makefile.am): Likewise.
2278         * modules/wchar (Makefile.am): Likewise.
2279         * modules/wctype (Makefile.am): Likewise.
2280         Reported by Reuben Thomas <rrt@sc3d.org>.
2281
2282 2008-08-29  Bruno Haible  <bruno@clisp.org>
2283
2284         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
2285         any more.
2286
2287 2008-08-29  Simon Josefsson  <simon@josefsson.org>
2288
2289         * MODULES.html.sh (Misc): Add bitrotate.
2290
2291         * modules/bitrotate: New file.
2292
2293         * lib/bitrotate.h: New file.
2294
2295         * modules/bitrotate-tests: New file.
2296
2297         * tests/test-bitrotate.c: New file.
2298
2299         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
2300         on the bitrotate module.
2301
2302         * lib/arctwo.c: Use new bitrotate module.
2303
2304 2008-08-29  Jim Meyering  <meyering@redhat.com>
2305
2306         bootstrap: merge changes from coreutils
2307         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
2308         of copied files.  Remove a kludge, now that this is fixed.
2309         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
2310         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
2311         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
2312
2313 2008-08-29  Bruno Haible  <bruno@clisp.org>
2314
2315         * MODULES.html.sh: Remove --cvs-urls option.
2316
2317 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
2318
2319         maint.mk: adjust to file name change
2320         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
2321
2322 2008-08-28  Jim Meyering  <meyering@redhat.com>
2323
2324         * modules/getndelim2 (License): Relicense to LGPLv2+.
2325         Approved by Richard Stallman for the version of 1995, and by
2326         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
2327
2328 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
2329
2330         * lib/getdelim.c (flockfile, funlockfile): Make all of them
2331         dummy if one is not available.  Do not touch them if
2332         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
2333         (getc_maybe_unlocked): New.
2334         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
2335
2336 2008-08-26  Eric Blake  <ebb9@byu.net>
2337
2338         doc/INSTALL: resync from autoconf
2339         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
2340         (INSTALL_PRELUDE): Delete; this is done more efficiently by
2341         moving...
2342         * install.texi [!autoconf]: ...here.  Resync from autoconf.
2343         * INSTALL: Regenerate.
2344         * INSTALL.ISO: New file.
2345         * INSTALL.UTF-8: Likewise.
2346
2347 2008-08-26  Jim Meyering  <meyering@redhat.com>
2348
2349         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
2350         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
2351         these definitions conditional, so that they may be overridden, too.
2352
2353 2008-08-26  Bruno Haible  <bruno@clisp.org>
2354
2355         Generate INSTALL file variants with prettier quotes.
2356         * doc/Makefile (INSTALL_PRELUDE): New macro.
2357         (INSTALL): Use it.
2358         (INSTALL.ISO, INSTALL.UTF-8): New rules.
2359
2360 2008-08-26  Bruno Haible  <bruno@clisp.org>
2361
2362         Run makeinfo in an English locale.
2363         * doc/Makefile (MAKEINFO): New variable.
2364
2365 2008-08-26  Bruno Haible  <bruno@clisp.org>
2366
2367         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
2368         Suggested by Eric Blake.
2369
2370 2008-08-25  Bruno Haible  <bruno@clisp.org>
2371
2372         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
2373
2374 2008-08-25  Eric Blake  <ebb9@byu.net>
2375
2376         c-stack: test that stack overflow can be caught
2377         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
2378         that platform allows handling stack overflow; at least OS/2 EMX
2379         has sigaltstack, but crashes before transferring control to
2380         handler on stack overflow.
2381         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
2382         check for HAVE_STACK_OVERFLOW_HANDLING.
2383         Reported by Elbert Pol.
2384
2385 2008-08-25  Bruno Haible  <bruno@clisp.org>
2386
2387         * doc/posix-functions/strftime.texi: Fix description of strftime
2388         module.
2389
2390 2008-08-24  Bruno Haible  <bruno@clisp.org>
2391
2392         * tests/uniwidth/test-uc_width2.c: New file.
2393         * tests/uniwidth/test-uc_width2.sh: New file.
2394         * modules/uniwidth/width-tests (Files): Add the new files.
2395         (TESTS): Add uniwidth/test-uc_width2.sh.
2396         (TESTS_ENVIRONMENT): New variable.
2397         (check_PROGRAMS): Add test-uc_width2.
2398         (test_uc_width2_SOURCES): New variable.
2399
2400         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
2401         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
2402         not 0x00AB.
2403         Reported by Alexander V. Lukyanov <lav@netis.ru>.
2404
2405 2008-08-22  Eric Blake  <ebb9@byu.net>
2406
2407         test-lock, test-tls: mention why a test is skipped
2408         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
2409         skipped.
2410         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
2411
2412         count-one-bits: relax license
2413         * modules/count-one-bits (License): Relicense to LGPLv2+.
2414         Suggested by Ludovic Courtès, approved by Ben Pfaff.
2415
2416 2008-08-22  Andreas Schwab  <schwab@suse.de>
2417
2418         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2419         Remove spurious space in assignment.
2420
2421 2008-08-21  Simon Josefsson  <simon@josefsson.org>
2422
2423         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
2424         Paul Eggert <eggert@CS.UCLA.EDU>.
2425
2426 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
2427
2428         * modules/gettext: Add m4/threadlib.m4.
2429
2430 2008-08-19  Eric Blake  <ebb9@byu.net>
2431
2432         test-c-stack: fix compilation failure on FreeBSD 5.0
2433         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
2434         headers before <sys/resource.h>.
2435         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
2436         the bug.
2437         Reported by Nelson H. F. Beebe.
2438
2439         strverscmp: migrate from "strverscmp.h" to <string.h>
2440         * modules/string (Makefile.am): Add new hooks.
2441         * modules/strverscmp (Files): Remove strverscmp.h.
2442         (Depends-on): Add string.
2443         (configure.ac): Add indicator.
2444         (Include): Mention new header.
2445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
2446         defaults.
2447         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
2448         results.
2449         * lib/strverscmp.h: Delete.
2450         * lib/string.in.h (strverscmp): Provide declaration, when needed.
2451         * tests/test-strverscmp.c (includes): Adjust client.
2452         * lib/check-version.c (includes): Likewise.
2453         * NEWS: Document the change.
2454
2455         strverscmp: add unit test
2456         * modules/strverscmp-tests: New file.
2457         * tests/test-strverscmp.c: Likewise.
2458
2459 2008-08-19  Simon Josefsson  <simon@josefsson.org>
2460
2461         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
2462         regarding Windows crypto stuff, from Mono.
2463
2464 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
2465
2466         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
2467         if present, for intel RND.  Return error on failures.
2468
2469 2008-08-18  Ben Pfaff  <blp@gnu.org>
2470
2471         gitlog-to-changelog: give better diagnostic for failed pipe-open
2472         * build-aux/gitlog-to-changelog: Improve error message: suggest
2473         that the version of Git may be too old.
2474
2475 2008-08-18  Simon Josefsson  <simon@josefsson.org>
2476
2477         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
2478         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
2479
2480 2008-08-18  Bruno Haible  <bruno@clisp.org>
2481
2482         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
2483         pthread_in_use().
2484
2485 2008-08-18  Bruno Haible  <bruno@clisp.org>
2486
2487         * lib/glthread/threadlib.c: Include <pthread.h>.
2488
2489 2008-08-18  Bruno Haible  <bruno@clisp.org>
2490
2491         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
2492         glthread_recursive_lock_* macros.
2493         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
2494         Fix syntax error.
2495
2496 2008-08-18  Bruno Haible  <bruno@clisp.org>
2497
2498         * lib/glthread/thread.c: Avoid forcing a context switch right after
2499         thread creation.
2500
2501 2008-08-17  Bruno Haible  <bruno@clisp.org>
2502
2503         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
2504         * lib/glthread/thread.h: Provide Win32 specific implementation.
2505         * modules/thread (Files): Add lib/glthread/thread.c.
2506         (Depends-on): Add lock.
2507         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
2508
2509 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2510
2511         New module 'yield'.
2512         * modules/yield: New file.
2513         * lib/glthread/yield.h: New file.
2514         * m4/yield.m4: New file.
2515         * MODULES.html.sh (Multithreading): Add yield.
2516
2517 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2518
2519         New module 'thread'.
2520         * modules/thread: New file.
2521         * lib/glthread/thread.h: New file.
2522         * m4/thread.m4: New file.
2523         * MODULES.html.sh (Multithreading): Add thread.
2524
2525 2008-08-17  Bruno Haible  <bruno@clisp.org>
2526
2527         * lib/glthread/lock.h: Include <stdlib.h> always.
2528         * lib/glthread/tls.h: Likewise.
2529         * lib/glthread/cond.h: Likewise.
2530
2531 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2532
2533         New module 'cond'.
2534         * modules/cond: New file.
2535         * lib/glthread/cond.h: New file.
2536         * lib/glthread/cond.c: New file.
2537         * m4/cond.m4: New file.
2538         * MODULES.html.sh (Multithreading): Add cond.
2539
2540 2008-08-16  Eric Blake  <ebb9@byu.net>
2541
2542         c-stack: fix regression on Irix 5.3 from 2008-06-21
2543         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
2544         sa_sigaction...
2545         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
2546         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
2547         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
2548         * modules/signal (Makefile.am): Use the value.
2549         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
2550         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
2551         * doc/posix-headers/signal.texi (signal.h): Document this
2552         portability issue.
2553         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
2554         Reported by Tom G. Christensen.
2555
2556 2008-08-17  Bruno Haible  <bruno@clisp.org>
2557
2558         New module 'threadlib'.
2559         * modules/threadlib: New file.
2560         * lib/glthread/threadlib.c: New file, extracted from
2561         lib/glthread/lock.c.
2562         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
2563         functions.
2564         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
2565         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
2566         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
2567         macros.
2568         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
2569         (gl_DISABLE_THREADS): Remove macro.
2570         * modules/lock (Files): Remove build-aux/config.rpath.
2571         (Depends-on): Remove havelib. Add threadlib.
2572         (configure.ac-early): Remove section.
2573         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
2574         * modules/tls (Depends-on): Remove lock. Add threadlib.
2575         (Link): New section, copied from threadlib.
2576         * MODULES.html.sh (Multithreading): Add threadlib.
2577
2578 2008-08-14  Bruno Haible  <bruno@clisp.org>
2579
2580         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
2581         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
2582         glthread_rwlock_unlock, glthread_rwlock_destroy,
2583         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
2584         glthread_recursive_lock_destroy): Define as macros always.
2585         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
2586         glthread_lock_lock.
2587         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
2588         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
2589         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
2590         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
2591         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
2592         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
2593         (glthread_recursive_lock_lock_func): Renamed from
2594         glthread_recursive_lock_lock.
2595         (glthread_recursive_lock_unlock_func): Renamed from
2596         glthread_recursive_lock_unlock.
2597         (glthread_recursive_lock_destroy_func): Renamed from
2598         glthread_recursive_lock_destroy.
2599
2600 2008-08-14  Bruno Haible  <bruno@clisp.org>
2601
2602         * lib/glthread/lock.h: Renamed from lib/lock.h.
2603         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
2604         * lib/glthread/tls.h: Renamed from lib/tls.h.
2605         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
2606         * lib/fstrcmp.c: Update includes.
2607         * lib/strsignal.c: Update includes.
2608         * modules/lock (Files, Makefile.am): Update.
2609         (Include): Change to "glthread/lock.h".
2610         * modules/tls (Files, Makefile.am): Update.
2611         (Include): Change to "glthread/tls.h".
2612         * tests/test-lock.c: Update includes.
2613         * tests/test-tls.c: Update includes.
2614         * NEWS: Mention the renamed header files.
2615
2616 2008-08-11  Jim Meyering  <meyering@redhat.com>
2617
2618         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
2619
2620 2008-08-11  Eric Blake  <ebb9@byu.net>
2621
2622         test-c-stack: avoid C99-ism
2623         * tests/test-c-stack.c (main): Fix whitespace, move declaration
2624         before statement.
2625         Reported by Alain Guibert.
2626
2627 2008-08-10  Jim Meyering  <meyering@redhat.com>
2628
2629         ensure that return value of uinttostr et al are not ignored
2630         * lib/inttostr.h (__GNUC_PREREQ): Define.
2631         (__attribute_warn_unused_result__): Define.
2632         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
2633
2634 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
2635
2636         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
2637         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
2638
2639 2008-08-07  Jim Meyering  <meyering@redhat.com>
2640
2641         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
2642
2643         * modules/mkstemp (License): Relicense under LGPLv2+.
2644         * modules/tempname (License): Likewise.
2645
2646 2008-08-06  Bruno Haible  <bruno@clisp.org>
2647
2648         * lib/poll.c (poll): Further micro-optimization.
2649
2650 2008-08-06  Jim Meyering  <meyering@redhat.com>
2651
2652         inet_pton.c: use locale-independent tolower
2653         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
2654         (inet_pton6): Use c_tolower rather than tolower.
2655         * modules/inet_pton (Depends-on): Add c-ctype.
2656
2657 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
2658
2659         * lib/poll.c (poll): Avoid division when timeout is 0, cache
2660         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
2661
2662 2008-08-06  Jim Meyering  <meyering@redhat.com>
2663
2664         * modules/inet_pton (License): Relicense under LGPLv2+.
2665
2666 2008-08-03  Bruno Haible  <bruno@clisp.org>
2667
2668         Additional non-aborting API for lock and tls.
2669         * lib/lock.h: Include <errno.h>.
2670         (glthread_lock_init): New macro/function.
2671         (gl_lock_init): Define as wrapper around glthread_lock_init.
2672         (glthread_lock_lock): New macro/function.
2673         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
2674         (glthread_lock_unlock): New macro/function.
2675         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
2676         (glthread_lock_destroy): New macro/function.
2677         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
2678         (glthread_rwlock_init): New macro/function.
2679         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
2680         (glthread_rwlock_rdlock): New macro/function.
2681         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
2682         (glthread_rwlock_wrlock): New macro/function.
2683         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
2684         (glthread_rwlock_unlock): New macro/function.
2685         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
2686         (glthread_rwlock_destroy): New macro/function.
2687         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
2688         (glthread_recursive_lock_init): New macro/function.
2689         (gl_recursive_lock_init): Define as wrapper around
2690         glthread_recursive_lock_init.
2691         (glthread_recursive_lock_lock): New macro/function.
2692         (gl_recursive_lock_lock): Define as wrapper around
2693         glthread_recursive_lock_lock.
2694         (glthread_recursive_lock_unlock): New macro/function.
2695         (gl_recursive_lock_unlock): Define as wrapper around
2696         glthread_recursive_lock_unlock.
2697         (glthread_recursive_lock_destroy): New macro/function.
2698         (gl_recursive_lock_destroy): Define as wrapper around
2699         glthread_recursive_lock_destroy.
2700         (glthread_once): New macro/function.
2701         (gl_once): Define as wrapper around glthread_once.
2702         Update function declarations.
2703         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
2704         glthread_rwlock_init. Return error code.
2705         (glthread_rwlock_rdlock_multithreaded): Renamed from
2706         glthread_rwlock_rdlock. Return error code.
2707         (glthread_rwlock_wrlock_multithreaded): Renamed from
2708         glthread_rwlock_wrlock. Return error code.
2709         (glthread_rwlock_unlock_multithreaded): Renamed from
2710         glthread_rwlock_unlock. Return error code.
2711         (glthread_rwlock_destroy_multithreaded): Renamed from
2712         glthread_rwlock_destroy. Return error code.
2713         (glthread_recursive_lock_init_multithreaded): Renamed from
2714         glthread_recursive_lock_init. Return error code.
2715         (glthread_recursive_lock_lock_multithreaded): Renamed from
2716         glthread_recursive_lock_lock. Return error code.
2717         (glthread_recursive_lock_unlock_multithreaded): Renamed from
2718         glthread_recursive_lock_unlock. Return error code.
2719         (glthread_recursive_lock_destroy_multithreaded): Renamed from
2720         glthread_recursive_lock_destroy. Return error code.
2721         (glthread_once_call): Make static.
2722         (glthread_once_multithreaded): Renamed from glthread_once.
2723         * lib/tls.h: Include <errno.h>.
2724         (glthread_tls_key_init): New macro/function.
2725         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
2726         (glthread_tls_set): New macro/function.
2727         (gl_tls_set): Define as wrapper around glthread_tls_set.
2728         (glthread_tls_key_destroy): New macro/function.
2729         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
2730         Update function declarations.
2731         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
2732         glthread_tls_get.
2733         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
2734
2735 2008-08-04  Eric Blake  <ebb9@byu.net>
2736
2737         gnumakefile: use space, not TAB, outside of targets
2738         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
2739
2740 2008-08-02  Jim Meyering  <meyering@redhat.com>
2741
2742         getdate.y: avoid locale-dependent date parsing failure
2743         In Turkish locales, getdate would fail to recognize keywords
2744         containing a lowercase "i".  The solution is not to rely on
2745         locale-sensitive case-conversion.
2746         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
2747         (lookup_word): Use c_toupper in place of toupper.
2748         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
2749         Reported by Vefa Bicakci <bicave@superonline.com> in
2750         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
2751         * modules/getdate (Depends-on): Add c-ctype.
2752
2753 2008-08-02  Bruno Haible  <bruno@clisp.org>
2754
2755         * gnulib-tool (func_import): When updating or creating a .gitignore
2756         file, prepend each added line with a slash, and ignore leading slashes
2757         from the existing lines.
2758         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
2759
2760 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2761
2762         Portability fix for GNU make 3.79.1.
2763         * top/GNUmakefile: Avoid 'else COND', which older GNU make
2764         versions do not understand.
2765
2766 2008-08-01  Bruno Haible  <bruno@clisp.org>
2767
2768         Work around bug of HP-UX 10.20 cc with -0.0 literal.
2769         * tests/test-isnanf.h (zero): New variable.
2770         (main): Avoid literal -0.0f.
2771         * tests/test-isnand.h (zero): New variable.
2772         (main): Avoid literal -0.0.
2773         * tests/test-isnanl.h (zero): New variable.
2774         (main): Avoid literal -0.0L.
2775         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
2776         (test_float, test_double, test_long_double): Avoid literals -0.0f,
2777         -0.0, -0.0L.
2778         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
2779         (test_signbitd): Avoid literal -0.0.
2780         (test_signbitl): Avoid literal -0.0L.
2781         * tests/test-ceilf1.c (zero): New variable.
2782         (main): Avoid literal -0.0f.
2783         * tests/test-ceill.c (zero): New variable.
2784         (main): Avoid literal -0.0L.
2785         * tests/test-floorf1.c (zero): New variable.
2786         (main): Avoid literal -0.0f.
2787         * tests/test-floorl.c (zero): New variable.
2788         (main): Avoid literal -0.0L.
2789         * tests/test-roundf1.c (zero): New variable.
2790         (main): Avoid literal -0.0f.
2791         * tests/test-round1.c (zero): New variable.
2792         (main): Avoid literal -0.0.
2793         * tests/test-roundl.c (zero): New variable.
2794         (main): Avoid literal -0.0L.
2795         * tests/test-truncf1.c (zero): New variable.
2796         (main): Avoid literal -0.0f.
2797         * tests/test-trunc1.c (zero): New variable.
2798         (main): Avoid literal -0.0.
2799         * tests/test-truncl.c (zero): New variable.
2800         (main): Avoid literal -0.0L.
2801         * tests/test-frexp.c (zero): New variable.
2802         (main): Avoid literal -0.0.
2803         * tests/test-frexpl.c (zero): New variable.
2804         (main): Avoid literal -0.0L.
2805         * tests/test-ldexpl.c (zero): New variable.
2806         (main): Avoid literal -0.0L.
2807         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2808         (zerod, zerol): New variables.
2809         (test_function): Avoid literals -0.0, -0.0L.
2810         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
2811         (zerod, zerol): New variables.
2812         (test_function): Avoid literals -0.0, -0.0L.
2813         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2814         (zerod, zerol): New variables.
2815         (test_function): Avoid literals -0.0, -0.0L.
2816         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
2817         (zerod, zerol): New variables.
2818         (test_function): Avoid literals -0.0, -0.0L.
2819         * tests/test-strtod.c (zero): New variable.
2820         (main): Avoid literal -0.0.
2821         Reported by Jonathan C. Patschke <jp@centtech.com>.
2822
2823 2008-07-31  Jim Meyering  <meyering@redhat.com>
2824
2825         sha256.h: correct definition of SHA224_DIGEST_SIZE
2826         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
2827         Reported by Paulie Pena IV <paulie4@gmail.com>.
2828         Define as 224 / 8, rather than as a literal.
2829         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
2830         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
2831         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
2832
2833 2008-07-31  Bruno Haible  <bruno@clisp.org>
2834
2835         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
2836         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
2837         Reported by Jonathan Patschke <jp@centtech.com>.
2838
2839 2008-07-31  Bruno Haible  <bruno@clisp.org>
2840
2841         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
2842         Reported by Paolo Bonzini <bonzini@gnu.org>.
2843
2844 2008-07-30  Eric Blake  <ebb9@byu.net>
2845
2846         test-strtod: allow compilation without -lm
2847         * tests/test-strtod.c (main): Avoid link dependence on fabs.
2848         Reported by Dennis Clarke <blastwave@gmail.com>.
2849
2850 2008-07-28  Jim Meyering  <meyering@redhat.com>
2851
2852         bootstrap: work also when there are no .po files in po/
2853         * build-aux/bootstrap (update_po_files): Complete the change
2854         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
2855
2856 2008-07-27  Jim Meyering  <meyering@redhat.com>
2857
2858         * users.txt: Add zile.
2859
2860 2008-07-26  Ben Pfaff  <blp@gnu.org>
2861
2862         Add missing dependencies on new m4/exponent[fdl].m4 files.
2863         * modules/isnanf-nolibm: Add m4/exponentf.m4.
2864         * modules/isnand-nolibm: Add m4/exponentd.m4.
2865         * modules/isnanl-nolibm: Add m4/exponentl.m4.
2866         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
2867         m4/isnan[fdl].m4, because the macros actually used moved.
2868         Reported by Jim Meyering.
2869
2870 2008-07-14  Ben Pfaff  <blp@gnu.org>
2871
2872         Add isinf module.
2873         * lib/isinf.c: New file.
2874         * lib/math.in.h: Define isinf macro if we have decided to replace
2875         it.
2876         * m4/isinf.m4: New file.
2877         * m4/math_h.m4: Initialize and substitute variables for isinf
2878         module.
2879         * modules/isinf: New file.
2880         * modules/isinf-tests: New file.
2881         * modules/math: Add substitutions for new module.
2882         * tests/test-isinf.c: New file.
2883         * doc/posix-functions/isinf.texi: Mention new module.
2884         * MODULES.html.sh: Mention new module.
2885
2886 2008-07-14  Ben Pfaff  <blp@gnu.org>
2887
2888         Factor out some macros for use by additional modules.
2889         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
2890         exponentf.m4.
2891         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
2892         exponentd.m4.
2893         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
2894         file exponentl.m4.
2895         * m4/exponentf.m4: New file.
2896         * m4/exponentd.m4: New file.
2897         * m4/exponentl.m4: New file.
2898         * modules/isnanf: Use new file m4/exponentf.m4.
2899         * modules/isnand: Use new file m4/exponentd.m4.
2900         * modules/isnanl: Use new file m4/exponentl.m4.
2901
2902 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
2903
2904         mktime.c: normalize tp->tm_isdst value to -1/0/1.
2905         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2906         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
2907         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
2908
2909         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
2910         readlink on platforms without PATH_MAX.
2911
2912 2008-07-21  Eric Blake  <ebb9@byu.net>
2913
2914         Warn, not fail, on stale version.
2915         * top/GNUmakefile (_curr-ver): Tone down previous patch.
2916
2917         Don't allow installation with stale devel version number.
2918         * top/GNUmakefile (_is-install-target): New macro.
2919         (_curr-ver): Forbid installation with stale version number.
2920
2921 2008-07-20  Bruno Haible  <bruno@clisp.org>
2922
2923         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
2924         TESTS_ENVIRONMENT.
2925         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
2926
2927 2008-07-20  Bruno Haible  <bruno@clisp.org>
2928
2929         * lib/c-stack.h (c_stack_action): Add documentation.
2930         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
2931
2932 2008-07-20  Bruno Haible  <bruno@clisp.org>
2933
2934         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
2935         * modules/readlink (License): Likewise.
2936
2937 2008-07-17  Eric Blake  <ebb9@byu.net>
2938
2939         * modules/c-stack (Link): Fix typo.
2940
2941         Make c-stack use libsigsegv, when available.
2942         * modules/c-stack (Depends-on): Add libsigsegv.
2943         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
2944         needed.
2945         * lib/c-stack.c (SIGSTKSZ): Define fallback.
2946         (segv_handler, overflow_handler, c_stack_action)
2947         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
2948         implementation when libsigsegv is available, but only when using
2949         the library is necessary.
2950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
2951         comment, explaining why XSI check fails on Linux.
2952         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
2953         * tests/test-c-stack2.sh: Tweak skip message.
2954         * NEWS: Document new link-time requirements.
2955
2956 2008-07-16  Eric Blake  <ebb9@byu.net>
2957
2958         c-stack: Expose false positives when not using libsigsegv.
2959         * modules/c-stack-tests (Files): Expand test.
2960         * tests/test-c-stack.c (main): Add means to conditionally trigger
2961         non-overflow SIGSEGV.
2962         * tests/test-c-stack2.sh: New file.
2963
2964 2008-07-14  Bruno Haible  <bruno@clisp.org>
2965
2966         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
2967         Reported by Eric Blake.
2968
2969 2008-07-14  Sam Steingold  <sds@gnu.org>
2970             Bruno Haible  <bruno@clisp.org>
2971
2972         New module libsigsegv.
2973         * modules/libsigsegv: New file.
2974         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
2975         modifications.
2976         * MODULES.html.sh (Signal handling): New section.
2977
2978 2008-07-14  Bruno Haible  <bruno@clisp.org>
2979
2980         * modules/unictype/ctype-* (Description): Add the word "function".
2981         Improves the resulting doc in MODULES.html.
2982
2983 2008-07-12  Ben Pfaff  <blp@gnu.org>
2984
2985         Add longlong module.
2986         * modules/longlong: New file.
2987
2988 2008-07-12  Bruno Haible  <bruno@clisp.org>
2989
2990         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
2991         to empty.
2992
2993 2008-07-10  Ben Pfaff  <blp@gnu.org>
2994
2995         Add isnan module.
2996         * doc/posix-functions/isnan.texi: Mention new module.
2997         * lib/math.in.h: Define isnan macro if we have decided to replace
2998         it.
2999         * m4/isnan.m4: New file.
3000         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
3001         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
3002         also.
3003         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
3004         redundancy.
3005         * m4/math_h.m4: Initialize and substitute variables for isnan
3006         module.
3007         * modules/isnan: New file.
3008         * modules/isnan-tests: New file.
3009         * modules/math: Add substitutions for new module.
3010         * tests/test-isnan.c: New file.
3011         * MODULES.html.sh: Mention new module.
3012
3013 2008-07-10  Ben Pfaff  <blp@gnu.org>
3014
3015         Add isnanf module.
3016         * lib/isnanf.m4: New file.
3017         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
3018         (gl_HAVE_ISNANF_IN_LIBM): New macro.
3019         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
3020         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
3021         * modules/isnanf: New file.
3022         * modules/isnanf-tests: New file.
3023         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
3024         files.
3025         * tests/test-isnanf-nolibm.c: factored most of its contents into
3026         new file tests/test-isnanf.h.
3027         * tests/test-isnanf.h: New file.
3028         * tests/test-isnanf.c: New file.
3029         * MODULES.html.sh: Mention new module.
3030         * doc/glibc-functions/isnanf.texi: Mention new module.
3031
3032 2008-07-10  Ben Pfaff  <blp@gnu.org>
3033
3034         Add isnand module.
3035         * lib/isnand.h: New file.
3036         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
3037         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
3038         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
3039         functionality also.
3040         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
3041         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
3042         (gl_HAVE_ISNAND_IN_LIBM): New macro.
3043         * modules/isnand: New file.
3044         * modules/isnand-tests: New file.
3045         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
3046         files.
3047         * tests/test-isnand-nolibm.c: factored most of its contents into
3048         new file tests/test-isnand.h.
3049         * tests/test-isnand.h: New file.
3050         * tests/test-isnand.c: New file.
3051         * MODULES.html.sh: Mention new module.
3052
3053 2008-07-10  Ben Pfaff  <blp@gnu.org>
3054
3055         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
3056         * lib/isnand.h: Rename lib/isnand-nolibm.h.
3057         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
3058         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
3059         * modules/isnanf-nolibm: Update references to renamed files.
3060         * modules/isnand-nolibm: Likewise.
3061         * modules/isnanf-nolibm-tests: Likewise.
3062         * modules/isnand-nolibm-tests: Likewise.
3063         * lib/frexp.c: Likewise.
3064         * lib/isfinite.c: Likewise.
3065         * lib/signbitd.c: Likewise.
3066         * lib/signbitf.c: Likewise.
3067         * lib/vasnprintf.c: Likewise.
3068         * tests/test-ceilf1.c: Likewise.
3069         * tests/test-ceilf2.c: Likewise.
3070         * tests/test-floorf1.c: Likewise.
3071         * tests/test-floorf2.c: Likewise.
3072         * tests/test-frexp.c: Likewise.
3073         * tests/test-round1.c: Likewise.
3074         * tests/test-round2.c: Likewise.
3075         * tests/test-roundf1.c: Likewise.
3076         * tests/test-strtod.c: Likewise.
3077         * tests/test-trunc1.c: Likewise.
3078         * tests/test-trunc2.c: Likewise.
3079         * tests/test-truncf1.c: Likewise.
3080         * tests/test-truncf2.c: Likewise.
3081         * NEWS: Mention the renamed header files.
3082
3083 2008-07-11  Jim Meyering  <meyering@redhat.com>
3084
3085         vc-list-files: make the last-resort awk code more portable
3086         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
3087         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
3088         does not support it.
3089
3090 2008-07-10  Eric Blake  <ebb9@byu.net>
3091
3092         Work with tar's bootstrap.
3093         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
3094         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
3095         an m4 comment.
3096
3097 2008-07-09  Jim Meyering  <meyering@redhat.com>
3098
3099         posix-shell.m4: fix typo that made this test malfunction
3100         * m4/posix-shell.m4: Remove capitalization in variable name.
3101
3102 2008-07-08  Bruno Haible  <bruno@clisp.org>
3103
3104         * m4/onceonly.m4: Update comments.
3105         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3106
3107 2008-07-04  Jim Meyering  <meyering@redhat.com>
3108
3109         * users.txt: Add vc-dwim.
3110         (bison, coreutils): Use the gitweb URL.
3111
3112 2008-07-03  Jim Meyering  <meyering@redhat.com>
3113
3114         * users.txt: Add libffcall.  From Sam Steingold.
3115
3116 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
3117
3118         getdate.y: do not ignore TZ with relative day, month or year offset
3119         * lib/getdate.y (get_date): Move the tz-handling block to follow the
3120         relative-date-handling, since otherwise, the latter would clobber the
3121         sole output (an updated Start value) of the tz-handling block.
3122         * tests/test-getdate.c: Tests for the fix
3123
3124 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3125
3126         Recognize 'foo_LIBRARIES += libgnu.a'.
3127         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
3128         makefile snippet has already specified an installation location,
3129         also using '+='.
3130
3131 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
3132
3133         getdate.y: factor out common actions
3134         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
3135         Use them in place of open-coded actions.
3136
3137 2008-07-01  Simon Josefsson  <simon@josefsson.org>
3138
3139         Add self-test for getdate module.
3140         * modules/getdate-tests: New file.
3141         * tests/test-getdate.c: New file.
3142
3143 2008-06-29  Bruno Haible  <bruno@clisp.org>
3144
3145         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
3146         .gitignore.
3147         Reported by Sylvain Beucler <beuc@beuc.net>.
3148
3149 2008-06-29  Bruno Haible  <bruno@clisp.org>
3150
3151         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
3152         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
3153
3154 2008-06-29  Bruno Haible  <bruno@clisp.org>
3155
3156         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
3157         EXTRA_DIST.
3158         Reported by Sylvain Beucler <beuc@beuc.net>.
3159
3160 2008-06-26  Jim Meyering  <meyering@redhat.com>
3161
3162         make several modules depend on the "open" module
3163         This provides slightly increased consistency when opening-for-write
3164         the name of a non-directory spelled with a trailing slash.
3165         * modules/chdir-safer: Likewise.
3166         * modules/chown: Likewise.
3167         * modules/clean-temp: Likewise.
3168         * modules/copy-file: Likewise.
3169         * modules/fchdir: Likewise.
3170         * modules/fcntl-safer: Likewise.
3171         * modules/pipe: Likewise.
3172         * modules/utime: Likewise.
3173         Prompted by Eric Blake and Bruno Haible.
3174
3175 2008-06-24  Andreas Schwab  <schwab@suse.de>
3176
3177         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
3178         literals can be used as initializers for global variables.
3179
3180 2008-06-23  Eric Blake  <ebb9@byu.net>
3181
3182         Make gnulib-cache.m4 easier to diff.
3183         * gnulib-tool (func_import): Allow newlines when reading cached
3184         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
3185
3186 2008-06-23  Bruno Haible  <bruno@clisp.org>
3187
3188         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
3189         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
3190         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
3191         m4/signalblocking.m4.
3192         (gl_PREREQ_SIGACTION): Don't invoke it.
3193         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
3194         gl_PREREQ_SIG_HANDLER_H.
3195         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3196         Don't check for sigaction here.
3197
3198 2008-06-23  Bruno Haible  <bruno@clisp.org>
3199
3200         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
3201         (install_handlers): Don't set the SA_RESETHAND flag.
3202
3203 2008-06-23  Bruno Haible  <bruno@clisp.org>
3204
3205         * m4/sigaction.m4: Comment fixes.
3206         * lib/signal.in.h: Likewise.
3207
3208 2008-06-23  Eric Blake  <ebb9@byu.net>
3209
3210         Fix typo.
3211         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
3212
3213         Avoid SA_ namespace.
3214         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
3215         Reported by Ralf Wildenhues.
3216
3217         Avoid test failure due to SA_RESTORER.
3218         * tests/test-sigaction.c (SA_MASK): New macro.
3219         (main): Avoid failing due to extension flags being set.
3220         Reported by Jim Meyering.
3221
3222         Revert use of sig-handler.h in sigprocmask.c.
3223         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
3224         it requires the existence of struct sigaction.
3225         * lib/sigprocmask.c (handler_t): Restore typedef.
3226         (rpl_signal, old_handlers): Use local type.
3227
3228 2008-06-22  Bruno Haible  <bruno@clisp.org>
3229
3230         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
3231         conditionally.
3232         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3233
3234 2008-06-22  Bruno Haible  <bruno@clisp.org>
3235
3236         * doc/posix-functions/siginterrupt.texi: Move note.
3237
3238         * lib/signal.in.h (SA_RESTART): New macro.
3239         * lib/sigaction.c: Update comment.
3240
3241         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
3242
3243         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
3244         (gl_PREREQ_SIGPROCMASK): Invoke it.
3245         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
3246
3247         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
3248
3249         * lib/sigprocmask.c: Update a comment.
3250
3251 2008-06-21  Eric Blake  <ebb9@byu.net>
3252
3253         Use sigaction module rather than signal().
3254         * modules/c-stack (Depends-on): Add sigaction.
3255         * modules/fatal-signal (Depends-on): Likewise.
3256         * modules/nanosleep (Depends-on): Likewise.
3257         * modules/sigprocmask (Files): Add sig-handler.h.
3258         * modules/sigaction (Files): Likewise.
3259         * lib/sig-handler.h (get_handler): New file, suggested by Paul
3260         Eggert.
3261         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
3262         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
3263         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3264         (init_fatal_signals): Likewise.
3265         * lib/nanosleep.c (rpl_nanosleep): Likewise.
3266         (siginterrupt): Delete fallback.
3267         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
3268         instead.
3269         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
3270         siginterrupt.
3271
3272         New module sigaction, for mingw.
3273         * modules/sigaction: New module...
3274         * modules/sigaction-tests: ...and its test.
3275         * m4/sigaction.m4: New file.
3276         * lib/sigaction.c: Likewise.
3277         * tests/test-sigaction.c: Likewise.
3278         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
3279         * modules/signal (Makefile.am): Likewise.
3280         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
3281         needed.
3282         * doc/posix-headers/signal.texi (signal.h): Mention provided
3283         types.
3284         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
3285         that sigaction is preferable.
3286         * doc/posix-functions/sigaction.texi (sigaction): Mention new
3287         module.
3288         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3289         sigaction.
3290
3291         Improve robustness of sigprocmask by overriding signal.
3292         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
3293         is in use.
3294         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
3295         (SIGKILL, SIGSTOP): Provide fallbacks.
3296         (rpl_signal): Implement.
3297         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
3298         signal can be called inside handlers.
3299
3300         Fix nanosleep module on mingw.
3301         * modules/nanosleep (Depends-on): Add sys_select.
3302         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
3303
3304         Fix licensing of sigprocmask.
3305         * modules/raise (License): Relicense as LGPL.
3306
3307 2008-06-21  Bruno Haible  <bruno@clisp.org>
3308
3309         * lib/propername.c (proper_name_utf8): Don't use the transliterated
3310         result if it contains question marks.
3311         Reported by Michael Geng <linux@michaelgeng.de>.
3312
3313 2008-06-19  Bruno Haible  <bruno@clisp.org>
3314
3315         Fix CVS-ism.
3316         * doc/gnulib.texi: Include updated-stamp.texi.
3317         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
3318         (updated-stamp.texi): New rule.
3319         (gnulib.info): Depend on it.
3320         * doc/.gitignore: Add updated-stamp.texi.
3321         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
3322
3323 2008-06-19  Bruno Haible  <bruno@clisp.org>
3324
3325         * doc/Makefile (gnulib.info): Update and simplify dependencies.
3326         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3327
3328 2008-06-19  Eric Blake  <ebb9@byu.net>
3329
3330         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
3331         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
3332         Reported by Stepan Kasal.
3333
3334 2008-06-18  Bruno Haible  <bruno@clisp.org>
3335
3336         * lib/fatal-signal.c (init_fatal_signals): Add comment.
3337         Reported by Eric Blake.
3338
3339 2008-06-18  Eric Blake  <ebb9@byu.net>
3340
3341         Work around cygwin 1.5.25 strsignal bug.
3342         * tests/test-strsignal.c: Allow for const char *.
3343         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
3344
3345 2008-06-18  Simon Josefsson  <simon@josefsson.org>
3346
3347         * users.txt: Update URL to article and add author/date
3348         information.
3349
3350 2008-06-17  Bruno Haible  <bruno@clisp.org>
3351
3352         New macro gl_DISABLE_THREADS.
3353         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
3354         if the user did not pass --enable-threads or --disable-threads option.
3355         (gl_DISABLE_THREADS): New macro.
3356         Reported by Eric Blake <ebb9@byu.net>.
3357
3358 2008-06-17  Bruno Haible  <bruno@clisp.org>
3359
3360         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
3361         when the macro ignores it.
3362         Based on a patch by Eric Blake <ebb9@byu.net>.
3363
3364 2008-06-17  Bruno Haible  <bruno@clisp.org>
3365
3366         * modules/tls (License): Change to LGPLv2+.
3367         Reported by Eric Blake.
3368
3369 2008-06-17  Eric Blake  <ebb9@byu.net>
3370
3371         Simplify c-stack prerequisites.
3372         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
3373         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
3374         no longer requires <ucontext.h> to exist.  Optimize setrlimit
3375         check.
3376         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
3377         <sys/resource.h>.
3378
3379         Move c-stack test into testsuite.
3380         * modules/c-stack-tests: New file.
3381         * lib/c-stack.c [DEBUG]: Move test program...
3382         * tests/test-c-stack.c: ...into this new file.  Skip rather than
3383         fail test if sigaltstack is lacking.
3384         * tests/test-c-stack.sh: New driver file.
3385
3386 2008-06-16  Eric Blake  <ebb9@byu.net>
3387
3388         Use raise module consistently.
3389         * modules/fatal-signal (Depends-on): Add raise.
3390         * modules/sigprocmask (Depends-on): Likewise.
3391         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
3392         * lib/sigprocmask.c (sigprocmask): Likewise.
3393         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3394         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
3395
3396         Fix compliance bug in sigpending.
3397         * lib/sigprocmask.c (sigpending): Return pending array via
3398         parameter, not return value.
3399
3400 2008-06-14  Eric Blake  <ebb9@byu.net>
3401
3402         Improve obstack-printf test code.
3403         * tests/test-obstack-printf.c (test_function): Fix comment, and
3404         simplify usage of obstack_* in macros.  Add a test for coverage.
3405         Reported by Bruno Haible.
3406
3407 2008-06-14  Bruno Haible  <bruno@clisp.org>
3408
3409         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
3410         array size as a constant, not as a const variable.
3411         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
3412         AC_USE_SYSTEM_EXTENSIONS.
3413         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3414         Test whether the obstack_printf function actually exists.
3415         * modules/obstack-printf (Depends-on): Add extensions.
3416         (Include): Remove obstack.h.
3417         * modules/obstack-printf-posix (Depends-on): Add extensions.
3418         (Include): Remove obstack.h.
3419
3420 2008-06-13  Eric Blake  <ebb9@byu.net>
3421
3422         Add obstack-printf and obstack-printf-posix modules.
3423         * modules/obstack-printf: New file.
3424         * modules/obstack-printf-posix: Likewise.
3425         * MODULES.html.sh (Misc): Mention them.
3426         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
3427         Likewise.
3428         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
3429         Likewise.
3430         * modules/stdio (Makefile.am): Accomodate new modules.
3431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3432         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
3433         Declare.
3434         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
3435         functions.
3436         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
3437         (gl_REPLACE_OBSTACK_PRINTF): New macros
3438         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
3439         * tests/test-obstack-printf.c: New file.
3440         * modules/obstack-printf-tests: Likewise.
3441         * modules/obstack-printf-posix-tests: Likewise.
3442
3443 2008-06-11  Bruno Haible  <bruno@clisp.org>
3444
3445         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
3446         * lib/open.c: Include errno.h.
3447         (open): Fail when attempting to write to a file that has a trailing
3448         slash.
3449         * tests/test-open.c (main): Test against trailing slash bug.
3450         * doc/posix-functions/open.texi: Mention the trailing slash bug.
3451
3452 2008-06-10  Bruno Haible  <bruno@clisp.org>
3453
3454         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
3455         for $? to work inside the trap command, with various /bin/sh-s.
3456         * tests/test-vc-list-files-cvs.sh: Likewise.
3457
3458 2008-06-10  Bruno Haible  <bruno@clisp.org>
3459
3460         * lib/acl-internal.h: Don't include gettext.h here.
3461         * lib/set-mode-acl.c: Include gettext.h here.
3462         * lib/copy-acl.c: Likewise.
3463
3464 2008-06-10  Bruno Haible  <bruno@clisp.org>
3465
3466         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
3467         * lib/wait-process.c (wait_subprocess): Likewise.
3468         * lib/execute.h (execute): Add termsigp argument.
3469         * lib/execute.c (execute): Likewise.
3470         * lib/csharpcomp.c (compile_csharp_using_pnet,
3471         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
3472         * lib/csharpexec.c (execute_csharp_using_pnet,
3473         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
3474         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
3475         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
3476         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
3477         is_jikes_present): Update.
3478         * lib/javaexec.c (execute_java_class): Update.
3479         * lib/javaversion.c (execute_and_read_line): Update.
3480         * NEWS: Document the changes.
3481         Reported by Eric Blake.
3482
3483 2008-06-10  Eric Blake  <ebb9@byu.net>
3484
3485         Add missing include.
3486         * tests/test-strstr.c (includes): Add <signal.h>.
3487         * tests/test-strcasestr.c (includes): Likewise.
3488         * tests/test-memmem.c (includes): Likewise.
3489
3490 2008-06-10  Bruno Haible  <bruno@clisp.org>
3491
3492         * lib/wait-process.c (wait_subprocess): Add an assertion.
3493
3494 2008-06-10  Bruno Haible  <bruno@clisp.org>
3495
3496         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
3497
3498 2008-06-10  Bruno Haible  <bruno@clisp.org>
3499
3500         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
3501         using alarm().
3502         * tests/test-strcasestr.c (main): Likewise.
3503         * tests/test-strstr.c (main): Likewise.
3504
3505 2008-06-09  Bruno Haible  <bruno@clisp.org>
3506
3507         Work around the Solaris 10 ACE ACLs ABI change.
3508         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
3509         declare if ACL_NO_TRIVIAL is present.
3510         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
3511         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
3512         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
3513         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
3514         define if ACL_NO_TRIVIAL is present.
3515         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
3516         and use the current ABI.
3517         (file_has_acl): Use same #if condition as elsewhere.
3518         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
3519         in use, and use the current ABI.
3520         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
3521         Reported by Jim Meyering.
3522
3523 2008-06-09  Eric Blake  <ebb9@byu.net>
3524
3525         Work around environments that (stupidly) ignore SIGALRM.
3526         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
3527         before using alarm().
3528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3529         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3530         Reported by Ian Beckwith <ianb@erislabs.net>.
3531
3532         Produce autobuild blurb earlier in log.
3533         * modules/autobuild (configure.ac-early): Move AB_INIT here.
3534
3535 2008-06-09  Jim Meyering  <meyering@redhat.com>
3536         and OndÅ™ej Vašík  <ovasik@redhat.com>
3537
3538         utimens.c: correct kernel bug work-around
3539         OndÅ™ej Vašík found that the invalid return value of 280 indicates
3540         failure, not success, and the kernel bug we're trying to work
3541         around affects not just the utimensat call, but also the fallback
3542         futimens call.
3543         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
3544         not success.
3545         [HAVE_FUTIMENS]: Use the same work-around, here.
3546
3547 2008-06-09  Jim Meyering  <meyering@redhat.com>
3548
3549         add more guards around definition of ACE_-related code
3550         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
3551         ALLOW and ACE_OWNER are also defined.
3552
3553 2008-06-08  Bruno Haible  <bruno@clisp.org>
3554
3555         * lib/acl-internal.h: Add me as co-author.
3556         * lib/file-has-acl.c: Likewise.
3557         * lib/set-mode-acl.c: Likewise.
3558         * lib/copy-acl.c: Likewise.
3559
3560 2008-06-08  Bruno Haible  <bruno@clisp.org>
3561
3562         Add support for AIX ACLs.
3563         * lib/acl-internal.h (acl_nontrivial): New declaration.
3564         * lib/file-has-acl.c (acl_nontrivial): New function.
3565         (file_has_acl): Add implementation using AIX 4 ACL API.
3566         * lib/set-mode-acl.c (qset_acl): Likewise.
3567         * lib/copy-acl.c (qcopy_acl): Likewise.
3568
3569 2008-06-08  Bruno Haible  <bruno@clisp.org>
3570
3571         Add support for HP-UX ACLs.
3572         * lib/acl-internal.h (acl_nontrivial): New declaration.
3573         * lib/file-has-acl.c (acl_nontrivial): New function.
3574         (file_has_acl): Add implementation using HP-UX 11 ACL API.
3575         * lib/set-mode-acl.c (qset_acl): Likewise.
3576         * lib/copy-acl.c (qcopy_acl): Likewise.
3577
3578 2008-06-08  Bruno Haible  <bruno@clisp.org>
3579
3580         Add support for Cygwin ACLs.
3581         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
3582         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
3583         the chmod_or_fchmod call.
3584         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
3585
3586 2008-06-08  Bruno Haible  <bruno@clisp.org>
3587
3588         Fix bug with setuid modes in Solaris 10+ code.
3589         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
3590         succeeded, when the mode contains some special bits.
3591
3592 2008-06-08  Bruno Haible  <bruno@clisp.org>
3593
3594         Add support for Solaris 7..10 ACLs.
3595         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
3596         declarations.
3597         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
3598         functions.
3599         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
3600         * lib/set-mode-acl.c (qset_acl): Likewise.
3601         * lib/copy-acl.c (qcopy_acl): Likewise.
3602
3603 2008-06-08  Bruno Haible  <bruno@clisp.org>
3604
3605         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
3606         declaration.
3607         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
3608         (acl_access_nontrivial): Remove MacOS X case.
3609         (file_has_acl): Use acl_extended_nontrivial.
3610         * lib/copy-acl.c (qcopy_acl): Likewise.
3611
3612 2008-06-08  Bruno Haible  <bruno@clisp.org>
3613
3614         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
3615
3616 2008-06-08  Jim Meyering  <meyering@redhat.com>
3617
3618         * modules/acl (Maintainer): Add Bruno Haible.
3619
3620 2008-06-07  Bruno Haible  <bruno@clisp.org>
3621
3622         Improve support for Tru64 ACLs.
3623         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
3624         ACL on OSF/1.
3625
3626 2008-06-07  Bruno Haible  <bruno@clisp.org>
3627
3628         Add support for MacOS X ACLs.
3629         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
3630         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
3631         * lib/set-mode-acl.c (qset_acl): Likewise.
3632         * lib/copy-acl.c (qcopy_acl): Likewise.
3633
3634 2008-06-07  Bruno Haible  <bruno@clisp.org>
3635
3636         Fix memory leak introduced on 2008-05-22.
3637         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
3638         use.
3639
3640 2008-06-07  Bruno Haible  <bruno@clisp.org>
3641
3642         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
3643         to construct an empty ACL.
3644
3645 2008-06-07  Bruno Haible  <bruno@clisp.org>
3646
3647         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
3648         precisely.
3649         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
3650
3651 2008-06-07  Bruno Haible  <bruno@clisp.org>
3652
3653         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
3654         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
3655
3656 2008-06-07  Bruno Haible  <bruno@clisp.org>
3657
3658         * doc/posix-functions/_setjmp.texi: Explain the use of this function
3659         regardless of POSIX.
3660         * doc/posix-functions/_longjmp.texi: Likewise.
3661         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
3662         SystemV platform in this case.
3663
3664 2008-06-06  Eric Blake  <ebb9@byu.net>
3665
3666         Document abort() bugs.
3667         * doc/posix-functions/abort.texi (abort): Mention anomalies.
3668
3669         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
3670         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
3671         sigsetjmp.
3672         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
3673         siglongjmp, but only as a macro.
3674         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
3675         is obsolete.
3676         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
3677
3678         Tweak documentation to cover cygwin argz bugs.
3679         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
3680         argz bug fix; no code change needed since no cygwin releases
3681         occurred between the last fix and the bug being tested.
3682         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
3683         module and recently fixed cygwin bugs.
3684         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
3685         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
3686         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
3687         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
3688         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
3689         Likewise.
3690         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
3691         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
3692         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
3693         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
3694         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
3695         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
3696         Likewise.
3697
3698         Avoid gcc warning on cygwin.
3699         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
3700         !ACL_NO_TRIVIAL]: Avoid unused variable.
3701
3702 2008-06-05  Eric Blake  <ebb9@byu.net>
3703
3704         Be tolerant of UNKNOWN version in gnulib-tool test dir.
3705         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
3706         git-version-gen fails to come up with a version.
3707         Reported by Simon Josefsson.
3708
3709 2008-06-05  Jim Meyering  <meyering@redhat.com>
3710             Paul Eggert  <eggert@cs.ucla.edu>
3711
3712         utimens.c: work around a probable Linux kernel bug
3713         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
3714         appears to be a kernel bug that causes utimensat to return 280
3715         instead of 0, indicating success.
3716
3717 2008-06-04  Bruno Haible  <bruno@clisp.org>
3718
3719         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
3720         2008-06-01 commit.
3721
3722 2008-06-04  Bruno Haible  <bruno@clisp.org>
3723
3724         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
3725         * lib/file-has-acl.c (acl_access_nontrivial): New function.
3726         (file_has_acl): Use it. Save errno afterwards.
3727         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
3728
3729 2008-06-03  Bruno Haible  <bruno@clisp.org>
3730
3731         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
3732         draft code. Simplify #ifs.
3733         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
3734         Put Solaris code after POSIX-draft code. Fix comments regarding
3735         Solaris 10, HP-UX. Mention Cygwin.
3736         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
3737
3738 2008-06-03  Eric Blake  <ebb9@byu.net>
3739
3740         Provide fallback for older kernels.
3741         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
3742         Provide runtime fallback if kernel lacks support.
3743         Reported by Mike Frysinger.
3744
3745 2008-06-02  Bruno Haible  <bruno@clisp.org>
3746
3747         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
3748         it exists.
3749
3750 2008-06-02  Bruno Haible  <bruno@clisp.org>
3751
3752         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
3753         * lib/copy-acl.c (qcopy_acl): Update comment.
3754
3755 2008-06-02  Bruno Haible  <bruno@clisp.org>
3756
3757         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
3758         like ACL APIs.
3759
3760 2008-06-02  Bruno Haible  <bruno@clisp.org>
3761
3762         * tests/test-file-has-acl.sh: Use different code for Cygwin.
3763         * tests/test-set-mode-acl.sh: Likewise.
3764         * tests/test-copy-acl.sh: Likewise.
3765         * tests/test-copy-file.sh: Likewise.
3766
3767 2008-06-02  Bruno Haible  <bruno@clisp.org>
3768
3769         * tests/test-file-has-acl.sh: Remove unused code.
3770
3771 2008-06-01  Bruno Haible  <bruno@clisp.org>
3772
3773         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
3774         (copy_acl): Just a wrapper around qcopy_acl that emits the error
3775         messages.
3776         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
3777
3778 2008-06-01  Bruno Haible  <bruno@clisp.org>
3779
3780         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
3781         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
3782         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
3783         APIs.
3784         * modules/acl-tests (configure.ac): Remove tests now contained in
3785         m4/acl.m4.
3786
3787 2008-06-02  Jim Meyering  <meyering@redhat.com>
3788
3789         announce-gen: use a better key-server host name
3790         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
3791         it may be more consistently reliable.  Suggested by Werner Koch
3792         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
3793
3794 2008-06-01  Bruno Haible  <bruno@clisp.org>
3795
3796         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
3797         Reported by Voroskoi Andras <voroskoi@gmail.com>.
3798
3799 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
3800
3801         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
3802
3803 2008-06-01  Bruno Haible  <bruno@clisp.org>
3804
3805         New ACL tests.
3806         * tests/test-file-has-acl.sh: New file.
3807         * tests/test-file-has-acl.c: New file.
3808         * tests/test-set-mode-acl.sh: New file.
3809         * tests/test-set-mode-acl.c: New file.
3810         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
3811         * tests/test-copy-acl.c: New file.
3812         * modules/acl-tests: New file, based on modules/copy-file-tests.
3813         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
3814         (Depends-on): Add acl-tests.
3815         (configure.ac): Remove checks.
3816         (Makefile.am): Don't create test-sameacls program here any more.
3817
3818 2008-06-01  Bruno Haible  <bruno@clisp.org>
3819
3820         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
3821         * tests/test-sameacls.c: Include progname.h.
3822         (main): Invoke set_program_name. Portability fixes for MacOS X,
3823         Solaris, HP-UX.
3824
3825 2008-06-01  Bruno Haible  <bruno@clisp.org>
3826
3827         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
3828         function.
3829         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
3830
3831 2008-06-01  Bruno Haible  <bruno@clisp.org>
3832
3833         * modules/rpmatch (Depends-on): Add strdup.
3834
3835 2008-06-01  Bruno Haible  <bruno@clisp.org>
3836
3837         * lib/pipe.c: Include unistd-safer.h.
3838         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
3839         * modules/pipe (Depends-on): Add unistd-safer.
3840
3841 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3842
3843         * modules/autobuild (configure.ac): Call AB_INIT.
3844
3845 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3846
3847         * tests/test-getaddrinfo.c: Don't print debug messages by default.
3848         Suggested by Bruno Haible <bruno@clisp.org>.
3849
3850 2008-05-30  Simon Josefsson  <simon@josefsson.org>
3851
3852         * tests/test-base64.c: Cast size_t to unsigned long when invoking
3853         printf.  Use %lu instead of %d.  Reported by Bruno Haible
3854         <bruno@clisp.org>.
3855
3856 2008-05-29  Eric Blake  <ebb9@byu.net>
3857
3858         Prefer new POSIX 200x interfaces over futimesat.
3859         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
3860         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
3861         when available.
3862         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
3863
3864 2008-05-28  Bruno Haible  <bruno@clisp.org>
3865
3866         * modules/stpcpy (License): Change to LGPLv2+.
3867         Requested by David Lutterkort <dlutter@redhat.com>.
3868
3869 2008-05-27  Bruno Haible  <bruno@clisp.org>
3870
3871         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
3872         current mingw.
3873         Reported by Jose E. Marchesi <jemarch@gnu.org>.
3874
3875 2008-05-27  Bruno Haible  <bruno@clisp.org>
3876
3877         * modules/iconv_open (Link): New section, from module 'iconv'.
3878         * modules/striconv (Link): Likewise.
3879         * modules/striconveh (Link): Likewise.
3880         * modules/xstriconv (Link): Likewise.
3881         * modules/unicodeio (Link): Likewise.
3882         * modules/propername (Link): Likewise.
3883         Reported by Jim Meyering.
3884
3885 2008-05-26  Jim Meyering  <meyering@redhat.com>
3886
3887         sha256: do not artificially restrict buffer length to be < 2^32
3888         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
3889         uint32_t to size_t.
3890         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
3891         to match.
3892
3893         avoid unaligned access errors, e.g., on sparc
3894         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
3895         direct access through a possibly-unaligned uint64* pointer.
3896         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
3897         direct access through a possibly-unaligned uint32* pointer.
3898         Prompted by this patch from Tom "spot" Callaway:
3899         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
3900
3901         sha512.c: fix typo in comment
3902         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
3903
3904 2008-05-25  Bruno Haible  <bruno@clisp.org>
3905
3906         * lib/set-mode-acl.c: Renamed from lib/acl.c.
3907         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
3908         (Makefile.am): Update lib_SOURCES.
3909
3910 2008-05-25  Bruno Haible  <bruno@clisp.org>
3911
3912         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
3913
3914 2008-05-25  Jim Meyering  <meyering@redhat.com>
3915
3916         useless-if-before-free: freed expr may have white-space differences
3917         * build-aux/useless-if-before-free: Recognize cases in which the
3918         freed expression differs from the tested one in embedded white
3919         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
3920         $1 was used, so we can't make any regexp shy.  Improved tests now
3921         detect this.
3922
3923         useless-if-before-free: accept white space in the expression.
3924         * build-aux/useless-if-before-free: For now, any white space
3925         in the expression must be identical in the free argument.
3926
3927         useless-if-before-free: efficiency tweak
3928         * build-aux/useless-if-before-free: Make the expression-matching
3929         regexp "shy".
3930         Make the *outer* regexp shy, not the expr-matching one.
3931
3932         update code-in-comment to accept cast of free arg
3933         * build-aux/useless-if-before-free: Update regexp.
3934
3935 2008-05-25  Bruno Haible  <bruno@clisp.org>
3936
3937         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
3938         * modules/copy-file-tests (Files, Makefile.am): Update.
3939         * tests/test-copy-file.c (func_test_copy): Update.
3940
3941 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
3942
3943         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
3944
3945 2008-05-23  Bruno Haible  <bruno@clisp.org>
3946
3947         Improve support for ACLs on OSF/1.
3948         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
3949         Remove fallback for unknown flavors of ACLs.
3950
3951 2008-05-22  Bruno Haible  <bruno@clisp.org>
3952
3953         Add support for ACLs on OSF/1.
3954         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
3955         replacements.
3956         (acl_free_text): New macro fallback.
3957         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
3958         acl_free.
3959         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
3960         acl_free_text function. Require AC_C_INLINE.
3961
3962 2008-05-22  Bruno Haible  <bruno@clisp.org>
3963
3964         Make copy_acl work on MacOS X 10.5.
3965         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
3966         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
3967         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
3968         If MODE_INSIDE_ACL, don't assume that every system has the same text
3969         representation for ACLs as FreeBSD.
3970         * lib/copy-acl.c (copy_acl): Add support for platforms with
3971         !MODE_INSIDE_ACL.
3972         * lib/file-has-acl.c (file_has_acl): Likewise.
3973         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
3974         FreeBSD, MacOS X, or IRIX, respectively.
3975
3976 2008-05-22  Bruno Haible  <bruno@clisp.org>
3977
3978         * lib/acl.h: Don't include <sys/acl.h>.
3979         (GETACLCNT): Move fallback to lib/acl-internal.h.
3980         * lib/acl-internal.h: Include <sys/acl.h> here.
3981         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
3982
3983 2008-05-22  Bruno Haible  <bruno@clisp.org>
3984
3985         Split off copy_acl function to separate file.
3986         * lib/copy-acl.c: New file, extracted from lib/acl.c.
3987         * lib/acl.c (copy_acl): Moved function to separate file.
3988         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
3989         * modules/acl (Files): Add lib/copy-acl.c.
3990         (Makefiles.am): Augment lib_SOURCES.
3991
3992 2008-05-22  Bruno Haible  <bruno@clisp.org>
3993
3994         * modules/copy-file-tests: New file.
3995         * tests/test-copy-file.sh: New file.
3996         * tests/test-copy-file.c: New file.
3997         * tests/test-copy-file-sameacls.c: New file.
3998
3999 2008-05-22  Eric Blake  <ebb9@byu.net>
4000
4001         Avoid gcc warning.
4002         * tests/test-memcmp.c (main): Pass NULL indirectly.
4003
4004 2008-05-21  Bruno Haible  <bruno@clisp.org>
4005
4006         Add reference doc about ACLs.
4007         * doc/acl-resources.txt: New file.
4008         * doc/acl-cygwin.txt: New file.
4009
4010 2008-05-21  Bruno Haible  <bruno@clisp.org>
4011
4012         Avoid one more warning from gcc.
4013         * lib/vasnprintf.c (IF_LINT): Update comments.
4014         (VASNPRINTF): Use it also for the 'prefix' array initializer.
4015
4016 2008-05-21  Jim Meyering  <meyering@redhat.com>
4017
4018         avoid a warning from gcc
4019         * lib/vasnprintf.c (IF_LINT): Define.
4020         (scale10_round_decimal_long_double):
4021         Use it to avoid a "may be used uninitialized" warning.
4022         (scale10_round_decimal_double): Likewise.
4023
4024 2008-05-21  Simon Josefsson  <simon@josefsson.org>
4025
4026         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
4027         declared.
4028
4029 2008-05-20  Bruno Haible  <bruno@clisp.org>
4030
4031         * tests/test-memcmp.c (main): Test also the sign of the result. Test
4032         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
4033
4034 2008-05-20  Simon Josefsson  <simon@josefsson.org>
4035
4036         * modules/memcmp-tests: New file.
4037         * tests/test-memcmp.c: New file.
4038
4039 2008-05-19  Bruno Haible  <bruno@clisp.org>
4040
4041         * modules/propername (Notice, configure.ac): Put quoted "..." into
4042         --keyword option.
4043         * lib/propername.h: Update comments accordingly.
4044         Reported by Eric Blake.
4045
4046 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
4047
4048         * modules/getpass-gnu (Depends-on): Add fseeko.
4049
4050 2008-05-19  Simon Josefsson  <simon@josefsson.org>
4051
4052         * modules/base64-tests: New file.
4053
4054 2008-05-19  Bo Borgerson <gigabo@gmail.com>
4055
4056         * lib/base64.c (base64_decode_ctx): If a decode context structure
4057         was passed in use it to ignore newlines.  If a context structure
4058         was _not_ passed in, continue to treat newlines as garbage (this
4059         is the historical behavior).  Formerly base64_decode.
4060         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
4061         takes a decode context structure.
4062         * lib/base64.h (base64_decode): Macro for four-argument calls.
4063         (base64_decode_alloc): Likewise.
4064         * lib/base64.c (base64_decode_ctx): If a decode context structure
4065         was passed in use it to ignore newlines.  If a context structure
4066         was _not_ passed in, continue to treat newlines as garbage (this
4067         is the historical behavior).  Formerly base64_decode.
4068         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
4069         takes a decode context structure.
4070         * lib/base64.h (base64_decode): Macro for four-argument calls.
4071         (base64_decode_alloc): Likewise.
4072
4073 2008-05-19  Jim Meyering  <meyering@redhat.com>
4074
4075         avoid a warning from gcc
4076         * lib/trim.c (IF_LINT): Define.
4077         (trim2): Use it to avoid a "may be used uninitialized" warning.
4078
4079         Fix doc typo.
4080         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
4081
4082 2008-05-19  Bruno Haible  <bruno@clisp.org>
4083
4084         * doc/glibc-functions/getpass.texi: Document limits of other
4085         implementations.
4086
4087 2008-05-19  Simon Josefsson  <simon@josefsson.org>
4088             Bruno Haible <bruno@clisp.org>
4089
4090         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
4091
4092 2008-05-18  Bruno Haible  <bruno@clisp.org>
4093
4094         * modules/propername: New file, from GNU gettext.
4095         * lib/propername.h: New file, from GNU gettext.
4096         * lib/propername.c: New file, from GNU gettext.
4097         * MODULES.html.sh (Internationalization functions): Add propername.
4098
4099 2008-05-16  Jim Meyering  <meyering@redhat.com>
4100             Bruno Haible  <bruno@clisp.org>
4101
4102         Avoid some warnings from "gcc -Wshadow".
4103         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
4104
4105 2008-05-15  Eric Blake  <ebb9@byu.net>
4106
4107         Extend previous patch to cygwin 1.7.0.
4108         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
4109         fast implementation in cygwin >= 1.7.0.
4110         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4111         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4112
4113 2008-05-15  Bruno Haible  <bruno@clisp.org>
4114
4115         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
4116         implementation in glibc >= 2.9.
4117         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4118         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4119
4120 2008-05-15  Bruno Haible  <bruno@clisp.org>
4121
4122         * MODULES.html.sh (Internationalization functions): Remove linebreak.
4123         (Unicode string functions): Add unilbrk/*.
4124         Reported by Karl Berry.
4125
4126 2008-05-15  Eric Blake  <ebb9@byu.net>
4127
4128         Fix violation of <stdbool.h> replacement in regex.
4129         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
4130         * lib/regexec.c (re_search_internal): Likewise.
4131         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
4132
4133 2008-05-15  Jim Meyering  <meyering@redhat.com>
4134
4135         avoid distracting test output when git or cvs is not found
4136         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
4137         * tests/test-vc-list-files-git.sh: Likewise.
4138
4139 2008-05-15  Eric Blake  <ebb9@byu.net>
4140
4141         Glibc finally accepted the memmem speedup code, bugzilla #5514.
4142         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
4143         glibc version.
4144         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4145         * doc/posix-functions/strstr.texi (strstr): Likewise.
4146         * lib/str-two-way.h (MAX): Sychronize with glibc.
4147
4148 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
4149
4150         * lib/regcomp.c (optimize_utf8): Add a note on why we test
4151         opr.ctx_type.
4152         (calc_first): Initialize constraint field.
4153         (duplicate_node_closure): Use it instead of special casing ANCHORS.
4154         Fix grammar.
4155         (duplicate_node): Merge constraint field for all node types.
4156         (calc_eclosure_iter): Look at constraint field for all node types.
4157         * lib/regex_internal.c (create_cd_newstate): Don't look at
4158         opr.ctx_type.
4159
4160 2008-05-14  Bruno Haible  <bruno@clisp.org>
4161
4162         Help GCC to do better code generation.
4163         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
4164         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
4165         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
4166         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
4167         Declare with attribute 'malloc' if supported.
4168
4169 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
4170
4171         use "echo STR|wc -c" rather than unportable "expr length STR"
4172         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
4173         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
4174
4175 2008-05-14  Jim Meyering  <meyering@redhat.com>
4176
4177         use dd ibs=$n count=1 ... rather than less-portable head -c$n
4178         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
4179         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
4180         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
4181         via Collin Lasse.
4182
4183 2008-05-14  Eric Blake  <ebb9@byu.net>
4184
4185         Avoid quadratic growth in gl_LIBSOURCES.
4186         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
4187         Suggested by Bruno Haible.
4188
4189         Test xmemdup0.
4190         * modules/xmemdup0-tests: New file.
4191         * tests/test-xmemdup0.c: Likewise.
4192
4193 2008-05-13  Eric Blake  <ebb9@byu.net>
4194
4195         Split xmemdup0 into its own module.
4196         * modules/xmemdup0: New file.
4197         * lib/xmemdup0.h: Likewise.
4198         * lib/xmemdup0.c: Likewise.
4199         * MODULES.html.sh (Memory management functions): Add xmemdup0.
4200         * lib/xalloc.h (xmemdup0): Remove.
4201         * lib/xmalloc.c (xmemdup0): Likewise.
4202
4203 2008-05-13  Eric Blake  <ebb9@byu.net>
4204             Bruno Haible  <bruno@clisp.org>
4205
4206         Reduce number of forks required during autoconf.
4207         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
4208         and gl_LIBSOURCES_DIR.
4209         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
4210         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
4211         m4_syscmd per file.
4212         <m4_foreach_w>: Move...
4213         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
4214
4215 2008-05-13  Eric Blake  <ebb9@byu.net>
4216
4217         * gnulib-tool: Fix various comment typos.
4218
4219 2008-05-12  Bruno Haible  <bruno@clisp.org>
4220
4221         Tailor the linebreaking algorithm.
4222         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
4223
4224 2008-05-12  Bruno Haible  <bruno@clisp.org>
4225
4226         Update to Unicode 5.0.0.
4227         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4228         LBP_JV, LBP_JT. Redistribute values.
4229         (unilbrk_table): Change size.
4230         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
4231         Unicode TR#14 rev. 22.
4232         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
4233         LBP_JV, LBP_JT. Redistribute values.
4234         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
4235         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
4236         Update.
4237         * lib/unilbrk/lbrkprop1.h: Regenerated.
4238         * lib/unilbrk/lbrkprop2.h: Regenerated.
4239         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
4240         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
4241         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
4242         Likewise.
4243         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
4244         Likewise.
4245         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
4246         result.
4247         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4248         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4249         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4250         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
4251         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
4252         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
4253
4254 2008-05-11  Bruno Haible  <bruno@clisp.org>
4255
4256         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
4257
4258 2008-05-11  Bruno Haible  <bruno@clisp.org>
4259
4260         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
4261         * modules/unilbrk/gen-lbrk: New file.
4262
4263 2008-05-11  Bruno Haible  <bruno@clisp.org>
4264
4265         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
4266         * m4/sha512.m4 (gl_SHA512): Likewise.
4267
4268 2008-05-11  Jim Meyering  <meyering@redhat.com>
4269
4270         New modules: crypto/sha256, crypto/sha512 (from coreutils)
4271         * modules/crypto/sha256: New file.
4272         * modules/crypto/sha512: Likewise.
4273         * lib/sha256.c: Likewise.
4274         * lib/sha256.h: Likewise.
4275         * lib/sha512.c: Likewise.
4276         * lib/sha512.h: Likewise.
4277         * lib/u64.h: Likewise.
4278         * m4/sha256.m4: Likewise.
4279         * m4/sha512.m4: Likewise.
4280         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
4281
4282 2008-05-10  Bruno Haible  <bruno@clisp.org>
4283
4284         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
4285         (Input/Output <stdio.h>): Add xprintf.
4286         (Signal handling <signal.h>): Add strsignal.
4287         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
4288         (Core language properties): Add func.
4289         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
4290         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
4291         strings.
4292         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
4293         (Input/output): New section.
4294         (File system functions): Add openat-die, stat-macros.
4295         (Networking functions): Add sockets.
4296         (Unicode string functions): Add unictype/*.
4297         (Support for building libraries and executables): Add gperf.
4298         (Support for building documentation): Add agpl-3.0.
4299         (Misc): Add nocrash.
4300
4301 2008-05-10  Bruno Haible  <bruno@clisp.org>
4302
4303         * modules/unictype/gen-ctype: New file.
4304
4305 2008-05-10  Jim Meyering  <meyering@redhat.com>
4306
4307         Make chdir-safer.c more efficient on a system with no symlinks.
4308         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
4309         also if ELOOP is zero.  Suggested by Bruno Haible.
4310
4311         Make chdir-safer.c slightly safer.
4312         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
4313         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
4314
4315         Avoid compile failure on systems without ELOOP (like mingw).
4316         * lib/chdir-safer.c (ELOOP): Define if not already defined.
4317         Reported by Bruno Haible.
4318
4319 2008-05-10  Bruno Haible  <bruno@clisp.org>
4320
4321         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
4322         (is_utf8_encoding): Use a case-insensitive comparison.
4323         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
4324         streq.
4325
4326 2008-05-10  Bruno Haible  <bruno@clisp.org>
4327
4328         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
4329         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
4330         * lib/unilbrk/ulc-common.h (iconv_string_length,
4331         iconv_string_keeping_offsets): Remove declarations.
4332         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
4333         Don't include <iconv.h>, streq.h, xsize.h.
4334         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
4335         conversion.
4336         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
4337         <iconv.h>, streq.h, xsize.h.
4338         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
4339         conversion.
4340         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
4341         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
4342         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
4343         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
4344
4345 2008-05-10  Bruno Haible  <bruno@clisp.org>
4346
4347         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
4348         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
4349
4350         * modules/unilbrk/u32-width-linebreaks-tests: New file.
4351         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
4352
4353         * modules/unilbrk/u16-width-linebreaks-tests: New file.
4354         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
4355
4356         * modules/unilbrk/u8-width-linebreaks-tests: New file.
4357         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
4358
4359         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
4360         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
4361
4362         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
4363         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
4364
4365         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
4366         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
4367
4368         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
4369         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
4370
4371 2008-05-10  Bruno Haible  <bruno@clisp.org>
4372
4373         Split up 'linebreak' module.
4374         * lib/unilbrk.h: New file, based on lib/linebreak.h.
4375         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
4376         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
4377         modifications.
4378         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
4379         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
4380         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
4381         lib/linebreak.c.
4382         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
4383         lib/linebreak.c.
4384         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
4385         lib/linebreak.c.
4386         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
4387         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
4388         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
4389         lib/linebreak.c.
4390         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
4391         lib/linebreak.c.
4392         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
4393         lib/linebreak.c.
4394         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
4395         lib/linebreak.c.
4396         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
4397         lib/linebreak.c.
4398         * modules/unilbrk/base: New file.
4399         * modules/unilbrk/tables: New file.
4400         * modules/unilbrk/u8-possible-linebreaks: New file.
4401         * modules/unilbrk/u16-possible-linebreaks: New file.
4402         * modules/unilbrk/u32-possible-linebreaks: New file.
4403         * modules/unilbrk/ulc-common: New file.
4404         * modules/unilbrk/ulc-possible-linebreaks: New file.
4405         * modules/unilbrk/u8-width-linebreaks: New file.
4406         * modules/unilbrk/u16-width-linebreaks: New file.
4407         * modules/unilbrk/u32-width-linebreaks: New file.
4408         * modules/unilbrk/ulc-width-linebreaks: New file.
4409         * lib/linebreak.h: Remove file.
4410         * lib/linebreak.c: Remove file.
4411         * m4/linebreak.m4: Remove file.
4412         * modules/linebreak: Remove file.
4413         * NEWS: Mention the changes.
4414
4415 2008-05-09  Eric Blake  <ebb9@byu.net>
4416
4417         Add xmemdup0.
4418         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
4419         implementation.
4420         * lib/xmalloc.c (xmemdup0): New C implementation.
4421
4422 2008-05-08  Bruno Haible  <bruno@clisp.org>
4423
4424         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
4425
4426 2008-05-07  Eric Blake  <ebb9@byu.net>
4427
4428         Support cross-compilation of <wctype.h>.
4429         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
4430         AC_CACHE_CHECK.
4431
4432 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
4433
4434         * build-aux/vc-list-files: Add support for bzr.
4435
4436 2008-05-03  Jim Meyering  <meyering@redhat.com>
4437
4438         avoid failed assertion with tight malloc
4439         * tests/test-getndelim2.c: Correct an off-by-one assertion.
4440
4441 2008-05-03  Simon Josefsson  <simon@josefsson.org>
4442
4443         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
4444         are needed from arpa/inet.h.
4445         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
4446         Reported by Bruno Haible.
4447
4448 2008-05-02  Jim Meyering  <meyering@redhat.com>
4449
4450         avoid compilation error on FreeBSD 6
4451         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
4452
4453 2008-05-01  Jim Meyering  <meyering@redhat.com>
4454
4455         useless-if-before-free: correct --help's exit status description
4456         * build-aux/useless-if-before-free (usage): Like grep, exit 0
4457         for one or more matches, etc.  Reported by Bruno Haible.
4458
4459         vc-list-files: make the stand-alone gnulib test work
4460         * modules/vc-list-files-tests (configure.ac):
4461         Define and AC_SUBST abs_aux_dir.
4462         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
4463         $(abs_top_srcdir) to each script and having each of them
4464         duplicate the work of setting PATH, set PATH here, using
4465         the new variable, abs_aux_dir instead.
4466         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
4467         * tests/test-vc-list-files-git.sh: Likewise.
4468         Reported by Bruno Haible.
4469
4470 2008-05-01  Bruno Haible  <bruno@clisp.org>
4471
4472         * lib/getndelim2.c (getndelim2): Fix newsize computation during
4473         reallocation. Rename 'done' to 'found_delimiter'.
4474
4475 2008-05-01  Jim Meyering  <meyering@redhat.com>
4476
4477         vc-list-files: accommodate /bin/sh like the one from Solaris 10
4478         * build-aux/vc-list-files: Use `...`, not $(...).
4479
4480 2008-04-30  Jim Meyering  <meyering@redhat.com>
4481
4482         add tests for vc-list-files
4483         * modules/vc-list-files-tests: New module.
4484         * tests/test-vc-list-files-cvs.sh: New file.
4485         * tests/test-vc-list-files-git.sh: New file.
4486
4487         avoid a warning from gcc
4488         * lib/getndelim2.c (IF_LINT): Define.
4489         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
4490
4491         vc-list-files: work properly with build-aux/cvsu, too
4492         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
4493         to all cvs-based clauses.
4494
4495         vc-list-files: work properly in the CVS+awk case, too
4496         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
4497
4498         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
4499         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
4500         take more than one file argument, so .  Add quotes, just in case $dir
4501         ever contains a shell meta-character.  Prompted by Soren Hansen in
4502         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
4503
4504 2008-04-29  Eric Blake  <ebb9@byu.net>
4505
4506         Optimize getndelim2 to use block operations when possible.
4507         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
4508         freadseek, and memchr2.
4509         * lib/getndelim2.c (getndelim2): Use them for block reads.
4510
4511 2008-04-29  Bruno Haible  <bruno@clisp.org>
4512
4513         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
4514         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4515         * modules/inet_ntop (Depends-on): Add extensions.
4516         * modules/inet_pton (Depends-on): Likewise.
4517         Reported by Simon Josefsson.
4518
4519 2008-04-29  Jim Meyering  <meyering@redhat.com>
4520
4521         When the is more than one match in a block, match all of them.
4522         * build-aux/useless-if-before-free: Iterate through each block
4523         until there are no more matches.
4524
4525         Fix broken useless-if-before-free script.
4526         * build-aux/useless-if-before-free: Fix typo: missing "?" after
4527         the expression to match cast of argument to free-like function.
4528
4529 2008-04-29  Eric Blake  <ebb9@byu.net>
4530
4531         Use new header.
4532         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
4533
4534 2008-04-29  Jim Meyering  <meyering@redhat.com>
4535
4536         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
4537         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
4538         by gnulib to exist and to declare e.g., inet_ntop.
4539         Don't include "inet_ntop.h", now removed.
4540
4541         * m4/arpa_inet_h.m4: Remove trailing blanks.
4542
4543 2008-04-29  Eric Blake  <ebb9@byu.net>
4544
4545         Silence valgrind on safe reads beyond potential array bounds.
4546         * lib/rawmemchr.valgrind: New file.
4547         * lib/strchrnul.valgrind: Likewise.
4548         * modules/rawmemchr (Files): Distribute new file.
4549         * modules/strchrnul (Files): Likewise.
4550         Suggested by Bruno Haible.
4551
4552 2008-04-29  Bruno Haible  <bruno@clisp.org>
4553
4554         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
4555         (inet_ntop, inet_pton): Change portability warning's wording.
4556         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
4557         Invoke gl_CHECK_NEXT_HEADERS.
4558         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
4559         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
4560         set ARPA_INET_H.
4561         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4562         * modules/arpa_inet (Description): No longer only for systems that
4563         lack it.
4564         (Depends-on): Add include_next.
4565         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
4566         HAVE_ARPA_INET_H.
4567
4568 2008-04-29  Jim Meyering  <meyering@redhat.com>
4569
4570         * modules/mkdir (License): Re-license as LGPLv2+.
4571
4572 2008-04-29  Bruno Haible  <bruno@clisp.org>
4573
4574         * modules/rawmemchr (Maintainer): Set to Eric.
4575         * modules/strchrnul (Maintainer): Likewise.
4576
4577 2008-04-29  Simon Josefsson  <simon@josefsson.org>
4578
4579         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
4580         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
4581
4582         * modules/arpa_inet (arpa/inet.h): Use them.
4583
4584 2008-04-28  Eric Blake  <ebb9@byu.net>
4585
4586         Test getndelim2.
4587         * modules/getndelim2-tests: New file.
4588         * tests/test-getndelim2.c: Likewise.
4589         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
4590         stream.
4591         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
4592
4593         * MODULES.html.sh: Document new module.
4594
4595 2008-04-20  Bruno Haible  <bruno@clisp.org>
4596
4597         * lib/c-stack.c (die): Use raise.
4598         * modules/c-stack (Depends-on): Add raise.
4599
4600 2008-04-28  Bruno Haible  <bruno@clisp.org>
4601
4602         Expect rpmatch to be declared.
4603         * lib/yesno.c (rpmatch): Remove declaration.
4604
4605         Declare rpmatch.
4606         * lib/stdlib.in.h (rpmatch): New declaration.
4607         * lib/rpmatch.c: Include <stdlib.h> first.
4608         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
4609         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
4610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
4611         HAVE_RPMATCH.
4612         * modules/rpmatch (Depends-on): Add stdlib, extensions.
4613         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4614         (Include): Set to <stdlib.h>.
4615         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
4616         HAVE_RPMATCH.
4617         * NEWS: Document the change.
4618
4619 2008-04-28  Bruno Haible  <bruno@clisp.org>
4620
4621         Change rpmatch to use nl_langinfo when appropriate.
4622         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
4623         (N_): New macro.
4624         (localized_pattern): New function/macro.
4625         (try): Remove match, nomatch arguments. Copy the pattern into safe
4626         memory before caching it.
4627         (rpmatch): Use localized_pattern. Add translator comments.
4628         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
4629         Suggested by Eric Blake.
4630         * modules/rpmatch (Depends-on): Add stdbool.
4631
4632 2008-04-28  Eric Blake  <ebb9@byu.net>
4633
4634         Add rawmemchr module, matching glibc.
4635         * modules/string (Makefile.am): New indicator.
4636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
4637         * lib/string.in.h (rawmemchr): Declare when appropriate.
4638         * modules/rawmemchr: New file.
4639         * m4/rawmemchr.m4: Likewise.
4640         * lib/rawmemchr.c: Likewise.
4641         * modules/rawmemchr-tests: Likewise.
4642         * tests/test-rawmemchr.c: Likewise.
4643         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
4644         module.
4645         * modules/strchrnul (Depends-on): Add rawmemchr.
4646         * lib/strchrnul.c (strchrnul): Optimize a corner case.
4647
4648         Whitespace cleanup.
4649         * tests/test-strchrnul.c: Reindent.
4650         * lib/strchrnul.c: Likewise.
4651
4652         Optimize and test strchrnul.
4653         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
4654         * modules/strchrnul-tests: New file.
4655         * tests/test-strchrnul.c: Likewise.
4656
4657         Remove intprops dependency.
4658         * modules/memchr (Depends-on): Remove intprops.
4659         * modules/memrchr (Depends-on): Likewise.
4660         * modules/memchr2 (Depends-on): Likewise.
4661         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
4662         * lib/memrchr.c (__memrchr): Likewise.
4663         * lib/memrchr2.c (memchr2): Likewise.
4664         Reported by Simon Josefsson.
4665
4666 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4667
4668         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
4669         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4670
4671 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4672
4673         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
4674
4675         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
4676
4677         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
4678
4679         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
4680         declarations.
4681         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
4682
4683         * m4/inet_pton.m4: Don't check for header files.
4684
4685         * m4/inet_ntop.m4: Don't check for header files.
4686
4687 2008-04-28  Simon Josefsson  <simon@josefsson.org>
4688
4689         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
4690         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
4691         trigger for cygwin).
4692         Reported by Bruno Haible  <bruno@clisp.org>.
4693
4694 2008-04-28  Bruno Haible  <bruno@clisp.org>
4695
4696         * doc/posix-functions/strdup.texi: Mention mingw problem.
4697
4698 2008-04-27  Bruno Haible  <bruno@clisp.org>
4699
4700         * modules/stat-time-tests (Depends-on): Add sleep.
4701         * tests/test-stat-time.c (force_unlink): New function.
4702         (cleanup): Use it.
4703         (test_mtime): Remove the ctime related tests.
4704         (test_ctime): New function, containing the ctime related tests.
4705         (main): Call test_ctime, except on native Windows platforms.
4706
4707 2008-04-27  Bruno Haible  <bruno@clisp.org>
4708
4709         * lib/rpmatch.c (rpmatch): Add some comments.
4710         Reported by James Youngman <jay@gnu.org>.
4711
4712 2008-04-27  Bruno Haible  <bruno@clisp.org>
4713
4714         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
4715         quiet NaNs.
4716
4717 2008-04-27  Bruno Haible  <bruno@clisp.org>
4718
4719         Make test-yesno.sh work on mingw.
4720         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
4721         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
4722         (main): Set stdin to binary mode.
4723         * modules/yesno-tests (Depends-on): Add binary-io.
4724
4725 2008-04-27  Bruno Haible  <bruno@clisp.org>
4726
4727         Fix 'isfinite' on x86, x86_64, ia64 platforms.
4728         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
4729         argument that lie outside the IEEE 854 domain.
4730         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
4731         (gl_ISFINITE): Use it.
4732         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
4733
4734 2008-04-27  Bruno Haible  <bruno@clisp.org>
4735
4736         Allow local renaming in config.h.
4737         * lib/memrchr.c (memrchr): Don't undefine outside libc.
4738
4739 2008-04-27  Bruno Haible  <bruno@clisp.org>
4740
4741         * lib/memchr.c (__memchr): Change type of 'i'.
4742         * lib/memchr2.c (memchr2): Likewise.
4743
4744 2008-04-26  Eric Blake  <ebb9@byu.net>
4745         and Bruno Haible  <bruno@clisp.org>
4746
4747         Optimize and test memrchr.
4748         * modules/memrchr (Depends-on): Add intprops.
4749         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
4750         * modules/memrchr-tests: New file.
4751         * tests/test-memrchr.c: New file.
4752
4753 2008-04-26  Bruno Haible  <bruno@clisp.org>
4754
4755         Add tentative support for DragonFly BSD.
4756         * lib/stdio-impl.h: Add macros for DragonFly BSD.
4757         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
4758         fp.
4759         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4760         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
4761         * lib/fpurge.c (fpurge): Likewise.
4762         * lib/freadable.c (freaadable): Likewise.
4763         * lib/freadahead.c (freadahead): Likewise.
4764         * lib/freading.c (freading): Likewise.
4765         * lib/freadptr.c (freadptr): Likewise.
4766         * lib/freadseek.c (freadptrinc): Likewise.
4767         * lib/fseeko.c (fseeko): Likewise.
4768         * lib/fseterr.c (fseterr): Likewise.
4769         * lib/fwritable.c (fwritable): Likewise.
4770         * lib/fwriting.c (fwriting): Likewise.
4771
4772 2008-04-26  Bruno Haible  <bruno@clisp.org>
4773
4774         * lib/stdio-impl.h: New file.
4775         * lib/fbufmode.c: Include stdio-impl.h.
4776         (fbufmode): Use fp_, remove redundant #defines.
4777         * lib/fflush.c: Include stdio-impl.h.
4778         (clear_ungetc_buffer): Remove redundant #defines.
4779         * lib/fpurge.c: Include stdio-impl.h.
4780         (fpurge): Remove redundant #defines.
4781         * lib/freadable.c: Include stdio-impl.h.
4782         (freadable): Remove redundant #defines.
4783         * lib/freadahead.c: Include stdio-impl.h.
4784         (freadahead): Remove redundant #defines.
4785         * lib/freading.c: Include stdio-impl.h.
4786         (freading): Remove redundant #defines.
4787         * lib/freadptr.c: Include stdio-impl.h.
4788         (freadptr): Remove redundant #defines.
4789         * lib/freadseek.c: Include stdio-impl.h.
4790         (freadptrinc): Remove redundant #defines.
4791         * lib/fseeko.c: Include stdio-impl.h.
4792         (rpl_fseeko): Remove redundant #defines.
4793         * lib/fseterr.c: Include stdio-impl.h.
4794         (fseterr): Remove redundant #defines.
4795         * lib/fwritable.c: Include stdio-impl.h.
4796         (fwritable: Remove redundant #defines.
4797         * lib/fwriting.c: Include stdio-impl.h.
4798         (fwriting): Remove redundant #defines.
4799         * modules/fbufmode (Files): Add lib/stdio-impl.h.
4800         * modules/fflush (Files): Likewise.
4801         * modules/fpurge (Files): Likewise.
4802         * modules/freadable (Files): Likewise.
4803         * modules/freadahead (Files): Likewise.
4804         * modules/freading (Files): Likewise.
4805         * modules/freadptr (Files): Likewise.
4806         * modules/freadseek (Files): Likewise.
4807         * modules/fseeko (Files): Likewise.
4808         * modules/fseterr (Files): Likewise.
4809         * modules/fwritable (Files): Likewise.
4810         * modules/fwriting (Files): Likewise.
4811
4812 2008-04-26  Bruno Haible  <bruno@clisp.org>
4813
4814         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4815         restore_seek_optimization, update_fpos_cache): New functions, extracted
4816         from rpl_fflush.
4817         (rpl_fflush): Use them.
4818         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
4819         (gl_REPLACE_FFLUSH): Use it.
4820
4821 2008-04-26  Bruno Haible  <bruno@clisp.org>
4822
4823         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
4824         on Solaris.
4825         * tests/test-xstrtoimax.sh: Likewise.
4826         * tests/test-xstrtoumax.sh: Likewise.
4827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4828
4829 2008-04-26  Bruno Haible  <bruno@clisp.org>
4830
4831         * modules/memchr-tests: New file.
4832         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
4833
4834 2008-04-26  Eric Blake  <ebb9@byu.net>
4835             Bruno Haible  <bruno@clisp.org>
4836
4837         * lib/memchr.c: Include intprops.h.
4838         (__memchr): Optimize parallel detection of matching bytes. Rename local
4839         variables. Add explanatory comments.
4840
4841 2008-04-26  Bruno Haible  <bruno@clisp.org>
4842
4843         Fix module 'memchr', broken since 2000-10-28.
4844         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
4845
4846 2008-04-26  Bruno Haible  <bruno@clisp.org>
4847
4848         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
4849         comments.
4850
4851 2008-04-25  Eric Blake  <ebb9@byu.net>
4852
4853         Use native fstatat on cygwin 1.7.0.
4854         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
4855         first.
4856
4857 2008-04-23  Eric Blake  <ebb9@byu.net>
4858
4859         Improve memchr2 performance.
4860         * lib/memchr2.c (memchr2): Further optimize parallel detection of
4861         NUL bytes.
4862         * modules/memchr2 (Depends-on): Use intprops.h.
4863
4864 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4865
4866         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
4867         an inline function instead of a CPP macro.  Patch by Ben Pfaff
4868         <blp@cs.stanford.edu>.
4869
4870 2008-04-23  Simon Josefsson  <simon@josefsson.org>
4871
4872         * lib/arpa_inet.in.h: New file.
4873
4874         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
4875         (Makefile.am): Sed in substitute header file.
4876
4877         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
4878         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
4879
4880         * modules/inet_ntop (configure.ac): Use
4881         gl_ARPA_INET_MODULE_INDICATOR.
4882
4883         * modules/inet_pton (configure.ac): Use
4884         gl_ARPA_INET_MODULE_INDICATOR.
4885
4886 2008-04-22  Jim Meyering  <meyering@redhat.com>
4887
4888         * modules/verify (License): Re-license as LGPLv2+.
4889
4890 2008-04-22  Simon Josefsson  <simon@josefsson.org>
4891
4892         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
4893         parameter to void* as per POSIX standard (MinGW uses char*).
4894
4895 2008-04-21  Bruno Haible  <bruno@clisp.org>
4896
4897         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4898         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
4899         Define to replacements if REPLACE_ISWCNTRL is 1.
4900         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
4901         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
4902         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
4903         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
4904         what it fixes.
4905         * doc/posix-functions/iswalpha.texi: Likewise.
4906         * doc/posix-functions/iswblank.texi: Likewise.
4907         * doc/posix-functions/iswcntrl.texi: Likewise.
4908         * doc/posix-functions/iswdigit.texi: Likewise.
4909         * doc/posix-functions/iswgraph.texi: Likewise.
4910         * doc/posix-functions/iswlower.texi: Likewise.
4911         * doc/posix-functions/iswprint.texi: Likewise.
4912         * doc/posix-functions/iswpunct.texi: Likewise.
4913         * doc/posix-functions/iswspace.texi: Likewise.
4914         * doc/posix-functions/iswupper.texi: Likewise.
4915         * doc/posix-functions/iswxdigit.texi: Likewise.
4916         Reported by Alain Guibert.
4917
4918 2008-04-21  Bruno Haible  <bruno@clisp.org>
4919
4920         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
4921         Patch by Alain Guibert.
4922
4923 2008-04-21  Bruno Haible  <bruno@clisp.org>
4924
4925         Fix test failures on mingw.
4926         * tests/test-xstrtol.c (print_no_progname): New function.
4927         (main): Install it in error_print_progname hook.
4928         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
4929         * tests/test-xstrtoimax.sh: Likewise.
4930         * tests/test-xstrtoumax.sh: Likewise.
4931
4932 2008-04-21  Bruno Haible  <bruno@clisp.org>
4933
4934         Fix test failure on mingw.
4935         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
4936
4937 2008-04-21  Bruno Haible  <bruno@clisp.org>
4938
4939         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
4940         Actually assign a value.
4941
4942 2008-04-20  Bruno Haible  <bruno@clisp.org>
4943
4944         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
4945         take 2.
4946         * lib/canonicalize.c (canonicalize_file_name): Elide if the
4947         'canonicalize-lgpl' module is also used.
4948         * lib/canonicalize-lgpl.c: Undo last change.
4949         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
4950
4951 2008-04-20  Bruno Haible  <bruno@clisp.org>
4952
4953         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
4954         config.h. Provide _mkdir based fallback for mingw.
4955         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
4956         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
4957         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
4958         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
4959         rather than defining mkdir in config.h.
4960         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
4961         (gl_SYS_STAT_H_DEFAULTS): New macro.
4962         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
4963         HAVE_IO_H any more.
4964         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
4965         HAVE_DECL_MKDIR and HAVE_IO_H.
4966
4967 2008-04-20  Bruno Haible  <bruno@clisp.org>
4968
4969         * lib/isapipe.c: Port to native Windows platforms.
4970
4971 2008-04-20  Bruno Haible  <bruno@clisp.org>
4972
4973         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
4974
4975 2008-04-21  Eric Blake  <ebb9@byu.net>
4976
4977         Work around preprocessors that don't handle UINTMAX_MAX.
4978         * lib/memchr2.c (memchr2): Avoid embedded #if.
4979         Reported by Alain Guibert, fix suggested by Bruno Haible.
4980
4981 2008-04-21  Simon Josefsson  <simon@josefsson.org>
4982
4983         * doc/posix-functions/strftime.texi (strftime): Explain better
4984         Windows incompatibility.  Suggested by Micah Cowan
4985         <micah@cowan.name>.
4986
4987 2008-04-20  Bruno Haible  <bruno@clisp.org>
4988
4989         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
4990         unistr/u8-mblen.
4991
4992 2008-04-20  Bruno Haible  <bruno@clisp.org>
4993
4994         Fix test failure on platforms with non-GNU iconv.
4995         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
4996         (U_TO_U8): Use it, rather than u16_to_u8.
4997         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
4998         units at the end of the input string.
4999         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
5000
5001 2008-04-20  Bruno Haible  <bruno@clisp.org>
5002
5003         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
5004         when the resulting length is 0.
5005         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
5006
5007 2008-04-20  Bruno Haible  <bruno@clisp.org>
5008
5009         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
5010         works.
5011         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
5012
5013 2008-04-20  Bruno Haible  <bruno@clisp.org>
5014
5015         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
5016         * modules/tsearch-tests (configure.ac): Test for initstate function.
5017
5018 2008-04-20  Bruno Haible  <bruno@clisp.org>
5019
5020         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
5021         for nlink_t if missing.
5022         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
5023
5024 2008-04-19  Bruno Haible  <bruno@clisp.org>
5025
5026         Work around snprintf bug on Linux libc5.
5027         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
5028         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
5029         gl_SNPRINTF_SIZE1.
5030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5031         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
5032         that test failed.
5033         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5034         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
5035         * modules/snprintf (Files): Add m4/printf.m4.
5036         * modules/vsnprintf (Files): Likewise.
5037         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
5038         * doc/posix-functions/vsnprintf.texi: Likewise.
5039
5040 2008-04-19  Bruno Haible  <bruno@clisp.org>
5041
5042         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
5043         from 0.0058 to less than 10^-7.
5044
5045 2008-04-19  Bruno Haible  <bruno@clisp.org>
5046
5047         Fix rounding when a precision is given.
5048         * lib/vasnprintf.c (is_borderline): New function.
5049         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
5050         9...9x.
5051         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
5052         %e, %g.
5053         * tests/test-vasprintf-posix.c (test_function): Likewise.
5054         * tests/test-snprintf-posix.h (test_function): Likewise.
5055         * tests/test-sprintf-posix.h (test_function): Likewise.
5056         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
5057         * tests/test-printf-posix.h (test_function): Likewise.
5058         * tests/test-printf-posix.output: Update.
5059         Reported by John Darrington <john@darrington.wattle.id.au> via
5060         Ben Pfaff <blp@cs.stanford.edu>.
5061
5062 2008-04-18  Simon Josefsson  <simon@josefsson.org>
5063
5064         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
5065         Suggested by Bruno Haible <bruno@clisp.org>.
5066
5067 2008-04-17  Bruno Haible  <bruno@clisp.org>
5068
5069         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
5070         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
5071         implementation.
5072         Patch by Bruce Merry <bmerry@gmail.com>.
5073
5074 2008-04-17  Simon Josefsson  <simon@josefsson.org>
5075
5076         * doc/posix-functions/strftime.texi (strftime): Mention that %e
5077         doesn't work under Windows.
5078
5079 2008-04-16  Bruno Haible  <bruno@clisp.org>
5080
5081         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
5082         New macros.
5083         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
5084         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
5085         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
5086         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
5087         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
5088         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
5089         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
5090         macros.
5091         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
5092         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
5093         Northern Sotho, Uighur.
5094
5095 2008-04-16  Bruno Haible  <bruno@clisp.org>
5096
5097         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
5098         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
5099         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
5100         Reported by Daniel Bergström <daniel@octocode.com>.
5101
5102 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
5103             Bruno Haible  <bruno@clisp.org>
5104
5105         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
5106         function.
5107         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
5108         New functions, mostly extracted from gl_locale_name_default.
5109         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
5110
5111 2008-04-16  Eric Blake  <ebb9@byu.net>
5112
5113         Adjust strtod detection to catch glibc 2.7 bug.
5114         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
5115         Reported by John Gatewood Ham.
5116
5117 2008-04-16  Bruno Haible  <bruno@clisp.org>
5118
5119         Add tentative support for Linux libc5.
5120         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
5121         * lib/fpurge.c (fpurge): Likewise.
5122         * lib/freadable.c (freadable): Likewise.
5123         * lib/freadahead.c (freadahead): Likewise.
5124         * lib/freading.c (freading): Likewise.
5125         * lib/freadptr.c (freadptr): Likewise.
5126         * lib/freadseek.c (freadptrinc): Likewise.
5127         * lib/fseeko.c (rpl_fseeko): Likewise.
5128         * lib/fseterr.c (fseterr): Likewise.
5129         * lib/fwritable.c (fwritable): Likewise.
5130         * lib/fwriting.c (fwriting): Likewise.
5131         Reported by Alain Guibert <alguibert+bts@free.fr>.
5132
5133 2008-04-15  Bruno Haible  <bruno@clisp.org>
5134
5135         * modules/mathl (configure.ac): Define module indicator.
5136
5137 2008-04-15  Bruno Haible  <bruno@clisp.org>
5138
5139         * lib/logl.c (logl): Remove unused variables.
5140
5141 2008-04-15  Bruno Haible  <bruno@clisp.org>
5142
5143         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
5144         fails.
5145
5146 2008-04-15  Bruno Haible  <bruno@clisp.org>
5147
5148         * lib/trim.c (trim2): Fix argument of isspace() macro.
5149
5150 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
5151
5152         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
5153         to 0.
5154         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
5155
5156 2008-04-14  Bruno Haible  <bruno@clisp.org>
5157
5158         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
5159         AC_LANG_PROGRAM argument.
5160         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
5161         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
5162         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5163         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5164         * m4/math_h.m4 (gl_MATH_H): Likewise.
5165         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5166         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5167         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
5168         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
5169         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5170         * m4/regex.m4 (gl_REGEX): Likewise.
5171         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
5172         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
5173         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5174         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
5175         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5176         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5177         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5178         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5179
5180 2008-04-14  Jim Meyering  <meyering@redhat.com>
5181
5182         test-strtod: fix typos: s/abs/fabs/
5183         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
5184
5185 2008-04-13  Bruno Haible  <bruno@clisp.org>
5186
5187         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
5188         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
5189         module is also used and while not building the reloc-wrapper.
5190
5191 2008-04-13  Bruno Haible  <bruno@clisp.org>
5192
5193         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
5194
5195 2008-04-13  Bruno Haible  <bruno@clisp.org>
5196
5197         Fix AIX compilation failure introduced on 2008-04-02.
5198         * tests/test-frexp.c (exp): Undefine before redefining.
5199         * tests/test-frexpl.c (exp): Likewise.
5200
5201 2008-04-13  Bruno Haible  <bruno@clisp.org>
5202
5203         Work around a HP-UX stdio bug.
5204         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
5205         * tests/test-ftello.c (main): Likewise.
5206         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
5207         * doc/posix-functions/ftello.texi: Likewise.
5208
5209 2008-04-13  Bruno Haible  <bruno@clisp.org>
5210
5211         Make test-signbit pass on HP-UX/hppa.
5212         * tests/test-signbit.c (minus_zerol): New variable.
5213         (test_signbitl): Use it.
5214
5215 2008-04-13  Bruno Haible  <bruno@clisp.org>
5216
5217         Make truncl work on OSF/1 4.0.
5218         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
5219         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5220         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
5221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
5222         HAVE_DECL_TRUNCL.
5223         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
5224         HAVE_DECL_TRUNCL.
5225         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
5226
5227 2008-04-13  Bruno Haible  <bruno@clisp.org>
5228
5229         * lib/unictype.h: Remove trailing comma from enumeration definitions.
5230
5231 2008-04-13  Bruno Haible  <bruno@clisp.org>
5232
5233         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
5234         expression, so as to avoid HP-UX 11 cc compiler bug.
5235
5236 2008-04-13  Bruno Haible  <bruno@clisp.org>
5237
5238         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
5239
5240 2008-04-13  Bruno Haible  <bruno@clisp.org>
5241
5242         * lib/git-merge-changelog.c: Remove empty declaration outside of
5243         functions.
5244
5245 2008-04-13  Bruno Haible  <bruno@clisp.org>
5246
5247         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
5248
5249 2008-04-13  Bruno Haible  <bruno@clisp.org>
5250
5251         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
5252         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
5253         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
5254         also if it exists but lacks definitions of the SHUT_* macros.
5255         * modules/sys_socket (Description): Update.
5256         Reported by Elbert Pol <e.pol@chello.nl>.
5257
5258 2008-04-13  Bruno Haible  <bruno@clisp.org>
5259
5260         * lib/localcharset.c (OS2): Don't redefine if already defined.
5261         Reported by Elbert Pol <e.pol@chello.nl>.
5262
5263 2008-04-13  Bruno Haible  <bruno@clisp.org>
5264
5265         * lib/binary-io.h [__EMX__]: Include <io.h>.
5266         Reported by Elbert Pol <e.pol@chello.nl>.
5267
5268 2008-04-12  Bruno Haible  <bruno@clisp.org>
5269
5270         * lib/fpucw.h: Enable the definitions also for x86_64.
5271         Needed for NetBSD/x86_64.
5272         Reported by Thomas Klausner <tk@giga.or.at>.
5273
5274 2008-04-12  Bruno Haible  <bruno@clisp.org>
5275
5276         * tests/test-strtod.c: Include isnand.h.
5277         (main): Use isnand instead of isnan.
5278         Reported by Jim Meyering.
5279
5280 2008-04-12  Bruno Haible  <bruno@clisp.org>
5281
5282         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
5283         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5284
5285 2008-04-12  Jim Meyering  <meyering@redhat.com>
5286
5287         * m4/math_h.m4 (gl_MATH_H): Fix typos.
5288
5289 2008-04-12  Bruno Haible  <bruno@clisp.org>
5290
5291         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
5292         Reported by Elbert Pol <e.pol@chello.nl>.
5293
5294 2008-04-12  Eric Blake  <ebb9@byu.net>
5295
5296         Work around Solaris 10 math.h bug.
5297         * m4/math_h.m4 (gl_MATH_H): Check for bug.
5298         (gl_MATH_H_DEFAULTS): Set up default.
5299         * modules/math (Makefile.am): Replace new indicators.
5300         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
5301         * tests/test-math.c (main): Test this.
5302         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
5303         * doc/posix-headers/math.texi (math.h): Mention bug.
5304         Reported by Nelson H. F. Beebe and Jim Meyering.
5305
5306 2008-04-11  Bruno Haible  <bruno@clisp.org>
5307
5308         Adapt to future versions of Apple GCC.
5309         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
5310         Reported by Peter O'Gorman <peter@pogma.com>.
5311
5312 2008-04-11  Bruno Haible  <bruno@clisp.org>
5313
5314         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
5315
5316 2008-04-11  Bruno Haible  <bruno@clisp.org>
5317
5318         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
5319
5320         * modules/getaddrinfo-tests (Makefile.am): Define
5321         test_getaddrinfo_LDADD.
5322
5323 2008-04-11  Bruno Haible  <bruno@clisp.org>
5324
5325         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
5326         (init): Fix syntax error.
5327         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
5328         is declared.
5329
5330 2008-04-11  Bruno Haible  <bruno@clisp.org>
5331
5332         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
5333         * modules/glob (Depends-on): Add stdbool.
5334
5335 2008-04-11  Bruno Haible  <bruno@clisp.org>
5336
5337         * lib/trim.c: Include <string.h>.
5338
5339 2008-04-11  Eric Blake  <ebb9@byu.net>
5340
5341         Avoid compile failure on OS/2.
5342         * lib/regex_internal.h (internal_function): Disable optimization
5343         on OS/2 (__EMX__), where it caused compiler error.
5344         Reported by Elbert Pol.
5345
5346 2008-04-11  Bruno Haible  <bruno@clisp.org>
5347
5348         Flush the standard error stream before aborting. Needed on mingw.
5349         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
5350         * tests/test-array_list.c (ASSERT): Likewise.
5351         * tests/test-array_oset.c (ASSERT): Likewise.
5352         * tests/test-avltree_list.c (ASSERT): Likewise.
5353         * tests/test-avltree_oset.c (ASSERT): Likewise.
5354         * tests/test-avltreehash_list.c (ASSERT): Likewise.
5355         * tests/test-binary-io.c (ASSERT): Likewise.
5356         * tests/test-byteswap.c (ASSERT): Likewise.
5357         * tests/test-c-ctype.c (ASSERT): Likewise.
5358         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
5359         * tests/test-c-strcasestr.c (ASSERT): Likewise.
5360         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
5361         * tests/test-c-strstr.c (ASSERT): Likewise.
5362         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
5363         * tests/test-canonicalize.c (ASSERT): Likewise.
5364         * tests/test-carray_list.c (ASSERT): Likewise.
5365         * tests/test-ceilf1.c (ASSERT): Likewise.
5366         * tests/test-ceilf2.c (ASSERT): Likewise.
5367         * tests/test-ceill.c (ASSERT): Likewise.
5368         * tests/test-count-one-bits.c (ASSERT): Likewise.
5369         * tests/test-fbufmode.c (ASSERT): Likewise.
5370         * tests/test-fflush2.c (ASSERT): Likewise.
5371         * tests/test-floorf1.c (ASSERT): Likewise.
5372         * tests/test-floorf2.c (ASSERT): Likewise.
5373         * tests/test-floorl.c (ASSERT): Likewise.
5374         * tests/test-fopen.c (ASSERT): Likewise.
5375         * tests/test-fpending.c (ASSERT): Likewise.
5376         * tests/test-fprintf-posix.c (ASSERT): Likewise.
5377         * tests/test-fpurge.c (ASSERT): Likewise.
5378         * tests/test-freadable.c (ASSERT): Likewise.
5379         * tests/test-freadahead.c (ASSERT): Likewise.
5380         * tests/test-freading.c (ASSERT): Likewise.
5381         * tests/test-freadptr.c (ASSERT): Likewise.
5382         * tests/test-freadptr2.c (ASSERT): Likewise.
5383         * tests/test-freadseek.c (ASSERT): Likewise.
5384         * tests/test-freopen.c (ASSERT): Likewise.
5385         * tests/test-frexp.c (ASSERT): Likewise.
5386         * tests/test-frexpl.c (ASSERT): Likewise.
5387         * tests/test-fseek.c (ASSERT): Likewise.
5388         * tests/test-fseeko.c (ASSERT): Likewise.
5389         * tests/test-fstrcmp.c (ASSERT): Likewise.
5390         * tests/test-ftell.c (ASSERT): Likewise.
5391         * tests/test-ftello.c (ASSERT): Likewise.
5392         * tests/test-func.c (ASSERT): Likewise.
5393         * tests/test-fwritable.c (ASSERT): Likewise.
5394         * tests/test-fwriting.c (ASSERT): Likewise.
5395         * tests/test-getdelim.c (ASSERT): Likewise.
5396         * tests/test-getline.c (ASSERT): Likewise.
5397         * tests/test-i-ring.c (ASSERT): Likewise.
5398         * tests/test-iconv-utf.c (ASSERT): Likewise.
5399         * tests/test-iconv.c (ASSERT): Likewise.
5400         * tests/test-isfinite.c (ASSERT): Likewise.
5401         * tests/test-isnand.c (ASSERT): Likewise.
5402         * tests/test-isnanf.c (ASSERT): Likewise.
5403         * tests/test-isnanl.h (ASSERT): Likewise.
5404         * tests/test-ldexpl.c (ASSERT): Likewise.
5405         * tests/test-linked_list.c (ASSERT): Likewise.
5406         * tests/test-linkedhash_list.c (ASSERT): Likewise.
5407         * tests/test-localename.c (ASSERT): Likewise.
5408         * tests/test-lseek.c (ASSERT): Likewise.
5409         * tests/test-mbscasecmp.c (ASSERT): Likewise.
5410         * tests/test-mbscasestr1.c (ASSERT): Likewise.
5411         * tests/test-mbscasestr2.c (ASSERT): Likewise.
5412         * tests/test-mbscasestr3.c (ASSERT): Likewise.
5413         * tests/test-mbscasestr4.c (ASSERT): Likewise.
5414         * tests/test-mbschr.c (ASSERT): Likewise.
5415         * tests/test-mbscspn.c (ASSERT): Likewise.
5416         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
5417         * tests/test-mbspbrk.c (ASSERT): Likewise.
5418         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
5419         * tests/test-mbsrchr.c (ASSERT): Likewise.
5420         * tests/test-mbsspn.c (ASSERT): Likewise.
5421         * tests/test-mbsstr1.c (ASSERT): Likewise.
5422         * tests/test-mbsstr2.c (ASSERT): Likewise.
5423         * tests/test-mbsstr3.c (ASSERT): Likewise.
5424         * tests/test-memchr2.c (ASSERT): Likewise.
5425         * tests/test-memmem.c (ASSERT): Likewise.
5426         * tests/test-open.c (ASSERT): Likewise.
5427         * tests/test-printf-frexp.c (ASSERT): Likewise.
5428         * tests/test-printf-frexpl.c (ASSERT): Likewise.
5429         * tests/test-printf-posix.c (ASSERT): Likewise.
5430         * tests/test-quotearg.c (ASSERT): Likewise.
5431         * tests/test-rbtree_list.c (ASSERT): Likewise.
5432         * tests/test-rbtree_oset.c (ASSERT): Likewise.
5433         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
5434         * tests/test-round1.c (ASSERT): Likewise.
5435         * tests/test-roundf1.c (ASSERT): Likewise.
5436         * tests/test-roundl.c (ASSERT): Likewise.
5437         * tests/test-signbit.c (ASSERT): Likewise.
5438         * tests/test-sleep.c (ASSERT): Likewise.
5439         * tests/test-snprintf-posix.c (ASSERT): Likewise.
5440         * tests/test-snprintf.c (ASSERT): Likewise.
5441         * tests/test-sprintf-posix.c (ASSERT): Likewise.
5442         * tests/test-stat-time.c (ASSERT): Likewise.
5443         * tests/test-strcasestr.c (ASSERT): Likewise.
5444         * tests/test-strerror.c (ASSERT): Likewise.
5445         * tests/test-striconv.c (ASSERT): Likewise.
5446         * tests/test-striconveh.c (ASSERT): Likewise.
5447         * tests/test-striconveha.c (ASSERT): Likewise.
5448         * tests/test-strsignal.c (ASSERT): Likewise.
5449         * tests/test-strstr.c (ASSERT): Likewise.
5450         * tests/test-strtod.c (ASSERT): Likewise.
5451         * tests/test-trunc1.c (ASSERT): Likewise.
5452         * tests/test-trunc2.c (ASSERT): Likewise.
5453         * tests/test-truncf1.c (ASSERT): Likewise.
5454         * tests/test-truncf2.c (ASSERT): Likewise.
5455         * tests/test-truncl.c (ASSERT): Likewise.
5456         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
5457         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
5458         * tests/test-vasnprintf.c (ASSERT): Likewise.
5459         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
5460         * tests/test-vasprintf.c (ASSERT): Likewise.
5461         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
5462         * tests/test-vprintf-posix.c (ASSERT): Likewise.
5463         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
5464         * tests/test-vsnprintf.c (ASSERT): Likewise.
5465         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
5466         * tests/test-wcwidth.c (ASSERT): Likewise.
5467         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
5468         * tests/test-xprintf-posix.c (ASSERT): Likewise.
5469         * tests/test-xvasprintf.c (ASSERT): Likewise.
5470         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
5471         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
5472         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
5473         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
5474         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
5475         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
5476         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
5477         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
5478         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
5479         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
5480         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
5481         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
5482         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
5483         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
5484         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
5485         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
5486         * tests/unictype/test-block_list.c (ASSERT): Likewise.
5487         * tests/unictype/test-block_of.c (ASSERT): Likewise.
5488         * tests/unictype/test-block_test.c (ASSERT): Likewise.
5489         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
5490         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
5491         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
5492         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
5493         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
5494         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
5495         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
5496         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
5497         * tests/unictype/test-combining.c (ASSERT): Likewise.
5498         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
5499         * tests/unictype/test-digit.c (ASSERT): Likewise.
5500         * tests/unictype/test-mirror.c (ASSERT): Likewise.
5501         * tests/unictype/test-numeric.c (ASSERT): Likewise.
5502         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
5503         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
5504         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
5505         * tests/unictype/test-scripts.c (ASSERT): Likewise.
5506         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
5507         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
5508         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
5509         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
5510         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
5511         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
5512         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
5513         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
5514         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
5515         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
5516         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
5517         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
5518         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
5519         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
5520         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
5521         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
5522         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
5523         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
5524         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
5525         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
5526         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
5527         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
5528         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
5529         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
5530         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
5531         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
5532         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
5533         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
5534         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
5535         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
5536         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
5537         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
5538         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
5539         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
5540         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
5541         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
5542         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
5543         Reported by Eric Blake.
5544
5545 2008-04-11  Bruno Haible  <bruno@clisp.org>
5546
5547         * lib/wchar.in.h: Tweak comment.
5548
5549 2008-04-11  Bruno Haible  <bruno@clisp.org>
5550
5551         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
5552         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
5553         gl_COMMON.
5554         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
5555
5556 2008-04-11  Bruno Haible  <bruno@clisp.org>
5557
5558         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
5559
5560 2008-04-11  Simon Josefsson  <simon@josefsson.org>
5561
5562         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
5563         of attempting to use non-existing /dev/*random.  Based on patch
5564         from Adam Strzelecki <ono@java.pl> in
5565         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
5566
5567 2008-04-08  Bruno Haible  <bruno@clisp.org>
5568
5569         Add tentative support for emx+gcc.
5570         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
5571         * lib/fpurge.c (fpurge): Likewise.
5572         * lib/freadable.c (freadable): Likewise.
5573         * lib/freadahead.c (freadahead): Likewise.
5574         * lib/freading.c (freading): Likewise.
5575         * lib/freadptr.c (freadptr): Likewise.
5576         * lib/freadseek.c (freadptrinc): Likewise.
5577         * lib/fseeko.c (rpl_fseeko): Likewise.
5578         * lib/fseterr.c (fseterr): Likewise.
5579         * lib/fwritable.c (fwritable): Likewise.
5580         * lib/fwriting.c (fwriting): Likewise.
5581         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
5582
5583 2008-04-09  Eric Blake  <ebb9@byu.net>
5584
5585         Avoid some autoconf warnings.
5586         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
5587         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
5588         * m4/afs.m4 (gl_AFS): Likewise.
5589         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
5590         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
5591         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5592         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
5593         (gl_INTEGER_TYPE_SUFFIX): Likewise.
5594         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
5595         (AC_CHECK_DECLS_ONCE): Likewise.
5596         Rename file...
5597         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
5598         gnulib-tool requires autoconf 2.59 or better.
5599         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
5600
5601 2008-04-08  Eric Blake  <ebb9@byu.net>
5602
5603         Use 'git describe --match' if present (added in git 1.5.5).
5604         * build-aux/git-version-gen: Limit result to tags that match 'v*'
5605         if possible.
5606
5607 2008-04-08  Bruno Haible  <bruno@clisp.org>
5608
5609         Add tentative support for OpenServer.
5610         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
5611         _ptr, _cnt.
5612         * lib/fpurge.c (fpurge): Likewise.
5613         * lib/freadable.c (freadable): Likewise.
5614         * lib/freadahead.c (freadahead): Likewise.
5615         * lib/freading.c (freading): Likewise.
5616         * lib/freadptr.c (freadptr): Likewise.
5617         * lib/freadseek.c (freadptrinc): Likewise.
5618         * lib/fseeko.c (rpl_fseeko): Likewise.
5619         * lib/fseterr.c (fseterr): Likewise.
5620         * lib/fwritable.c (fwritable): Likewise.
5621         * lib/fwriting.c (fwriting): Likewise.
5622         Reported by Roger Cornelius <rac@tenzing.org> and
5623         Brian K. White <brian@aljex.com>.
5624
5625 2008-04-06  Jim Meyering  <meyering@redhat.com>
5626
5627         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
5628
5629 2008-04-06  Bruno Haible  <bruno@clisp.org>
5630
5631         Avoid possible error with non-ASCII bytes in UTF-8 locales.
5632         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
5633         * tests/test-printf-posix.sh: Likewise.
5634         * tests/test-vfprintf-posix.sh: Likewise.
5635         * tests/test-vprintf-posix.sh: Likewise.
5636         * tests/test-xprintf-posix.sh: Likewise.
5637
5638 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5639
5640         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
5641         hide error from 'ls', needed on OS/2.
5642         Report by Elbert Pol <elbert.pol@gmail.com>.
5643
5644 2008-04-04  Eric Blake  <ebb9@byu.net>
5645
5646         Make test-fseeko.c failures meaningful.
5647         * tests/test-fseeko.c: Print line number on failure.
5648         * tests/test-fseek.c: Likewise.
5649         Reported by Nelson H. F. Beebe.
5650
5651         Improve strtod bug detection check.
5652         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
5653         required for Solaris 10.
5654         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
5655
5656 2008-04-04  Bruno Haible  <bruno@clisp.org>
5657
5658         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
5659         by m4/setenv.m4.
5660
5661 2008-04-03  Eric Blake  <ebb9@byu.net>
5662
5663         Ensure sane .version contents.
5664         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
5665         version string.
5666         * build-aux/git-version-gen: Improve documentation.
5667
5668         Make GNU make output nicer.
5669         * top/GNUmakefile [!_have-Makefile]: Add dependency on
5670         MAKECMDGOALS to enforce message for all command line targets.  Set
5671         srcdir for use in maint.mk.
5672
5673         Another maintainer tweak.
5674         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
5675         a target that regenerates version.
5676
5677 2008-04-03  Jim Meyering  <meyering@redhat.com>
5678
5679         vc-list-files: don't cause coreutils "make po-check" failure
5680         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
5681
5682 2008-04-03  Eric Blake  <ebb9@byu.net>
5683
5684         Allow VPATH usage of vc-list-files.
5685         * build-aux/vc-list-files (scriptversion): Add timestamp.
5686         (options): Add --help, --version, -C.
5687         (CVS): Support installed cvsu.
5688
5689 2008-04-02  Bruno Haible  <bruno@clisp.org>
5690
5691         Avoid some "statement with no effect" warnings from gcc.
5692         * tests/test-wctype.c (main): Explicitly ignore unused values.
5693         Reported by Jim Meyering.
5694
5695 2008-04-02  Jim Meyering  <meyering@redhat.com>
5696
5697         Avoid some warnings from "gcc -Wshadow".
5698         * tests/test-frexp.c (exp): Define to a different identifier.
5699         * tests/test-frexpl.c (exp): Likewise.
5700
5701 2008-04-03  Jim Meyering  <meyering@redhat.com>
5702
5703         bootstrap: remove dangling *.[ch] symlinks from lib
5704         * build-aux/bootstrap [dangling symlink removal]: Move find's
5705         -depth option to precede all others, to avoid a warning.
5706         Remove *.[ch] files too, and from "$source_base" (usually lib/).
5707
5708 2008-04-02  Bruno Haible  <bruno@clisp.org>
5709
5710         Avoid some warnings from "gcc -Wshadow".
5711         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
5712         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
5713         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
5714         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
5715         Reported by Jim Meyering.
5716
5717 2008-04-01  Bruno Haible  <bruno@clisp.org>
5718
5719         Fix test to work on IRIX 6.5 with cc.
5720         * tests/test-math.c (numeric_equal): New function.
5721         (main): Use it.
5722
5723 2008-04-01  Bruno Haible  <bruno@clisp.org>
5724
5725         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
5726
5727 2008-04-01  Bruno Haible  <bruno@clisp.org>
5728
5729         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
5730         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5731         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
5732         (Depends-on): Remove math.
5733
5734         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
5735         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5736         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
5737         (Depends-on): Remove math.
5738
5739         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
5740         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5741         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
5742         (Depends-on): Remove math.
5743         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
5744         (Depends-on): Remove math.
5745
5746         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
5747         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
5748         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
5749         (Depends-on): Remove math.
5750         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
5751         (Depends-on): Remove math.
5752
5753         * tests/test-round1.c: Include nan.h.
5754         (main): Use NaNd instead of NAN.
5755         * modules/round-tests (Files): Add tests/nan.h.
5756
5757         * tests/test-trunc1.c: Include nan.h.
5758         (main): Use NaNd instead of NAN.
5759         * modules/trunc-tests (Files): Add tests/nan.h.
5760
5761         * tests/test-roundf1.c: Include nan.h.
5762         (main): Use NaNf instead of NAN.
5763         * modules/roundf-tests (Files): Add tests/nan.h.
5764
5765         * tests/test-truncf1.c: Include nan.h.
5766         (main): Use NaNf instead of NAN.
5767         * modules/truncf-tests (Files): Add tests/nan.h.
5768
5769         * tests/test-ceilf1.c: Include nan.h.
5770         (main): Use NaNf instead of NAN.
5771         * modules/ceilf-tests (Files): Add tests/nan.h.
5772
5773         * tests/test-floorf1.c: Include nan.h.
5774         (main): Use NaNf instead of NAN.
5775         * modules/floorf-tests (Files): Add tests/nan.h.
5776
5777         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
5778         (main): Use NaNf instead of NAN.
5779         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
5780
5781         * tests/test-isnand.c: Include nan.h instead of <math.h>.
5782         (main): Use NaNd instead of NAN.
5783         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
5784
5785         * tests/test-frexp.c: Include nan.h.
5786         (main): Use NaNd instead of NAN.
5787         * modules/frexp-tests (Files): Add tests/nan.h.
5788
5789         * lib/isnan.c: Don't include <math.h>.
5790         (FUNC): Don't use NAN macro.
5791         * modules/isnand-nolibm (Depends-on): Remove math.
5792         * modules/isnanf-nolibm (Depends-on): Remove math.
5793         * modules/isnanl (Depends-on): Remove math.
5794         * modules/isnanl-nolibm (Depends-on): Remove math.
5795
5796         * tests/nan.h: New file.
5797
5798 2008-04-01  Eric Blake  <ebb9@byu.net>
5799
5800         Fix typos.
5801         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
5802         values to be the right type.
5803
5804         For now, cater to gnulib strtod inaccuracies.
5805         * tests/test-strtod.c (main): Allow 1-ulp error on expected
5806         fractional results.  While not as nice from a QoI perspective, it
5807         is a quicker patch than correctly implementing decimal to binary
5808         rounding.
5809
5810 2008-03-31  Eric Blake  <ebb9@byu.net>
5811
5812         Guarantee a definition of NAN.
5813         * lib/math.in.h (NAN): Define if missing.
5814         * tests/test-math.c (main): Test it.
5815         * doc/posix-headers/math.texi (math.h): Document this.
5816         * lib/isnan.c (rpl_isnand): Use it.
5817         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
5818         * tests/test-floorf1.c (NaN): Likewise.
5819         * tests/test-frexp.c (NaN): Likewise.
5820         * tests/test-isnand.c (NaN): Likewise.
5821         * tests/test-isnanf.c (NaN): Likewise.
5822         * tests/test-round1.c (NaN): Likewise.
5823         * tests/test-roundf1.c (NaN): Likewise.
5824         * tests/test-snprintf-posix.h (NaN): Likewise.
5825         * tests/test-sprintf-posix.h (NaN): Likewise.
5826         * tests/test-trunc1.c (NaN): Likewise.
5827         * tests/test-truncf1.c (NaN): Likewise.
5828         * tests/test-vasnprintf-posix.c (NaN): Likewise.
5829         * tests/test-vasprintf-posix.c (NaN): Likewise.
5830         * modules/isnand-nolibm (Depends-on): Add math.
5831         * modules/isnanf-nolibm (Depends-on): Likewise.
5832         * modules/isnanl (Depends-on): Likewise.
5833         * modules/isnanl-nolibm (Depends-on): Likewise.
5834         * modules/snprintf-posix-tests (Depends-on): Likewise.
5835         * modules/sprintf-posix-tests (Depends-on): Likewise.
5836         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
5837         * modules/vsprintf-posix-tests (Depends-on): Likewise.
5838         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
5839         * modules/vasprintf-posix-tests (Depends-on): Likewise.
5840
5841 2008-03-31  Bruno Haible  <bruno@clisp.org>
5842
5843         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
5844         * doc/posix-functions/strtod.texi: Likewise.
5845
5846 2008-03-31  Bruno Haible  <bruno@clisp.org>
5847
5848         * tests/test-strtod.c (main): Don't use C99 syntax.
5849
5850 2008-03-31  Bruno Haible  <bruno@clisp.org>
5851
5852         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
5853         Reported by Eric Blake.
5854
5855 2008-03-31  Jim Meyering  <meyering@redhat.com>
5856
5857         Don't compare actual signbit return values.
5858         * tests/test-strtod.c (main): Rather, compare only their
5859         zero/non-zero nature.
5860
5861 2008-03-31  Eric Blake  <ebb9@byu.net>
5862
5863         More strtod documentation.
5864         * doc/posix-functions/strtod.texi (strtod): Interpret more test
5865         failures as distinct bugs.
5866
5867 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5868
5869         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
5870         Problem reported by Erik Benada in
5871         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
5872
5873 2008-03-30  Bruno Haible  <bruno@clisp.org>
5874
5875         * tests/test-strtod.c: Add comments about which assertion fails on which
5876         platform.
5877         * doc/posix-functions/strtod.texi: Add info about many more platforms.
5878
5879 2008-03-30  Eric Blake  <ebb9@byu.net>
5880
5881         Test signbit behavior on zeros.
5882         * tests/test-signbit.c (test_signbitf): Add tests for zero.
5883         (test_signbitd, test_signbitl): Likewise.
5884
5885         More strtod touchups.
5886         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
5887         sign of negative underflow, for now.  Use .5, not .1.
5888         * doc/posix-functions/strtod.texi (strtod): Mention these
5889         limitations.
5890         Reported by Jim Meyering.
5891
5892 2008-03-30  Bruno Haible  <bruno@clisp.org>
5893
5894         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
5895         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
5896
5897 2008-03-30  Bruno Haible  <bruno@clisp.org>
5898
5899         Avoid failure when attempting to return empty iconv results on some
5900         platforms.
5901         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
5902         allocation, don't report ENOMEM when the resulting string is empty.
5903
5904 2008-03-30  Bruno Haible  <bruno@clisp.org>
5905
5906         Fix buffer overrun.
5907         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
5908         Don't consider the width for tmp_length. Check count against tmp_length
5909         before doing the padding. Ensure enough allocation during padding.
5910
5911 2008-03-30  Eric Blake  <ebb9@byu.net>
5912
5913         strtod touchups.
5914         * lib/strtod.c (strtod): Avoid compiler warnings.
5915         Reported by Jim Meyering.
5916
5917 2008-03-30  Bruno Haible  <bruno@clisp.org>
5918
5919         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
5920         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
5921         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
5922         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
5923         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
5924         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
5925         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
5926         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
5927
5928         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
5929         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
5930         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
5931         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
5932         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
5933         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
5934         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
5935         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
5936
5937         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
5938         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
5939         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
5940         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
5941         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
5942         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
5943         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
5944         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
5945
5946         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
5947         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
5948
5949         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
5950         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
5951
5952         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
5953         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
5954
5955         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
5956         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
5957         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
5958
5959         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
5960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
5961         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
5962
5963         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
5964         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
5965         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
5966
5967         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
5968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
5969         * modules/vasprintf (Depends-on): Add EOVERFLOW.
5970
5971         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
5972         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
5973         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
5974         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
5975         (Depends-on): Add EOVERFLOW.
5976         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
5977         (Depends-on): Add EOVERFLOW.
5978         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5979         (Depends-on): Add EOVERFLOW.
5980         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5981         (Depends-on): Add EOVERFLOW.
5982         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5983         (Depends-on): Add EOVERFLOW.
5984         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5985         (Depends-on): Add EOVERFLOW.
5986         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5987         (Depends-on): Add EOVERFLOW.
5988         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5989         (Depends-on): Add EOVERFLOW.
5990
5991         * lib/sprintf.c (EOVERFLOW): Remove fallback.
5992         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
5993         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
5994
5995         * lib/snprintf.c (EOVERFLOW): Remove fallback.
5996         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
5997         * modules/snprintf (Depends-on): Add EOVERFLOW.
5998
5999         * lib/poll.c (EOVERFLOW): Remove fallback.
6000         * modules/poll (Depends-on): Add EOVERFLOW.
6001
6002         * lib/getugroups.c (EOVERFLOW): Remove fallback.
6003         * modules/getugroups (Depends-on): Add EOVERFLOW.
6004
6005         * lib/getdelim.c (EOVERFLOW): Remove fallback.
6006         * modules/getdelim (Depends-on): Add EOVERFLOW.
6007
6008         * lib/ftell.c (EOVERFLOW): Remove fallback.
6009         * modules/ftell (Depends-on): Add EOVERFLOW.
6010
6011         * lib/fprintf.c (EOVERFLOW): Remove fallback.
6012         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
6013         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
6014
6015         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
6016
6017         * modules/EOVERFLOW-tests: New file.
6018         * tests/test-EOVERFLOW.c: New file.
6019
6020         * modules/EOVERFLOW: New file.
6021         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
6022
6023 2008-03-30  Bruno Haible  <bruno@clisp.org>
6024
6025         Fix bug introduced on 2007-06-10.
6026         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
6027         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
6028
6029 2008-03-30  Bruno Haible  <bruno@clisp.org>
6030
6031         Improve freadseek's efficiency after ungetc.
6032         * lib/freadseek.c: Include freadahead.h.
6033         (freadptrinc): New function, extracted from freadseek.
6034         (freadseek): Use it in a loop. Use freadahead to determine the number
6035         of loop iterations.
6036         * modules/freadseek (Depends-on): Add freadahead.
6037         (configure.ac): Require AC_C_INLINE.
6038
6039 2008-03-30  Bruno Haible  <bruno@clisp.org>
6040
6041         * lib/freadseek.c (freadseek): Don't ignore the return value of
6042         freadptr.
6043
6044 2008-03-29  Eric Blake  <ebb9@byu.net>
6045
6046         Add hex float support.
6047         * modules/strtod (Depends-on): Add c-ctype.
6048         (Link): Mention POW_LIB.
6049         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
6050         whitespace between 'e' and exponent.
6051         * tests/test-strtod.c (main): Enable hex float tests.
6052         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
6053         now provides.
6054
6055         Document various strtod bugs, with some fixes.
6056         * doc/posix-functions/strtod.texi (strtod): Document bugs with
6057         "-0x", "inf", "nan", and hex constants.
6058         * doc/posix-functions/atof.texi (atof): Likewise.
6059         * modules/stdlib (Makefile.am): Support strtod.
6060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6061         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
6062         detect additional strtod bugs.
6063         * lib/stdlib.in.h (rpl_strtod): Add declarations.
6064         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
6065         bool where appropriate.  Parse 'inf' and 'nan'.
6066         * tests/test-strtod.c: New file.
6067         * modules/strtod (Depends-on): Add stdbool, stdlib.
6068         (configure.ac): Turn on module indicator.
6069         * modules/strtod-tests: New module.
6070
6071 2008-03-29  Eric Blake  <ebb9@byu.net>
6072
6073         Fix ftell on mingw.
6074         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
6075         * modules/ftell-tests (Depends-on): Add binary-io.
6076         * modules/ftello-tests (Depends-on): Likewise.
6077         * tests/test-ftell.c (main): Enhance test to cover behavior after
6078         ungetc.  Enforce binary mode.
6079         * tests/test-ftello.c (main): Likewise.
6080
6081         Pass test-freadseek on cygwin.
6082         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
6083         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
6084         ungetc buffer.
6085
6086         * tests/test-fflush2.c (main): Fix typo.
6087
6088 2008-03-29  Bruno Haible  <bruno@clisp.org>
6089
6090         * tests/test-fflush2.c (main): Temporarily disable the contents of
6091         this test.
6092         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
6093         Reported by Eric Blake.
6094
6095 2008-03-28  Simon Josefsson  <simon@josefsson.org>
6096
6097         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
6098         (GC_SHA224_DIGEST_SIZE): Add.
6099
6100         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
6101         (gc_hash_digest_length): Likewise.
6102         (gc_hash_buffer): Likewise.
6103
6104 2008-03-25  Bruno Haible  <bruno@clisp.org>
6105
6106         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
6107         detail which gettext release to use.
6108         Reported by Simon Josefsson.
6109
6110 2008-03-26  Jim Meyering  <meyering@redhat.com>
6111
6112         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
6113         * modules/gnumakefile (clean-GNUmakefile): Also, use
6114         test ... && ... || : syntax rather than if-then ... fi.
6115
6116         gnumakefile: Don't double-quote-expand $(VPATH) value.
6117         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
6118
6119 2008-03-24  Eric Blake  <ebb9@byu.net>
6120
6121         Alter GNUmakefile to install into top directory.
6122         * modules/maintainer-makefile: Split, and add dependency...
6123         * modules/gnumakefile: to this new module.
6124         * build-aux/GNUmakefile: Move...
6125         * top/GNUmakefile: ...here.
6126         * build-aux/maint.mk: Move...
6127         * top/maint.mk: ...here.
6128         * MODULES.html.sh (Support for maintaining...): Document new
6129         module.
6130
6131 2008-03-23  Bruno Haible  <bruno@clisp.org>
6132
6133         * gnulib-tool: New options --vc-files, --no-vc-files.
6134         (func_usage): Document them.
6135         (vc_files): New variable.
6136         (func_import): Consider vc_files.
6137         (func_create_testdir): Set vc_files to empty.
6138         Suggested by Jim Meyering and Karl Berry.
6139
6140 2008-03-23  Bruno Haible  <bruno@clisp.org>
6141
6142         Fix regex compilation error on HP-UX 11.
6143         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
6144         * modules/regex (Files): Add m4/mbstate_t.m4.
6145         Reported by Ton Voon <ton.voon@altinity.com>.
6146
6147 2008-03-23  Bruno Haible  <bruno@clisp.org>
6148
6149         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
6150
6151 2008-03-23  Eric Blake  <ebb9@byu.net>
6152             Bruno Haible  <bruno@clisp.org>
6153
6154         Install files from top/ in the destination directory.
6155         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
6156         augmentation also for the files from top/.
6157         (func_import, func_create_testdir): Rewrite file names:
6158         top/filename -> filename.
6159
6160 2008-03-23  Bruno Haible  <bruno@clisp.org>
6161
6162         Tweak "gnulib --version" output.
6163         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
6164
6165 2008-03-23  Bruno Haible  <bruno@clisp.org>
6166
6167         Tweak "gnulib --version" output.
6168         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
6169         rather than contents of ChangeLog, when possible.
6170
6171 2008-03-21  Eric Blake  <ebb9@byu.net>
6172
6173         More --version tweaks.
6174         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
6175         date of last ChangeLog entry.
6176
6177 2008-03-21  Jim Meyering  <meyering@redhat.com>
6178
6179         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
6180
6181 2008-03-20  Eric Blake  <ebb9@byu.net>
6182
6183         VPATH fix.
6184         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
6185
6186 2008-03-20  Simon Josefsson  <simon@josefsson.org>
6187
6188         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
6189         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
6190
6191 2008-03-20  Eric Blake  <ebb9@byu.net>
6192
6193         Sync GNUmakefile with coreutils.
6194         * build-aux/GNUmakefile (have-Makefile): Rename...
6195         (_have-Makefile): ...to this, for namespace consideration.
6196         (GNUmakefile.cfg): Include, if present.
6197         (_autoreconf): Define a default.
6198         (_is-dist-target): New rule for rebuilds to pick up intra-release
6199         version.
6200         (maint-cfg.mk): Rename...
6201         (cfg.mk): ...to this.
6202
6203 2008-03-18  Jim Meyering  <meyering@redhat.com>
6204
6205         New script and module: mktempd
6206         * MODULES.html.sh (maint+release support): Add mktempd.
6207         * build-aux/mktempd: New file.
6208         * modules/mktempd: New file.
6209
6210 2008-03-15  Jim Meyering  <meyering@redhat.com>
6211
6212         Undo last change.
6213         * lib/sha1.c, lib/md5.c: 63 != ~63.
6214         Reported by Andreas Schwab.
6215
6216         sha1.c, md5.c: Hoist a redundant expression.
6217         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
6218         "ctx->buflen" only once, before calling *_process_block.
6219         * lib/md5.c (md5_process_bytes): Likewise.
6220
6221 2008-03-14  Eric Blake  <ebb9@byu.net>
6222
6223         Bump copyright year in files generated by gnulib-tool.
6224         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
6225         gnulib-tool, rather than hard-coding it.
6226
6227         Fix 'gnulib-tool --version' output to work with git.
6228         * gnulib-tool (func_gnulib_dir): New function, extracted from...
6229         (startup): ...here.
6230         (func_version): Use it to invoke git-version-gen, rather than
6231         relying on CVS keyword expansion.  Modernize wording.
6232         (cvsdatestamp, last_checkin_date, version): Kill unused
6233         variables.
6234
6235 2008-03-12  Jim Meyering  <meyering@redhat.com>
6236
6237         Recognize optional cast of the argument to free.
6238         * build-aux/useless-if-before-free: Update regexps.
6239
6240         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
6241
6242 2008-03-11  Bruno Haible  <bruno@clisp.org>
6243
6244         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
6245         by a single package.
6246         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
6247         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
6248         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
6249         Reported by Sam Steingold <sds@gnu.org>.
6250
6251 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
6252
6253         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
6254         repositories.
6255
6256 2008-03-11  Bruno Haible  <bruno@clisp.org>
6257
6258         Avoid conflicts between local macro definitions.
6259         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6260         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
6261
6262 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
6263             Bruno Haible  <bruno@clisp.org>
6264
6265         Make va_copy work with some version of xlc on AIX 5.1.
6266         * lib/stdarg.in.h: New file.
6267         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
6268         On AIX, use a <stdarg.h> file substitute.
6269         * modules/stdarg (Files): Add lib/stdarg.in.h.
6270         (Depends-on): Add include_next.
6271         (Makefile.am): Build a stdarg.h substitute if requested.
6272         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
6273
6274 2008-03-10  Bruno Haible  <bruno@clisp.org>
6275
6276         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
6277         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6278         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6279
6280 2008-03-10  Bruno Haible  <bruno@clisp.org>
6281
6282         * modules/stdlib (Depends-on): Add include_next, remove
6283         absolute-header.
6284
6285 2008-03-09  Bruno Haible  <bruno@clisp.org>
6286
6287         * lib/freadahead.h (freadahead): Document more precisely.
6288         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
6289         the sum of both buffer sizes.
6290         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
6291         * NEWS: Document the change.
6292
6293 2008-03-09  Bruno Haible  <bruno@clisp.org>
6294
6295         Extend freadptr to return also the buffer size.
6296         * lib/freadptr.h (freadptr): Add sizep argument.
6297         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
6298         (freadptr): Add sizep argument. Determine buffer size like freadahead
6299         does.
6300         * tests/test-freadptr.c: Don't include freadahead.h.
6301         (main): Adapt for new calling convention of freadptr.
6302         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
6303         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
6304         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
6305         tests/test-freadptr2.sh.
6306         (Depends): Remove freadahead.
6307         (TESTS): Add test-freadptr2.sh.
6308         (check_PROGRAMS): Add test-freadptr2.
6309
6310 2008-03-09  Bruno Haible  <bruno@clisp.org>
6311
6312         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
6313         Report and solution by Simon Josefsson.
6314
6315 2008-03-06  Bruno Haible  <bruno@clisp.org>
6316
6317         Make fflush after ungetc work on BSD platforms.
6318         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
6319         * tests/test-fflush2.c: New file.
6320         * tests/test-fflush2.sh: New file.
6321         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
6322         tests/test-fflush2.c.
6323         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
6324         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
6325
6326 2008-03-06  Eric Blake  <ebb9@byu.net>
6327
6328         Likewise for ftello.
6329         * modules/ftello (Dependencies): Add extensions.
6330         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
6331
6332 2008-03-06  Bruno Haible  <bruno@clisp.org>
6333
6334         * modules/fseeko (Dependencies): Add extensions.
6335         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
6336         Needed on glibc systems.
6337
6338 2008-03-06  Bruno Haible  <bruno@clisp.org>
6339
6340         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
6341         email address.
6342         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6343
6344 2008-03-06  Bruno Haible  <bruno@clisp.org>
6345
6346         * users.txt: Add libgnupdf.
6347
6348 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6349
6350         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
6351         (Header File Substitutes, Function Substitutes,
6352         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
6353         (Build robot for gnulib): Fix typo.
6354
6355 2008-03-06  Bruno Haible  <bruno@clisp.org>
6356
6357         * doc/gnulib-tool.texi (VCS Issues): Small updates.
6358         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6359
6360 2008-03-06  Bruno Haible  <bruno@clisp.org>
6361
6362         * doc/func.texi: New file, extracted from doc/gnulib.texi.
6363         * doc/gnulib.texi: Include it.
6364
6365 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6366
6367         * modules/func (License): Change license to unlimited; there was
6368         no LGPL parts in the module anyway.
6369
6370 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6371
6372         * modules/__func__: Renamed to modules/func.
6373         * modules/__func__-tests: Renamed to modules/func-tests.
6374         * tests/test-__func__.c: Renamed to tests/test-func.c.
6375         * m4/__func__.m4: Renamed to m4/func.m4.
6376         * doc/gnulib.texi (__func__): Section renamed to func.
6377         Suggested by Eric Blake <ebb9@byu.net>.
6378
6379 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6380
6381         * doc/gnulib.texi (__func__): Use C99 terminology when talking
6382         about __func__.  Make example self-contained.  Suggested by Eric
6383         Blake <ebb9@byu.net>.
6384
6385         * tests/test-__func__.c (main): Avoid extraneous () around __func.
6386         Suggested by Eric Blake <ebb9@byu.net>.
6387
6388 2008-03-06  Simon Josefsson  <simon@josefsson.org>
6389
6390         * modules/__func__: New file.
6391         * modules/__func__-tests: New file.
6392         * tests/test-__func__.c: New file.
6393         * m4/__func__.m4: New file.
6394         * doc/gnulib.texi (__func__): Document __func__ module.
6395
6396 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6397
6398         * modules/byteswap (License): Re-license as LGPLv2+.
6399
6400 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6401
6402         * doc/Makefile: Add pdf target.
6403
6404 2008-03-05  Simon Josefsson  <simon@josefsson.org>
6405
6406         * modules/inline (License): Use 'unlimited', since there are only
6407         *.m4 files in this module.
6408
6409 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6410             Bruno Haible  <bruno@clisp.org>
6411
6412         Add support for HP C 7.1 on OpenVMS 8.3.
6413         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
6414
6415 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
6416
6417         Update VMS specifics.
6418         * lib/getopt.c [VMS]: Remove include of unixlib.h.
6419
6420 2008-03-02  Jim Meyering  <meyering@redhat.com>
6421
6422         Remove the last dependency on the "free" module.
6423         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
6424         Reported by Bob Proulx.
6425
6426         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
6427
6428         Remove useless "if" tests before free.  Deprecate "free" module.
6429         * doc/posix-functions/free.texi: Mention that this
6430         module is no longer useful.
6431         * modules/free (Notice): Say this module is obsolete.
6432         * modules/readutmp (Depends-on): Remove free.
6433         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
6434         * lib/putenv.c (putenv): Likewise.
6435         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
6436         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
6437         * tests/test-c-strcasestr.c (main): Likewise.
6438         * tests/test-c-strstr.c (main): Likewise.
6439         * tests/test-mbscasestr1.c (main): Likewise.
6440         * tests/test-mbscasestr2.c (main): Likewise.
6441         * tests/test-mbsstr1.c (main): Likewise.
6442         * tests/test-mbsstr2.c (main): Likewise.
6443         * tests/test-memmem.c (main): Likewise.
6444         * tests/test-strcasestr.c (main): Likewise.
6445         * tests/test-striconv.c (main): Likewise.
6446         * tests/test-striconveh.c (main): Likewise.
6447         * tests/test-striconveha.c (main): Likewise.
6448         * tests/test-strstr.c (main): Likewise.
6449
6450         * build-aux/git-version-gen: Adjust a comment and the Usage string.
6451
6452         bootstrap: sync from coreutils again
6453         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
6454
6455 2008-03-01  Jim Meyering  <meyering@redhat.com>
6456
6457         bootstrap: sync from coreutils
6458         * build-aux/bootstrap (update_po_files): Copy a .po file into place
6459         also when the target doesn't exist.
6460
6461 2008-03-01  Eric Blake  <ebb9@byu.net>
6462
6463         Fix bugs in last patch.
6464         * lib/memchr2.c (memchr2): Fix typo.
6465         * tests/test-memchr2.c: Test previous bug, and don't use GNU
6466         extension.
6467         Reported by Bruce Korb.
6468
6469         New module 'memchr2'.
6470         * modules/memchr2: New file.
6471         * modules/memchr2-tests: Likewise.
6472         * lib/memchr2.h: Likewise.
6473         * lib/memchr2.c: Likewise, based on memchr.c.
6474         * tests/test-memchr2.c: New test.
6475         * MODULES.html.sh (String handling): Add memchr2.
6476
6477 2008-02-29  Bruno Haible  <bruno@clisp.org>
6478
6479         * modules/freadseek-tests: New file.
6480         * tests/test-freadseek.sh: New file.
6481         * tests/test-freadseek.c: New file.
6482
6483         New module 'freadseek'.
6484         * modules/freadseek: New file.
6485         * lib/freadseek.h: New file.
6486         * lib/freadseek.c: New file.
6487         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
6488
6489 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
6490
6491         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
6492         wydawca.
6493
6494         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
6495         program_invocation_name and program_invocation_short_name are
6496         present.
6497
6498 2008-02-28  Bruno Haible  <bruno@clisp.org>
6499
6500         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
6501         * tests/test-freadptr.sh: Also test non-seekable stdin.
6502
6503 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
6504
6505         * build-aux/bootstrap (source_base, m4_base)
6506         (doc_base, tests_base): New variables.
6507         (gnulib_tool_options): Do not hardcode base directories, use
6508         the above variables instead.
6509
6510 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
6511
6512         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
6513
6514 2008-02-28  Bruno Haible  <bruno@clisp.org>
6515
6516         * modules/freadptr-tests: New file.
6517         * tests/test-freadptr.sh: New file.
6518         * tests/test-freadptr.c: New file.
6519
6520         New module 'freadptr'.
6521         * modules/freadptr: New file.
6522         * lib/freadptr.h: New file.
6523         * lib/freadptr.c: New file.
6524         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
6525
6526 2008-02-26  Karl Berry  <karl@freefriends.org>
6527
6528         Sync from Libtool:
6529         * libltdl/argz.c (argz_add, argz_count): New functions.
6530         * libltdl/argz.in.h: Declare them.
6531         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
6532
6533 2008-02-22  Bruno Haible  <bruno@clisp.org>
6534
6535         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
6536         is a pointer type.  Needed for HP-UX 10.
6537         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
6538         * doc/posix-functions/gmtime_r.texi: Likewise.
6539         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
6540
6541 2008-02-24  Bruno Haible  <bruno@clisp.org>
6542
6543         * modules/environ-tests: New file.
6544         * tests/test-environ.c: New file.
6545
6546         New module 'environ'.
6547         * modules/environ: New file.
6548         * lib/unistd.in.h (environ): New declaration.
6549         * m4/environ.m4: New file.
6550         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
6551         after use.
6552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
6553         HAVE_DECL_ENVIRON.
6554         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
6555         HAVE_DECL_ENVIRON.
6556         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
6557         wrong claim that 'environ' is missing on some systems.
6558         * modules/execute (Depends-on): Add environ.
6559         * lib/execute.c (environ): Remove fallback declaration.
6560         * modules/pipe (Depends-on): Add environ.
6561         * lib/pipe.c (environ): Remove fallback declaration.
6562         * modules/setenv (Depends-on): Add environ.
6563         * lib/setenv.c (environ): Remove fallback declaration.
6564         * modules/unsetenv (Depends-on): Add environ.
6565         * lib/unsetenv.c (environ): Remove fallback declaration.
6566         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
6567         m4/environ.m4.
6568         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
6569         (gl_PREREQ_UNSETENV): Likewise.
6570
6571 2008-02-24  Bruno Haible  <bruno@clisp.org>
6572
6573         * doc/posix-functions/environ.texi: Document the MacOS X problem.
6574
6575 2008-02-20  Bob Proulx  <bob@proulx.com>
6576
6577         Enable use of older two part flavor 'git describe'.
6578         * build-aux/git-version-gen: If using the older two part flavor of
6579         git version then recreate the third part now present in the
6580         newer three part flavor of git describe.
6581
6582 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
6583
6584         * lib/fts.c (fts_build): Typo correction to comment.
6585
6586 2008-02-17  Bruno Haible  <bruno@clisp.org>
6587
6588         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
6589         generating no-op conflicts.
6590
6591 2008-02-17  Bruno Haible  <bruno@clisp.org>
6592
6593         Speed up by 10%.
6594         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
6595         result_entries, rather than an index-based loop.
6596
6597 2008-02-17  Bruno Haible  <bruno@clisp.org>
6598
6599         Speed up by 25%.
6600         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
6601         'hashcode_cached'.
6602         (entry_create): New function.
6603         (entry_hashcode): Use the cached hashcode if possible.
6604         (read_changelog_file, try_split_merged_entry): Use entry_create.
6605
6606 2008-02-17  Bruno Haible  <bruno@clisp.org>
6607
6608         Speed up from O(n^2) to O(n) for long ChangeLog files.
6609         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
6610         (read_changelog_file): Change implementation of entries_reversed list
6611         to rbtreehash.
6612         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
6613
6614 2008-02-17  Bruno Haible  <bruno@clisp.org>
6615
6616         New option --split-merged-entry.
6617         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
6618         (find_paragraph_end, try_split_merged_entry): New functions.
6619         (long_options): Add option --split-merged-entry.
6620         (usage): Document option --split-merged-entry.
6621         (main): Implement option --split-merged-entry.
6622         Reported by Eric Blake.
6623
6624 2008-02-17  Bruno Haible  <bruno@clisp.org>
6625
6626         * lib/git-merge-changelog.c: Include c-strstr.h.
6627         (main): Support the "git pull --rebase" situation.
6628         * modules/git-merge-changelog (Depends-on): Add c-strstr.
6629         Reported by Eric Blake.
6630
6631 2008-02-16  Eric Blake  <ebb9@byu.net>
6632
6633         Avoid doubling \ in common case of "c-maybe" quoting style.
6634         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
6635         eliding outer quotes.
6636         * lib/quotearg.h: Document this.
6637         * tests/test-quotearg.c (result_strings, inputs, results_g)
6638         (flag_results, locale_results): Test it by adding a new string to
6639         each test group.
6640         (compare_strings): Test new string.
6641
6642 2008-02-13  Eric Blake  <ebb9@byu.net>
6643
6644         Avoid trigraph quoting in default output.
6645         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
6646         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
6647         unless explicitly requested.
6648         * tests/test-quotearg.c (flag_results, main): Add additional tests.
6649
6650 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
6651
6652         Don't rely on signed integer overflowing to negative value.
6653         * lib/getugroups.c (getugroups): Include <limits.h>.
6654         Instead, compare against INT_MAX, and increment only if the test passes.
6655
6656 2008-02-13  Jim Meyering  <meyering@redhat.com>
6657         and Eric Blake  <ebb9@byu.net>
6658
6659         Avoid shadowing warning and compile errors on Linux.
6660         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
6661         forwarding macros on Linux.
6662         (dcgettext): Define a stub, for Linux.
6663         (results_g, main): Avoid warnings.
6664
6665 2008-02-12  Eric Blake  <ebb9@byu.net>
6666
6667         Silence warning in last patch.
6668         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
6669
6670         Quotearg part 4: add tests, fix c-maybe colon quoting.
6671         * lib/quotearg.h: Improve documentation.
6672         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
6673         escapes when adding outer quotes.  When quoting trigraphs, use
6674         valid C notation.  When quoting NUL, omit extra characters if next
6675         character is not digit.  Alter prototype.
6676         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
6677         callers.
6678         * modules/quotearg-tests: New module.
6679         * tests/test-quotearg.c: New test.
6680
6681 2008-02-07  Eric Blake  <ebb9@byu.net>
6682
6683         Quotearg part 3: add flag to control outer quote elision.
6684         * lib/quotearg.h (c_maybe_quoting_style): New style.
6685         (enum quoting_flags): Better documentation of flags.
6686         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
6687         c-maybe style.
6688         (quotearg_buffer_restyled): Handle new flag to elide outer
6689         quotes.
6690
6691         Quotearg part 2: add flag that can control NUL elision.
6692         * lib/quotearg.h (set_quoting_flags): New prototype.
6693         * lib/quotearg.c (struct quoting_options): Add flag field.
6694         (set_quoting_flags): New function.
6695         (quotearg_buffer_restyled): Add flags parameter.
6696         (quotearg_alloc_mem): Set the flag if length cannot be returned.
6697         (quotearg_n_options): Set the flag, since length cannot be
6698         returned.
6699         (quoting_options_from_style): Default flags correctly.
6700
6701         Quotearg part 1: more wrappers, restore quotearg_char state.
6702         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
6703         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
6704         (quotearg_colon_mem): New wrappers.
6705         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
6706         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
6707         functions.
6708         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
6709         (quotearg_colon_mem): New functions.
6710
6711 2008-02-11  Bruno Haible  <bruno@clisp.org>
6712
6713         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
6714         library in the current directory: it does not work with parallel make.
6715         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6716
6717 2008-02-11  Bruno Haible  <bruno@clisp.org>
6718
6719         * .gitattributes: New file.
6720
6721 2008-02-11  Jim Meyering  <meyering@redhat.com>
6722
6723         useless-if-before-free: Fix reversed exit values.
6724         * build-aux/useless-if-before-free: Use correct values
6725         for EXIT_MATCH and EXIT_NO_MATCH.
6726
6727         * build-aux/useless-if-before-free: Close stdout carefully.
6728
6729 2008-02-10  Bruno Haible  <bruno@clisp.org>
6730
6731         New module 'git-merge-changelog'.
6732         * modules/git-merge-changelog: New file.
6733         * lib/git-merge-changelog.c: New file.
6734
6735 2008-02-10  Jim Meyering  <meyering@redhat.com>
6736
6737         useless-if-before-free: New option: --list (-l).
6738
6739         useless-if-before-free: Don't exit immediately upon open failure.
6740         * build-aux/useless-if-before-free: Exit 2 for errors.
6741         Upon failure to open a file, don't exit immediately.
6742         Rather, just warn and continue with any remaining files.
6743
6744 2008-02-10  Bruno Haible  <bruno@clisp.org>
6745
6746         New abstract list operation 'node_set_value'.
6747         * lib/gl_list.h (gl_list_node_set_value): New function.
6748         (struct gl_list_implementation): New field node_set_value.
6749         * lib/gl_list.c (gl_list_node_set_value): New function.
6750         * lib/gl_array_list.c (gl_array_node_set_value): New function.
6751         (gl_array_list_implementation): Update.
6752         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
6753         (gl_carray_list_implementation): Update.
6754         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
6755         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
6756         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
6757         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
6758         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
6759         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
6760         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6761         Update.
6762         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
6763         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
6764         (gl_sublist_list_implementation): Update.
6765
6766 2008-02-10  Bruno Haible  <bruno@clisp.org>
6767
6768         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
6769         Needed when ELEMENT is #defined to 'some_type *'.
6770
6771 2008-02-10  Jim Meyering  <meyering@redhat.com>
6772
6773         New script and module: useless-if-before-free
6774         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
6775         * build-aux/useless-if-before-free: New file.
6776         * modules/useless-if-before-free: New file.
6777
6778         * build-aux/gitlog-to-changelog: Use committer date, not author date.
6779
6780         xstrtol_error: Fix typo.
6781         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
6782         s/exit_failure/exit_status/.
6783
6784 2008-02-09  Jim Meyering  <meyering@redhat.com>
6785
6786         New script and module: gitlog-to-changelog
6787         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
6788         * modules/gitlog-to-changelog: New file.
6789         * build-aux/gitlog-to-changelog: New file.
6790
6791 2008-02-08  Jim Meyering  <meyering@redhat.com>
6792
6793         Avoid two "parameter unused" warnings.
6794         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
6795         Mark "st" as used.
6796
6797         Use "git COMMAND", not "git-COMMAND".
6798         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
6799         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
6800         * build-aux/git-version-gen: Use "git status", not "git-status".
6801
6802 2008-02-07  Bruno Haible  <bruno@clisp.org>
6803
6804         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
6805         Avoids a crash on Windows Vista.
6806         Reported by Adam Strzelecki <ono@java.pl> via
6807         Simon Josefsson <simon@josefsson.org>.
6808
6809 2008-02-06  Bruno Haible  <bruno@clisp.org>
6810
6811         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
6812         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
6813         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
6814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
6815         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6817         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
6818         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
6819         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6820         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6821         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6822         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6826         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
6827         left-adjust flag.
6828         * tests/test-snprintf-posix.h (test_function): Likewise.
6829         * tests/test-sprintf-posix.h (test_function): Likewise.
6830         * tests/test-vasprintf-posix.c (test_function): Likewise.
6831         * doc/posix-functions/fprintf.texi: Update.
6832         * doc/posix-functions/printf.texi: Update.
6833         * doc/posix-functions/snprintf.texi: Update.
6834         * doc/posix-functions/sprintf.texi: Update.
6835         * doc/posix-functions/vfprintf.texi: Update.
6836         * doc/posix-functions/vprintf.texi: Update.
6837         * doc/posix-functions/vsnprintf.texi: Update.
6838         * doc/posix-functions/vsprintf.texi: Update.
6839         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6840
6841 2008-02-06  Bruno Haible  <bruno@clisp.org>
6842
6843         Fix bug introduced on 2008-01-26.
6844         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
6845
6846 2008-02-06  Bruno Haible  <bruno@clisp.org>
6847
6848         Fix bug introduced on 2007-06-10.
6849         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
6850         !NEED_PRINTF_FLAG_ZERO.
6851
6852 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
6853
6854         getloadavg: use libperfstat on AIX5
6855         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
6856
6857 2008-02-03  Bruno Haible  <bruno@clisp.org>
6858
6859         * lib/diffseq.h: Add comments about required #includes.
6860         Reported by Michael Biggs <gnulib@doubleplum.net>.
6861
6862 2008-02-01  Bruno Haible  <bruno@clisp.org>
6863
6864         * users.txt: Add gnuit.
6865
6866 2008-01-31  Bruno Haible  <bruno@clisp.org>
6867
6868         * lib/md4.c (set_uint32): Mark as inline.
6869         * lib/md5.c (set_uint32): Likewise.
6870         * lib/sha1.c (set_uint32): Likewise.
6871         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
6872         * m4/md5.m4 (gl_MD5): Likewise.
6873         * m4/sha1.m4 (gl_SHA1): Likewise.
6874
6875 2008-01-31  Jim Meyering  <meyering@redhat.com>
6876
6877         Use "sizeof VAR", rather than a literal "4".
6878         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
6879         * lib/md4.c (md4_read_ctx): Likewise.
6880         * lib/sha1.c (sha1_read_ctx): Likewise.
6881
6882 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6883
6884         * tests/test-sha1.c: New file, based on test-md5.c.
6885
6886         * modules/crypto/sha1-tests: New file.
6887
6888 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6889
6890         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
6891
6892 2008-01-31  Jim Meyering  <meyering@redhat.com>
6893
6894         Prefer "sizeof v" over the equivalent "4".
6895         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
6896         * lib/md5.c (set_uint32): Likewise.
6897         * lib/sha1.c (set_uint32): Likewise.
6898
6899 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6900
6901         * lib/sha1.c (set_uint32): Mark function as static.
6902
6903 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6904
6905         md2: clarify comments to say that alignment is not required.
6906         * lib/md2.h: Remove warning about alignment in comment.
6907         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
6908         never been required.
6909
6910 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6911
6912         md4: adapt alignment constraint fix from sha1.
6913         * lib/md4.c (set_uint32): New function, from sha1.c
6914         (md4_read_ctx): Use it.
6915         (md4_finish_ctx): Doc fix.
6916         * lib/md4.h: Doc fix.
6917
6918 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6919
6920         md5: adapt alignment constraint fix from sha1.
6921         * lib/md5.c (set_uint32): New function, from sha1.c
6922         (md5_read_ctx): Use it.
6923         (md5_finish_ctx): Doc fix.
6924         * lib/md5.h: Doc fix.
6925
6926 2008-01-30  Peter Palfrader  <weasel@debian.org>
6927
6928         sha1: remove the result buffer alignment constraint
6929         * lib/sha1.c (set_uint32): New function.
6930         (sha1_read_ctx): Rewrite to remove the result buffer alignment
6931         constraint.
6932         (sha1_finish_ctx): Remove comment warning about alignment constraint.
6933         * lib/sha1.h: Likewise.
6934
6935 2008-01-30  Andreas Schwab  <schwab@suse.de>
6936             Bruno Haible  <bruno@clisp.org>
6937
6938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
6939         correct definition of LDBL_MIN_EXP.
6940
6941 2008-01-30  Karl Berry  <karl@gnu.org>
6942
6943         * config/srclist-update: try to preserve x bit on updates.
6944         * config/srclistvars.sh: update for karl.
6945
6946 2008-01-29  Jim Meyering  <meyering@redhat.com>
6947
6948         vasnprintf.c: Avoid warning about unused label
6949         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
6950         "overflow" label definition and associated code with the
6951         same cpp condition that guards the sole use of that label.
6952
6953 2008-01-26  Bruno Haible  <bruno@clisp.org>
6954
6955         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6956         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
6957         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
6958         * lib/isnanl-nolibm.h (isnanl): Likewise.
6959         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6960
6961 2008-01-26  Bruno Haible  <bruno@clisp.org>
6962
6963         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
6964         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
6965
6966 2008-01-26  Bruno Haible  <bruno@clisp.org>
6967
6968         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
6969         GCC >= 4.0 built-in.
6970         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
6971
6972 2008-01-26  Bruno Haible  <bruno@clisp.org>
6973
6974         Rename isnan, applicable to 'double' only, to isnand.
6975         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
6976         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
6977         (configure.ac): Update.
6978         (Include): Replace "isnan.h" with "isnand.h".
6979         * m4/isnand.m4: Renamed from m4/isnan.m4.
6980         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
6981         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
6982         instead of isnan.c.
6983         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
6984         instead of HAVE_ISNAN_IN_LIBC.
6985         (isnand): Renamed from isnan.
6986         * lib/isnand.c: New file.
6987         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
6988         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
6989         (Makefile.am): Update.
6990         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
6991         Include isnand.h instead of isnan.h.
6992         (main): Test isnand instead of isnan.
6993         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
6994         isnan-nolibm.
6995         * modules/frexp (Depends-on): Likewise.
6996         * modules/frexp-tests (Depends-on): Likewise.
6997         * modules/frexp-nolibm (Depends-on): Likewise.
6998         * modules/frexp-nolibm-tests (Depends-on): Likewise.
6999         * modules/isfinite (Depends-on): Likewise.
7000         * modules/round-tests (Depends-on): Likewise.
7001         * modules/signbit (Depends-on): Likewise.
7002         * modules/signbit-tests (Depends-on): Likewise.
7003         * modules/snprintf-posix (Depends-on): Likewise.
7004         * modules/sprintf-posix (Depends-on): Likewise.
7005         * modules/trunc-tests (Depends-on): Likewise.
7006         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7007         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7008         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7009         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7010         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7011         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7012         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7013         * modules/vasnprintf-posix (Depends-on): Likewise.
7014         * modules/vasprintf-posix (Depends-on): Likewise.
7015         * modules/vfprintf-posix (Depends-on): Likewise.
7016         * modules/vsnprintf-posix (Depends-on): Likewise.
7017         * modules/vsprintf-posix (Depends-on): Likewise.
7018         * lib/frexp.c: Include isnand.h instead of isnan.h.
7019         (ISNAN): Set to isnand instead of isnan.
7020         * lib/isfinite.c: Include isnand.h instead of isnan.h.
7021         (gl_isfinited): Use isnand instead of isnan.
7022         * lib/signbitd.c: Include isnand.h instead of isnan.h.
7023         (gl_signbitd): Use isnand instead of isnan.
7024         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
7025         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
7026         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
7027         (main): Use isnand instead of isnan.
7028         * tests/test-round1.c: Include isnand.h.
7029         (main): Use isnand instead of isnan.
7030         * tests/test-round2.c: Include isnand.h instead of isnan.h.
7031         (ISNAN): Set to isnand instead of isnan.
7032         * tests/test-trunc1.c: Include isnand.h.
7033         (main): Use isnand instead of isnan.
7034         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
7035         (equal): Use isnand instead of isnan.
7036         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
7037         isnand-nolibm.
7038         * NEWS: Mention the change.
7039
7040 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7041             Bruno Haible  <bruno@clisp.org>
7042
7043         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
7044         the GCC builtins for signbits are present and set
7045         REPLACE_SIGNBIT_USING_GCC if so.
7046         * lib/math.in.h (signbit): Define using GCC builtins if
7047         REPLACE_SIGNBIT_USING_GCC is set.
7048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
7049         REPLACE_SIGNBIT_USING_GCC.
7050         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
7051
7052 2008-01-25  Jim Meyering  <meyering@redhat.com>
7053
7054         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
7055         * lib/poll.c: Include <config.h>, not "config.h".
7056         * tests/test-getaddrinfo.c: Likewise.
7057
7058 2008-01-25  Simon Josefsson  <simon@josefsson.org>
7059
7060         * modules/sockets-tests: New file.
7061
7062 2008-01-24  Simon Josefsson  <simon@josefsson.org>
7063
7064         * modules/sockets: New module, can be used to call WSA_Startup and
7065         WSA_Cleanup when needed.
7066
7067         * lib/sockets.h, lib/sockets.c: New files.
7068
7069         * m4/sockets.m4: New file.
7070
7071         * tests/test-sockets.c: New file.
7072
7073 2008-01-19  Bruno Haible  <bruno@clisp.org>
7074
7075         * doc/posix-headers: Renamed from doc/headers.
7076         * doc/posix-functions: Renamed from doc/functions.
7077         * doc/gnulib.texi: Update.
7078
7079 2008-01-19  Bruno Haible  <bruno@clisp.org>
7080
7081         * doc/glibc-functions/strcasestr.texi: Include contents of
7082         doc/functions/strcasestr.texi, fixing the list of platforms.
7083         * doc/functions/strcasestr.texi: Remove file.
7084
7085 2008-01-19  Bruno Haible  <bruno@clisp.org>
7086
7087         * doc/glibc-functions/memmem.texi: Include contents of
7088         doc/functions/memmem.texi.
7089         * doc/functions/memmem.texi: Remove file.
7090
7091 2008-01-18  Bruno Haible  <bruno@clisp.org>
7092
7093         * doc/glibc-functions/*.texi: New files.
7094         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
7095         to use the new files.
7096
7097 2008-01-17  Bruno Haible  <bruno@clisp.org>
7098
7099         * tests/test-gethostname.c (main): Fix printf statement.
7100
7101 2008-01-17  Simon Josefsson  <simon@josefsson.org>
7102
7103         * modules/gethostname-tests: New file.
7104
7105         * tests/test-gethostname.c: New file.
7106
7107 2008-01-17  Simon Josefsson  <simon@josefsson.org>
7108
7109         * lib/gethostname.c: Include string.h unconditionally, strncpy is
7110         used by the UNAME case.  Reported by Bruno Haible
7111         <bruno@clisp.org>.
7112
7113 2008-01-17  Eric Blake  <ebb9@byu.net>
7114
7115         Convert c-strcasestr to be more efficient.
7116         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
7117         (Depends-on): Add c-strcase, remove malloca, strnlen.
7118         * tests/test-c-strcasestr.c (main): Enhance test.
7119         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
7120
7121 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
7122
7123         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
7124         Use it in creating po/Makevars.
7125
7126 2008-01-15  Simon Josefsson  <simon@josefsson.org>
7127
7128         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
7129         Applications that requires it should initialize libgcrypt
7130         manually.
7131
7132 2008-01-16  Simon Josefsson  <simon@josefsson.org>
7133
7134         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
7135
7136 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7137
7138         Fix problem with getdate on mingw32 reported by Simon Josefsson
7139         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
7140         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
7141         tzname", when deciding whether to declare tzname.
7142         * lib/strftime.c (tzname): Likewise.
7143
7144 2008-01-15  Bruno Haible  <bruno@clisp.org>
7145
7146         Work around a MacOS X 10.5 bug in frexpl().
7147         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
7148         * doc/functions/frexpl.texi: Document the bug.
7149         Reported by Elias Pipping <pipping@gentoo.org>.
7150
7151 2008-01-14  Eric Blake  <ebb9@byu.net>
7152
7153         Touch up previous patch.
7154         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
7155         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
7156
7157         Convert strcasestr module to use Two-Way algorithm.
7158         * modules/strcasestr-simple: New module, based on the old
7159         strcasestr, but with Two-Way rather than KMP.
7160         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
7161         * lib/string.in.h (rpl_strcasestr): Declare.
7162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
7163         performance.
7164         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
7165         * modules/string (Makefile.am): Support strcasestr.
7166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
7167         * modules/strcasestr-tests (Depends-on): Check for alarm.
7168         * tests/test-strcasestr.c: Augment test.
7169         * lib/str-two-way.h: Clean up stray macro.
7170         * NEWS: Document new module.
7171         * MODULES.html.sh (string handling): Likewise.
7172         * doc/functions/strcasestr.texi: New file.
7173         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
7174         here, since it is not a POSIX function.
7175
7176 2008-01-14  Colin Watson  <cjwatson@debian.org>
7177             Bruno Haible  <bruno@clisp.org>
7178
7179         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
7180         works fine; if not, set REPLACE_STRSIGNAL.
7181         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
7182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7183         REPLACE_STRSIGNAL.
7184         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
7185         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
7186         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
7187
7188 2008-01-14  Bruno Haible  <bruno@clisp.org>
7189
7190         * modules/strsignal (Include): Change to <string.h>.
7191
7192 2008-01-14  Colin Watson  <cjwatson@debian.org>
7193
7194         * modules/argp (Notice): Add a notice recommending to change
7195         XGETTEXT_OPTIONS.
7196         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
7197
7198 2008-01-13  Colin Watson  <cjwatson@debian.org>
7199
7200         * modules/strsignal-tests: New file.
7201         * tests/test-strsignal.c: New file.
7202
7203         * lib/strsignal.c: New file, from glibc with modifications.
7204         * lib/siglist.h: New file, from glibc with modifications.
7205         * lib/string.in.h (strsignal): New declaration.
7206         * m4/strsignal.m4: New file.
7207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7208         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
7209         * modules/strsignal: New file.
7210         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
7211         HAVE_DECL_STRSIGNAL.
7212
7213 2008-01-13  Bruno Haible  <bruno@clisp.org>
7214
7215         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
7216         locale encoding is not ASCII. Needed for OpenBSD 4.0.
7217         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7218         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7219
7220 2008-01-13  Bruno Haible  <bruno@clisp.org>
7221
7222         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
7223         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
7224         * lib/argp.h (__attribute__): Likewise.
7225         * lib/c-stack.c (__attribute__): Likewise.
7226         * lib/error.h (__attribute__): Likewise.
7227         * lib/fts.c (__attribute__): Likewise.
7228         * lib/openat.h (__attribute__): Likewise.
7229         * lib/stdio.in.h (__attribute__): Likewise.
7230         * lib/string.in.h (__attribute__): Likewise.
7231         * lib/utimens.c (__attribute__): Likewise.
7232         * lib/vasnprintf.h (__attribute__): Likewise.
7233         * lib/xalloc.h (__attribute__): Likewise.
7234         * lib/xprintf.h (__attribute__): Likewise.
7235         * lib/xstrtol.h (__attribute__): Likewise.
7236         * lib/xvasprintf.h (__attribute__): Likewise.
7237
7238 2008-01-12  Bruno Haible  <bruno@clisp.org>
7239
7240         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
7241         * doc/glibc-headers/a.out.texi: New file.
7242         * doc/glibc-headers/aliases.texi: New file.
7243         * doc/glibc-headers/alloca.texi: New file.
7244         * doc/glibc-headers/ar.texi: New file.
7245         * doc/glibc-headers/argp.texi: New file.
7246         * doc/glibc-headers/argz.texi: New file.
7247         * doc/glibc-headers/byteswap.texi: New file.
7248         * doc/glibc-headers/crypt.texi: New file.
7249         * doc/glibc-headers/endian.texi: New file.
7250         * doc/glibc-headers/envz.texi: New file.
7251         * doc/glibc-headers/err.texi: New file.
7252         * doc/glibc-headers/error.texi: New file.
7253         * doc/glibc-headers/execinfo.texi: New file.
7254         * doc/glibc-headers/fpu_control.texi: New file.
7255         * doc/glibc-headers/fstab.texi: New file.
7256         * doc/glibc-headers/fts.texi: New file.
7257         * doc/glibc-headers/getopt.texi: New file.
7258         * doc/glibc-headers/ieee754.texi: New file.
7259         * doc/glibc-headers/ifaddrs.texi: New file.
7260         * doc/glibc-headers/libintl.texi: New file.
7261         * doc/glibc-headers/mcheck.texi: New file.
7262         * doc/glibc-headers/mntent.texi: New file.
7263         * doc/glibc-headers/obstack.texi: New file.
7264         * doc/glibc-headers/paths.texi: New file.
7265         * doc/glibc-headers/printf.texi: New file.
7266         * doc/glibc-headers/pty.texi: New file.
7267         * doc/glibc-headers/resolv.texi: New file.
7268         * doc/glibc-headers/shadow.texi: New file.
7269         * doc/glibc-headers/sysexits.texi: New file.
7270         * doc/glibc-headers/ttyent.texi: New file.
7271
7272 2008-01-12  Jim Meyering  <meyering@redhat.com>
7273
7274         announce-gen: emit Gnulib's git-based version string.
7275         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
7276         New option --gnulib-version=V, where V is expected to be
7277         the output of running git describe in the gnulib directory.
7278         (get_tool_versions): Request feedback on xdelta.  I suspect it's
7279         not useful, and plan to stop publishing an xdelta file with each
7280         coreutils release.
7281
7282         * build-aux/announce-gen: Also check for lzma-compressed files.
7283
7284 2008-01-11  Bruno Haible  <bruno@clisp.org>
7285
7286         * tests/test-memmem.c (main): Increase maximum allowed time.
7287         * tests/test-strstr.c (main): Likewise.
7288
7289 2008-01-11  Bruno Haible  <bruno@clisp.org>
7290
7291         * doc/functions/memmem.texi: Add more precisions about platforms.
7292         * doc/functions/strstr.texi: Likewise.
7293
7294 2008-01-10  Eric Blake  <ebb9@byu.net>
7295
7296         * m4/strstr.m4: Delete cruft from copy-n-paste.
7297         Reported by Bruno Haible.
7298
7299 2008-01-10  Bruno Haible  <bruno@clisp.org>
7300
7301         Make c-strstr rely on strstr.
7302         * lib/c-strstr.c: Don't include str-kmp.h.
7303         (c_strstr): Define in terms of strstr.
7304         * modules/c-strstr (Files): Remove lib/str-kmp.h.
7305         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
7306
7307 2008-01-10  Bruno Haible  <bruno@clisp.org>
7308
7309         * doc/gnulib.texi (String Functions in C Locale): New section.
7310         * doc/c-ctype.texi: New file.
7311         * doc/c-strcase.texi: New file.
7312         * doc/c-strcaseeq.texi: New file.
7313         * doc/c-strcasestr.texi: New file.
7314         * doc/c-strstr.texi: New file.
7315         * doc/c-strtod.texi: New file.
7316         * doc/c-strtold.texi: New file.
7317
7318 2008-01-10  Eric Blake  <ebb9@byu.net>
7319
7320         * lib/relocatable.h: Fix a comment.
7321
7322 2008-01-10  Eric Blake  <ebb9@byu.net>
7323
7324         Share two-way algorithm.
7325         * lib/str-two-way.h: New file, merged from...
7326         * lib/memmem.c: ...here...
7327         * lib/strstr.c: ...and here.
7328         * modules/memmem (Files): Use it.
7329         * modules/strstr (Files): Likewise.
7330
7331         Avoid quadratic strstr implementations.
7332         * lib/strstr.c: New file.
7333         * m4/strstr.m4: Likewise.
7334         * modules/strstr: Likewise.
7335         * modules/strstr-tests: Likewise.
7336         * tests/test-strstr.c: Likewise.
7337         * lib/string.in.h (rpl_strstr): Declare.
7338         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
7339         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
7340         * modules/string (Makefile.am): Likewise.
7341         * MODULES.html.sh (string handling): Mention new module.
7342         * doc/functions/strstr.texi (strstr): Document the bug.
7343
7344 2008-01-10  Bruno Haible  <bruno@clisp.org>
7345
7346         * lib/relocatable.h (relocate): State whether result is freshly
7347         allocated or not.
7348         * lib/relocatable.c (relocate): Return a freshly allocated string
7349         instead of a pointer to a privately held string.
7350         Reported by Sylvain Beucler <beuc@gnu.org>.
7351
7352 2008-01-10  Colin Watson  <cjwatson@debian.org>
7353
7354         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
7355         s/S_ISNLK/S_ISLNK/.
7356
7357 2008-01-09  Bruno Haible  <bruno@clisp.org>
7358
7359         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
7360         and other files.
7361         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
7362         if it's only a guess.
7363         * modules/memmem: Simplify by depending on memmem-simple.
7364
7365 2008-01-09  Bruno Haible  <bruno@clisp.org>
7366
7367         Work around OpenBSD 4.0 tdelete() bug.
7368         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
7369         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
7370         macros and don't redefine the enum values.
7371         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
7372         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
7373         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
7374
7375 2008-01-09  Bruno Haible  <bruno@clisp.org>
7376
7377         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
7378         (main): Don't perform the tests if setlocale did not install a UTF-8
7379         locale. Needed on OpenBSD 4.0.
7380         * modules/wcwidth-tests (Depends-on): Add localcharset.
7381
7382 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7383
7384         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
7385         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
7386         * NEWS: announce this.
7387         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
7388
7389 2008-01-09  Simon Josefsson  <simon@josefsson.org>
7390         and Eric Blake  <ebb9@byu.net>
7391
7392         Add memmem-simple module.
7393         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
7394         (gl_FUNC_MEMMEM): Separate performance from presence checks.
7395         * modules/memmem-simple: New file.
7396         * modules/memmem (Description): Tweak.
7397         * MODULES.html.sh (string handling): Mention new module.
7398         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
7399         addressed by memmem-simple.
7400         * NEWS: Document the difference.
7401
7402 2008-01-09  Eric Blake  <ebb9@byu.net>
7403
7404         Give gcc some memmem optimization hints.
7405         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
7406         (strcasestr): Declare as pure.
7407         * modules/memmem (Maintainer): Claim my implementation.
7408
7409 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7410
7411         Support AIX 6.1 and higher.
7412         * build-aux/config.libpath: Likewise.
7413         * build-aux/config.rpath: Likewise.
7414
7415 2008-01-08  Jim Meyering  <meyering@redhat.com>
7416             Bruno Haible  <bruno@clisp.org>
7417
7418         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
7419         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
7420         Reported by Peter Fales in
7421         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
7422
7423 2008-01-08  Bruno Haible  <bruno@clisp.org>
7424
7425         * modules/unictype/category-of (Depends-on): Add
7426         unictype/category-none.
7427         * modules/unictype/category-and-tests (Depends-on): Add
7428         unictype/category-{L,N,Lu,Nd}.
7429         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
7430         * modules/unictype/category-or-tests (Depends-on): Add
7431         unictype/category-{L,N}.
7432         * modules/unictype/category-name-tests (Depends-on): Add
7433         unictype/category-{Z,Nl}.
7434         Reported by Simon Josefsson.
7435
7436 2008-01-08  Bruno Haible  <bruno@clisp.org>
7437
7438         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
7439         convention better.
7440         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
7441         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
7442         Reported by Peter Miller <millerp@canb.auug.org.au>.
7443
7444 2008-01-08  Eric Blake  <ebb9@byu.net>
7445
7446         Rewrite memmem to guarantee linear complexity without malloc.
7447         * lib/memmem.c (memmem): Use Two-Way rather than
7448         Knuth-Morris-Pratt, to allow O(1) space usage.
7449         (critical_factorization, two_way_short_needle)
7450         (two_way_long_needle): New functions.
7451         (knuth_morris_pratt): Delete.
7452         * modules/memmem (Depends-on): No longer need malloca or stdbool.
7453         Add stdint.
7454         * tests/test-memmem.c (main): Add tests for periodic needle and
7455         sublinear performance.
7456         * doc/functions/memmem.texi (memmem): Document other deficiencies
7457         in cygwin and older glibc.
7458
7459 2008-01-08  Bruno Haible  <bruno@clisp.org>
7460
7461         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
7462         augmentation.
7463
7464 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
7465
7466         Add a configure time option: --disable-acl.
7467         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
7468         AC_ARG_ENABLE(acl).
7469
7470 2008-01-06  Simon Josefsson  <simon@josefsson.org>
7471
7472         * tests/test-localename.c: Don't include obsolete "setenv.h".
7473
7474         * modules/localename-tests (Depends-on): Need unsetenv.
7475
7476 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7477
7478         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
7479
7480 2008-01-06  Colin Watson  <cjwatson@debian.org>
7481
7482         * users.txt: Add man-db.
7483
7484 2008-01-07  Bruno Haible  <bruno@clisp.org>
7485
7486         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
7487         previous section name.
7488
7489 2008-01-07  Bruno Haible  <bruno@clisp.org>
7490
7491         * lib/progname.c (set_program_name): Don't strip off a leading
7492         "lt-" prefix outside a .libs directory.
7493         Suggested by Paul Eggert.
7494
7495 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
7496             Bruno Haible  <bruno@clisp.org>
7497
7498         Improve memory cleanup in 'relocatable' module.
7499         * lib/relocatable.h (compute_curr_prefix): Change return type to
7500         'char *'.
7501         * lib/relocatable.c (compute_curr_prefix): Change return type to
7502         'char *'. Free curr_installdir after use.
7503         (relocate): Free curr_prefix_better after use.
7504         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
7505
7506 2008-01-01  Bruno Haible  <bruno@clisp.org>
7507
7508         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
7509         failure on older glibc systems.
7510         Reported by Peter Fales <psfales@alcatel-lucent.com>.
7511
7512 2008-01-05  Eric Blake  <ebb9@byu.net>
7513
7514         Avoid quadratic system memmem.
7515         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
7516         Reported by Ralf Wildenhues.
7517
7518         Fix memmem test for mingw.
7519         * modules/memmem-tests (configure.ac): Check for alarm.
7520         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
7521         it.
7522         * doc/functions/memmem.texi: New file.
7523         * doc/gnulib.texi (Function Substitutes): Add memmem.
7524         Reported by Bruno Haible.
7525
7526 2008-01-04  Bruno Haible  <bruno@clisp.org>
7527
7528         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
7529         Require gl_HEADER_STRINGS_H_DEFAULTS, not
7530         gl_HEADER_STRING_H_DEFAULTS.
7531
7532 2008-01-04  Eric Blake  <ebb9@byu.net>
7533
7534         Shorten duration of memmem test.
7535         * tests/test-memmem.c (main): Use alarm to declare failure if test
7536         is taking too long.
7537         Reported by Ralf Wildenhues.
7538
7539 2007-12-21  Simon Josefsson  <simon@josefsson.org>
7540
7541         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
7542         string, needed by strerror.
7543
7544 2008-01-03  Colin Watson  <cjwatson@debian.org>
7545             Bruno Haible  <bruno@clisp.org>
7546
7547         * doc/gnulib-tool.texi (Localization): New section.
7548
7549 2008-01-02  Bruno Haible  <bruno@clisp.org>
7550
7551         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
7552         variables to 'unsigned char *' type.
7553         Reported by Paul Eggert.
7554
7555 2008-01-02  Jim Meyering  <jim@meyering.net>
7556
7557         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
7558
7559 2007-12-31  Jim Meyering  <jim@meyering.net>
7560
7561         Avoid use of private FTS type name.
7562         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
7563
7564 2007-12-30  Karl Berry  <karl@gnu.org>
7565
7566         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
7567         work around defect in Texinfo and/or the standalone Info browser.
7568
7569 2007-12-30  Bruno Haible  <bruno@clisp.org>
7570
7571         Unify 5 copies of the KMP code.
7572         * lib/str-kmp.h: New file.
7573         * lib/c-strcasestr.c: Include str-kmp.h.
7574         (knuth_morris_pratt): Remove function.
7575         (c_strcasestr): Update.
7576         * lib/c-strstr.c: Include str-kmp.h.
7577         (knuth_morris_pratt): Remove function.
7578         (c_strcasestr): Update.
7579         * lib/mbscasestr.c: Include str-kmp.h.
7580         (knuth_morris_pratt_unibyte): Remove function.
7581         * lib/mbsstr.c: Include str-kmp.h.
7582         (knuth_morris_pratt_unibyte): Remove function.
7583         * lib/strcasestr.c: Include str-kmp.h.
7584         (knuth_morris_pratt): Remove function.
7585         (strcasestr): Update.
7586         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
7587         * modules/c-strstr (Files): Likewise.
7588         * modules/mbscasestr (Files): Likewise.
7589         * modules/mbsstr (Files): Likewise.
7590         * modules/strcasestr (Files): Likewise.
7591         Suggested by Paul Eggert.
7592
7593 2007-12-30  Bruno Haible  <bruno@clisp.org>
7594
7595         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
7596         defined.
7597
7598 2007-12-30  Bruno Haible  <bruno@clisp.org>
7599
7600         * lib/xmalloca.h: Include xalloc.h.
7601         (xnmalloca): New macro.
7602
7603 2007-12-30  Bruno Haible  <bruno@clisp.org>
7604
7605         * lib/malloca.h (nmalloca): New macro.
7606         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
7607         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
7608         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
7609         knuth_morris_pratt_multibyte): Likewise.
7610         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
7611         knuth_morris_pratt_multibyte): Likewise.
7612         * lib/memmem.c (knuth_morris_pratt): Likewise.
7613         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
7614
7615 2007-12-25  Bruno Haible  <bruno@clisp.org>
7616
7617         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
7618         * lib/glob.c: Don't include openat.h.
7619         (link_exists2_p): Add back the code that deals with the
7620         !GLOB_ALTDIRFUNC case.
7621         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
7622         let it do the filename concatenation.
7623         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
7624         * modules/glob (Depends-on): Remove openat.
7625
7626 2007-12-31  Bruno Haible  <bruno@clisp.org>
7627
7628         * modules/dirfd (License): Change to LGPLv2+.
7629         Approved by Jim Meyering.
7630
7631 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7632
7633         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
7634         when multiplying M by sizeof (size_t).
7635
7636 2007-12-10  Martin Lambers  <marlam@marlam.de>
7637
7638         Override getpagesize on mingw.
7639         * lib/getpagesize.c: New file.
7640         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
7641         * modules/getpagesize (Files): Add lib/getpagesize.c.
7642         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
7643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7644         REPLACE_GETPAGESIZE.
7645         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
7646
7647 2007-12-25  Bruno Haible  <bruno@clisp.org>
7648
7649         * modules/localcharset (Notice): New field.
7650         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
7651         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7652
7653 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7654             Bruno Haible  <bruno@clisp.org>
7655
7656         Avoid using the syntax symbol() in formatted documentation.
7657         * MODULES.html.sh (func_module): When replacing symbol() with a
7658         hyperlink, remove the parentheses. Show an error if some remain.
7659         Recognize and render the '...' syntax.
7660         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
7661         Rework. Add paragraph about GCC's inlining.
7662         * doc/alloca.texi: Likewise.
7663         * doc/error.texi: Remove parentheses from symbol reference.
7664         * doc/gnulib-intro.texi: Likewise.
7665         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
7666         * modules/fnmatch (Description): Reword to say "the ... function".
7667         * modules/full-read (Description): Likewise.
7668         * modules/full-write (Description): Likewise.
7669         * modules/safe-read (Description): Likewise.
7670         * modules/safe-write (Description): Likewise.
7671         * modules/strchrnul (Description): Likewise.
7672         * modules/trim (Description): Likewise.
7673         * modules/error (Description): Remove parentheses from symbol
7674         references.
7675         * modules/verror (Description): Likewise.
7676         Reported by Karl Berry.
7677
7678 2007-12-25  Bruno Haible  <bruno@clisp.org>
7679
7680         Fixup after 2007-10-16 commit.
7681         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
7682
7683 2007-12-24  Bruno Haible  <bruno@clisp.org>
7684
7685         Make --enable-relocatable work with DESTDIR.
7686         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
7687         to compute installdir from destprog.
7688         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
7689         also set the RELOC_DESTDIR variable.
7690         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
7691
7692 2007-12-24  Bruno Haible  <bruno@clisp.org>
7693
7694         Fix link error due to xalloc_die().
7695         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
7696         of xreadlink.
7697         * lib/relocwrapper.c: Update comments.
7698         * build-aux/install-reloc: Remove xreadlink.c from file list.
7699         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
7700         xreadlink.c.
7701         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
7702
7703 2007-12-24  Bruno Haible  <bruno@clisp.org>
7704
7705         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
7706         * lib/setenv.h: Remove file.
7707         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
7708         lib/setenv.h.
7709         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
7710         (Depends-on): Add stdlib.
7711         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
7712         gl_FUNC_UNSETENV.
7713         (Include): Replace setenv.h with <stdlib.h>.
7714         * modules/unsetenv: New file.
7715         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
7716         * lib/unsetenv.c: Include <stdlib.h> first.
7717         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
7718         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
7719         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
7720         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
7721         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
7722         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
7724         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
7725         * doc/functions/unsetenv.texi: Update.
7726         * modules/xsetenv (Depends-on): Add unsetenv.
7727         * modules/getdate (Depends-on): Likewise.
7728         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
7729         * lib/xsetenv.c: Don't include setenv.h.
7730         * lib/getdate.y: Likewise.
7731         * lib/relocwrapper.c: Likewise.
7732         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
7733         (Depends-on): Add stdlib.
7734         * NEWS: Mention the changes.
7735         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
7736
7737 2007-12-23  Bruno Haible  <bruno@clisp.org>
7738
7739         * lib/memmem.c (memmem): Use lowercase variable names. Tab
7740         indentation.
7741
7742 2007-12-23  Bruno Haible  <bruno@clisp.org>
7743
7744         * lib/c-strcasestr.c: Add more comments.
7745         * lib/c-strstr.c: Likewise.
7746         * lib/mbscasestr.c: Likewise.
7747         * lib/mbsstr.c: Likewise.
7748         * lib/strcasestr.c: Likewise.
7749         * lib/memmem.c: Likewise.
7750
7751 2007-12-23  Bruno Haible  <bruno@clisp.org>
7752
7753         * tests/test-memmem.c: Include <string.h> first.
7754
7755 2007-12-22  Bruno Haible  <bruno@clisp.org>
7756
7757         * gnulib-tool (func_create_testdir): Change $auxdir while generating
7758         the contents of $testsbase.
7759         Reported by Ralf Wildenhues.
7760
7761 2007-12-22  Bruno Haible  <bruno@clisp.org>
7762
7763         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
7764         two variables local_ldadd_before, local_ldadd_last.
7765
7766 2007-12-20  Eric Blake  <ebb9@byu.net>
7767
7768         Work around circular library issue when cross-compiling.
7769         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
7770         that progname.o does not need to pull in rpl_memcmp.
7771
7772 2007-12-19  Eric Blake  <ebb9@byu.net>
7773
7774         Fix memmem to avoid O(n^2) worst-case complexity.
7775         * lib/memmem.c (knuth_morris_pratt): New function.
7776         (memmem): Use it if first few naive iterations fail.
7777         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
7778         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
7779         * modules/memchr (License): Likewise.
7780         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
7781         malloca.
7782         * tests/test-memmem.c: Rewrite, borrowing ideas from
7783         test-mbsstr1.c; the old version wouldn't even compile!
7784         * modules/memmem-tests: New file.
7785         * lib/string.in.h (rpl_memmem): Add declaration.
7786         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
7787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
7788         REPLACE_MEMMEM.
7789
7790 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7791
7792         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
7793         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
7794         before any system include files, and undef after them all.  This
7795         should fix a problem on VMS reported by John E. Malmberg in
7796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
7797
7798 2007-12-17  Eric Blake  <ebb9@byu.net>
7799
7800         Revert addition of verify, for BSD/OS.
7801         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
7802         can't handle large files, for the sake of obsolete platforms.
7803         * modules/fseeko (Depends-on): Remove verify.
7804         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
7805         * doc/functions/ftello.texi (ftello): Likewise.
7806         * doc/functions/fgetpos.texi (fgetpos): Likewise.
7807         Reported by Larry Jones.
7808
7809 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
7810
7811         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
7812         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
7813
7814 2007-12-17  Jim Meyering  <meyering@redhat.com>
7815
7816         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
7817         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
7818         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
7819         * modules/getcwd (Depends-on): Add openat.
7820         Reported by Petr Salinger.
7821
7822 2007-12-17  Bruno Haible  <bruno@clisp.org>
7823
7824         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
7825         avoid a segmentation fault of the configure test on x86_64 systems.
7826
7827 2007-12-15  Jim Meyering  <meyering@redhat.com>
7828
7829         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
7830
7831 2007-12-13  Eric Blake  <ebb9@byu.net>
7832
7833         Another fseek test.
7834         * tests/test-fseek.c (main): Also test ungetc handling.
7835         * tests/test-fseeko.c (main): Likewise.
7836         * modules/fseeko (Depends-on): Add verify.
7837         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
7838         large.
7839         Reported by Larry Jones.
7840
7841         Fix fseeko on mingw.
7842         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
7843         seek.
7844
7845         Beef up fseek tests.
7846         * tests/test-fseek.c (main): Also test eof handling.
7847         * tests/test-fseeko.c (main): Likewise.
7848         Reported by Larry Jones.
7849
7850 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
7851
7852         Fix fseeko on BSD-based platforms.
7853         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
7854         successful seek.
7855
7856 2007-12-12  Eric Blake  <ebb9@byu.net>
7857
7858         Allow circular dependency of separate libtests.a
7859         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
7860         when use_libtests.
7861
7862 2007-12-11  Eric Blake  <ebb9@byu.net>
7863
7864         Fix bug with -0.0L in previous patch.
7865         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
7866         * tests/test-isnan.c (main): Also test on zeroes.
7867         * tests/test-isnanf.c (main): Likewise.
7868         * tests/test-isnanl.h (main): Likewise.
7869
7870         Detect pseudo-denormals on x86 even when cross-compiling.
7871         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
7872         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
7873         invalid bit patterns that happen to satisfy ==.
7874
7875         Avoid link failures with separate libtests.a.
7876         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
7877         last, to satisfy circular dependencies.
7878
7879 2007-12-11  Eric Blake  <ebb9@byu.net>
7880         and Bruno Haible  <bruno@clisp.org>
7881
7882         Fix OpenBSD 4.0 <float.h> handling of long double.
7883         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
7884         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
7885         * doc/headers/float.texi (float.h): Document OpenBSD bug.
7886
7887 2007-12-11  Jim Meyering  <meyering@redhat.com>
7888
7889         * users.txt: Add libvirt.
7890
7891         Support versions of autoconf prior to 2.59c.
7892         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
7893         if it is not already defined.
7894
7895 2007-12-09  Bruno Haible  <bruno@clisp.org>
7896
7897         Let 'gnulib-tool --import' collect sources needed for the tests in
7898         tests/ rather than in lib/.
7899         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
7900         argument. If true, add rules to generate libtests.a, and put libtests.a
7901         into $(LDADD). Consider source files in subdirectories and set
7902         uses_subdirs.
7903         (func_emit_initmacro_start, func_emit_initmacro_end,
7904         func_emit_initmacro_done): Pass all arguments explicitly.
7905         (func_import): Determine two module lists main_modules,
7906         testsrelated_modules. Determine use_libtests. Determine two variables
7907         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
7908         instead of just sed_transform_lib_file. Determine two variables
7909         main_files and testsrelated_files. Compute 'files' as the union of
7910         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
7911         func_add_or_update. In the generated gnulib-comp.m4, collect the
7912         object files for tests/ in different variables than those for lib/.
7913         Substitute LIBTESTS_LIBDEPS.
7914         (func_create_testdir): Combine the uses_subdirs results from
7915         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
7916
7917 2007-12-09  Bruno Haible  <bruno@clisp.org>
7918
7919         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
7920         the build-aux directory.
7921
7922 2007-12-09  Bruno Haible  <bruno@clisp.org>
7923
7924         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
7925         introduced on 2006-09-09.
7926
7927 2007-12-07  Jim Meyering  <meyering@redhat.com>
7928
7929         Let these macros work also with autoconf-2.59.
7930         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
7931         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
7932         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7933
7934 2007-12-06  Jim Meyering  <meyering@redhat.com>
7935
7936         Avoid a configure-time syntax error in gl_FUNC_ACL.
7937         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
7938         function in each branch, before testing the cache variable.
7939
7940 2007-12-04  Eric Blake  <ebb9@byu.net>
7941
7942         Make scripts executable.
7943         * build-aux/config.guess: Add execute permissions.
7944         * build-aux/config.sub: Likewise.
7945         * build-aux/gendocs.sh: Likewise.
7946
7947         Fix frexp on mingw.
7948         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
7949         cross-compiling.
7950         * doc/functions/frexp.texi (frexp): Document the bug.
7951
7952         Make cygwin fseeko check more reliable.
7953         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
7954         version numbers, rather than unrelated feature check.
7955         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
7956         * doc/functions/ftello.texi (ftello): Likewise.
7957         Reported by Bruno Haible.
7958
7959         * m4/strerror.m4: Bump version number.
7960
7961 2007-12-03  Bruno Haible  <bruno@clisp.org>
7962
7963         * doc/functions/mprotect.texi: Mention the mingw problem.
7964
7965 2007-12-03  Eric Blake  <ebb9@byu.net>
7966
7967         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
7968         REPLACE_STRERROR is initialized before this macro.
7969
7970 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
7971
7972         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
7973         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
7974         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
7975         put -lsec in even for programs other than 'ls'.  This fixes a problem
7976         for gettext reported by Bruno Haible in
7977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
7978         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
7979         Add support for Solaris 10.  This isn't efficient, but should get the
7980         job done for now.
7981
7982 2007-12-03  James Youngman  <jay@gnu.org>
7983
7984         * doc/regexprops-generic.texi: change "an close-group" to "a
7985         close-group" and "illegal" to "not allowed".
7986
7987 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7988
7989         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
7990         pr_byname.h. Needed for the rare case when the maintainer has done
7991         "make maintainer-clean" in the source directory and then attempts a
7992         build outside the source directory.
7993         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
7994         scripts_byname.h.
7995
7996 2007-12-02  Martin Lambers <marlam@marlam.de>
7997             Bruno Haible  <bruno@clisp.org>
7998
7999         * lib/getpagesize.h: Remove file.
8000         * lib/unistd.in.h: Include declaration of getpagesize here.
8001         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
8002         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
8003         HAVE_SYS_PARAM_H.
8004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
8005         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8006         * modules/getpagesize (Files): Remove lib/getpagesize.h.
8007         (Depends-on): Add unistd.
8008         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8009         (Include): Use <unistd.h> instead of getpagesize.h.
8010         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
8011         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8012         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
8013         gl_GETPAGESIZE invocation, already handled by module dependency.
8014         * lib/pagealign_alloc.c: Don't include getpagesize.h.
8015
8016 2007-12-02  Bruno Haible  <bruno@clisp.org>
8017
8018         * modules/strings-tests: New file.
8019         * tests/test-strings.c: New file.
8020
8021         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
8022         * lib/strings.in.h: New file.
8023         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
8024         * m4/strings_h.m4: New file.
8025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
8026         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
8027         * modules/strings: New file.
8028         * modules/string (Makefile.am): Update.
8029         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
8030         Reported by Karl Berry.
8031
8032 2007-12-01  Eric Blake  <ebb9@byu.net>
8033
8034         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
8035         accomodate fix in cygwin 1.5.25.
8036
8037 2007-12-01  Jim Meyering  <meyering@redhat.com>
8038
8039         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
8040         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
8041         that would inhibit utf8-optimization of a regexp containing line-
8042         or buffer-anchors, e.g., `^', `$'.
8043
8044 2007-11-30  Bruno Haible  <bruno@clisp.org>
8045
8046         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
8047         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
8048         glthread_recursive_lock_init.
8049         * lib/lock.c (glthread_recursive_lock_init)
8050         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
8051         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8052
8053 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
8054
8055         New function qset_acl, like set_acl but with syscall semantics.
8056         * lib/acl.h (qset_acl): New decl.
8057         * lib/acl.c (qset_acl): New function.
8058         (set_acl): Use new function.  Use more-consistent diagnostics.
8059
8060 2007-11-28  Jim Meyering  <meyering@redhat.com>
8061
8062         * modules/physmem (License): Change from GPL to LGPLv2+.
8063
8064 2007-11-26  Bruno Haible  <bruno@clisp.org>
8065
8066         * lib/vasnprintf.c (decode_long_double): Don't abort if the
8067         'long double' type has excess precision.
8068         Reported by Jim Meyering in
8069         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
8070
8071 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8072
8073         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
8074         Sync from <http://gnu.org/licenses>.
8075         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
8076         with license text from same location.
8077         * doc/maintain.texi, doc/standards.texi:  Sync from
8078         <http://savannah.gnu.org/projects/gnustandards>.
8079
8080 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
8081         and Jim Meyering  <meyering@redhat.com>
8082
8083         Adjust getdate' grammar to accept a slightly more regular language.
8084         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
8085         Before, the former was rejected.
8086         * lib/getdate.y (digits_to_date_time): New function, factored
8087         out of ...
8088         (number): ...here.  Just call digits_to_date_time.
8089         (hybrid): New non-terminal to handle an <unsigned number,
8090         signed relative offset> sequence consistently.
8091
8092 2007-11-18  Jim Meyering  <meyering@redhat.com>
8093
8094         Pull my changes from coreutils:
8095         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
8096         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
8097         use of $gnulib_tool_option_extras, so that it's separated from the
8098         preceding argument.
8099
8100         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
8101         * build-aux/bootstrap (cp_mark_as_generated): Create any required
8102         parent destination directories before copying a file into place.
8103
8104 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
8105
8106         bootstrap: work also with 4-argument variant of AC_INIT
8107         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
8108
8109 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
8110
8111         Port test-getaddrinfo to Solaris.
8112         Problem reported by Bruno Haible in
8113         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
8114         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
8115         explanation of setting 'hints'.
8116         Don't reject an implementation merely because it returns EAI_SERVICE.
8117         (EAI_SERVICE): Define to 0 if not defined.
8118
8119 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8120
8121         The license of gnu-make and posix-shell is now "GPLed build tool".
8122         * modules/gnu-make (License): Likewise.
8123         * modules/posix-shell (License): Likewise.
8124
8125         New module posix-shell, for determining a POSIX shell
8126         or perhaps something that is close enough to a POSIX shell.
8127         * m4/posix-shell.m4: New file.
8128         * modules/posix-shell: New file.
8129
8130         * MODULES.html.sh: Mention new module.
8131
8132         New module gnu-make, for determining whether we're using GNU Make.
8133         * m4/gnu-make.m4: New file.
8134         * modules/gnu-make: New file.
8135         * MODULES.html.sh: Mention new module.
8136
8137 2007-11-14  Jim Meyering  <meyering@redhat.com>
8138
8139         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
8140         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
8141         use this macro to create a function _definition_.
8142         Remove useless "#undef ARGMATCH_DIE".
8143
8144 2007-11-14  Bruno Haible  <bruno@clisp.org>
8145
8146         * lib/config.charset: Update for OpenBSD 4.1.
8147         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
8148
8149 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
8150
8151         Document 64-bit #if problems in stdint.texi.
8152         * doc/headers/stdint.texi (stdint.h): Mention problems with
8153         64-bit-#if, and how to work around them.
8154
8155         Don't insist on 'long long int' support in the preprocessor.  It
8156         breaks too many things.  For example, PRIdMAX still uses a 'long
8157         long int' format with the latest Sun compiler, even though
8158         HAVE_LONG_LONG_INT isn't defined due to that compiler's
8159         preprocessor problem.  This causes the latest coreutils to dump
8160         core on Solaris 10 sparc with the Sun C compiler.
8161         Instead, fix the 2007-10-16 problem in a different way, by evaluating
8162         the troublesome expressions at configure-time, not at #if-time.
8163         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
8164         preprocessor.
8165         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
8166         compile-time C checks, done at 'configure'-time.
8167         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
8168         * modules/inttypes (Makefile): Substitute the new symbols that
8169         gl_INTTYPES_H now generates.
8170         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
8171
8172 2007-11-12  Bruno Haible  <bruno@clisp.org>
8173
8174         Tests for Unicode character classification functions.
8175
8176         * modules/unictype/bidicategory-byname-tests: New file.
8177         * modules/unictype/bidicategory-name-tests: New file.
8178         * modules/unictype/bidicategory-of-tests: New file.
8179         * modules/unictype/bidicategory-test-tests: New file.
8180         * modules/unictype/block-list-tests: New file.
8181         * modules/unictype/block-of-tests: New file.
8182         * modules/unictype/block-test-tests: New file.
8183         * modules/unictype/category-C-tests: New file.
8184         * modules/unictype/category-Cc-tests: New file.
8185         * modules/unictype/category-Cf-tests: New file.
8186         * modules/unictype/category-Cn-tests: New file.
8187         * modules/unictype/category-Co-tests: New file.
8188         * modules/unictype/category-Cs-tests: New file.
8189         * modules/unictype/category-L-tests: New file.
8190         * modules/unictype/category-Ll-tests: New file.
8191         * modules/unictype/category-Lm-tests: New file.
8192         * modules/unictype/category-Lo-tests: New file.
8193         * modules/unictype/category-Lt-tests: New file.
8194         * modules/unictype/category-Lu-tests: New file.
8195         * modules/unictype/category-M-tests: New file.
8196         * modules/unictype/category-Mc-tests: New file.
8197         * modules/unictype/category-Me-tests: New file.
8198         * modules/unictype/category-Mn-tests: New file.
8199         * modules/unictype/category-N-tests: New file.
8200         * modules/unictype/category-Nd-tests: New file.
8201         * modules/unictype/category-Nl-tests: New file.
8202         * modules/unictype/category-No-tests: New file.
8203         * modules/unictype/category-P-tests: New file.
8204         * modules/unictype/category-Pc-tests: New file.
8205         * modules/unictype/category-Pd-tests: New file.
8206         * modules/unictype/category-Pe-tests: New file.
8207         * modules/unictype/category-Pf-tests: New file.
8208         * modules/unictype/category-Pi-tests: New file.
8209         * modules/unictype/category-Po-tests: New file.
8210         * modules/unictype/category-Ps-tests: New file.
8211         * modules/unictype/category-S-tests: New file.
8212         * modules/unictype/category-Sc-tests: New file.
8213         * modules/unictype/category-Sk-tests: New file.
8214         * modules/unictype/category-Sm-tests: New file.
8215         * modules/unictype/category-So-tests: New file.
8216         * modules/unictype/category-Z-tests: New file.
8217         * modules/unictype/category-Zl-tests: New file.
8218         * modules/unictype/category-Zp-tests: New file.
8219         * modules/unictype/category-Zs-tests: New file.
8220         * modules/unictype/category-and-not-tests: New file.
8221         * modules/unictype/category-and-tests: New file.
8222         * modules/unictype/category-byname-tests: New file.
8223         * modules/unictype/category-name-tests: New file.
8224         * modules/unictype/category-none-tests: New file.
8225         * modules/unictype/category-of-tests: New file.
8226         * modules/unictype/category-or-tests: New file.
8227         * modules/unictype/category-test-withtable-tests: New file.
8228         * modules/unictype/combining-class-tests: New file.
8229         * modules/unictype/ctype-alnum-tests: New file.
8230         * modules/unictype/ctype-alpha-tests: New file.
8231         * modules/unictype/ctype-blank-tests: New file.
8232         * modules/unictype/ctype-cntrl-tests: New file.
8233         * modules/unictype/ctype-digit-tests: New file.
8234         * modules/unictype/ctype-graph-tests: New file.
8235         * modules/unictype/ctype-lower-tests: New file.
8236         * modules/unictype/ctype-print-tests: New file.
8237         * modules/unictype/ctype-punct-tests: New file.
8238         * modules/unictype/ctype-space-tests: New file.
8239         * modules/unictype/ctype-upper-tests: New file.
8240         * modules/unictype/ctype-xdigit-tests: New file.
8241         * modules/unictype/decimal-digit-tests: New file.
8242         * modules/unictype/digit-tests: New file.
8243         * modules/unictype/mirror-tests: New file.
8244         * modules/unictype/numeric-tests: New file.
8245         * modules/unictype/property-alphabetic-tests: New file.
8246         * modules/unictype/property-ascii-hex-digit-tests: New file.
8247         * modules/unictype/property-bidi-arabic-digit-tests: New file.
8248         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
8249         * modules/unictype/property-bidi-block-separator-tests: New file.
8250         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
8251         * modules/unictype/property-bidi-common-separator-tests: New file.
8252         * modules/unictype/property-bidi-control-tests: New file.
8253         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
8254         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
8255         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
8256         * modules/unictype/property-bidi-european-digit-tests: New file.
8257         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
8258         * modules/unictype/property-bidi-left-to-right-tests: New file.
8259         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
8260         * modules/unictype/property-bidi-other-neutral-tests: New file.
8261         * modules/unictype/property-bidi-pdf-tests: New file.
8262         * modules/unictype/property-bidi-segment-separator-tests: New file.
8263         * modules/unictype/property-bidi-whitespace-tests: New file.
8264         * modules/unictype/property-byname-tests: New file.
8265         * modules/unictype/property-combining-tests: New file.
8266         * modules/unictype/property-composite-tests: New file.
8267         * modules/unictype/property-currency-symbol-tests: New file.
8268         * modules/unictype/property-dash-tests: New file.
8269         * modules/unictype/property-decimal-digit-tests: New file.
8270         * modules/unictype/property-default-ignorable-code-point-tests: New file.
8271         * modules/unictype/property-deprecated-tests: New file.
8272         * modules/unictype/property-diacritic-tests: New file.
8273         * modules/unictype/property-extender-tests: New file.
8274         * modules/unictype/property-format-control-tests: New file.
8275         * modules/unictype/property-grapheme-base-tests: New file.
8276         * modules/unictype/property-grapheme-extend-tests: New file.
8277         * modules/unictype/property-grapheme-link-tests: New file.
8278         * modules/unictype/property-hex-digit-tests: New file.
8279         * modules/unictype/property-hyphen-tests: New file.
8280         * modules/unictype/property-id-continue-tests: New file.
8281         * modules/unictype/property-id-start-tests: New file.
8282         * modules/unictype/property-ideographic-tests: New file.
8283         * modules/unictype/property-ids-binary-operator-tests: New file.
8284         * modules/unictype/property-ids-trinary-operator-tests: New file.
8285         * modules/unictype/property-ignorable-control-tests: New file.
8286         * modules/unictype/property-iso-control-tests: New file.
8287         * modules/unictype/property-join-control-tests: New file.
8288         * modules/unictype/property-left-of-pair-tests: New file.
8289         * modules/unictype/property-line-separator-tests: New file.
8290         * modules/unictype/property-logical-order-exception-tests: New file.
8291         * modules/unictype/property-lowercase-tests: New file.
8292         * modules/unictype/property-math-tests: New file.
8293         * modules/unictype/property-non-break-tests: New file.
8294         * modules/unictype/property-not-a-character-tests: New file.
8295         * modules/unictype/property-numeric-tests: New file.
8296         * modules/unictype/property-other-alphabetic-tests: New file.
8297         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
8298         * modules/unictype/property-other-grapheme-extend-tests: New file.
8299         * modules/unictype/property-other-id-continue-tests: New file.
8300         * modules/unictype/property-other-id-start-tests: New file.
8301         * modules/unictype/property-other-lowercase-tests: New file.
8302         * modules/unictype/property-other-math-tests: New file.
8303         * modules/unictype/property-other-uppercase-tests: New file.
8304         * modules/unictype/property-paired-punctuation-tests: New file.
8305         * modules/unictype/property-paragraph-separator-tests: New file.
8306         * modules/unictype/property-pattern-syntax-tests: New file.
8307         * modules/unictype/property-pattern-white-space-tests: New file.
8308         * modules/unictype/property-private-use-tests: New file.
8309         * modules/unictype/property-punctuation-tests: New file.
8310         * modules/unictype/property-quotation-mark-tests: New file.
8311         * modules/unictype/property-radical-tests: New file.
8312         * modules/unictype/property-sentence-terminal-tests: New file.
8313         * modules/unictype/property-soft-dotted-tests: New file.
8314         * modules/unictype/property-space-tests: New file.
8315         * modules/unictype/property-terminal-punctuation-tests: New file.
8316         * modules/unictype/property-test-tests: New file.
8317         * modules/unictype/property-titlecase-tests: New file.
8318         * modules/unictype/property-unassigned-code-value-tests: New file.
8319         * modules/unictype/property-unified-ideograph-tests: New file.
8320         * modules/unictype/property-uppercase-tests: New file.
8321         * modules/unictype/property-variation-selector-tests: New file.
8322         * modules/unictype/property-white-space-tests: New file.
8323         * modules/unictype/property-xid-continue-tests: New file.
8324         * modules/unictype/property-xid-start-tests: New file.
8325         * modules/unictype/property-zero-width-tests: New file.
8326         * modules/unictype/scripts-tests: New file.
8327         * modules/unictype/syntax-c-ident-tests: New file.
8328         * modules/unictype/syntax-c-whitespace-tests: New file.
8329         * modules/unictype/syntax-java-ident-tests: New file.
8330         * modules/unictype/syntax-java-whitespace-tests: New file.
8331         * tests/unictype/test-bidi_byname.c: New file.
8332         * tests/unictype/test-bidi_name.c: New file.
8333         * tests/unictype/test-bidi_of.c: New file.
8334         * tests/unictype/test-bidi_test.c: New file.
8335         * tests/unictype/test-block_list.c: New file.
8336         * tests/unictype/test-block_of.c: New file.
8337         * tests/unictype/test-block_test.c: New file.
8338         * tests/unictype/test-categ_and.c: New file.
8339         * tests/unictype/test-categ_and_not.c: New file.
8340         * tests/unictype/test-categ_byname.c: New file.
8341         * tests/unictype/test-categ_name.c: New file.
8342         * tests/unictype/test-categ_none.c: New file.
8343         * tests/unictype/test-categ_of.c: New file.
8344         * tests/unictype/test-categ_or.c: New file.
8345         * tests/unictype/test-categ_test_withtable.c: New file.
8346         * tests/unictype/test-combining.c: New file.
8347         * tests/unictype/test-decdigit.c: New file.
8348         * tests/unictype/test-digit.c: New file.
8349         * tests/unictype/test-mirror.c: New file.
8350         * tests/unictype/test-numeric.c: New file.
8351         * tests/unictype/test-pr_byname.c: New file.
8352         * tests/unictype/test-pr_test.c: New file.
8353         * tests/unictype/test-predicate-part1.h: New file.
8354         * tests/unictype/test-predicate-part2.h: New file.
8355         * tests/unictype/test-scripts.c: New file.
8356         * tests/unictype/test-sy_c_ident.c: New file.
8357         * tests/unictype/test-sy_java_ident.c: New file.
8358
8359         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
8360         for Unicode 5.0.0.
8361         * tests/unictype/test-categ_Cc.c: Likewise.
8362         * tests/unictype/test-categ_Cf.c: Likewise.
8363         * tests/unictype/test-categ_Cn.c: Likewise.
8364         * tests/unictype/test-categ_Co.c: Likewise.
8365         * tests/unictype/test-categ_Cs.c: Likewise.
8366         * tests/unictype/test-categ_L.c: Likewise.
8367         * tests/unictype/test-categ_Ll.c: Likewise.
8368         * tests/unictype/test-categ_Lm.c: Likewise.
8369         * tests/unictype/test-categ_Lo.c: Likewise.
8370         * tests/unictype/test-categ_Lt.c: Likewise.
8371         * tests/unictype/test-categ_Lu.c: Likewise.
8372         * tests/unictype/test-categ_M.c: Likewise.
8373         * tests/unictype/test-categ_Mc.c: Likewise.
8374         * tests/unictype/test-categ_Me.c: Likewise.
8375         * tests/unictype/test-categ_Mn.c: Likewise.
8376         * tests/unictype/test-categ_N.c: Likewise.
8377         * tests/unictype/test-categ_Nd.c: Likewise.
8378         * tests/unictype/test-categ_Nl.c: Likewise.
8379         * tests/unictype/test-categ_No.c: Likewise.
8380         * tests/unictype/test-categ_P.c: Likewise.
8381         * tests/unictype/test-categ_Pc.c: Likewise.
8382         * tests/unictype/test-categ_Pd.c: Likewise.
8383         * tests/unictype/test-categ_Pe.c: Likewise.
8384         * tests/unictype/test-categ_Pf.c: Likewise.
8385         * tests/unictype/test-categ_Pi.c: Likewise.
8386         * tests/unictype/test-categ_Po.c: Likewise.
8387         * tests/unictype/test-categ_Ps.c: Likewise.
8388         * tests/unictype/test-categ_S.c: Likewise.
8389         * tests/unictype/test-categ_Sc.c: Likewise.
8390         * tests/unictype/test-categ_Sk.c: Likewise.
8391         * tests/unictype/test-categ_Sm.c: Likewise.
8392         * tests/unictype/test-categ_So.c: Likewise.
8393         * tests/unictype/test-categ_Z.c: Likewise.
8394         * tests/unictype/test-categ_Zl.c: Likewise.
8395         * tests/unictype/test-categ_Zp.c: Likewise.
8396         * tests/unictype/test-categ_Zs.c: Likewise.
8397         * tests/unictype/test-ctype_alnum.c: Likewise.
8398         * tests/unictype/test-ctype_alpha.c: Likewise.
8399         * tests/unictype/test-ctype_blank.c: Likewise.
8400         * tests/unictype/test-ctype_cntrl.c: Likewise.
8401         * tests/unictype/test-ctype_digit.c: Likewise.
8402         * tests/unictype/test-ctype_graph.c: Likewise.
8403         * tests/unictype/test-ctype_lower.c: Likewise.
8404         * tests/unictype/test-ctype_print.c: Likewise.
8405         * tests/unictype/test-ctype_punct.c: Likewise.
8406         * tests/unictype/test-ctype_space.c: Likewise.
8407         * tests/unictype/test-ctype_upper.c: Likewise.
8408         * tests/unictype/test-ctype_xdigit.c: Likewise.
8409         * tests/unictype/test-decdigit.h: Likewise.
8410         * tests/unictype/test-digit.h: Likewise.
8411         * tests/unictype/test-numeric.h: Likewise.
8412         * tests/unictype/test-pr_alphabetic.c: Likewise.
8413         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
8414         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8415         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8416         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
8417         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8418         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
8419         * tests/unictype/test-pr_bidi_control.c: Likewise.
8420         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
8421         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
8422         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8423         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8424         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8425         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8426         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8427         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8428         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
8429         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
8430         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
8431         * tests/unictype/test-pr_combining.c: Likewise.
8432         * tests/unictype/test-pr_composite.c: Likewise.
8433         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8434         * tests/unictype/test-pr_dash.c: Likewise.
8435         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8436         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
8437         * tests/unictype/test-pr_deprecated.c: Likewise.
8438         * tests/unictype/test-pr_diacritic.c: Likewise.
8439         * tests/unictype/test-pr_extender.c: Likewise.
8440         * tests/unictype/test-pr_format_control.c: Likewise.
8441         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8442         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8443         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8444         * tests/unictype/test-pr_hex_digit.c: Likewise.
8445         * tests/unictype/test-pr_hyphen.c: Likewise.
8446         * tests/unictype/test-pr_id_continue.c: Likewise.
8447         * tests/unictype/test-pr_id_start.c: Likewise.
8448         * tests/unictype/test-pr_ideographic.c: Likewise.
8449         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
8450         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
8451         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8452         * tests/unictype/test-pr_iso_control.c: Likewise.
8453         * tests/unictype/test-pr_join_control.c: Likewise.
8454         * tests/unictype/test-pr_left_of_pair.c: Likewise.
8455         * tests/unictype/test-pr_line_separator.c: Likewise.
8456         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8457         * tests/unictype/test-pr_lowercase.c: Likewise.
8458         * tests/unictype/test-pr_math.c: Likewise.
8459         * tests/unictype/test-pr_non_break.c: Likewise.
8460         * tests/unictype/test-pr_not_a_character.c: Likewise.
8461         * tests/unictype/test-pr_numeric.c: Likewise.
8462         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8463         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
8464         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
8465         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8466         * tests/unictype/test-pr_other_id_start.c: Likewise.
8467         * tests/unictype/test-pr_other_lowercase.c: Likewise.
8468         * tests/unictype/test-pr_other_math.c: Likewise.
8469         * tests/unictype/test-pr_other_uppercase.c: Likewise.
8470         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
8471         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
8472         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
8473         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
8474         * tests/unictype/test-pr_private_use.c: Likewise.
8475         * tests/unictype/test-pr_punctuation.c: Likewise.
8476         * tests/unictype/test-pr_quotation_mark.c: Likewise.
8477         * tests/unictype/test-pr_radical.c: Likewise.
8478         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8479         * tests/unictype/test-pr_soft_dotted.c: Likewise.
8480         * tests/unictype/test-pr_space.c: Likewise.
8481         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8482         * tests/unictype/test-pr_titlecase.c: Likewise.
8483         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8484         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8485         * tests/unictype/test-pr_uppercase.c: Likewise.
8486         * tests/unictype/test-pr_variation_selector.c: Likewise.
8487         * tests/unictype/test-pr_white_space.c: Likewise.
8488         * tests/unictype/test-pr_xid_continue.c: Likewise.
8489         * tests/unictype/test-pr_xid_start.c: Likewise.
8490         * tests/unictype/test-pr_zero_width.c: Likewise.
8491         * tests/unictype/test-sy_c_whitespace.c: Likewise.
8492         * tests/unictype/test-sy_java_whitespace.c: Likewise.
8493
8494 2007-11-12  Bruno Haible  <bruno@clisp.org>
8495
8496         Unicode character classification functions.
8497         * lib/unictype.h: New file.
8498         * modules/unictype/base: New file.
8499         * modules/unictype/category-L: New file.
8500         * modules/unictype/category-Lu: New file.
8501         * modules/unictype/category-Ll: New file.
8502         * modules/unictype/category-Lt: New file.
8503         * modules/unictype/category-Lm: New file.
8504         * modules/unictype/category-Lo: New file.
8505         * modules/unictype/category-M: New file.
8506         * modules/unictype/category-Mn: New file.
8507         * modules/unictype/category-Mc: New file.
8508         * modules/unictype/category-Me: New file.
8509         * modules/unictype/category-N: New file.
8510         * modules/unictype/category-Nd: New file.
8511         * modules/unictype/category-Nl: New file.
8512         * modules/unictype/category-No: New file.
8513         * modules/unictype/category-P: New file.
8514         * modules/unictype/category-Pc: New file.
8515         * modules/unictype/category-Pd: New file.
8516         * modules/unictype/category-Ps: New file.
8517         * modules/unictype/category-Pe: New file.
8518         * modules/unictype/category-Pi: New file.
8519         * modules/unictype/category-Pf: New file.
8520         * modules/unictype/category-Po: New file.
8521         * modules/unictype/category-S: New file.
8522         * modules/unictype/category-Sm: New file.
8523         * modules/unictype/category-Sc: New file.
8524         * modules/unictype/category-Sk: New file.
8525         * modules/unictype/category-So: New file.
8526         * modules/unictype/category-Z: New file.
8527         * modules/unictype/category-Zs: New file.
8528         * modules/unictype/category-Zl: New file.
8529         * modules/unictype/category-Zp: New file.
8530         * modules/unictype/category-C: New file.
8531         * modules/unictype/category-Cc: New file.
8532         * modules/unictype/category-Cf: New file.
8533         * modules/unictype/category-Cs: New file.
8534         * modules/unictype/category-Co: New file.
8535         * modules/unictype/category-Cn: New file.
8536         * modules/unictype/category-or: New file.
8537         * modules/unictype/category-of: New file.
8538         * modules/unictype/category-test: New file.
8539         * modules/unictype/category-test-withtable: New file.
8540         * modules/unictype/category-byname: New file.
8541         * modules/unictype/category-none: New file.
8542         * modules/unictype/category-and: New file.
8543         * modules/unictype/category-and-not: New file.
8544         * modules/unictype/category-name: New file.
8545         * modules/unictype/combining-class: New file.
8546         * modules/unictype/category-all: New file.
8547         * modules/unictype/bidicategory-all: New file.
8548         * modules/unictype/bidicategory-byname: New file.
8549         * modules/unictype/bidicategory-name: New file.
8550         * modules/unictype/bidicategory-of: New file.
8551         * modules/unictype/bidicategory-test: New file.
8552         * modules/unictype/decimal-digit: New file.
8553         * modules/unictype/digit: New file.
8554         * modules/unictype/numeric: New file.
8555         * modules/unictype/mirror: New file.
8556         * modules/unictype/property-white-space: New file.
8557         * modules/unictype/property-alphabetic: New file.
8558         * modules/unictype/property-other-alphabetic: New file.
8559         * modules/unictype/property-not-a-character: New file.
8560         * modules/unictype/property-default-ignorable-code-point: New file.
8561         * modules/unictype/property-other-default-ignorable-code-point: New
8562         file.
8563         * modules/unictype/property-deprecated: New file.
8564         * modules/unictype/property-logical-order-exception: New file.
8565         * modules/unictype/property-variation-selector: New file.
8566         * modules/unictype/property-private-use: New file.
8567         * modules/unictype/property-unassigned-code-value: New file.
8568         * modules/unictype/property-uppercase: New file.
8569         * modules/unictype/property-other-uppercase: New file.
8570         * modules/unictype/property-lowercase: New file.
8571         * modules/unictype/property-other-lowercase: New file.
8572         * modules/unictype/property-titlecase: New file.
8573         * modules/unictype/property-soft-dotted: New file.
8574         * modules/unictype/property-id-start: New file.
8575         * modules/unictype/property-other-id-start: New file.
8576         * modules/unictype/property-id-continue: New file.
8577         * modules/unictype/property-other-id-continue: New file.
8578         * modules/unictype/property-xid-start: New file.
8579         * modules/unictype/property-xid-continue: New file.
8580         * modules/unictype/property-pattern-white-space: New file.
8581         * modules/unictype/property-pattern-syntax: New file.
8582         * modules/unictype/property-join-control: New file.
8583         * modules/unictype/property-grapheme-base: New file.
8584         * modules/unictype/property-grapheme-extend: New file.
8585         * modules/unictype/property-other-grapheme-extend: New file.
8586         * modules/unictype/property-grapheme-link: New file.
8587         * modules/unictype/property-bidi-control: New file.
8588         * modules/unictype/property-bidi-left-to-right: New file.
8589         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
8590         * modules/unictype/property-bidi-arabic-right-to-left: New file.
8591         * modules/unictype/property-bidi-european-digit: New file.
8592         * modules/unictype/property-bidi-eur-num-separator: New file.
8593         * modules/unictype/property-bidi-eur-num-terminator: New file.
8594         * modules/unictype/property-bidi-arabic-digit: New file.
8595         * modules/unictype/property-bidi-common-separator: New file.
8596         * modules/unictype/property-bidi-block-separator: New file.
8597         * modules/unictype/property-bidi-segment-separator: New file.
8598         * modules/unictype/property-bidi-whitespace: New file.
8599         * modules/unictype/property-bidi-non-spacing-mark: New file.
8600         * modules/unictype/property-bidi-boundary-neutral: New file.
8601         * modules/unictype/property-bidi-pdf: New file.
8602         * modules/unictype/property-bidi-embedding-or-override: New file.
8603         * modules/unictype/property-bidi-other-neutral: New file.
8604         * modules/unictype/property-hex-digit: New file.
8605         * modules/unictype/property-ascii-hex-digit: New file.
8606         * modules/unictype/property-ideographic: New file.
8607         * modules/unictype/property-unified-ideograph: New file.
8608         * modules/unictype/property-radical: New file.
8609         * modules/unictype/property-ids-binary-operator: New file.
8610         * modules/unictype/property-ids-trinary-operator: New file.
8611         * modules/unictype/property-zero-width: New file.
8612         * modules/unictype/property-space: New file.
8613         * modules/unictype/property-non-break: New file.
8614         * modules/unictype/property-iso-control: New file.
8615         * modules/unictype/property-format-control: New file.
8616         * modules/unictype/property-dash: New file.
8617         * modules/unictype/property-hyphen: New file.
8618         * modules/unictype/property-punctuation: New file.
8619         * modules/unictype/property-line-separator: New file.
8620         * modules/unictype/property-paragraph-separator: New file.
8621         * modules/unictype/property-quotation-mark: New file.
8622         * modules/unictype/property-sentence-terminal: New file.
8623         * modules/unictype/property-terminal-punctuation: New file.
8624         * modules/unictype/property-currency-symbol: New file.
8625         * modules/unictype/property-math: New file.
8626         * modules/unictype/property-other-math: New file.
8627         * modules/unictype/property-paired-punctuation: New file.
8628         * modules/unictype/property-left-of-pair: New file.
8629         * modules/unictype/property-combining: New file.
8630         * modules/unictype/property-composite: New file.
8631         * modules/unictype/property-decimal-digit: New file.
8632         * modules/unictype/property-numeric: New file.
8633         * modules/unictype/property-diacritic: New file.
8634         * modules/unictype/property-extender: New file.
8635         * modules/unictype/property-ignorable-control: New file.
8636         * modules/unictype/property-test: New file.
8637         * modules/unictype/property-byname: New file.
8638         * modules/unictype/property-all: New file.
8639         * modules/unictype/scripts: New file.
8640         * modules/unictype/scripts-all: New file.
8641         * modules/unictype/block-of: New file.
8642         * modules/unictype/block-test: New file.
8643         * modules/unictype/block-list: New file.
8644         * modules/unictype/block-all: New file.
8645         * modules/unictype/syntax-c-whitespace: New file.
8646         * modules/unictype/syntax-java-whitespace: New file.
8647         * modules/unictype/syntax-c-ident: New file.
8648         * modules/unictype/syntax-java-ident: New file.
8649         * modules/unictype/ctype-alnum: New file.
8650         * modules/unictype/ctype-alpha: New file.
8651         * modules/unictype/ctype-cntrl: New file.
8652         * modules/unictype/ctype-digit: New file.
8653         * modules/unictype/ctype-graph: New file.
8654         * modules/unictype/ctype-lower: New file.
8655         * modules/unictype/ctype-print: New file.
8656         * modules/unictype/ctype-punct: New file.
8657         * modules/unictype/ctype-space: New file.
8658         * modules/unictype/ctype-upper: New file.
8659         * modules/unictype/ctype-xdigit: New file.
8660         * modules/unictype/ctype-blank: New file.
8661         * lib/unictype/bidi_byname.c: New file.
8662         * lib/unictype/bidi_name.c: New file.
8663         * lib/unictype/bidi_of.c: New file.
8664         * lib/unictype/bidi_test.c: New file.
8665         * lib/unictype/bitmap.h: New file.
8666         * lib/unictype/block_test.c: New file.
8667         * lib/unictype/blocks.c: New file.
8668         * lib/unictype/categ_C.c: New file.
8669         * lib/unictype/categ_Cc.c: New file.
8670         * lib/unictype/categ_Cf.c: New file.
8671         * lib/unictype/categ_Cn.c: New file.
8672         * lib/unictype/categ_Co.c: New file.
8673         * lib/unictype/categ_Cs.c: New file.
8674         * lib/unictype/categ_L.c: New file.
8675         * lib/unictype/categ_Ll.c: New file.
8676         * lib/unictype/categ_Lm.c: New file.
8677         * lib/unictype/categ_Lo.c: New file.
8678         * lib/unictype/categ_Lt.c: New file.
8679         * lib/unictype/categ_Lu.c: New file.
8680         * lib/unictype/categ_M.c: New file.
8681         * lib/unictype/categ_Mc.c: New file.
8682         * lib/unictype/categ_Me.c: New file.
8683         * lib/unictype/categ_Mn.c: New file.
8684         * lib/unictype/categ_N.c: New file.
8685         * lib/unictype/categ_Nd.c: New file.
8686         * lib/unictype/categ_Nl.c: New file.
8687         * lib/unictype/categ_No.c: New file.
8688         * lib/unictype/categ_P.c: New file.
8689         * lib/unictype/categ_Pc.c: New file.
8690         * lib/unictype/categ_Pd.c: New file.
8691         * lib/unictype/categ_Pe.c: New file.
8692         * lib/unictype/categ_Pf.c: New file.
8693         * lib/unictype/categ_Pi.c: New file.
8694         * lib/unictype/categ_Po.c: New file.
8695         * lib/unictype/categ_Ps.c: New file.
8696         * lib/unictype/categ_S.c: New file.
8697         * lib/unictype/categ_Sc.c: New file.
8698         * lib/unictype/categ_Sk.c: New file.
8699         * lib/unictype/categ_Sm.c: New file.
8700         * lib/unictype/categ_So.c: New file.
8701         * lib/unictype/categ_Z.c: New file.
8702         * lib/unictype/categ_Zl.c: New file.
8703         * lib/unictype/categ_Zp.c: New file.
8704         * lib/unictype/categ_Zs.c: New file.
8705         * lib/unictype/categ_and.c: New file.
8706         * lib/unictype/categ_and_not.c: New file.
8707         * lib/unictype/categ_byname.c: New file.
8708         * lib/unictype/categ_name.c: New file.
8709         * lib/unictype/categ_none.c: New file.
8710         * lib/unictype/categ_of.c: New file.
8711         * lib/unictype/categ_or.c: New file.
8712         * lib/unictype/categ_test.c: New file.
8713         * lib/unictype/combining.c: New file.
8714         * lib/unictype/ctype_alnum.c: New file.
8715         * lib/unictype/ctype_alpha.c: New file.
8716         * lib/unictype/ctype_blank.c: New file.
8717         * lib/unictype/ctype_cntrl.c: New file.
8718         * lib/unictype/ctype_digit.c: New file.
8719         * lib/unictype/ctype_graph.c: New file.
8720         * lib/unictype/ctype_lower.c: New file.
8721         * lib/unictype/ctype_print.c: New file.
8722         * lib/unictype/ctype_punct.c: New file.
8723         * lib/unictype/ctype_space.c: New file.
8724         * lib/unictype/ctype_upper.c: New file.
8725         * lib/unictype/ctype_xdigit.c: New file.
8726         * lib/unictype/decdigit.c: New file.
8727         * lib/unictype/digit.c: New file.
8728         * lib/unictype/identsyntaxmap.h: New file.
8729         * lib/unictype/mirror.c: New file.
8730         * lib/unictype/numeric.c: New file.
8731         * lib/unictype/pr_alphabetic.c: New file.
8732         * lib/unictype/pr_ascii_hex_digit.c: New file.
8733         * lib/unictype/pr_bidi_arabic_digit.c: New file.
8734         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
8735         * lib/unictype/pr_bidi_block_separator.c: New file.
8736         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
8737         * lib/unictype/pr_bidi_common_separator.c: New file.
8738         * lib/unictype/pr_bidi_control.c: New file.
8739         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
8740         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
8741         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
8742         * lib/unictype/pr_bidi_european_digit.c: New file.
8743         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
8744         * lib/unictype/pr_bidi_left_to_right.c: New file.
8745         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
8746         * lib/unictype/pr_bidi_other_neutral.c: New file.
8747         * lib/unictype/pr_bidi_pdf.c: New file.
8748         * lib/unictype/pr_bidi_segment_separator.c: New file.
8749         * lib/unictype/pr_bidi_whitespace.c: New file.
8750         * lib/unictype/pr_byname.c: New file.
8751         * lib/unictype/pr_byname.gperf: New file.
8752         * lib/unictype/pr_combining.c: New file.
8753         * lib/unictype/pr_composite.c: New file.
8754         * lib/unictype/pr_currency_symbol.c: New file.
8755         * lib/unictype/pr_dash.c: New file.
8756         * lib/unictype/pr_decimal_digit.c: New file.
8757         * lib/unictype/pr_default_ignorable_code_point.c: New file.
8758         * lib/unictype/pr_deprecated.c: New file.
8759         * lib/unictype/pr_diacritic.c: New file.
8760         * lib/unictype/pr_extender.c: New file.
8761         * lib/unictype/pr_format_control.c: New file.
8762         * lib/unictype/pr_grapheme_base.c: New file.
8763         * lib/unictype/pr_grapheme_extend.c: New file.
8764         * lib/unictype/pr_grapheme_link.c: New file.
8765         * lib/unictype/pr_hex_digit.c: New file.
8766         * lib/unictype/pr_hyphen.c: New file.
8767         * lib/unictype/pr_id_continue.c: New file.
8768         * lib/unictype/pr_id_start.c: New file.
8769         * lib/unictype/pr_ideographic.c: New file.
8770         * lib/unictype/pr_ids_binary_operator.c: New file.
8771         * lib/unictype/pr_ids_trinary_operator.c: New file.
8772         * lib/unictype/pr_ignorable_control.c: New file.
8773         * lib/unictype/pr_iso_control.c: New file.
8774         * lib/unictype/pr_join_control.c: New file.
8775         * lib/unictype/pr_left_of_pair.c: New file.
8776         * lib/unictype/pr_line_separator.c: New file.
8777         * lib/unictype/pr_logical_order_exception.c: New file.
8778         * lib/unictype/pr_lowercase.c: New file.
8779         * lib/unictype/pr_math.c: New file.
8780         * lib/unictype/pr_non_break.c: New file.
8781         * lib/unictype/pr_not_a_character.c: New file.
8782         * lib/unictype/pr_numeric.c: New file.
8783         * lib/unictype/pr_other_alphabetic.c: New file.
8784         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
8785         * lib/unictype/pr_other_grapheme_extend.c: New file.
8786         * lib/unictype/pr_other_id_continue.c: New file.
8787         * lib/unictype/pr_other_id_start.c: New file.
8788         * lib/unictype/pr_other_lowercase.c: New file.
8789         * lib/unictype/pr_other_math.c: New file.
8790         * lib/unictype/pr_other_uppercase.c: New file.
8791         * lib/unictype/pr_paired_punctuation.c: New file.
8792         * lib/unictype/pr_paragraph_separator.c: New file.
8793         * lib/unictype/pr_pattern_syntax.c: New file.
8794         * lib/unictype/pr_pattern_white_space.c: New file.
8795         * lib/unictype/pr_private_use.c: New file.
8796         * lib/unictype/pr_punctuation.c: New file.
8797         * lib/unictype/pr_quotation_mark.c: New file.
8798         * lib/unictype/pr_radical.c: New file.
8799         * lib/unictype/pr_sentence_terminal.c: New file.
8800         * lib/unictype/pr_soft_dotted.c: New file.
8801         * lib/unictype/pr_space.c: New file.
8802         * lib/unictype/pr_terminal_punctuation.c: New file.
8803         * lib/unictype/pr_test.c: New file.
8804         * lib/unictype/pr_titlecase.c: New file.
8805         * lib/unictype/pr_unassigned_code_value.c: New file.
8806         * lib/unictype/pr_unified_ideograph.c: New file.
8807         * lib/unictype/pr_uppercase.c: New file.
8808         * lib/unictype/pr_variation_selector.c: New file.
8809         * lib/unictype/pr_white_space.c: New file.
8810         * lib/unictype/pr_xid_continue.c: New file.
8811         * lib/unictype/pr_xid_start.c: New file.
8812         * lib/unictype/pr_zero_width.c: New file.
8813         * lib/unictype/scripts.c: New file.
8814         * lib/unictype/sy_c_ident.c: New file.
8815         * lib/unictype/sy_c_whitespace.c: New file.
8816         * lib/unictype/sy_java_ident.c: New file.
8817         * lib/unictype/sy_java_whitespace.c: New file.
8818
8819         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
8820         Unicode 5.0.0.
8821         * lib/unictype/blocks.h: Likewise.
8822         * lib/unictype/categ_C.h: Likewise.
8823         * lib/unictype/categ_Cc.h: Likewise.
8824         * lib/unictype/categ_Cf.h: Likewise.
8825         * lib/unictype/categ_Cn.h: Likewise.
8826         * lib/unictype/categ_Co.h: Likewise.
8827         * lib/unictype/categ_Cs.h: Likewise.
8828         * lib/unictype/categ_L.h: Likewise.
8829         * lib/unictype/categ_Ll.h: Likewise.
8830         * lib/unictype/categ_Lm.h: Likewise.
8831         * lib/unictype/categ_Lo.h: Likewise.
8832         * lib/unictype/categ_Lt.h: Likewise.
8833         * lib/unictype/categ_Lu.h: Likewise.
8834         * lib/unictype/categ_M.h: Likewise.
8835         * lib/unictype/categ_Mc.h: Likewise.
8836         * lib/unictype/categ_Me.h: Likewise.
8837         * lib/unictype/categ_Mn.h: Likewise.
8838         * lib/unictype/categ_N.h: Likewise.
8839         * lib/unictype/categ_Nd.h: Likewise.
8840         * lib/unictype/categ_Nl.h: Likewise.
8841         * lib/unictype/categ_No.h: Likewise.
8842         * lib/unictype/categ_P.h: Likewise.
8843         * lib/unictype/categ_Pc.h: Likewise.
8844         * lib/unictype/categ_Pd.h: Likewise.
8845         * lib/unictype/categ_Pe.h: Likewise.
8846         * lib/unictype/categ_Pf.h: Likewise.
8847         * lib/unictype/categ_Pi.h: Likewise.
8848         * lib/unictype/categ_Po.h: Likewise.
8849         * lib/unictype/categ_Ps.h: Likewise.
8850         * lib/unictype/categ_S.h: Likewise.
8851         * lib/unictype/categ_Sc.h: Likewise.
8852         * lib/unictype/categ_Sk.h: Likewise.
8853         * lib/unictype/categ_Sm.h: Likewise.
8854         * lib/unictype/categ_So.h: Likewise.
8855         * lib/unictype/categ_Z.h: Likewise.
8856         * lib/unictype/categ_Zl.h: Likewise.
8857         * lib/unictype/categ_Zp.h: Likewise.
8858         * lib/unictype/categ_Zs.h: Likewise.
8859         * lib/unictype/categ_of.h: Likewise.
8860         * lib/unictype/combining.h: Likewise.
8861         * lib/unictype/ctype_alnum.h: Likewise.
8862         * lib/unictype/ctype_alpha.h: Likewise.
8863         * lib/unictype/ctype_blank.h: Likewise.
8864         * lib/unictype/ctype_cntrl.h: Likewise.
8865         * lib/unictype/ctype_digit.h: Likewise.
8866         * lib/unictype/ctype_graph.h: Likewise.
8867         * lib/unictype/ctype_lower.h: Likewise.
8868         * lib/unictype/ctype_print.h: Likewise.
8869         * lib/unictype/ctype_punct.h: Likewise.
8870         * lib/unictype/ctype_space.h: Likewise.
8871         * lib/unictype/ctype_upper.h: Likewise.
8872         * lib/unictype/ctype_xdigit.h: Likewise.
8873         * lib/unictype/decdigit.h: Likewise.
8874         * lib/unictype/digit.h: Likewise.
8875         * lib/unictype/mirror.h: Likewise.
8876         * lib/unictype/numeric.h: Likewise.
8877         * lib/unictype/pr_alphabetic.h: Likewise.
8878         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8879         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8880         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8881         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8882         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8883         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8884         * lib/unictype/pr_bidi_control.h: Likewise.
8885         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8886         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8887         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8888         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8889         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8890         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8891         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8892         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8893         * lib/unictype/pr_bidi_pdf.h: Likewise.
8894         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8895         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8896         * lib/unictype/pr_combining.h: Likewise.
8897         * lib/unictype/pr_composite.h: Likewise.
8898         * lib/unictype/pr_currency_symbol.h: Likewise.
8899         * lib/unictype/pr_dash.h: Likewise.
8900         * lib/unictype/pr_decimal_digit.h: Likewise.
8901         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8902         * lib/unictype/pr_deprecated.h: Likewise.
8903         * lib/unictype/pr_diacritic.h: Likewise.
8904         * lib/unictype/pr_extender.h: Likewise.
8905         * lib/unictype/pr_format_control.h: Likewise.
8906         * lib/unictype/pr_grapheme_base.h: Likewise.
8907         * lib/unictype/pr_grapheme_extend.h: Likewise.
8908         * lib/unictype/pr_grapheme_link.h: Likewise.
8909         * lib/unictype/pr_hex_digit.h: Likewise.
8910         * lib/unictype/pr_hyphen.h: Likewise.
8911         * lib/unictype/pr_id_continue.h: Likewise.
8912         * lib/unictype/pr_id_start.h: Likewise.
8913         * lib/unictype/pr_ideographic.h: Likewise.
8914         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8915         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8916         * lib/unictype/pr_ignorable_control.h: Likewise.
8917         * lib/unictype/pr_iso_control.h: Likewise.
8918         * lib/unictype/pr_join_control.h: Likewise.
8919         * lib/unictype/pr_left_of_pair.h: Likewise.
8920         * lib/unictype/pr_line_separator.h: Likewise.
8921         * lib/unictype/pr_logical_order_exception.h: Likewise.
8922         * lib/unictype/pr_lowercase.h: Likewise.
8923         * lib/unictype/pr_math.h: Likewise.
8924         * lib/unictype/pr_non_break.h: Likewise.
8925         * lib/unictype/pr_not_a_character.h: Likewise.
8926         * lib/unictype/pr_numeric.h: Likewise.
8927         * lib/unictype/pr_other_alphabetic.h: Likewise.
8928         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8929         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8930         * lib/unictype/pr_other_id_continue.h: Likewise.
8931         * lib/unictype/pr_other_id_start.h: Likewise.
8932         * lib/unictype/pr_other_lowercase.h: Likewise.
8933         * lib/unictype/pr_other_math.h: Likewise.
8934         * lib/unictype/pr_other_uppercase.h: Likewise.
8935         * lib/unictype/pr_paired_punctuation.h: Likewise.
8936         * lib/unictype/pr_paragraph_separator.h: Likewise.
8937         * lib/unictype/pr_pattern_syntax.h: Likewise.
8938         * lib/unictype/pr_pattern_white_space.h: Likewise.
8939         * lib/unictype/pr_private_use.h: Likewise.
8940         * lib/unictype/pr_punctuation.h: Likewise.
8941         * lib/unictype/pr_quotation_mark.h: Likewise.
8942         * lib/unictype/pr_radical.h: Likewise.
8943         * lib/unictype/pr_sentence_terminal.h: Likewise.
8944         * lib/unictype/pr_soft_dotted.h: Likewise.
8945         * lib/unictype/pr_space.h: Likewise.
8946         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8947         * lib/unictype/pr_titlecase.h: Likewise.
8948         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8949         * lib/unictype/pr_unified_ideograph.h: Likewise.
8950         * lib/unictype/pr_uppercase.h: Likewise.
8951         * lib/unictype/pr_variation_selector.h: Likewise.
8952         * lib/unictype/pr_white_space.h: Likewise.
8953         * lib/unictype/pr_xid_continue.h: Likewise.
8954         * lib/unictype/pr_xid_start.h: Likewise.
8955         * lib/unictype/pr_zero_width.h: Likewise.
8956         * lib/unictype/scripts.h: Likewise.
8957         * lib/unictype/scripts_byname.gperf: Likewise.
8958         * lib/unictype/sy_c_ident.h: Likewise.
8959         * lib/unictype/sy_c_whitespace.h: Likewise.
8960         * lib/unictype/sy_java_ident.h: Likewise.
8961         * lib/unictype/sy_java_whitespace.h: Likewise.
8962
8963         * lib/unictype/Makefile: New file.
8964         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
8965         glibc.
8966         * lib/unictype/3level.h: New file, copied from glibc.
8967         * lib/unictype/3levelbit.h: New file.
8968
8969 2007-11-11  Bruno Haible  <bruno@clisp.org>
8970
8971         * modules/gperf: New file.
8972         * modules/iconv_open (Depends-on): Add it.
8973         (Makefile.am): Remove the GPERF definition.
8974
8975 2007-11-11  Bruno Haible  <bruno@clisp.org>
8976
8977         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
8978         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
8979
8980 2007-11-11  Bruno Haible  <bruno@clisp.org>
8981
8982         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
8983         (usage): Remove function.
8984
8985 2007-11-11  Bruno Haible  <bruno@clisp.org>
8986
8987         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
8988         gl_FUNC_CEILF_LIBS.
8989         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
8990         gl_FUNC_CEIL_LIBS.
8991         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
8992         gl_FUNC_CEILL_LIBS.
8993         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
8994         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
8995         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
8996
8997 2007-11-11  Bruno Haible  <bruno@clisp.org>
8998
8999         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
9000         roundf were declared but do not exist on functions.
9001         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
9002         roundl were declared but do not exist on functions.
9003         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
9004         HAVE_FLOORL_AND_CEILL, respectively.
9005         Needed for Sun C on Solaris 10.
9006
9007 2007-11-11  Bruno Haible  <bruno@clisp.org>
9008
9009         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
9010         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
9011         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
9012         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
9013         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
9014         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
9015         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
9016         HAVE_DECL_ROUNDF.
9017         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
9018         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
9019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
9020         of HAVE_DECL_ROUND*.
9021         * modules/math (Makefile.am): Update.
9022
9023 2007-11-10  Bruno Haible  <bruno@clisp.org>
9024
9025         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
9026         ptrdiff_t as m4/intl.m4.
9027
9028 2007-11-10  Jim Meyering  <meyering@redhat.com>
9029
9030         Avoid link failure for the argmatch test.
9031         * tests/test-argmatch.c (usage): Define function to avoid a link
9032         failure: argmatch_die requires a usage function.
9033
9034 2007-11-09  Bruno Haible  <bruno@clisp.org>
9035
9036         * doc/functions/snprintf.texi: Mention BeOS deficiency.
9037         * doc/functions/vsnprintf.texi: Likewise.
9038         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
9039         with a size argument < 2.
9040
9041 2007-11-09  Bruno Haible  <bruno@clisp.org>
9042
9043         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
9044         buffer. Fixes an inefficiency introduced on 2007-11-03.
9045
9046 2007-11-09  Bruno Haible  <bruno@clisp.org>
9047
9048         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
9049         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
9050
9051 2007-11-08  Jim Meyering  <meyering@redhat.com>
9052
9053         Change cache variable name prefix "jm_" to "gl_" everywhere.
9054         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
9055         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
9056         * m4/uptime.m4: s/gl_/jm_/
9057
9058 2007-11-07  Bruno Haible  <bruno@clisp.org>
9059
9060         Update to GNU gettext 0.17.
9061         * m4/intl.m4: Update to GNU gettext 0.17.
9062         * m4/po.m4: Likewise.
9063         * modules/gettext (Files): Remove m4/ulonglong.m4.
9064         (configure.ac): Require gettext infrastructure from version 0.17.
9065
9066 2007-11-06  Bruno Haible  <bruno@clisp.org>
9067
9068         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
9069         symbolic values are not defined in a public header.
9070         * lib/freadable.c (freadable) [QNX]: Likewise.
9071         * lib/freadahead.c (freadahead) [QNX]: Likewise.
9072         * lib/freading.c (freading) [QNX]: Likewise.
9073         * lib/fseterr.c (fseterr) [QNX]: Likewise.
9074         * lib/fwritable.c (fwritable) [QNX]: Likewise.
9075         * lib/fwriting.c (fwriting) [QNX]: Likewise.
9076         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
9077         Reported by Alain Magloire.
9078
9079         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
9080
9081 2007-11-05  Bruno Haible  <bruno@clisp.org>
9082
9083         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
9084         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
9085         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
9086         Reported by Eric Blake.
9087
9088 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9089             Bruno Haible  <bruno@clisp.org>
9090
9091         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
9092         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
9093         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
9094         (malloc): Undefine also before including <stdlib.h>.
9095         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
9096         Needed on OSF/1 4.0.
9097
9098 2007-11-05  Jim Meyering  <meyering@redhat.com>
9099
9100         git-version-gen: sync from coreutils.
9101         * build-aux/git-version-gen: Add comments.
9102         Change the first '-' to '.' in the snapshot version string,
9103         e.g., 6.9-377-08144 -> 6.9.377-08144
9104         Remove first parameter.
9105         Don't declare a version "-dirty" merely because a time
9106         stamp has changed.
9107
9108 2007-11-04  Bruno Haible  <bruno@clisp.org>
9109
9110         * lib/lock.h: Protect all macro definitions containing an 'if'
9111         statement through a "do { ... } while (0)".
9112         * lib/tls.h: Likewise.
9113
9114 2007-11-04  Bruno Haible  <bruno@clisp.org>
9115
9116         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
9117
9118 2007-11-04  Bruno Haible  <bruno@clisp.org>
9119
9120         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
9121         * modules/fprintf-posix (Depends-on): Add nocrash.
9122         * modules/snprintf-posix (Depends-on): Likewise.
9123         * modules/sprintf-posix (Depends-on): Likewise.
9124         * modules/vasnprintf-posix (Depends-on): Likewise.
9125         * modules/vasprintf-posix (Depends-on): Likewise.
9126         * modules/vfprintf-posix (Depends-on): Likewise.
9127         * modules/vsnprintf-posix (Depends-on): Likewise.
9128         * modules/vsprintf-posix (Depends-on): Likewise.
9129         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9130         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9131         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9132         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9133         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9134         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9135         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9136
9137 2007-11-04  Bruno Haible  <bruno@clisp.org>
9138
9139         * modules/nocrash: New file.
9140         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
9141         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
9142
9143 2007-11-04  Bruno Haible  <bruno@clisp.org>
9144
9145         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
9146         precision handling.
9147         * tests/test-vasprintf-posix.c (test_function): Likewise.
9148         * tests/test-snprintf-posix.h (test_function): Likewise.
9149         * tests/test-sprintf-posix.h (test_function): Likewise.
9150
9151         Fix *printf behaviour for large precisions on mingw and BeOS.
9152         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
9153         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
9154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
9155         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9156         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9157         gl_PRINTF_PRECISION and test its result. Invoke
9158         gl_PREREQ_VASNPRINTF_PRECISION.
9159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9160         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9162         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9163         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9165         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9166         * doc/functions/fprintf.texi: Update.
9167         * doc/functions/printf.texi: Update.
9168         * doc/functions/snprintf.texi: Update.
9169         * doc/functions/sprintf.texi: Update.
9170         * doc/functions/vfprintf.texi: Update.
9171         * doc/functions/vprintf.texi: Update.
9172         * doc/functions/vsnprintf.texi: Update.
9173         * doc/functions/vsprintf.texi: Update.
9174
9175 2007-11-04  Bruno Haible  <bruno@clisp.org>
9176
9177         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
9178
9179 2007-11-04  Bruno Haible  <bruno@clisp.org>
9180
9181         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
9182         Reported by Sylvain Beucler <beuc@gnu.org>.
9183
9184 2007-11-03  Bruno Haible  <bruno@clisp.org>
9185
9186         * tests/test-fprintf-posix2.sh: New file.
9187         * tests/test-fprintf-posix2.c: New file.
9188         * modules/fprintf-posix-tests (Files): Add them.
9189         (TESTS): Add test-fprintf-posix2.sh.
9190         (configure.ac): Check for getrlimit and setrlimit.
9191         (check_PROGRAMS): Add test-fprintf-posix2.
9192
9193         * tests/test-printf-posix2.sh: New file.
9194         * tests/test-printf-posix2.c: New file.
9195         * modules/printf-posix-tests (Files): Add them.
9196         (TESTS): Add test-printf-posix2.sh.
9197         (configure.ac): Check for getrlimit and setrlimit.
9198         (check_PROGRAMS): Add test-printf-posix2.
9199
9200         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
9201         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
9202         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
9203         (decode_double): New function, copied from decode_long_double.
9204         (scale10_round_decimal_decoded): New function, extracted from
9205         scale10_round_decimal_long_double.
9206         (scale10_round_decimal_long_double): Use it.
9207         (scale10_round_decimal_double): New function.
9208         (floorlog10): New function.
9209         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
9210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
9211         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9212         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9213         gl_PRINTF_ENOMEM and test its result. Invoke
9214         gl_PREREQ_VASNPRINTF_ENOMEM.
9215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9216         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9217         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9219         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9220         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9222         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
9223         * modules/snprintf-posix (Depends-on): Likewise.
9224         * modules/sprintf-posix (Depends-on): Likewise.
9225         * modules/vasnprintf-posix (Depends-on): Likewise.
9226         * modules/vasprintf-posix (Depends-on): Likewise.
9227         * modules/vfprintf-posix (Depends-on): Likewise.
9228         * modules/vsnprintf-posix (Depends-on): Likewise.
9229         * modules/vsprintf-posix (Depends-on): Likewise.
9230         * doc/functions/fprintf.texi: Update.
9231         * doc/functions/printf.texi: Update.
9232         * doc/functions/snprintf.texi: Update.
9233         * doc/functions/sprintf.texi: Update.
9234         * doc/functions/vfprintf.texi: Update.
9235         * doc/functions/vprintf.texi: Update.
9236         * doc/functions/vsnprintf.texi: Update.
9237         * doc/functions/vsprintf.texi: Update.
9238
9239 2007-11-03  Bruno Haible  <bruno@clisp.org>
9240
9241         * modules/frexp-nolibm-tests: New file.
9242
9243         * modules/frexp-nolibm: New file.
9244         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
9245
9246 2007-11-03  Bruno Haible  <bruno@clisp.org>
9247
9248         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
9249         value is C99 compliant.
9250         Needed for OSF/1 5.1.
9251
9252 2007-11-03  Bruno Haible  <bruno@clisp.org>
9253
9254         Fix out-of-memory handling of vasnprintf.
9255         * lib/printf-parse.c: Include <errno.h>.
9256         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
9257         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
9258         is already set.
9259
9260 2007-11-02  Eric Blake  <ebb9@byu.net>
9261
9262         Fix tests on cygwin.
9263         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
9264
9265 2007-11-01  Bruno Haible  <bruno@clisp.org>
9266
9267         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
9268         warning.
9269         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
9270         needed for POSIX compatibility.
9271
9272 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9273
9274         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
9275         for compatibility with GNU.
9276
9277 2007-11-01  Bruno Haible  <bruno@clisp.org>
9278
9279         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
9280         (putenv): Renamed from rpl_putenv. Change argument type from
9281         'const char *' to 'char *'.
9282         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
9283         of defining putenv in config.h, just set REPLACE_PUTENV.
9284         * modules/putenv (Depends-on): Add stdlib.
9285         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9286         (Include): Use <stdlib.h>.
9287         * lib/stdlib.in.h (putenv): New declaration.
9288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
9289         REPLACE_PUTENV.
9290         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
9291         REPLACE_PUTENV.
9292         Needed for MacOS X 10.5.0.
9293         Reported by Peter O'Gorman <peter@pogma.com>.
9294
9295 2007-11-01  Jim Meyering  <meyering@redhat.com>
9296
9297         Treat an empty date string exactly like "0".
9298         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
9299         if the remaining date string (to be parsed) is empty, use "0".
9300         Reported by Mischa Molhoek and discussed in this thread:
9301         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
9302
9303 2007-10-31  Bruno Haible  <bruno@clisp.org>
9304
9305         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
9306         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
9307         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
9308         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
9309         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
9310         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
9311
9312 2007-10-31  Bruno Haible  <bruno@clisp.org>
9313
9314         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
9315         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
9316         (AC_TYPE_LONG_LONG_INT): Use it.
9317         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
9318         it as well.
9319         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
9320         to m4/longlong.m4.
9321         * modules/stdint (Files): Remove m4/ulonglong.m4.
9322         * modules/strtoull (Files): Use m4/longlong.m4 instead of
9323         m4/ulonglong.m4.
9324         * modules/strtoumax (Files): Likewise.
9325
9326 2007-10-30  Bruno Haible  <bruno@clisp.org>
9327
9328         * modules/xvasprintf-posix: New file.
9329         Suggested by Eric Blake.
9330
9331 2007-10-30  Bruno Haible  <bruno@clisp.org>
9332
9333         * modules/xprintf-posix-tests: New file.
9334         * tests/test-xprintf-posix.sh: New file.
9335         * tests/test-xprintf-posix.c: New file.
9336         * tests/test-xfprintf-posix.c: New file.
9337
9338         * modules/xprintf-posix: New file.
9339
9340 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9341
9342         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
9343         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
9344         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
9345
9346 2007-10-29  Bruno Haible  <bruno@clisp.org>
9347
9348         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
9349         contain the special marker '_cv_'.
9350         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9351         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9352         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9353         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9354         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9355         Reported by Ralf Wildenhues.
9356
9357 2007-10-29  Bruno Haible  <bruno@clisp.org>
9358
9359         * gnulib-tool (func_import): When --lgpl is not specified, set
9360         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
9361         GPLv3.
9362         Reported by Simon Josefsson.
9363
9364 2007-10-28  Bruno Haible  <bruno@clisp.org>
9365
9366         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
9367         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
9368         HAVE_DECL_ISFINITE.
9369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9370         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
9371         HAVE_DECL_ISFINITE.
9372
9373 2007-10-28  Bruno Haible  <bruno@clisp.org>
9374
9375         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
9376         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
9377
9378 2007-10-28  Bruno Haible  <bruno@clisp.org>
9379
9380         Fix link errors with Sun C 5.0 on Solaris 10.
9381         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
9382         function is declared but not present in the compiler's libm.
9383         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9384         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9385         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
9386         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
9387         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
9388         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
9389         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
9390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9391         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
9392         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
9393         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
9394         HAVE_DECL_FLOORL.
9395
9396 2007-10-28  Bruno Haible  <bruno@clisp.org>
9397
9398         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
9399         gl_FUNC_FLOORL. Cache the result.
9400         (gl_FUNC_FLOORL): Use it.
9401         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
9402         gl_FUNC_CEILL. Cache the result.
9403         (gl_FUNC_CEILL): Use it.
9404
9405         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
9406         gl_FUNC_FLOOR. Cache the result.
9407         (gl_FUNC_FLOOR): Use it.
9408         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
9409         gl_FUNC_CEIL. Cache the result.
9410         (gl_FUNC_CEIL): Use it.
9411
9412         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
9413         gl_FUNC_FLOORF. Cache the result.
9414         (gl_FUNC_FLOORF): Use it.
9415         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
9416         gl_FUNC_CEILF. Cache the result.
9417         (gl_FUNC_CEILF): Use it.
9418
9419 2007-10-28  Bruno Haible  <bruno@clisp.org>
9420
9421         * gnulib-tool: Allow specifying the LGPL version number through
9422         --lgpl=2 or --lgpl=3.
9423         (func_usage): Document --lgpl with argument.
9424         Handle --lgpl=... arguments.
9425         (func_import): Recognize also gl_LGPL calls with an argument. When
9426         --lgpl=2 is used and the module's license is just LGPL, report an
9427         error. Set sed_transform_lib_file according to the lgpl variable. In
9428         the generated files, use --lgpl or gl_LGPL invocations with argument,
9429         if necessary.
9430         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
9431         an LGPv2+ license.
9432         * doc/gnulib-tool.texi (Modified imports): Update explanation of
9433         gl_LGPL macro.
9434
9435 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9436             Bruno Haible  <bruno@clisp.org>
9437
9438         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
9439         (u16_uctomb_aux): Likewise.
9440         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
9441         !HAVE_INLINE.
9442         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
9443
9444 2007-10-28  Bruno Haible  <bruno@clisp.org>
9445
9446         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
9447         Invoke AM_GETTEXT_OPTION if it exists.
9448         * modules/vasprintf: Likewise.
9449         * modules/verror: Likewise.
9450         * modules/xprintf: Likewise.
9451         * modules/xvasprintf: Likewise.
9452
9453 2007-10-27  Ben Pfaff  <blp@gnu.org>
9454
9455         * lib/math.in.h: Define isfinite macro and prototypes for
9456         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
9457         implementations.
9458         * m4/math_h.m4: New substitutions for isfinite module.
9459         * lib/isfinite.c: New file.
9460         * m4/isfinite.m4: New file.
9461         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
9462         * modules/isfinite: New file.
9463         * modules/isfinite-tests: New file.
9464         * tests/tests-isfinite.c: New file.
9465         * doc/functions/isfinite.texi: Mention isfinite module.
9466         * MODULES.html.sh: Mention new module.
9467
9468 2007-10-27  Ben Pfaff  <blp@gnu.org>
9469
9470         Ralf Wildenhues reported that Tru64 4.0D declares the round
9471         functions but does not have definitions.
9472         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
9473         cannot be found in any library, set the output variable to
9474         "missing" instead of "".
9475         * m4/round.m4: Also use our substitute if we cannot find round in
9476         any library, even if it is declared.
9477         * m4/roundf.m4: Likewise for roundf.
9478         * m4/roundl.m4: Likewise for roundl.
9479         * lib/math.in.h: Undefine roundf, round, roundl before defining
9480         their replacements, to allow for hypothetical systems where these
9481         may be defined as macros but not available in libraries.
9482
9483 2007-10-27  Bruno Haible  <bruno@clisp.org>
9484
9485         * doc/gnulib.texi: Invoke @firstparagraphindent.
9486         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
9487         changes in gnulib.
9488         (Source changes): New section.
9489
9490 2007-10-26  Bruno Haible  <bruno@clisp.org>
9491
9492         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
9493         borrowed from autoconf.
9494
9495 2007-10-26  Bruno Haible  <bruno@clisp.org>
9496
9497         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
9498         strerror returned the empty string. Needed on HP-UX 11.00.
9499
9500 2007-10-24  Micah Cowan  <micah@cowan.name>
9501
9502         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
9503         * build-aux/bootstrap: Remove support for now-unnecessary option,
9504         --cvs-user, and envvars CVS_USER, CVS_RSH.
9505
9506 2007-10-24  Jim Meyering  <meyering@redhat.com>
9507
9508         Avoid diagnostics from sha1sum when there is no cached checksum.
9509         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
9510         if the po.s1 file hasn't been created yet.
9511
9512         * build-aux/bootstrap: Sync from coreutils:
9513         2007-10-24  Jim Meyering  <meyering@redhat.com>
9514         Get gnulib from the git repository, not from an obsolete cvs one.
9515         * build-aux/bootstrap: Suggestion from Micah Cowan.
9516         2007-10-04  Jim Meyering  <jim@meyering.net>
9517         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
9518         (update_po_files): Work also when there are no .po files in po/.
9519
9520 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9521
9522         * README: Append ".git" to git and cg examples.
9523         Problem reported by Benoit Sigoure.
9524
9525 2007-10-23  Micah Cowan  <micah@cowan.name>
9526
9527         * users.txt: Add wget.
9528
9529 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9530
9531         Fix linking of some unistdio tests on FreeBSD.
9532         * modules/unistdio/u16-vsnprintf-tests
9533         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
9534         * modules/unistdio/u16-vsprintf-tests
9535         (test_u16_vsnprintf1_LDADD): Likewise.
9536         * modules/unistdio/u32-vsnprintf-tests
9537         (test_u32_vsnprintf1_LDADD): Likewise.
9538         * modules/unistdio/u32-vsprintf-tests
9539         (test_u32_vsprintf1_LDADD): Likewise.
9540         * modules/unistdio/u8-vsnprintf-tests
9541         (test_u8_vsnprintf1_LDADD): Likewise.
9542         * modules/unistdio/u8-vsprintf-tests
9543         (test_u8_vsprintf1_LDADD): Likewise.
9544         * modules/unistdio/ulc-vsnprintf-tests
9545         (test_ulc_vsnprintf1_LDADD): Likewise.
9546         * modules/unistdio/ulc-vsprintf-tests
9547         (test_ulc_vsprintf1_LDADD): Likewise.
9548
9549         Fix linking of some uniconv tests on FreeBSD.
9550         * modules/uniconv/u16-conv-from-enc-tests
9551         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
9552         * modules/uniconv/u16-conv-to-enc-tests
9553         (test_u16_conv_to_enc_LDADD): Likewise.
9554         * modules/uniconv/u16-strconv-from-enc-tests
9555         (test_u16_strconv_from_enc_LDADD): Likewise.
9556         * modules/uniconv/u16-strconv-to-enc-tests
9557         (test_u16_strconv_to_enc_LDADD): Likewise.
9558         * modules/uniconv/u32-conv-from-enc-tests
9559         (test_u32_conv_from_enc_LDADD): Likewise.
9560         * modules/uniconv/u32-conv-to-enc-tests
9561         (test_u32_conv_to_enc_LDADD): Likewise.
9562         * modules/uniconv/u32-strconv-from-enc-tests
9563         (test_u32_strconv_from_enc_LDADD): Likewise.
9564         * modules/uniconv/u32-strconv-to-enc-tests
9565         (test_u32_strconv_to_enc_LDADD): Likewise.
9566         * modules/uniconv/u8-conv-from-enc-tests
9567         (test_u8_conv_from_enc_LDADD): Likewise.
9568         * modules/uniconv/u8-conv-to-enc-tests
9569         (test_u8_conv_to_enc_LDADD): Likewise.
9570         * modules/uniconv/u8-strconv-from-enc-tests
9571         (test_u8_strconv_from_enc_LDADD): Likewise.
9572         * modules/uniconv/u8-strconv-to-enc-tests
9573         (test_u8_strconv_to_enc_LDADD): Likewise.
9574
9575 2007-10-22  Bruno Haible  <bruno@clisp.org>
9576
9577         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
9578         size.
9579
9580 2007-10-22  Eric Blake  <ebb9@byu.net>
9581
9582         Tweak x*printf documentation.
9583         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
9584         variable name and comments.
9585         Suggested by Bruno Haible.
9586
9587 2007-10-22  Bruno Haible  <bruno@clisp.org>
9588
9589         * lib/acl.c (copy_acl): Fix file name in comment.
9590
9591 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9592
9593         Fix Tru64 problem with stdbool.h.
9594         * lib/stdbool.in.h (false, true):
9595         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
9596         Don't declare as an enum in this situation; it runs afoul of Tru64.
9597         Problem reported by Steven M. Schweda in
9598         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
9599
9600 2007-10-22  Eric Blake  <ebb9@byu.net>
9601
9602         Also wrap vf?printf.
9603         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
9604         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
9605         (xvprintf, xvfprintf): New functions.
9606
9607 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9608
9609         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
9610         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
9611
9612         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
9613         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
9614
9615 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9616
9617         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
9618         by Bruno Haible.
9619
9620 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9621
9622         * lib/getloadavg.c
9623         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
9624         Undef `sys' after including sys/table.h, for Tru64 4.0D.
9625
9626         * tests/test-i-ring.c: Work for C89.
9627
9628 2007-10-22  Bruno Haible  <bruno@clisp.org>
9629
9630         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
9631         -1u, in preprocessor expression, so that we don't test for the bug
9632         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
9633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
9634
9635 2007-10-22  Eric Blake  <ebb9@byu.net>
9636
9637         * tests/test-yesno.sh: Silence stderr during test.
9638
9639 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9640
9641         * modules/crypto/gc-camellia: New file.
9642
9643         * m4/gc-camellia.m4: New file.
9644
9645         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
9646
9647         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
9648
9649 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9650
9651         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
9652         --help to stdout.  Reported by sms@antinode.org (Steven
9653         M. Schweda).
9654
9655 2007-10-22  Simon Josefsson  <simon@josefsson.org>
9656
9657         * users.txt: Fix link to libksba.
9658
9659 2007-10-21  Ben Pfaff  <blp@gnu.org>
9660
9661         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
9662         round.c roundf implementation that depends on floorf and ceilf to
9663         be tested unconditionally.
9664
9665 2007-10-21  Ben Pfaff  <blp@gnu.org>
9666
9667         * m4/check-libm-func.m4: Removed.
9668         * m4/check-math-lib.m4: New file.
9669         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
9670         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
9671         definition and lack of AC_LIBOBJ([roundf]).
9672         * m4/roundl.m4: Ditto, and similarly for roundl.
9673         * modules/round: Reference new m4 file.
9674         * modules/roundf: Ditto.
9675         * modules/roundl: Ditto.
9676         * tests/test-round2.c (main): Use ROUND instead of round.
9677         Bug report from Bruno Haible.
9678
9679 2007-10-21  Bruno Haible  <bruno@clisp.org>
9680
9681         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
9682         context.
9683
9684 2007-10-21  Bruno Haible  <bruno@clisp.org>
9685
9686         * tests/test-wcwidth.c (main): Allow negative result for some control
9687         characters.
9688
9689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
9690         Needed on OSF/1 5.1.
9691
9692 2007-10-21  Bruno Haible  <bruno@clisp.org>
9693
9694         * tests/test-floorf1.c: Include isnanf.h.
9695         (main): Use isnanf() instead of isnan().
9696         * tests/test-ceilf1.c: Include isnanf.h.
9697         (main): Use isnanf() instead of isnan().
9698         * tests/test-truncf1.c: Include isnanf.h.
9699         (main): Use isnanf() instead of isnan().
9700         * tests/test-roundf1.c: Include isnanf.h.
9701         (main): Use isnanf() instead of isnan().
9702
9703 2007-10-21  Eric Blake  <ebb9@byu.net>
9704
9705         * users.txt: Update URL for m4.
9706
9707 2007-10-21  Bruno Haible  <bruno@clisp.org>
9708
9709         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
9710
9711 2007-10-21  Bruno Haible  <bruno@clisp.org>
9712
9713         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
9714         Git's management files if the CVS files are not present.
9715
9716 2007-10-20  Bruno Haible  <bruno@clisp.org>
9717
9718         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
9719         gcc-3.4.x.
9720
9721 2007-10-20  Ben Pfaff  <blp@gnu.org>
9722
9723         * lib/math.in.h: Declare round, roundf, roundl if we are providing
9724         implementations.
9725         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
9726         * lib/round.c: New file.
9727         * lib/roundf.c: New file.
9728         * lib/roundl.c: New file.
9729         * m4/round.m4: New file.
9730         * m4/roundf.m4: New file.
9731         * m4/roundl.m4: New file.
9732         * m4/check-libm-func-m4: New file.
9733         * modules/math: Replace round, roundf, roundl related @VARS@ in
9734         math.in.h.
9735         * modules/round: New file.
9736         * modules/round-tests: New file.
9737         * modules/roundf: New file.
9738         * modules/roundf-tests: New file.
9739         * modules/roundl: New file.
9740         * modules/roundl-tests: New file.
9741         * tests/test-round1.c: New file.
9742         * tests/test-round2.c: New file.
9743         * tests/test-roundf1.c: New file.
9744         * tests/test-roundf2.c: New file.
9745         * tests/test-roundl.c: New file.
9746         * doc/functions/round.texi: Mention round module.
9747         * doc/functions/roundf.texi: Mention roundf module.
9748         * doc/functions/roundl.texi: Mention roundl module.
9749         * MODULES.html.sh: Mention new modules.
9750         Thanks to Bruno Haible for suggestions.
9751
9752 2007-10-20  Jim Meyering  <meyering@redhat.com>
9753
9754         * lib/xprintf.c: Include <config.h> unconditionally.
9755
9756         Change xprintf's license to GPL.
9757         * modules/xprintf (License): s/LGPL/GPL/, since this module
9758         depends on modules (exit and exitfail) which are GPL.
9759         Suggestion from Bruno Haible.
9760
9761         xprintf fixes.
9762         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
9763         Use a clearer diagnostic.
9764         Patch from Bruno Haible.
9765
9766 2007-10-20  Bruno Haible  <bruno@clisp.org>
9767
9768         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
9769         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
9770         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9771
9772 2007-10-20  Bruno Haible  <bruno@clisp.org>
9773
9774         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
9775         precision in the comparison result > x - 1 or similar.
9776         * tests/test-ceilf2.c (correct_result_p): Likewise.
9777         * tests/test-truncf2.c (correct_result_p): Likewise.
9778         * tests/test-trunc2.c (correct_result_p): Likewise.
9779         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9780
9781 2007-10-20  Bruno Haible  <bruno@clisp.org>
9782
9783         * modules/ceil: New file.
9784         * m4/ceil.m4: New file.
9785         * doc/functions/ceil.texi: Mention the 'ceil' module.
9786
9787 2007-10-20  Bruno Haible  <bruno@clisp.org>
9788
9789         * modules/floor: New file.
9790         * m4/floor.m4: New file.
9791         * doc/functions/floor.texi: Mention the 'floor' module.
9792
9793 2007-10-20  Bruno Haible  <bruno@clisp.org>
9794
9795         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
9796         of %a.
9797         * modules/floorf-tests (Depends-on): Likewise.
9798         * modules/truncf-tests (Depends-on): Likewise.
9799         * modules/trunc-tests (Depends-on): Likewise.
9800         Reported by Ben Pfaff.
9801
9802 2007-10-19  Jim Meyering  <meyering@redhat.com>
9803
9804         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
9805         Don't bother testing specific errno values.  Just test ferror.
9806
9807         New module: xprintf
9808         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
9809
9810 2007-10-19  Bruno Haible  <bruno@clisp.org>
9811
9812         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
9813         syntax.
9814         * modules/javaexec (Makefile.am): Likewise.
9815         * modules/relocatable-prog (Makefile.am): Likewise.
9816         Suggested by Jim Meyering.
9817
9818 2007-10-18  Bruno Haible  <bruno@clisp.org>
9819
9820         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
9821         Reported by Jim Meyering.
9822
9823 2007-10-18  Eric Blake  <ebb9@byu.net>
9824
9825         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
9826
9827 2007-10-18  Bruno Haible  <bruno@clisp.org>
9828
9829         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
9830         the format string into writable memory. Needed in Fortify conditions.
9831
9832 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
9833             Bruno Haible  <bruno@clisp.org>
9834
9835         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
9836         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
9837         * modules/trim (Depends-on): Add mbchar.
9838         (configure.ac): Add gl_FUNC_MBRTOWC.
9839         (Makefile.am): Augment lib_SOURCES.
9840
9841 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
9842
9843         Modify glob.c to use fstatat and dirfd, to simplify it.
9844         Suggested by Eric Blake.
9845         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
9846         Don't include <stdbool.h>; not used.
9847         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
9848         (link_exists_p): Simplify implementation, since we can now assume
9849         dirfd and fstatat.
9850         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
9851
9852 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9853
9854         * gnulib-tool (func_get_dependencies): Fix sed script to
9855         match only tests.
9856
9857 2007-10-17  Bruno Haible  <bruno@clisp.org>
9858
9859         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
9860         allow locale names without encoding suffix.
9861         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9862         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9863
9864 2007-10-16  Bruno Haible  <bruno@clisp.org>
9865
9866         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
9867         * lib/getgroups.c (getgroups): Likewise.
9868         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
9869
9870 2007-10-16  Bruno Haible  <bruno@clisp.org>
9871
9872         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
9873         * modules/malloc-posix (License): Likewise.
9874         * modules/realloc-posix (License): Likewise.
9875         * modules/calloc-posix (License): Likewise.
9876         * modules/intprops (License): Change from GPL to LGPL, with
9877         Paul Eggert's approval.
9878
9879 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9880
9881         Merge glibc changes into lib/glob.c.
9882
9883         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
9884         2007-10-15 04:59:03 UTC.  Here are the changes:
9885
9886         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
9887
9888         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
9889
9890         * lib/glob.c: Add some branch prediction throughout.
9891
9892         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
9893
9894         [BZ #5103]
9895         * lib/glob.c (glob): Recognize patterns starting \/.
9896
9897         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
9898
9899         [BZ #3996]
9900         * lib/glob.c (attribute_hidden): Define if not defined.
9901         (glob): Unescape dirname, filename or username when needed and not
9902         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
9903         is NULL.  Handle unescaped [ in pattern without closing ].
9904         Don't pass GLOB_CHECK down to recursive glob for directories.
9905         (__glob_pattern_type): New function.
9906         (__glob_pattern_p): Implement using __glob_pattern_type.
9907         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9908         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9909         Remove unreachable code.
9910
9911         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
9912
9913         * lib/glob.c (glob_in_dir): Add some comments and asserts to
9914         explain why there are no leaks.
9915
9916         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9917
9918         [BZ #3253]
9919         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9920         time, rather allocate increasingly bigger arrays of pointers, if
9921         possible with alloca, if too large with malloc.
9922
9923 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9924
9925         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
9926         Problem reported by H.Merijn Brand in
9927         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
9928         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
9929         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9930
9931 2007-10-15  Bruno Haible  <bruno@clisp.org>
9932
9933         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
9934         with explicit rpl_ prefix.
9935         * lib/fopen.c (fopen): Likewise.
9936         * lib/freopen.c (freopen): Likewise.
9937         * lib/iconv.c (iconv): Likewise.
9938         * lib/iconv_close.c (iconv_close): Likewise.
9939
9940 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9941
9942         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
9943
9944 2007-10-15  Bruno Haible  <bruno@clisp.org>
9945
9946         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
9947         <stddef.h> instead of <stdlib.h> since we only need NULL.
9948         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9949
9950 2007-10-15  Bruno Haible  <bruno@clisp.org>
9951
9952         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
9953         Replace paragraph talking about LIBOBJS.
9954         Reported by Colin Watson <cjwatson@debian.org>.
9955
9956 2007-10-15  Bruno Haible  <bruno@clisp.org>
9957
9958         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
9959         <stdlib.h> before using NULL.
9960
9961 2007-10-15  Simon Josefsson  <simon@josefsson.org>
9962
9963         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
9964         Reported by Albert Chin <china@thewrittenword.com>.
9965
9966 2007-10-14  Bruno Haible  <bruno@clisp.org>
9967
9968         * modules/iconv_open-utf-tests: New file.
9969         * tests/test-iconv-utf.c: New file.
9970
9971         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
9972         * modules/iconv_open-utf: New file.
9973         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
9974         (iconv, iconv_close): New declarations.
9975         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
9976         be defined.
9977         (iconv_open): Add special handling of conversion between UTF-8 and
9978         UTF-{16,32}{BE,LE}.
9979         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
9980         * lib/iconv_close.c: New file.
9981         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
9982         gl_FUNC_ICONV_OPEN.
9983         (gl_FUNC_ICONV_OPEN): Use it.
9984         (gl_FUNC_ICONV_OPEN_UTF): New macro.
9985         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
9986         and REPLACE_ICONV_UTF.
9987         * modules/iconv_open (Depends-on): Add c-strcase.
9988         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
9989         ICONV_CONST.
9990         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
9991
9992 2007-10-13  Albert Chin  <china@thewrittenword.com>
9993             Bruno Haible  <bruno@clisp.org>
9994
9995         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
9996         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
9997
9998 2007-10-13  Bruno Haible  <bruno@clisp.org>
9999
10000         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
10001         defined, use the ISO C99 inline semantics.
10002         * lib/argp.h (ARGP_EI): Likewise.
10003
10004 2007-10-13  Bruno Haible  <bruno@clisp.org>
10005
10006         Handle 'inline' change in gcc 4.3.0.
10007         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
10008         argp_fmtstream_write, argp_fmtstream_set_lmargin,
10009         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
10010         argp_fmtstream_point): Disable 'extern' declaration if the function
10011         definition is going to be provided inline.
10012         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
10013         semantics, not the ISO C99 inline semantics.
10014         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
10015         'extern' declaration if the function definition is going to be provided
10016         inline.
10017         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
10018         the GNU C inline semantics, not the ISO C99 inline semantics. With
10019         GCC 4.2, avoid a warning.
10020
10021 2007-10-13  Bruno Haible  <bruno@clisp.org>
10022
10023         * lib/freading.h (freading): Enable the use of __freading for
10024         glibc >= 2.7.
10025         * lib/freading.c (freading): Likewise.
10026
10027 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10028
10029         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
10030         "warning: C99 inline functions are not supported; using GNU89".
10031
10032 2007-10-12  Bruno Haible  <bruno@clisp.org>
10033
10034         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
10035         of 2.
10036         * tests/test-ceilf2.c: New file.
10037         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
10038
10039         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
10040         * modules/ceilf-tests: Update.
10041
10042 2007-10-12  Bruno Haible  <bruno@clisp.org>
10043
10044         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
10045         of 2.
10046         * tests/test-floorf2.c: New file.
10047         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
10048
10049         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
10050         * modules/floorf-tests: Update.
10051
10052 2007-10-12  Bruno Haible  <bruno@clisp.org>
10053
10054         * tests/test-trunc2.c: New file.
10055         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
10056
10057         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
10058         * modules/trunc-tests: Update.
10059
10060 2007-10-12  Bruno Haible  <bruno@clisp.org>
10061
10062         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
10063         of 2.
10064         * tests/test-truncf2.c: New file.
10065         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
10066
10067         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
10068         * modules/truncf-tests: Update.
10069
10070 2007-10-11  Eric Blake  <ebb9@byu.net>
10071
10072         Don't claim strerror is broken on Interix.
10073         * doc/functions/strerror.texi (strerror): Known broken systems are
10074         now Solaris 8, and not Interix.
10075         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
10076         Interix on cross-compile.
10077         Reported by Martin Koeppe in
10078         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
10079
10080 2007-10-11  Bruno Haible  <bruno@clisp.org>
10081
10082         * modules/i-ring-tests: New file.
10083         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
10084         instead of assert.
10085
10086 2007-10-11  Bruno Haible  <bruno@clisp.org>
10087
10088         * modules/filenamecat-tests: New file.
10089         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
10090         * lib/filenamecat.c: Remove test code.
10091
10092 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10093
10094         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
10095
10096         * lib/strerror.c: Include <string.h> always, to test interface,
10097         and to remove the need for the dummy.
10098         Include intprops.h to compute width instead of doing it ourselves
10099         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
10100         (strerror): Define it to return NULL if there's no system strerror.
10101         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
10102         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
10103         ancient pre-strerror Unix systems well any more.  Saying "unknown
10104         system error" is enough.
10105         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
10106         simpler strerror.c implementation.
10107         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
10108         Simplify the tests to reflect the simpler strerror implementation.
10109         * modules/strerror (Depends-on): Add intprops.
10110
10111 2007-10-09  Eric Blake  <ebb9@byu.net>
10112
10113         Silence test-fpending.
10114         * modules/fpending-tests (Files): Add wrapper script.
10115         * tests/test-fpending.sh: New file.
10116
10117 2007-10-09  Bruno Haible  <bruno@clisp.org>
10118
10119         * MODULES.html.sh (func_module): Don't create a hyperlink for
10120         function names like 'printf_frexp'.
10121         (Misc): Add crc, memxor.
10122         (Characteristics of floating types): New section.
10123         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
10124         isnanf-nolibm, signbit, trunc, truncf, truncl.
10125         (Enhancements for ISO C 99 functions): New subsection Input/output.
10126         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
10127         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
10128         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
10129         (Compatibility checks for POSIX:2001 functions): Add clock-time.
10130         (Enhancements for POSIX:2001 functions): Add chdir-long.
10131         (File system functions): Add areadlink, chdir-safer, read-file.
10132         Remove cycle-check.
10133         (File system as inode set): New section.
10134         (Date and time): Add gethrxtime.
10135         (Multithreading): Add openmp.
10136         (Internationalization functions): Add localename.
10137         (Unicode string functions): Add unistr/u*-mbsnlen.
10138         (Support for maintaining and releasing projects): Add git-version-gen.
10139         (Lone files): Remove directories.
10140
10141 2007-10-08  Ben Pfaff  <blp@gnu.org>
10142
10143         * lib/xmalloca.h: Fix typo in comment.
10144
10145 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10146
10147         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
10148         when avoiding problems with integer overflow.  Use a portable test
10149         instead.
10150
10151 2007-10-08  Simon Josefsson  <simon@josefsson.org>
10152
10153         * modules/dummy (License): Change to LGPLv2+.
10154         * modules/float (License): Likewise
10155         * modules/realloc (License): Likewise
10156         * modules/stdlib (License): Likewise
10157
10158 2007-10-07  Bruno Haible  <bruno@clisp.org>
10159
10160         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
10161         * floor.c (TWO_MANT_DIG): Likewise.
10162         * ceil.c (TWO_MANT_DIG): Likewise.
10163         Reported by Ben Pfaff.
10164
10165 2007-10-07  Bruno Haible  <bruno@clisp.org>
10166
10167         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
10168         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
10169         * lib/frexp.c (FUNC): Likewise.
10170         * lib/printf-frexp.h (printf_frexp): Likewise.
10171         * lib/printf-frexpl.h (printf_frexpl): Likewise.
10172         * lib/printf-frexp.c (FUNC): Likewise.
10173         Suggested by Jim Meyering.
10174
10175 2007-10-07  Jim Meyering  <meyering@redhat.com>
10176
10177         Make xnanosleep's integer overflow test more robust.
10178         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
10179         so that gcc-4.3.0 doesn't optimize away this test for overflow.
10180
10181 2007-10-07  Bruno Haible  <bruno@clisp.org>
10182
10183         * NEWS: Mention the license change.
10184
10185         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
10186         abbreviations in the modules files.
10187
10188         Change copyright notice from GPLv2+ to GPLv3+.
10189         * README: Change copyright notice.
10190         * MODULES.html.sh: Likewise.
10191         * build-aux/bootstrap.conf: Likewise.
10192         * build-aux/config.libpath: Likewise.
10193         * build-aux/csharpcomp.sh.in: Likewise.
10194         * build-aux/csharpexec.sh.in: Likewise.
10195         * build-aux/install-reloc: Likewise.
10196         * build-aux/javacomp.sh.in: Likewise.
10197         * build-aux/javaexec.sh.in: Likewise.
10198         * build-aux/ldd.sh.in: Likewise.
10199         * build-aux/reloc-ldflags: Likewise.
10200         * build-aux/relocatable.sh.in: Likewise.
10201         * build-aux/x-to-1.in: Likewise.
10202         * check-module: Likewise.
10203         * config/srclistvars.sh: Likewise.
10204         * gnulib-tool: Likewise.
10205         * lib/acl-internal.h: Likewise.
10206         * lib/acl.c: Likewise.
10207         * lib/acl.h: Likewise.
10208         * lib/acl_entries.c: Likewise.
10209         * lib/areadlink-with-size.c: Likewise.
10210         * lib/areadlink.c: Likewise.
10211         * lib/areadlink.h: Likewise.
10212         * lib/argmatch.c: Likewise.
10213         * lib/argmatch.h: Likewise.
10214         * lib/argp-ba.c: Likewise.
10215         * lib/argp-eexst.c: Likewise.
10216         * lib/argp-fmtstream.c: Likewise.
10217         * lib/argp-fmtstream.h: Likewise.
10218         * lib/argp-fs-xinl.c: Likewise.
10219         * lib/argp-help.c: Likewise.
10220         * lib/argp-namefrob.h: Likewise.
10221         * lib/argp-parse.c: Likewise.
10222         * lib/argp-pin.c: Likewise.
10223         * lib/argp-pv.c: Likewise.
10224         * lib/argp-pvh.c: Likewise.
10225         * lib/argp-xinl.c: Likewise.
10226         * lib/argp.h: Likewise.
10227         * lib/at-func.c: Likewise.
10228         * lib/atanl.c: Likewise.
10229         * lib/backupfile.c: Likewise.
10230         * lib/backupfile.h: Likewise.
10231         * lib/basename.c: Likewise.
10232         * lib/binary-io.h: Likewise.
10233         * lib/byteswap.in.h: Likewise.
10234         * lib/c-stack.c: Likewise.
10235         * lib/c-stack.h: Likewise.
10236         * lib/c-strcasestr.c: Likewise.
10237         * lib/c-strcasestr.h: Likewise.
10238         * lib/c-strstr.c: Likewise.
10239         * lib/c-strstr.h: Likewise.
10240         * lib/c-strtod.c: Likewise.
10241         * lib/calloc.c: Likewise.
10242         * lib/canon-host.c: Likewise.
10243         * lib/canon-host.h: Likewise.
10244         * lib/canonicalize-lgpl.c: Likewise.
10245         * lib/canonicalize.c: Likewise.
10246         * lib/canonicalize.h: Likewise.
10247         * lib/ceil.c: Likewise.
10248         * lib/ceilf.c: Likewise.
10249         * lib/ceill.c: Likewise.
10250         * lib/chdir-long.c: Likewise.
10251         * lib/chdir-long.h: Likewise.
10252         * lib/chdir-safer.c: Likewise.
10253         * lib/chdir-safer.h: Likewise.
10254         * lib/chown.c: Likewise.
10255         * lib/classpath.c: Likewise.
10256         * lib/classpath.h: Likewise.
10257         * lib/clean-temp.c: Likewise.
10258         * lib/clean-temp.h: Likewise.
10259         * lib/cloexec.c: Likewise.
10260         * lib/close-stream.c: Likewise.
10261         * lib/closein.c: Likewise.
10262         * lib/closein.h: Likewise.
10263         * lib/closeout.c: Likewise.
10264         * lib/closeout.h: Likewise.
10265         * lib/concat-filename.c: Likewise.
10266         * lib/copy-file.c: Likewise.
10267         * lib/copy-file.h: Likewise.
10268         * lib/count-one-bits.h: Likewise.
10269         * lib/crc.c: Likewise.
10270         * lib/crc.h: Likewise.
10271         * lib/creat-safer.c: Likewise.
10272         * lib/csharpcomp.c: Likewise.
10273         * lib/csharpcomp.h: Likewise.
10274         * lib/csharpexec.c: Likewise.
10275         * lib/csharpexec.h: Likewise.
10276         * lib/cycle-check.c: Likewise.
10277         * lib/cycle-check.h: Likewise.
10278         * lib/diacrit.c: Likewise.
10279         * lib/diacrit.h: Likewise.
10280         * lib/diffseq.h: Likewise.
10281         * lib/dirchownmod.c: Likewise.
10282         * lib/dirent.in.h: Likewise.
10283         * lib/dirfd.c: Likewise.
10284         * lib/dirfd.h: Likewise.
10285         * lib/dirname.c: Likewise.
10286         * lib/dirname.h: Likewise.
10287         * lib/dummy.c: Likewise.
10288         * lib/dup-safer.c: Likewise.
10289         * lib/dup2.c: Likewise.
10290         * lib/eealloc.h: Likewise.
10291         * lib/error.c: Likewise.
10292         * lib/error.h: Likewise.
10293         * lib/euidaccess.c: Likewise.
10294         * lib/exclude.c: Likewise.
10295         * lib/exclude.h: Likewise.
10296         * lib/execute.c: Likewise.
10297         * lib/execute.h: Likewise.
10298         * lib/exitfail.c: Likewise.
10299         * lib/exitfail.h: Likewise.
10300         * lib/expl.c: Likewise.
10301         * lib/fatal-signal.c: Likewise.
10302         * lib/fatal-signal.h: Likewise.
10303         * lib/fbufmode.c: Likewise.
10304         * lib/fbufmode.h: Likewise.
10305         * lib/fchdir.c: Likewise.
10306         * lib/fchmodat.c: Likewise.
10307         * lib/fchownat.c: Likewise.
10308         * lib/fcntl--.h: Likewise.
10309         * lib/fcntl-safer.h: Likewise.
10310         * lib/fcntl.in.h: Likewise.
10311         * lib/fd-safer.c: Likewise.
10312         * lib/fflush.c: Likewise.
10313         * lib/file-has-acl.c: Likewise.
10314         * lib/file-set.c: Likewise.
10315         * lib/file-type.c: Likewise.
10316         * lib/file-type.h: Likewise.
10317         * lib/fileblocks.c: Likewise.
10318         * lib/filemode.c: Likewise.
10319         * lib/filemode.h: Likewise.
10320         * lib/filename.h: Likewise.
10321         * lib/filenamecat.c: Likewise.
10322         * lib/filenamecat.h: Likewise.
10323         * lib/findprog.c: Likewise.
10324         * lib/findprog.h: Likewise.
10325         * lib/float.in.h: Likewise.
10326         * lib/floor.c: Likewise.
10327         * lib/floorf.c: Likewise.
10328         * lib/floorl.c: Likewise.
10329         * lib/fopen-safer.c: Likewise.
10330         * lib/fopen.c: Likewise.
10331         * lib/fpending.c: Likewise.
10332         * lib/fpending.h: Likewise.
10333         * lib/fprintf.c: Likewise.
10334         * lib/fprintftime.h: Likewise.
10335         * lib/fpucw.h: Likewise.
10336         * lib/fpurge.c: Likewise.
10337         * lib/fpurge.h: Likewise.
10338         * lib/freadable.c: Likewise.
10339         * lib/freadable.h: Likewise.
10340         * lib/freadahead.c: Likewise.
10341         * lib/freadahead.h: Likewise.
10342         * lib/freading.c: Likewise.
10343         * lib/freading.h: Likewise.
10344         * lib/free.c: Likewise.
10345         * lib/freopen.c: Likewise.
10346         * lib/frexp.c: Likewise.
10347         * lib/frexpl.c: Likewise.
10348         * lib/fseek.c: Likewise.
10349         * lib/fseterr.c: Likewise.
10350         * lib/fseterr.h: Likewise.
10351         * lib/fstatat.c: Likewise.
10352         * lib/fstrcmp.c: Likewise.
10353         * lib/fstrcmp.h: Likewise.
10354         * lib/fsusage.c: Likewise.
10355         * lib/fsusage.h: Likewise.
10356         * lib/ftell.c: Likewise.
10357         * lib/ftello.c: Likewise.
10358         * lib/fts-cycle.c: Likewise.
10359         * lib/fts.c: Likewise.
10360         * lib/fts_.h: Likewise.
10361         * lib/full-read.c: Likewise.
10362         * lib/full-read.h: Likewise.
10363         * lib/full-write.c: Likewise.
10364         * lib/full-write.h: Likewise.
10365         * lib/fwritable.c: Likewise.
10366         * lib/fwritable.h: Likewise.
10367         * lib/fwriteerror.c: Likewise.
10368         * lib/fwriteerror.h: Likewise.
10369         * lib/fwriting.c: Likewise.
10370         * lib/fwriting.h: Likewise.
10371         * lib/gcd.c: Likewise.
10372         * lib/gcd.h: Likewise.
10373         * lib/getcwd.c: Likewise.
10374         * lib/getdate.h: Likewise.
10375         * lib/getdate.y: Likewise.
10376         * lib/getdomainname.c: Likewise.
10377         * lib/getdomainname.h: Likewise.
10378         * lib/getgroups.c: Likewise.
10379         * lib/gethostname.c: Likewise.
10380         * lib/gethrxtime.c: Likewise.
10381         * lib/gethrxtime.h: Likewise.
10382         * lib/getloadavg.c: Likewise.
10383         * lib/getndelim2.c: Likewise.
10384         * lib/getndelim2.h: Likewise.
10385         * lib/getnline.c: Likewise.
10386         * lib/getnline.h: Likewise.
10387         * lib/getopt.c: Likewise.
10388         * lib/getopt.in.h: Likewise.
10389         * lib/getopt1.c: Likewise.
10390         * lib/getopt_int.h: Likewise.
10391         * lib/getpagesize.h: Likewise.
10392         * lib/getsubopt.c: Likewise.
10393         * lib/gettime.c: Likewise.
10394         * lib/getugroups.c: Likewise.
10395         * lib/getugroups.h: Likewise.
10396         * lib/getusershell.c: Likewise.
10397         * lib/gl_anyavltree_list1.h: Likewise.
10398         * lib/gl_anyavltree_list2.h: Likewise.
10399         * lib/gl_anyhash_list1.h: Likewise.
10400         * lib/gl_anyhash_list2.h: Likewise.
10401         * lib/gl_anylinked_list1.h: Likewise.
10402         * lib/gl_anylinked_list2.h: Likewise.
10403         * lib/gl_anyrbtree_list1.h: Likewise.
10404         * lib/gl_anyrbtree_list2.h: Likewise.
10405         * lib/gl_anytree_list1.h: Likewise.
10406         * lib/gl_anytree_list2.h: Likewise.
10407         * lib/gl_anytree_oset.h: Likewise.
10408         * lib/gl_anytreehash_list1.h: Likewise.
10409         * lib/gl_anytreehash_list2.h: Likewise.
10410         * lib/gl_array_list.c: Likewise.
10411         * lib/gl_array_list.h: Likewise.
10412         * lib/gl_array_oset.c: Likewise.
10413         * lib/gl_array_oset.h: Likewise.
10414         * lib/gl_avltree_list.c: Likewise.
10415         * lib/gl_avltree_list.h: Likewise.
10416         * lib/gl_avltree_oset.c: Likewise.
10417         * lib/gl_avltree_oset.h: Likewise.
10418         * lib/gl_avltreehash_list.c: Likewise.
10419         * lib/gl_avltreehash_list.h: Likewise.
10420         * lib/gl_carray_list.c: Likewise.
10421         * lib/gl_carray_list.h: Likewise.
10422         * lib/gl_linked_list.c: Likewise.
10423         * lib/gl_linked_list.h: Likewise.
10424         * lib/gl_linkedhash_list.c: Likewise.
10425         * lib/gl_linkedhash_list.h: Likewise.
10426         * lib/gl_list.c: Likewise.
10427         * lib/gl_list.h: Likewise.
10428         * lib/gl_oset.c: Likewise.
10429         * lib/gl_oset.h: Likewise.
10430         * lib/gl_rbtree_list.c: Likewise.
10431         * lib/gl_rbtree_list.h: Likewise.
10432         * lib/gl_rbtree_oset.c: Likewise.
10433         * lib/gl_rbtree_oset.h: Likewise.
10434         * lib/gl_rbtreehash_list.c: Likewise.
10435         * lib/gl_rbtreehash_list.h: Likewise.
10436         * lib/gl_sublist.c: Likewise.
10437         * lib/gl_sublist.h: Likewise.
10438         * lib/group-member.c: Likewise.
10439         * lib/group-member.h: Likewise.
10440         * lib/hard-locale.c: Likewise.
10441         * lib/hard-locale.h: Likewise.
10442         * lib/hash-pjw.c: Likewise.
10443         * lib/hash-pjw.h: Likewise.
10444         * lib/hash-triple.c: Likewise.
10445         * lib/hash.c: Likewise.
10446         * lib/hash.h: Likewise.
10447         * lib/human.c: Likewise.
10448         * lib/human.h: Likewise.
10449         * lib/i-ring.c: Likewise.
10450         * lib/i-ring.h: Likewise.
10451         * lib/idcache.c: Likewise.
10452         * lib/imaxabs.c: Likewise.
10453         * lib/imaxdiv.c: Likewise.
10454         * lib/inet_pton.c: Likewise.
10455         * lib/inet_pton.h: Likewise.
10456         * lib/intprops.h: Likewise.
10457         * lib/inttostr.c: Likewise.
10458         * lib/inttostr.h: Likewise.
10459         * lib/inttypes.in.h: Likewise.
10460         * lib/isapipe.c: Likewise.
10461         * lib/isdir.c: Likewise.
10462         * lib/isnan.c: Likewise.
10463         * lib/isnan.h: Likewise.
10464         * lib/isnanf.c: Likewise.
10465         * lib/isnanf.h: Likewise.
10466         * lib/isnanl-nolibm.h: Likewise.
10467         * lib/isnanl.c: Likewise.
10468         * lib/isnanl.h: Likewise.
10469         * lib/javacomp.c: Likewise.
10470         * lib/javacomp.h: Likewise.
10471         * lib/javaexec.c: Likewise.
10472         * lib/javaexec.h: Likewise.
10473         * lib/javaversion.c: Likewise.
10474         * lib/javaversion.h: Likewise.
10475         * lib/javaversion.java: Likewise.
10476         * lib/lbrkprop.h: Likewise.
10477         * lib/lchmod.h: Likewise.
10478         * lib/lchown.c: Likewise.
10479         * lib/ldexpl.c: Likewise.
10480         * lib/linebreak.c: Likewise.
10481         * lib/linebreak.h: Likewise.
10482         * lib/linebuffer.c: Likewise.
10483         * lib/linebuffer.h: Likewise.
10484         * lib/locale.in.h: Likewise.
10485         * lib/logl.c: Likewise.
10486         * lib/long-options.c: Likewise.
10487         * lib/long-options.h: Likewise.
10488         * lib/lstat.c: Likewise.
10489         * lib/lstat.h: Likewise.
10490         * lib/math.in.h: Likewise.
10491         * lib/mbchar.c: Likewise.
10492         * lib/mbchar.h: Likewise.
10493         * lib/mbfile.h: Likewise.
10494         * lib/mbiter.h: Likewise.
10495         * lib/mbscasecmp.c: Likewise.
10496         * lib/mbscasestr.c: Likewise.
10497         * lib/mbschr.c: Likewise.
10498         * lib/mbscspn.c: Likewise.
10499         * lib/mbslen.c: Likewise.
10500         * lib/mbsncasecmp.c: Likewise.
10501         * lib/mbsnlen.c: Likewise.
10502         * lib/mbspbrk.c: Likewise.
10503         * lib/mbspcasecmp.c: Likewise.
10504         * lib/mbsrchr.c: Likewise.
10505         * lib/mbssep.c: Likewise.
10506         * lib/mbsspn.c: Likewise.
10507         * lib/mbsstr.c: Likewise.
10508         * lib/mbstok_r.c: Likewise.
10509         * lib/mbswidth.c: Likewise.
10510         * lib/mbswidth.h: Likewise.
10511         * lib/mbuiter.h: Likewise.
10512         * lib/memcasecmp.c: Likewise.
10513         * lib/memcasecmp.h: Likewise.
10514         * lib/memchr.c: Likewise.
10515         * lib/memcmp.c: Likewise.
10516         * lib/memcoll.c: Likewise.
10517         * lib/memcoll.h: Likewise.
10518         * lib/memcpy.c: Likewise.
10519         * lib/memrchr.c: Likewise.
10520         * lib/mkancesdirs.c: Likewise.
10521         * lib/mkdir-p.c: Likewise.
10522         * lib/mkdir-p.h: Likewise.
10523         * lib/mkdir.c: Likewise.
10524         * lib/mkdirat.c: Likewise.
10525         * lib/mkdtemp.c: Likewise.
10526         * lib/mkstemp-safer.c: Likewise.
10527         * lib/mkstemp.c: Likewise.
10528         * lib/modechange.c: Likewise.
10529         * lib/modechange.h: Likewise.
10530         * lib/mountlist.c: Likewise.
10531         * lib/mountlist.h: Likewise.
10532         * lib/mpsort.c: Likewise.
10533         * lib/nanosleep.c: Likewise.
10534         * lib/obstack.c: Likewise.
10535         * lib/obstack.h: Likewise.
10536         * lib/open-safer.c: Likewise.
10537         * lib/open.c: Likewise.
10538         * lib/openat-die.c: Likewise.
10539         * lib/openat-priv.h: Likewise.
10540         * lib/openat-proc.c: Likewise.
10541         * lib/openat.c: Likewise.
10542         * lib/openat.h: Likewise.
10543         * lib/pagealign_alloc.c: Likewise.
10544         * lib/pagealign_alloc.h: Likewise.
10545         * lib/physmem.c: Likewise.
10546         * lib/physmem.h: Likewise.
10547         * lib/pipe-safer.c: Likewise.
10548         * lib/pipe.c: Likewise.
10549         * lib/pipe.h: Likewise.
10550         * lib/posixtm.c: Likewise.
10551         * lib/posixtm.h: Likewise.
10552         * lib/posixver.c: Likewise.
10553         * lib/printf-frexp.c: Likewise.
10554         * lib/printf-frexp.h: Likewise.
10555         * lib/printf-frexpl.c: Likewise.
10556         * lib/printf-frexpl.h: Likewise.
10557         * lib/printf.c: Likewise.
10558         * lib/progname.c: Likewise.
10559         * lib/progname.h: Likewise.
10560         * lib/progreloc.c: Likewise.
10561         * lib/putenv.c: Likewise.
10562         * lib/quote.c: Likewise.
10563         * lib/quote.h: Likewise.
10564         * lib/quotearg.c: Likewise.
10565         * lib/quotearg.h: Likewise.
10566         * lib/raise.c: Likewise.
10567         * lib/readline.c: Likewise.
10568         * lib/readline.h: Likewise.
10569         * lib/readlink.c: Likewise.
10570         * lib/readtokens.c: Likewise.
10571         * lib/readtokens.h: Likewise.
10572         * lib/readtokens0.c: Likewise.
10573         * lib/readtokens0.h: Likewise.
10574         * lib/readutmp.c: Likewise.
10575         * lib/readutmp.h: Likewise.
10576         * lib/realloc.c: Likewise.
10577         * lib/relocwrapper.c: Likewise.
10578         * lib/rename-dest-slash.c: Likewise.
10579         * lib/rename.c: Likewise.
10580         * lib/rmdir.c: Likewise.
10581         * lib/rpmatch.c: Likewise.
10582         * lib/safe-read.c: Likewise.
10583         * lib/safe-read.h: Likewise.
10584         * lib/safe-write.c: Likewise.
10585         * lib/safe-write.h: Likewise.
10586         * lib/same-inode.h: Likewise.
10587         * lib/same.c: Likewise.
10588         * lib/same.h: Likewise.
10589         * lib/save-cwd.c: Likewise.
10590         * lib/save-cwd.h: Likewise.
10591         * lib/savedir.c: Likewise.
10592         * lib/savedir.h: Likewise.
10593         * lib/savewd.c: Likewise.
10594         * lib/savewd.h: Likewise.
10595         * lib/search.in.h: Likewise.
10596         * lib/setenv.c: Likewise.
10597         * lib/setenv.h: Likewise.
10598         * lib/settime.c: Likewise.
10599         * lib/sh-quote.c: Likewise.
10600         * lib/sh-quote.h: Likewise.
10601         * lib/sig2str.c: Likewise.
10602         * lib/sig2str.h: Likewise.
10603         * lib/signal.in.h: Likewise.
10604         * lib/signbitd.c: Likewise.
10605         * lib/signbitf.c: Likewise.
10606         * lib/signbitl.c: Likewise.
10607         * lib/sigprocmask.c: Likewise.
10608         * lib/sincosl.c: Likewise.
10609         * lib/sleep.c: Likewise.
10610         * lib/sprintf.c: Likewise.
10611         * lib/sqrtl.c: Likewise.
10612         * lib/stat-time.h: Likewise.
10613         * lib/stdio--.h: Likewise.
10614         * lib/stdio-safer.h: Likewise.
10615         * lib/stdlib--.h: Likewise.
10616         * lib/stdlib-safer.h: Likewise.
10617         * lib/stdlib.in.h: Likewise.
10618         * lib/stpcpy.c: Likewise.
10619         * lib/stpncpy.c: Likewise.
10620         * lib/strchrnul.c: Likewise.
10621         * lib/strcspn.c: Likewise.
10622         * lib/strerror.c: Likewise.
10623         * lib/strftime.c: Likewise.
10624         * lib/strftime.h: Likewise.
10625         * lib/striconveh.c: Likewise.
10626         * lib/striconveh.h: Likewise.
10627         * lib/striconveha.c: Likewise.
10628         * lib/striconveha.h: Likewise.
10629         * lib/stripslash.c: Likewise.
10630         * lib/strnlen1.c: Likewise.
10631         * lib/strnlen1.h: Likewise.
10632         * lib/strtod.c: Likewise.
10633         * lib/strtoimax.c: Likewise.
10634         * lib/strtok_r.c: Likewise.
10635         * lib/strtol.c: Likewise.
10636         * lib/strtoll.c: Likewise.
10637         * lib/strtoul.c: Likewise.
10638         * lib/strtoull.c: Likewise.
10639         * lib/sysexits.in.h: Likewise.
10640         * lib/tempname.c: Likewise.
10641         * lib/tempname.h: Likewise.
10642         * lib/timespec.h: Likewise.
10643         * lib/tls.c: Likewise.
10644         * lib/tls.h: Likewise.
10645         * lib/tmpdir.c: Likewise.
10646         * lib/tmpdir.h: Likewise.
10647         * lib/tmpfile-safer.c: Likewise.
10648         * lib/tmpfile.c: Likewise.
10649         * lib/trigl.c: Likewise.
10650         * lib/trigl.h: Likewise.
10651         * lib/trim.c: Likewise.
10652         * lib/trim.h: Likewise.
10653         * lib/trunc.c: Likewise.
10654         * lib/truncf.c: Likewise.
10655         * lib/truncl.c: Likewise.
10656         * lib/tsearch.c: Likewise.
10657         * lib/unicodeio.c: Likewise.
10658         * lib/unicodeio.h: Likewise.
10659         * lib/unistd--.h: Likewise.
10660         * lib/unistd-safer.h: Likewise.
10661         * lib/unistdio/ulc-fprintf.c: Likewise.
10662         * lib/unistdio/ulc-vfprintf.c: Likewise.
10663         * lib/unlinkdir.c: Likewise.
10664         * lib/unlinkdir.h: Likewise.
10665         * lib/unlocked-io.h: Likewise.
10666         * lib/unsetenv.c: Likewise.
10667         * lib/userspec.c: Likewise.
10668         * lib/utime.c: Likewise.
10669         * lib/utimecmp.c: Likewise.
10670         * lib/utimecmp.h: Likewise.
10671         * lib/utimens.c: Likewise.
10672         * lib/verify.h: Likewise.
10673         * lib/verror.c: Likewise.
10674         * lib/verror.h: Likewise.
10675         * lib/version-etc-fsf.c: Likewise.
10676         * lib/version-etc.c: Likewise.
10677         * lib/version-etc.h: Likewise.
10678         * lib/vfprintf.c: Likewise.
10679         * lib/vprintf.c: Likewise.
10680         * lib/vsprintf.c: Likewise.
10681         * lib/w32spawn.h: Likewise.
10682         * lib/wait-process.c: Likewise.
10683         * lib/wait-process.h: Likewise.
10684         * lib/wcwidth.c: Likewise.
10685         * lib/write-any-file.c: Likewise.
10686         * lib/xalloc-die.c: Likewise.
10687         * lib/xalloc.h: Likewise.
10688         * lib/xasprintf.c: Likewise.
10689         * lib/xgetcwd.c: Likewise.
10690         * lib/xgetcwd.h: Likewise.
10691         * lib/xgetdomainname.c: Likewise.
10692         * lib/xgetdomainname.h: Likewise.
10693         * lib/xgethostname.c: Likewise.
10694         * lib/xmalloc.c: Likewise.
10695         * lib/xmalloca.c: Likewise.
10696         * lib/xmalloca.h: Likewise.
10697         * lib/xmemcoll.c: Likewise.
10698         * lib/xnanosleep.c: Likewise.
10699         * lib/xreadlink.c: Likewise.
10700         * lib/xreadlink.h: Likewise.
10701         * lib/xsetenv.c: Likewise.
10702         * lib/xsetenv.h: Likewise.
10703         * lib/xstriconv.c: Likewise.
10704         * lib/xstriconv.h: Likewise.
10705         * lib/xstrndup.c: Likewise.
10706         * lib/xstrndup.h: Likewise.
10707         * lib/xstrtod.c: Likewise.
10708         * lib/xstrtod.h: Likewise.
10709         * lib/xstrtol-error.c: Likewise.
10710         * lib/xstrtol.c: Likewise.
10711         * lib/xstrtol.h: Likewise.
10712         * lib/xtime.h: Likewise.
10713         * lib/xvasprintf.c: Likewise.
10714         * lib/xvasprintf.h: Likewise.
10715         * lib/yesno.c: Likewise.
10716         * lib/yesno.h: Likewise.
10717         * posix-modules: Likewise.
10718         * tests/test-alloca-opt.c: Likewise.
10719         * tests/test-arcfour.c: Likewise.
10720         * tests/test-arctwo.c: Likewise.
10721         * tests/test-argmatch.c: Likewise.
10722         * tests/test-argp-2.sh: Likewise.
10723         * tests/test-argp.c: Likewise.
10724         * tests/test-arpa_inet.c: Likewise.
10725         * tests/test-array_list.c: Likewise.
10726         * tests/test-array_oset.c: Likewise.
10727         * tests/test-atexit.c: Likewise.
10728         * tests/test-avltree_list.c: Likewise.
10729         * tests/test-avltree_oset.c: Likewise.
10730         * tests/test-avltreehash_list.c: Likewise.
10731         * tests/test-base64.c: Likewise.
10732         * tests/test-binary-io.c: Likewise.
10733         * tests/test-byteswap.c: Likewise.
10734         * tests/test-c-ctype.c: Likewise.
10735         * tests/test-c-strcasecmp.c: Likewise.
10736         * tests/test-c-strcasestr.c: Likewise.
10737         * tests/test-c-strncasecmp.c: Likewise.
10738         * tests/test-c-strstr.c: Likewise.
10739         * tests/test-canonicalize-lgpl.c: Likewise.
10740         * tests/test-canonicalize.c: Likewise.
10741         * tests/test-carray_list.c: Likewise.
10742         * tests/test-ceilf.c: Likewise.
10743         * tests/test-ceill.c: Likewise.
10744         * tests/test-count-one-bits.c: Likewise.
10745         * tests/test-crc.c: Likewise.
10746         * tests/test-dirname.c: Likewise.
10747         * tests/test-fbufmode.c: Likewise.
10748         * tests/test-fcntl.c: Likewise.
10749         * tests/test-fflush.c: Likewise.
10750         * tests/test-floorf.c: Likewise.
10751         * tests/test-floorl.c: Likewise.
10752         * tests/test-fopen.c: Likewise.
10753         * tests/test-fprintf-posix.c: Likewise.
10754         * tests/test-fprintf-posix.h: Likewise.
10755         * tests/test-fpurge.c: Likewise.
10756         * tests/test-freadable.c: Likewise.
10757         * tests/test-freadahead.c: Likewise.
10758         * tests/test-freading.c: Likewise.
10759         * tests/test-freopen.c: Likewise.
10760         * tests/test-frexp.c: Likewise.
10761         * tests/test-frexpl.c: Likewise.
10762         * tests/test-fseek.c: Likewise.
10763         * tests/test-fseeko.c: Likewise.
10764         * tests/test-fseterr.c: Likewise.
10765         * tests/test-fstrcmp.c: Likewise.
10766         * tests/test-ftell.c: Likewise.
10767         * tests/test-ftello.c: Likewise.
10768         * tests/test-fwritable.c: Likewise.
10769         * tests/test-fwriting.c: Likewise.
10770         * tests/test-getaddrinfo.c: Likewise.
10771         * tests/test-getpass.c: Likewise.
10772         * tests/test-gettimeofday.c: Likewise.
10773         * tests/test-hmac-md5.c: Likewise.
10774         * tests/test-hmac-sha1.c: Likewise.
10775         * tests/test-iconv.c: Likewise.
10776         * tests/test-iconvme.c: Likewise.
10777         * tests/test-inttypes.c: Likewise.
10778         * tests/test-isnan.c: Likewise.
10779         * tests/test-isnanf.c: Likewise.
10780         * tests/test-isnanl-nolibm.c: Likewise.
10781         * tests/test-isnanl.c: Likewise.
10782         * tests/test-isnanl.h: Likewise.
10783         * tests/test-ldexpl.c: Likewise.
10784         * tests/test-linked_list.c: Likewise.
10785         * tests/test-linkedhash_list.c: Likewise.
10786         * tests/test-locale.c: Likewise.
10787         * tests/test-localename.c: Likewise.
10788         * tests/test-lock.c: Likewise.
10789         * tests/test-lseek.c: Likewise.
10790         * tests/test-malloca.c: Likewise.
10791         * tests/test-math.c: Likewise.
10792         * tests/test-mbscasecmp.c: Likewise.
10793         * tests/test-mbscasestr1.c: Likewise.
10794         * tests/test-mbscasestr2.c: Likewise.
10795         * tests/test-mbscasestr3.c: Likewise.
10796         * tests/test-mbscasestr4.c: Likewise.
10797         * tests/test-mbschr.c: Likewise.
10798         * tests/test-mbscspn.c: Likewise.
10799         * tests/test-mbsncasecmp.c: Likewise.
10800         * tests/test-mbspbrk.c: Likewise.
10801         * tests/test-mbspcasecmp.c: Likewise.
10802         * tests/test-mbsrchr.c: Likewise.
10803         * tests/test-mbsspn.c: Likewise.
10804         * tests/test-mbsstr1.c: Likewise.
10805         * tests/test-mbsstr2.c: Likewise.
10806         * tests/test-mbsstr3.c: Likewise.
10807         * tests/test-md5.c: Likewise.
10808         * tests/test-memmem.c: Likewise.
10809         * tests/test-netinet_in.c: Likewise.
10810         * tests/test-open.c: Likewise.
10811         * tests/test-printf-frexp.c: Likewise.
10812         * tests/test-printf-frexpl.c: Likewise.
10813         * tests/test-printf-posix.c: Likewise.
10814         * tests/test-printf-posix.h: Likewise.
10815         * tests/test-rbtree_list.c: Likewise.
10816         * tests/test-rbtree_oset.c: Likewise.
10817         * tests/test-rbtreehash_list.c: Likewise.
10818         * tests/test-read-file.c: Likewise.
10819         * tests/test-rijndael.c: Likewise.
10820         * tests/test-search.c: Likewise.
10821         * tests/test-signbit.c: Likewise.
10822         * tests/test-sleep.c: Likewise.
10823         * tests/test-snprintf-posix.c: Likewise.
10824         * tests/test-snprintf-posix.h: Likewise.
10825         * tests/test-snprintf.c: Likewise.
10826         * tests/test-sprintf-posix.c: Likewise.
10827         * tests/test-sprintf-posix.h: Likewise.
10828         * tests/test-stat-time.c: Likewise.
10829         * tests/test-stdbool.c: Likewise.
10830         * tests/test-stdint.c: Likewise.
10831         * tests/test-stdio.c: Likewise.
10832         * tests/test-stdlib.c: Likewise.
10833         * tests/test-stpncpy.c: Likewise.
10834         * tests/test-strcasestr.c: Likewise.
10835         * tests/test-striconv.c: Likewise.
10836         * tests/test-striconveh.c: Likewise.
10837         * tests/test-striconveha.c: Likewise.
10838         * tests/test-string.c: Likewise.
10839         * tests/test-sys_select.c: Likewise.
10840         * tests/test-sys_socket.c: Likewise.
10841         * tests/test-sys_stat.c: Likewise.
10842         * tests/test-sys_time.c: Likewise.
10843         * tests/test-sysexits.c: Likewise.
10844         * tests/test-time.c: Likewise.
10845         * tests/test-tls.c: Likewise.
10846         * tests/test-trunc.c: Likewise.
10847         * tests/test-truncf.c: Likewise.
10848         * tests/test-truncl.c: Likewise.
10849         * tests/test-unistd.c: Likewise.
10850         * tests/test-vasnprintf-posix.c: Likewise.
10851         * tests/test-vasnprintf-posix2.c: Likewise.
10852         * tests/test-vasnprintf.c: Likewise.
10853         * tests/test-vasprintf-posix.c: Likewise.
10854         * tests/test-vasprintf.c: Likewise.
10855         * tests/test-verify.c: Likewise.
10856         * tests/test-vfprintf-posix.c: Likewise.
10857         * tests/test-vprintf-posix.c: Likewise.
10858         * tests/test-vsnprintf-posix.c: Likewise.
10859         * tests/test-vsnprintf.c: Likewise.
10860         * tests/test-vsprintf-posix.c: Likewise.
10861         * tests/test-wchar.c: Likewise.
10862         * tests/test-wctype.c: Likewise.
10863         * tests/test-wcwidth.c: Likewise.
10864         * tests/test-xstrtol.c: Likewise.
10865         * tests/test-xvasprintf.c: Likewise.
10866         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10867         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10868         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10869         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10870         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10871         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10872         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10873         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10874         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10875         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10876         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10877         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10878         * tests/uniname/test-uninames.c: Likewise.
10879         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10880         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
10881         * tests/unistdio/test-u16-printf1.h: Likewise.
10882         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10883         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10884         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10885         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10886         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10887         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10888         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10889         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
10890         * tests/unistdio/test-u32-printf1.h: Likewise.
10891         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10892         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10893         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10894         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10895         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10896         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10897         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10898         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
10899         * tests/unistdio/test-u8-printf1.h: Likewise.
10900         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10901         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10902         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10903         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10904         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10905         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10906         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10907         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
10908         * tests/unistdio/test-ulc-printf1.h: Likewise.
10909         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10910         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10911         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10912         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10913         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10914         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10915         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10916         * tests/uniwidth/test-u16-width.c: Likewise.
10917         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10918         * tests/uniwidth/test-u32-width.c: Likewise.
10919         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10920         * tests/uniwidth/test-u8-width.c: Likewise.
10921         * tests/uniwidth/test-uc_width.c: Likewise.
10922         * config/srclist-update: Likewise.
10923         (fixlicense): Update to GPLv3+.
10924
10925         Change copyright notice from LGPLv2.1+ to LGPLv3+.
10926         * tests/test-tsearch.c: Change copyright notice.
10927
10928         Change copyright notice from LGPLv2.0+ to LGPLv3+.
10929         * lib/c-strcaseeq.h: Change copyright notice.
10930         * lib/streq.h: Likewise.
10931         * lib/uniconv.h: Likewise.
10932         * lib/uniconv/u-conv-from-enc.h: Likewise.
10933         * lib/uniconv/u-conv-to-enc.h: Likewise.
10934         * lib/uniconv/u-strconv-from-enc.h: Likewise.
10935         * lib/uniconv/u-strconv-to-enc.h: Likewise.
10936         * lib/uniconv/u16-conv-from-enc.c: Likewise.
10937         * lib/uniconv/u16-conv-to-enc.c: Likewise.
10938         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
10939         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
10940         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
10941         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
10942         * lib/uniconv/u32-conv-from-enc.c: Likewise.
10943         * lib/uniconv/u32-conv-to-enc.c: Likewise.
10944         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
10945         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
10946         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
10947         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
10948         * lib/uniconv/u8-conv-from-enc.c: Likewise.
10949         * lib/uniconv/u8-conv-to-enc.c: Likewise.
10950         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
10951         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
10952         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
10953         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
10954         * lib/uniname.h: Likewise.
10955         * lib/uniname/uniname.c: Likewise.
10956         * lib/unistdio.h: Likewise.
10957         * lib/unistdio/u-asnprintf.h: Likewise.
10958         * lib/unistdio/u-asprintf.h: Likewise.
10959         * lib/unistdio/u-printf-args.c: Likewise.
10960         * lib/unistdio/u-printf-args.h: Likewise.
10961         * lib/unistdio/u-printf-parse.h: Likewise.
10962         * lib/unistdio/u-snprintf.h: Likewise.
10963         * lib/unistdio/u-sprintf.h: Likewise.
10964         * lib/unistdio/u-vasprintf.h: Likewise.
10965         * lib/unistdio/u-vsnprintf.h: Likewise.
10966         * lib/unistdio/u-vsprintf.h: Likewise.
10967         * lib/unistdio/u16-asnprintf.c: Likewise.
10968         * lib/unistdio/u16-asprintf.c: Likewise.
10969         * lib/unistdio/u16-printf-parse.c: Likewise.
10970         * lib/unistdio/u16-snprintf.c: Likewise.
10971         * lib/unistdio/u16-sprintf.c: Likewise.
10972         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
10973         * lib/unistdio/u16-u16-asprintf.c: Likewise.
10974         * lib/unistdio/u16-u16-snprintf.c: Likewise.
10975         * lib/unistdio/u16-u16-sprintf.c: Likewise.
10976         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
10977         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
10978         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
10979         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
10980         * lib/unistdio/u16-vasnprintf.c: Likewise.
10981         * lib/unistdio/u16-vasprintf.c: Likewise.
10982         * lib/unistdio/u16-vsnprintf.c: Likewise.
10983         * lib/unistdio/u16-vsprintf.c: Likewise.
10984         * lib/unistdio/u32-asnprintf.c: Likewise.
10985         * lib/unistdio/u32-asprintf.c: Likewise.
10986         * lib/unistdio/u32-printf-parse.c: Likewise.
10987         * lib/unistdio/u32-snprintf.c: Likewise.
10988         * lib/unistdio/u32-sprintf.c: Likewise.
10989         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
10990         * lib/unistdio/u32-u32-asprintf.c: Likewise.
10991         * lib/unistdio/u32-u32-snprintf.c: Likewise.
10992         * lib/unistdio/u32-u32-sprintf.c: Likewise.
10993         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
10994         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
10995         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
10996         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
10997         * lib/unistdio/u32-vasnprintf.c: Likewise.
10998         * lib/unistdio/u32-vasprintf.c: Likewise.
10999         * lib/unistdio/u32-vsnprintf.c: Likewise.
11000         * lib/unistdio/u32-vsprintf.c: Likewise.
11001         * lib/unistdio/u8-asnprintf.c: Likewise.
11002         * lib/unistdio/u8-asprintf.c: Likewise.
11003         * lib/unistdio/u8-printf-parse.c: Likewise.
11004         * lib/unistdio/u8-snprintf.c: Likewise.
11005         * lib/unistdio/u8-sprintf.c: Likewise.
11006         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
11007         * lib/unistdio/u8-u8-asprintf.c: Likewise.
11008         * lib/unistdio/u8-u8-snprintf.c: Likewise.
11009         * lib/unistdio/u8-u8-sprintf.c: Likewise.
11010         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
11011         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
11012         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
11013         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
11014         * lib/unistdio/u8-vasnprintf.c: Likewise.
11015         * lib/unistdio/u8-vasprintf.c: Likewise.
11016         * lib/unistdio/u8-vsnprintf.c: Likewise.
11017         * lib/unistdio/u8-vsprintf.c: Likewise.
11018         * lib/unistdio/ulc-asnprintf.c: Likewise.
11019         * lib/unistdio/ulc-asprintf.c: Likewise.
11020         * lib/unistdio/ulc-printf-parse.c: Likewise.
11021         * lib/unistdio/ulc-snprintf.c: Likewise.
11022         * lib/unistdio/ulc-sprintf.c: Likewise.
11023         * lib/unistdio/ulc-vasnprintf.c: Likewise.
11024         * lib/unistdio/ulc-vasprintf.c: Likewise.
11025         * lib/unistdio/ulc-vsnprintf.c: Likewise.
11026         * lib/unistdio/ulc-vsprintf.c: Likewise.
11027         * lib/unistr.h: Likewise.
11028         * lib/unistr/u-cpy-alloc.h: Likewise.
11029         * lib/unistr/u-cpy.h: Likewise.
11030         * lib/unistr/u-endswith.h: Likewise.
11031         * lib/unistr/u-move.h: Likewise.
11032         * lib/unistr/u-set.h: Likewise.
11033         * lib/unistr/u-startswith.h: Likewise.
11034         * lib/unistr/u-stpcpy.h: Likewise.
11035         * lib/unistr/u-stpncpy.h: Likewise.
11036         * lib/unistr/u-strcat.h: Likewise.
11037         * lib/unistr/u-strcpy.h: Likewise.
11038         * lib/unistr/u-strcspn.h: Likewise.
11039         * lib/unistr/u-strdup.h: Likewise.
11040         * lib/unistr/u-strlen.h: Likewise.
11041         * lib/unistr/u-strncat.h: Likewise.
11042         * lib/unistr/u-strncpy.h: Likewise.
11043         * lib/unistr/u-strnlen.h: Likewise.
11044         * lib/unistr/u-strpbrk.h: Likewise.
11045         * lib/unistr/u-strspn.h: Likewise.
11046         * lib/unistr/u-strstr.h: Likewise.
11047         * lib/unistr/u-strtok.h: Likewise.
11048         * lib/unistr/u16-check.c: Likewise.
11049         * lib/unistr/u16-chr.c: Likewise.
11050         * lib/unistr/u16-cmp.c: Likewise.
11051         * lib/unistr/u16-cpy-alloc.c: Likewise.
11052         * lib/unistr/u16-cpy.c: Likewise.
11053         * lib/unistr/u16-endswith.c: Likewise.
11054         * lib/unistr/u16-mblen.c: Likewise.
11055         * lib/unistr/u16-mbsnlen.c: Likewise.
11056         * lib/unistr/u16-mbtouc-aux.c: Likewise.
11057         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
11058         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
11059         * lib/unistr/u16-mbtouc.c: Likewise.
11060         * lib/unistr/u16-mbtoucr.c: Likewise.
11061         * lib/unistr/u16-move.c: Likewise.
11062         * lib/unistr/u16-next.c: Likewise.
11063         * lib/unistr/u16-prev.c: Likewise.
11064         * lib/unistr/u16-set.c: Likewise.
11065         * lib/unistr/u16-startswith.c: Likewise.
11066         * lib/unistr/u16-stpcpy.c: Likewise.
11067         * lib/unistr/u16-stpncpy.c: Likewise.
11068         * lib/unistr/u16-strcat.c: Likewise.
11069         * lib/unistr/u16-strchr.c: Likewise.
11070         * lib/unistr/u16-strcmp.c: Likewise.
11071         * lib/unistr/u16-strcpy.c: Likewise.
11072         * lib/unistr/u16-strcspn.c: Likewise.
11073         * lib/unistr/u16-strdup.c: Likewise.
11074         * lib/unistr/u16-strlen.c: Likewise.
11075         * lib/unistr/u16-strmblen.c: Likewise.
11076         * lib/unistr/u16-strmbtouc.c: Likewise.
11077         * lib/unistr/u16-strncat.c: Likewise.
11078         * lib/unistr/u16-strncmp.c: Likewise.
11079         * lib/unistr/u16-strncpy.c: Likewise.
11080         * lib/unistr/u16-strnlen.c: Likewise.
11081         * lib/unistr/u16-strpbrk.c: Likewise.
11082         * lib/unistr/u16-strrchr.c: Likewise.
11083         * lib/unistr/u16-strspn.c: Likewise.
11084         * lib/unistr/u16-strstr.c: Likewise.
11085         * lib/unistr/u16-strtok.c: Likewise.
11086         * lib/unistr/u16-to-u32.c: Likewise.
11087         * lib/unistr/u16-to-u8.c: Likewise.
11088         * lib/unistr/u16-uctomb-aux.c: Likewise.
11089         * lib/unistr/u16-uctomb.c: Likewise.
11090         * lib/unistr/u32-check.c: Likewise.
11091         * lib/unistr/u32-chr.c: Likewise.
11092         * lib/unistr/u32-cmp.c: Likewise.
11093         * lib/unistr/u32-cpy-alloc.c: Likewise.
11094         * lib/unistr/u32-cpy.c: Likewise.
11095         * lib/unistr/u32-endswith.c: Likewise.
11096         * lib/unistr/u32-mblen.c: Likewise.
11097         * lib/unistr/u32-mbsnlen.c: Likewise.
11098         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
11099         * lib/unistr/u32-mbtouc.c: Likewise.
11100         * lib/unistr/u32-mbtoucr.c: Likewise.
11101         * lib/unistr/u32-move.c: Likewise.
11102         * lib/unistr/u32-next.c: Likewise.
11103         * lib/unistr/u32-prev.c: Likewise.
11104         * lib/unistr/u32-set.c: Likewise.
11105         * lib/unistr/u32-startswith.c: Likewise.
11106         * lib/unistr/u32-stpcpy.c: Likewise.
11107         * lib/unistr/u32-stpncpy.c: Likewise.
11108         * lib/unistr/u32-strcat.c: Likewise.
11109         * lib/unistr/u32-strchr.c: Likewise.
11110         * lib/unistr/u32-strcmp.c: Likewise.
11111         * lib/unistr/u32-strcpy.c: Likewise.
11112         * lib/unistr/u32-strcspn.c: Likewise.
11113         * lib/unistr/u32-strdup.c: Likewise.
11114         * lib/unistr/u32-strlen.c: Likewise.
11115         * lib/unistr/u32-strmblen.c: Likewise.
11116         * lib/unistr/u32-strmbtouc.c: Likewise.
11117         * lib/unistr/u32-strncat.c: Likewise.
11118         * lib/unistr/u32-strncmp.c: Likewise.
11119         * lib/unistr/u32-strncpy.c: Likewise.
11120         * lib/unistr/u32-strnlen.c: Likewise.
11121         * lib/unistr/u32-strpbrk.c: Likewise.
11122         * lib/unistr/u32-strrchr.c: Likewise.
11123         * lib/unistr/u32-strspn.c: Likewise.
11124         * lib/unistr/u32-strstr.c: Likewise.
11125         * lib/unistr/u32-strtok.c: Likewise.
11126         * lib/unistr/u32-to-u16.c: Likewise.
11127         * lib/unistr/u32-to-u8.c: Likewise.
11128         * lib/unistr/u32-uctomb.c: Likewise.
11129         * lib/unistr/u8-check.c: Likewise.
11130         * lib/unistr/u8-chr.c: Likewise.
11131         * lib/unistr/u8-cmp.c: Likewise.
11132         * lib/unistr/u8-cpy-alloc.c: Likewise.
11133         * lib/unistr/u8-cpy.c: Likewise.
11134         * lib/unistr/u8-endswith.c: Likewise.
11135         * lib/unistr/u8-mblen.c: Likewise.
11136         * lib/unistr/u8-mbsnlen.c: Likewise.
11137         * lib/unistr/u8-mbtouc-aux.c: Likewise.
11138         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
11139         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
11140         * lib/unistr/u8-mbtouc.c: Likewise.
11141         * lib/unistr/u8-mbtoucr.c: Likewise.
11142         * lib/unistr/u8-move.c: Likewise.
11143         * lib/unistr/u8-next.c: Likewise.
11144         * lib/unistr/u8-prev.c: Likewise.
11145         * lib/unistr/u8-set.c: Likewise.
11146         * lib/unistr/u8-startswith.c: Likewise.
11147         * lib/unistr/u8-stpcpy.c: Likewise.
11148         * lib/unistr/u8-stpncpy.c: Likewise.
11149         * lib/unistr/u8-strcat.c: Likewise.
11150         * lib/unistr/u8-strchr.c: Likewise.
11151         * lib/unistr/u8-strcmp.c: Likewise.
11152         * lib/unistr/u8-strcpy.c: Likewise.
11153         * lib/unistr/u8-strcspn.c: Likewise.
11154         * lib/unistr/u8-strdup.c: Likewise.
11155         * lib/unistr/u8-strlen.c: Likewise.
11156         * lib/unistr/u8-strmblen.c: Likewise.
11157         * lib/unistr/u8-strmbtouc.c: Likewise.
11158         * lib/unistr/u8-strncat.c: Likewise.
11159         * lib/unistr/u8-strncmp.c: Likewise.
11160         * lib/unistr/u8-strncpy.c: Likewise.
11161         * lib/unistr/u8-strnlen.c: Likewise.
11162         * lib/unistr/u8-strpbrk.c: Likewise.
11163         * lib/unistr/u8-strrchr.c: Likewise.
11164         * lib/unistr/u8-strspn.c: Likewise.
11165         * lib/unistr/u8-strstr.c: Likewise.
11166         * lib/unistr/u8-strtok.c: Likewise.
11167         * lib/unistr/u8-to-u16.c: Likewise.
11168         * lib/unistr/u8-to-u32.c: Likewise.
11169         * lib/unistr/u8-uctomb-aux.c: Likewise.
11170         * lib/unistr/u8-uctomb.c: Likewise.
11171         * lib/unitypes.h: Likewise.
11172         * lib/uniwidth.h: Likewise.
11173         * lib/uniwidth/cjk.h: Likewise.
11174         * lib/uniwidth/u16-strwidth.c: Likewise.
11175         * lib/uniwidth/u16-width.c: Likewise.
11176         * lib/uniwidth/u32-strwidth.c: Likewise.
11177         * lib/uniwidth/u32-width.c: Likewise.
11178         * lib/uniwidth/u8-strwidth.c: Likewise.
11179         * lib/uniwidth/u8-width.c: Likewise.
11180         * lib/uniwidth/width.c: Likewise.
11181
11182 2007-10-07  Bruno Haible  <bruno@clisp.org>
11183
11184         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
11185         The file is still under LGPL (see modules/inttypes).
11186
11187 2007-10-06  Bruno Haible  <bruno@clisp.org>
11188
11189         * modules/trunc (Dependencies): Add 'extensions'.
11190         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
11191         Reported by Ben Pfaff <blp@gnu.org>.
11192
11193 2007-10-06  Bruno Haible  <bruno@clisp.org>
11194
11195         * modules/freopen-tests: New file.
11196         * tests/test-freopen.c: New file.
11197
11198         * modules/fopen-tests: New file.
11199         * tests/test-fopen.c: New file.
11200
11201         * modules/fopen: New file.
11202         * lib/fopen.c: New file.
11203         * m4/fopen.m4: New file.
11204         * modules/freopen: New file.
11205         * lib/freopen.c: New file.
11206         * m4/freopen.m4: New file.
11207         * lib/stdio.in.h (fopen, freopen): New declarations.
11208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
11209         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11210         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
11211         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
11212         * doc/functions/fopen.texi: Mention the 'fopen' module.
11213         * doc/functions/freopen.texi: Mention the 'freopen' module.
11214
11215 2007-10-06  Bruno Haible  <bruno@clisp.org>
11216
11217         * modules/open-tests: New file.
11218         * tests/test-open.c: New file.
11219
11220         * modules/open: New file.
11221         * lib/open.c: New file.
11222         * m4/open.m4: New file.
11223         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
11224         lib/open.c does.
11225         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
11226         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
11227         macros.
11228         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
11229         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
11230         REPLACE_OPEN.
11231         * doc/functions/open.texi: Mention the 'open' module.
11232
11233 2007-10-04  Bruno Haible  <bruno@clisp.org>
11234
11235         * modules/ceill-tests: New file.
11236         * tests/test-ceill.c: New file.
11237
11238         * modules/ceill: New file.
11239         * lib/ceill.c: Replace entire file.
11240         * m4/ceill.m4: New file.
11241         * lib/math.in.h (ceill): Replace declaration.
11242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
11243         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
11244         * doc/functions/ceill.texi: Mention the 'ceill' module.
11245         * modules/mathl (Files): Remove lib/ceill.c.
11246         (Depends-on): Add ceill.
11247
11248 2007-10-04  Bruno Haible  <bruno@clisp.org>
11249
11250         * modules/ceilf-tests: New file.
11251         * tests/test-ceilf.c: New file.
11252
11253         * modules/ceilf: New file.
11254         * lib/ceil.c: New file.
11255         * lib/ceilf.c: New file.
11256         * m4/ceilf.m4: New file.
11257         * lib/math.in.h (ceilf): New declaration.
11258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
11259         HAVE_DECL_CEILF.
11260         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
11261         HAVE_DECL_CEILF.
11262         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
11263
11264 2007-10-04  Bruno Haible  <bruno@clisp.org>
11265
11266         * modules/floorl-tests: New file.
11267         * tests/test-floorl.c: New file.
11268
11269         * modules/floorl: New file.
11270         * lib/floorl.c: Replace entire file.
11271         * m4/floorl.m4: New file.
11272         * lib/math.in.h (floorl): Replace declaration.
11273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
11274         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
11275         * doc/functions/floorl.texi: Mention the 'floorl' module.
11276         * modules/mathl (Files): Remove lib/floorl.c.
11277         (Depends-on): Add floorl.
11278
11279 2007-10-04  Bruno Haible  <bruno@clisp.org>
11280
11281         * modules/floorf-tests: New file.
11282         * tests/test-floorf.c: New file.
11283
11284         * modules/floorf: New file.
11285         * lib/floor.c: New file.
11286         * lib/floorf.c: New file.
11287         * m4/floorf.m4: New file.
11288         * lib/math.in.h (floorf): New declaration.
11289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
11290         HAVE_DECL_FLOORF.
11291         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
11292         HAVE_DECL_FLOORF.
11293         * doc/functions/floorf.texi: Mention the 'floorf' module.
11294
11295 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
11296             Bruno Haible  <bruno@clisp.org>
11297
11298         Advertise for the Git server instead of the CVS server.
11299         * doc/gnulib-intro.texi (Steady Development): Mention the Git
11300         repository instead of the CVS one.
11301         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
11302         about all VCS systems generically.
11303         * doc/gnulib.texi (Introduction): Capitalize `Git'.
11304
11305 2007-10-04  Bruno Haible  <bruno@clisp.org>
11306
11307         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
11308         means.
11309         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
11310
11311 2007-10-04  Bruno Haible  <bruno@clisp.org>
11312
11313         * modules/truncl-tests: New file.
11314         * tests/test-truncl.c: New file.
11315
11316         * modules/truncl: New file.
11317         * lib/truncl.c: New file.
11318         * m4/truncl.m4: New file.
11319         * lib/math.in.h (truncl): New declaration.
11320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
11321         HAVE_DECL_TRUNCL.
11322         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
11323         HAVE_DECL_TRUNCL.
11324         * doc/functions/truncl.texi: Mention the 'truncl' module.
11325
11326 2007-10-04  Bruno Haible  <bruno@clisp.org>
11327
11328         * modules/truncf-tests: New file.
11329         * tests/test-truncf.c: New file.
11330
11331         * modules/truncf: New file.
11332         * lib/trunc.c: Make paramerizable through USE_* macros.
11333         * lib/truncf.c: New file.
11334         * m4/truncf.m4: New file.
11335         * lib/math.in.h (truncf): New declaration.
11336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
11337         HAVE_DECL_TRUNCF.
11338         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
11339         HAVE_DECL_TRUNCF.
11340         * doc/functions/truncf.texi: Mention the 'truncf' module.
11341
11342 2007-10-03  Bruno Haible  <bruno@clisp.org>
11343
11344         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11345         augmentation also for tests modules.
11346         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
11347         * modules/atexit-tests (Makefile.am): Likewise.
11348         * modules/binary-io-tests (Makefile.am): Likewise.
11349         * modules/c-strcase-tests (Makefile.am): Likewise.
11350         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
11351         * modules/canonicalize-tests (Makefile.am): Likewise.
11352         * modules/closein-tests (Makefile.am): Likewise.
11353         * modules/fprintf-posix-tests (Makefile.am): Likewise.
11354         * modules/freadahead-tests (Makefile.am): Likewise.
11355         * modules/fseek-tests (Makefile.am): Likewise.
11356         * modules/fseeko-tests (Makefile.am): Likewise.
11357         * modules/ftell-tests (Makefile.am): Likewise.
11358         * modules/ftello-tests (Makefile.am): Likewise.
11359         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
11360         * modules/isnanl-tests (Makefile.am): Likewise.
11361         * modules/lseek-tests (Makefile.am): Likewise.
11362         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11363         * modules/mbscasestr-tests (Makefile.am): Likewise.
11364         * modules/mbschr-tests (Makefile.am): Likewise.
11365         * modules/mbscspn-tests (Makefile.am): Likewise.
11366         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11367         * modules/mbspbrk-tests (Makefile.am): Likewise.
11368         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11369         * modules/mbsrchr-tests (Makefile.am): Likewise.
11370         * modules/mbsspn-tests (Makefile.am): Likewise.
11371         * modules/mbsstr-tests (Makefile.am): Likewise.
11372         * modules/printf-posix-tests (Makefile.am): Likewise.
11373         * modules/snprintf-posix-tests (Makefile.am): Likewise.
11374         * modules/sprintf-posix-tests (Makefile.am): Likewise.
11375         * modules/tsearch-tests (Makefile.am): Likewise.
11376         * modules/uniname/uniname-tests (Makefile.am): Likewise.
11377         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11378         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11379         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11380         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11381         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11382         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11383         * modules/vprintf-posix-tests (Makefile.am): Likewise.
11384         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
11385         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
11386         * modules/xstrtoimax-tests (Makefile.am): Likewise.
11387         * modules/xstrtol-tests (Makefile.am): Likewise.
11388         * modules/xstrtoumax-tests (Makefile.am): Likewise.
11389         * modules/yesno-tests (Makefile.am): Likewise.
11390
11391 2007-10-03  Bruno Haible  <bruno@clisp.org>
11392
11393         * modules/trunc-tests: New file.
11394         * tests/test-trunc.c: New file.
11395
11396         * modules/trunc: New file.
11397         * lib/trunc.c: New file.
11398         * m4/trunc.m4: New file.
11399         * lib/math.in.h (trunc): New declaration.
11400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
11401         HAVE_DECL_TRUNC.
11402         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
11403         HAVE_DECL_TRUNC.
11404         * doc/functions/trunc.texi: Mention the 'trunc' module.
11405
11406 2007-10-03  Bruno Haible  <bruno@clisp.org>
11407
11408         * tests/test-fpending.c: New file, mostly copied
11409         from coreutils/lib/t-fpending.c.
11410         * modules/fpending-tests: New file.
11411
11412 2007-10-03  Bruno Haible  <bruno@clisp.org>
11413
11414         Port the stdio extensions to QNX (untested).
11415         * lib/fseterr.c (fseterr): Add support for QNX.
11416         * lib/fbufmode.c (fbufmode): Likewise.
11417         * lib/freadable.c (freadable): Likewise.
11418         * lib/fwritable.c (fwritable): Likewise.
11419         * lib/freading.c (freading): Likewise.
11420         * lib/fwriting.c (fwriting): Likewise.
11421         * lib/freadahead.c (freadahed): Likewise.
11422         * lib/fpurge.c (fpurge): Likewise.
11423         * lib/fseeko.c (rpl_fseeko): Likewise.
11424
11425 2007-10-03  Bruno Haible  <bruno@clisp.org>
11426             Jim Meyering  <jim@meyering.net>
11427             Eric Blake  <ebb9@byu.net>
11428
11429         * doc/relocatable.texi: Use @command instead of @program.
11430
11431 2007-10-02  Jim Meyering  <jim@meyering.net>
11432
11433         Perform one more "_.h" -> ".in.h" substitution.
11434         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
11435         instead of unistd_.h here, too.
11436
11437 2007-10-01  Bruno Haible  <bruno@clisp.org>
11438
11439         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
11440         Needed for the alloca-opt module.
11441
11442 2007-09-30  Bruno Haible  <bruno@clisp.org>
11443
11444         * lib/alloca.in.h: Renamed from lib/alloca_.h.
11445         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
11446         alloca_.h.
11447         * lib/argz.in.h: Renamed from lib/argz_.h.
11448         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
11449         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
11450         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
11451         byteswap_.h.
11452         * lib/dirent.in.h: Renamed from lib/dirent_.h.
11453         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
11454         dirent_.h.
11455         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
11456         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
11457         fcntl_.h.
11458         * lib/float.in.h: Renamed from lib/float_.h.
11459         * modules/float (Files, Makefile.am): Use float.in.h instead of
11460         float_.h.
11461         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
11462         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
11463         fnmatch_.h.
11464         * lib/getopt.in.h: Renamed from lib/getopt_.h.
11465         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
11466         getopt_.h.
11467         * lib/glob.in.h: Renamed from lib/glob_.h.
11468         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
11469         * lib/iconv.in.h: Renamed from lib/iconv_.h.
11470         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
11471         iconv_.h.
11472         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
11473         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
11474         inttypes_.h.
11475         * lib/locale.in.h: Renamed from lib/locale_.h.
11476         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
11477         locale_.h.
11478         * lib/math.in.h: Renamed from lib/math_.h.
11479         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
11480         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
11481         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
11482         of netinet_in_.h. Add dependency.
11483         * lib/poll.in.h: Renamed from lib/poll_.h.
11484         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
11485         * lib/search.in.h: Renamed from lib/search_.h.
11486         * modules/search (Files, Makefile.am): Use search.in.h instead of
11487         search_.h.
11488         * lib/signal.in.h: Renamed from lib/signal_.h.
11489         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
11490         _signal.h.
11491         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
11492         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
11493         stdbool_.h.
11494         * lib/stdint.in.h: Renamed from lib/stdint_.h.
11495         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
11496         stdint_.h.
11497         * lib/stdio.in.h: Renamed from lib/stdio_.h.
11498         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
11499         stdio_.h.
11500         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
11501         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
11502         stdlib_.h.
11503         * lib/string.in.h: Renamed from lib/string_.h.
11504         * modules/string (Files, Makefile.am): Use string.in.h instead of
11505         string_.h.
11506         * doc/gnulib-tool.texi (Initial import): Update.
11507         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
11508         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
11509         of sys_select_.h. Add dependency.
11510         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
11511         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
11512         of sys_socket_.h.
11513         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
11514         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
11515         sys_stat_.h.
11516         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
11517         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
11518         sys_time_.h.
11519         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
11520         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
11521         sysexits_.h.
11522         * lib/time.in.h: Renamed from lib/time_.h.
11523         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
11524         * lib/unistd.in.h: Renamed from lib/unistd_.h.
11525         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
11526         unistd_.h.
11527         * lib/wchar.in.h: Renamed from lib/wchar_.h.
11528         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
11529         wchar_.h.
11530         * lib/wctype.in.h: Renamed from lib/wctype_.h.
11531         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
11532         wctype_.h.
11533         * build-aux/bootstrap (slurp): Update.
11534         * lib/.cppi-disable: Update.
11535
11536 2007-09-30  Bruno Haible  <bruno@clisp.org>
11537
11538         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
11539         Needed on BeOS.
11540
11541 2007-09-30  Bruno Haible  <bruno@clisp.org>
11542
11543         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
11544
11545 2007-09-29  Bruno Haible  <bruno@clisp.org>
11546
11547         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
11548
11549 2007-09-29  Bruno Haible  <bruno@clisp.org>
11550
11551         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
11552         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
11553         * build-aux/install-reloc: Compile also areadlink.c.
11554         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
11555
11556 2007-09-29  Bruno Haible  <bruno@clisp.org>
11557
11558         * gnulib-tool (func_emit_initmacro_done): Indentation.
11559
11560 2007-09-29  Bruno Haible  <bruno@clisp.org>
11561
11562         * README: Add CVS checkout update instructions.
11563         Info from Bob Proulx <bob@proulx.com>.
11564
11565 2007-09-28  Eric Blake  <ebb9@byu.net>
11566
11567         Provide move-if-change.
11568         * build-aux/move-if-change: New file, based on best practice
11569         rather than any canonical upstream location.
11570
11571 2007-09-28  Jim Meyering  <jim@meyering.net>
11572
11573         Fix canonicalize loop-detection corner case.
11574         Do not attempt to stat the symlink values stored via seen_triple.
11575         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
11576         on linux-2.6.18, (but not 2.6.22).
11577         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
11578         triple_compare.  The former compares dev,ino,filename, while the latter
11579         would actually stat dirname(filename) when dev and ino were equal.
11580         * lib/hash-triple.c: Install <string.h>.
11581         (STREQ): Define.
11582         (triple_compare_ino_str): New function.
11583         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
11584
11585 2007-09-28  Eric Blake  <ebb9@byu.net>
11586
11587         Enforce that AC_REPLACE_FUNCS files exist.
11588         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
11589         override check for typos.
11590
11591         Fix test-closein on Solaris 10.
11592         * tests/test-closein.c (main): Don't assume stdin can be inherited
11593         closed on all systems.
11594         * tests/test-closein.sh: Likewise.
11595         Reported by Piotr Tarnowski.
11596
11597 2007-09-28  Jim Meyering  <jim@meyering.net>
11598
11599         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
11600
11601 2007-09-27  Jim Meyering  <jim@meyering.net>
11602
11603         canonicalize: Avoid a false-positive cycle failure.
11604         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
11605         Sort.  Remove cycle-check.
11606         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
11607         not cycle-check.h.
11608         (seen_triple): New function.
11609         (canonicalize_filename_mode): Use it instead of cycle-check.
11610         * tests/test-canonicalize.c: Add a test for this bug.
11611         * tests/test-canonicalize.sh: Set up and run the test.
11612
11613         New module, file-set, from coreutils.
11614         * modules/file-set: Define it.
11615         * lib/file-set.c, lib/file-set.h: Implement.
11616
11617         New module, hash-triple, from coreutils.
11618         * modules/hash-triple: Define it.
11619         * lib/hash-triple.c, lib/hash-triple.h: Implement.
11620
11621 2007-09-25  Eric Blake  <ebb9@byu.net>
11622
11623         Fix strerror on Interix.
11624         * lib/string_.h (strerror): Declare replacement.
11625         * doc/functions/strerror.texi (strerror): Document the Interix
11626         shortcoming.
11627         * modules/string (Makefile.am): Support new hooks.
11628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
11629         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
11630         gl_FUNC_STRERROR_SEPARATE.
11631         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
11632         * lib/strerror.c (rpl_strerror): Provide replacement.
11633         * modules/strerror (Depends-on): Add string.
11634         (configure.ac): Detect use of module.
11635         * tests/test-strerror.c: New file.
11636         * modules/strerror-tests: New test module.
11637         * modules/argp (Depends-on): Add strerror.
11638         * modules/error (Depends-on): Likewise.
11639         Reported by Martin Koeppe.
11640
11641 2007-09-24  Bruno Haible  <bruno@clisp.org>
11642
11643         * README: Update git instructions.
11644
11645 2007-09-24  Eric Blake  <ebb9@byu.net>
11646
11647         Revert fpending breakage from 2007-09-08.
11648         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
11649         __fpending.c.
11650
11651 2007-09-24  Jim Meyering  <jim@meyering.net>
11652
11653         filenamecat.c: Add a test.
11654         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
11655         showing how the function works when DIR is the empty string.
11656
11657 2007-09-21  Simon Josefsson  <simon@josefsson.org>
11658
11659         * tests/test-canonicalize.sh: Turn on executable bit.
11660
11661 2007-09-19  Eric Blake  <ebb9@byu.net>
11662
11663         * README: Update CVS instructions.
11664
11665 2007-09-18  Bruno Haible  <bruno@clisp.org>
11666
11667         * modules/areadlink: New file.
11668         * lib/areadlink.h (areadlink): New declaration.
11669         * lib/areadlink.c: New file, based on lib/xreadlink.c.
11670
11671 2007-09-17  Jim Meyering  <jim@meyering.net>
11672
11673         * lib/savewd.c (ESTALE) [!defined]: Define.
11674         Reported to be required on Interix by Martin Koeppe.
11675
11676 2007-09-17  Bruno Haible  <bruno@clisp.org>
11677
11678         * gnulib-tool (func_version): Use $version.
11679
11680 2007-09-16  Bruno Haible  <bruno@clisp.org>
11681
11682         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
11683         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
11684         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
11685         Reported by Greg Schafer <gschafer@zip.com.au>.
11686
11687 2007-09-15  Bruno Haible  <bruno@clisp.org>
11688
11689         * gnulib-tool (sed): Try a little harder to make bash understand the
11690         alias.
11691         Reported by Bruce Korb <bruce.korb@gmail.com>.
11692
11693 2007-09-13  Eric Blake  <ebb9@byu.net>
11694
11695         * ChangeLog: Remove conflict markers.
11696
11697 2007-09-13  Simon Josefsson  <simon@josefsson.org>
11698
11699         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
11700         Reported by Bruno Haible <bruno@clisp.org>.
11701
11702 2007-09-12  Bruno Haible  <bruno@clisp.org>
11703
11704         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
11705         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
11706         is not defined.
11707
11708 2007-09-12  Eric Blake  <ebb9@byu.net>
11709
11710         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
11711         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
11712         Autoconf definition.
11713         * modules/euidaccess (Depends-on): Add extensions, for
11714         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
11715         * modules/fnmatch (Depends-on): Likewise.
11716         * modules/getaddrinfo (Depends-on): Likewise.
11717         * modules/getdelim (Depends-on): Likewise.
11718         * modules/getline (Depends-on): Likewise.
11719         * modules/getsubopt (Depends-on): Likewise.
11720         * modules/gettext (Depends-on): Likewise.
11721         * modules/group-member (Depends-on): Likewise.
11722         * modules/mbchar (Depends-on): Likewise.
11723         * modules/memmem (Depends-on): Likewise.
11724         * modules/mempcpy (Depends-on): Likewise.
11725         * modules/memrchr (Depends-on): Likewise.
11726         * modules/pagealign_alloc (Depends-on): Likewise.
11727         * modules/readutmp (Depends-on): Likewise.
11728         * modules/stpcpy (Depends-on): Likewise.
11729         * modules/stpncpy (Depends-on): Likewise.
11730         * modules/strchrnul (Depends-on): Likewise.
11731         * modules/strndup (Depends-on): Likewise.
11732         * modules/strsep (Depends-on): Likewise.
11733         * modules/strverscmp (Depends-on): Likewise.
11734         * modules/vasprintf (Depends-on): Likewise.
11735         * modules/wcwidth (Depends-on): Likewise.
11736         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
11737         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
11738         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
11739         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
11740         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11741         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11742         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
11743         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11744         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
11745         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11746         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11747         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
11748         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
11749         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11750         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
11751         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11752         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11753         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
11754         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11755         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
11756         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11757         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
11758         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
11759         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
11760         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
11761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11762         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
11763         so that lock.m4 can be used in gettext without extensions module.
11764
11765 2007-09-11  Bruno Haible  <bruno@clisp.org>
11766
11767         * m4/isc-posix.m4: Remove file.
11768         Suggested by Eric Blake.
11769
11770 2007-09-11  Eric Blake  <ebb9@byu.net>
11771
11772         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
11773
11774 2007-09-10  Bruno Haible  <bruno@clisp.org>
11775
11776         * posix-modules: Fix typo in error message.
11777         Reported by Matt <mkraai@beckman.com>.
11778
11779 2007-09-09  Bruno Haible  <bruno@clisp.org>
11780
11781         * doc/functions/getdelim.texi: Update list of platforms lacking the
11782         function.
11783         * doc/functions/getline.texi: Likewise.
11784
11785 2007-09-09  Jim Meyering  <jim@meyering.net>
11786
11787         * lib/hash.c (hash_initialize): Detect calloc failure.
11788         Reported by Bruno Haible.
11789
11790 2007-09-09  Bruno Haible  <bruno@clisp.org>
11791
11792         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
11793         malloc or realloc fails.
11794
11795 2007-09-09  Bruno Haible  <bruno@clisp.org>
11796
11797         * modules/getcwd (Depends-on): Add malloc-posix.
11798         * modules/glob (Depends-on): Likewise.
11799         * modules/putenv (Depends-on): Likewise.
11800         * modules/strdup (Depends-on): Likewise.
11801         * modules/getdelim (Depends-on): Add realloc-posix.
11802         * modules/read-file (Depends-on): Likewise.
11803
11804 2007-09-09  Bruno Haible  <bruno@clisp.org>
11805
11806         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
11807         (gl_FUNC_MALLOC_POSIX): Require it.
11808         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
11809         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
11810         * modules/realloc (Files): Add m4/malloc.m4.
11811         * modules/calloc (Files): Likewise.
11812
11813 2007-09-09  Bruno Haible  <bruno@clisp.org>
11814
11815         * modules/malloc-posix: New file.
11816         * modules/malloc (Depends-on): Add malloc-posix.
11817         * lib/malloc.c: Include errno.h.
11818         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
11819         and a POSIX-compatible malloc into a single function. Set ENOMEM
11820         when returning NULL.
11821         * m4/malloc.m4: New file.
11822         * doc/functions/malloc.texi: Mention the malloc-posix module.
11823         * lib/stdlib_.h (malloc): New declaration.
11824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11825         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
11826         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
11827         and HAVE_MALLOC_POSIX.
11828
11829 2007-09-09  Bruno Haible  <bruno@clisp.org>
11830
11831         * modules/realloc-posix: New file.
11832         * modules/realloc (Depends-on): Add realloc-posix.
11833         * lib/realloc.c: Include errno.h.
11834         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
11835         and a POSIX-compatible realloc into a single function. Set ENOMEM
11836         when returning NULL.
11837         * m4/realloc.m4: New file.
11838         * doc/functions/realloc.texi: Mention the realloc-posix module.
11839         * lib/stdlib_.h (realloc): New declaration.
11840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11841         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
11842         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
11843         and HAVE_REALLOC_POSIX.
11844
11845 2007-09-09  Bruno Haible  <bruno@clisp.org>
11846
11847         * modules/calloc-posix: New file.
11848         * modules/calloc (Depends-on): Add calloc-posix.
11849         * lib/calloc.c: Include errno.h.
11850         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
11851         and a POSIX-compatible calloc into a single function. Set ENOMEM
11852         when returning NULL.
11853         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
11854         * doc/functions/calloc.texi: Mention the calloc-posix module.
11855         * lib/stdlib_.h (calloc): New declaration.
11856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11857         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
11858         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
11859         and HAVE_CALLOC_POSIX.
11860
11861 2007-09-09  Bruno Haible  <bruno@clisp.org>
11862
11863         Allow for modules to show an arbitrary notice.
11864         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
11865         * gnulib-tool: New option --extract-notice.
11866         (func_usage): Document it.
11867         (sed_extract_prog): Update.
11868         (func_get_notice): New function.
11869         (func_modules_notice): New function.
11870         (func_import, func_create_testdir): Invoke it.
11871         Suggested by Jim Meyering.
11872
11873 2007-09-09  Bruno Haible  <bruno@clisp.org>
11874
11875         * gnulib-tool: New options --verbose, --quiet.
11876         (func_usage): Document them.
11877         (verbose): New variable.
11878         (func_execute_command): New function.
11879         (func_import): Don't show the module list and the file list if
11880         $verbose < 0.
11881         (func_create_testdir): Likewise. Use func_execute_command.
11882         (func_create_megatestdir): Use func_execute_command.
11883
11884 2007-09-08  Bruno Haible  <bruno@clisp.org>
11885
11886         * gnulib-tool (func_import): Prefer rsync over wget when available,
11887         for fetching the PO files.
11888
11889 2007-09-08  Bruno Haible  <bruno@clisp.org>
11890
11891         * posix-modules: New file. Portions copied from gnulib-tool.
11892         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
11893
11894 2007-09-08  Jim Meyering  <jim@meyering.net>
11895
11896         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
11897         * lib/fpending.h: Rename from __fpending.h.
11898         * lib/fpending.c: Rename from __fpending.c.
11899         Include "fpending.h", not "__fpending.h".
11900         * lib/__fpending.h, lib/__fpending.c: Remove files.
11901         * modules/fpending (Files): Reflect new file names.
11902         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
11903
11904 2007-09-08  Bruno Haible  <bruno@clisp.org>
11905
11906         * m4/inttypes-h.m4: Remove stub file.
11907
11908 2007-09-07  Simon Josefsson  <simon@josefsson.org>
11909
11910         * doc/headers/stdint.texi: Discuss #include_next issue.
11911
11912 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11913
11914         * build-aux/bootstrap: Remove obsolete comment about wget --help.
11915
11916 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11917
11918         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
11919         in variable name.
11920
11921 2007-09-03  Jim Meyering  <jim@meyering.net>
11922
11923         New module: git-version-gen.
11924         * modules/git-version-gen: New file.
11925
11926         Import changes from coreutils for bootstrap script.
11927
11928         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
11929
11930         bootstrap: uses rsync to download the .po files
11931         * build-aux/bootstrap (po_download_command_format): New global.
11932         (download_po_files): Use rsync.
11933         (update_po_files): Don't remove .po files after download,
11934         so future rsync runs can take advantage of the copies.
11935
11936         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
11937
11938         Solve the unnecessary-.po-file-regeneration problem once and for all.
11939         * build-aux/bootstrap (download_po_files): New function, renamed from
11940         get_translations.  Now, downloads, but doesn't update LINGUAS.
11941         (update_po_files): New function.
11942
11943         bootstrap: Ignore more.
11944         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
11945         uniwidth to e.g., lib/.gitignore.
11946         (slurp): Handle the sys_stat_.h -> sys mapping, too.
11947
11948         * build-aux/bootstrap: New setting: vc_ignore.
11949         (insert_sorted_if_absent): Create $file if absent.
11950         Adapt to new, possibly empty, list: $vc_ignore.
11951
11952         bootstrap: generate more ignorable names
11953         * build-aux/bootstrap (slurp): When generating ignorable names,
11954         also map .sin to .sed, .gperf to .c, and .y to .c.
11955
11956 2007-09-03  Jim Meyering  <jim@meyering.net>
11957
11958         * build-aux/git-version-gen: New file, from coreutils.  For details, see
11959         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
11960
11961 2007-09-02  Bruno Haible  <bruno@clisp.org>
11962
11963         Fix mis-recognition of 'mcs' on QNX 6.
11964         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
11965         output contains the string "Mono".
11966         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
11967         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
11968
11969 2007-09-01  Bruno Haible  <bruno@clisp.org>
11970
11971         Fix collision between uniwidth/* and linebreak modules.
11972         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
11973         u32_width): Remove declarations.
11974         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
11975         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
11976         streq3, streq2, streq1, streq0): Remove functions.
11977         (STREQ): Remove macro.
11978         (is_cjk_encoding): Remove function.
11979         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
11980         (uc_width, u8_width, u16_width, u32_width): Remove functions.
11981         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
11982         * NEWS: Document the change.
11983
11984 2007-09-01  Bruno Haible  <bruno@clisp.org>
11985
11986         * lib/streq.h: Add double-inclusion guard.
11987
11988 2007-09-01  Karl Berry  <karl@gnu.org>
11989
11990         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
11991
11992 2007-08-28  Jim Meyering  <jim@meyering.net>
11993
11994         Rename mreadlink_with_size to areadlink_with_size.
11995         * NEWS: Document the change.
11996         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
11997         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
11998         * lib/mreadlink.h: Rename this to...
11999         * lib/areadlink.h: ...this.
12000         * modules/mreadlink-with-size: Rename this to...
12001         * modules/areadlink-with-size: ...this.
12002         * lib/canonicalize.c: Reflect the renaming.
12003         * modules/canonicalize: Likewise.
12004
12005 2007-08-26  Bruno Haible  <bruno@clisp.org>
12006
12007         * gnulib-tool (func_import): When deciding which files to remove,
12008         consider also dangling symbolic links.
12009         Reported by Eric Blake.
12010
12011 2007-08-26  Bruno Haible  <bruno@clisp.org>
12012
12013         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
12014
12015 2007-08-23  Simon Josefsson  <simon@josefsson.org>
12016
12017         * lib/readline.c: Don't include getline.h, the prototype is now
12018         found in stdio.h.
12019
12020 2007-08-23  Jim Meyering  <jim@meyering.net>
12021
12022         Getdelim touchup.
12023         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
12024         around the funlockfile call, since funlockfile never sets errno.
12025         Don't set errno upon failed realloc.
12026
12027 2007-08-22  Eric Blake  <ebb9@byu.net>
12028
12029         Getline touchups.
12030         * lib/getdelim.c (getdelim): Revert regression that required *n to
12031         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
12032         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
12033         getdelim, rather than whether implementation is missing.
12034         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
12035         * lib/stdio_.h (getline): Also declare if replacement is
12036         required.
12037         * doc/functions/getdelim.texi: New file.
12038         * doc/functions/getline.texi: Likewise.
12039         * doc/gnulib.texi (Function Substitutes): Add new files.
12040         Reported by Bruno Haible.
12041
12042 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
12043
12044         * users.txt: Add Guile.
12045
12046 2007-08-22  Eric Blake  <ebb9@byu.net>
12047
12048         * tests/test-getdelim.c (main): Use remove, not unlink.
12049         * tests/test-getline.c (main): Likewise.
12050
12051         Move getline and getdelim into stdio.h, per POSIX 200x.
12052         * modules/getline (Files): Remove getline.h.
12053         (Depends-on): Add stdio.
12054         (configure.ac): Add module indicator.
12055         * modules/getdelim (Files): Remove getdelim.h.
12056         (Depends-on): Add stdio.
12057         (configure.ac): Add module indicator.
12058         * modules/stdio (Makefile.am): Work with new indicators.
12059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
12060         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
12061         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12062         * lib/getdelim.h: Delete.
12063         * lib/getline.h: Delete.
12064         * lib/stdio_.h (getdelim, getline): Declare.
12065         * modules/getdelim-tests: New module.
12066         * modules/getline-tests: Likewise.
12067         * tests/test-getdelim.c: New file.
12068         * tests/test-getline.c: Likewise.
12069         * NEWS: Document the change.
12070         * lib/getline.c: Update choice of header.
12071         * lib/csharpcomp.c: Likewise.
12072         * lib/getpass.c: Likewise.
12073         * lib/javacomp.c: Likewise.
12074         * lib/javaversion.c: Likewise.
12075         * lib/yesno.c: Likewise.
12076         * lib/getdelim.c: Likewise.
12077         (getdelim): Set errno on failure, and avoid memory leak.
12078
12079 2007-08-19  Bruno Haible  <bruno@clisp.org>
12080
12081         * modules/closein (Depends-on): Add freadahead.
12082         * lib/closein.c: Include freadahead.h.
12083         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
12084         is zero.
12085
12086 2007-08-19  Bruno Haible  <bruno@clisp.org>
12087
12088         * modules/freadahead-tests: New file.
12089         * tests/test-freadahead.sh: New file.
12090         * tests/test-freadahead.c: New file.
12091
12092         * modules/freadahead: New file.
12093         * lib/freadahead.h: New file.
12094         * lib/freadahead.c: New file.
12095         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
12096         fbufmode, fpurge, freadable, fwritable.
12097
12098 2007-08-19  Eric Blake  <ebb9@byu.net>
12099
12100         Test yesno in combination with closein.
12101         * lib/yesno.c (yesno): Document use of stdin.
12102         * modules/yesno-tests (Files): New module.
12103         * tests/test-yesno.c (main): New file.
12104         * tests/test-yesno.sh: Likewise.
12105
12106 2007-08-19  Bruno Haible  <bruno@clisp.org>
12107
12108         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
12109         * lib/fseeko.c (rpl_fseeko): Likewise.
12110         * lib/fseterr.c (fseterr): Likewise.
12111
12112 2007-08-19  Bruno Haible  <bruno@clisp.org>
12113
12114         * tests/test-lseek.c (main): Disable a test for BeOS.
12115         * doc/functions/lseek.texi: Document the BeOS bug.
12116
12117 2007-08-19  Bruno Haible  <bruno@clisp.org>
12118             Eric Blake  <ebb9@byu.net>
12119
12120         * lib/lseek.c: Include <sys/stat.h>.
12121         (rpl_lseek): Add workaround code also for Unix platforms.
12122         Needed for BeOS.
12123         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
12124         * doc/functions/lseek.texi: Document BeOS definiency.
12125
12126 2007-08-18  Bruno Haible  <bruno@clisp.org>
12127
12128         * modules/fstrcmp-tests: New file.
12129         * tests/test-fstrcmp.c: New file.
12130
12131 2007-08-18  Bruno Haible  <bruno@clisp.org>
12132
12133         * modules/fstrcmp: New file, from GNU gettext with modifications.
12134         * lib/fstrcmp.h: New file, from GNU gettext.
12135         * lib/fstrcmp.c: New file, from GNU gettext.
12136         * MODULES.html.sh (String handling): Add fstrcmp.
12137
12138 2007-08-18  Bruno Haible  <bruno@clisp.org>
12139
12140         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
12141         'bool'.
12142         (diag, compareseq): Remove const from the ctxt argument.
12143         (USE_HEURISTIC): Undefine at the end.
12144
12145 2007-08-18  Jim Meyering  <jim@meyering.net>
12146
12147         New file: lib/idcache.h
12148         * NEWS: Mention the addition.
12149         * modules/idcache (Files): Add lib/idcache.h
12150         * lib/idcache.c: Include "idcache.h".
12151         Don't include <sys/types.h>.
12152         Add a FIXME comment.
12153         Move file-scoped "static" declarations to the top.
12154         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
12155
12156 2007-08-17  Bruno Haible  <bruno@clisp.org>
12157         and Paul Eggert  <eggert@cs.ucla.edu>
12158
12159         * MODULES.html.sh: Add diffseq.
12160         * modules/diffseq: New file.
12161         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
12162         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
12163
12164 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12165
12166         Import changes from coreutils for bootstrap script.
12167
12168         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
12169
12170         * build-aux/bootstrap (slurp): Work even in environments where
12171         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
12172         current code does not slurp files whose names start with ".", and
12173         this looks like it might be a troublesome area.
12174
12175         2007-07-11  Jim Meyering  <jim@meyering.net>
12176
12177         If there's a GPL vN copyright comment, require that N == 3.
12178
12179         2007-07-08  Jim Meyering  <jim@meyering.net>
12180
12181         Run the coreutils-specific code only if tests/Makefile.am.in exists.
12182         * build-aux/bootstrap (mam_template): Move definition out of loop.
12183
12184         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
12185
12186         * build-aux/bootstrap (symlink_to_dir): Rename function from
12187         symlink_to_gnulib.  Add a directory parameter.  Update all
12188         callers.
12189         (cp_mark_as_generated): Also check for -- and link to -- files in
12190         gl/.
12191
12192         2007-07-08  Jim Meyering  <jim@meyering.net>
12193
12194         Adapt to deeper hierarchy in gnulib.
12195         * build-aux/bootstrap (symlink_to_dir): If the destination
12196         directory doesn't exist, create it. This is required at least for
12197         "lib/uniwidth/cjk.h".
12198
12199         2007-05-15  Jim Meyering  <jim@meyering.net>
12200
12201         * build-aux/bootstrap: Now that generated Makefile.am files
12202         are no longer under version control, they must be created at
12203         bootstrap time.
12204
12205 2007-08-14  Ben Pfaff  <blp@gnu.org>
12206
12207         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
12208
12209 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12210
12211         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
12212         given the changes below.
12213         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
12214         even on hosts that have padding bits beyond the supported 64.
12215
12216 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12217
12218         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
12219         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
12220         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
12221         depends on it.
12222         (xstrtol_error): Remove.
12223         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
12224         but with a different signature.
12225         (ATTRIBUTE_NORETURN, __attribute__): New macros.
12226         * lib/xstrtol-error.c: Include exitfail.h.
12227         (xstrtol_fatal): New function, with a different signature from the
12228         old xstrtol_error, so that the caller need not worry about passing
12229         in an exit status, or about storage management of the option argument.
12230         (xstrtol_error): Now a static function.  Redo signature to
12231         implement xstrtol_fatal.  Output the correct number of hyphens in
12232         front of the option so that the caller need not worry about
12233         storage management.
12234         (N_): New macro.
12235         (_): Remove; not used now.
12236         * modules/xstrtol: Depend on getopt.
12237         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
12238         of old STRTOL_FATAL_ERROR macro.
12239         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
12240         of test program.
12241         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
12242         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
12243
12244 2007-08-08  Eric Blake  <ebb9@byu.net>
12245
12246         * lib/xstrtol-error.c: Add missing include.
12247
12248         Move xstrtol messages into gnulib domain, when --pobase is used.
12249         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
12250         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
12251         * modules/xstrtol (Files): Distribute new file.
12252         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
12253         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
12254         * tests/test-xstrtol.c: ...into new file.
12255         * tests/test-xstrtoul.c: Also test xstrtoul.
12256         * tests/test-xstrtoimax.c: Also test xstrtoimax.
12257         * tests/test-xstrtoumax.c: Also test xstrtoumax.
12258         * tests/test-xstrtol.sh: Drive the tests.
12259         * tests/test-xstrtoimax.sh: Likewise.
12260         * tests/test-xstrtoumax.sh: Likewise.
12261         * modules/xstrtol-tests: New module.
12262         * modules/xstrtoimax-tests: Likewise.
12263         * modules/xstrtoumax-tests: Likewise.
12264
12265 2007-08-08  Jim Meyering  <jim@meyering.net>
12266
12267         New function: mfile_name_concat.
12268         * lib/filenamecat.c (mfile_name_concat): New function, just like
12269         file_name_concat, but return NULL upon failure rather than exiting
12270         with a diagnostic.
12271         * lib/filenamecat.h: Declare it.
12272
12273 2007-08-07  Bruno Haible  <bruno@clisp.org>
12274
12275         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
12276         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
12277         warning from gcc.
12278         Reported by Eric Blake.
12279
12280 2007-08-07  Simon Josefsson  <simon@josefsson.org>
12281
12282         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
12283         * modules/crypto/arcfour (License): Likewise.
12284         * modules/crypto/des-tests (License): Likewise.
12285         * modules/crypto/gc-arctwo-tests (License): Likewise.
12286         * modules/crypto/gc-des-tests (License): Likewise.
12287         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
12288         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
12289         * modules/crypto/gc-md2-tests (License): Likewise.
12290         * modules/crypto/gc-md4-tests (License): Likewise.
12291         * modules/crypto/gc-md5-tests (License): Likewise.
12292         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
12293         * modules/crypto/gc-rijndael-tests (License): Likewise.
12294         * modules/crypto/gc-sha1-tests (License): Likewise.
12295         * modules/crypto/gc-tests (License): Likewise.
12296         * modules/crypto/hmac-md5 (License): Likewise.
12297         * modules/crypto/hmac-sha1 (License): Likewise.
12298         * modules/crypto/md2-tests (License): Likewise.
12299         * modules/crypto/md4-tests (License): Likewise.
12300         * modules/crypto/md5 (License): Likewise.
12301         * modules/crypto/rijndael (License): Likewise.
12302         * modules/crypto/sha1 (License): Likewise.
12303         * modules/memxor (License): Likewise.
12304
12305 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
12306         and Bruno Haible  <bruno@clisp.org>
12307
12308         * NEWS: Describe interface changes to human, xstrtol.
12309         * lib/human.h: Include <xstrtol.h>.
12310         (human_options): Return enum strtol_error, not int.  Remove
12311         bool arg; take int * instead.
12312         * lib/human.c: Don't include "gettext.h".
12313         (_): Remove; no longer used.
12314         Don't include <xstrtol.h>, since human.h does it.
12315         (human_options): Adjust to abovementioned interface changes.
12316         Do not report error to stderr; that's now the caller's
12317         responsibility.
12318         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
12319         interface change.
12320         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
12321         Str, Argument_type_string.  All uses changed.  Put " argument"
12322         in diagnostics to make them clearer.  Change wording of suffix
12323         message for clarity.
12324         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
12325         Argument_type_string.
12326         (STRTOL_FATAL_WARN): Remove; no longer used.
12327         * modules/human (Depends-on): Remove gettext-h.
12328
12329 2007-08-06  Simon Josefsson  <simon@josefsson.org>
12330
12331         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
12332
12333 2007-07-31  Bruno Haible  <bruno@clisp.org>
12334
12335         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
12336         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
12337         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
12338
12339 2007-07-31  Bruno Haible  <bruno@clisp.org>
12340
12341         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
12342         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
12343
12344 2007-07-30  Bruno Haible  <bruno@clisp.org>
12345
12346         * modules/base64 (License): Use the synonymous term "LGPLv2+".
12347         * modules/c-ctype (License): Likewise.
12348         * modules/c-strcase (License): Likewise.
12349         * modules/check-version (License): Likewise.
12350         * modules/iconv (License): Likewise.
12351         * modules/iconv_open (License): Likewise.
12352         * modules/read-file (License): Likewise.
12353         * modules/striconv (License): Likewise.
12354         * modules/strverscmp (License): Likewise.
12355         * modules/vasprintf (License): Likewise.
12356         * modules/crypto/des (License): Likewise.
12357         * modules/crypto/gc (License): Likewise.
12358         * modules/crypto/gc-arcfour (License): Likewise.
12359         * modules/crypto/gc-arctwo (License): Likewise.
12360         * modules/crypto/gc-des (License): Likewise.
12361         * modules/crypto/gc-hmac-md5 (License): Likewise.
12362         * modules/crypto/gc-hmac-sha1 (License): Likewise.
12363         * modules/crypto/gc-md2 (License): Likewise.
12364         * modules/crypto/gc-md4 (License): Likewise.
12365         * modules/crypto/gc-md5 (License): Likewise.
12366         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
12367         * modules/crypto/gc-random (License): Likewise.
12368         * modules/crypto/gc-rijndael (License): Likewise.
12369         * modules/crypto/gc-sha1 (License): Likewise.
12370         * modules/crypto/md2 (License): Likewise.
12371         * modules/crypto/md4 (License): Likewise.
12372
12373 2007-07-30  Jim Meyering  <jim@meyering.net>
12374
12375         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
12376         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
12377         it has valid stat data.  This bug would cause du not to count the
12378         sizes of inaccessible directories.
12379         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
12380         in <http://bugzilla.redhat.com/250077>.
12381
12382 2007-07-25  Peter O'Gorman  <peter@pogma.com>
12383             Bruno Haible  <bruno@clisp.org>
12384
12385         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
12386         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
12387         #include_next, gives a diagnostic about it, but reports no error in
12388         the exit code.
12389         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
12390
12391 2007-07-24  Ben Pfaff  <blp@gnu.org>
12392
12393         Improve name: "count-one-bits" is better than "popcount".
12394         * MODULES.html.sh: Update name.
12395         * lib/popcount.h: Renamed lib/count-one-bits.h.
12396         (popcount): Renamed count_one_bits.
12397         (popcountl): Renamed count_one_bits_l.
12398         (popcountll): Renamed count_one_bits_ll.
12399         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
12400         * modules/popcount: Renamed module/count-one-bits.
12401         * modules/popcount-tests: Renamed module/count-one-bits-tests.
12402         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
12403
12404 2007-07-23  Ben Pfaff  <blp@gnu.org>
12405
12406         * lib/popcount.h (popcount32): Reduce size of constants, to allow
12407         better code generation, and add U to large constants to avoid
12408         warnings, in non-GCC case.
12409         Suggested by Bruno Haible.
12410
12411 2007-07-23  Ben Pfaff  <blp@gnu.org>
12412
12413         * lib/popcount.h: Use verify_true instead of if...abort.
12414         * modules/popcount: Depend on verify module.
12415         Suggested by Jim Meyering.
12416
12417 2007-07-23  Bruno Haible  <bruno@clisp.org>
12418
12419         * gnulib-tool (func_import): Create a .cvsignore file also when the
12420         directory is not yet in CVS but the toplevel directory is. When
12421         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
12422         Reported by Karl Berry.
12423
12424 2007-07-22  Ben Pfaff  <blp@gnu.org>
12425
12426         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
12427         case.
12428         Suggested by Eric Blake.
12429
12430 2007-07-22  Ben Pfaff  <blp@gnu.org>
12431
12432         New module: popcount.
12433         * MODULES.html.sh: Add popcount.
12434         * modules/popcount: New file.
12435         * modules/popcount-tests: New file.
12436         * tests/test-popcount.c: New file.
12437         * lib/popcount.h: New file.
12438         * m4/popcount.m4: New file.
12439
12440 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12441
12442         * build-aux/announce-gen: Update to GPLv3.
12443
12444         * build-aux/config.guess: Update from config.
12445
12446 2007-07-21  Bruno Haible  <bruno@clisp.org>
12447
12448         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
12449         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
12450
12451 2007-07-20  Jim Meyering  <jim@meyering.net>
12452
12453         * check-module: Diagnose a self-dependency.
12454
12455 2007-07-19  Bruno Haible  <bruno@clisp.org>
12456
12457         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
12458         empty.
12459         Reported by Eric Blake.
12460
12461 2007-07-18  Bruno Haible  <bruno@clisp.org>
12462
12463         * gnulib-tool: New options --po-base, --po-domain.
12464         (func_usage): Document them.
12465         (pobase, po_domain): New variables.
12466         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
12467         DEFAULT_TEXT_DOMAIN.
12468         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
12469         (func_import): Consider pobase and po_domain. Create a po/ directory.
12470         (func_create_testdir): Set pobase and po_domain to empty.
12471         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
12472         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
12473
12474 2007-07-18  Bruno Haible  <bruno@clisp.org>
12475
12476         * gnulib-tool (func_get_automake_snippet): Synthesize also an
12477         EXTRA_DIST augmentation for files in build-aux/.
12478
12479 2007-07-16  Bruno Haible  <bruno@clisp.org>
12480
12481         * modules/lseek (License): Use the synonymous term "LGPLv2+".
12482         * modules/getdelim (License): Likewise.
12483
12484 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12485
12486         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
12487         * modules/d-type (License): Likewise.
12488         * modules/extensions (License): Likewise.
12489         * modules/fnmatch (License): Likewise.
12490         * modules/fseeko (License): Likewise.
12491         * modules/getaddrinfo (License): Likewise.
12492         * modules/getline (License): Likewise.
12493         * modules/getlogin_r (License): Likewise.
12494         * modules/getpass (License): Likewise.
12495         * modules/gettimeofday (License): Likewise.
12496         * modules/glob (License): Likewise.
12497         * modules/inet_ntop (License): Likewise.
12498         * modules/malloc (License): Likewise.
12499         * modules/malloca (License): Likewise.
12500         * modules/memmem (License): Likewise.
12501         * modules/mempcpy (License): Likewise.
12502         * modules/memset (License): Likewise.
12503         * modules/minmax (License): Likewise.
12504         * modules/mktime (License): Likewise.
12505         * modules/netinet_in (License): Likewise.
12506         * modules/pathmax (License): Likewise.
12507         * modules/poll (License): Likewise.
12508         * modules/regex (License): Likewise.
12509         * modules/snprintf (License): Likewise.
12510         * modules/stdbool (License): Likewise.
12511         * modules/stdint (License): Likewise.
12512         * modules/stdio (License): Likewise.
12513         * modules/strcase (License): Likewise.
12514         * modules/strcasestr (License): Likewise.
12515         * modules/strdup (License): Likewise.
12516         * modules/string (License): Likewise.
12517         * modules/strndup (License): Likewise.
12518         * modules/strnlen (License): Likewise.
12519         * modules/strpbrk (License): Likewise.
12520         * modules/strptime (License): Likewise.
12521         * modules/strsep (License): Likewise.
12522         * modules/sys_select (License): Likewise.
12523         * modules/sys_socket (License): Likewise.
12524         * modules/sys_stat (License): Likewise.
12525         * modules/sys_time (License): Likewise.
12526         * modules/time (License): Likewise.
12527         * modules/time_r (License): Likewise.
12528         * modules/timegm (License): Likewise.
12529         * modules/unistd (License): Likewise.
12530         * modules/vsnprintf (License): Likewise.
12531         * modules/wctype (License): Likewise.
12532
12533 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12534
12535         * modules/argz (License): LGPLv2+.
12536
12537 2007-07-15  Karl Berry  <karl@gnu.org>
12538
12539         * doc/gnulib.texi: revise node structure per new fdl.texi.
12540
12541 2007-07-14  Bruno Haible  <bruno@clisp.org>
12542
12543         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
12544         the output file.
12545         * lib/uniname/uninames.h: Regenerated.
12546
12547 2007-07-14  Karl Berry  <karl@gnu.org>
12548
12549         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
12550         omitting sectioning and index commands.
12551
12552 2007-07-13  Bruno Haible  <bruno@clisp.org>
12553
12554         New gnulib-tool option --more-symlinks.
12555         * gnulib-tool (func_usage): Document --more-symlinks.
12556         (do_copyrights): New variable.
12557         Recognize option --more-symlinks.
12558         (func_import): Don't add a copyright notice transform to
12559         sed_transform_lib_file if do_copyrights is empty.
12560
12561 2007-07-13  Bruno Haible  <bruno@clisp.org>
12562
12563         * lib/vasnprintf.c (decimal_point_char): Define also if
12564         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
12565         && !NEED_PRINTF_DIRECTIVE_A.
12566         Reported by Clemens Koller <clemens.koller@anagramm.de> via
12567         Gary V. Vaughan <gary@gnu.org>.
12568
12569 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12570
12571         * lib/inttypes_.h: Undo previous change, since it was fixed
12572         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
12573
12574 2007-07-13  Bruno Haible  <bruno@clisp.org>
12575
12576         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
12577         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
12578
12579 2007-07-13  Jim Meyering  <jim@meyering.net>
12580
12581         df: Don't fail for Tru64's "file-on-file mount".
12582         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
12583         so we fall through and use statfs instead.  Details here:
12584         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
12585         Reported by Albert Chin.
12586
12587 2007-07-13  Bruno Haible  <bruno@clisp.org>
12588
12589         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
12590         * modules/configmake (License): Likewise.
12591         * modules/gettext (License): Likewise.
12592         * modules/gettext-h (License): Likewise.
12593         * modules/include_next (License): Likewise.
12594         * modules/link-warning (License): Likewise.
12595         * modules/localcharset (License): Likewise.
12596         * modules/localename (License): Likewise.
12597         * modules/lock (License): Likewise.
12598         * modules/relocatable-lib-lgpl (License): Likewise.
12599         * modules/size_max (License): Likewise.
12600         * modules/vasnprintf (License): Likewise.
12601         * modules/wchar (License): Likewise.
12602         * modules/xsize (License): Likewise.
12603
12604 2007-07-13  Bruno Haible  <bruno@clisp.org>
12605
12606         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
12607         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
12608
12609 2007-07-12  Bruno Haible  <bruno@clisp.org>
12610
12611         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
12612         in the modules files.
12613
12614 2007-07-11  Karl Berry  <karl@gnu.org>
12615
12616         * MODULES.html.sh (func_module): use
12617          sed -e '\|^'"${includefile}"'$|d'
12618          instead of /.../d, to avoid errors on $includefile's containing /.
12619
12620 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
12621
12622         * gnulib-tool (func_import): Avoid duplication of --avoid
12623         statements
12624         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
12625         names to `_' in variable names.
12626
12627 2007-07-10  Eric Blake  <ebb9@byu.net>
12628
12629         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
12630         * NEWS: Document this change.
12631
12632 2007-07-08  Bruno Haible  <bruno@clisp.org>
12633
12634         Update to Unicode 5.0.
12635         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
12636         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
12637         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
12638         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
12639         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
12640         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
12641         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
12642         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
12643         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
12644         U+10A3F, U+1D242..U+1D244.
12645         (nonspacing_table_ind): Update.
12646         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
12647         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
12648
12649 2007-07-08  Bruno Haible  <bruno@clisp.org>
12650
12651         Update to Unicode 5.0.
12652         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
12653         code transform. Extend the name index field of unicode_name_to_code and
12654         unicode_code_to_name from 16 to 24 bits.
12655         * lib/uniname/uniname.c (unicode_character_name,
12656         unicode_name_character): Add the range 0x12xxx to the code transform.
12657         * lib/uniname/uninames.h: Regenerated.
12658         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
12659
12660 2007-07-07  Bruno Haible  <bruno@clisp.org>
12661
12662         * modules/wcwidth-tests: New file.
12663         * tests/test-wcwidth.c: New file.
12664
12665         Work around MacOS X wcwidth() bug.
12666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
12667         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
12668         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
12669         original wcwidth in non-UTF-8 locales.
12670         * modules/wcwidth (Depends-on): Add localcharset, streq,
12671         uniwidth/width.
12672         * doc/functions/wcwidth.texi: Update.
12673
12674 2007-07-07  Bruno Haible  <bruno@clisp.org>
12675
12676         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
12677         (wcwidth): New declaration.
12678         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
12679         macros.
12680         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
12681         here. Prepare for creating <wchar.h> unconditionally.
12682         * modules/wchar (Depends-on): Add link-warning.
12683         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
12684         REPLACE_WCWIDTH, and GL_LINK_WARNING.
12685         * lib/wcwidth.h: Remove file.
12686         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
12687         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
12688         * modules/wcwidth (Files): Remove lib/wcwidth.h.
12689         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
12690         (Include): Replace wcwidth.h with <wchar.h>.
12691         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
12692         * lib/mbchar.h: Don't include wcwidth.h.
12693         * lib/mbswidth.c: Likewise.
12694         * NEWS: Mention the change.
12695
12696 2007-07-07  Bruno Haible  <bruno@clisp.org>
12697
12698         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
12699         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
12700         definition with an external declaration.
12701         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
12702         defined as a function. Remove AC_C_INLINE requirement.
12703         * modules/wcwidth (Files): Add lib/wcwidth.c.
12704         (Makefile.am): Remove redundant statement.
12705
12706 2007-07-07  Bruno Haible  <bruno@clisp.org>
12707
12708         * MODULES.html.sh (Unicode string functions): Add the new modules.
12709
12710         * tests/uniwidth/test-u32-strwidth.c: New file.
12711         * modules/uniwidth/u32-strwidth-tests: New file.
12712
12713         * lib/uniwidth/u32-strwidth.c: New file.
12714         * modules/uniwidth/u32-strwidth: New file.
12715
12716         * tests/uniwidth/test-u16-strwidth.c: New file.
12717         * modules/uniwidth/u16-strwidth-tests: New file.
12718
12719         * lib/uniwidth/u16-strwidth.c: New file.
12720         * modules/uniwidth/u16-strwidth: New file.
12721
12722         * tests/uniwidth/test-u8-strwidth.c: New file.
12723         * modules/uniwidth/u8-strwidth-tests: New file.
12724
12725         * lib/uniwidth/u8-strwidth.c: New file.
12726         * modules/uniwidth/u8-strwidth: New file.
12727
12728         * tests/uniwidth/test-u32-width.c: New file.
12729         * modules/uniwidth/u32-width-tests: New file.
12730
12731         * lib/uniwidth/u32-width.c: New file.
12732         * modules/uniwidth/u32-width: New file.
12733
12734         * tests/uniwidth/test-u16-width.c: New file.
12735         * modules/uniwidth/u16-width-tests: New file.
12736
12737         * lib/uniwidth/u16-width.c: New file.
12738         * modules/uniwidth/u16-width: New file.
12739
12740         * tests/uniwidth/test-u8-width.c: New file.
12741         * modules/uniwidth/u8-width-tests: New file.
12742
12743         * lib/uniwidth/u8-width.c: New file.
12744         * modules/uniwidth/u8-width: New file.
12745
12746         * tests/uniwidth/test-uc_width.c: New file.
12747         * modules/uniwidth/width-tests: New file.
12748
12749         * lib/uniwidth/width.c: New file, from GNU libiconv.
12750         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
12751         * modules/uniwidth/width: New file.
12752
12753         * lib/uniwidth.h: New file, from GNU libiconv.
12754         * modules/uniwidth/base: New file.
12755
12756 2007-07-07  Bruno Haible  <bruno@clisp.org>
12757
12758         * lib/uniname.h: New file, from GNU gettext.
12759         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
12760         * lib/uniname/uninames.h: New file, from GNU gettext.
12761         * lib/uniname/uniname.c: New file, from GNU gettext.
12762         * tests/uniname/test-uninames.sh: New file.
12763         * tests/uniname/test-uninames.c: New file, from GNU gettext.
12764         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
12765         * modules/uniname/base: New file.
12766         * modules/uniname/uniname: New file.
12767         * modules/uniname/uniname-tests: New file.
12768         * MODULES.html.sh (Unicode string functions): Add the new modules.
12769
12770 2007-07-06  Bruno Haible  <bruno@clisp.org>
12771
12772         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
12773
12774 2007-07-06  Bruno Haible  <bruno@clisp.org>
12775
12776         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
12777         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
12778         includes <cygwin/sys_time.h> which includes <sys/select.h> which
12779         include <sys/time.h>.
12780         Reported by Eric Blake.
12781
12782 2007-07-06  Eric Blake  <ebb9@byu.net>
12783
12784         Fix testing canonicalize on cygwin.
12785         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12786         Revert patch from 2007-06-19.
12787         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
12788         canonicalize module is also in use.
12789         * tests/test-canonicalize.c: New file.
12790         * tests/test-canonicalize.sh: Likewise.
12791         * modules/canonicalize-tests: Likewise.
12792
12793 2007-07-06  Jim Meyering  <jim@meyering.net>
12794
12795         * lib/getugroups.c (getugroups): Detect getgrent failure.
12796         Adjust comment to reflect reality: this function may return -1.
12797
12798 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12799
12800         * build-aux/bootstrap (TP_URL,get_translations): Update to use
12801         the new TP address.
12802         (usage): Fix typo
12803         (gnulib_mk): New variable.
12804
12805 2007-07-05  Jim Meyering  <jim@meyering.net>
12806
12807         Don't let endgrent clobber errno, no matter how improbable.
12808         * lib/getugroups.c (getugroups): Save and restore errno around
12809         endgrent call.
12810
12811         Close the group DB even when failing with 2^31 or more members.
12812         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
12813
12814 2007-07-04  Jim Meyering  <jim@meyering.net>
12815
12816         * lib/getugroups.h: New file.
12817         * lib/getugroups.c: Include "getugroups.h".
12818         Remove uses of "register" keyword.
12819         Move local variable, "cp", down into scope where used.
12820         Give "username" parameter the "const" attribute.
12821         * modules/getugroups (Files): Add lib/getugroups.h
12822
12823 2007-07-04  Karl Berry  <karl@gnu.org>
12824
12825         * MODULES.html.sh (func_all_modules): Complete rename of
12826         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
12827
12828 2007-07-02  Bruno Haible  <bruno@clisp.org>
12829
12830         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
12831         mode, when inttypes.h comes from gnulib.
12832         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12833
12834 2007-07-02  Simon Josefsson  <simon@josefsson.org>
12835
12836         * NEWS: Mention lgpl module name change.
12837
12838         * modules/lgpl-2.1: Renamed from lgpl.
12839
12840         * NEWS: Mention gpl module name change.
12841
12842         * modules/gpl-3.0: New file, based on gpl-2.0.
12843
12844         * modules/gpl-2.0: Renamed from gpl.
12845
12846         * modules/gpl: Fix filename, doc/gpl.texi is now found at
12847         doc/gpl-2.0.texi.
12848
12849 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12850
12851         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
12852         #define __STDC_LIMIT_MACROS temporarily while including
12853         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
12854         Problem reported by Joel E. Denny in
12855         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
12856
12857 2007-07-01  Bruno Haible  <bruno@clisp.org>
12858
12859         * lib/unistdio.h: New file.
12860         * lib/unistdio/u-asnprintf.h: New file.
12861         * lib/unistdio/u-asprintf.h: New file.
12862         * lib/unistdio/u-printf-args.c: New file.
12863         * lib/unistdio/u-printf-args.h: New file.
12864         * lib/unistdio/u-printf-parse.h: New file.
12865         * lib/unistdio/u-snprintf.h: New file.
12866         * lib/unistdio/u-sprintf.h: New file.
12867         * lib/unistdio/u-vasprintf.h: New file.
12868         * lib/unistdio/u-vsnprintf.h: New file.
12869         * lib/unistdio/u-vsprintf.h: New file.
12870         * lib/unistdio/ulc-asnprintf.c: New file.
12871         * lib/unistdio/ulc-asprintf.c: New file.
12872         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
12873         * lib/unistdio/ulc-printf-parse.c: New file.
12874         * lib/unistdio/ulc-snprintf.c: New file.
12875         * lib/unistdio/ulc-sprintf.c: New file.
12876         * lib/unistdio/ulc-vasnprintf.c: New file.
12877         * lib/unistdio/ulc-vasprintf.c: New file.
12878         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
12879         * lib/unistdio/ulc-vsnprintf.c: New file.
12880         * lib/unistdio/ulc-vsprintf.c: New file.
12881         * lib/unistdio/u8-asnprintf.c: New file.
12882         * lib/unistdio/u8-asprintf.c: New file.
12883         * lib/unistdio/u8-printf-parse.c: New file.
12884         * lib/unistdio/u8-snprintf.c: New file.
12885         * lib/unistdio/u8-sprintf.c: New file.
12886         * lib/unistdio/u8-vasnprintf.c: New file.
12887         * lib/unistdio/u8-vasprintf.c: New file.
12888         * lib/unistdio/u8-vsnprintf.c: New file.
12889         * lib/unistdio/u8-vsprintf.c: New file.
12890         * lib/unistdio/u8-u8-asnprintf.c: New file.
12891         * lib/unistdio/u8-u8-asprintf.c: New file.
12892         * lib/unistdio/u8-u8-snprintf.c: New file.
12893         * lib/unistdio/u8-u8-sprintf.c: New file.
12894         * lib/unistdio/u8-u8-vasnprintf.c: New file.
12895         * lib/unistdio/u8-u8-vasprintf.c: New file.
12896         * lib/unistdio/u8-u8-vsnprintf.c: New file.
12897         * lib/unistdio/u8-u8-vsprintf.c: New file.
12898         * lib/unistdio/u16-asnprintf.c: New file.
12899         * lib/unistdio/u16-asprintf.c: New file.
12900         * lib/unistdio/u16-printf-parse.c: New file.
12901         * lib/unistdio/u16-snprintf.c: New file.
12902         * lib/unistdio/u16-sprintf.c: New file.
12903         * lib/unistdio/u16-vasnprintf.c: New file.
12904         * lib/unistdio/u16-vasprintf.c: New file.
12905         * lib/unistdio/u16-vsnprintf.c: New file.
12906         * lib/unistdio/u16-vsprintf.c: New file.
12907         * lib/unistdio/u16-u16-asnprintf.c: New file.
12908         * lib/unistdio/u16-u16-asprintf.c: New file.
12909         * lib/unistdio/u16-u16-snprintf.c: New file.
12910         * lib/unistdio/u16-u16-sprintf.c: New file.
12911         * lib/unistdio/u16-u16-vasnprintf.c: New file.
12912         * lib/unistdio/u16-u16-vasprintf.c: New file.
12913         * lib/unistdio/u16-u16-vsnprintf.c: New file.
12914         * lib/unistdio/u16-u16-vsprintf.c: New file.
12915         * lib/unistdio/u32-asnprintf.c: New file.
12916         * lib/unistdio/u32-asprintf.c: New file.
12917         * lib/unistdio/u32-printf-parse.c: New file.
12918         * lib/unistdio/u32-snprintf.c: New file.
12919         * lib/unistdio/u32-sprintf.c: New file.
12920         * lib/unistdio/u32-vasnprintf.c: New file.
12921         * lib/unistdio/u32-vasprintf.c: New file.
12922         * lib/unistdio/u32-vsnprintf.c: New file.
12923         * lib/unistdio/u32-vsprintf.c: New file.
12924         * lib/unistdio/u32-u32-asnprintf.c: New file.
12925         * lib/unistdio/u32-u32-asprintf.c: New file.
12926         * lib/unistdio/u32-u32-snprintf.c: New file.
12927         * lib/unistdio/u32-u32-sprintf.c: New file.
12928         * lib/unistdio/u32-u32-vasnprintf.c: New file.
12929         * lib/unistdio/u32-u32-vasprintf.c: New file.
12930         * lib/unistdio/u32-u32-vsnprintf.c: New file.
12931         * lib/unistdio/u32-u32-vsprintf.c: New file.
12932         * tests/unistdio/test-ulc-asnprintf1.c: New file.
12933         * tests/unistdio/test-ulc-asnprintf1.h: New file.
12934         * tests/unistdio/test-ulc-printf1.h: New file.
12935         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
12936         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
12937         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
12938         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
12939         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
12940         * tests/unistdio/test-ulc-vasprintf1.c: New file.
12941         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
12942         * tests/unistdio/test-ulc-vsprintf1.c: New file.
12943         * tests/unistdio/test-u8-asnprintf1.c: New file.
12944         * tests/unistdio/test-u8-asnprintf1.h: New file.
12945         * tests/unistdio/test-u8-printf1.h: New file.
12946         * tests/unistdio/test-u8-vasnprintf1.c: New file.
12947         * tests/unistdio/test-u8-vasnprintf2.c: New file.
12948         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
12949         * tests/unistdio/test-u8-vasnprintf3.c: New file.
12950         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
12951         * tests/unistdio/test-u8-vasprintf1.c: New file.
12952         * tests/unistdio/test-u8-vsnprintf1.c: New file.
12953         * tests/unistdio/test-u8-vsprintf1.c: New file.
12954         * tests/unistdio/test-u16-asnprintf1.c: New file.
12955         * tests/unistdio/test-u16-asnprintf1.h: New file.
12956         * tests/unistdio/test-u16-printf1.h: New file.
12957         * tests/unistdio/test-u16-vasnprintf1.c: New file.
12958         * tests/unistdio/test-u16-vasnprintf2.c: New file.
12959         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
12960         * tests/unistdio/test-u16-vasnprintf3.c: New file.
12961         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
12962         * tests/unistdio/test-u16-vasprintf1.c: New file.
12963         * tests/unistdio/test-u16-vsnprintf1.c: New file.
12964         * tests/unistdio/test-u16-vsprintf1.c: New file.
12965         * tests/unistdio/test-u32-asnprintf1.c: New file.
12966         * tests/unistdio/test-u32-asnprintf1.h: New file.
12967         * tests/unistdio/test-u32-printf1.h: New file.
12968         * tests/unistdio/test-u32-vasnprintf1.c: New file.
12969         * tests/unistdio/test-u32-vasnprintf2.c: New file.
12970         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
12971         * tests/unistdio/test-u32-vasnprintf3.c: New file.
12972         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
12973         * tests/unistdio/test-u32-vasprintf1.c: New file.
12974         * tests/unistdio/test-u32-vsnprintf1.c: New file.
12975         * tests/unistdio/test-u32-vsprintf1.c: New file.
12976         * modules/unistdio/base: New file.
12977         * modules/unistdio/u-printf-args: New file.
12978         * modules/unistdio/ulc-asnprintf: New file.
12979         * modules/unistdio/ulc-asprintf: New file.
12980         * modules/unistdio/ulc-fprintf: New file.
12981         * modules/unistdio/ulc-printf-parse: New file.
12982         * modules/unistdio/ulc-snprintf: New file.
12983         * modules/unistdio/ulc-sprintf: New file.
12984         * modules/unistdio/ulc-vasnprintf: New file.
12985         * modules/unistdio/ulc-vasprintf: New file.
12986         * modules/unistdio/ulc-vfprintf: New file.
12987         * modules/unistdio/ulc-vsnprintf: New file.
12988         * modules/unistdio/ulc-vsprintf: New file.
12989         * modules/unistdio/u8-asnprintf: New file.
12990         * modules/unistdio/u8-asprintf: New file.
12991         * modules/unistdio/u8-printf-parse: New file.
12992         * modules/unistdio/u8-snprintf: New file.
12993         * modules/unistdio/u8-sprintf: New file.
12994         * modules/unistdio/u8-vasnprintf: New file.
12995         * modules/unistdio/u8-vasprintf: New file.
12996         * modules/unistdio/u8-vsnprintf: New file.
12997         * modules/unistdio/u8-vsprintf: New file.
12998         * modules/unistdio/u8-u8-asnprintf: New file.
12999         * modules/unistdio/u8-u8-asprintf: New file.
13000         * modules/unistdio/u8-u8-snprintf: New file.
13001         * modules/unistdio/u8-u8-sprintf: New file.
13002         * modules/unistdio/u8-u8-vasnprintf: New file.
13003         * modules/unistdio/u8-u8-vasprintf: New file.
13004         * modules/unistdio/u8-u8-vsnprintf: New file.
13005         * modules/unistdio/u8-u8-vsprintf: New file.
13006         * modules/unistdio/u16-asnprintf: New file.
13007         * modules/unistdio/u16-asprintf: New file.
13008         * modules/unistdio/u16-printf-parse: New file.
13009         * modules/unistdio/u16-snprintf: New file.
13010         * modules/unistdio/u16-sprintf: New file.
13011         * modules/unistdio/u16-vasnprintf: New file.
13012         * modules/unistdio/u16-vasprintf: New file.
13013         * modules/unistdio/u16-vsnprintf: New file.
13014         * modules/unistdio/u16-vsprintf: New file.
13015         * modules/unistdio/u16-u16-asnprintf: New file.
13016         * modules/unistdio/u16-u16-asprintf: New file.
13017         * modules/unistdio/u16-u16-snprintf: New file.
13018         * modules/unistdio/u16-u16-sprintf: New file.
13019         * modules/unistdio/u16-u16-vasnprintf: New file.
13020         * modules/unistdio/u16-u16-vasprintf: New file.
13021         * modules/unistdio/u16-u16-vsnprintf: New file.
13022         * modules/unistdio/u16-u16-vsprintf: New file.
13023         * modules/unistdio/u32-asnprintf: New file.
13024         * modules/unistdio/u32-asprintf: New file.
13025         * modules/unistdio/u32-printf-parse: New file.
13026         * modules/unistdio/u32-snprintf: New file.
13027         * modules/unistdio/u32-sprintf: New file.
13028         * modules/unistdio/u32-vasnprintf: New file.
13029         * modules/unistdio/u32-vasprintf: New file.
13030         * modules/unistdio/u32-vsnprintf: New file.
13031         * modules/unistdio/u32-vsprintf: New file.
13032         * modules/unistdio/u32-u32-asnprintf: New file.
13033         * modules/unistdio/u32-u32-asprintf: New file.
13034         * modules/unistdio/u32-u32-snprintf: New file.
13035         * modules/unistdio/u32-u32-sprintf: New file.
13036         * modules/unistdio/u32-u32-vasnprintf: New file.
13037         * modules/unistdio/u32-u32-vasprintf: New file.
13038         * modules/unistdio/u32-u32-vsnprintf: New file.
13039         * modules/unistdio/u32-u32-vsprintf: New file.
13040         * modules/unistdio/ulc-asnprintf-tests: New file.
13041         * modules/unistdio/ulc-vasnprintf-tests: New file.
13042         * modules/unistdio/ulc-vasprintf-tests: New file.
13043         * modules/unistdio/ulc-vsnprintf-tests: New file.
13044         * modules/unistdio/ulc-vsprintf-tests: New file.
13045         * modules/unistdio/u8-asnprintf-tests: New file.
13046         * modules/unistdio/u8-vasnprintf-tests: New file.
13047         * modules/unistdio/u8-vasprintf-tests: New file.
13048         * modules/unistdio/u8-vsnprintf-tests: New file.
13049         * modules/unistdio/u8-vsprintf-tests: New file.
13050         * modules/unistdio/u16-asnprintf-tests: New file.
13051         * modules/unistdio/u16-vasnprintf-tests: New file.
13052         * modules/unistdio/u16-vasprintf-tests: New file.
13053         * modules/unistdio/u16-vsnprintf-tests: New file.
13054         * modules/unistdio/u16-vsprintf-tests: New file.
13055         * modules/unistdio/u32-asnprintf-tests: New file.
13056         * modules/unistdio/u32-vasnprintf-tests: New file.
13057         * modules/unistdio/u32-vasprintf-tests: New file.
13058         * modules/unistdio/u32-vsnprintf-tests: New file.
13059         * modules/unistdio/u32-vsprintf-tests: New file.
13060         * MODULES.html.sh (Unicode string functions): Add the new modules.
13061
13062 2007-07-01  Bruno Haible  <bruno@clisp.org>
13063
13064         * lib/sprintf.c (sprintf): Limit the available length estimation,
13065         to avoid address wraparound.
13066         * lib/vsprintf.c (vsprintf): Likewise.
13067         * modules/sprintf-posix (Dependencies): Add stdint.
13068         * modules/vsprintf-posix (Dependencies): Likewise.
13069
13070 2007-07-01  Bruno Haible  <bruno@clisp.org>
13071
13072         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
13073         Windows PATH as well. Conservative double-quoting. Comments.
13074
13075 2007-07-01  Bruno Haible  <bruno@clisp.org>
13076             Eric Blake  <ebb9@byu.net>
13077             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13078
13079         * gnulib-tool (self_abspathname): Fix algorithm to cope with
13080         empty components in $PATH, denoting '.'.
13081
13082 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13083
13084         * gnulib-tool: Fix indentation.
13085         (func_create_megatestdir): Likewise.
13086         Report by Bruno Haible.
13087
13088 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13089
13090         Sync from Automake.
13091         * build-aux/gnupload: Fix shell portability issues with for loops.
13092         Report by Karl Berry.
13093
13094 2007-06-29  Simon Josefsson  <simon@josefsson.org>
13095
13096         * build-aux/maint.mk (POURL): Use translationproject.org.
13097
13098 2007-06-27  Simon Josefsson  <simon@josefsson.org>
13099             Bruno Haible  <bruno@clisp.org>
13100
13101         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
13102         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
13103         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
13104         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
13105         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
13106
13107 2007-06-27  Bruno Haible  <bruno@clisp.org>
13108
13109         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
13110         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
13111
13112 2007-06-26  Karl Berry  <karl@gnu.org>
13113
13114         * MODULES.html.sh: remove xreadlink-with-size.
13115
13116 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13117
13118         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
13119         method that I hope also handles the double-include problem noted
13120         by Bruno Haible in
13121         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
13122
13123 2007-06-23  Bruno Haible  <bruno@clisp.org>
13124
13125         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13126         Don't let the 'mostlyclean' target fail if the last subdirectory could
13127         not be removed.
13128         Reported by Karl Berry.
13129
13130 2007-06-23  Bruno Haible  <bruno@clisp.org>
13131
13132         * gnulib-tool (echo): Add a speedier workaround for ksh.
13133         * tests/test-echo.sh: Likewise.
13134
13135 2007-06-23  Bruno Haible  <bruno@clisp.org>
13136
13137         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
13138         * tests/test-echo.sh: Likewise.
13139
13140 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13141
13142         * gnulib-tool (IFS): Initialize early, so we don't set it to
13143         empty later.
13144         (self_abspathname): Rewrite algorithm to set it, reindent.
13145         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
13146         (func_create_megatestdir): Merge some sed scripts.
13147
13148 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13149
13150         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
13151         exposed by Sun Studio 11 cc on Solaris 8.
13152
13153 2007-06-22  Bruno Haible  <bruno@clisp.org>
13154
13155         * gnulib-tool (echo): Ensure the echo primitive does not interpret
13156         backslashes.
13157         * tests/test-echo.sh: New file.
13158
13159 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13160
13161         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
13162         simplify `sed_replace_build_aux' scripts, they are portable but
13163         echoing them with `echo' is not.
13164         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
13165
13166 2007-06-21  Karl Berry  <karl@gnu.org>
13167
13168         * config/srclist.txt: guess we can't handle the licenses via
13169         srclist at the moment.
13170
13171 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13172
13173         * MODULES.html.sh: Add include_next.
13174         * modules/include_next: New file.
13175
13176 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13177
13178         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
13179         INCLUDE_NEXT.
13180         (gl_CHECK_NEXT_HEADERS): New macro.
13181         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
13182         the obsolescent gl_ABSOLUTE_HEADER.
13183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
13184         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
13185         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
13186         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13187         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13188         * m4/math_h.m4 (gl_MATH_H): Likewise.
13189         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
13190         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13191         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13192         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13193         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13194         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13195         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13196         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13197         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13198         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13199         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13200         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
13201         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13202         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13203         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13204         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13205         * m4/inttypes.m4 (gl_INTTYPES_H): Define
13206         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
13207         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
13208         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
13209         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
13210         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
13211         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
13212         * lib/float_.h: Likewise.
13213         * lib/inttypes_.h: Likewise.
13214         * lib/math_.h: Likewise.
13215         * lib/search_.h: Likewise.
13216         * lib/signal_.h: Likewise.
13217         * lib/stdint_.h: Likewise.
13218         * lib/stdio_.h: Likewise.
13219         * lib/stdlib_.h: Likewise.
13220         * lib/string_.h: Likewise.
13221         * lib/sys_stat_.h: Likewise.
13222         * lib/sys_time_.h: Likewise.
13223         * lib/time_.h: Likewise.
13224         * lib/unistd_.h: Likewise.
13225         * lib/wchar_.h: Likewise.
13226         * lib/wctype_.h: Likewise.
13227         * lib/dirent_.h: Likewise.
13228         * lib/iconv_.h: Likewise.
13229         * lib/locale_.h: Likewise.
13230         * lib/netinet_in_.h: Likewise.
13231         * lib/sys_select_.h: Likewise.
13232         * lib/sys_socket_.h: Likewise.
13233         * lib/sysexits_.h: Likewise.
13234         * modules/fcntl (Depends-on): Depend on include_next, not
13235         absolute_header.
13236         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
13237         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
13238         * modules/fchdir: Likewise.
13239         * modules/float: Likewise.
13240         * modules/iconv_open: Likewise.
13241         * modules/inttypes: Likewise.
13242         * modules/locale: Likewise.
13243         * modules/math: Likewise.
13244         * modules/netinet_in: Likewise.
13245         * modules/search: Likewise.
13246         * modules/signal: Likewise.
13247         * modules/stdint: Likewise.
13248         * modules/stdio: Likewise.
13249         * modules/stdlib: Likewise.
13250         * modules/string: Likewise.
13251         * modules/sys_select: Likewise.
13252         * modules/sys_socket: Likewise.
13253         * modules/sys_stat: Likewise.
13254         * modules/sys_time: Likewise.
13255         * modules/sysexits: Likewise.
13256         * modules/time: Likewise.
13257         * modules/unistd: Likewise.
13258         * modules/wchar: Likewise.
13259         * modules/wctype: Likewise.
13260         * modules/sys_stat: Change maintainer to "all".
13261         * modules/unistd: Likewise.
13262
13263 2007-06-20  Karl Berry  <karl@gnu.org>
13264
13265         * config/srclist.txt: track www changes in license files.
13266
13267 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
13268
13269         * build-aux/bootstrap: Remove stray dot.
13270         Make sure build_aux settings are honored when linking
13271         gnulib_extra_files.
13272
13273 2007-06-19  Eric Blake  <ebb9@byu.net>
13274
13275         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13276         Allow compilation on cygwin.
13277
13278 2007-06-19  Jim Meyering  <jim@meyering.net>
13279
13280         xreadlink-with-size: Remove module.  No longer used.
13281         Ex-callers now use xreadlink or mreadlink-with-size.
13282         * modules/xreadlink-with-size: Remove module.
13283         * lib/xreadlink-with-size.c: Remove file.
13284         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
13285         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
13286         just before the function definition *is* accurate.
13287
13288         Eliminate one way canonicalize_filename_mode could exit.
13289         * lib/canonicalize.c (canonicalize_filename_mode):
13290         Use mreadlink_with_size, not xreadlink_with_size.
13291
13292 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13293
13294         Detect porting problems to FreeBSD/arm, which has time_t wider than
13295         long int.  Original problem reported for GNU diff by Xin Li in
13296         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
13297         * modules/getdate (Depends-on): Add intprops, verify.
13298         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
13299         is an integer type no wider than long int.
13300
13301 2007-06-18  Jim Meyering  <jim@meyering.net>
13302
13303         New module: mreadlink-with-size.
13304         * MODULES.html.sh: Add mreadlink-with-size.
13305         * modules/mreadlink-with-size: New module
13306         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
13307         not xreadlink-with-size.
13308         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
13309
13310 2007-06-16  Bruno Haible  <bruno@clisp.org>
13311
13312         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
13313         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
13314         Reported by Gary V. Vaughan <gary@gnu.org>.
13315
13316 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13317
13318         Revamp lchown so that it lives in unistd.h where it belongs.
13319         * lib/lchown.h: Remove.
13320         * lib/dirchownmod.c: Don't include lib/lchown.h.
13321         * lib/fchownat.c: Likewise.
13322         * lib/openat.c: Likewise.
13323         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
13324         does not follow symlinks.
13325         (EOPNOTSUPP): Define if not defined.
13326         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
13327         is defined to 0.
13328         (lchown): New decl.
13329         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
13330         Do not check for lchown decl.
13331         Set REPLACE_LCHOWN.
13332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
13333         REPLACE_LCHOWN.
13334         * modules/chown: Make it clear it follows symlinks.
13335         * modules/lchown: Make it clear it doesn't follow symlinks.
13336         (Files): Remove lib/lchown.h
13337         (Depends-on): Add unistd.
13338         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
13339         (Include): Include <unistd.h>, not "lchown.h".
13340         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
13341         REPLACE_LCHOWN.
13342
13343 2007-06-15  Jim Meyering  <jim@meyering.net>
13344
13345         Change license (GPL to LGPL) of fsusage and dependents.
13346         * modules/fsusage (License): Change to LGPL.
13347         * modules/full-read (License): Likewise.
13348         * modules/full-write (License): Likewise.
13349         * modules/safe-read (License): Likewise.
13350         * modules/safe-write (License): Likewise.
13351
13352 2007-06-14  Ben Pfaff  <blp@gnu.org>
13353
13354         Missing part of allocsa -> malloca transition.
13355         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
13356         gl_MALLOCA.
13357
13358 2007-06-12  Bruno Haible  <bruno@clisp.org>
13359
13360         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
13361         to ia64, x86_64, i386.
13362         Reported by Eric Blake.
13363
13364 2007-06-12  Bruno Haible  <bruno@clisp.org>
13365
13366         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
13367         cross-compiling to x86_64.
13368
13369 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
13370
13371         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
13372         glitch reported by Ralf Wildenhues in
13373         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
13374
13375         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
13376         Vin Shelton.
13377
13378 2007-06-11  Bruno Haible  <bruno@clisp.org>
13379
13380         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
13381         replacement string.
13382         Reported by Eric Blake.
13383
13384 2007-06-10  Bruno Haible  <bruno@clisp.org>
13385
13386         Prepare vasnprintf code for use with Unicode strings.
13387         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
13388         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
13389         TYPE_U32_STRING.
13390         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
13391         a_u32_string variants.
13392         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13393         * lib/printf-args.c: Don't include config.h and the specification
13394         header if PRINTF_FETCHARGS is already defined.
13395         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
13396         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
13397         TYPE_U16_STRING, TYPE_U32_STRING.
13398         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
13399         u16_directive, u16_directives, u32_directive, u32_directives): New
13400         types.
13401         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
13402         New declarations.
13403         * lib/printf-parse.c: Don't include config.h and the specification
13404         header if PRINTF_PARSE is already defined. Eliminate the set of
13405         parameters for WIDE_CHAR_VERSION; the user of this file must provide
13406         them now. Include c-ctype.h.
13407         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
13408         directive and CHAR_T_ONLY_ASCII.
13409         * lib/vasnprintf.c: Don't include config.h and the specification header
13410         if VASNPRINTF is already defined.
13411         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
13412         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
13413         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
13414         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
13415         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
13416         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
13417         code accordingly.
13418         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
13419         pad_ourselves also in this case, with the 'c' and 's' directives, and
13420         with a different notion of "width".
13421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
13422
13423 2007-06-10  Bruno Haible  <bruno@clisp.org>
13424
13425         * modules/unistr/u32-mbsnlen: New file.
13426         * lib/unistr/u32-mbsnlen.c: New file.
13427
13428         * modules/unistr/u16-mbsnlen: New file.
13429         * lib/unistr/u16-mbsnlen.c: New file.
13430
13431         * modules/unistr/u8-mbsnlen: New file.
13432         * lib/unistr/u8-mbsnlen.c: New file.
13433
13434         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
13435         declarations.
13436
13437 2007-06-10  Bruno Haible  <bruno@clisp.org>
13438
13439         * lib/string_.h (mbsnlen): New declaration.
13440         * lib/mbsnlen.c: New file.
13441         * m4/mbsnlen.m4: New file.
13442         * modules/mbsnlen: New file.
13443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
13444         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
13445         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
13446
13447 2007-06-10  Bruno Haible  <bruno@clisp.org>
13448
13449         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
13450
13451 2007-06-10  Bruno Haible  <bruno@clisp.org>
13452
13453         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
13454         * lib/mbuiter.h: Likewise.
13455
13456 2007-06-10  Bruno Haible  <bruno@clisp.org>
13457
13458         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
13459         declaration.
13460
13461 2007-06-10  Karl Berry  <karl@gnu.org>
13462
13463         * config/srclist.txt: remove gettext entries, Bruno prefers
13464         to update individually.
13465
13466 2007-06-10  Bruno Haible  <bruno@clisp.org>
13467
13468         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
13469         'maxlen'. Ensure only length + width bytes are allocated, not
13470         length + 1 + width.
13471
13472 2007-06-09  Bruno Haible  <bruno@clisp.org>
13473
13474         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
13475         (CHAR_T): Remove macro.
13476         (VASNPRINTF): Update.
13477
13478 2007-06-09  Bruno Haible  <bruno@clisp.org>
13479
13480         * MODULES.html.sh (Unicode string functions): Add the new modules.
13481
13482         * modules/uniconv/u32-conv-to-enc: New file.
13483         * lib/uniconv/u32-conv-to-enc.c: New file.
13484         * modules/uniconv/u32-conv-to-enc-tests: New file.
13485         * tests/uniconv/test-u32-conv-to-enc.c: New file.
13486
13487         * modules/uniconv/u16-conv-to-enc: New file.
13488         * lib/uniconv/u16-conv-to-enc.c: New file.
13489         * lib/uniconv/u-conv-to-enc.h: New file.
13490         * modules/uniconv/u16-conv-to-enc-tests: New file.
13491         * tests/uniconv/test-u16-conv-to-enc.c: New file.
13492
13493         * modules/uniconv/u8-conv-to-enc: New file.
13494         * lib/uniconv/u8-conv-to-enc.c: New file.
13495         * modules/uniconv/u8-conv-to-enc-tests: New file.
13496         * tests/uniconv/test-u8-conv-to-enc.c: New file.
13497
13498         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13499         u32_conv_to_encoding): New declarations.
13500
13501 2007-06-09  Bruno Haible  <bruno@clisp.org>
13502
13503         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
13504
13505 2007-06-09  Bruno Haible  <bruno@clisp.org>
13506
13507         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
13508         * modules/malloca: Renamed from modules/allocsa, updated.
13509         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
13510         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
13511         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
13512         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
13513         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
13514         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
13515         * modules/xmalloca: Renamed from modules/xallocsa, updated.
13516         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
13517         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
13518         * modules/c-strcasestr (Depends-on): Update.
13519         * lib/c-strcasestr.c: Update.
13520         * modules/c-strstr (Depends-on): Update.
13521         * lib/c-strstr.c: Update.
13522         * modules/canonicalize-lgpl (Depends-on): Update.
13523         * lib/canonicalize-lgpl.c: Update.
13524         * modules/clean-temp (Depends-on): Update.
13525         * lib/clean-temp.c: Update.
13526         * modules/csharpcomp (Depends-on): Update.
13527         * lib/csharpcomp.c: Update.
13528         * modules/csharpexec (Depends-on): Update.
13529         * lib/csharpexec.c: Update.
13530         * modules/javacomp (Depends-on): Update.
13531         * lib/javacomp.c: Update.
13532         * modules/javaexec (Depends-on): Update.
13533         * lib/javaexec.c: Update.
13534         * modules/mbscasestr (Depends-on): Update.
13535         * lib/mbscasestr.c: Update.
13536         * modules/mbsstr (Depends-on): Update.
13537         * lib/mbsstr.c: Update.
13538         * modules/setenv (Depends-on): Update.
13539         * lib/setenv.c: Update.
13540         * modules/strcasestr (Depends-on): Update.
13541         * lib/strcasestr.c: Update.
13542         * modules/striconveha (Depends-on): Update.
13543         * lib/striconveha.c: Update.
13544         * modules/relocatable-prog-wrapper (Files): Update.
13545         * lib/relocwrapper.c: Update.
13546         * build-aux/install-reloc: Update.
13547         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
13548
13549 2007-06-08  Bruno Haible  <bruno@clisp.org>
13550
13551         Port to uClibc.
13552         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
13553         * lib/fpurge.c (fpurge): Likewise.
13554         * lib/freading.c (freading): Likewise.
13555         * lib/fseeko.c (rpl_fseeko): Likewise.
13556         * lib/fseterr.c (fseterr): Likewise.
13557         * lib/fwriting.c (fwriting): Likewise.
13558         * tests/test-fflush.c (main): Avoid a failure on uClibc.
13559
13560 2007-06-08  Bruno Haible  <bruno@clisp.org>
13561
13562         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
13563         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
13564         * modules/gettext (Files): Add m4/intlmacosx.m4.
13565
13566 2007-06-07  Bruno Haible  <bruno@clisp.org>
13567
13568         * modules/localename-tests: New file.
13569         * tests/test-localename.c: New file.
13570
13571         New module 'localename'.
13572         * lib/localename.h: New file.
13573         * lib/localename.c: New file, from GNU gettext.
13574         * m4/localename.m4: New file.
13575         * modules/localename: New file.
13576
13577 2007-06-07  Bruno Haible  <bruno@clisp.org>
13578
13579         Work around the lack of <wchar.h> on some builds of uClibc.
13580         * doc/headers/wchar.texi: Update.
13581         * lib/wchar_.h: Include <wchar.h> only if it exists.
13582         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
13583         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
13584         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
13585         doesn't exist.
13586         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
13587         * modules/mbfile (Depends-on): Add wchar.
13588         * modules/mbiter (Depends-on): Likewise.
13589         * modules/mbuiter (Depends-on): Likewise.
13590         Reported by Simon Josefsson.
13591
13592 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13593
13594         Work around problem reported by Steven M. Schweda in
13595         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
13596         Tru64 5.1B with the Compaq compiler environment installed declares
13597         an 'isblank' function but does not define it in the C library.
13598         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
13599         * lib/regex_internal.h (isblank): Likewise.
13600         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
13601         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13602
13603 2007-06-05  Bruno Haible  <bruno@clisp.org>
13604
13605         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
13606         ia64.
13607         * modules/printf-safe: New file.
13608         * modules/fprintf-posix (Depends-on): Add printf-safe.
13609         * modules/printf-posix (Depends-on): Likewise.
13610         * modules/snprintf-posix (Depends-on): Likewise.
13611         * modules/sprintf-posix (Depends-on): Likewise.
13612         * modules/vasnprintf-posix (Depends-on): Likewise.
13613         * modules/vasprintf-posix (Depends-on): Likewise.
13614         * modules/vfprintf-posix (Depends-on): Likewise.
13615         * modules/vprintf-posix (Depends-on): Likewise.
13616         * modules/vsnprintf-posix (Depends-on): Likewise.
13617         * modules/vsprintf-posix (Depends-on): Likewise.
13618         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13619         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
13620         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
13621         "no" on i386, x86_64, ia64.
13622         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
13623         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13624         on i386, x86_64, ia64.
13625         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
13626         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13627         on i386, x86_64, ia64.
13628         * tests/test-vasnprintf-posix.c: Include float.h.
13629         (LDBL80_WORDS): New macro.
13630         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13631         on i386, x86_64, ia64.
13632         * tests/test-vasprintf-posix.c: Include float.h.
13633         (LDBL80_WORDS): New macro.
13634         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
13635         on i386, x86_64, ia64.
13636         * tests/test-snprintf-posix.c: Include float.h.
13637         * tests/test-sprintf-posix.c: Likewise.
13638         * tests/test-vsnprintf-posix.c: Likewise.
13639         * tests/test-vsprintf-posix.c: Likewise.
13640
13641 2007-06-05  Bruno Haible  <bruno@clisp.org>
13642
13643         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
13644         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
13645         non-IEEE numbers on i386, x86_64, ia64.
13646         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
13647         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
13648         * tests/test-isnanl.h: Include float.h.
13649         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
13650
13651 2007-06-05  Bruno Haible  <bruno@clisp.org>
13652
13653         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
13654         also the %a / %A. Handle the %a / %A code before this extra handling.
13655
13656 2007-06-05  Bruno Haible  <bruno@clisp.org>
13657
13658         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
13659         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
13660
13661 2007-06-05  Bruno Haible  <bruno@clisp.org>
13662
13663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
13664         typo in variable name.
13665
13666 2007-06-05  Eric Blake  <ebb9@byu.net>
13667
13668         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
13669         Reported by Simon Josefsson.
13670
13671 2007-06-04  Bruno Haible  <bruno@clisp.org>
13672
13673         Avoid test failures on some PowerPC platforms.
13674         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
13675         Define differently for PowerPC.
13676         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
13677         Reported by Gary V. Vaughan <gary@gnu.org>.
13678
13679 2007-06-02  Bruno Haible  <bruno@clisp.org>
13680
13681         Fix test-stdint failure on FreeBSD/ia64.
13682         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
13683         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
13684         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
13685         * doc/headers/stdint.texi: Update.
13686
13687 2007-06-01  Bruno Haible  <bruno@clisp.org>
13688
13689         * tests/test-binary-io.c (main): Pass a third argument to open().
13690         Reported by Gary V. Vaughan <gary@gnu.org>.
13691
13692 2007-06-01  Bruno Haible  <bruno@clisp.org>
13693
13694         * doc/functions/frexpl.texi: Update for mingw.
13695
13696 2007-06-01  Bruno Haible  <bruno@clisp.org>
13697
13698         * tests/test-lseek.c (main): Disable test of errno for invalid third
13699         argument.
13700         * doc/functions/lseek.texi: Update.
13701         Reported by Gary V. Vaughan <gary@gnu.org>.
13702
13703 2007-05-28  Bruno Haible  <bruno@clisp.org>
13704
13705         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
13706
13707 2007-05-31  Eric Blake  <ebb9@byu.net>
13708
13709         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
13710         cross compiling.
13711
13712 2007-05-30  Eric Blake  <ebb9@byu.net>
13713         and Bruno Haible  <bruno@clisp.org>
13714
13715         Work around mingw test failures exposed by m4-1.4.9b.
13716         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
13717         * tests/test-unistd.c: Disable uid_t and git_t tests for the
13718         moment.
13719
13720 2007-05-30  Bruno Haible  <bruno@clisp.org>
13721
13722         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
13723         assuming that they are closed. Needed on HP-UX 11.
13724
13725 2007-05-29  Bruno Haible  <bruno@clisp.org>
13726
13727         Fix a problem with #include_next.
13728         * lib/dirent_.h: Split the double-inclusion guard.
13729         * lib/fcntl_.h: Likewise.
13730         * lib/float_.h: Likewise.
13731         * lib/iconv_.h: Likewise.
13732         * lib/inttypes_.h: Likewise.
13733         * lib/locale_.h: Likewise.
13734         * lib/math_.h: Likewise.
13735         * lib/netinet_in_.h: Likewise.
13736         * lib/search_.h: Likewise.
13737         * lib/signal_.h: Likewise.
13738         * lib/stdint_.h: Likewise.
13739         * lib/stdio_.h: Likewise.
13740         * lib/stdlib_.h: Likewise.
13741         * lib/string_.h: Likewise.
13742         * lib/sys_select_.h: Likewise.
13743         * lib/sys_socket_.h: Likewise.
13744         * lib/sys_stat_.h: Likewise.
13745         * lib/sys_time_.h: Likewise.
13746         * lib/sysexits_.h: Likewise.
13747         * lib/time_.h: Likewise.
13748         * lib/unistd_.h: Likewise.
13749         * lib/wchar_.h: Likewise.
13750         * lib/wctype_.h: Likewise.
13751
13752 2007-05-29  Bruno Haible  <bruno@clisp.org>
13753
13754         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
13755         for the moment.
13756
13757 2007-05-29  Bruno Haible  <bruno@clisp.org>
13758
13759         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
13760         invocation.
13761         Reported by Eric Blake.
13762
13763 2007-05-29  Bruno Haible  <bruno@clisp.org>
13764
13765         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
13766         compiling case.
13767
13768 2007-05-29  Eric Blake  <ebb9@byu.net>
13769             Bruno Haible  <bruno@clisp.org>
13770
13771         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
13772         cross compiles.
13773
13774 2007-05-28  Eric Blake  <ebb9@byu.net>
13775
13776         * modules/closein-tests (test_closein_LDADD): Support test on
13777         cygwin with libtool.
13778
13779 2007-05-28  Bruno Haible  <bruno@clisp.org>
13780
13781         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
13782         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13783         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13784         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13785         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13786         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13787         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13788         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13789         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13790
13791 2007-05-28  Eric Blake  <ebb9@byu.net>
13792
13793         Unconditionally include <config.h> in unit tests.
13794         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
13795         * tests/test-allocsa.c, tests/test-arcfour.c,
13796         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
13797         tests/test-array_list.c, tests/test-array_oset.c,
13798         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
13799         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
13800         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
13801         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
13802         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
13803         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
13804         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
13805         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
13806         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
13807         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
13808         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
13809         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
13810         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
13811         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
13812         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
13813         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
13814         test-md5.c, test-memmem.c, test-printf-posix.c,
13815         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
13816         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
13817         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
13818         test-strcasestr.c, test-striconv.c, test-striconveh.c,
13819         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
13820         test-vasnprintf-posix2.c, test-vasnprintf.c,
13821         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
13822         test-vfprintf-posix.c, test-vprintf-posix.c,
13823         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
13824         test-xvasprintf.c: Likewise.
13825
13826 2007-05-28  Bruno Haible  <bruno@clisp.org>
13827
13828         * gnulib-tool (func_import): Remember the --with-tests command-line
13829         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
13830         Reported by Eric Blake.
13831
13832 2007-05-28  Bruno Haible  <bruno@clisp.org>
13833
13834         * modules/ftell-tests: New file.
13835         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
13836         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
13837
13838         * lib/ftell.c: New file.
13839         * modules/ftell: New file.
13840         * m4/ftell.m4: New file.
13841         * doc/functions/ftell.texi: Update.
13842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
13843         REPLACE_FTELL.
13844         * lib/stdio_.h (rpl_ftell): New declaration.
13845         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
13846         REPLACE_FTELL.
13847
13848 2007-05-28  Eric Blake  <ebb9@byu.net>
13849
13850         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
13851
13852 2007-05-28  Bruno Haible  <bruno@clisp.org>
13853
13854         * modules/fseek-tests: New file.
13855         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
13856         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
13857
13858         * lib/fseek.c: New file.
13859         * modules/fseek: New file.
13860         * m4/fseek.m4: New file.
13861         * doc/functions/fseek.texi: Update.
13862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
13863         REPLACE_FSEEK.
13864         * lib/stdio_.h (rpl_fseek): New declaration.
13865         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
13866         REPLACE_FSEEK.
13867
13868 2007-05-28  Bruno Haible  <bruno@clisp.org>
13869
13870         * lib/stdio_.h (fflush): More comments.
13871
13872 2007-05-28  Bruno Haible  <bruno@clisp.org>
13873
13874         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
13875         runtime test.
13876
13877 2007-05-28  Eric Blake  <ebb9@byu.net>
13878
13879         Improve lseek module.
13880         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
13881         * lib/unistd_.h (lseek): Scale back link warning message.
13882         * tests/test-lseek.c: Beef up test.
13883         * tests/test-lseek.sh: Exercise more facets of lseek.
13884         Reported by Bruno Haible.
13885
13886 2007-05-28  Bruno Haible  <bruno@clisp.org>
13887
13888         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
13889         to define.
13890
13891 2007-05-27  Bruno Haible  <bruno@clisp.org>
13892
13893         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
13894
13895 2007-05-27  Bruno Haible  <bruno@clisp.org>
13896
13897         * modules/openmp: New file.
13898         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
13899         Noah Misch.
13900
13901 2007-05-26  Bruno Haible  <bruno@clisp.org>
13902
13903         * modules/chdir-long (Depends-on): Add fchdir.
13904         * modules/chdir-safer (Depends-on): Likewise.
13905         * modules/fts (Depends-on): Likewise.
13906         * modules/fts-lgpl (Depends-on): Likewise.
13907         * modules/openat (Depends-on): Likewise.
13908         * modules/savewd (Depends-on): Likewise.
13909
13910 2007-05-24  Eric Blake  <ebb9@byu.net>
13911
13912         Fix lseek on mingw.
13913         * modules/lseek: New module.
13914         * m4/lseek.m4: New file.
13915         * lib/lseek.c: New file.
13916         * modules/lseek-tests: New file.
13917         * tests/test-lseek.c: New file.
13918         * tests/test-lseek.sh: New file.
13919         * MODULES.html.sh: Document lseek module.
13920         * modules/fflush (Depends-on): Add lseek, fseeko.
13921         * modules/fseeko (Depends-on): Likewise.
13922         * modules/ftello (Depends-on): Likewise.
13923         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
13924         broken.
13925         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
13926         broken.
13927         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
13928         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
13929         * lib/ftello.c (rpl_ftello): Likewise.
13930         * tests/test-fseeko.c (main): Test this.
13931         * tests/test-fseeko.sh: Likewise.
13932         * tests/test-ftello.c (main): Likewise.
13933         * tests/test-ftello.sh: Likewise.
13934         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
13935         implies replacing fseek.
13936         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
13937         HAVE_FTELLO.
13938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
13939         * modules/unistd (Makefile.am): Likewise.
13940         * lib/unistd_.h (lseek): Declare a replacement.
13941         * doc/functions/lseek.texi (lseek): Document this fix.
13942         * doc/functions/fseek.texi (fseek): Likewise.
13943         * doc/functions/ftell.texi (ftell): Likewise.
13944
13945 2007-05-24  Bruno Haible  <bruno@clisp.org>
13946
13947         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
13948         in the printed representation of a NaN.
13949         * tests/test-vasprintf-posix.c (test_function): Likewise.
13950         * tests/test-snprintf-posix.h (test_function): Likewise.
13951         * tests/test-sprintf-posix.h (test_function): Likewise.
13952         Reported by Eric Blake.
13953
13954 2007-05-23  Eric Blake  <ebb9@byu.net>
13955
13956         Fix fseeko/ftello on cygwin 1.5.24.
13957         * doc/functions/fseeko.texi (fseeko): Document the fix.
13958         * doc/functions/ftello.texi (ftello): Document the fix.
13959         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
13960         * doc/functions/stdout.text (stdout): New file.
13961         * doc/functions/stderr.text (stderr): New file.
13962         * doc/gnulib.texi (Function Substitutes): Use new files.
13963         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
13964         prior to 1.7.0.
13965         * tests/test-ftello.c (main): Likewise for ftello.
13966         * tests/test-fseeko.sh: New file.
13967         * tests/test-ftello.sh: New file.
13968         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
13969         with seekable stdin.
13970         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
13971         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
13972         (gl_REPLACE_FSEEKO): New macro.
13973         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
13974         * modules/fseeko (Files): Distribute fseeko.c.
13975         * modules/ftello (Files): Distribute ftello.c.
13976         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
13977         mode.
13978         * lib/ftello.c (rpl_ftello): New file.
13979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
13980         fseeko, ftello.
13981         (gl_STDIN_LARGE_OFFSET): New macro.
13982         * modules/stdio (Makefile.am): Perform the replacement.
13983         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
13984
13985 2007-05-23  Bruno Haible  <bruno@clisp.org>
13986
13987         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
13988         GNULIB_POSIXCHECK is defined.
13989
13990 2007-05-21  Bruno Haible  <bruno@clisp.org>
13991
13992         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
13993         Check also the output for NaN arguments. When cross-compiling, guess
13994         no on IRIX.
13995         * lib/vasnprintf.c: Update comments.
13996         * tests/test-vasnprintf-posix.c (strisnan): New function.
13997         (test_function): Use it.
13998         * tests/test-vasprintf-posix.c (strisnan): New function.
13999         (test_function): Use it.
14000         * tests/test-snprintf-posix.h (strisnan): New function.
14001         (test_function): Use it.
14002         * tests/test-sprintf-posix.h (strisnan): New function.
14003         (test_function): Use it.
14004         Reported by Eric Blake.
14005
14006 2007-05-20  Bruno Haible  <bruno@clisp.org>
14007
14008         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
14009         numbers that fails on BeOS.
14010         * doc/functions/frexpl.texi: Update.
14011
14012 2007-05-20  Jim Meyering  <jim@meyering.net>
14013
14014         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
14015         forced upon us by glibc-2.6.
14016
14017 2007-05-20  Bruno Haible  <bruno@clisp.org>
14018
14019         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
14020         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
14021         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
14022         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
14023         NEED_PRINTF_INFINITE.
14024         (is_infinitel): New function.
14025         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
14026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
14027         gl_PREREQ_VASNPRINTF_INFINITE.
14028         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
14029         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14030         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
14031         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
14032         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
14033         gl_PREREQ_VASNPRINTF_INFINITE.
14034         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14035         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14037         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14038         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14039         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14040         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14041         * doc/functions/fprintf.texi: Update.
14042         * doc/functions/printf.texi: Update.
14043         * doc/functions/snprintf.texi: Update.
14044         * doc/functions/sprintf.texi: Update.
14045         * doc/functions/vfprintf.texi: Update.
14046         * doc/functions/vprintf.texi: Update.
14047         * doc/functions/vsnprintf.texi: Update.
14048         * doc/functions/vsprintf.texi: Update.
14049
14050 2007-05-20  Bruno Haible  <bruno@clisp.org>
14051
14052         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
14053         was not found in libc.
14054         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14055
14056 2007-05-20  Bruno Haible  <bruno@clisp.org>
14057
14058         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14059         printed as "-nan" instead of "nan".
14060         * tests/test-vasprintf-posix.c (test_function): Likewise.
14061         * tests/test-snprintf-posix.h (test_function): Likewise.
14062         * tests/test-sprintf-posix.h (test_function): Likewise.
14063         Needed for HP-UX 11.
14064
14065 2007-05-20  Jim Meyering  <jim@meyering.net>
14066
14067         Fix buggy test for the fchownat-deref bug.
14068         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
14069         symlink required for the run-test.  Without it, this test would
14070         always declare that fchownat doesn't work, and client code would
14071         unnecessarily use the replacement function with fixed libc.
14072         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
14073         Reported by Greg Schafer.
14074
14075 2007-05-19  Bruno Haible  <bruno@clisp.org>
14076
14077         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
14078         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
14079         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
14080         Needed for IRIX 6.5 and Solaris 2.5.1.
14081
14082 2007-05-19  Bruno Haible  <bruno@clisp.org>
14083
14084         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
14085         (test_function): Skip tests involving -0.0 on platforms where
14086         -0.0 = 0.0.
14087         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
14088         (test_function): Skip tests involving -0.0 on platforms where
14089         -0.0 = 0.0.
14090         * tests/test-snprintf-posix.h (have_minus_zero): New function.
14091         (test_function): Skip tests involving -0.0 on platforms where
14092         -0.0 = 0.0.
14093         * tests/test-sprintf-posix.h (have_minus_zero): New function.
14094         (test_function): Skip tests involving -0.0 on platforms where
14095         -0.0 = 0.0.
14096         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
14097         tests.
14098         * tests/test-printf-posix.h (test_function): Likewise.
14099         * tests/test-printf-posix.output: Remove all -0.0 related results.
14100         Needed for IRIX 6.5.
14101
14102 2007-05-19  Bruno Haible  <bruno@clisp.org>
14103
14104         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14105         printed as "nan0x7fffffff" instead of "nan".
14106         * tests/test-vasprintf-posix.c (test_function): Likewise.
14107         * tests/test-snprintf-posix.h (test_function): Likewise.
14108         * tests/test-sprintf-posix.h (test_function): Likewise.
14109         * tests/test-fprintf-posix.h (NaN): Remove macro.
14110         (test_function): Remove all NaN related tests.
14111         * tests/test-printf-posix.h (NaN): Remove macro.
14112         (test_function): Remove all NaN related tests.
14113         * tests/test-printf-posix.output: Remove all NaN related results.
14114         Needed for IRIX 6.5.
14115
14116 2007-05-19  Bruno Haible  <bruno@clisp.org>
14117
14118         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
14119         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14120
14121 2007-05-19  Bruno Haible  <bruno@clisp.org>
14122
14123         * lib/float_.h: New file.
14124         * m4/float_h.m4: New file.
14125         * modules/float: New file.
14126         * modules/isnanl (Dependencies): Add float.
14127         * modules/isnanl-nolibm (Dependencies): Likewise.
14128         * modules/mathl (Dependencies): Likewise.
14129         * modules/printf-frexpl (Dependencies): Likewise.
14130         * modules/signbit (Dependencies): Likewise.
14131         * modules/vasnprintf (Dependencies): Likewise.
14132         * doc/headers/float.texi: Update.
14133
14134 2007-05-19  Jim Meyering  <jim@meyering.net>
14135
14136         * lib/utimens.c (gl_futimens): Rename from futimens,
14137         now that glibc-2.6 declares futimens.
14138         * lib/utimens.h: Likewise.
14139
14140 2007-05-19  Bruno Haible  <bruno@clisp.org>
14141
14142         Avoid test failures on mingw.
14143         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
14144         * tests/test-printf-posix.sh: Likewise.
14145         * tests/test-vfprintf-posix.sh: Likewise.
14146         * tests/test-vprintf-posix.sh: Likewise.
14147
14148 2007-05-19  Bruno Haible  <bruno@clisp.org>
14149
14150         Fix *printf result for NaN, Inf, -0.0 on mingw.
14151         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
14152         * lib/vasnprintf.c: Include math.h and isnan.h.
14153         (is_infinite_or_zero): New function.
14154         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
14155         values in the %f, %F, %e, %E, %g, %G directives.
14156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
14157         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14158         gl_PRINTF_INFINITE and test its result. Invoke
14159         gl_PREREQ_VASNPRINTF_INFINITE.
14160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14164         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14165         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14166         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14167         * doc/functions/fprintf.texi: Update.
14168         * doc/functions/printf.texi: Update.
14169         * doc/functions/snprintf.texi: Update.
14170         * doc/functions/sprintf.texi: Update.
14171         * doc/functions/vfprintf.texi: Update.
14172         * doc/functions/vprintf.texi: Update.
14173         * doc/functions/vsnprintf.texi: Update.
14174         * doc/functions/vsprintf.texi: Update.
14175
14176 2007-05-19  Bruno Haible  <bruno@clisp.org>
14177
14178         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
14179         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
14180         Instead of multiplying with 10^k, set extra_zeroes to k.
14181         (scale10_round_long_double): Remove function.
14182
14183 2007-05-18  Bruno Haible  <bruno@clisp.org>
14184
14185         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
14186         introduced on 2007-05-06.
14187
14188 2007-05-18  Bruno Haible  <bruno@clisp.org>
14189
14190         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
14191         %g directives.
14192         * tests/test-vasprintf-posix.c (test_function): Likewise.
14193         * tests/test-snprintf-posix.h (test_function): Likewise.
14194         * tests/test-sprintf-posix.h (test_function): Likewise.
14195
14196 2007-05-18  Bruno Haible  <bruno@clisp.org>
14197
14198         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
14199         (strmatch): New function.
14200         (test_function): Test the %f directive on numbers of various exponents.
14201         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
14202         (strmatch): New function.
14203         (test_function): Test the %f directive on numbers of various exponents.
14204         * tests/test-snprintf-posix.h (strmatch): New function.
14205         (test_function): Test the %f directive on numbers of various exponents.
14206         * tests/test-sprintf-posix.h (strmatch): New function.
14207         (test_function): Test the %f directive on numbers of various exponents.
14208         * tests/test-snprintf-posix.c (SIZEOF): New macro.
14209         * tests/test-sprintf-posix.c (SIZEOF): New macro.
14210         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
14211         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
14212
14213 2007-05-18  Bruno Haible  <bruno@clisp.org>
14214
14215         Add support for 'long double' number output.
14216         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
14217         * lib/vasnprintf.c: Include math.h and float+.h.
14218         (mp_limb_t): New type.
14219         (GMP_LIMB_BITS): New macro.
14220         (mp_twolimb_t): New type.
14221         (GMP_TWOLIMB_BITS): New macro.
14222         (mpn_t): New type.
14223         (multiply, divide, convert_to_decimal, decode_long_double,
14224         scale10_round_long_double, scale10_round_decimal_long_double,
14225         floorlog10l): New functions.
14226         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
14227         for the %f, %F, %e, %E, %g, %G directives.
14228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
14229         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14230         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
14231         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
14232         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14233         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14234         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14235         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14236         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14237         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14238         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14239         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
14240         * modules/snprintf-posix (Depends-on): Likewise.
14241         * modules/sprintf-posix (Depends-on): Likewise.
14242         * modules/vasnprintf-posix (Depends-on): Likewise.
14243         * modules/vasprintf-posix (Depends-on): Likewise.
14244         * modules/vfprintf-posix (Depends-on): Likewise.
14245         * modules/vsnprintf-posix (Depends-on): Likewise.
14246         * modules/vsprintf-posix (Depends-on): Likewise.
14247         * modules/vasnprintf (Files): Add lib/float+.h.
14248         * doc/functions/fprintf.texi: Update.
14249         * doc/functions/printf.texi: Update.
14250         * doc/functions/snprintf.texi: Update.
14251         * doc/functions/sprintf.texi: Update.
14252         * doc/functions/vfprintf.texi: Update.
14253         * doc/functions/vprintf.texi: Update.
14254         * doc/functions/vsnprintf.texi: Update.
14255         * doc/functions/vsprintf.texi: Update.
14256
14257 2007-05-18  Bruno Haible  <bruno@clisp.org>
14258
14259         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
14260
14261 2007-05-18  Bruno Haible  <bruno@clisp.org>
14262
14263         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
14264         for printing 64-bit integers. Needed for mingw.
14265
14266 2007-05-18  Bruno Haible  <bruno@clisp.org>
14267
14268         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14269         gl_FUNC_FREXPL_WORKS.
14270         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
14271
14272 2007-05-18  Bruno Haible  <bruno@clisp.org>
14273
14274         * modules/frexpl-nolibm-tests: New file.
14275
14276         * modules/frexpl-nolibm: New file.
14277         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
14278
14279 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14280
14281         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
14282         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
14283         GCC 4.2, which otherwise issues a lot of warnings.
14284         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
14285         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
14286         Likewise.
14287         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
14288         * modules/iconv_open (iconv.h): Likewise.
14289         * modules/locale (locale.h): Likewise.
14290         * modules/netinet_in (netinet/in.h): Likewise.
14291         * modules/sys_select (sys_select.h): Likewise.
14292         * modules/sys_socket (sys/socket.h): Likewise.
14293         * modules/sys_stat (sys/stat.h): Likewise.
14294         * modules/sysexits (sysexits.h): Likewise.
14295         * modules/unistd (unistd.h): Likewise.
14296
14297 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14298
14299         * modules/closein-tests (Makefile.am): Distribute
14300         `test-closein.sh'.
14301
14302 2007-05-17  Bruno Haible  <bruno@clisp.org>
14303
14304         * tests/test-printf-posix.output: Renamed from
14305         tests/test-fprintf-posix.out.
14306         * modules/fprintf-posix-tests: Update.
14307         * modules/printf-posix-tests: Update.
14308         * modules/vfprintf-posix-tests: Update.
14309         * modules/vprintf-posix-tests: Update.
14310         * tests/test-fprintf-posix.sh: Update.
14311         * tests/test-printf-posix.sh: Update.
14312         * tests/test-vfprintf-posix.sh: Update.
14313         * tests/test-vprintf-posix.sh: Update.
14314         Reported by Ralf Wildenhues.
14315
14316 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14317
14318         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
14319         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
14320         GCC 4.2, which otherwise issues a lot of warnings.
14321         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
14322         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
14323         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
14324         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
14325         it should no longer be needed.
14326         * lib/string_.h: Likewise.
14327         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
14328         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
14329         * modules/inttypes (inttypes.h): Likewise.
14330         * modules/math (math.h): Likewise.
14331         * modules/search (search.h): Likewise.
14332         * modules/signal (signal.h): Likewise.
14333         * modules/stdint (stdint.h): Likewise.
14334         * modules/stdio (stdio.h): Likewise.
14335         * modules/stdlib (stdlib.h): Likewise.
14336         * modules/string (string.h): Likewise.
14337         * modules/sys_time (sys/time.h): Likewise.
14338         * modules/time (time.h): Likewise.
14339         * modules/wchar (wchar.h): Likewise.
14340         * modules/wctype (wtype.h): Likewise.
14341
14342 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14343
14344         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
14345
14346 2007-05-13  Bruno Haible  <bruno@clisp.org>
14347
14348         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
14349         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14350         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
14351         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14352         (gl_PREREQ_STRTOK_R): Don't require it here.
14353
14354 2007-05-13  Bruno Haible  <bruno@clisp.org>
14355
14356         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
14357         when used in C++ mode.
14358
14359 2007-05-12  Bruno Haible  <bruno@clisp.org>
14360
14361         * lib/linebuffer.h: Tweak doc.
14362         * lib/linebuffer.c: Likewise.
14363
14364 2007-05-12  James Youngman  <jay@gnu.org>
14365
14366         * lib/linebuffer.c (readlinebuffer_delim): New function,
14367         like readlinebuffer, but use a caller-specified delimiter.
14368         (readlinebuffer): Just call readlinebuffer_delim with '\n'
14369         as the delimiter.
14370         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
14371
14372 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14373
14374         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
14375         * modules/openat (Files): Remove openat-die.c.
14376         (Depends-on): Add openat-die.
14377         * modules/openat-die: New module.
14378
14379 2007-05-06  Bruno Haible  <bruno@clisp.org>
14380
14381         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
14382         Update with info about Cygwin.
14383         * doc/functions/fprintf.texi: Update.
14384         * doc/functions/printf.texi: Update.
14385         * doc/functions/snprintf.texi: Update.
14386         * doc/functions/sprintf.texi: Update.
14387         * doc/functions/vfprintf.texi: Update.
14388         * doc/functions/vprintf.texi: Update.
14389         * doc/functions/vsnprintf.texi: Update.
14390         * doc/functions/vsprintf.texi: Update.
14391         Reported by Eric Blake.
14392
14393 2007-05-06  Bruno Haible  <bruno@clisp.org>
14394
14395         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
14396         padding ourselves for the floating-point directives.
14397         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
14398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
14399         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14400         gl_PRINTF_FLAG_ZERO and test its result. Invoke
14401         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
14402         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14404         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14405         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14406         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14407         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14408         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14409         * tests/test-snprintf-posix.h (test_function): Also check the width
14410         and some flags in the %f directive.
14411         * tests/test-sprintf-posix.h (test_function): Likewise.
14412         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14413         * tests/test-vasprintf-posix.c (test_function): Likewise.
14414         * doc/functions/fprintf.texi: Update.
14415         * doc/functions/printf.texi: Update.
14416         * doc/functions/snprintf.texi: Update.
14417         * doc/functions/sprintf.texi: Update.
14418         * doc/functions/vfprintf.texi: Update.
14419         * doc/functions/vprintf.texi: Update.
14420         * doc/functions/vsnprintf.texi: Update.
14421         * doc/functions/vsprintf.texi: Update.
14422
14423 2007-05-06  Bruno Haible  <bruno@clisp.org>
14424
14425         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
14426         pass the ' flag character to sprintf or snprintf.
14427         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
14428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
14429         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14430         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
14431         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
14432         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14433         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
14434         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14438         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14439         * tests/test-snprintf-posix.h (test_function): Also check the grouping
14440         flag.
14441         * tests/test-sprintf-posix.h (test_function): Likewise.
14442         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14443         * tests/test-vasprintf-posix.c (test_function): Likewise.
14444         * doc/functions/fprintf.texi: Update.
14445         * doc/functions/printf.texi: Update.
14446         * doc/functions/snprintf.texi: Update.
14447         * doc/functions/sprintf.texi: Update.
14448         * doc/functions/vfprintf.texi: Update.
14449         * doc/functions/vprintf.texi: Update.
14450         * doc/functions/vsnprintf.texi: Update.
14451         * doc/functions/vsprintf.texi: Update.
14452
14453 2007-05-01  Bruno Haible  <bruno@clisp.org>
14454
14455         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
14456
14457 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14458
14459         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
14460         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
14461
14462 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
14463
14464         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
14465         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
14466         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
14467
14468 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
14469
14470         * lib/argp-help.c (struct hol_entry): New member `ord'.
14471         (HOL_ENTRY_PTRCMP): Use ord for comparison
14472         (hol_sort): Initialize ord.
14473
14474 2007-05-01  Bruno Haible  <bruno@clisp.org>
14475
14476         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
14477         Reported by Eric Blake.
14478         * doc/gnulib.texi (Function Substitutes): Update.
14479
14480 2007-05-01  Bruno Haible  <bruno@clisp.org>
14481
14482         * doc/functions.texi: Remove file, now redundant through
14483         doc/functions/*.texi.
14484
14485 2007-05-01  Bruno Haible  <bruno@clisp.org>
14486
14487         * modules/argp (Depends-on): Add sleep.
14488
14489 2007-05-01  Bruno Haible  <bruno@clisp.org>
14490
14491         * modules/sleep-tests: New file.
14492         * tests/test-sleep.c: New file.
14493
14494         * modules/sleep: New file.
14495         * lib/sleep.c: New file.
14496         * m4/sleep.m4: New file.
14497         * lib/unistd_.h (sleep): New declaration.
14498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
14499         HAVE_SLEEP.
14500         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
14501         * doc/functions/sleep.texi: Document the sleep module.
14502
14503 2007-05-01  Bruno Haible  <bruno@clisp.org>
14504
14505         * lib/sigprocmask.h: Remove file.
14506         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
14507         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
14508         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
14509         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
14510         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14511         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
14512         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
14513         HAVE_SIGSET_T as a shell variable.
14514         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
14515         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
14516         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
14517         (Depends-on): Add signal. Remove verify.
14518         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
14519         (Include): Mention <signal.h> instead of sigprocmask.h.
14520         * NEWS: Mention the change.
14521         * lib/fatal-signal.c: Don't include sigprocmask.h.
14522
14523 2007-05-01  Bruno Haible  <bruno@clisp.org>
14524
14525         * modules/signal: New file.
14526         * lib/signal_.h: New file.
14527         * m4/signal_h.m4: New file.
14528
14529 2007-05-01  Bruno Haible  <bruno@clisp.org>
14530
14531         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
14532         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
14533         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
14534         HAVE_WCTYPE_CTMP_BUG into wctype.h.
14535
14536 2007-05-01  Bruno Haible  <bruno@clisp.org>
14537
14538         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
14539         configure time.
14540         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
14541         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
14542         * modules/sys_stat (Makefile.am): Substitute their values into
14543         sys/stat.h.
14544
14545 2007-05-01  Bruno Haible  <bruno@clisp.org>
14546
14547         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
14548         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
14549         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
14550
14551 2007-05-01  Bruno Haible  <bruno@clisp.org>
14552
14553         * doc/header/assert.texi: Undo last change: don't mention the gnulib
14554         'assert' module here.
14555
14556 2007-05-01  Bruno Haible  <bruno@clisp.org>
14557
14558         * doc/functions/*.texi: New files.
14559         * doc/functions/google-ranking.txt: New file.
14560         * doc/gnulib.texi (Function Substitutes): New chapter.
14561         (ctime, inet_ntoa): Remove sections.
14562         * doc/ctime.texi: Remove file.
14563         * doc/inet_ntoa.texi: Remove file.
14564         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
14565         dependencies.
14566         (%.info): New rule, specifying a --reference-limit.
14567
14568 2007-05-01  Bruno Haible  <bruno@clisp.org>
14569
14570         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
14571
14572 2007-05-01  Bruno Haible  <bruno@clisp.org>
14573
14574         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
14575         the portability of 'mkdir' to mingw systems.
14576
14577 2007-05-01  Bruno Haible  <bruno@clisp.org>
14578
14579         * doc/headers/google-ranking.txt: New file.
14580
14581 2007-04-30  Eric Blake  <ebb9@byu.net>
14582
14583         Prefer fseeko to fseek.
14584         * modules/getpass (Depends-on): Add fseeko.
14585         * lib/getpass.c (getpass): Use fseeko, not fseek.
14586
14587 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
14588
14589         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
14590         assumes the sorting is stable, while most qsort implementations
14591         are not.  Use argument addresses to ensure they never compare as
14592         equal.
14593
14594         * tests/test-argp-2.sh (usage-indent test): Fix output
14595         (func_compare): Restore diff options
14596         * tests/test-argp.c: Restore #include "progname.h"
14597
14598 2007-04-29  Bruno Haible  <bruno@clisp.org>
14599
14600         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
14601         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14602         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
14603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14604         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
14605         (configure.ac): Define CHECK_SNPRINTF_POSIX.
14606         (TESTS, check_PROGRAMS): Add test-snprintf.
14607         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
14608         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
14609         (TESTS, check_PROGRAMS): Add test-vsnprintf.
14610         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
14611         assertions that fail on HP-UX, OSF/1, or IRIX.
14612         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
14613
14614 2007-04-29  Bruno Haible  <bruno@clisp.org>
14615
14616         * MODULES.html.sh (posix_functions): Remove 'contents'.
14617
14618 2007-04-29  Karl Berry  <karl@gnu.org>
14619
14620         * config/srclist.txt (gendocs_template_min): new entry.
14621
14622 2007-04-29  Bruno Haible  <bruno@clisp.org>
14623
14624         Work around fpurge bug on BSD systems.
14625         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
14626         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
14627         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
14628         fpurge to rpl_fpurge if the system already has this function.
14629         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
14630         the case where the system already has this function. Correct invariants
14631         on BSD systems.
14632         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
14633         BSD systems.
14634
14635 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
14636
14637         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
14638         proposed by Sven Verdoolaege.
14639
14640         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
14641         options.
14642         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
14643         (usage and help tests): Update
14644
14645 2007-04-29  Bruno Haible  <bruno@clisp.org>
14646
14647         * tests/test-fflush.c (main): Use a file of size 17, not 10.
14648         Print more information in case of failure. Disable a test on BeOS.
14649
14650 2007-04-29  Bruno Haible  <bruno@clisp.org>
14651
14652         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
14653         This helps debugging on systems on which no gdb is available.
14654
14655 2007-04-29  Bruno Haible  <bruno@clisp.org>
14656
14657         * lib/freading.h: Improve comments.
14658         * lib/fwriting.h: Likewise.
14659         * tests/test-freading.c (main): Don't check freading immediately after
14660         repositioning. Needed for glibc.
14661
14662 2007-04-29  Bruno Haible  <bruno@clisp.org>
14663
14664         * lib/freading.c (freading): Trivial simplification.
14665
14666 2007-04-28  Bruno Haible  <bruno@clisp.org>
14667
14668         * tests/test-fwriting.c (main): Also test the interaction between
14669         fflush and fwriting.
14670         * modules/fwriting-tests (Depends-on): Add fflush.
14671
14672         * tests/test-freading.c (main): Also test the interaction between
14673         fflush and freading.
14674         * modules/freading-tests (Depends-on): Add fflush.
14675
14676 2007-04-28  Bruno Haible  <bruno@clisp.org>
14677
14678         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
14679         fseeko and ftello.
14680         Suggested by Eric Blake.
14681
14682 2007-04-28  Jim Meyering  <jim@meyering.net>
14683
14684         Avoid false-negative in gl_STDINT_H's C99 conformance test.
14685         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
14686         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
14687
14688 2007-04-27  Eric Blake  <ebb9@byu.net>
14689
14690         * doc/headers/assert.texi (assert.h): Document assert module use.
14691
14692 2007-04-27  Bruno Haible  <bruno@clisp.org>
14693
14694         * doc/headers/*.texi: New files.
14695         * doc/gnulib.texi (Header File Substitutes): New chapter.
14696         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
14697         dependencies.
14698         (standards.info ,standards.html, standards.dvi): Update dependencies.
14699         (mostlyclean, clean): New targets.
14700
14701 2007-04-27  Bruno Haible  <bruno@clisp.org>
14702
14703         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
14704         * modules/sysexits (Files, Makefile.am): Update.
14705
14706         * lib/sys_socket_.h: Renamed from lib/socket_.h.
14707         * modules/sys_socket (Files, Makefile.am): Update.
14708
14709         * lib/sys_stat_.h: Renamed from lib/stat_.h.
14710         * modules/sys_stat (Files, Makefile.am): Update.
14711
14712 2007-04-27  Eric Blake  <ebb9@byu.net>
14713
14714         * lib/freading.h: Improve comments.
14715         * lib/fwriting.h: Likewise.
14716         * lib/fflush.c: Likewise.
14717
14718         Fix closein for mingw.
14719         * modules/closein-tests: Add tests for closein.
14720         * tests/test-closein.c: New file.
14721         * tests/test-closein.sh: Likewise.
14722         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
14723         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
14724
14725 2007-04-27  Bruno Haible  <bruno@clisp.org>
14726
14727         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
14728         version is < 6.
14729         * lib/math_.h [__DECC]: Likewise.
14730         * lib/stdio_.h [__DECC]: Likewise.
14731         * lib/stdlib_.h [__DECC]: Likewise.
14732         * lib/string_.h [__DECC]: Likewise.
14733         * lib/time_.h [__DECC]: Likewise.
14734         * lib/wchar_.h [__DECC]: Likewise.
14735         * lib/wctype_.h [__DECC]: Likewise.
14736
14737 2007-04-27  Bruno Haible  <bruno@clisp.org>
14738
14739         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
14740
14741 2007-04-27  Bruno Haible  <bruno@clisp.org>
14742
14743         * lib/fflush.c: Add comments.
14744         * modules/fpurge-tests (Depends-on): Add fflush.
14745         * modules/freadable-tests (Depends-on): Likewise.
14746         * modules/fwritable-tests (Depends-on): Likewise.
14747
14748 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
14749
14750         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
14751         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
14752         Report by Bruno Haible <bruno@clisp.org>.
14753
14754 2007-04-26  Eric Blake  <ebb9@byu.net>
14755
14756         Fix fflush on mingw.
14757         * modules/fflush (Depends-on): Add freading.
14758         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
14759         but unread data.
14760
14761 2007-04-26  Eric Blake  <ebb9@byu.net>
14762         and Bruno Haible  <bruno@clisp.org>
14763
14764         Implement freading and fwriting.
14765         * lib/freading.c: New file.
14766         * lib/freading.h: Likewise.
14767         * m4/freading.m4: Likewise.
14768         * modules/freading: Likewise.
14769         * modules/freading-tests: Likewise.
14770         * tests/test-freading.c: Likewise.
14771         * lib/fwriting.c: New file.
14772         * lib/fwriting.h: Likewise.
14773         * m4/fwriting.m4: Likewise.
14774         * modules/fwriting: Likewise.
14775         * modules/fwriting-tests: Likewise.
14776         * tests/test-fwriting.c: Likewise.
14777         * MODULES.html.sh (File stream based Input/Output): Mention them.
14778
14779 2007-04-26  Bruno Haible  <bruno@clisp.org>
14780
14781         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
14782         'long' when we assume it.
14783         Suggested by Eric Blake.
14784
14785 2007-04-26  Bruno Haible  <bruno@clisp.org>
14786
14787         Ensure fseeko, ftello are declared on glibc systems.
14788         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
14789         * modules/fseeko (configure.ac-early): Likewise.
14790         * modules/ftello (configure.ac-early): Likewise.
14791         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
14792         AC_FUNC_FSEEKO for this.
14793         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
14794         (gl_CHECK_FSEEKO): Remove macro.
14795
14796 2007-04-26  Bruno Haible  <bruno@clisp.org>
14797
14798         * tests/test-fflush.c (main): Also check the ftell result after
14799         fflush and fseek/fseeko.
14800         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
14801         file descriptor position cache in the stream.
14802         * lib/fseeko.c (rpl_fseeko): Likewise.
14803
14804 2007-04-26  Bruno Haible  <bruno@clisp.org>
14805
14806         * modules/fflush-tests (Depends-on): Add fseeko.
14807
14808 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
14809             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14810
14811         * lib/argz_.h: ensure error_t definition is obtained in same
14812         mechanism system argz.h would have.
14813         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
14814         argz facilities are known bad.  Err on the side of caution if
14815         cross-compiling.
14816
14817 2007-04-25  Eric Blake  <ebb9@byu.net>
14818
14819         * lib/fpurge.c (includes): Use stdlib.h for free.
14820         * tests/test-fflush.c (main): Also test fflush-fseeko.
14821
14822 2007-04-25  Bruno Haible  <bruno@clisp.org>
14823
14824         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
14825         * lib/fseeko.c: New file.
14826         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
14827         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
14828         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
14829         gl_FUNC_FSEEKO.
14830         (gl_FUNC_FSEEKO): Invoke it.
14831         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
14832         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
14833         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
14834
14835 2007-04-25  Bruno Haible  <bruno@clisp.org>
14836
14837         * modules/fflush (Depends-on): Add ftello.
14838
14839 2007-04-25  Bruno Haible  <bruno@clisp.org>
14840
14841         * modules/ftello-tests: New file.
14842         * tests/test-ftello.c: New file.
14843
14844         * modules/ftello: New file.
14845         * m4/ftello.m4: New file.
14846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
14847         HAVE_FTELLO.
14848         * lib/stdio_.h (ftello): New declaration.
14849         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
14850         HAVE_FTELLO.
14851
14852 2007-04-25  Bruno Haible  <bruno@clisp.org>
14853
14854         * modules/fseeko-tests: New file.
14855         * tests/test-fseeko.c: New file.
14856
14857         * modules/fseeko: New file.
14858         * m4/fseeko.m4: New file.
14859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
14860         HAVE_FSEEKO.
14861         * lib/stdio_.h (fseeko): New declaration.
14862         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
14863         HAVE_FSEEKO.
14864
14865 2007-04-25  Bruno Haible  <bruno@clisp.org>
14866
14867         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
14868
14869 2007-04-25  Bruno Haible  <bruno@clisp.org>
14870
14871         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
14872         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
14873         * tests/test-unistd.c: Likewise.
14874         * tests/test-fcntl.c: Likewise.
14875
14876 2007-04-23  Eric Blake  <ebb9@byu.net>
14877
14878         * lib/fflush.c: Fix missing include.
14879         Reported by Bruno Haible.
14880
14881 2007-04-23  Bruno Haible  <bruno@clisp.org>
14882
14883         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
14884         Reported by Eric Blake.
14885
14886 2007-04-23  Bruno Haible  <bruno@clisp.org>
14887
14888         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
14889
14890 2007-04-23  Bruno Haible  <bruno@clisp.org>
14891
14892         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
14893
14894 2007-04-23  Bruno Haible  <bruno@clisp.org>
14895
14896         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
14897         Needed on HP-UX 11.
14898
14899 2007-04-16  Eric Blake  <ebb9@byu.net>
14900
14901         Make fflush rely on fpurge.
14902         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
14903         open coding all variants.
14904         * modules/fflush (Depends-on): Add fpurge and unistd.
14905         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
14906         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
14907
14908         Fix --with-tests compilation on cygwin.
14909         * modules/argmatch-tests (Makefile.am): List gnulib library first
14910         in LDADD.
14911         * modules/argp-tests (Makefile.am): Likewise.
14912         * modules/array-list-tests (Makefile.am): Likewise.
14913         * modules/array-oset-tests (Makefile.am): Likewise.
14914         * modules/avltree-list-tests (Makefile.am): Likewise.
14915         * modules/avltree-oset-tests (Makefile.am): Likewise.
14916         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14917         * modules/carray-list-tests (Makefile.am): Likewise.
14918         * modules/dirname-tests (Makefile.am): Likewise.
14919         * modules/frexp-tests (Makefile.am): Likewise.
14920         * modules/isnanl-tests (Makefile.am): Likewise.
14921         * modules/linked-list-tests (Makefile.am): Likewise.
14922         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14923         * modules/lock-tests (Makefile.am): Likewise.
14924         * modules/rbtree-list-tests (Makefile.am): Likewise.
14925         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14926         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14927         * modules/tls-tests (Makefile.am): Likewise.
14928         * modules/tsearch-tests (Makefile.am): Likewise.
14929         * modules/xvasprintf-tests (Makefile.am): Likewise.
14930
14931         Fix fpurge for cygwin.
14932         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
14933         value.
14934         * modules/fpurge-tests (Depends-on): Clean up trash.
14935
14936 2007-04-16  Simon Josefsson  <simon@josefsson.org>
14937
14938         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
14939
14940         * m4/autobuild.m4: Re-indent.
14941
14942 2007-04-13  Bruno Haible  <bruno@clisp.org>
14943
14944         * modules/fpurge-tests: New file.
14945         * tests/test-fpurge.c: New file.
14946
14947         * modules/fpurge: New file.
14948         * lib/fpurge.h: New file.
14949         * lib/fpurge.c: New file.
14950         * m4/fpurge.m4: New file.
14951
14952 2007-04-13  Bruno Haible  <bruno@clisp.org>
14953
14954         * modules/fbufmode-tests: New file.
14955         * tests/test-fbufmode.c: New file.
14956
14957         * modules/fbufmode: New file.
14958         * lib/fbufmode.h: New file.
14959         * lib/fbufmode.c: New file.
14960         * m4/fbufmode.m4: New file.
14961
14962 2007-04-13  Bruno Haible  <bruno@clisp.org>
14963
14964         * modules/fwritable-tests: New file.
14965         * tests/test-fwritable.c: New file.
14966
14967         * modules/fwritable: New file.
14968         * lib/fwritable.h: New file.
14969         * lib/fwritable.c: New file.
14970         * m4/fwritable.m4: New file.
14971
14972 2007-04-13  Bruno Haible  <bruno@clisp.org>
14973
14974         * modules/freadable-tests: New file.
14975         * tests/test-freadable.c: New file.
14976
14977         * modules/freadable: New file.
14978         * lib/freadable.h: New file.
14979         * lib/freadable.c: New file.
14980         * m4/freadable.m4: New file.
14981
14982 2007-04-13  Bruno Haible  <bruno@clisp.org>
14983
14984         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
14985         MOSTLYCLEANFILES.
14986
14987 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
14988
14989         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
14990         gzip bootstrap.conf to avoid dragging in i18n machinery.
14991         (gnulib_tool_option): Use it.
14992
14993 2007-04-13  Bruno Haible  <bruno@clisp.org>
14994
14995         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
14996         %F directives.
14997         * tests/test-vasprintf-posix.c (test_function): Likewise.
14998         * tests/test-snprintf-posix.h (test_function): Likewise.
14999         * tests/test-sprintf-posix.h (test_function): Likewise.
15000         * tests/test-fprintf-posix.h (test_function): Likewise.
15001         * tests/test-printf-posix.h (test_function): Likewise.
15002         * tests/test-fprintf-posix.out: Likewise.
15003
15004 2007-04-13  Bruno Haible  <bruno@clisp.org>
15005
15006         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
15007         * modules/tls-tests (configure.ac): Likewise.
15008         Reported by Arto C. Nirkko <anirkko@insel.ch>.
15009
15010 2007-04-13  Bruno Haible  <bruno@clisp.org>
15011
15012         * lib/tls.c (glthread_tls_get): Fix return type.
15013         Patch by Arto C. Nirkko <anirkko@insel.ch>.
15014
15015 2007-04-12  Eric Blake  <ebb9@byu.net>
15016
15017         * modules/gettime (Depends-on): Remove gettime.
15018         Reported by Dmitry V. Levin.
15019
15020 2007-04-12  Bruno Haible  <bruno@clisp.org>
15021
15022         * modules/fflush (Include): Mention <stdio.h>.
15023         * modules/strtoimax (Include): Mention <inttypes.h>.
15024         * modules/strtoumax (Include): Likewise.
15025
15026 2007-04-12  Eric Blake  <ebb9@byu.net>
15027
15028         * .cvsignore: New file.
15029         * .gitignore: Likewise.
15030
15031 2007-04-12  Bruno Haible  <bruno@clisp.org>
15032
15033         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
15034         not before, since $(LDADD) often contains libgnu.a.
15035         * modules/striconv-tests (test_striconv_LDADD): Likewise.
15036         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
15037         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
15038         Needed on Cygwin.
15039
15040 2007-04-12  Eric Blake  <ebb9@byu.net>
15041
15042         Work around glibc's failure to flush stdin on fclose.
15043         * lib/closein.c (close_stdin): Flush stdin before closing.
15044
15045         Work around glibc's failure to reset seekable stdin on exit.
15046         * modules/closein: New module.
15047         * lib/closein.c: New file.
15048         * lib/closein.h: Likewise.
15049         * m4/closein.m4: Likewise.
15050         * MODULES.html.sh (File stream based Input/Output): Document it.
15051
15052 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15053
15054         * gnulib-tool: Rename generated 'autobuild' script to
15055         'do-autobuild' in --create-megatestdir output.
15056
15057         * doc/gnulib.texi (Build robot for gnulib): Fix.
15058
15059 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15060
15061         * modules/sysexits (Depends-on): Add absolute-header.
15062
15063 2007-04-12  Eric Blake  <ebb9@byu.net>
15064
15065         No need to preserve errno on success.
15066         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
15067         Reported by Bruno Haible.
15068
15069 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15070
15071         * MODULES.html.sh (Support for maintaining and releasing
15072         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
15073
15074 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15075
15076         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
15077
15078 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15079
15080         * modules/autobuild: New module.
15081
15082         * m4/autobuild.m4: New file.
15083
15084 2007-04-11  Bruno Haible  <bruno@clisp.org>
15085
15086         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
15087         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
15088         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
15089         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
15090         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
15097         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15098         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
15100         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15101         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15102         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
15103         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15104         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15105         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
15106         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15107         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15108         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
15109         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15110         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
15112         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15113         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15114         Reported by Eric Blake.
15115
15116 2007-04-11  Bruno Haible  <bruno@clisp.org>
15117
15118         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
15119
15120 2007-04-10  Bruno Haible  <bruno@clisp.org>
15121
15122         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
15123         for NaN and Infinity. Needed on FreeBSD 6.1.
15124         * tests/test-vasnprintf-posix.c (test_function): Undo last change
15125         regarding results for "%010a" of Infinity and NaN.
15126         * tests/test-vasprintf-posix.c (test_function): Likewise.
15127         * tests/test-snprintf-posix.h (test_function): Likewise.
15128         * tests/test-sprintf-posix.h (test_function): Likewise.
15129         * tests/test-fprintf-posix.h (test_function): Likewise.
15130         * tests/test-printf-posix.h (test_function): Likewise.
15131         * tests/test-fprintf-posix.out: Likewise.
15132
15133 2007-04-10  Bruno Haible  <bruno@clisp.org>
15134
15135         * modules/locale-tests: New file.
15136         * tests/test-locale.c: New file.
15137
15138         * modules/locale: New file.
15139         * lib/locale_.h: New file.
15140         * m4/locale_h.m4: New file.
15141
15142 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
15143             Bruno Haible  <bruno@clisp.org>
15144
15145         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
15146         be determined, test for availability of the copysignf, copysign,
15147         copysignl functions.
15148         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
15149         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
15150         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
15151
15152 2007-04-09  Eric Blake  <ebb9@byu.net>
15153
15154         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
15155         * modules/stdio (Makefile.am): Support fflush.
15156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15157         * modules/fflush: New file.
15158         * lib/fflush.c: Likewise.
15159         * m4/fflush.m4: Likewise.
15160         * modules/fflush-tests: New test.
15161         * tests/test-fflush.c: Likewise.
15162         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
15163
15164 2007-04-06  Bruno Haible  <bruno@clisp.org>
15165
15166         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
15167         (VASNPRINTF): Use signbit for faster determination whether to print a
15168         minus sign.
15169         * modules/vasnprintf (Files): Remove lib/float+.h.
15170         * modules/fprintf-posix (Depends-on): Add signbit.
15171         * modules/snprintf-posix (Depends-on): Likewise.
15172         * modules/sprintf-posix (Depends-on): Likewise.
15173         * modules/vasnprintf-posix (Depends-on): Likewise.
15174         * modules/vasprintf-posix (Depends-on): Likewise.
15175         * modules/vfprintf-posix (Depends-on): Likewise.
15176         * modules/vsnprintf-posix (Depends-on): Likewise.
15177         * modules/vsprintf-posix (Depends-on): Likewise.
15178
15179 2007-04-06  Bruno Haible  <bruno@clisp.org>
15180
15181         * tests/test-frexp.c (main): Test also the sign bit of zero results.
15182         * tests/test-frexpl.c (main): Likewise.
15183         * tests/test-ldexpl.c (main): Likewise.
15184         * modules/frexp-tests (Depends-on): Add signbit.
15185         * modules/frexpl-tests (Depdends-on): Likewise.
15186         * modules/ldexpl-tests (Depdends-on): Likewise.
15187
15188 2007-04-06  Bruno Haible  <bruno@clisp.org>
15189
15190         * modules/signbit-tests: New file.
15191         * tests/test-signbit.c: New file.
15192
15193         * modules/signbit: New file.
15194         * lib/signbitf.c: New file.
15195         * lib/signbitd.c: New file.
15196         * lib/signbitl.c: New file.
15197         * m4/signbit.m4: New file.
15198         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
15199         (signbit): New macro.
15200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
15201         REPLACE_SIGNBIT.
15202         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
15203         REPLACE_FREXPL into math.h.
15204
15205 2007-04-06  Bruno Haible  <bruno@clisp.org>
15206
15207         * modules/isnanf-nolibm-tests: New file.
15208         * tests/test-isnanf.c: New file.
15209
15210         * modules/isnanf-nolibm: New file.
15211         * lib/isnanf.h: New file.
15212         * lib/isnanf.c: New file.
15213         * lib/isnan.c: Consider the USE_FLOAT macro.
15214         * m4/isnanf.m4: New file.
15215
15216 2007-04-06  Bruno Haible  <bruno@clisp.org>
15217
15218         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
15219         (Link): New section.
15220
15221         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
15222
15223 2007-04-06  Bruno Haible  <bruno@clisp.org>
15224
15225         Assume the 'long double' type.
15226         * m4/longdouble.m4: Remove file.
15227         * config/srclist.txt: Don't mention longdouble.m4.
15228         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
15229         * lib/float+.h: Likewise.
15230         * lib/frexp.c: Likewise.
15231         * lib/printf-args.h: Likewise.
15232         * lib/printf-args.c: Likewise.
15233         * lib/printf-frexp.c: Likewise.
15234         * lib/printf-parse.c: Likewise.
15235         * lib/vasnprintf.c: Likewise.
15236         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
15237         * m4/intl.m4: Likewise.
15238         * m4/isnanl.m4: Likewise.
15239         * m4/printf.m4: Likewise.
15240         * m4/printf-frexpl.m4: Likewise.
15241         * m4/vasnprintf.m4: Likewise.
15242         * modules/allocsa (Files): Remove m4/longdouble.m4.
15243         * modules/gettext (Files): Likewise.
15244         * modules/relocatable-prog-wrapper (Files): Likewise.
15245         * modules/vasnprintf (Files): Likewise.
15246         * modules/isnanl (Files): Likewise.
15247         (Include): Simplify.
15248         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
15249         (Include): Simplify.
15250         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
15251         (Include): Simplify.
15252         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
15253         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15254         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
15255         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15256         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15257         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15258         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
15259         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15260         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
15261         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15262         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
15263         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
15264         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
15265         * tests/test-isnanl.c: Likewise.
15266         * tests/test-snprintf-posix.h: Likewise.
15267         * tests/test-sprintf-posix.h: Likewise.
15268         * tests/test-vasnprintf-posix.c: Likewise.
15269         * tests/test-vasnprintf-posix2.c: Likewise.
15270         * tests/test-vasprintf-posix.c: Likewise.
15271
15272 2007-04-06  Bruno Haible  <bruno@clisp.org>
15273
15274         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
15275         * lib/math_.h [__DECC]: Include the overridden include file through
15276         #include_next, outside the double-inclusion guard.
15277         * lib/stdio_.h [__DECC]: Likewise.
15278         * lib/stdlib_.h [__DECC]: Likewise.
15279         * lib/string_.h [__DECC]: Likewise.
15280         * lib/time_.h [__DECC]: Likewise.
15281         * lib/wchar_.h [__DECC]: Likewise.
15282         * lib/wctype_.h [__DECC]: Likewise.
15283         * lib/inttypes_.h [__DECC]: Likewise.
15284         Reported by Albert Chin <china@thewrittenword.com> in
15285         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
15286
15287 2007-04-04  Eric Blake  <ebb9@byu.net>
15288
15289         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
15290         1.5.x.
15291
15292 2007-04-04  Bruno Haible  <bruno@clisp.org>
15293
15294         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
15295         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
15296
15297 2007-04-04  Bruno Haible  <bruno@clisp.org>
15298
15299         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
15300         results for "%010a" of Infinity and NaN.
15301         * tests/test-vasprintf-posix.c (test_function): Likewise.
15302         * tests/test-snprintf-posix.h (test_function): Likewise.
15303         * tests/test-sprintf-posix.h (test_function): Likewise.
15304         * tests/test-fprintf-posix.h (test_function): Remove these tests.
15305         * tests/test-printf-posix.h (test_function): Likewise.
15306         * tests/test-fprintf-posix.out: Update.
15307         Needed for FreeBSD 6.1.
15308
15309 2007-04-04  Bruno Haible  <bruno@clisp.org>
15310
15311         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
15312         directly used by the gnulib modules nor by gnulib-tool.
15313
15314 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
15315
15316         * DEPENDENCIES: Give overall description of version dependency
15317         desirability.  Use more-typical names for apps.
15318         Add shell, coreutils, diffutils, grep, tar, gzip.
15319
15320 2007-04-04  Simon Josefsson  <simon@josefsson.org>
15321
15322         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
15323
15324 2007-04-04  Karl Berry  <karl@gnu.org>
15325
15326         * MODULES.html.sh (func_module): missing '.
15327
15328 2007-04-03  Bruno Haible  <bruno@clisp.org>
15329
15330         * modules/argmatch-tests (Makefile.am): New variable
15331         test_argmatch_LDADD.
15332         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
15333         * modules/array-list-tests (Makefile.am): New variable
15334         test_array_list_LDADD.
15335         * modules/array-oset-tests (Makefile.am): New variable
15336         test_array_oset_LDADD.
15337         * modules/avltree-list-tests (Makefile.am): New variable
15338         test_avltree_list_LDADD.
15339         * modules/avltree-oset-tests (Makefile.am): New variable
15340         test_avltree_oset_LDADD.
15341         * modules/avltreehash-list-tests (Makefile.am): New variable
15342         test_avltreehash_list_LDADD.
15343         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
15344         test_canonicalize_lgpl_LDADD.
15345         * modules/carray-list-tests (Makefile.am): New variable
15346         test_carray_list_LDADD.
15347         * modules/dirname-tests (Makefile.am): New variable
15348         test_dirname_LDADD.
15349         * modules/linked-list-tests (Makefile.am): New variable
15350         test_linked_list_LDADD.
15351         * modules/linkedhash-list-tests (Makefile.am): New variable
15352         test_linkedhash_list_LDADD.
15353         * modules/rbtree-list-tests (Makefile.am): New variable
15354         test_rbtree_list_LDADD.
15355         * modules/rbtree-oset-tests (Makefile.am): New variable
15356         test_rbtree_oset_LDADD.
15357         * modules/rbtreehash-list-tests (Makefile.am): New variable
15358         test_rbtreehash_list_LDADD.
15359         * modules/xvasprintf-tests (Makefile.am): New variable
15360         test_xvasprintf_LDADD.
15361         Reported by Eric Blake.
15362
15363 2007-04-03  Eric Blake  <ebb9@byu.net>
15364
15365         * DEPENDENCIES: Weaken m4 requirements.
15366
15367 2007-04-03  Bruno Haible  <bruno@clisp.org>
15368
15369         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
15370         * modules/isnanl-tests (configure.ac): Likewise.
15371
15372 2007-04-03  Ben Pfaff  <blp@gnu.org>
15373
15374         * modules/iconv_open: Add $(srcdir)/ to source directory
15375         references in Makefile fragments that call gperf, to fix VPATH
15376         builds.
15377
15378 2007-04-03  Bruno Haible  <bruno@clisp.org>
15379
15380         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
15381         * lib/ldexpl.c: Undo last change.
15382
15383 2007-04-03  Bruno Haible  <bruno@clisp.org>
15384
15385         * modules/printf-frexpl (Depends-on): Undo last change.
15386         (Files): Add m4/ldexpl.m4.
15387
15388 2007-04-03  Bruno Haible  <bruno@clisp.org>
15389
15390         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
15391         * modules/isnanl (Link): New section.
15392
15393         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
15394         * modules/frexp (Link): New section.
15395
15396         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
15397         * modules/frexpl (Link): New section.
15398
15399         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
15400         * modules/ldexpl (Link): New section.
15401
15402 2007-04-03  Bruno Haible  <bruno@clisp.org>
15403
15404         * modules/TEMPLATE-EXTENDED: New file.
15405         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
15406
15407 2007-04-03  Bruno Haible  <bruno@clisp.org>
15408
15409         * DEPENDENCIES: New file.
15410         Suggested by Simon Josefsson.
15411
15412 2007-04-03  Bruno Haible  <bruno@clisp.org>
15413
15414         * doc/gnulib.texi: Escape @.
15415
15416 2007-04-03  James Youngman  <jay@gnu.org>
15417         and Paul Eggert  <eggert@cs.ucla.edu>
15418
15419         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
15420         birthtime on all systems that have birthtime, not just those which
15421         use st_birthtimensec rather than st_birthtim.  Putting zero in
15422         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
15423         that the birth time is not available for files on an NFS mount.
15424
15425 2007-04-03  Simon Josefsson  <simon@josefsson.org>
15426
15427         * modules/memxor: Move back from crypto/, suggested by Bruno.
15428         * modules/crypto/hmac-sha1: Fix memxor dependency.
15429
15430         * modules/crypto/gc: Moved from ../.
15431
15432 2007-04-02  Eric Blake  <ebb9@byu.net>
15433
15434         * lib/ldexpl.c (includes): Avoid libm.
15435
15436         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
15437
15438 2007-04-02  Bruno Haible  <bruno@clisp.org>
15439
15440         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
15441         on IRIX.
15442
15443 2007-04-02  Bruno Haible  <bruno@clisp.org>
15444
15445         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
15446         x86 or x86_64 platforms running MacOS X.
15447         Reported by Ryan Schmidt <@ryandesign.com>.
15448
15449 2007-04-02  Bruno Haible  <bruno@clisp.org>
15450
15451         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
15452         i386.
15453
15454 2007-04-01  Simon Josefsson  <simon@josefsson.org>
15455
15456         * modules/crypto/arcfour: Moved from ../.
15457         * modules/crypto/arcfour-tests: Moved from ../.
15458         * modules/crypto/arctwo: Moved from ../.
15459         * modules/crypto/arctwo-tests: Moved from ../.
15460         * modules/crypto/des: Moved from ../.
15461         * modules/crypto/des-tests: Moved from ../.
15462         * modules/crypto/gc-arcfour: Moved from ../.
15463         * modules/crypto/gc-arcfour-tests: Moved from ../.
15464         * modules/crypto/gc-arctwo: Moved from ../.
15465         * modules/crypto/gc-arctwo-tests: Moved from ../.
15466         * modules/crypto/gc-des: Moved from ../.
15467         * modules/crypto/gc-des-tests: Moved from ../.
15468         * modules/crypto/gc-hmac-md5: Moved from ../.
15469         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
15470         * modules/crypto/gc-hmac-sha1: Moved from ../.
15471         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
15472         * modules/crypto/gc-md2: Moved from ../.
15473         * modules/crypto/gc-md2-tests: Moved from ../.
15474         * modules/crypto/gc-md4: Moved from ../.
15475         * modules/crypto/gc-md4-tests: Moved from ../.
15476         * modules/crypto/gc-md5: Moved from ../.
15477         * modules/crypto/gc-md5-tests: Moved from ../.
15478         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
15479         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
15480         * modules/crypto/gc-random: Moved from ../.
15481         * modules/crypto/gc-rijndael: Moved from ../.
15482         * modules/crypto/gc-rijndael-tests: Moved from ../.
15483         * modules/crypto/gc-sha1: Moved from ../.
15484         * modules/crypto/gc-sha1-tests: Moved from ../.
15485         * modules/crypto/gc-tests: Moved from ../.
15486         * modules/crypto/hmac-md5: Moved from ../.
15487         * modules/crypto/hmac-md5-tests: Moved from ../.
15488         * modules/crypto/hmac-sha1: Moved from ../.
15489         * modules/crypto/hmac-sha1-tests: Moved from ../.
15490         * modules/crypto/md2: Moved from ../.
15491         * modules/crypto/md2-tests: Moved from ../.
15492         * modules/crypto/md4: Moved from ../.
15493         * modules/crypto/md4-tests: Moved from ../.
15494         * modules/crypto/md5: Moved from ../.
15495         * modules/crypto/md5-tests: Moved from ../.
15496         * modules/crypto/memxor: Moved from ../.
15497         * modules/crypto/rijndael: Moved from ../.
15498         * modules/crypto/rijndael-tests: Moved from ../.
15499         * modules/crypto/sha1: Moved from ../.
15500
15501 2007-03-30  James Youngman  <jay@gnu.org>
15502
15503         * tests/test-stat-time.c (prepare_test): use chmod() rather than
15504         rename() to change the ctime of a file (because ctime is unaffected
15505         by rename on jfs2 on AIX 5.1).
15506         (main): Start by doing cleanup, in case a previous run failed leaving
15507         test files behind.
15508
15509 2007-03-31  Bruno Haible  <bruno@clisp.org>
15510
15511         Support old proprietary implementations of iconv.
15512         * modules/iconv_open: New file.
15513         * lib/iconv_.h: New file.
15514         * m4/iconv_h.m4: New file.
15515         * lib/iconv_open.c: New file.
15516         * lib/iconv_open-aix.gperf: New file.
15517         * lib/iconv_open-hpux.gperf: New file.
15518         * lib/iconv_open-irix.gperf: New file.
15519         * lib/iconv_open-osf.gperf: New file.
15520         * m4/iconv_open.m4: New file.
15521         * modules/linebreak (Depends-on): Add iconv_open.
15522         * modules/striconv (Depends-on): Likewise.
15523         * modules/striconveh (Depends-on): Likewise.
15524         * modules/unicodeio (Depends-on): Likewise.
15525         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
15526         (iconv_t)(-1).
15527         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
15528         conversion if cd is (iconv_t)(-1).
15529         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
15530         is not possible.
15531
15532 2007-03-31  Bruno Haible  <bruno@clisp.org>
15533
15534         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15535         work on Solaris either. Protect also second use of "autodetect_jp".
15536
15537 2007-03-31  Bruno Haible  <bruno@clisp.org>
15538
15539         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
15540         the function is not present.
15541
15542 2007-03-31  Bruno Haible  <bruno@clisp.org>
15543
15544         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
15545         the function is not present.
15546
15547 2007-03-31  Bruno Haible  <bruno@clisp.org>
15548
15549         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
15550         a bug in HP-UX iconv_open().
15551
15552 2007-03-31  Bruno Haible  <bruno@clisp.org>
15553
15554         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
15555         (Mathematics <math.h>): New section, add fpieee.
15556         (Input/output <stdio.h>): Add fseterr.
15557         (Mathematics <math.h>): New section, add printf-frexp.
15558         (Container data structures): Add sublist.
15559         (Core language properties): Add fpucw, inline.
15560         (Functions for greatest-width integer types <inttypes.h>): Add
15561         imaxabs, imaxdiv, inttypes.
15562         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
15563         isnanl-nolibm, ldexp.
15564         (Mathematics <math.h>): New section, add printf-frexpl.
15565         (Support for systems lacking POSIX:2001): Add fprintf-posix,
15566         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
15567         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
15568         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
15569         (Unicode string functions): Add unistr/u*-mbtoucr.
15570         (Java): Add javacomp-script, javaexec-script.
15571         (C#): Add csharpcomp-script, csharpexec-script.
15572         (Support for building libraries and executables): Add havelib,
15573         relocatable-*.
15574         (Support for maintaining and releasing projects): Renamed from
15575         'Support for maintaining and release projects'. Add announce-gen.
15576
15577 2007-03-31  Bruno Haible  <bruno@clisp.org>
15578
15579         * README: Talk primarily about git.
15580         (git and CVS): Renamed from CVS.
15581         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
15582         gnulib is available through git.
15583         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
15584
15585 2007-03-30  Bruno Haible  <bruno@clisp.org>
15586
15587         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
15588         * lib/poll_.h: Likewise.
15589         * lib/stat_.h: Likewise.
15590         * lib/sys_time_.h: Likewise.
15591         * lib/sysexit_.h: Likewise.
15592         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
15593         * lib/stdbool_.h: Likewise.
15594         * lib/byteswap_.h: Add double-inclusion guard.
15595
15596 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
15597
15598         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
15599
15600 2007-03-30  Karl Berry  <karl@gnu.org>
15601
15602         * config/srclist-update: double space after USA in the license
15603         substitution, since that's how it's usually (?) written.
15604
15605 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15606
15607         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
15608         reported by Bruno Haible.
15609
15610 2007-03-29  Bruno Haible  <bruno@clisp.org>
15611
15612         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
15613         a bug in AIX iconv().
15614
15615 2007-03-29  Bruno Haible  <bruno@clisp.org>
15616
15617         * modules/ldexpl-tests: New file.
15618         * tests/test-ldexpl.c: New file.
15619
15620 2007-03-29  Bruno Haible  <bruno@clisp.org>
15621
15622         * lib/ldexpl.c: Include fpucw.h.
15623         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
15624         multiplication.
15625         * modules/ldexpl (Depends-on): Add fpucw.
15626
15627 2007-03-29  Bruno Haible  <bruno@clisp.org>
15628
15629         * modules/ldexpl: New file.
15630         * m4/ldexpl.m4: New file.
15631         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
15632         set.
15633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
15634         REPLACE_LDEXPL.
15635         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
15636         REPLACE_LDEXPL.
15637         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15638         gl_FUNC_LDEXPL_WORKS.
15639         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
15640         * modules/mathl (Files): Remove lib/ldexpl.c.
15641         (Depends-on): Add ldexpl.
15642
15643 2007-03-29  Bruno Haible  <bruno@clisp.org>
15644
15645         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
15646
15647 2007-03-29  Bruno Haible  <bruno@clisp.org>
15648
15649         * tests/test-striconveh.c (main): Don't assume that a direct conversion
15650         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
15651         and possibly also HP-UX.
15652         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15653         work on AIX, IRIX, HP-UX, OSF/1.
15654         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15655         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15656         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15657         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15658         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15659         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15660
15661 2007-03-29  Bruno Haible  <bruno@clisp.org>
15662
15663         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
15664
15665 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15666
15667         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
15668         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
15669
15670 2007-03-29  Eric Blake  <ebb9@byu.net>
15671
15672         * lib/acl-internal.h: Remove redundant include.
15673         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
15674         Cygwin when a file is locked.
15675
15676 2007-03-29  Bruno Haible  <bruno@clisp.org>
15677
15678         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
15679         file.
15680         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
15681
15682 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15683
15684         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
15685         try to remove a parent directory if the child couldn't be removed
15686         (except for the first rmdir, which could fail because the child
15687         doesn't exist).  Problem reported by Jeff Blaine in
15688         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
15689
15690 2007-03-28  Bruno Haible  <bruno@clisp.org>
15691
15692         * lib/striconveh.c (utf8conv_carefully): New function.
15693         (mem_cd_iconveh_internal): Invoke it.
15694
15695 2007-03-28  Bruno Haible  <bruno@clisp.org>
15696
15697         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
15698         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
15699         input.
15700         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
15701         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
15702         unistr/u8-uctomb.
15703
15704 2007-03-28  Bruno Haible  <bruno@clisp.org>
15705
15706         * modules/unistr/u8-mbtoucr: New file.
15707         * lib/unistr/u8-mbtoucr.c: New file.
15708         * modules/unistr/u16-mbtoucr: New file.
15709         * lib/unistr/u16-mbtoucr.c: New file.
15710         * modules/unistr/u16-mbtoucr: New file.
15711         * lib/unistr/u16-mbtoucr.c: New file.
15712         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
15713
15714 2007-03-27  Simon Josefsson  <simon@josefsson.org>
15715             Bruno Haible  <bruno@clisp.org>
15716
15717         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
15718         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
15719         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
15720
15721         * m4/stdio_h.m4: Add stubs for vasprintf too.
15722
15723         * modules/stdio: Support vasprintf in sed command.
15724
15725         * modules/vasprintf: Depend on stdio for prototypes.  Remove
15726         vasprintf.h.  Add stdio module indicator.
15727
15728         * lib/stdio_.h: Declare asprintf and vasprintf, based on
15729         vasprintf.h.
15730
15731         * lib/vasprintf.h: File removed.
15732
15733         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
15734         * lib/vasprintf.c: Ditto.
15735         * lib/xvasprintf.c: Ditto.
15736         * tests/test-vasprintf-posix.c: Ditto.
15737         * tests/test-vasprintf.c: Ditto.
15738
15739 2007-03-27  Bruno Haible  <bruno@clisp.org>
15740
15741         Make vasnprintf multithread-safe.
15742         * lib/vasnprintf.c (decimal_point_char): New function.
15743         (VASNPRINTF): Use it.
15744         Suggested by Simon Josefsson.
15745
15746 2007-03-27  Eric Blake  <ebb9@byu.net>
15747
15748         Support sub-second birthtime on cygwin.
15749         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
15750         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
15751         (get_stat_birthtime): Also work with st_birthtim.
15752
15753 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15754
15755         * lib/stat-time.h (USE_BIRTHTIME): Remove.
15756         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
15757         (get_stat_birthtime_ns): Do not try to use "spare" fields.
15758         (get_stat_birthtime_ns): Simplify compile-time tests.
15759         (get_stat_birthtime): Change the API to look like
15760         get_stat_mtime etc., except return a negative tv_nsec on error.
15761         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
15762         Don't check for "spare" fields.
15763         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
15764         or for struct stat.st_birthtime, as these tests aren't used.
15765         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
15766
15767 2007-03-27  Bruno Haible  <bruno@clisp.org>
15768
15769         * lib/stat-time.h: Include <sys/stat.h>.
15770
15771 2007-03-27  James Youngman  <jay@gnu.org>
15772
15773         * lib/stat-time.h (get_stat_birthtime): New function for
15774           retrieving st_birthtime as provided by UFS2 (hence *BSD).
15775         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
15776           and its variants.
15777         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
15778         * modules/stat-time-test: New file.
15779         * tests/test-stat-time.c: New test, devised by Bruno Haible.
15780
15781 2007-03-26  Bruno Haible  <bruno@clisp.org>
15782
15783         Better support of signalling NaNs.
15784         * lib/atanl.c: Include isnanl.h.
15785         (atanl): Perform test for NaN at the beginning of the function and
15786         through a call to isnanl.
15787         * lib/cosl.c: Include isnanl.h.
15788         (cosl): Perform test for NaN at the beginning of the function and
15789         through a call to isnanl.
15790         * lib/ldexpl.c: Include isnanl.h.
15791         (ldexpl): Perform test for NaN through a call to isnanl.
15792         * lib/logl.c: Include isnanl.h.
15793         (logl): Perform test for NaN at the beginning of the function and
15794         through a call to isnanl.
15795         * lib/sinl.c: Include isnanl.h.
15796         (sinl): Perform test for NaN at the beginning of the function and
15797         through a call to isnanl.
15798         * lib/sqrtl.c: Include isnanl.h.
15799         (sqrtl): Perform test for NaN at the beginning of the function and
15800         through a call to isnanl.
15801         * lib/tanl.c: Include isnanl.h.
15802         (tanl): Perform test for NaN at the beginning of the function and
15803         through a call to isnanl.
15804         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
15805         * modules/mathl (Depends-on): Add isnanl.
15806
15807 2007-03-26  Eric Blake  <ebb9@byu.net>
15808
15809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
15810         regression in logic sense of previous patch.
15811
15812 2007-03-26  Bruno Haible  <bruno@clisp.org>
15813
15814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
15815         unportable shell command "if ! ...".
15816         Reported by Ralf Wildenhues.
15817
15818 2007-03-25  Bruno Haible  <bruno@clisp.org>
15819
15820         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
15821         <sysexits.h> file, and only add EX_CONFIG.
15822         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
15823         absolute file name and whether it is sufficient. Substitute also
15824         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
15825         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
15826         ABSOLUTE_SYSEXITS_H into sysexits.h.
15827
15828 2007-03-25  Bruno Haible  <bruno@clisp.org>
15829
15830         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
15831         hints is NULL.
15832
15833 2007-03-25  Bruno Haible  <bruno@clisp.org>
15834
15835         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
15836         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
15837
15838 2007-03-25  Bruno Haible  <bruno@clisp.org>
15839
15840         * lib/vasnprintf.c: Include langinfo.h.
15841         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
15842         multithread-safe.
15843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
15844         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
15845         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15847         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15848         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15849         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15850         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
15851         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15852         Reported by Simon Josefsson.
15853
15854 2007-03-25  Bruno Haible  <bruno@clisp.org>
15855
15856         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
15857         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
15858         * modules/vasnprintf (Depends-on): Add stdint.
15859
15860 2007-03-25  Bruno Haible  <bruno@clisp.org>
15861
15862         * modules/fpieee: New file.
15863         * m4/fpieee.m4: New file.
15864         * modules/isnan-nolibm (Depends-on): Add fpieee.
15865         * modules/isnanl-nolibm (Depends-on): Add fpieee.
15866         * modules/isnanl (Depends-on): Add fpieee.
15867
15868 2007-03-25  Bruno Haible  <bruno@clisp.org>
15869
15870         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
15871
15872 2007-03-25  Bruno Haible  <bruno@clisp.org>
15873
15874         Avoid test failures on IRIX 6.5.
15875         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
15876         (main): Use it.
15877         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
15878         macros.
15879         (main): Use them.
15880
15881 2007-03-25  Bruno Haible  <bruno@clisp.org>
15882
15883         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
15884         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
15885         exists but doesn't work.
15886         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
15887         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
15888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
15889         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
15890
15891 2007-03-25  Bruno Haible  <bruno@clisp.org>
15892
15893         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
15894         returns inf. Needed on IRIX 6.5.
15895
15896 2007-03-25  Bruno Haible  <bruno@clisp.org>
15897
15898         * tests/test-frexpl.c: Include isnanl-nolibm.h.
15899         (main): Use isnanl instead of x != x idiom.
15900         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
15901
15902         * tests/test-frexp.c: Include isnan.h.
15903         (main): Use isnan instead of x != x idiom.
15904         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
15905
15906 2007-03-25  Bruno Haible  <bruno@clisp.org>
15907
15908         * tests/test-frexp.c (NaN): New function/macro.
15909         (main): Use it instead of 0.0 / 0.0.
15910         * tests/test-isnan.c (NaN): New function/macro.
15911         (main): Use it instead of 0.0 / 0.0.
15912         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
15913         (test_function): Use it instead of 0.0 / 0.0.
15914         * tests/test-vasprintf-posix.c (NaN): New function/macro.
15915         (test_function): Use it instead of 0.0 / 0.0.
15916         * tests/test-snprintf-posix.h (NaN): New function/macro.
15917         (test_function): Use it instead of 0.0 / 0.0.
15918         * tests/test-sprintf-posix.h (NaN): New function/macro.
15919         (test_function): Use it instead of 0.0 / 0.0.
15920         * tests/test-fprintf-posix.h (NaN): New function/macro.
15921         (test_function): Use it instead of 0.0 / 0.0.
15922         * tests/test-printf-posix.h (NaN): New function/macro.
15923         (test_function): Use it instead of 0.0 / 0.0.
15924
15925         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
15926
15927 2007-03-25  Bruno Haible  <bruno@clisp.org>
15928
15929         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
15930
15931 2007-03-25  Bruno Haible  <bruno@clisp.org>
15932
15933         * lib/regexec.c (merge_state_with_log): Make static.
15934
15935 2007-03-25  Bruno Haible  <bruno@clisp.org>
15936
15937         * lib/trigl.c (kernel_rem_pio2): Make static.
15938
15939 2007-03-25  Bruno Haible  <bruno@clisp.org>
15940
15941         * lib/sincosl.c (sincosl_table): Make static.
15942
15943 2007-03-25  Bruno Haible  <bruno@clisp.org>
15944
15945         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
15946         if the compiler does not support C99.
15947
15948 2007-03-25  Bruno Haible  <bruno@clisp.org>
15949
15950         * modules/time (Makefile.am): Ensure all rule action lines start with a
15951         tab.
15952
15953 2007-03-24  Bruno Haible  <bruno@clisp.org>
15954
15955         * modules/tsearch-tests: New file.
15956         * tests/test-tsearch.sh: New file.
15957         * tests/test-tsearch.c: New file, mostly copied from glibc.
15958
15959         * modules/search-tests: New file.
15960         * tests/test-search.c: New file.
15961
15962         * modules/search: New file.
15963         * lib/search_.h: New file, incorporating lib/tsearch.h.
15964         * m4/search_h.m4: New file.
15965         * lib/tsearch.h: Remove file.
15966         * lib/tsearch.c: Include search.h instead of tsearch.h.
15967         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
15968         HAVE_TSEARCH.
15969         * modules/tsearch (Files): Remove lib/tsearch.h.
15970         (Depends-on): Add search.
15971         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
15972         (Include): Change tsearch.h into search.h.
15973
15974 2007-03-24  Bruno Haible  <bruno@clisp.org>
15975
15976         * modules/fpucw: New file.
15977         * lib/fpucw.h: New file.
15978         * lib/frexp.c: Include fpucw.h.
15979         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15980         (FUNC): Use them.
15981         * lib/printf-frexp.c: Include fpucw.h.
15982         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15983         (FUNC): Use them.
15984         * lib/vasnprintf.c: Include fpucw.h.
15985         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
15986         'long double' calculations.
15987         * tests/test-frexpl.c: Include fpucw.h.
15988         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15989         * tests/test-printf-frexpl.c: Include fpucw.h.
15990         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15991         * modules/frexpl (Depends-on): Add fpucw.
15992         * modules/printf-frexpl (Depends-on): Likewise.
15993         * modules/fprintf-posix (Depends-on): Likewise.
15994         * modules/snprintf-posix (Depends-on): Likewise.
15995         * modules/sprintf-posix (Depends-on): Likewise.
15996         * modules/vasnprintf-posix (Depends-on): Likewise.
15997         * modules/vasprintf-posix (Depends-on): Likewise.
15998         * modules/vfprintf-posix (Depends-on): Likewise.
15999         * modules/vsnprintf-posix (Depends-on): Likewise.
16000         * modules/vsprintf-posix (Depends-on): Likewise.
16001         * modules/frexpl-tests (Depends-on): Likewise.
16002         * modules/printf-frexpl-tests (Depends-on): Likewise.
16003
16004 2007-03-24  Bruno Haible  <bruno@clisp.org>
16005
16006         * lib/float+.h: New file.
16007         * lib/isnan.c: Include float+.h.
16008         (SIZE): New macro.
16009         (FUNC): Compare only SIZE bytes of the value.
16010         * lib/vasnprintf.c: Include float+.h.
16011         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
16012         SIZEOF_LDBL or SIZEOF_DBL bytes.
16013         * modules/isnan-nolibm (Files): Add lib/float+.h.
16014         * modules/isnanl-nolibm (Files): Add lib/float+.h.
16015         * modules/isnanl (Files): Add lib/float+.h.
16016         * modules/vasnprintf (Files): Add lib/float+.h.
16017
16018 2007-03-24  Bruno Haible  <bruno@clisp.org>
16019
16020         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
16021         include isnanl-nolibm.h.
16022
16023 2007-03-24  Bruno Haible  <bruno@clisp.org>
16024
16025         * tests/test-read-file.c (main): Don't produce spurious output for
16026         expected situations. Make the test fail if it encountered unexpected
16027         results.
16028
16029 2007-03-24  Bruno Haible  <bruno@clisp.org>
16030
16031         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
16032         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
16033
16034 2007-03-24  Bruno Haible  <bruno@clisp.org>
16035
16036         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
16037
16038 2007-03-24  Bruno Haible  <bruno@clisp.org>
16039
16040         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
16041         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
16042
16043         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
16044         * modules/utf8-ucs4: Turn into a symbolic link to module
16045         unistr/u8-mbtouc.
16046
16047         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
16048         utf8-ucs4-unsafe.
16049         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
16050         unistr/u8-mbtouc-unsafe.
16051
16052         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
16053         * modules/utf16-ucs4: Turn into a symbolic link to module
16054         unistr/u16-mbtouc.
16055
16056         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
16057         utf16-ucs4-unsafe.
16058         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
16059         unistr/u16-mbtouc-unsafe.
16060
16061         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
16062         * modules/ucs4-utf8: Turn into a symbolic link to module
16063         unistr/u8-ubtomb.
16064
16065         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
16066         * modules/ucs4-utf16: Turn into a symbolic link to module
16067         unistr/u16-ubtomb.
16068
16069 2007-03-24  Bruno Haible  <bruno@clisp.org>
16070
16071         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
16072         Enable the function only if HAVE_INLINE.
16073         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
16074         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16075         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
16076         Enable the function only if HAVE_INLINE.
16077         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
16078         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16079         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
16080         Enable the function only if HAVE_INLINE.
16081         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
16082         Enable the function only if HAVE_INLINE.
16083         * modules/utf8-ucs4: Update.
16084         * modules/utf8-ucs4-unsafe: Update.
16085         * modules/utf16-ucs4: Update.
16086         * modules/utf16-ucs4-unsafe: Update.
16087         * modules/ucs4-utf8: Update.
16088         * modules/ucs4-utf16: Update.
16089
16090 2007-03-24  Bruno Haible  <bruno@clisp.org>
16091
16092         * lib/utf8-ucs4.h: Remove file.
16093         * lib/utf8-ucs4-unsafe.h: Remove file.
16094         * lib/utf16-ucs4.h: Remove file.
16095         * lib/utf16-ucs4-unsafe.h: Remove file.
16096         * lib/ucs4-utf8.h: Remove file.
16097         * lib/ucs4-utf16.h: Remove file.
16098         * lib/unistr.h: Include their previous contents.
16099         * m4/utf-ucs4.m4: Remove file.
16100         * m4/ucs4-utf.m4: Remove file.
16101         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
16102         (Depends-on): Add unistr/base.
16103         (configure.ac): Remove gl_UTF_UCS4.
16104         (Makefile.am): Update.
16105         (Include): Change to unistr.h.
16106         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
16107         (Depends-on): Add unistr/base.
16108         (configure.ac): Remove gl_UTF_UCS4.
16109         (Makefile.am): Update.
16110         (Include): Change to unistr.h.
16111         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
16112         (Depends-on): Add unistr/base.
16113         (configure.ac): Remove gl_UTF_UCS4.
16114         (Makefile.am): Update.
16115         (Include): Change to unistr.h.
16116         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
16117         (Depends-on): Add unistr/base.
16118         (configure.ac): Remove gl_UTF_UCS4.
16119         (Makefile.am): Update.
16120         (Include): Change to unistr.h.
16121         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
16122         (Depends-on): Add unistr/base.
16123         (configure.ac): Remove gl_UCS4_UTF.
16124         (Makefile.am): Update.
16125         (Include): Change to unistr.h.
16126         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
16127         (Depends-on): Add unistr/base.
16128         (configure.ac): Remove gl_UCS4_UTF.
16129         (Makefile.am): Update.
16130         (Include): Change to unistr.h.
16131         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
16132         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
16133         utf8-ucs4-unsafe.h.
16134         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
16135         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
16136         utf16-ucs4-unsafe.h.
16137         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
16138         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
16139         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
16140         * lib/unistr/u8-strchr.c: Likewise.
16141         * lib/unistr/u8-strrchr.c: Likewise.
16142         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
16143         * lib/unistr/u16-strchr.c: Likewise.
16144         * lib/unistr/u16-strrchr.c: Likewise.
16145         * lib/striconveh.c: Update.
16146         * lib/linebreak.c: Update.
16147
16148 2007-03-24  Bruno Haible  <bruno@clisp.org>
16149
16150         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
16151         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
16152
16153 2007-03-22  Bruno Haible  <bruno@clisp.org>
16154
16155         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
16156
16157 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
16158
16159         * MODULES.html.sh (File system functions): New module write-any-file.
16160         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
16161         * m4/write-any-file.m4: New files.
16162
16163 2007-03-23  Eric Blake  <ebb9@byu.net>
16164
16165         * gnulib-tool: Rearrange space-tab sequences, since some editors
16166         like to eat them.
16167
16168 2007-03-23  Eric Blake  <ebb9@byu.net>
16169
16170         * lib/version-etc.c (version_etc_va): Update license wording to
16171         be more concise.  Recommended by Richard Stallman.
16172
16173 2007-03-22  Bruno Haible  <bruno@clisp.org>
16174
16175         * lib/poll.c (MSG_PEEK): New fallback definition.
16176
16177 2007-03-22  Bruno Haible  <bruno@clisp.org>
16178
16179         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
16180         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
16181         (main): Update.
16182         Fixes a compilation error on BeOS.
16183
16184 2007-03-22  Bruno Haible  <bruno@clisp.org>
16185
16186         * modules/frexpl-tests: New file.
16187         * tests/test-frexpl.c: New file.
16188
16189         * modules/frexpl: New file.
16190         * m4/frexpl.m4: New file.
16191         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
16192         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
16193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
16194         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
16195         (Depends-on): Add frexpl. Remove isnanl-nolibm.
16196         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
16197
16198 2007-03-22  Bruno Haible  <bruno@clisp.org>
16199
16200         * lib/frexpl.c: Share code with lib/frexp.c.
16201         * modules/mathl (Files): Add lib/frexp.c.
16202         (Depends-on): Add isnanl-nolibm.
16203
16204 2007-03-22  Bruno Haible  <bruno@clisp.org>
16205
16206         * modules/printf-frexp (Files): Add m4/frexp.m4.
16207         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
16208         only if the found frexp function actually works.
16209
16210 2007-03-22  Bruno Haible  <bruno@clisp.org>
16211
16212         * lib/frexp.c: Remove older implementation that uses divisions.
16213
16214 2007-03-21  Bruno Haible  <bruno@clisp.org>
16215
16216         * modules/frexp-tests: New file.
16217         * tests/test-frexp.c: New file.
16218
16219         * modules/frexp: New file.
16220         * lib/frexp.c: New file.
16221         * m4/frexp.m4: New file.
16222         * lib/math_.h (frexp): New declaration.
16223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
16224         REPLACE_FREXP.
16225         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
16226
16227 2007-03-21  Bruno Haible  <bruno@clisp.org>
16228
16229         * modules/isnanl-tests: New file.
16230         * tests/test-isnanl.c: New file.
16231
16232         * modules/isnanl: New file.
16233         * lib/isnanl.h: New file.
16234         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
16235         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
16236         gl_FUNC_ISNANL_WORKS.
16237         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
16238         New macros.
16239
16240 2007-03-21  Bruno Haible  <bruno@clisp.org>
16241
16242         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
16243         lib/isnanl.h.
16244         (Include): Update.
16245         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
16246         * lib/vasnprintf.c: Update.
16247         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
16248         tests/test-isnanl.h, remove tests/test-isnanl.c.
16249         (Makefile.am): Update.
16250         * tests/test-isnanl-nolibm.c: New file.
16251         * tests/test-isnanl.h: New file.
16252         * tests/test-isnanl.c: Remove file.
16253
16254 2007-03-21  Jim Meyering  <jim@meyering.net>
16255
16256         When trying to open ".", treat ESTALE like EACCES.
16257         * lib/savewd.c (savewd_save): Resort to forking not just upon
16258         failure with EACCES, but also when errno is ESTALE.
16259
16260 2007-03-20  Bruno Haible  <bruno@clisp.org>
16261
16262         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
16263         Needed on AIX 5.1. Reported by Matthew Woehlke.
16264
16265 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16266
16267         Suggestions by Bruno Haible:
16268         * lib/acl-internal.h: Include "gettext.h" rather than rolling
16269         our own.
16270         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
16271         * modules/acl (Depends-on): Add gettext.
16272
16273 2007-03-19  Bruno Haible  <bruno@clisp.org>
16274
16275         * modules/iconvme: Remove file.
16276         * lib/iconvme.h: Remove file.
16277         * lib/iconvme.c: Remove file.
16278         * m4/iconvme.m4: Remove file.
16279
16280 2007-03-19  Bruno Haible  <bruno@clisp.org>
16281
16282         * doc/relocatable-maint.texi: Break long shell script line.
16283         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16284
16285 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16286
16287         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
16288         handle file_has_acl.
16289         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
16290         * lib/acl.c: Move header inclusions and related macro defns into
16291         lib/acl-internal.h.
16292         (S_ISLNK): Remove defn, since that's now done for us.
16293         (file_has_acl): Move to lib/file-has-acl.c.
16294         Call acl_trivial if available.  This is the crucial part of the fix.
16295         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
16296         shared within the library.  Rewrite a bit, partly to make it compatible
16297         with the GNU coding style.
16298         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
16299         Remove unnecessary double-quotes.
16300         Don't test for acl_to_text; the build will catch that.
16301         Replace acl_entries if it doesn't exist and it is needed.
16302         Check for -lsec and acl_trivial (as used on Solaris 10).
16303         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
16304         lib/file-has-acl.c.
16305         (Depends-on): Add sys_stat, for S_ISLNK.
16306
16307 2007-03-19  Ben Pfaff  <blp@gnu.org>
16308
16309         * doc/gnulib.texi: Fix typos.
16310         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16311
16312 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16313
16314         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
16315         If size is zero here, buf must be zero.
16316
16317 2007-03-19  Simon Josefsson  <simon@josefsson.org>
16318
16319         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
16320         <bruno@clisp.org>.
16321
16322 2007-03-18  Bruno Haible  <bruno@clisp.org>
16323
16324         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
16325         Suggested by Eric Blake.
16326
16327 2007-03-18  Ben Pfaff  <blp@gnu.org>
16328
16329         * doc/relocatable.texi: Recommend using as prefix a directory
16330         that does not exist and will never be created.  Based on
16331         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
16332         and others.
16333
16334 2007-03-17  Bruno Haible  <bruno@clisp.org>
16335
16336         * lib/fchownat.c: Include lchown.h.
16337
16338 2007-03-17  Bruno Haible  <bruno@clisp.org>
16339
16340         Fix endless loop when the given allocated size was > INT_MAX.
16341         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
16342         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
16343         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
16344         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
16345         * lib/sprintf.c (sprintf): Likewise.
16346
16347 2007-03-17  Bruno Haible  <bruno@clisp.org>
16348
16349         * tests/test-argp-2.sh (func_compare): Output a context diff.
16350
16351 2007-03-17  Bruno Haible  <bruno@clisp.org>
16352
16353         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
16354         locale's decimal-point character.
16355
16356 2007-03-17  Bruno Haible  <bruno@clisp.org>
16357
16358         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
16359         before comparing it. Needed because on some platforms (e.g. x86) a
16360         'long double' occupies less bytes than sizeof (long double).
16361
16362 2007-03-17  Bruno Haible  <bruno@clisp.org>
16363
16364         * tests/test-crc.c (main): Make printf statements 64-bit clean.
16365         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
16366         * tests/test-getaddrinfo.c (simple): Likewise.
16367         * tests/test-read-file.c (main): Likewise.
16368
16369 2007-03-17  Bruno Haible  <bruno@clisp.org>
16370
16371         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
16372
16373 2007-03-17  Bruno Haible  <bruno@clisp.org>
16374
16375         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
16376         unused variable.
16377
16378 2007-03-17  Bruno Haible  <bruno@clisp.org>
16379
16380         * tests/test-c-strcasecmp.c: Include c-strcase.h.
16381         * tests/test-c-strncasecmp.c: Likewise.
16382
16383 2007-03-17  Bruno Haible  <bruno@clisp.org>
16384
16385         * modules/stdlib (Depends-on): Add unistd.
16386         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
16387         Needed for MacOS X 10.3.
16388
16389 2007-03-17  Bruno Haible  <bruno@clisp.org>
16390
16391         * lib/unistr/u-strdup.h: Include <stdlib.h>.
16392
16393 2007-03-17  Bruno Haible  <bruno@clisp.org>
16394
16395         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
16396
16397 2007-03-17  Bruno Haible  <bruno@clisp.org>
16398
16399         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
16400         to reflect files copied from gnulib (with or without modifications).
16401         Suggested by Jim Meyering.
16402
16403 2007-03-17  Eric Blake  <ebb9@byu.net>
16404
16405         * NEWS: Document stdlib change from 2007-02-18.
16406
16407 2007-03-17  Jim Meyering  <jim@meyering.net>
16408
16409         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
16410         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
16411         someone uses a name containing shell meta-characters.
16412         Reported by Alfred M. Szmidt.
16413
16414         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
16415
16416 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16417
16418         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
16419         and copy gettext configuration files only if configure.ac contains
16420         a use of AM_GNU_GETTEXT_VERSION.
16421
16422 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
16423
16424         * build-aux/bootstrap (gnulib_name): New variable.
16425         (gnulib_tool_options): Use it.
16426
16427 2007-03-13  Simon Josefsson  <simon@josefsson.org>
16428
16429         * tests/test-des.c: Use new namespace.
16430
16431 2007-03-15  Bruno Haible  <bruno@clisp.org>
16432
16433         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
16434         Reported by James Youngman <jay@gnu.org>.
16435
16436 2007-03-15  Bruno Haible  <bruno@clisp.org>
16437
16438         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
16439         declared prototype. Needed with cc on OSF/1 5.1.
16440
16441 2007-03-15  Bruno Haible  <bruno@clisp.org>
16442
16443         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
16444         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
16445         (struct gl_list_implementation): Add dispose_fn argument to the
16446         'create_empty', 'create' methods.
16447         (struct gl_list_impl_base): Add field 'dispose_fn'.
16448         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
16449         argument.
16450         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
16451         dispose_fn argument.
16452         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
16453         dispose_fn on the dropped values.
16454         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
16455         dispose_fn argument.
16456         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
16457         dropped values.
16458         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
16459         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16460         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
16461         (gl_tree_remove_node): Call dispose_fn on the dropped value.
16462         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
16463         argument.
16464         (gl_tree_list_free): Call dispose_fn on the dropped values.
16465         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
16466         the dropped values.
16467         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
16468         Add dispose_fn argument.
16469         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
16470         Call dispose_fn on the dropped values.
16471         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
16472         Add dispose_fn argument.
16473         (gl_sublist_create): Initialize the 'dispose_fn' field.
16474         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
16475         * tests/test-array_list.c (main): Update.
16476         * tests/test-carray_list.c (main): Update.
16477         * tests/test-avltree_list.c (main): Update.
16478         * tests/test-rbtree_list.c (main): Update.
16479         * tests/test-avltreehash_list.c (main): Update.
16480         * tests/test-rbtreehash_list.c (main): Update.
16481         * tests/test-linked_list.c (main): Update.
16482         * tests/test-linkedhash_list.c (main): Update.
16483         * tests/test-array_oset.c (main): Update.
16484
16485 2007-03-15  Bruno Haible  <bruno@clisp.org>
16486
16487         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
16488         (gl_oset_create_empty): Add dispose_fn argument.
16489         (struct gl_oset_implementation): Add dispose_fn argument to
16490         'create_empty' method.
16491         (struct gl_oset_impl_base): Add dispose_fn field.
16492         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
16493         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
16494         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
16495         values.
16496         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
16497         (gl_tree_oset_free): Call dispose_fn on the dropped values.
16498         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16499         dropped value.
16500         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
16501         dropped value.
16502         * tests/test-array_oset.c (main): Update.
16503         * tests/test-avltree_oset.c (main): Update.
16504         * tests/test-rbtree_oset.c (main): Update.
16505         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
16506
16507 2007-03-13  Bruno Haible  <bruno@clisp.org>
16508
16509         * tests/test-stdbool.c (i): Update after last patch.
16510
16511 2007-03-12  Bruno Haible  <bruno@clisp.org>
16512
16513         * lib/quotearg.c: Include <wctype.h> early, before the definition of
16514         the iswprint macro. Needed on Solaris 2.5.1.
16515
16516 2007-03-12  Bruno Haible  <bruno@clisp.org>
16517
16518         * tests/test-printf-frexp.c (main): Declare x as volatile.
16519
16520 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16521
16522         * doc/gnulib.texi (Build robot for gnulib): New section.
16523
16524 2007-03-12  Jim Meyering  <jim@meyering.net>
16525
16526         * build-aux/bootstrap: New file.
16527         * build-aux/bootstrap.conf: New file, from coreutils.
16528
16529 2007-03-11  Bruno Haible  <bruno@clisp.org>
16530
16531         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
16532
16533 2007-03-12  Simon Josefsson  <simon@josefsson.org>
16534
16535         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
16536         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
16537         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
16538
16539 2007-03-11  Bruno Haible  <bruno@clisp.org>
16540
16541         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
16542         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
16543
16544 2007-03-11  Bruno Haible  <bruno@clisp.org>
16545
16546         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
16547         formula. Needed for SunPRO C 5.0.
16548
16549 2007-03-11  Bruno Haible  <bruno@clisp.org>
16550
16551         * modules/long-options (Depends-on): Add getopt.
16552
16553 2007-03-11  Bruno Haible  <bruno@clisp.org>
16554
16555         * modules/modechange (Depends-on): Add stdbool.
16556
16557 2007-03-11  Bruno Haible  <bruno@clisp.org>
16558
16559         * modules/i-ring (Depends-on): Add stdbool.
16560
16561 2007-03-11  Bruno Haible  <bruno@clisp.org>
16562
16563         * modules/gc-des (Depends-on): Add stdbool.
16564
16565 2007-03-11  Bruno Haible  <bruno@clisp.org>
16566
16567         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
16568
16569 2007-03-11  Bruno Haible  <bruno@clisp.org>
16570
16571         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
16572
16573 2007-03-11  Bruno Haible  <bruno@clisp.org>
16574
16575         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
16576
16577 2007-03-11  Bruno Haible  <bruno@clisp.org>
16578
16579         * lib/vasnprintf.c (sprintf): Undefine.
16580
16581 2007-03-11  Bruno Haible  <bruno@clisp.org>
16582
16583         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
16584         initializers in SunPRO C and Compaq C compilers.
16585
16586 2007-03-11  Bruno Haible  <bruno@clisp.org>
16587
16588         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
16589         decrementing code ANSI C compliant.
16590
16591 2007-03-11  Bruno Haible  <bruno@clisp.org>
16592
16593         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
16594         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
16595
16596 2007-03-11  Bruno Haible  <bruno@clisp.org>
16597
16598         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
16599         <stdbool.h> substitute doesn't pass.
16600
16601 2007-03-11  Bruno Haible  <bruno@clisp.org>
16602
16603         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
16604
16605 2007-03-11  Bruno Haible  <bruno@clisp.org>
16606
16607         * gnulib-tool (func_create_megatestdir): Create also an autobuild
16608         script, for submission to autobuild.josefsson.org.
16609
16610 2007-03-10  Bruno Haible  <bruno@clisp.org>
16611
16612         * modules/canonicalize-lgpl-tests: New file.
16613         * tests/test-canonicalize-lgpl.sh: New file.
16614         * tests/test-canonicalize-lgpl.c: New file.
16615
16616         * modules/c-strcase-tests: New file.
16617         * tests/test-c-strcase.sh: New file.
16618         * tests/test-c-strcasecmp.c: New file.
16619         * tests/test-c-strncasecmp.c: New file.
16620
16621         * modules/atexit-tests: New file.
16622         * tests/test-atexit.sh: New file.
16623         * tests/test-atexit.c: New file.
16624
16625 2007-03-10  Bruno Haible  <bruno@clisp.org>
16626
16627         * tests/test-binary-io.sh: Use temporary filenames that are not so
16628         likely to clash with those of other tests (in a parallel make).
16629         * tests/test-binary-io.c: Likewise.
16630
16631 2007-03-10  Bruno Haible  <bruno@clisp.org>
16632
16633         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
16634         fallback; use #error instead.
16635         Suggested by Simon Josefsson.
16636
16637 2007-03-10  Bruno Haible  <bruno@clisp.org>
16638
16639         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
16640         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
16641         first and the last.
16642
16643 2007-03-10  Bruno Haible  <bruno@clisp.org>
16644
16645         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
16646
16647 2007-03-10  Bruno Haible  <bruno@clisp.org>
16648
16649         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
16650         "make distcheck".
16651         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
16652         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
16653         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
16654
16655 2007-03-10  Bruno Haible  <bruno@clisp.org>
16656
16657         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
16658         variable.
16659         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
16660         variable.
16661
16662 2007-03-09  Eric Blake  <ebb9@byu.net>
16663         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
16664
16665         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
16666         types are not being provided by gnulib.
16667         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
16668         types are supported.
16669
16670 2007-03-10  Bruno Haible  <bruno@clisp.org>
16671
16672         * lib/stdio_.h (__attribute__): New macro.
16673         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
16674         vsprintf): Specify __attribute__ __format__ for GCC.
16675         Suggested by Eric Blake.
16676
16677 2007-03-09  Bruno Haible  <bruno@clisp.org>
16678
16679         * modules/printf-posix-tests: New file.
16680         * tests/test-printf-posix.sh: New file.
16681         * tests/test-printf-posix.c: New file.
16682
16683         * modules/printf-posix: New file.
16684         * lib/printf.c: New file.
16685         * m4/printf-posix-rpl.m4: New file.
16686         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
16687         REPLACE_PRINTF.
16688         * lib/stdio_.h (printf): New declaration.
16689         (format, __format__, ____printf____, ____scanf____, ____strftime____,
16690         ____strfmon____): New macros.
16691         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
16692         REPLACE_PRINTF.
16693
16694 2007-03-09  Bruno Haible  <bruno@clisp.org>
16695
16696         * tests/test-vasnprintf-posix2.sh: New file.
16697         * tests/test-vasnprintf-posix2.c: New file.
16698         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
16699         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16700         (Makefile.am): Activate test-vasnprintf-posix2.sh.
16701
16702         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
16703         a locale dependent decimal point, rather than always '.'.
16704
16705 2007-03-09  Eric Blake  <ebb9@byu.net>
16706
16707         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
16708         spite of platforms like Tandem/NSK that define it to -1.
16709
16710 2007-03-08  Bruno Haible  <bruno@clisp.org>
16711
16712         * modules/vprintf-posix-tests: New file.
16713         * tests/test-vprintf-posix.sh: New file.
16714         * tests/test-vprintf-posix.c: New file.
16715         * tests/test-printf-posix.h: New file.
16716
16717         * modules/vprintf-posix: New file.
16718         * lib/vprintf.c: New file.
16719         * m4/vprintf-posix.m4: New file.
16720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
16721         REPLACE_VPRINTF.
16722         * lib/stdio_.h (vprintf): New declaration.
16723         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
16724         REPLACE_VPRINTF.
16725
16726 2007-03-08  Bruno Haible  <bruno@clisp.org>
16727
16728         * modules/fprintf-posix-tests: New file.
16729         * tests/test-fprintf-posix.sh: New file.
16730         * tests/test-fprintf-posix.c: New file.
16731
16732         * modules/fprintf-posix: New file.
16733         * lib/fprintf.c: New file.
16734         * m4/fprintf-posix.m4: New file.
16735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
16736         REPLACE_FPRINTF.
16737         * lib/stdio_.h (fprintf): New declaration.
16738         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
16739         REPLACE_FPRINTF.
16740
16741 2007-03-08  Bruno Haible  <bruno@clisp.org>
16742
16743         * modules/vfprintf-posix-tests: New file.
16744         * tests/test-vfprintf-posix.sh: New file.
16745         * tests/test-vfprintf-posix.c: New file.
16746         * tests/test-fprintf-posix.h: New file.
16747         * tests/test-fprintf-posix.out: New file.
16748
16749         * modules/vfprintf-posix: New file.
16750         * lib/vfprintf.c: New file.
16751         * m4/vfprintf-posix.m4: New file.
16752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
16753         REPLACE_VFPRINTF.
16754         * lib/stdio_.h (vfprintf): New declaration.
16755         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
16756         REPLACE_VFPRINTF.
16757
16758 2007-03-08  Bruno Haible  <bruno@clisp.org>
16759
16760         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
16761
16762 2007-03-08  Bruno Haible  <bruno@clisp.org>
16763
16764         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
16765         instead of 'expr' invocations.
16766         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16767         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16768         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16769         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16770         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16771         Suggested by Paul Eggert.
16772
16773 2007-03-08  Bruno Haible  <bruno@clisp.org>
16774
16775         * modules/fseterr-tests: New file.
16776         * tests/test-fseterr.c: New file.
16777
16778         * modules/fseterr: New file.
16779         * lib/fseterr.h: New file.
16780         * lib/fseterr.c: New file.
16781
16782 2007-03-08  Bruno Haible  <bruno@clisp.org>
16783
16784         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
16785         * lib/getopt_.h: Likewise.
16786         * lib/mbswidth.h: Likewise.
16787         * lib/setenv.h: Likewise.
16788         * lib/vasnprintf.h: Likewise.
16789         * lib/vasprintf.h: Likewise.
16790         * lib/verror.h: Likewise.
16791         * lib/xsetenv.h: Likewise.
16792         * lib/xvasprintf.h: Likewise.
16793
16794 2007-03-08  Jim Meyering  <jim@meyering.net>
16795
16796         * users.txt: Add parted.
16797
16798         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
16799
16800 2007-03-07  Bruno Haible  <bruno@clisp.org>
16801
16802         * m4/printf.m4: Make the shell script snippets copy&pastable.
16803
16804 2007-03-02  Bruno Haible  <bruno@clisp.org>
16805
16806         * lib/netinet_in_.h: New file.
16807         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
16808         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
16809         * modules/netinet_in (Files): Add lib/netinet_in_.h.
16810         (Depends-on): Add absolute-header.
16811         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
16812         into netinet/in.h.
16813
16814 2007-03-03  Bruno Haible  <bruno@clisp.org>
16815
16816         * lib/sys_select_.h: New file.
16817         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
16818         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
16819         * modules/sys_select (Files): Add lib/sys_select_.h.
16820         (Depends-on): Add absolute-header.
16821         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
16822         into sys/select.h.
16823
16824 2007-03-02  Bruno Haible  <bruno@clisp.org>
16825
16826         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
16827         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
16828         values.
16829         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
16830         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
16831         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
16832         * modules/sys_socket (Depends-on): Add absolute-header.
16833         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
16834         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
16835         (Include): Remove requirement of inclusion of <sys/types.h>.
16836
16837 2007-03-02  Bruno Haible  <bruno@clisp.org>
16838
16839         * lib/byteswap_.h (bswap_32): Fix formula.
16840
16841 2007-03-06  Bruno Haible  <bruno@clisp.org>
16842
16843         * modules/sprintf-posix-tests: New file.
16844         * tests/test-sprintf-posix.c: New file.
16845
16846         * modules/sprintf-posix: New file.
16847         * lib/sprintf.c: New file.
16848         * m4/sprintf-posix.m4: New file.
16849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
16850         REPLACE_SPRINTF.
16851         * lib/stdio_.h (sprintf): New declaration.
16852         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
16853         REPLACE_SPRINTF.
16854
16855 2007-03-06  Bruno Haible  <bruno@clisp.org>
16856
16857         * modules/vsprintf-posix-tests: New file.
16858         * tests/test-vsprintf-posix.c: New file.
16859         * tests/test-sprintf-posix.h: New file.
16860
16861         * modules/vsprintf-posix: New file.
16862         * lib/vsprintf.c: New file.
16863         * m4/vsprintf-posix.m4: New file.
16864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
16865         REPLACE_VSPRINTF.
16866         * lib/stdio_.h (vsprintf): New declaration.
16867         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
16868         REPLACE_VSPRINTF.
16869
16870 2007-03-06  Bruno Haible  <bruno@clisp.org>
16871
16872         * modules/vsnprintf (Depend-on): Remove minmax.
16873
16874 2007-03-06  Bruno Haible  <bruno@clisp.org>
16875
16876         * modules/snprintf-posix-tests: New file.
16877         * tests/test-snprintf-posix.c: New file.
16878
16879         * modules/snprintf-posix: New file.
16880         * m4/snprintf-posix.m4: New file.
16881         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
16882         gl_FUNC_SNPRINTF.
16883         (gl_FUNC_SNPRINTF): Invoke it.
16884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
16885         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
16886         is set.
16887         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
16888
16889 2007-03-06  Bruno Haible  <bruno@clisp.org>
16890
16891         * modules/vsnprintf-posix-tests: New file.
16892         * tests/test-vsnprintf-posix.c: New file.
16893         * tests/test-snprintf-posix.h: New file.
16894
16895         * modules/vsnprintf-posix: New file.
16896         * m4/vsnprintf-posix.m4: New file.
16897         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
16898         gl_FUNC_VSNPRINTF.
16899         (gl_FUNC_VSNPRINTF): Invoke it.
16900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
16901         * lib/stdio_.h (vsnprintf): Define as a replacement if
16902         REPLACE_VSNPRINTF is set.
16903         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
16904
16905 2007-03-06  Bruno Haible  <bruno@clisp.org>
16906
16907         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
16908         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
16909
16910 2007-03-06  Bruno Haible  <bruno@clisp.org>
16911
16912         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
16913         (asinl): Declare also if HAVE_DECL_ASINL is set.
16914         (atanl): Declare also if HAVE_DECL_ATANL is set.
16915         (ceill): Declare also if HAVE_DECL_CEILL is set.
16916         (cosl): Declare also if HAVE_DECL_COSL is set.
16917         (expl): Declare also if HAVE_DECL_EXPL is set.
16918         (floorl): Declare also if HAVE_DECL_FLOORL is set.
16919         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
16920         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
16921         (logl): Declare also if HAVE_DECL_LOGL is set.
16922         (sinl): Declare also if HAVE_DECL_SINL is set.
16923         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
16924         (tanl): Declare also if HAVE_DECL_TANL is set.
16925         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
16926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
16927         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
16928         declaration of frexpl, ldexpl.
16929         * modules/printf-frexpl (Depends-on): Add math.
16930         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
16931
16932 2007-03-05  Bruno Haible  <bruno@clisp.org>
16933
16934         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
16935         frexpl and ldexpl are declared.
16936         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
16937
16938 2007-03-05  Bruno Haible  <bruno@clisp.org>
16939
16940         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
16941         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
16942
16943 2007-03-05  Bruno Haible  <bruno@clisp.org>
16944
16945         * lib/stdio_.h: Include <stddef.h>.
16946
16947 2007-03-05  Bruno Haible  <bruno@clisp.org>
16948
16949         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
16950
16951 2007-03-05  Bruno Haible  <bruno@clisp.org>
16952
16953         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
16954         NetBSD 4, from Ralf Wildenhues.
16955
16956 2007-03-04  Bruno Haible  <bruno@clisp.org>
16957
16958         * lib/vasprintf.h: Update #if logic for the case when the functions
16959         exist but are overridden.
16960
16961 2007-03-04  Bruno Haible  <bruno@clisp.org>
16962
16963         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
16964         implementations: glibc-2.4 and MacOS X 10.3.
16965         * tests/test-vasnprintf-posix.c (test_function): Test also the case
16966         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
16967         * tests/test-vasprintf-posix.c (test_function): Likewise.
16968
16969 2007-03-04  Bruno Haible  <bruno@clisp.org>
16970
16971         * modules/vasprintf-posix-tests: New file.
16972         * tests/test-vasprintf-posix.c: New file.
16973
16974         * modules/vasprintf-posix: New file.
16975         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
16976         defined.
16977         * m4/vasprintf-posix.m4: New file.
16978         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
16979         gl_FUNC_VASPRINTF.
16980         (gl_FUNC_VASPRINTF): Invoke it.
16981         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
16982         here.
16983         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
16984
16985 2007-03-04  Bruno Haible  <bruno@clisp.org>
16986
16987         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
16988         REPLACE_GETTIMEOFDAY.
16989         * modules/sys_time (Makefile.am): Likewise.
16990         * m4/sys_time_h.m4: Likewise.
16991         * m4/gettimeofday.m4: Likewise.
16992
16993 2007-03-04  Bruno Haible  <bruno@clisp.org>
16994
16995         * modules/vasnprintf-posix-tests: New file.
16996         * tests/test-vasnprintf-posix.c: New file.
16997
16998         * modules/vasnprintf-posix: New file.
16999         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
17000         printf-frexpl.h.
17001         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
17002         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
17003         REPLACE_VASNPRINTF is defined.
17004         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
17005         gl_FUNC_VASNPRINTF.
17006         (gl_FUNC_VASNPRINTF): Invoke it.
17007         * m4/vasnprintf-posix.m4: New file.
17008         * m4/printf.m4: New file.
17009
17010 2007-03-04  Bruno Haible  <bruno@clisp.org>
17011
17012         Compile progreloc.c only if --enable-relocatable is specified.
17013         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
17014         if --enable-relocatable was specified.
17015         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
17016         lib_SOURCES.
17017
17018 2007-03-04  Jim Meyering  <jim@meyering.net>
17019
17020         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
17021         Use it consistently, rather than enumerating errno constants.
17022
17023 2007-03-04  Bruno Haible  <bruno@clisp.org>
17024
17025         * modules/xvasprintf-tests: New file.
17026         * tests/test-xvasprintf.c: New file.
17027
17028         * modules/vasprintf-tests: New file.
17029         * tests/test-vasprintf.c: New file.
17030
17031         * modules/vasnprintf-tests: New file.
17032         * tests/test-vasnprintf.c: New file.
17033
17034         * modules/vsnprintf-tests: New file.
17035         * tests/test-vsnprintf.c: New file.
17036
17037         * modules/snprintf-tests: New file.
17038         * tests/test-snprintf.c: New file.
17039
17040 2007-03-04  Bruno Haible  <bruno@clisp.org>
17041
17042         Compile relocatable.c only if --enable-relocatable is specified.
17043         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
17044         gl_RELOCATABLE_LIBRARY.
17045         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
17046         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
17047         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
17048         gl_RELOCATABLE_LIBRARY.
17049         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
17050         (Makefile.am): Remove lib_SOURCES.
17051         * modules/relocatable-lib-lgpl (configure.ac): Invoke
17052         gl_RELOCATABLE_LIBRARY.
17053         (Makefile.am): Remove lib_SOURCES.
17054         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
17055         always.
17056         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17057         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
17058
17059 2007-03-04  Bruno Haible  <bruno@clisp.org>
17060
17061         * modules/argmatch-tests: New file.
17062         * tests/test-argmatch.c: New file.
17063
17064         * tests/test-allocsa.c (main): Halve the number of loop runs.
17065
17066         * modules/alloca-opt-tests: New file.
17067         * tests/test-alloca-opt.c: New file.
17068
17069 2007-03-04  Jim Meyering  <jim@meyering.net>
17070
17071         Work around difference between Linux ACLs and Solaris 10 ZFS.
17072         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
17073         for EINVAL.
17074
17075 2007-03-03  Bruno Haible  <bruno@clisp.org>
17076
17077         * modules/relocatable-prog (Depends-on): Add back progreloc's
17078         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
17079
17080 2007-03-03  Bruno Haible  <bruno@clisp.org>
17081
17082         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
17083         * modules/relocatable-lib: New file.
17084
17085 2007-03-03  Bruno Haible  <bruno@clisp.org>
17086
17087         * modules/relocatable-prog: Renamed from modules/relocatable.
17088         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
17089
17090 2007-03-03  Bruno Haible  <bruno@clisp.org>
17091
17092         * modules/relocatable-script (Files): Add doc/relocatable.texi,
17093         m4/relocatable-lib.m4.
17094         (Depends-on): Remove 'relocatable'.
17095         (configure.ac): Add gl_RELOCATABLE_NOP.
17096
17097 2007-03-03  Bruno Haible  <bruno@clisp.org>
17098
17099         * modules/relocatable-prog-wrapper: New file.
17100         * modules/relocatable (Depends-on): Add it. Remove all other
17101         dependencies except progname.
17102         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
17103
17104         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
17105         (gl_FUNC_STRERROR): Nop.
17106         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
17107
17108         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
17109         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
17110
17111         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
17112         (gl_FUNC_READLINK): Update.
17113
17114         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
17115
17116 2007-03-03  Bruno Haible  <bruno@clisp.org>
17117
17118         * lib/xreadlink.c: Include <unistd.h> unconditionally.
17119         * modules/xreadlink (Depends-on): Add unistd.
17120         * modules/xreadlink-with-size (Depends-on): Likewise.
17121
17122 2007-03-03  Bruno Haible  <bruno@clisp.org>
17123
17124         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
17125         extracted from gt_FUNC_SETENV.
17126         (gt_FUNC_SETENV): Remove macro.
17127         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
17128         remove gt_FUNC_SETENV.
17129
17130 2007-03-03  Bruno Haible  <bruno@clisp.org>
17131
17132         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
17133         ENABLE_RELOCATABLE here.
17134         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
17135
17136 2007-03-03  Bruno Haible  <bruno@clisp.org>
17137
17138         * modules/rbtreehash-list-tests (Depends-on): Add progname.
17139         * tests/test-rbtreehash_list.c: Include progname.h.
17140         (main): Call set_program_name.
17141
17142         * modules/rbtree-oset-tests (Depends-on): Add progname.
17143         * tests/test-rbtree_oset.c: Include progname.h.
17144         (main): Call set_program_name.
17145
17146         * modules/rbtree-list-tests (Depends-on): Add progname.
17147         * tests/test-rbtree_list.c: Include progname.h.
17148         (main): Call set_program_name.
17149
17150         * modules/linked-list-tests (Depends-on): Add progname.
17151         * tests/test-linked_list.c: Include progname.h.
17152         (main): Call set_program_name.
17153
17154 2007-03-03  Bruno Haible  <bruno@clisp.org>
17155
17156         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
17157         All uses of __restrict changed to _Restrict_.
17158         * lib/glob_.h (__restrict): Remove macro.
17159
17160 2007-03-02  Bruno Haible  <bruno@clisp.org>
17161
17162         * modules/gettext (configure.ac): Require gettext infrastructure
17163         from version 0.16.1.
17164
17165 2007-03-02  Bruno Haible  <bruno@clisp.org>
17166
17167         * modules/linkedhash-list-tests (Depends-on): Add progname.
17168         * tests/test-linkedhash_list.c: Include progname.h.
17169         (main): Call set_program_name.
17170
17171         * modules/carray-list-tests (Depends-on): Add progname.
17172         * tests/test-carray_list.c: Include progname.h.
17173         (main): Call set_program_name.
17174
17175         * modules/avltreehash-list-tests (Depends-on): Add progname.
17176         * tests/test-avltreehash_list.c: Include progname.h.
17177         (main): Call set_program_name.
17178
17179         * modules/avltree-oset-tests (Depends-on): Add progname.
17180         * tests/test-avltree_oset.c: Include progname.h.
17181         (main): Call set_program_name.
17182
17183         * modules/avltree-list-tests (Depends-on): Add progname.
17184         * tests/test-avltree_list.c: Include progname.h.
17185         (main): Call set_program_name.
17186
17187         * modules/array-oset-tests (Depends-on): Add progname.
17188         * tests/test-array_oset.c: Include progname.h.
17189         (main): Call set_program_name.
17190
17191         * modules/array-list-tests (Depends-on): Add progname.
17192         * tests/test-array_list.c: Include progname.h.
17193         (main): Call set_program_name.
17194
17195         * modules/argp-tests (Depends-on): Add progname.
17196         * tests/test-argp.c: Include argp.h first. Include progname.h.
17197         (main): Call set_program_name.
17198
17199 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
17200
17201         * doc/gnulib-tool.texi (Initial import): Reword description of
17202         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
17203         limited effect even if defined after the first system include.
17204
17205 2007-03-01  Bruno Haible  <bruno@clisp.org>
17206
17207         * build-aux/config.libpath: Update to libtool-1.5.22.
17208         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17209
17210 2007-03-01  Bruno Haible  <bruno@clisp.org>
17211
17212         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
17213         foo_CFLAGS.
17214         Reported by Ralf Wildenhues.
17215
17216 2007-03-01  Bruno Haible  <bruno@clisp.org>
17217
17218         * build-aux/install-reloc: Remove object files left over by some
17219         compilers.
17220         Reported by Ralf Wildenhues.
17221
17222 2007-03-01  Bruno Haible  <bruno@clisp.org>
17223
17224         * build-aux/install-reloc: Break long lines.
17225
17226 2007-03-01  Bruno Haible  <bruno@clisp.org>
17227
17228         * doc/relocatable.texi: Document that it may not work on OpenBSD.
17229         Reported by Ralf Wildenhues.
17230
17231 2007-03-01  Bruno Haible  <bruno@clisp.org>
17232
17233         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
17234         include ordering constraints.
17235
17236 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
17237
17238         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
17239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
17240         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
17241         as another example.
17242         * lib/time_.h: Fix misspelling.
17243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17244         Require gl_HEADER_TIME_H_DEFAULTS.
17245         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
17246         * m4/time_r.m4 (gl_TIME_R): Likewise.
17247         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
17248
17249 2007-03-01  Bruno Haible  <bruno@clisp.org>
17250
17251         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
17252         * m4/utimens.m4 (gl_UTIMENS): Likewise.
17253
17254 2007-03-01  Jim Meyering  <jim@meyering.net>
17255
17256         * modules/xreadlink (Maintainer): Add my name.
17257         * modules/xreadlink-with-size (Depends-on): Alphabetize.
17258
17259 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
17260             Bruno Haible  <bruno@clisp.org>
17261
17262         * build-aux/install-reloc: Compile also c-ctype.c.
17263         * build-aux/relocatable.sh.in: New file.
17264         * doc/relocatable.texi: New file.
17265         * doc/relocatable-maint.texi: New file.
17266         * doc/gnulib.texi: Include relocatable-maint.texi.
17267         * lib/progreloc.c: Include unistd.h unconditionally.
17268         * lib/relocwrapper.c: Include unistd.h unconditionally.
17269         Include c-ctype.h.
17270         (add_dotbin): Use c_tolower.
17271         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
17272         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
17273         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
17274         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
17275         to m4/relocatable-lib.m4.
17276         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
17277         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
17278         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
17279         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
17280         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
17281         * modules/relocatable: New file.
17282         * modules/relocatable-lib: New file.
17283         * modules/relocatable-script: New file.
17284
17285 2007-02-28  Bruno Haible  <bruno@clisp.org>
17286
17287         Import --enable-relocatable infrastructure.
17288         * build-aux/config.libpath: New file, from GNU gettext.
17289         * build-aux/install-reloc: New file, from GNU gettext.
17290         * build-aux/reloc-ldflags: New file, from GNU gettext.
17291         * lib/relocatable.h: New file, from GNU gettext.
17292         * lib/relocatable.c: New file, from GNU gettext.
17293         * lib/relocwrapper.c: New file, from GNU gettext.
17294         * m4/relocatable.m4: New file, from GNU gettext.
17295
17296 2007-02-28  Bruno Haible  <bruno@clisp.org>
17297
17298         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
17299
17300         * modules/xreadlink: New file, from GNU gettext with modifications.
17301         * lib/xreadlink.c: New file, from GNU gettext.
17302         * lib/xreadlink.h: Add comments.
17303         (xreadlink): New declaration.
17304
17305         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
17306         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
17307         lib/xreadlink-with-size.c.
17308         (configure.ac): Remove gl_XREADLINK invocation.
17309         (Makefile.am): Augment lib_SOURCES.
17310         * m4/xreadlink.m4: Remove file.
17311         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
17312         (xreadlink_with_size): Renamed from xreadink.
17313         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
17314         * modules/canonicalize (Depends-on): Replace xreadlink with
17315         xreadlink-with-size.
17316         * lib/canonicalize.c (canonicalize_filename_mode): Update.
17317
17318 2007-02-25  Jim Meyering  <jim@meyering.net>
17319
17320         * build-aux/announce-gen: When complaining about excess arguments,
17321         list them.
17322
17323 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17324
17325         * README: Document signed integer overflow situation more
17326         accurately.
17327
17328 2007-02-25  Bruno Haible  <bruno@clisp.org>
17329
17330         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
17331         'a' or 'A' conversion.
17332
17333 2007-02-25  Bruno Haible  <bruno@clisp.org>
17334
17335         * modules/filename: Renamed from modules/pathname.
17336         (Files): Replace lib/pathname.h with lib/filename.h. Replace
17337         lib/concatpath.c with lib/concat-filename.c.
17338         (Makefile.am): Update.
17339         (Include): Replace pathname.h with filename.h.
17340         * lib/filename.h: Renamed from lib/pathname.h.
17341         (concatenated_filename): Renamed from concatenated_pathname.
17342         * lib/concat-filename.c: Renamed from lib/concatpath.c.
17343         (concatenated_filename): Renamed from concatenated_pathname.
17344         * lib/findprog.c: Include filename.h instead of pathname.h.
17345         (find_in_path): Update.
17346         * lib/javacomp.c: Include filename.h instead of pathname.h.
17347         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
17348         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
17349         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
17350         is_oldgcj_14_13_usable, is_javac_usable): Update.
17351         * lib/javaexec.c: Include filename.h instead of pathname.h.
17352         (execute_java_class): Update.
17353         * modules/findprog: Update.
17354         * modules/javacomp: Update.
17355         * modules/javaexec: Update.
17356         * MODULES.html.sh (File system functions): Add 'filename', remove
17357         'pathname'.
17358
17359 2007-02-25  Bruno Haible  <bruno@clisp.org>
17360
17361         * modules/printf-frexpl-tests: New file.
17362         * tests/test-printf-frexpl.c: New file.
17363
17364         * modules/printf-frexpl: New file.
17365         * lib/printf-frexpl.h: New file.
17366         * lib/printf-frexpl.c: New file.
17367         * m4/printf-frexpl.m4: New file.
17368
17369 2007-02-25  Bruno Haible  <bruno@clisp.org>
17370
17371         * modules/printf-frexp-tests: New file.
17372         * tests/test-printf-frexp.c: New file.
17373
17374         * modules/printf-frexp: New file.
17375         * lib/printf-frexp.h: New file.
17376         * lib/printf-frexp.c: New file.
17377         * m4/printf-frexp.m4: New file.
17378
17379 2007-02-25  Bruno Haible  <bruno@clisp.org>
17380
17381         Assume automake >= 1.10 for the tests.
17382         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
17383         * modules/arctwo-tests: Likewise.
17384         * modules/argp-tests: Likewise.
17385         * modules/avltree-list-tests: Likewise.
17386         * modules/avltree-oset-tests: Likewise.
17387         * modules/avltreehash-list-tests: Likewise.
17388         * modules/carray-list-tests: Likewise.
17389         * modules/crc-tests: Likewise.
17390         * modules/des-tests: Likewise.
17391         * modules/gc-arcfour-tests: Likewise.
17392         * modules/gc-arctwo-tests: Likewise.
17393         * modules/gc-des-tests: Likewise.
17394         * modules/gc-hmac-md5-tests: Likewise.
17395         * modules/gc-hmac-sha1-tests: Likewise.
17396         * modules/gc-md2-tests: Likewise.
17397         * modules/gc-md4-tests: Likewise.
17398         * modules/gc-md5-tests: Likewise.
17399         * modules/gc-pbkdf2-sha1-tests: Likewise.
17400         * modules/gc-rijndael-tests: Likewise.
17401         * modules/gc-sha1-tests: Likewise.
17402         * modules/gc-tests: Likewise.
17403         * modules/getaddrinfo-tests: Likewise.
17404         * modules/hmac-md5-tests: Likewise.
17405         * modules/hmac-sha1-tests: Likewise.
17406         * modules/linked-list-tests: Likewise.
17407         * modules/linkedhash-list-tests: Likewise.
17408         * modules/lock-tests: Likewise.
17409         * modules/md2-tests: Likewise.
17410         * modules/md4-tests: Likewise.
17411         * modules/md5-tests: Likewise.
17412         * modules/rbtree-list-tests: Likewise.
17413         * modules/rbtree-oset-tests: Likewise.
17414         * modules/rbtreehash-list-tests: Likewise.
17415         * modules/read-file-tests: Likewise.
17416         * modules/rijndael-tests: Likewise.
17417         * modules/stdint-tests: Likewise.
17418         * modules/tls-tests: Likewise.
17419
17420 2007-02-24  Bruno Haible  <bruno@clisp.org>
17421
17422         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
17423         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
17424         function; instead check whether isnan with a double argument links.
17425         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
17426         function; instead check whether isnan with a 'long double' argument
17427         links.
17428         Reported by Eric Blake <ebb9@byu.net>.
17429
17430 2007-02-24  Bruno Haible  <bruno@clisp.org>
17431
17432         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
17433         defined.
17434         * lib/isnanl.c: Remove all code. Just include isnan.c.
17435         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
17436
17437 2007-02-25  Jim Meyering  <jim@meyering.net>
17438
17439         Avoid conflicting types for 'unsetenv' on FreeBSD.
17440         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
17441         conflicting with FreeBSD's (5.0 and 6.1) function declaration
17442         in stdlib.h.
17443
17444 2007-02-24  Bruno Haible  <bruno@clisp.org>
17445
17446         * modules/isnanl-nolibm-tests: New file.
17447         * tests/test-isnanl.c: New file.
17448
17449         * modules/isnanl-nolibm: New file.
17450         * lib/isnanl.h: New file.
17451         * lib/isnanl.c: New file.
17452         * m4/isnanl.m4: New file.
17453
17454 2007-02-24  Bruno Haible  <bruno@clisp.org>
17455
17456         * modules/isnan-nolibm-tests: New file.
17457         * tests/test-isnan.c: New file.
17458
17459         * modules/isnan-nolibm: New file.
17460         * lib/isnan.h: New file.
17461         * lib/isnan.c: New file.
17462         * m4/isnan.m4: New file.
17463
17464 2007-02-24  Bruno Haible  <bruno@clisp.org>
17465
17466         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
17467         assume that an exponent fits in 20 bits.
17468
17469 2007-02-24  Jim Meyering  <jim@meyering.net>
17470
17471         * m4/regex.m4: Update the description of the configure-time option,
17472         --without-included-regex, to state accurately what the defaults are,
17473         and perhaps to give people an idea why using this option is risky.
17474
17475 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17476
17477         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
17478         loops on small arguments.  This attempts to avoid the problem
17479         Bruno Haible reported for AIX 4.3.2 in
17480         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
17481
17482 2007-02-23  Bruno Haible  <bruno@clisp.org>
17483
17484         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
17485         Needed for help2man.
17486
17487 2007-02-23  Karl Berry  <karl@gnu.org>
17488
17489         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
17490         exists, foo.h should be cvs-ignored, not committed.
17491
17492 2007-02-23  Eric Blake  <ebb9@byu.net>
17493
17494         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
17495         * lib/stat-time.h (includes): Likewise.
17496         * lib/utimecmp.c (includes): Likewise.
17497         * lib/utimens.h (includes): Likewise.
17498         * lib/getdate.y (includes): Also include "timespec.h" for use
17499         internal to the module.
17500         * modules/utimens (Depends-on): Revert yesterday's patch.
17501         * modules/nanosleep (Depends-on): Add missing dependency.
17502
17503 2007-02-22  Bruno Haible  <bruno@clisp.org>
17504
17505         * lib/glob.c: Don't include getlogin_r.h.
17506
17507 2007-02-22  Jim Meyering  <jim@meyering.net>
17508
17509         * modules/utimens (Depends-on): Add timespec, required for
17510         utimens.h's inclusion of timespec.h.
17511
17512 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
17513
17514         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
17515         long unreadable paths in GNU/Linux.  Problem reported by Andreas
17516         Schwab in
17517         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
17518         I'll try to think of a better way to fix the Solaris problem.
17519
17520         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
17521         like glibc; on Solaris 10, it fails with errno == EINVAL.
17522         POSIX says the behavior is unspecified if the first argument is NULL,
17523         so play it safe and never pass NULL to the system getcwd.
17524
17525 2007-02-21  Jim Meyering  <jim@meyering.net>
17526
17527         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
17528         of gettimeofday.  It would conflict with the one now always
17529         provided via sys_time_.h.  Reported by Matthew Woehlke, as
17530         an IRIX 6.5 build failure.
17531
17532 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17533
17534         Minor fixups to port to Solaris 10 with Sun C 5.8.
17535         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
17536         * modules/getcwd (Depends-on): Add dirfd.
17537         * lib/putenv.c (putenv): #undef it.
17538         (rpl_putenv): New decl.
17539         (malloc, free): Include <stdlib.h> rather than prototyping separately.
17540
17541 2007-02-20  Bruno Haible  <bruno@clisp.org>
17542
17543         * modules/stdio-tests: New file.
17544         * tests/test-stdio.c: New file.
17545
17546         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
17547         (Depends-on): Add stdio.
17548         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17549         (Include): Use <stdio.h> instead of vsnprintf.h.
17550         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17551         HAVE_DECL_VSNPRINTF.
17552         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
17553
17554         * modules/snprintf (Files): Remove lib/snprintf.h.
17555         (Depends-on): Add stdio.
17556         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17557         (Include): Use <stdio.h> instead of snprintf.h.
17558         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
17559         HAVE_DECL_SNPRINTF.
17560         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
17561         * lib/getaddrinfo.c: Likewise.
17562
17563         * modules/stdio: New file.
17564         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
17565         * lib/snprintf.h: Remove file.
17566         * lib/vsnprintf.h: Remove file.
17567         * lib/.cppi-disable: Remove snprintf.h.
17568         * m4/stdio_h.m4: New file.
17569         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
17570
17571 2007-02-20  Jim Meyering  <jim@meyering.net>
17572
17573         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
17574         used by e.g., mingw.  From Bruno Haible.
17575
17576 2007-02-19  Bruno Haible  <bruno@clisp.org>
17577
17578         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
17579         warnings.
17580         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17581
17582 2007-02-19  Bruno Haible  <bruno@clisp.org>
17583
17584         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
17585         from mingw users.
17586
17587 2007-02-19  Bruno Haible  <bruno@clisp.org>
17588
17589         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
17590         warnings.
17591         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
17592
17593 2007-02-19  Jim Meyering  <jim@meyering.net>
17594
17595         Don't use FD after a successful "fdopendir (fd)".
17596         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
17597         Reset it by calling dirfd on the just-obtained DIR*.
17598
17599         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
17600         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
17601
17602 2007-02-18  Bruno Haible  <bruno@clisp.org>
17603
17604         * lib/readlink.c: Include <unistd.h>.
17605         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
17606         HAVE_READLINK.
17607         * modules/readlink (Depends-on): Add unistd.
17608         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17609         (Include): Add <unistd.h>.
17610
17611         * lib/getlogin_r.h: Remove file.
17612         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
17613         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
17614         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
17615         HAVE_DECL_GETLOGIN_R.
17616         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
17617         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17618         (Include): Use <unistd.h> instead of getlogin_r.h.
17619
17620         * lib/getcwd.h: Remove file.
17621         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
17622         * lib/xgetcwd.c: Likewise.
17623         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
17624         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
17625         * modules/getcwd (Files): Remove lib/getcwd.h.
17626         (Depends-on): Add unistd.
17627         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17628         (Include): Use <unistd.h> instad of getcwd.h.
17629
17630         * lib/ftruncate.c: Include <unistd.h> first.
17631         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
17632         Set HAVE_FTRUNCATE.
17633         * modules/ftruncate (Depends-on): Add unistd.
17634         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17635
17636         * lib/fchdir.c: Include <unistd.h> first.
17637         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
17638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
17639         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
17640         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17641         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
17642
17643         * lib/dup2.c: Include <unistd.h> first.
17644         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
17645         HAVE_DUP2.
17646         * modules/dup2 (Depends-on): Add unistd.
17647         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17648
17649         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
17650         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
17651         REPLACE_CHOWN. Don't define chown as a macro here.
17652         * modules/chown (Depends-on): Add unistd.
17653         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17654
17655         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
17656         Add definition for GL_LINK_WARNING.
17657         (chown, dup2): New declarations.
17658         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
17659         link warning.
17660         (ftruncate): New declaration.
17661         (getcwd): New declaration, taken from old getcwd.h.
17662         (getlogin_r): New declaration, taken from old getlogin_r.h.
17663         (readlink): New declaration.
17664         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
17665         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
17666         (gl_PREREQ_UNISTD): Remove macro.
17667         (gl_UNISTD_MODULE_INDICATOR): New macro.
17668         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
17669         many new variables. Don't set UNISTD_H.
17670         * modules/unistd (Description): Change.
17671         (Depends-on): Add link-warning.
17672         (configure.ac): Update.
17673         (Makefile.am): Create unistd.h always. Substitute many new variables
17674         into it.
17675
17676 2007-02-18  Bruno Haible  <bruno@clisp.org>
17677
17678         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
17679         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
17680         HAVE_GETSUBOPT.
17681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
17682         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
17683         * lib/getsubopt.h: Remove file.
17684         * modules/getsubopt (Files): Remove lib/getsubopt.h.
17685         (Depends-on): Add stdlib.
17686         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17687         (Includes): Use <stdlib.h> instead of getsubopt.h.
17688         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
17689         Set HAVE_GETSUBOPT.
17690         * lib/getsubopt.c: Don't include getsubopt.h.
17691
17692 2007-02-18  Bruno Haible  <bruno@clisp.org>
17693
17694         * modules/fchdir (Depends-on): Add dup2.
17695
17696 2007-02-18  Bruno Haible  <bruno@clisp.org>
17697
17698         * lib/stdlib_.h: Handle glibc's special invocation convention
17699         specially.
17700
17701 2007-02-18  Bruno Haible  <bruno@clisp.org>
17702
17703         * modules/stdlib-tests: New file.
17704         * tests/test-stdlib.c: New file.
17705
17706         * modules/mkstemp (Files): Remove lib/mkstemp.h.
17707         (Depends-on): Add stdlib.
17708         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17709         (Includes): Use <stdlib.h> instead of mkstemp.h.
17710         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17711         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
17712         * lib/mkstemp.c: Don't include mkstemp.h.
17713         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
17714         * lib/stdlib--.h: Don't include mkstemp.h.
17715
17716         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
17717         (Depends-on): Add stdlib.
17718         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17719         (Includes): Use <stdlib.h> instead of mkdtemp.h.
17720         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
17721         HAVE_MKDTEMP.
17722         * lib/mkdtemp.c: Don't include mkdtemp.h.
17723         * lib/clean-temp.c: Don't include mkdtemp.h.
17724
17725         * modules/exit (Files): Remove lib/exit.h.
17726         (Depends-on): Add stdlib.
17727         (Makefile.am): Remove lib_SOURCES.
17728         (Include): Use <stdlib.h> instead of exit.h.
17729         * lib/argmatch.c: Don't include exit.h.
17730         * lib/execute.c: Likewise.
17731         * lib/pagealign_alloc.c: Likewise.
17732         * lib/pipe.c: Likewise.
17733         * lib/wait-process.c: Likewise.
17734         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
17735         * lib/exitfail.c: Likewise.
17736         * lib/savewd.c: Likewise.
17737         * lib/xsetenv.c: Likewise.
17738
17739         * modules/stdlib: New file.
17740         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
17741         and extra comments about mkstemp().
17742         * lib/exit.h: Remove file.
17743         * lib/mkdtemp.h: Remove file.
17744         * lib/mkstemp.h: Remove file.
17745         * m4/stdlib_h.m4: New file.
17746         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
17747
17748 2007-02-18  Bruno Haible  <bruno@clisp.org>
17749
17750         * modules/math-tests: New file.
17751         * tests/test-math.c: New file.
17752
17753         * modules/math: New file.
17754         * modules/mathl (Files): Remove lib/mathl.h.
17755         (Depends-on): Add math.
17756         (Makefile.am): Don't mention mathl.h.
17757         (Include): Use <math.h> instead of mathl.h.
17758         * lib/math_.h: New file.
17759         * lib/mathl.h: Remove file.
17760         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
17761         mathl.h.
17762         * lib/asinl.c: Likewise.
17763         * lib/atanl.c: Likewise.
17764         * lib/ceill.c: Likewise.
17765         * lib/cosl.c: Likewise.
17766         * lib/expl.c: Likewise.
17767         * lib/floorl.c: Likewise.
17768         * lib/frexpl.c: Likewise.
17769         * lib/ldexpl.c: Likewise.
17770         * lib/logl.c: Likewise.
17771         * lib/sincosl.c: Likewise.
17772         * lib/sinl.c: Likewise.
17773         * lib/sqrtl.c: Likewise.
17774         * lib/tanl.c: Likewise.
17775         * lib/trigl.c: Likewise.
17776         * m4/math_h.m4: New file.
17777         * MODULES.html.sh (Mathematics): Add math.
17778
17779 2007-02-17  Bruno Haible  <bruno@clisp.org>
17780
17781         * modules/wctype-tests: New file.
17782         * tests/test-wctype.c: New file.
17783
17784         * modules/wchar-tests: New file.
17785         * tests/test-wchar.c: New file.
17786
17787         * modules/unistd-tests: New file.
17788         * tests/test-unistd.c: New file.
17789
17790         * modules/time-tests: New file.
17791         * tests/test-time.c: New file.
17792
17793         * modules/sysexits-tests: New file.
17794         * tests/test-sysexits.c: New file.
17795
17796         * modules/sys_time-tests: New file.
17797         * tests/test-sys_time.c: New file.
17798
17799         * modules/sys_stat-tests: New file.
17800         * tests/test-sys_stat.c: New file.
17801
17802         * modules/sys_socket-tests: New file.
17803         * tests/test-sys_socket.c: New file.
17804
17805         * modules/sys_select-tests: New file.
17806         * tests/test-sys_select.c: New file.
17807
17808         * modules/string-tests: New file.
17809         * tests/test-string.c: New file.
17810
17811         * modules/stdbool-tests: New file.
17812         * tests/test-stdbool.c: New file.
17813
17814         * modules/netinet_in-tests: New file.
17815         * tests/test-netinet_in.c: New file.
17816
17817         * modules/inttypes-tests: New file.
17818         * tests/test-inttypes.c: New file.
17819
17820         * modules/fcntl-tests: New file.
17821         * tests/test-fcntl.c: New file.
17822
17823         * modules/byteswap-tests: New file.
17824         * tests/test-byteswap.c: New file.
17825
17826         * modules/arpa_inet-tests: New file.
17827         * tests/test-arpa_inet.c: New file.
17828
17829 2007-02-17  Bruno Haible  <bruno@clisp.org>
17830
17831         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
17832         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
17833         if the corresponding module is not enabled. Emit link warnings if
17834         the function is used nevertheless.
17835         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
17836         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
17837         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
17838         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
17839         * modules/inttypes (Depends-on): Add link-warning.
17840         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17841         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
17842         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
17843         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
17844         * modules/imaxdiv (configure.ac): Likewise.
17845         * modules/strtoimax (configure.ac): Likewise.
17846         * modules/strtoumax (configure.ac): Likewise.
17847
17848 2007-02-17  Bruno Haible  <bruno@clisp.org>
17849
17850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
17851         gl_STRING_MODULE_INDICATOR_DEFAULTS.
17852         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
17853         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
17854
17855 2007-02-17  Bruno Haible  <bruno@clisp.org>
17856
17857         * modules/link-warning: New file.
17858         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
17859         * lib/string_.h (GL_LINK_WARNING): Remove definition.
17860         * modules/string (Depends-on): Add link-warning.
17861         (Makefile.am): Copy the contents of build-aux/link-warning.h into
17862         string.h.
17863         * MODULES.html.sh (Support for building libraries and executables): Add
17864         link-warning.
17865
17866 2007-02-17  Bruno Haible  <bruno@clisp.org>
17867
17868         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
17869         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
17870         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
17871         long lines.
17872
17873 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
17874             Bruno Haible  <bruno@clisp.org>
17875
17876         * modules/tmpfile: New file.
17877         * lib/tmpfile.c: New file.
17878         * m4/tmpfile.m4: New file.
17879         * MODULES.html.sh (func_all_modules): New section "Input/output".
17880
17881 2007-02-15  Bruno Haible  <bruno@clisp.org>
17882
17883         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
17884         (supports_delete_on_close): New function.
17885         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
17886
17887 2007-02-14  Bruno Haible  <bruno@clisp.org>
17888
17889         * modules/mbspcasecmp-tests: New file.
17890         * tests/test-mbspcasecmp.sh: New file.
17891         * tests/test-mbspcasecmp.c: New file.
17892
17893         New module mbspcasecmp.
17894         * modules/mbspcasecmp: New file.
17895         * lib/mbspcasecmp.c: New file.
17896         * lib/string_.h (strncasecmp): Change warning message.
17897         (mbspcasecmp): New declaration.
17898         * m4/mbspcasecmp.m4: New file.
17899         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17900         GNULIB_MBSPCASECMP.
17901         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
17902         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
17903
17904 2007-02-14  Bruno Haible  <bruno@clisp.org>
17905
17906         * modules/mbsncasecmp-tests: New file.
17907         * tests/test-mbsncasecmp.sh: New file.
17908         * tests/test-mbsncasecmp.c: New file.
17909
17910         New module mbsncasecmp.
17911         * modules/mbsncasecmp: New file.
17912         * lib/mbsncasecmp.c: New file.
17913         * lib/string_.h (mbsncasecmp): New declaration.
17914         * m4/mbsncasecmp.m4: New file.
17915         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17916         GNULIB_MBSNCASECMP.
17917         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
17918         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
17919
17920 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17921
17922         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
17923         Verify that it doesn't overlap with our flags.
17924         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
17925         do not have the desired effect in multibyte locales; instead, use
17926         mbscasecmp.
17927         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
17928         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
17929         we don't require GNU fnmatch ourselves (if our users require it, they
17930         should do so explicitly).
17931
17932         Fix regex code so it doesn't rely on strcasecmp.
17933         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
17934         Otherwise, include gnulib's langinfo.h.
17935         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
17936         undesirable behavior in non-C locales.  Instead, rely on localecharset.
17937         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
17938         * modules/regex (FILES): Remove m4/codeset.m4.
17939         (Depends-on): Add localcharset.  Remove strcase.
17940
17941 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17942
17943         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
17944         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17945
17946 2007-02-13  Bruno Haible  <bruno@clisp.org>
17947
17948         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
17949         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17950
17951 2007-02-12  Bruno Haible  <bruno@clisp.org>
17952
17953         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17954         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
17955         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
17956         time warning rather than a link error.
17957
17958 2007-02-12  Bruno Haible  <bruno@clisp.org>
17959
17960         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
17961         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17962         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17963
17964 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17965
17966         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
17967         args, not 2.
17968
17969 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17970
17971         New module 'time', so that apps can include <time.h> as per
17972         POSIX and GNU instead of separate include files like time_r.h
17973         and timegm.h.  This implementation tries out a simpler approach
17974         for replacing decls in standard include files (as compared to
17975         the string module), somewhat as an experiment.
17976
17977         * config/srclist.txt: Comment out mktime.c for now.
17978         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
17979         since it doesn't apply any more.  Use generic wording instead.
17980         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
17981         'time'.
17982         * lib/time_.h, m4/time_h.m4, modules/time: New files.
17983         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
17984         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
17985         Don't include <sys/types.h>; no longer needed since we assume C89.
17986         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
17987         * lib/strftime.c: Likewise.
17988         * lib/time_r.c: Likewise.
17989         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
17990         * lib/nanosleep.c: Include <time.h> first, to check interface.
17991         * lib/strptime.c: Likewise.
17992         * lib/time_r.c: Likewise.
17993         * lib/timegm.c: Likewise.
17994         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
17995         needed.
17996         * lib/timegm.c: Don't include timegm.h; no longer needed.
17997         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
17998         time.h now handles any problems in that area.
17999         (struct timespec, nanosleep): Remove; time.h now arranges for these.
18000         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
18001         that time.h defines struct timespec.
18002         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
18003         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
18004         handles that.
18005         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
18006         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
18007         needed.  Set REPLACE_LOCALTIME.
18008         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
18009         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
18010         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
18011         nanosleep; time_h.m4 now does that.  Don't require
18012         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
18013         module handles this now.
18014         * modules/getdate (Depends-on): Remove timespec.  Add time.
18015         * modules/nanosleep (Depends-on): Likewise.
18016         * modules/stat-time (Depends-on): Likewise.
18017         * modules/nanosleep (Include): Include time.h, not timespec.h.
18018         * modules/strptime (Files): Remove lib/strptime.h.
18019         (Depends-on): Add extensions, time.
18020         (Include): Include time.h, not strptime.h.
18021         * modules/time_r (Files): Remove lib/time_r.h.
18022         (Depends-on): Add time.
18023         (Include): Include time.h, not time_r.h.
18024         * modules/timegm: Likewise.
18025         * modules/timespec (Description): Now does timespec-related decls
18026         of our own, instead of struct timespec itself.
18027         (Depends-on): Add time; remove extensions.
18028         (Maintainer): Add self.
18029         * modules/utimecmp (Depends-on): Add time; remove timespec.
18030         * modules/utimens (Depends-on): Likewise.
18031         * modules/xnanosleep (Depends-on): Likewise.
18032
18033 2007-02-11  Bruno Haible  <bruno@clisp.org>
18034
18035         * lib/c-strstr.c: Include allocsa.h.
18036         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18037         * lib/c-strcasestr.c: Include allocsa.h.
18038         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18039         * lib/strcasestr.c: Include allocsa.h.
18040         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18041         * lib/mbsstr.c: Include allocsa.h.
18042         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18043         allocsa/freesa instead of malloc/free.
18044         * lib/mbscasestr.c: Include allocsa.h.
18045         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18046         allocsa/freesa instead of malloc/free.
18047         * modules/c-strstr (Depends-on): Add allocsa.
18048         * modules/c-strcasestr (Depends-on): Likewise.
18049         * modules/strcasestr (Depends-on): Likewise.
18050         * modules/mbsstr (Depends-on): Likewise.
18051         * modules/mbscasestr (Depends-on): Likewise.
18052
18053 2007-02-11  Bruno Haible  <bruno@clisp.org>
18054
18055         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
18056
18057         * modules/mbsspn-tests: New file.
18058         * tests/test-mbsspn.sh: New file.
18059         * tests/test-mbsspn.c: New file.
18060
18061 2007-02-11  Bruno Haible  <bruno@clisp.org>
18062
18063         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
18064
18065         * modules/mbspbrk-tests: New file.
18066         * tests/test-mbspbrk.sh: New file.
18067         * tests/test-mbspbrk.c: New file.
18068
18069 2007-02-11  Bruno Haible  <bruno@clisp.org>
18070
18071         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
18072         unneeded cast.
18073
18074         * modules/mbscspn-tests: New file.
18075         * tests/test-mbscspn.sh: New file.
18076         * tests/test-mbscspn.c: New file.
18077
18078 2007-02-11  Bruno Haible  <bruno@clisp.org>
18079
18080         * modules/mbscasecmp-tests: New file.
18081         * tests/test-mbscasecmp.sh: New file.
18082         * tests/test-mbscasecmp.c: New file.
18083
18084 2007-02-11  Bruno Haible  <bruno@clisp.org>
18085
18086         Ensure O(n) worst-case complexity of mbscasestr.
18087         * lib/mbscasestr.c: Include stdbool.h.
18088         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18089         functions.
18090         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
18091         the bookkeeping indicates that it's worth it.
18092         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
18093
18094         * modules/mbscasestr-tests: New file.
18095         * tests/test-mbscasestr1.c: New file.
18096         * tests/test-mbscasestr2.sh: New file.
18097         * tests/test-mbscasestr2.c: New file.
18098         * tests/test-mbscasestr3.sh: New file.
18099         * tests/test-mbscasestr3.c: New file.
18100         * tests/test-mbscasestr4.sh: New file.
18101         * tests/test-mbscasestr4.c: New file.
18102         * m4/locale-tr.m4: New file.
18103
18104 2007-02-11  Bruno Haible  <bruno@clisp.org>
18105
18106         Ensure O(n) worst-case complexity of mbsstr.
18107         * lib/mbsstr.c: Include stdbool.h.
18108         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18109         functions.
18110         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
18111         bookkeeping indicates that it's worth it.
18112         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
18113
18114         * modules/mbsstr-tests: New file.
18115         * tests/test-mbsstr1.c: New file.
18116         * tests/test-mbsstr2.sh: New file.
18117         * tests/test-mbsstr2.c: New file.
18118         * tests/test-mbsstr3.sh: New file.
18119         * tests/test-mbsstr3.c: New file.
18120         * m4/locale-fr.m4: New file.
18121
18122 2007-02-11  Bruno Haible  <bruno@clisp.org>
18123
18124         * lib/mbsrchr.c (mbsrchr): Fix bug.
18125
18126         * modules/mbsrchr-tests: New file.
18127         * tests/test-mbsrchr.sh: New file.
18128         * tests/test-mbsrchr.c: New file.
18129
18130 2007-02-11  Bruno Haible  <bruno@clisp.org>
18131
18132         * lib/mbschr.c (mbschr): Fix bug.
18133
18134         * modules/mbschr-tests: New file.
18135         * tests/test-mbschr.sh: New file.
18136         * tests/test-mbschr.c: New file.
18137         * m4/locale-zh.m4: New file.
18138
18139 2007-02-11  Bruno Haible  <bruno@clisp.org>
18140
18141         Support for copying multibyte string iterators.
18142         * lib/mbiter.h: Include <string.h>.
18143         (mbiter_multi_copy): New function.
18144         (mbi_copy): New macro.
18145         * lib/mbuiter.h: Include <string.h>.
18146         (mbuiter_multi_copy): New function.
18147         (mbui_copy): New macro.
18148
18149 2007-02-11  Bruno Haible  <bruno@clisp.org>
18150
18151         New module mbslen.
18152         * modules/mbslen: New file.
18153         * lib/mbslen.c: New file.
18154         * lib/string_.h (mbslen): New declaration.
18155         * m4/mbslen.m4: New file.
18156         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18157         GNULIB_MBSLEN.
18158         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
18159         * MODULES.html.sh (Internationalization functions): Add mbslen.
18160
18161 2007-02-11  Bruno Haible  <bruno@clisp.org>
18162
18163         Ensure O(n) worst-case complexity of strcasestr substitute.
18164         * lib/strcasestr.c: Include stdbool.h.
18165         (knuth_morris_pratt): New function.
18166         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18167         bookkeeping indicates that it's worth it.
18168         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
18169
18170         * modules/strcasestr-tests: New file.
18171         * tests/test-strcasestr.c: New file.
18172
18173 2007-02-11  Bruno Haible  <bruno@clisp.org>
18174
18175         Ensure O(n) worst-case complexity of c_strcasestr.
18176         * lib/c-strcasestr.c: Include stdbool.h, string.h.
18177         (knuth_morris_pratt): New function.
18178         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
18179         the bookkeeping indicates that it's worth it.
18180         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
18181
18182         * modules/c-strcasestr-tests: New file.
18183         * tests/test-c-strcasestr.c: New file.
18184
18185 2007-02-11  Bruno Haible  <bruno@clisp.org>
18186
18187         Ensure O(n) worst-case complexity of c_strstr.
18188         * lib/c-strstr.c: Include stdbool.h, string.h.
18189         (knuth_morris_pratt): New function.
18190         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
18191         bookkeeping indicates that it's worth it.
18192         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
18193
18194         * lib/c-strstr.c: Complete rewrite for maintainability.
18195
18196         * modules/c-strstr-tests: New file.
18197         * tests/test-c-strstr.c: New file.
18198
18199 2007-02-11  Bruno Haible  <bruno@clisp.org>
18200
18201         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
18202         5.2.1 and earlier, whereby \055 was treated just like the range
18203         delimiter '-'.
18204         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18205
18206 2007-02-08  Bruno Haible  <bruno@clisp.org>
18207
18208         * modules/regex (Depends-on): Add stdbool.
18209         Reported by Dalibor Topic <robilad@kaffe.org>.
18210
18211 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
18212
18213         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
18214         Prefer returning from main to exiting from it.
18215         Remove unnecessary parens after sizeof.
18216
18217 2007-02-05  Bruno Haible  <bruno@clisp.org>
18218
18219         New module mbssep.
18220         * modules/mbssep: New file.
18221         * lib/mbssep.c: New file.
18222         * lib/string_.h (strsep): Add a conditional link warning.
18223         (mbssep): New declaration.
18224         * m4/mbssep.m4: New file.
18225         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18226         GNULIB_MBSSEP.
18227         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
18228         * MODULES.html.sh (Internationalization functions): Add mbssep.
18229
18230 2007-02-05  Bruno Haible  <bruno@clisp.org>
18231
18232         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
18233         Optimize search in case of 1 delimiter.
18234
18235 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
18236
18237         * lib/acl.h: Include sys/types.h before sys/acl.h.
18238
18239 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
18240
18241         Merge upstream fix for glibc bugzilla #3957:
18242
18243         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
18244
18245         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
18246         bit for RE_HAT_LISTS_NOT_NEWLINE.
18247         (build_charclass_op): Remove bogus comment.
18248
18249 2007-02-05  Simon Josefsson  <simon@josefsson.org>
18250
18251         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
18252
18253 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18254
18255         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
18256         * lib/memmem.c [!defined _LIBC]: Include config.h.
18257
18258 2007-02-04  Bruno Haible  <bruno@clisp.org>
18259
18260         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
18261         warning message.
18262
18263 2007-02-04  Bruno Haible  <bruno@clisp.org>
18264
18265         New module mbstok_r.
18266         * modules/mbstok_r: New file.
18267         * lib/mbstok_r.c: New file.
18268         * lib/string_.h (strtok_r): Change argument names to match the
18269         comments. Add a conditional link warning.
18270         (mbstok_r): New declaration.
18271         * m4/mbstok_r.m4: New file.
18272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18273         GNULIB_MBSTOK_R.
18274         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
18275         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
18276
18277 2007-02-04  Bruno Haible  <bruno@clisp.org>
18278
18279         New module mbsspn.
18280         * modules/mbsspn: New file.
18281         * lib/mbsspn.c: New file.
18282         * lib/string_.h (strspn): Add a conditional link warning.
18283         (mbsspn): New declaration.
18284         * m4/mbsspn.m4: New file.
18285         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18286         GNULIB_MBSSPN.
18287         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
18288         * MODULES.html.sh (Internationalization functions): Add mbsspn.
18289
18290 2007-02-04  Bruno Haible  <bruno@clisp.org>
18291
18292         New module mbspbrk.
18293         * modules/mbspbrk: New file.
18294         * lib/mbspbrk.c: New file.
18295         * lib/string_.h (strpbrk): Add a conditional link warning.
18296         (mbspbrk): New declaration.
18297         * m4/mbspbrk.m4: New file.
18298         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18299         GNULIB_MBSPBRK.
18300         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
18301         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
18302
18303 2007-02-04  Bruno Haible  <bruno@clisp.org>
18304
18305         New module mbscspn.
18306         * modules/mbscspn: New file.
18307         * lib/mbscspn.c: New file.
18308         * lib/string_.h (strcspn): Add a conditional link warning.
18309         (mbscspn): New declaration.
18310         * m4/mbscspn.m4: New file.
18311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18312         GNULIB_MBSCSPN.
18313         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
18314         * MODULES.html.sh (Internationalization functions): Add mbscspn.
18315
18316 2007-02-04  Bruno Haible  <bruno@clisp.org>
18317
18318         New module mbscasestr, reduced goal of strcasestr.
18319         * modules/mbscasestr: New file.
18320         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
18321         (mbscasestr): Renamed from strcasestr.
18322         * lib/strcasestr.c: Don't include mbuiter.h.
18323         (strcasestr): Remove support for multibyte locales.
18324         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
18325         Change the conditional link warning.
18326         (mbscasestr): New declaration.
18327         * m4/mbscasestr.m4: New file.
18328         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
18329         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
18330         REPLACE_STRCASESTR.
18331         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
18332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18333         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18334         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
18335         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
18336         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18337         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
18338         (Depends-on): Remove mbuiter.
18339         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
18340
18341 2007-02-04  Bruno Haible  <bruno@clisp.org>
18342
18343         Simplify handling of strncasecmp.
18344         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
18345         the conditional link warning.
18346         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18347         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
18348         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
18349         * modules/strcase (configure.ac): Don't invoke
18350         gl_STRING_MODULE_INDICATOR.
18351         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
18352
18353 2007-02-04  Bruno Haible  <bruno@clisp.org>
18354
18355         New module mbscasecmp, reduced goal of strcasecmp.
18356         * modules/mbscasecmp: New file.
18357         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
18358         (mbscasecmp): Renamed from strcasecmp.
18359         * lib/strcasecmp.c: Don't include mbuiter.h.
18360         (strcasecmp): Remove support for multibyte locales.
18361         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
18362         Change the conditional link warning.
18363         (mbscasecmp): New declaration.
18364         * m4/mbscasecmp.m4: New file.
18365         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
18366         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
18367         REPLACE_STRCASECMP.
18368         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
18369         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18370         GNULIB_MBSCASECMP.
18371         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
18372         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
18373         * modules/strcase (Files): Remove m4/mbrtowc.m4.
18374         (Depends-on): Remove mbuiter.
18375         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
18376
18377 2007-02-04  Bruno Haible  <bruno@clisp.org>
18378
18379         New module mbsstr. Remove module strstr.
18380         * modules/mbsstr: New file.
18381         * modules/strstr: Remove file.
18382         * lib/mbsstr.c: Renamed from lib/strstr.c.
18383         (mbsstr): Renamed from strstr.
18384         * lib/string_.h (strstr): Remove declaration. Change the conditional
18385         link warning.
18386         (mbsstr): New declaration.
18387         * m4/mbsstr.m4: New file.
18388         * m4/strstr.m4: Remove file.
18389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18390         REPLACE_STRSTR.
18391         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
18392         Don't initialize GNULIB_STRSTR.
18393         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
18394         substitute GNULIB_STRSTR and REPLACE_STRSTR.
18395         * MODULES.html.sh (Internationalization functions): Add mbsstr.
18396         (Support for systems lacking ANSI C 89): Remove strstr.
18397
18398 2007-02-04  Bruno Haible  <bruno@clisp.org>
18399
18400         New module mbsrchr.
18401         * modules/mbsrchr: New file.
18402         * lib/mbsrchr.c: New file.
18403         * lib/string_.h (strrchr): Add a conditional link warning.
18404         (mbsrchr): New declaration.
18405         * m4/mbsrchr.m4: New file.
18406         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18407         GNULIB_MBSRCHR.
18408         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
18409         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
18410
18411 2007-02-04  Bruno Haible  <bruno@clisp.org>
18412
18413         New module mbschr.
18414         * modules/mbschr: New file.
18415         * lib/mbschr.c: New file.
18416         * lib/string_.h (strchr): Add a conditional link warning.
18417         (mbschr): New declaration.
18418         * m4/mbschr.m4: New file.
18419         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18420         GNULIB_MBSCHR.
18421         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
18422         * MODULES.html.sh (Internationalization functions): Add mbschr.
18423
18424 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18425
18426         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
18427
18428         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
18429
18430 2007-02-04  Bruno Haible  <bruno@clisp.org>
18431
18432         New module description section 'configure.ac-early'.
18433         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
18434         (func_get_autoconf_early_snippet): New function.
18435         (func_import, func_create_testdir): Use it. Remove special cases for
18436         modules 'extensions' and 'lock'.
18437         * modules/extensions (configure.ac-early): Require
18438         gl_USE_SYSTEM_EXTENSIONS.
18439         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
18440
18441 2007-02-04  Bruno Haible  <bruno@clisp.org>
18442
18443         Make use of gcj-4.3's -fsource and -ftarget option.
18444         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
18445         and if so try the options -fsource and -ftarget.
18446         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
18447         source_version, ftarget_option, target_version arguments.
18448         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
18449         (is_envjavac_oldgcj_14_14_usable): Renamed from
18450         is_envjavac_gcj_14_14_usable.
18451         (is_envjavac_oldgcj_14_13_usable): Renamed from
18452         is_envjavac_gcj_14_13_usable.
18453         (is_gcj_present): Update.
18454         (is_gcj_43, is_gcj43_usable): New functions.
18455         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
18456         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
18457         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
18458         try the options -fsource and -ftarget.
18459
18460 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18461
18462         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
18463         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
18464         larger value.
18465
18466 2007-02-03  Jim Meyering  <jim@meyering.net>
18467
18468         Give tools a better chance to allocate space for very large buffers.
18469         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
18470
18471         Make pwd and readlink work also when run with an unreadable parent dir
18472         on systems with openat support.
18473         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
18474         provided getcwd function, even when we have openat support.
18475         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
18476
18477 2007-02-02  Bruno Haible  <bruno@clisp.org>
18478
18479         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18480         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
18481         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
18482         portability problems if one of these functions is only used on specific
18483         platforms.
18484         Reported by Paul Eggert.
18485
18486 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
18487
18488         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
18489         is causing more trouble than it's curing.
18490         * lib/regex_internal.h (__mempcpy): Remove.
18491         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
18492         (and make the code a tad smaller to boot).
18493         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
18494
18495 2007-02-02  Jim Meyering  <jim@meyering.net>
18496
18497         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
18498         section, not in the Makefile.am: one.
18499
18500 2007-02-02  Eric Blake  <ebb9@byu.net>
18501
18502         * lib/strchrnul.c: Always include config.h first.
18503
18504         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
18505         gnulib strstr is not necessary here.
18506
18507 2007-02-02  Simon Josefsson  <simon@josefsson.org>
18508
18509         * m4/socklen.m4: Fix typo.
18510
18511 2007-02-02  Eric Blake  <ebb9@byu.net>
18512
18513         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
18514         * modules/netinet_in (Makefile.am): Likewise.
18515
18516 2007-02-01  Bruno Haible  <bruno@clisp.org>
18517
18518         * lib/string_.h (GL_LINK_WARNING): New macro.
18519         (strcasecmp, strstr, strcasestr): If provided by the system,
18520         conditionally define as a macro that leads to a warning instead of to
18521         an error.
18522         (strncasecmp): Conditionally define as a macro that leads to a warning.
18523
18524 2007-02-01  Karl Berry  <karl@gnu.org>
18525
18526         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
18527
18528 2007-02-01  Bruno Haible  <bruno@clisp.org>
18529
18530         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
18531         renamings.
18532
18533 2007-02-01  Eric Blake  <ebb9@byu.net>
18534
18535         * modules/regex (Depends-on): Revert dependence on mempcpy.
18536         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
18537         module's definition of mempcpy.
18538         Reported by Paul Eggert.
18539
18540 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
18541
18542         * lib/string_.h: If the gnulib module XYZ is not present, undefine
18543         the symbol XYZ before redefining it.  This fixes a problem with
18544         programs that don't use XYZ, when compiled on systems that define
18545         XYZ to something else.
18546
18547 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
18548
18549         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
18550         occurs when "mkdir -m foo" creates a setgid directory that is (1)
18551         writeable to group or other and (2) is intended to have a special
18552         mode bit that is set or cleared.  In such a case, the directory
18553         should be neither group- nor other-writeable until the special
18554         mode bits are right.
18555
18556 2007-01-31  Eric Blake  <ebb9@byu.net>
18557
18558         * modules/mountlist (Depends-on): Add strstr.
18559
18560         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
18561         bug.
18562         * modules/string (Makefile.am): Remove redundant replacement.
18563         * modules/regex (Depends-on): Add mempcpy.
18564
18565 2007-01-31  Bruno Haible  <bruno@clisp.org>
18566
18567         New module description field 'Link'.
18568         * gnulib-tool (func_usage): Document --extract-link-directive.
18569         (sed_extract_prog): Recognize 'Link' directive.
18570         (func_get_link_directive): New function.
18571         (func_import): Show summary of link directives.
18572         Handle --extract-link-directive option.
18573         * modules/acl (Link): New section.
18574         * modules/clock-time (Link): New section.
18575         * modules/euidaccess (Link): New section.
18576         * modules/gettext (Link): New section.
18577         * modules/iconv (Link): New section.
18578         * modules/lock (Link): New section.
18579         * modules/nanosleep (Link): New section.
18580         * modules/readline (Link): New section.
18581
18582 2007-01-27  Bruno Haible  <bruno@clisp.org>
18583
18584         Enforce the use of gnulib modules for unportable <string.h> functions.
18585         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
18586         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
18587         (gl_HEADER_STRING_H_BODY): Require it.
18588         * lib/string_.h: If the gnulib module XYZ is not present, redefine
18589         the symbol XYZ to one that gives a link error.
18590         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
18591         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
18592         * modules/mempcpy (configure.ac): Likewise.
18593         * modules/memrchr (configure.ac): Likewise.
18594         * modules/stpcpy (configure.ac): Likewise.
18595         * modules/stpncpy (configure.ac): Likewise.
18596         * modules/strcase (configure.ac): Likewise.
18597         * modules/strcasestr (configure.ac): Likewise.
18598         * modules/strchrnul (configure.ac): Likewise.
18599         * modules/strdup (configure.ac): Likewise.
18600         * modules/strndup (configure.ac): Likewise.
18601         * modules/strnlen (configure.ac): Likewise.
18602         * modules/strpbrk (configure.ac): Likewise.
18603         * modules/strsep (configure.ac): Likewise.
18604         * modules/strstr (configure.ac): Likewise.
18605         * modules/strtok_r (configure.ac): Likewise.
18606
18607 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
18608
18609         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
18610
18611 2007-01-30  Jim Meyering  <jim@meyering.net>
18612
18613         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
18614
18615 2007-01-29  Bruno Haible  <bruno@clisp.org>
18616
18617         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
18618         * lib/execute.c: Likewise.
18619         * lib/pipe.c: Likewise.
18620         * lib/printf-args.h: Likewise.
18621         * lib/printf-args.c: Likewise.
18622         * lib/printf-parse.c: Likewise.
18623         * lib/vasnprintf.c: Likewise.
18624
18625 2007-01-29  Eric Blake  <ebb9@byu.net>
18626
18627         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
18628         declaration.
18629
18630 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
18631
18632         * lib/strptime.h (strptime): Use 'restrict' for args where
18633         POSIX requires this.
18634         * lib/strptime.c (strptime): Likewise.
18635         Change license notice from LGPL to GPL, since gnulib-tool will
18636         change this as needed.
18637         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
18638         defined.
18639         Include "strptime.h" first, to check interface.
18640         Do not #undef _LIBC and _NL_CURRENT.
18641         Do not include <stdlib.h>; no longer needed.
18642         Include "time_r.h" and declare ptime_locale_status
18643         only if _LIBC is not defined.
18644         (__P): Remove unused macro.
18645         (match_string): Bring back glibc version, but use it only if _LIBC
18646         is defined.
18647         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
18648         Remove unnecessary assertion and abort() call.
18649         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
18650         * m4/strptime.m4: Fix serial number comment.
18651         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
18652         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
18653         (Depends-on): Add time_r.
18654
18655 2007-01-29  Bruno Haible  <bruno@clisp.org>
18656
18657         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18658         strptime.
18659         * modules/strptime (Depends-on): Add stdbool.
18660         * lib/strptime.h: Include <time.h> always. Add comments.
18661
18662 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18663
18664         * modules/strptime: New file.
18665         * lib/strptime.h: New file.
18666         * lib/strptime.c: New file.
18667         * m4/strptime.m4: New file.
18668
18669 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18670
18671         * MODULES.html.sh: New module mpsort.
18672         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
18673
18674         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
18675         a circularity problem with HP-UX ia64 reported by Bob Proulx in
18676         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
18677         All uses changed.
18678         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
18679         All uses changed.
18680         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
18681         to _Restrict_.
18682         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
18683         the parameter matches the prototype.
18684
18685 2007-01-28  Jim Meyering  <jim@meyering.net>
18686
18687         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
18688         sys/time.h here, reverting that part of the previous patch:
18689         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
18690
18691 2007-01-28  Bruno Haible  <bruno@clisp.org>
18692
18693         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
18694         value of $(SYS_TIME_H).
18695         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
18696         remove it conditionally, too. [added by Jim Meyering]
18697         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
18698         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18699         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
18700         GETTIMEOFDAY_REPLACEMENT to 1.
18701
18702 2007-01-28  Bruno Haible  <bruno@clisp.org>
18703
18704         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
18705         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
18706         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
18707         Set UNISTD_H instead of UNISTD_H2.
18708         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
18709
18710 2007-01-28  Bruno Haible  <bruno@clisp.org>
18711
18712         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
18713         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
18714
18715 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18716
18717         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
18718         (func_create_testdir): Ensure C locale for `grep' and `tr'
18719         character ranges.
18720         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
18721         ACLOCAL_AMFLAGS parsing state machine.
18722
18723 2007-01-27  Bruno Haible  <bruno@clisp.org>
18724
18725         * modules/unistr/base: Update.
18726
18727 2007-01-27  Bruno Haible  <bruno@clisp.org>
18728
18729         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
18730         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
18731         * modules/unistr/u32-mbtouc-unsafe: Renamed from
18732         modules/unistr/u32-mbtouc.
18733         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
18734         * lib/unistr.h: Update.
18735         * lib/linebreak.c: Update.
18736         * modules/unistr/u32-mbtouc: Renamed from
18737         modules/unistr/u32-mbtouc-safe.
18738         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
18739         * lib/unistr.h: Update.
18740         * lib/unistr/u32-to-u8.c: Update.
18741         * lib/unistr/u32-to-u16.c: Update.
18742
18743 2007-01-27  Bruno Haible  <bruno@clisp.org>
18744
18745         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
18746         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
18747         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
18748         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
18749         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
18750         * modules/unistr/u16-mbtouc-unsafe: Renamed from
18751         modules/unistr/u16-mbtouc.
18752         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
18753         * lib/unistr.h: Update.
18754         * lib/linebreak.c: Update.
18755         * modules/linebreak: Update.
18756         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
18757         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
18758         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
18759         * modules/unistr/u16-mbtouc: Renamed from
18760         modules/unistr/u16-mbtouc-safe.
18761         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
18762         * lib/unistr.h: Update.
18763         * lib/unistr/u16-to-u8.c: Update.
18764         * modules/unistr/u16-to-u8: Update.
18765         * lib/unistr/u16-to-u32.c: Update.
18766         * modules/unistr/u16-to-u32: Update.
18767
18768 2007-01-27  Bruno Haible  <bruno@clisp.org>
18769
18770         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
18771         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
18772         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
18773         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
18774         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
18775         * modules/unistr/u8-mbtouc-unsafe: Renamed from
18776         modules/unistr/u8-mbtouc.
18777         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
18778         * lib/unistr.h: Update.
18779         * lib/striconveh.c: Update.
18780         * modules/striconveh: Update.
18781         * lib/linebreak.c: Update.
18782         * modules/linebreak: Update.
18783         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
18784         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
18785         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
18786         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
18787         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
18788         * lib/unistr.h: Update.
18789         * lib/striconveh.c: Update.
18790         * modules/striconveh: Update.
18791         * lib/unistr/u8-to-u16.c: Update.
18792         * modules/unistr/u8-to-u16: Update.
18793         * lib/unistr/u8-to-u32.c: Update.
18794         * modules/unistr/u8-to-u32: Update.
18795
18796 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18797
18798         Sync from Libtool.
18799         * lib/argz.c: Do not include strings.h nor memory.h, include
18800         string.h unconditionally.  Patch by Simon Josefsson.
18801
18802 2007-01-27  Bruno Haible  <bruno@clisp.org>
18803
18804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
18805         from gl_HEADER_STRING_H_BODY.
18806         (gl_HEADER_STRING_H_BODY): Require it.
18807         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
18808         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
18809         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
18810         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
18811         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18812         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
18813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18814         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
18815         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
18816         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18817         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
18818         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
18819         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
18820         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18821         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18822
18823 2007-01-27  Bruno Haible  <bruno@clisp.org>
18824
18825         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
18826         check_PROGRAMS into noinst_PROGRAMS.
18827         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
18828         check_PROGRAMS in this case.
18829         (func_import): Set for_test to false.
18830         (func_create_testdir): Set for_test to true.
18831
18832 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18833             Bruno Haible  <bruno@clisp.org>
18834
18835         * modules/strcasestr (Files): Remove lib/strcasestr.h.
18836         (Depends-on): Add string.
18837         (Includes): Use <string.h> instead of strcasestr.h.
18838         * modules/string (Makefile.am): Also substitute the value of
18839         REPLACE_STRCASESTR.
18840         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
18841         assume strcasestr is declared in <string.h> not <strings.h>. Also
18842         set REPLACE_STRCASESTR.
18843         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
18844         REPLACE_STRCASESTR.
18845         * lib/strcasestr.h: Remove file.
18846         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
18847         * lib/string_.h (strcasestr): New declaration.
18848
18849 2007-01-27  Bruno Haible  <bruno@clisp.org>
18850
18851         * lib/string_.h: Use 'extern'.
18852
18853 2007-01-27  Jim Meyering  <jim@meyering.net>
18854
18855         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
18856         of set-but-not-used local, "q".
18857
18858         * lib/mempcpy.c: Include <config.h> before <string.h>.
18859         This fixes a compilation error on HP-UX, due to the system's
18860         "restrict"-using mempcpy prototype.
18861
18862 2007-01-26  Bruno Haible  <bruno@clisp.org>
18863
18864         Small optimization.
18865         * lib/javacomp.c: Include c-strstr.h.
18866          (is_envjavac_gcj): Use c_strstr instead of strstr.
18867         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
18868
18869 2007-01-26  Bruno Haible  <bruno@clisp.org>
18870
18871         * MODULES.html.sh (Unicode string functions): Add the new modules.
18872
18873         * modules/uniconv/u32-strconv-to-locale: New file.
18874         * lib/uniconv/u32-strconv-to-locale.c: New file.
18875
18876         * modules/uniconv/u16-strconv-to-locale: New file.
18877         * lib/uniconv/u16-strconv-to-locale.c: New file.
18878
18879         * modules/uniconv/u8-strconv-to-locale: New file.
18880         * lib/uniconv/u8-strconv-to-locale.c: New file.
18881
18882         * modules/uniconv/u32-strconv-from-locale: New file.
18883         * lib/uniconv/u32-strconv-from-locale.c: New file.
18884
18885         * modules/uniconv/u16-strconv-from-locale: New file.
18886         * lib/uniconv/u16-strconv-from-locale.c: New file.
18887
18888         * modules/uniconv/u8-strconv-from-locale: New file.
18889         * lib/uniconv/u8-strconv-from-locale.c: New file.
18890
18891         * modules/uniconv/u32-strconv-to-enc: New file.
18892         * lib/uniconv/u32-strconv-to-enc.c: New file.
18893         * modules/uniconv/u32-strconv-to-enc-tests: New file.
18894         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
18895
18896         * modules/uniconv/u16-strconv-to-enc: New file.
18897         * lib/uniconv/u16-strconv-to-enc.c: New file.
18898         * lib/uniconv/u-strconv-to-enc.h: New file.
18899         * modules/uniconv/u16-strconv-to-enc-tests: New file.
18900         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
18901
18902         * modules/uniconv/u8-strconv-to-enc: New file.
18903         * lib/uniconv/u8-strconv-to-enc.c: New file.
18904         * modules/uniconv/u8-strconv-to-enc-tests: New file.
18905         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
18906
18907         * modules/uniconv/u32-strconv-from-enc: New file.
18908         * lib/uniconv/u32-strconv-from-enc.c: New file.
18909         * modules/uniconv/u32-strconv-from-enc-tests: New file.
18910         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
18911
18912         * modules/uniconv/u16-strconv-from-enc: New file.
18913         * lib/uniconv/u16-strconv-from-enc.c: New file.
18914         * modules/uniconv/u16-strconv-from-enc-tests: New file.
18915         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
18916
18917         * modules/uniconv/u8-strconv-from-enc: New file.
18918         * lib/uniconv/u8-strconv-from-enc.c: New file.
18919         * lib/uniconv/u-strconv-from-enc.h: New file.
18920         * modules/uniconv/u8-strconv-from-enc-tests: New file.
18921         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
18922
18923         * modules/uniconv/u32-conv-from-enc: New file.
18924         * lib/uniconv/u32-conv-from-enc.c: New file.
18925         * modules/uniconv/u32-conv-from-enc-tests: New file.
18926         * tests/uniconv/test-u32-conv-from-enc.c: New file.
18927
18928         * modules/uniconv/u16-conv-from-enc: New file.
18929         * lib/uniconv/u16-conv-from-enc.c: New file.
18930         * lib/uniconv/u-conv-from-enc.h: New file.
18931         * modules/uniconv/u16-conv-from-enc-tests: New file.
18932         * tests/uniconv/test-u16-conv-from-enc.c: New file.
18933
18934         * modules/uniconv/u8-conv-from-enc: New file.
18935         * lib/uniconv/u8-conv-from-enc.c: New file.
18936         * modules/uniconv/u8-conv-from-enc-tests: New file.
18937         * tests/uniconv/test-u8-conv-from-enc.c: New file.
18938
18939         * modules/uniconv/base: New file.
18940         * lib/uniconv.h: New file.
18941
18942 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
18943
18944         * doc/gnulib-tool.texi (Initial import): Update to match current
18945         behavior with strdup module.
18946         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
18947         * lib/memmem.h: Remove; all uses removed.  This is now done
18948         by <string.h>.
18949         * lib/mempcpy.h: Likewise.
18950         * lib/memrchr.h: Likewise.
18951         * lib/stpcpy.h: Likewise.
18952         * lib/stpncpy.h: Likewise.
18953         * lib/strcase.h: Likewise.
18954         * lib/strchrnul.h: Likewise.
18955         * lib/strdup.h: Likewise.
18956         * lib/strndup.h: Likewise.
18957         * lib/strnlen.h: Likewise.
18958         * lib/strpbrk.h: Likewise.
18959         * lib/strsep.h: Likewise.
18960         * lib/strstr.h: Likewise.
18961         * lib/strtok_r.h: Likewise.
18962         * lib/string_.h: New file.
18963         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
18964         Rely on <string.h> instead.
18965         * lib/canon-host.c: Likewise.
18966         * lib/chdir-long.c: Likewise.
18967         * lib/concatpath.c: Likewise.
18968         * lib/exclude.c: Likewise.
18969         * lib/fchdir.c: Likewise.
18970         * lib/getaddrinfo.c: Likewise.
18971         * lib/getcwd.c: Likewise.
18972         * lib/getsubopt.c: Likewise.
18973         * lib/glob.c: Likewise.
18974         * lib/hard-locale.c: Likewise.
18975         * lib/iconvme.c: Likewise.
18976         * lib/javacomp.c: Likewise.
18977         * lib/mempcpy.c: Likewise.
18978         * lib/memrchr.c: Likewise.
18979         * lib/regex_internal.h: Likewise.
18980         * lib/stpncpy.c: Likewise.
18981         * lib/strcasecmp.c: Likewise.
18982         * lib/strchrnul.c: Likewise.
18983         * lib/strdup.c: Likewise.
18984         * lib/striconv.c: Likewise.
18985         * lib/striconveh.c: Likewise.
18986         * lib/striconveha.c: Likewise.
18987         * lib/strncasecmp.c: Likewise.
18988         * lib/strndup.c: Likewise.
18989         * lib/strnlen.c: Likewise.
18990         * lib/strsep.c: Likewise.
18991         * lib/strstr.c: Likewise.
18992         * lib/strtok_r.c: Likewise.
18993         * lib/userspec.c: Likewise.
18994         * lib/w32spawn.h: Likewise.
18995         * lib/xstrndup.c: Likewise.
18996         * lib/mountlist.c (strstr): Remove decl.
18997         * m4/string_h.m4: New file.
18998         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
18999         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
19000         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
19001         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
19002         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
19003         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
19004         Set REPLACE_STRCASECMP if necessary.
19005         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
19006         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
19007         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
19008         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
19009         HAVE_DECL_STRDUP if necessary.
19010         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
19011         since gl_FUNC_STRNDUP does that now.
19012         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
19013         Check for decl here...
19014         (gl_PREREQ_STRNLEN): ... not here.
19015         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
19016         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
19017         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
19018         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
19019         necessary.
19020         * modules/string: New file.
19021         * modules/memmem (Files): Remove special-purpose include file.
19022         (Depends-on): Add string.
19023         (Include): Include <string.h>, not the removed file.
19024         * modules/mempcpy: Likewise.
19025         * modules/memrchr: Likewise.
19026         * modules/stpcpy: Likewise.
19027         * modules/stpncpy: Likewise.
19028         * modules/strcase: Likewise.
19029         * modules/strchrnul: Likewise.
19030         * modules/strdup: Likewise.
19031         * modules/strndup: Likewise.
19032         * modules/strnlen: Likewise.
19033         * modules/strpbrk: Likewise.
19034         * modules/strsep: Likewise.
19035         * modules/strstr: Likewise.
19036         * modules/strtok_r: Likewise.
19037         * tests/test-dirname.c: Don't include "strdup.h", since
19038         <string.h> now suffices.
19039         * tests/test-memmem.c: Don't include "memmem.h", since
19040         <string.h> now suffices.
19041
19042 2007-01-25  Bruno Haible  <bruno@clisp.org>
19043
19044         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
19045         *resultp is 0.
19046
19047         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
19048         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
19049         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
19050         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
19051
19052         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
19053         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
19054         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
19055         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
19056         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
19057         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
19058
19059 2007-01-24  Bruno Haible  <bruno@clisp.org>
19060
19061         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
19062         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
19063         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
19064         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
19065         gl_FUNC_FTS_CORE.
19066         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
19067         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
19068         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19069         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
19070         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
19071         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
19072         gl_FUNC_FCHOWNAT.
19073         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
19074         gl_FUNC_STRFTIME.
19075         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
19076         Reported by Ralf Wildenhues.
19077
19078 2007-01-24  Bruno Haible  <bruno@clisp.org>
19079
19080         Drop AC_REQUIRE calls that are redundant with the module dependencies.
19081         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
19082         gl_GETADDRINFO.
19083         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
19084         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
19085         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
19086
19087 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
19088
19089         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
19090         Don't use 'exit'; just return from 'main'.
19091         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
19092
19093         * lib/fnmatch_.h: Readjust white space and comments to match
19094         glibc, to avoid spurious diffs.
19095
19096 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19097
19098         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
19099         2004-12-01 change by Jakub Jelinek, since this code won't compile
19100         if !LIBC.  Problem reported by Bob Proulx.
19101
19102 2007-01-23  Bruno Haible  <bruno@clisp.org>
19103
19104         * lib/striconveh.c: Include c-strcaseeq.h.
19105         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
19106         * modules/striconveh (Depends-on): Add c-strcaseeq.
19107
19108 2007-01-23  Bruno Haible  <bruno@clisp.org>
19109
19110         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
19111
19112         * modules/c-strcaseeq: New file.
19113         * lib/c-strcaseeq.h: New file.
19114
19115         * modules/streq: New file.
19116         * lib/streq.h: New file.
19117
19118 2007-01-23  Bruno Haible  <bruno@clisp.org>
19119
19120         * modules/striconveha-tests: New file.
19121         * tests/test-striconveha.c: New file.
19122
19123         * lib/striconveha.h: Include <stdbool.h>.
19124         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
19125         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
19126         (mem_iconveha_notranslit): Renamed from mem_iconveha.
19127         (mem_iconveha): New function.
19128         (str_iconveha_notranslit): Renamed from str_iconveha.
19129         (str_iconveha): New function.
19130         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
19131         c-strcase.
19132
19133 2007-01-23  Bruno Haible  <bruno@clisp.org>
19134
19135         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
19136         encodings without forgiving before trying any encoding with handler.
19137         (str_iconveha): Try all encodings without forgiving before trying any
19138         encoding with handler.
19139
19140 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19141
19142         Import the following changes from libc.
19143
19144         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
19145
19146         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
19147
19148         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
19149
19150         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
19151         normal_bracket label.
19152
19153         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
19154
19155         [BZ #361]
19156         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
19157         to normal_bracket after fetching the next character.
19158
19159 2007-01-22  Bruno Haible  <bruno@clisp.org>
19160
19161         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
19162         argument.
19163         * lib/striconveh.c (iconv_carefully_1): New function.
19164         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
19165         argument.
19166         (str_cd_iconveh): Update.
19167         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
19168         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
19169         * tests/test-striconveh.c (MAGIC): New macro.
19170         (new_offsets): New function.
19171         (main): Test call with and without offsets.
19172
19173 2007-01-22  Bruno Haible  <bruno@clisp.org>
19174
19175         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
19176         * modules/sys_select (Makefile.am): Likewise.
19177         * modules/sys_socket (Makefile.am): Likewise.
19178         * modules/sys_time (Makefile.am): Likewise.
19179
19180 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19181
19182         * modules/gettimeofday (License): Change from GPL to LGPL, since
19183         gettimeofday is a library function.
19184
19185 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19186
19187         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
19188
19189 2007-01-21  Bruno Haible  <bruno@clisp.org>
19190
19191         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
19192
19193 2007-01-21  Bruno Haible  <bruno@clisp.org>
19194
19195         * modules/striconveha: New file.
19196         * lib/striconveha.h: New file.
19197         * lib/striconveha.c: New file.
19198         * MODULES.html.sh (Internationalization functions): Add striconveha.
19199         * lib/striconv.c (str_iconv): Optimize the case of an empty input
19200         string.
19201         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
19202
19203 2007-01-21  Bruno Haible  <bruno@clisp.org>
19204
19205         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
19206         * lib/striconveh.c (str_iconveh): Likewise.
19207
19208 2007-01-21  Bruno Haible  <bruno@clisp.org>
19209
19210         * lib/striconveh.h (mem_iconveh): New declaration.
19211         * lib/striconveh.c (mem_iconveh): New function.
19212         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
19213
19214 2007-01-21  Bruno Haible  <bruno@clisp.org>
19215
19216         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
19217
19218         * lib/striconveh.h (mem_cd_iconveh): Change specification.
19219         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
19220         original result buffer.
19221         (str_cd_iconveh): Update.
19222         * tests/test-striconveh.c (main): Update.
19223
19224         * lib/striconv.h (mem_cd_iconv): Change specification.
19225         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
19226         result buffer.
19227         (str_cd_iconv): Update.
19228         * tests/test-striconv.c (main): Update.
19229
19230 2007-01-21  Bruno Haible  <bruno@clisp.org>
19231
19232         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
19233
19234 2007-01-20  Jim Meyering  <jim@meyering.net>
19235
19236         * lib/userspec.c (parse_with_separator): If a user or group string
19237         starts with "+", skip the corresponding name-to-ID look-up, since
19238         such a look-up must fail: user and group names may not include "+".
19239
19240 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
19241
19242         * lib/poll.c: Include sys/time.h and time.h unconditionally,
19243         since we now assume the sys_time module.
19244         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
19245         check for sys/time.h; no longer needed.
19246         * modules/poll (Depends-on): Depend on sys_time.
19247
19248 2007-01-18  Bruno Haible  <bruno@clisp.org>
19249
19250         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
19251         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19252
19253         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
19254         gettimeofday.
19255
19256         * tests/test-gettimeofday.c: Include <time.h>.
19257         (dummy): Remove variable.
19258
19259         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
19260         gl_HEADER_SYS_TIME_H.
19261         (gl_HEADER_SYS_TIME_H): New macro.
19262
19263         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
19264         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19265         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19266         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
19267         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19268         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
19269         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
19270         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19271         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
19272         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
19273         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19274
19275         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
19276         last change; it caused a compilation error when cross-compiling to
19277         Cygwin.
19278
19279 2007-01-18  Jim Meyering  <jim@meyering.net>
19280
19281         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
19282         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
19283         than the race-prone "test -d sys || mkdir sys".
19284         (configure.ac): Use AC_PROG_MKDIR_P.
19285         * modules/sys_select: Likewise.
19286         * modules/sys_socket: Likewise.
19287         * modules/sys_time: Likewise.
19288
19289 2007-01-18  Eric Blake  <ebb9@byu.net>
19290
19291         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
19292         replace gettimeofday.
19293         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
19294         name, to avoid infinite recursion.
19295
19296 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
19297
19298         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
19299         module sys_time.
19300         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
19301         assume timespec.h defines struct timeval.
19302         * lib/settime.c: Likewise.
19303         * lib/utimens.c: Likewise.
19304         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
19305         since we now assume the gettimeofday module.
19306         * lib/tempname.c (__gen_tempname): Likewise.
19307         * lib/gettimeofday.h: Remove.
19308         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
19309         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
19310         Include <time.h>, for 'time()'.
19311         (localtime_buffer_addr): Also use this workaround if
19312         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
19313         to simplify the uses.  All uses changed.
19314         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
19315         that #undef is inside {}, and 'const' follows type name consistently.
19316         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
19317         (gettimeofday): Do not use the maximum possible value for
19318         tv->tv_usec, since that might break usages other than ls.c.
19319         Instead, we'll leave ls.c alone.  This undoes today's patch
19320         by Bruno.  Add a compile-time warning for 1s-clock resolution;
19321         we've never observed the problem but might as well keep the
19322         canary.
19323         * lib/nanosleep.c: Include timespec.h first, for interface check.
19324         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
19325         now assume the sys_time module.
19326         * lib/tempname.c: Likewise.
19327         * lib/timespec.h: Likewise.
19328         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
19329         needed.
19330         * lib/strftime.c: Likewise.
19331         * lib/timespec.h: Likewise.
19332         * lib/posixtm.c: Include posixtm.h first, for interface check.
19333         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
19334         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
19335         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
19336         * lib/sys_time_.h: New file.
19337         * lib/timespec.h (struct timespec): Use long int, not long.
19338         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19339         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
19340         Remove obsolescent call to AC_HEADER_TIME.
19341         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19342         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19343         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19344         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
19345         Likewise.
19346         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19347         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
19348         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
19349         into the sys_time module.  Check for gettimeofday just once.
19350         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
19351         for gettimeofday signature to just check the signature.  Merely
19352         compile it, since linking doesn't test signature.  Improve test for
19353         whether gettimeofday.o is actually needed.
19354         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
19355         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
19356         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
19357         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19358         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
19359         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
19360         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
19361         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
19362         than worrying about sys/time.h.
19363         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
19364         Don't bother worrying about TIME_WITH_SYS_TIME.
19365         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19366         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
19367         * m4/sys_time_h.m4: New file.
19368         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
19369         Don't include sys/time.h.  Return from main rather than exiting.
19370         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
19371         all uses changed.
19372         * modules/gethrxtime (Depends-on): Add sys_time.
19373         * modules/gettime (Depends-on): Likewise.
19374         * modules/gettimeofday (Depends-on): Likewise.
19375         * modules/nanosleep (Depends-on): Likewise.
19376         * modules/settime (Depends-on): Likewise.
19377         * modules/tempname (Depends-on): Likewise.
19378         * modules/utimens (Depends-on): Likewise.
19379         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
19380         (Include:) Change back to <sys/time.h>.
19381         (Maintainer:) Add self.
19382         * modules/sys_time: New file.
19383         * modules/tempname (Depends-on): Add gettimeofday.
19384         * tests/test-gettimeofday.c: Include <sys/time.h>
19385         rather than gettimeofday.h.
19386
19387 2007-01-17  Bruno Haible  <bruno@clisp.org>
19388
19389         * gnulib-tool (func_get_license): Revert last patch. Instead, let
19390         the license default to GPL.
19391         (func_create_testdir): Don't complain if a module is LGPL and its
19392         tests module depends on GPLed modules.
19393
19394 2007-01-17  Bruno Haible  <bruno@clisp.org>
19395
19396         * lib/gettimeofday.c (gettimeofday): Add code for the case
19397         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
19398         maximum possible value for tv->tv_usec, rather than the minimum one.
19399
19400 2005-10-08  Martin Lambers  <marlam@marlam.de>
19401 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19402 2007-01-16  Bruno Haible  <bruno@clisp.org>
19403
19404         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
19405         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
19406         gl_FUNC_GETTIMEOFDAY.
19407         (Include): Add gettimeofday.h.
19408         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
19409         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
19410         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
19411         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
19412         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
19413         * lib/gettimeofday.h: New file.
19414         * lib/gettimeofday.c: Include <sys/timeb.h>.
19415         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
19416         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
19417         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
19418         fall back on time().
19419
19420         * tests/test-gettimeofday.c: New file.
19421         * modules/gettimeofday-tests: New file.
19422
19423 2007-01-16  Eric Blake  <ebb9@byu.net>
19424
19425         * modules/fnmatch (Depends-on): Depend on wchar.
19426         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
19427         * m4/fnmatch.m4: Likewise.
19428         * modules/mbchar (Makefile.am): Assume <wchar.h>.
19429         * m4/mbchar.m4: Likewise.
19430         * modules/mbswidth (Depends-on): Depend on wchar.
19431         * lib/mbswidth.c: Assume <wchar.h>.
19432         * m4/mbswidth.m4: Likewise.
19433         * modules/quotearg (Depends-on): Depend on wchar.
19434         * lib/quotearg.c: Assume <wchar.h>.
19435         * m4/quotearg.m4: Likewise.
19436         * modules/regex (Depends-on): Depend on wchar.
19437         * lib/regex_internal.h: Assume <wchar.h>.
19438         * m4/regex.m4: Likewise.
19439         * modules/stdint (Depends-on): Depend on wchar.
19440         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
19441         * m4/stdint.m4: Likewise.
19442         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
19443         * modules/strftime (Depends-on): Depend on wchar.
19444         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
19445         * modules/strtol (Depends-on): Depend on wchar.
19446         * lib/strtol.c: Assume <wchar.h>.
19447         * modules/wcwidth (Depends-on): Depend on wchar.
19448         * lib/wcwidth.h: Assume <wchar.h>.
19449         * m4/wcwidth.m4: Likewise.
19450
19451 2007-01-16  Bruno Haible  <bruno@clisp.org>
19452
19453         * modules/csharpexec-script: New, created from...
19454         * modules/csharpexec: ... this.
19455
19456 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
19457
19458         * modules/javaexec-script: New, created from...
19459         * modules/javaexec: ... this.
19460
19461 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19462
19463         * modules/poll (Dependencies): Add sys_select.
19464
19465 2007-01-15  Jim Meyering  <jim@meyering.net>
19466
19467         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
19468         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
19469         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
19470         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
19471
19472 2007-01-15  Bruno Haible  <bruno@clisp.org>
19473
19474         * modules/striconveh: New file.
19475         * lib/striconveh.h: New file.
19476         * lib/striconveh.c: New file.
19477         * MODULES.html.sh (Internationalization functions): Add striconveh.
19478
19479         * modules/striconveh-tests: New file.
19480         * tests/test-striconveh.c: New file.
19481
19482 2007-01-15  Bruno Haible  <bruno@clisp.org>
19483
19484         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
19485         not from GNU libiconv or GNU libc.
19486
19487 2007-01-15  Bruno Haible  <bruno@clisp.org>
19488
19489         * doc/gnulib-intro.texi (Copyright): Explain the different license
19490         terms for module descriptions, autoconf macros, tests, documentation.
19491
19492 2007-01-14  Bruno Haible  <bruno@clisp.org>
19493
19494         * modules/striconv-tests: New file.
19495         * tests/test-striconv.c: New file.
19496
19497 2007-01-14  Bruno Haible  <bruno@clisp.org>
19498
19499         * modules/iconv-tests: New file.
19500         * tests/test-iconv.c: New file.
19501
19502 2007-01-14  Bruno Haible  <bruno@clisp.org>
19503
19504         * gnulib-tool (func_get_license): For test modules, use the license of
19505         the main module.
19506
19507 2007-01-14  Bruno Haible  <bruno@clisp.org>
19508
19509         * modules/iconv (Include): Clarify that <iconv.h> can only be included
19510         if iconv is found to exist.
19511
19512 2007-01-14  Bruno Haible  <bruno@clisp.org>
19513
19514         * modules/c-ctype-tests: New file.
19515         * tests/test-c-ctype.c: New file.
19516
19517 2007-01-14  Bruno Haible  <bruno@clisp.org>
19518
19519         * modules/binary-io-tests: New file.
19520         * tests/test-binary-io.sh: New file.
19521         * tests/test-binary-io.c: New file.
19522
19523 2007-01-14  Bruno Haible  <bruno@clisp.org>
19524
19525         * modules/array-oset-tests: New file.
19526         * tests/test-array_oset.c: New file.
19527
19528 2007-01-14  Bruno Haible  <bruno@clisp.org>
19529
19530         * modules/array-list-tests: New file.
19531         * tests/test-array_list.c: New file.
19532
19533 2007-01-14  Bruno Haible  <bruno@clisp.org>
19534
19535         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
19536         and make.
19537         Reported by Simon Josefsson in
19538         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
19539
19540 2007-01-14  Bruno Haible  <bruno@clisp.org>
19541
19542         * modules/allocsa-tests: New file.
19543         * tests/test-allocsa.c: New file.
19544
19545 2007-01-14  Bruno Haible  <bruno@clisp.org>
19546
19547         * modules/fchdir (Depends-on): Add absolute-header.
19548         * modules/unistd (Depends-on): Likewise.
19549
19550 2006-12-30  Bruno Haible  <bruno@clisp.org>
19551
19552         * modules/fchdir: New file.
19553         * modules/unistd (Files): Add lib/unistd_.h.
19554         (Makefile.am): Generate unistd.h from unistd_.h.
19555         * lib/fchdir.c: New file.
19556         * lib/dirent_.h: New file.
19557         * lib/unistd_.h: New file.
19558         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
19559         * m4/fchdir.m4: New file.
19560         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
19561         (gl_HEADER_UNISTD): Invoke it.
19562         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
19563         function.
19564         * lib/backupfile.c (opendir, closedir): Undefine.
19565         * lib/chown.c (open, close): Undefine.
19566         * lib/clean-temp.c (open, close): Undefine.
19567         * lib/copy-file.c (open, close): Undefine.
19568         * lib/execute.c (open, close): Undefine.
19569         * lib/fsusage.c (open, close): Undefine.
19570         * lib/gc-gnulib.c (open, close): Undefine.
19571         * lib/getcwd.c (opendir, closedir): Undefine.
19572         * lib/glob.c (opendir, closedir): Undefine.
19573         * lib/javacomp.c (open, close): Undefine.
19574         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
19575         * lib/openat-proc.c (open, close): Undefine.
19576         * lib/pagealign_alloc.c (open, close): Undefine.
19577         * lib/pipe.c (open, close): Undefine.
19578         * lib/progreloc.c (open, close): Undefine.
19579         * lib/savedir.c (opendir, closedir): Undefine.
19580         * lib/utime.c (open, close): Undefine.
19581         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
19582
19583 2007-01-10  Bruno Haible  <bruno@clisp.org>
19584
19585         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
19586
19587 2007-01-12  Eric Blake  <ebb9@byu.net>
19588
19589         Provide a robust <wchar.h>.  Further simplifications are now
19590         possible in other modules, but not included here.
19591         * modules/wchar: New module.
19592         * m4/wchar.m4: New file.
19593         * lib/wchar_.h: Likewise.
19594         * modules/mbchar (Depends-on): Depend on wchar, as the first use
19595         of the new module.
19596         * MODULES.html.sh (Extended multibyte and wide character utilities):
19597         New section.
19598
19599 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
19600
19601         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
19602         to a reasonable default for memory allocation.
19603         (xreadlink): Don't allocate a huge buffer, to work around a buggy
19604         file system that reports garbage st_size values for symlinks.
19605         Problem reported by Liyang Hu.
19606
19607 2007-01-11  Simon Josefsson  <simon@josefsson.org>
19608
19609         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
19610         Emacs .#* auto-save files).
19611
19612 2007-01-11  Bruno Haible  <bruno@clisp.org>
19613
19614         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
19615         directory.
19616
19617 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19618
19619         Use @...@ consistently in lib/wctype_.h.
19620         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
19621         on it being set to 1 or 0.
19622         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
19623         go back to AC_SUBSTing it.
19624         * modules/wctype (Makefile.am): Undo previous change.
19625
19626 2007-01-10  Eric Blake  <ebb9@byu.net>
19627
19628         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
19629         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
19630         * modules/wctype (Makefile.am): Likewise.
19631         Reported by Chris McGuire.
19632
19633 2007-01-10  Jim Meyering  <jim@meyering.net>
19634
19635         fts.c: a small readability/maintainability improvement
19636         * lib/fts.c (fts_read): Make this code slightly more readable and
19637         maintainable by hoisting the "sp->fts_cur = p" assignments to
19638         immediately follow the statements that set P.  Derived from
19639         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
19640
19641 2007-01-10  Eric Blake  <ebb9@byu.net>
19642
19643         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
19644         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
19645         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19646         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19647         Reported by Chris McGuire.
19648
19649 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19650
19651         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
19652         in sed script.
19653
19654 2007-01-09  Bruno Haible  <bruno@clisp.org>
19655
19656         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
19657         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
19658         variables.
19659         (func_module): Use them.
19660
19661 2007-01-09  Bruno Haible  <bruno@clisp.org>
19662
19663         * modules/unistr/base: New file.
19664         * lib/unistr.h: New file.
19665
19666         * modules/unistr/u8-to-u16: New file.
19667         * lib/unistr/u8-to-u16.c: New file.
19668
19669         * modules/unistr/u8-to-u32: New file.
19670         * lib/unistr/u8-to-u32.c: New file.
19671
19672         * modules/unistr/u16-to-u8: New file.
19673         * lib/unistr/u16-to-u8.c: New file.
19674
19675         * modules/unistr/u16-to-u32: New file.
19676         * lib/unistr/u16-to-u32.c: New file.
19677
19678         * modules/unistr/u32-to-u8: New file.
19679         * lib/unistr/u32-to-u8.c: New file.
19680
19681         * modules/unistr/u32-to-u16: New file.
19682         * lib/unistr/u32-to-u16.c: New file.
19683
19684         * modules/unistr/u8-check: New file.
19685         * modules/unistr/u16-check: New file.
19686         * modules/unistr/u32-check: New file.
19687         * lib/unistr/u8-check.c: New file.
19688         * lib/unistr/u16-check.c: New file.
19689         * lib/unistr/u32-check.c: New file.
19690
19691         * modules/unistr/u8-chr: New file.
19692         * modules/unistr/u16-chr: New file.
19693         * modules/unistr/u32-chr: New file.
19694         * lib/unistr/u8-chr.c: New file.
19695         * lib/unistr/u16-chr.c: New file.
19696         * lib/unistr/u32-chr.c: New file.
19697
19698         * modules/unistr/u8-cmp: New file.
19699         * modules/unistr/u16-cmp: New file.
19700         * modules/unistr/u32-cmp: New file.
19701         * lib/unistr/u8-cmp.c: New file.
19702         * lib/unistr/u16-cmp.c: New file.
19703         * lib/unistr/u32-cmp.c: New file.
19704
19705         * modules/unistr/u8-cpy: New file.
19706         * modules/unistr/u16-cpy: New file.
19707         * modules/unistr/u32-cpy: New file.
19708         * lib/unistr/u8-cpy.c: New file.
19709         * lib/unistr/u16-cpy.c: New file.
19710         * lib/unistr/u32-cpy.c: New file.
19711         * lib/unistr/u-cpy.h: New file.
19712
19713         * modules/unistr/u8-cpy-alloc: New file.
19714         * modules/unistr/u16-cpy-alloc: New file.
19715         * modules/unistr/u32-cpy-alloc: New file.
19716         * lib/unistr/u8-cpy-alloc.c: New file.
19717         * lib/unistr/u16-cpy-alloc.c: New file.
19718         * lib/unistr/u32-cpy-alloc.c: New file.
19719         * lib/unistr/u-cpy-alloc.h: New file.
19720
19721         * modules/unistr/u8-endswith: New file.
19722         * modules/unistr/u16-endswith: New file.
19723         * modules/unistr/u32-endswith: New file.
19724         * lib/unistr/u8-endswith.c: New file.
19725         * lib/unistr/u16-endswith.c: New file.
19726         * lib/unistr/u32-endswith.c: New file.
19727         * lib/unistr/u-endswith.h: New file.
19728
19729         * modules/unistr/u8-mblen: New file.
19730         * modules/unistr/u16-mblen: New file.
19731         * modules/unistr/u32-mblen: New file.
19732         * lib/unistr/u8-mblen.c: New file.
19733         * lib/unistr/u16-mblen.c: New file.
19734         * lib/unistr/u32-mblen.c: New file.
19735
19736         * modules/unistr/u8-mbtouc: New file.
19737         * modules/unistr/u16-mbtouc: New file.
19738         * modules/unistr/u32-mbtouc: New file.
19739         * lib/unistr/u8-mbtouc.c: New file.
19740         * lib/unistr/u16-mbtouc.c: New file.
19741         * lib/unistr/u32-mbtouc.c: New file.
19742
19743         * modules/unistr/u8-mbtouc-safe: New file.
19744         * modules/unistr/u16-mbtouc-safe: New file.
19745         * modules/unistr/u32-mbtouc-safe: New file.
19746         * lib/unistr/u8-mbtouc-safe.c: New file.
19747         * lib/unistr/u16-mbtouc-safe.c: New file.
19748         * lib/unistr/u32-mbtouc-safe.c: New file.
19749
19750         * modules/unistr/u8-move: New file.
19751         * modules/unistr/u16-move: New file.
19752         * modules/unistr/u32-move: New file.
19753         * lib/unistr/u8-move.c: New file.
19754         * lib/unistr/u16-move.c: New file.
19755         * lib/unistr/u32-move.c: New file.
19756         * lib/unistr/u-move.h: New file.
19757
19758         * modules/unistr/u8-next: New file.
19759         * modules/unistr/u16-next: New file.
19760         * modules/unistr/u32-next: New file.
19761         * lib/unistr/u8-next.c: New file.
19762         * lib/unistr/u16-next.c: New file.
19763         * lib/unistr/u32-next.c: New file.
19764
19765         * modules/unistr/u8-prev: New file.
19766         * modules/unistr/u16-prev: New file.
19767         * modules/unistr/u32-prev: New file.
19768         * lib/unistr/u8-prev.c: New file.
19769         * lib/unistr/u16-prev.c: New file.
19770         * lib/unistr/u32-prev.c: New file.
19771
19772         * modules/unistr/u8-set: New file.
19773         * modules/unistr/u16-set: New file.
19774         * modules/unistr/u32-set: New file.
19775         * lib/unistr/u8-set.c: New file.
19776         * lib/unistr/u16-set.c: New file.
19777         * lib/unistr/u32-set.c: New file.
19778         * lib/unistr/u-set.h: New file.
19779
19780         * modules/unistr/u8-startswith: New file.
19781         * modules/unistr/u16-startswith: New file.
19782         * modules/unistr/u32-startswith: New file.
19783         * lib/unistr/u8-startswith.c: New file.
19784         * lib/unistr/u16-startswith.c: New file.
19785         * lib/unistr/u32-startswith.c: New file.
19786         * lib/unistr/u-startswith.h: New file.
19787
19788         * modules/unistr/u8-stpcpy: New file.
19789         * modules/unistr/u16-stpcpy: New file.
19790         * modules/unistr/u32-stpcpy: New file.
19791         * lib/unistr/u8-stpcpy.c: New file.
19792         * lib/unistr/u16-stpcpy.c: New file.
19793         * lib/unistr/u32-stpcpy.c: New file.
19794         * lib/unistr/u-stpcpy.h: New file.
19795
19796         * modules/unistr/u8-stpncpy: New file.
19797         * modules/unistr/u16-stpncpy: New file.
19798         * modules/unistr/u32-stpncpy: New file.
19799         * lib/unistr/u8-stpncpy.c: New file.
19800         * lib/unistr/u16-stpncpy.c: New file.
19801         * lib/unistr/u32-stpncpy.c: New file.
19802         * lib/unistr/u-stpncpy.h: New file.
19803
19804         * modules/unistr/u8-strcat: New file.
19805         * modules/unistr/u16-strcat: New file.
19806         * modules/unistr/u32-strcat: New file.
19807         * lib/unistr/u8-strcat.c: New file.
19808         * lib/unistr/u16-strcat.c: New file.
19809         * lib/unistr/u32-strcat.c: New file.
19810         * lib/unistr/u-strcat.h: New file.
19811
19812         * modules/unistr/u8-strchr: New file.
19813         * modules/unistr/u16-strchr: New file.
19814         * modules/unistr/u32-strchr: New file.
19815         * lib/unistr/u8-strchr.c: New file.
19816         * lib/unistr/u16-strchr.c: New file.
19817         * lib/unistr/u32-strchr.c: New file.
19818
19819         * modules/unistr/u8-strcmp: New file.
19820         * modules/unistr/u16-strcmp: New file.
19821         * modules/unistr/u32-strcmp: New file.
19822         * lib/unistr/u8-strcmp.c: New file.
19823         * lib/unistr/u16-strcmp.c: New file.
19824         * lib/unistr/u32-strcmp.c: New file.
19825
19826         * modules/unistr/u8-strcpy: New file.
19827         * modules/unistr/u16-strcpy: New file.
19828         * modules/unistr/u32-strcpy: New file.
19829         * lib/unistr/u8-strcpy.c: New file.
19830         * lib/unistr/u16-strcpy.c: New file.
19831         * lib/unistr/u32-strcpy.c: New file.
19832         * lib/unistr/u-strcpy.h: New file.
19833
19834         * modules/unistr/u8-strcspn: New file.
19835         * modules/unistr/u16-strcspn: New file.
19836         * modules/unistr/u32-strcspn: New file.
19837         * lib/unistr/u8-strcspn.c: New file.
19838         * lib/unistr/u16-strcspn.c: New file.
19839         * lib/unistr/u32-strcspn.c: New file.
19840         * lib/unistr/u-strcspn.h: New file.
19841
19842         * modules/unistr/u8-strdup: New file.
19843         * modules/unistr/u16-strdup: New file.
19844         * modules/unistr/u32-strdup: New file.
19845         * lib/unistr/u8-strdup.c: New file.
19846         * lib/unistr/u16-strdup.c: New file.
19847         * lib/unistr/u32-strdup.c: New file.
19848         * lib/unistr/u-strdup.h: New file.
19849
19850         * modules/unistr/u8-strlen: New file.
19851         * modules/unistr/u16-strlen: New file.
19852         * modules/unistr/u32-strlen: New file.
19853         * lib/unistr/u8-strlen.c: New file.
19854         * lib/unistr/u16-strlen.c: New file.
19855         * lib/unistr/u32-strlen.c: New file.
19856         * lib/unistr/u-strlen.h: New file.
19857
19858         * modules/unistr/u8-strmblen: New file.
19859         * modules/unistr/u16-strmblen: New file.
19860         * modules/unistr/u32-strmblen: New file.
19861         * lib/unistr/u8-strmblen.c: New file.
19862         * lib/unistr/u16-strmblen.c: New file.
19863         * lib/unistr/u32-strmblen.c: New file.
19864
19865         * modules/unistr/u8-strmbtouc: New file.
19866         * modules/unistr/u16-strmbtouc: New file.
19867         * modules/unistr/u32-strmbtouc: New file.
19868         * lib/unistr/u8-strmbtouc.c: New file.
19869         * lib/unistr/u16-strmbtouc.c: New file.
19870         * lib/unistr/u32-strmbtouc.c: New file.
19871
19872         * modules/unistr/u8-strncat: New file.
19873         * modules/unistr/u16-strncat: New file.
19874         * modules/unistr/u32-strncat: New file.
19875         * lib/unistr/u8-strncat.c: New file.
19876         * lib/unistr/u16-strncat.c: New file.
19877         * lib/unistr/u32-strncat.c: New file.
19878         * lib/unistr/u-strncat.h: New file.
19879
19880         * modules/unistr/u8-strncmp: New file.
19881         * modules/unistr/u16-strncmp: New file.
19882         * modules/unistr/u32-strncmp: New file.
19883         * lib/unistr/u8-strncmp.c: New file.
19884         * lib/unistr/u16-strncmp.c: New file.
19885         * lib/unistr/u32-strncmp.c: New file.
19886
19887         * modules/unistr/u8-strncpy: New file.
19888         * modules/unistr/u16-strncpy: New file.
19889         * modules/unistr/u32-strncpy: New file.
19890         * lib/unistr/u8-strncpy.c: New file.
19891         * lib/unistr/u16-strncpy.c: New file.
19892         * lib/unistr/u32-strncpy.c: New file.
19893         * lib/unistr/u-strncpy.h: New file.
19894
19895         * modules/unistr/u8-strnlen: New file.
19896         * modules/unistr/u16-strnlen: New file.
19897         * modules/unistr/u32-strnlen: New file.
19898         * lib/unistr/u8-strnlen.c: New file.
19899         * lib/unistr/u16-strnlen.c: New file.
19900         * lib/unistr/u32-strnlen.c: New file.
19901         * lib/unistr/u-strnlen.h: New file.
19902
19903         * modules/unistr/u8-strpbrk: New file.
19904         * modules/unistr/u16-strpbrk: New file.
19905         * modules/unistr/u32-strpbrk: New file.
19906         * lib/unistr/u8-strpbrk.c: New file.
19907         * lib/unistr/u16-strpbrk.c: New file.
19908         * lib/unistr/u32-strpbrk.c: New file.
19909         * lib/unistr/u-strpbrk.h: New file.
19910
19911         * modules/unistr/u8-strrchr: New file.
19912         * modules/unistr/u16-strrchr: New file.
19913         * modules/unistr/u32-strrchr: New file.
19914         * lib/unistr/u8-strrchr.c: New file.
19915         * lib/unistr/u16-strrchr.c: New file.
19916         * lib/unistr/u32-strrchr.c: New file.
19917
19918         * modules/unistr/u8-strspn: New file.
19919         * modules/unistr/u16-strspn: New file.
19920         * modules/unistr/u32-strspn: New file.
19921         * lib/unistr/u8-strspn.c: New file.
19922         * lib/unistr/u16-strspn.c: New file.
19923         * lib/unistr/u32-strspn.c: New file.
19924         * lib/unistr/u-strspn.h: New file.
19925
19926         * modules/unistr/u8-strstr: New file.
19927         * modules/unistr/u16-strstr: New file.
19928         * modules/unistr/u32-strstr: New file.
19929         * lib/unistr/u8-strstr.c: New file.
19930         * lib/unistr/u16-strstr.c: New file.
19931         * lib/unistr/u32-strstr.c: New file.
19932         * lib/unistr/u-strstr.h: New file.
19933
19934         * modules/unistr/u8-strtok: New file.
19935         * modules/unistr/u16-strtok: New file.
19936         * modules/unistr/u32-strtok: New file.
19937         * lib/unistr/u8-strtok.c: New file.
19938         * lib/unistr/u16-strtok.c: New file.
19939         * lib/unistr/u32-strtok.c: New file.
19940         * lib/unistr/u-strtok.h: New file.
19941
19942         * modules/unistr/u8-uctomb: New file.
19943         * modules/unistr/u16-uctomb: New file.
19944         * modules/unistr/u32-uctomb: New file.
19945         * lib/unistr/u8-uctomb.c: New file.
19946         * lib/unistr/u16-uctomb.c: New file.
19947         * lib/unistr/u32-uctomb.c: New file.
19948
19949         * MODULES.html.sh (Unicode string functions): Add the new modules.
19950
19951 2007-01-08  Bruno Haible  <bruno@clisp.org>
19952
19953         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
19954         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
19955         subdirectories.
19956
19957 2007-01-08  Karl Berry  <karl@gnu.org>
19958
19959         * doc/error.texi: mention that main() fns must set program_name
19960         when progname is used.
19961
19962 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
19963
19964         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
19965         WCTYPE_H is empty, for the benefit of builds from non-distclean
19966         directories.  Problem reported by Eric Blake in
19967         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
19968
19969 2007-01-08  Bruno Haible  <bruno@clisp.org>
19970
19971         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
19972         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
19973         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
19974         PROVIDE_CANONICALIZE_FILENAME_MODE.
19975         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
19976
19977 2007-01-08  Bruno Haible  <bruno@clisp.org>
19978
19979         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
19980         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
19981         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
19982         * lib/fts.c: Likewise.
19983         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
19984
19985 2006-12-25  Bruno Haible  <bruno@clisp.org>
19986
19987         * modules/utf8-ucs4-safe: New file.
19988         * lib/utf8-ucs4-safe.h: New file.
19989         * lib/unistr/utf8-ucs4-safe.c: New file.
19990
19991         * modules/utf16-ucs4-safe: New file.
19992         * lib/utf16-ucs4-safe.h: New file.
19993         * lib/unistr/utf16-ucs4-safe.c: New file.
19994
19995         * MODULES.html.sh (Unicode string functions): Add the new modules.
19996
19997 2007-01-08  Bruno Haible  <bruno@clisp.org>
19998
19999         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
20000         (Depends-on): Add unitypes.
20001         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20002         (u8_mbtouc_aux): Move out to separate file.
20003         (u8_mbtouc): Use ucs4_t, uint8_t types.
20004         * lib/unistr/utf8-ucs4.c: New file.
20005
20006         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
20007         (Depends-on): Add unitypes.
20008         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20009         (u16_mbtouc_aux): Move out to separate file.
20010         (u16_mbtouc): Use ucs4_t, uint16_t types.
20011         * lib/unistr/utf16-ucs4.c: New file.
20012
20013         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
20014         (Depends-on): Add unitypes.
20015         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
20016         (u8_uctomb_aux): Move out to separate file.
20017         (u8_uctomb): Use ucs4_t, uint8_t types.
20018         * lib/unistr/ucs4-utf8.c: New file.
20019
20020         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
20021         (Depends-on): Add unitypes.
20022         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
20023         (u16_uctomb_aux): Move out to separate file.
20024         (u16_uctomb): Use ucs4_t, uint16_t types.
20025         * lib/unistr/ucs4-utf16.c: New file.
20026
20027 2006-12-25  Bruno Haible  <bruno@clisp.org>
20028
20029         * modules/unitypes: New file.
20030         * lib/unitypes.h: New file.
20031         * MODULES.html.sh (func_all_modules): New section "Unicode string
20032         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
20033         this section. Add unitypes.
20034
20035 2007-01-08  Bruno Haible  <bruno@clisp.org>
20036
20037         Avoid variable names that conflict with those from libtool.
20038         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
20039         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
20040         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
20041         library_names_spec to acl_library_names_spec, hardcode_* to
20042         acl_hardcode_*.
20043         Reported by Ralf Wildenhues.
20044
20045 2007-01-08  Bruno Haible  <bruno@clisp.org>
20046
20047         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
20048         definition.
20049         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
20050         definition.
20051         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
20052         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
20053         definition.
20054         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
20055         definition.
20056         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
20057         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
20058         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
20059         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
20060         definition.
20061         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
20062         definition.
20063         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
20064         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
20065         GC_USE_<algorithm>.
20066         * lib/gc-libgcrypt.c: Likewise.
20067         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
20068         * modules/gc-arctwo (configure.ac): Likewise.
20069         * modules/gc-des (configure.ac): Likewise.
20070         * modules/gc-hmac-md5 (configure.ac): Likewise.
20071         * modules/gc-hmac-sha1 (configure.ac): Likewise.
20072         * modules/gc-md2 (configure.ac): Likewise.
20073         * modules/gc-md4 (configure.ac): Likewise.
20074         * modules/gc-md5 (configure.ac): Likewise.
20075         * modules/gc-random (configure.ac): Likewise.
20076         * modules/gc-rijndael (configure.ac): Likewise.
20077         * modules/gc-sha1 (configure.ac): Likewise.
20078
20079 2007-01-08  Bruno Haible  <bruno@clisp.org>
20080
20081         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
20082         macro definition.
20083         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
20084         definition.
20085         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
20086         definition.
20087         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
20088         * modules/fcntl-safer (configure.ac): Likewise.
20089         * modules/fopen-safer (configure.ac): Likewise.
20090         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
20091         GNULIB_FWRITEERROR macro definition.
20092
20093 2007-01-08  Bruno Haible  <bruno@clisp.org>
20094
20095         * m4/gnulib-common.m4: New file.
20096         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
20097         (func_get_filelist): Add m4/gnulib-common.m4.
20098
20099 2007-01-08  Bruno Haible  <bruno@clisp.org>
20100
20101         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
20102         command.
20103
20104 2007-01-08  Jim Meyering  <jim@meyering.net>
20105
20106         Use a more robust test for a "can't happen" condition.
20107         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
20108         narrowed the st_size value.  Presuming the "can't happen" condition
20109         is true, that narrowing could conceivably convert an invalid st_size
20110         value into a valid one.  Instead, use a change based on Matthew
20111         Woehlke's original patch.
20112
20113         Slight readability improvement: use an assert-like macro
20114         in place of literal "abort ()" uses.
20115         * lib/fts.c (fts_assert): Define.
20116         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
20117         Use this macro instead of a bare 'abort'.
20118
20119 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
20120
20121         Don't worry about using IRIX 5.3's wctype.h broken definitions;
20122         simply work around them.
20123         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
20124         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
20125         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
20126         declaring.
20127         Don't bother to define as macros, since the standard doesn't require it.
20128         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
20129         longer worry about IRIX 5.3.
20130         (HAVE_WCTYPE_CTMP_BUG): Remove.
20131
20132 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20133
20134         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
20135         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
20136         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20137         Problems reported by Georg Schwarz for IRIX 5.3.
20138
20139         * gnulib-tool (autoconf_minversion): Take the maximum version number
20140         found, not the minimum.  Problem reported by James Youngman.
20141
20142 2007-01-03  Karl Berry  <karl@gnu.org>
20143
20144         * doc/error.texi: new file, explaining interaction with progname.
20145         * doc/gnulib.texi: include it.  Update copyright.
20146
20147 2007-01-03  Simon Josefsson  <simon@josefsson.org>
20148
20149         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
20150         AC_CANONICAL_HOST, to improve autobuild outputs.
20151
20152 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
20153             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20154
20155         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
20156         sockets, server sockets, and other file descriptors.  Count errors
20157         to compute the return value.  Reorder the code a bit to be easier
20158         to follow.  Don't set event bits that were not requested (except
20159         POLLERR and POLLHUP).
20160
20161 2007-01-01  Bruno Haible  <bruno@clisp.org>
20162
20163         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
20164
20165 2007-01-03  Jim Meyering  <jim@meyering.net>
20166
20167         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
20168
20169 2007-01-02  Bruno Haible  <bruno@clisp.org>
20170
20171         * modules/settime (Include): Require timespec.h.
20172         * modules/nanosleep (Include): Likewise.
20173
20174 2007-01-01  Bruno Haible  <bruno@clisp.org>
20175
20176         * gnulib-tool (func_emit_copyright_notice): Bump year.
20177         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
20178
20179 2007-01-01  Bruno Haible  <bruno@clisp.org>
20180
20181         Improve support for OpenBSD.
20182         * build-aux/config.rpath (libname_spec): Export.
20183         (library_names_spec): New variable. Export.
20184         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
20185         library_names_spec from the config.rpath output. Locate shared library
20186         through the name pattern in library_names_spec.
20187
20188 2007-01-01  Eric Blake  <ebb9@byu.net>
20189
20190         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
20191
20192 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20193
20194         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
20195         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
20196         assume the C locale, and avoid an "eval" that could cause trouble.
20197         Problem with SORT reported by Bob Proulx.
20198
20199         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
20200         Define.  Trivial patch from Henning Nielsen Lund, originally
20201         sent to bug-grep@gnu.org today.
20202
20203 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20204
20205         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
20206         struct stat.  Problem reported by Henning Nielsen Lund.
20207         * lib/acl.c: Include acl.h first, to check interface.  Don't
20208         bother to include sys/types.h and sys/stat.h again.
20209
20210 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20211
20212         Import the following change from libc; problem reported by
20213         Sven Verdoolaege.
20214
20215         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
20216
20217         [BZ #1373]
20218         * lib/argp.h: Remove __NTH for __argp_usage inline function.
20219
20220 2006-12-28  Jim Meyering  <jim@meyering.net>
20221
20222         * build-aux/announce-gen: Do not assume that the package
20223         builds any of tar.gz, tar.bz2, and .xdelta files.
20224         Suggestion from Simon Josefsson.
20225
20226 2006-12-28  Simon Josefsson  <simon@josefsson.org>
20227
20228         * modules/announce-gen: New file.
20229
20230 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20231
20232         * lib/mbchar.h: Just include <wctype.h>; the wctype module
20233         handles its gotchas now.
20234         * lib/mbswidth.c: Likewise.
20235         * lib/wcwidth.h: Likewise.
20236         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
20237         and iswcntrl; the wctype module does this stuff now.
20238         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20239         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20240         * modules/mbchar (Depends-on): Add wctype.
20241         * modules/mbswidth (Depends-on): Likewise.
20242         * modules/wcwidth (Depends-on): Likewise.
20243
20244 2006-12-27  Eric Blake  <ebb9@byu.net>
20245
20246         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
20247         module uses more than what <wctype.h> is required to provide.
20248
20249 2006-12-26  Eric Blake  <ebb9@byu.net>
20250
20251         * gnulib-tool (sed_extract_prog): Avoid space-tab.
20252
20253 2006-12-26  Eric Blake  <ebb9@byu.net>
20254
20255         * modules/absolute-header: New module.
20256         * modules/fcntl (Depends-on): Depend on it.
20257         * modules/inttypes (Depends-on): Likewise.
20258         * modules/stdint (Depends-on): Likewise.
20259         * modules/sys_stat (Depends-on): Likewise.
20260         * modules/wctype (Depends-on): Likewise.
20261         * MODULES.html.sh (Support for building libraries and
20262         executables): Document it.
20263
20264 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
20265
20266         * gnulib-tool (SED): Remove, undoing previous change.
20267         The problem was that it broke coreutils on Solaris, because
20268         "sed --posix" leaked into a makefile.
20269         (sed): New alias, if 'alias' and GNU sed.
20270
20271 2006-12-24  Jim Meyering  <jim@meyering.net>
20272
20273         Work around an fchownat bug in glibc-2.4:
20274         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
20275         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
20276         in spite of the -P option.
20277         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
20278         New macros.
20279         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
20280         * modules/openat (Files): Add lib/fchownat.c.
20281         * lib/openat.c (fchownat): Don't define here.  Move to...
20282         * lib/fchownat.c: ...this new file.
20283
20284 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20285
20286         Fix bug reported by Bruno Haible in
20287         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
20288         where quotearg.c didn't compile on Mac OS X 10.2 because it
20289         lacks <wchar.h> and wint_t.
20290         * lib/wctype_.h (__wctype_wint_t): New type.
20291         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
20292         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
20293         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
20294         Arg is now of type __wctype_wint_t, not wint_t.
20295         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
20296         substitute HAVE_WINT_T.
20297         * modules/wctype (Files): Add m4/wint_t.m4.
20298         (wctype.h): Substitute HAVE_WINT_T.
20299
20300 2006-12-23  Bruno Haible  <bruno@clisp.org>
20301
20302         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
20303
20304 2006-12-23  Bruno Haible  <bruno@clisp.org>
20305
20306         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
20307         S_ISLNK.
20308         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
20309         mingw.
20310
20311 2006-12-22  Bruno Haible  <bruno@clisp.org>
20312
20313         * lib/copy-file.c: Include acl.h.
20314         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
20315         Close the file descriptors only after being done with copy_acl.
20316         * modules/copy-file (Depends-on): Add acl.
20317
20318 2006-12-22  Bruno Haible  <bruno@clisp.org>
20319
20320         * gnulib-tool (SED): New variable.
20321         Use $SED instead of sed everywhere.
20322
20323 2006-12-22  Bruno Haible  <bruno@clisp.org>
20324
20325         * modules/no-c++: New file.
20326         * m4/no-c++.m4: New file.
20327         * MODULES.html.sh (Support for building libraries and executables):
20328         Add no-c++.
20329
20330 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20331
20332         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
20333         Include <limits.h>, and use its INT_MAX to rewrite the
20334         j loop so that it does not overflow 'int'.  Problem reported by
20335         Ralf Wildenhues in
20336         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
20337         Play it safe by shifting left by 1 rather than multiplying by 2,
20338         as GCC is less likely to optimize this away when the value
20339         is signed (when it assumes overflow leads to undefined behavior).
20340         Also, don't assume time_t uses two's complement.
20341
20342 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20343
20344         * MODULES.html.sh: New module wctype.
20345         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
20346         * lib/fnmatch.c: Don't bother to include <wchar.h> before
20347         <wctype.h>, since the new wctype module should fix this.
20348         * lib/quotearg.c: Include <wctype.h> unconditionally, since
20349         the wctype module should arrange for it.
20350         * lib/regex_internal.h: Likewise.
20351         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
20352         since the wctype module should handle this now.
20353         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
20354         * modules/fnmatch (Depends-on): Add wctype.
20355         * modules/quotearg (Depends-on): Likewise.
20356         * modules/regex (Depends-on): Likewise.
20357
20358 2006-12-19  Bruno Haible  <bruno@clisp.org>
20359
20360         * lib/strdup.h [C++]: Wrap definitions in extern "C".
20361         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
20362
20363 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20364
20365         * modules/savewd (Depends-on): Fix dependency on fcntl.
20366
20367 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20368
20369         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
20370         conforms to C99, rather than relying on the user's environment
20371         setting of STDINT_H.
20372
20373 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20374         and Eric Blake  <ebb9@byu.net>
20375
20376         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
20377         This is more consistent with the other defines here.
20378         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
20379         Port to z/OS.  Problem reported by Paul Gilmartin.
20380         Change local vars to use gl_ prefix rather than ac_.
20381         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
20382         with other defines.
20383         * modules/double-slash-root: New module.
20384         * modules/dirname (Files): Remove m4/double-slash-root.m4.
20385         (Depends-on): Add double-slash-root.
20386         * MODULES.html.sh (File system functions): Mention new module.
20387
20388 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
20389
20390         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
20391         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
20392         This is for the benefit of gzip, which doesn't do i18n.
20393
20394 2006-12-12  Jim Meyering  <jim@meyering.net>
20395
20396         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
20397         Reported by Andreas Schwab <schwab@suse.de>.
20398
20399 2006-12-12  Bruno Haible  <bruno@clisp.org>
20400
20401         Merge these changes.
20402         2006-09-05  Bruno Haible  <bruno@clisp.org>
20403         * lib/iconvme.c (iconv_string): No need to save and restore errno when
20404         iconv_alloc succeeded.
20405         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
20406         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
20407         test for " && dest " at the end - dest is always != NULL there. Call
20408         iconv with 4xNULL arguments initially, to reset the state. Call iconv
20409         with 2xNULL arguments, also to flush the state storage. Handle the
20410         IRIX iconv behaviour. Realloc the final result, to throw away unused
20411         memory.
20412
20413 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20414
20415         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
20416         and fchmodat unconditionally, since glibc 2.4 has them.
20417         Problem reported by Arkadiusz Miskiewicz.
20418
20419 2006-12-10  Bruno Haible  <bruno@clisp.org>
20420
20421         * gnulib-tool (func_import): Show the include files only for those
20422         modules that are copied and specified.
20423         Reported by Karl Berry.
20424
20425 2006-12-08  Jim Meyering  <jim@meyering.net>
20426
20427         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
20428         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
20429
20430         * build-aux/announce-gen: Add two new options, both optional:
20431         --bootstrap-tools=TOOL_LIST
20432               a comma-separated list of tools, e.g.,
20433               autoconf,automake,bison,gnulib
20434         --gnulib-snapshot-date=DATE
20435               if gnulib is in the bootstrap tool list,
20436               then report this as the snapshot date.
20437               If not specified, use the current date/time.
20438               If you specify a date here, be sure it's UTC.
20439
20440 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20441
20442         * tests/test-argp-2.sh: Fix test to match actual output.
20443         (func_compare): Fix sed script to be portable.
20444
20445 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20446
20447         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
20448         workaround for this case.  It is not autoconfigured now; offhand
20449         it's hard to see how to autoconfigure it.
20450
20451 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
20452
20453         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
20454         a directory that is about to be chowned.  Such a directory's
20455         initial file permissions should permit the owner only and this
20456         should not be changed until after the chown, since the group and
20457         other bits would be incorrect if they granted permission before
20458         the chown.
20459
20460         Fix porting problem for iswctype reported by Georg Schwarz in:
20461         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
20462         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
20463         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
20464         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
20465         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20466
20467 2006-12-03  Jim Meyering  <jim@meyering.net>
20468
20469         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
20470         p->fts_statp may not yet be defined.
20471         (fts_read): Instead, set it in the caller, once p->fts_statp is
20472         sure to be defined, and corresponds to a top-level directory.
20473         This bug made du -x fail.  Here's the coreutils test case:
20474         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
20475         Reported by Mike Frysinger.
20476
20477 2006-12-01  Jim Meyering  <jim@meyering.net>
20478
20479         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
20480         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
20481         Reported by Simon Josefsson.
20482
20483 2006-11-30  Jim Meyering  <jim@meyering.net>
20484
20485         * m4/warning.m4: Use the all-permissive copyright notice
20486         recommended by RMS (rather than LGPL).
20487         * m4/vararrays.m4: Likewise.
20488         * m4/flexmember.m4: Likewise.
20489
20490 2006-11-29  Bruno Haible  <bruno@clisp.org>
20491
20492         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20493         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
20494         using +=.
20495         Reported by Simon Josefsson <simon@josefsson.org>.
20496
20497 2006-11-28  James Youngman <jay@gnu.org>
20498
20499         * README: Advise users that they might find the bug-gnulib@gnu.org
20500         and autotools-announce@gnu.org mailing lists useful.
20501
20502 2006-11-28  Bruno Haible  <bruno@clisp.org>
20503
20504         * m4/ptrdiff_max.m4: Remove file.
20505
20506 2006-11-21  Bruno Haible  <bruno@clisp.org>
20507
20508         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
20509         _AC_COMPUTE_INT.
20510         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20511         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
20512         _AC_COMPUTE_INT.
20513         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20514         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
20515         _AC_COMPUTE_INT.
20516         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20517
20518 2006-11-28  Jim Meyering  <jim@meyering.net>
20519
20520         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
20521         warning from "gcc -Wshadow" about shadowing the builtin.
20522
20523 2006-11-27  Bruno Haible  <bruno@clisp.org>
20524
20525         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
20526         _AC_COMPUTE_INT.
20527         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20528
20529 2006-11-27  Bruno Haible  <bruno@clisp.org>
20530             Paul Eggert  <eggert@cs.ucla.edu>
20531
20532         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
20533
20534 2006-11-26  Bruno Haible  <bruno@clisp.org>
20535
20536         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20537         noinst_LTLIBRARIES.
20538
20539 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
20540             Bruno Haible  <bruno@clisp.org>
20541
20542         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
20543         if compiling with "gcc -ansi".
20544
20545 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
20546
20547         Fix some incompatibilities with gcc -ansi -pedantic.
20548         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
20549         if compiling pedantically with GCC, unless it's C99 or later.
20550         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
20551         it mishandles gcc -ansi -pedantic as well.
20552         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
20553         if gcc -pedantic.
20554         * lib/regexec.c (check_node_accept_bytes): Don't use auto
20555         initializers for struct if -pedantic, unless it's C99 or later.
20556
20557 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
20558
20559         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
20560         Don't close an fd more than once. Identical atimes indicate
20561         success, not failure.
20562
20563 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
20564
20565         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
20566
20567 2006-11-23  Jim Meyering  <jim@meyering.net>
20568
20569         * build-aux/announce-gen: New file.  From coreutils.
20570
20571 2006-11-22  Jim Meyering  <jim@meyering.net>
20572
20573         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
20574         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
20575         (fts_read): Use a temporary to narrow the overused st_size member
20576         before using it in a switch statement.  Reported by Matthew Woehlke.
20577
20578         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
20579         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20580
20581 2006-11-20  Bruno Haible  <bruno@clisp.org>
20582
20583         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
20584         changequote instead of pairs of brackets.
20585         Reported by Andreas Schwab <schwab@suse.de>.
20586
20587 2006-11-21  Jim Meyering  <jim@meyering.net>
20588
20589         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
20590         so as to remain compatible with older compilers.
20591         Patch from Michael Deutschmann.
20592
20593 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20594
20595         * MODULES.html.sh (File system functions): Add openat.
20596
20597         * lib/openat.h (rpl_fstatat): New macro, if
20598         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
20599         (fstatat): Define to rpl_fstatat under the same conditions,
20600         unless COMPILING_FSTATAT.
20601         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
20602         seems to have the bug.
20603         * lib/fstatat.c: New file.
20604         * modules/openat (Files): Add it.
20605
20606 2006-11-20  Bruno Haible  <bruno@clisp.org>
20607
20608         * Makefile: New file.
20609
20610 2006-11-20  Jim Meyering  <jim@meyering.net>
20611
20612         The beginnings of syntax-related checks for gnulib.
20613         * lib/Makefile: New file.
20614         * lib/t-idcache: New script.  Ensure that the two halves of
20615         idcache.c stay in sync.
20616
20617         * lib/idcache.c: Adjust comments in user- and group- portions to
20618         be more accurate, and to be consistent with one another.
20619
20620 2006-11-20  Jim Meyering  <jim@meyering.net>
20621
20622         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
20623         continue using the flexible array member (thus, this module performs
20624         half as many malloc calls), with the addition that...
20625         (getgroup, getuser): Consistently record a non-match via an empty
20626         "name" string, and map an empty string match to a NULL return value.
20627         * modules/idcache (Depends-on): Re-add flexmember.
20628
20629         * lib/idcache.c (getuser): Remove all uses of the register keyword.
20630         (getuidbyname, getgroup, getgidbyname): Likewise.
20631
20632         Use cleaner syntax: NULL rather than 0.
20633         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
20634
20635 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20636
20637         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
20638         It mishandled the case where the group was missing.
20639         Problem reported by Greg Schafer.
20640         * modules/idcache: Likewise.
20641
20642 2006-11-18  Jim Meyering  <jim@meyering.net>
20643
20644         * check-module (%exempt_header): Add exception for some
20645         conditionally-included headers.
20646
20647         * modules/i-ring (Depends-on): Add verify.
20648         (License): Change to LGPL.
20649
20650 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20651
20652         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
20653         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
20654         and inttostr.h.  Use snprintf rather than uinttostr, so that
20655         LGPLed code doesn't depend on GPLed.
20656
20657 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20658
20659         * modules/inline (License): Change from GPL to LGPL.
20660
20661 2006-11-17  Jim Meyering  <jim@meyering.net>
20662
20663         * modules/d-type (License): Switch to LGPL.
20664
20665 2006-11-15  Bruno Haible  <bruno@clisp.org>
20666
20667         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
20668
20669 2006-11-15  Eric Blake  <ebb9@byu.net>
20670
20671         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
20672         the module dependency.
20673
20674 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20675             Bruno Haible  <bruno@clisp.org>
20676
20677         * gnulib-tool (func_create_testdir): Add license consistency check.
20678
20679 2006-11-15  Eric Blake  <ebb9@byu.net>
20680
20681         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
20682         random "(cached)" in configure output.
20683
20684 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20685
20686         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
20687         test for conforming inttypes.h is both announced and cached.
20688
20689         * MODULES.html.sh (seen_modules, seen_files): New variables.
20690         (func_module): Rewrite to use a few less gnulib-tool and sed
20691         invocations.  Avoid a couple of quadratic algorithms for ...
20692         (missed_modules, missed_files): ... these, with ...
20693         (func_append, func_tmpdir): ... these new functions, from
20694         gnulib-tool.  Analogously, install traps for cleanup.
20695
20696         * tests/test-gc.c (main): Remove unused variables.
20697         * tests/test-read-file.c: Include stdlib.h, for 'free'.
20698
20699 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
20700
20701         * modules/inttostr (License): Change to LGPL.
20702
20703 2006-11-14  Eric Blake  <ebb9@byu.net>
20704
20705         * modules/tempname (License): Change to LGPL.
20706
20707 2006-11-14  Eric Blake  <ebb9@byu.net>
20708
20709         * doc/functions.texi (Function Portability): *printf functions on
20710         Cygwin now understand all POSIX size specifiers.
20711
20712 2006-11-14  Bruno Haible  <bruno@clisp.org>
20713
20714         * modules/c-ctype (License): Change to LGPL.
20715
20716 2006-11-12  Bruno Haible  <bruno@clisp.org>
20717
20718         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20719         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
20720         for GNOME libraries, for which the include files are installed in
20721         subdirectories of $prefix/include.
20722
20723 2006-11-12  Bruno Haible  <bruno@clisp.org>
20724
20725         * m4/lib-link.m4: Require at least autoconf-2.54.
20726         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
20727         name to underscores for the --with option.
20728
20729 2006-11-13  Bruno Haible  <bruno@clisp.org>
20730
20731         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
20732         the tests directory.
20733         Reported by Ralf Wildenhues.
20734
20735 2006-11-13  Bruno Haible  <bruno@clisp.org>
20736
20737         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
20738         (func_emit_initmacro_end): Undo the override here.
20739         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
20740         Works around the famous automake error in coreutils.
20741
20742 2006-11-13  Eric Blake  <ebb9@byu.net>
20743
20744         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
20745         element, not its node.
20746
20747 2006-11-12  Bruno Haible  <bruno@clisp.org>
20748
20749         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
20750         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
20751
20752 2006-11-12  Bruno Haible  <bruno@clisp.org>
20753
20754         * gnulib-tool: New option --local-symlink.
20755         (func_usage): Document it.
20756         (lsymbolic): New variable.
20757         (func_import, func_create_testdir): If --symlink was not specified,
20758         test whether --local-symlink was specified and the file comes from
20759         the local_gnulib_dir.
20760
20761 2006-11-12  Bruno Haible  <bruno@clisp.org>
20762
20763         * gnulib-tool (func_ln): New function.
20764         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
20765
20766 2006-11-12  Bruno Haible  <bruno@clisp.org>
20767
20768         Finish support for source files in subdirectories.
20769         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
20770         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
20771         AUTOMAKE_OPTIONS.
20772         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
20773
20774 2006-11-12  Bruno Haible  <bruno@clisp.org>
20775
20776         * gnulib-tool (func_get_automake_snippet): Synthesize also an
20777         EXTRA_lib_SOURCES augmentation.
20778         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
20779
20780 2006-11-12  Jim Meyering  <jim@meyering.net>
20781
20782         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
20783         file descriptors.  This also averts a failure on systems with
20784         native openat support when a traversed directory lacks "x" access.
20785         * lib/fts_.h: Include "i-ring.h"
20786         (struct FTS) [fts_fd_ring]: New member.
20787         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
20788         (FCHDIR): Add parentheses.
20789         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
20790         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
20791         When descending, rather than simply closing the previous
20792         fts_cwd_fd value, push that file descriptor onto the ring.
20793         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
20794         (fts_open): Initialize the new fd_ring member.
20795         (fts_close): Clear the ring.
20796         (fts_safe_changedir): When possible, use our new fd_ring to skip
20797         the diropen and fstat and dev/ino comparison that would normally
20798         accompany a virtual `chdir ("..")'.
20799
20800         * modules/fts (Depends-on): Add i-ring.
20801         * modules/i-ring: New module.
20802         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
20803         * m4/i-ring.m4: New file.
20804
20805 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20806
20807         * gnulib-tool (func_create_testdir): Fix replacement of
20808         `build-aux' in configure.ac.  Run autotools in gltests
20809         subdirectory.
20810         (func_create_testdir, func_create_megatestdir, test): There is
20811         no need for '--force' in most autotool invocations in a new
20812         tree.  Actually fail the whole test if any of the tools, or the
20813         configure or make stages fail.
20814
20815         Sync from Automake.
20816         * build-aux/gnupload: Revert last change.  Add pointer to upload
20817         instructions of the GNU Maintenance Instructions.
20818         Suggestion by Karl Berry.
20819
20820 2006-11-10  Jim Meyering  <jim@meyering.net>
20821
20822         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
20823
20824 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20825
20826         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
20827         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
20828         (bind_textdomain_codeset) [! ENABLE_NLS]:
20829         Evaluate all the arguments.  That way, callers get compatible behavior
20830         if the arguments have side effects.  Also, it avoids some GCC
20831         diagnostics in some cases; Joel E. Denny reported problems when Bison
20832         was configured with --enable-gcc-warnigs.
20833
20834 2006-11-10  Jim Meyering  <jim@meyering.net>
20835
20836         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
20837         relevant options in CFLAGS (like -O, -fno-inline) are taken into
20838         account.
20839
20840 2006-11-10  Jim Meyering  <jim@meyering.net>
20841
20842         * modules/inline: New file/module.
20843         * modules/xalloc (Files): Remove m4/inline.m4.
20844         (Depends-on): Add inline, instead.
20845         * modules/oset: Likewise.
20846         * modules/list: Likewise.
20847
20848 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20849
20850         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
20851         Problem reported by Matthew Woehlke.
20852
20853 2006-11-09  Bruno Haible  <bruno@clisp.org>
20854
20855         * lib/tempname.c (gen_tempname): Remove variant that invokes
20856         __gen_tempname.
20857         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
20858         __gen_tempname.
20859
20860 2006-11-08  Bruno Haible  <bruno@clisp.org>
20861
20862         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
20863         to 'yes' instead of 'cross-compiling'.
20864
20865 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20866
20867         * lib/quotearg.h (quotearg_free): New decl.
20868         * lib/quotearg.c (quotearg_free): New function.
20869         (slot0, nslots, slotvec0, slotvec):
20870         Now file-scope so that quotearg_free can get at them.
20871
20872 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20873
20874         Sync from Automake.
20875         * build-aux/gnupload: Add missing 'gnu' to example URL.
20876         Report by Karl Berry.
20877
20878 2006-11-08  Bruno Haible  <bruno@clisp.org>
20879
20880         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
20881         Suggested by Paul Eggert.
20882
20883 2006-11-08  Jim Meyering  <jim@meyering.net>
20884
20885         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
20886         It's already included if !_LIBC.
20887         (fts_safe_changedir): Add a comment.
20888
20889 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20890
20891         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
20892         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
20893         Matthew Woehlke.
20894
20895         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
20896         definitions up, to avoid colliding with change below.
20897         (static_inline) [HAVE_INLINE]: New macro.
20898         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20899         Provide extern decls when !HAVE_INLINE.  Do not define unless
20900         static_inline is defined, either by us or by xmalloc.c.  Use
20901         static_inline rather than static inline.
20902         (XCALLOC): Optimize sizeof(T) = 1 case.
20903         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
20904
20905 2006-11-07  Bruno Haible  <bruno@clisp.org>
20906
20907         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
20908         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
20909         AC_C_INLINE.
20910         * modules/xalloc (Files): Add m4/inline.m4.
20911
20912 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20913
20914         * README: Fix typo.
20915         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
20916         (Miscellanous Notes): ...from this.
20917
20918 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20919
20920         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20921         Mention that offsetof should be used instead of sizeof.
20922         From Bruno Haible.
20923
20924 2006-11-07  Bruno Haible  <bruno@clisp.org>
20925
20926         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
20927
20928 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20929
20930         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20931         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
20932         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20933         (gl_tree_add_before, gl_tree_add_after):
20934         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
20935         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
20936         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
20937         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
20938         (gl_linked_add_after, gl_linked_add_at): Likewise.
20939         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
20940         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20941         (gl_tree_add_before, gl_tree_add_after): Likewise.
20942         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
20943         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
20944         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20945
20946 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20947
20948         * lib/gl_oset.h: Use C comment style, not C++ comment style.
20949
20950 2006-11-06  Bruno Haible  <bruno@clisp.org>
20951
20952         * m4/inline.m4: New file.
20953         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
20954         * modules/list (Files): Add m4/inline.m4.
20955         * modules/oset (Files): Likewise.
20956
20957 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20958
20959         * lib/idcache.c: Include <stddef.h>, for offsetof.
20960         (struct userid.name): Change from char * to a flexible array member.
20961         All uses changed.
20962         * modules/idcache (Depends-on): Add flexmember.
20963
20964         * MODULES.html.sh (Core language properties): New module flexmember.
20965         * modules/flexmember, m4/flexmember.m4: New files.
20966
20967         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
20968         inline functions that are identical with the old xnmalloc_inline,
20969         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
20970         that we can avoid some unnecessary integer multiplications and
20971         divisions in the common case where the element size is known at
20972         compile time.
20973         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
20974         needed.
20975         (xnboundedmalloc): Remove.
20976         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
20977         arguments, for consistency with rest of this header.
20978         (xcharalloc): Rewrite using XNMALLOC.
20979         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
20980         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
20981         versions have been moved to lib/xalloc.h and renamed to be the
20982         non-*_inline versions.
20983         (xmalloc, xrealloc): Implement without reference to the xnmalloc
20984         and xnrealloc functions, since those functions are now inline and
20985         now call us.
20986         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
20987         renaming described above.
20988         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
20989         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
20990         captures the dependency in AC_C_INLINE.
20991
20992         New module canonicalize-lgpl, proposed by Charles Wilson in
20993         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
20994         with a few small changes afterwards.
20995         * MODULES.html.sh (File system functions): New module
20996         canonicalize-lgpl.
20997         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
20998         and canonicalize_file_name.
20999         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
21000         * modules/canonicalize-lgpl: New files.
21001
21002 2006-11-05  Bruno Haible  <bruno@clisp.org>
21003
21004         * gnulib-tool (func_import, func_create_testdir): Create directories
21005         also for files in subdirectories of lib/.
21006
21007 2006-11-05  Bruno Haible  <bruno@clisp.org>
21008
21009         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
21010         ANSI C compliant.
21011
21012 2006-11-03  Bruno Haible  <bruno@clisp.org>
21013
21014         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21015         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
21016         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
21017         (xnboundedmalloc): New inline function.
21018         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
21019         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
21020         xmalloc.
21021         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
21022         xmalloc.
21023         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
21024         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
21025         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
21026         xmalloc.
21027         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21028         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
21029         xmalloc.
21030         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
21031         gl_tree_add_after): Use XMALLOC instead of xmalloc.
21032         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
21033         xmalloc.
21034         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21035         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
21036         gl_tree_add_after): Use XMALLOC instead of xmalloc.
21037         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
21038         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
21039         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
21040         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
21041
21042 2006-11-03  Bruno Haible  <bruno@clisp.org>
21043
21044         * lib/c-ctype.h [C++]: Define functions without name mangling.
21045         * lib/fwriteerror.h [C++]: Likewise.
21046         * lib/gcd.h [C++]: Likewise.
21047         * lib/linebreak.h [C++]: Likewise.
21048
21049 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
21050
21051         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
21052         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
21053         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
21054         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
21055         Check for functions and headers just once.
21056         Check for declaration of canonicalize_file_name.
21057         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
21058
21059 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21060
21061         * gnulib-tool (func_import): Fix typo in actioncmd.
21062
21063 2006-11-02  Bruno Haible  <bruno@clisp.org>
21064
21065         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
21066         newline sequence in the Makefile.am snippet as a space, like "make"
21067         does.
21068         Reported by Roger Persson <perrog@gmail.com>.
21069
21070 2006-11-01  Bruno Haible  <bruno@clisp.org>
21071
21072         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
21073         already declared in <string.h>.
21074         * lib/strcase.h (strncasecmp): Don't declare it if yes.
21075
21076 2006-11-01  Bruno Haible  <bruno@clisp.org>
21077
21078         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
21079         * lib/strcase.h: Include <string.h>.
21080         (strcasecmp): Define to rpl_strcasecmp here.
21081
21082 2006-11-01  Bruno Haible  <bruno@clisp.org>
21083
21084         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
21085
21086 2006-11-01  Eric Blake  <ebb9@byu.net>
21087
21088         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
21089
21090         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
21091
21092 2006-10-29  Bruno Haible  <bruno@clisp.org>
21093
21094         Make it compile in C++ mode.
21095         * lib/full-write.c (full_rw): Add a cast.
21096
21097 2006-11-01  Bruno Haible  <bruno@clisp.org>
21098
21099         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
21100         be POSIX compliant.
21101         Reported by Roger Persson <perrog@gmail.com>.
21102
21103 2006-11-01  Eric Blake  <ebb9@byu.net>
21104
21105         * lib/getopt_.h: Fix comments.
21106
21107 2006-10-31  Eric Blake  <ebb9@byu.net>
21108
21109         * modules/tmpdir (Depends-on): Add sys_stat.
21110         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
21111         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
21112         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
21113         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
21114         tempname.
21115
21116 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
21117
21118         Avoid some C++ diagnostics reported by Bruno Haible.
21119         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
21120         xmalloc.
21121         (quotearg_alloc): Use xcharalloc rather than xmalloc.
21122         (struct slotvec): Move to top level.
21123         (quotearg_n_options): Rewrite to avoid xmalloc.
21124         * lib/xalloc.h (xcharalloc): New function.
21125         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
21126         [defined __cplusplus]: Add function template that provides result
21127         type propagation.  This part of the change is from Bruno Haible.
21128
21129 2006-10-29  Bruno Haible  <bruno@clisp.org>
21130
21131         Make it compile in C++ mode.
21132         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
21133         * lib/strnlen1.c (strnlen1): Cast memchr result.
21134         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
21135         * lib/clean-temp.c (string_equals, string_hash): Add casts.
21136         (create_temp_dir): Rename local variable 'template'.
21137         (compile_csharp_using_sscli): Add cast.
21138         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
21139         * lib/findprog.c (find_in_path): Likewise.
21140         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
21141         * lib/wait-process.c (register_slave_subprocess): Likewise.
21142
21143 2006-10-22  Bruno Haible  <bruno@clisp.org>
21144
21145         * modules/tsearch: New file.
21146         * lib/tsearch.h: New file.
21147         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
21148         * m4/tsearch.m4: New file.
21149         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
21150
21151 2006-10-29  Eric Blake  <ebb9@byu.net>
21152
21153         * lib/arcfour.c: Assume config.h.
21154         * lib/arctwo.c: Likewise.
21155         * lib/base64.c: Likewise.
21156         * lib/check-version.c: Likewise.
21157         * lib/crc.c: Likewise.
21158         * lib/des.c: Likewise.
21159         * lib/gc-gnulib.c: Likewise.
21160         * lib/gc-libgcrypt.c: Likewise.
21161         * lib/gc-pbkdf2-sha1.c: Likewise.
21162         * lib/getaddrinfo.c: Likewise.
21163         * lib/getdelim.c: Likewise.
21164         * lib/getline.c: Likewise.
21165         * lib/hmac-md5.c: Likewise.
21166         * lib/hmac-sha1.c: Likewise.
21167         * lib/iconvme.c: Likewise.
21168         * lib/md2.c: Likewise.
21169         * lib/md4.c: Likewise.
21170         * lib/memxor.c: Likewise.
21171         * lib/read-file.c: Likewise.
21172         * lib/readline.c: Likewise.
21173         * lib/rijndael-alg-fst.c: Likewise.
21174         * lib/rijndael-api-fst.c: Likewise.
21175         * lib/xgetdomainname.c: Likewise.
21176
21177 2006-10-28  Eric Blake  <ebb9@byu.net>
21178
21179         * lib/xstrndup.c: Assume config.h.
21180
21181 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
21182
21183         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
21184         stat-macros.h is now for our own macros, whereas stat_h is for
21185         macros in the <sys/stat.h> name space.
21186         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
21187         (STAT_MACROS_H): Remove.
21188         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
21189         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
21190         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
21191         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
21192         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
21193         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
21194         Move these macros to ...
21195         * lib/stat_.h: here.  Don't include stat-macros.h.
21196         * lib/canonicalize.c: Don't include stat-macros.h.
21197         * lib/chown.c: Likewise.
21198         * lib/euidaccess.c: Likewise.
21199         * lib/file-type.c: Likewise.
21200         * lib/filemode.c: Likewise.
21201         * lib/glob.c: Likewise.
21202         * lib/isapipe.c: Likewise.
21203         * lib/lchown.c: Likewise.
21204         * lib/lstat.c: Likewise.
21205         * lib/mkdir-p.c: Likewise.
21206         * lib/rmdir.c: Likewise.
21207         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
21208         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
21209         unless mkdir isn't declared, to speed up 'configure'.
21210         Always create sys/stat.h, since it's unlikely any real sys/stat.h
21211         would define all the S_* symbols.
21212         * modules/canonicalize (Depends-on):
21213         Depend on sys_stat, not stat-macros.
21214         * modules/chown: Likewise.
21215         * modules/euidaccess: Likewise.
21216         * modules/filemode: Likewise.
21217         * modules/file-type: Likewise.
21218         * modules/glob: Likewise.
21219         * modules/isapipe: Likewise.
21220         * modules/lchown: Likewise.
21221         * modules/lstat: Likewise.
21222         * modules/mkancesdirs: Likewise.
21223         * modules/rmdir: Likewise.
21224         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
21225         * modules/modechange: Likewise.
21226         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
21227         (configure.ac): Remove gl_STAT_MACROS.
21228         * modules/sys_stat (Depends-on): Remove stat-macros.
21229
21230 2006-10-27  Bruno Haible  <bruno@clisp.org>
21231
21232         * m4/signed.m4: Remove file.
21233         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
21234         invocation.
21235         * modules/vasnprintf (Files): Remove m4/signed.m4.
21236
21237 2006-10-27  Bruno Haible  <bruno@clisp.org>
21238
21239         Update to GNU gettext 0.16.
21240         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
21241         m4/inttypes-h.m4, m4/signed.m4.
21242         * m4/gettext.m4: Update to GNU gettext 0.16.
21243         * m4/intl.m4: New file, from GNU gettext.
21244         * m4/intldir.m4: New file, from GNU gettext.
21245         * config/srclist.txt: Update
21246
21247 2006-10-27  Eric Blake  <ebb9@byu.net>
21248
21249         * MODULES.html.sh: Document tempname.
21250         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
21251         dependencies.
21252         (Files): Move lib/tempname.c...
21253         * modules/tempname: ...to this new module.
21254         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
21255         (gl_PREREQ_TEMPNAME): Move...
21256         * m4/tempname.m4: ...to this new file.
21257         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
21258         * modules/sys_stat (Depends-on): Add stat-macros.
21259         * lib/stat_.h (includes): Pick up stat macros.
21260         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
21261         if stat macros are broken.
21262         * lib/tempname.c (includes): No need to include "stat-macros.h".
21263         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
21264         (direxists, __path_search) [!_LIBC]: Don't compile these in
21265         gnulib; the tmpdir module covers that.
21266         * lib/tempname.h: New file.
21267
21268 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21269
21270         * COPYING: Explain how gnulib-tool converts licence headers.
21271         Almost all wording by Eric Blake.
21272
21273 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
21274
21275         * lib/mbchar.h (is_basic_table): Make read-only.
21276         * lib/mbchar.c (is_basic_table): Likewise.
21277         Reported by John Darrington.
21278
21279 2006-10-25  Bruno Haible  <bruno@clisp.org>
21280
21281         * lib/progname.h (set_program_name): Undefine before defining.
21282
21283 2006-10-25  Bruno Haible  <bruno@clisp.org>
21284
21285         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
21286         false for non-gcc C++ compilers.
21287         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21288
21289 2006-10-24  Bruno Haible  <bruno@clisp.org>
21290
21291         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
21292         iconv implementations like Irix iconv.
21293
21294 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21295
21296         * modules/vararrays: New file.
21297         * m4/vararrays.m4: New file, taken from diffutils.
21298         * MODULES.html.sh: New module vararrays.
21299
21300 2006-10-24  Karl Berry  <karl@gnu.org>
21301
21302         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
21303         Don't call GNU Unix.
21304
21305 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21306
21307         * users.txt: Add Libtool.
21308
21309         Sync from Libtool:
21310
21311         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21312
21313         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
21314         to gnulib's policy of including config.h unconditionally.
21315
21316 2006-10-24  Bruno Haible  <bruno@clisp.org>
21317
21318         * modules/wcwidth (Files): Add m4/wint_t.m4.
21319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
21320         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
21321
21322 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21323
21324         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
21325         to pacify GCC with some -W flags enabled.  Problem reported by
21326         Bruno Haible.
21327
21328 2006-10-24  Jim Meyering  <jim@meyering.net>
21329
21330         * MODULES.html.sh: Remove uinttostr.  It's not a module.
21331         Reported by Karl Berry.
21332
21333 2006-10-23  Bruno Haible  <bruno@clisp.org>
21334
21335         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
21336
21337 2006-10-24  Bruno Haible  <bruno@clisp.org>
21338
21339         * lib/gl_list.h: Use C comment style, not C++ comment style.
21340
21341 2006-10-23  Eric Blake  <ebb9@byu.net>
21342
21343         * lib/getaddrinfo.c (includes): Add missing include.
21344
21345 2006-10-23  Bruno Haible  <bruno@clisp.org>
21346             Paul Eggert  <eggert@cs.ucla.edu>
21347
21348         Ability to rename obstack_free.
21349         * lib/obstack.h (__obstack_free): New macro. Declare instead of
21350         obstack_free.
21351         (obstack_free): Invoke the __obstack_free macro.
21352         * lib/obstack.c (obstack_free): Use __obstack_free macro.
21353
21354 2006-10-23  Bruno Haible  <bruno@clisp.org>
21355             Paul Eggert  <eggert@cs.ucla.edu>
21356
21357         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
21358         __argc, __argv from the declaration. (They are defined as macros on
21359         mingw.)
21360
21361 2006-10-22  Bruno Haible  <bruno@clisp.org>
21362
21363         * doc/gnulib-intro.texi: New file.
21364         * doc/gnulib.texi: Include it.
21365
21366 2006-10-21  Bruno Haible  <bruno@clisp.org>
21367
21368         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
21369         "Introduction", "Miscellanous Notes", "Particular Modules".
21370
21371 2006-10-21  Bruno Haible  <bruno@clisp.org>
21372
21373         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21374         Change mostlyclean-local rule to avoid sh syntax error from bash
21375         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
21376
21377 2006-10-23  Jim Meyering  <jim@meyering.net>
21378
21379         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
21380         in place of snprintf.
21381
21382         * modules/inttostr (Files): Add lib/uinttostr.c.
21383         * lib/uinttostr.c (inttostr): New file/function.
21384         * lib/inttostr.h (uinttostr): Declare.
21385         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
21386         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21387         Add uinttostr.
21388         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
21389
21390 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21391
21392         * lib/canonicalize.c (ELOOP): Define if not already defined.
21393         Problem reported by Bruno Haible in
21394         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
21395
21396 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21397
21398         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
21399         Problem reported by Perry Smith and Ville Laurikari.
21400
21401         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
21402         uses.
21403
21404 2006-10-19  Bruno Haible  <bruno@clisp.org>
21405
21406         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
21407         for mingw.
21408
21409 2006-10-19  Bruno Haible  <bruno@clisp.org>
21410
21411         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
21412         Needed for mingw.
21413
21414 2006-10-19  Bruno Haible  <bruno@clisp.org>
21415
21416         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
21417
21418 2006-10-19  Bruno Haible  <bruno@clisp.org>
21419
21420         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
21421         it.
21422
21423 2006-10-19  Bruno Haible  <bruno@clisp.org>
21424
21425         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
21426         invocation.
21427
21428 2006-10-19  Bruno Haible  <bruno@clisp.org>
21429
21430         * gnulib-tool (func_create_testdir): Don't include ftruncate and
21431         mountlist by default.
21432
21433 2006-10-16  Bruno Haible  <bruno@clisp.org>
21434
21435         * lib/c-strstr.c: Include c-strstr.h.
21436
21437 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21438
21439         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
21440         in a slash.
21441
21442 2006-10-18  Bruno Haible  <bruno@clisp.org>
21443
21444         * lib/lock.h [C++]: Wrap definitions in extern "C".
21445
21446 2006-10-18  Bruno Haible  <bruno@clisp.org>
21447
21448         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
21449         gl_LIBOBJS list.
21450
21451 2006-10-18  Bruno Haible  <bruno@clisp.org>
21452
21453         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
21454
21455 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21456
21457         * lib/xstrtol.h: Include gettext.h.
21458         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
21459         Problem reported by Eric Blake.
21460         * modules/xstrtol (Depends-on): Add gettext-h.
21461
21462 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
21463
21464         * lib/strftime.c (advance): New macro.
21465         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
21466         incomplete type, so you can't add 0 to it.  Problem and patch
21467         reported by Eelco Dolstra for dietlibc.
21468
21469 2006-10-18  Jim Meyering  <jim@meyering.net>
21470
21471         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
21472         type for a local, and rename it: s/up/user_proc/.
21473
21474 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
21475
21476         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
21477         READ_UTMP_USER_PROCESS.
21478         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
21479
21480 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
21481
21482         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
21483         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
21484
21485 2006-10-17  Eric Blake  <ebb9@byu.net>
21486
21487         * lib/sigprocmask.c (sigprocmask): Fix typo.
21488
21489         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
21490
21491         * modules/clean-temp (Makefile.am): Don't add to make output...
21492         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
21493         config.h.
21494
21495 2006-10-17  Bruno Haible  <bruno@clisp.org>
21496
21497         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
21498         differently if DEFAULT_TEXT_DOMAIN is set.
21499
21500 2006-10-16  Bruno Haible  <bruno@clisp.org>
21501
21502         * lib/clean-temp.c: Include fwriteerror.h.
21503
21504 2006-10-16  Bruno Haible  <bruno@clisp.org>
21505
21506         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
21507
21508 2006-10-16  Bruno Haible  <bruno@clisp.org>
21509
21510         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
21511         * lib/sigprocmask.h: Include <sys/types.h>.
21512         (sigset_t): Use the system's definition if present.
21513
21514 2006-10-17  Eric Blake  <ebb9@byu.net>
21515
21516         * lib/xvasprintf.c (includes): Assume config.h.
21517         * lib/xasprintf.c (includes): Likewise.
21518
21519 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21520
21521         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
21522         at least as wide as intmax_t.
21523
21524 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
21525
21526         (Imported from Automake.)
21527         * build-aux/gnupload: Update to version 1.1 of directive file.
21528
21529 2006-10-16  Eric Blake  <ebb9@byu.net>
21530
21531         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
21532         match Automake 1.10a.
21533
21534 2006-10-14  Bruno Haible  <bruno@clisp.org>
21535
21536         * modules/sigprocmask: New file.
21537         * lib/sigprocmask.h: New file.
21538         * lib/sigprocmask.c: New file.
21539         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
21540         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
21541         request sigprocmask.o.
21542         (gl_PREREQ_SIGPROCMASK): New macro.
21543         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
21544         (Depends-on): Add sigprocmask.
21545         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
21546         gt_SIGNALBLOCKING. Test for 'raise' only once.
21547         * lib/fatal-signal.c: Include sigprocmask.h.
21548         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
21549         unblock_fatal_signals): Define always.
21550         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21551         sigprocmask.
21552
21553 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21554
21555         Sync from Automake.
21556         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
21557         which incorrectly sets the mode of an existing destination
21558         directory.  In some cases the unpatched install-sh could do the
21559         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
21560         system.  We hope this is rare in practice, but it's clearly worth
21561         fixing.  Problem reported by Alex Unleashed in
21562         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
21563         Also, don't bother to check for -m bugs unless we're using -m;
21564         suggested by Stepan Kasal.
21565
21566 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21567
21568         Sync from Automake.
21569         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
21570         `-c' flag, so they appear at the same position as in %FASTDEP%
21571         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
21572         which ignores unknown options only after the first non-option.
21573         Bug report against M4 by Nelson H. F. Beebe.
21574
21575 2006-10-13  Jim Meyering  <jim@meyering.net>
21576
21577         Fix a bug in yesterday's change.
21578         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
21579         p->fts_statp->st_dev would be used uninitialized.
21580         Ensures that we always call fts_stat on the very first entry.
21581         Miklos Szeredi reported that find -xdev stopped working.
21582
21583 2006-10-12  Bruno Haible  <bruno@clisp.org>
21584
21585         * gnulib-tool (func_get_automake_snippet): Append an automatically
21586         computed EXTRA_DIST augmentation.
21587         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
21588         * modules/alloca-opt (Makefile.am): Likewise.
21589         * modules/allocsa (Makefile.am): Likewise.
21590         * modules/arcfour (Makefile.am): Likewise.
21591         * modules/arctwo (Makefile.am): Likewise.
21592         * modules/argmatch (Makefile.am): Likewise.
21593         * modules/argz (Makefile.am): Likewise.
21594         * modules/atexit (Makefile.am): Likewise.
21595         * modules/backupfile (Makefile.am): Likewise.
21596         * modules/byteswap (Makefile.am): Likewise.
21597         * modules/c-strtod (Makefile.am): Likewise.
21598         * modules/c-strtold (Makefile.am): Likewise.
21599         * modules/calloc (Makefile.am): Likewise.
21600         * modules/canon-host (Makefile.am): Likewise.
21601         * modules/canonicalize (Makefile.am): Likewise.
21602         * modules/chdir-long (Makefile.am): Likewise.
21603         * modules/chdir-safer (Makefile.am): Likewise.
21604         * modules/check-version (Makefile.am): Likewise.
21605         * modules/chown (Makefile.am): Likewise.
21606         * modules/cloexec (Makefile.am): Likewise.
21607         * modules/close-stream (Makefile.am): Likewise.
21608         * modules/closeout (Makefile.am): Likewise.
21609         * modules/crc (Makefile.am): Likewise.
21610         * modules/csharpexec (Makefile.am): Likewise.
21611         * modules/cycle-check (Makefile.am): Likewise.
21612         * modules/des (Makefile.am): Likewise.
21613         * modules/dev-ino (Makefile.am): Likewise.
21614         * modules/dirfd (Makefile.am): Likewise.
21615         * modules/dirname (Makefile.am): Likewise.
21616         * modules/dup2 (Makefile.am): Likewise.
21617         * modules/eealloc (Makefile.am): Likewise.
21618         * modules/error (Makefile.am): Likewise.
21619         * modules/euidaccess (Makefile.am): Likewise.
21620         * modules/exclude (Makefile.am): Likewise.
21621         * modules/exitfail (Makefile.am): Likewise.
21622         * modules/fcntl-safer (Makefile.am): Likewise.
21623         * modules/fcntl (Makefile.am): Likewise.
21624         * modules/file-type (Makefile.am): Likewise.
21625         * modules/fileblocks (Makefile.am): Likewise.
21626         * modules/filemode (Makefile.am): Likewise.
21627         * modules/filenamecat (Makefile.am): Likewise.
21628         * modules/fnmatch (Makefile.am): Likewise.
21629         * modules/fopen-safer (Makefile.am): Likewise.
21630         * modules/fpending (Makefile.am): Likewise.
21631         * modules/fprintftime (Makefile.am): Likewise.
21632         * modules/free (Makefile.am): Likewise.
21633         * modules/fsusage (Makefile.am): Likewise.
21634         * modules/ftruncate (Makefile.am): Likewise.
21635         * modules/fts (Makefile.am): Likewise.
21636         * modules/gc-arcfour (Makefile.am): Likewise.
21637         * modules/gc-des (Makefile.am): Likewise.
21638         * modules/gc-hmac-md5 (Makefile.am): Likewise.
21639         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
21640         * modules/gc-md4 (Makefile.am): Likewise.
21641         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21642         * modules/gc-sha1 (Makefile.am): Likewise.
21643         * modules/gc (Makefile.am): Likewise.
21644         * modules/getaddrinfo (Makefile.am): Likewise.
21645         * modules/getcwd (Makefile.am): Likewise.
21646         * modules/getdelim (Makefile.am): Likewise.
21647         * modules/getdomainname (Makefile.am): Likewise.
21648         * modules/getgroups (Makefile.am): Likewise.
21649         * modules/gethostname (Makefile.am): Likewise.
21650         * modules/gethrxtime (Makefile.am): Likewise.
21651         * modules/getline (Makefile.am): Likewise.
21652         * modules/getloadavg (Makefile.am): Likewise.
21653         * modules/getlogin_r (Makefile.am): Likewise.
21654         * modules/getndelim2 (Makefile.am): Likewise.
21655         * modules/getopt (Makefile.am): Likewise.
21656         * modules/getpagesize (Makefile.am): Likewise.
21657         * modules/getpass-gnu (Makefile.am): Likewise.
21658         * modules/getpass (Makefile.am): Likewise.
21659         * modules/getsubopt (Makefile.am): Likewise.
21660         * modules/gettime (Makefile.am): Likewise.
21661         * modules/gettimeofday (Makefile.am): Likewise.
21662         * modules/getugroups (Makefile.am): Likewise.
21663         * modules/getusershell (Makefile.am): Likewise.
21664         * modules/glob (Makefile.am): Likewise.
21665         * modules/group-member (Makefile.am): Likewise.
21666         * modules/hard-locale (Makefile.am): Likewise.
21667         * modules/hash (Makefile.am): Likewise.
21668         * modules/hmac-md5 (Makefile.am): Likewise.
21669         * modules/hmac-sha1 (Makefile.am): Likewise.
21670         * modules/human (Makefile.am): Likewise.
21671         * modules/idcache (Makefile.am): Likewise.
21672         * modules/imaxabs (Makefile.am): Likewise.
21673         * modules/imaxdiv (Makefile.am): Likewise.
21674         * modules/inet_ntop (Makefile.am): Likewise.
21675         * modules/inet_pton (Makefile.am): Likewise.
21676         * modules/intprops (Makefile.am): Likewise.
21677         * modules/inttostr (Makefile.am): Likewise.
21678         * modules/inttypes (Makefile.am): Likewise.
21679         * modules/isapipe (Makefile.am): Likewise.
21680         * modules/javaversion (Makefile.am): Likewise.
21681         * modules/lchmod (Makefile.am): Likewise.
21682         * modules/lchown (Makefile.am): Likewise.
21683         * modules/localcharset (Makefile.am): Likewise.
21684         * modules/long-options (Makefile.am): Likewise.
21685         * modules/lstat (Makefile.am): Likewise.
21686         * modules/malloc (Makefile.am): Likewise.
21687         * modules/mathl (Makefile.am): Likewise.
21688         * modules/mbchar (Makefile.am): Likewise.
21689         * modules/md2 (Makefile.am): Likewise.
21690         * modules/md4 (Makefile.am): Likewise.
21691         * modules/md5 (Makefile.am): Likewise.
21692         * modules/memcasecmp (Makefile.am): Likewise.
21693         * modules/memchr (Makefile.am): Likewise.
21694         * modules/memcmp (Makefile.am): Likewise.
21695         * modules/memcoll (Makefile.am): Likewise.
21696         * modules/memcpy (Makefile.am): Likewise.
21697         * modules/memmem (Makefile.am): Likewise.
21698         * modules/memmove (Makefile.am): Likewise.
21699         * modules/mempcpy (Makefile.am): Likewise.
21700         * modules/memrchr (Makefile.am): Likewise.
21701         * modules/memset (Makefile.am): Likewise.
21702         * modules/memxor (Makefile.am): Likewise.
21703         * modules/mkancesdirs (Makefile.am): Likewise.
21704         * modules/mkdir-p (Makefile.am): Likewise.
21705         * modules/mkdir (Makefile.am): Likewise.
21706         * modules/mkdtemp (Makefile.am): Likewise.
21707         * modules/mkstemp (Makefile.am): Likewise.
21708         * modules/mktime (Makefile.am): Likewise.
21709         * modules/modechange (Makefile.am): Likewise.
21710         * modules/mountlist (Makefile.am): Likewise.
21711         * modules/nanosleep (Makefile.am): Likewise.
21712         * modules/obstack (Makefile.am): Likewise.
21713         * modules/openat (Makefile.am): Likewise.
21714         * modules/pagealign_alloc (Makefile.am): Likewise.
21715         * modules/pathmax (Makefile.am): Likewise.
21716         * modules/physmem (Makefile.am): Likewise.
21717         * modules/poll (Makefile.am): Likewise.
21718         * modules/posixtm (Makefile.am): Likewise.
21719         * modules/posixver (Makefile.am): Likewise.
21720         * modules/putenv (Makefile.am): Likewise.
21721         * modules/quote (Makefile.am): Likewise.
21722         * modules/quotearg (Makefile.am): Likewise.
21723         * modules/raise (Makefile.am): Likewise.
21724         * modules/read-file (Makefile.am): Likewise.
21725         * modules/readline (Makefile.am): Likewise.
21726         * modules/readlink (Makefile.am): Likewise.
21727         * modules/readtokens (Makefile.am): Likewise.
21728         * modules/readutmp (Makefile.am): Likewise.
21729         * modules/realloc (Makefile.am): Likewise.
21730         * modules/regex (Makefile.am): Likewise.
21731         * modules/rename-dest-slash (Makefile.am): Likewise.
21732         * modules/rename (Makefile.am): Likewise.
21733         * modules/rijndael (Makefile.am): Likewise.
21734         * modules/rmdir (Makefile.am): Likewise.
21735         * modules/rpmatch (Makefile.am): Likewise.
21736         * modules/safe-read (Makefile.am): Likewise.
21737         * modules/safe-write (Makefile.am): Likewise.
21738         * modules/same-inode (Makefile.am): Likewise.
21739         * modules/same (Makefile.am): Likewise.
21740         * modules/save-cwd (Makefile.am): Likewise.
21741         * modules/savedir (Makefile.am): Likewise.
21742         * modules/setenv (Makefile.am): Likewise.
21743         * modules/settime (Makefile.am): Likewise.
21744         * modules/sha1 (Makefile.am): Likewise.
21745         * modules/sig2str (Makefile.am): Likewise.
21746         * modules/snprintf (Makefile.am): Likewise.
21747         * modules/stat-macros (Makefile.am): Likewise.
21748         * modules/stat-time (Makefile.am): Likewise.
21749         * modules/stdbool (Makefile.am): Likewise.
21750         * modules/stdint (Makefile.am): Likewise.
21751         * modules/stdlib-safer (Makefile.am): Likewise.
21752         * modules/stpcpy (Makefile.am): Likewise.
21753         * modules/stpncpy (Makefile.am): Likewise.
21754         * modules/strcase (Makefile.am): Likewise.
21755         * modules/strcasestr (Makefile.am): Likewise.
21756         * modules/strchrnul (Makefile.am): Likewise.
21757         * modules/strcspn (Makefile.am): Likewise.
21758         * modules/strdup (Makefile.am): Likewise.
21759         * modules/strerror (Makefile.am): Likewise.
21760         * modules/strftime (Makefile.am): Likewise.
21761         * modules/strndup (Makefile.am): Likewise.
21762         * modules/strnlen (Makefile.am): Likewise.
21763         * modules/strpbrk (Makefile.am): Likewise.
21764         * modules/strsep (Makefile.am): Likewise.
21765         * modules/strstr (Makefile.am): Likewise.
21766         * modules/strtod (Makefile.am): Likewise.
21767         * modules/strtoimax (Makefile.am): Likewise.
21768         * modules/strtok_r (Makefile.am): Likewise.
21769         * modules/strtol (Makefile.am): Likewise.
21770         * modules/strtoll (Makefile.am): Likewise.
21771         * modules/strtoul (Makefile.am): Likewise.
21772         * modules/strtoull (Makefile.am): Likewise.
21773         * modules/strtoumax (Makefile.am): Likewise.
21774         * modules/strverscmp (Makefile.am): Likewise.
21775         * modules/sys_socket (Makefile.am): Likewise.
21776         * modules/sys_stat (Makefile.am): Likewise.
21777         * modules/sysexits (Makefile.am): Likewise.
21778         * modules/time_r (Makefile.am): Likewise.
21779         * modules/timegm (Makefile.am): Likewise.
21780         * modules/timespec (Makefile.am): Likewise.
21781         * modules/tmpfile-safer (Makefile.am): Likewise.
21782         * modules/trim (Makefile.am): Likewise.
21783         * modules/unistd-safer (Makefile.am): Likewise.
21784         * modules/unlinkdir (Makefile.am): Likewise.
21785         * modules/unlocked-io (Makefile.am): Likewise.
21786         * modules/userspec (Makefile.am): Likewise.
21787         * modules/utime (Makefile.am): Likewise.
21788         * modules/utimecmp (Makefile.am): Likewise.
21789         * modules/utimens (Makefile.am): Likewise.
21790         * modules/vasnprintf (Makefile.am): Likewise.
21791         * modules/vasprintf (Makefile.am): Likewise.
21792         * modules/vsnprintf (Makefile.am): Likewise.
21793         * modules/xalloc (Makefile.am): Likewise.
21794         * modules/xgetcwd (Makefile.am): Likewise.
21795         * modules/xnanosleep (Makefile.am): Likewise.
21796         * modules/xreadlink (Makefile.am): Likewise.
21797         * modules/xstrtod (Makefile.am): Likewise.
21798         * modules/xstrtol (Makefile.am): Likewise.
21799         * modules/xstrtold (Makefile.am): Likewise.
21800         * modules/yesno (Makefile.am): Likewise.
21801         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
21802
21803 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21804
21805         * modules/error (Makefile.am): Distribute files through
21806         EXTRA_DIST, not lib_SOURCES.
21807
21808 2006-10-12  Eric Blake  <ebb9@byu.net>
21809
21810         * modules/error (Makefile.am): Distribute files in /lib.
21811         * modules/obstack (Makefile.am): Likewise.
21812
21813 2006-10-12  Bruno Haible  <bruno@clisp.org>
21814
21815         * modules/acl (Makefile.am): Distribute all files in lib/ through
21816         EXTRA_DIST.
21817         * modules/arcfour (Makefile.am): Likewise.
21818         * modules/arctwo (Makefile.am): Likewise.
21819         * modules/argmatch (Makefile.am): Likewise.
21820         * modules/argz (Makefile.am): Likewise.
21821         * modules/atexit (Makefile.am): Likewise.
21822         * modules/backupfile (Makefile.am): Likewise.
21823         * modules/c-strtod (Makefile.am): Likewise.
21824         * modules/c-strtold (Makefile.am): Likewise.
21825         * modules/calloc (Makefile.am): Likewise.
21826         * modules/canon-host (Makefile.am): Likewise.
21827         * modules/canonicalize (Makefile.am): Likewise.
21828         * modules/chdir-long (Makefile.am): Likewise.
21829         * modules/chdir-safer (Makefile.am): Likewise.
21830         * modules/check-version (Makefile.am): Likewise.
21831         * modules/chown (Makefile.am): Likewise.
21832         * modules/cloexec (Makefile.am): Likewise.
21833         * modules/close-stream (Makefile.am): Likewise.
21834         * modules/closeout (Makefile.am): Likewise.
21835         * modules/crc (Makefile.am): Likewise.
21836         * modules/cycle-check (Makefile.am): Likewise.
21837         * modules/des (Makefile.am): Likewise.
21838         * modules/dirfd (Makefile.am): Likewise.
21839         * modules/dirname (Makefile.am): Likewise.
21840         * modules/dup2 (Makefile.am): Likewise.
21841         * modules/euidaccess (Makefile.am): Likewise.
21842         * modules/exclude (Makefile.am): Likewise.
21843         * modules/exitfail (Makefile.am): Likewise.
21844         * modules/fcntl-safer (Makefile.am): Likewise.
21845         * modules/file-type (Makefile.am): Likewise.
21846         * modules/fileblocks (Makefile.am): Likewise.
21847         * modules/filemode (Makefile.am): Likewise.
21848         * modules/filenamecat (Makefile.am): Likewise.
21849         * modules/fnmatch (Makefile.am): Likewise.
21850         * modules/fopen-safer (Makefile.am): Likewise.
21851         * modules/fpending (Makefile.am): Likewise.
21852         * modules/fprintftime (Makefile.am): Likewise.
21853         * modules/free (Makefile.am): Likewise.
21854         * modules/fsusage (Makefile.am): Likewise.
21855         * modules/ftruncate (Makefile.am): Likewise.
21856         * modules/fts (Makefile.am): Likewise.
21857         * modules/gc (Makefile.am): Likewise.
21858         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
21859         * modules/getaddrinfo (Makefile.am): Likewise.
21860         * modules/getcwd (Makefile.am): Likewise.
21861         * modules/getdelim (Makefile.am): Likewise.
21862         * modules/getdomainname (Makefile.am): Likewise.
21863         * modules/getgroups (Makefile.am): Likewise.
21864         * modules/gethostname (Makefile.am): Likewise.
21865         * modules/gethrxtime (Makefile.am): Likewise.
21866         * modules/getline (Makefile.am): Likewise.
21867         * modules/getloadavg (Makefile.am): Likewise.
21868         * modules/getlogin_r (Makefile.am): Likewise.
21869         * modules/getopt (Makefile.am): Likewise.
21870         * modules/getpass (Makefile.am): Likewise.
21871         * modules/getpass-gnu (Makefile.am): Likewise.
21872         * modules/getsubopt (Makefile.am): Likewise.
21873         * modules/gettime (Makefile.am): Likewise.
21874         * modules/gettimeofday (Makefile.am): Likewise.
21875         * modules/getugroups (Makefile.am): Likewise.
21876         * modules/getusershell (Makefile.am): Likewise.
21877         * modules/glob (Makefile.am): Likewise.
21878         * modules/group-member (Makefile.am): Likewise.
21879         * modules/hard-locale (Makefile.am): Likewise.
21880         * modules/hash (Makefile.am): Likewise.
21881         * modules/hmac-md5 (Makefile.am): Likewise.
21882         * modules/hmac-sha1 (Makefile.am): Likewise.
21883         * modules/human (Makefile.am): Likewise.
21884         * modules/idcache (Makefile.am): Likewise.
21885         * modules/imaxabs (Makefile.am): Likewise.
21886         * modules/imaxdiv (Makefile.am): Likewise.
21887         * modules/inet_ntop (Makefile.am): Likewise.
21888         * modules/inet_pton (Makefile.am): Likewise.
21889         * modules/inttostr (Makefile.am): Likewise.
21890         * modules/isapipe (Makefile.am): Likewise.
21891         * modules/lchown (Makefile.am): Likewise.
21892         * modules/long-options (Makefile.am): Likewise.
21893         * modules/lstat (Makefile.am): Likewise.
21894         * modules/malloc (Makefile.am): Likewise.
21895         * modules/mathl (Makefile.am): Likewise.
21896         * modules/mbchar (Makefile.am): Likewise.
21897         * modules/md2 (Makefile.am): Likewise.
21898         * modules/md4 (Makefile.am): Likewise.
21899         * modules/md5 (Makefile.am): Likewise.
21900         * modules/memcasecmp (Makefile.am): Likewise.
21901         * modules/memchr (Makefile.am): Likewise.
21902         * modules/memcmp (Makefile.am): Likewise.
21903         * modules/memcoll (Makefile.am): Likewise.
21904         * modules/memcpy (Makefile.am): Likewise.
21905         * modules/memmem (Makefile.am): Likewise.
21906         * modules/memmove (Makefile.am): Likewise.
21907         * modules/mempcpy (Makefile.am): Likewise.
21908         * modules/memrchr (Makefile.am): Likewise.
21909         * modules/memset (Makefile.am): Likewise.
21910         * modules/memxor (Makefile.am): Likewise.
21911         * modules/mkancesdirs (Makefile.am): Likewise.
21912         * modules/mkdir (Makefile.am): Likewise.
21913         * modules/mkdir-p (Makefile.am): Likewise.
21914         * modules/mkdtemp (Makefile.am): Likewise.
21915         * modules/mkstemp (Makefile.am): Likewise.
21916         * modules/mktime (Makefile.am): Likewise.
21917         * modules/modechange (Makefile.am): Likewise.
21918         * modules/mountlist (Makefile.am): Likewise.
21919         * modules/nanosleep (Makefile.am): Likewise.
21920         * modules/openat (Makefile.am): Likewise.
21921         * modules/pagealign_alloc (Makefile.am): Likewise.
21922         * modules/physmem (Makefile.am): Likewise.
21923         * modules/poll (Makefile.am): Likewise.
21924         * modules/posixtm (Makefile.am): Likewise.
21925         * modules/posixver (Makefile.am): Likewise.
21926         * modules/putenv (Makefile.am): Likewise.
21927         * modules/quote (Makefile.am): Likewise.
21928         * modules/quotearg (Makefile.am): Likewise.
21929         * modules/raise (Makefile.am): Likewise.
21930         * modules/read-file (Makefile.am): Likewise.
21931         * modules/readline (Makefile.am): Likewise.
21932         * modules/readlink (Makefile.am): Likewise.
21933         * modules/readtokens (Makefile.am): Likewise.
21934         * modules/readutmp (Makefile.am): Likewise.
21935         * modules/realloc (Makefile.am): Likewise.
21936         * modules/regex (Makefile.am): Likewise.
21937         * modules/rename (Makefile.am): Likewise.
21938         * modules/rename-dest-slash (Makefile.am): Likewise.
21939         * modules/rijndael (Makefile.am): Likewise.
21940         * modules/rmdir (Makefile.am): Likewise.
21941         * modules/rpmatch (Makefile.am): Likewise.
21942         * modules/safe-read (Makefile.am): Likewise.
21943         * modules/safe-write (Makefile.am): Likewise.
21944         * modules/same (Makefile.am): Likewise.
21945         * modules/save-cwd (Makefile.am): Likewise.
21946         * modules/savedir (Makefile.am): Likewise.
21947         * modules/setenv (Makefile.am): Likewise.
21948         * modules/settime (Makefile.am): Likewise.
21949         * modules/sha1 (Makefile.am): Likewise.
21950         * modules/sig2str (Makefile.am): Likewise.
21951         * modules/snprintf (Makefile.am): Likewise.
21952         * modules/stdlib-safer (Makefile.am): Likewise.
21953         * modules/stpcpy (Makefile.am): Likewise.
21954         * modules/stpncpy (Makefile.am): Likewise.
21955         * modules/strcase (Makefile.am): Likewise.
21956         * modules/strcasestr (Makefile.am): Likewise.
21957         * modules/strchrnul (Makefile.am): Likewise.
21958         * modules/strcspn (Makefile.am): Likewise.
21959         * modules/strdup (Makefile.am): Likewise.
21960         * modules/strerror (Makefile.am): Likewise.
21961         * modules/strftime (Makefile.am): Likewise.
21962         * modules/strndup (Makefile.am): Likewise.
21963         * modules/strnlen (Makefile.am): Likewise.
21964         * modules/strpbrk (Makefile.am): Likewise.
21965         * modules/strsep (Makefile.am): Likewise.
21966         * modules/strstr (Makefile.am): Likewise.
21967         * modules/strtod (Makefile.am): Likewise.
21968         * modules/strtoimax (Makefile.am): Likewise.
21969         * modules/strtok_r (Makefile.am): Likewise.
21970         * modules/strtol (Makefile.am): Likewise.
21971         * modules/strtoll (Makefile.am): Likewise.
21972         * modules/strtoul (Makefile.am): Likewise.
21973         * modules/strtoull (Makefile.am): Likewise.
21974         * modules/strtoumax (Makefile.am): Likewise.
21975         * modules/strverscmp (Makefile.am): Likewise.
21976         * modules/time_r (Makefile.am): Likewise.
21977         * modules/timegm (Makefile.am): Likewise.
21978         * modules/tmpfile-safer (Makefile.am): Likewise.
21979         * modules/unistd-safer (Makefile.am): Likewise.
21980         * modules/unlinkdir (Makefile.am): Likewise.
21981         * modules/userspec (Makefile.am): Likewise.
21982         * modules/utime (Makefile.am): Likewise.
21983         * modules/utimecmp (Makefile.am): Likewise.
21984         * modules/utimens (Makefile.am): Likewise.
21985         * modules/vasnprintf (Makefile.am): Likewise.
21986         * modules/vasprintf (Makefile.am): Likewise.
21987         * modules/vsnprintf (Makefile.am): Likewise.
21988         * modules/xalloc (Makefile.am): Likewise.
21989         * modules/xgetcwd (Makefile.am): Likewise.
21990         * modules/xnanosleep (Makefile.am): Likewise.
21991         * modules/xreadlink (Makefile.am): Likewise.
21992         * modules/xstrtod (Makefile.am): Likewise.
21993         * modules/xstrtol (Makefile.am): Likewise.
21994         * modules/xstrtold (Makefile.am): Likewise.
21995         * modules/yesno (Makefile.am): Likewise.
21996
21997 2006-10-12  Jim Meyering  <jim@meyering.net>
21998
21999         * m4/getloadavg.m4: Revert the change below.
22000
22001         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
22002         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
22003         fail with a symlink, which is what coreutils' ./bootstrap now
22004         creates by default.
22005
22006 2006-10-12  Bruno Haible  <bruno@clisp.org>
22007
22008         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
22009         mingw.
22010         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
22011         MSVC and mingw explicitly.
22012
22013 2006-10-11  Simon Josefsson  <jas@extundo.com>
22014             Bruno Haible  <bruno@clisp.org>
22015
22016         Add support for multiple gnulib-tool invocations in the scope of a
22017         single configure.ac file.
22018         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
22019         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
22020         with the same contents as the _LIBADD variable.
22021         (func_emit_initmacro_start, func_emit_initmacro_end,
22022         func_emit_initmacro_done): New functions.
22023         (func_import, func_create_testdir): Invoke them. Allow the identifiers
22024         gl_LIBOBJS and gl_LTLIBOBJS.
22025
22026 2006-10-11  Bruno Haible  <bruno@clisp.org>
22027
22028         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
22029         (func_create_testdir): Don't create po/Makefile.am, don't invoke
22030         autoreconf. Instead, invoke autopoint explicitly but move back the
22031         *.m4 files from gnulib.
22032
22033 2006-10-11  Bruno Haible  <bruno@clisp.org>
22034
22035         * gnulib-tool (func_usage): Make module names after --create-testdir
22036         optional.
22037         (func_create_testdir): If no module was specified, use nearly all
22038         modules.
22039
22040 2006-10-12  Jim Meyering  <jim@meyering.net>
22041
22042         Big performance improvement for fts-based tools that use FTS_NOSTAT.
22043         Avoid spurious inode-mismatch problems on non-POSIX file systems.
22044         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
22045         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
22046         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
22047         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
22048         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
22049         (fts_set_stat_required): New function.
22050         (fts_open): Defer the calls to fts_stat, if possible or requested.
22051         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
22052         into fts_stat itself.
22053         (fts_read): Perform any required (deferred) fts_stat call.
22054         (fts_build): Likewise, for the directory we're about to open and read.
22055         In the readdir loop, carefully decide whether each entry will require
22056         an eventual call to fts_stat, using dirent.d_type info if available.
22057         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
22058         a command line argument into this function.  Update all callers.
22059         Map a return value of FTS_DOT to FTS_D for a command line argument.
22060         * modules/fts (Depends-on): Add d-type.  Alphabetize.
22061         Thanks to Miklos Szeredi for his tenacity and for the initial
22062         bug report about "find" failing on a FUSE-based file system.
22063
22064         * lib/fts.c (fts_open): Use consistent indentation.
22065
22066 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
22067
22068         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
22069         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
22070         reported by Jim Meyering.  All uses of cache variables renamed
22071         to match Autoconf's.
22072         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
22073         the other one.
22074
22075         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22076         Fix misspelling in diagnostic.
22077
22078 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22079
22080         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
22081         defined.  Problem reported by Matthew Woehlke.
22082
22083         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
22084         Add support for Tandem NonStop R series.
22085         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
22086         Use new macro.
22087
22088         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
22089         (has_trailing_slash): Omit size arg; all callers changed.
22090         Omit 'inline', since it doesn't help performance and we'd
22091         need to configure it.
22092         Don't count //, ///, etc. as having a trailing slash.
22093         As a side effect, this removes a C99ism reported by Matthew Woehlke.
22094         (rpl_rename_dest_slash): On failure, use rename's errno rather
22095         than (in some cases) an incorrect or junk errno.
22096         Simplify code by removing need to compute length; this does
22097         cause it to make two passes instead of one over the file name,
22098         but it's worth it.
22099
22100         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
22101         change, since Autoconf's version may no longer be appropriate now
22102         that we are using CVS Autoconf's version.  Add support for Tandem.
22103
22104 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22105             Bruno Haible  <bruno@clisp.org>
22106
22107         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
22108         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
22109         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
22110         gl_AC_TYPE_LONG_LONG.
22111
22112         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
22113         instead of HAVE_LONG_LONG.
22114         * lib/printf-args.c (printf_fetchargs): Likewise.
22115         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22116         * lib/vasnprintf.c (VASNPRINTF): Likewise.
22117         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
22118         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
22119         gl_AC_TYPE_LONG_LONG.
22120
22121 2006-10-11  Bruno Haible  <bruno@clisp.org>
22122
22123         * m4/longlong.m4: Add comments.
22124         * m4/ulonglong.m4: Likewise.
22125
22126 2006-10-10  Bruno Haible  <bruno@clisp.org>
22127
22128         Make it possible to #define stpcpy, strdup to aliases.
22129         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
22130         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
22131
22132 2006-10-10  Bruno Haible  <bruno@clisp.org>
22133
22134         Make it possible to #define gcd to an alias.
22135         * lib/gcd.c: Include config.h.
22136
22137 2006-10-10  Bruno Haible  <bruno@clisp.org>
22138
22139         Make it possible to #define c_isascii to an alias.
22140         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
22141         defined. Undefine the macros before defining them, to avoid gcc
22142         warnings.
22143         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
22144         define NO_C_CTYPE_MACROS early.
22145
22146 2006-10-10  Bruno Haible  <bruno@clisp.org>
22147
22148         Make it possible to #define set_program_name to an alias.
22149         * lib/progname.c: Don't undefine set_program_name; instead, undefine
22150         ENABLE_RELOCATABLE early.
22151
22152 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22153
22154         Port to Tandem NSK OSS, which has 64-bit signed int but at most
22155         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
22156         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
22157         More generally, don't assume that 64-bit signed int is available
22158         if unsigned int is, and vice versa.
22159         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
22160         unsigned symbols, not on their signed counterparts.
22161         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
22162         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
22163         (UINT64_C, UINTMAX_C):
22164         Likewise.
22165         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
22166         unsigned counterparts.
22167         (Have_long_long, Unsigned): New macros.
22168         (Int): Renamed from INT.
22169         (strtoimax): Use the new macros.
22170         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
22171         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
22172         * modules/inttypes (inttypes.h): Substitute
22173         HAVE_UNSIGNED_LONG_LONG_INT.
22174         * modules/stdint (stdint.h): Likewise.
22175         (Files): Add m4/ulonglong.m4.
22176
22177 2006-10-10  Bruno Haible  <bruno@clisp.org>
22178
22179         Fix a gcc -Wshadow warning.
22180         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
22181         to 'bucket'.
22182         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
22183         gl_linked_indexof_from_to): Likewise.
22184         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
22185         Likewise.
22186         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
22187         Likewise.
22188         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
22189         Reported by Eric Blake.
22190
22191 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
22192
22193         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
22194         for NetBSD.  Problem reported by Bruno Haible.
22195
22196 2006-10-09  Jim Meyering  <jim@meyering.net>
22197
22198         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
22199         Patch from Bruno Haible.
22200
22201 2006-10-09  Jim Meyering  <jim@meyering.net>
22202
22203         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
22204         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
22205         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
22206
22207 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
22208
22209         Don't include <config.h> twice; this doesn't work in some cases,
22210         e.g., when config.h has "#define intmax_t long long int" and
22211         we include <config.h>, <inttypes.h>, <config.h> in that order.
22212         Problem reported by Matthew Woehlke in:
22213         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
22214         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
22215         * lib/fts-cycle.c: Don't include config.h.
22216         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
22217         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
22218         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
22219         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
22220         inttypes.h.
22221         * lib/xstrtoumax.c: Likewise.
22222         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
22223         __strtol and the like, so that this module is more like its siblings.
22224         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
22225         Remove; no longer needed now that we assume gnulib inttypes.h.
22226
22227 2006-10-08  Bruno Haible  <bruno@clisp.org>
22228
22229         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
22230         option.
22231
22232 2006-10-07  Jim Meyering  <jim@meyering.net>
22233
22234         * modules/inttypes (inttypes.h): Revert what seems to have been
22235         an inadvertent part of today's change: use "|", not "/" in the
22236         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
22237
22238 2006-10-07  Bruno Haible  <bruno@clisp.org>
22239
22240         * modules/sublist: New file.
22241
22242 2006-10-07  Bruno Haible  <bruno@clisp.org>
22243
22244         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
22245         * modules/argz (argz.h): Likewise.
22246         * modules/arpa_inet (arpa/inet.h): Likewise.
22247         * modules/byteswap (byteswap.h): Likewise.
22248         * modules/configmake (configmake.h): Likewise.
22249         * modules/fcntl (fcntl.h): Likewise.
22250         * modules/fnmatch (fnmatch.h): Likewise.
22251         * modules/getopt (getopt.h): Likewise.
22252         * modules/glob (glob.h): Likewise.
22253         * modules/inttypes (inttypes.h): Likewise.
22254         * modules/netinet_in (netinet/in.h): Likewise.
22255         * modules/poll (poll.h): Likewise.
22256         * modules/stdbool (stdbool.h): Likewise.
22257         * modules/stdint (stdint.h): Likewise.
22258         * modules/sys_select (sys/select.h): Likewise.
22259         * modules/sys_socket (sys/socket.h): Likewise.
22260         * modules/sys_stat (sys/stat.h): Likewise.
22261         * modules/sysexits (sysexits.h): Likewise.
22262         * modules/unistd (unistd.h): Likewise.
22263         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22264         Add a "DO NOT EDIT" comment to the generated file.
22265         (func_import): Likewise for gnulib-comp.m4.
22266
22267 2006-10-07  Bruno Haible  <bruno@clisp.org>
22268
22269         * lib/gl_sublist.h: New file.
22270         * lib/gl_sublist.c: New file.
22271
22272 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
22273
22274         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
22275         name (relative to the original working directory) and the file
22276         name component (relative to the temporary working directory).  All
22277         callers changed.
22278         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
22279         * lib/mkdir-p.c (make_dir_parents): Likewise.
22280         * lib/mkdir-p.h (make_dir_parents): Likewise.
22281
22282 2006-10-06  Eric Blake  <ebb9@byu.net>
22283
22284         Define several macros for use by the clean-temp module.
22285         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
22286         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
22287         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
22288
22289         * lib/clean-temp.h (close_stream_temp): New declaration.
22290         * lib/clean-temp.c (includes): Pull in headers according to what
22291         other modules are in use.
22292         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
22293
22294 2006-10-06  Bruno Haible  <bruno@clisp.org>
22295
22296         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
22297         instead of fopen, fwriteerror.
22298
22299 2006-10-06  Bruno Haible  <bruno@clisp.org>
22300
22301         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
22302         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
22303         int.
22304         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
22305         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
22306         Return an error indicator.
22307         Suggested by Eric Blake.
22308
22309 2006-10-06  Bruno Haible  <bruno@clisp.org>
22310
22311         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
22312         Reported by Eric Blake.
22313
22314 2006-10-06  Bruno Haible  <bruno@clisp.org>
22315
22316         * modules/closeout (Description): Mention stderr too.
22317
22318 2006-10-06  Bruno Haible  <bruno@clisp.org>
22319         and Paul Eggert  <eggert@cs.ucla.edu>
22320
22321         * lib/closeout.c (close_stdout): Also close stderr.
22322         * lib/closeout.h: Update comment.
22323
22324 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22325
22326         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
22327         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
22328         * lib/dirchownmod.c: Include lchown.h.
22329         * lib/lchown.c: Don't include files that lchown.h now includes.
22330         Don't declare chown, since lchown.h now does that.
22331         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
22332         (lchown): Define to rpl_chown if lchown is declared but
22333         does not exist.  Declare using a prototype if lchown is not
22334         declared.  Add a copyright notice.
22335         * lib/mkstemp.h: Include <unistd.h>.
22336         * lib/openat.c: Include lchown.h.
22337
22338         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
22339         we now test for that separately.
22340         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
22341         rather than O_NOFOLLOW, when testing whether it's possible to
22342         avoid a race condition reliably.
22343         * lib/savewd.c (savewd_chdir): Likewise.
22344
22345         Remove macros that are no longer needed now that stdint.h is
22346         reliable.
22347         * lib/fsusage.c (UINTMAX_MAX): Remove.
22348         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
22349         * lib/utimecmp.c (SIZE_MAX): Remove.
22350
22351         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
22352
22353         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
22354         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
22355         O_NOATIME works.
22356
22357 2006-10-05  Bruno Haible  <bruno@clisp.org>
22358
22359         * lib/gl_list.h (gl_sortedlist_search_from_to,
22360         gl_sortedlist_indexof_from_to): New declarations.
22361         (gl_list_implementation): New fields sortedlist_search_from_to,
22362         sortedlist_indexof_from_to.
22363         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
22364         inline functions.
22365         * lib/gl_list.c (gl_sortedlist_search_from_to,
22366         gl_sortedlist_indexof_from_to): New functions.
22367         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
22368         function.
22369         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
22370         (gl_array_sortedlist_search_from_to): New function.
22371         (gl_array_list_implementation): Update.
22372         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
22373         function.
22374         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
22375         (gl_carray_sortedlist_search_from_to): New function.
22376         (gl_carray_list_implementation): Update.
22377         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
22378         gl_linked_sortedlist_indexof_from_to): New functions.
22379         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22380         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22381         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
22382         gl_tree_sortedlist_indexof_from_to): New functions.
22383         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22384         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22385         Update.
22386         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22387         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
22388         Update.
22389
22390 2006-10-05  Bruno Haible  <bruno@clisp.org>
22391
22392         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
22393         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
22394         (struct gl_list_implementation): Add fields search_from_to,
22395         indexof_from_to. Remove fields search, indexof.
22396         (gl_list_search): Use the search_from_to method.
22397         (gl_list_search_from, gl_list_search_from_to): New functions.
22398         (gl_list_indexof): Use the indexof_from_to method.
22399         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22400         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
22401         (gl_list_search_from, gl_list_search_from_to): New functions.
22402         (gl_list_indexof): Use the indexof_from_to method.
22403         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
22404         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
22405         gl_array_indexof. Add start_index, end_index arguments.
22406         (gl_array_search_from_to): Renamed from gl_array_search. Add
22407         start_index, end_index arguments.
22408         (gl_array_remove, gl_array_list_implementation): Update.
22409         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
22410         gl_carray_indexof. Add start_index, end_index arguments.
22411         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
22412         start_index, end_index arguments.
22413         (gl_carray_remove, gl_carray_list_implementation): Update.
22414         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
22415         gl_linked_search. Add start_index, end_index arguments.
22416         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
22417         start_index, end_index arguments.
22418         (gl_linked_remove): Update.
22419         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22420         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22421         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
22422         field to 'size_t'.
22423         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
22424         gl_tree_search. Add start_index, end_index arguments.
22425         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22426         start_index, end_index arguments.
22427         (gl_tree_remove): Update.
22428         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22429         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22430         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
22431         function.
22432         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
22433         gl_tree_search. Add start_index, end_index arguments.
22434         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
22435         start_index, end_index arguments.
22436         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22437         Update.
22438         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22439
22440 2006-10-05  Bruno Haible  <bruno@clisp.org>
22441
22442         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
22443
22444         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
22445         fwriteerror_temp): New declarations.
22446         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
22447         (descriptors): New variable.
22448         (cleanup): First, close the descriptors.
22449         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
22450         fclose_temp, fwriteerror_temp): New functions.
22451
22452 2006-10-04  Jim Meyering  <jim@meyering.net>
22453
22454         * lib/fts.c (fts_open): Tiny comment change.
22455
22456 2006-10-04  Bruno Haible  <bruno@clisp.org>
22457
22458         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
22459         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
22460         gl_LOCK_BODY.
22461         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
22462         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
22463         gl_LOCK_EARLY_BODY.
22464         (gl_LOCK): Require gl_LOCK_BODY.
22465
22466 2006-10-04  Bruno Haible  <bruno@clisp.org>
22467
22468         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
22469         (gl_oset_search_atleast): New declaration.
22470         (struct gl_oset_implementation): Add field 'search_atleast'.
22471         (gl_oset_search_atleast): New inline function.
22472         * lib/gl_oset.c (gl_oset_search_atleast): New function.
22473         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
22474         (gl_array_oset_implementation): Update.
22475         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
22476         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
22477         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
22478
22479 2006-10-04  Bruno Haible  <bruno@clisp.org>
22480
22481         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
22482
22483 2006-10-03  Bruno Haible  <bruno@clisp.org>
22484
22485         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
22486         from gl_avltreehash_list_implementation.
22487
22488 2006-10-03  Bruno Haible  <bruno@clisp.org>
22489
22490         * lib/gl_oset.c (gl_oset_add): Fix return type.
22491
22492 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
22493
22494         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
22495
22496 2006-10-02  Eric Blake  <ebb9@byu.net>
22497
22498         * modules/strnlen (Depends-on): Add extensions.
22499
22500 2006-10-02  Eric Blake  <ebb9@byu.net>
22501
22502         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
22503         definition in 2.60+.
22504
22505 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
22506
22507         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
22508         checks.
22509
22510 2006-10-02  Bruno Haible  <bruno@clisp.org>
22511
22512         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
22513         to the AUTOMAKE_OPTIONS.
22514         Reported by Jim Meyering.
22515
22516 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
22517
22518         Work around bug in Solaris 10 /proc file system:
22519         /proc/self/fd/NNN/.. isn't the parent directory of
22520         the directory whose file descriptor is NNN.  This needs to
22521         be worked around at run time, not compile time, since a
22522         program might be built on Solaris 8, where things work, and
22523         run on Solaris 10.
22524         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
22525         to use the following interface instead:
22526         (OPENAT_BUFFER_SIZE): New macro.
22527         (openat_proc_name): New function.
22528         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
22529         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
22530         Likewise.
22531         * lib/openat-proc.c: New file.
22532         * modules/openat (Files): Add lib/openat-proc.c.
22533         (Depends-on): Add same-inode, stdbool.
22534         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
22535
22536 2006-09-29  Bruno Haible  <bruno@clisp.org>
22537
22538         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
22539         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
22540         argument. Set stdout_closed before testing for ferror, not after.
22541         (fwriteerror, fwriteerror_no_ebadf): New functions.
22542
22543 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22544
22545         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
22546
22547 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
22548
22549         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
22550         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
22551
22552 2006-09-28  Jim Meyering  <jim@meyering.net>
22553
22554         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
22555         Include <unistd.h>.
22556
22557 2006-09-28  Bruno Haible  <bruno@clisp.org>
22558
22559         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
22560         * modules/linkedhash-list (Depends-on): Likewise.
22561         * modules/rbtreehash-list (Depends-on): Likewise.
22562
22563 2006-09-28  Bruno Haible  <bruno@clisp.org>
22564
22565         * lib/strndup.h: Simplify the redefinition of strndup.
22566         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
22567         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
22568
22569 2006-09-28  Bruno Haible  <bruno@clisp.org>
22570
22571         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
22572         * lib/gl_linkedhash_list.c: Likewise.
22573         * lib/gl_rbtreehash_list.c: Likewise.
22574
22575 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
22576
22577         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
22578         getaddrinfo.
22579
22580         * lib/__fpending.h: Don't include <stdio_ext.h> unless
22581         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
22582         it causes <stdio_ext.h> to cause a compile-time error.
22583         Problem reported by Nelson H. F. Beebe.
22584         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
22585         of HAVE_DECL___PENDING.
22586
22587         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
22588         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
22589         declaration.
22590
22591 2006-09-27  Jim Meyering  <jim@meyering.net>
22592
22593         This file could end up with a definition for a function
22594         named __strndup, rather than rpl_strndup on a system with
22595         incomplete weak_alias support.
22596         * lib/strndup.c (strndup): Rename from __strndup.
22597         Remove #defines that used to map __strndup to strndup.
22598         Don't use K&R prototypes.
22599         Remove LIBC-related code, since this file is not sync'd with glibc.
22600         * lib/strndup.h: Revamp, accordingly.
22601         * m4/strndup.m4: Modernize.
22602
22603 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22604
22605         * modules/savewd (Depends-on): Add 'raise'.
22606         * lib/savewd.c: Include <signal.h>, for 'raise'.
22607
22608 2006-09-26  Jim Meyering  <jim@meyering.net>
22609
22610         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
22611         when we detect Darwin 8.7.0's acl_get_file bug.
22612         Rearrange to perform the new (below) run-test while $LIBS
22613         contains any acl-related library.  Set USE_ACL at the end.
22614         (gl_ACL_GET_FILE): New function.
22615
22616 2006-09-26  Eric Blake  <ebb9@byu.net>
22617
22618         * lib/verror.c: Include <config.h> unconditionally.
22619
22620 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
22621
22622         * modules/clock-time (Maintainer): Add self.
22623         * modules/getlogin_r (Depends-on): Add extensions.
22624
22625 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22626
22627         * modules/clock-time: New module.
22628         * modules/nanosleep (Depends-on): Add clock-time.
22629         * modules/gethrxtime (Depends-on): Likewise.
22630         * modules/gettime (Depends-on): Likewise.
22631         * modules/settime (Depends-on): Likewise.
22632
22633         * modules/fts-lgpl: Depend on openat.
22634         * modules/mkancesdirs: Depend on savewd.
22635         * modules/mkdir-p: Likewise.
22636
22637 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22638
22639         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
22640
22641         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
22642         `gl_have_arbitrary_file_name_length_limit' to
22643         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
22644         actually works between configure runs.
22645
22646 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22647             Bruno Haible  <bruno@clisp.org>
22648
22649         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
22650
22651 2006-09-25  Jim Meyering  <jim@meyering.net>
22652
22653         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
22654         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
22655
22656 2006-09-25  Eric Blake  <ebb9@byu.net>
22657
22658         * gnulib-tool (func_import, func_create_testdir): Fix typos in
22659         exec's in 2006-09-18 patch when shuffling fds.
22660
22661 2006-09-25  Bruno Haible  <bruno@clisp.org>
22662
22663         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
22664         Reported by Jim Meyering.
22665
22666 2006-09-24  Jim Meyering  <jim@meyering.net>
22667
22668         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
22669         compare a pointer against a literal "0".  That caused failures with
22670         at least HP-UX's hpcc.
22671
22672 2006-09-22  Simon Josefsson  <jas@extundo.com>
22673
22674         * modules/gc-sha1:
22675         * modules/gc-md4:
22676         * modules/gc-hmac-sha1:
22677         * modules/gc-hmac-md5:
22678         * modules/gc-des:
22679         * modules/gc-arcfour: Distribute more files.
22680
22681 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22682
22683         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
22684         (gl_linked_iterator_from_to): Initialize struct completely.
22685         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
22686         (gl_tree_iterator_from_to): Likewise
22687         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
22688         * lib/gl_array_list.c [lint] (gl_array_iterator)
22689         (gl_array_iterator_from_to): Likewise.
22690         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
22691         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
22692         (gl_carray_iterator_from_to): Likewise.
22693
22694         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
22695         * lib/md4.c (md4_process_block): Remove unused variable.
22696         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
22697         parentheses for clarity.
22698
22699 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22700
22701         * modules/bison-i18n (Depends-on): Add gettext.
22702
22703 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22704
22705         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
22706         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22707         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
22708         also add missing comma that caused broken test.
22709         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
22710         stdlib.h, for `abort'.
22711         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
22712         variables.
22713         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
22714         include unistd.h if present, for `rmdir'.
22715         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
22716         variables.
22717         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
22718         in the process include standard headers for prototypes.
22719         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
22720         gets declared on GNU/Linux.
22721         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
22722         unistd.h, for `rmdir'.
22723         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
22724
22725         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
22726         always true.
22727         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
22728
22729         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
22730
22731 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22732
22733         * gnulib-tool (func_version): Create output all at once.  This
22734         may help avoid triggering unnecessary SIGPIPEs, and at any
22735         rate it doesn't hurt.
22736
22737 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22738             Bruno Haible  <bruno@clisp.org>
22739
22740         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
22741         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22742         * m4/signed.m4 (bh_C_SIGNED): Likewise.
22743
22744         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
22745         (gl_FUNC_VASPRINTF): Invoke it.
22746
22747 2006-09-22  Bruno Haible  <bruno@clisp.org>
22748
22749         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
22750         getloadavg.c as first argument.
22751
22752 2006-09-22  Bruno Haible  <bruno@clisp.org>
22753
22754         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
22755         at the beginning of the gl_INIT macro.
22756         * modules/getloadavg (configure.ac): Pass $gl_source_base to
22757         gl_GETLOADAVG.
22758
22759 2006-09-22  Bruno Haible  <bruno@clisp.org>
22760
22761         * gnulib-tool (func_create_megatestdir): Don't include the config-h
22762         module.
22763         Suggested by Ralf Wildenhues.
22764
22765 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22766
22767         Import this patch from libc:
22768
22769         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
22770
22771         * lib/regex_internal.c (re_string_reconstruct): Handle
22772         offset < pstr->valid_raw_len && pstr->offsets_needed case.
22773         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
22774         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
22775         re_string_context_at.
22776
22777         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
22778         now requires it.
22779         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
22780         gl_REGEX now does it for us.
22781         (gl_REGEX): Add test taken from
22782         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
22783
22784         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
22785         Check that large offsets work.  Modernize Autoconf usages.
22786         Prefer "yes" to mean a good thing rather than a bad.
22787         Don't put "#define mkstemp" in config.h, as this might interfere
22788         with standard system headers that "#define mkstemp mkstemp64".
22789
22790         * modules/mkstemp (Depends-on): Add extensions, so that
22791         mkstemp is visible on some platforms.
22792         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
22793         (Include): Change to "mkstemp.h" from <stdlib.h>.
22794         (Files): Add mkstemp.h.
22795
22796         * lib/mkstemp.h: New file, since some standard headers
22797         #define mkstemp.
22798         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
22799         Include "mkstemp.h".
22800         Make the _LIBC code resemble glibc original more,
22801         e.g., use K&R style.
22802         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
22803         (mkstemp): Remove, since mkstemp.h does this for us.
22804         * lib/stdlib--.h: Include mkstemp.h.
22805
22806         Import this patch from libc:
22807
22808         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22809
22810         * lib/tempname.c (__gen_tempname): Change attempts_min
22811         into a macro.  Use preprocessor to decide how to initialize
22812         attempts [Coverity CID 67].
22813
22814 2006-09-20  Bruno Haible  <bruno@clisp.org>
22815
22816         * lib/mkdtemp.c: Import from libc.
22817         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
22818                 * sysdeps/posix/tempname.c (__gen_tempname): Change
22819                 attempts_min into a macro.  Use preprocessor to decide how to
22820                 initialize attempts [Coverity CID 67].
22821         2001-11-27  Paul Eggert  <eggert@twinsun.com>
22822                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
22823                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
22824
22825 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22826
22827         * gnulib-tool (func_exit): New function, to allow to pass the
22828         exit status portably through the trap.  Use everywhere.
22829         (--help, --version): Signal a write error.
22830         (trap): catch SIGPIPE, for write errors.
22831         Exit at the end of the trap, with the correct exit status.
22832
22833 2006-09-19  Karl Berry  <karl@gnu.org>
22834
22835         * doc/gnulib.texi: note about the license texinfo files.
22836
22837 2006-09-19  Eric Blake  <ebb9@byu.net>
22838
22839         * gnulib-tool: Avoid space-tab.
22840
22841 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22842
22843         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
22844         that prevented coreutils 6.1 from building.  Problem reported
22845         by Petter Reinholdtsen.
22846
22847 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
22848
22849         * gnulib-tool (avoidlist): Fix typo that broke options like
22850         --avoid=lock that are used by coreutils bootstrap.
22851
22852 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
22853
22854         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
22855         more systematically.
22856
22857 2006-09-18  Jim Meyering  <jim@meyering.net>
22858
22859         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
22860
22861 2006-09-18  Bruno Haible  <bruno@clisp.org>
22862
22863         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
22864
22865 2006-09-18  Bruno Haible  <bruno@clisp.org>
22866
22867         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
22868         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
22869         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
22870         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
22871         * m4/gettext.m4: Require autoconf >= 2.52.
22872         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
22873         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
22874         of gl_cv_header_inttypes_h.
22875
22876 2006-09-18  Bruno Haible  <bruno@clisp.org>
22877
22878         * lib/javaversion.c: Include configmake.h.
22879
22880 2006-09-18  Bruno Haible  <bruno@clisp.org>
22881
22882         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
22883         avoid that the while loops be executed in a subshell.
22884
22885 2006-09-18  Bruno Haible  <bruno@clisp.org>
22886
22887         * MODULES.html.sh (func_module): Break long lines.
22888         Suggested by Bruce Korb <bkorb@gnu.org>.
22889
22890 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22891
22892         Speed up by a factor of 1.12.
22893         * gnulib-tool (nl): New variable.
22894         (func_import): Rewrite include directive extraction to only read each
22895         directive once.
22896
22897 2006-09-17  Bruno Haible  <bruno@clisp.org>
22898
22899         * modules/javaversion (Makefile.am): Remove DEFS setting.
22900         (Depends-on): Add configmake, for PKGDATADIR definition.
22901
22902 2006-09-17  Bruno Haible  <bruno@clisp.org>
22903
22904         * gnulib-tool (func_create_testdir): Rewrite all files at once.
22905
22906 2006-09-17  Bruno Haible  <bruno@clisp.org>
22907
22908         * gnulib-tool (func_append): New function, stolen from libtool.m4.
22909         (func_modules_transitive_closure, func_modules_add_dummy,
22910         func_modules_to_filelist, func_import, func_create_testdir,
22911         func_create_megatestdir, ...): Use it wherever possible.
22912         Suggested by Ralf Wildenhues.
22913
22914 2006-09-16  Karl Berry  <karl@gnu.org>
22915
22916         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
22917         to avoid sectioning errors.
22918         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
22919         [ifinfo]: blank line after @center-ed titles.
22920         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
22921         Spell FSF address consistently with others.
22922         (These changes approved by rms.)
22923
22924 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22925
22926         Speed up by a factor of 1.61.
22927         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
22928         already checked module names again.
22929
22930 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22931
22932         Speed up by a factor of 1.13.
22933         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
22934         for new_files, and the input to func_add_or_update.
22935
22936 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22937
22938         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
22939         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
22940
22941 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22942
22943         * modules/mkancesdirs (Depends-on): Add fcntl.
22944         * modules/savewd: New file.
22945         * MODULES.html.sh (File system functions): Add savewd.
22946
22947         * modules/configmake (Makefile.am): Add support for the
22948         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
22949
22950 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22951
22952         * m4/savewd.m4: New file.
22953
22954 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22955
22956         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
22957         (dirchownmod): New arg FD.  All callers changed.
22958         Use FD rather than opening the directory ourself, as opening is
22959         now the caller's responsibility.
22960         * lib/dirchownmod.h: Likewise.
22961         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
22962         hosts that require <sys/types.h> before <sys/stat.h>.  Include
22963         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
22964         (test_dir): Remove.
22965         (mkancesdirs): Return length of prefix of FILE that has already
22966         been made, or -2 if there is a child doing the work.  Redo
22967         algorithm so that it is O(N) rather than O(N**2).  Optimize away
22968         ".", and treat ".." specially since it might stray back into
22969         already-created areas.  Use a subprocess if necessary.  New arg
22970         WD; all users changed.  MAKE_DIR function should now return 1
22971         if it creates a directory that is not readable.  Return -2 if
22972         a child process is spun off.
22973         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
22974         Adjust signature to match code.
22975         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
22976         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
22977         all users changed.
22978         * lib/savewd.c, lib/savewd.h: New files.
22979
22980 2006-09-15  Jim Meyering  <jim@meyering.net>
22981
22982         * modules/rename-dest-slash: New module.
22983         * MODULES.html.sh (posix_compat): Add it here.
22984
22985         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
22986
22987 2006-09-15  Jim Meyering  <jim@meyering.net>
22988
22989         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
22990         file.
22991
22992         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
22993
22994 2006-09-15  Jim Meyering  <jim@meyering.net>
22995
22996         * lib/rename-dest-slash.c (has_trailing_slash): Use
22997         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
22998         (rpl_rename_dest_slash): Perform the cheaper trailing slash
22999         test before testing whether SRC is a directory.
23000         Suggestions from Bruno Haible.
23001
23002         Avoid a warning about an unused variable.
23003         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
23004         into the #ifdef block where it's used.
23005
23006         * lib/rename-dest-slash.c: New file.
23007
23008 2006-09-14  Bruno Haible  <bruno@clisp.org>
23009
23010         * lib/allocsa.c: Include <config.h> unconditionally.
23011         * lib/asnprintf.c: Likewise.
23012         * lib/asprintf.c: Likewise.
23013         * lib/c-strcasecmp.c: Likewise.
23014         * lib/c-strcasestr.c: Likewise.
23015         * lib/c-strncasecmp.c: Likewise.
23016         * lib/c-strstr.c: Likewise.
23017         * lib/classpath.c: Likewise.
23018         * lib/clean-temp.c: Likewise.
23019         * lib/concatpath.c: Likewise.
23020         * lib/copy-file.c: Likewise.
23021         * lib/csharpcomp.c: Likewise.
23022         * lib/csharpexec.c: Likewise.
23023         * lib/execute.c: Likewise.
23024         * lib/fatal-signal.c: Likewise.
23025         * lib/findprog.c: Likewise.
23026         * lib/fwriteerror.c: Likewise.
23027         * lib/gl_array_list.c: Likewise.
23028         * lib/gl_array_oset.c: Likewise.
23029         * lib/gl_avltree_list.c: Likewise.
23030         * lib/gl_avltree_oset.c: Likewise.
23031         * lib/gl_avltreehash_list.c: Likewise.
23032         * lib/gl_carray_list.c: Likewise.
23033         * lib/gl_linked_list.c: Likewise.
23034         * lib/gl_linkedhash_list.c: Likewise.
23035         * lib/gl_list.c: Likewise.
23036         * lib/gl_oset.c: Likewise.
23037         * lib/gl_rbtree_list.c: Likewise.
23038         * lib/gl_rbtree_oset.c: Likewise.
23039         * lib/gl_rbtreehash_list.c: Likewise.
23040         * lib/imaxabs.c: Likewise.
23041         * lib/imaxdiv.c: Likewise.
23042         * lib/javacomp.c: Likewise.
23043         * lib/javaexec.c: Likewise.
23044         * lib/javaversion.c: Likewise.
23045         * lib/linebreak.c: Likewise.
23046         * lib/localcharset.c: Likewise.
23047         * lib/lock.c: Likewise.
23048         * lib/mbchar.c: Likewise.
23049         * lib/mbswidth.c: Likewise.
23050         * lib/mkdtemp.c: Likewise.
23051         * lib/pipe.c: Likewise.
23052         * lib/printf-args.c: Likewise.
23053         * lib/printf-parse.c: Likewise.
23054         * lib/progname.c: Likewise.
23055         * lib/progreloc.c: Likewise.
23056         * lib/readlink.c: Likewise.
23057         * lib/sh-quote.c: Likewise.
23058         * lib/stpcpy.c: Likewise.
23059         * lib/stpncpy.c: Likewise.
23060         * lib/strcasecmp.c: Likewise.
23061         * lib/strcasestr.c: Likewise.
23062         * lib/strcspn.c: Likewise.
23063         * lib/striconv.c: Likewise.
23064         * lib/strncasecmp.c: Likewise.
23065         * lib/strnlen1.c: Likewise.
23066         * lib/strstr.c: Likewise.
23067         * lib/strtok_r.c: Likewise.
23068         * lib/tls.c: Likewise.
23069         * lib/tmpdir.c: Likewise.
23070         * lib/unicodeio.c: Likewise.
23071         * lib/unsetenv.c: Likewise.
23072         * lib/vasnprintf.c: Likewise.
23073         * lib/vasprintf.c: Likewise.
23074         * lib/wait-process.c: Likewise.
23075         * lib/xallocsa.c: Likewise.
23076         * lib/xsetenv.c: Likewise.
23077         * lib/xstriconv.c: Likewise.
23078
23079 2006-09-13  Simon Josefsson  <jas@extundo.com>
23080
23081         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
23082         that internally, suggested by Ralf Wildenhues
23083         <Ralf.Wildenhues@gmx.de>.
23084
23085 2006-09-13  Simon Josefsson  <jas@extundo.com>
23086
23087         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
23088         @LIBOBJS@.
23089         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23090
23091 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23092
23093         * lib/_fpending.c: Include <config.h> unconditionally, since we no
23094         longer worry about uses that don't define HAVE_CONFIG_H.
23095         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
23096         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
23097         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
23098         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
23099         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
23100         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
23101         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
23102         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
23103         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
23104         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
23105         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
23106         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
23107         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
23108         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
23109         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
23110         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
23111         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
23112         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
23113         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
23114         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
23115         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
23116         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
23117         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
23118         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
23119         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
23120         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
23121         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
23122         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
23123         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
23124         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
23125         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
23126         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
23127         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
23128         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
23129         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
23130         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
23131         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
23132         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
23133         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
23134         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
23135         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
23136         Likewise.
23137
23138 2006-09-13  Eric Blake  <ebb9@byu.net>
23139
23140         * lib/getopt.c: Fix typo in last commit.
23141
23142 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23143
23144         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
23145         dgettext.
23146
23147 2006-09-12  Jim Meyering  <jim@meyering.net>
23148
23149         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
23150         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
23151         Reported by Nelson H. F. Beebe.
23152
23153 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
23154
23155         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
23156         program_invocation_name and program_invocation_short_name are
23157         initialized.
23158         * lib/argp-namefrob.h: Move declarations of program_invocation_name
23159         and program_invocation_short_name to argp.h, so they are visible
23160         to user programs.
23161         * lib/argp.h: Likewise
23162
23163 2006-09-10  Bruno Haible  <bruno@clisp.org>
23164
23165         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23166         m4/inttypes_h.m4, m4/uintmax_t.m4.
23167
23168 2006-09-10  Bruno Haible  <bruno@clisp.org>
23169
23170         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
23171         gl_AC_TYPE_UINTMAX_T.
23172
23173 2006-09-10  Bruno Haible  <bruno@clisp.org>
23174
23175         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
23176
23177 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23178
23179         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
23180         convention.  Text proposed by Bruno Haible.
23181         (struct argp_option): Document the use of N_() wrappers.
23182
23183         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
23184         '\v', and translate the two parts separately, instead of feeding
23185         the whole string to gettext.  This allows to exclude
23186         '\v' from the strings visible to the translator by writing doc
23187         strings as N_("..") "\v" N_("..").
23188
23189 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
23190
23191         * config/srclist.txt: Undo latest change; the bug was fixed.
23192
23193 2006-09-09  Bruno Haible  <bruno@clisp.org>
23194
23195         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
23196         assignments if building a library without libtool.
23197         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
23198         in func_emit_lib_Makefile_am.
23199         (func_import): When building a static library libfoo.a, arrange to
23200         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
23201         (func_create_testdir): Likewise.
23202         * modules/gc (configure.ac, Makefile.am): If building statically,
23203         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
23204         * modules/iconvme (configure.ac, Makefile.am): Likewise.
23205         * modules/striconv (configure.ac, Makefile.am): Likewise.
23206         Based on a suggestion by Ralf Wildenhues.
23207
23208 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23209
23210         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
23211         Check for unistd.h too, since Autoconf doesn't assume POSIX.
23212         Also:
23213
23214         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23215         Add year_2050_test to catch glibc bug 2821
23216         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23217
23218         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23219         Prefer #ifdef to #if.
23220
23221         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
23222         Return from 'main' instead of calling 'exit'.
23223
23224 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23225
23226         * lib/mktime.c (guess_time_tm): Fix bug where mktime
23227         returned the maximum time_t value rather than (time_t) -1.
23228         Problem originally reported by William Bardwell
23229         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
23230
23231         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23232         Moved to here ...
23233         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23234         ... from here.
23235
23236 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23237
23238         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
23239         2821 is fixed.
23240
23241 2006-09-08  Jim Meyering  <jim@meyering.net>
23242
23243         Don't make generated files read-only.  That would bother too many
23244         people.  However, do retain the ability to work when targets are
23245         read-only: remove the destination and temporary files before writing
23246         them (when generated via sed or echo), or by using the -f option for
23247         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
23248         * modules/alloca-opt, modules/argz, modules/arpa_inet:
23249         * modules/byteswap, modules/configmake, modules/fcntl:
23250         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23251         * modules/localcharset, modules/netinet_in, modules/poll:
23252         * modules/stdbool, modules/stdint, modules/sys_select:
23253         * modules/sys_socket, modules/sys_stat, modules/sysexits:
23254
23255 2006-09-08  Jim Meyering  <jim@meyering.net>
23256
23257         Avoid new build failure on FreeBSD 6.0.
23258         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
23259         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
23260         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
23261
23262 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23263
23264         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
23265
23266 2006-09-07  Jim Meyering  <jim@meyering.net>
23267
23268         Fix global typo in last change: use chmod u-w, not chmod u-x.
23269         Spotted by Paul Eggert and Bruce Korb.
23270         * modules/alloca-opt, modules/argz, modules/arpa_inet:
23271         * modules/byteswap, modules/configmake, modules/fcntl:
23272         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
23273         * modules/localcharset, modules/netinet_in, modules/poll:
23274         * modules/stdbool, modules/stdint, modules/sys_select:
23275         * modules/sys_socket, modules/sys_stat, modules/sysexits:
23276
23277 2006-09-06  Jim Meyering  <jim@meyering.net>
23278
23279         Make generated files be read-only.
23280         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
23281         Ensure that each generated file is now read-only.
23282         * modules/argz: Likewise.
23283         * modules/arpa_inet: Likewise.
23284         * modules/byteswap: Likewise.
23285         * modules/configmake: Likewise.
23286         * modules/fcntl: Likewise.
23287         * modules/fnmatch: Likewise.
23288         * modules/getopt: Likewise.
23289         * modules/glob: Likewise.
23290         * modules/inttypes: Likewise.
23291         * modules/netinet_in: Likewise.
23292         * modules/poll: Likewise.
23293         * modules/stdbool: Likewise.
23294         * modules/stdint: Likewise.
23295         * modules/sys_select: Likewise.
23296         * modules/sys_socket: Likewise.
23297         * modules/sys_stat: Likewise.
23298         * modules/sysexits: Likewise.
23299         * modules/localcharset: Same as above, but continue using temporary
23300         file named "t-$@" (why different?) rather than the "$@-t" used
23301         everywhere else.
23302
23303         * modules/sysexits (Makefile.am): Replace literal occurrences
23304         of "sysexit.h" more readable, and more consistent, "$@".
23305
23306 2006-09-06  Bruno Haible  <bruno@clisp.org>
23307
23308         * modules/striconv: New file.
23309         * modules/xstriconv: New file.
23310         * MODULES.html.sh (Internationalization functions): Add striconv,
23311         xstriconv.
23312
23313 2006-09-06  Bruno Haible  <bruno@clisp.org>
23314
23315         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
23316         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
23317         not using libtool correctly.
23318
23319 2006-09-06  Bruno Haible  <bruno@clisp.org>
23320
23321         * lib/striconv.h: New file.
23322         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
23323         iconvstring.c.
23324         * lib/xstriconv.h: New file.
23325         * lib/xstriconv.c: New file.
23326
23327 2006-09-06  Bruno Haible  <bruno@clisp.org>
23328
23329         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
23330         lib_..._LDFLAGS.
23331
23332 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23333
23334         * lib/argz_.h: Sync from Libtool.
23335
23336         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
23337                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23338
23339         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
23340
23341 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
23342
23343         * modules/trim: New file.
23344
23345 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
23346
23347         * lib/trim.h: New file.
23348         * lib/trim.c: New file.
23349
23350 2006-09-05  Bruno Haible  <bruno@clisp.org>
23351
23352         * MODULES.html.sh (String handling): Add trim.
23353
23354 2006-09-04  Karl Berry  <karl@gnu.org>
23355
23356         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
23357         until next release.
23358
23359 2006-09-03  Bruno Haible  <bruno@clisp.org>
23360
23361         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
23362         correctly.
23363
23364 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23365
23366         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
23367         not gl_GETLOADAVG.  Omit unneeded semicolons.
23368         Problems reported by Ralf Wildenhues in
23369         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23370         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
23371         at the end, which is the usual gnulib style.
23372
23373         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
23374         of doing all the work ourselves.
23375         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
23376         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
23377
23378 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23379
23380         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
23381         Problem reported by Ralf Wildenhues in
23382         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
23383
23384         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
23385         HAVE_STRUCT_STATFS_F_FSTYPENAME.
23386
23387 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23388
23389         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
23390         yesterday's patch by changing test -n to test -z.
23391
23392 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23393
23394         * modules/getloadavg (Files): Add m4/getloadavg.m4.
23395         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
23396         the former is now obsolescent.
23397
23398         * modules/chdir-long (Depends-on): Add fcntl.
23399
23400 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23401
23402         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
23403         obsolescent, and programs should use gnulib instead.
23404         * m4/getloadavg.m4: New file, with contents taken from Autoconf
23405         but with prefixes changed.
23406
23407 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23408
23409         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
23410         or stdbool.h, because they might not exist while configuring.
23411
23412         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
23413         Don't include unistd.h or limits.h; not needed, since chdir-long.h
23414         does that for us.
23415         (O_DIRECTORY): Remove.
23416
23417 2006-08-31  Eric Blake  <ebb9@byu.net>
23418
23419         * gnulib-tool: Don't let emacs change spaces to TAB.
23420
23421 2006-08-31  Bruno Haible  <bruno@clisp.org>
23422
23423         * gnulib-tool: When calling func_import more than once, do it in a
23424         subshell.
23425         Reported by Eric Blake <ebb9@byu.net>.
23426
23427 2006-08-31  Bruno Haible  <bruno@clisp.org>
23428
23429         * gnulib-tool (nl): Remove variable.
23430         (sed_transform_lib_file): Use more robust test for config-h module.
23431         (func_import): Fix typo in 2006-08-25 patch.
23432
23433 2006-08-31  Bruno Haible  <bruno@clisp.org>
23434
23435         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
23436         specified, augment Makefile.am variables instead of assigning them.
23437
23438 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23439
23440         Work around a bug in both the Linux and SunOS 64-bit kernels:
23441         nanosleep mishandles sleeps for longer than 2**31 seconds.
23442         Problem reported by Frank v Waveren in
23443         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23444         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
23445         Check for nanosleep bug.
23446         (LIB_NANOSLEEP): Append clock_gettime library if needed.
23447
23448 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23449
23450         Work around a bug in both the Linux and SunOS 64-bit kernels:
23451         nanosleep mishandles sleeps for longer than 2**31 seconds.
23452         Problem reported by Frank v Waveren in
23453         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
23454         * lib/nanosleep.c (BILLION): New constant.
23455         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
23456         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
23457         implementation.
23458
23459 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23460
23461         * modules/nanosleep (Depends-on): Add gettime.
23462
23463 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23464         and Simon Josefsson  <jas@extundo.com>
23465         and Oskar Liljeblad  <oskar@osk.mine.nu>
23466
23467         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
23468         * gnulib-tool (func_import): New license type 'unmodifiable license
23469         text'.
23470         * modules/fdl: Use it.  Longer description.
23471         * module/gpl, module/lgpl: New files.
23472
23473 2006-08-30  Jim Meyering  <jim@meyering.net>
23474
23475         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
23476         shadowing the parameter.
23477
23478 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23479
23480         Sync from Libtool:
23481
23482         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23483
23484         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
23485         sharing with gnulib.  Report by Eric Blake.
23486
23487 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23488
23489         * modules/isapipe: New file.
23490         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
23491
23492 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23493
23494         * modules/configmake (Makefile.am): Add a comment, and omit
23495         the CONFIGMAKE_ prefix from generated macro names.  Suggested
23496         by Bruno Haible.
23497
23498 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23499
23500         * m4/isapipe.m4: New file.
23501
23502 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23503
23504         * lib/isapipe.c, lib/isapipe.h: New files.
23505
23506 2006-08-29  Jim Meyering  <jim@meyering.net>
23507
23508         * modules/configmake (Makefile.am): Make configmake.h depend on
23509         Makefile.  Otherwise, a stale configmake.h could hang around.
23510
23511 2006-08-29  Eric Blake  <ebb9@byu.net>
23512
23513         * lib/error.c (error_at_line, print_errno_message): Match libc, after
23514         resolution of upstream bug 3044.
23515
23516 2006-08-29  Bruno Haible  <bruno@clisp.org>
23517
23518         * modules/localcharset (Depends-on): Add configmake.
23519         (Makefile.am): Remove setting of LIBDIR through DEFS.
23520
23521 2006-08-29  Bruno Haible  <bruno@clisp.org>
23522
23523         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
23524         defined.
23525
23526 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23527
23528         * modules/fcntl: New file.
23529         * modules/chdir-safer (Depends-on): Add fcntl.
23530         * modules/fts: Likewise.
23531         * modules/mkdir-p: Likewise.
23532
23533         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
23534         This undoes the most recent change, since we're now addressing the
23535         problem in a different way.
23536
23537         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
23538         into output, since the output might be called Makefile.am even
23539         if $makefile_name is something different.
23540         (func_import): Use $makefile_am rather than
23541         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
23542         empty.
23543
23544         * modules/inttypes (Files): Add m4/inttypes-h.m4.
23545
23546 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23547
23548         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
23549         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
23550         recent change to stdint.m4, since we're now addressing the problem in a
23551         different way.
23552
23553 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23554
23555         * m4/fcntl_h.m4: New file.
23556
23557 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
23558
23559         * lib/fcntl_.h: New file.
23560         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
23561         the fcntl module.
23562         * lib/dirchownmod.c: Likewise.
23563         * lib/fts.c: Likewise.
23564
23565         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
23566         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
23567         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
23568         just before including <inttypes.h>, to avoid circular inclusion.
23569
23570 2006-08-28  Jim Meyering  <jim@meyering.net>
23571
23572         * doc/visibility.texi: Actually read and correct the grammar of the
23573         sentence affected by yesterday's change.
23574
23575 2006-08-28  Eric Blake  <ebb9@byu.net>
23576
23577         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
23578         needs wrapper.
23579
23580 2006-08-28  Eric Blake  <ebb9@byu.net>
23581
23582         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
23583
23584 2006-08-28  Eric Blake  <ebb9@byu.net>
23585
23586         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
23587
23588 2006-08-28  Bruno Haible  <bruno@clisp.org>
23589
23590         * modules/c-strstr: New file, from GNU gettext.
23591         * MODULES.html.sh (String handling): Add c-strstr.
23592
23593 2006-08-28  Bruno Haible  <bruno@clisp.org>
23594
23595         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
23596         macros.
23597         Reported by Eric Blake.
23598
23599 2006-08-28  Bruno Haible  <bruno@clisp.org>
23600
23601         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
23602         (VASNPRINTF): Return a string of length > INT_MAX without failing.
23603         * lib/vasprintf.c: Include errno.h, limits.h.
23604         (EOVERFLOW): New fallback definition.
23605         (vasprintf): Test here whether the string length is > INT_MAX.
23606         * lib/vsnprintf.c: Include errno.h, limits.h.
23607         (EOVERFLOW): New fallback definition.
23608         (vsnprintf): Fix bug when generated string was too long for the buffer.
23609         Test here whether the string length is > INT_MAX.
23610
23611 2006-08-28  Bruno Haible  <bruno@clisp.org>
23612
23613         * lib/inttypes_.h (SCNX*): Remove definitions.
23614         Reported by Eric Blake.
23615
23616 2006-08-28  Bruno Haible  <bruno@clisp.org>
23617
23618         * lib/c-strstr.h: New file, from GNU gettext.
23619         * lib/c-strstr.c: New file, from GNU gettext.
23620
23621 2006-08-28  Bruno Haible  <bruno@clisp.org>
23622
23623         * gnulib-tool: Reorder some statements.
23624
23625 2006-08-28  Bruno Haible  <bruno@clisp.org>
23626
23627         * gnulib-tool: New option --makefile-name.
23628         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
23629         $makefile_name.
23630         (func_import): Write $makefile_name to the cache file, and read it from
23631         there unless explicitly specified. Use $makefile_name as file name
23632         instead of Makefile.am. Adjust the recommendations accordingly.
23633
23634 2006-08-28  Bruno Haible  <bruno@clisp.org>
23635
23636         * gnulib-tool (func_verify_module): Check against misapplying patch.
23637
23638 2006-08-28  Bruno Haible  <bruno@clisp.org>
23639
23640         * gnulib-tool (func_relativize, func_relconcat): New functions.
23641         Give an error if --local-dir is given with --update.
23642         Remove trailing slashes from $local_gnulib_dir.
23643         (func_import): Store the relativized $local_gnulib_dir in
23644         gnulib-cache.m4, and read it from there if not specified explicitly.
23645
23646 2006-08-28  Bruno Haible  <bruno@clisp.org>
23647
23648         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
23649         is the current directory. Respect also $local_gnulib_dir.
23650
23651 2006-08-28  Bruno Haible  <bruno@clisp.org>
23652             Simon Josefsson  <jas@extundo.com>
23653
23654         BeOS portability.
23655         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
23656
23657 2006-08-27  Jim Meyering  <jim@meyering.net>
23658
23659         * doc/visibility.texi: Remove duplicate word: "pointer".
23660
23661 2006-08-26  Bruno Haible  <bruno@clisp.org>
23662
23663         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
23664         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
23665         (Makefile.am): Create inttypes.h from inttypes_.h.
23666         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
23667
23668         * modules/imaxabs: New file.
23669
23670         * modules/imaxdiv: New file.
23671
23672 2006-08-26  Bruno Haible  <bruno@clisp.org>
23673
23674         * m4/inttypes.m4: New file.
23675         * m4/_inttypes_h.m4: Remove file.
23676         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
23677         PRI_MACROS_BROKEN.
23678         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
23679
23680         * m4/imaxabs.m4: New file.
23681
23682         * m4/imaxdiv.m4: New file.
23683
23684 2006-08-26  Bruno Haible  <bruno@clisp.org>
23685
23686         * lib/inttypes_.h: New file.
23687         * lib/inttypes.h: Remove file.
23688         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
23689
23690         * lib/imaxabs.c: New file.
23691
23692         * lib/imaxdiv.c: New file.
23693
23694 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23695
23696         New config-h module, so that "make" output needn't be cluttered
23697         by -DHAVE_CONFIG_H.
23698         * MODULES.html.sh (Support for building libraries and executables):
23699         Add config-h.
23700         * modules/config-h: New file.
23701         * gnulib-tool (nl, sed_transform_lib_file): New vars.
23702         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
23703         the config-h module is used.
23704
23705         New configmake module, so that "make" output needn't be cluttered
23706         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
23707         * MODULES.html.sh (Support for building libraries and executables):
23708         Add configmake.
23709         * modules/configmake: New file.
23710
23711 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23712
23713         * m4/config-h.m4: New file.
23714
23715 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23716
23717         * config/srclist.txt: Add elisp-comp.
23718
23719 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23720
23721         * MODULES.html.sh (Support for building libraries and executables):
23722         Add elisp-comp.
23723         * build-aux/elisp-comp: New file.
23724         * modules/elisp-comp: New file.
23725
23726 2006-08-24  Bruno Haible  <bruno@clisp.org>
23727
23728         * gnulib-tool (func_create_testdir): Use non-default values of
23729         sourcebase and m4base.
23730
23731 2006-08-24  Bruno Haible  <bruno@clisp.org>
23732
23733         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
23734         HTML structure.
23735
23736 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23737
23738         * modules/openat (Depends-on): Add lchown.
23739
23740 2006-08-23  Bruno Haible  <bruno@clisp.org>
23741
23742         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
23743         of gl_LOCK_EARLY instead of gl_LOCK.
23744
23745 2006-08-23  Bruno Haible  <bruno@clisp.org>
23746
23747         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
23748         on OSF/1 to no.
23749         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
23750
23751 2006-08-23  Bruno Haible  <bruno@clisp.org>
23752
23753         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
23754         as unusable.
23755
23756         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
23757         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
23758         (gl_LOCK): New macro.
23759
23760 2006-08-22  Simon Josefsson  <jas@extundo.com>
23761
23762         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
23763         to md5 module.
23764
23765 2006-08-22  Simon Josefsson  <jas@extundo.com>
23766
23767         * MODULES.html.sh: Add "Support for maintaining and release
23768         projects".
23769
23770         * build-aux/gnupload: New file, from coreutils.
23771
23772 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23773
23774         Avoid the need for AC_LIBSOURCES in m4 macros.
23775         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
23776         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
23777         * modules/check-version (EXTRA_DIST): Add check-version.h.
23778         * modules/crc (EXTRA_DIST): Add crc.h.
23779         * modules/des (EXTRA_DIST): Add des.h.
23780         * modules/gc (EXTRA_DIST): Add gc.h.
23781         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
23782         * modules/getline (EXTRA_DIST): Add getline.h.
23783         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
23784         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
23785         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
23786         * modules/md2 (EXTRA_DIST): Add md2.h.
23787         * modules/md4 (EXTRA_DIST): Add md4.h.
23788         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
23789         * modules/read-file (EXTRA_DIST): Add read-file.h.
23790         * modules/readline (EXTRA_DIST): Add readline.h.
23791         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
23792         rijndael-api-fst.h.
23793
23794 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23795
23796         * m4/rijndael.m4 (gl_ARCFOUR):
23797         * m4/arctwo.m4 (gl_ARCTWO):
23798         * m4/check-version.m4 (gl_CHECK_VERSION):
23799         * m4/crc.m4 (gl_CRC):
23800         * m4/des.m4 (gl_DES):
23801         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
23802         * m4/gc.m4 (gl_GC):
23803         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
23804         * m4/getline.m4 (gl_FUNC_GETLINE):
23805         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
23806         * m4/hmac-md5.m4 (gl_HMAC_MD5):
23807         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
23808         * m4/md2.m4 (gl_MD2):
23809         * m4/md4.m4 (gl_MD4):
23810         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
23811         * m4/read-file.m4 (gl_FUNC_READ_FILE):
23812         * m4/readline.m4 (gl_FUNC_READLINE):
23813         * m4/rijndael.m4 (gl_RIJNDAEL):
23814         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23815         to get the necessary .h files and whatnot.
23816
23817 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
23818
23819         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
23820         gnulib rather than the other way around.
23821         * config/srclistvars.sh (COREUTILS): Remove.
23822
23823 2006-08-22  Jim Meyering  <jim@meyering.net>
23824
23825         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
23826
23827         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
23828
23829 2006-08-22  Eric Blake  <ebb9@byu.net>
23830
23831         * modules/regexprops-generic: New file.
23832         * MODULES.html.sh (Support for building documentation): List it.
23833
23834 2006-08-22  Eric Blake  <ebb9@byu.net>
23835
23836         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
23837         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23838         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
23839         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23840
23841 2006-08-22  Bruno Haible  <bruno@clisp.org>
23842
23843         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
23844         and lib_LTLIBRARIES like the other lib_* variables.
23845
23846 2006-08-22  Bruno Haible  <bruno@clisp.org>
23847
23848         * build-aux/x-to-1.in: New file, from GNU gettext.
23849
23850 2006-08-22  Bruno Haible  <bruno@clisp.org>
23851
23852         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
23853         <utmpx.h> exists.
23854
23855 2006-08-22  Bruno Haible  <bruno@clisp.org>
23856
23857         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
23858         <utmpx.h> exists.
23859
23860 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23861
23862         BeOS portability.
23863         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
23864         exist.
23865         Problem reported by Bruno Haible.
23866
23867 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23868
23869         Avoid the need for AC_LIBSOURCES in m4 macros.
23870         * modules/acl (EXTRA_DIST): Add acl.h.
23871         * modules/argmatch (Files): Add m4/argmatch.m4.
23872         (configure.ac): Add gl_ARGMATCH.
23873         (EXTRA_DIST): Renamed from lib_SOURCES, for
23874         consistency with the other modules.  Remove argmatch.c.
23875         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
23876         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
23877         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
23878         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
23879         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
23880         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
23881         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
23882         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
23883         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
23884         * modules/closeout (EXTRA_DIST): Add closeout.h.
23885         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
23886         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
23887         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
23888         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
23889         dirname.h; remove basename.c and stripslash.c.
23890         * modules/exclude (EXTRA_DIST): Add exclude.h.
23891         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
23892         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
23893         * modules/file-type (EXTRA_DIST): Add file-type.h.
23894         * modules/filemode (EXTRA_DIST): Add filemode.h.
23895         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
23896         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23897         * modules/fpending (EXTRA_DIST): Add __fpending.h.
23898         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
23899         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
23900         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
23901         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
23902         * modules/getdate (EXTRA_DIST): Add getdate.c.
23903         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
23904         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
23905         * modules/getpass (EXTRA_DIST): Add getpass.h.
23906         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
23907         * modules/group-member (EXTRA_DIST): Add group-member.h.
23908         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
23909         * modules/hash (EXTRA_DIST): Add hash.h.
23910         * modules/human (EXTRA_DIST): Add human.h.
23911         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
23912         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
23913         * modules/lchown (EXTRA_DIST): Add lchown.h.
23914         * modules/long-options (EXTRA_DIST): Add long-options.h.
23915         * modules/lstat (EXTRA_DIST): Add lstat.h.
23916         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
23917         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
23918         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
23919         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
23920         * modules/memxor (EXTRA_DIST): Add memxor.h.
23921         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
23922         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
23923         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
23924         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
23925         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
23926         * modules/physmem (EXTRA_DIST): Add physmem.h.
23927         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
23928         * modules/posixver (EXTRA_DIST): Add posixver.h.
23929         * modules/quote (EXTRA_DIST): Add quote.h.
23930         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
23931         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
23932         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
23933         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
23934         regex_internal.h regexec.c.
23935         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
23936         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
23937         * modules/same (EXTRA_DIST): Add same.h.
23938         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
23939         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
23940         * modules/savedir (EXTRA_DIST): Add savedir.h.
23941         * modules/sha1 (EXTRA_DIST): Add sha1.h.
23942         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
23943         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
23944         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
23945         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
23946         * modules/strdup (EXTRA_DIST): Add strdup.h.
23947         * modules/strftime (EXTRA_DIST): Add strftime.h.
23948         * modules/strndup (EXTRA_DIST): Add strndup.h.
23949         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
23950         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
23951         * modules/time_r (EXTRA_DIST): Add time_r.h.
23952         * modules/timespec (EXTRA_DIST): Add timespec.h.
23953         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23954         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
23955         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
23956         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
23957         * modules/userspec (EXTRA_DIST): Add userspec.h.
23958         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
23959         * modules/utimens (EXTRA_DIST): Add utimens.h.
23960         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
23961         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
23962         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
23963         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
23964         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
23965         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
23966         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
23967         * modules/yesno (EXTRA_DIST): Add yesno.h.
23968
23969 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23970
23971         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
23972
23973         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
23974         * m4/dev-ino.m4, same-inode.m4: Remove.
23975
23976         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
23977         * m4/acl.m4 (AC_FUNC_ACL):
23978         * m4/backupfile.m4 (gl_BACKUPFILE):
23979         * m4/c-strtod.m4 (gl_C99_STRTOLD):
23980         * m4/canon-host.m4 (gl_CANON_HOST):
23981         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
23982         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
23983         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
23984         * m4/cloexec.m4 (gl_CLOEXEC):
23985         * m4/close-stream.m4 (gl_CLOSE_STREAM):
23986         * m4/closeout.m4 (gl_CLOSEOUT):
23987         * m4/dirfd.m4 (gl_FUNC_DIRFD):
23988         * m4/dirname.m4 (gl_DIRNAME):
23989         * m4/exclude.m4 (gl_EXCLUDE):
23990         * m4/exitfail.m4 (gl_EXITFAIL):
23991         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
23992         * m4/file-type.m4 (gl_FILE_TYPE):
23993         * m4/filemode.m4 (gl_FILEMODE):
23994         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
23995         * m4/fpending.m4 (gl_FUNC_FPENDING):
23996         * m4/fprintftime.m4 (gl_FPRINTFTIME):
23997         * m4/fts.m4 (gl_FUNC_FTS):
23998         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
23999         * m4/getdate.m4 (gl_GETDATE):
24000         * m4/gethrxtime.m4 (gl_GETHRXTIME):
24001         * m4/getpagesize.m4 (gl_GETPAGESIZE):
24002         * m4/getpass.m4 (gl_FUNC_GETPASS):
24003         * m4/gettime.m4 (gl_GETTIME):
24004         * m4/getugroups.m4 (gl_GETUGROUPS):
24005         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
24006         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
24007         * m4/hard-locale.m4 (gl_HARD_LOCALE):
24008         * m4/hash.m4 (gl_HASH):
24009         * m4/idcache.m4 (gl_IDCACHE):
24010         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
24011         * m4/lchown.m4 (gl_FUNC_LCHOWN):
24012         * m4/long-options.m4 (gl_LONG_OPTIONS):
24013         * m4/lstat.m4 (gl_FUNC_LSTAT):
24014         * m4/md5.m4 (gl_MD5):
24015         * m4/memcasecmp.m4 (gl_MEMCASECMP):
24016         * m4/memcoll.m4 (gl_MEMCOLL):
24017         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
24018         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
24019         * m4/memxor.m4 (gl_MEMXOR):
24020         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
24021         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
24022         * m4/modechange.m4 (gl_MODECHANGE):
24023         * m4/mountlist.m4 (gl_MOUNTLIST):
24024         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
24025         * m4/openat.m4 (gl_FUNC_OPENAT):
24026         * m4/pathmax.m4 (gl_PATHMAX):
24027         * m4/physmem.m4 (gl_PHYSMEM):
24028         * m4/posixtm.m4 (gl_POSIXTM):
24029         * m4/posixver.m4 (gl_POSIXVER):
24030         * m4/quote.m4 (gl_QUOTE):
24031         * m4/quotearg.m4 (gl_QUOTEARG):
24032         * m4/readtokens.m4 (gl_READTOKENS):
24033         * m4/readutmp.m4 (gl_READUTMP):
24034         * m4/regex.m4 (gl_REGEX):
24035         * m4/safe-read.m4 (gl_SAFE_READ):
24036         * m4/safe-write.m4 (gl_SAFE_WRITE):
24037         * m4/same.m4 (gl_SAME):
24038         * m4/save-cwd.m4 (gl_SAVE_CWD):
24039         * m4/savedir.m4 (gl_SAVEDIR):
24040         * m4/settime.m4 (gl_SETTIME):
24041         * m4/sha1.m4 (gl_SHA1):
24042         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
24043         * m4/stat-macros.m4 (gl_STAT_MACROS):
24044         * m4/stat-time.m4 (gl_STAT_TIME):
24045         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
24046         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
24047         * m4/strdup.m4 (gl_FUNC_STRDUP):
24048         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
24049         * m4/strndup.m4 (gl_FUNC_STRNDUP):
24050         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
24051         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
24052         * m4/time_r.m4 (gl_TIME_R):
24053         * m4/timespec.m4 (gl_TIMESPEC):
24054         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
24055         * m4/unlinkdir.m4 (gl_UNLINKDIR):
24056         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
24057         * m4/userspec.m4 (gl_USERSPEC):
24058         * m4/utimecmp.m4 (gl_UTIMECMP):
24059         * m4/utimens.m4 (gl_UTIMENS):
24060         * m4/xalloc.m4 (gl_XALLOC):
24061         * m4/xgetcwd.m4 (gl_XGETCWD):
24062         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
24063         * m4/xreadlink.m4 (gl_XREADLINK):
24064         * m4/xstrtod.m4 (gl_XSTRTOD):
24065         * m4/yesno.m4 (gl_YESNO):
24066         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24067         to get the necessary .h files and whatnot.
24068
24069 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
24070             Bruno Haible  <bruno@clisp.org>
24071
24072         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
24073         /bin/sh understanding of '!' conditional negation.
24074
24075 2006-08-21  Jim Meyering  <jim@meyering.net>
24076
24077         * modules/openat (Depends-on): Really alphabetize.
24078
24079         * modules/acl (Depends-on): Add error and quote.
24080
24081         * check-module (find_included_lib_files): Add at-func.c to the
24082         ok-to-include-more-than-once white list.
24083
24084         * modules/openat (Depends-on): Add lstat.  Alphabetize.
24085
24086 2006-08-21  Bruno Haible  <bruno@clisp.org>
24087
24088         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24089         Emit a pkgdata_DATA variable only if some snippets add contents to it.
24090         Reported by Martin Lambers <marlam@marlam.de>.
24091
24092 2006-08-21  Bruno Haible  <bruno@clisp.org>
24093
24094         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
24095         specify an installation location, don't emit a noinst_LIBRARIES or
24096         noinst_LTLIBRARIES assignment.
24097
24098 2006-08-21  Bruno Haible  <bruno@clisp.org>
24099
24100         BeOS portability.
24101         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
24102         BeOS has mbrtowc() but no <wctype.h>.
24103
24104 2006-08-21  Bruno Haible  <bruno@clisp.org>
24105
24106         BeOS portability.
24107         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
24108         exist.
24109
24110 2006-08-21  Bruno Haible  <bruno@clisp.org>
24111
24112         BeOS portability.
24113         * lib/mbchar.h: Include <wctype.h> only if it exists.
24114
24115 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24116
24117         Remove files that are no longer needed by their respective modules.
24118         * m4/obstack.m4: Remove.
24119         * m4/strerror_r.m4: Remove.
24120         * m4/uint32_t.m4: Remove.
24121         * m4/uintptr_t.m4: Remove.
24122         * m4/ullong_max.m4: Remove.
24123         * m4/xstrtoimax.m4: Remove.
24124         * m4/xstrtoumax.m4: Remove.
24125
24126         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
24127         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
24128         dependencies now capture this.
24129
24130         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
24131         Do not use AC_LIBSOURCES, since gnulib modules now do this.
24132         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
24133         * m4/human.m4 (gl_HUMAN): Likewise.
24134         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
24135         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
24136
24137         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
24138
24139         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
24140         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
24141         stdint.
24142         * m4/human.m4 (gl_HUMAN): Likewise.
24143         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
24144         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
24145         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24146         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24147         * m4/xstrtol (gl_XSTRTOL): Likewise.
24148
24149         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
24150         AC_TYPE_LONG_LONG_INT.
24151         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
24152         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
24153         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
24154         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
24155
24156         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
24157         on stdbool.
24158
24159         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
24160         (gl_PREREQ_XSTRTOUL): Remove.
24161
24162         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
24163
24164         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
24165         mode.
24166
24167 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24168
24169         Add and change modules to make it easier for coreutils to use
24170         gnulib-tool.
24171         * modules/backupfile (Files): Remove m4/d-ino.m4.
24172         (Depends-on): Add d-ino.
24173         * modules/cycle-check (Depends-on): Add stdint.
24174         (lib_SOURCES): Add cycle-check.h.
24175         * modules/d-ino: New module.
24176         * modules/d-type: New module.
24177         * modules/error (Files): Remove m4/strerror_r.m4.
24178         * modules/filemode (Files): Add m4/st_dm_mode.m4.
24179         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24180         m4/inttypes_h.m4, m4/uintmax_t.m4.
24181         (Depends-on): Add stdint.
24182         (lib_SOURCES): Add fsusage.h.
24183         * modules/getcwd (Files): Remove d-ino.m4.
24184         (Depends-on): Add d-ino.
24185         * modules/getndelim2 (Depends-on): Add stdint.
24186         * modules/glob (Files): Remove m4/d-type.m4.
24187         (Depends-on): Add d-type.
24188         * modules/host-os: New module.
24189         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
24190         m4/inttypes_h.m4, m4/uintmax_t.m4.
24191         * Depends-on: Add stdint.
24192         (lib_SOURCES): Add human.h.
24193         * modules/inttostr (Files): Remove m4/intmax_t.m4,
24194         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
24195         m4/uintmax_t.m4, m4/ulonglong.m4.
24196         (Depends-on): Add stdint.
24197         (EXTRA_DIST): Add inttostr.h.
24198         * modules/lchmod: New module.
24199         * modules/link-follow: New module.
24200         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
24201         (Depends-on): Add lchmod.
24202         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
24203         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
24204         (Depends-on): Add stdint.
24205         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
24206         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
24207         (Depends-on): Add stdint.
24208         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
24209         * modules/perl: New module.
24210         * modules/regex (Depends-on): Add stdint.
24211         * modules/rmdir-errno: New module.
24212         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24213         m4/intmax_t.m4.
24214         (Depends-on): Add stdint.
24215         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
24216         m4/uintmax_t.m4.
24217         (Depends-on): Add stdint.
24218         * modules/unlink-busy: New module.
24219         * modules/utimecmp (Depends-on): Add stdint.
24220         * modules/uptime: New module.
24221         * modules/winsz-ioctl: New module.
24222         * modules/winsz-termios: New module.
24223         * modules/xnanosleep (Depends-on): Add nanosleep.
24224         * modules/ullong_max: Remove.
24225         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
24226         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
24227         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
24228         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
24229         (Depends-on): Add inttypes.
24230         (lib_SOURCES): Add xstrtol.h.
24231         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
24232         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
24233         * MODULES.html.sh: Move 'assert' into the assert section.
24234         Move 'dummy' into the linking section.
24235         Remove ullong_max.
24236         Add section for compatibility checks for POSIX:2001 functions,
24237         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
24238         winsz-ioctl, and winsz-termios into it.
24239         Add lchmod.
24240         Add top-level Misc section and put host-os, perl, and uptime
24241         into it.
24242
24243 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24244
24245         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
24246         now assume the stdint module.  Do not include inttypes.h.
24247         * lib/fsusage.h: Likewise.
24248         * lib/getndelim2.c: Likewise.
24249         * lib/human.h: Likewise.
24250         * lib/inttostr.h: Likewise.
24251         * lib/obstack.c: Likewise.
24252         * lib/regex_internal.h: Likewise.
24253         * lib/tempname.c: Likewise.
24254         * lib/utimecmp.c: Likewise.
24255         * lib/xstrtol.h: Likewise.
24256
24257         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
24258
24259         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
24260         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
24261         * lib/xtime.h: Likewise.
24262
24263 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24264
24265         * modules/openat (Files): Add lib/fchmodat.c.
24266         Fixes problem reported by Jay Youngman.
24267
24268 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24269
24270         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
24271         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
24272
24273 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24274             Bruno Haible  <bruno@clisp.org>
24275
24276         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
24277         and is a script that invokes bison. Tighten the code. Add comments.
24278
24279 2006-08-18  Jim Meyering  <jim@meyering.net>
24280
24281         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
24282         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
24283         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
24284         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
24285
24286 2006-08-18  Bruno Haible  <bruno@clisp.org>
24287
24288         * modules/bison-i18n: New file.
24289         * MODULES.html.sh (Internationalization functions): Add it.
24290
24291 2006-08-18  Bruno Haible  <bruno@clisp.org>
24292
24293         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
24294         sys/statvfs.h. When getmntinfo was found, check its declaration and
24295         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
24296
24297 2006-08-18  Bruno Haible  <bruno@clisp.org>
24298
24299         * m4/bison-i18n.m4: New file, from bison.
24300
24301 2006-08-18  Bruno Haible  <bruno@clisp.org>
24302
24303         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
24304         (ME_DUMMY): Treat "kernfs" as a dummy.
24305         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
24306
24307 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24308
24309         Update from coreutils.
24310
24311         2006-08-15  Jim Meyering  <jim@meyering.net>
24312
24313         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
24314
24315         2006-01-17  Jim Meyering  <jim@meyering.net>
24316
24317         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
24318
24319         2006-01-11  Jim Meyering  <jim@meyering.net>
24320
24321         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
24322         Check for the lchmod function.
24323
24324 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24325
24326         Update from coreutils.
24327
24328         * lib/__fpending.h: Add copyright notice.
24329         * lib/fprintftime.h: Likewise.
24330         * lib/savedir.c: Use (C) in copyright notice.
24331         * lib/savedir.h: Likewise.
24332
24333         2006-08-15  Jim Meyering  <jim@meyering.net>
24334
24335         * lib/at-func.c: New file, with the logic of all emulated at-functions.
24336         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
24337         in support of the EXPECTED_ERRNO macro.
24338         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
24339         definitions.  Instead, define the appropriate symbols and include
24340         "at-func.c".
24341         * lib/mkdirat.c (mkdirat): Likewise.
24342         * lib/fchmodat.c (fchmodat): Likewise.
24343         (ENOSYS): Remove definition.
24344         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
24345         it.  Don't include "unistd--.h" -- it wasn't ever used.
24346
24347         2006-01-17  Jim Meyering  <jim@meyering.net>
24348
24349         Rewrite fts.c not to change the current working directory,
24350         by using openat, fstatat, fdopendir, etc..
24351
24352         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
24353         (HAVE_OPENAT_SUPPORT): Define.
24354         [_LIBC] (fchdir): Don't undef or define; no longer used.
24355         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
24356         Now, this `function' always succeeds, and consumes its file descriptor
24357         parameter -- so callers must not close such FDs.  Update callers.
24358         (diropen_fd, opendirat, cwd_advance_fd): New functions.
24359         (diropen): Add parameter, SP.  Adjust all callers.
24360         Implement using diropen_fd, rather than open.
24361         (fts_open): Initialize new member, fts_cwd_fd.
24362         Remove fts_rft-setting code.
24363         (fts_close): Close fts_cwd_fd, if necessary.
24364         (__opendir2): Define in terms of opendir or opendirat,
24365         depending on whether the FST_NOCHDIR flag is set.
24366         (fts_build): Since fts_safe_changedir consumes its FD, and since
24367         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
24368         and close the dup'd file descriptor upon failure.
24369         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
24370         (fts_safe_changedir): Tweak semantics to reflect that this function
24371         now calls cwd_advance_fd and hence consumes its FD argument.
24372         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
24373         [struct FTS] (fts_rft): Remove now-unused member.
24374         [struct FTS] (fts_cycle.state): Improve comment.
24375
24376         * lib/openat.c (openat_needs_fchdir): New function.
24377         * lib/openat.h (openat_needs_fchdir): Declare it.
24378
24379 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24380
24381         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
24382         Problem and fix reported by Pádraig Brady in
24383         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
24384
24385 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24386
24387         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
24388
24389 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24390
24391         * lib/memcoll.c (memcoll): Optimize for the common case where the
24392         arguments are bytewise equal.
24393
24394 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24395
24396         * doc/regexprops-generic.texi: Add a copyright notice.
24397
24398 2006-08-15  Bruno Haible  <bruno@clisp.org>
24399
24400         * modules/tmpdir (License): Change to LGPL.
24401
24402 2006-08-15  Bruno Haible  <bruno@clisp.org>
24403
24404         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
24405         module.
24406
24407 2006-08-14  Simon Josefsson  <jas@extundo.com>
24408
24409         * config/srclist.txt: Add gnupload.
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         * tests/test-lock.c: Likewise.
24416         * tests/test-stdint.c: Likewise.
24417         * tests/test-tls.c: Likewise.
24418
24419         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
24420         prelude-manager.  User shorter URLs for GNU projects, without '?'.
24421         Add copyright notice.
24422
24423         * check-module: Add copyright notice.  Output a copyright
24424         notice if "--version" is specified.
24425         * modules/COPYING: New file.
24426         * tests/test-getaddrinfo.c: Add copyright notice.
24427         * tests/test-verify.c: Likewise.
24428
24429 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24430
24431         Change copyright notice from LGPL 2 to GPL 2, since that's the
24432         standard form used in the gnulib repository.
24433         * lib/lock.c: LGPL -> GPL.
24434         * lib/lock.h: Likewise.
24435         * lib/strnlen1.c: Likewise.
24436         * lib/strnlen1.h: Likewise.
24437         * lib/tls.c: Likewise.
24438         * lib/tls.h: Likewise.
24439         * lib/tmpdir.c: Likewise.
24440
24441         * lib/TODO: Remove; this belongs only in coreutils.
24442
24443 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24444
24445         Add copyright notices to long-enough files that lack them, since
24446         otherwise the files aren't clearly free.  Use the same notice that
24447         getdate.texi already uses.
24448         * doc/alloca-opt.texi: Add copyright notice.
24449         * doc/alloca.texi: Likewise.
24450         * doc/ctime.texi: Likewise.
24451         * doc/functions.texi: Likewise.
24452         * doc/gcd.texi: Likewise.
24453         * doc/gnulib-tool.texi: Likewise.
24454         * doc/inet_ntoa.texi: Likewise.
24455         * doc/visibility.texi: Likewise.
24456
24457         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
24458         * doc/quote.texi: Add copyright notice.
24459
24460         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
24461         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
24462         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
24463         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
24464         is now obsolete, and give a pointer to the Sun list.
24465         Add copyright notice.
24466
24467 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
24468
24469         * config/srclistvars.sh: Add copyright notice.
24470
24471 2006-08-14  Eric Blake  <ebb9@byu.net>
24472
24473         Import the following change from libc:
24474
24475         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
24476
24477         Upstream bug 2997.
24478         * lib/misc/error.c: Add space between program name and message if file
24479         name is missing.
24480
24481 2006-08-12  Karl Berry  <karl@gnu.org>
24482
24483         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
24484         remove, these originate in gnulib now.
24485
24486 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24487
24488         * doc/Makefile (standards.info standards.html standards.dvi):
24489         Also depend on make-stds.texi.
24490
24491 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24492
24493         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
24494         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
24495
24496         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
24497         in wchar_t.  Problem reported by Eric Blake.
24498
24499         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
24500         LEN is smaller than SIZE.  Suggested by Bruno Haible.
24501         Also, help the compiler to keep LEN in a register.
24502
24503 2006-08-11  Eric Blake  <ebb9@byu.net>
24504
24505         * users.txt: Sort.  Add tar.
24506
24507 2006-08-11  Bruno Haible  <bruno@clisp.org>
24508
24509         * users.txt: New file.
24510
24511 2006-08-11  Bruno Haible  <bruno@clisp.org>
24512
24513         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
24514         before <wchar.h>. Needed for OSF/1 and BSD/OS.
24515
24516 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24517
24518         * modules/snprintf (Depends-on): Remove minmax.
24519         (Maintainer): Add self and Bruno.
24520
24521 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24522
24523         * lib/.cppi-disable: Add snprintf.h, socket_.h.
24524         * lib/snprintf.c: Include <errno.h> and <limits.h>.
24525         (EOVERFLOW): Define if the system does not.
24526         Do not include "minmax.h"; it wasn't used.
24527         (snprintf): Don't assume size_t promotes to an unsigned type.
24528         Fix bug when generated string was too long for the buffer: the
24529         buffer's contents are supposed to be the initial prefix of the
24530         output.  Don't assume vasnprintf returns EOVERFLOW if the size
24531         exceeds INT_MAX; do the check ourselves.
24532
24533         Import the following changes from libc:
24534
24535         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
24536
24537         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
24538         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
24539         set wc to the byte which couldn't be converted.
24540         (re_string_reconstruct): Don't clear valid_raw_len before calling
24541         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
24542         tip_context using re_string_context_at.
24543
24544         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
24545
24546         * lib/posix/regex.h: g++ still cannot handled [restrict].
24547
24548         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
24549
24550         * lib/posix/regex.h: Remove special handling for VMS.
24551
24552 2006-08-10  Jim Meyering  <jim@meyering.net>
24553
24554         * modules/same-inode: New module.
24555         * modules/dev-ino: New module.
24556         * modules/cycle-check: Depend on these modules, rather than simply
24557         including their .h files.
24558         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
24559         required via m4/cycle-check.m4.
24560         * modules/same: Depend on new same-inode module, rather than
24561         including same-inode.h.
24562         * modules/chdir-safer: New file.
24563
24564         * modules/chown (Depends-on): Add stat-macros.
24565
24566 2006-08-10  Jim Meyering  <jim@meyering.net>
24567
24568         * m4/cycle-check.m4: New file.
24569         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
24570         * m4/dev-ino.m4, m4/same-inode.m4: New files.
24571
24572 2006-08-10  Eric Blake  <ebb9@byu.net>
24573
24574         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
24575         in from original proposal.
24576
24577 2006-08-10  Eric Blake  <ebb9@byu.net>
24578         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24579
24580         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
24581         namespace.
24582
24583 2006-08-10  Bruno Haible  <bruno@clisp.org>
24584
24585         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
24586         as well.
24587
24588 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24589
24590         Sync from coreutils.
24591
24592         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
24593
24594         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
24595         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
24596
24597 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24598
24599         * modules/restrict: Remove; no longer needed now that we assume
24600         Autoconf 2.59 or later.
24601         * MODULES.html.sh: Remove 'restrict'.
24602         * modules/argp (Depends-on): Remove 'restrict'.
24603         * modules/base64 (Depends-on): Likewise.
24604         * modules/gc (Depends-on): Likewise.
24605         * modules/getaddrinfo (Depends-on): Likewise.
24606         * modules/glob (Depends-on): Likewise.
24607         * modules/inet_ntop (Depends-on): Likewise.
24608         * modules/inet_pton (Depends-on): Likewise.
24609         * modules/memxor (Depends-on): Likewise.
24610         * modules/regex (Depends-on): Likewise.
24611         * modules/strtok_r (Depends-on): Likewise.
24612         * modules/time_r (Depends-on): Likewise.
24613
24614 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24615
24616         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
24617         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
24618         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24619         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
24620         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24621         * m4/memxor.m4 (gl_MEMXOR): Likewise.
24622         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
24623         gl_C_RESTRICT replaced by AC_C_RESTRICT.
24624
24625         Merge from coreutils.
24626         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
24627         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
24628         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24629         * m4/time_r.m4 (gl_TIME_R): Likewise.
24630
24631 2006-08-09  Karl Berry  <karl@gnu.org>
24632
24633         * config/srclist.txt: no more gettext-tools, per Bruno.
24634
24635 2006-08-08  Eric Blake  <ebb9@byu.net>
24636
24637         * modules/verror: New module.
24638         * MODULES.html.sh: Document it.
24639
24640 2006-08-08  Eric Blake  <ebb9@byu.net>
24641
24642         * lib/verror.h, lib/verror.c: New files.
24643
24644 2006-08-08  Eric Blake  <ebb9@byu.net>
24645
24646         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
24647         verror_at_line output complies with GNU Coding Standards even when
24648         file is NULL.
24649
24650 2006-08-07  Bruno Haible  <bruno@clisp.org>
24651
24652         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
24653         versions of AIX.
24654         Reported by Ralf Wildenhues.
24655
24656 2006-08-07  Bruno Haible  <bruno@clisp.org>
24657
24658         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
24659         in an AC_DEFUN. Needed so that the autoconf snippets can use
24660         AC_REQUIRE.
24661
24662 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24663
24664         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24665         Initialize pkgdata_DATA.
24666         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
24667         overriding it.
24668
24669 2006-08-06  Eric Blake  <ebb9@byu.net>
24670
24671         * lib/error.h: Fold in some upstream changes from glibc.
24672         * lib/error.c: Likewise.
24673
24674 2006-08-04  Bruno Haible  <bruno@clisp.org>
24675
24676         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24677         Make the mostlyclean-local rule depend on mostlyclean-generic.
24678         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
24679
24680 2006-07-31  Bruno Haible  <bruno@clisp.org>
24681
24682         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
24683         <stdlib.h>, <string.h>.
24684
24685 2006-07-30  Bruno Haible  <bruno@clisp.org>
24686
24687         * modules/readlink (License): Change to LGPL.
24688
24689 2006-07-30  Bruno Haible  <bruno@clisp.org>
24690
24691         * modules/javaversion (Makefile.am): Distribute javaversion.java and
24692         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
24693         set PKGDATADIR to point to it.
24694
24695 2006-07-30  Bruno Haible  <bruno@clisp.org>
24696
24697         * modules/csharpexec (configure.ac): Comment out macro invocation.
24698         * modules/javaexec (configure.ac): Likewise.
24699         * modules/javacomp-script (configure.ac): Likewise.
24700
24701         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
24702
24703 2006-07-30  Bruno Haible  <bruno@clisp.org>
24704
24705         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
24706         linked-list.
24707
24708 2006-07-30  Bruno Haible  <bruno@clisp.org>
24709
24710         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
24711
24712 2006-07-30  Bruno Haible  <bruno@clisp.org>
24713
24714         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24715         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
24716         get removed.
24717
24718 2006-07-29  Bruno Haible  <bruno@clisp.org>
24719
24720         Make it possible for gnulib-tool to work with locally modified or
24721         augmented gnulib repositories.
24722         * gnulib-tool (func_usage): Document --local-dir option.
24723         (local_gnulib_dir): New variable.
24724         Handle --local-dir option.
24725         (func_lookup_file): New function.
24726         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
24727         (func_get_description, func_get_filelist, func_get_description,
24728         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
24729         func_get_automake_snippet, func_get_include_directive,
24730         func_get_license, func_get_maintainer): Use func_lookup_file.
24731         (func_import, func_create_testdir): Use func_lookup_file.
24732
24733 2006-07-29  Bruno Haible  <bruno@clisp.org>
24734
24735         * modules/setenv (Depends-on): Add unistd.
24736
24737 2006-07-29  Bruno Haible  <bruno@clisp.org>
24738
24739         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
24740
24741 2006-07-29  Bruno Haible  <bruno@clisp.org>
24742
24743         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
24744
24745 2006-07-29  Bruno Haible  <bruno@clisp.org>
24746
24747         * gnulib-tool (import, update): If there is no Makefile.am, look at
24748         aclocal.m4, instead of bailing out.
24749
24750 2006-07-29  Bruno Haible  <bruno@clisp.org>
24751
24752         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
24753         Categorize the options by when they are useful.
24754
24755 2006-07-29  Bruno Haible  <bruno@clisp.org>
24756
24757         * gnulib-tool (func_usage): Document option --no-libtool.
24758         Handle option --no-libtool.
24759         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
24760         for changed semantics of $libtool variable.
24761         (func_import): Likewise. If libtool is not used, show this through
24762         an option --no-libtool.
24763         (func_create_testdir): Update.
24764
24765 2006-07-29  Bruno Haible  <bruno@clisp.org>
24766
24767         * gnulib-tool (func_import): Extend error message about missing
24768         --doc-base.
24769
24770 2006-07-29  Bruno Haible  <bruno@clisp.org>
24771
24772         * gnulib-tool (func_import): Don't create the $docbase directory if
24773         there is no file to store there.
24774
24775 2006-07-29  Bruno Haible  <bruno@clisp.org>
24776
24777         * gnulib-tool (autoconf_minversion): If a --dir option is given and
24778         relevant, look for configure.ac there, not in the current directory.
24779         Also use a simple search for AC_PREREQ, not "autoconf --trace".
24780
24781 2006-07-29  Bruno Haible  <bruno@clisp.org>
24782
24783         * gnulib-tool (SORT): New variable.
24784         (func_usage): Undocument --assume-autoconf option.
24785         Remove --assume-autoconf option handling.
24786         (autoconf_minversion): Determine from the contents of configure.ac.
24787         (func_import): Remove autoconf_minversion handling.
24788         Suggested by Eric Blake.
24789
24790 2006-07-29  Bruno Haible  <bruno@clisp.org>
24791
24792         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
24793
24794 2006-07-29  Bruno Haible  <bruno@clisp.org>
24795
24796         * config/srclist.txt (*setenv.[ch]): Remove rules.
24797
24798 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24799
24800         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
24801
24802 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24803
24804         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
24805         arpa/inet.h.
24806
24807 2006-07-28  Simon Josefsson  <jas@extundo.com>
24808
24809         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
24810         * modules/inet_pton (Depends-on): Likewise.
24811
24812 2006-07-28  Simon Josefsson  <jas@extundo.com>
24813
24814         * m4/netinet_in_h.m4: New file.
24815
24816 2006-07-28  Simon Josefsson  <jas@extundo.com>
24817
24818         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
24819         #include's.
24820
24821 2006-07-28  Simon Josefsson  <jas@extundo.com>
24822
24823         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
24824         #include's.
24825
24826 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
24827
24828         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
24829         setgid on directories only if they set these bits.
24830         * lib/modechange.h: Remove obsolete comment about masks.
24831
24832 2006-07-28  Eric Blake  <ebb9@byu.net>
24833
24834         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
24835         macro expansion.
24836
24837 2006-07-28  Bruno Haible  <bruno@clisp.org>
24838
24839         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
24840
24841 2006-07-28  Bruno Haible  <bruno@clisp.org>
24842
24843         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
24844
24845 2006-07-28  Bruno Haible  <bruno@clisp.org>
24846
24847         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24848         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24849         Define fallbacks.
24850         Avoids link error on FreeBSD 4.x.
24851         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24852
24853         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
24854         encoding.
24855         * lib/mbswidth.c (iswcntrl): Likewise.
24856
24857 2006-07-27  Bruno Haible  <bruno@clisp.org>
24858
24859         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
24860         test.
24861
24862 2006-07-27  Bruno Haible  <bruno@clisp.org>
24863
24864         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
24865         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
24866         defined.
24867
24868 2006-07-26  Eric Blake  <ebb9@byu.net>
24869
24870         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
24871
24872 2006-07-26  Eric Blake  <ebb9@byu.net>
24873
24874         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
24875         like mingw that lack mkstemp.
24876         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
24877         avoid compilation warning on mingw.
24878
24879 2006-07-26  Bruno Haible  <bruno@clisp.org>
24880
24881         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
24882         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
24883         INT_FAST*_MIN, INTPTR_MIN.
24884
24885 2006-07-25  Bruno Haible  <bruno@clisp.org>
24886
24887         * modules/version-etc (Depends-on): Add stdarg.
24888
24889 2006-07-25  Bruno Haible  <bruno@clisp.org>
24890
24891         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
24892         complex commands.
24893
24894 2006-07-25  Bruno Haible  <bruno@clisp.org>
24895
24896         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
24897         defined in <stdarg.h> or config.h.
24898
24899 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24900
24901         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
24902         (gl_STDIO_SAFER): Remove.
24903
24904 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24905
24906         * MODULES.html.sh (File stream based Input/Output):
24907         Add fopen-safer, tmpfile-safer; remove stdio-safer.
24908         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
24909         * modules/fopen-safer, modules/tmpfile-safer: New files.
24910         * modules/stdio-safer: Remove.
24911
24912 2006-07-24  Bruno Haible  <bruno@clisp.org>
24913
24914         * modules/tmpdir: New file.
24915         * MODULES.html.sh (File system functions): Add it.
24916
24917 2006-07-24  Bruno Haible  <bruno@clisp.org>
24918
24919         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
24920         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
24921
24922 2006-07-24  Bruno Haible  <bruno@clisp.org>
24923
24924         * modules/clean-temp: New file.
24925
24926 2006-07-24  Bruno Haible  <bruno@clisp.org>
24927
24928         * m4/tmpdir.m4: New file, from GNU gettext.
24929
24930 2006-07-24  Bruno Haible  <bruno@clisp.org>
24931
24932         * lib/tmpdir.h: New file, from GNU gettext.
24933         * lib/tmpdir.c: New file, from GNU gettext.
24934
24935 2006-07-24  Bruno Haible  <bruno@clisp.org>
24936
24937         * lib/clean-temp.h: New file, from GNU gettext.
24938         * lib/clean-temp.c: New file, from GNU gettext.
24939
24940 2006-07-23  Eric Blake  <ebb9@byu.net>
24941
24942         * modules/stdio-safer (Files): Add tmpfile-safer.c.
24943         (Depends-on): Add binary-io.
24944
24945 2006-07-23  Eric Blake  <ebb9@byu.net>
24946
24947         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
24948
24949 2006-07-23  Eric Blake  <ebb9@byu.net>
24950
24951         * lib/tmpfile-safer.c: New file.
24952         * lib/stdio-safer.h (fopen_safer): Add prototype.
24953         * lib/stdio--.h (tmpfile): Make safer.
24954
24955 2006-07-23  Bruno Haible  <bruno@clisp.org>
24956
24957         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
24958         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
24959         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
24960         gl_linked_remove_at): Use it.
24961
24962 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24963         and Simon Josefsson <jas@extundo.com>
24964
24965         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
24966
24967         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
24968
24969 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24970
24971         * modules/close-stream: New file.
24972         * modules/closeout (Description): Make it clear that it exits
24973         with a diagnostic on error.
24974         (Depends-on): Add close-stream.  Remove fpending, stdbool.
24975         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
24976
24977 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24978
24979         * m4/close-stream.m4: New file.
24980
24981 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24982
24983         * lib/close-stream.c, lib/close-stream.h: New files.
24984
24985 2006-07-22  Bruno Haible  <bruno@clisp.org>
24986
24987         Merge from GNU gettext 0.15.
24988
24989         2006-05-01  Bruno Haible  <bruno@clisp.org>
24990
24991                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
24992
24993         2006-07-22  Bruno Haible  <bruno@clisp.org>
24994
24995                 * modules/javaversion: New file.
24996                 * MODULES.html.sh (Java): Add javaversion.
24997
24998         2006-03-12  Bruno Haible  <bruno@clisp.org>
24999
25000                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
25001
25002         2005-12-04  Bruno Haible  <bruno@clisp.org>
25003
25004                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
25005                 (untested).
25006
25007         2006-06-21  Bruno Haible  <bruno@clisp.org>
25008
25009                 Avoid warnings from recent versions of mcs.
25010                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
25011                 -o, -L, -r any more. Use options documented since mcs-1.0
25012                 instead. Similarly for -g.
25013
25014         2005-12-04  Bruno Haible  <bruno@clisp.org>
25015
25016                 * build-aux/csharpcomp.sh.in: Suffix for resources is
25017                 .resources, not .resource.
25018
25019         2005-07-09  Bruno Haible  <bruno@clisp.org>
25020
25021                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
25022                 add a .dll suffix.
25023                 Reported by Mark Junker <mjscod@gmx.de>.
25024
25025         2006-07-22  Bruno Haible  <bruno@clisp.org>
25026
25027                 * modules/gettext: Upgrade to gettext-0.15.
25028                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
25029                 m4/visibility.m4.
25030                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
25031
25032 2006-07-22  Bruno Haible  <bruno@clisp.org>
25033
25034         Merge from GNU gettext 0.15.
25035
25036         2006-03-25  Bruno Haible  <bruno@clisp.org>
25037
25038                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
25039
25040         2006-07-21  Bruno Haible  <bruno@clisp.org>
25041
25042                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
25043                 "1.1".
25044
25045         2006-05-09  Bruno Haible  <bruno@clisp.org>
25046
25047                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
25048                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
25049                 for the conftestver execution.
25050
25051         2006-05-01  Bruno Haible  <bruno@clisp.org>
25052
25053                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
25054                 optional target-version argument. Verify that the compiler
25055                 groks source of the specified source-version, or add -source
25056                 option as necessary. Verify that the compiler produces
25057                 bytecode in the specified target-version, or add -target and
25058                 -source options as necessary. Make the result of the test
25059                 available as variable CONF_JAVAC. Also log error output in
25060                 config.log.
25061
25062         2006-03-11  Bruno Haible  <bruno@clisp.org>
25063
25064                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
25065
25066         2006-05-09  Bruno Haible  <bruno@clisp.org>
25067
25068                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
25069                 CLASSPATH_SEPARATOR to a semicolon.
25070
25071         2006-03-12  Bruno Haible  <bruno@clisp.org>
25072
25073                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
25074                 available as variable CONF_JAVA, for subsequent autoconf
25075                 tests. Also log error output in config.log.
25076
25077         2006-07-19  Bruno Haible  <bruno@clisp.org>
25078
25079                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
25080                 that getline works on glibc2 systems. Needed to avoid trouble
25081                 in relocatable.c.
25082                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
25083
25084         2005-12-04  Bruno Haible  <bruno@clisp.org>
25085
25086                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
25087                 launcher (untested).
25088
25089         2005-12-04  Bruno Haible  <bruno@clisp.org>
25090
25091                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
25092
25093         2006-07-22  Bruno Haible  <bruno@clisp.org>
25094
25095                 * gettext.m4: Update from GNU gettext-0.15.
25096                 * nls.m4: Likewise.
25097                 * po.m4: Likewise.
25098                 * inttypes-pri.m4: Likewise.
25099                 * inttypes-h.m4: Renamed from inttypes.m4.
25100                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
25101
25102 2006-07-22  Bruno Haible  <bruno@clisp.org>
25103
25104         Merge from GNU gettext 0.15.
25105
25106         2005-07-05  Bruno Haible  <bruno@clisp.org>
25107
25108                 * printf-args.c (printf_fetchargs): Work around broken
25109                 definition of wint_t on mingw.
25110
25111         2005-02-12  Bruno Haible  <bruno@clisp.org>
25112
25113                 * xallocsa.h: Add extern "C" for C++.
25114
25115         2006-05-17  Bruno Haible  <bruno@clisp.org>
25116
25117                 Cygwin portability.
25118                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
25119
25120         2006-04-30  Bruno Haible  <bruno@clisp.org>
25121
25122                 * progreloc.c: Include <mach-o/dyld.h> if available.
25123                 (find_executable): Use _NSGetExecutablePath when possible.
25124
25125         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
25126
25127                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
25128                 function.
25129
25130         2005-12-29  Bruno Haible  <bruno@clisp.org>
25131
25132                 * progreloc.c (set_program_name_and_installdir): Fix
25133                 compilation error.
25134
25135         2005-12-04  Bruno Haible  <bruno@clisp.org>
25136
25137                 Cygwin portability.
25138                 * progreloc.c: Include <windows.h> also on Cygwin.
25139                 (find_executable): Add support for Cygwin.
25140                 (set_program_name_and_installdir): Handle also platforms with
25141                 nonempty EXEEXT.
25142
25143         2006-07-11  Bruno Haible  <bruno@clisp.org>
25144
25145                 * javacomp.c: Fix a comment.
25146                 Reported by Jim Meyering.
25147
25148         2006-04-30  Bruno Haible  <bruno@clisp.org>
25149
25150                 * javacomp.h (compile_java_class): Add source_version,
25151                 target_version arguments.
25152                 * javacomp.c: Rewritten to choose only a compiler that
25153                 respects the specified source_version and target_version.
25154
25155         2006-06-27  Bruno Haible  <bruno@clisp.org>
25156
25157                 Assume correct S_ISDIR macro.
25158                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
25159
25160         2006-07-22  Bruno Haible  <bruno@clisp.org>
25161
25162                 * javaversion.h: New file, from GNU gettext.
25163                 * javaversion.c: New file, from GNU gettext.
25164                 * javaversion.java: New file, from GNU gettext.
25165                 * javaversion.class: New file, from GNU gettext.
25166
25167         2006-05-17  Bruno Haible  <bruno@clisp.org>
25168
25169                 Cygwin portability.
25170                 * javaexec.c (execute_java_class): Test for jview program
25171                 also on Cygwin.
25172
25173         2006-04-09  Bruno Haible  <bruno@clisp.org>
25174
25175                 * fatal-signal.c: Don't include string.h.
25176                 (at_fatal_signal): Use a copying loop instead of memcpy.
25177
25178         2005-12-04  Bruno Haible  <bruno@clisp.org>
25179
25180                 * csharpexec.c: Add support for 'clix' launcher (untested).
25181                 (execute_csharp_using_sscli): New function.
25182                 (execute_csharp_program): Call it.
25183
25184         2006-06-21  Bruno Haible  <bruno@clisp.org>
25185
25186                 Avoid warnings from recent versions of mcs.
25187                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
25188                 -o, -L, -r any more. Use options documented since mcs-1.0
25189                 instead. Similarly for -g.
25190
25191         2005-07-09  Bruno Haible  <bruno@clisp.org>
25192
25193                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
25194                 add a .dll suffix.
25195                 Reported by Mark Junker <mjscod@gmx.de>.
25196
25197         2006-06-17  Bruno Haible  <bruno@clisp.org>
25198
25199                 * config.charset: Update for NetBSD 3.0.
25200
25201         2006-05-17  Bruno Haible  <bruno@clisp.org>
25202
25203                 Cygwin portability.
25204                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
25205
25206         2006-05-16  Bruno Haible  <bruno@clisp.org>
25207
25208                 * localcharset.c [CYGWIN]: Include <windows.h>.
25209                 (get_charset_aliases): For Cygwin, return the same CPxxx
25210                 aliases list as under WIN32.
25211                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
25212                 the environment variables. Fall back to GetACP().
25213
25214         2006-04-05  Bruno Haible  <bruno@clisp.org>
25215
25216                 * config.charset: Update Juan Manuel Guerrero's address.
25217
25218         2005-02-12  Bruno Haible  <bruno@clisp.org>
25219
25220                 * allocsa.h: Add extern "C" for C++.
25221
25222         2005-02-10  Bruno Haible  <bruno@clisp.org>
25223
25224                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
25225                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
25226
25227         2006-07-22  Bruno Haible  <bruno@clisp.org>
25228
25229                 * gettext.h: Update to GNU gettext-0.15.
25230
25231 2006-07-22  Bruno Haible  <bruno@clisp.org>
25232
25233         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
25234         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
25235         lib-prefix.m4, longdouble.m4, ssize_t.m4.
25236
25237 2006-07-21  Eric Blake  <ebb9@byu.net>
25238
25239         * modules/stdlib-safer: New file.
25240         * MODULES.html.sh (File stream based Input/Output): Add
25241         stdlib-safer.
25242
25243 2006-07-21  Eric Blake  <ebb9@byu.net>
25244
25245         * lib/stdlib-safer.h: New file from coreutils, required by
25246         stdlib--.h.
25247
25248 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
25249
25250         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
25251
25252 2006-07-20  Bruno Haible  <bruno@clisp.org>
25253
25254         * gnulib-tool: Recognize new option --assume-autoconf.
25255         (autoconf_minversion): New variable.
25256         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
25257
25258 2006-07-20  Bruno Haible  <bruno@clisp.org>
25259
25260         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
25261
25262 2006-07-19  Derek R. Price  <derek@ximbiot.com>
25263
25264         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
25265         Reindent and repaginate.
25266
25267 2006-07-19  Derek Price  <derek@ximbiot.com>
25268
25269         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
25270         Correct grammar.
25271
25272 2006-07-17  Bruno Haible  <bruno@clisp.org>
25273
25274         * modules/list: New file.
25275         * modules/array-list: New file.
25276         * modules/carray-list, modules/carray-list-tests: New files.
25277         * modules/linked-list, modules/linked-list-tests: New files.
25278         * modules/avltree-list, modules/avltree-list-tests: New files.
25279         * modules/rbtree-list, modules/rbtree-list-tests: New files.
25280         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
25281         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
25282         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
25283         * modules/oset: New file.
25284         * modules/array-oset: New file.
25285         * modules/avltree-oset, modules/avltree-oset-tests: New files.
25286         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
25287         * tests/test-carray_list.c: New file.
25288         * tests/test-linked_list.c: New file.
25289         * tests/test-avltree_list.c: New file.
25290         * tests/test-rbtree_list.c: New file.
25291         * tests/test-linkedhash_list.c: New file.
25292         * tests/test-avltreehash_list.c: New file.
25293         * tests/test-rbtreehash_list.c: New file.
25294         * tests/test-avltree_oset.c: New file.
25295         * tests/test-rbtree_oset.c: New file.
25296         * MODULES.html.sh (Container data structures): New section.
25297
25298 2006-07-17  Bruno Haible  <bruno@clisp.org>
25299
25300         * m4/gl_list.m4: New file.
25301
25302 2006-07-17  Bruno Haible  <bruno@clisp.org>
25303
25304         * lib/gl_list.h: New file.
25305         * lib/gl_list.c: New file.
25306         * lib/gl_array_list.h: New file.
25307         * lib/gl_array_list.c: New file.
25308         * lib/gl_carray_list.h: New file.
25309         * lib/gl_carray_list.c: New file.
25310         * lib/gl_linked_list.h: New file.
25311         * lib/gl_linked_list.c: New file.
25312         * lib/gl_anylinked_list1.h: New file.
25313         * lib/gl_anylinked_list2.h: New file.
25314         * lib/gl_avltree_list.h: New file.
25315         * lib/gl_avltree_list.c: New file.
25316         * lib/gl_anyavltree_list1.h: New file.
25317         * lib/gl_anyavltree_list2.h: New file.
25318         * lib/gl_rbtree_list.h: New file.
25319         * lib/gl_rbtree_list.c: New file.
25320         * lib/gl_anyrbtree_list1.h: New file.
25321         * lib/gl_anyrbtree_list2.h: New file.
25322         * lib/gl_anytree_list1.h: New file.
25323         * lib/gl_anytree_list2.h: New file.
25324         * lib/gl_linkedhash_list.h: New file.
25325         * lib/gl_linkedhash_list.c: New file.
25326         * lib/gl_anyhash_list1.h: New file.
25327         * lib/gl_anyhash_list2.h: New file.
25328         * lib/gl_avltreehash_list.h: New file.
25329         * lib/gl_avltreehash_list.c: New file.
25330         * lib/gl_rbtreehash_list.h: New file.
25331         * lib/gl_rbtreehash_list.c: New file.
25332         * lib/gl_anytreehash_list1.h: New file.
25333         * lib/gl_anytreehash_list2.h: New file.
25334
25335         * lib/gl_oset.h: New file.
25336         * lib/gl_oset.c: New file.
25337         * lib/gl_array_oset.h: New file.
25338         * lib/gl_array_oset.c: New file.
25339         * lib/gl_avltree_oset.h: New file.
25340         * lib/gl_avltree_oset.c: New file.
25341         * lib/gl_rbtree_oset.h: New file.
25342         * lib/gl_rbtree_oset.c: New file.
25343         * lib/gl_anytree_oset.h: New file.
25344
25345 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25346
25347         * m4/mkancesdirs.m4: New file.
25348         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
25349         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
25350         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
25351         it.
25352
25353 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25354
25355         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
25356         * lib/mkancesdirs.h: New files.
25357         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
25358         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
25359         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
25360         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
25361         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
25362         callers changed.  Revamp internals significantly, by not
25363         attempting to create directories that are temporarily more
25364         permissive than the final results.  Do not attempt to use
25365         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
25366         This removes some race conditions, fixes some bugs, and simplifies
25367         things.  Use new dirchownmod function to do owner and mode changes.
25368         * lib/mkdir-p.h: Likewise.
25369         * lib/modechange.c (octal_to_mode): New function.
25370         (struct mode_change): New member mentioned.
25371         (make_node_op_equals): New arg mentioned.  All callers changed.
25372         (mode_compile): Keep track of which mode bits the user has explicitly
25373         mentioned.
25374         (mode_adjust): New arg DIR, so that we implement the X op correctly.
25375         New arg PMODE_BITS, to keep track of which mode bits the user
25376         mentioned; it treats S_ISUID and S_ISGID speciall.
25377         All callers changed.
25378         * lib/modechange.h: Likewise.
25379
25380 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25381
25382         * MODULES.html.sh: Add mkancestors.
25383         * modules/mkancesdirs: New module.
25384         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
25385         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
25386         The chdir-safer and afs files are now orphans; I'll remove them
25387         unless someone speaks up.
25388         Add lib/dirchownmod.c, lib/dirchownmod.h.
25389         (Depends-on): Remove alloca, chown, save-cwd, dirname.
25390         Add lchown, mkancesdirs.
25391         (Maintainer): Add self.
25392
25393 2006-07-15  Karl Berry  <karl@gnu.org>
25394
25395         * gnulib-tool: help message wording/arrangement.
25396
25397 2006-07-14  Simon Josefsson  <jas@extundo.com>
25398
25399         * doc/gnulib.texi (Libtool and Windows): New section.
25400
25401 2006-07-12  Simon Josefsson  <jas@extundo.com>
25402
25403         * modules/gendocs (License): Fix license, approved by Karl.
25404
25405 2006-07-12  Eric Blake  <ebb9@byu.net>
25406
25407         * MODULES.html.sh: Add gendocs.
25408
25409 2006-07-11  Eric Blake  <ebb9@byu.net>
25410
25411         * modules/fdl: New module, to install doc/fdl.texi.
25412         * MODULES.html.sh: Add new section for documentation modules.
25413         * gnulib-tool: Avoid space-tab.
25414         (--doc-base): New option, to manage files from doc.
25415
25416 2006-07-11  Eric Blake  <ebb9@byu.net>
25417
25418         * m4/absolute-header.m4: Fix comments to match recent change.
25419
25420 2006-07-11  Eric Blake  <ebb9@byu.net>
25421
25422         * gnulib-tool: List --doc-base before --tests-base.
25423
25424 2006-07-11  Derek R. Price  <derek@ximbiot.com>
25425
25426         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
25427
25428 2006-07-11  Bruno Haible  <bruno@clisp.org>
25429
25430         * README: Mention where to put documentation.
25431
25432 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25433
25434         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
25435
25436 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25437
25438         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
25439         to stdint.m4.
25440
25441 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
25442
25443         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
25444         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
25445         "no/such/file/stdint.h" when there is no such file, so that
25446         the resulting C code can be parsed by dodgy compilers.
25447         Problems reported by Bob Proulx.
25448
25449 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25450
25451         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
25452         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25453         macros into the GNU _D_EXACT_NAMLEN.
25454         * lib/savedir.c:  Likewise.
25455         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
25456
25457 2006-07-10  Derek R. Price  <derek@ximbiot.com>
25458         and Paul Eggert  <eggert@cs.ucla.edu>
25459
25460         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
25461         * m4/savedir.m4:
25462         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
25463         macros into the GNU _D_EXACT_NAMLEN.
25464
25465 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25466
25467         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
25468         around the absolute name, to work around a problem with the HP-UX
25469         11.23 native C compiler, reported by Bob Proulx.
25470
25471 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25472
25473         * doc/maintain.texi, make-stds.texi: Sync from
25474         <http://savannah.gnu.org/projects/gnustandards>.
25475
25476 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25477
25478         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
25479
25480 2006-07-09  Jim Meyering  <jim@meyering.net>
25481
25482         * m4/glob.m4: Remove a doubled word in a comment.
25483
25484 2006-07-09  Jim Meyering  <jim@meyering.net>
25485
25486         * lib/argp-pv.c: Remove a doubled word in a comment.
25487         * lib/check-version.c (check_version): Likewise.
25488         * lib/javacomp.c (compile_java_class): Likewise.
25489
25490 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25491
25492         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
25493         for the benefit of people using Autoconf 2.60.  If you want to
25494         support older Autoconf versions you can copy m4/onceonly_2_57.m4
25495         (or m4/onceonly.m4, if pre-2.57) manually.
25496
25497 2006-07-08  Jim Meyering  <jim@meyering.net>
25498
25499         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
25500         comment.
25501         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
25502         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
25503         comment.
25504
25505 2006-07-08  Jim Meyering  <jim@meyering.net>
25506
25507         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
25508
25509 2006-07-07  Simon Josefsson  <jas@extundo.com>
25510
25511         * tests/test-crc.c: Change expected crc value, the test vector
25512         were probably computed using the old broken crc.c?
25513
25514 2006-07-06  Simon Josefsson  <jas@extundo.com>
25515
25516         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
25517         now the canonical place for the M4 file).
25518
25519         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
25520         from the sys_socket dependency now.
25521
25522         * modules/inet_pton (Files): Ditto.
25523
25524         * modules/inet_ntop (Files): Ditto.
25525
25526 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25527
25528         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
25529         not gl_PREREQ_GETUSERSHELL.
25530
25531 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25532
25533         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
25534         with only one argument, for Autoconf 2.60.
25535         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
25536         expand to nothing, so add a shell command to avoid syntax error.
25537         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25538
25539 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25540
25541         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
25542
25543 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25544
25545         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
25546         no longer needed.  Check for isblank decl.
25547         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
25548         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
25549         of existence.
25550
25551 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25552
25553         * lib/getloadavg.c: Use __VMS, not VMS.
25554         * lib/getopt.c: Likewise.
25555         * lib/getpagesize.h: Likewise.
25556         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
25557         and probably does not work.
25558
25559 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25560
25561         * lib/.cppi-disable: Add wcwidth.
25562         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
25563         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
25564         (ISGRAPH): Remove.  All uses changed to isgraph.
25565         (FOLD) [!defined _LIBC]: Remove special case.
25566         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
25567         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
25568         HAVE_ISBLANK.
25569         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
25570         case.
25571
25572 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
25573
25574         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
25575         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
25576         brackets.  Other minor changes to suppress some compiler
25577         warnings.
25578
25579 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25580         and Paul Eggert  <eggert@cs.ucla.edu>
25581
25582         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
25583         of invoking obsolescent AC_HEADER_DIRENT macro.
25584         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25585         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
25586         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25587         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25588         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
25589         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25590         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
25591         * m4/readdir.m4: Remove; no longer needed.
25592
25593 2006-07-06  Derek R. Price  <derek@ximbiot.com>
25594         and Paul Eggert  <eggert@cs.ucla.edu>
25595
25596         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
25597         Don't worry about this obsolete case any more.
25598         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
25599         directories.
25600         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
25601         worry about this obsolete case any more.
25602         * lib/fts.c: Likewise.
25603         * lib/getcwd.c: Likewise.
25604         * lib/glob.h: Likewise.
25605         * lib/savedir.c: Likewise.
25606
25607 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25608
25609         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
25610         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
25611         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
25612         needed.
25613         All uses removed.
25614         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25615         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25616         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
25617         needed.
25618         * m4/getdate.m4 (gl_GETDATE): Likewise.
25619         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25620         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25621         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25622         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25623         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
25624         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25625         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
25626         needed.
25627
25628 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25629
25630         * lib/memcasecmp.c: Include <limits.h>.
25631         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
25632         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
25633         Don't assume isdigit succeeds only on '0' through '9'.
25634
25635 2006-07-05  Eric Blake  <ebb9@byu.net>
25636
25637         * modules/getaddrinfo (Depends-on): Add snprintf.
25638
25639 2006-07-05  Eric Blake  <ebb9@byu.net>
25640
25641         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
25642         to avoid 'header present but could not be compiled' on cygwin.
25643
25644 2006-07-05  Eric Blake  <ebb9@byu.net>
25645
25646         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
25647         missing from netdb.h.
25648         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
25649
25650 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25651
25652         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
25653         no longer needed.
25654         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
25655         * m4/getdate.m4 (gl_GETDATE): Likewise.
25656         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
25657         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
25658         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25659         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
25660         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25661
25662 2006-07-05  Derek R. Price  <derek@ximbiot.com>
25663
25664         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
25665         All uses of is_space replaced by isspace.
25666         * lib/exit.h: Don't talk about STDC_HEADERS.
25667         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
25668         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
25669         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
25670         replaced by isprint etc.
25671         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
25672         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25673         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
25674         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
25675         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
25676         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
25677
25678 2006-07-05  Bruno Haible  <bruno@clisp.org>
25679
25680         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
25681         the function exists, before testing against AIX.
25682         Reported by Martin Lambers <marlam@marlam.de>.
25683
25684 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25685
25686         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
25687         From Mark D. Baushke.
25688
25689 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25690
25691         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
25692         to the absolute name, not just one, to bypass Sun C 5.8's
25693         "warning: #include of /usr/include/... may be non-portable".
25694
25695 2006-07-04  Eric Blake  <ebb9@byu.net>
25696
25697         * modules/dirname-tests: New test module.
25698         * tests/test-dirname.c: New file, replacing dirname.c
25699         TEST_DIRNAME section that was recently deleted.
25700
25701 2006-07-04  Bruno Haible  <bruno@clisp.org>
25702
25703         Assume ANSI C header files and <ctype.h> functions.
25704         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
25705         (mbsnwidth): Use isprint, iscntrl instead.
25706
25707 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25708
25709         Merge from coreutils.
25710         * MODULES.html.sh: Add xstrtold.
25711         * modules/xstrtold: New file.
25712         * modules/cycle-check (Files): Add lib/same-inode.h.
25713         * modules/dirname (Files): Add m4/double-slash-root.m4.
25714         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
25715         * modules/mkdir-p (Files): Add lib/same-inode.h.
25716         * modules/same (Files): Add lib/same-inode.h.
25717
25718 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25719
25720         * m4/absolute-header.m4: Renamed from full-header-path.m4.
25721         This is to keep the terminology clean; POSIX talks about
25722         "absolute pathnames", not "full pathnames", but the GNU
25723         Coding Standards say to use "path" for something else;
25724         so use "absolute" to keep both sides happy.
25725         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
25726         Set gl_absolute_header, not gl_full_header_path.
25727         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
25728         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
25729         All uses changed.
25730
25731         Merge from coreutils.
25732
25733         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25734
25735         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
25736         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
25737         want to require the building of c-strtod.o.
25738         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
25739         needs -lm directly.
25740         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
25741
25742         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
25743
25744         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
25745         --as-needed option if available.  Problem reported by Albert Chin in
25746         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
25747         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
25748         cc merely issues a bunch of annoying warnings for --as-needed
25749         (this problem was reported by Bob Proulx).  Also, try linking with
25750         -lm to detect a bug in binutils 2.16 (this problem was reported
25751         by Ralf Wildenhues).
25752
25753         2006-06-18  Jim Meyering  <jim@meyering.net>
25754
25755         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
25756         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
25757         macro.
25758         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
25759         also check for glibc-2.4's abort-inducing bug.
25760
25761         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
25762         Low-probability clean-up should be to use rmdir to get rid of
25763         the just-created directory, not unlink.
25764
25765         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
25766         configure fail, and request a bug report to inform us about it.
25767         Add a comment that, barring reports to the contrary, in 2007 we'll
25768         assume ftruncate is universally available.
25769
25770         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25771
25772         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
25773
25774         2006-03-12  Jim Meyering  <jim@meyering.net>
25775
25776         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
25777         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
25778         * m4/same.m4 (gl_SAME): Likewise.
25779         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
25780
25781         2006-03-11  Eric Blake  <ebb9@byu.net>
25782
25783         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
25784         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
25785         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
25786         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
25787
25788 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25789
25790         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
25791         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
25792         reported by Mark D. Baushke, one in
25793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
25794
25795         Merge from coreutils.
25796
25797         * lib/.cppi-disable: Add stdint_.h.
25798         * lib/.cvsignore: Add stdint.h.
25799
25800         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25801
25802         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
25803         both double and long double versions.
25804         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
25805         * lib/xstrtold.c: New file.
25806         * lib/xstrtod.h (xstrtold): New decl.
25807
25808         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
25809
25810         * lib/filemode.c (setst): Remove.
25811         (strmode): Rewrite to avoid setst.  This makes the code shorter,
25812         (arguably) clearer, and the generated code is a bit smaller on my
25813         Debian GNU/Linux stable x86 host.
25814
25815         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25816
25817         * lib/filemode.c: Include "filemode.h" first, to test the interface.
25818         Assume that filemode.h includes sys/types.h and sys/stat.h.
25819         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
25820         (ftypelet): Reorder to put common cases first, for efficiency.
25821         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
25822         to do 'M'.
25823         (strmode): Renamed from mode_string, and now stores 12 bytes instead
25824         of 10, for compatibility with FreeBSD.  All callers changed.
25825         (filemodestring): Now stores 12 bytes instead of 10, and sets file
25826         types that can't be deduced solely from st_mode.  First arg is now a
25827         const pointer.
25828         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
25829         (strmode): Renamed from mode_string.
25830         (filemodestring): New decl.
25831         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
25832         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
25833         needed.
25834         (S_ISPORT, S_ISWHT): New macros, if not already defined.
25835
25836         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
25837
25838         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
25839         fsusage.h now does that.  Include fsusage.h first, to test interface.
25840         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
25841         at most one method (the old code could have generated decls that
25842         didn't conform to C89, not that this was ever exercised).
25843         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
25844
25845         2006-03-19  Jim Meyering  <jim@meyering.net>
25846
25847         Work even in a chroot where d_ino values for entries in "/"
25848         don't match the stat.st_ino values for the same names.
25849         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
25850         number, iterate through all entries again, using lstat instead.
25851         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
25852         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
25853
25854         * lib/getcwd.c (__getcwd): Clarify a comment.
25855         Use memcpy in place of a call to strcpy.
25856
25857         2006-03-12  Jim Meyering  <jim@meyering.net>
25858
25859         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
25860         matches that of the current directory (which we're about to chdir ".."
25861         out of), then save the dev-ino of the parent, instead.
25862
25863         * lib/same-inode.h (SAME_INODE): New file/macro.
25864         * lib/chdir-safer.c (SAME_INODE): Remove definition.
25865         Include "same-inode.h", instead.
25866         * lib/same.c: Likewise.
25867         * lib/cycle-check.h: Include "same-inode.h".
25868         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
25869         * lib/cycle-check.c (SAME_INODE): Remove definition.
25870         * lib/root-dev-ino.h: Include "same-inode.h".
25871
25872         2006-03-11  Eric Blake  <ebb9@byu.net>
25873
25874         * lib/same.c (same_name): s/base_name/last_component/
25875         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
25876         * lib/filenamecat.c (file_name_concat): Likewise.
25877
25878         2006-03-11  Eric Blake  <ebb9@byu.net>,
25879                     Paul Eggert  <eggert@cs.ucla.edu>
25880
25881         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
25882         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
25883         drive prefix.
25884         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
25885         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
25886         (last_component): New method.
25887         * lib/dirname.c (dir_len): Determine when drive letters need a
25888         subsequent slash.  Preserve // when it is special.
25889         (dir_name): Don't append dot when drive letter is absolute.
25890         [TEST_DIRNAME]: Move into a full-blown gnulib test.
25891         * lib/basename.c (base_name): New semantics - malloc the result.
25892         Preserve // when it is special.  Preserve relative files that look
25893         like drive letters.
25894         (base_len): Preserve // when it is special.
25895         (last_component): New method, similar to old base_name semantics.
25896         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
25897         base_name.  Strip redundant slashes from ///.
25898
25899 2006-07-03  Jim Meyering  <jim@meyering.net>
25900
25901         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
25902         macro is used before the first cycle_check call.
25903
25904 2006-07-03  Eric Blake  <ebb9@byu.net>
25905
25906         * modules/dirname (Depends-on): Add xstrndup.
25907
25908 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25909
25910         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
25911         test cases, so that config.log is a bit easier to follow.
25912
25913 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25914
25915         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
25916         both are 64 bits, since this seems to be the tradition, and this
25917         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
25918         we ever run into a host that prefers long long to long in this
25919         case, we'll need another configure-time test.  Problem reported by
25920         Jim Meyering.
25921
25922 2006-07-02  Eric Blake  <ebb9@byu.net>
25923
25924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
25925
25926 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25927
25928         * modules/inttypes (Depends-on): No longer depends on stdint.
25929         * modules/stdint (Description): Say more about assumptions.
25930         Say that the fast types might differ.  Say macros are used.
25931         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
25932         (Makefile.am): Revise list of substituted symbols to match
25933         new stdint.m4.
25934         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
25935         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
25936         * tests/test-stdint.c (verify_same_types)
25937         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
25938         the code conforms to C99/C89.
25939         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
25940         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
25941
25942 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25943
25944         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
25945         but fix a bug, by requiring at least 64 bits.
25946         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
25947         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
25948         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
25949         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
25950
25951         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
25952         changes.  Make 2.59 a prerequisite.  Check and substitute for
25953         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
25954         inttypes.h.  Do not use special include files; just use the
25955         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
25956         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
25957         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
25958         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
25959         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
25960         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
25961         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
25962         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
25963         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
25964         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
25965         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
25966         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
25967         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
25968         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
25969         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
25970         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
25971         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
25972         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
25973         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
25974         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
25975         WINT_MAX.  Check for C99 conformance more strictly, by detecting
25976         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
25977         not check for things that C99 does not require, e.g., int8_t.  If
25978         a test isn't needed unless <stdint.h> isn't working, and is
25979         unlikely to be needed for any other reason, then don't do it
25980         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
25981         size_t, since we assume C89 freestanding at least.  Do not check
25982         for sig_atomic_t, wchar_t, or wint_t, since the code now does
25983         the right thing even if the types are not defined.  Instead use:
25984         (gl_STDINT_TYPE_PROPERTIES): New macro.
25985         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
25986         testing whether <sys/types.h> clashes, as Autoconf does this for
25987         us now.  All uses removed.
25988         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
25989         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
25990         (gl_CHECK_TYPE_SAME):
25991         Remove; no longer needed.
25992         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
25993         exists, since we'll return 0 anyway in that case.
25994         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
25995
25996 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25997
25998         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
25999         possible collision with system files.
26000         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
26001         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
26002         WCHAR_MIN and WCHAR_MAX in this case.
26003         (<stddef.h>): Do not include; no longer needed.
26004         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
26005         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
26006         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
26007         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
26008         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
26009         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
26010         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
26011         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
26012         !defined(__c99))]: Include in this case too, since it's harmless
26013         now.
26014         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
26015         dangerous to do so.
26016         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
26017         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
26018         (_STDINT_MIN, _STDINT_MAX): New macros.
26019         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
26020         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
26021         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
26022         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
26023         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
26024         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
26025         macros, not typedefs; this simplifies things quite a bit.
26026         Use long int for all types narrower than int64_t.
26027         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
26028         Define in terms of long long int or int64_t or long int,
26029         not int64_t or int32_t.  This saves some compile-time testing.
26030         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
26031         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
26032         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
26033         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
26034         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
26035         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
26036         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
26037         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
26038         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
26039         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
26040         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26041         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26042         undef any previous version and define our own version, for
26043         simplicity and consistency with the new macros for types.
26044         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26045         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26046         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
26047         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
26048         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
26049         @WINT_T_SUFFIX@ to keep things simple here.
26050         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
26051         Simplify by assuming typical 8/16/32/64 host, since we're
26052         already doing that elsewhere anyway.
26053         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
26054         and assume long long int is 64 bits if available.  This
26055         speeds up 'configure'.
26056
26057 2006-07-01  Eric Blake  <ebb9@byu.net>
26058
26059         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
26060         Reported by Andreas Buening.
26061
26062 2006-07-01  Eric Blake  <ebb9@byu.net>
26063
26064         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
26065
26066 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
26067
26068         * lib/getaddrinfo.c: fixed typo
26069
26070 2006-06-29  Jim Meyering  <jim@meyering.net>
26071
26072         * modules/strftime (Maintainer): Add my name, since with the
26073         FPRINTFTIME changes strftime.c has forked from glibc.
26074
26075 2006-06-29  Eric Blake  <ebb9@byu.net>
26076
26077         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
26078
26079 2006-06-29  Eric Blake  <ebb9@byu.net>
26080
26081         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
26082
26083 2006-06-29  Eric Blake  <ebb9@byu.net>
26084
26085         * lib/stat_.h: New file.
26086
26087 2006-06-29  Eric Blake  <ebb9@byu.net>
26088
26089         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
26090         unused static function.
26091
26092 2006-06-29  Eric Blake  <ebb9@byu.net>
26093
26094         * doc/functions.texi (Function Portability): Document missing lstat
26095         on mingw.
26096
26097 2006-06-29  Eric Blake  <ebb9@byu.net>
26098
26099         * MODULES.html.sh: Add sys_stat.
26100         * modules/sys_stat: New module.
26101         * modules/mkstemp (Depends-on): Add sys_stat.
26102
26103 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26104
26105         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
26106
26107 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26108
26109         * m4/c-bs-a.m4: Removed.
26110
26111 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26112
26113         * lib/strftime.c: Assume strftime() exists.
26114
26115 2006-06-29  Derek Price  <derek@ximbiot.com>
26116
26117         * modules/c-bs-a: Removed - \a is C89.
26118         * MODULES.html.sh: Remove c-bs-a.
26119
26120 2006-06-29  Bruno Haible  <bruno@clisp.org>
26121
26122         * modules/wcwidth (License): Change to LGPL.
26123
26124 2006-06-28  Simon Josefsson  <jas@extundo.com>
26125
26126         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
26127         on _WIN32.
26128
26129         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
26130         getnameinfo.
26131
26132 2006-06-28  Simon Josefsson  <jas@extundo.com>
26133
26134         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
26135
26136 2006-06-28  Simon Josefsson  <jas@extundo.com>
26137
26138         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
26139         functions there.  It will succeed on Windows XP, but on Windows
26140         2000 and (presumably) earlier, it will fail, and use the internal
26141         re-implementation.
26142         (use_win32_p): New function.
26143         (getaddrinfo): Use strtoul on servname, to support numeric ports.
26144         Support AI_NUMERICSERV to disable getservbyname.
26145         (getnameinfo): New function, only supports
26146         NI_NUMERICHOST|NI_NUMERICSERV for now.
26147
26148         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
26149         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
26150         getnameinfo.
26151
26152 2006-06-28  Eric Blake  <ebb9@byu.net>
26153
26154         * modules/wcwidth: New file.
26155         * modules/mbchar (Depends-on): Add wcwidth.
26156         * modules/mbswidth (Depends-on): Add wcwidth.
26157         * MODULES.html.sh: Add wcwidth.
26158
26159 2006-06-28  Eric Blake  <ebb9@byu.net>
26160
26161         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
26162         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
26163
26164 2006-06-28  Eric Blake  <ebb9@byu.net>
26165
26166         * lib/xvasprintf.h: Fix comments.
26167
26168 2006-06-28  Eric Blake  <ebb9@byu.net>
26169
26170         * lib/mbchar.h (wcwidth): Include wcwidth.h.
26171         * lib/mbswidth.c (wcwidth): Move from here...
26172         * lib/wcwidth.h: ...to this new file.
26173
26174 2006-06-28  Derek R. Price  <derek@ximbiot.com>
26175
26176         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
26177
26178         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
26179         it's obsolete.
26180         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
26181
26182 2006-06-28  Derek R. Price  <derek@ximbiot.com>
26183
26184         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
26185         Autoconf 2.60 says this stuff was obsolete.
26186
26187 2006-06-28  Bruno Haible  <bruno@clisp.org>
26188
26189         * modules/wcwidth (Files): Add m4/wchar_t.m4.
26190
26191 2006-06-28  Bruno Haible  <bruno@clisp.org>
26192
26193         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
26194         gt_TYPE_WCHAR_T.
26195
26196 2006-06-28  Bruno Haible  <bruno@clisp.org>
26197
26198         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
26199         declaration for wcwidth.
26200         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
26201
26202 2006-06-28  Bruno Haible  <bruno@clisp.org>
26203
26204         * lib/mkdtemp.c [MINGW]: Include <io.h>.
26205         (mkdir): Define using _mkdir.
26206
26207 2006-06-28  Bruno Haible  <bruno@clisp.org>
26208
26209         * lib/getaddrinfo.h: Fix POSIX URL.
26210         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
26211         _WIN32.
26212         (use_win32_p): Make static.
26213         (getaddrinfo): Reject service name if it is empty or does not consist
26214         solely of decimal digits, or if its value is > 65535.
26215         (getnameinfo): Remove useless casts.
26216
26217 2006-06-27  Simon Josefsson  <jas@extundo.com>
26218
26219         * modules/sys_select: New file, suggested by Bruno Haible, Paul
26220         Eggert and Martin Lambers.
26221
26222 2006-06-27  Simon Josefsson  <jas@extundo.com>
26223
26224         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
26225         Eggert and Martin Lambers.
26226
26227 2006-06-27  Bruno Haible  <bruno@clisp.org>
26228
26229         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
26230         result to 0, not to empty.
26231         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
26232
26233 2006-06-27  Bruno Haible  <bruno@clisp.org>
26234
26235         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
26236
26237 2006-06-26  Simon Josefsson  <jas@extundo.com>
26238
26239         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
26240         present.
26241
26242 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
26243
26244         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
26245         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
26246         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
26247
26248 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
26249
26250         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
26251
26252 2006-06-26  Bruno Haible  <bruno@clisp.org>
26253
26254         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
26255
26256 2006-06-26  Bruno Haible  <bruno@clisp.org>
26257
26258         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
26259
26260 2006-06-26  Bruno Haible  <bruno@clisp.org>
26261
26262         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
26263         SGI C compiler in pre-C99 mode.
26264         Suggested by Mark D. Baushke and Larry Jones.
26265
26266 2006-06-26  Bruno Haible  <bruno@clisp.org>
26267
26268         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
26269         WCHAR_MAX.
26270         Reported by Mark D. Baushke and Larry Jones.
26271
26272 2006-06-26  Bruno Haible  <bruno@clisp.org>
26273
26274         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
26275         in pre-C99 mode.
26276         Suggested by Mark D. Baushke and Larry Jones.
26277
26278 2006-06-23  Simon Josefsson  <jas@extundo.com>
26279             Bruno Haible  <bruno@clisp.org>
26280
26281         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
26282         Emit mostlyclean-local rule.
26283         (func_emit_tests_Makefile_am): Likewise.
26284         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
26285
26286 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
26287
26288         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
26289
26290 2006-06-23  Bruno Haible  <bruno@clisp.org>
26291
26292         * tests/test-stdint.c: Update to match ISO C 99 Technical
26293         Corrigendum 1.
26294
26295 2006-06-23  Bruno Haible  <bruno@clisp.org>
26296
26297         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
26298
26299 2006-06-23  Bruno Haible  <bruno@clisp.org>
26300
26301         * lib/stdint_.h: Treat IRIX like OpenBSD.
26302
26303 2006-06-23  Bruno Haible  <bruno@clisp.org>
26304
26305         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
26306         ISO C 99 Technical Corrigendum 1.
26307
26308 2006-06-22  Simon Josefsson  <jas@extundo.com>
26309
26310         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
26311         MinGW.
26312
26313 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26314
26315         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
26316         needed.  Some compiler complained about some of them.  Problem reported
26317         by Larry Jones in
26318         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
26319
26320 2006-06-21  Simon Josefsson  <jas@extundo.com>
26321
26322         * tests/test-getaddrinfo.c: New file.
26323
26324         * modules/getaddrinfo-tests: New file.
26325
26326         * MODULES.html.sh: Add inet_pton.
26327
26328         * modules/inet_pton: New file.
26329
26330 2006-06-21  Simon Josefsson  <jas@extundo.com>
26331
26332         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
26333         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
26334         of using the (limited) gnulib implementation on Windows XP.
26335
26336         * m4/inet_pton.m4: New file.
26337
26338 2006-06-21  Simon Josefsson  <jas@extundo.com>
26339
26340         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
26341         variable.
26342
26343         * lib/socket_.h: Don't define WINVER.
26344
26345         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
26346         slightly modified to work in gnulib.
26347
26348 2006-06-21  Simon Josefsson  <jas@extundo.com>
26349
26350         * doc/gnulib.texi (Windows sockets): Add.
26351
26352 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
26353
26354         * lib/read-file.c (fread_file): Start with buffer allocation of
26355         0 bytes rather than 1 byte; this simplifies the code.
26356         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
26357         code to free buffer and save/restore errno.
26358         (internal_read_file): Remove unused local.
26359
26360 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26361
26362         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
26363         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
26364         Problem reported by Denis Excoffier in
26365         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
26366
26367 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26368
26369         * modules/sys_socket, modules/socklen: Include sys/types since
26370         FreeBSD 4.x's sys/socket.h needs it.
26371
26372 2006-06-19  Simon Josefsson  <jas@extundo.com>
26373
26374         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
26375
26376 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
26377
26378         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
26379
26380 2006-06-19  Bruno Haible  <bruno@clisp.org>
26381
26382         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
26383         and FULL_PATH_INTTYPES_H in angle brackets.
26384         Reported by Mark D. Baushke <mdb@gnu.org>.
26385
26386 2006-06-17  Eric Blake  <ebb9@byu.net>
26387
26388         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
26389         errno.
26390
26391 2006-06-17  Bruno Haible  <bruno@clisp.org>
26392
26393         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
26394         <sys/inttypes.h>.
26395
26396 2006-06-17  Bruno Haible  <bruno@clisp.org>
26397
26398         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
26399         whether errno is declared. Assume <errno.h> declares errno.
26400
26401 2006-06-17  Bruno Haible  <bruno@clisp.org>
26402
26403         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
26404
26405 2006-06-17  Bruno Haible  <bruno@clisp.org>
26406
26407         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
26408         problem on Solaris 2.5.1.
26409
26410 2006-06-16  Eric Blake  <ebb9@byu.net>
26411
26412         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
26413         * lib/unicodeio.c [!defined errno]: Likewise.
26414         * lib/strtol.c [!defined errno]: Likewise.
26415         * lib/strtod.c [!defined errno]: Likewise.
26416
26417 2006-06-15  Eric Blake  <ebb9@byu.net>
26418
26419         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
26420
26421 2006-06-15  Eric Blake  <ebb9@byu.net>
26422
26423         * config/srclist.txt (ssize_t.m4): Lose sync.
26424
26425 2006-06-15  Bruno Haible  <bruno@clisp.org>
26426
26427         * modules/stdint (Files): Include m4/full-header-path.m4,
26428         m4/size_max.m4, m4/wchar_t.m4.
26429         (Makefile.am): Many more substitutions.
26430         * modules/stdint-tests: New file.
26431         * tests/test-stdint.c: New file.
26432
26433 2006-06-15  Bruno Haible  <bruno@clisp.org>
26434
26435         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
26436         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
26437         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
26438         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
26439         gl_CHECK_TYPE_SAME): New macros.
26440
26441 2006-06-15  Bruno Haible  <bruno@clisp.org>
26442
26443         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
26444
26445 2006-06-15  Bruno Haible  <bruno@clisp.org>
26446
26447         * lib/stdint_.h: Rewritten to be fully auto-configured.
26448         Fixes bug on HP-UX/IA64.
26449
26450 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
26451
26452         * lib/getdate.y (__attribute__): Don't define if already defined.
26453         Problem reported by Larry Jones.
26454         * lib/utimens.c (__attribute__): Likewise.
26455
26456 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
26457
26458         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
26459         reported by Andreas Schwab.
26460
26461 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26462             Bruno Haible  <bruno@clisp.org>
26463
26464         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
26465         check for the declaration of strnlen and a run test that exposes the
26466         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
26467         rpl_strndup.
26468
26469 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26470             Bruno Haible  <bruno@clisp.org>
26471
26472         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
26473
26474 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26475
26476         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
26477         compile test, for Tru64 4.0D.
26478
26479 2006-05-28  Karl Berry  <karl@gnu.org>
26480
26481         * config/srclist.txt (printf-args.c): lose sync.
26482
26483 2006-05-26  Martin Lambers  <marlam@marlam.de>
26484
26485         * lib/getpass.c: Updates the test for the native W32 API, and adds
26486         missing includes, thus fixing compilation warnings.
26487
26488 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26489
26490         * lib/exclude.c (exclude_fnmatch): New function.
26491         (excluded_file_name): Call exclude_fnmatch.
26492         * lib/exclude.h (excluded_file_name): New prototype
26493
26494 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
26495
26496         * lib/tempname.c (small_open, large_open): New macros.
26497         (__open, __open64) [!_LIBC]: Remove.
26498         (__gen_tempname): Use small_open and large_open instead of __open
26499         and __open64.  This fixes a portability bug on HP-UX 11.11i
26500         reported by Simon Wing-Tang in
26501         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
26502
26503 2006-05-24  Bruno Haible  <bruno@clisp.org>
26504
26505         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
26506         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
26507         Reported by Thorsten Maerz <torte@netztorte.de> via
26508         Aaron Stone <aaron@serendipity.cx>.
26509
26510 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26511
26512         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
26513         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
26514         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
26515         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
26516         not really conditional on the cache.
26517         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
26518
26519 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26520
26521         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
26522         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
26523         (my_usleep): Don't mishandle maximum value.
26524
26525 2006-05-19  Jim Meyering  <jim@meyering.net>
26526
26527         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
26528
26529 2006-05-17  Bruno Haible  <bruno@clisp.org>
26530
26531         Cygwin portability.
26532         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
26533
26534 2006-05-17  Bruno Haible  <bruno@clisp.org>
26535
26536         * lib/stdint_.h: Fix recognition of Cygwin.
26537
26538 2006-05-15  Bruno Haible  <bruno@clisp.org>
26539
26540         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
26541         on libtool patch by Ralf Wildenhues.
26542
26543 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26544
26545         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
26546         test for C99 conformance; (bool) 0.5 is an integer constant
26547         expression, but (bool) -0.5 is not.  Problem reported by Fedor
26548         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
26549
26550 2006-05-11  Simon Josefsson  <jas@extundo.com>
26551
26552         * m4/xvasprintf.m4: Fix obvious typo.
26553
26554 2006-05-11  Jim Meyering  <jim@meyering.net>
26555
26556         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
26557         James Lemley.
26558
26559 2006-05-10  Simon Josefsson  <jas@extundo.com>
26560
26561         * lib/md4.c: Typo fix, update copyright years.
26562         (K1, K2): Don't use L because it turn computations into 64-bit on
26563         64-bit platforms.
26564
26565 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
26566
26567         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
26568         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
26569         unwanted sign propagation, e.g., on hosts with 64-bit int.
26570         There still are some problems with reeelly weird theoretical hosts
26571         (e.g., 33-bit int) but it's not worth worrying about now.
26572         * lib/sha1.c (rol): Likewise.
26573         (K1, K2, K3, K4): Remove unnecessary L suffix.
26574
26575 2006-05-10  Bruno Haible  <bruno@clisp.org>
26576
26577         * lib/des.c: Cast to avoid warnings.
26578
26579 2006-05-09  Bruno Haible  <bruno@clisp.org>
26580
26581         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
26582         (Depends-on): Depend also on xsize, stdarg.
26583         (configure.ac): Add gl_XVASPRINTF.
26584
26585 2006-05-09  Bruno Haible  <bruno@clisp.org>
26586
26587         * m4/xvasprintf.m4: New file.
26588
26589 2006-05-09  Bruno Haible  <bruno@clisp.org>
26590
26591         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
26592         (EOVERFLOW): Define fallback value.
26593         (xstrcat): New function.
26594         (xvasprintf): Recognize the special case of a string concatenation.
26595
26596 2006-05-08  Eric Blake  <ebb9@byu.net>
26597
26598         * gnulib-tool (func_version): Base copyright year on CVS date.
26599         (func_emit_copyright_notice): New function.
26600         (func_emit_lib_Makefile_am): Use it.
26601         (func_emit_tests_Makefile_am): Likewise.
26602         (func_import): Likewise.
26603
26604 2006-05-08  Bruno Haible  <bruno@clisp.org>
26605
26606         * modules/stdarg: New file.
26607         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
26608
26609 2006-05-08  Bruno Haible  <bruno@clisp.org>
26610
26611         * m4/stdarg.m4: New file, from GNU gettext.
26612
26613 2006-05-08  Bruno Haible  <bruno@clisp.org>
26614
26615         * config/srclist.txt (build-aux/config.rpath): different from latest
26616         release.
26617
26618 2006-05-08  Bruno Haible  <bruno@clisp.org>
26619
26620         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
26621
26622 2006-05-05  Jim Meyering  <jim@meyering.net>
26623
26624         * m4/warning.m4: New file, derived from bison's file by the same name.
26625
26626 2006-05-03  Bruno Haible  <bruno@clisp.org>
26627
26628         * lib/stdint_.h: Shorter URL.
26629         * lib/inttypes.h: Likewise.
26630
26631 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26632
26633         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
26634
26635 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26636
26637         * lib/verify.h: Document the internals better.  Most of this change
26638         was written by Bruno Haible.
26639
26640 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26641
26642         * doc/verify.texi: New file, partly based on a proposal by
26643         Bruno Haible.
26644
26645 2006-05-02  Bruno Haible  <bruno@clisp.org>
26646
26647         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
26648         test from here...
26649         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
26650
26651 2006-04-29  Bruno Haible  <bruno@clisp.org>
26652
26653         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
26654         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
26655
26656 2006-04-29  Bruno Haible  <bruno@clisp.org>
26657
26658         * gnulib-tool: Make --update option actually work.
26659
26660 2006-04-29  Bruno Haible  <bruno@clisp.org>
26661
26662         * doc/gcd.texi: New file.
26663         * doc/gnulib.texi: Include it.
26664
26665 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26666
26667         * lib/getdate.y (get_date): When adding relative date, start with the
26668         initial time, not with the result of the first mktime call.
26669
26670 2006-04-25  Bruno Haible  <bruno@clisp.org>
26671
26672         * gnulib-tool (func_import): Output the include directives in three
26673         blocks, sorted separately.
26674         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26675
26676 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26677
26678         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
26679         to define main with arguments, for C++.  Reported by Eric Blake.
26680         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
26681         Prefer 'int main ()' to 'int main (void)', for C++.
26682         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26683         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
26684         for 'main', for C99 and C++.
26685
26686 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26687
26688         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
26689         Don't assume that exit status -1 is valid.
26690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26691         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26692         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26693         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
26694         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
26695         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
26696         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
26697         functions can be used without declaring them, or that you can
26698         exit with status -1.
26699         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26700
26701 2006-04-24  Karl Berry  <karl@gnu.org>
26702
26703         * config/srclist.txt (longdouble.m4): sync lost.
26704
26705 2006-04-24  Eric Blake  <ebb9@byu.net>
26706
26707         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
26708
26709 2006-04-24  Bruno Haible  <bruno@clisp.org>
26710
26711         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
26712         poll() implementation in AIX.
26713         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26714
26715 2006-04-24  Bruno Haible  <bruno@clisp.org>
26716
26717         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
26718         assigned exactly once.
26719
26720 2006-04-23  Claudio Fontana  <claudio@gnu.org>
26721             Bruno Haible  <bruno@clisp.org>
26722
26723         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
26724         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
26725         for AM_CPPFLAGS.
26726
26727 2006-04-23  Bruno Haible  <bruno@clisp.org>
26728
26729         * modules/copy-file: Depend on unistd.
26730         * modules/execute: Likewise.
26731         * modules/fatal-signal: Likewise.
26732         * modules/findprog: Likewise.
26733         * modules/mkdtemp : Likewise.
26734         * modules/pipe: Likewise.
26735         * modules/wait-process: Likewise.
26736
26737 2006-04-23  Bruno Haible  <bruno@clisp.org>
26738
26739         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
26740         condition was already detected.
26741         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26742
26743 2006-04-23  Bruno Haible  <bruno@clisp.org>
26744
26745         * lib/copy-file.c: Include <unistd.h> unconditionally.
26746         * lib/execute.c: Likewise.
26747         * lib/fatal-signal.c: Likewise.
26748         * lib/findprog.c: Likewise.
26749         * lib/mkdtemp.c: Likewise.
26750         * lib/pipe.h: Likewise.
26751         * lib/pipe.c: Likewise.
26752         * lib/wait-process.h: Likewise.
26753
26754 2006-04-23  Bruno Haible  <bruno@clisp.org>
26755
26756         * gnulib-tool (func_usage): Fix --import description. Document
26757         --update.
26758         (func_import): Create temporary file in a temporary directory, if
26759         --dry-run is specified. Silence errors from 'grep' when there are no
26760         m4 files in $m4dir.
26761         (func_create_testdir): Silence errors from 'grep' when there are no
26762         m4 files in $m4dir.
26763         Reported by Karl Berry <karl@freefriends.org>.
26764
26765 2006-04-20  Bruno Haible  <bruno@clisp.org>
26766
26767         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
26768         one argument, so that the code will be portable to Autoconf 2.60.
26769         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
26770         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26771         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
26772
26773 2006-04-19  Derek Price  <derek@ximbiot.com>
26774             Eric Blake  <ebb9@byu.net>
26775
26776         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
26777         rather than "/full/path.h".  Update comment to match.  Shorten &
26778         generalize m4_translit call via AS_TR_CPP.
26779
26780 2006-04-19  Derek Price  <derek@ximbiot.com>
26781             Eric Blake  <ebb9@byu.net>
26782
26783         * lib/inttypes.h: Correct grammar in comment.
26784
26785 2006-04-18  Derek Price  <derek@ximbiot.com>
26786             Paul Eggert  <eggert@cs.ucla.edu>
26787
26788         * modules/inttypes: New file.
26789         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
26790
26791 2006-04-18  Derek Price  <derek@ximbiot.com>
26792             Paul Eggert  <eggert@cs.ucla.edu>
26793
26794         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
26795         New files.
26796
26797 2006-04-18  Derek Price  <derek@ximbiot.com>
26798             Paul Eggert  <eggert@cs.ucla.edu>
26799
26800         * lib/inttypes.h: New file.
26801         * lib/strtoimax.c: Assume <inttypes.h>.
26802
26803 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
26804
26805         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
26806         isn't mounted.  Problem reported by Kir Kolyshkin.
26807
26808 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26809
26810         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
26811         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
26812         Derek R. Price.
26813         * lib/regex.h (RE_DUP_MAX): Update comment to match current
26814         implementation.
26815
26816 2006-04-12  Eric Blake  <ebb9@byu.net>
26817
26818         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
26819         is now done automatically by the corresponding Autoconf macro.
26820
26821 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
26822
26823         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
26824         time_r.h.
26825
26826 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26827
26828         Merge regex changes from libc, removing some of our
26829         POSIX-conformance changes that were rejected and redoing them in a
26830         less-intrusive way.
26831
26832         * lib/regcomp.c (re_compile_internal, init_dfa):
26833         Length arg is now size_t, not Idx.  All uses changed.
26834         (peek_token): Forward decl now says internal_function.
26835         (__re_error_msgid, __re_error_msgid_idx):
26836         Now static rather than extern with attribute_hidden.
26837         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
26838         For some reason libc prefers K&R style defns for external functions.
26839         (regerror) [!defined _LIBC]: Likewise.
26840         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
26841         (seek_collating_symbol_entry, lookup_collation_sequence_value):
26842         (build_range_exp, build_collating_symbol):
26843         Use K&R-style defn.
26844         (re_compile_fastmap): Use '\0' to memset, not 0.
26845         (utf8_sb_map): Make the calculations more obvious.
26846         (init_dfa, parse_bracket_exp, build_charclass_op):
26847         Call calloc and cast result, as glibc does.
26848         (init_word_char, fetch_token, peek_token, peek_token_bracket):
26849         (build_range_exp, build_collating_symbol):
26850         Now internal functions.
26851
26852         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
26853
26854         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
26855         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
26856         Don't depend on VMS; depend on __VMS instead, for POSIX
26857         namespace cleanness.
26858         (regoff_t): Define to ssize_t, not long int.
26859
26860         Remove the REG_ macros named below.  Instead, make the old names
26861         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
26862         __USE_GNU_REGEX.
26863         (REG_BACKSLASH_ESCAPE_IN_LISTS):
26864         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
26865         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
26866         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
26867         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
26868         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
26869         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
26870         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
26871         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
26872         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
26873         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
26874         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
26875         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
26876         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
26877         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
26878         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
26879         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
26880         (REG_NREGS):
26881         Remove.  All uses replaced by the old RE_* names.
26882         (RE_BACKSLASH_ESCAPE_IN_LISTS):
26883         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
26884         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
26885         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
26886         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
26887         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
26888         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
26889         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
26890         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
26891         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
26892         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
26893         Don't bother having these macros be independent of each others'
26894         values, since they no longer exist in the POSIX name space.
26895
26896         Rename the following member names back to their old names,
26897         unless !__USE_GNU_REGEX.  All uses changed back.
26898         (buffer): Renamed from re_buffer.
26899         (allocated): Renamed from re_allocated.
26900         (used): Renamed from re_used.
26901         (syntax): Renamed from re_syntax.
26902         (fastmap): Renamed from re_fastmap.
26903         (translate): Renamed from re_translate.
26904         (can_be_null): Renamed from re_can_be_null.
26905         (regs_allocated): Renamed from re_regs_allocated.
26906         (fastmap_accurate): Renamed from re_fastmap_accurate.
26907         (no_sub): Renamed from re_no_sub.
26908         (not_bol): Renamed from re_not_bol.
26909         (not_eol): Renamed from re_not_eol.
26910         (newline_anchor): Renamed from re_newline_anchor.
26911         (num_regs): Renamed from rm_num_regs.
26912         (start): Renamed from rm_start.
26913         (end): Renamed from rm_end.
26914
26915         (free_state): Move up a bit.
26916
26917         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
26918         #define to be empty.
26919         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
26920         when that is what is intended.
26921         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
26922         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
26923         (MAX): New macro.
26924         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
26925         All uses changed back to re_malloc, etc.  It's now the caller's
26926         responsibility to check for overflow; all callers changed.
26927         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
26928         (re_x2nrealloc): Remove.
26929         (free_state): Remove decl.
26930
26931         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
26932         (re_set_registers, re_exec):
26933         Use K&R-style defn.
26934
26935         2006-01-31  Roland McGrath  <roland@redhat.com>
26936
26937         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
26938         Reported by Mike Frysinger <vapier@gentoo.org>.
26939
26940         2006-01-15  Andreas Jaeger  <aj@suse.de>
26941
26942         [BZ #1950]
26943         * lib/regex_internal.c (re_string_reconstruct): Adjust for
26944         build_wcs_upper_buffer change.
26945         (build_wcs_upper_buffer): Change return type.
26946
26947         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
26948
26949         * lib/regex_internal.h: Include <stdint.h> if available.
26950
26951         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
26952
26953         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
26954
26955         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
26956
26957         * lib/regcomp.c: Adjust for changed secondary hash function.
26958
26959         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
26960
26961         * lib/regex.h: Pretty printing.
26962         Clean up namespace a bit.
26963
26964         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
26965
26966         * lib/regexec.c (update_cur_sifted_state, check_arrival,
26967         check_arrival_add_next_nodes): Avoid using uninitialized variable.
26968
26969         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26970                     Ulrich Drepper  <drepper@redhat.com>
26971
26972         [BZ #1302]
26973         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
26974         changed.
26975         (bitset_word_t): Renamed from bitset_word.  All uses changed.
26976
26977         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
26978
26979         [BZ #281]
26980         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
26981         * lib/regcomp.c: Remove unnecessary uses of
26982         unsigned RE_TRANSLATE_TYPE.
26983         * lib/regex_internal.h: Likewise.
26984         * lib/regex_internal.c: Likewise.
26985         * lib/regexec.c: Likewise.
26986         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
26987
26988         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
26989
26990         * lib/regexec.c (find_recover_state): Remove unnecessary
26991         initialization.
26992         (transit_state_bkref): Make DFA a const pointer.
26993         (get_subexp): Likewise.
26994         (check_arrival): Likewise.
26995         (update_cur_sifted_state): Likewise.
26996         (re_search_internal): Likewise.
26997         (prune_impossible_nodes): Likewise.
26998         (acquire_init_state_context): Likewise.
26999         (proceed_next_node): Likewise.
27000         (set_regs): Likewise.
27001         (free_fail_stack_return): Likewise.
27002         (check_arrival_expand_ecl): Mark DFA parameter as const.
27003         (check_arrival_expand_ecl_sub): Likewise.
27004         (check_subexp_limits): Likewise.
27005         (sub_epsilon_src_nodes):  Likewise.
27006         (add_epsilon_src_nodes):  Likewise.
27007         (merge_state_array): Likewise.
27008         (update_regs): Likewise.
27009         (build_trtable): Likewise.
27010         (sift_states_backward): Mark MCTX parameter as const.
27011         (build_sifted_states): Likewise.
27012         (update_cur_sifted_state): Likewise.
27013         (sift_states_mkref): Likewise.
27014         (check_arrival_expand_ecl): Mark eclosure as const.
27015         (check_dst_limits_calc_pos_1): Likewise.
27016         * lib/regex_internal.h (re_match_context_t): Make dfa a const
27017         pointer.
27018
27019         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
27020
27021         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
27022         (transit_state_sb): Likewise.
27023         (transit_state_mb): Likewise.
27024         (sift_states_iter_mb): Likewise.
27025         (check_arrival_add_next_nodes): Likewise.
27026         (check_node_accept_bytes): Change first parameter to pointer-to-const.
27027         [_LIBC] (re_search_2_stub): Use mempcpy.
27028
27029         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
27030         mbrtowc for very simple UTF-8 case.
27031
27032         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
27033         a pointer-to-const.
27034         (re_acquire_state_context): Likewise.
27035         * lib/regex_internal.h: Adjust prototypes.
27036
27037         * lib/regex.c: Prevent using C++ compilers.
27038
27039         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
27040         (re_acquire_state_context): Likewise.
27041
27042 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27043
27044         * modules/regex (Depends-on): Add ssize_t.
27045
27046 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27047
27048         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
27049         translation table.
27050
27051 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27052
27053         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
27054
27055 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
27056             Bruno Haible  <bruno@clisp.org>
27057
27058         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
27059         <sys/types.h> and <inttypes.h>.
27060
27061 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27062
27063         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
27064         `__error_t_defined', so argp.h will not typedef the former.
27065
27066 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27067
27068         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
27069         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
27070         glibc names.  Even if glibc is changed to conform to POSIX, the
27071         traditional names will be available anyway, since regex depends on
27072         the extensions module.  Also, fix a longstanding typo in the
27073         implementation of Spencer ERE test #75 from grep 2.3.  Problems
27074         reported by Emanuele Giaquinta.  Also, change sense of cached
27075         variable, so that the message makes sense.
27076
27077 2006-03-24  Simon Josefsson  <jas@extundo.com>
27078
27079         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
27080         including some doc fixes.
27081         (base64_encode_alloc): Fix +1 bug on allocation failures.
27082
27083 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27084
27085         * lib/base64.c (base64_encode): Do not read past end of array with
27086         unsanitized input on systems with CHAR_BIT > 8.
27087
27088 2006-03-24  Eric Blake  <ebb9@byu.net>
27089
27090         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
27091
27092 2006-03-22  Karl Berry  <karl@gnu.org>
27093
27094         * config/srclist.txt (*setenv.[ch]): get from coreutils.
27095         * config/srclistvars.sh (COREUTILS): new var.
27096
27097 2006-03-17  Jim Meyering  <jim@meyering.net>
27098
27099         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
27100         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
27101
27102 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
27103
27104         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
27105         no longer needs it.  Instead, check that regoff_t is as least
27106         as wide as ptrdiff_t.
27107
27108         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
27109         so that our regex.h stays compatible with the installed regex.
27110         This is helpful for installers who configure --without-included-regex.
27111         Problem reported by Emanuele Giaquinta.
27112
27113 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
27114
27115         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
27116         Typedef to long int, not to off_, as POSIX will likely change
27117         in that direction.
27118
27119 2006-03-15  Eric Blake  <ebb9@byu.net>
27120
27121         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
27122
27123 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
27124
27125         * lib/argp-help.c (validate_uparams): Fix typo
27126         * lib/argp-parse.c (argp_default_options): Consistently begin help
27127         messages with a lowercase letter.
27128
27129 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
27130
27131         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
27132         overrun buffers and shouldn't be used (much as gets shouldn't be
27133         used).
27134         * lib/time_r.c (asctime_r, ctime_r): Likewise.
27135
27136 2006-03-08  Simon Josefsson  <jas@extundo.com>
27137
27138         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
27139         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27140
27141 2006-03-08  Simon Josefsson  <jas@extundo.com>
27142
27143         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
27144         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27145
27146 2006-03-08  Simon Josefsson  <jas@extundo.com>
27147
27148         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
27149         signal that configure disabled the device.
27150
27151 2006-03-08  Simon Josefsson  <jas@extundo.com>
27152
27153         * build-aux/maint.mk: Fix refresh-po, to handle no translated
27154         languages.
27155
27156 2006-03-07  Simon Josefsson  <jas@extundo.com>
27157
27158         * modules/getopt (Depends-on): Add unistd.
27159
27160         * modules/unistd: New file.
27161
27162 2006-03-07  Simon Josefsson  <jas@extundo.com>
27163
27164         * modules/gc-random: New file.
27165
27166 2006-03-07  Simon Josefsson  <jas@extundo.com>
27167
27168         * m4/unistd_h.m4: New file.
27169
27170 2006-03-07  Simon Josefsson  <jas@extundo.com>
27171
27172         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
27173         test to be side-effect free by storing the result in the cache
27174         variable gl_cv_lib_readline, and moving the assignment of
27175         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
27176         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27177
27178 2006-03-07  Simon Josefsson  <jas@extundo.com>
27179
27180         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
27181         error on missing devices (the functions will return an error).
27182
27183         * m4/gc.m4: Move random stuff to gc-random.m4
27184
27185 2006-03-07  Simon Josefsson  <jas@extundo.com>
27186
27187         * lib/unistd_.h: New file.
27188
27189 2006-03-07  Simon Josefsson  <jas@extundo.com>
27190
27191         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
27192
27193 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27194
27195         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
27196         Problem reported by Juan Manuel Guerrero.
27197
27198 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27199
27200         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
27201         the unistd module.
27202         * lib/getlogin_r.c: Likewise.
27203         * lib/getlogin_r.h: Likewise.
27204         * lib/glob.c: Likewise.
27205         * lib/pagealign_alloc.c: Likewise.
27206         * lib/unistd_.h: Remove; no longer needed.
27207
27208 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
27209
27210         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27211         Add unistd.
27212         * modules/c-stack (Depends-on): Add unistd.
27213         * modules/getlogin_r: Likewise.
27214         * modules/glob: Likewise.
27215         * modules/pagealign_alloc: Likewise.
27216         * modules/unistd (Files): Remove lib/unistd_.h.
27217         (EXTRA_DIST): Remove.
27218         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
27219         need unistd_.h.
27220         (MOSTLYCLEANFILES): Remove unistd.h-t.
27221
27222 2006-03-03  Simon Josefsson  <jas@extundo.com>
27223
27224         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
27225
27226 2006-03-03  Simon Josefsson  <jas@extundo.com>
27227
27228         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
27229         libidn and bison.
27230
27231 2006-03-03  Simon Josefsson  <jas@extundo.com>
27232
27233         * build-aux/maint.mk: Add indent target.
27234
27235 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
27236
27237         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
27238         our replacement poll.h in any case, to avoid a differing
27239         declaration from a system header.  Seen on AIX.
27240
27241 2006-03-01  Simon Josefsson  <jas@extundo.com>
27242
27243         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
27244         <kasal@ucw.cz>.
27245
27246 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27247
27248         * modules/gettime (Depends-on): Add extensions module.
27249         * modules/nanosleep (Depends-on): Likewise.
27250         * modules/settime (Depends-on): Likewise.
27251
27252 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27253
27254         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
27255         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
27256         pedantically.
27257         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27258         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
27259
27260         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
27261         not "==".  Reported by Ralf Wildenhues.
27262
27263 2006-03-01  Karl Berry  <karl@gnu.org>
27264
27265         * doc/Copyright/request-*: new files, synced from gnuorg.
27266
27267 2006-03-01  Karl Berry  <karl@gnu.org>
27268
27269         * config/srclist.txt (Copyright/*): new entries.
27270
27271 2006-02-28  Simon Josefsson  <jas@extundo.com>
27272
27273         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
27274
27275 2006-02-27  Simon Josefsson  <jas@extundo.com>
27276
27277         * lib/base64.h: Indent #define's.  From Jim Meyering
27278         <jim@meyering.net>.
27279
27280 2006-02-27  Jim Meyering  <jim@meyering.net>
27281
27282         Revert the change of 2006-02-24, so these files can continue
27283         to be sync'd from gettext.
27284         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
27285         of `config.h'.
27286
27287 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27288
27289         * modules/intprops: New file.
27290         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27291         Add intprops.
27292         * modules/getloadavg (Files): Remove lib/intprops.h.
27293         (Depends-on): Add intprops.
27294         * modules/human: Likewise.
27295         * modules/inttostr: Likewise.
27296         * modules/openat: Likewise.
27297         * modules/sig2str: Likewise.
27298         * modules/userspec: Likewise.
27299         * modules/utimecmp: Likewise.
27300         * modules/xnanosleep: Likewise.
27301         * modules/xstrtol: Likewise.
27302
27303 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
27304
27305         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
27306         * modules/lock-tests (TESTS): Use $(EXEEXT).
27307         * modules/tls-tests: Likewise.
27308         * modules/argp-tests: Likewise.
27309         (check_PROGRAMS): New var, replacing...
27310         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
27311
27312 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27313
27314         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
27315         `config.h'.
27316
27317 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27318
27319         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
27320
27321 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27322
27323         Sync from coreutils.
27324         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
27325         gl_CHDIR_SAFER.
27326
27327 2006-02-22  Jim Meyering  <jim@meyering.net>
27328
27329         Sync from coreutils.
27330         * m4/chdir-safer.m4: New file.
27331
27332 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27333
27334         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
27335         AT_FDCWD exceeds INT_MAX.
27336         * lib/openat.h (AT_FDCWD): Likewise.
27337
27338 2006-02-17  Eric Blake  <address@hidden>
27339
27340         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
27341
27342 2006-02-16  Simon Josefsson  <jas@extundo.com>
27343
27344         * modules/getaddrinfo (Depends-on): Add sys_socket.
27345
27346 2006-02-15  Simon Josefsson  <jas@extundo.com>
27347
27348         * build-aux/maint.mk: Add dsyntax-check rule.
27349
27350 2006-02-15  Eric Blake  <ebb9@byu.net>
27351
27352         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
27353         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
27354         'present but cannot compile' warnings on cygwin.
27355         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
27356         use ws2tcpip.h if sys/socket.h works.
27357         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
27358         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
27359
27360 2006-02-14  Simon Josefsson  <jas@extundo.com>
27361
27362         * modules/maintainer-makefile (Files): Rename.
27363
27364         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
27365         and (the local) Makefile.cfg to maint-cfg.mk.
27366
27367         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
27368         to the latter.
27369
27370         * modules/maintainer-makefile: New module.
27371
27372         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
27373         severaly stripped to make it possible to build it up from scratch
27374         with reliable tests.
27375
27376         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
27377         fixes to permit overriding the default actions when configure and
27378         makefile are not available.
27379
27380 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27381
27382         Sync from coreutils.
27383         * modules/lstat (Depends-on): Don't depend on xalloc.
27384         (License): Change from GPL to LGPL, since this is now simply a
27385         replacement for a libc function.
27386
27387 2006-02-14  Jim Meyering  <jim@meyering.net>
27388
27389         Sync from coreutils.
27390
27391         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
27392         failure on deficient systems, and simplify gnulib lgpl dependencies.
27393         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
27394         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
27395
27396         * lib/xalloc-die.c: Remove unused definition of N_.
27397
27398 2006-02-14  Jim Meyering  <jim@meyering.net>
27399
27400         Sync from coreutils.
27401         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
27402         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
27403         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
27404         double-quote uses of that variable, to accommodate the rare case in
27405         which getmntent is available in none of the libraries checked.  This
27406         happens at least on FreeBSD 5.0.
27407
27408 2006-02-13  Simon Josefsson  <jas@extundo.com>
27409
27410         * gnulib-tool (Usage): Fix --import, from
27411         karl@freefriends.org (Karl Berry).
27412
27413 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
27414
27415         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
27416
27417 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
27418
27419         * lib/argp-namefrob.h: Restore changes accidentally lost during the
27420         "autoupdate" on 2005-12-12.
27421
27422 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27423
27424         * modules/closeout (Depends-on): Remove atexit.
27425
27426 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27427
27428         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
27429         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
27430
27431 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
27432
27433         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
27434         __EXTENSIONS__ if this causes compilation to fail.  Problem
27435         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
27436         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
27437
27438 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27439
27440         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
27441         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
27442         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
27443         All uses changed.
27444
27445 2006-01-26  Simon Josefsson  <jas@extundo.com>
27446
27447         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
27448         prototype is visible on mingw32.
27449
27450         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
27451         for mingw32.
27452
27453         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
27454         mingw32).
27455
27456 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
27457
27458         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
27459         attempt to open for write; this always fails, at least on POSIX
27460         hosts.  This reinstates the 2006-01-09 change, which was
27461         inadvertently removed.
27462
27463 2006-01-26  Bruno Haible  <bruno@clisp.org>
27464
27465         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
27466         Reported by Paul Eggert.
27467
27468 2006-01-26  Bruno Haible  <bruno@clisp.org>
27469             Paul Eggert  <eggert@cs.ucla.edu>
27470
27471         * lib/stdbool_.h (_Bool)
27472         [(! (defined __cplusplus || defined __BEOS__)
27473           && !defined __GNUC__
27474           && !(defined __HP_cc || defined __xlc__
27475                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
27476                || defined __sgi))]:
27477         #define to signed char in these cases too; this simplifies
27478         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
27479         etc., separately) and makes it more conservative.
27480
27481 2006-01-25  Simon Josefsson  <jas@extundo.com>
27482
27483         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
27484         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
27485         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
27486
27487 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27488
27489         * lib/argp-namefrob.h: Bugfix. Remove stray #
27490
27491 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27492
27493         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
27494         so that we test the test.
27495         Check for yet another HP-UX cc bug involving *bool |= bool.
27496
27497 2006-01-25  Karl Berry  <karl@gnu.org>
27498
27499         * config/srclist.txt (vasnprintf.c): sync lost.
27500
27501 2006-01-25  Jim Meyering  <jim@meyering.net>
27502
27503         Sync from the stable (b5) branch of coreutils:
27504
27505         * lib/fts.c (fts_children): Don't let close() clobber errno from
27506         failed fchdir().
27507
27508         * lib/fts.c (fts_stat): When following a symlink-to-directory,
27509         don't necessarily interpret stat-fails+lstat-succeeds as indicating
27510         a dangling symlink.  That can also happen at least for ELOOP.
27511         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
27512         FYI, this bug predates the inclusion of fts.c in coreutils.
27513
27514         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
27515         in their own block, so pre-c99 compilers don't object.
27516
27517         Avoid the double-free (first in fts_read, second in fts_close) that
27518         would occur when an `active' directory is made inaccessible (e.g.,
27519         via chmod a-x) during a traversal.
27520         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
27521         before returning.  Reproduce this failure by
27522         mkdir -p a/b; cd a; chmod a-x . b
27523         Reported by Stavros Passas.
27524
27525 2006-01-25  Jim Meyering  <jim@meyering.net>
27526
27527         * lib/fileblocks.c: Remove more useless parentheses.
27528         * lib/readutmp.h: Likewise.
27529
27530 2006-01-25  Bruno Haible  <bruno@clisp.org>
27531
27532         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
27533         warnings.
27534         Reported by Paul Eggert.
27535
27536 2006-01-25  Bruno Haible  <bruno@clisp.org>
27537
27538         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
27539         rid of a trap command. For Solaris sh.