1 2008-10-18 Bruno Haible <bruno@clisp.org>
3 Add getusershell(), setusershell(), endusershell() declarations to
5 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
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
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
19 2008-10-18 Bruno Haible <bruno@clisp.org>
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.
37 2008-10-18 Bruno Haible <bruno@clisp.org>
39 * lib/dirchownmod.c: Don't include lchmod.h.
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
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.
58 2008-10-18 Bruno Haible <bruno@clisp.org>
60 * lib/fchdir.c: Don't include dirfd.h.
61 * lib/fts.c: Likewise.
62 * lib/getcwd.c: Likewise.
63 * lib/glob.c: Likewise.
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
73 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
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.
84 2008-10-18 Bruno Haible <bruno@clisp.org>
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
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
100 * NEWS: Mention the change.
102 2008-10-18 Bruno Haible <bruno@clisp.org>
104 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
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
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
121 * NEWS: Mention the change.
123 2008-10-18 Bruno Haible <bruno@clisp.org>
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.
134 2008-10-18 Bruno Haible <bruno@clisp.org>
136 Avoid -Wunused-parameter warnings in public gnulib header files.
137 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
139 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
141 2008-10-18 Bruno Haible <bruno@clisp.org>
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
148 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
149 * doc/glibc-functions/getpagesize.texi: Mention the module
151 * doc/glibc-functions/getusershell.texi: Mention the module
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'.
168 2008-10-17 Bruno Haible <bruno@clisp.org>
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.
188 2008-10-17 Bruno Haible <bruno@clisp.org>
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>.
225 2008-10-17 Jim Meyering <meyering@redhat.com>
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.
232 2008-10-17 Bruno Haible <bruno@clisp.org>
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.
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
247 (gl_rwlock_t): Update.
248 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
250 2008-10-17 Simon Josefsson <simon@josefsson.org>
252 * modules/recvfrom (Depends-on): Add dependency on getpeername.
253 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
255 2008-10-17 Jim Meyering <meyering@redhat.com>
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.
263 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
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>.
269 2008-10-16 Jim Meyering <meyering@redhat.com>
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>.
275 2008-10-16 Simon Josefsson <simon@josefsson.org>
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>
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.
285 2008-10-15 Simon Josefsson <simon@josefsson.org>
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
291 * tests/test-netdb.c: New file.
292 * doc/posix-headers/netdb.texi: Mention that we replace it if
294 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
297 2008-10-15 Simon Josefsson <simon@josefsson.org>
299 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
302 2008-10-13 Bruno Haible <bruno@clisp.org>
304 * lib/glthread/cond.c (glthread_cond_wait_func,
305 glthread_cond_timedwait_func): Add a comment.
307 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
309 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
310 * tests/test-select.c: Likewise,
312 2008-10-13 Bruno Haible <bruno@clisp.org>
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>.
318 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
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.
325 2008-10-13 Simon Josefsson <simon@josefsson.org>
327 * build-aux/pmccabe2html: Add css and css_url parameters.
329 2008-10-12 Bruno Haible <bruno@clisp.org>
331 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
333 Reported by Rainer Tammer <tammer@tammer.net>.
335 2008-10-12 Bruno Haible <bruno@clisp.org>
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.
343 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
344 Bruno Haible <bruno@clisp.org>
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.
354 2008-10-11 Bruno Haible <bruno@clisp.org>
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
362 2008-10-11 Bruno Haible <bruno@clisp.org>
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
370 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
371 * doc/posix-functions/shutdown.texi: Document the new module.
373 2008-10-11 Jim Meyering <meyering@redhat.com>
375 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
377 2008-10-11 Bruno Haible <bruno@clisp.org>
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,
386 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
387 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
389 * modules/close (Depends-on): fclose.
390 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
392 2008-10-11 Bruno Haible <bruno@clisp.org>
394 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
395 set errno and don't call _close.
397 2008-10-10 Bruno Haible <bruno@clisp.org>
399 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
400 ACL, not afterwards. Fixes test failure on Cygwin.
402 2008-10-09 Ben Pfaff <blp@gnu.org>
404 * build-aux/announce-gen: Fix gnulib version related part of usage
405 message. Die with a useful error message if no tarballs are
408 2008-10-10 Jim Meyering <meyering@redhat.com>
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.
414 2008-10-09 Bruno Haible <bruno@clisp.org>
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.
426 2008-10-09 Bruno Haible <bruno@clisp.org>
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.
434 2008-10-09 Bruno Haible <bruno@clisp.org>
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.
440 2008-10-09 Bruno Haible <bruno@clisp.org>
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>.
445 2008-10-09 Bruno Haible <bruno@clisp.org>
447 * doc/posix-functions/close.texi: Mention module 'close' instead of
450 2008-10-09 Bruno Haible <bruno@clisp.org>
452 * doc/glibc-headers/sys_ioctl.texi: New file.
453 * doc/gnulib.texi: Include it.
455 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
456 Bruno Haible <bruno@clisp.org>
458 Combine the two replacements of 'close'.
459 * lib/sys_socket.in.h (close): Define to a reminder to include
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.
482 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
483 Bruno Haible <bruno@clisp.org>
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
495 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
497 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
499 * modules/fchdir (Depends-on): Add close.
501 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
502 Bruno Haible <bruno@clisp.org>
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
509 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
510 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
513 2008-10-09 Jim Meyering <meyering@redhat.com>
515 GNUmakefile: use the more name-space-friendly "_version"
516 * top/GNUmakefile (_dummy): Update.
517 (_version): Rename from "version".
519 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
520 Bruno Haible <bruno@clisp.org>
522 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
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.
528 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
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.
535 2008-10-08 Bruno Haible <bruno@clisp.org>
537 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
539 2008-10-08 Simon Josefsson <simon@josefsson.org>
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,
545 2008-10-08 Eric Blake <ebb9@byu.net>
547 GNUmakefile: add 'make version' target
548 * top/GNUmakefile (_curr-ver): Split version update rules...
549 (version): ...into a target.
551 2008-10-07 Bruno Haible <bruno@clisp.org>
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
629 2008-10-07 Simon Josefsson <simon@josefsson.org>
631 * MODULES.html.sh (Support for building documentation): Mention
632 pmccabe2html. Sort entries.
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.
640 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
643 * MODULES.html.sh: Add to list of modules.
644 * lib/flock.c: flock implementation for Windows and Unix systems
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.
655 2008-10-06 Jim Meyering <meyering@redhat.com>
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.
661 2008-10-06 Eric Blake <ebb9@byu.net>
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.
668 2008-10-05 Bruno Haible <bruno@clisp.org>
669 Jim Meyering <jim@meyering.net>
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
680 * modules/closeout (Depends-on): Add stdbool.
682 2008-10-05 Bruno Haible <bruno@clisp.org>
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
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
720 * doc/posix-functions/getsockname.texi: Mention the new module
722 * doc/posix-functions/getsockopt.texi: Mention the new module
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
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.
736 2008-10-05 Bruno Haible <bruno@clisp.org>
738 * lib/winsock.c (strerror): Remove unused #undef.
739 (rpl_close): Remove unused local variable.
741 * modules/sys_socket (Depends-on); Add errno.
743 2008-10-05 Bruno Haible <bruno@clisp.org>
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.
751 2008-10-05 Jim Meyering <meyering@redhat.com>
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.
757 2008-10-05 Bruno Haible <bruno@clisp.org>
759 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
760 as being fixed by gnulib.
762 2008-10-05 Bruno Haible <bruno@clisp.org>
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.
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.
784 2008-10-05 Bruno Haible <bruno@clisp.org>
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
791 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
792 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
794 2008-10-05 Bruno Haible <bruno@clisp.org>
796 * modules/getdtablesize-tests: New file.
797 * tests/test-getdtablesize.c: New file.
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,
808 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
810 2008-10-05 Bruno Haible <bruno@clisp.org>
812 * modules/sched (Makefile.am): Fix typo.
813 Reported by Simon Josefsson.
815 2008-10-05 Jim Meyering <meyering@redhat.com>
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.
821 2008-10-05 Bruno Haible <bruno@clisp.org>
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.
827 2008-10-05 Jim Meyering <meyering@redhat.com>
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>.
833 2008-10-04 Bruno Haible <bruno@clisp.org>
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
840 * modules/signal (License): Likewise.
841 * modules/sigprocmask (License): Likewise.
842 * modules/raise (License): Change to LGPLv2+, with approval by Jim
845 2008-10-04 Bruno Haible <bruno@clisp.org>
847 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
848 Reported by Rainer Tammer <tammer@tammer.net>.
850 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
851 Bruno Haible <bruno@clisp.org>
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.
857 2008-10-03 Kamil Dudka <kdudka@redhat.com>
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.
867 2008-10-03 Bruno Haible <bruno@clisp.org>
869 * lib/c-ctype.h: Add comment.
870 Reported by Jim Meyering.
872 2008-10-02 Bruno Haible <bruno@clisp.org>
874 * modules/posix_spawn-internal (Depends-on): Add 'open'.
876 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
878 * build-aux/bootstrap: Allow renaming bootstrap, and change the
879 name of bootstrap.conf accordingly.
881 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
883 * build-aux/bootstrap: Install git-merge-changelog configuration
884 items into .gitconfig if needed.
886 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
888 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
889 git repository, and initialize/update it accordingly.
891 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
893 * modules/fsync-tests: New file.
894 * tests/test-fsync.c: New file.
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.
907 2008-10-02 Jim Meyering <meyering@redhat.com>
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.
914 2008-10-02 Jim Meyering <meyering@redhat.com>
917 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
918 Include <sys/vfs.h>, not <sys/statfs.h>.
920 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
921 Include <sys/vfs.h>, not <sys/statfs.h>.
923 2008-10-01 Bruno Haible <bruno@clisp.org>
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>.
937 2008-10-01 Jim Meyering <meyering@redhat.com>
939 remove trailing spaces
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.
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.
953 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
955 * modules/cond-tests: New file.
956 * tests/test-cond.c: New file.
958 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
959 Bruno Haible <bruno@clisp.org>
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
966 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
967 Bruno Haible <bruno@clisp.org>
969 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
971 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
972 Bruno Haible <bruno@clisp.org>
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.
982 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
983 Bruno Haible <bruno@clisp.org>
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.
994 2008-09-30 Bruno Haible <bruno@clisp.org>
996 Fix the Win32 implementation of the 'thread' module.
997 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
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'.
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
1011 2008-09-30 Bruno Haible <bruno@clisp.org>
1013 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
1016 2008-09-30 Jim Meyering <meyering@redhat.com>
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.
1022 2008-09-15 Simon Josefsson <simon@josefsson.org>
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'.
1028 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
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".
1040 2008-09-29 Bruno Haible <bruno@clisp.org>
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.
1050 2008-09-29 Bruno Haible <bruno@clisp.org>
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.
1056 2008-09-29 Bruno Haible <bruno@clisp.org>
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
1065 2008-09-29 Eric Blake <ebb9@byu.net>
1067 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
1069 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
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.
1088 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
1089 Bruno Haible <bruno@clisp.org>
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
1097 2008-09-29 Bruno Haible <bruno@clisp.org>
1099 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
1100 * lib/sys_select.in.h: Likewise.
1102 2008-09-29 Bruno Haible <bruno@clisp.org>
1104 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
1106 2008-09-29 Bruno Haible <bruno@clisp.org>
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.
1116 2008-09-29 Bruno Haible <bruno@clisp.org>
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.
1123 2008-09-28 Bruno Haible <bruno@clisp.org>
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.
1130 2008-09-28 Bruno Haible <bruno@clisp.org>
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.
1136 2008-09-28 Bruno Haible <bruno@clisp.org>
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.
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.
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>.
1158 2008-09-28 Bruno Haible <bruno@clisp.org>
1160 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
1163 2008-09-28 Bruno Haible <bruno@clisp.org>
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.
1169 2008-09-28 Bruno Haible <bruno@clisp.org>
1171 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
1173 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
1175 * lib/fcntl.in.h (open): Likewise.
1176 Reported by Rainer Tammer <tammer@tammer.net>.
1178 2008-09-28 Bruno Haible <bruno@clisp.org>
1180 * modules/posix_spawnp-tests: New file.
1181 * tests/test-posix_spawn.c: New file.
1182 * tests/test-posix_spawn.in.sh: New file.
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.
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.
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
1200 New module 'posix_spawnattr_setsigmask'.
1201 * modules/posix_spawnattr_setsigmask: New file.
1202 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
1204 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
1207 New module 'posix_spawnattr_getsigmask'.
1208 * modules/posix_spawnattr_getsigmask: New file.
1209 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
1211 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
1214 New module 'posix_spawnattr_setsigdefault'.
1215 * modules/posix_spawnattr_setsigdefault: New file.
1216 * lib/spawnattr_setdefault.c: New file, from GNU libc with
1218 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
1221 New module 'posix_spawnattr_getsigdefault'.
1222 * modules/posix_spawnattr_getsigdefault: New file.
1223 * lib/spawnattr_getdefault.c: New file, from GNU libc with
1225 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
1228 New module 'posix_spawnattr_setschedpolicy'.
1229 * modules/posix_spawnattr_setschedpolicy: New file.
1230 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
1232 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
1235 New module 'posix_spawnattr_getschedpolicy'.
1236 * modules/posix_spawnattr_getschedpolicy: New file.
1237 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
1239 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
1242 New module 'posix_spawnattr_setschedparam'.
1243 * modules/posix_spawnattr_setschedparam: New file.
1244 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
1246 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
1249 New module 'posix_spawnattr_getschedparam'.
1250 * modules/posix_spawnattr_getschedparam: New file.
1251 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
1253 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
1256 New module 'posix_spawnattr_setpgroup'.
1257 * modules/posix_spawnattr_setpgroup: New file.
1258 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
1260 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
1263 New module 'posix_spawnattr_getpgroup'.
1264 * modules/posix_spawnattr_getpgroup: New file.
1265 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
1267 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
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
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
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
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
1292 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
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
1299 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
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
1306 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
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
1313 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
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
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.
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.
1334 2008-09-28 Bruno Haible <bruno@clisp.org>
1336 * modules/sched-tests: New file.
1337 * tests/test-sched.c: New file.
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.
1345 2008-09-27 Eric Blake <ebb9@byu.net>
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
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.
1356 2008-09-27 Bruno Haible <bruno@clisp.org>
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.
1364 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
1365 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
1368 2008-09-27 Bruno Haible <bruno@clisp.org>
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.
1375 2008-09-26 Bruno Haible <bruno@clisp.org>
1377 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
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.
1383 2008-09-26 Bruno Haible <bruno@clisp.org>
1385 * gnulib-tool (func_version): Change directory to $gnulib_dir before
1386 invoking git-version-gen.
1388 2008-09-26 Bruno Haible <bruno@clisp.org>
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.
1394 2008-09-26 Bruno Haible <bruno@clisp.org>
1396 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
1398 2008-09-26 Bruno Haible <bruno@clisp.org>
1400 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
1401 * modules/fwriteerror (Depends-on): Add errno.
1403 2008-09-26 Bruno Haible <bruno@clisp.org>
1405 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
1406 * tests/test-vc-list-files-cvs.sh: Likewise.
1408 2008-09-26 Bruno Haible <bruno@clisp.org>
1410 * doc/posix-headers/sys_resource.texi: Reorder items.
1412 2008-09-26 Jim Meyering <meyering@redhat.com>
1414 fts: tweak inode comparison function
1415 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
1416 inode numbers, as documented.
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.
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.
1435 2008-09-26 Bruno Haible <bruno@clisp.org>
1437 * modules/sigpipe-die (Depends-on): Add sigpipe.
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
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.
1476 * modules/safe-write (Depends-on): Add write.
1478 * modules/sigpipe-tests: New file.
1479 * tests/test-sigpipe.c: New file.
1480 * tests/test-sigpipe.sh: New file.
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.
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.
1504 * modules/sigpipe: New file.
1505 * m4/sigpipe.m4: New file.
1507 2008-09-25 Derek Price <derek@ximbiot.com>
1508 Bruno Haible <bruno@clisp.org>
1510 * gnulib-tool (func_import): Report all license incompatibilities, not
1513 2008-09-25 Bruno Haible <bruno@clisp.org>
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.
1518 2008-09-25 Simon Josefsson <simon@josefsson.org>
1520 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
1521 fixes gnulib-tool --test warning about duplicate dependency.
1523 2008-09-25 Bruno Haible <bruno@clisp.org>
1525 * gnulib-tool: Don't ask the user to perform edits in the generated
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>.
1536 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1538 * gnulib-tool (func_import): Store the --tests-base option in the
1539 comment in gnulib-cache.m4.
1541 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
1543 * NEWS: Document increased portability that sys_select now provides.
1545 * lib/sys_select.in.h: Install select wrapper.
1546 * lib/sys_socket.in.h: Use more descriptive name when there is no
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.
1555 2008-09-24 Eric Blake <ebb9@byu.net>
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
1562 * doc/posix-functions/fopen.texi (fopen): Likewise.
1563 Reported by Paolo Bonzini.
1565 2008-09-24 Bruno Haible <bruno@clisp.org>
1567 Ensure that a filename ending in a slash cannot be used to access a
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(),
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.
1581 2008-09-23 Eric Blake <ebb9@byu.net>
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.
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
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
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.
1603 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1605 * lib/poll.c: Rewrite.
1606 * modules/poll: Depend on alloca.
1608 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
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
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.
1618 * modules/poll-tests: Add errno and perror.
1619 * tests/test-poll.c: Use ioctl, not ioctlsocket.
1621 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
1623 * tests/test-poll.c: Downgrade minimum needed Winsock version.
1625 2008-09-23 Bruno Haible <bruno@clisp.org>
1627 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
1628 * doc/glibc-functions/*: Likewise.
1630 2008-09-23 Simon Josefsson <simon@josefsson.org>
1632 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
1635 2008-09-22 Eric Blake <ebb9@byu.net>
1636 Bruno Haible <bruno@clisp.org>
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.
1643 2008-09-21 Bruno Haible <bruno@clisp.org>
1645 * tests/test-lock.c (main): Tweak skip message.
1646 * tests/test-tls.c (main): Likewise.
1648 2008-09-21 Bruno Haible <bruno@clisp.org>
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.
1655 2008-09-21 Bruno Haible <bruno@clisp.org>
1657 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
1659 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
1660 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
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.
1666 2008-09-21 Bruno Haible <bruno@clisp.org>
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.
1676 2008-09-21 Bruno Haible <bruno@clisp.org>
1678 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
1679 * tests/test-sprintf-posix.h (test_function): Likewise.
1681 2008-09-21 Bruno Haible <bruno@clisp.org>
1683 * modules/getpass (Depends-on): Add strdup-posix.
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
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
1696 * modules/strdup (Depends-on): Remove malloc-posix.
1698 2008-09-20 Bruno Haible <bruno@clisp.org>
1700 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
1703 2008-09-20 Bruno Haible <bruno@clisp.org>
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>.
1719 2008-09-18 Bruno Haible <bruno@clisp.org>
1721 * gnulib-tool (func_exit): Update comment.
1723 2008-09-18 Simon Josefsson <simon@josefsson.org>
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.
1729 2008-09-18 Bruno Haible <bruno@clisp.org>
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.
1735 2008-09-18 Jim Meyering <meyering@redhat.com>
1736 Bruno Haible <bruno@clisp.org>
1738 * lib/vasnprintf.c (decimal_point_char): Define also if
1739 NEED_PRINTF_INFINITE_LONG_DOUBLE.
1741 2008-09-16 Bruno Haible <bruno@clisp.org>
1742 and Eric Blake <ebb9@byu.net>
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.
1749 2008-09-16 Bruno Haible <bruno@clisp.org>
1751 * doc/glibc-functions/scandir.texi: Mention the function is missing on
1753 * doc/glibc-functions/alphasort.texi: Likewise.
1754 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
1756 2008-09-16 Jim Meyering <meyering@redhat.com>
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.
1764 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
1766 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
1769 2008-09-16 Jim Meyering <meyering@redhat.com>
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.
1777 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1779 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
1780 based on character occurrence counts.
1782 2008-09-15 Eric Blake <ebb9@byu.net>
1784 tests: avoid some compiler warnings
1785 * tests/test-memchr.c (main): Pass NULL indirectly.
1786 * tests/test-closein.c (main): Avoid unused variable.
1788 2008-09-15 Bruno Haible <bruno@clisp.org>
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>.
1794 2008-09-15 Bruno Haible <bruno@clisp.org>
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
1801 Reported by Eric Blake.
1803 * lib/errno.in.h: Use replacement values >= 2000.
1804 Reported by Eric Blake.
1806 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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
1811 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
1812 compareseq was aborted.
1814 2008-09-14 Bruno Haible <bruno@clisp.org>
1816 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
1818 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
1819 (fstrcmp_bounded): Simplify result computation accordingly.
1821 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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.
1830 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1832 * lib/diffseq.h (EARLY_ABORT): New macro.
1833 (compareseq): Change return type to bool. Return true when EARLY_ABORT
1836 2008-09-14 Bruno Haible <bruno@clisp.org>
1838 * modules/perror-tests: New file.
1839 * tests/test-perror.sh: New file.
1840 * tests/test-perror.c: New file.
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,
1851 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
1854 2008-09-14 Bruno Haible <bruno@clisp.org>
1856 * modules/stdio (Makefile.am): Reorder to match the order in
1858 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1860 2008-09-13 Bruno Haible <bruno@clisp.org>
1862 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
1864 2008-09-13 Bruno Haible <bruno@clisp.org>
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
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
1879 2008-09-13 Bruno Haible <bruno@clisp.org>
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.
1931 2008-09-13 Bruno Haible <bruno@clisp.org>
1933 * modules/errno-tests: New file.
1934 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
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.
1942 2008-09-13 Bruno Haible <bruno@clisp.org>
1944 * tests/test-poll.c: Use #if for native Windows, rather than testing
1947 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1948 Bruno Haible <bruno@clisp.org>
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").
1954 2008-09-13 Bruno Haible <bruno@clisp.org>
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.
1963 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
1965 * modules/poll-tests: Do not check for io.h.
1966 * tests/test-poll.c: Check for __MSVCRT__ instead.
1968 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
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.
1974 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
1976 * modules/poll-tests: New.
1977 * tests/test-poll.c: New.
1979 2008-09-12 Eric Blake <ebb9@byu.net>
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.
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
1990 Reported by Jonathan C. Patschke <jp@centtech.com>.
1992 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1994 * lib/glthread/cond.h: Use dummy implementation also if
1997 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1999 * modules/fnmatch-posix (License): Change to LGPLv2+.
2000 * modules/fnmatch-gnu (License): Likewise.
2002 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2004 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
2006 2008-09-11 Jim Meyering <meyering@redhat.com>
2008 * users.txt: Add gtk-vnc.
2010 2008-09-08 Simon Josefsson <simon@josefsson.org>
2012 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
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.
2022 2008-09-07 Bruno Haible <bruno@clisp.org>
2024 * tests/test-striconveh.c (main): Check behaviour when converting from
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.
2031 2008-09-07 Bruno Haible <bruno@clisp.org>
2033 * build-aux/config.rpath: Update according to libtool-2.2.6.
2034 * build-aux/config.libpath: Likewise.
2036 2008-09-06 Bruno Haible <bruno@clisp.org>
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.
2043 2008-09-06 Bruno Haible <bruno@clisp.org>
2045 * modules/freadptr (License): Change to LGPLv2+.
2046 * modules/freadseek (License): Likewise.
2047 Suggested by Eric Blake.
2049 * modules/memchr2 (License): Change to LGPLv2+.
2050 Approved by Eric Blake.
2052 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2053 Bruno Haible <bruno@clisp.org>
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
2060 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2062 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
2063 Bruno Haible <bruno@clisp.org>
2065 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
2066 also works after #include directives.
2068 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
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.
2076 2008-09-03 Bruno Haible <bruno@clisp.org>
2078 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
2080 2008-09-02 Simon Josefsson <simon@josefsson.org>
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>.
2087 * tests/test-bitrotate.c: Add more test vectors.
2089 2008-09-02 Eric Blake <ebb9@byu.net>
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.
2100 2008-09-01 Eric Blake <ebb9@byu.net>
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.
2107 2008-09-01 Bruno Haible <bruno@clisp.org>
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.
2117 2008-09-01 Bruno Haible <bruno@clisp.org>
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-
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.
2147 2008-09-01 Bruno Haible <bruno@clisp.org>
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.
2158 2008-09-01 Simon Josefsson <simon@josefsson.org>
2160 * lib/bitrotate.h (rotl8, rotr8): Add.
2162 * modules/bitrotate (configure.ac): Need
2163 AC_REQUIRE([AC_C_INLINE]).
2164 (Description): Mention stdint.h. Reported by Bruno Haible
2167 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
2168 Paolo Bonzini <bonzini@gnu.org>.
2170 2008-08-31 Bruno Haible <bruno@clisp.org>
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
2180 * NEWS: Mention the change.
2181 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
2183 2008-08-31 Jim Meyering <meyering@redhat.com>
2185 * lib/strftime.h: Add comments describing the two added arguments.
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>.
2191 2008-08-31 Bruno Haible <bruno@clisp.org>
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.
2199 2008-08-31 Bruno Haible <bruno@clisp.org>
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.
2207 2008-08-30 Bruno Haible <bruno@clisp.org>
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>.
2215 2008-08-30 Bruno Haible <bruno@clisp.org>
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.
2224 2008-08-29 Bruno Haible <bruno@clisp.org>
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>.
2282 2008-08-29 Bruno Haible <bruno@clisp.org>
2284 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
2287 2008-08-29 Simon Josefsson <simon@josefsson.org>
2289 * MODULES.html.sh (Misc): Add bitrotate.
2291 * modules/bitrotate: New file.
2293 * lib/bitrotate.h: New file.
2295 * modules/bitrotate-tests: New file.
2297 * tests/test-bitrotate.c: New file.
2299 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
2300 on the bitrotate module.
2302 * lib/arctwo.c: Use new bitrotate module.
2304 2008-08-29 Jim Meyering <meyering@redhat.com>
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.
2313 2008-08-29 Bruno Haible <bruno@clisp.org>
2315 * MODULES.html.sh: Remove --cvs-urls option.
2317 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
2319 maint.mk: adjust to file name change
2320 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
2322 2008-08-28 Jim Meyering <meyering@redhat.com>
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.
2328 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
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.
2336 2008-08-26 Eric Blake <ebb9@byu.net>
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
2342 * install.texi [!autoconf]: ...here. Resync from autoconf.
2343 * INSTALL: Regenerate.
2344 * INSTALL.ISO: New file.
2345 * INSTALL.UTF-8: Likewise.
2347 2008-08-26 Jim Meyering <meyering@redhat.com>
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.
2353 2008-08-26 Bruno Haible <bruno@clisp.org>
2355 Generate INSTALL file variants with prettier quotes.
2356 * doc/Makefile (INSTALL_PRELUDE): New macro.
2358 (INSTALL.ISO, INSTALL.UTF-8): New rules.
2360 2008-08-26 Bruno Haible <bruno@clisp.org>
2362 Run makeinfo in an English locale.
2363 * doc/Makefile (MAKEINFO): New variable.
2365 2008-08-26 Bruno Haible <bruno@clisp.org>
2367 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
2368 Suggested by Eric Blake.
2370 2008-08-25 Bruno Haible <bruno@clisp.org>
2372 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
2374 2008-08-25 Eric Blake <ebb9@byu.net>
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.
2385 2008-08-25 Bruno Haible <bruno@clisp.org>
2387 * doc/posix-functions/strftime.texi: Fix description of strftime
2390 2008-08-24 Bruno Haible <bruno@clisp.org>
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.
2400 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
2401 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
2403 Reported by Alexander V. Lukyanov <lav@netis.ru>.
2405 2008-08-22 Eric Blake <ebb9@byu.net>
2407 test-lock, test-tls: mention why a test is skipped
2408 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
2410 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
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.
2416 2008-08-22 Andreas Schwab <schwab@suse.de>
2418 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2419 Remove spurious space in assignment.
2421 2008-08-21 Simon Josefsson <simon@josefsson.org>
2423 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
2424 Paul Eggert <eggert@CS.UCLA.EDU>.
2426 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
2428 * modules/gettext: Add m4/threadlib.m4.
2430 2008-08-19 Eric Blake <ebb9@byu.net>
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
2437 Reported by Nelson H. F. Beebe.
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
2447 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
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.
2455 strverscmp: add unit test
2456 * modules/strverscmp-tests: New file.
2457 * tests/test-strverscmp.c: Likewise.
2459 2008-08-19 Simon Josefsson <simon@josefsson.org>
2461 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
2462 regarding Windows crypto stuff, from Mono.
2464 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
2466 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
2467 if present, for intel RND. Return error on failures.
2469 2008-08-18 Ben Pfaff <blp@gnu.org>
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.
2475 2008-08-18 Simon Josefsson <simon@josefsson.org>
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>.
2480 2008-08-18 Bruno Haible <bruno@clisp.org>
2482 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
2485 2008-08-18 Bruno Haible <bruno@clisp.org>
2487 * lib/glthread/threadlib.c: Include <pthread.h>.
2489 2008-08-18 Bruno Haible <bruno@clisp.org>
2491 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
2492 glthread_recursive_lock_* macros.
2493 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
2496 2008-08-18 Bruno Haible <bruno@clisp.org>
2498 * lib/glthread/thread.c: Avoid forcing a context switch right after
2501 2008-08-17 Bruno Haible <bruno@clisp.org>
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.
2509 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
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.
2517 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
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.
2525 2008-08-17 Bruno Haible <bruno@clisp.org>
2527 * lib/glthread/lock.h: Include <stdlib.h> always.
2528 * lib/glthread/tls.h: Likewise.
2529 * lib/glthread/cond.h: Likewise.
2531 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
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.
2540 2008-08-16 Eric Blake <ebb9@byu.net>
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
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
2553 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
2554 Reported by Tom G. Christensen.
2556 2008-08-17 Bruno Haible <bruno@clisp.org>
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
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
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.
2578 2008-08-14 Bruno Haible <bruno@clisp.org>
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
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.
2600 2008-08-14 Bruno Haible <bruno@clisp.org>
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.
2616 2008-08-11 Jim Meyering <meyering@redhat.com>
2618 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
2620 2008-08-11 Eric Blake <ebb9@byu.net>
2622 test-c-stack: avoid C99-ism
2623 * tests/test-c-stack.c (main): Fix whitespace, move declaration
2625 Reported by Alain Guibert.
2627 2008-08-10 Jim Meyering <meyering@redhat.com>
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.
2634 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
2636 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
2637 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
2639 2008-08-07 Jim Meyering <meyering@redhat.com>
2641 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
2643 * modules/mkstemp (License): Relicense under LGPLv2+.
2644 * modules/tempname (License): Likewise.
2646 2008-08-06 Bruno Haible <bruno@clisp.org>
2648 * lib/poll.c (poll): Further micro-optimization.
2650 2008-08-06 Jim Meyering <meyering@redhat.com>
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.
2657 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
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.
2662 2008-08-06 Jim Meyering <meyering@redhat.com>
2664 * modules/inet_pton (License): Relicense under LGPLv2+.
2666 2008-08-03 Bruno Haible <bruno@clisp.org>
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
2733 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
2735 2008-08-04 Eric Blake <ebb9@byu.net>
2737 gnumakefile: use space, not TAB, outside of targets
2738 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
2740 2008-08-02 Jim Meyering <meyering@redhat.com>
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.
2753 2008-08-02 Bruno Haible <bruno@clisp.org>
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>.
2760 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2762 Portability fix for GNU make 3.79.1.
2763 * top/GNUmakefile: Avoid 'else COND', which older GNU make
2764 versions do not understand.
2766 2008-08-01 Bruno Haible <bruno@clisp.org>
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,
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>.
2823 2008-07-31 Jim Meyering <meyering@redhat.com>
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.
2833 2008-07-31 Bruno Haible <bruno@clisp.org>
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>.
2839 2008-07-31 Bruno Haible <bruno@clisp.org>
2841 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
2842 Reported by Paolo Bonzini <bonzini@gnu.org>.
2844 2008-07-30 Eric Blake <ebb9@byu.net>
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>.
2850 2008-07-28 Jim Meyering <meyering@redhat.com>
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.
2856 2008-07-27 Jim Meyering <meyering@redhat.com>
2858 * users.txt: Add zile.
2860 2008-07-26 Ben Pfaff <blp@gnu.org>
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.
2870 2008-07-14 Ben Pfaff <blp@gnu.org>
2873 * lib/isinf.c: New file.
2874 * lib/math.in.h: Define isinf macro if we have decided to replace
2876 * m4/isinf.m4: New file.
2877 * m4/math_h.m4: Initialize and substitute variables for isinf
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.
2886 2008-07-14 Ben Pfaff <blp@gnu.org>
2888 Factor out some macros for use by additional modules.
2889 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
2891 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
2893 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
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.
2902 2008-07-23 Ulrich Drepper <drepper@redhat.com>
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>.
2909 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
2910 readlink on platforms without PATH_MAX.
2912 2008-07-21 Eric Blake <ebb9@byu.net>
2914 Warn, not fail, on stale version.
2915 * top/GNUmakefile (_curr-ver): Tone down previous patch.
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.
2921 2008-07-20 Bruno Haible <bruno@clisp.org>
2923 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
2925 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
2927 2008-07-20 Bruno Haible <bruno@clisp.org>
2929 * lib/c-stack.h (c_stack_action): Add documentation.
2930 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
2932 2008-07-20 Bruno Haible <bruno@clisp.org>
2934 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
2935 * modules/readlink (License): Likewise.
2937 2008-07-17 Eric Blake <ebb9@byu.net>
2939 * modules/c-stack (Link): Fix typo.
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
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.
2956 2008-07-16 Eric Blake <ebb9@byu.net>
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.
2964 2008-07-14 Bruno Haible <bruno@clisp.org>
2966 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
2967 Reported by Eric Blake.
2969 2008-07-14 Sam Steingold <sds@gnu.org>
2970 Bruno Haible <bruno@clisp.org>
2972 New module libsigsegv.
2973 * modules/libsigsegv: New file.
2974 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
2976 * MODULES.html.sh (Signal handling): New section.
2978 2008-07-14 Bruno Haible <bruno@clisp.org>
2980 * modules/unictype/ctype-* (Description): Add the word "function".
2981 Improves the resulting doc in MODULES.html.
2983 2008-07-12 Ben Pfaff <blp@gnu.org>
2985 Add longlong module.
2986 * modules/longlong: New file.
2988 2008-07-12 Bruno Haible <bruno@clisp.org>
2990 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
2993 2008-07-10 Ben Pfaff <blp@gnu.org>
2996 * doc/posix-functions/isnan.texi: Mention new module.
2997 * lib/math.in.h: Define isnan macro if we have decided to replace
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
3003 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
3005 * m4/math_h.m4: Initialize and substitute variables for isnan
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.
3013 2008-07-10 Ben Pfaff <blp@gnu.org>
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
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.
3032 2008-07-10 Ben Pfaff <blp@gnu.org>
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
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
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.
3053 2008-07-10 Ben Pfaff <blp@gnu.org>
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.
3083 2008-07-11 Jim Meyering <meyering@redhat.com>
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.
3090 2008-07-10 Eric Blake <ebb9@byu.net>
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
3097 2008-07-09 Jim Meyering <meyering@redhat.com>
3099 posix-shell.m4: fix typo that made this test malfunction
3100 * m4/posix-shell.m4: Remove capitalization in variable name.
3102 2008-07-08 Bruno Haible <bruno@clisp.org>
3104 * m4/onceonly.m4: Update comments.
3105 Reported by Ben Pfaff <blp@cs.stanford.edu>.
3107 2008-07-04 Jim Meyering <meyering@redhat.com>
3109 * users.txt: Add vc-dwim.
3110 (bison, coreutils): Use the gitweb URL.
3112 2008-07-03 Jim Meyering <meyering@redhat.com>
3114 * users.txt: Add libffcall. From Sam Steingold.
3116 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
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
3124 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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,
3131 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
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.
3137 2008-07-01 Simon Josefsson <simon@josefsson.org>
3139 Add self-test for getdate module.
3140 * modules/getdate-tests: New file.
3141 * tests/test-getdate.c: New file.
3143 2008-06-29 Bruno Haible <bruno@clisp.org>
3145 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
3147 Reported by Sylvain Beucler <beuc@beuc.net>.
3149 2008-06-29 Bruno Haible <bruno@clisp.org>
3151 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
3152 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
3154 2008-06-29 Bruno Haible <bruno@clisp.org>
3156 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
3158 Reported by Sylvain Beucler <beuc@beuc.net>.
3160 2008-06-26 Jim Meyering <meyering@redhat.com>
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.
3175 2008-06-24 Andreas Schwab <schwab@suse.de>
3177 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
3178 literals can be used as initializers for global variables.
3180 2008-06-23 Eric Blake <ebb9@byu.net>
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.
3186 2008-06-23 Bruno Haible <bruno@clisp.org>
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.
3198 2008-06-23 Bruno Haible <bruno@clisp.org>
3200 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
3201 (install_handlers): Don't set the SA_RESETHAND flag.
3203 2008-06-23 Bruno Haible <bruno@clisp.org>
3205 * m4/sigaction.m4: Comment fixes.
3206 * lib/signal.in.h: Likewise.
3208 2008-06-23 Eric Blake <ebb9@byu.net>
3211 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
3213 Avoid SA_ namespace.
3214 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
3215 Reported by Ralf Wildenhues.
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.
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.
3228 2008-06-22 Bruno Haible <bruno@clisp.org>
3230 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
3232 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3234 2008-06-22 Bruno Haible <bruno@clisp.org>
3236 * doc/posix-functions/siginterrupt.texi: Move note.
3238 * lib/signal.in.h (SA_RESTART): New macro.
3239 * lib/sigaction.c: Update comment.
3241 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
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.
3247 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
3249 * lib/sigprocmask.c: Update a comment.
3251 2008-06-21 Eric Blake <ebb9@byu.net>
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
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
3269 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
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
3282 * doc/posix-headers/signal.texi (signal.h): Mention provided
3284 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
3285 that sigaction is preferable.
3286 * doc/posix-functions/sigaction.texi (sigaction): Mention new
3288 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3291 Improve robustness of sigprocmask by overriding signal.
3292 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
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.
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.
3304 Fix licensing of sigprocmask.
3305 * modules/raise (License): Relicense as LGPL.
3307 2008-06-21 Bruno Haible <bruno@clisp.org>
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>.
3313 2008-06-19 Bruno Haible <bruno@clisp.org>
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>.
3323 2008-06-19 Bruno Haible <bruno@clisp.org>
3325 * doc/Makefile (gnulib.info): Update and simplify dependencies.
3326 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3328 2008-06-19 Eric Blake <ebb9@byu.net>
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.
3334 2008-06-18 Bruno Haible <bruno@clisp.org>
3336 * lib/fatal-signal.c (init_fatal_signals): Add comment.
3337 Reported by Eric Blake.
3339 2008-06-18 Eric Blake <ebb9@byu.net>
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.
3345 2008-06-18 Simon Josefsson <simon@josefsson.org>
3347 * users.txt: Update URL to article and add author/date
3350 2008-06-17 Bruno Haible <bruno@clisp.org>
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>.
3358 2008-06-17 Bruno Haible <bruno@clisp.org>
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>.
3364 2008-06-17 Bruno Haible <bruno@clisp.org>
3366 * modules/tls (License): Change to LGPLv2+.
3367 Reported by Eric Blake.
3369 2008-06-17 Eric Blake <ebb9@byu.net>
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
3376 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
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.
3386 2008-06-16 Eric Blake <ebb9@byu.net>
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.
3396 Fix compliance bug in sigpending.
3397 * lib/sigprocmask.c (sigpending): Return pending array via
3398 parameter, not return value.
3400 2008-06-14 Eric Blake <ebb9@byu.net>
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.
3407 2008-06-14 Bruno Haible <bruno@clisp.org>
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.
3420 2008-06-13 Eric Blake <ebb9@byu.net>
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):
3428 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
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):
3434 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
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.
3443 2008-06-11 Bruno Haible <bruno@clisp.org>
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
3449 * tests/test-open.c (main): Test against trailing slash bug.
3450 * doc/posix-functions/open.texi: Mention the trailing slash bug.
3452 2008-06-10 Bruno Haible <bruno@clisp.org>
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.
3458 2008-06-10 Bruno Haible <bruno@clisp.org>
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.
3464 2008-06-10 Bruno Haible <bruno@clisp.org>
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.
3483 2008-06-10 Eric Blake <ebb9@byu.net>
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.
3490 2008-06-10 Bruno Haible <bruno@clisp.org>
3492 * lib/wait-process.c (wait_subprocess): Add an assertion.
3494 2008-06-10 Bruno Haible <bruno@clisp.org>
3496 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
3498 2008-06-10 Bruno Haible <bruno@clisp.org>
3500 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
3502 * tests/test-strcasestr.c (main): Likewise.
3503 * tests/test-strstr.c (main): Likewise.
3505 2008-06-09 Bruno Haible <bruno@clisp.org>
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.
3523 2008-06-09 Eric Blake <ebb9@byu.net>
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>.
3532 Produce autobuild blurb earlier in log.
3533 * modules/autobuild (configure.ac-early): Move AB_INIT here.
3535 2008-06-09 Jim Meyering <meyering@redhat.com>
3536 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
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
3543 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
3545 [HAVE_FUTIMENS]: Use the same work-around, here.
3547 2008-06-09 Jim Meyering <meyering@redhat.com>
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.
3553 2008-06-08 Bruno Haible <bruno@clisp.org>
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.
3560 2008-06-08 Bruno Haible <bruno@clisp.org>
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.
3569 2008-06-08 Bruno Haible <bruno@clisp.org>
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.
3578 2008-06-08 Bruno Haible <bruno@clisp.org>
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.
3586 2008-06-08 Bruno Haible <bruno@clisp.org>
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.
3592 2008-06-08 Bruno Haible <bruno@clisp.org>
3594 Add support for Solaris 7..10 ACLs.
3595 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
3597 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
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.
3603 2008-06-08 Bruno Haible <bruno@clisp.org>
3605 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
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.
3612 2008-06-08 Bruno Haible <bruno@clisp.org>
3614 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
3616 2008-06-08 Jim Meyering <meyering@redhat.com>
3618 * modules/acl (Maintainer): Add Bruno Haible.
3620 2008-06-07 Bruno Haible <bruno@clisp.org>
3622 Improve support for Tru64 ACLs.
3623 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
3626 2008-06-07 Bruno Haible <bruno@clisp.org>
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.
3634 2008-06-07 Bruno Haible <bruno@clisp.org>
3636 Fix memory leak introduced on 2008-05-22.
3637 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
3640 2008-06-07 Bruno Haible <bruno@clisp.org>
3642 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
3643 to construct an empty ACL.
3645 2008-06-07 Bruno Haible <bruno@clisp.org>
3647 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
3649 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
3651 2008-06-07 Bruno Haible <bruno@clisp.org>
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.
3656 2008-06-07 Bruno Haible <bruno@clisp.org>
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.
3664 2008-06-06 Eric Blake <ebb9@byu.net>
3666 Document abort() bugs.
3667 * doc/posix-functions/abort.texi (abort): Mention anomalies.
3669 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
3670 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
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
3676 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
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):
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):
3698 Avoid gcc warning on cygwin.
3699 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
3700 !ACL_NO_TRIVIAL]: Avoid unused variable.
3702 2008-06-05 Eric Blake <ebb9@byu.net>
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.
3709 2008-06-05 Jim Meyering <meyering@redhat.com>
3710 Paul Eggert <eggert@cs.ucla.edu>
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.
3717 2008-06-04 Bruno Haible <bruno@clisp.org>
3719 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
3722 2008-06-04 Bruno Haible <bruno@clisp.org>
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.
3729 2008-06-03 Bruno Haible <bruno@clisp.org>
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.
3738 2008-06-03 Eric Blake <ebb9@byu.net>
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.
3745 2008-06-02 Bruno Haible <bruno@clisp.org>
3747 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
3750 2008-06-02 Bruno Haible <bruno@clisp.org>
3752 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
3753 * lib/copy-acl.c (qcopy_acl): Update comment.
3755 2008-06-02 Bruno Haible <bruno@clisp.org>
3757 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
3760 2008-06-02 Bruno Haible <bruno@clisp.org>
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.
3767 2008-06-02 Bruno Haible <bruno@clisp.org>
3769 * tests/test-file-has-acl.sh: Remove unused code.
3771 2008-06-01 Bruno Haible <bruno@clisp.org>
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
3776 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
3778 2008-06-01 Bruno Haible <bruno@clisp.org>
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
3784 * modules/acl-tests (configure.ac): Remove tests now contained in
3787 2008-06-02 Jim Meyering <meyering@redhat.com>
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>.
3794 2008-06-01 Bruno Haible <bruno@clisp.org>
3796 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
3797 Reported by Voroskoi Andras <voroskoi@gmail.com>.
3799 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
3801 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
3803 2008-06-01 Bruno Haible <bruno@clisp.org>
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.
3818 2008-06-01 Bruno Haible <bruno@clisp.org>
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,
3825 2008-06-01 Bruno Haible <bruno@clisp.org>
3827 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
3829 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
3831 2008-06-01 Bruno Haible <bruno@clisp.org>
3833 * modules/rpmatch (Depends-on): Add strdup.
3835 2008-06-01 Bruno Haible <bruno@clisp.org>
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.
3841 2008-05-30 Simon Josefsson <simon@josefsson.org>
3843 * modules/autobuild (configure.ac): Call AB_INIT.
3845 2008-05-30 Simon Josefsson <simon@josefsson.org>
3847 * tests/test-getaddrinfo.c: Don't print debug messages by default.
3848 Suggested by Bruno Haible <bruno@clisp.org>.
3850 2008-05-30 Simon Josefsson <simon@josefsson.org>
3852 * tests/test-base64.c: Cast size_t to unsigned long when invoking
3853 printf. Use %lu instead of %d. Reported by Bruno Haible
3856 2008-05-29 Eric Blake <ebb9@byu.net>
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
3862 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
3864 2008-05-28 Bruno Haible <bruno@clisp.org>
3866 * modules/stpcpy (License): Change to LGPLv2+.
3867 Requested by David Lutterkort <dlutter@redhat.com>.
3869 2008-05-27 Bruno Haible <bruno@clisp.org>
3871 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
3873 Reported by Jose E. Marchesi <jemarch@gnu.org>.
3875 2008-05-27 Bruno Haible <bruno@clisp.org>
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.
3885 2008-05-26 Jim Meyering <meyering@redhat.com>
3887 sha256: do not artificially restrict buffer length to be < 2^32
3888 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
3890 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
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
3901 sha512.c: fix typo in comment
3902 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
3904 2008-05-25 Bruno Haible <bruno@clisp.org>
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.
3910 2008-05-25 Bruno Haible <bruno@clisp.org>
3912 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
3914 2008-05-25 Jim Meyering <meyering@redhat.com>
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
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.
3927 useless-if-before-free: efficiency tweak
3928 * build-aux/useless-if-before-free: Make the expression-matching
3930 Make the *outer* regexp shy, not the expr-matching one.
3932 update code-in-comment to accept cast of free arg
3933 * build-aux/useless-if-before-free: Update regexp.
3935 2008-05-25 Bruno Haible <bruno@clisp.org>
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.
3941 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
3943 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
3945 2008-05-23 Bruno Haible <bruno@clisp.org>
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.
3951 2008-05-22 Bruno Haible <bruno@clisp.org>
3953 Add support for ACLs on OSF/1.
3954 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
3956 (acl_free_text): New macro fallback.
3957 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
3959 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
3960 acl_free_text function. Require AC_C_INLINE.
3962 2008-05-22 Bruno Haible <bruno@clisp.org>
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
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.
3976 2008-05-22 Bruno Haible <bruno@clisp.org>
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.
3983 2008-05-22 Bruno Haible <bruno@clisp.org>
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.
3992 2008-05-22 Bruno Haible <bruno@clisp.org>
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.
3999 2008-05-22 Eric Blake <ebb9@byu.net>
4002 * tests/test-memcmp.c (main): Pass NULL indirectly.
4004 2008-05-21 Bruno Haible <bruno@clisp.org>
4006 Add reference doc about ACLs.
4007 * doc/acl-resources.txt: New file.
4008 * doc/acl-cygwin.txt: New file.
4010 2008-05-21 Bruno Haible <bruno@clisp.org>
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.
4016 2008-05-21 Jim Meyering <meyering@redhat.com>
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.
4024 2008-05-21 Simon Josefsson <simon@josefsson.org>
4026 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
4029 2008-05-20 Bruno Haible <bruno@clisp.org>
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.
4034 2008-05-20 Simon Josefsson <simon@josefsson.org>
4036 * modules/memcmp-tests: New file.
4037 * tests/test-memcmp.c: New file.
4039 2008-05-19 Bruno Haible <bruno@clisp.org>
4041 * modules/propername (Notice, configure.ac): Put quoted "..." into
4043 * lib/propername.h: Update comments accordingly.
4044 Reported by Eric Blake.
4046 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
4048 * modules/getpass-gnu (Depends-on): Add fseeko.
4050 2008-05-19 Simon Josefsson <simon@josefsson.org>
4052 * modules/base64-tests: New file.
4054 2008-05-19 Bo Borgerson <gigabo@gmail.com>
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.
4073 2008-05-19 Jim Meyering <meyering@redhat.com>
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.
4080 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
4082 2008-05-19 Bruno Haible <bruno@clisp.org>
4084 * doc/glibc-functions/getpass.texi: Document limits of other
4087 2008-05-19 Simon Josefsson <simon@josefsson.org>
4088 Bruno Haible <bruno@clisp.org>
4090 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
4092 2008-05-18 Bruno Haible <bruno@clisp.org>
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.
4099 2008-05-16 Jim Meyering <meyering@redhat.com>
4100 Bruno Haible <bruno@clisp.org>
4102 Avoid some warnings from "gcc -Wshadow".
4103 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
4105 2008-05-15 Eric Blake <ebb9@byu.net>
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.
4113 2008-05-15 Bruno Haible <bruno@clisp.org>
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.
4120 2008-05-15 Bruno Haible <bruno@clisp.org>
4122 * MODULES.html.sh (Internationalization functions): Remove linebreak.
4123 (Unicode string functions): Add unilbrk/*.
4124 Reported by Karl Berry.
4126 2008-05-15 Eric Blake <ebb9@byu.net>
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>.
4133 2008-05-15 Jim Meyering <meyering@redhat.com>
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.
4139 2008-05-15 Eric Blake <ebb9@byu.net>
4141 Glibc finally accepted the memmem speedup code, bugzilla #5514.
4142 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
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.
4148 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
4150 * lib/regcomp.c (optimize_utf8): Add a note on why we test
4152 (calc_first): Initialize constraint field.
4153 (duplicate_node_closure): Use it instead of special casing ANCHORS.
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
4160 2008-05-14 Bruno Haible <bruno@clisp.org>
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.
4169 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
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.
4175 2008-05-14 Jim Meyering <meyering@redhat.com>
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
4183 2008-05-14 Eric Blake <ebb9@byu.net>
4185 Avoid quadratic growth in gl_LIBSOURCES.
4186 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
4187 Suggested by Bruno Haible.
4190 * modules/xmemdup0-tests: New file.
4191 * tests/test-xmemdup0.c: Likewise.
4193 2008-05-13 Eric Blake <ebb9@byu.net>
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.
4203 2008-05-13 Eric Blake <ebb9@byu.net>
4204 Bruno Haible <bruno@clisp.org>
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
4212 <m4_foreach_w>: Move...
4213 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
4215 2008-05-13 Eric Blake <ebb9@byu.net>
4217 * gnulib-tool: Fix various comment typos.
4219 2008-05-12 Bruno Haible <bruno@clisp.org>
4221 Tailor the linebreaking algorithm.
4222 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
4224 2008-05-12 Bruno Haible <bruno@clisp.org>
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):
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):
4243 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
4245 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
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.
4254 2008-05-11 Bruno Haible <bruno@clisp.org>
4256 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
4258 2008-05-11 Bruno Haible <bruno@clisp.org>
4260 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
4261 * modules/unilbrk/gen-lbrk: New file.
4263 2008-05-11 Bruno Haible <bruno@clisp.org>
4265 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
4266 * m4/sha512.m4 (gl_SHA512): Likewise.
4268 2008-05-11 Jim Meyering <meyering@redhat.com>
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.
4282 2008-05-10 Bruno Haible <bruno@clisp.org>
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,
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.
4301 2008-05-10 Bruno Haible <bruno@clisp.org>
4303 * modules/unictype/gen-ctype: New file.
4305 2008-05-10 Jim Meyering <meyering@redhat.com>
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.
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.
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.
4319 2008-05-10 Bruno Haible <bruno@clisp.org>
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
4326 2008-05-10 Bruno Haible <bruno@clisp.org>
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
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
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.
4345 2008-05-10 Bruno Haible <bruno@clisp.org>
4347 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
4348 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
4350 * modules/unilbrk/u32-width-linebreaks-tests: New file.
4351 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
4353 * modules/unilbrk/u16-width-linebreaks-tests: New file.
4354 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
4356 * modules/unilbrk/u8-width-linebreaks-tests: New file.
4357 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
4359 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
4360 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
4362 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
4363 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
4365 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
4366 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
4368 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
4369 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
4371 2008-05-10 Bruno Haible <bruno@clisp.org>
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
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
4382 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
4384 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
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
4390 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
4392 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
4394 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
4396 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
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.
4415 2008-05-09 Eric Blake <ebb9@byu.net>
4418 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
4420 * lib/xmalloc.c (xmemdup0): New C implementation.
4422 2008-05-08 Bruno Haible <bruno@clisp.org>
4424 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
4426 2008-05-07 Eric Blake <ebb9@byu.net>
4428 Support cross-compilation of <wctype.h>.
4429 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
4432 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
4434 * build-aux/vc-list-files: Add support for bzr.
4436 2008-05-03 Jim Meyering <meyering@redhat.com>
4438 avoid failed assertion with tight malloc
4439 * tests/test-getndelim2.c: Correct an off-by-one assertion.
4441 2008-05-03 Simon Josefsson <simon@josefsson.org>
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.
4448 2008-05-02 Jim Meyering <meyering@redhat.com>
4450 avoid compilation error on FreeBSD 6
4451 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
4453 2008-05-01 Jim Meyering <meyering@redhat.com>
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.
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.
4470 2008-05-01 Bruno Haible <bruno@clisp.org>
4472 * lib/getndelim2.c (getndelim2): Fix newsize computation during
4473 reallocation. Rename 'done' to 'found_delimiter'.
4475 2008-05-01 Jim Meyering <meyering@redhat.com>
4477 vc-list-files: accommodate /bin/sh like the one from Solaris 10
4478 * build-aux/vc-list-files: Use `...`, not $(...).
4480 2008-04-30 Jim Meyering <meyering@redhat.com>
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.
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.
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.
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.
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>.
4504 2008-04-29 Eric Blake <ebb9@byu.net>
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.
4511 2008-04-29 Bruno Haible <bruno@clisp.org>
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.
4519 2008-04-29 Jim Meyering <meyering@redhat.com>
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.
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.
4529 2008-04-29 Eric Blake <ebb9@byu.net>
4532 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
4534 2008-04-29 Jim Meyering <meyering@redhat.com>
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.
4541 * m4/arpa_inet_h.m4: Remove trailing blanks.
4543 2008-04-29 Eric Blake <ebb9@byu.net>
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.
4552 2008-04-29 Bruno Haible <bruno@clisp.org>
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
4561 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4562 * modules/arpa_inet (Description): No longer only for systems that
4564 (Depends-on): Add include_next.
4565 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
4568 2008-04-29 Jim Meyering <meyering@redhat.com>
4570 * modules/mkdir (License): Re-license as LGPLv2+.
4572 2008-04-29 Bruno Haible <bruno@clisp.org>
4574 * modules/rawmemchr (Maintainer): Set to Eric.
4575 * modules/strchrnul (Maintainer): Likewise.
4577 2008-04-29 Simon Josefsson <simon@josefsson.org>
4579 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
4580 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
4582 * modules/arpa_inet (arpa/inet.h): Use them.
4584 2008-04-28 Eric Blake <ebb9@byu.net>
4587 * modules/getndelim2-tests: New file.
4588 * tests/test-getndelim2.c: Likewise.
4589 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
4591 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
4593 * MODULES.html.sh: Document new module.
4595 2008-04-20 Bruno Haible <bruno@clisp.org>
4597 * lib/c-stack.c (die): Use raise.
4598 * modules/c-stack (Depends-on): Add raise.
4600 2008-04-28 Bruno Haible <bruno@clisp.org>
4602 Expect rpmatch to be declared.
4603 * lib/yesno.c (rpmatch): Remove declaration.
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,
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
4617 * NEWS: Document the change.
4619 2008-04-28 Bruno Haible <bruno@clisp.org>
4621 Change rpmatch to use nl_langinfo when appropriate.
4622 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
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.
4632 2008-04-28 Eric Blake <ebb9@byu.net>
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
4645 * modules/strchrnul (Depends-on): Add rawmemchr.
4646 * lib/strchrnul.c (strchrnul): Optimize a corner case.
4649 * tests/test-strchrnul.c: Reindent.
4650 * lib/strchrnul.c: Likewise.
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.
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.
4666 2008-04-28 Simon Josefsson <simon@josefsson.org>
4668 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
4669 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4671 2008-04-28 Simon Josefsson <simon@josefsson.org>
4673 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
4675 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
4677 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
4679 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
4681 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
4683 * m4/inet_pton.m4: Don't check for header files.
4685 * m4/inet_ntop.m4: Don't check for header files.
4687 2008-04-28 Simon Josefsson <simon@josefsson.org>
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>.
4694 2008-04-28 Bruno Haible <bruno@clisp.org>
4696 * doc/posix-functions/strdup.texi: Mention mingw problem.
4698 2008-04-27 Bruno Haible <bruno@clisp.org>
4700 * modules/stat-time-tests (Depends-on): Add sleep.
4701 * tests/test-stat-time.c (force_unlink): New function.
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.
4707 2008-04-27 Bruno Haible <bruno@clisp.org>
4709 * lib/rpmatch.c (rpmatch): Add some comments.
4710 Reported by James Youngman <jay@gnu.org>.
4712 2008-04-27 Bruno Haible <bruno@clisp.org>
4714 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
4717 2008-04-27 Bruno Haible <bruno@clisp.org>
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.
4725 2008-04-27 Bruno Haible <bruno@clisp.org>
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.
4734 2008-04-27 Bruno Haible <bruno@clisp.org>
4736 Allow local renaming in config.h.
4737 * lib/memrchr.c (memrchr): Don't undefine outside libc.
4739 2008-04-27 Bruno Haible <bruno@clisp.org>
4741 * lib/memchr.c (__memchr): Change type of 'i'.
4742 * lib/memchr2.c (memchr2): Likewise.
4744 2008-04-26 Eric Blake <ebb9@byu.net>
4745 and Bruno Haible <bruno@clisp.org>
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.
4753 2008-04-26 Bruno Haible <bruno@clisp.org>
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
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.
4772 2008-04-26 Bruno Haible <bruno@clisp.org>
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.
4812 2008-04-26 Bruno Haible <bruno@clisp.org>
4814 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
4815 restore_seek_optimization, update_fpos_cache): New functions, extracted
4817 (rpl_fflush): Use them.
4818 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
4819 (gl_REPLACE_FFLUSH): Use it.
4821 2008-04-26 Bruno Haible <bruno@clisp.org>
4823 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
4825 * tests/test-xstrtoimax.sh: Likewise.
4826 * tests/test-xstrtoumax.sh: Likewise.
4827 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4829 2008-04-26 Bruno Haible <bruno@clisp.org>
4831 * modules/memchr-tests: New file.
4832 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
4834 2008-04-26 Eric Blake <ebb9@byu.net>
4835 Bruno Haible <bruno@clisp.org>
4837 * lib/memchr.c: Include intprops.h.
4838 (__memchr): Optimize parallel detection of matching bytes. Rename local
4839 variables. Add explanatory comments.
4841 2008-04-26 Bruno Haible <bruno@clisp.org>
4843 Fix module 'memchr', broken since 2000-10-28.
4844 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
4846 2008-04-26 Bruno Haible <bruno@clisp.org>
4848 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
4851 2008-04-25 Eric Blake <ebb9@byu.net>
4853 Use native fstatat on cygwin 1.7.0.
4854 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
4857 2008-04-23 Eric Blake <ebb9@byu.net>
4859 Improve memchr2 performance.
4860 * lib/memchr2.c (memchr2): Further optimize parallel detection of
4862 * modules/memchr2 (Depends-on): Use intprops.h.
4864 2008-04-23 Simon Josefsson <simon@josefsson.org>
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>.
4870 2008-04-23 Simon Josefsson <simon@josefsson.org>
4872 * lib/arpa_inet.in.h: New file.
4874 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
4875 (Makefile.am): Sed in substitute header file.
4877 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
4878 gl_ARPA_INET_MODULE_INDICATOR. Use them.
4880 * modules/inet_ntop (configure.ac): Use
4881 gl_ARPA_INET_MODULE_INDICATOR.
4883 * modules/inet_pton (configure.ac): Use
4884 gl_ARPA_INET_MODULE_INDICATOR.
4886 2008-04-22 Jim Meyering <meyering@redhat.com>
4888 * modules/verify (License): Re-license as LGPLv2+.
4890 2008-04-22 Simon Josefsson <simon@josefsson.org>
4892 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
4893 parameter to void* as per POSIX standard (MinGW uses char*).
4895 2008-04-21 Bruno Haible <bruno@clisp.org>
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
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.
4918 2008-04-21 Bruno Haible <bruno@clisp.org>
4920 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
4921 Patch by Alain Guibert.
4923 2008-04-21 Bruno Haible <bruno@clisp.org>
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.
4932 2008-04-21 Bruno Haible <bruno@clisp.org>
4934 Fix test failure on mingw.
4935 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
4937 2008-04-21 Bruno Haible <bruno@clisp.org>
4939 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
4940 Actually assign a value.
4942 2008-04-20 Bruno Haible <bruno@clisp.org>
4944 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
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.
4951 2008-04-20 Bruno Haible <bruno@clisp.org>
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
4964 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
4965 HAVE_DECL_MKDIR and HAVE_IO_H.
4967 2008-04-20 Bruno Haible <bruno@clisp.org>
4969 * lib/isapipe.c: Port to native Windows platforms.
4971 2008-04-20 Bruno Haible <bruno@clisp.org>
4973 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
4975 2008-04-21 Eric Blake <ebb9@byu.net>
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.
4981 2008-04-21 Simon Josefsson <simon@josefsson.org>
4983 * doc/posix-functions/strftime.texi (strftime): Explain better
4984 Windows incompatibility. Suggested by Micah Cowan
4987 2008-04-20 Bruno Haible <bruno@clisp.org>
4989 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
4992 2008-04-20 Bruno Haible <bruno@clisp.org>
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.
5001 2008-04-20 Bruno Haible <bruno@clisp.org>
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.
5007 2008-04-20 Bruno Haible <bruno@clisp.org>
5009 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
5011 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
5013 2008-04-20 Bruno Haible <bruno@clisp.org>
5015 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
5016 * modules/tsearch-tests (configure.ac): Test for initstate function.
5018 2008-04-20 Bruno Haible <bruno@clisp.org>
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.
5024 2008-04-19 Bruno Haible <bruno@clisp.org>
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
5030 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5031 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
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.
5040 2008-04-19 Bruno Haible <bruno@clisp.org>
5042 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
5043 from 0.0058 to less than 10^-7.
5045 2008-04-19 Bruno Haible <bruno@clisp.org>
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
5051 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
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>.
5062 2008-04-18 Simon Josefsson <simon@josefsson.org>
5064 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
5065 Suggested by Bruno Haible <bruno@clisp.org>.
5067 2008-04-17 Bruno Haible <bruno@clisp.org>
5069 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
5070 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
5072 Patch by Bruce Merry <bmerry@gmail.com>.
5074 2008-04-17 Simon Josefsson <simon@josefsson.org>
5076 * doc/posix-functions/strftime.texi (strftime): Mention that %e
5077 doesn't work under Windows.
5079 2008-04-16 Bruno Haible <bruno@clisp.org>
5081 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
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
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.
5095 2008-04-16 Bruno Haible <bruno@clisp.org>
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>.
5102 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
5103 Bruno Haible <bruno@clisp.org>
5105 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
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.
5111 2008-04-16 Eric Blake <ebb9@byu.net>
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.
5117 2008-04-16 Bruno Haible <bruno@clisp.org>
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>.
5133 2008-04-15 Bruno Haible <bruno@clisp.org>
5135 * modules/mathl (configure.ac): Define module indicator.
5137 2008-04-15 Bruno Haible <bruno@clisp.org>
5139 * lib/logl.c (logl): Remove unused variables.
5141 2008-04-15 Bruno Haible <bruno@clisp.org>
5143 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
5146 2008-04-15 Bruno Haible <bruno@clisp.org>
5148 * lib/trim.c (trim2): Fix argument of isspace() macro.
5150 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
5152 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
5154 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
5156 2008-04-14 Bruno Haible <bruno@clisp.org>
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.
5180 2008-04-14 Jim Meyering <meyering@redhat.com>
5182 test-strtod: fix typos: s/abs/fabs/
5183 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
5185 2008-04-13 Bruno Haible <bruno@clisp.org>
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.
5191 2008-04-13 Bruno Haible <bruno@clisp.org>
5193 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
5195 2008-04-13 Bruno Haible <bruno@clisp.org>
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.
5201 2008-04-13 Bruno Haible <bruno@clisp.org>
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.
5209 2008-04-13 Bruno Haible <bruno@clisp.org>
5211 Make test-signbit pass on HP-UX/hppa.
5212 * tests/test-signbit.c (minus_zerol): New variable.
5213 (test_signbitl): Use it.
5215 2008-04-13 Bruno Haible <bruno@clisp.org>
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
5223 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
5225 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
5227 2008-04-13 Bruno Haible <bruno@clisp.org>
5229 * lib/unictype.h: Remove trailing comma from enumeration definitions.
5231 2008-04-13 Bruno Haible <bruno@clisp.org>
5233 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
5234 expression, so as to avoid HP-UX 11 cc compiler bug.
5236 2008-04-13 Bruno Haible <bruno@clisp.org>
5238 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
5240 2008-04-13 Bruno Haible <bruno@clisp.org>
5242 * lib/git-merge-changelog.c: Remove empty declaration outside of
5245 2008-04-13 Bruno Haible <bruno@clisp.org>
5247 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
5249 2008-04-13 Bruno Haible <bruno@clisp.org>
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>.
5258 2008-04-13 Bruno Haible <bruno@clisp.org>
5260 * lib/localcharset.c (OS2): Don't redefine if already defined.
5261 Reported by Elbert Pol <e.pol@chello.nl>.
5263 2008-04-13 Bruno Haible <bruno@clisp.org>
5265 * lib/binary-io.h [__EMX__]: Include <io.h>.
5266 Reported by Elbert Pol <e.pol@chello.nl>.
5268 2008-04-12 Bruno Haible <bruno@clisp.org>
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>.
5274 2008-04-12 Bruno Haible <bruno@clisp.org>
5276 * tests/test-strtod.c: Include isnand.h.
5277 (main): Use isnand instead of isnan.
5278 Reported by Jim Meyering.
5280 2008-04-12 Bruno Haible <bruno@clisp.org>
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>.
5285 2008-04-12 Jim Meyering <meyering@redhat.com>
5287 * m4/math_h.m4 (gl_MATH_H): Fix typos.
5289 2008-04-12 Bruno Haible <bruno@clisp.org>
5291 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
5292 Reported by Elbert Pol <e.pol@chello.nl>.
5294 2008-04-12 Eric Blake <ebb9@byu.net>
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.
5306 2008-04-11 Bruno Haible <bruno@clisp.org>
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>.
5312 2008-04-11 Bruno Haible <bruno@clisp.org>
5314 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
5316 2008-04-11 Bruno Haible <bruno@clisp.org>
5318 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
5320 * modules/getaddrinfo-tests (Makefile.am): Define
5321 test_getaddrinfo_LDADD.
5323 2008-04-11 Bruno Haible <bruno@clisp.org>
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
5330 2008-04-11 Bruno Haible <bruno@clisp.org>
5332 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
5333 * modules/glob (Depends-on): Add stdbool.
5335 2008-04-11 Bruno Haible <bruno@clisp.org>
5337 * lib/trim.c: Include <string.h>.
5339 2008-04-11 Eric Blake <ebb9@byu.net>
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.
5346 2008-04-11 Bruno Haible <bruno@clisp.org>
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.
5545 2008-04-11 Bruno Haible <bruno@clisp.org>
5547 * lib/wchar.in.h: Tweak comment.
5549 2008-04-11 Bruno Haible <bruno@clisp.org>
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
5554 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
5556 2008-04-11 Bruno Haible <bruno@clisp.org>
5558 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
5560 2008-04-11 Simon Josefsson <simon@josefsson.org>
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>.
5567 2008-04-08 Bruno Haible <bruno@clisp.org>
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.
5583 2008-04-09 Eric Blake <ebb9@byu.net>
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.
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/.
5601 2008-04-08 Eric Blake <ebb9@byu.net>
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*'
5607 2008-04-08 Bruno Haible <bruno@clisp.org>
5609 Add tentative support for OpenServer.
5610 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
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>.
5625 2008-04-06 Jim Meyering <meyering@redhat.com>
5627 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
5629 2008-04-06 Bruno Haible <bruno@clisp.org>
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.
5638 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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>.
5644 2008-04-04 Eric Blake <ebb9@byu.net>
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.
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.
5656 2008-04-04 Bruno Haible <bruno@clisp.org>
5658 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
5661 2008-04-03 Eric Blake <ebb9@byu.net>
5663 Ensure sane .version contents.
5664 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
5666 * build-aux/git-version-gen: Improve documentation.
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.
5673 Another maintainer tweak.
5674 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
5675 a target that regenerates version.
5677 2008-04-03 Jim Meyering <meyering@redhat.com>
5679 vc-list-files: don't cause coreutils "make po-check" failure
5680 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
5682 2008-04-03 Eric Blake <ebb9@byu.net>
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.
5689 2008-04-02 Bruno Haible <bruno@clisp.org>
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.
5695 2008-04-02 Jim Meyering <meyering@redhat.com>
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.
5701 2008-04-03 Jim Meyering <meyering@redhat.com>
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/).
5708 2008-04-02 Bruno Haible <bruno@clisp.org>
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.
5717 2008-04-01 Bruno Haible <bruno@clisp.org>
5719 Fix test to work on IRIX 6.5 with cc.
5720 * tests/test-math.c (numeric_equal): New function.
5723 2008-04-01 Bruno Haible <bruno@clisp.org>
5725 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
5727 2008-04-01 Bruno Haible <bruno@clisp.org>
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.
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.
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.
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.
5753 * tests/test-round1.c: Include nan.h.
5754 (main): Use NaNd instead of NAN.
5755 * modules/round-tests (Files): Add tests/nan.h.
5757 * tests/test-trunc1.c: Include nan.h.
5758 (main): Use NaNd instead of NAN.
5759 * modules/trunc-tests (Files): Add tests/nan.h.
5761 * tests/test-roundf1.c: Include nan.h.
5762 (main): Use NaNf instead of NAN.
5763 * modules/roundf-tests (Files): Add tests/nan.h.
5765 * tests/test-truncf1.c: Include nan.h.
5766 (main): Use NaNf instead of NAN.
5767 * modules/truncf-tests (Files): Add tests/nan.h.
5769 * tests/test-ceilf1.c: Include nan.h.
5770 (main): Use NaNf instead of NAN.
5771 * modules/ceilf-tests (Files): Add tests/nan.h.
5773 * tests/test-floorf1.c: Include nan.h.
5774 (main): Use NaNf instead of NAN.
5775 * modules/floorf-tests (Files): Add tests/nan.h.
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.
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.
5785 * tests/test-frexp.c: Include nan.h.
5786 (main): Use NaNd instead of NAN.
5787 * modules/frexp-tests (Files): Add tests/nan.h.
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.
5796 * tests/nan.h: New file.
5798 2008-04-01 Eric Blake <ebb9@byu.net>
5801 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
5802 values to be the right type.
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
5810 2008-03-31 Eric Blake <ebb9@byu.net>
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.
5841 2008-03-31 Bruno Haible <bruno@clisp.org>
5843 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
5844 * doc/posix-functions/strtod.texi: Likewise.
5846 2008-03-31 Bruno Haible <bruno@clisp.org>
5848 * tests/test-strtod.c (main): Don't use C99 syntax.
5850 2008-03-31 Bruno Haible <bruno@clisp.org>
5852 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
5853 Reported by Eric Blake.
5855 2008-03-31 Jim Meyering <meyering@redhat.com>
5857 Don't compare actual signbit return values.
5858 * tests/test-strtod.c (main): Rather, compare only their
5859 zero/non-zero nature.
5861 2008-03-31 Eric Blake <ebb9@byu.net>
5863 More strtod documentation.
5864 * doc/posix-functions/strtod.texi (strtod): Interpret more test
5865 failures as distinct bugs.
5867 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
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>.
5873 2008-03-30 Bruno Haible <bruno@clisp.org>
5875 * tests/test-strtod.c: Add comments about which assertion fails on which
5877 * doc/posix-functions/strtod.texi: Add info about many more platforms.
5879 2008-03-30 Eric Blake <ebb9@byu.net>
5881 Test signbit behavior on zeros.
5882 * tests/test-signbit.c (test_signbitf): Add tests for zero.
5883 (test_signbitd, test_signbitl): Likewise.
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
5890 Reported by Jim Meyering.
5892 2008-03-30 Bruno Haible <bruno@clisp.org>
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.
5897 2008-03-30 Bruno Haible <bruno@clisp.org>
5899 Avoid failure when attempting to return empty iconv results on some
5901 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
5902 allocation, don't report ENOMEM when the resulting string is empty.
5904 2008-03-30 Bruno Haible <bruno@clisp.org>
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.
5911 2008-03-30 Eric Blake <ebb9@byu.net>
5914 * lib/strtod.c (strtod): Avoid compiler warnings.
5915 Reported by Jim Meyering.
5917 2008-03-30 Bruno Haible <bruno@clisp.org>
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.
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.
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.
5946 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
5947 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
5949 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
5950 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
5952 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
5953 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
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.
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.
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.
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.
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.
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.
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.
5999 * lib/poll.c (EOVERFLOW): Remove fallback.
6000 * modules/poll (Depends-on): Add EOVERFLOW.
6002 * lib/getugroups.c (EOVERFLOW): Remove fallback.
6003 * modules/getugroups (Depends-on): Add EOVERFLOW.
6005 * lib/getdelim.c (EOVERFLOW): Remove fallback.
6006 * modules/getdelim (Depends-on): Add EOVERFLOW.
6008 * lib/ftell.c (EOVERFLOW): Remove fallback.
6009 * modules/ftell (Depends-on): Add EOVERFLOW.
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.
6015 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
6017 * modules/EOVERFLOW-tests: New file.
6018 * tests/test-EOVERFLOW.c: New file.
6020 * modules/EOVERFLOW: New file.
6021 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
6023 2008-03-30 Bruno Haible <bruno@clisp.org>
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.
6029 2008-03-30 Bruno Haible <bruno@clisp.org>
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
6036 * modules/freadseek (Depends-on): Add freadahead.
6037 (configure.ac): Require AC_C_INLINE.
6039 2008-03-30 Bruno Haible <bruno@clisp.org>
6041 * lib/freadseek.c (freadseek): Don't ignore the return value of
6044 2008-03-29 Eric Blake <ebb9@byu.net>
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
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.
6071 2008-03-29 Eric Blake <ebb9@byu.net>
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.
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
6086 * tests/test-fflush2.c (main): Fix typo.
6088 2008-03-29 Bruno Haible <bruno@clisp.org>
6090 * tests/test-fflush2.c (main): Temporarily disable the contents of
6092 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
6093 Reported by Eric Blake.
6095 2008-03-28 Simon Josefsson <simon@josefsson.org>
6097 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
6098 (GC_SHA224_DIGEST_SIZE): Add.
6100 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
6101 (gc_hash_digest_length): Likewise.
6102 (gc_hash_buffer): Likewise.
6104 2008-03-25 Bruno Haible <bruno@clisp.org>
6106 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
6107 detail which gettext release to use.
6108 Reported by Simon Josefsson.
6110 2008-03-26 Jim Meyering <meyering@redhat.com>
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.
6116 gnumakefile: Don't double-quote-expand $(VPATH) value.
6117 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
6119 2008-03-24 Eric Blake <ebb9@byu.net>
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
6131 2008-03-23 Bruno Haible <bruno@clisp.org>
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.
6140 2008-03-23 Bruno Haible <bruno@clisp.org>
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>.
6147 2008-03-23 Bruno Haible <bruno@clisp.org>
6149 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
6151 2008-03-23 Eric Blake <ebb9@byu.net>
6152 Bruno Haible <bruno@clisp.org>
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.
6160 2008-03-23 Bruno Haible <bruno@clisp.org>
6162 Tweak "gnulib --version" output.
6163 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
6165 2008-03-23 Bruno Haible <bruno@clisp.org>
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.
6171 2008-03-21 Eric Blake <ebb9@byu.net>
6173 More --version tweaks.
6174 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
6175 date of last ChangeLog entry.
6177 2008-03-21 Jim Meyering <meyering@redhat.com>
6179 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
6181 2008-03-20 Eric Blake <ebb9@byu.net>
6184 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
6186 2008-03-20 Simon Josefsson <simon@josefsson.org>
6188 * build-aux/GNUmakefile: Make git-version-gen optional. Add
6189 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
6191 2008-03-20 Eric Blake <ebb9@byu.net>
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
6200 (maint-cfg.mk): Rename...
6201 (cfg.mk): ...to this.
6203 2008-03-18 Jim Meyering <meyering@redhat.com>
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.
6210 2008-03-15 Jim Meyering <meyering@redhat.com>
6213 * lib/sha1.c, lib/md5.c: 63 != ~63.
6214 Reported by Andreas Schwab.
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.
6221 2008-03-14 Eric Blake <ebb9@byu.net>
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.
6227 Fix 'gnulib-tool --version' output to work with git.
6228 * gnulib-tool (func_gnulib_dir): New function, extracted from...
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
6235 2008-03-12 Jim Meyering <meyering@redhat.com>
6237 Recognize optional cast of the argument to free.
6238 * build-aux/useless-if-before-free: Update regexps.
6240 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
6242 2008-03-11 Bruno Haible <bruno@clisp.org>
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>.
6251 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
6253 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
6256 2008-03-11 Bruno Haible <bruno@clisp.org>
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.
6262 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
6263 Bruno Haible <bruno@clisp.org>
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.
6274 2008-03-10 Bruno Haible <bruno@clisp.org>
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>.
6280 2008-03-10 Bruno Haible <bruno@clisp.org>
6282 * modules/stdlib (Depends-on): Add include_next, remove
6285 2008-03-09 Bruno Haible <bruno@clisp.org>
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.
6293 2008-03-09 Bruno Haible <bruno@clisp.org>
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
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.
6310 2008-03-09 Bruno Haible <bruno@clisp.org>
6312 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
6313 Report and solution by Simon Josefsson.
6315 2008-03-06 Bruno Haible <bruno@clisp.org>
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.
6326 2008-03-06 Eric Blake <ebb9@byu.net>
6328 Likewise for ftello.
6329 * modules/ftello (Dependencies): Add extensions.
6330 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
6332 2008-03-06 Bruno Haible <bruno@clisp.org>
6334 * modules/fseeko (Dependencies): Add extensions.
6335 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
6336 Needed on glibc systems.
6338 2008-03-06 Bruno Haible <bruno@clisp.org>
6340 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
6342 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6344 2008-03-06 Bruno Haible <bruno@clisp.org>
6346 * users.txt: Add libgnupdf.
6348 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
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.
6355 2008-03-06 Bruno Haible <bruno@clisp.org>
6357 * doc/gnulib-tool.texi (VCS Issues): Small updates.
6358 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6360 2008-03-06 Bruno Haible <bruno@clisp.org>
6362 * doc/func.texi: New file, extracted from doc/gnulib.texi.
6363 * doc/gnulib.texi: Include it.
6365 2008-03-06 Simon Josefsson <simon@josefsson.org>
6367 * modules/func (License): Change license to unlimited; there was
6368 no LGPL parts in the module anyway.
6370 2008-03-06 Simon Josefsson <simon@josefsson.org>
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>.
6379 2008-03-06 Simon Josefsson <simon@josefsson.org>
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>.
6385 * tests/test-__func__.c (main): Avoid extraneous () around __func.
6386 Suggested by Eric Blake <ebb9@byu.net>.
6388 2008-03-06 Simon Josefsson <simon@josefsson.org>
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.
6396 2008-03-05 Simon Josefsson <simon@josefsson.org>
6398 * modules/byteswap (License): Re-license as LGPLv2+.
6400 2008-03-05 Simon Josefsson <simon@josefsson.org>
6402 * doc/Makefile: Add pdf target.
6404 2008-03-05 Simon Josefsson <simon@josefsson.org>
6406 * modules/inline (License): Use 'unlimited', since there are only
6407 *.m4 files in this module.
6409 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
6410 Bruno Haible <bruno@clisp.org>
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.
6415 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
6417 Update VMS specifics.
6418 * lib/getopt.c [VMS]: Remove include of unixlib.h.
6420 2008-03-02 Jim Meyering <meyering@redhat.com>
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.
6426 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
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.
6450 * build-aux/git-version-gen: Adjust a comment and the Usage string.
6452 bootstrap: sync from coreutils again
6453 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
6455 2008-03-01 Jim Meyering <meyering@redhat.com>
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.
6461 2008-03-01 Eric Blake <ebb9@byu.net>
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
6467 Reported by Bruce Korb.
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.
6477 2008-02-29 Bruno Haible <bruno@clisp.org>
6479 * modules/freadseek-tests: New file.
6480 * tests/test-freadseek.sh: New file.
6481 * tests/test-freadseek.c: New file.
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.
6489 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
6491 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
6494 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
6495 program_invocation_name and program_invocation_short_name are
6498 2008-02-28 Bruno Haible <bruno@clisp.org>
6500 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
6501 * tests/test-freadptr.sh: Also test non-seekable stdin.
6503 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
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.
6510 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
6512 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
6514 2008-02-28 Bruno Haible <bruno@clisp.org>
6516 * modules/freadptr-tests: New file.
6517 * tests/test-freadptr.sh: New file.
6518 * tests/test-freadptr.c: New file.
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.
6526 2008-02-26 Karl Berry <karl@freefriends.org>
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>.
6533 2008-02-22 Bruno Haible <bruno@clisp.org>
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>.
6541 2008-02-24 Bruno Haible <bruno@clisp.org>
6543 * modules/environ-tests: New file.
6544 * tests/test-environ.c: New file.
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
6552 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
6554 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
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
6568 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
6569 (gl_PREREQ_UNSETENV): Likewise.
6571 2008-02-24 Bruno Haible <bruno@clisp.org>
6573 * doc/posix-functions/environ.texi: Document the MacOS X problem.
6575 2008-02-20 Bob Proulx <bob@proulx.com>
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.
6582 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
6584 * lib/fts.c (fts_build): Typo correction to comment.
6586 2008-02-17 Bruno Haible <bruno@clisp.org>
6588 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
6589 generating no-op conflicts.
6591 2008-02-17 Bruno Haible <bruno@clisp.org>
6594 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
6595 result_entries, rather than an index-based loop.
6597 2008-02-17 Bruno Haible <bruno@clisp.org>
6600 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
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.
6606 2008-02-17 Bruno Haible <bruno@clisp.org>
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
6612 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
6614 2008-02-17 Bruno Haible <bruno@clisp.org>
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.
6624 2008-02-17 Bruno Haible <bruno@clisp.org>
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.
6631 2008-02-16 Eric Blake <ebb9@byu.net>
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
6640 (compare_strings): Test new string.
6642 2008-02-13 Eric Blake <ebb9@byu.net>
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.
6650 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
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.
6656 2008-02-13 Jim Meyering <meyering@redhat.com>
6657 and Eric Blake <ebb9@byu.net>
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.
6665 2008-02-12 Eric Blake <ebb9@byu.net>
6667 Silence warning in last patch.
6668 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
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
6678 * modules/quotearg-tests: New module.
6679 * tests/test-quotearg.c: New test.
6681 2008-02-07 Eric Blake <ebb9@byu.net>
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
6688 (quotearg_buffer_restyled): Handle new flag to elide outer
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
6699 (quoting_options_from_style): Default flags correctly.
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
6708 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
6709 (quotearg_colon_mem): New functions.
6711 2008-02-11 Bruno Haible <bruno@clisp.org>
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>.
6717 2008-02-11 Bruno Haible <bruno@clisp.org>
6719 * .gitattributes: New file.
6721 2008-02-11 Jim Meyering <meyering@redhat.com>
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.
6727 * build-aux/useless-if-before-free: Close stdout carefully.
6729 2008-02-10 Bruno Haible <bruno@clisp.org>
6731 New module 'git-merge-changelog'.
6732 * modules/git-merge-changelog: New file.
6733 * lib/git-merge-changelog.c: New file.
6735 2008-02-10 Jim Meyering <meyering@redhat.com>
6737 useless-if-before-free: New option: --list (-l).
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.
6744 2008-02-10 Bruno Haible <bruno@clisp.org>
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):
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.
6766 2008-02-10 Bruno Haible <bruno@clisp.org>
6768 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
6769 Needed when ELEMENT is #defined to 'some_type *'.
6771 2008-02-10 Jim Meyering <meyering@redhat.com>
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.
6778 * build-aux/gitlog-to-changelog: Use committer date, not author date.
6780 xstrtol_error: Fix typo.
6781 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
6782 s/exit_failure/exit_status/.
6784 2008-02-09 Jim Meyering <meyering@redhat.com>
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.
6791 2008-02-08 Jim Meyering <meyering@redhat.com>
6793 Avoid two "parameter unused" warnings.
6794 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
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".
6802 2008-02-07 Bruno Haible <bruno@clisp.org>
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>.
6809 2008-02-06 Bruno Haible <bruno@clisp.org>
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
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>.
6841 2008-02-06 Bruno Haible <bruno@clisp.org>
6843 Fix bug introduced on 2008-01-26.
6844 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
6846 2008-02-06 Bruno Haible <bruno@clisp.org>
6848 Fix bug introduced on 2007-06-10.
6849 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
6850 !NEED_PRINTF_FLAG_ZERO.
6852 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
6854 getloadavg: use libperfstat on AIX5
6855 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
6857 2008-02-03 Bruno Haible <bruno@clisp.org>
6859 * lib/diffseq.h: Add comments about required #includes.
6860 Reported by Michael Biggs <gnulib@doubleplum.net>.
6862 2008-02-01 Bruno Haible <bruno@clisp.org>
6864 * users.txt: Add gnuit.
6866 2008-01-31 Bruno Haible <bruno@clisp.org>
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.
6875 2008-01-31 Jim Meyering <meyering@redhat.com>
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.
6882 2008-01-31 Simon Josefsson <simon@josefsson.org>
6884 * tests/test-sha1.c: New file, based on test-md5.c.
6886 * modules/crypto/sha1-tests: New file.
6888 2008-01-31 Simon Josefsson <simon@josefsson.org>
6890 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
6892 2008-01-31 Jim Meyering <meyering@redhat.com>
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.
6899 2008-01-31 Simon Josefsson <simon@josefsson.org>
6901 * lib/sha1.c (set_uint32): Mark function as static.
6903 2008-01-31 Simon Josefsson <simon@josefsson.org>
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.
6910 2008-01-31 Simon Josefsson <simon@josefsson.org>
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.
6918 2008-01-31 Simon Josefsson <simon@josefsson.org>
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.
6926 2008-01-30 Peter Palfrader <weasel@debian.org>
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
6932 (sha1_finish_ctx): Remove comment warning about alignment constraint.
6933 * lib/sha1.h: Likewise.
6935 2008-01-30 Andreas Schwab <schwab@suse.de>
6936 Bruno Haible <bruno@clisp.org>
6938 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
6939 correct definition of LDBL_MIN_EXP.
6941 2008-01-30 Karl Berry <karl@gnu.org>
6943 * config/srclist-update: try to preserve x bit on updates.
6944 * config/srclistvars.sh: update for karl.
6946 2008-01-29 Jim Meyering <meyering@redhat.com>
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.
6953 2008-01-26 Bruno Haible <bruno@clisp.org>
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>.
6961 2008-01-26 Bruno Haible <bruno@clisp.org>
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.
6966 2008-01-26 Bruno Haible <bruno@clisp.org>
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.
6972 2008-01-26 Bruno Haible <bruno@clisp.org>
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
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
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
7038 * NEWS: Mention the change.
7040 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
7041 Bruno Haible <bruno@clisp.org>
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.
7052 2008-01-25 Jim Meyering <meyering@redhat.com>
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.
7058 2008-01-25 Simon Josefsson <simon@josefsson.org>
7060 * modules/sockets-tests: New file.
7062 2008-01-24 Simon Josefsson <simon@josefsson.org>
7064 * modules/sockets: New module, can be used to call WSA_Startup and
7065 WSA_Cleanup when needed.
7067 * lib/sockets.h, lib/sockets.c: New files.
7069 * m4/sockets.m4: New file.
7071 * tests/test-sockets.c: New file.
7073 2008-01-19 Bruno Haible <bruno@clisp.org>
7075 * doc/posix-headers: Renamed from doc/headers.
7076 * doc/posix-functions: Renamed from doc/functions.
7077 * doc/gnulib.texi: Update.
7079 2008-01-19 Bruno Haible <bruno@clisp.org>
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.
7085 2008-01-19 Bruno Haible <bruno@clisp.org>
7087 * doc/glibc-functions/memmem.texi: Include contents of
7088 doc/functions/memmem.texi.
7089 * doc/functions/memmem.texi: Remove file.
7091 2008-01-18 Bruno Haible <bruno@clisp.org>
7093 * doc/glibc-functions/*.texi: New files.
7094 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
7095 to use the new files.
7097 2008-01-17 Bruno Haible <bruno@clisp.org>
7099 * tests/test-gethostname.c (main): Fix printf statement.
7101 2008-01-17 Simon Josefsson <simon@josefsson.org>
7103 * modules/gethostname-tests: New file.
7105 * tests/test-gethostname.c: New file.
7107 2008-01-17 Simon Josefsson <simon@josefsson.org>
7109 * lib/gethostname.c: Include string.h unconditionally, strncpy is
7110 used by the UNAME case. Reported by Bruno Haible
7113 2008-01-17 Eric Blake <ebb9@byu.net>
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.
7121 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
7123 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
7124 Use it in creating po/Makevars.
7126 2008-01-15 Simon Josefsson <simon@josefsson.org>
7128 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
7129 Applications that requires it should initialize libgcrypt
7132 2008-01-16 Simon Josefsson <simon@josefsson.org>
7134 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
7136 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
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.
7144 2008-01-15 Bruno Haible <bruno@clisp.org>
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>.
7151 2008-01-14 Eric Blake <ebb9@byu.net>
7153 Touch up previous patch.
7154 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
7155 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
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
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.
7176 2008-01-14 Colin Watson <cjwatson@debian.org>
7177 Bruno Haible <bruno@clisp.org>
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
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.
7188 2008-01-14 Bruno Haible <bruno@clisp.org>
7190 * modules/strsignal (Include): Change to <string.h>.
7192 2008-01-14 Colin Watson <cjwatson@debian.org>
7194 * modules/argp (Notice): Add a notice recommending to change
7196 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
7198 2008-01-13 Colin Watson <cjwatson@debian.org>
7200 * modules/strsignal-tests: New file.
7201 * tests/test-strsignal.c: New file.
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.
7213 2008-01-13 Bruno Haible <bruno@clisp.org>
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.
7220 2008-01-13 Bruno Haible <bruno@clisp.org>
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.
7238 2008-01-12 Bruno Haible <bruno@clisp.org>
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.
7272 2008-01-12 Jim Meyering <meyering@redhat.com>
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
7282 * build-aux/announce-gen: Also check for lzma-compressed files.
7284 2008-01-11 Bruno Haible <bruno@clisp.org>
7286 * tests/test-memmem.c (main): Increase maximum allowed time.
7287 * tests/test-strstr.c (main): Likewise.
7289 2008-01-11 Bruno Haible <bruno@clisp.org>
7291 * doc/functions/memmem.texi: Add more precisions about platforms.
7292 * doc/functions/strstr.texi: Likewise.
7294 2008-01-10 Eric Blake <ebb9@byu.net>
7296 * m4/strstr.m4: Delete cruft from copy-n-paste.
7297 Reported by Bruno Haible.
7299 2008-01-10 Bruno Haible <bruno@clisp.org>
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.
7307 2008-01-10 Bruno Haible <bruno@clisp.org>
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.
7318 2008-01-10 Eric Blake <ebb9@byu.net>
7320 * lib/relocatable.h: Fix a comment.
7322 2008-01-10 Eric Blake <ebb9@byu.net>
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.
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.
7344 2008-01-10 Bruno Haible <bruno@clisp.org>
7346 * lib/relocatable.h (relocate): State whether result is freshly
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>.
7352 2008-01-10 Colin Watson <cjwatson@debian.org>
7354 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
7357 2008-01-09 Bruno Haible <bruno@clisp.org>
7359 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
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.
7365 2008-01-09 Bruno Haible <bruno@clisp.org>
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.
7375 2008-01-09 Bruno Haible <bruno@clisp.org>
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.
7382 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
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.
7389 2008-01-09 Simon Josefsson <simon@josefsson.org>
7390 and Eric Blake <ebb9@byu.net>
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.
7402 2008-01-09 Eric Blake <ebb9@byu.net>
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.
7409 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7411 Support AIX 6.1 and higher.
7412 * build-aux/config.libpath: Likewise.
7413 * build-aux/config.rpath: Likewise.
7415 2008-01-08 Jim Meyering <meyering@redhat.com>
7416 Bruno Haible <bruno@clisp.org>
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>.
7423 2008-01-08 Bruno Haible <bruno@clisp.org>
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.
7436 2008-01-08 Bruno Haible <bruno@clisp.org>
7438 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
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>.
7444 2008-01-08 Eric Blake <ebb9@byu.net>
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.
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.
7459 2008-01-08 Bruno Haible <bruno@clisp.org>
7461 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
7464 2008-01-08 Mike Frysinger <vapier@gentoo.org>
7466 Add a configure time option: --disable-acl.
7467 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
7470 2008-01-06 Simon Josefsson <simon@josefsson.org>
7472 * tests/test-localename.c: Don't include obsolete "setenv.h".
7474 * modules/localename-tests (Depends-on): Need unsetenv.
7476 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7478 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
7480 2008-01-06 Colin Watson <cjwatson@debian.org>
7482 * users.txt: Add man-db.
7484 2008-01-07 Bruno Haible <bruno@clisp.org>
7486 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
7487 previous section name.
7489 2008-01-07 Bruno Haible <bruno@clisp.org>
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.
7495 2008-01-01 Sylvain Beucler <beuc@gnu.org>
7496 Bruno Haible <bruno@clisp.org>
7498 Improve memory cleanup in 'relocatable' module.
7499 * lib/relocatable.h (compute_curr_prefix): Change return type to
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.
7506 2008-01-01 Bruno Haible <bruno@clisp.org>
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>.
7512 2008-01-05 Eric Blake <ebb9@byu.net>
7514 Avoid quadratic system memmem.
7515 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
7516 Reported by Ralf Wildenhues.
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
7522 * doc/functions/memmem.texi: New file.
7523 * doc/gnulib.texi (Function Substitutes): Add memmem.
7524 Reported by Bruno Haible.
7526 2008-01-04 Bruno Haible <bruno@clisp.org>
7528 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
7529 Require gl_HEADER_STRINGS_H_DEFAULTS, not
7530 gl_HEADER_STRING_H_DEFAULTS.
7532 2008-01-04 Eric Blake <ebb9@byu.net>
7534 Shorten duration of memmem test.
7535 * tests/test-memmem.c (main): Use alarm to declare failure if test
7537 Reported by Ralf Wildenhues.
7539 2007-12-21 Simon Josefsson <simon@josefsson.org>
7541 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
7542 string, needed by strerror.
7544 2008-01-03 Colin Watson <cjwatson@debian.org>
7545 Bruno Haible <bruno@clisp.org>
7547 * doc/gnulib-tool.texi (Localization): New section.
7549 2008-01-02 Bruno Haible <bruno@clisp.org>
7551 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
7552 variables to 'unsigned char *' type.
7553 Reported by Paul Eggert.
7555 2008-01-02 Jim Meyering <jim@meyering.net>
7557 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
7559 2007-12-31 Jim Meyering <jim@meyering.net>
7561 Avoid use of private FTS type name.
7562 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
7564 2007-12-30 Karl Berry <karl@gnu.org>
7566 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
7567 work around defect in Texinfo and/or the standalone Info browser.
7569 2007-12-30 Bruno Haible <bruno@clisp.org>
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.
7593 2007-12-30 Bruno Haible <bruno@clisp.org>
7595 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
7598 2007-12-30 Bruno Haible <bruno@clisp.org>
7600 * lib/xmalloca.h: Include xalloc.h.
7601 (xnmalloca): New macro.
7603 2007-12-30 Bruno Haible <bruno@clisp.org>
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.
7615 2007-12-25 Bruno Haible <bruno@clisp.org>
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.
7626 2007-12-31 Bruno Haible <bruno@clisp.org>
7628 * modules/dirfd (License): Change to LGPLv2+.
7629 Approved by Jim Meyering.
7631 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
7633 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
7634 when multiplying M by sizeof (size_t).
7636 2007-12-10 Martin Lambers <marlam@marlam.de>
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.
7647 2007-12-25 Bruno Haible <bruno@clisp.org>
7649 * modules/localcharset (Notice): New field.
7650 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
7651 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7653 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
7654 Bruno Haible <bruno@clisp.org>
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
7675 * modules/verror (Description): Likewise.
7676 Reported by Karl Berry.
7678 2007-12-25 Bruno Haible <bruno@clisp.org>
7680 Fixup after 2007-10-16 commit.
7681 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
7683 2007-12-24 Bruno Haible <bruno@clisp.org>
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>.
7692 2007-12-24 Bruno Haible <bruno@clisp.org>
7694 Fix link error due to xalloc_die().
7695 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
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
7701 Reported by Левашев Иван <octagram@bluebottle.com>.
7703 2007-12-24 Bruno Haible <bruno@clisp.org>
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
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
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>.
7737 2007-12-23 Bruno Haible <bruno@clisp.org>
7739 * lib/memmem.c (memmem): Use lowercase variable names. Tab
7742 2007-12-23 Bruno Haible <bruno@clisp.org>
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.
7751 2007-12-23 Bruno Haible <bruno@clisp.org>
7753 * tests/test-memmem.c: Include <string.h> first.
7755 2007-12-22 Bruno Haible <bruno@clisp.org>
7757 * gnulib-tool (func_create_testdir): Change $auxdir while generating
7758 the contents of $testsbase.
7759 Reported by Ralf Wildenhues.
7761 2007-12-22 Bruno Haible <bruno@clisp.org>
7763 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
7764 two variables local_ldadd_before, local_ldadd_last.
7766 2007-12-20 Eric Blake <ebb9@byu.net>
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.
7772 2007-12-19 Eric Blake <ebb9@byu.net>
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
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
7790 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
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>.
7798 2007-12-17 Eric Blake <ebb9@byu.net>
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.
7809 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
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.
7814 2007-12-17 Jim Meyering <meyering@redhat.com>
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.
7822 2007-12-17 Bruno Haible <bruno@clisp.org>
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.
7827 2007-12-15 Jim Meyering <meyering@redhat.com>
7829 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
7831 2007-12-13 Eric Blake <ebb9@byu.net>
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
7839 Reported by Larry Jones.
7841 Fix fseeko on mingw.
7842 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
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.
7850 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
7852 Fix fseeko on BSD-based platforms.
7853 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
7856 2007-12-12 Eric Blake <ebb9@byu.net>
7858 Allow circular dependency of separate libtests.a
7859 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
7862 2007-12-11 Eric Blake <ebb9@byu.net>
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.
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 ==.
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.
7879 2007-12-11 Eric Blake <ebb9@byu.net>
7880 and Bruno Haible <bruno@clisp.org>
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.
7887 2007-12-11 Jim Meyering <meyering@redhat.com>
7889 * users.txt: Add libvirt.
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.
7895 2007-12-09 Bruno Haible <bruno@clisp.org>
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
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.
7917 2007-12-09 Bruno Haible <bruno@clisp.org>
7919 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
7920 the build-aux directory.
7922 2007-12-09 Bruno Haible <bruno@clisp.org>
7924 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
7925 introduced on 2006-09-09.
7927 2007-12-07 Jim Meyering <meyering@redhat.com>
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.
7934 2007-12-06 Jim Meyering <meyering@redhat.com>
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.
7940 2007-12-04 Eric Blake <ebb9@byu.net>
7942 Make scripts executable.
7943 * build-aux/config.guess: Add execute permissions.
7944 * build-aux/config.sub: Likewise.
7945 * build-aux/gendocs.sh: Likewise.
7948 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
7950 * doc/functions/frexp.texi (frexp): Document the bug.
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.
7959 * m4/strerror.m4: Bump version number.
7961 2007-12-03 Bruno Haible <bruno@clisp.org>
7963 * doc/functions/mprotect.texi: Mention the mingw problem.
7965 2007-12-03 Eric Blake <ebb9@byu.net>
7967 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
7968 REPLACE_STRERROR is initialized before this macro.
7970 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
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
7982 2007-12-03 James Youngman <jay@gnu.org>
7984 * doc/regexprops-generic.texi: change "an close-group" to "a
7985 close-group" and "illegal" to "not allowed".
7987 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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
7996 2007-12-02 Martin Lambers <marlam@marlam.de>
7997 Bruno Haible <bruno@clisp.org>
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,
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.
8016 2007-12-02 Bruno Haible <bruno@clisp.org>
8018 * modules/strings-tests: New file.
8019 * tests/test-strings.c: New file.
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.
8032 2007-12-01 Eric Blake <ebb9@byu.net>
8034 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
8035 accomodate fix in cygwin 1.5.25.
8037 2007-12-01 Jim Meyering <meyering@redhat.com>
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., `^', `$'.
8044 2007-11-30 Bruno Haible <bruno@clisp.org>
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>.
8053 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
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.
8060 2007-11-28 Jim Meyering <meyering@redhat.com>
8062 * modules/physmem (License): Change from GPL to LGPLv2+.
8064 2007-11-26 Bruno Haible <bruno@clisp.org>
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>.
8071 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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>.
8080 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
8081 and Jim Meyering <meyering@redhat.com>
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
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.
8092 2007-11-18 Jim Meyering <meyering@redhat.com>
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
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.
8104 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
8106 bootstrap: work also with 4-argument variant of AC_INIT
8107 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
8109 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
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.
8119 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
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.
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.
8130 * MODULES.html.sh: Mention new module.
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.
8137 2007-11-14 Jim Meyering <meyering@redhat.com>
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".
8144 2007-11-14 Bruno Haible <bruno@clisp.org>
8146 * lib/config.charset: Update for OpenBSD 4.1.
8147 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
8149 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
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.
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
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.
8172 2007-11-12 Bruno Haible <bruno@clisp.org>
8174 Tests for Unicode character classification functions.
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.
8359 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
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.
8494 2007-11-12 Bruno Haible <bruno@clisp.org>
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
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.
8819 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
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.
8963 * lib/unictype/Makefile: New file.
8964 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
8966 * lib/unictype/3level.h: New file, copied from glibc.
8967 * lib/unictype/3levelbit.h: New file.
8969 2007-11-11 Bruno Haible <bruno@clisp.org>
8971 * modules/gperf: New file.
8972 * modules/iconv_open (Depends-on): Add it.
8973 (Makefile.am): Remove the GPERF definition.
8975 2007-11-11 Bruno Haible <bruno@clisp.org>
8977 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
8978 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
8980 2007-11-11 Bruno Haible <bruno@clisp.org>
8982 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
8983 (usage): Remove function.
8985 2007-11-11 Bruno Haible <bruno@clisp.org>
8987 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
8989 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
8991 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
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.
8997 2007-11-11 Bruno Haible <bruno@clisp.org>
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.
9007 2007-11-11 Bruno Haible <bruno@clisp.org>
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
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.
9023 2007-11-10 Bruno Haible <bruno@clisp.org>
9025 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
9026 ptrdiff_t as m4/intl.m4.
9028 2007-11-10 Jim Meyering <meyering@redhat.com>
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.
9034 2007-11-09 Bruno Haible <bruno@clisp.org>
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.
9041 2007-11-09 Bruno Haible <bruno@clisp.org>
9043 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
9044 buffer. Fixes an inefficiency introduced on 2007-11-03.
9046 2007-11-09 Bruno Haible <bruno@clisp.org>
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.
9051 2007-11-08 Jim Meyering <meyering@redhat.com>
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_/
9058 2007-11-07 Bruno Haible <bruno@clisp.org>
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.
9066 2007-11-06 Bruno Haible <bruno@clisp.org>
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.
9079 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
9081 2007-11-05 Bruno Haible <bruno@clisp.org>
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.
9088 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9089 Bruno Haible <bruno@clisp.org>
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.
9098 2007-11-05 Jim Meyering <meyering@redhat.com>
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
9108 2007-11-04 Bruno Haible <bruno@clisp.org>
9110 * lib/lock.h: Protect all macro definitions containing an 'if'
9111 statement through a "do { ... } while (0)".
9112 * lib/tls.h: Likewise.
9114 2007-11-04 Bruno Haible <bruno@clisp.org>
9116 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
9118 2007-11-04 Bruno Haible <bruno@clisp.org>
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.
9137 2007-11-04 Bruno Haible <bruno@clisp.org>
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.
9143 2007-11-04 Bruno Haible <bruno@clisp.org>
9145 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
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.
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.
9175 2007-11-04 Bruno Haible <bruno@clisp.org>
9177 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
9179 2007-11-04 Bruno Haible <bruno@clisp.org>
9181 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
9182 Reported by Sylvain Beucler <beuc@gnu.org>.
9184 2007-11-03 Bruno Haible <bruno@clisp.org>
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.
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.
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.
9239 2007-11-03 Bruno Haible <bruno@clisp.org>
9241 * modules/frexp-nolibm-tests: New file.
9243 * modules/frexp-nolibm: New file.
9244 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
9246 2007-11-03 Bruno Haible <bruno@clisp.org>
9248 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
9249 value is C99 compliant.
9250 Needed for OSF/1 5.1.
9252 2007-11-03 Bruno Haible <bruno@clisp.org>
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
9260 2007-11-02 Eric Blake <ebb9@byu.net>
9262 Fix tests on cygwin.
9263 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
9265 2007-11-01 Bruno Haible <bruno@clisp.org>
9267 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
9269 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
9270 needed for POSIX compatibility.
9272 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
9274 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
9275 for compatibility with GNU.
9277 2007-11-01 Bruno Haible <bruno@clisp.org>
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
9290 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
9292 Needed for MacOS X 10.5.0.
9293 Reported by Peter O'Gorman <peter@pogma.com>.
9295 2007-11-01 Jim Meyering <meyering@redhat.com>
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>.
9303 2007-10-31 Bruno Haible <bruno@clisp.org>
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.
9312 2007-10-31 Bruno Haible <bruno@clisp.org>
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
9319 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
9321 * modules/stdint (Files): Remove m4/ulonglong.m4.
9322 * modules/strtoull (Files): Use m4/longlong.m4 instead of
9324 * modules/strtoumax (Files): Likewise.
9326 2007-10-30 Bruno Haible <bruno@clisp.org>
9328 * modules/xvasprintf-posix: New file.
9329 Suggested by Eric Blake.
9331 2007-10-30 Bruno Haible <bruno@clisp.org>
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.
9338 * modules/xprintf-posix: New file.
9340 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9342 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
9343 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
9344 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
9346 2007-10-29 Bruno Haible <bruno@clisp.org>
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.
9357 2007-10-29 Bruno Haible <bruno@clisp.org>
9359 * gnulib-tool (func_import): When --lgpl is not specified, set
9360 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
9362 Reported by Simon Josefsson.
9364 2007-10-28 Bruno Haible <bruno@clisp.org>
9366 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
9367 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
9369 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
9370 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
9373 2007-10-28 Bruno Haible <bruno@clisp.org>
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.
9378 2007-10-28 Bruno Haible <bruno@clisp.org>
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
9396 2007-10-28 Bruno Haible <bruno@clisp.org>
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.
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.
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.
9419 2007-10-28 Bruno Haible <bruno@clisp.org>
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,
9430 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
9432 * doc/gnulib-tool.texi (Modified imports): Update explanation of
9435 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9436 Bruno Haible <bruno@clisp.org>
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
9442 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
9444 2007-10-28 Bruno Haible <bruno@clisp.org>
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.
9453 2007-10-27 Ben Pfaff <blp@gnu.org>
9455 * lib/math.in.h: Define isfinite macro and prototypes for
9456 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
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.
9468 2007-10-27 Ben Pfaff <blp@gnu.org>
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.
9483 2007-10-27 Bruno Haible <bruno@clisp.org>
9485 * doc/gnulib.texi: Invoke @firstparagraphindent.
9486 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
9488 (Source changes): New section.
9490 2007-10-26 Bruno Haible <bruno@clisp.org>
9492 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
9493 borrowed from autoconf.
9495 2007-10-26 Bruno Haible <bruno@clisp.org>
9497 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
9498 strerror returned the empty string. Needed on HP-UX 11.00.
9500 2007-10-24 Micah Cowan <micah@cowan.name>
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.
9506 2007-10-24 Jim Meyering <meyering@redhat.com>
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.
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/.
9520 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
9522 * README: Append ".git" to git and cg examples.
9523 Problem reported by Benoit Sigoure.
9525 2007-10-23 Micah Cowan <micah@cowan.name>
9527 * users.txt: Add wget.
9529 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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.
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.
9575 2007-10-22 Bruno Haible <bruno@clisp.org>
9577 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
9580 2007-10-22 Eric Blake <ebb9@byu.net>
9582 Tweak x*printf documentation.
9583 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
9584 variable name and comments.
9585 Suggested by Bruno Haible.
9587 2007-10-22 Bruno Haible <bruno@clisp.org>
9589 * lib/acl.c (copy_acl): Fix file name in comment.
9591 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
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>.
9600 2007-10-22 Eric Blake <ebb9@byu.net>
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.
9607 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9609 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
9610 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
9612 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
9613 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
9615 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
9617 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
9620 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9623 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
9624 Undef `sys' after including sys/table.h, for Tru64 4.0D.
9626 * tests/test-i-ring.c: Work for C89.
9628 2007-10-22 Bruno Haible <bruno@clisp.org>
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>.
9635 2007-10-22 Eric Blake <ebb9@byu.net>
9637 * tests/test-yesno.sh: Silence stderr during test.
9639 2007-10-22 Simon Josefsson <simon@josefsson.org>
9641 * modules/crypto/gc-camellia: New file.
9643 * m4/gc-camellia.m4: New file.
9645 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
9647 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
9649 2007-10-22 Simon Josefsson <simon@josefsson.org>
9651 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
9652 --help to stdout. Reported by sms@antinode.org (Steven
9655 2007-10-22 Simon Josefsson <simon@josefsson.org>
9657 * users.txt: Fix link to libksba.
9659 2007-10-21 Ben Pfaff <blp@gnu.org>
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.
9665 2007-10-21 Ben Pfaff <blp@gnu.org>
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.
9679 2007-10-21 Bruno Haible <bruno@clisp.org>
9681 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
9684 2007-10-21 Bruno Haible <bruno@clisp.org>
9686 * tests/test-wcwidth.c (main): Allow negative result for some control
9689 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
9690 Needed on OSF/1 5.1.
9692 2007-10-21 Bruno Haible <bruno@clisp.org>
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().
9703 2007-10-21 Eric Blake <ebb9@byu.net>
9705 * users.txt: Update URL for m4.
9707 2007-10-21 Bruno Haible <bruno@clisp.org>
9709 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
9711 2007-10-21 Bruno Haible <bruno@clisp.org>
9713 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
9714 Git's management files if the CVS files are not present.
9716 2007-10-20 Bruno Haible <bruno@clisp.org>
9718 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
9721 2007-10-20 Ben Pfaff <blp@gnu.org>
9723 * lib/math.in.h: Declare round, roundf, roundl if we are providing
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
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.
9752 2007-10-20 Jim Meyering <meyering@redhat.com>
9754 * lib/xprintf.c: Include <config.h> unconditionally.
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.
9762 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
9763 Use a clearer diagnostic.
9764 Patch from Bruno Haible.
9766 2007-10-20 Bruno Haible <bruno@clisp.org>
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>.
9772 2007-10-20 Bruno Haible <bruno@clisp.org>
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>.
9781 2007-10-20 Bruno Haible <bruno@clisp.org>
9783 * modules/ceil: New file.
9784 * m4/ceil.m4: New file.
9785 * doc/functions/ceil.texi: Mention the 'ceil' module.
9787 2007-10-20 Bruno Haible <bruno@clisp.org>
9789 * modules/floor: New file.
9790 * m4/floor.m4: New file.
9791 * doc/functions/floor.texi: Mention the 'floor' module.
9793 2007-10-20 Bruno Haible <bruno@clisp.org>
9795 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
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.
9802 2007-10-19 Jim Meyering <meyering@redhat.com>
9804 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
9805 Don't bother testing specific errno values. Just test ferror.
9808 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
9810 2007-10-19 Bruno Haible <bruno@clisp.org>
9812 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
9814 * modules/javaexec (Makefile.am): Likewise.
9815 * modules/relocatable-prog (Makefile.am): Likewise.
9816 Suggested by Jim Meyering.
9818 2007-10-18 Bruno Haible <bruno@clisp.org>
9820 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
9821 Reported by Jim Meyering.
9823 2007-10-18 Eric Blake <ebb9@byu.net>
9825 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
9827 2007-10-18 Bruno Haible <bruno@clisp.org>
9829 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
9830 the format string into writable memory. Needed in Fortify conditions.
9832 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
9833 Bruno Haible <bruno@clisp.org>
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.
9841 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
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
9850 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
9852 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9854 * gnulib-tool (func_get_dependencies): Fix sed script to
9857 2007-10-17 Bruno Haible <bruno@clisp.org>
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.
9864 2007-10-16 Bruno Haible <bruno@clisp.org>
9866 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
9867 * lib/getgroups.c (getgroups): Likewise.
9868 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
9870 2007-10-16 Bruno Haible <bruno@clisp.org>
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.
9879 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
9881 Merge glibc changes into lib/glob.c.
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:
9886 2007-10-14 Ulrich Drepper <drepper@redhat.com>
9888 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
9890 * lib/glob.c: Add some branch prediction throughout.
9892 2007-10-07 Ulrich Drepper <drepper@redhat.com>
9895 * lib/glob.c (glob): Recognize patterns starting \/.
9897 2007-02-14 Jakub Jelinek <jakub@redhat.com>
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.
9911 2006-09-30 Ulrich Drepper <drepper@redhat.com>
9913 * lib/glob.c (glob_in_dir): Add some comments and asserts to
9914 explain why there are no leaks.
9916 2006-09-25 Jakub Jelinek <jakub@redhat.com>
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.
9923 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
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.
9931 2007-10-15 Bruno Haible <bruno@clisp.org>
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.
9940 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9942 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
9944 2007-10-15 Bruno Haible <bruno@clisp.org>
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>.
9950 2007-10-15 Bruno Haible <bruno@clisp.org>
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>.
9956 2007-10-15 Bruno Haible <bruno@clisp.org>
9958 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
9959 <stdlib.h> before using NULL.
9961 2007-10-15 Simon Josefsson <simon@josefsson.org>
9963 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
9964 Reported by Albert Chin <china@thewrittenword.com>.
9966 2007-10-14 Bruno Haible <bruno@clisp.org>
9968 * modules/iconv_open-utf-tests: New file.
9969 * tests/test-iconv-utf.c: New file.
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
9977 (iconv_open): Add special handling of conversion between UTF-8 and
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
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,
9990 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
9992 2007-10-13 Albert Chin <china@thewrittenword.com>
9993 Bruno Haible <bruno@clisp.org>
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.
9998 2007-10-13 Bruno Haible <bruno@clisp.org>
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.
10004 2007-10-13 Bruno Haible <bruno@clisp.org>
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
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.
10021 2007-10-13 Bruno Haible <bruno@clisp.org>
10023 * lib/freading.h (freading): Enable the use of __freading for
10025 * lib/freading.c (freading): Likewise.
10027 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
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".
10032 2007-10-12 Bruno Haible <bruno@clisp.org>
10034 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
10036 * tests/test-ceilf2.c: New file.
10037 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
10039 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
10040 * modules/ceilf-tests: Update.
10042 2007-10-12 Bruno Haible <bruno@clisp.org>
10044 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
10046 * tests/test-floorf2.c: New file.
10047 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
10049 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
10050 * modules/floorf-tests: Update.
10052 2007-10-12 Bruno Haible <bruno@clisp.org>
10054 * tests/test-trunc2.c: New file.
10055 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
10057 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
10058 * modules/trunc-tests: Update.
10060 2007-10-12 Bruno Haible <bruno@clisp.org>
10062 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
10064 * tests/test-truncf2.c: New file.
10065 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
10067 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
10068 * modules/truncf-tests: Update.
10070 2007-10-11 Eric Blake <ebb9@byu.net>
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.
10080 2007-10-11 Bruno Haible <bruno@clisp.org>
10082 * modules/i-ring-tests: New file.
10083 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
10086 2007-10-11 Bruno Haible <bruno@clisp.org>
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.
10092 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
10094 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
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.
10111 2007-10-09 Eric Blake <ebb9@byu.net>
10113 Silence test-fpending.
10114 * modules/fpending-tests (Files): Add wrapper script.
10115 * tests/test-fpending.sh: New file.
10117 2007-10-09 Bruno Haible <bruno@clisp.org>
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.
10141 2007-10-08 Ben Pfaff <blp@gnu.org>
10143 * lib/xmalloca.h: Fix typo in comment.
10145 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
10147 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
10148 when avoiding problems with integer overflow. Use a portable test
10151 2007-10-08 Simon Josefsson <simon@josefsson.org>
10153 * modules/dummy (License): Change to LGPLv2+.
10154 * modules/float (License): Likewise
10155 * modules/realloc (License): Likewise
10156 * modules/stdlib (License): Likewise
10158 2007-10-07 Bruno Haible <bruno@clisp.org>
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.
10165 2007-10-07 Bruno Haible <bruno@clisp.org>
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.
10175 2007-10-07 Jim Meyering <meyering@redhat.com>
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.
10181 2007-10-07 Bruno Haible <bruno@clisp.org>
10183 * NEWS: Mention the license change.
10185 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
10186 abbreviations in the modules files.
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+.
10925 Change copyright notice from LGPLv2.1+ to LGPLv3+.
10926 * tests/test-tsearch.c: Change copyright notice.
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.
11182 2007-10-07 Bruno Haible <bruno@clisp.org>
11184 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
11185 The file is still under LGPL (see modules/inttypes).
11187 2007-10-06 Bruno Haible <bruno@clisp.org>
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>.
11193 2007-10-06 Bruno Haible <bruno@clisp.org>
11195 * modules/freopen-tests: New file.
11196 * tests/test-freopen.c: New file.
11198 * modules/fopen-tests: New file.
11199 * tests/test-fopen.c: New file.
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.
11215 2007-10-06 Bruno Haible <bruno@clisp.org>
11217 * modules/open-tests: New file.
11218 * tests/test-open.c: New file.
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
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
11228 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
11229 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
11231 * doc/functions/open.texi: Mention the 'open' module.
11233 2007-10-04 Bruno Haible <bruno@clisp.org>
11235 * modules/ceill-tests: New file.
11236 * tests/test-ceill.c: New file.
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.
11248 2007-10-04 Bruno Haible <bruno@clisp.org>
11250 * modules/ceilf-tests: New file.
11251 * tests/test-ceilf.c: New file.
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
11260 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
11262 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
11264 2007-10-04 Bruno Haible <bruno@clisp.org>
11266 * modules/floorl-tests: New file.
11267 * tests/test-floorl.c: New file.
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.
11279 2007-10-04 Bruno Haible <bruno@clisp.org>
11281 * modules/floorf-tests: New file.
11282 * tests/test-floorf.c: New file.
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
11291 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
11293 * doc/functions/floorf.texi: Mention the 'floorf' module.
11295 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
11296 Bruno Haible <bruno@clisp.org>
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'.
11305 2007-10-04 Bruno Haible <bruno@clisp.org>
11307 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
11309 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
11311 2007-10-04 Bruno Haible <bruno@clisp.org>
11313 * modules/truncl-tests: New file.
11314 * tests/test-truncl.c: New file.
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
11322 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
11324 * doc/functions/truncl.texi: Mention the 'truncl' module.
11326 2007-10-04 Bruno Haible <bruno@clisp.org>
11328 * modules/truncf-tests: New file.
11329 * tests/test-truncf.c: New file.
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
11338 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
11340 * doc/functions/truncf.texi: Mention the 'truncf' module.
11342 2007-10-03 Bruno Haible <bruno@clisp.org>
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.
11391 2007-10-03 Bruno Haible <bruno@clisp.org>
11393 * modules/trunc-tests: New file.
11394 * tests/test-trunc.c: New file.
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
11402 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
11404 * doc/functions/trunc.texi: Mention the 'trunc' module.
11406 2007-10-03 Bruno Haible <bruno@clisp.org>
11408 * tests/test-fpending.c: New file, mostly copied
11409 from coreutils/lib/t-fpending.c.
11410 * modules/fpending-tests: New file.
11412 2007-10-03 Bruno Haible <bruno@clisp.org>
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.
11425 2007-10-03 Bruno Haible <bruno@clisp.org>
11426 Jim Meyering <jim@meyering.net>
11427 Eric Blake <ebb9@byu.net>
11429 * doc/relocatable.texi: Use @command instead of @program.
11431 2007-10-02 Jim Meyering <jim@meyering.net>
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.
11437 2007-10-01 Bruno Haible <bruno@clisp.org>
11439 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
11440 Needed for the alloca-opt module.
11442 2007-09-30 Bruno Haible <bruno@clisp.org>
11444 * lib/alloca.in.h: Renamed from lib/alloca_.h.
11445 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
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
11452 * lib/dirent.in.h: Renamed from lib/dirent_.h.
11453 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
11455 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
11456 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
11458 * lib/float.in.h: Renamed from lib/float_.h.
11459 * modules/float (Files, Makefile.am): Use float.in.h instead of
11461 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
11462 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
11464 * lib/getopt.in.h: Renamed from lib/getopt_.h.
11465 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
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
11472 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
11473 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
11475 * lib/locale.in.h: Renamed from lib/locale_.h.
11476 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
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
11488 * lib/signal.in.h: Renamed from lib/signal_.h.
11489 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
11491 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
11492 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
11494 * lib/stdint.in.h: Renamed from lib/stdint_.h.
11495 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
11497 * lib/stdio.in.h: Renamed from lib/stdio_.h.
11498 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
11500 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
11501 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
11503 * lib/string.in.h: Renamed from lib/string_.h.
11504 * modules/string (Files, Makefile.am): Use string.in.h instead of
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
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
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
11519 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
11520 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
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
11527 * lib/wchar.in.h: Renamed from lib/wchar_.h.
11528 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
11530 * lib/wctype.in.h: Renamed from lib/wctype_.h.
11531 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
11533 * build-aux/bootstrap (slurp): Update.
11534 * lib/.cppi-disable: Update.
11536 2007-09-30 Bruno Haible <bruno@clisp.org>
11538 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
11541 2007-09-30 Bruno Haible <bruno@clisp.org>
11543 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
11545 2007-09-29 Bruno Haible <bruno@clisp.org>
11547 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
11549 2007-09-29 Bruno Haible <bruno@clisp.org>
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].
11556 2007-09-29 Bruno Haible <bruno@clisp.org>
11558 * gnulib-tool (func_emit_initmacro_done): Indentation.
11560 2007-09-29 Bruno Haible <bruno@clisp.org>
11562 * README: Add CVS checkout update instructions.
11563 Info from Bob Proulx <bob@proulx.com>.
11565 2007-09-28 Eric Blake <ebb9@byu.net>
11567 Provide move-if-change.
11568 * build-aux/move-if-change: New file, based on best practice
11569 rather than any canonical upstream location.
11571 2007-09-28 Jim Meyering <jim@meyering.net>
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>.
11582 (triple_compare_ino_str): New function.
11583 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
11585 2007-09-28 Eric Blake <ebb9@byu.net>
11587 Enforce that AC_REPLACE_FUNCS files exist.
11588 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
11589 override check for typos.
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.
11597 2007-09-28 Jim Meyering <jim@meyering.net>
11599 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
11601 2007-09-27 Jim Meyering <jim@meyering.net>
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,
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.
11613 New module, file-set, from coreutils.
11614 * modules/file-set: Define it.
11615 * lib/file-set.c, lib/file-set.h: Implement.
11617 New module, hash-triple, from coreutils.
11618 * modules/hash-triple: Define it.
11619 * lib/hash-triple.c, lib/hash-triple.h: Implement.
11621 2007-09-25 Eric Blake <ebb9@byu.net>
11623 Fix strerror on Interix.
11624 * lib/string_.h (strerror): Declare replacement.
11625 * doc/functions/strerror.texi (strerror): Document the Interix
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.
11641 2007-09-24 Bruno Haible <bruno@clisp.org>
11643 * README: Update git instructions.
11645 2007-09-24 Eric Blake <ebb9@byu.net>
11647 Revert fpending breakage from 2007-09-08.
11648 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
11651 2007-09-24 Jim Meyering <jim@meyering.net>
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.
11657 2007-09-21 Simon Josefsson <simon@josefsson.org>
11659 * tests/test-canonicalize.sh: Turn on executable bit.
11661 2007-09-19 Eric Blake <ebb9@byu.net>
11663 * README: Update CVS instructions.
11665 2007-09-18 Bruno Haible <bruno@clisp.org>
11667 * modules/areadlink: New file.
11668 * lib/areadlink.h (areadlink): New declaration.
11669 * lib/areadlink.c: New file, based on lib/xreadlink.c.
11671 2007-09-17 Jim Meyering <jim@meyering.net>
11673 * lib/savewd.c (ESTALE) [!defined]: Define.
11674 Reported to be required on Interix by Martin Koeppe.
11676 2007-09-17 Bruno Haible <bruno@clisp.org>
11678 * gnulib-tool (func_version): Use $version.
11680 2007-09-16 Bruno Haible <bruno@clisp.org>
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>.
11687 2007-09-15 Bruno Haible <bruno@clisp.org>
11689 * gnulib-tool (sed): Try a little harder to make bash understand the
11691 Reported by Bruce Korb <bruce.korb@gmail.com>.
11693 2007-09-13 Eric Blake <ebb9@byu.net>
11695 * ChangeLog: Remove conflict markers.
11697 2007-09-13 Simon Josefsson <simon@josefsson.org>
11699 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
11700 Reported by Bruno Haible <bruno@clisp.org>.
11702 2007-09-12 Bruno Haible <bruno@clisp.org>
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
11708 2007-09-12 Eric Blake <ebb9@byu.net>
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.
11765 2007-09-11 Bruno Haible <bruno@clisp.org>
11767 * m4/isc-posix.m4: Remove file.
11768 Suggested by Eric Blake.
11770 2007-09-11 Eric Blake <ebb9@byu.net>
11772 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
11774 2007-09-10 Bruno Haible <bruno@clisp.org>
11776 * posix-modules: Fix typo in error message.
11777 Reported by Matt <mkraai@beckman.com>.
11779 2007-09-09 Bruno Haible <bruno@clisp.org>
11781 * doc/functions/getdelim.texi: Update list of platforms lacking the
11783 * doc/functions/getline.texi: Likewise.
11785 2007-09-09 Jim Meyering <jim@meyering.net>
11787 * lib/hash.c (hash_initialize): Detect calloc failure.
11788 Reported by Bruno Haible.
11790 2007-09-09 Bruno Haible <bruno@clisp.org>
11792 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
11793 malloc or realloc fails.
11795 2007-09-09 Bruno Haible <bruno@clisp.org>
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.
11804 2007-09-09 Bruno Haible <bruno@clisp.org>
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.
11813 2007-09-09 Bruno Haible <bruno@clisp.org>
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.
11829 2007-09-09 Bruno Haible <bruno@clisp.org>
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.
11845 2007-09-09 Bruno Haible <bruno@clisp.org>
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.
11861 2007-09-09 Bruno Haible <bruno@clisp.org>
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.
11873 2007-09-09 Bruno Haible <bruno@clisp.org>
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
11881 (func_create_testdir): Likewise. Use func_execute_command.
11882 (func_create_megatestdir): Use func_execute_command.
11884 2007-09-08 Bruno Haible <bruno@clisp.org>
11886 * gnulib-tool (func_import): Prefer rsync over wget when available,
11887 for fetching the PO files.
11889 2007-09-08 Bruno Haible <bruno@clisp.org>
11891 * posix-modules: New file. Portions copied from gnulib-tool.
11892 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
11894 2007-09-08 Jim Meyering <jim@meyering.net>
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".
11904 2007-09-08 Bruno Haible <bruno@clisp.org>
11906 * m4/inttypes-h.m4: Remove stub file.
11908 2007-09-07 Simon Josefsson <simon@josefsson.org>
11910 * doc/headers/stdint.texi: Discuss #include_next issue.
11912 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
11914 * build-aux/bootstrap: Remove obsolete comment about wget --help.
11916 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11918 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
11921 2007-09-03 Jim Meyering <jim@meyering.net>
11923 New module: git-version-gen.
11924 * modules/git-version-gen: New file.
11926 Import changes from coreutils for bootstrap script.
11928 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
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.
11936 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
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.
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.
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.
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.
11956 2007-09-03 Jim Meyering <jim@meyering.net>
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
11961 2007-09-02 Bruno Haible <bruno@clisp.org>
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>.
11969 2007-09-01 Bruno Haible <bruno@clisp.org>
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.
11984 2007-09-01 Bruno Haible <bruno@clisp.org>
11986 * lib/streq.h: Add double-inclusion guard.
11988 2007-09-01 Karl Berry <karl@gnu.org>
11990 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
11992 2007-08-28 Jim Meyering <jim@meyering.net>
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.
12005 2007-08-26 Bruno Haible <bruno@clisp.org>
12007 * gnulib-tool (func_import): When deciding which files to remove,
12008 consider also dangling symbolic links.
12009 Reported by Eric Blake.
12011 2007-08-26 Bruno Haible <bruno@clisp.org>
12013 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
12015 2007-08-23 Simon Josefsson <simon@josefsson.org>
12017 * lib/readline.c: Don't include getline.h, the prototype is now
12020 2007-08-23 Jim Meyering <jim@meyering.net>
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.
12027 2007-08-22 Eric Blake <ebb9@byu.net>
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
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.
12042 2007-08-22 Ludovic Courtès <ludo@gnu.org>
12044 * users.txt: Add Guile.
12046 2007-08-22 Eric Blake <ebb9@byu.net>
12048 * tests/test-getdelim.c (main): Use remove, not unlink.
12049 * tests/test-getline.c (main): Likewise.
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.
12079 2007-08-19 Bruno Haible <bruno@clisp.org>
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)
12086 2007-08-19 Bruno Haible <bruno@clisp.org>
12088 * modules/freadahead-tests: New file.
12089 * tests/test-freadahead.sh: New file.
12090 * tests/test-freadahead.c: New file.
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.
12098 2007-08-19 Eric Blake <ebb9@byu.net>
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.
12106 2007-08-19 Bruno Haible <bruno@clisp.org>
12108 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
12109 * lib/fseeko.c (rpl_fseeko): Likewise.
12110 * lib/fseterr.c (fseterr): Likewise.
12112 2007-08-19 Bruno Haible <bruno@clisp.org>
12114 * tests/test-lseek.c (main): Disable a test for BeOS.
12115 * doc/functions/lseek.texi: Document the BeOS bug.
12117 2007-08-19 Bruno Haible <bruno@clisp.org>
12118 Eric Blake <ebb9@byu.net>
12120 * lib/lseek.c: Include <sys/stat.h>.
12121 (rpl_lseek): Add workaround code also for Unix platforms.
12123 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
12124 * doc/functions/lseek.texi: Document BeOS definiency.
12126 2007-08-18 Bruno Haible <bruno@clisp.org>
12128 * modules/fstrcmp-tests: New file.
12129 * tests/test-fstrcmp.c: New file.
12131 2007-08-18 Bruno Haible <bruno@clisp.org>
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.
12138 2007-08-18 Bruno Haible <bruno@clisp.org>
12140 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
12142 (diag, compareseq): Remove const from the ctxt argument.
12143 (USE_HEURISTIC): Undefine at the end.
12145 2007-08-18 Jim Meyering <jim@meyering.net>
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.
12156 2007-08-17 Bruno Haible <bruno@clisp.org>
12157 and Paul Eggert <eggert@cs.ucla.edu>
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.
12164 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
12166 Import changes from coreutils for bootstrap script.
12168 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
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.
12175 2007-07-11 Jim Meyering <jim@meyering.net>
12177 If there's a GPL vN copyright comment, require that N == 3.
12179 2007-07-08 Jim Meyering <jim@meyering.net>
12181 Run the coreutils-specific code only if tests/Makefile.am.in exists.
12182 * build-aux/bootstrap (mam_template): Move definition out of loop.
12184 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
12186 * build-aux/bootstrap (symlink_to_dir): Rename function from
12187 symlink_to_gnulib. Add a directory parameter. Update all
12189 (cp_mark_as_generated): Also check for -- and link to -- files in
12192 2007-07-08 Jim Meyering <jim@meyering.net>
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".
12199 2007-05-15 Jim Meyering <jim@meyering.net>
12201 * build-aux/bootstrap: Now that generated Makefile.am files
12202 are no longer under version control, they must be created at
12205 2007-08-14 Ben Pfaff <blp@gnu.org>
12207 * lib/count-one-bits.h: Add comments. From Bruno Haible.
12209 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
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.
12216 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
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
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.
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
12241 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
12242 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
12244 2007-08-08 Eric Blake <ebb9@byu.net>
12246 * lib/xstrtol-error.c: Add missing include.
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.
12265 2007-08-08 Jim Meyering <jim@meyering.net>
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
12271 * lib/filenamecat.h: Declare it.
12273 2007-08-07 Bruno Haible <bruno@clisp.org>
12275 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
12276 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
12278 Reported by Eric Blake.
12280 2007-08-07 Simon Josefsson <simon@josefsson.org>
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.
12305 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
12306 and Bruno Haible <bruno@clisp.org>
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
12318 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
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.
12329 2007-08-06 Simon Josefsson <simon@josefsson.org>
12331 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
12333 2007-07-31 Bruno Haible <bruno@clisp.org>
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>.
12339 2007-07-31 Bruno Haible <bruno@clisp.org>
12341 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
12342 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
12344 2007-07-30 Bruno Haible <bruno@clisp.org>
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.
12373 2007-07-30 Jim Meyering <jim@meyering.net>
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>.
12382 2007-07-25 Peter O'Gorman <peter@pogma.com>
12383 Bruno Haible <bruno@clisp.org>
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
12389 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
12391 2007-07-24 Ben Pfaff <blp@gnu.org>
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.
12404 2007-07-23 Ben Pfaff <blp@gnu.org>
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.
12411 2007-07-23 Ben Pfaff <blp@gnu.org>
12413 * lib/popcount.h: Use verify_true instead of if...abort.
12414 * modules/popcount: Depend on verify module.
12415 Suggested by Jim Meyering.
12417 2007-07-23 Bruno Haible <bruno@clisp.org>
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.
12424 2007-07-22 Ben Pfaff <blp@gnu.org>
12426 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
12428 Suggested by Eric Blake.
12430 2007-07-22 Ben Pfaff <blp@gnu.org>
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.
12440 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
12442 * build-aux/announce-gen: Update to GPLv3.
12444 * build-aux/config.guess: Update from config.
12446 2007-07-21 Bruno Haible <bruno@clisp.org>
12448 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
12449 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
12451 2007-07-20 Jim Meyering <jim@meyering.net>
12453 * check-module: Diagnose a self-dependency.
12455 2007-07-19 Bruno Haible <bruno@clisp.org>
12457 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
12459 Reported by Eric Blake.
12461 2007-07-18 Bruno Haible <bruno@clisp.org>
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.
12474 2007-07-18 Bruno Haible <bruno@clisp.org>
12476 * gnulib-tool (func_get_automake_snippet): Synthesize also an
12477 EXTRA_DIST augmentation for files in build-aux/.
12479 2007-07-16 Bruno Haible <bruno@clisp.org>
12481 * modules/lseek (License): Use the synonymous term "LGPLv2+".
12482 * modules/getdelim (License): Likewise.
12484 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
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.
12533 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12535 * modules/argz (License): LGPLv2+.
12537 2007-07-15 Karl Berry <karl@gnu.org>
12539 * doc/gnulib.texi: revise node structure per new fdl.texi.
12541 2007-07-14 Bruno Haible <bruno@clisp.org>
12543 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
12545 * lib/uniname/uninames.h: Regenerated.
12547 2007-07-14 Karl Berry <karl@gnu.org>
12549 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
12550 omitting sectioning and index commands.
12552 2007-07-13 Bruno Haible <bruno@clisp.org>
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.
12561 2007-07-13 Bruno Haible <bruno@clisp.org>
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>.
12569 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
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.
12574 2007-07-13 Bruno Haible <bruno@clisp.org>
12576 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
12577 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
12579 2007-07-13 Jim Meyering <jim@meyering.net>
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.
12587 2007-07-13 Bruno Haible <bruno@clisp.org>
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.
12604 2007-07-13 Bruno Haible <bruno@clisp.org>
12606 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
12607 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
12609 2007-07-12 Bruno Haible <bruno@clisp.org>
12611 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
12612 in the modules files.
12614 2007-07-11 Karl Berry <karl@gnu.org>
12616 * MODULES.html.sh (func_module): use
12617 sed -e '\|^'"${includefile}"'$|d'
12618 instead of /.../d, to avoid errors on $includefile's containing /.
12620 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
12622 * gnulib-tool (func_import): Avoid duplication of --avoid
12624 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
12625 names to `_' in variable names.
12627 2007-07-10 Eric Blake <ebb9@byu.net>
12629 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
12630 * NEWS: Document this change.
12632 2007-07-08 Bruno Haible <bruno@clisp.org>
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.
12649 2007-07-08 Bruno Haible <bruno@clisp.org>
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.
12660 2007-07-07 Bruno Haible <bruno@clisp.org>
12662 * modules/wcwidth-tests: New file.
12663 * tests/test-wcwidth.c: New file.
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,
12672 * doc/functions/wcwidth.texi: Update.
12674 2007-07-07 Bruno Haible <bruno@clisp.org>
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
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.
12696 2007-07-07 Bruno Haible <bruno@clisp.org>
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.
12706 2007-07-07 Bruno Haible <bruno@clisp.org>
12708 * MODULES.html.sh (Unicode string functions): Add the new modules.
12710 * tests/uniwidth/test-u32-strwidth.c: New file.
12711 * modules/uniwidth/u32-strwidth-tests: New file.
12713 * lib/uniwidth/u32-strwidth.c: New file.
12714 * modules/uniwidth/u32-strwidth: New file.
12716 * tests/uniwidth/test-u16-strwidth.c: New file.
12717 * modules/uniwidth/u16-strwidth-tests: New file.
12719 * lib/uniwidth/u16-strwidth.c: New file.
12720 * modules/uniwidth/u16-strwidth: New file.
12722 * tests/uniwidth/test-u8-strwidth.c: New file.
12723 * modules/uniwidth/u8-strwidth-tests: New file.
12725 * lib/uniwidth/u8-strwidth.c: New file.
12726 * modules/uniwidth/u8-strwidth: New file.
12728 * tests/uniwidth/test-u32-width.c: New file.
12729 * modules/uniwidth/u32-width-tests: New file.
12731 * lib/uniwidth/u32-width.c: New file.
12732 * modules/uniwidth/u32-width: New file.
12734 * tests/uniwidth/test-u16-width.c: New file.
12735 * modules/uniwidth/u16-width-tests: New file.
12737 * lib/uniwidth/u16-width.c: New file.
12738 * modules/uniwidth/u16-width: New file.
12740 * tests/uniwidth/test-u8-width.c: New file.
12741 * modules/uniwidth/u8-width-tests: New file.
12743 * lib/uniwidth/u8-width.c: New file.
12744 * modules/uniwidth/u8-width: New file.
12746 * tests/uniwidth/test-uc_width.c: New file.
12747 * modules/uniwidth/width-tests: New file.
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.
12753 * lib/uniwidth.h: New file, from GNU libiconv.
12754 * modules/uniwidth/base: New file.
12756 2007-07-07 Bruno Haible <bruno@clisp.org>
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.
12770 2007-07-06 Bruno Haible <bruno@clisp.org>
12772 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
12774 2007-07-06 Bruno Haible <bruno@clisp.org>
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.
12782 2007-07-06 Eric Blake <ebb9@byu.net>
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.
12793 2007-07-06 Jim Meyering <jim@meyering.net>
12795 * lib/getugroups.c (getugroups): Detect getgrent failure.
12796 Adjust comment to reflect reality: this function may return -1.
12798 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
12800 * build-aux/bootstrap (TP_URL,get_translations): Update to use
12801 the new TP address.
12803 (gnulib_mk): New variable.
12805 2007-07-05 Jim Meyering <jim@meyering.net>
12807 Don't let endgrent clobber errno, no matter how improbable.
12808 * lib/getugroups.c (getugroups): Save and restore errno around
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.
12814 2007-07-04 Jim Meyering <jim@meyering.net>
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
12823 2007-07-04 Karl Berry <karl@gnu.org>
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.
12828 2007-07-02 Bruno Haible <bruno@clisp.org>
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>.
12834 2007-07-02 Simon Josefsson <simon@josefsson.org>
12836 * NEWS: Mention lgpl module name change.
12838 * modules/lgpl-2.1: Renamed from lgpl.
12840 * NEWS: Mention gpl module name change.
12842 * modules/gpl-3.0: New file, based on gpl-2.0.
12844 * modules/gpl-2.0: Renamed from gpl.
12846 * modules/gpl: Fix filename, doc/gpl.texi is now found at
12849 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
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>.
12857 2007-07-01 Bruno Haible <bruno@clisp.org>
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.
13062 2007-07-01 Bruno Haible <bruno@clisp.org>
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.
13070 2007-07-01 Bruno Haible <bruno@clisp.org>
13072 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
13073 Windows PATH as well. Conservative double-quoting. Comments.
13075 2007-07-01 Bruno Haible <bruno@clisp.org>
13076 Eric Blake <ebb9@byu.net>
13077 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13079 * gnulib-tool (self_abspathname): Fix algorithm to cope with
13080 empty components in $PATH, denoting '.'.
13082 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13084 * gnulib-tool: Fix indentation.
13085 (func_create_megatestdir): Likewise.
13086 Report by Bruno Haible.
13088 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13090 Sync from Automake.
13091 * build-aux/gnupload: Fix shell portability issues with for loops.
13092 Report by Karl Berry.
13094 2007-06-29 Simon Josefsson <simon@josefsson.org>
13096 * build-aux/maint.mk (POURL): Use translationproject.org.
13098 2007-06-27 Simon Josefsson <simon@josefsson.org>
13099 Bruno Haible <bruno@clisp.org>
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.
13107 2007-06-27 Bruno Haible <bruno@clisp.org>
13109 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
13110 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
13112 2007-06-26 Karl Berry <karl@gnu.org>
13114 * MODULES.html.sh: remove xreadlink-with-size.
13116 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
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
13121 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
13123 2007-06-23 Bruno Haible <bruno@clisp.org>
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
13128 Reported by Karl Berry.
13130 2007-06-23 Bruno Haible <bruno@clisp.org>
13132 * gnulib-tool (echo): Add a speedier workaround for ksh.
13133 * tests/test-echo.sh: Likewise.
13135 2007-06-23 Bruno Haible <bruno@clisp.org>
13137 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
13138 * tests/test-echo.sh: Likewise.
13140 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13142 * gnulib-tool (IFS): Initialize early, so we don't set it to
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.
13148 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
13150 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
13151 exposed by Sun Studio 11 cc on Solaris 8.
13153 2007-06-22 Bruno Haible <bruno@clisp.org>
13155 * gnulib-tool (echo): Ensure the echo primitive does not interpret
13157 * tests/test-echo.sh: New file.
13159 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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>.
13166 2007-06-21 Karl Berry <karl@gnu.org>
13168 * config/srclist.txt: guess we can't handle the licenses via
13169 srclist at the moment.
13171 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
13173 * MODULES.html.sh: Add include_next.
13174 * modules/include_next: New file.
13176 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
13178 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
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
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.
13263 2007-06-20 Karl Berry <karl@gnu.org>
13265 * config/srclist.txt: track www changes in license files.
13267 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
13269 * build-aux/bootstrap: Remove stray dot.
13270 Make sure build_aux settings are honored when linking
13271 gnulib_extra_files.
13273 2007-06-19 Eric Blake <ebb9@byu.net>
13275 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13276 Allow compilation on cygwin.
13278 2007-06-19 Jim Meyering <jim@meyering.net>
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.
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.
13292 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
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.
13301 2007-06-18 Jim Meyering <jim@meyering.net>
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.
13310 2007-06-16 Bruno Haible <bruno@clisp.org>
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>.
13316 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
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
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,
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
13343 2007-06-15 Jim Meyering <jim@meyering.net>
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.
13352 2007-06-14 Ben Pfaff <blp@gnu.org>
13354 Missing part of allocsa -> malloca transition.
13355 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
13358 2007-06-12 Bruno Haible <bruno@clisp.org>
13360 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
13361 to ia64, x86_64, i386.
13362 Reported by Eric Blake.
13364 2007-06-12 Bruno Haible <bruno@clisp.org>
13366 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
13367 cross-compiling to x86_64.
13369 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
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>.
13375 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
13378 2007-06-11 Bruno Haible <bruno@clisp.org>
13380 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
13381 replacement string.
13382 Reported by Eric Blake.
13384 2007-06-10 Bruno Haible <bruno@clisp.org>
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,
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
13401 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
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
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.
13423 2007-06-10 Bruno Haible <bruno@clisp.org>
13425 * modules/unistr/u32-mbsnlen: New file.
13426 * lib/unistr/u32-mbsnlen.c: New file.
13428 * modules/unistr/u16-mbsnlen: New file.
13429 * lib/unistr/u16-mbsnlen.c: New file.
13431 * modules/unistr/u8-mbsnlen: New file.
13432 * lib/unistr/u8-mbsnlen.c: New file.
13434 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
13437 2007-06-10 Bruno Haible <bruno@clisp.org>
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.
13447 2007-06-10 Bruno Haible <bruno@clisp.org>
13449 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
13451 2007-06-10 Bruno Haible <bruno@clisp.org>
13453 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
13454 * lib/mbuiter.h: Likewise.
13456 2007-06-10 Bruno Haible <bruno@clisp.org>
13458 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
13461 2007-06-10 Karl Berry <karl@gnu.org>
13463 * config/srclist.txt: remove gettext entries, Bruno prefers
13464 to update individually.
13466 2007-06-10 Bruno Haible <bruno@clisp.org>
13468 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
13469 'maxlen'. Ensure only length + width bytes are allocated, not
13470 length + 1 + width.
13472 2007-06-09 Bruno Haible <bruno@clisp.org>
13474 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
13475 (CHAR_T): Remove macro.
13476 (VASNPRINTF): Update.
13478 2007-06-09 Bruno Haible <bruno@clisp.org>
13480 * MODULES.html.sh (Unicode string functions): Add the new modules.
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.
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.
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.
13498 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13499 u32_conv_to_encoding): New declarations.
13501 2007-06-09 Bruno Haible <bruno@clisp.org>
13503 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
13505 2007-06-09 Bruno Haible <bruno@clisp.org>
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.
13549 2007-06-08 Bruno Haible <bruno@clisp.org>
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.
13560 2007-06-08 Bruno Haible <bruno@clisp.org>
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.
13566 2007-06-07 Bruno Haible <bruno@clisp.org>
13568 * modules/localename-tests: New file.
13569 * tests/test-localename.c: New file.
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.
13577 2007-06-07 Bruno Haible <bruno@clisp.org>
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
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.
13592 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
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.
13603 2007-06-05 Bruno Haible <bruno@clisp.org>
13605 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
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.
13641 2007-06-05 Bruno Haible <bruno@clisp.org>
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.
13651 2007-06-05 Bruno Haible <bruno@clisp.org>
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.
13656 2007-06-05 Bruno Haible <bruno@clisp.org>
13658 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
13659 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
13661 2007-06-05 Bruno Haible <bruno@clisp.org>
13663 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
13664 typo in variable name.
13666 2007-06-05 Eric Blake <ebb9@byu.net>
13668 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
13669 Reported by Simon Josefsson.
13671 2007-06-04 Bruno Haible <bruno@clisp.org>
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>.
13679 2007-06-02 Bruno Haible <bruno@clisp.org>
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.
13687 2007-06-01 Bruno Haible <bruno@clisp.org>
13689 * tests/test-binary-io.c (main): Pass a third argument to open().
13690 Reported by Gary V. Vaughan <gary@gnu.org>.
13692 2007-06-01 Bruno Haible <bruno@clisp.org>
13694 * doc/functions/frexpl.texi: Update for mingw.
13696 2007-06-01 Bruno Haible <bruno@clisp.org>
13698 * tests/test-lseek.c (main): Disable test of errno for invalid third
13700 * doc/functions/lseek.texi: Update.
13701 Reported by Gary V. Vaughan <gary@gnu.org>.
13703 2007-05-28 Bruno Haible <bruno@clisp.org>
13705 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
13707 2007-05-31 Eric Blake <ebb9@byu.net>
13709 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
13712 2007-05-30 Eric Blake <ebb9@byu.net>
13713 and Bruno Haible <bruno@clisp.org>
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
13720 2007-05-30 Bruno Haible <bruno@clisp.org>
13722 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
13723 assuming that they are closed. Needed on HP-UX 11.
13725 2007-05-29 Bruno Haible <bruno@clisp.org>
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.
13752 2007-05-29 Bruno Haible <bruno@clisp.org>
13754 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
13757 2007-05-29 Bruno Haible <bruno@clisp.org>
13759 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
13761 Reported by Eric Blake.
13763 2007-05-29 Bruno Haible <bruno@clisp.org>
13765 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
13768 2007-05-29 Eric Blake <ebb9@byu.net>
13769 Bruno Haible <bruno@clisp.org>
13771 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
13774 2007-05-28 Eric Blake <ebb9@byu.net>
13776 * modules/closein-tests (test_closein_LDADD): Support test on
13777 cygwin with libtool.
13779 2007-05-28 Bruno Haible <bruno@clisp.org>
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.
13791 2007-05-28 Eric Blake <ebb9@byu.net>
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.
13826 2007-05-28 Bruno Haible <bruno@clisp.org>
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.
13832 2007-05-28 Bruno Haible <bruno@clisp.org>
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.
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,
13844 * lib/stdio_.h (rpl_ftell): New declaration.
13845 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
13848 2007-05-28 Eric Blake <ebb9@byu.net>
13850 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
13852 2007-05-28 Bruno Haible <bruno@clisp.org>
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.
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,
13864 * lib/stdio_.h (rpl_fseek): New declaration.
13865 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
13868 2007-05-28 Bruno Haible <bruno@clisp.org>
13870 * lib/stdio_.h (fflush): More comments.
13872 2007-05-28 Bruno Haible <bruno@clisp.org>
13874 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
13877 2007-05-28 Eric Blake <ebb9@byu.net>
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.
13886 2007-05-28 Bruno Haible <bruno@clisp.org>
13888 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
13891 2007-05-27 Bruno Haible <bruno@clisp.org>
13893 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
13895 2007-05-27 Bruno Haible <bruno@clisp.org>
13897 * modules/openmp: New file.
13898 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
13901 2007-05-26 Bruno Haible <bruno@clisp.org>
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.
13910 2007-05-24 Eric Blake <ebb9@byu.net>
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
13925 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
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,
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.
13945 2007-05-24 Bruno Haible <bruno@clisp.org>
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.
13954 2007-05-23 Eric Blake <ebb9@byu.net>
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
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
13978 * lib/ftello.c (rpl_ftello): New file.
13979 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
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.
13985 2007-05-23 Bruno Haible <bruno@clisp.org>
13987 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
13988 GNULIB_POSIXCHECK is defined.
13990 2007-05-21 Bruno Haible <bruno@clisp.org>
13992 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
13993 Check also the output for NaN arguments. When cross-compiling, guess
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.
14006 2007-05-20 Bruno Haible <bruno@clisp.org>
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.
14012 2007-05-20 Jim Meyering <jim@meyering.net>
14014 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
14015 forced upon us by glibc-2.6.
14017 2007-05-20 Bruno Haible <bruno@clisp.org>
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.
14050 2007-05-20 Bruno Haible <bruno@clisp.org>
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.
14056 2007-05-20 Bruno Haible <bruno@clisp.org>
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.
14065 2007-05-20 Jim Meyering <jim@meyering.net>
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.
14075 2007-05-19 Bruno Haible <bruno@clisp.org>
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.
14082 2007-05-19 Bruno Haible <bruno@clisp.org>
14084 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
14085 (test_function): Skip tests involving -0.0 on platforms where
14087 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
14088 (test_function): Skip tests involving -0.0 on platforms where
14090 * tests/test-snprintf-posix.h (have_minus_zero): New function.
14091 (test_function): Skip tests involving -0.0 on platforms where
14093 * tests/test-sprintf-posix.h (have_minus_zero): New function.
14094 (test_function): Skip tests involving -0.0 on platforms where
14096 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
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.
14102 2007-05-19 Bruno Haible <bruno@clisp.org>
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.
14116 2007-05-19 Bruno Haible <bruno@clisp.org>
14118 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
14119 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14121 2007-05-19 Bruno Haible <bruno@clisp.org>
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.
14134 2007-05-19 Jim Meyering <jim@meyering.net>
14136 * lib/utimens.c (gl_futimens): Rename from futimens,
14137 now that glibc-2.6 declares futimens.
14138 * lib/utimens.h: Likewise.
14140 2007-05-19 Bruno Haible <bruno@clisp.org>
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.
14148 2007-05-19 Bruno Haible <bruno@clisp.org>
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.
14176 2007-05-19 Bruno Haible <bruno@clisp.org>
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.
14183 2007-05-18 Bruno Haible <bruno@clisp.org>
14185 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
14186 introduced on 2007-05-06.
14188 2007-05-18 Bruno Haible <bruno@clisp.org>
14190 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
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.
14196 2007-05-18 Bruno Haible <bruno@clisp.org>
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.
14213 2007-05-18 Bruno Haible <bruno@clisp.org>
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.
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.
14257 2007-05-18 Bruno Haible <bruno@clisp.org>
14259 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
14261 2007-05-18 Bruno Haible <bruno@clisp.org>
14263 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
14264 for printing 64-bit integers. Needed for mingw.
14266 2007-05-18 Bruno Haible <bruno@clisp.org>
14268 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14269 gl_FUNC_FREXPL_WORKS.
14270 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
14272 2007-05-18 Bruno Haible <bruno@clisp.org>
14274 * modules/frexpl-nolibm-tests: New file.
14276 * modules/frexpl-nolibm: New file.
14277 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
14279 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
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:
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.
14297 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14299 * modules/closein-tests (Makefile.am): Distribute
14302 2007-05-17 Bruno Haible <bruno@clisp.org>
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.
14316 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
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.
14342 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
14344 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
14346 2007-05-13 Bruno Haible <bruno@clisp.org>
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.
14354 2007-05-13 Bruno Haible <bruno@clisp.org>
14356 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
14357 when used in C++ mode.
14359 2007-05-12 Bruno Haible <bruno@clisp.org>
14361 * lib/linebuffer.h: Tweak doc.
14362 * lib/linebuffer.c: Likewise.
14364 2007-05-12 James Youngman <jay@gnu.org>
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'
14370 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
14372 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
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.
14379 2007-05-06 Bruno Haible <bruno@clisp.org>
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.
14393 2007-05-06 Bruno Haible <bruno@clisp.org>
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.
14423 2007-05-06 Bruno Haible <bruno@clisp.org>
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
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.
14453 2007-05-01 Bruno Haible <bruno@clisp.org>
14455 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
14457 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
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.
14462 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
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>.
14468 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
14470 * lib/argp-help.c (struct hol_entry): New member `ord'.
14471 (HOL_ENTRY_PTRCMP): Use ord for comparison
14472 (hol_sort): Initialize ord.
14474 2007-05-01 Bruno Haible <bruno@clisp.org>
14476 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
14477 Reported by Eric Blake.
14478 * doc/gnulib.texi (Function Substitutes): Update.
14480 2007-05-01 Bruno Haible <bruno@clisp.org>
14482 * doc/functions.texi: Remove file, now redundant through
14483 doc/functions/*.texi.
14485 2007-05-01 Bruno Haible <bruno@clisp.org>
14487 * modules/argp (Depends-on): Add sleep.
14489 2007-05-01 Bruno Haible <bruno@clisp.org>
14491 * modules/sleep-tests: New file.
14492 * tests/test-sleep.c: New file.
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,
14500 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
14501 * doc/functions/sleep.texi: Document the sleep module.
14503 2007-05-01 Bruno Haible <bruno@clisp.org>
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.
14523 2007-05-01 Bruno Haible <bruno@clisp.org>
14525 * modules/signal: New file.
14526 * lib/signal_.h: New file.
14527 * m4/signal_h.m4: New file.
14529 2007-05-01 Bruno Haible <bruno@clisp.org>
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.
14536 2007-05-01 Bruno Haible <bruno@clisp.org>
14538 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
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
14545 2007-05-01 Bruno Haible <bruno@clisp.org>
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.
14551 2007-05-01 Bruno Haible <bruno@clisp.org>
14553 * doc/header/assert.texi: Undo last change: don't mention the gnulib
14554 'assert' module here.
14556 2007-05-01 Bruno Haible <bruno@clisp.org>
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
14566 (%.info): New rule, specifying a --reference-limit.
14568 2007-05-01 Bruno Haible <bruno@clisp.org>
14570 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
14572 2007-05-01 Bruno Haible <bruno@clisp.org>
14574 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
14575 the portability of 'mkdir' to mingw systems.
14577 2007-05-01 Bruno Haible <bruno@clisp.org>
14579 * doc/headers/google-ranking.txt: New file.
14581 2007-04-30 Eric Blake <ebb9@byu.net>
14583 Prefer fseeko to fseek.
14584 * modules/getpass (Depends-on): Add fseeko.
14585 * lib/getpass.c (getpass): Use fseeko, not fseek.
14587 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
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
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"
14598 2007-04-29 Bruno Haible <bruno@clisp.org>
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.
14614 2007-04-29 Bruno Haible <bruno@clisp.org>
14616 * MODULES.html.sh (posix_functions): Remove 'contents'.
14618 2007-04-29 Karl Berry <karl@gnu.org>
14620 * config/srclist.txt (gendocs_template_min): new entry.
14622 2007-04-29 Bruno Haible <bruno@clisp.org>
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
14632 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
14635 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
14637 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
14638 proposed by Sven Verdoolaege.
14640 * tests/test-argp.c: Fix option ordering. Test deeply clustered
14642 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
14643 (usage and help tests): Update
14645 2007-04-29 Bruno Haible <bruno@clisp.org>
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.
14650 2007-04-29 Bruno Haible <bruno@clisp.org>
14652 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
14653 This helps debugging on systems on which no gdb is available.
14655 2007-04-29 Bruno Haible <bruno@clisp.org>
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.
14662 2007-04-29 Bruno Haible <bruno@clisp.org>
14664 * lib/freading.c (freading): Trivial simplification.
14666 2007-04-28 Bruno Haible <bruno@clisp.org>
14668 * tests/test-fwriting.c (main): Also test the interaction between
14669 fflush and fwriting.
14670 * modules/fwriting-tests (Depends-on): Add fflush.
14672 * tests/test-freading.c (main): Also test the interaction between
14673 fflush and freading.
14674 * modules/freading-tests (Depends-on): Add fflush.
14676 2007-04-28 Bruno Haible <bruno@clisp.org>
14678 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
14680 Suggested by Eric Blake.
14682 2007-04-28 Jim Meyering <jim@meyering.net>
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>.
14688 2007-04-27 Eric Blake <ebb9@byu.net>
14690 * doc/headers/assert.texi (assert.h): Document assert module use.
14692 2007-04-27 Bruno Haible <bruno@clisp.org>
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
14698 (standards.info ,standards.html, standards.dvi): Update dependencies.
14699 (mostlyclean, clean): New targets.
14701 2007-04-27 Bruno Haible <bruno@clisp.org>
14703 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
14704 * modules/sysexits (Files, Makefile.am): Update.
14706 * lib/sys_socket_.h: Renamed from lib/socket_.h.
14707 * modules/sys_socket (Files, Makefile.am): Update.
14709 * lib/sys_stat_.h: Renamed from lib/stat_.h.
14710 * modules/sys_stat (Files, Makefile.am): Update.
14712 2007-04-27 Eric Blake <ebb9@byu.net>
14714 * lib/freading.h: Improve comments.
14715 * lib/fwriting.h: Likewise.
14716 * lib/fflush.c: Likewise.
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.
14725 2007-04-27 Bruno Haible <bruno@clisp.org>
14727 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
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.
14737 2007-04-27 Bruno Haible <bruno@clisp.org>
14739 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
14741 2007-04-27 Bruno Haible <bruno@clisp.org>
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.
14748 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
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>.
14754 2007-04-26 Eric Blake <ebb9@byu.net>
14756 Fix fflush on mingw.
14757 * modules/fflush (Depends-on): Add freading.
14758 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
14761 2007-04-26 Eric Blake <ebb9@byu.net>
14762 and Bruno Haible <bruno@clisp.org>
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.
14779 2007-04-26 Bruno Haible <bruno@clisp.org>
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.
14785 2007-04-26 Bruno Haible <bruno@clisp.org>
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.
14796 2007-04-26 Bruno Haible <bruno@clisp.org>
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.
14804 2007-04-26 Bruno Haible <bruno@clisp.org>
14806 * modules/fflush-tests (Depends-on): Add fseeko.
14808 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
14809 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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
14817 2007-04-25 Eric Blake <ebb9@byu.net>
14819 * lib/fpurge.c (includes): Use stdlib.h for free.
14820 * tests/test-fflush.c (main): Also test fflush-fseeko.
14822 2007-04-25 Bruno Haible <bruno@clisp.org>
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
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.
14835 2007-04-25 Bruno Haible <bruno@clisp.org>
14837 * modules/fflush (Depends-on): Add ftello.
14839 2007-04-25 Bruno Haible <bruno@clisp.org>
14841 * modules/ftello-tests: New file.
14842 * tests/test-ftello.c: New file.
14844 * modules/ftello: New file.
14845 * m4/ftello.m4: New file.
14846 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
14848 * lib/stdio_.h (ftello): New declaration.
14849 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
14852 2007-04-25 Bruno Haible <bruno@clisp.org>
14854 * modules/fseeko-tests: New file.
14855 * tests/test-fseeko.c: New file.
14857 * modules/fseeko: New file.
14858 * m4/fseeko.m4: New file.
14859 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
14861 * lib/stdio_.h (fseeko): New declaration.
14862 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
14865 2007-04-25 Bruno Haible <bruno@clisp.org>
14867 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
14869 2007-04-25 Bruno Haible <bruno@clisp.org>
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.
14876 2007-04-23 Eric Blake <ebb9@byu.net>
14878 * lib/fflush.c: Fix missing include.
14879 Reported by Bruno Haible.
14881 2007-04-23 Bruno Haible <bruno@clisp.org>
14883 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
14884 Reported by Eric Blake.
14886 2007-04-23 Bruno Haible <bruno@clisp.org>
14888 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
14890 2007-04-23 Bruno Haible <bruno@clisp.org>
14892 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
14894 2007-04-23 Bruno Haible <bruno@clisp.org>
14896 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
14897 Needed on HP-UX 11.
14899 2007-04-16 Eric Blake <ebb9@byu.net>
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.
14908 Fix --with-tests compilation on cygwin.
14909 * modules/argmatch-tests (Makefile.am): List gnulib library first
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.
14931 Fix fpurge for cygwin.
14932 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
14934 * modules/fpurge-tests (Depends-on): Clean up trash.
14936 2007-04-16 Simon Josefsson <simon@josefsson.org>
14938 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
14940 * m4/autobuild.m4: Re-indent.
14942 2007-04-13 Bruno Haible <bruno@clisp.org>
14944 * modules/fpurge-tests: New file.
14945 * tests/test-fpurge.c: New file.
14947 * modules/fpurge: New file.
14948 * lib/fpurge.h: New file.
14949 * lib/fpurge.c: New file.
14950 * m4/fpurge.m4: New file.
14952 2007-04-13 Bruno Haible <bruno@clisp.org>
14954 * modules/fbufmode-tests: New file.
14955 * tests/test-fbufmode.c: New file.
14957 * modules/fbufmode: New file.
14958 * lib/fbufmode.h: New file.
14959 * lib/fbufmode.c: New file.
14960 * m4/fbufmode.m4: New file.
14962 2007-04-13 Bruno Haible <bruno@clisp.org>
14964 * modules/fwritable-tests: New file.
14965 * tests/test-fwritable.c: New file.
14967 * modules/fwritable: New file.
14968 * lib/fwritable.h: New file.
14969 * lib/fwritable.c: New file.
14970 * m4/fwritable.m4: New file.
14972 2007-04-13 Bruno Haible <bruno@clisp.org>
14974 * modules/freadable-tests: New file.
14975 * tests/test-freadable.c: New file.
14977 * modules/freadable: New file.
14978 * lib/freadable.h: New file.
14979 * lib/freadable.c: New file.
14980 * m4/freadable.m4: New file.
14982 2007-04-13 Bruno Haible <bruno@clisp.org>
14984 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
14987 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
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.
14993 2007-04-13 Bruno Haible <bruno@clisp.org>
14995 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
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.
15004 2007-04-13 Bruno Haible <bruno@clisp.org>
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>.
15010 2007-04-13 Bruno Haible <bruno@clisp.org>
15012 * lib/tls.c (glthread_tls_get): Fix return type.
15013 Patch by Arto C. Nirkko <anirkko@insel.ch>.
15015 2007-04-12 Eric Blake <ebb9@byu.net>
15017 * modules/gettime (Depends-on): Remove gettime.
15018 Reported by Dmitry V. Levin.
15020 2007-04-12 Bruno Haible <bruno@clisp.org>
15022 * modules/fflush (Include): Mention <stdio.h>.
15023 * modules/strtoimax (Include): Mention <inttypes.h>.
15024 * modules/strtoumax (Include): Likewise.
15026 2007-04-12 Eric Blake <ebb9@byu.net>
15028 * .cvsignore: New file.
15029 * .gitignore: Likewise.
15031 2007-04-12 Bruno Haible <bruno@clisp.org>
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.
15040 2007-04-12 Eric Blake <ebb9@byu.net>
15042 Work around glibc's failure to flush stdin on fclose.
15043 * lib/closein.c (close_stdin): Flush stdin before closing.
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.
15052 2007-04-12 Simon Josefsson <simon@josefsson.org>
15054 * gnulib-tool: Rename generated 'autobuild' script to
15055 'do-autobuild' in --create-megatestdir output.
15057 * doc/gnulib.texi (Build robot for gnulib): Fix.
15059 2007-04-12 Simon Josefsson <simon@josefsson.org>
15061 * modules/sysexits (Depends-on): Add absolute-header.
15063 2007-04-12 Eric Blake <ebb9@byu.net>
15065 No need to preserve errno on success.
15066 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
15067 Reported by Bruno Haible.
15069 2007-04-12 Simon Josefsson <simon@josefsson.org>
15071 * MODULES.html.sh (Support for maintaining and releasing
15072 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
15074 2007-04-12 Simon Josefsson <simon@josefsson.org>
15076 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
15078 2007-04-12 Simon Josefsson <simon@josefsson.org>
15080 * modules/autobuild: New module.
15082 * m4/autobuild.m4: New file.
15084 2007-04-11 Bruno Haible <bruno@clisp.org>
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.
15116 2007-04-11 Bruno Haible <bruno@clisp.org>
15118 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
15120 2007-04-10 Bruno Haible <bruno@clisp.org>
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.
15133 2007-04-10 Bruno Haible <bruno@clisp.org>
15135 * modules/locale-tests: New file.
15136 * tests/test-locale.c: New file.
15138 * modules/locale: New file.
15139 * lib/locale_.h: New file.
15140 * m4/locale_h.m4: New file.
15142 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
15143 Bruno Haible <bruno@clisp.org>
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.
15152 2007-04-09 Eric Blake <ebb9@byu.net>
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.
15164 2007-04-06 Bruno Haible <bruno@clisp.org>
15166 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
15167 (VASNPRINTF): Use signbit for faster determination whether to print a
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.
15179 2007-04-06 Bruno Haible <bruno@clisp.org>
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.
15188 2007-04-06 Bruno Haible <bruno@clisp.org>
15190 * modules/signbit-tests: New file.
15191 * tests/test-signbit.c: New file.
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
15202 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
15203 REPLACE_FREXPL into math.h.
15205 2007-04-06 Bruno Haible <bruno@clisp.org>
15207 * modules/isnanf-nolibm-tests: New file.
15208 * tests/test-isnanf.c: New file.
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.
15216 2007-04-06 Bruno Haible <bruno@clisp.org>
15218 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
15219 (Link): New section.
15221 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
15223 2007-04-06 Bruno Haible <bruno@clisp.org>
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.
15272 2007-04-06 Bruno Haible <bruno@clisp.org>
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>.
15287 2007-04-04 Eric Blake <ebb9@byu.net>
15289 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
15292 2007-04-04 Bruno Haible <bruno@clisp.org>
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.
15297 2007-04-04 Bruno Haible <bruno@clisp.org>
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.
15309 2007-04-04 Bruno Haible <bruno@clisp.org>
15311 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
15312 directly used by the gnulib modules nor by gnulib-tool.
15314 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
15316 * DEPENDENCIES: Give overall description of version dependency
15317 desirability. Use more-typical names for apps.
15318 Add shell, coreutils, diffutils, grep, tar, gzip.
15320 2007-04-04 Simon Josefsson <simon@josefsson.org>
15322 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
15324 2007-04-04 Karl Berry <karl@gnu.org>
15326 * MODULES.html.sh (func_module): missing '.
15328 2007-04-03 Bruno Haible <bruno@clisp.org>
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.
15363 2007-04-03 Eric Blake <ebb9@byu.net>
15365 * DEPENDENCIES: Weaken m4 requirements.
15367 2007-04-03 Bruno Haible <bruno@clisp.org>
15369 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
15370 * modules/isnanl-tests (configure.ac): Likewise.
15372 2007-04-03 Ben Pfaff <blp@gnu.org>
15374 * modules/iconv_open: Add $(srcdir)/ to source directory
15375 references in Makefile fragments that call gperf, to fix VPATH
15378 2007-04-03 Bruno Haible <bruno@clisp.org>
15380 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
15381 * lib/ldexpl.c: Undo last change.
15383 2007-04-03 Bruno Haible <bruno@clisp.org>
15385 * modules/printf-frexpl (Depends-on): Undo last change.
15386 (Files): Add m4/ldexpl.m4.
15388 2007-04-03 Bruno Haible <bruno@clisp.org>
15390 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
15391 * modules/isnanl (Link): New section.
15393 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
15394 * modules/frexp (Link): New section.
15396 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
15397 * modules/frexpl (Link): New section.
15399 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
15400 * modules/ldexpl (Link): New section.
15402 2007-04-03 Bruno Haible <bruno@clisp.org>
15404 * modules/TEMPLATE-EXTENDED: New file.
15405 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
15407 2007-04-03 Bruno Haible <bruno@clisp.org>
15409 * DEPENDENCIES: New file.
15410 Suggested by Simon Josefsson.
15412 2007-04-03 Bruno Haible <bruno@clisp.org>
15414 * doc/gnulib.texi: Escape @.
15416 2007-04-03 James Youngman <jay@gnu.org>
15417 and Paul Eggert <eggert@cs.ucla.edu>
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.
15425 2007-04-03 Simon Josefsson <simon@josefsson.org>
15427 * modules/memxor: Move back from crypto/, suggested by Bruno.
15428 * modules/crypto/hmac-sha1: Fix memxor dependency.
15430 * modules/crypto/gc: Moved from ../.
15432 2007-04-02 Eric Blake <ebb9@byu.net>
15434 * lib/ldexpl.c (includes): Avoid libm.
15436 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
15438 2007-04-02 Bruno Haible <bruno@clisp.org>
15440 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
15443 2007-04-02 Bruno Haible <bruno@clisp.org>
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>.
15449 2007-04-02 Bruno Haible <bruno@clisp.org>
15451 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
15454 2007-04-01 Simon Josefsson <simon@josefsson.org>
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 ../.
15501 2007-03-30 James Youngman <jay@gnu.org>
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
15509 2007-03-31 Bruno Haible <bruno@clisp.org>
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
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
15532 2007-03-31 Bruno Haible <bruno@clisp.org>
15534 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
15535 work on Solaris either. Protect also second use of "autodetect_jp".
15537 2007-03-31 Bruno Haible <bruno@clisp.org>
15539 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
15540 the function is not present.
15542 2007-03-31 Bruno Haible <bruno@clisp.org>
15544 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
15545 the function is not present.
15547 2007-03-31 Bruno Haible <bruno@clisp.org>
15549 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
15550 a bug in HP-UX iconv_open().
15552 2007-03-31 Bruno Haible <bruno@clisp.org>
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,
15574 (Support for maintaining and releasing projects): Renamed from
15575 'Support for maintaining and release projects'. Add announce-gen.
15577 2007-03-31 Bruno Haible <bruno@clisp.org>
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.
15585 2007-03-30 Bruno Haible <bruno@clisp.org>
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.
15596 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
15598 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
15600 2007-03-30 Karl Berry <karl@gnu.org>
15602 * config/srclist-update: double space after USA in the license
15603 substitution, since that's how it's usually (?) written.
15605 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
15607 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
15608 reported by Bruno Haible.
15610 2007-03-29 Bruno Haible <bruno@clisp.org>
15612 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
15613 a bug in AIX iconv().
15615 2007-03-29 Bruno Haible <bruno@clisp.org>
15617 * modules/ldexpl-tests: New file.
15618 * tests/test-ldexpl.c: New file.
15620 2007-03-29 Bruno Haible <bruno@clisp.org>
15622 * lib/ldexpl.c: Include fpucw.h.
15623 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
15625 * modules/ldexpl (Depends-on): Add fpucw.
15627 2007-03-29 Bruno Haible <bruno@clisp.org>
15629 * modules/ldexpl: New file.
15630 * m4/ldexpl.m4: New file.
15631 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
15633 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
15635 * modules/math (Makefile.am): Substitute also GNULIB_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.
15643 2007-03-29 Bruno Haible <bruno@clisp.org>
15645 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
15647 2007-03-29 Bruno Haible <bruno@clisp.org>
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.
15661 2007-03-29 Bruno Haible <bruno@clisp.org>
15663 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
15665 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
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.
15670 2007-03-29 Eric Blake <ebb9@byu.net>
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.
15676 2007-03-29 Bruno Haible <bruno@clisp.org>
15678 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
15680 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
15682 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
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>.
15690 2007-03-28 Bruno Haible <bruno@clisp.org>
15692 * lib/striconveh.c (utf8conv_carefully): New function.
15693 (mem_cd_iconveh_internal): Invoke it.
15695 2007-03-28 Bruno Haible <bruno@clisp.org>
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
15700 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
15701 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
15704 2007-03-28 Bruno Haible <bruno@clisp.org>
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.
15714 2007-03-27 Simon Josefsson <simon@josefsson.org>
15715 Bruno Haible <bruno@clisp.org>
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]).
15721 * m4/stdio_h.m4: Add stubs for vasprintf too.
15723 * modules/stdio: Support vasprintf in sed command.
15725 * modules/vasprintf: Depend on stdio for prototypes. Remove
15726 vasprintf.h. Add stdio module indicator.
15728 * lib/stdio_.h: Declare asprintf and vasprintf, based on
15731 * lib/vasprintf.h: File removed.
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.
15739 2007-03-27 Bruno Haible <bruno@clisp.org>
15741 Make vasnprintf multithread-safe.
15742 * lib/vasnprintf.c (decimal_point_char): New function.
15743 (VASNPRINTF): Use it.
15744 Suggested by Simon Josefsson.
15746 2007-03-27 Eric Blake <ebb9@byu.net>
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.
15753 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
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.
15767 2007-03-27 Bruno Haible <bruno@clisp.org>
15769 * lib/stat-time.h: Include <sys/stat.h>.
15771 2007-03-27 James Youngman <jay@gnu.org>
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
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.
15781 2007-03-26 Bruno Haible <bruno@clisp.org>
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.
15807 2007-03-26 Eric Blake <ebb9@byu.net>
15809 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
15810 regression in logic sense of previous patch.
15812 2007-03-26 Bruno Haible <bruno@clisp.org>
15814 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
15815 unportable shell command "if ! ...".
15816 Reported by Ralf Wildenhues.
15818 2007-03-25 Bruno Haible <bruno@clisp.org>
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.
15828 2007-03-25 Bruno Haible <bruno@clisp.org>
15830 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
15833 2007-03-25 Bruno Haible <bruno@clisp.org>
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.
15838 2007-03-25 Bruno Haible <bruno@clisp.org>
15840 * lib/vasnprintf.c: Include langinfo.h.
15841 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
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.
15854 2007-03-25 Bruno Haible <bruno@clisp.org>
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.
15860 2007-03-25 Bruno Haible <bruno@clisp.org>
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.
15868 2007-03-25 Bruno Haible <bruno@clisp.org>
15870 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
15872 2007-03-25 Bruno Haible <bruno@clisp.org>
15874 Avoid test failures on IRIX 6.5.
15875 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
15877 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
15881 2007-03-25 Bruno Haible <bruno@clisp.org>
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.
15891 2007-03-25 Bruno Haible <bruno@clisp.org>
15893 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
15894 returns inf. Needed on IRIX 6.5.
15896 2007-03-25 Bruno Haible <bruno@clisp.org>
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.
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.
15906 2007-03-25 Bruno Haible <bruno@clisp.org>
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.
15925 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
15927 2007-03-25 Bruno Haible <bruno@clisp.org>
15929 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
15931 2007-03-25 Bruno Haible <bruno@clisp.org>
15933 * lib/regexec.c (merge_state_with_log): Make static.
15935 2007-03-25 Bruno Haible <bruno@clisp.org>
15937 * lib/trigl.c (kernel_rem_pio2): Make static.
15939 2007-03-25 Bruno Haible <bruno@clisp.org>
15941 * lib/sincosl.c (sincosl_table): Make static.
15943 2007-03-25 Bruno Haible <bruno@clisp.org>
15945 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
15946 if the compiler does not support C99.
15948 2007-03-25 Bruno Haible <bruno@clisp.org>
15950 * modules/time (Makefile.am): Ensure all rule action lines start with a
15953 2007-03-24 Bruno Haible <bruno@clisp.org>
15955 * modules/tsearch-tests: New file.
15956 * tests/test-tsearch.sh: New file.
15957 * tests/test-tsearch.c: New file, mostly copied from glibc.
15959 * modules/search-tests: New file.
15960 * tests/test-search.c: New file.
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
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.
15974 2007-03-24 Bruno Haible <bruno@clisp.org>
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.
15981 * lib/printf-frexp.c: Include fpucw.h.
15982 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
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.
16004 2007-03-24 Bruno Haible <bruno@clisp.org>
16006 * lib/float+.h: New file.
16007 * lib/isnan.c: Include float+.h.
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.
16018 2007-03-24 Bruno Haible <bruno@clisp.org>
16020 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
16021 include isnanl-nolibm.h.
16023 2007-03-24 Bruno Haible <bruno@clisp.org>
16025 * tests/test-read-file.c (main): Don't produce spurious output for
16026 expected situations. Make the test fail if it encountered unexpected
16029 2007-03-24 Bruno Haible <bruno@clisp.org>
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.
16034 2007-03-24 Bruno Haible <bruno@clisp.org>
16036 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
16038 2007-03-24 Bruno Haible <bruno@clisp.org>
16040 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
16041 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
16043 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
16044 * modules/utf8-ucs4: Turn into a symbolic link to module
16047 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
16049 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
16050 unistr/u8-mbtouc-unsafe.
16052 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
16053 * modules/utf16-ucs4: Turn into a symbolic link to module
16056 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
16058 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
16059 unistr/u16-mbtouc-unsafe.
16061 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
16062 * modules/ucs4-utf8: Turn into a symbolic link to module
16065 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
16066 * modules/ucs4-utf16: Turn into a symbolic link to module
16069 2007-03-24 Bruno Haible <bruno@clisp.org>
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.
16090 2007-03-24 Bruno Haible <bruno@clisp.org>
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.
16148 2007-03-24 Bruno Haible <bruno@clisp.org>
16150 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
16151 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
16153 2007-03-22 Bruno Haible <bruno@clisp.org>
16155 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
16157 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
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.
16163 2007-03-23 Eric Blake <ebb9@byu.net>
16165 * gnulib-tool: Rearrange space-tab sequences, since some editors
16168 2007-03-23 Eric Blake <ebb9@byu.net>
16170 * lib/version-etc.c (version_etc_va): Update license wording to
16171 be more concise. Recommended by Richard Stallman.
16173 2007-03-22 Bruno Haible <bruno@clisp.org>
16175 * lib/poll.c (MSG_PEEK): New fallback definition.
16177 2007-03-22 Bruno Haible <bruno@clisp.org>
16179 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
16180 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
16182 Fixes a compilation error on BeOS.
16184 2007-03-22 Bruno Haible <bruno@clisp.org>
16186 * modules/frexpl-tests: New file.
16187 * tests/test-frexpl.c: New file.
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.
16198 2007-03-22 Bruno Haible <bruno@clisp.org>
16200 * lib/frexpl.c: Share code with lib/frexp.c.
16201 * modules/mathl (Files): Add lib/frexp.c.
16202 (Depends-on): Add isnanl-nolibm.
16204 2007-03-22 Bruno Haible <bruno@clisp.org>
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.
16210 2007-03-22 Bruno Haible <bruno@clisp.org>
16212 * lib/frexp.c: Remove older implementation that uses divisions.
16214 2007-03-21 Bruno Haible <bruno@clisp.org>
16216 * modules/frexp-tests: New file.
16217 * tests/test-frexp.c: New file.
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
16225 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
16227 2007-03-21 Bruno Haible <bruno@clisp.org>
16229 * modules/isnanl-tests: New file.
16230 * tests/test-isnanl.c: New file.
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):
16240 2007-03-21 Bruno Haible <bruno@clisp.org>
16242 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
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.
16254 2007-03-21 Jim Meyering <jim@meyering.net>
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.
16260 2007-03-20 Bruno Haible <bruno@clisp.org>
16262 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
16263 Needed on AIX 5.1. Reported by Matthew Woehlke.
16265 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
16267 Suggestions by Bruno Haible:
16268 * lib/acl-internal.h: Include "gettext.h" rather than rolling
16270 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
16271 * modules/acl (Depends-on): Add gettext.
16273 2007-03-19 Bruno Haible <bruno@clisp.org>
16275 * modules/iconvme: Remove file.
16276 * lib/iconvme.h: Remove file.
16277 * lib/iconvme.c: Remove file.
16278 * m4/iconvme.m4: Remove file.
16280 2007-03-19 Bruno Haible <bruno@clisp.org>
16282 * doc/relocatable-maint.texi: Break long shell script line.
16283 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16285 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
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.
16307 2007-03-19 Ben Pfaff <blp@gnu.org>
16309 * doc/gnulib.texi: Fix typos.
16310 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
16312 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
16314 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
16315 If size is zero here, buf must be zero.
16317 2007-03-19 Simon Josefsson <simon@josefsson.org>
16319 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
16322 2007-03-18 Bruno Haible <bruno@clisp.org>
16324 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
16325 Suggested by Eric Blake.
16327 2007-03-18 Ben Pfaff <blp@gnu.org>
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,
16334 2007-03-17 Bruno Haible <bruno@clisp.org>
16336 * lib/fchownat.c: Include lchown.h.
16338 2007-03-17 Bruno Haible <bruno@clisp.org>
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.
16347 2007-03-17 Bruno Haible <bruno@clisp.org>
16349 * tests/test-argp-2.sh (func_compare): Output a context diff.
16351 2007-03-17 Bruno Haible <bruno@clisp.org>
16353 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
16354 locale's decimal-point character.
16356 2007-03-17 Bruno Haible <bruno@clisp.org>
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).
16362 2007-03-17 Bruno Haible <bruno@clisp.org>
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.
16369 2007-03-17 Bruno Haible <bruno@clisp.org>
16371 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
16373 2007-03-17 Bruno Haible <bruno@clisp.org>
16375 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
16378 2007-03-17 Bruno Haible <bruno@clisp.org>
16380 * tests/test-c-strcasecmp.c: Include c-strcase.h.
16381 * tests/test-c-strncasecmp.c: Likewise.
16383 2007-03-17 Bruno Haible <bruno@clisp.org>
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.
16389 2007-03-17 Bruno Haible <bruno@clisp.org>
16391 * lib/unistr/u-strdup.h: Include <stdlib.h>.
16393 2007-03-17 Bruno Haible <bruno@clisp.org>
16395 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
16397 2007-03-17 Bruno Haible <bruno@clisp.org>
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.
16403 2007-03-17 Eric Blake <ebb9@byu.net>
16405 * NEWS: Document stdlib change from 2007-02-18.
16407 2007-03-17 Jim Meyering <jim@meyering.net>
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.
16414 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
16416 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
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.
16422 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
16424 * build-aux/bootstrap (gnulib_name): New variable.
16425 (gnulib_tool_options): Use it.
16427 2007-03-13 Simon Josefsson <simon@josefsson.org>
16429 * tests/test-des.c: Use new namespace.
16431 2007-03-15 Bruno Haible <bruno@clisp.org>
16433 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
16434 Reported by James Youngman <jay@gnu.org>.
16436 2007-03-15 Bruno Haible <bruno@clisp.org>
16438 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
16439 declared prototype. Needed with cc on OSF/1 5.1.
16441 2007-03-15 Bruno Haible <bruno@clisp.org>
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
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
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
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.
16485 2007-03-15 Bruno Haible <bruno@clisp.org>
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
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
16500 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
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.
16507 2007-03-13 Bruno Haible <bruno@clisp.org>
16509 * tests/test-stdbool.c (i): Update after last patch.
16511 2007-03-12 Bruno Haible <bruno@clisp.org>
16513 * lib/quotearg.c: Include <wctype.h> early, before the definition of
16514 the iswprint macro. Needed on Solaris 2.5.1.
16516 2007-03-12 Bruno Haible <bruno@clisp.org>
16518 * tests/test-printf-frexp.c (main): Declare x as volatile.
16520 2007-03-12 Simon Josefsson <simon@josefsson.org>
16522 * doc/gnulib.texi (Build robot for gnulib): New section.
16524 2007-03-12 Jim Meyering <jim@meyering.net>
16526 * build-aux/bootstrap: New file.
16527 * build-aux/bootstrap.conf: New file, from coreutils.
16529 2007-03-11 Bruno Haible <bruno@clisp.org>
16531 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
16533 2007-03-12 Simon Josefsson <simon@josefsson.org>
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_'.
16539 2007-03-11 Bruno Haible <bruno@clisp.org>
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.
16544 2007-03-11 Bruno Haible <bruno@clisp.org>
16546 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
16547 formula. Needed for SunPRO C 5.0.
16549 2007-03-11 Bruno Haible <bruno@clisp.org>
16551 * modules/long-options (Depends-on): Add getopt.
16553 2007-03-11 Bruno Haible <bruno@clisp.org>
16555 * modules/modechange (Depends-on): Add stdbool.
16557 2007-03-11 Bruno Haible <bruno@clisp.org>
16559 * modules/i-ring (Depends-on): Add stdbool.
16561 2007-03-11 Bruno Haible <bruno@clisp.org>
16563 * modules/gc-des (Depends-on): Add stdbool.
16565 2007-03-11 Bruno Haible <bruno@clisp.org>
16567 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
16569 2007-03-11 Bruno Haible <bruno@clisp.org>
16571 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
16573 2007-03-11 Bruno Haible <bruno@clisp.org>
16575 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
16577 2007-03-11 Bruno Haible <bruno@clisp.org>
16579 * lib/vasnprintf.c (sprintf): Undefine.
16581 2007-03-11 Bruno Haible <bruno@clisp.org>
16583 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
16584 initializers in SunPRO C and Compaq C compilers.
16586 2007-03-11 Bruno Haible <bruno@clisp.org>
16588 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
16589 decrementing code ANSI C compliant.
16591 2007-03-11 Bruno Haible <bruno@clisp.org>
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.
16596 2007-03-11 Bruno Haible <bruno@clisp.org>
16598 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
16599 <stdbool.h> substitute doesn't pass.
16601 2007-03-11 Bruno Haible <bruno@clisp.org>
16603 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
16605 2007-03-11 Bruno Haible <bruno@clisp.org>
16607 * gnulib-tool (func_create_megatestdir): Create also an autobuild
16608 script, for submission to autobuild.josefsson.org.
16610 2007-03-10 Bruno Haible <bruno@clisp.org>
16612 * modules/canonicalize-lgpl-tests: New file.
16613 * tests/test-canonicalize-lgpl.sh: New file.
16614 * tests/test-canonicalize-lgpl.c: New file.
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.
16621 * modules/atexit-tests: New file.
16622 * tests/test-atexit.sh: New file.
16623 * tests/test-atexit.c: New file.
16625 2007-03-10 Bruno Haible <bruno@clisp.org>
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.
16631 2007-03-10 Bruno Haible <bruno@clisp.org>
16633 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
16634 fallback; use #error instead.
16635 Suggested by Simon Josefsson.
16637 2007-03-10 Bruno Haible <bruno@clisp.org>
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.
16643 2007-03-10 Bruno Haible <bruno@clisp.org>
16645 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
16647 2007-03-10 Bruno Haible <bruno@clisp.org>
16649 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
16651 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
16652 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
16653 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
16655 2007-03-10 Bruno Haible <bruno@clisp.org>
16657 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
16659 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
16662 2007-03-09 Eric Blake <ebb9@byu.net>
16663 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
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.
16670 2007-03-10 Bruno Haible <bruno@clisp.org>
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.
16677 2007-03-09 Bruno Haible <bruno@clisp.org>
16679 * modules/printf-posix-tests: New file.
16680 * tests/test-printf-posix.sh: New file.
16681 * tests/test-printf-posix.c: New file.
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,
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,
16694 2007-03-09 Bruno Haible <bruno@clisp.org>
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.
16702 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
16703 a locale dependent decimal point, rather than always '.'.
16705 2007-03-09 Eric Blake <ebb9@byu.net>
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.
16710 2007-03-08 Bruno Haible <bruno@clisp.org>
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.
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,
16722 * lib/stdio_.h (vprintf): New declaration.
16723 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
16726 2007-03-08 Bruno Haible <bruno@clisp.org>
16728 * modules/fprintf-posix-tests: New file.
16729 * tests/test-fprintf-posix.sh: New file.
16730 * tests/test-fprintf-posix.c: New file.
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,
16737 * lib/stdio_.h (fprintf): New declaration.
16738 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
16741 2007-03-08 Bruno Haible <bruno@clisp.org>
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.
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,
16754 * lib/stdio_.h (vfprintf): New declaration.
16755 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
16758 2007-03-08 Bruno Haible <bruno@clisp.org>
16760 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
16762 2007-03-08 Bruno Haible <bruno@clisp.org>
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.
16773 2007-03-08 Bruno Haible <bruno@clisp.org>
16775 * modules/fseterr-tests: New file.
16776 * tests/test-fseterr.c: New file.
16778 * modules/fseterr: New file.
16779 * lib/fseterr.h: New file.
16780 * lib/fseterr.c: New file.
16782 2007-03-08 Bruno Haible <bruno@clisp.org>
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.
16794 2007-03-08 Jim Meyering <jim@meyering.net>
16796 * users.txt: Add parted.
16798 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
16800 2007-03-07 Bruno Haible <bruno@clisp.org>
16802 * m4/printf.m4: Make the shell script snippets copy&pastable.
16804 2007-03-02 Bruno Haible <bruno@clisp.org>
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
16814 2007-03-03 Bruno Haible <bruno@clisp.org>
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
16824 2007-03-02 Bruno Haible <bruno@clisp.org>
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
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>.
16837 2007-03-02 Bruno Haible <bruno@clisp.org>
16839 * lib/byteswap_.h (bswap_32): Fix formula.
16841 2007-03-06 Bruno Haible <bruno@clisp.org>
16843 * modules/sprintf-posix-tests: New file.
16844 * tests/test-sprintf-posix.c: New file.
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,
16851 * lib/stdio_.h (sprintf): New declaration.
16852 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
16855 2007-03-06 Bruno Haible <bruno@clisp.org>
16857 * modules/vsprintf-posix-tests: New file.
16858 * tests/test-vsprintf-posix.c: New file.
16859 * tests/test-sprintf-posix.h: New file.
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,
16866 * lib/stdio_.h (vsprintf): New declaration.
16867 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
16870 2007-03-06 Bruno Haible <bruno@clisp.org>
16872 * modules/vsnprintf (Depend-on): Remove minmax.
16874 2007-03-06 Bruno Haible <bruno@clisp.org>
16876 * modules/snprintf-posix-tests: New file.
16877 * tests/test-snprintf-posix.c: New file.
16879 * modules/snprintf-posix: New file.
16880 * m4/snprintf-posix.m4: New file.
16881 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
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
16887 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
16889 2007-03-06 Bruno Haible <bruno@clisp.org>
16891 * modules/vsnprintf-posix-tests: New file.
16892 * tests/test-vsnprintf-posix.c: New file.
16893 * tests/test-snprintf-posix.h: New file.
16895 * modules/vsnprintf-posix: New file.
16896 * m4/vsnprintf-posix.m4: New file.
16897 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
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.
16905 2007-03-06 Bruno Haible <bruno@clisp.org>
16907 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
16908 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
16910 2007-03-06 Bruno Haible <bruno@clisp.org>
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.
16932 2007-03-05 Bruno Haible <bruno@clisp.org>
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.
16938 2007-03-05 Bruno Haible <bruno@clisp.org>
16940 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
16941 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
16943 2007-03-05 Bruno Haible <bruno@clisp.org>
16945 * lib/stdio_.h: Include <stddef.h>.
16947 2007-03-05 Bruno Haible <bruno@clisp.org>
16949 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
16951 2007-03-05 Bruno Haible <bruno@clisp.org>
16953 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
16954 NetBSD 4, from Ralf Wildenhues.
16956 2007-03-04 Bruno Haible <bruno@clisp.org>
16958 * lib/vasprintf.h: Update #if logic for the case when the functions
16959 exist but are overridden.
16961 2007-03-04 Bruno Haible <bruno@clisp.org>
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.
16969 2007-03-04 Bruno Haible <bruno@clisp.org>
16971 * modules/vasprintf-posix-tests: New file.
16972 * tests/test-vasprintf-posix.c: New file.
16974 * modules/vasprintf-posix: New file.
16975 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
16977 * m4/vasprintf-posix.m4: New file.
16978 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
16980 (gl_FUNC_VASPRINTF): Invoke it.
16981 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
16983 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
16985 2007-03-04 Bruno Haible <bruno@clisp.org>
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.
16993 2007-03-04 Bruno Haible <bruno@clisp.org>
16995 * modules/vasnprintf-posix-tests: New file.
16996 * tests/test-vasnprintf-posix.c: New file.
16998 * modules/vasnprintf-posix: New file.
16999 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.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.
17010 2007-03-04 Bruno Haible <bruno@clisp.org>
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
17018 2007-03-04 Jim Meyering <jim@meyering.net>
17020 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
17021 Use it consistently, rather than enumerating errno constants.
17023 2007-03-04 Bruno Haible <bruno@clisp.org>
17025 * modules/xvasprintf-tests: New file.
17026 * tests/test-xvasprintf.c: New file.
17028 * modules/vasprintf-tests: New file.
17029 * tests/test-vasprintf.c: New file.
17031 * modules/vasnprintf-tests: New file.
17032 * tests/test-vasnprintf.c: New file.
17034 * modules/vsnprintf-tests: New file.
17035 * tests/test-vsnprintf.c: New file.
17037 * modules/snprintf-tests: New file.
17038 * tests/test-snprintf.c: New file.
17040 2007-03-04 Bruno Haible <bruno@clisp.org>
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
17056 * modules/relocatable-prog-wrapper (configure.ac): Invoke
17057 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
17059 2007-03-04 Bruno Haible <bruno@clisp.org>
17061 * modules/argmatch-tests: New file.
17062 * tests/test-argmatch.c: New file.
17064 * tests/test-allocsa.c (main): Halve the number of loop runs.
17066 * modules/alloca-opt-tests: New file.
17067 * tests/test-alloca-opt.c: New file.
17069 2007-03-04 Jim Meyering <jim@meyering.net>
17071 Work around difference between Linux ACLs and Solaris 10 ZFS.
17072 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
17075 2007-03-03 Bruno Haible <bruno@clisp.org>
17077 * modules/relocatable-prog (Depends-on): Add back progreloc's
17078 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
17080 2007-03-03 Bruno Haible <bruno@clisp.org>
17082 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
17083 * modules/relocatable-lib: New file.
17085 2007-03-03 Bruno Haible <bruno@clisp.org>
17087 * modules/relocatable-prog: Renamed from modules/relocatable.
17088 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
17090 2007-03-03 Bruno Haible <bruno@clisp.org>
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.
17097 2007-03-03 Bruno Haible <bruno@clisp.org>
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.
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.
17108 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
17109 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
17111 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
17112 (gl_FUNC_READLINK): Update.
17114 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
17116 2007-03-03 Bruno Haible <bruno@clisp.org>
17118 * lib/xreadlink.c: Include <unistd.h> unconditionally.
17119 * modules/xreadlink (Depends-on): Add unistd.
17120 * modules/xreadlink-with-size (Depends-on): Likewise.
17122 2007-03-03 Bruno Haible <bruno@clisp.org>
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.
17130 2007-03-03 Bruno Haible <bruno@clisp.org>
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.
17136 2007-03-03 Bruno Haible <bruno@clisp.org>
17138 * modules/rbtreehash-list-tests (Depends-on): Add progname.
17139 * tests/test-rbtreehash_list.c: Include progname.h.
17140 (main): Call set_program_name.
17142 * modules/rbtree-oset-tests (Depends-on): Add progname.
17143 * tests/test-rbtree_oset.c: Include progname.h.
17144 (main): Call set_program_name.
17146 * modules/rbtree-list-tests (Depends-on): Add progname.
17147 * tests/test-rbtree_list.c: Include progname.h.
17148 (main): Call set_program_name.
17150 * modules/linked-list-tests (Depends-on): Add progname.
17151 * tests/test-linked_list.c: Include progname.h.
17152 (main): Call set_program_name.
17154 2007-03-03 Bruno Haible <bruno@clisp.org>
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.
17160 2007-03-02 Bruno Haible <bruno@clisp.org>
17162 * modules/gettext (configure.ac): Require gettext infrastructure
17163 from version 0.16.1.
17165 2007-03-02 Bruno Haible <bruno@clisp.org>
17167 * modules/linkedhash-list-tests (Depends-on): Add progname.
17168 * tests/test-linkedhash_list.c: Include progname.h.
17169 (main): Call set_program_name.
17171 * modules/carray-list-tests (Depends-on): Add progname.
17172 * tests/test-carray_list.c: Include progname.h.
17173 (main): Call set_program_name.
17175 * modules/avltreehash-list-tests (Depends-on): Add progname.
17176 * tests/test-avltreehash_list.c: Include progname.h.
17177 (main): Call set_program_name.
17179 * modules/avltree-oset-tests (Depends-on): Add progname.
17180 * tests/test-avltree_oset.c: Include progname.h.
17181 (main): Call set_program_name.
17183 * modules/avltree-list-tests (Depends-on): Add progname.
17184 * tests/test-avltree_list.c: Include progname.h.
17185 (main): Call set_program_name.
17187 * modules/array-oset-tests (Depends-on): Add progname.
17188 * tests/test-array_oset.c: Include progname.h.
17189 (main): Call set_program_name.
17191 * modules/array-list-tests (Depends-on): Add progname.
17192 * tests/test-array_list.c: Include progname.h.
17193 (main): Call set_program_name.
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.
17199 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
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.
17205 2007-03-01 Bruno Haible <bruno@clisp.org>
17207 * build-aux/config.libpath: Update to libtool-1.5.22.
17208 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17210 2007-03-01 Bruno Haible <bruno@clisp.org>
17212 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
17214 Reported by Ralf Wildenhues.
17216 2007-03-01 Bruno Haible <bruno@clisp.org>
17218 * build-aux/install-reloc: Remove object files left over by some
17220 Reported by Ralf Wildenhues.
17222 2007-03-01 Bruno Haible <bruno@clisp.org>
17224 * build-aux/install-reloc: Break long lines.
17226 2007-03-01 Bruno Haible <bruno@clisp.org>
17228 * doc/relocatable.texi: Document that it may not work on OpenBSD.
17229 Reported by Ralf Wildenhues.
17231 2007-03-01 Bruno Haible <bruno@clisp.org>
17233 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
17234 include ordering constraints.
17236 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
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.
17249 2007-03-01 Bruno Haible <bruno@clisp.org>
17251 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
17252 * m4/utimens.m4 (gl_UTIMENS): Likewise.
17254 2007-03-01 Jim Meyering <jim@meyering.net>
17256 * modules/xreadlink (Maintainer): Add my name.
17257 * modules/xreadlink-with-size (Depends-on): Alphabetize.
17259 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
17260 Bruno Haible <bruno@clisp.org>
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.
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.
17285 2007-02-28 Bruno Haible <bruno@clisp.org>
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.
17296 2007-02-28 Bruno Haible <bruno@clisp.org>
17298 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
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.
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.
17318 2007-02-25 Jim Meyering <jim@meyering.net>
17320 * build-aux/announce-gen: When complaining about excess arguments,
17323 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
17325 * README: Document signed integer overflow situation more
17328 2007-02-25 Bruno Haible <bruno@clisp.org>
17330 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
17331 'a' or 'A' conversion.
17333 2007-02-25 Bruno Haible <bruno@clisp.org>
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
17359 2007-02-25 Bruno Haible <bruno@clisp.org>
17361 * modules/printf-frexpl-tests: New file.
17362 * tests/test-printf-frexpl.c: New file.
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.
17369 2007-02-25 Bruno Haible <bruno@clisp.org>
17371 * modules/printf-frexp-tests: New file.
17372 * tests/test-printf-frexp.c: New file.
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.
17379 2007-02-25 Bruno Haible <bruno@clisp.org>
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.
17420 2007-02-24 Bruno Haible <bruno@clisp.org>
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
17428 Reported by Eric Blake <ebb9@byu.net>.
17430 2007-02-24 Bruno Haible <bruno@clisp.org>
17432 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
17434 * lib/isnanl.c: Remove all code. Just include isnan.c.
17435 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
17437 2007-02-25 Jim Meyering <jim@meyering.net>
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
17444 2007-02-24 Bruno Haible <bruno@clisp.org>
17446 * modules/isnanl-nolibm-tests: New file.
17447 * tests/test-isnanl.c: New file.
17449 * modules/isnanl-nolibm: New file.
17450 * lib/isnanl.h: New file.
17451 * lib/isnanl.c: New file.
17452 * m4/isnanl.m4: New file.
17454 2007-02-24 Bruno Haible <bruno@clisp.org>
17456 * modules/isnan-nolibm-tests: New file.
17457 * tests/test-isnan.c: New file.
17459 * modules/isnan-nolibm: New file.
17460 * lib/isnan.h: New file.
17461 * lib/isnan.c: New file.
17462 * m4/isnan.m4: New file.
17464 2007-02-24 Bruno Haible <bruno@clisp.org>
17466 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
17467 assume that an exponent fits in 20 bits.
17469 2007-02-24 Jim Meyering <jim@meyering.net>
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.
17475 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
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>.
17482 2007-02-23 Bruno Haible <bruno@clisp.org>
17484 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
17485 Needed for help2man.
17487 2007-02-23 Karl Berry <karl@gnu.org>
17489 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
17490 exists, foo.h should be cvs-ignored, not committed.
17492 2007-02-23 Eric Blake <ebb9@byu.net>
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.
17503 2007-02-22 Bruno Haible <bruno@clisp.org>
17505 * lib/glob.c: Don't include getlogin_r.h.
17507 2007-02-22 Jim Meyering <jim@meyering.net>
17509 * modules/utimens (Depends-on): Add timespec, required for
17510 utimens.h's inclusion of timespec.h.
17512 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
17514 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
17515 long unreadable paths in GNU/Linux. Problem reported by Andreas
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.
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.
17525 2007-02-21 Jim Meyering <jim@meyering.net>
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.
17532 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
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.
17541 2007-02-20 Bruno Haible <bruno@clisp.org>
17543 * modules/stdio-tests: New file.
17544 * tests/test-stdio.c: New file.
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.
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.
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.
17571 2007-02-20 Jim Meyering <jim@meyering.net>
17573 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
17574 used by e.g., mingw. From Bruno Haible.
17576 2007-02-19 Bruno Haible <bruno@clisp.org>
17578 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
17580 Reported by Ben Pfaff <blp@cs.stanford.edu>.
17582 2007-02-19 Bruno Haible <bruno@clisp.org>
17584 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
17587 2007-02-19 Bruno Haible <bruno@clisp.org>
17589 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
17591 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
17593 2007-02-19 Jim Meyering <jim@meyering.net>
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*.
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.
17602 2007-02-18 Bruno Haible <bruno@clisp.org>
17604 * lib/readlink.c: Include <unistd.h>.
17605 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
17607 * modules/readlink (Depends-on): Add unistd.
17608 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17609 (Include): Add <unistd.h>.
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.
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.
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.
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.
17643 * lib/dup2.c: Include <unistd.h> first.
17644 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
17646 * modules/dup2 (Depends-on): Add unistd.
17647 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
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.
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
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
17676 2007-02-18 Bruno Haible <bruno@clisp.org>
17678 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
17679 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
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.
17692 2007-02-18 Bruno Haible <bruno@clisp.org>
17694 * modules/fchdir (Depends-on): Add dup2.
17696 2007-02-18 Bruno Haible <bruno@clisp.org>
17698 * lib/stdlib_.h: Handle glibc's special invocation convention
17701 2007-02-18 Bruno Haible <bruno@clisp.org>
17703 * modules/stdlib-tests: New file.
17704 * tests/test-stdlib.c: New file.
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.
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
17722 * lib/mkdtemp.c: Don't include mkdtemp.h.
17723 * lib/clean-temp.c: Don't include mkdtemp.h.
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.
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.
17748 2007-02-18 Bruno Haible <bruno@clisp.org>
17750 * modules/math-tests: New file.
17751 * tests/test-math.c: New file.
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
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.
17779 2007-02-17 Bruno Haible <bruno@clisp.org>
17781 * modules/wctype-tests: New file.
17782 * tests/test-wctype.c: New file.
17784 * modules/wchar-tests: New file.
17785 * tests/test-wchar.c: New file.
17787 * modules/unistd-tests: New file.
17788 * tests/test-unistd.c: New file.
17790 * modules/time-tests: New file.
17791 * tests/test-time.c: New file.
17793 * modules/sysexits-tests: New file.
17794 * tests/test-sysexits.c: New file.
17796 * modules/sys_time-tests: New file.
17797 * tests/test-sys_time.c: New file.
17799 * modules/sys_stat-tests: New file.
17800 * tests/test-sys_stat.c: New file.
17802 * modules/sys_socket-tests: New file.
17803 * tests/test-sys_socket.c: New file.
17805 * modules/sys_select-tests: New file.
17806 * tests/test-sys_select.c: New file.
17808 * modules/string-tests: New file.
17809 * tests/test-string.c: New file.
17811 * modules/stdbool-tests: New file.
17812 * tests/test-stdbool.c: New file.
17814 * modules/netinet_in-tests: New file.
17815 * tests/test-netinet_in.c: New file.
17817 * modules/inttypes-tests: New file.
17818 * tests/test-inttypes.c: New file.
17820 * modules/fcntl-tests: New file.
17821 * tests/test-fcntl.c: New file.
17823 * modules/byteswap-tests: New file.
17824 * tests/test-byteswap.c: New file.
17826 * modules/arpa_inet-tests: New file.
17827 * tests/test-arpa_inet.c: New file.
17829 2007-02-17 Bruno Haible <bruno@clisp.org>
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.
17848 2007-02-17 Bruno Haible <bruno@clisp.org>
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.
17855 2007-02-17 Bruno Haible <bruno@clisp.org>
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
17863 * MODULES.html.sh (Support for building libraries and executables): Add
17866 2007-02-17 Bruno Haible <bruno@clisp.org>
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
17873 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
17874 Bruno Haible <bruno@clisp.org>
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".
17881 2007-02-15 Bruno Haible <bruno@clisp.org>
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.
17887 2007-02-14 Bruno Haible <bruno@clisp.org>
17889 * modules/mbspcasecmp-tests: New file.
17890 * tests/test-mbspcasecmp.sh: New file.
17891 * tests/test-mbspcasecmp.c: New file.
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.
17904 2007-02-14 Bruno Haible <bruno@clisp.org>
17906 * modules/mbsncasecmp-tests: New file.
17907 * tests/test-mbsncasecmp.sh: New file.
17908 * tests/test-mbsncasecmp.c: New file.
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.
17920 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
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
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).
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.
17941 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17943 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
17944 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17946 2007-02-13 Bruno Haible <bruno@clisp.org>
17948 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
17949 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17951 2007-02-12 Bruno Haible <bruno@clisp.org>
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.
17958 2007-02-12 Bruno Haible <bruno@clisp.org>
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>.
17964 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
17966 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
17969 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
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.
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
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
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
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.
18033 2007-02-11 Bruno Haible <bruno@clisp.org>
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.
18053 2007-02-11 Bruno Haible <bruno@clisp.org>
18055 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
18057 * modules/mbsspn-tests: New file.
18058 * tests/test-mbsspn.sh: New file.
18059 * tests/test-mbsspn.c: New file.
18061 2007-02-11 Bruno Haible <bruno@clisp.org>
18063 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
18065 * modules/mbspbrk-tests: New file.
18066 * tests/test-mbspbrk.sh: New file.
18067 * tests/test-mbspbrk.c: New file.
18069 2007-02-11 Bruno Haible <bruno@clisp.org>
18071 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
18074 * modules/mbscspn-tests: New file.
18075 * tests/test-mbscspn.sh: New file.
18076 * tests/test-mbscspn.c: New file.
18078 2007-02-11 Bruno Haible <bruno@clisp.org>
18080 * modules/mbscasecmp-tests: New file.
18081 * tests/test-mbscasecmp.sh: New file.
18082 * tests/test-mbscasecmp.c: New file.
18084 2007-02-11 Bruno Haible <bruno@clisp.org>
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
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.
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.
18104 2007-02-11 Bruno Haible <bruno@clisp.org>
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
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.
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.
18122 2007-02-11 Bruno Haible <bruno@clisp.org>
18124 * lib/mbsrchr.c (mbsrchr): Fix bug.
18126 * modules/mbsrchr-tests: New file.
18127 * tests/test-mbsrchr.sh: New file.
18128 * tests/test-mbsrchr.c: New file.
18130 2007-02-11 Bruno Haible <bruno@clisp.org>
18132 * lib/mbschr.c (mbschr): Fix bug.
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.
18139 2007-02-11 Bruno Haible <bruno@clisp.org>
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.
18149 2007-02-11 Bruno Haible <bruno@clisp.org>
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
18158 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
18159 * MODULES.html.sh (Internationalization functions): Add mbslen.
18161 2007-02-11 Bruno Haible <bruno@clisp.org>
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.
18170 * modules/strcasestr-tests: New file.
18171 * tests/test-strcasestr.c: New file.
18173 2007-02-11 Bruno Haible <bruno@clisp.org>
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.
18182 * modules/c-strcasestr-tests: New file.
18183 * tests/test-c-strcasestr.c: New file.
18185 2007-02-11 Bruno Haible <bruno@clisp.org>
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.
18194 * lib/c-strstr.c: Complete rewrite for maintainability.
18196 * modules/c-strstr-tests: New file.
18197 * tests/test-c-strstr.c: New file.
18199 2007-02-11 Bruno Haible <bruno@clisp.org>
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
18204 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18206 2007-02-08 Bruno Haible <bruno@clisp.org>
18208 * modules/regex (Depends-on): Add stdbool.
18209 Reported by Dalibor Topic <robilad@kaffe.org>.
18211 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
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.
18217 2007-02-05 Bruno Haible <bruno@clisp.org>
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
18227 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
18228 * MODULES.html.sh (Internationalization functions): Add mbssep.
18230 2007-02-05 Bruno Haible <bruno@clisp.org>
18232 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
18233 Optimize search in case of 1 delimiter.
18235 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
18237 * lib/acl.h: Include sys/types.h before sys/acl.h.
18239 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
18241 Merge upstream fix for glibc bugzilla #3957:
18243 2007-02-05 Jakub Jelinek <jakub@redhat.com>
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.
18249 2007-02-05 Simon Josefsson <simon@josefsson.org>
18251 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
18253 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
18255 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
18256 * lib/memmem.c [!defined _LIBC]: Include config.h.
18258 2007-02-04 Bruno Haible <bruno@clisp.org>
18260 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
18263 2007-02-04 Bruno Haible <bruno@clisp.org>
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
18274 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
18275 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
18277 2007-02-04 Bruno Haible <bruno@clisp.org>
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
18287 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
18288 * MODULES.html.sh (Internationalization functions): Add mbsspn.
18290 2007-02-04 Bruno Haible <bruno@clisp.org>
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
18300 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
18301 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
18303 2007-02-04 Bruno Haible <bruno@clisp.org>
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
18313 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
18314 * MODULES.html.sh (Internationalization functions): Add mbscspn.
18316 2007-02-04 Bruno Haible <bruno@clisp.org>
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.
18341 2007-02-04 Bruno Haible <bruno@clisp.org>
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.
18353 2007-02-04 Bruno Haible <bruno@clisp.org>
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
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.
18377 2007-02-04 Bruno Haible <bruno@clisp.org>
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
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
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.
18398 2007-02-04 Bruno Haible <bruno@clisp.org>
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
18408 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
18409 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
18411 2007-02-04 Bruno Haible <bruno@clisp.org>
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
18421 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
18422 * MODULES.html.sh (Internationalization functions): Add mbschr.
18424 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
18426 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
18428 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
18430 2007-02-04 Bruno Haible <bruno@clisp.org>
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.
18441 2007-02-04 Bruno Haible <bruno@clisp.org>
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.
18460 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
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
18466 2007-02-03 Jim Meyering <jim@meyering.net>
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.
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>.
18477 2007-02-02 Bruno Haible <bruno@clisp.org>
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
18484 Reported by Paul Eggert.
18486 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
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.
18495 2007-02-02 Jim Meyering <jim@meyering.net>
18497 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
18498 section, not in the Makefile.am: one.
18500 2007-02-02 Eric Blake <ebb9@byu.net>
18502 * lib/strchrnul.c: Always include config.h first.
18504 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
18505 gnulib strstr is not necessary here.
18507 2007-02-02 Simon Josefsson <simon@josefsson.org>
18509 * m4/socklen.m4: Fix typo.
18511 2007-02-02 Eric Blake <ebb9@byu.net>
18513 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
18514 * modules/netinet_in (Makefile.am): Likewise.
18516 2007-02-01 Bruno Haible <bruno@clisp.org>
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
18522 (strncasecmp): Conditionally define as a macro that leads to a warning.
18524 2007-02-01 Karl Berry <karl@gnu.org>
18526 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
18528 2007-02-01 Bruno Haible <bruno@clisp.org>
18530 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
18533 2007-02-01 Eric Blake <ebb9@byu.net>
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.
18540 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
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.
18547 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
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.
18556 2007-01-31 Eric Blake <ebb9@byu.net>
18558 * modules/mountlist (Depends-on): Add strstr.
18560 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
18562 * modules/string (Makefile.am): Remove redundant replacement.
18563 * modules/regex (Depends-on): Add mempcpy.
18565 2007-01-31 Bruno Haible <bruno@clisp.org>
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.
18582 2007-01-27 Bruno Haible <bruno@clisp.org>
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.
18607 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
18609 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
18611 2007-01-30 Jim Meyering <jim@meyering.net>
18613 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
18615 2007-01-29 Bruno Haible <bruno@clisp.org>
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.
18625 2007-01-29 Eric Blake <ebb9@byu.net>
18627 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
18630 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
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
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
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.
18655 2007-01-29 Bruno Haible <bruno@clisp.org>
18657 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18659 * modules/strptime (Depends-on): Add stdbool.
18660 * lib/strptime.h: Include <time.h> always. Add comments.
18662 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
18664 * modules/strptime: New file.
18665 * lib/strptime.h: New file.
18666 * lib/strptime.c: New file.
18667 * m4/strptime.m4: New file.
18669 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
18671 * MODULES.html.sh: New module mpsort.
18672 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
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>.
18678 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
18680 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
18682 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
18683 the parameter matches the prototype.
18685 2007-01-28 Jim Meyering <jim@meyering.net>
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>.
18691 2007-01-28 Bruno Haible <bruno@clisp.org>
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.
18702 2007-01-28 Bruno Haible <bruno@clisp.org>
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).
18710 2007-01-28 Bruno Haible <bruno@clisp.org>
18712 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
18713 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
18715 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18717 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
18718 (func_create_testdir): Ensure C locale for `grep' and `tr'
18720 (func_create_megatestdir): Avoid one `grep'. Fix bug in
18721 ACLOCAL_AMFLAGS parsing state machine.
18723 2007-01-27 Bruno Haible <bruno@clisp.org>
18725 * modules/unistr/base: Update.
18727 2007-01-27 Bruno Haible <bruno@clisp.org>
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.
18743 2007-01-27 Bruno Haible <bruno@clisp.org>
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.
18768 2007-01-27 Bruno Haible <bruno@clisp.org>
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.
18796 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18799 * lib/argz.c: Do not include strings.h nor memory.h, include
18800 string.h unconditionally. Patch by Simon Josefsson.
18802 2007-01-27 Bruno Haible <bruno@clisp.org>
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.
18823 2007-01-27 Bruno Haible <bruno@clisp.org>
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.
18832 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18833 Bruno Haible <bruno@clisp.org>
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.
18849 2007-01-27 Bruno Haible <bruno@clisp.org>
18851 * lib/string_.h: Use 'extern'.
18853 2007-01-27 Jim Meyering <jim@meyering.net>
18855 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
18856 of set-but-not-used local, "q".
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.
18862 2007-01-26 Bruno Haible <bruno@clisp.org>
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.
18869 2007-01-26 Bruno Haible <bruno@clisp.org>
18871 * MODULES.html.sh (Unicode string functions): Add the new modules.
18873 * modules/uniconv/u32-strconv-to-locale: New file.
18874 * lib/uniconv/u32-strconv-to-locale.c: New file.
18876 * modules/uniconv/u16-strconv-to-locale: New file.
18877 * lib/uniconv/u16-strconv-to-locale.c: New file.
18879 * modules/uniconv/u8-strconv-to-locale: New file.
18880 * lib/uniconv/u8-strconv-to-locale.c: New file.
18882 * modules/uniconv/u32-strconv-from-locale: New file.
18883 * lib/uniconv/u32-strconv-from-locale.c: New file.
18885 * modules/uniconv/u16-strconv-from-locale: New file.
18886 * lib/uniconv/u16-strconv-from-locale.c: New file.
18888 * modules/uniconv/u8-strconv-from-locale: New file.
18889 * lib/uniconv/u8-strconv-from-locale.c: New file.
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.
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.
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.
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.
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.
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.
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.
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.
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.
18939 * modules/uniconv/base: New file.
18940 * lib/uniconv.h: New file.
18942 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
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
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
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.
19042 2007-01-25 Bruno Haible <bruno@clisp.org>
19044 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
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.
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.
19059 2007-01-24 Bruno Haible <bruno@clisp.org>
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,
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,
19073 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
19075 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
19076 Reported by Ralf Wildenhues.
19078 2007-01-24 Bruno Haible <bruno@clisp.org>
19080 Drop AC_REQUIRE calls that are redundant with the module dependencies.
19081 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
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.
19087 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
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.
19093 * lib/fnmatch_.h: Readjust white space and comments to match
19094 glibc, to avoid spurious diffs.
19096 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
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.
19102 2007-01-23 Bruno Haible <bruno@clisp.org>
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.
19108 2007-01-23 Bruno Haible <bruno@clisp.org>
19110 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
19112 * modules/c-strcaseeq: New file.
19113 * lib/c-strcaseeq.h: New file.
19115 * modules/streq: New file.
19116 * lib/streq.h: New file.
19118 2007-01-23 Bruno Haible <bruno@clisp.org>
19120 * modules/striconveha-tests: New file.
19121 * tests/test-striconveha.c: New file.
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,
19133 2007-01-23 Bruno Haible <bruno@clisp.org>
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.
19140 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
19142 Import the following changes from libc.
19144 2005-10-14 Ulrich Drepper <drepper@redhat.com>
19146 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
19148 2004-12-01 Jakub Jelinek <jakub@redhat.com>
19150 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
19151 normal_bracket label.
19153 2004-09-01 Jakub Jelinek <jakub@redhat.com>
19156 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
19157 to normal_bracket after fetching the next character.
19159 2007-01-22 Bruno Haible <bruno@clisp.org>
19161 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
19163 * lib/striconveh.c (iconv_carefully_1): New function.
19164 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
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.
19173 2007-01-22 Bruno Haible <bruno@clisp.org>
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.
19180 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
19182 * modules/gettimeofday (License): Change from GPL to LGPL, since
19183 gettimeofday is a library function.
19185 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19187 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
19189 2007-01-21 Bruno Haible <bruno@clisp.org>
19191 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
19193 2007-01-21 Bruno Haible <bruno@clisp.org>
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
19201 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
19203 2007-01-21 Bruno Haible <bruno@clisp.org>
19205 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
19206 * lib/striconveh.c (str_iconveh): Likewise.
19208 2007-01-21 Bruno Haible <bruno@clisp.org>
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.
19214 2007-01-21 Bruno Haible <bruno@clisp.org>
19216 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
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.
19224 * lib/striconv.h (mem_cd_iconv): Change specification.
19225 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
19227 (str_cd_iconv): Update.
19228 * tests/test-striconv.c (main): Update.
19230 2007-01-21 Bruno Haible <bruno@clisp.org>
19232 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
19234 2007-01-20 Jim Meyering <jim@meyering.net>
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 "+".
19240 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
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.
19248 2007-01-18 Bruno Haible <bruno@clisp.org>
19250 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
19251 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
19253 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
19256 * tests/test-gettimeofday.c: Include <time.h>.
19257 (dummy): Remove variable.
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.
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.
19275 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
19276 last change; it caused a compilation error when cross-compiling to
19279 2007-01-18 Jim Meyering <jim@meyering.net>
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.
19289 2007-01-18 Eric Blake <ebb9@byu.net>
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.
19296 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
19298 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
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
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
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):
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;
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.
19387 2007-01-17 Bruno Haible <bruno@clisp.org>
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.
19394 2007-01-17 Bruno Haible <bruno@clisp.org>
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.
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>
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().
19420 * tests/test-gettimeofday.c: New file.
19421 * modules/gettimeofday-tests: New file.
19423 2007-01-16 Eric Blake <ebb9@byu.net>
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.
19451 2007-01-16 Bruno Haible <bruno@clisp.org>
19453 * modules/csharpexec-script: New, created from...
19454 * modules/csharpexec: ... this.
19456 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
19458 * modules/javaexec-script: New, created from...
19459 * modules/javaexec: ... this.
19461 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19463 * modules/poll (Dependencies): Add sys_select.
19465 2007-01-15 Jim Meyering <jim@meyering.net>
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>.
19472 2007-01-15 Bruno Haible <bruno@clisp.org>
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.
19479 * modules/striconveh-tests: New file.
19480 * tests/test-striconveh.c: New file.
19482 2007-01-15 Bruno Haible <bruno@clisp.org>
19484 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
19485 not from GNU libiconv or GNU libc.
19487 2007-01-15 Bruno Haible <bruno@clisp.org>
19489 * doc/gnulib-intro.texi (Copyright): Explain the different license
19490 terms for module descriptions, autoconf macros, tests, documentation.
19492 2007-01-14 Bruno Haible <bruno@clisp.org>
19494 * modules/striconv-tests: New file.
19495 * tests/test-striconv.c: New file.
19497 2007-01-14 Bruno Haible <bruno@clisp.org>
19499 * modules/iconv-tests: New file.
19500 * tests/test-iconv.c: New file.
19502 2007-01-14 Bruno Haible <bruno@clisp.org>
19504 * gnulib-tool (func_get_license): For test modules, use the license of
19507 2007-01-14 Bruno Haible <bruno@clisp.org>
19509 * modules/iconv (Include): Clarify that <iconv.h> can only be included
19510 if iconv is found to exist.
19512 2007-01-14 Bruno Haible <bruno@clisp.org>
19514 * modules/c-ctype-tests: New file.
19515 * tests/test-c-ctype.c: New file.
19517 2007-01-14 Bruno Haible <bruno@clisp.org>
19519 * modules/binary-io-tests: New file.
19520 * tests/test-binary-io.sh: New file.
19521 * tests/test-binary-io.c: New file.
19523 2007-01-14 Bruno Haible <bruno@clisp.org>
19525 * modules/array-oset-tests: New file.
19526 * tests/test-array_oset.c: New file.
19528 2007-01-14 Bruno Haible <bruno@clisp.org>
19530 * modules/array-list-tests: New file.
19531 * tests/test-array_list.c: New file.
19533 2007-01-14 Bruno Haible <bruno@clisp.org>
19535 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
19537 Reported by Simon Josefsson in
19538 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
19540 2007-01-14 Bruno Haible <bruno@clisp.org>
19542 * modules/allocsa-tests: New file.
19543 * tests/test-allocsa.c: New file.
19545 2007-01-14 Bruno Haible <bruno@clisp.org>
19547 * modules/fchdir (Depends-on): Add absolute-header.
19548 * modules/unistd (Depends-on): Likewise.
19550 2006-12-30 Bruno Haible <bruno@clisp.org>
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
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.
19583 2007-01-10 Bruno Haible <bruno@clisp.org>
19585 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
19587 2007-01-12 Eric Blake <ebb9@byu.net>
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
19596 * MODULES.html.sh (Extended multibyte and wide character utilities):
19599 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
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.
19607 2007-01-11 Simon Josefsson <simon@josefsson.org>
19609 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
19610 Emacs .#* auto-save files).
19612 2007-01-11 Bruno Haible <bruno@clisp.org>
19614 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
19617 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
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.
19626 2007-01-10 Eric Blake <ebb9@byu.net>
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.
19633 2007-01-10 Jim Meyering <jim@meyering.net>
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.
19641 2007-01-10 Eric Blake <ebb9@byu.net>
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.
19649 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19651 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
19654 2007-01-09 Bruno Haible <bruno@clisp.org>
19656 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
19657 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
19659 (func_module): Use them.
19661 2007-01-09 Bruno Haible <bruno@clisp.org>
19663 * modules/unistr/base: New file.
19664 * lib/unistr.h: New file.
19666 * modules/unistr/u8-to-u16: New file.
19667 * lib/unistr/u8-to-u16.c: New file.
19669 * modules/unistr/u8-to-u32: New file.
19670 * lib/unistr/u8-to-u32.c: New file.
19672 * modules/unistr/u16-to-u8: New file.
19673 * lib/unistr/u16-to-u8.c: New file.
19675 * modules/unistr/u16-to-u32: New file.
19676 * lib/unistr/u16-to-u32.c: New file.
19678 * modules/unistr/u32-to-u8: New file.
19679 * lib/unistr/u32-to-u8.c: New file.
19681 * modules/unistr/u32-to-u16: New file.
19682 * lib/unistr/u32-to-u16.c: New file.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
19949 * MODULES.html.sh (Unicode string functions): Add the new modules.
19951 2007-01-08 Bruno Haible <bruno@clisp.org>
19953 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
19954 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
19957 2007-01-08 Karl Berry <karl@gnu.org>
19959 * doc/error.texi: mention that main() fns must set program_name
19960 when progname is used.
19962 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
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>.
19969 2007-01-08 Bruno Haible <bruno@clisp.org>
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.
19977 2007-01-08 Bruno Haible <bruno@clisp.org>
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.
19985 2006-12-25 Bruno Haible <bruno@clisp.org>
19987 * modules/utf8-ucs4-safe: New file.
19988 * lib/utf8-ucs4-safe.h: New file.
19989 * lib/unistr/utf8-ucs4-safe.c: New file.
19991 * modules/utf16-ucs4-safe: New file.
19992 * lib/utf16-ucs4-safe.h: New file.
19993 * lib/unistr/utf16-ucs4-safe.c: New file.
19995 * MODULES.html.sh (Unicode string functions): Add the new modules.
19997 2007-01-08 Bruno Haible <bruno@clisp.org>
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.
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.
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.
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.
20027 2006-12-25 Bruno Haible <bruno@clisp.org>
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.
20035 2007-01-08 Bruno Haible <bruno@clisp.org>
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
20043 Reported by Ralf Wildenhues.
20045 2007-01-08 Bruno Haible <bruno@clisp.org>
20047 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
20049 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
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
20054 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
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
20061 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
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.
20079 2007-01-08 Bruno Haible <bruno@clisp.org>
20081 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
20083 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
20085 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
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.
20093 2007-01-08 Bruno Haible <bruno@clisp.org>
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.
20099 2007-01-08 Bruno Haible <bruno@clisp.org>
20101 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
20104 2007-01-08 Jim Meyering <jim@meyering.net>
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.
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'.
20119 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
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
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.
20132 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
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.
20139 * gnulib-tool (autoconf_minversion): Take the maximum version number
20140 found, not the minimum. Problem reported by James Youngman.
20142 2007-01-03 Karl Berry <karl@gnu.org>
20144 * doc/error.texi: new file, explaining interaction with progname.
20145 * doc/gnulib.texi: include it. Update copyright.
20147 2007-01-03 Simon Josefsson <simon@josefsson.org>
20149 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
20150 AC_CANONICAL_HOST, to improve autobuild outputs.
20152 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
20153 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
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).
20161 2007-01-01 Bruno Haible <bruno@clisp.org>
20163 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
20165 2007-01-03 Jim Meyering <jim@meyering.net>
20167 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
20169 2007-01-02 Bruno Haible <bruno@clisp.org>
20171 * modules/settime (Include): Require timespec.h.
20172 * modules/nanosleep (Include): Likewise.
20174 2007-01-01 Bruno Haible <bruno@clisp.org>
20176 * gnulib-tool (func_emit_copyright_notice): Bump year.
20177 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
20179 2007-01-01 Bruno Haible <bruno@clisp.org>
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.
20188 2007-01-01 Eric Blake <ebb9@byu.net>
20190 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
20192 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
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.
20199 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
20200 Define. Trivial patch from Henning Nielsen Lund, originally
20201 sent to bug-grep@gnu.org today.
20203 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
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.
20210 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
20212 Import the following change from libc; problem reported by
20215 2005-10-13 Ulrich Drepper <drepper@redhat.com>
20218 * lib/argp.h: Remove __NTH for __argp_usage inline function.
20220 2006-12-28 Jim Meyering <jim@meyering.net>
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.
20226 2006-12-28 Simon Josefsson <simon@josefsson.org>
20228 * modules/announce-gen: New file.
20230 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
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.
20244 2006-12-27 Eric Blake <ebb9@byu.net>
20246 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
20247 module uses more than what <wctype.h> is required to provide.
20249 2006-12-26 Eric Blake <ebb9@byu.net>
20251 * gnulib-tool (sed_extract_prog): Avoid space-tab.
20253 2006-12-26 Eric Blake <ebb9@byu.net>
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.
20264 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
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.
20271 2006-12-24 Jim Meyering <jim@meyering.net>
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):
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.
20284 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
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.
20300 2006-12-23 Bruno Haible <bruno@clisp.org>
20302 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
20304 2006-12-23 Bruno Haible <bruno@clisp.org>
20306 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
20308 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
20311 2006-12-22 Bruno Haible <bruno@clisp.org>
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.
20318 2006-12-22 Bruno Haible <bruno@clisp.org>
20320 * gnulib-tool (SED): New variable.
20321 Use $SED instead of sed everywhere.
20323 2006-12-22 Bruno Haible <bruno@clisp.org>
20325 * modules/no-c++: New file.
20326 * m4/no-c++.m4: New file.
20327 * MODULES.html.sh (Support for building libraries and executables):
20330 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
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
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.
20342 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
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.
20358 2006-12-19 Bruno Haible <bruno@clisp.org>
20360 * lib/strdup.h [C++]: Wrap definitions in extern "C".
20361 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
20363 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20365 * modules/savewd (Depends-on): Fix dependency on fcntl.
20367 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
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.
20373 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
20374 and Eric Blake <ebb9@byu.net>
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.
20388 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
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.
20394 2006-12-12 Jim Meyering <jim@meyering.net>
20396 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
20397 Reported by Andreas Schwab <schwab@suse.de>.
20399 2006-12-12 Bruno Haible <bruno@clisp.org>
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
20413 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
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.
20419 2006-12-10 Bruno Haible <bruno@clisp.org>
20421 * gnulib-tool (func_import): Show the include files only for those
20422 modules that are copied and specified.
20423 Reported by Karl Berry.
20425 2006-12-08 Jim Meyering <jim@meyering.net>
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.
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.
20440 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20442 * tests/test-argp-2.sh: Fix test to match actual output.
20443 (func_compare): Fix sed script to be portable.
20445 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
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.
20451 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
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
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.
20467 2006-12-03 Jim Meyering <jim@meyering.net>
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.
20477 2006-12-01 Jim Meyering <jim@meyering.net>
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.
20483 2006-11-30 Jim Meyering <jim@meyering.net>
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.
20490 2006-11-29 Bruno Haible <bruno@clisp.org>
20492 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20493 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
20495 Reported by Simon Josefsson <simon@josefsson.org>.
20497 2006-11-28 James Youngman <jay@gnu.org>
20499 * README: Advise users that they might find the bug-gnulib@gnu.org
20500 and autotools-announce@gnu.org mailing lists useful.
20502 2006-11-28 Bruno Haible <bruno@clisp.org>
20504 * m4/ptrdiff_max.m4: Remove file.
20506 2006-11-21 Bruno Haible <bruno@clisp.org>
20508 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
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
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
20516 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20518 2006-11-28 Jim Meyering <jim@meyering.net>
20520 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
20521 warning from "gcc -Wshadow" about shadowing the builtin.
20523 2006-11-27 Bruno Haible <bruno@clisp.org>
20525 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
20527 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
20529 2006-11-27 Bruno Haible <bruno@clisp.org>
20530 Paul Eggert <eggert@cs.ucla.edu>
20532 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
20534 2006-11-26 Bruno Haible <bruno@clisp.org>
20536 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20537 noinst_LTLIBRARIES.
20539 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
20540 Bruno Haible <bruno@clisp.org>
20542 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
20543 if compiling with "gcc -ansi".
20545 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
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
20554 * lib/regexec.c (check_node_accept_bytes): Don't use auto
20555 initializers for struct if -pedantic, unless it's C99 or later.
20557 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
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.
20563 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
20565 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
20567 2006-11-23 Jim Meyering <jim@meyering.net>
20569 * build-aux/announce-gen: New file. From coreutils.
20571 2006-11-22 Jim Meyering <jim@meyering.net>
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.
20578 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
20579 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20581 2006-11-20 Bruno Haible <bruno@clisp.org>
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>.
20587 2006-11-21 Jim Meyering <jim@meyering.net>
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.
20593 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
20595 * MODULES.html.sh (File system functions): Add openat.
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.
20606 2006-11-20 Bruno Haible <bruno@clisp.org>
20608 * Makefile: New file.
20610 2006-11-20 Jim Meyering <jim@meyering.net>
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.
20617 * lib/idcache.c: Adjust comments in user- and group- portions to
20618 be more accurate, and to be consistent with one another.
20620 2006-11-20 Jim Meyering <jim@meyering.net>
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.
20629 * lib/idcache.c (getuser): Remove all uses of the register keyword.
20630 (getuidbyname, getgroup, getgidbyname): Likewise.
20632 Use cleaner syntax: NULL rather than 0.
20633 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
20635 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
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.
20642 2006-11-18 Jim Meyering <jim@meyering.net>
20644 * check-module (%exempt_header): Add exception for some
20645 conditionally-included headers.
20647 * modules/i-ring (Depends-on): Add verify.
20648 (License): Change to LGPL.
20650 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
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.
20657 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
20659 * modules/inline (License): Change from GPL to LGPL.
20661 2006-11-17 Jim Meyering <jim@meyering.net>
20663 * modules/d-type (License): Switch to LGPL.
20665 2006-11-15 Bruno Haible <bruno@clisp.org>
20667 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
20669 2006-11-15 Eric Blake <ebb9@byu.net>
20671 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
20672 the module dependency.
20674 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20675 Bruno Haible <bruno@clisp.org>
20677 * gnulib-tool (func_create_testdir): Add license consistency check.
20679 2006-11-15 Eric Blake <ebb9@byu.net>
20681 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
20682 random "(cached)" in configure output.
20684 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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.
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.
20696 * tests/test-gc.c (main): Remove unused variables.
20697 * tests/test-read-file.c: Include stdlib.h, for 'free'.
20699 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
20701 * modules/inttostr (License): Change to LGPL.
20703 2006-11-14 Eric Blake <ebb9@byu.net>
20705 * modules/tempname (License): Change to LGPL.
20707 2006-11-14 Eric Blake <ebb9@byu.net>
20709 * doc/functions.texi (Function Portability): *printf functions on
20710 Cygwin now understand all POSIX size specifiers.
20712 2006-11-14 Bruno Haible <bruno@clisp.org>
20714 * modules/c-ctype (License): Change to LGPL.
20716 2006-11-12 Bruno Haible <bruno@clisp.org>
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.
20723 2006-11-12 Bruno Haible <bruno@clisp.org>
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.
20729 2006-11-13 Bruno Haible <bruno@clisp.org>
20731 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
20732 the tests directory.
20733 Reported by Ralf Wildenhues.
20735 2006-11-13 Bruno Haible <bruno@clisp.org>
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.
20742 2006-11-13 Eric Blake <ebb9@byu.net>
20744 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
20745 element, not its node.
20747 2006-11-12 Bruno Haible <bruno@clisp.org>
20749 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
20750 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
20752 2006-11-12 Bruno Haible <bruno@clisp.org>
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.
20761 2006-11-12 Bruno Haible <bruno@clisp.org>
20763 * gnulib-tool (func_ln): New function.
20764 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
20766 2006-11-12 Bruno Haible <bruno@clisp.org>
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
20772 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
20774 2006-11-12 Bruno Haible <bruno@clisp.org>
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.
20780 2006-11-12 Jim Meyering <jim@meyering.net>
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 ("..")'.
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.
20805 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20807 * gnulib-tool (func_create_testdir): Fix replacement of
20808 `build-aux' in configure.ac. Run autotools in gltests
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.
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.
20820 2006-11-10 Jim Meyering <jim@meyering.net>
20822 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
20824 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
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.
20834 2006-11-10 Jim Meyering <jim@meyering.net>
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
20840 2006-11-10 Jim Meyering <jim@meyering.net>
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.
20848 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
20850 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
20851 Problem reported by Matthew Woehlke.
20853 2006-11-09 Bruno Haible <bruno@clisp.org>
20855 * lib/tempname.c (gen_tempname): Remove variant that invokes
20857 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
20860 2006-11-08 Bruno Haible <bruno@clisp.org>
20862 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
20863 to 'yes' instead of 'cross-compiling'.
20865 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
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.
20872 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20874 Sync from Automake.
20875 * build-aux/gnupload: Add missing 'gnu' to example URL.
20876 Report by Karl Berry.
20878 2006-11-08 Bruno Haible <bruno@clisp.org>
20880 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
20881 Suggested by Paul Eggert.
20883 2006-11-08 Jim Meyering <jim@meyering.net>
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.
20889 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
20891 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
20892 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
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.
20905 2006-11-07 Bruno Haible <bruno@clisp.org>
20907 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
20908 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
20910 * modules/xalloc (Files): Add m4/inline.m4.
20912 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20914 * README: Fix typo.
20915 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
20916 (Miscellanous Notes): ...from this.
20918 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
20920 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20921 Mention that offsetof should be used instead of sizeof.
20924 2006-11-07 Bruno Haible <bruno@clisp.org>
20926 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
20928 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
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.
20946 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20948 * lib/gl_oset.h: Use C comment style, not C++ comment style.
20950 2006-11-06 Bruno Haible <bruno@clisp.org>
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.
20957 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
20959 * lib/idcache.c: Include <stddef.h>, for offsetof.
20960 (struct userid.name): Change from char * to a flexible array member.
20962 * modules/idcache (Depends-on): Add flexmember.
20964 * MODULES.html.sh (Core language properties): New module flexmember.
20965 * modules/flexmember, m4/flexmember.m4: New files.
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
20973 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
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
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.
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
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.
21002 2006-11-05 Bruno Haible <bruno@clisp.org>
21004 * gnulib-tool (func_import, func_create_testdir): Create directories
21005 also for files in subdirectories of lib/.
21007 2006-11-05 Bruno Haible <bruno@clisp.org>
21009 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
21012 2006-11-03 Bruno Haible <bruno@clisp.org>
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
21021 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
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
21027 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21028 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
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
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.
21042 2006-11-03 Bruno Haible <bruno@clisp.org>
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.
21049 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
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.
21059 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
21061 * gnulib-tool (func_import): Fix typo in actioncmd.
21063 2006-11-02 Bruno Haible <bruno@clisp.org>
21065 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
21066 newline sequence in the Makefile.am snippet as a space, like "make"
21068 Reported by Roger Persson <perrog@gmail.com>.
21070 2006-11-01 Bruno Haible <bruno@clisp.org>
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.
21076 2006-11-01 Bruno Haible <bruno@clisp.org>
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.
21082 2006-11-01 Bruno Haible <bruno@clisp.org>
21084 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
21086 2006-11-01 Eric Blake <ebb9@byu.net>
21088 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
21090 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
21092 2006-10-29 Bruno Haible <bruno@clisp.org>
21094 Make it compile in C++ mode.
21095 * lib/full-write.c (full_rw): Add a cast.
21097 2006-11-01 Bruno Haible <bruno@clisp.org>
21099 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
21100 be POSIX compliant.
21101 Reported by Roger Persson <perrog@gmail.com>.
21103 2006-11-01 Eric Blake <ebb9@byu.net>
21105 * lib/getopt_.h: Fix comments.
21107 2006-10-31 Eric Blake <ebb9@byu.net>
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
21116 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
21118 Avoid some C++ diagnostics reported by Bruno Haible.
21119 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
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.
21129 2006-10-29 Bruno Haible <bruno@clisp.org>
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.
21143 2006-10-22 Bruno Haible <bruno@clisp.org>
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.
21151 2006-10-29 Eric Blake <ebb9@byu.net>
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.
21177 2006-10-28 Eric Blake <ebb9@byu.net>
21179 * lib/xstrndup.c: Assume config.h.
21181 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
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.
21230 2006-10-27 Bruno Haible <bruno@clisp.org>
21232 * m4/signed.m4: Remove file.
21233 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
21235 * modules/vasnprintf (Files): Remove m4/signed.m4.
21237 2006-10-27 Bruno Haible <bruno@clisp.org>
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
21247 2006-10-27 Eric Blake <ebb9@byu.net>
21249 * MODULES.html.sh: Document tempname.
21250 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
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.
21268 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
21270 * COPYING: Explain how gnulib-tool converts licence headers.
21271 Almost all wording by Eric Blake.
21273 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
21275 * lib/mbchar.h (is_basic_table): Make read-only.
21276 * lib/mbchar.c (is_basic_table): Likewise.
21277 Reported by John Darrington.
21279 2006-10-25 Bruno Haible <bruno@clisp.org>
21281 * lib/progname.h (set_program_name): Undefine before defining.
21283 2006-10-25 Bruno Haible <bruno@clisp.org>
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>.
21289 2006-10-24 Bruno Haible <bruno@clisp.org>
21291 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
21292 iconv implementations like Irix iconv.
21294 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
21296 * modules/vararrays: New file.
21297 * m4/vararrays.m4: New file, taken from diffutils.
21298 * MODULES.html.sh: New module vararrays.
21300 2006-10-24 Karl Berry <karl@gnu.org>
21302 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
21303 Don't call GNU Unix.
21305 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21307 * users.txt: Add Libtool.
21311 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
21313 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
21314 to gnulib's policy of including config.h unconditionally.
21316 2006-10-24 Bruno Haible <bruno@clisp.org>
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.
21322 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
21324 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
21325 to pacify GCC with some -W flags enabled. Problem reported by
21328 2006-10-24 Jim Meyering <jim@meyering.net>
21330 * MODULES.html.sh: Remove uinttostr. It's not a module.
21331 Reported by Karl Berry.
21333 2006-10-23 Bruno Haible <bruno@clisp.org>
21335 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
21337 2006-10-24 Bruno Haible <bruno@clisp.org>
21339 * lib/gl_list.h: Use C comment style, not C++ comment style.
21341 2006-10-23 Eric Blake <ebb9@byu.net>
21343 * lib/getaddrinfo.c (includes): Add missing include.
21345 2006-10-23 Bruno Haible <bruno@clisp.org>
21346 Paul Eggert <eggert@cs.ucla.edu>
21348 Ability to rename obstack_free.
21349 * lib/obstack.h (__obstack_free): New macro. Declare instead of
21351 (obstack_free): Invoke the __obstack_free macro.
21352 * lib/obstack.c (obstack_free): Use __obstack_free macro.
21354 2006-10-23 Bruno Haible <bruno@clisp.org>
21355 Paul Eggert <eggert@cs.ucla.edu>
21357 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
21358 __argc, __argv from the declaration. (They are defined as macros on
21361 2006-10-22 Bruno Haible <bruno@clisp.org>
21363 * doc/gnulib-intro.texi: New file.
21364 * doc/gnulib.texi: Include it.
21366 2006-10-21 Bruno Haible <bruno@clisp.org>
21368 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
21369 "Introduction", "Miscellanous Notes", "Particular Modules".
21371 2006-10-21 Bruno Haible <bruno@clisp.org>
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.
21377 2006-10-23 Jim Meyering <jim@meyering.net>
21379 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
21380 in place of snprintf.
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>):
21388 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
21390 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
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>.
21396 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
21398 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
21399 Problem reported by Perry Smith and Ville Laurikari.
21401 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
21404 2006-10-19 Bruno Haible <bruno@clisp.org>
21406 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
21409 2006-10-19 Bruno Haible <bruno@clisp.org>
21411 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
21414 2006-10-19 Bruno Haible <bruno@clisp.org>
21416 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
21418 2006-10-19 Bruno Haible <bruno@clisp.org>
21420 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
21423 2006-10-19 Bruno Haible <bruno@clisp.org>
21425 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
21428 2006-10-19 Bruno Haible <bruno@clisp.org>
21430 * gnulib-tool (func_create_testdir): Don't include ftruncate and
21431 mountlist by default.
21433 2006-10-16 Bruno Haible <bruno@clisp.org>
21435 * lib/c-strstr.c: Include c-strstr.h.
21437 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
21439 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
21442 2006-10-18 Bruno Haible <bruno@clisp.org>
21444 * lib/lock.h [C++]: Wrap definitions in extern "C".
21446 2006-10-18 Bruno Haible <bruno@clisp.org>
21448 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
21451 2006-10-18 Bruno Haible <bruno@clisp.org>
21453 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
21455 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
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.
21462 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
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.
21469 2006-10-18 Jim Meyering <jim@meyering.net>
21471 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
21472 type for a local, and rename it: s/up/user_proc/.
21474 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
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
21480 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
21482 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
21483 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
21485 2006-10-17 Eric Blake <ebb9@byu.net>
21487 * lib/sigprocmask.c (sigprocmask): Fix typo.
21489 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
21491 * modules/clean-temp (Makefile.am): Don't add to make output...
21492 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
21495 2006-10-17 Bruno Haible <bruno@clisp.org>
21497 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
21498 differently if DEFAULT_TEXT_DOMAIN is set.
21500 2006-10-16 Bruno Haible <bruno@clisp.org>
21502 * lib/clean-temp.c: Include fwriteerror.h.
21504 2006-10-16 Bruno Haible <bruno@clisp.org>
21506 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
21508 2006-10-16 Bruno Haible <bruno@clisp.org>
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.
21514 2006-10-17 Eric Blake <ebb9@byu.net>
21516 * lib/xvasprintf.c (includes): Assume config.h.
21517 * lib/xasprintf.c (includes): Likewise.
21519 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
21521 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
21522 at least as wide as intmax_t.
21524 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
21526 (Imported from Automake.)
21527 * build-aux/gnupload: Update to version 1.1 of directive file.
21529 2006-10-16 Eric Blake <ebb9@byu.net>
21531 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
21532 match Automake 1.10a.
21534 2006-10-14 Bruno Haible <bruno@clisp.org>
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
21553 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
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.
21566 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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.
21575 2006-10-13 Jim Meyering <jim@meyering.net>
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.
21583 2006-10-12 Bruno Haible <bruno@clisp.org>
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.
21803 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
21805 * modules/error (Makefile.am): Distribute files through
21806 EXTRA_DIST, not lib_SOURCES.
21808 2006-10-12 Eric Blake <ebb9@byu.net>
21810 * modules/error (Makefile.am): Distribute files in /lib.
21811 * modules/obstack (Makefile.am): Likewise.
21813 2006-10-12 Bruno Haible <bruno@clisp.org>
21815 * modules/acl (Makefile.am): Distribute all files in lib/ through
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.
21997 2006-10-12 Jim Meyering <jim@meyering.net>
21999 * m4/getloadavg.m4: Revert the change below.
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.
22006 2006-10-12 Bruno Haible <bruno@clisp.org>
22008 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
22010 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
22011 MSVC and mingw explicitly.
22013 2006-10-11 Simon Josefsson <jas@extundo.com>
22014 Bruno Haible <bruno@clisp.org>
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.
22026 2006-10-11 Bruno Haible <bruno@clisp.org>
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.
22033 2006-10-11 Bruno Haible <bruno@clisp.org>
22035 * gnulib-tool (func_usage): Make module names after --create-testdir
22037 (func_create_testdir): If no module was specified, use nearly all
22040 2006-10-12 Jim Meyering <jim@meyering.net>
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.
22064 * lib/fts.c (fts_open): Use consistent indentation.
22066 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
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
22075 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22076 Fix misspelling in diagnostic.
22078 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
22080 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
22081 defined. Problem reported by Matthew Woehlke.
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):
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,
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.
22104 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
22105 Bruno Haible <bruno@clisp.org>
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.
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.
22121 2006-10-11 Bruno Haible <bruno@clisp.org>
22123 * m4/longlong.m4: Add comments.
22124 * m4/ulonglong.m4: Likewise.
22126 2006-10-10 Bruno Haible <bruno@clisp.org>
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.
22132 2006-10-10 Bruno Haible <bruno@clisp.org>
22134 Make it possible to #define gcd to an alias.
22135 * lib/gcd.c: Include config.h.
22137 2006-10-10 Bruno Haible <bruno@clisp.org>
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
22143 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
22144 define NO_C_CTYPE_MACROS early.
22146 2006-10-10 Bruno Haible <bruno@clisp.org>
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.
22152 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
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):
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.
22177 2006-10-10 Bruno Haible <bruno@clisp.org>
22179 Fix a gcc -Wshadow warning.
22180 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
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):
22186 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
22188 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
22189 Reported by Eric Blake.
22191 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
22193 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
22194 for NetBSD. Problem reported by Bruno Haible.
22196 2006-10-09 Jim Meyering <jim@meyering.net>
22198 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
22199 Patch from Bruno Haible.
22201 2006-10-09 Jim Meyering <jim@meyering.net>
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
22207 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
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
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.
22227 2006-10-08 Bruno Haible <bruno@clisp.org>
22229 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
22232 2006-10-07 Jim Meyering <jim@meyering.net>
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).
22238 2006-10-07 Bruno Haible <bruno@clisp.org>
22240 * modules/sublist: New file.
22242 2006-10-07 Bruno Haible <bruno@clisp.org>
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.
22267 2006-10-07 Bruno Haible <bruno@clisp.org>
22269 * lib/gl_sublist.h: New file.
22270 * lib/gl_sublist.c: New file.
22272 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
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
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.
22282 2006-10-06 Eric Blake <ebb9@byu.net>
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.
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.
22294 2006-10-06 Bruno Haible <bruno@clisp.org>
22296 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
22297 instead of fopen, fwriteerror.
22299 2006-10-06 Bruno Haible <bruno@clisp.org>
22301 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
22302 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
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.
22309 2006-10-06 Bruno Haible <bruno@clisp.org>
22311 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
22312 Reported by Eric Blake.
22314 2006-10-06 Bruno Haible <bruno@clisp.org>
22316 * modules/closeout (Description): Mention stderr too.
22318 2006-10-06 Bruno Haible <bruno@clisp.org>
22319 and Paul Eggert <eggert@cs.ucla.edu>
22321 * lib/closeout.c (close_stdout): Also close stderr.
22322 * lib/closeout.h: Update comment.
22324 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
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.
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.
22345 Remove macros that are no longer needed now that stdint.h is
22347 * lib/fsusage.c (UINTMAX_MAX): Remove.
22348 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
22349 * lib/utimecmp.c (SIZE_MAX): Remove.
22351 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
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
22357 2006-10-05 Bruno Haible <bruno@clisp.org>
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
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
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
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):
22386 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22387 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
22390 2006-10-05 Bruno Haible <bruno@clisp.org>
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'
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
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):
22438 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22440 2006-10-05 Bruno Haible <bruno@clisp.org>
22442 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
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.
22452 2006-10-04 Jim Meyering <jim@meyering.net>
22454 * lib/fts.c (fts_open): Tiny comment change.
22456 2006-10-04 Bruno Haible <bruno@clisp.org>
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
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.
22466 2006-10-04 Bruno Haible <bruno@clisp.org>
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.
22479 2006-10-04 Bruno Haible <bruno@clisp.org>
22481 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
22483 2006-10-03 Bruno Haible <bruno@clisp.org>
22485 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
22486 from gl_avltreehash_list_implementation.
22488 2006-10-03 Bruno Haible <bruno@clisp.org>
22490 * lib/gl_oset.c (gl_oset_add): Fix return type.
22492 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
22494 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
22496 2006-10-02 Eric Blake <ebb9@byu.net>
22498 * modules/strnlen (Depends-on): Add extensions.
22500 2006-10-02 Eric Blake <ebb9@byu.net>
22502 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
22503 definition in 2.60+.
22505 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
22507 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
22510 2006-10-02 Bruno Haible <bruno@clisp.org>
22512 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
22513 to the AUTOMAKE_OPTIONS.
22514 Reported by Jim Meyering.
22516 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
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
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):
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).
22536 2006-09-29 Bruno Haible <bruno@clisp.org>
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.
22543 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22545 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
22547 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
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.
22552 2006-09-28 Jim Meyering <jim@meyering.net>
22554 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
22555 Include <unistd.h>.
22557 2006-09-28 Bruno Haible <bruno@clisp.org>
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.
22563 2006-09-28 Bruno Haible <bruno@clisp.org>
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.
22569 2006-09-28 Bruno Haible <bruno@clisp.org>
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.
22575 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
22577 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
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.
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
22591 2006-09-27 Jim Meyering <jim@meyering.net>
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.
22603 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
22605 * modules/savewd (Depends-on): Add 'raise'.
22606 * lib/savewd.c: Include <signal.h>, for 'raise'.
22608 2006-09-26 Jim Meyering <jim@meyering.net>
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.
22616 2006-09-26 Eric Blake <ebb9@byu.net>
22618 * lib/verror.c: Include <config.h> unconditionally.
22620 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
22622 * modules/clock-time (Maintainer): Add self.
22623 * modules/getlogin_r (Depends-on): Add extensions.
22625 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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.
22633 * modules/fts-lgpl: Depend on openat.
22634 * modules/mkancesdirs: Depend on savewd.
22635 * modules/mkdir-p: Likewise.
22637 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22639 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
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.
22646 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22647 Bruno Haible <bruno@clisp.org>
22649 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
22651 2006-09-25 Jim Meyering <jim@meyering.net>
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.
22656 2006-09-25 Eric Blake <ebb9@byu.net>
22658 * gnulib-tool (func_import, func_create_testdir): Fix typos in
22659 exec's in 2006-09-18 patch when shuffling fds.
22661 2006-09-25 Bruno Haible <bruno@clisp.org>
22663 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
22664 Reported by Jim Meyering.
22666 2006-09-24 Jim Meyering <jim@meyering.net>
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.
22672 2006-09-22 Simon Josefsson <jas@extundo.com>
22676 * modules/gc-hmac-sha1:
22677 * modules/gc-hmac-md5:
22679 * modules/gc-arcfour: Distribute more files.
22681 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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.
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.
22699 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22701 * modules/bison-i18n (Depends-on): Add gettext.
22703 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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
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
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.
22725 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
22727 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
22729 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
22731 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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.
22737 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22738 Bruno Haible <bruno@clisp.org>
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.
22744 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
22745 (gl_FUNC_VASPRINTF): Invoke it.
22747 2006-09-22 Bruno Haible <bruno@clisp.org>
22749 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
22750 getloadavg.c as first argument.
22752 2006-09-22 Bruno Haible <bruno@clisp.org>
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
22759 2006-09-22 Bruno Haible <bruno@clisp.org>
22761 * gnulib-tool (func_create_megatestdir): Don't include the config-h
22763 Suggested by Ralf Wildenhues.
22765 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
22767 Import this patch from libc:
22769 2006-09-06 Jakub Jelinek <jakub@redhat.com>
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.
22777 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
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.
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".
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.
22796 * lib/mkstemp.h: New file, since some standard headers
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.
22806 Import this patch from libc:
22808 2006-04-07 Ulrich Drepper <drepper@redhat.com>
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].
22814 2006-09-20 Bruno Haible <bruno@clisp.org>
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.
22825 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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.
22833 2006-09-19 Karl Berry <karl@gnu.org>
22835 * doc/gnulib.texi: note about the license texinfo files.
22837 2006-09-19 Eric Blake <ebb9@byu.net>
22839 * gnulib-tool: Avoid space-tab.
22841 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
22843 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
22844 that prevented coreutils 6.1 from building. Problem reported
22845 by Petter Reinholdtsen.
22847 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
22849 * gnulib-tool (avoidlist): Fix typo that broke options like
22850 --avoid=lock that are used by coreutils bootstrap.
22852 2006-09-18 Mark D. Baushke <mdb@gnu.org>
22854 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
22855 more systematically.
22857 2006-09-18 Jim Meyering <jim@meyering.net>
22859 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
22861 2006-09-18 Bruno Haible <bruno@clisp.org>
22863 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
22865 2006-09-18 Bruno Haible <bruno@clisp.org>
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.
22876 2006-09-18 Bruno Haible <bruno@clisp.org>
22878 * lib/javaversion.c: Include configmake.h.
22880 2006-09-18 Bruno Haible <bruno@clisp.org>
22882 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
22883 avoid that the while loops be executed in a subshell.
22885 2006-09-18 Bruno Haible <bruno@clisp.org>
22887 * MODULES.html.sh (func_module): Break long lines.
22888 Suggested by Bruce Korb <bkorb@gnu.org>.
22890 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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
22897 2006-09-17 Bruno Haible <bruno@clisp.org>
22899 * modules/javaversion (Makefile.am): Remove DEFS setting.
22900 (Depends-on): Add configmake, for PKGDATADIR definition.
22902 2006-09-17 Bruno Haible <bruno@clisp.org>
22904 * gnulib-tool (func_create_testdir): Rewrite all files at once.
22906 2006-09-17 Bruno Haible <bruno@clisp.org>
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.
22914 2006-09-16 Karl Berry <karl@gnu.org>
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.)
22924 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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.
22930 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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.
22936 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22938 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
22939 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
22941 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
22943 * modules/mkancesdirs (Depends-on): Add fcntl.
22944 * modules/savewd: New file.
22945 * MODULES.html.sh (File system functions): Add savewd.
22947 * modules/configmake (Makefile.am): Add support for the
22948 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
22950 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
22952 * m4/savewd.m4: New file.
22954 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
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;
22978 * lib/savewd.c, lib/savewd.h: New files.
22980 2006-09-15 Jim Meyering <jim@meyering.net>
22982 * modules/rename-dest-slash: New module.
22983 * MODULES.html.sh (posix_compat): Add it here.
22985 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
22987 2006-09-15 Jim Meyering <jim@meyering.net>
22989 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
22992 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
22994 2006-09-15 Jim Meyering <jim@meyering.net>
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.
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.
23006 * lib/rename-dest-slash.c: New file.
23008 2006-09-14 Bruno Haible <bruno@clisp.org>
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.
23079 2006-09-13 Simon Josefsson <jas@extundo.com>
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>.
23085 2006-09-13 Simon Josefsson <jas@extundo.com>
23087 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
23089 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23091 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
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:
23138 2006-09-13 Eric Blake <ebb9@byu.net>
23140 * lib/getopt.c: Fix typo in last commit.
23142 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
23144 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
23147 2006-09-12 Jim Meyering <jim@meyering.net>
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.
23153 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
23155 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
23156 program_invocation_name and program_invocation_short_name are
23158 * lib/argp-namefrob.h: Move declarations of program_invocation_name
23159 and program_invocation_short_name to argp.h, so they are visible
23161 * lib/argp.h: Likewise
23163 2006-09-10 Bruno Haible <bruno@clisp.org>
23165 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23166 m4/inttypes_h.m4, m4/uintmax_t.m4.
23168 2006-09-10 Bruno Haible <bruno@clisp.org>
23170 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
23171 gl_AC_TYPE_UINTMAX_T.
23173 2006-09-10 Bruno Haible <bruno@clisp.org>
23175 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
23177 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
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.
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_("..").
23189 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
23191 * config/srclist.txt: Undo latest change; the bug was fixed.
23193 2006-09-09 Bruno Haible <bruno@clisp.org>
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.
23208 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23210 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
23211 Check for unistd.h too, since Autoconf doesn't assume POSIX.
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>.
23218 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
23219 Prefer #ifdef to #if.
23221 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
23222 Return from 'main' instead of calling 'exit'.
23224 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
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>.
23231 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23233 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
23236 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
23238 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
23241 2006-09-08 Jim Meyering <jim@meyering.net>
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:
23255 2006-09-08 Jim Meyering <jim@meyering.net>
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>.
23262 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23264 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
23266 2006-09-07 Jim Meyering <jim@meyering.net>
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:
23277 2006-09-06 Jim Meyering <jim@meyering.net>
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
23303 * modules/sysexits (Makefile.am): Replace literal occurrences
23304 of "sysexit.h" more readable, and more consistent, "$@".
23306 2006-09-06 Bruno Haible <bruno@clisp.org>
23308 * modules/striconv: New file.
23309 * modules/xstriconv: New file.
23310 * MODULES.html.sh (Internationalization functions): Add striconv,
23313 2006-09-06 Bruno Haible <bruno@clisp.org>
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.
23319 2006-09-06 Bruno Haible <bruno@clisp.org>
23321 * lib/striconv.h: New file.
23322 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
23324 * lib/xstriconv.h: New file.
23325 * lib/xstriconv.c: New file.
23327 2006-09-06 Bruno Haible <bruno@clisp.org>
23329 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
23332 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23334 * lib/argz_.h: Sync from Libtool.
23336 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
23337 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23339 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
23341 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
23343 * modules/trim: New file.
23345 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
23347 * lib/trim.h: New file.
23348 * lib/trim.c: New file.
23350 2006-09-05 Bruno Haible <bruno@clisp.org>
23352 * MODULES.html.sh (String handling): Add trim.
23354 2006-09-04 Karl Berry <karl@gnu.org>
23356 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
23357 until next release.
23359 2006-09-03 Bruno Haible <bruno@clisp.org>
23361 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
23364 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
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.
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.
23378 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
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>.
23384 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
23385 HAVE_STRUCT_STATFS_F_FSTYPENAME.
23387 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
23389 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
23390 yesterday's patch by changing test -n to test -z.
23392 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23394 * modules/getloadavg (Files): Add m4/getloadavg.m4.
23395 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
23396 the former is now obsolescent.
23398 * modules/chdir-long (Depends-on): Add fcntl.
23400 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
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.
23407 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
23409 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
23410 or stdbool.h, because they might not exist while configuring.
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
23415 (O_DIRECTORY): Remove.
23417 2006-08-31 Eric Blake <ebb9@byu.net>
23419 * gnulib-tool: Don't let emacs change spaces to TAB.
23421 2006-08-31 Bruno Haible <bruno@clisp.org>
23423 * gnulib-tool: When calling func_import more than once, do it in a
23425 Reported by Eric Blake <ebb9@byu.net>.
23427 2006-08-31 Bruno Haible <bruno@clisp.org>
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.
23433 2006-08-31 Bruno Haible <bruno@clisp.org>
23435 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
23436 specified, augment Makefile.am variables instead of assigning them.
23438 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
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.
23448 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
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
23459 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
23461 * modules/nanosleep (Depends-on): Add gettime.
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>
23467 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
23468 * gnulib-tool (func_import): New license type 'unmodifiable license
23470 * modules/fdl: Use it. Longer description.
23471 * module/gpl, module/lgpl: New files.
23473 2006-08-30 Jim Meyering <jim@meyering.net>
23475 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
23476 shadowing the parameter.
23478 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23482 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23484 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
23485 sharing with gnulib. Report by Eric Blake.
23487 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23489 * modules/isapipe: New file.
23490 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
23492 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23494 * modules/configmake (Makefile.am): Add a comment, and omit
23495 the CONFIGMAKE_ prefix from generated macro names. Suggested
23498 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23500 * m4/isapipe.m4: New file.
23502 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
23504 * lib/isapipe.c, lib/isapipe.h: New files.
23506 2006-08-29 Jim Meyering <jim@meyering.net>
23508 * modules/configmake (Makefile.am): Make configmake.h depend on
23509 Makefile. Otherwise, a stale configmake.h could hang around.
23511 2006-08-29 Eric Blake <ebb9@byu.net>
23513 * lib/error.c (error_at_line, print_errno_message): Match libc, after
23514 resolution of upstream bug 3044.
23516 2006-08-29 Bruno Haible <bruno@clisp.org>
23518 * modules/localcharset (Depends-on): Add configmake.
23519 (Makefile.am): Remove setting of LIBDIR through DEFS.
23521 2006-08-29 Bruno Haible <bruno@clisp.org>
23523 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
23526 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23528 * modules/fcntl: New file.
23529 * modules/chdir-safer (Depends-on): Add fcntl.
23530 * modules/fts: Likewise.
23531 * modules/mkdir-p: Likewise.
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.
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
23544 * modules/inttypes (Files): Add m4/inttypes-h.m4.
23546 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
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
23553 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23555 * m4/fcntl_h.m4: New file.
23557 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
23559 * lib/fcntl_.h: New file.
23560 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
23562 * lib/dirchownmod.c: Likewise.
23563 * lib/fts.c: Likewise.
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.
23570 2006-08-28 Jim Meyering <jim@meyering.net>
23572 * doc/visibility.texi: Actually read and correct the grammar of the
23573 sentence affected by yesterday's change.
23575 2006-08-28 Eric Blake <ebb9@byu.net>
23577 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
23580 2006-08-28 Eric Blake <ebb9@byu.net>
23582 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
23584 2006-08-28 Eric Blake <ebb9@byu.net>
23586 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
23588 2006-08-28 Bruno Haible <bruno@clisp.org>
23590 * modules/c-strstr: New file, from GNU gettext.
23591 * MODULES.html.sh (String handling): Add c-strstr.
23593 2006-08-28 Bruno Haible <bruno@clisp.org>
23595 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
23597 Reported by Eric Blake.
23599 2006-08-28 Bruno Haible <bruno@clisp.org>
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.
23611 2006-08-28 Bruno Haible <bruno@clisp.org>
23613 * lib/inttypes_.h (SCNX*): Remove definitions.
23614 Reported by Eric Blake.
23616 2006-08-28 Bruno Haible <bruno@clisp.org>
23618 * lib/c-strstr.h: New file, from GNU gettext.
23619 * lib/c-strstr.c: New file, from GNU gettext.
23621 2006-08-28 Bruno Haible <bruno@clisp.org>
23623 * gnulib-tool: Reorder some statements.
23625 2006-08-28 Bruno Haible <bruno@clisp.org>
23627 * gnulib-tool: New option --makefile-name.
23628 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
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.
23634 2006-08-28 Bruno Haible <bruno@clisp.org>
23636 * gnulib-tool (func_verify_module): Check against misapplying patch.
23638 2006-08-28 Bruno Haible <bruno@clisp.org>
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.
23646 2006-08-28 Bruno Haible <bruno@clisp.org>
23648 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
23649 is the current directory. Respect also $local_gnulib_dir.
23651 2006-08-28 Bruno Haible <bruno@clisp.org>
23652 Simon Josefsson <jas@extundo.com>
23655 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
23657 2006-08-27 Jim Meyering <jim@meyering.net>
23659 * doc/visibility.texi: Remove duplicate word: "pointer".
23661 2006-08-26 Bruno Haible <bruno@clisp.org>
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.
23668 * modules/imaxabs: New file.
23670 * modules/imaxdiv: New file.
23672 2006-08-26 Bruno Haible <bruno@clisp.org>
23674 * m4/inttypes.m4: New file.
23675 * m4/_inttypes_h.m4: Remove file.
23676 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
23678 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
23680 * m4/imaxabs.m4: New file.
23682 * m4/imaxdiv.m4: New file.
23684 2006-08-26 Bruno Haible <bruno@clisp.org>
23686 * lib/inttypes_.h: New file.
23687 * lib/inttypes.h: Remove file.
23688 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
23690 * lib/imaxabs.c: New file.
23692 * lib/imaxdiv.c: New file.
23694 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
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):
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.
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):
23709 * modules/configmake: New file.
23711 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
23713 * m4/config-h.m4: New file.
23715 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
23717 * config/srclist.txt: Add elisp-comp.
23719 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
23721 * MODULES.html.sh (Support for building libraries and executables):
23723 * build-aux/elisp-comp: New file.
23724 * modules/elisp-comp: New file.
23726 2006-08-24 Bruno Haible <bruno@clisp.org>
23728 * gnulib-tool (func_create_testdir): Use non-default values of
23729 sourcebase and m4base.
23731 2006-08-24 Bruno Haible <bruno@clisp.org>
23733 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
23736 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
23738 * modules/openat (Depends-on): Add lchown.
23740 2006-08-23 Bruno Haible <bruno@clisp.org>
23742 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
23743 of gl_LOCK_EARLY instead of gl_LOCK.
23745 2006-08-23 Bruno Haible <bruno@clisp.org>
23747 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
23749 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
23751 2006-08-23 Bruno Haible <bruno@clisp.org>
23753 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
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.
23760 2006-08-22 Simon Josefsson <jas@extundo.com>
23762 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
23765 2006-08-22 Simon Josefsson <jas@extundo.com>
23767 * MODULES.html.sh: Add "Support for maintaining and release
23770 * build-aux/gnupload: New file, from coreutils.
23772 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
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.
23794 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
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.
23817 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
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.
23823 2006-08-22 Jim Meyering <jim@meyering.net>
23825 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
23827 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
23829 2006-08-22 Eric Blake <ebb9@byu.net>
23831 * modules/regexprops-generic: New file.
23832 * MODULES.html.sh (Support for building documentation): List it.
23834 2006-08-22 Eric Blake <ebb9@byu.net>
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.
23841 2006-08-22 Bruno Haible <bruno@clisp.org>
23843 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
23844 and lib_LTLIBRARIES like the other lib_* variables.
23846 2006-08-22 Bruno Haible <bruno@clisp.org>
23848 * build-aux/x-to-1.in: New file, from GNU gettext.
23850 2006-08-22 Bruno Haible <bruno@clisp.org>
23852 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
23855 2006-08-22 Bruno Haible <bruno@clisp.org>
23857 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
23860 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
23863 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
23865 Problem reported by Bruno Haible.
23867 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
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.
23969 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
23971 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
23973 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
23974 * m4/dev-ino.m4, same-inode.m4: Remove.
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.
24069 2006-08-21 Mark D. Baushke <mdb@gnu.org>
24070 Bruno Haible <bruno@clisp.org>
24072 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
24073 /bin/sh understanding of '!' conditional negation.
24075 2006-08-21 Jim Meyering <jim@meyering.net>
24077 * modules/openat (Depends-on): Really alphabetize.
24079 * modules/acl (Depends-on): Add error and quote.
24081 * check-module (find_included_lib_files): Add at-func.c to the
24082 ok-to-include-more-than-once white list.
24084 * modules/openat (Depends-on): Add lstat. Alphabetize.
24086 2006-08-21 Bruno Haible <bruno@clisp.org>
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>.
24092 2006-08-21 Bruno Haible <bruno@clisp.org>
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.
24098 2006-08-21 Bruno Haible <bruno@clisp.org>
24101 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
24102 BeOS has mbrtowc() but no <wctype.h>.
24104 2006-08-21 Bruno Haible <bruno@clisp.org>
24107 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
24110 2006-08-21 Bruno Haible <bruno@clisp.org>
24113 * lib/mbchar.h: Include <wctype.h> only if it exists.
24115 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
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.
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.
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.
24137 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
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
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.
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.
24156 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
24159 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
24160 (gl_PREREQ_XSTRTOUL): Remove.
24162 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
24164 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
24167 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
24169 Add and change modules to make it easier for coreutils to use
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,
24214 (Depends-on): Add stdint.
24215 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.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.
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.
24240 Add top-level Misc section and put host-os, perl, and uptime
24243 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
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.
24257 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
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.
24263 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
24265 * modules/openat (Files): Add lib/fchmodat.c.
24266 Fixes problem reported by Jay Youngman.
24268 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
24270 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
24271 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
24273 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
24274 Bruno Haible <bruno@clisp.org>
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.
24279 2006-08-18 Jim Meyering <jim@meyering.net>
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.
24286 2006-08-18 Bruno Haible <bruno@clisp.org>
24288 * modules/bison-i18n: New file.
24289 * MODULES.html.sh (Internationalization functions): Add it.
24291 2006-08-18 Bruno Haible <bruno@clisp.org>
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.
24297 2006-08-18 Bruno Haible <bruno@clisp.org>
24299 * m4/bison-i18n.m4: New file, from bison.
24301 2006-08-18 Bruno Haible <bruno@clisp.org>
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.
24307 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
24309 Update from coreutils.
24311 2006-08-15 Jim Meyering <jim@meyering.net>
24313 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
24315 2006-01-17 Jim Meyering <jim@meyering.net>
24317 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
24319 2006-01-11 Jim Meyering <jim@meyering.net>
24321 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
24322 Check for the lchmod function.
24324 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
24326 Update from coreutils.
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.
24333 2006-08-15 Jim Meyering <jim@meyering.net>
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
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.
24347 2006-01-17 Jim Meyering <jim@meyering.net>
24349 Rewrite fts.c not to change the current working directory,
24350 by using openat, fstatat, fdopendir, etc..
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.
24376 * lib/openat.c (openat_needs_fchdir): New function.
24377 * lib/openat.h (openat_needs_fchdir): Declare it.
24379 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
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>.
24385 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24387 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
24389 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24391 * lib/memcoll.c (memcoll): Optimize for the common case where the
24392 arguments are bytewise equal.
24394 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24396 * doc/regexprops-generic.texi: Add a copyright notice.
24398 2006-08-15 Bruno Haible <bruno@clisp.org>
24400 * modules/tmpdir (License): Change to LGPL.
24402 2006-08-15 Bruno Haible <bruno@clisp.org>
24404 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
24407 2006-08-14 Simon Josefsson <jas@extundo.com>
24409 * config/srclist.txt: Add gnupload.
24411 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
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.
24419 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
24420 prelude-manager. User shorter URLs for GNU projects, without '?'.
24421 Add copyright notice.
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.
24429 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
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.
24441 * lib/TODO: Remove; this belongs only in coreutils.
24443 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
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.
24457 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
24458 * doc/quote.texi: Add copyright notice.
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.
24467 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
24469 * config/srclistvars.sh: Add copyright notice.
24471 2006-08-14 Eric Blake <ebb9@byu.net>
24473 Import the following change from libc:
24475 2006-08-12 Ulrich Drepper <drepper@redhat.com>
24478 * lib/misc/error.c: Add space between program name and message if file
24481 2006-08-12 Karl Berry <karl@gnu.org>
24483 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
24484 remove, these originate in gnulib now.
24486 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24488 * doc/Makefile (standards.info standards.html standards.dvi):
24489 Also depend on make-stds.texi.
24491 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
24493 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
24494 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
24496 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
24497 in wchar_t. Problem reported by Eric Blake.
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.
24503 2006-08-11 Eric Blake <ebb9@byu.net>
24505 * users.txt: Sort. Add tar.
24507 2006-08-11 Bruno Haible <bruno@clisp.org>
24509 * users.txt: New file.
24511 2006-08-11 Bruno Haible <bruno@clisp.org>
24513 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
24514 before <wchar.h>. Needed for OSF/1 and BSD/OS.
24516 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
24518 * modules/snprintf (Depends-on): Remove minmax.
24519 (Maintainer): Add self and Bruno.
24521 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
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.
24533 Import the following changes from libc:
24535 2006-06-02 Jakub Jelinek <jakub@redhat.com>
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.
24544 2006-05-02 Ulrich Drepper <drepper@redhat.com>
24546 * lib/posix/regex.h: g++ still cannot handled [restrict].
24548 2006-04-21 Ulrich Drepper <drepper@redhat.com>
24550 * lib/posix/regex.h: Remove special handling for VMS.
24552 2006-08-10 Jim Meyering <jim@meyering.net>
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.
24564 * modules/chown (Depends-on): Add stat-macros.
24566 2006-08-10 Jim Meyering <jim@meyering.net>
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.
24572 2006-08-10 Eric Blake <ebb9@byu.net>
24574 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
24575 in from original proposal.
24577 2006-08-10 Eric Blake <ebb9@byu.net>
24578 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24580 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
24583 2006-08-10 Bruno Haible <bruno@clisp.org>
24585 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
24588 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
24590 Sync from coreutils.
24592 2006-07-19 Mike Frysinger <vapier@gentoo.org>
24594 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
24595 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
24597 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
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.
24614 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
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.
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.
24631 2006-08-09 Karl Berry <karl@gnu.org>
24633 * config/srclist.txt: no more gettext-tools, per Bruno.
24635 2006-08-08 Eric Blake <ebb9@byu.net>
24637 * modules/verror: New module.
24638 * MODULES.html.sh: Document it.
24640 2006-08-08 Eric Blake <ebb9@byu.net>
24642 * lib/verror.h, lib/verror.c: New files.
24644 2006-08-08 Eric Blake <ebb9@byu.net>
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
24650 2006-08-07 Bruno Haible <bruno@clisp.org>
24652 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
24654 Reported by Ralf Wildenhues.
24656 2006-08-07 Bruno Haible <bruno@clisp.org>
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
24662 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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
24669 2006-08-06 Eric Blake <ebb9@byu.net>
24671 * lib/error.h: Fold in some upstream changes from glibc.
24672 * lib/error.c: Likewise.
24674 2006-08-04 Bruno Haible <bruno@clisp.org>
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.
24680 2006-07-31 Bruno Haible <bruno@clisp.org>
24682 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
24683 <stdlib.h>, <string.h>.
24685 2006-07-30 Bruno Haible <bruno@clisp.org>
24687 * modules/readlink (License): Change to LGPL.
24689 2006-07-30 Bruno Haible <bruno@clisp.org>
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.
24695 2006-07-30 Bruno Haible <bruno@clisp.org>
24697 * modules/csharpexec (configure.ac): Comment out macro invocation.
24698 * modules/javaexec (configure.ac): Likewise.
24699 * modules/javacomp-script (configure.ac): Likewise.
24701 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
24703 2006-07-30 Bruno Haible <bruno@clisp.org>
24705 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
24708 2006-07-30 Bruno Haible <bruno@clisp.org>
24710 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
24712 2006-07-30 Bruno Haible <bruno@clisp.org>
24714 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24715 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
24718 2006-07-29 Bruno Haible <bruno@clisp.org>
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.
24733 2006-07-29 Bruno Haible <bruno@clisp.org>
24735 * modules/setenv (Depends-on): Add unistd.
24737 2006-07-29 Bruno Haible <bruno@clisp.org>
24739 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
24741 2006-07-29 Bruno Haible <bruno@clisp.org>
24743 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
24745 2006-07-29 Bruno Haible <bruno@clisp.org>
24747 * gnulib-tool (import, update): If there is no Makefile.am, look at
24748 aclocal.m4, instead of bailing out.
24750 2006-07-29 Bruno Haible <bruno@clisp.org>
24752 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
24753 Categorize the options by when they are useful.
24755 2006-07-29 Bruno Haible <bruno@clisp.org>
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.
24765 2006-07-29 Bruno Haible <bruno@clisp.org>
24767 * gnulib-tool (func_import): Extend error message about missing
24770 2006-07-29 Bruno Haible <bruno@clisp.org>
24772 * gnulib-tool (func_import): Don't create the $docbase directory if
24773 there is no file to store there.
24775 2006-07-29 Bruno Haible <bruno@clisp.org>
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".
24781 2006-07-29 Bruno Haible <bruno@clisp.org>
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.
24790 2006-07-29 Bruno Haible <bruno@clisp.org>
24792 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
24794 2006-07-29 Bruno Haible <bruno@clisp.org>
24796 * config/srclist.txt (*setenv.[ch]): Remove rules.
24798 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24800 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
24802 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24804 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
24807 2006-07-28 Simon Josefsson <jas@extundo.com>
24809 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
24810 * modules/inet_pton (Depends-on): Likewise.
24812 2006-07-28 Simon Josefsson <jas@extundo.com>
24814 * m4/netinet_in_h.m4: New file.
24816 2006-07-28 Simon Josefsson <jas@extundo.com>
24818 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
24821 2006-07-28 Simon Josefsson <jas@extundo.com>
24823 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
24826 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
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.
24832 2006-07-28 Eric Blake <ebb9@byu.net>
24834 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
24837 2006-07-28 Bruno Haible <bruno@clisp.org>
24839 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
24841 2006-07-28 Bruno Haible <bruno@clisp.org>
24843 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
24845 2006-07-28 Bruno Haible <bruno@clisp.org>
24847 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24848 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24850 Avoids link error on FreeBSD 4.x.
24851 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24853 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
24855 * lib/mbswidth.c (iswcntrl): Likewise.
24857 2006-07-27 Bruno Haible <bruno@clisp.org>
24859 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
24862 2006-07-27 Bruno Haible <bruno@clisp.org>
24864 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
24865 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
24868 2006-07-26 Eric Blake <ebb9@byu.net>
24870 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
24872 2006-07-26 Eric Blake <ebb9@byu.net>
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.
24879 2006-07-26 Bruno Haible <bruno@clisp.org>
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.
24885 2006-07-25 Bruno Haible <bruno@clisp.org>
24887 * modules/version-etc (Depends-on): Add stdarg.
24889 2006-07-25 Bruno Haible <bruno@clisp.org>
24891 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
24894 2006-07-25 Bruno Haible <bruno@clisp.org>
24896 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
24897 defined in <stdarg.h> or config.h.
24899 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
24901 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
24902 (gl_STDIO_SAFER): Remove.
24904 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
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.
24912 2006-07-24 Bruno Haible <bruno@clisp.org>
24914 * modules/tmpdir: New file.
24915 * MODULES.html.sh (File system functions): Add it.
24917 2006-07-24 Bruno Haible <bruno@clisp.org>
24919 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
24920 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
24922 2006-07-24 Bruno Haible <bruno@clisp.org>
24924 * modules/clean-temp: New file.
24926 2006-07-24 Bruno Haible <bruno@clisp.org>
24928 * m4/tmpdir.m4: New file, from GNU gettext.
24930 2006-07-24 Bruno Haible <bruno@clisp.org>
24932 * lib/tmpdir.h: New file, from GNU gettext.
24933 * lib/tmpdir.c: New file, from GNU gettext.
24935 2006-07-24 Bruno Haible <bruno@clisp.org>
24937 * lib/clean-temp.h: New file, from GNU gettext.
24938 * lib/clean-temp.c: New file, from GNU gettext.
24940 2006-07-23 Eric Blake <ebb9@byu.net>
24942 * modules/stdio-safer (Files): Add tmpfile-safer.c.
24943 (Depends-on): Add binary-io.
24945 2006-07-23 Eric Blake <ebb9@byu.net>
24947 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
24949 2006-07-23 Eric Blake <ebb9@byu.net>
24951 * lib/tmpfile-safer.c: New file.
24952 * lib/stdio-safer.h (fopen_safer): Add prototype.
24953 * lib/stdio--.h (tmpfile): Make safer.
24955 2006-07-23 Bruno Haible <bruno@clisp.org>
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.
24962 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24963 and Simon Josefsson <jas@extundo.com>
24965 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
24967 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
24969 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
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.
24977 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
24979 * m4/close-stream.m4: New file.
24981 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
24983 * lib/close-stream.c, lib/close-stream.h: New files.
24985 2006-07-22 Bruno Haible <bruno@clisp.org>
24987 Merge from GNU gettext 0.15.
24989 2006-05-01 Bruno Haible <bruno@clisp.org>
24991 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
24993 2006-07-22 Bruno Haible <bruno@clisp.org>
24995 * modules/javaversion: New file.
24996 * MODULES.html.sh (Java): Add javaversion.
24998 2006-03-12 Bruno Haible <bruno@clisp.org>
25000 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
25002 2005-12-04 Bruno Haible <bruno@clisp.org>
25004 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
25007 2006-06-21 Bruno Haible <bruno@clisp.org>
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.
25014 2005-12-04 Bruno Haible <bruno@clisp.org>
25016 * build-aux/csharpcomp.sh.in: Suffix for resources is
25017 .resources, not .resource.
25019 2005-07-09 Bruno Haible <bruno@clisp.org>
25021 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
25023 Reported by Mark Junker <mjscod@gmx.de>.
25025 2006-07-22 Bruno Haible <bruno@clisp.org>
25027 * modules/gettext: Upgrade to gettext-0.15.
25028 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
25030 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
25032 2006-07-22 Bruno Haible <bruno@clisp.org>
25034 Merge from GNU gettext 0.15.
25036 2006-03-25 Bruno Haible <bruno@clisp.org>
25038 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
25040 2006-07-21 Bruno Haible <bruno@clisp.org>
25042 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
25045 2006-05-09 Bruno Haible <bruno@clisp.org>
25047 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
25048 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
25049 for the conftestver execution.
25051 2006-05-01 Bruno Haible <bruno@clisp.org>
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
25062 2006-03-11 Bruno Haible <bruno@clisp.org>
25064 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
25066 2006-05-09 Bruno Haible <bruno@clisp.org>
25068 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
25069 CLASSPATH_SEPARATOR to a semicolon.
25071 2006-03-12 Bruno Haible <bruno@clisp.org>
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.
25077 2006-07-19 Bruno Haible <bruno@clisp.org>
25079 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
25080 that getline works on glibc2 systems. Needed to avoid trouble
25082 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
25084 2005-12-04 Bruno Haible <bruno@clisp.org>
25086 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
25087 launcher (untested).
25089 2005-12-04 Bruno Haible <bruno@clisp.org>
25091 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
25093 2006-07-22 Bruno Haible <bruno@clisp.org>
25095 * gettext.m4: Update from GNU gettext-0.15.
25096 * nls.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.
25102 2006-07-22 Bruno Haible <bruno@clisp.org>
25104 Merge from GNU gettext 0.15.
25106 2005-07-05 Bruno Haible <bruno@clisp.org>
25108 * printf-args.c (printf_fetchargs): Work around broken
25109 definition of wint_t on mingw.
25111 2005-02-12 Bruno Haible <bruno@clisp.org>
25113 * xallocsa.h: Add extern "C" for C++.
25115 2006-05-17 Bruno Haible <bruno@clisp.org>
25117 Cygwin portability.
25118 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
25120 2006-04-30 Bruno Haible <bruno@clisp.org>
25122 * progreloc.c: Include <mach-o/dyld.h> if available.
25123 (find_executable): Use _NSGetExecutablePath when possible.
25125 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
25127 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
25130 2005-12-29 Bruno Haible <bruno@clisp.org>
25132 * progreloc.c (set_program_name_and_installdir): Fix
25135 2005-12-04 Bruno Haible <bruno@clisp.org>
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
25143 2006-07-11 Bruno Haible <bruno@clisp.org>
25145 * javacomp.c: Fix a comment.
25146 Reported by Jim Meyering.
25148 2006-04-30 Bruno Haible <bruno@clisp.org>
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.
25155 2006-06-27 Bruno Haible <bruno@clisp.org>
25157 Assume correct S_ISDIR macro.
25158 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
25160 2006-07-22 Bruno Haible <bruno@clisp.org>
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.
25167 2006-05-17 Bruno Haible <bruno@clisp.org>
25169 Cygwin portability.
25170 * javaexec.c (execute_java_class): Test for jview program
25173 2006-04-09 Bruno Haible <bruno@clisp.org>
25175 * fatal-signal.c: Don't include string.h.
25176 (at_fatal_signal): Use a copying loop instead of memcpy.
25178 2005-12-04 Bruno Haible <bruno@clisp.org>
25180 * csharpexec.c: Add support for 'clix' launcher (untested).
25181 (execute_csharp_using_sscli): New function.
25182 (execute_csharp_program): Call it.
25184 2006-06-21 Bruno Haible <bruno@clisp.org>
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.
25191 2005-07-09 Bruno Haible <bruno@clisp.org>
25193 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
25195 Reported by Mark Junker <mjscod@gmx.de>.
25197 2006-06-17 Bruno Haible <bruno@clisp.org>
25199 * config.charset: Update for NetBSD 3.0.
25201 2006-05-17 Bruno Haible <bruno@clisp.org>
25203 Cygwin portability.
25204 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
25206 2006-05-16 Bruno Haible <bruno@clisp.org>
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().
25214 2006-04-05 Bruno Haible <bruno@clisp.org>
25216 * config.charset: Update Juan Manuel Guerrero's address.
25218 2005-02-12 Bruno Haible <bruno@clisp.org>
25220 * allocsa.h: Add extern "C" for C++.
25222 2005-02-10 Bruno Haible <bruno@clisp.org>
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.
25227 2006-07-22 Bruno Haible <bruno@clisp.org>
25229 * gettext.h: Update to GNU gettext-0.15.
25231 2006-07-22 Bruno Haible <bruno@clisp.org>
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.
25237 2006-07-21 Eric Blake <ebb9@byu.net>
25239 * modules/stdlib-safer: New file.
25240 * MODULES.html.sh (File stream based Input/Output): Add
25243 2006-07-21 Eric Blake <ebb9@byu.net>
25245 * lib/stdlib-safer.h: New file from coreutils, required by
25248 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
25250 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
25252 2006-07-20 Bruno Haible <bruno@clisp.org>
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.
25258 2006-07-20 Bruno Haible <bruno@clisp.org>
25260 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
25262 2006-07-19 Derek R. Price <derek@ximbiot.com>
25264 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
25265 Reindent and repaginate.
25267 2006-07-19 Derek Price <derek@ximbiot.com>
25269 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
25272 2006-07-17 Bruno Haible <bruno@clisp.org>
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.
25298 2006-07-17 Bruno Haible <bruno@clisp.org>
25300 * m4/gl_list.m4: New file.
25302 2006-07-17 Bruno Haible <bruno@clisp.org>
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.
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.
25345 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
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
25353 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
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
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.
25380 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
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.
25393 2006-07-15 Karl Berry <karl@gnu.org>
25395 * gnulib-tool: help message wording/arrangement.
25397 2006-07-14 Simon Josefsson <jas@extundo.com>
25399 * doc/gnulib.texi (Libtool and Windows): New section.
25401 2006-07-12 Simon Josefsson <jas@extundo.com>
25403 * modules/gendocs (License): Fix license, approved by Karl.
25405 2006-07-12 Eric Blake <ebb9@byu.net>
25407 * MODULES.html.sh: Add gendocs.
25409 2006-07-11 Eric Blake <ebb9@byu.net>
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.
25416 2006-07-11 Eric Blake <ebb9@byu.net>
25418 * m4/absolute-header.m4: Fix comments to match recent change.
25420 2006-07-11 Eric Blake <ebb9@byu.net>
25422 * gnulib-tool: List --doc-base before --tests-base.
25424 2006-07-11 Derek R. Price <derek@ximbiot.com>
25426 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
25428 2006-07-11 Bruno Haible <bruno@clisp.org>
25430 * README: Mention where to put documentation.
25432 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25434 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
25436 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
25438 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
25441 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
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.
25449 2006-07-10 Derek R. Price <derek@ximbiot.com>
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.
25457 2006-07-10 Derek R. Price <derek@ximbiot.com>
25458 and Paul Eggert <eggert@cs.ucla.edu>
25460 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
25462 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
25463 macros into the GNU _D_EXACT_NAMLEN.
25465 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
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.
25471 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25473 * doc/maintain.texi, make-stds.texi: Sync from
25474 <http://savannah.gnu.org/projects/gnustandards>.
25476 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
25478 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
25480 2006-07-09 Jim Meyering <jim@meyering.net>
25482 * m4/glob.m4: Remove a doubled word in a comment.
25484 2006-07-09 Jim Meyering <jim@meyering.net>
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.
25490 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
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.
25497 2006-07-08 Jim Meyering <jim@meyering.net>
25499 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
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
25505 2006-07-08 Jim Meyering <jim@meyering.net>
25507 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
25509 2006-07-07 Simon Josefsson <jas@extundo.com>
25511 * tests/test-crc.c: Change expected crc value, the test vector
25512 were probably computed using the old broken crc.c?
25514 2006-07-06 Simon Josefsson <jas@extundo.com>
25516 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
25517 now the canonical place for the M4 file).
25519 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
25520 from the sys_socket dependency now.
25522 * modules/inet_pton (Files): Ditto.
25524 * modules/inet_ntop (Files): Ditto.
25526 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
25528 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
25529 not gl_PREREQ_GETUSERSHELL.
25531 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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.
25539 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25541 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
25543 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
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
25551 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
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.
25559 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
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
25569 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
25572 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
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
25579 2006-07-06 Derek R. Price <derek@ximbiot.com>
25580 and Paul Eggert <eggert@cs.ucla.edu>
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.
25593 2006-07-06 Derek R. Price <derek@ximbiot.com>
25594 and Paul Eggert <eggert@cs.ucla.edu>
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
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.
25607 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
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
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
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
25628 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
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'.
25635 2006-07-05 Eric Blake <ebb9@byu.net>
25637 * modules/getaddrinfo (Depends-on): Add snprintf.
25639 2006-07-05 Eric Blake <ebb9@byu.net>
25641 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
25642 to avoid 'header present but could not be compiled' on cygwin.
25644 2006-07-05 Eric Blake <ebb9@byu.net>
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.
25650 2006-07-05 Derek R. Price <derek@ximbiot.com>
25652 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
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.
25662 2006-07-05 Derek R. Price <derek@ximbiot.com>
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.
25678 2006-07-05 Bruno Haible <bruno@clisp.org>
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>.
25684 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
25686 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
25687 From Mark D. Baushke.
25689 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
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".
25695 2006-07-04 Eric Blake <ebb9@byu.net>
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.
25701 2006-07-04 Bruno Haible <bruno@clisp.org>
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.
25707 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
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.
25718 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
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>.
25731 Merge from coreutils.
25733 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
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.
25742 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
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).
25753 2006-06-18 Jim Meyering <jim@meyering.net>
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
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.
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.
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.
25770 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
25772 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
25774 2006-03-12 Jim Meyering <jim@meyering.net>
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.
25781 2006-03-11 Eric Blake <ebb9@byu.net>
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.
25788 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
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>.
25795 Merge from coreutils.
25797 * lib/.cppi-disable: Add stdint_.h.
25798 * lib/.cvsignore: Add stdint.h.
25800 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
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.
25808 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
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.
25815 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
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
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
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
25834 (S_ISPORT, S_ISWHT): New macros, if not already defined.
25836 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
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.
25845 2006-03-19 Jim Meyering <jim@meyering.net>
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.
25854 * lib/getcwd.c (__getcwd): Clarify a comment.
25855 Use memcpy in place of a call to strcpy.
25857 2006-03-12 Jim Meyering <jim@meyering.net>
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.
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".
25872 2006-03-11 Eric Blake <ebb9@byu.net>
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.
25878 2006-03-11 Eric Blake <ebb9@byu.net>,
25879 Paul Eggert <eggert@cs.ucla.edu>
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
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 ///.
25899 2006-07-03 Jim Meyering <jim@meyering.net>
25901 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
25902 macro is used before the first cycle_check call.
25904 2006-07-03 Eric Blake <ebb9@byu.net>
25906 * modules/dirname (Depends-on): Add xstrndup.
25908 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
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.
25913 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
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
25922 2006-07-02 Eric Blake <ebb9@byu.net>
25924 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
25926 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
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
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.
25942 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
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.
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.
25996 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
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
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'.
26057 2006-07-01 Eric Blake <ebb9@byu.net>
26059 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
26060 Reported by Andreas Buening.
26062 2006-07-01 Eric Blake <ebb9@byu.net>
26064 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
26066 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
26068 * lib/getaddrinfo.c: fixed typo
26070 2006-06-29 Jim Meyering <jim@meyering.net>
26072 * modules/strftime (Maintainer): Add my name, since with the
26073 FPRINTFTIME changes strftime.c has forked from glibc.
26075 2006-06-29 Eric Blake <ebb9@byu.net>
26077 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
26079 2006-06-29 Eric Blake <ebb9@byu.net>
26081 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
26083 2006-06-29 Eric Blake <ebb9@byu.net>
26085 * lib/stat_.h: New file.
26087 2006-06-29 Eric Blake <ebb9@byu.net>
26089 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
26090 unused static function.
26092 2006-06-29 Eric Blake <ebb9@byu.net>
26094 * doc/functions.texi (Function Portability): Document missing lstat
26097 2006-06-29 Eric Blake <ebb9@byu.net>
26099 * MODULES.html.sh: Add sys_stat.
26100 * modules/sys_stat: New module.
26101 * modules/mkstemp (Depends-on): Add sys_stat.
26103 2006-06-29 Derek R. Price <derek@ximbiot.com>
26105 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
26107 2006-06-29 Derek R. Price <derek@ximbiot.com>
26109 * m4/c-bs-a.m4: Removed.
26111 2006-06-29 Derek R. Price <derek@ximbiot.com>
26113 * lib/strftime.c: Assume strftime() exists.
26115 2006-06-29 Derek Price <derek@ximbiot.com>
26117 * modules/c-bs-a: Removed - \a is C89.
26118 * MODULES.html.sh: Remove c-bs-a.
26120 2006-06-29 Bruno Haible <bruno@clisp.org>
26122 * modules/wcwidth (License): Change to LGPL.
26124 2006-06-28 Simon Josefsson <jas@extundo.com>
26126 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
26129 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
26132 2006-06-28 Simon Josefsson <jas@extundo.com>
26134 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
26136 2006-06-28 Simon Josefsson <jas@extundo.com>
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
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.
26148 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
26149 only have some of them. Add AI_NUMERICSERV. Add prototype for
26152 2006-06-28 Eric Blake <ebb9@byu.net>
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.
26159 2006-06-28 Eric Blake <ebb9@byu.net>
26161 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
26162 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
26164 2006-06-28 Eric Blake <ebb9@byu.net>
26166 * lib/xvasprintf.h: Fix comments.
26168 2006-06-28 Eric Blake <ebb9@byu.net>
26170 * lib/mbchar.h (wcwidth): Include wcwidth.h.
26171 * lib/mbswidth.c (wcwidth): Move from here...
26172 * lib/wcwidth.h: ...to this new file.
26174 2006-06-28 Derek R. Price <derek@ximbiot.com>
26176 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
26178 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
26180 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
26182 2006-06-28 Derek R. Price <derek@ximbiot.com>
26184 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
26185 Autoconf 2.60 says this stuff was obsolete.
26187 2006-06-28 Bruno Haible <bruno@clisp.org>
26189 * modules/wcwidth (Files): Add m4/wchar_t.m4.
26191 2006-06-28 Bruno Haible <bruno@clisp.org>
26193 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
26196 2006-06-28 Bruno Haible <bruno@clisp.org>
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>.
26202 2006-06-28 Bruno Haible <bruno@clisp.org>
26204 * lib/mkdtemp.c [MINGW]: Include <io.h>.
26205 (mkdir): Define using _mkdir.
26207 2006-06-28 Bruno Haible <bruno@clisp.org>
26209 * lib/getaddrinfo.h: Fix POSIX URL.
26210 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
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.
26217 2006-06-27 Simon Josefsson <jas@extundo.com>
26219 * modules/sys_select: New file, suggested by Bruno Haible, Paul
26220 Eggert and Martin Lambers.
26222 2006-06-27 Simon Josefsson <jas@extundo.com>
26224 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
26225 Eggert and Martin Lambers.
26227 2006-06-27 Bruno Haible <bruno@clisp.org>
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>.
26233 2006-06-27 Bruno Haible <bruno@clisp.org>
26235 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
26237 2006-06-26 Simon Josefsson <jas@extundo.com>
26239 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
26242 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
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>.
26248 2006-06-26 Mark D. Baushke <mdb@gnu.org>
26250 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
26252 2006-06-26 Bruno Haible <bruno@clisp.org>
26254 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
26256 2006-06-26 Bruno Haible <bruno@clisp.org>
26258 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
26260 2006-06-26 Bruno Haible <bruno@clisp.org>
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.
26266 2006-06-26 Bruno Haible <bruno@clisp.org>
26268 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
26270 Reported by Mark D. Baushke and Larry Jones.
26272 2006-06-26 Bruno Haible <bruno@clisp.org>
26274 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
26276 Suggested by Mark D. Baushke and Larry Jones.
26278 2006-06-23 Simon Josefsson <jas@extundo.com>
26279 Bruno Haible <bruno@clisp.org>
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.
26286 2006-06-23 Mark D. Baushke <mdb@gnu.org>
26288 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
26290 2006-06-23 Bruno Haible <bruno@clisp.org>
26292 * tests/test-stdint.c: Update to match ISO C 99 Technical
26295 2006-06-23 Bruno Haible <bruno@clisp.org>
26297 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
26299 2006-06-23 Bruno Haible <bruno@clisp.org>
26301 * lib/stdint_.h: Treat IRIX like OpenBSD.
26303 2006-06-23 Bruno Haible <bruno@clisp.org>
26305 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
26306 ISO C 99 Technical Corrigendum 1.
26308 2006-06-22 Simon Josefsson <jas@extundo.com>
26310 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
26313 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
26315 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
26316 needed. Some compiler complained about some of them. Problem reported
26318 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
26320 2006-06-21 Simon Josefsson <jas@extundo.com>
26322 * tests/test-getaddrinfo.c: New file.
26324 * modules/getaddrinfo-tests: New file.
26326 * MODULES.html.sh: Add inet_pton.
26328 * modules/inet_pton: New file.
26330 2006-06-21 Simon Josefsson <jas@extundo.com>
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.
26336 * m4/inet_pton.m4: New file.
26338 2006-06-21 Simon Josefsson <jas@extundo.com>
26340 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
26343 * lib/socket_.h: Don't define WINVER.
26345 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
26346 slightly modified to work in gnulib.
26348 2006-06-21 Simon Josefsson <jas@extundo.com>
26350 * doc/gnulib.texi (Windows sockets): Add.
26352 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
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.
26360 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
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>.
26367 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26369 * modules/sys_socket, modules/socklen: Include sys/types since
26370 FreeBSD 4.x's sys/socket.h needs it.
26372 2006-06-19 Simon Josefsson <jas@extundo.com>
26374 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
26376 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
26378 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
26380 2006-06-19 Bruno Haible <bruno@clisp.org>
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>.
26386 2006-06-17 Eric Blake <ebb9@byu.net>
26388 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
26391 2006-06-17 Bruno Haible <bruno@clisp.org>
26393 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
26396 2006-06-17 Bruno Haible <bruno@clisp.org>
26398 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
26399 whether errno is declared. Assume <errno.h> declares errno.
26401 2006-06-17 Bruno Haible <bruno@clisp.org>
26403 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
26405 2006-06-17 Bruno Haible <bruno@clisp.org>
26407 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
26408 problem on Solaris 2.5.1.
26410 2006-06-16 Eric Blake <ebb9@byu.net>
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.
26417 2006-06-15 Eric Blake <ebb9@byu.net>
26419 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
26421 2006-06-15 Eric Blake <ebb9@byu.net>
26423 * config/srclist.txt (ssize_t.m4): Lose sync.
26425 2006-06-15 Bruno Haible <bruno@clisp.org>
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.
26433 2006-06-15 Bruno Haible <bruno@clisp.org>
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.
26441 2006-06-15 Bruno Haible <bruno@clisp.org>
26443 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
26445 2006-06-15 Bruno Haible <bruno@clisp.org>
26447 * lib/stdint_.h: Rewritten to be fully auto-configured.
26448 Fixes bug on HP-UX/IA64.
26450 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
26452 * lib/getdate.y (__attribute__): Don't define if already defined.
26453 Problem reported by Larry Jones.
26454 * lib/utimens.c (__attribute__): Likewise.
26456 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
26458 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
26459 reported by Andreas Schwab.
26461 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26462 Bruno Haible <bruno@clisp.org>
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
26469 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26470 Bruno Haible <bruno@clisp.org>
26472 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
26474 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26476 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
26477 compile test, for Tru64 4.0D.
26479 2006-05-28 Karl Berry <karl@gnu.org>
26481 * config/srclist.txt (printf-args.c): lose sync.
26483 2006-05-26 Martin Lambers <marlam@marlam.de>
26485 * lib/getpass.c: Updates the test for the native W32 API, and adds
26486 missing includes, thus fixing compilation warnings.
26488 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
26490 * lib/exclude.c (exclude_fnmatch): New function.
26491 (excluded_file_name): Call exclude_fnmatch.
26492 * lib/exclude.h (excluded_file_name): New prototype
26494 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
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>.
26503 2006-05-24 Bruno Haible <bruno@clisp.org>
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>.
26510 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
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.
26519 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
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.
26525 2006-05-19 Jim Meyering <jim@meyering.net>
26527 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
26529 2006-05-17 Bruno Haible <bruno@clisp.org>
26531 Cygwin portability.
26532 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
26534 2006-05-17 Bruno Haible <bruno@clisp.org>
26536 * lib/stdint_.h: Fix recognition of Cygwin.
26538 2006-05-15 Bruno Haible <bruno@clisp.org>
26540 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
26541 on libtool patch by Ralf Wildenhues.
26543 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
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>.
26550 2006-05-11 Simon Josefsson <jas@extundo.com>
26552 * m4/xvasprintf.m4: Fix obvious typo.
26554 2006-05-11 Jim Meyering <jim@meyering.net>
26556 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
26559 2006-05-10 Simon Josefsson <jas@extundo.com>
26561 * lib/md4.c: Typo fix, update copyright years.
26562 (K1, K2): Don't use L because it turn computations into 64-bit on
26565 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
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.
26575 2006-05-10 Bruno Haible <bruno@clisp.org>
26577 * lib/des.c: Cast to avoid warnings.
26579 2006-05-09 Bruno Haible <bruno@clisp.org>
26581 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
26582 (Depends-on): Depend also on xsize, stdarg.
26583 (configure.ac): Add gl_XVASPRINTF.
26585 2006-05-09 Bruno Haible <bruno@clisp.org>
26587 * m4/xvasprintf.m4: New file.
26589 2006-05-09 Bruno Haible <bruno@clisp.org>
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.
26596 2006-05-08 Eric Blake <ebb9@byu.net>
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.
26604 2006-05-08 Bruno Haible <bruno@clisp.org>
26606 * modules/stdarg: New file.
26607 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
26609 2006-05-08 Bruno Haible <bruno@clisp.org>
26611 * m4/stdarg.m4: New file, from GNU gettext.
26613 2006-05-08 Bruno Haible <bruno@clisp.org>
26615 * config/srclist.txt (build-aux/config.rpath): different from latest
26618 2006-05-08 Bruno Haible <bruno@clisp.org>
26620 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
26622 2006-05-05 Jim Meyering <jim@meyering.net>
26624 * m4/warning.m4: New file, derived from bison's file by the same name.
26626 2006-05-03 Bruno Haible <bruno@clisp.org>
26628 * lib/stdint_.h: Shorter URL.
26629 * lib/inttypes.h: Likewise.
26631 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26633 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
26635 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26637 * lib/verify.h: Document the internals better. Most of this change
26638 was written by Bruno Haible.
26640 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
26642 * doc/verify.texi: New file, partly based on a proposal by
26645 2006-05-02 Bruno Haible <bruno@clisp.org>
26647 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
26649 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
26651 2006-04-29 Bruno Haible <bruno@clisp.org>
26653 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
26654 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
26656 2006-04-29 Bruno Haible <bruno@clisp.org>
26658 * gnulib-tool: Make --update option actually work.
26660 2006-04-29 Bruno Haible <bruno@clisp.org>
26662 * doc/gcd.texi: New file.
26663 * doc/gnulib.texi: Include it.
26665 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
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.
26670 2006-04-25 Bruno Haible <bruno@clisp.org>
26672 * gnulib-tool (func_import): Output the include directives in three
26673 blocks, sorted separately.
26674 Reported by Ben Pfaff <blp@cs.stanford.edu>.
26676 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
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++.
26686 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
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.
26701 2006-04-24 Karl Berry <karl@gnu.org>
26703 * config/srclist.txt (longdouble.m4): sync lost.
26705 2006-04-24 Eric Blake <ebb9@byu.net>
26707 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
26709 2006-04-24 Bruno Haible <bruno@clisp.org>
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>.
26715 2006-04-24 Bruno Haible <bruno@clisp.org>
26717 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
26718 assigned exactly once.
26720 2006-04-23 Claudio Fontana <claudio@gnu.org>
26721 Bruno Haible <bruno@clisp.org>
26723 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
26724 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
26727 2006-04-23 Bruno Haible <bruno@clisp.org>
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.
26737 2006-04-23 Bruno Haible <bruno@clisp.org>
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>.
26743 2006-04-23 Bruno Haible <bruno@clisp.org>
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.
26754 2006-04-23 Bruno Haible <bruno@clisp.org>
26756 * gnulib-tool (func_usage): Fix --import description. Document
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>.
26765 2006-04-20 Bruno Haible <bruno@clisp.org>
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.
26773 2006-04-19 Derek Price <derek@ximbiot.com>
26774 Eric Blake <ebb9@byu.net>
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.
26780 2006-04-19 Derek Price <derek@ximbiot.com>
26781 Eric Blake <ebb9@byu.net>
26783 * lib/inttypes.h: Correct grammar in comment.
26785 2006-04-18 Derek Price <derek@ximbiot.com>
26786 Paul Eggert <eggert@cs.ucla.edu>
26788 * modules/inttypes: New file.
26789 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
26791 2006-04-18 Derek Price <derek@ximbiot.com>
26792 Paul Eggert <eggert@cs.ucla.edu>
26794 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
26797 2006-04-18 Derek Price <derek@ximbiot.com>
26798 Paul Eggert <eggert@cs.ucla.edu>
26800 * lib/inttypes.h: New file.
26801 * lib/strtoimax.c: Assume <inttypes.h>.
26803 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
26805 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
26806 isn't mounted. Problem reported by Kir Kolyshkin.
26808 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
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
26813 * lib/regex.h (RE_DUP_MAX): Update comment to match current
26816 2006-04-12 Eric Blake <ebb9@byu.net>
26818 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
26819 is now done automatically by the corresponding Autoconf macro.
26821 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
26823 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
26826 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
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.
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.
26852 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
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.
26860 Remove the REG_ macros named below. Instead, make the old names
26861 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
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):
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.
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.
26915 (free_state): Move up a bit.
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.
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.
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.
26935 2006-01-31 Roland McGrath <roland@redhat.com>
26937 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
26938 Reported by Mike Frysinger <vapier@gentoo.org>.
26940 2006-01-15 Andreas Jaeger <aj@suse.de>
26943 * lib/regex_internal.c (re_string_reconstruct): Adjust for
26944 build_wcs_upper_buffer change.
26945 (build_wcs_upper_buffer): Change return type.
26947 2005-12-10 Ulrich Drepper <drepper@redhat.com>
26949 * lib/regex_internal.h: Include <stdint.h> if available.
26951 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
26953 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
26955 2005-10-14 Ulrich Drepper <drepper@redhat.com>
26957 * lib/regcomp.c: Adjust for changed secondary hash function.
26959 2005-09-30 Ulrich Drepper <drepper@redhat.com>
26961 * lib/regex.h: Pretty printing.
26962 Clean up namespace a bit.
26964 2005-09-30 Jakub Jelinek <jakub@redhat.com>
26966 * lib/regexec.c (update_cur_sifted_state, check_arrival,
26967 check_arrival_add_next_nodes): Avoid using uninitialized variable.
26969 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
26970 Ulrich Drepper <drepper@redhat.com>
26973 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
26975 (bitset_word_t): Renamed from bitset_word. All uses changed.
26977 2005-09-22 Ulrich Drepper <drepper@redhat.com>
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>.
26988 2005-09-07 Ulrich Drepper <drepper@redhat.com>
26990 * lib/regexec.c (find_recover_state): Remove unnecessary
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
27019 2005-09-06 Ulrich Drepper <drepper@redhat.com>
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.
27029 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
27030 mbrtowc for very simple UTF-8 case.
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.
27037 * lib/regex.c: Prevent using C++ compilers.
27039 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
27040 (re_acquire_state_context): Likewise.
27042 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
27044 * modules/regex (Depends-on): Add ssize_t.
27046 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
27048 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
27051 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
27053 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
27055 2006-03-29 Mark D. Baushke <mdb@gnu.org>
27056 Bruno Haible <bruno@clisp.org>
27058 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
27059 <sys/types.h> and <inttypes.h>.
27061 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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.
27066 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
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.
27077 2006-03-24 Simon Josefsson <jas@extundo.com>
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.
27083 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27085 * lib/base64.c (base64_encode): Do not read past end of array with
27086 unsanitized input on systems with CHAR_BIT > 8.
27088 2006-03-24 Eric Blake <ebb9@byu.net>
27090 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
27092 2006-03-22 Karl Berry <karl@gnu.org>
27094 * config/srclist.txt (*setenv.[ch]): get from coreutils.
27095 * config/srclistvars.sh (COREUTILS): new var.
27097 2006-03-17 Jim Meyering <jim@meyering.net>
27099 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
27100 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
27102 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
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.
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.
27113 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
27115 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
27116 Typedef to long int, not to off_, as POSIX will likely change
27119 2006-03-15 Eric Blake <ebb9@byu.net>
27121 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
27123 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
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.
27129 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
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
27134 * lib/time_r.c (asctime_r, ctime_r): Likewise.
27136 2006-03-08 Simon Josefsson <jas@extundo.com>
27138 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
27139 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27141 2006-03-08 Simon Josefsson <jas@extundo.com>
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>.
27146 2006-03-08 Simon Josefsson <jas@extundo.com>
27148 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
27149 signal that configure disabled the device.
27151 2006-03-08 Simon Josefsson <jas@extundo.com>
27153 * build-aux/maint.mk: Fix refresh-po, to handle no translated
27156 2006-03-07 Simon Josefsson <jas@extundo.com>
27158 * modules/getopt (Depends-on): Add unistd.
27160 * modules/unistd: New file.
27162 2006-03-07 Simon Josefsson <jas@extundo.com>
27164 * modules/gc-random: New file.
27166 2006-03-07 Simon Josefsson <jas@extundo.com>
27168 * m4/unistd_h.m4: New file.
27170 2006-03-07 Simon Josefsson <jas@extundo.com>
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>.
27178 2006-03-07 Simon Josefsson <jas@extundo.com>
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).
27183 * m4/gc.m4: Move random stuff to gc-random.m4
27185 2006-03-07 Simon Josefsson <jas@extundo.com>
27187 * lib/unistd_.h: New file.
27189 2006-03-07 Simon Josefsson <jas@extundo.com>
27191 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
27193 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
27195 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
27196 Problem reported by Juan Manuel Guerrero.
27198 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
27200 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
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.
27208 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
27210 * MODULES.html.sh (Support for systems lacking POSIX:2001):
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
27220 (MOSTLYCLEANFILES): Remove unistd.h-t.
27222 2006-03-03 Simon Josefsson <jas@extundo.com>
27224 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
27226 2006-03-03 Simon Josefsson <jas@extundo.com>
27228 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
27231 2006-03-03 Simon Josefsson <jas@extundo.com>
27233 * build-aux/maint.mk: Add indent target.
27235 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
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.
27241 2006-03-01 Simon Josefsson <jas@extundo.com>
27243 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
27246 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
27248 * modules/gettime (Depends-on): Add extensions module.
27249 * modules/nanosleep (Depends-on): Likewise.
27250 * modules/settime (Depends-on): Likewise.
27252 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
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
27257 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27258 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
27260 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
27261 not "==". Reported by Ralf Wildenhues.
27263 2006-03-01 Karl Berry <karl@gnu.org>
27265 * doc/Copyright/request-*: new files, synced from gnuorg.
27267 2006-03-01 Karl Berry <karl@gnu.org>
27269 * config/srclist.txt (Copyright/*): new entries.
27271 2006-02-28 Simon Josefsson <jas@extundo.com>
27273 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
27275 2006-02-27 Simon Josefsson <jas@extundo.com>
27277 * lib/base64.h: Indent #define's. From Jim Meyering
27278 <jim@meyering.net>.
27280 2006-02-27 Jim Meyering <jim@meyering.net>
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
27287 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
27289 * modules/intprops: New file.
27290 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
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.
27303 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
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.
27312 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27314 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
27317 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
27319 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
27321 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27323 Sync from coreutils.
27324 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
27327 2006-02-22 Jim Meyering <jim@meyering.net>
27329 Sync from coreutils.
27330 * m4/chdir-safer.m4: New file.
27332 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
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.
27338 2006-02-17 Eric Blake <address@hidden>
27340 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
27342 2006-02-16 Simon Josefsson <jas@extundo.com>
27344 * modules/getaddrinfo (Depends-on): Add sys_socket.
27346 2006-02-15 Simon Josefsson <jas@extundo.com>
27348 * build-aux/maint.mk: Add dsyntax-check rule.
27350 2006-02-15 Eric Blake <ebb9@byu.net>
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.
27360 2006-02-14 Simon Josefsson <jas@extundo.com>
27362 * modules/maintainer-makefile (Files): Rename.
27364 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
27365 and (the local) Makefile.cfg to maint-cfg.mk.
27367 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
27370 * modules/maintainer-makefile: New module.
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.
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.
27380 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
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.
27387 2006-02-14 Jim Meyering <jim@meyering.net>
27389 Sync from coreutils.
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.
27396 * lib/xalloc-die.c: Remove unused definition of N_.
27398 2006-02-14 Jim Meyering <jim@meyering.net>
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.
27408 2006-02-13 Simon Josefsson <jas@extundo.com>
27410 * gnulib-tool (Usage): Fix --import, from
27411 karl@freefriends.org (Karl Berry).
27413 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
27415 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
27417 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
27419 * lib/argp-namefrob.h: Restore changes accidentally lost during the
27420 "autoupdate" on 2005-12-12.
27422 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
27424 * modules/closeout (Depends-on): Remove atexit.
27426 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
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.
27431 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
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.
27438 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
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>.
27445 2006-01-26 Simon Josefsson <jas@extundo.com>
27447 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
27448 prototype is visible on mingw32.
27450 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
27453 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
27456 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
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.
27463 2006-01-26 Bruno Haible <bruno@clisp.org>
27465 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
27466 Reported by Paul Eggert.
27468 2006-01-26 Bruno Haible <bruno@clisp.org>
27469 Paul Eggert <eggert@cs.ucla.edu>
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.
27481 2006-01-25 Simon Josefsson <jas@extundo.com>
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.
27487 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
27489 * lib/argp-namefrob.h: Bugfix. Remove stray #
27491 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
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.
27497 2006-01-25 Karl Berry <karl@gnu.org>
27499 * config/srclist.txt (vasnprintf.c): sync lost.
27501 2006-01-25 Jim Meyering <jim@meyering.net>
27503 Sync from the stable (b5) branch of coreutils:
27505 * lib/fts.c (fts_children): Don't let close() clobber errno from
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.
27514 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
27515 in their own block, so pre-c99 compilers don't object.
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.
27525 2006-01-25 Jim Meyering <jim@meyering.net>
27527 * lib/fileblocks.c: Remove more useless parentheses.
27528 * lib/readutmp.h: Likewise.
27530 2006-01-25 Bruno Haible <bruno@clisp.org>
27532 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
27534 Reported by Paul Eggert.
27536 2006-01-25 Bruno Haible <bruno@clisp.org>
27538 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
27539 rid of a trap command. For Solaris sh.